]> git.sur5r.net Git - openldap/blob - configure
Regenerate
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.14 2008/09/17 22:54:33 quanah Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2008 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293        echo_test_string=`eval $cmd` &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC MYSQL LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_META BUILD_MONITOR BUILD_NDB BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SOCK BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_COLLECT BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_MEMBEROF BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT LDAP_LIBS SLAPD_LIBS BDB_LIBS SLAPD_NDB_LIBS SLAPD_NDB_INCS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929
930 #
931 # Report the --help message.
932 #
933 if test "$ac_init_help" = "long"; then
934   # Omit some internal or obsolete options to make the list less imposing.
935   # This message is too long to be a string in the A/UX 3.1 sh.
936   cat <<_ACEOF
937 \`configure' configures this package to adapt to many kinds of systems.
938
939 Usage: $0 [OPTION]... [VAR=VALUE]...
940
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE.  See below for descriptions of some of the useful variables.
943
944 Defaults for the options are specified in brackets.
945
946 Configuration:
947   -h, --help              display this help and exit
948       --help=short        display options specific to this package
949       --help=recursive    display the short help of all the included packages
950   -V, --version           display version information and exit
951   -q, --quiet, --silent   do not print \`checking...' messages
952       --cache-file=FILE   cache test results in FILE [disabled]
953   -C, --config-cache      alias for \`--cache-file=config.cache'
954   -n, --no-create         do not create output files
955       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
956
957 _ACEOF
958
959   cat <<_ACEOF
960 Installation directories:
961   --prefix=PREFIX         install architecture-independent files in PREFIX
962                           [$ac_default_prefix]
963   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
964                           [PREFIX]
965
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
970
971 For better control, use the options below.
972
973 Fine tuning of the installation directories:
974   --bindir=DIR           user executables [EPREFIX/bin]
975   --sbindir=DIR          system admin executables [EPREFIX/sbin]
976   --libexecdir=DIR       program executables [EPREFIX/libexec]
977   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
978   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
979   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
980   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
981   --libdir=DIR           object code libraries [EPREFIX/lib]
982   --includedir=DIR       C header files [PREFIX/include]
983   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
984   --infodir=DIR          info documentation [PREFIX/info]
985   --mandir=DIR           man documentation [PREFIX/man]
986 _ACEOF
987
988   cat <<\_ACEOF
989
990 Program names:
991   --program-prefix=PREFIX            prepend PREFIX to installed program names
992   --program-suffix=SUFFIX            append SUFFIX to installed program names
993   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
994
995 System types:
996   --build=BUILD     configure for building on BUILD [guessed]
997   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
998   --target=TARGET   configure for building compilers for TARGET [HOST]
999 _ACEOF
1000 fi
1001
1002 if test -n "$ac_init_help"; then
1003
1004   cat <<\_ACEOF
1005
1006 Optional Features:
1007   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1008   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1009   --enable-debug          enable debugging no|yes|traditional [yes]
1010   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1011   --enable-syslog         enable syslog support [auto]
1012   --enable-proctitle      enable proctitle support [yes]
1013   --enable-ipv6           enable IPv6 support [auto]
1014   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1015
1016 SLAPD (Standalone LDAP Daemon) Options:
1017   --enable-slapd          enable building slapd [yes]
1018     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1019     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1020     --enable-cleartext    enable cleartext passwords [yes]
1021     --enable-crypt        enable crypt(3) passwords [no]
1022     --enable-lmpasswd     enable LAN Manager passwords [no]
1023     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1024     --enable-modules      enable dynamic module support [no]
1025     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1026     --enable-rlookups     enable reverse lookups of client hostnames [no]
1027     --enable-slapi        enable SLAPI support (experimental) [no]
1028     --enable-slp          enable SLPv2 support [no]
1029     --enable-wrappers     enable tcp wrapper support [no]
1030
1031 SLAPD Backend Options:
1032     --enable-backends     enable all available backends no|yes|mod
1033     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1034     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1035     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1036     --enable-ldap         enable ldap backend no|yes|mod [no]
1037     --enable-meta         enable metadirectory backend no|yes|mod [no]
1038     --enable-monitor      enable monitor backend no|yes|mod [yes]
1039     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1040     --enable-null         enable null backend no|yes|mod [no]
1041     --enable-passwd       enable passwd backend no|yes|mod [no]
1042     --enable-perl         enable perl backend no|yes|mod [no]
1043     --enable-relay        enable relay backend no|yes|mod [yes]
1044     --enable-shell        enable shell backend no|yes|mod [no]
1045     --enable-sock         enable sock backend no|yes|mod [no]
1046     --enable-sql          enable sql backend no|yes|mod [no]
1047
1048 SLAPD Overlay Options:
1049     --enable-overlays     enable all available overlays no|yes|mod
1050     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1051     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1052     --enable-collect      Collect overlay no|yes|mod [no]
1053     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1054     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1055     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1056     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1057     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1058     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1059     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1060     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1061     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1062     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1063     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1064     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1065     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1066     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1067     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1068
1069 Library Generation & Linking Options
1070   --enable-static[=PKGS]
1071                           build static libraries [default=yes]
1072   --enable-shared[=PKGS]
1073                           build shared libraries [default=yes]
1074   --enable-fast-install[=PKGS]
1075                           optimize for fast installation [default=yes]
1076   --disable-dependency-tracking  speeds up one-time build
1077   --enable-dependency-tracking   do not reject slow dependency extractors
1078   --disable-libtool-lock  avoid locking (might break parallel builds)
1079
1080 Optional Packages:
1081   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1082   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1083   --with-subdir=DIR       change default subdirectory used for installs
1084   --with-cyrus-sasl       with Cyrus SASL support [auto]
1085   --with-fetch            with fetch(3) URL support [auto]
1086   --with-threads          with threads [auto]
1087   --with-tls              with TLS/SSL support auto|openssl|gnutls [auto]
1088   --with-yielding-select  with implicitly yielding select [auto]
1089   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1090   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1091   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1092   --with-pic              try to use only PIC/non-PIC objects [default=use
1093                           both]
1094   --with-tags[=TAGS]
1095                           include additional configurations [automatic]
1096
1097 See INSTALL file for further details.
1098
1099 Some influential environment variables:
1100   CC          C compiler command
1101   CFLAGS      C compiler flags
1102   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1103               nonstandard directory <lib dir>
1104   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1105               headers in a nonstandard directory <include dir>
1106   CPP         C preprocessor
1107
1108 Use these variables to override the choices made by `configure' or to help
1109 it to find libraries and programs with nonstandard names/locations.
1110
1111 _ACEOF
1112 fi
1113
1114 if test "$ac_init_help" = "recursive"; then
1115   # If there are subdirs, report their specific --help.
1116   ac_popdir=`pwd`
1117   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1118     test -d $ac_dir || continue
1119     ac_builddir=.
1120
1121 if test "$ac_dir" != .; then
1122   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1123   # A "../" for each directory in $ac_dir_suffix.
1124   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1125 else
1126   ac_dir_suffix= ac_top_builddir=
1127 fi
1128
1129 case $srcdir in
1130   .)  # No --srcdir option.  We are building in place.
1131     ac_srcdir=.
1132     if test -z "$ac_top_builddir"; then
1133        ac_top_srcdir=.
1134     else
1135        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1136     fi ;;
1137   [\\/]* | ?:[\\/]* )  # Absolute path.
1138     ac_srcdir=$srcdir$ac_dir_suffix;
1139     ac_top_srcdir=$srcdir ;;
1140   *) # Relative path.
1141     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1142     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1143 esac
1144
1145 # Do not use `cd foo && pwd` to compute absolute paths, because
1146 # the directories may not exist.
1147 case `pwd` in
1148 .) ac_abs_builddir="$ac_dir";;
1149 *)
1150   case "$ac_dir" in
1151   .) ac_abs_builddir=`pwd`;;
1152   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1153   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1154   esac;;
1155 esac
1156 case $ac_abs_builddir in
1157 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 *)
1159   case ${ac_top_builddir}. in
1160   .) ac_abs_top_builddir=$ac_abs_builddir;;
1161   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1162   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1163   esac;;
1164 esac
1165 case $ac_abs_builddir in
1166 .) ac_abs_srcdir=$ac_srcdir;;
1167 *)
1168   case $ac_srcdir in
1169   .) ac_abs_srcdir=$ac_abs_builddir;;
1170   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1171   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1172   esac;;
1173 esac
1174 case $ac_abs_builddir in
1175 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 *)
1177   case $ac_top_srcdir in
1178   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1179   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1180   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1181   esac;;
1182 esac
1183
1184     cd $ac_dir
1185     # Check for guested configure; otherwise get Cygnus style configure.
1186     if test -f $ac_srcdir/configure.gnu; then
1187       echo
1188       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1189     elif test -f $ac_srcdir/configure; then
1190       echo
1191       $SHELL $ac_srcdir/configure  --help=recursive
1192     elif test -f $ac_srcdir/configure.ac ||
1193            test -f $ac_srcdir/configure.in; then
1194       echo
1195       $ac_configure --help
1196     else
1197       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1198     fi
1199     cd $ac_popdir
1200   done
1201 fi
1202
1203 test -n "$ac_init_help" && exit 0
1204 if $ac_init_version; then
1205   cat <<\_ACEOF
1206
1207 Copyright (C) 2003 Free Software Foundation, Inc.
1208 This configure script is free software; the Free Software Foundation
1209 gives unlimited permission to copy, distribute and modify it.
1210
1211 Copyright 1998-2008 The OpenLDAP Foundation. All rights reserved.
1212 Restrictions apply, see COPYRIGHT and LICENSE files.
1213 _ACEOF
1214   exit 0
1215 fi
1216 exec 5>config.log
1217 cat >&5 <<_ACEOF
1218 This file contains any messages produced by compilers while
1219 running configure, to aid debugging if configure makes a mistake.
1220
1221 It was created by $as_me, which was
1222 generated by GNU Autoconf 2.59.  Invocation command line was
1223
1224   $ $0 $@
1225
1226 _ACEOF
1227 {
1228 cat <<_ASUNAME
1229 ## --------- ##
1230 ## Platform. ##
1231 ## --------- ##
1232
1233 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1234 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1235 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1236 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1237 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1238
1239 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1240 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1241
1242 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1243 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1244 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1245 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1246 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1247 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1248 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1249
1250 _ASUNAME
1251
1252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1253 for as_dir in $PATH
1254 do
1255   IFS=$as_save_IFS
1256   test -z "$as_dir" && as_dir=.
1257   echo "PATH: $as_dir"
1258 done
1259
1260 } >&5
1261
1262 cat >&5 <<_ACEOF
1263
1264
1265 ## ----------- ##
1266 ## Core tests. ##
1267 ## ----------- ##
1268
1269 _ACEOF
1270
1271
1272 # Keep a trace of the command line.
1273 # Strip out --no-create and --no-recursion so they do not pile up.
1274 # Strip out --silent because we don't want to record it for future runs.
1275 # Also quote any args containing shell meta-characters.
1276 # Make two passes to allow for proper duplicate-argument suppression.
1277 ac_configure_args=
1278 ac_configure_args0=
1279 ac_configure_args1=
1280 ac_sep=
1281 ac_must_keep_next=false
1282 for ac_pass in 1 2
1283 do
1284   for ac_arg
1285   do
1286     case $ac_arg in
1287     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1288     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289     | -silent | --silent | --silen | --sile | --sil)
1290       continue ;;
1291     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1293     esac
1294     case $ac_pass in
1295     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1296     2)
1297       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1298       if test $ac_must_keep_next = true; then
1299         ac_must_keep_next=false # Got value, back to normal.
1300       else
1301         case $ac_arg in
1302           *=* | --config-cache | -C | -disable-* | --disable-* \
1303           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1304           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1305           | -with-* | --with-* | -without-* | --without-* | --x)
1306             case "$ac_configure_args0 " in
1307               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1308             esac
1309             ;;
1310           -* ) ac_must_keep_next=true ;;
1311         esac
1312       fi
1313       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1314       # Get rid of the leading space.
1315       ac_sep=" "
1316       ;;
1317     esac
1318   done
1319 done
1320 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1321 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1322
1323 # When interrupted or exit'd, cleanup temporary files, and complete
1324 # config.log.  We remove comments because anyway the quotes in there
1325 # would cause problems or look ugly.
1326 # WARNING: Be sure not to use single quotes in there, as some shells,
1327 # such as our DU 5.0 friend, will then `close' the trap.
1328 trap 'exit_status=$?
1329   # Save into config.log some information that might help in debugging.
1330   {
1331     echo
1332
1333     cat <<\_ASBOX
1334 ## ---------------- ##
1335 ## Cache variables. ##
1336 ## ---------------- ##
1337 _ASBOX
1338     echo
1339     # The following way of writing the cache mishandles newlines in values,
1340 {
1341   (set) 2>&1 |
1342     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1343     *ac_space=\ *)
1344       sed -n \
1345         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1346           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1347       ;;
1348     *)
1349       sed -n \
1350         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1351       ;;
1352     esac;
1353 }
1354     echo
1355
1356     cat <<\_ASBOX
1357 ## ----------------- ##
1358 ## Output variables. ##
1359 ## ----------------- ##
1360 _ASBOX
1361     echo
1362     for ac_var in $ac_subst_vars
1363     do
1364       eval ac_val=$`echo $ac_var`
1365       echo "$ac_var='"'"'$ac_val'"'"'"
1366     done | sort
1367     echo
1368
1369     if test -n "$ac_subst_files"; then
1370       cat <<\_ASBOX
1371 ## ------------- ##
1372 ## Output files. ##
1373 ## ------------- ##
1374 _ASBOX
1375       echo
1376       for ac_var in $ac_subst_files
1377       do
1378         eval ac_val=$`echo $ac_var`
1379         echo "$ac_var='"'"'$ac_val'"'"'"
1380       done | sort
1381       echo
1382     fi
1383
1384     if test -s confdefs.h; then
1385       cat <<\_ASBOX
1386 ## ----------- ##
1387 ## confdefs.h. ##
1388 ## ----------- ##
1389 _ASBOX
1390       echo
1391       sed "/^$/d" confdefs.h | sort
1392       echo
1393     fi
1394     test "$ac_signal" != 0 &&
1395       echo "$as_me: caught signal $ac_signal"
1396     echo "$as_me: exit $exit_status"
1397   } >&5
1398   rm -f core *.core &&
1399   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1400     exit $exit_status
1401      ' 0
1402 for ac_signal in 1 2 13 15; do
1403   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1404 done
1405 ac_signal=0
1406
1407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1408 rm -rf conftest* confdefs.h
1409 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1410 echo >confdefs.h
1411
1412 # Predefined preprocessor variables.
1413
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_NAME "$PACKAGE_NAME"
1416 _ACEOF
1417
1418
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1421 _ACEOF
1422
1423
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1426 _ACEOF
1427
1428
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_STRING "$PACKAGE_STRING"
1431 _ACEOF
1432
1433
1434 cat >>confdefs.h <<_ACEOF
1435 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1436 _ACEOF
1437
1438
1439 # Let the site file select an alternate cache file if it wants to.
1440 # Prefer explicitly selected file to automatically selected ones.
1441 if test -z "$CONFIG_SITE"; then
1442   if test "x$prefix" != xNONE; then
1443     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1444   else
1445     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1446   fi
1447 fi
1448 for ac_site_file in $CONFIG_SITE; do
1449   if test -r "$ac_site_file"; then
1450     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1451 echo "$as_me: loading site script $ac_site_file" >&6;}
1452     sed 's/^/| /' "$ac_site_file" >&5
1453     . "$ac_site_file"
1454   fi
1455 done
1456
1457
1458 # Check that the precious variables saved in the cache have kept the same
1459 # value.
1460 ac_cache_corrupted=false
1461 for ac_var in `(set) 2>&1 |
1462                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1463   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1464   eval ac_new_set=\$ac_env_${ac_var}_set
1465   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1466   eval ac_new_val="\$ac_env_${ac_var}_value"
1467   case $ac_old_set,$ac_new_set in
1468     set,)
1469       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1470 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1471       ac_cache_corrupted=: ;;
1472     ,set)
1473       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1474 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1475       ac_cache_corrupted=: ;;
1476     ,);;
1477     *)
1478       if test "x$ac_old_val" != "x$ac_new_val"; then
1479         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1480 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1481         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1482 echo "$as_me:   former value:  $ac_old_val" >&2;}
1483         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1484 echo "$as_me:   current value: $ac_new_val" >&2;}
1485         ac_cache_corrupted=:
1486       fi;;
1487   esac
1488   # Pass precious variables to config.status.
1489   if test "$ac_new_set" = set; then
1490     case $ac_new_val in
1491     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1492       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1493     *) ac_arg=$ac_var=$ac_new_val ;;
1494     esac
1495     case " $ac_configure_args " in
1496       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1497       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1498     esac
1499   fi
1500 done
1501 if $ac_cache_corrupted; then
1502   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1503 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1504   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1505 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1506    { (exit 1); exit 1; }; }
1507 fi
1508
1509 ac_ext=c
1510 ac_cpp='$CPP $CPPFLAGS'
1511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557 ac_aux_dir=
1558 for ac_dir in build $srcdir/build; do
1559   if test -f $ac_dir/install-sh; then
1560     ac_aux_dir=$ac_dir
1561     ac_install_sh="$ac_aux_dir/install-sh -c"
1562     break
1563   elif test -f $ac_dir/install.sh; then
1564     ac_aux_dir=$ac_dir
1565     ac_install_sh="$ac_aux_dir/install.sh -c"
1566     break
1567   elif test -f $ac_dir/shtool; then
1568     ac_aux_dir=$ac_dir
1569     ac_install_sh="$ac_aux_dir/shtool install -c"
1570     break
1571   fi
1572 done
1573 if test -z "$ac_aux_dir"; then
1574   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1575 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1576    { (exit 1); exit 1; }; }
1577 fi
1578 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1579 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1580 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581
1582 eval `$ac_aux_dir/version.sh`
1583 if test -z "$OL_STRING"; then
1584         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1585 echo "$as_me: error: could not determine version" >&2;}
1586    { (exit 1); exit 1; }; }
1587 fi
1588
1589 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1590         ac_cv_shtool="$ac_aux_dir/shtool"
1591 else
1592         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1593 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1594    { (exit 1); exit 1; }; }
1595 fi
1596
1597 SHTOOL="$ac_cv_shtool"
1598
1599 TB="" TN=""
1600 if test -t 1; then
1601         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1602         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1603 fi
1604
1605 OPENLDAP_CVS=""
1606 if test -d $ac_aux_dir/CVS; then
1607         OPENLDAP_CVS="(from CVS sources) "
1608 fi
1609
1610 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1611
1612 # Make sure we can run config.sub.
1613 $ac_config_sub sun4 >/dev/null 2>&1 ||
1614   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1615 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1616    { (exit 1); exit 1; }; }
1617
1618 echo "$as_me:$LINENO: checking build system type" >&5
1619 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1620 if test "${ac_cv_build+set}" = set; then
1621   echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623   ac_cv_build_alias=$build_alias
1624 test -z "$ac_cv_build_alias" &&
1625   ac_cv_build_alias=`$ac_config_guess`
1626 test -z "$ac_cv_build_alias" &&
1627   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1628 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1629    { (exit 1); exit 1; }; }
1630 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1631   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1632 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1633    { (exit 1); exit 1; }; }
1634
1635 fi
1636 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1637 echo "${ECHO_T}$ac_cv_build" >&6
1638 build=$ac_cv_build
1639 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1640 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1641 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1642
1643
1644 echo "$as_me:$LINENO: checking host system type" >&5
1645 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1646 if test "${ac_cv_host+set}" = set; then
1647   echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649   ac_cv_host_alias=$host_alias
1650 test -z "$ac_cv_host_alias" &&
1651   ac_cv_host_alias=$ac_cv_build_alias
1652 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1653   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1654 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1655    { (exit 1); exit 1; }; }
1656
1657 fi
1658 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1659 echo "${ECHO_T}$ac_cv_host" >&6
1660 host=$ac_cv_host
1661 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1662 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1663 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1664
1665
1666 echo "$as_me:$LINENO: checking target system type" >&5
1667 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1668 if test "${ac_cv_target+set}" = set; then
1669   echo $ECHO_N "(cached) $ECHO_C" >&6
1670 else
1671   ac_cv_target_alias=$target_alias
1672 test "x$ac_cv_target_alias" = "x" &&
1673   ac_cv_target_alias=$ac_cv_host_alias
1674 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1675   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1676 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1677    { (exit 1); exit 1; }; }
1678
1679 fi
1680 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1681 echo "${ECHO_T}$ac_cv_target" >&6
1682 target=$ac_cv_target
1683 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1684 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1685 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1686
1687
1688 # The aliases save the names the user supplied, while $host etc.
1689 # will get canonicalized.
1690 test -n "$target_alias" &&
1691   test "$program_prefix$program_suffix$program_transform_name" = \
1692     NONENONEs,x,x, &&
1693   program_prefix=${target_alias}-
1694
1695 am__api_version="1.9"
1696 # Find a good install program.  We prefer a C program (faster),
1697 # so one script is as good as another.  But avoid the broken or
1698 # incompatible versions:
1699 # SysV /etc/install, /usr/sbin/install
1700 # SunOS /usr/etc/install
1701 # IRIX /sbin/install
1702 # AIX /bin/install
1703 # AmigaOS /C/install, which installs bootblocks on floppy discs
1704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1707 # OS/2's system install, which has a completely different semantic
1708 # ./install, which can be erroneously created by make from ./install.sh.
1709 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1710 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1711 if test -z "$INSTALL"; then
1712 if test "${ac_cv_path_install+set}" = set; then
1713   echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1717 do
1718   IFS=$as_save_IFS
1719   test -z "$as_dir" && as_dir=.
1720   # Account for people who put trailing slashes in PATH elements.
1721 case $as_dir/ in
1722   ./ | .// | /cC/* | \
1723   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1724   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1725   /usr/ucb/* ) ;;
1726   *)
1727     # OSF1 and SCO ODT 3.0 have their own names for install.
1728     # Don't use installbsd from OSF since it installs stuff as root
1729     # by default.
1730     for ac_prog in ginstall scoinst install; do
1731       for ac_exec_ext in '' $ac_executable_extensions; do
1732         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1733           if test $ac_prog = install &&
1734             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735             # AIX install.  It has an incompatible calling convention.
1736             :
1737           elif test $ac_prog = install &&
1738             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739             # program-specific install script used by HP pwplus--don't use.
1740             :
1741           else
1742             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1743             break 3
1744           fi
1745         fi
1746       done
1747     done
1748     ;;
1749 esac
1750 done
1751
1752
1753 fi
1754   if test "${ac_cv_path_install+set}" = set; then
1755     INSTALL=$ac_cv_path_install
1756   else
1757     # As a last resort, use the slow shell script.  We don't cache a
1758     # path for INSTALL within a source directory, because that will
1759     # break other packages using the cache if that directory is
1760     # removed, or if the path is relative.
1761     INSTALL=$ac_install_sh
1762   fi
1763 fi
1764 echo "$as_me:$LINENO: result: $INSTALL" >&5
1765 echo "${ECHO_T}$INSTALL" >&6
1766
1767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1768 # It thinks the first close brace ends the variable substitution.
1769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1770
1771 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1772
1773 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1774
1775 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1776 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1777 # Just in case
1778 sleep 1
1779 echo timestamp > conftest.file
1780 # Do `set' in a subshell so we don't clobber the current shell's
1781 # arguments.  Must try -L first in case configure is actually a
1782 # symlink; some systems play weird games with the mod time of symlinks
1783 # (eg FreeBSD returns the mod time of the symlink's containing
1784 # directory).
1785 if (
1786    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1787    if test "$*" = "X"; then
1788       # -L didn't work.
1789       set X `ls -t $srcdir/configure conftest.file`
1790    fi
1791    rm -f conftest.file
1792    if test "$*" != "X $srcdir/configure conftest.file" \
1793       && test "$*" != "X conftest.file $srcdir/configure"; then
1794
1795       # If neither matched, then we have a broken ls.  This can happen
1796       # if, for instance, CONFIG_SHELL is bash and it inherits a
1797       # broken ls alias from the environment.  This has actually
1798       # happened.  Such a system could not be considered "sane".
1799       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1800 alias in your environment" >&5
1801 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1802 alias in your environment" >&2;}
1803    { (exit 1); exit 1; }; }
1804    fi
1805
1806    test "$2" = conftest.file
1807    )
1808 then
1809    # Ok.
1810    :
1811 else
1812    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1813 Check your system clock" >&5
1814 echo "$as_me: error: newly created file is older than distributed files!
1815 Check your system clock" >&2;}
1816    { (exit 1); exit 1; }; }
1817 fi
1818 echo "$as_me:$LINENO: result: yes" >&5
1819 echo "${ECHO_T}yes" >&6
1820 test "$program_prefix" != NONE &&
1821   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1822 # Use a double $ so make ignores it.
1823 test "$program_suffix" != NONE &&
1824   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1825 # Double any \ or $.  echo might interpret backslashes.
1826 # By default was `s,x,x', remove it if useless.
1827 cat <<\_ACEOF >conftest.sed
1828 s/[\\$]/&&/g;s/;s,x,x,$//
1829 _ACEOF
1830 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1831 rm conftest.sed
1832
1833 # expand $ac_aux_dir to an absolute path
1834 am_aux_dir=`cd $ac_aux_dir && pwd`
1835
1836 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1837 # Use eval to expand $SHELL
1838 if eval "$MISSING --run true"; then
1839   am_missing_run="$MISSING --run "
1840 else
1841   am_missing_run=
1842   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1843 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1844 fi
1845
1846 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1847   # We used to keeping the `.' as first argument, in order to
1848   # allow $(mkdir_p) to be used without argument.  As in
1849   #   $(mkdir_p) $(somedir)
1850   # where $(somedir) is conditionally defined.  However this is wrong
1851   # for two reasons:
1852   #  1. if the package is installed by a user who cannot write `.'
1853   #     make install will fail,
1854   #  2. the above comment should most certainly read
1855   #     $(mkdir_p) $(DESTDIR)$(somedir)
1856   #     so it does not work when $(somedir) is undefined and
1857   #     $(DESTDIR) is not.
1858   #  To support the latter case, we have to write
1859   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1860   #  so the `.' trick is pointless.
1861   mkdir_p='mkdir -p --'
1862 else
1863   # On NextStep and OpenStep, the `mkdir' command does not
1864   # recognize any option.  It will interpret all options as
1865   # directories to create, and then abort because `.' already
1866   # exists.
1867   for d in ./-p ./--version;
1868   do
1869     test -d $d && rmdir $d
1870   done
1871   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1872   if test -f "$ac_aux_dir/mkinstalldirs"; then
1873     mkdir_p='$(mkinstalldirs)'
1874   else
1875     mkdir_p='$(install_sh) -d'
1876   fi
1877 fi
1878
1879 for ac_prog in gawk mawk nawk awk
1880 do
1881   # Extract the first word of "$ac_prog", so it can be a program name with args.
1882 set dummy $ac_prog; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_AWK+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   if test -n "$AWK"; then
1889   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894   IFS=$as_save_IFS
1895   test -z "$as_dir" && as_dir=.
1896   for ac_exec_ext in '' $ac_executable_extensions; do
1897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898     ac_cv_prog_AWK="$ac_prog"
1899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900     break 2
1901   fi
1902 done
1903 done
1904
1905 fi
1906 fi
1907 AWK=$ac_cv_prog_AWK
1908 if test -n "$AWK"; then
1909   echo "$as_me:$LINENO: result: $AWK" >&5
1910 echo "${ECHO_T}$AWK" >&6
1911 else
1912   echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1914 fi
1915
1916   test -n "$AWK" && break
1917 done
1918
1919 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1920 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1921 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1922 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1923   echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925   cat >conftest.make <<\_ACEOF
1926 all:
1927         @echo 'ac_maketemp="$(MAKE)"'
1928 _ACEOF
1929 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1930 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1931 if test -n "$ac_maketemp"; then
1932   eval ac_cv_prog_make_${ac_make}_set=yes
1933 else
1934   eval ac_cv_prog_make_${ac_make}_set=no
1935 fi
1936 rm -f conftest.make
1937 fi
1938 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1939   echo "$as_me:$LINENO: result: yes" >&5
1940 echo "${ECHO_T}yes" >&6
1941   SET_MAKE=
1942 else
1943   echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945   SET_MAKE="MAKE=${MAKE-make}"
1946 fi
1947
1948 rm -rf .tst 2>/dev/null
1949 mkdir .tst 2>/dev/null
1950 if test -d .tst; then
1951   am__leading_dot=.
1952 else
1953   am__leading_dot=_
1954 fi
1955 rmdir .tst 2>/dev/null
1956
1957 # test to see if srcdir already configured
1958 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1959    test -f $srcdir/config.status; then
1960   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1961 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1962    { (exit 1); exit 1; }; }
1963 fi
1964
1965 # test whether we have cygpath
1966 if test -z "$CYGPATH_W"; then
1967   if (cygpath --version) >/dev/null 2>/dev/null; then
1968     CYGPATH_W='cygpath -w'
1969   else
1970     CYGPATH_W=echo
1971   fi
1972 fi
1973
1974
1975 # Define the identity of the package.
1976  PACKAGE=$OL_PACKAGE
1977  VERSION=$OL_VERSION
1978
1979
1980 # Some tools Automake needs.
1981
1982 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1983
1984
1985 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1986
1987
1988 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1989
1990
1991 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1992
1993
1994 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1995
1996 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1997
1998 # Installed binaries are usually stripped using `strip' when the user
1999 # run `make install-strip'.  However `strip' might not be the right
2000 # tool to use in cross-compilation environments, therefore Automake
2001 # will honor the `STRIP' environment variable to overrule this program.
2002 if test "$cross_compiling" != no; then
2003   if test -n "$ac_tool_prefix"; then
2004   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2005 set dummy ${ac_tool_prefix}strip; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_STRIP+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   if test -n "$STRIP"; then
2012   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2013 else
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2016 do
2017   IFS=$as_save_IFS
2018   test -z "$as_dir" && as_dir=.
2019   for ac_exec_ext in '' $ac_executable_extensions; do
2020   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023     break 2
2024   fi
2025 done
2026 done
2027
2028 fi
2029 fi
2030 STRIP=$ac_cv_prog_STRIP
2031 if test -n "$STRIP"; then
2032   echo "$as_me:$LINENO: result: $STRIP" >&5
2033 echo "${ECHO_T}$STRIP" >&6
2034 else
2035   echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2037 fi
2038
2039 fi
2040 if test -z "$ac_cv_prog_STRIP"; then
2041   ac_ct_STRIP=$STRIP
2042   # Extract the first word of "strip", so it can be a program name with args.
2043 set dummy strip; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2047   echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049   if test -n "$ac_ct_STRIP"; then
2050   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2051 else
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055   IFS=$as_save_IFS
2056   test -z "$as_dir" && as_dir=.
2057   for ac_exec_ext in '' $ac_executable_extensions; do
2058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059     ac_cv_prog_ac_ct_STRIP="strip"
2060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061     break 2
2062   fi
2063 done
2064 done
2065
2066   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2067 fi
2068 fi
2069 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2070 if test -n "$ac_ct_STRIP"; then
2071   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2072 echo "${ECHO_T}$ac_ct_STRIP" >&6
2073 else
2074   echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2076 fi
2077
2078   STRIP=$ac_ct_STRIP
2079 else
2080   STRIP="$ac_cv_prog_STRIP"
2081 fi
2082
2083 fi
2084 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2085
2086 # We need awk for the "check" target.  The system "awk" is bad on
2087 # some platforms.
2088 # Always define AMTAR for backward compatibility.
2089
2090 AMTAR=${AMTAR-"${am_missing_run}tar"}
2091
2092 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2093
2094
2095
2096
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define OPENLDAP_PACKAGE "$PACKAGE"
2100 _ACEOF
2101
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define OPENLDAP_VERSION "$VERSION"
2105 _ACEOF
2106
2107
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define LDAP_VENDOR_VERSION $OL_API_INC
2111 _ACEOF
2112
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2116 _ACEOF
2117
2118
2119 cat >>confdefs.h <<_ACEOF
2120 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2121 _ACEOF
2122
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2126 _ACEOF
2127
2128
2129 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2130
2131 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2132
2133 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2134
2135
2136
2137
2138
2139
2140
2141           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2142
2143           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2144
2145           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2146
2147
2148 echo "$as_me:$LINENO: checking configure arguments" >&5
2149 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2150
2151
2152 top_builddir=`pwd`
2153
2154 ldap_subdir="/openldap"
2155
2156
2157 # Check whether --with-subdir or --without-subdir was given.
2158 if test "${with_subdir+set}" = set; then
2159   withval="$with_subdir"
2160   case "$withval" in
2161         no) ldap_subdir=""
2162                 ;;
2163         yes)
2164                 ;;
2165         /*|\\*)
2166                 ldap_subdir="$withval"
2167                 ;;
2168         *)
2169                 ldap_subdir="/$withval"
2170                 ;;
2171 esac
2172
2173 fi;
2174
2175 # OpenLDAP --enable-debug
2176
2177         # Check whether --enable-debug or --disable-debug was given.
2178 if test "${enable_debug+set}" = set; then
2179   enableval="$enable_debug"
2180
2181         ol_arg=invalid
2182         for ol_val in no yes traditional ; do
2183                 if test "$enableval" = "$ol_val" ; then
2184                         ol_arg="$ol_val"
2185                 fi
2186         done
2187         if test "$ol_arg" = "invalid" ; then
2188                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2189 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2190    { (exit 1); exit 1; }; }
2191         fi
2192         ol_enable_debug="$ol_arg"
2193
2194 else
2195         ol_enable_debug=yes
2196 fi;
2197 # end --enable-debug
2198 # OpenLDAP --enable-dynamic
2199
2200         # Check whether --enable-dynamic or --disable-dynamic was given.
2201 if test "${enable_dynamic+set}" = set; then
2202   enableval="$enable_dynamic"
2203
2204         ol_arg=invalid
2205         for ol_val in auto yes no ; do
2206                 if test "$enableval" = "$ol_val" ; then
2207                         ol_arg="$ol_val"
2208                 fi
2209         done
2210         if test "$ol_arg" = "invalid" ; then
2211                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2212 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2213    { (exit 1); exit 1; }; }
2214         fi
2215         ol_enable_dynamic="$ol_arg"
2216
2217 else
2218         ol_enable_dynamic=no
2219 fi;
2220 # end --enable-dynamic
2221 # OpenLDAP --enable-syslog
2222
2223         # Check whether --enable-syslog or --disable-syslog was given.
2224 if test "${enable_syslog+set}" = set; then
2225   enableval="$enable_syslog"
2226
2227         ol_arg=invalid
2228         for ol_val in auto yes no ; do
2229                 if test "$enableval" = "$ol_val" ; then
2230                         ol_arg="$ol_val"
2231                 fi
2232         done
2233         if test "$ol_arg" = "invalid" ; then
2234                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2235 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2236    { (exit 1); exit 1; }; }
2237         fi
2238         ol_enable_syslog="$ol_arg"
2239
2240 else
2241         ol_enable_syslog=auto
2242 fi;
2243 # end --enable-syslog
2244 # OpenLDAP --enable-proctitle
2245
2246         # Check whether --enable-proctitle or --disable-proctitle was given.
2247 if test "${enable_proctitle+set}" = set; then
2248   enableval="$enable_proctitle"
2249
2250         ol_arg=invalid
2251         for ol_val in auto yes no ; do
2252                 if test "$enableval" = "$ol_val" ; then
2253                         ol_arg="$ol_val"
2254                 fi
2255         done
2256         if test "$ol_arg" = "invalid" ; then
2257                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2258 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2259    { (exit 1); exit 1; }; }
2260         fi
2261         ol_enable_proctitle="$ol_arg"
2262
2263 else
2264         ol_enable_proctitle=yes
2265 fi;
2266 # end --enable-proctitle
2267 ol_enable_referrals=${ol_enable_referrals-no}
2268 # OpenLDAP --enable-ipv6
2269
2270         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2271 if test "${enable_ipv6+set}" = set; then
2272   enableval="$enable_ipv6"
2273
2274         ol_arg=invalid
2275         for ol_val in auto yes no ; do
2276                 if test "$enableval" = "$ol_val" ; then
2277                         ol_arg="$ol_val"
2278                 fi
2279         done
2280         if test "$ol_arg" = "invalid" ; then
2281                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2282 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2283    { (exit 1); exit 1; }; }
2284         fi
2285         ol_enable_ipv6="$ol_arg"
2286
2287 else
2288         ol_enable_ipv6=auto
2289 fi;
2290 # end --enable-ipv6
2291 # OpenLDAP --enable-local
2292
2293         # Check whether --enable-local or --disable-local was given.
2294 if test "${enable_local+set}" = set; then
2295   enableval="$enable_local"
2296
2297         ol_arg=invalid
2298         for ol_val in auto yes no ; do
2299                 if test "$enableval" = "$ol_val" ; then
2300                         ol_arg="$ol_val"
2301                 fi
2302         done
2303         if test "$ol_arg" = "invalid" ; then
2304                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2305 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2306    { (exit 1); exit 1; }; }
2307         fi
2308         ol_enable_local="$ol_arg"
2309
2310 else
2311         ol_enable_local=auto
2312 fi;
2313 # end --enable-local
2314
2315 # OpenLDAP --with-cyrus_sasl
2316
2317 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2318 if test "${with_cyrus_sasl+set}" = set; then
2319   withval="$with_cyrus_sasl"
2320
2321         ol_arg=invalid
2322         for ol_val in auto yes no  ; do
2323                 if test "$withval" = "$ol_val" ; then
2324                         ol_arg="$ol_val"
2325                 fi
2326         done
2327         if test "$ol_arg" = "invalid" ; then
2328                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2329 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2330    { (exit 1); exit 1; }; }
2331         fi
2332         ol_with_cyrus_sasl="$ol_arg"
2333
2334 else
2335         ol_with_cyrus_sasl="auto"
2336 fi; # end --with-cyrus_sasl
2337
2338 # OpenLDAP --with-fetch
2339
2340 # Check whether --with-fetch or --without-fetch was given.
2341 if test "${with_fetch+set}" = set; then
2342   withval="$with_fetch"
2343
2344         ol_arg=invalid
2345         for ol_val in auto yes no  ; do
2346                 if test "$withval" = "$ol_val" ; then
2347                         ol_arg="$ol_val"
2348                 fi
2349         done
2350         if test "$ol_arg" = "invalid" ; then
2351                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2352 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2353    { (exit 1); exit 1; }; }
2354         fi
2355         ol_with_fetch="$ol_arg"
2356
2357 else
2358         ol_with_fetch="auto"
2359 fi; # end --with-fetch
2360
2361 # OpenLDAP --with-threads
2362
2363 # Check whether --with-threads or --without-threads was given.
2364 if test "${with_threads+set}" = set; then
2365   withval="$with_threads"
2366
2367         ol_arg=invalid
2368         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2369                 if test "$withval" = "$ol_val" ; then
2370                         ol_arg="$ol_val"
2371                 fi
2372         done
2373         if test "$ol_arg" = "invalid" ; then
2374                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2375 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2376    { (exit 1); exit 1; }; }
2377         fi
2378         ol_with_threads="$ol_arg"
2379
2380 else
2381         ol_with_threads="auto"
2382 fi; # end --with-threads
2383
2384 # OpenLDAP --with-tls
2385
2386 # Check whether --with-tls or --without-tls was given.
2387 if test "${with_tls+set}" = set; then
2388   withval="$with_tls"
2389
2390         ol_arg=invalid
2391         for ol_val in auto openssl gnutls yes no  ; do
2392                 if test "$withval" = "$ol_val" ; then
2393                         ol_arg="$ol_val"
2394                 fi
2395         done
2396         if test "$ol_arg" = "invalid" ; then
2397                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2398 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2399    { (exit 1); exit 1; }; }
2400         fi
2401         ol_with_tls="$ol_arg"
2402
2403 else
2404         ol_with_tls="auto"
2405 fi; # end --with-tls
2406
2407 # OpenLDAP --with-yielding_select
2408
2409 # Check whether --with-yielding_select or --without-yielding_select was given.
2410 if test "${with_yielding_select+set}" = set; then
2411   withval="$with_yielding_select"
2412
2413         ol_arg=invalid
2414         for ol_val in auto yes no manual  ; do
2415                 if test "$withval" = "$ol_val" ; then
2416                         ol_arg="$ol_val"
2417                 fi
2418         done
2419         if test "$ol_arg" = "invalid" ; then
2420                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2421 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2422    { (exit 1); exit 1; }; }
2423         fi
2424         ol_with_yielding_select="$ol_arg"
2425
2426 else
2427         ol_with_yielding_select="auto"
2428 fi; # end --with-yielding_select
2429
2430 # OpenLDAP --with-mp
2431
2432 # Check whether --with-mp or --without-mp was given.
2433 if test "${with_mp+set}" = set; then
2434   withval="$with_mp"
2435
2436         ol_arg=invalid
2437         for ol_val in auto longlong long bignum gmp yes no ; do
2438                 if test "$withval" = "$ol_val" ; then
2439                         ol_arg="$ol_val"
2440                 fi
2441         done
2442         if test "$ol_arg" = "invalid" ; then
2443                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2444 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2445    { (exit 1); exit 1; }; }
2446         fi
2447         ol_with_mp="$ol_arg"
2448
2449 else
2450         ol_with_mp="auto"
2451 fi; # end --with-mp
2452
2453 # OpenLDAP --with-odbc
2454
2455 # Check whether --with-odbc or --without-odbc was given.
2456 if test "${with_odbc+set}" = set; then
2457   withval="$with_odbc"
2458
2459         ol_arg=invalid
2460         for ol_val in auto iodbc unixodbc odbc32  ; do
2461                 if test "$withval" = "$ol_val" ; then
2462                         ol_arg="$ol_val"
2463                 fi
2464         done
2465         if test "$ol_arg" = "invalid" ; then
2466                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2467 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2468    { (exit 1); exit 1; }; }
2469         fi
2470         ol_with_odbc="$ol_arg"
2471
2472 else
2473         ol_with_odbc="auto"
2474 fi; # end --with-odbc
2475
2476
2477
2478 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2479 if test "${enable_xxslapdoptions+set}" = set; then
2480   enableval="$enable_xxslapdoptions"
2481
2482 fi;
2483 # OpenLDAP --enable-slapd
2484
2485         # Check whether --enable-slapd or --disable-slapd was given.
2486 if test "${enable_slapd+set}" = set; then
2487   enableval="$enable_slapd"
2488
2489         ol_arg=invalid
2490         for ol_val in auto yes no ; do
2491                 if test "$enableval" = "$ol_val" ; then
2492                         ol_arg="$ol_val"
2493                 fi
2494         done
2495         if test "$ol_arg" = "invalid" ; then
2496                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2497 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2498    { (exit 1); exit 1; }; }
2499         fi
2500         ol_enable_slapd="$ol_arg"
2501
2502 else
2503         ol_enable_slapd=yes
2504 fi;
2505 # end --enable-slapd
2506 # OpenLDAP --enable-dynacl
2507
2508         # Check whether --enable-dynacl or --disable-dynacl was given.
2509 if test "${enable_dynacl+set}" = set; then
2510   enableval="$enable_dynacl"
2511
2512         ol_arg=invalid
2513         for ol_val in auto yes no ; do
2514                 if test "$enableval" = "$ol_val" ; then
2515                         ol_arg="$ol_val"
2516                 fi
2517         done
2518         if test "$ol_arg" = "invalid" ; then
2519                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2520 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2521    { (exit 1); exit 1; }; }
2522         fi
2523         ol_enable_dynacl="$ol_arg"
2524
2525 else
2526         ol_enable_dynacl=no
2527 fi;
2528 # end --enable-dynacl
2529 # OpenLDAP --enable-aci
2530
2531         # Check whether --enable-aci or --disable-aci was given.
2532 if test "${enable_aci+set}" = set; then
2533   enableval="$enable_aci"
2534
2535         ol_arg=invalid
2536         for ol_val in no yes mod ; do
2537                 if test "$enableval" = "$ol_val" ; then
2538                         ol_arg="$ol_val"
2539                 fi
2540         done
2541         if test "$ol_arg" = "invalid" ; then
2542                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2543 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2544    { (exit 1); exit 1; }; }
2545         fi
2546         ol_enable_aci="$ol_arg"
2547
2548 else
2549         ol_enable_aci=no
2550 fi;
2551 # end --enable-aci
2552 # OpenLDAP --enable-cleartext
2553
2554         # Check whether --enable-cleartext or --disable-cleartext was given.
2555 if test "${enable_cleartext+set}" = set; then
2556   enableval="$enable_cleartext"
2557
2558         ol_arg=invalid
2559         for ol_val in auto yes no ; do
2560                 if test "$enableval" = "$ol_val" ; then
2561                         ol_arg="$ol_val"
2562                 fi
2563         done
2564         if test "$ol_arg" = "invalid" ; then
2565                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2566 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2567    { (exit 1); exit 1; }; }
2568         fi
2569         ol_enable_cleartext="$ol_arg"
2570
2571 else
2572         ol_enable_cleartext=yes
2573 fi;
2574 # end --enable-cleartext
2575 # OpenLDAP --enable-crypt
2576
2577         # Check whether --enable-crypt or --disable-crypt was given.
2578 if test "${enable_crypt+set}" = set; then
2579   enableval="$enable_crypt"
2580
2581         ol_arg=invalid
2582         for ol_val in auto yes no ; do
2583                 if test "$enableval" = "$ol_val" ; then
2584                         ol_arg="$ol_val"
2585                 fi
2586         done
2587         if test "$ol_arg" = "invalid" ; then
2588                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2589 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2590    { (exit 1); exit 1; }; }
2591         fi
2592         ol_enable_crypt="$ol_arg"
2593
2594 else
2595         ol_enable_crypt=no
2596 fi;
2597 # end --enable-crypt
2598 # OpenLDAP --enable-lmpasswd
2599
2600         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2601 if test "${enable_lmpasswd+set}" = set; then
2602   enableval="$enable_lmpasswd"
2603
2604         ol_arg=invalid
2605         for ol_val in auto yes no ; do
2606                 if test "$enableval" = "$ol_val" ; then
2607                         ol_arg="$ol_val"
2608                 fi
2609         done
2610         if test "$ol_arg" = "invalid" ; then
2611                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2612 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2613    { (exit 1); exit 1; }; }
2614         fi
2615         ol_enable_lmpasswd="$ol_arg"
2616
2617 else
2618         ol_enable_lmpasswd=no
2619 fi;
2620 # end --enable-lmpasswd
2621 # OpenLDAP --enable-spasswd
2622
2623         # Check whether --enable-spasswd or --disable-spasswd was given.
2624 if test "${enable_spasswd+set}" = set; then
2625   enableval="$enable_spasswd"
2626
2627         ol_arg=invalid
2628         for ol_val in auto yes no ; do
2629                 if test "$enableval" = "$ol_val" ; then
2630                         ol_arg="$ol_val"
2631                 fi
2632         done
2633         if test "$ol_arg" = "invalid" ; then
2634                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2635 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2636    { (exit 1); exit 1; }; }
2637         fi
2638         ol_enable_spasswd="$ol_arg"
2639
2640 else
2641         ol_enable_spasswd=no
2642 fi;
2643 # end --enable-spasswd
2644 # OpenLDAP --enable-modules
2645
2646         # Check whether --enable-modules or --disable-modules was given.
2647 if test "${enable_modules+set}" = set; then
2648   enableval="$enable_modules"
2649
2650         ol_arg=invalid
2651         for ol_val in auto yes no ; do
2652                 if test "$enableval" = "$ol_val" ; then
2653                         ol_arg="$ol_val"
2654                 fi
2655         done
2656         if test "$ol_arg" = "invalid" ; then
2657                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2658 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2659    { (exit 1); exit 1; }; }
2660         fi
2661         ol_enable_modules="$ol_arg"
2662
2663 else
2664         ol_enable_modules=no
2665 fi;
2666 # end --enable-modules
2667 # OpenLDAP --enable-rewrite
2668
2669         # Check whether --enable-rewrite or --disable-rewrite was given.
2670 if test "${enable_rewrite+set}" = set; then
2671   enableval="$enable_rewrite"
2672
2673         ol_arg=invalid
2674         for ol_val in auto yes no ; do
2675                 if test "$enableval" = "$ol_val" ; then
2676                         ol_arg="$ol_val"
2677                 fi
2678         done
2679         if test "$ol_arg" = "invalid" ; then
2680                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2681 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2682    { (exit 1); exit 1; }; }
2683         fi
2684         ol_enable_rewrite="$ol_arg"
2685
2686 else
2687         ol_enable_rewrite=auto
2688 fi;
2689 # end --enable-rewrite
2690 # OpenLDAP --enable-rlookups
2691
2692         # Check whether --enable-rlookups or --disable-rlookups was given.
2693 if test "${enable_rlookups+set}" = set; then
2694   enableval="$enable_rlookups"
2695
2696         ol_arg=invalid
2697         for ol_val in auto yes no ; do
2698                 if test "$enableval" = "$ol_val" ; then
2699                         ol_arg="$ol_val"
2700                 fi
2701         done
2702         if test "$ol_arg" = "invalid" ; then
2703                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2704 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2705    { (exit 1); exit 1; }; }
2706         fi
2707         ol_enable_rlookups="$ol_arg"
2708
2709 else
2710         ol_enable_rlookups=no
2711 fi;
2712 # end --enable-rlookups
2713 # OpenLDAP --enable-slapi
2714
2715         # Check whether --enable-slapi or --disable-slapi was given.
2716 if test "${enable_slapi+set}" = set; then
2717   enableval="$enable_slapi"
2718
2719         ol_arg=invalid
2720         for ol_val in auto yes no ; do
2721                 if test "$enableval" = "$ol_val" ; then
2722                         ol_arg="$ol_val"
2723                 fi
2724         done
2725         if test "$ol_arg" = "invalid" ; then
2726                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2727 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2728    { (exit 1); exit 1; }; }
2729         fi
2730         ol_enable_slapi="$ol_arg"
2731
2732 else
2733         ol_enable_slapi=no
2734 fi;
2735 # end --enable-slapi
2736 # OpenLDAP --enable-slp
2737
2738         # Check whether --enable-slp or --disable-slp was given.
2739 if test "${enable_slp+set}" = set; then
2740   enableval="$enable_slp"
2741
2742         ol_arg=invalid
2743         for ol_val in auto yes no ; do
2744                 if test "$enableval" = "$ol_val" ; then
2745                         ol_arg="$ol_val"
2746                 fi
2747         done
2748         if test "$ol_arg" = "invalid" ; then
2749                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2750 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2751    { (exit 1); exit 1; }; }
2752         fi
2753         ol_enable_slp="$ol_arg"
2754
2755 else
2756         ol_enable_slp=no
2757 fi;
2758 # end --enable-slp
2759 # OpenLDAP --enable-wrappers
2760
2761         # Check whether --enable-wrappers or --disable-wrappers was given.
2762 if test "${enable_wrappers+set}" = set; then
2763   enableval="$enable_wrappers"
2764
2765         ol_arg=invalid
2766         for ol_val in auto yes no ; do
2767                 if test "$enableval" = "$ol_val" ; then
2768                         ol_arg="$ol_val"
2769                 fi
2770         done
2771         if test "$ol_arg" = "invalid" ; then
2772                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2773 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2774    { (exit 1); exit 1; }; }
2775         fi
2776         ol_enable_wrappers="$ol_arg"
2777
2778 else
2779         ol_enable_wrappers=no
2780 fi;
2781 # end --enable-wrappers
2782
2783 Backends="bdb \
2784         dnssrv \
2785         hdb \
2786         ldap \
2787         meta \
2788         monitor \
2789         ndb \
2790         null \
2791         passwd \
2792         perl \
2793         relay \
2794         shell \
2795         sock \
2796         sql"
2797
2798 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2799 if test "${enable_xxslapbackends+set}" = set; then
2800   enableval="$enable_xxslapbackends"
2801
2802 fi;
2803
2804 # OpenLDAP --enable-backends
2805
2806         # Check whether --enable-backends or --disable-backends was given.
2807 if test "${enable_backends+set}" = set; then
2808   enableval="$enable_backends"
2809
2810         ol_arg=invalid
2811         for ol_val in no yes mod ; do
2812                 if test "$enableval" = "$ol_val" ; then
2813                         ol_arg="$ol_val"
2814                 fi
2815         done
2816         if test "$ol_arg" = "invalid" ; then
2817                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2818 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2819    { (exit 1); exit 1; }; }
2820         fi
2821         ol_enable_backends="$ol_arg"
2822
2823 fi;
2824 # end --enable-backends
2825 # OpenLDAP --enable-bdb
2826
2827         # Check whether --enable-bdb or --disable-bdb was given.
2828 if test "${enable_bdb+set}" = set; then
2829   enableval="$enable_bdb"
2830
2831         ol_arg=invalid
2832         for ol_val in no yes mod ; do
2833                 if test "$enableval" = "$ol_val" ; then
2834                         ol_arg="$ol_val"
2835                 fi
2836         done
2837         if test "$ol_arg" = "invalid" ; then
2838                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2839 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2840    { (exit 1); exit 1; }; }
2841         fi
2842         ol_enable_bdb="$ol_arg"
2843
2844 else
2845         ol_enable_bdb=${ol_enable_backends:-yes}
2846 fi;
2847 # end --enable-bdb
2848 # OpenLDAP --enable-dnssrv
2849
2850         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2851 if test "${enable_dnssrv+set}" = set; then
2852   enableval="$enable_dnssrv"
2853
2854         ol_arg=invalid
2855         for ol_val in no yes mod ; do
2856                 if test "$enableval" = "$ol_val" ; then
2857                         ol_arg="$ol_val"
2858                 fi
2859         done
2860         if test "$ol_arg" = "invalid" ; then
2861                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2862 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2863    { (exit 1); exit 1; }; }
2864         fi
2865         ol_enable_dnssrv="$ol_arg"
2866
2867 else
2868         ol_enable_dnssrv=${ol_enable_backends:-no}
2869 fi;
2870 # end --enable-dnssrv
2871 # OpenLDAP --enable-hdb
2872
2873         # Check whether --enable-hdb or --disable-hdb was given.
2874 if test "${enable_hdb+set}" = set; then
2875   enableval="$enable_hdb"
2876
2877         ol_arg=invalid
2878         for ol_val in no yes mod ; do
2879                 if test "$enableval" = "$ol_val" ; then
2880                         ol_arg="$ol_val"
2881                 fi
2882         done
2883         if test "$ol_arg" = "invalid" ; then
2884                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2885 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2886    { (exit 1); exit 1; }; }
2887         fi
2888         ol_enable_hdb="$ol_arg"
2889
2890 else
2891         ol_enable_hdb=${ol_enable_backends:-yes}
2892 fi;
2893 # end --enable-hdb
2894 # OpenLDAP --enable-ldap
2895
2896         # Check whether --enable-ldap or --disable-ldap was given.
2897 if test "${enable_ldap+set}" = set; then
2898   enableval="$enable_ldap"
2899
2900         ol_arg=invalid
2901         for ol_val in no yes mod ; do
2902                 if test "$enableval" = "$ol_val" ; then
2903                         ol_arg="$ol_val"
2904                 fi
2905         done
2906         if test "$ol_arg" = "invalid" ; then
2907                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2908 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2909    { (exit 1); exit 1; }; }
2910         fi
2911         ol_enable_ldap="$ol_arg"
2912
2913 else
2914         ol_enable_ldap=${ol_enable_backends:-no}
2915 fi;
2916 # end --enable-ldap
2917 # OpenLDAP --enable-meta
2918
2919         # Check whether --enable-meta or --disable-meta was given.
2920 if test "${enable_meta+set}" = set; then
2921   enableval="$enable_meta"
2922
2923         ol_arg=invalid
2924         for ol_val in no yes mod ; do
2925                 if test "$enableval" = "$ol_val" ; then
2926                         ol_arg="$ol_val"
2927                 fi
2928         done
2929         if test "$ol_arg" = "invalid" ; then
2930                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2931 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2932    { (exit 1); exit 1; }; }
2933         fi
2934         ol_enable_meta="$ol_arg"
2935
2936 else
2937         ol_enable_meta=${ol_enable_backends:-no}
2938 fi;
2939 # end --enable-meta
2940 # OpenLDAP --enable-monitor
2941
2942         # Check whether --enable-monitor or --disable-monitor was given.
2943 if test "${enable_monitor+set}" = set; then
2944   enableval="$enable_monitor"
2945
2946         ol_arg=invalid
2947         for ol_val in no yes mod ; do
2948                 if test "$enableval" = "$ol_val" ; then
2949                         ol_arg="$ol_val"
2950                 fi
2951         done
2952         if test "$ol_arg" = "invalid" ; then
2953                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2954 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2955    { (exit 1); exit 1; }; }
2956         fi
2957         ol_enable_monitor="$ol_arg"
2958
2959 else
2960         ol_enable_monitor=${ol_enable_backends:-yes}
2961 fi;
2962 # end --enable-monitor
2963 # OpenLDAP --enable-ndb
2964
2965         # Check whether --enable-ndb or --disable-ndb was given.
2966 if test "${enable_ndb+set}" = set; then
2967   enableval="$enable_ndb"
2968
2969         ol_arg=invalid
2970         for ol_val in no yes mod ; do
2971                 if test "$enableval" = "$ol_val" ; then
2972                         ol_arg="$ol_val"
2973                 fi
2974         done
2975         if test "$ol_arg" = "invalid" ; then
2976                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
2977 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
2978    { (exit 1); exit 1; }; }
2979         fi
2980         ol_enable_ndb="$ol_arg"
2981
2982 else
2983         ol_enable_ndb=${ol_enable_backends:-no}
2984 fi;
2985 # end --enable-ndb
2986 # OpenLDAP --enable-null
2987
2988         # Check whether --enable-null or --disable-null was given.
2989 if test "${enable_null+set}" = set; then
2990   enableval="$enable_null"
2991
2992         ol_arg=invalid
2993         for ol_val in no yes mod ; do
2994                 if test "$enableval" = "$ol_val" ; then
2995                         ol_arg="$ol_val"
2996                 fi
2997         done
2998         if test "$ol_arg" = "invalid" ; then
2999                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3000 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3001    { (exit 1); exit 1; }; }
3002         fi
3003         ol_enable_null="$ol_arg"
3004
3005 else
3006         ol_enable_null=${ol_enable_backends:-no}
3007 fi;
3008 # end --enable-null
3009 # OpenLDAP --enable-passwd
3010
3011         # Check whether --enable-passwd or --disable-passwd was given.
3012 if test "${enable_passwd+set}" = set; then
3013   enableval="$enable_passwd"
3014
3015         ol_arg=invalid
3016         for ol_val in no yes mod ; do
3017                 if test "$enableval" = "$ol_val" ; then
3018                         ol_arg="$ol_val"
3019                 fi
3020         done
3021         if test "$ol_arg" = "invalid" ; then
3022                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3023 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3024    { (exit 1); exit 1; }; }
3025         fi
3026         ol_enable_passwd="$ol_arg"
3027
3028 else
3029         ol_enable_passwd=${ol_enable_backends:-no}
3030 fi;
3031 # end --enable-passwd
3032 # OpenLDAP --enable-perl
3033
3034         # Check whether --enable-perl or --disable-perl was given.
3035 if test "${enable_perl+set}" = set; then
3036   enableval="$enable_perl"
3037
3038         ol_arg=invalid
3039         for ol_val in no yes mod ; do
3040                 if test "$enableval" = "$ol_val" ; then
3041                         ol_arg="$ol_val"
3042                 fi
3043         done
3044         if test "$ol_arg" = "invalid" ; then
3045                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3046 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3047    { (exit 1); exit 1; }; }
3048         fi
3049         ol_enable_perl="$ol_arg"
3050
3051 else
3052         ol_enable_perl=${ol_enable_backends:-no}
3053 fi;
3054 # end --enable-perl
3055 # OpenLDAP --enable-relay
3056
3057         # Check whether --enable-relay or --disable-relay was given.
3058 if test "${enable_relay+set}" = set; then
3059   enableval="$enable_relay"
3060
3061         ol_arg=invalid
3062         for ol_val in no yes mod ; do
3063                 if test "$enableval" = "$ol_val" ; then
3064                         ol_arg="$ol_val"
3065                 fi
3066         done
3067         if test "$ol_arg" = "invalid" ; then
3068                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3069 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3070    { (exit 1); exit 1; }; }
3071         fi
3072         ol_enable_relay="$ol_arg"
3073
3074 else
3075         ol_enable_relay=${ol_enable_backends:-yes}
3076 fi;
3077 # end --enable-relay
3078 # OpenLDAP --enable-shell
3079
3080         # Check whether --enable-shell or --disable-shell was given.
3081 if test "${enable_shell+set}" = set; then
3082   enableval="$enable_shell"
3083
3084         ol_arg=invalid
3085         for ol_val in no yes mod ; do
3086                 if test "$enableval" = "$ol_val" ; then
3087                         ol_arg="$ol_val"
3088                 fi
3089         done
3090         if test "$ol_arg" = "invalid" ; then
3091                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3092 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3093    { (exit 1); exit 1; }; }
3094         fi
3095         ol_enable_shell="$ol_arg"
3096
3097 else
3098         ol_enable_shell=${ol_enable_backends:-no}
3099 fi;
3100 # end --enable-shell
3101 # OpenLDAP --enable-sock
3102
3103         # Check whether --enable-sock or --disable-sock was given.
3104 if test "${enable_sock+set}" = set; then
3105   enableval="$enable_sock"
3106
3107         ol_arg=invalid
3108         for ol_val in no yes mod ; do
3109                 if test "$enableval" = "$ol_val" ; then
3110                         ol_arg="$ol_val"
3111                 fi
3112         done
3113         if test "$ol_arg" = "invalid" ; then
3114                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3115 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3116    { (exit 1); exit 1; }; }
3117         fi
3118         ol_enable_sock="$ol_arg"
3119
3120 else
3121         ol_enable_sock=${ol_enable_backends:-no}
3122 fi;
3123 # end --enable-sock
3124 # OpenLDAP --enable-sql
3125
3126         # Check whether --enable-sql or --disable-sql was given.
3127 if test "${enable_sql+set}" = set; then
3128   enableval="$enable_sql"
3129
3130         ol_arg=invalid
3131         for ol_val in no yes mod ; do
3132                 if test "$enableval" = "$ol_val" ; then
3133                         ol_arg="$ol_val"
3134                 fi
3135         done
3136         if test "$ol_arg" = "invalid" ; then
3137                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3138 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3139    { (exit 1); exit 1; }; }
3140         fi
3141         ol_enable_sql="$ol_arg"
3142
3143 else
3144         ol_enable_sql=${ol_enable_backends:-no}
3145 fi;
3146 # end --enable-sql
3147
3148 Overlays="accesslog \
3149         auditlog \
3150         collect \
3151         constraint \
3152         dds \
3153         dyngroup \
3154         dynlist \
3155         memberof \
3156         ppolicy \
3157         proxycache \
3158         refint \
3159         retcode \
3160         rwm \
3161         seqmod \
3162         syncprov \
3163         translucent \
3164         unique \
3165         valsort"
3166
3167 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3168 if test "${enable_xxslapoverlays+set}" = set; then
3169   enableval="$enable_xxslapoverlays"
3170
3171 fi;
3172
3173 # OpenLDAP --enable-overlays
3174
3175         # Check whether --enable-overlays or --disable-overlays was given.
3176 if test "${enable_overlays+set}" = set; then
3177   enableval="$enable_overlays"
3178
3179         ol_arg=invalid
3180         for ol_val in no yes mod ; do
3181                 if test "$enableval" = "$ol_val" ; then
3182                         ol_arg="$ol_val"
3183                 fi
3184         done
3185         if test "$ol_arg" = "invalid" ; then
3186                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3187 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3188    { (exit 1); exit 1; }; }
3189         fi
3190         ol_enable_overlays="$ol_arg"
3191
3192 fi;
3193 # end --enable-overlays
3194 # OpenLDAP --enable-accesslog
3195
3196         # Check whether --enable-accesslog or --disable-accesslog was given.
3197 if test "${enable_accesslog+set}" = set; then
3198   enableval="$enable_accesslog"
3199
3200         ol_arg=invalid
3201         for ol_val in no yes mod ; do
3202                 if test "$enableval" = "$ol_val" ; then
3203                         ol_arg="$ol_val"
3204                 fi
3205         done
3206         if test "$ol_arg" = "invalid" ; then
3207                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3208 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3209    { (exit 1); exit 1; }; }
3210         fi
3211         ol_enable_accesslog="$ol_arg"
3212
3213 else
3214         ol_enable_accesslog=${ol_enable_overlays:-no}
3215 fi;
3216 # end --enable-accesslog
3217
3218 # OpenLDAP --enable-auditlog
3219
3220         # Check whether --enable-auditlog or --disable-auditlog was given.
3221 if test "${enable_auditlog+set}" = set; then
3222   enableval="$enable_auditlog"
3223
3224         ol_arg=invalid
3225         for ol_val in no yes mod ; do
3226                 if test "$enableval" = "$ol_val" ; then
3227                         ol_arg="$ol_val"
3228                 fi
3229         done
3230         if test "$ol_arg" = "invalid" ; then
3231                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3232 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3233    { (exit 1); exit 1; }; }
3234         fi
3235         ol_enable_auditlog="$ol_arg"
3236
3237 else
3238         ol_enable_auditlog=${ol_enable_overlays:-no}
3239 fi;
3240 # end --enable-auditlog
3241
3242 # OpenLDAP --enable-collect
3243
3244         # Check whether --enable-collect or --disable-collect was given.
3245 if test "${enable_collect+set}" = set; then
3246   enableval="$enable_collect"
3247
3248         ol_arg=invalid
3249         for ol_val in no yes mod ; do
3250                 if test "$enableval" = "$ol_val" ; then
3251                         ol_arg="$ol_val"
3252                 fi
3253         done
3254         if test "$ol_arg" = "invalid" ; then
3255                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3256 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3257    { (exit 1); exit 1; }; }
3258         fi
3259         ol_enable_collect="$ol_arg"
3260
3261 else
3262         ol_enable_collect=${ol_enable_overlays:-no}
3263 fi;
3264 # end --enable-collect
3265
3266 # OpenLDAP --enable-constraint
3267
3268         # Check whether --enable-constraint or --disable-constraint was given.
3269 if test "${enable_constraint+set}" = set; then
3270   enableval="$enable_constraint"
3271
3272         ol_arg=invalid
3273         for ol_val in no yes mod ; do
3274                 if test "$enableval" = "$ol_val" ; then
3275                         ol_arg="$ol_val"
3276                 fi
3277         done
3278         if test "$ol_arg" = "invalid" ; then
3279                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3280 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3281    { (exit 1); exit 1; }; }
3282         fi
3283         ol_enable_constraint="$ol_arg"
3284
3285 else
3286         ol_enable_constraint=${ol_enable_overlays:-no}
3287 fi;
3288 # end --enable-constraint
3289
3290 # OpenLDAP --enable-dds
3291
3292         # Check whether --enable-dds or --disable-dds was given.
3293 if test "${enable_dds+set}" = set; then
3294   enableval="$enable_dds"
3295
3296         ol_arg=invalid
3297         for ol_val in no yes mod ; do
3298                 if test "$enableval" = "$ol_val" ; then
3299                         ol_arg="$ol_val"
3300                 fi
3301         done
3302         if test "$ol_arg" = "invalid" ; then
3303                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3304 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3305    { (exit 1); exit 1; }; }
3306         fi
3307         ol_enable_dds="$ol_arg"
3308
3309 else
3310         ol_enable_dds=${ol_enable_overlays:-no}
3311 fi;
3312 # end --enable-dds
3313
3314 # OpenLDAP --enable-dyngroup
3315
3316         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3317 if test "${enable_dyngroup+set}" = set; then
3318   enableval="$enable_dyngroup"
3319
3320         ol_arg=invalid
3321         for ol_val in no yes mod ; do
3322                 if test "$enableval" = "$ol_val" ; then
3323                         ol_arg="$ol_val"
3324                 fi
3325         done
3326         if test "$ol_arg" = "invalid" ; then
3327                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3328 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3329    { (exit 1); exit 1; }; }
3330         fi
3331         ol_enable_dyngroup="$ol_arg"
3332
3333 else
3334         ol_enable_dyngroup=${ol_enable_overlays:-no}
3335 fi;
3336 # end --enable-dyngroup
3337
3338 # OpenLDAP --enable-dynlist
3339
3340         # Check whether --enable-dynlist or --disable-dynlist was given.
3341 if test "${enable_dynlist+set}" = set; then
3342   enableval="$enable_dynlist"
3343
3344         ol_arg=invalid
3345         for ol_val in no yes mod ; do
3346                 if test "$enableval" = "$ol_val" ; then
3347                         ol_arg="$ol_val"
3348                 fi
3349         done
3350         if test "$ol_arg" = "invalid" ; then
3351                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3352 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3353    { (exit 1); exit 1; }; }
3354         fi
3355         ol_enable_dynlist="$ol_arg"
3356
3357 else
3358         ol_enable_dynlist=${ol_enable_overlays:-no}
3359 fi;
3360 # end --enable-dynlist
3361
3362 # OpenLDAP --enable-memberof
3363
3364         # Check whether --enable-memberof or --disable-memberof was given.
3365 if test "${enable_memberof+set}" = set; then
3366   enableval="$enable_memberof"
3367
3368         ol_arg=invalid
3369         for ol_val in no yes mod ; do
3370                 if test "$enableval" = "$ol_val" ; then
3371                         ol_arg="$ol_val"
3372                 fi
3373         done
3374         if test "$ol_arg" = "invalid" ; then
3375                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3376 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3377    { (exit 1); exit 1; }; }
3378         fi
3379         ol_enable_memberof="$ol_arg"
3380
3381 else
3382         ol_enable_memberof=${ol_enable_overlays:-no}
3383 fi;
3384 # end --enable-memberof
3385
3386 # OpenLDAP --enable-ppolicy
3387
3388         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3389 if test "${enable_ppolicy+set}" = set; then
3390   enableval="$enable_ppolicy"
3391
3392         ol_arg=invalid
3393         for ol_val in no yes mod ; do
3394                 if test "$enableval" = "$ol_val" ; then
3395                         ol_arg="$ol_val"
3396                 fi
3397         done
3398         if test "$ol_arg" = "invalid" ; then
3399                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3400 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3401    { (exit 1); exit 1; }; }
3402         fi
3403         ol_enable_ppolicy="$ol_arg"
3404
3405 else
3406         ol_enable_ppolicy=${ol_enable_overlays:-no}
3407 fi;
3408 # end --enable-ppolicy
3409
3410 # OpenLDAP --enable-proxycache
3411
3412         # Check whether --enable-proxycache or --disable-proxycache was given.
3413 if test "${enable_proxycache+set}" = set; then
3414   enableval="$enable_proxycache"
3415
3416         ol_arg=invalid
3417         for ol_val in no yes mod ; do
3418                 if test "$enableval" = "$ol_val" ; then
3419                         ol_arg="$ol_val"
3420                 fi
3421         done
3422         if test "$ol_arg" = "invalid" ; then
3423                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3424 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3425    { (exit 1); exit 1; }; }
3426         fi
3427         ol_enable_proxycache="$ol_arg"
3428
3429 else
3430         ol_enable_proxycache=${ol_enable_overlays:-no}
3431 fi;
3432 # end --enable-proxycache
3433
3434 # OpenLDAP --enable-refint
3435
3436         # Check whether --enable-refint or --disable-refint was given.
3437 if test "${enable_refint+set}" = set; then
3438   enableval="$enable_refint"
3439
3440         ol_arg=invalid
3441         for ol_val in no yes mod ; do
3442                 if test "$enableval" = "$ol_val" ; then
3443                         ol_arg="$ol_val"
3444                 fi
3445         done
3446         if test "$ol_arg" = "invalid" ; then
3447                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3448 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3449    { (exit 1); exit 1; }; }
3450         fi
3451         ol_enable_refint="$ol_arg"
3452
3453 else
3454         ol_enable_refint=${ol_enable_overlays:-no}
3455 fi;
3456 # end --enable-refint
3457
3458 # OpenLDAP --enable-retcode
3459
3460         # Check whether --enable-retcode or --disable-retcode was given.
3461 if test "${enable_retcode+set}" = set; then
3462   enableval="$enable_retcode"
3463
3464         ol_arg=invalid
3465         for ol_val in no yes mod ; do
3466                 if test "$enableval" = "$ol_val" ; then
3467                         ol_arg="$ol_val"
3468                 fi
3469         done
3470         if test "$ol_arg" = "invalid" ; then
3471                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3472 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3473    { (exit 1); exit 1; }; }
3474         fi
3475         ol_enable_retcode="$ol_arg"
3476
3477 else
3478         ol_enable_retcode=${ol_enable_overlays:-no}
3479 fi;
3480 # end --enable-retcode
3481
3482 # OpenLDAP --enable-rwm
3483
3484         # Check whether --enable-rwm or --disable-rwm was given.
3485 if test "${enable_rwm+set}" = set; then
3486   enableval="$enable_rwm"
3487
3488         ol_arg=invalid
3489         for ol_val in no yes mod ; do
3490                 if test "$enableval" = "$ol_val" ; then
3491                         ol_arg="$ol_val"
3492                 fi
3493         done
3494         if test "$ol_arg" = "invalid" ; then
3495                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3496 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3497    { (exit 1); exit 1; }; }
3498         fi
3499         ol_enable_rwm="$ol_arg"
3500
3501 else
3502         ol_enable_rwm=${ol_enable_overlays:-no}
3503 fi;
3504 # end --enable-rwm
3505
3506 # OpenLDAP --enable-seqmod
3507
3508         # Check whether --enable-seqmod or --disable-seqmod was given.
3509 if test "${enable_seqmod+set}" = set; then
3510   enableval="$enable_seqmod"
3511
3512         ol_arg=invalid
3513         for ol_val in no yes mod ; do
3514                 if test "$enableval" = "$ol_val" ; then
3515                         ol_arg="$ol_val"
3516                 fi
3517         done
3518         if test "$ol_arg" = "invalid" ; then
3519                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3520 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3521    { (exit 1); exit 1; }; }
3522         fi
3523         ol_enable_seqmod="$ol_arg"
3524
3525 else
3526         ol_enable_seqmod=${ol_enable_overlays:-yes}
3527 fi;
3528 # end --enable-seqmod
3529
3530 # OpenLDAP --enable-syncprov
3531
3532         # Check whether --enable-syncprov or --disable-syncprov was given.
3533 if test "${enable_syncprov+set}" = set; then
3534   enableval="$enable_syncprov"
3535
3536         ol_arg=invalid
3537         for ol_val in no yes mod ; do
3538                 if test "$enableval" = "$ol_val" ; then
3539                         ol_arg="$ol_val"
3540                 fi
3541         done
3542         if test "$ol_arg" = "invalid" ; then
3543                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3544 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3545    { (exit 1); exit 1; }; }
3546         fi
3547         ol_enable_syncprov="$ol_arg"
3548
3549 else
3550         ol_enable_syncprov=${ol_enable_overlays:-yes}
3551 fi;
3552 # end --enable-syncprov
3553
3554 # OpenLDAP --enable-translucent
3555
3556         # Check whether --enable-translucent or --disable-translucent was given.
3557 if test "${enable_translucent+set}" = set; then
3558   enableval="$enable_translucent"
3559
3560         ol_arg=invalid
3561         for ol_val in no yes mod ; do
3562                 if test "$enableval" = "$ol_val" ; then
3563                         ol_arg="$ol_val"
3564                 fi
3565         done
3566         if test "$ol_arg" = "invalid" ; then
3567                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3568 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3569    { (exit 1); exit 1; }; }
3570         fi
3571         ol_enable_translucent="$ol_arg"
3572
3573 else
3574         ol_enable_translucent=${ol_enable_overlays:-no}
3575 fi;
3576 # end --enable-translucent
3577
3578 # OpenLDAP --enable-unique
3579
3580         # Check whether --enable-unique or --disable-unique was given.
3581 if test "${enable_unique+set}" = set; then
3582   enableval="$enable_unique"
3583
3584         ol_arg=invalid
3585         for ol_val in no yes mod ; do
3586                 if test "$enableval" = "$ol_val" ; then
3587                         ol_arg="$ol_val"
3588                 fi
3589         done
3590         if test "$ol_arg" = "invalid" ; then
3591                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3592 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3593    { (exit 1); exit 1; }; }
3594         fi
3595         ol_enable_unique="$ol_arg"
3596
3597 else
3598         ol_enable_unique=${ol_enable_overlays:-no}
3599 fi;
3600 # end --enable-unique
3601
3602 # OpenLDAP --enable-valsort
3603
3604         # Check whether --enable-valsort or --disable-valsort was given.
3605 if test "${enable_valsort+set}" = set; then
3606   enableval="$enable_valsort"
3607
3608         ol_arg=invalid
3609         for ol_val in no yes mod ; do
3610                 if test "$enableval" = "$ol_val" ; then
3611                         ol_arg="$ol_val"
3612                 fi
3613         done
3614         if test "$ol_arg" = "invalid" ; then
3615                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3616 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3617    { (exit 1); exit 1; }; }
3618         fi
3619         ol_enable_valsort="$ol_arg"
3620
3621 else
3622         ol_enable_valsort=${ol_enable_overlays:-no}
3623 fi;
3624 # end --enable-valsort
3625
3626
3627 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3628 if test "${enable_xxliboptions+set}" = set; then
3629   enableval="$enable_xxliboptions"
3630
3631 fi;
3632 # Check whether --enable-static or --disable-static was given.
3633 if test "${enable_static+set}" = set; then
3634   enableval="$enable_static"
3635   p=${PACKAGE-default}
3636     case $enableval in
3637     yes) enable_static=yes ;;
3638     no) enable_static=no ;;
3639     *)
3640      enable_static=no
3641       # Look at the argument we got.  We use all the common list separators.
3642       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3643       for pkg in $enableval; do
3644         IFS="$lt_save_ifs"
3645         if test "X$pkg" = "X$p"; then
3646           enable_static=yes
3647         fi
3648       done
3649       IFS="$lt_save_ifs"
3650       ;;
3651     esac
3652 else
3653   enable_static=yes
3654 fi;
3655
3656 # Check whether --enable-shared or --disable-shared was given.
3657 if test "${enable_shared+set}" = set; then
3658   enableval="$enable_shared"
3659   p=${PACKAGE-default}
3660     case $enableval in
3661     yes) enable_shared=yes ;;
3662     no) enable_shared=no ;;
3663     *)
3664       enable_shared=no
3665       # Look at the argument we got.  We use all the common list separators.
3666       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3667       for pkg in $enableval; do
3668         IFS="$lt_save_ifs"
3669         if test "X$pkg" = "X$p"; then
3670           enable_shared=yes
3671         fi
3672       done
3673       IFS="$lt_save_ifs"
3674       ;;
3675     esac
3676 else
3677   enable_shared=yes
3678 fi;
3679
3680
3681
3682 # validate options
3683 if test $ol_enable_slapd = no ; then
3684                 if test $ol_enable_slapi = yes ; then
3685                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3686 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3687         fi
3688         case "$ol_enable_backends" in yes | mod)
3689                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3690 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3691         esac
3692         for i in $Backends; do
3693                 eval "ol_tmp=\$ol_enable_$i"
3694                 if test $ol_tmp != no ; then
3695                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3696 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3697                         eval "ol_enable_$i=no"
3698                 fi
3699         done
3700         if test $ol_enable_modules = yes ; then
3701                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3702 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3703         fi
3704         if test $ol_enable_wrappers = yes ; then
3705                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3706 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3707         fi
3708         if test $ol_enable_rlookups = yes ; then
3709                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3710 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3711         fi
3712         if test $ol_enable_dynacl = yes ; then
3713                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3714 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3715         fi
3716         if test $ol_enable_aci != no ; then
3717                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3718 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3719         fi
3720         if test $ol_enable_rewrite = yes ; then
3721                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3722 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3723         fi
3724                 case "$ol_enable_overlays" in yes | mod)
3725                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3726 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3727         esac
3728         for i in $Overlays; do
3729                 eval "ol_tmp=\$ol_enable_$i"
3730                 if test $ol_tmp != no ; then
3731                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3732 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3733                         eval "ol_enable_$i=no"
3734                 fi
3735         done
3736
3737         # force settings to no
3738         ol_enable_slapi=no
3739
3740         ol_enable_backends=
3741         ol_enable_overlays=
3742         ol_enable_modules=no
3743         ol_enable_rlookups=no
3744         ol_enable_dynacl=no
3745         ol_enable_aci=no
3746         ol_enable_wrappers=no
3747
3748         ol_enable_rewrite=no
3749
3750 elif test $ol_enable_modules != yes &&
3751         test $ol_enable_bdb = no &&
3752         test $ol_enable_dnssrv = no &&
3753         test $ol_enable_hdb = no &&
3754         test $ol_enable_ldap = no &&
3755         test $ol_enable_meta = no &&
3756         test $ol_enable_monitor = no &&
3757         test $ol_enable_ndb = no &&
3758         test $ol_enable_null = no &&
3759         test $ol_enable_passwd = no &&
3760         test $ol_enable_perl = no &&
3761         test $ol_enable_relay = no &&
3762         test $ol_enable_shell = no &&
3763         test $ol_enable_sock = no &&
3764         test $ol_enable_sql = no ; then
3765
3766         if test $ol_enable_slapd = yes ; then
3767                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3768 echo "$as_me: error: slapd requires a backend" >&2;}
3769    { (exit 1); exit 1; }; }
3770         else
3771                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3772 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3773                 ol_enable_slapd=no
3774         fi
3775 fi
3776
3777 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3778         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3779 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3780    { (exit 1); exit 1; }; }
3781 fi
3782
3783 if test $ol_enable_lmpasswd = yes ; then
3784         if test $ol_with_tls = no ; then
3785                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3786 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3787    { (exit 1); exit 1; }; }
3788         fi
3789 fi
3790
3791 if test $ol_enable_spasswd = yes ; then
3792         if test $ol_with_cyrus_sasl = no ; then
3793                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3794 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3795    { (exit 1); exit 1; }; }
3796         fi
3797         ol_with_cyrus_sasl=yes
3798 fi
3799
3800 echo "$as_me:$LINENO: result: done" >&5
3801 echo "${ECHO_T}done" >&6
3802
3803 LDAP_LIBS=
3804 BDB_LIBS=
3805 SLAPD_NDB_LIBS=
3806 SLAPD_NDB_INCS=
3807 LTHREAD_LIBS=
3808 LUTIL_LIBS=
3809
3810 SLAPD_LIBS=
3811
3812 BUILD_SLAPD=no
3813
3814 BUILD_THREAD=no
3815
3816 BUILD_SLAPI=no
3817 SLAPD_SLAPI_DEPEND=
3818
3819 BUILD_BDB=no
3820 BUILD_DNSSRV=no
3821 BUILD_HDB=no
3822 BUILD_LDAP=no
3823 BUILD_META=no
3824 BUILD_MONITOR=no
3825 BUILD_NDB=no
3826 BUILD_NULL=no
3827 BUILD_PASSWD=no
3828 BUILD_PERL=no
3829 BUILD_RELAY=no
3830 BUILD_SHELL=no
3831 BUILD_SOCK=no
3832 BUILD_SQL=no
3833
3834 BUILD_ACCESSLOG=no
3835 BUILD_AUDITLOG=no
3836 BUILD_CONSTRAINT=no
3837 BUILD_DDS=no
3838 BUILD_DENYOP=no
3839 BUILD_DYNGROUP=no
3840 BUILD_DYNLIST=no
3841 BUILD_LASTMOD=no
3842 BUILD_MEMBEROF=no
3843 BUILD_PPOLICY=no
3844 BUILD_PROXYCACHE=no
3845 BUILD_REFINT=no
3846 BUILD_RETCODE=no
3847 BUILD_RWM=no
3848 BUILD_SEQMOD=no
3849 BUILD_SYNCPROV=no
3850 BUILD_TRANSLUCENT=no
3851 BUILD_UNIQUE=no
3852 BUILD_VALSORT=no
3853
3854 SLAPD_STATIC_OVERLAYS=
3855 SLAPD_DYNAMIC_OVERLAYS=
3856
3857 SLAPD_MODULES_LDFLAGS=
3858 SLAPD_MODULES_CPPFLAGS=
3859
3860 SLAPD_STATIC_BACKENDS=back-ldif
3861 SLAPD_DYNAMIC_BACKENDS=
3862
3863 SLAPD_PERL_LDFLAGS=
3864 MOD_PERL_LDFLAGS=
3865 PERL_CPPFLAGS=
3866
3867 SLAPD_SQL_LDFLAGS=
3868 SLAPD_SQL_LIBS=
3869 SLAPD_SQL_INCLUDES=
3870
3871 KRB4_LIBS=
3872 KRB5_LIBS=
3873 SASL_LIBS=
3874 TLS_LIBS=
3875 MODULES_LIBS=
3876 SLAPI_LIBS=
3877 LIBSLAPI=
3878 LIBSLAPITOOLS=
3879 AUTH_LIBS=
3880 ICU_LIBS=
3881
3882 SLAPD_SLP_LIBS=
3883 SLAPD_GMP_LIBS=
3884
3885
3886
3887 cat >>confdefs.h <<\_ACEOF
3888 #define HAVE_MKVERSION 1
3889 _ACEOF
3890
3891
3892
3893
3894 ol_aix_threads=no
3895 case "$target" in
3896 *-*-aix*)       if test -z "$CC" ; then
3897                 case "$ol_with_threads" in
3898                 auto | yes |  posix) ol_aix_threads=yes ;;
3899                 esac
3900         fi
3901 ;;
3902 esac
3903
3904 if test $ol_aix_threads = yes ; then
3905         if test -z "${CC}" ; then
3906                 for ac_prog in cc_r xlc_r cc
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_CC+set}" = set; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   if test -n "$CC"; then
3916   ac_cv_prog_CC="$CC" # 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_CC="$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 CC=$ac_cv_prog_CC
3935 if test -n "$CC"; then
3936   echo "$as_me:$LINENO: result: $CC" >&5
3937 echo "${ECHO_T}$CC" >&6
3938 else
3939   echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3941 fi
3942
3943   test -n "$CC" && break
3944 done
3945
3946
3947                 if test "$CC" = cc ; then
3948                                                 if test $ol_with_threads != auto ; then
3949                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3950 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3951    { (exit 1); exit 1; }; }
3952                         else
3953                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3954 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3955                         fi
3956                         ol_with_threads=no
3957                 fi
3958         fi
3959
3960         case ${CC} in cc_r | xlc_r)
3961                 ol_with_threads=posix
3962                 ol_cv_pthread_create=yes
3963                 ;;
3964         esac
3965 fi
3966
3967 if test -z "${CC}"; then
3968         for ac_prog in cc gcc
3969 do
3970   # Extract the first word of "$ac_prog", so it can be a program name with args.
3971 set dummy $ac_prog; ac_word=$2
3972 echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3974 if test "${ac_cv_prog_CC+set}" = set; then
3975   echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977   if test -n "$CC"; then
3978   ac_cv_prog_CC="$CC" # Let the user override the test.
3979 else
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH
3982 do
3983   IFS=$as_save_IFS
3984   test -z "$as_dir" && as_dir=.
3985   for ac_exec_ext in '' $ac_executable_extensions; do
3986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987     ac_cv_prog_CC="$ac_prog"
3988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3989     break 2
3990   fi
3991 done
3992 done
3993
3994 fi
3995 fi
3996 CC=$ac_cv_prog_CC
3997 if test -n "$CC"; then
3998   echo "$as_me:$LINENO: result: $CC" >&5
3999 echo "${ECHO_T}$CC" >&6
4000 else
4001   echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6
4003 fi
4004
4005   test -n "$CC" && break
4006 done
4007 test -n "$CC" || CC="missing"
4008
4009
4010         if test "${CC}" = "missing" ; then
4011                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4012 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4013    { (exit 1); exit 1; }; }
4014         fi
4015 fi
4016
4017 if test -z "${AR}"; then
4018         for ac_prog in ar gar
4019 do
4020   # Extract the first word of "$ac_prog", so it can be a program name with args.
4021 set dummy $ac_prog; ac_word=$2
4022 echo "$as_me:$LINENO: checking for $ac_word" >&5
4023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4024 if test "${ac_cv_prog_AR+set}" = set; then
4025   echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027   if test -n "$AR"; then
4028   ac_cv_prog_AR="$AR" # Let the user override the test.
4029 else
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4032 do
4033   IFS=$as_save_IFS
4034   test -z "$as_dir" && as_dir=.
4035   for ac_exec_ext in '' $ac_executable_extensions; do
4036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037     ac_cv_prog_AR="$ac_prog"
4038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4039     break 2
4040   fi
4041 done
4042 done
4043
4044 fi
4045 fi
4046 AR=$ac_cv_prog_AR
4047 if test -n "$AR"; then
4048   echo "$as_me:$LINENO: result: $AR" >&5
4049 echo "${ECHO_T}$AR" >&6
4050 else
4051   echo "$as_me:$LINENO: result: no" >&5
4052 echo "${ECHO_T}no" >&6
4053 fi
4054
4055   test -n "$AR" && break
4056 done
4057 test -n "$AR" || AR="missing"
4058
4059
4060         if test "${AR}" = "missing" ; then
4061                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4062 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4063    { (exit 1); exit 1; }; }
4064         fi
4065 fi
4066
4067
4068
4069
4070
4071 # Check whether --enable-fast-install or --disable-fast-install was given.
4072 if test "${enable_fast_install+set}" = set; then
4073   enableval="$enable_fast_install"
4074   p=${PACKAGE-default}
4075     case $enableval in
4076     yes) enable_fast_install=yes ;;
4077     no) enable_fast_install=no ;;
4078     *)
4079       enable_fast_install=no
4080       # Look at the argument we got.  We use all the common list separators.
4081       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4082       for pkg in $enableval; do
4083         IFS="$lt_save_ifs"
4084         if test "X$pkg" = "X$p"; then
4085           enable_fast_install=yes
4086         fi
4087       done
4088       IFS="$lt_save_ifs"
4089       ;;
4090     esac
4091 else
4092   enable_fast_install=yes
4093 fi;
4094
4095 DEPDIR="${am__leading_dot}deps"
4096
4097           ac_config_commands="$ac_config_commands depfiles"
4098
4099
4100 am_make=${MAKE-make}
4101 cat > confinc << 'END'
4102 am__doit:
4103         @echo done
4104 .PHONY: am__doit
4105 END
4106 # If we don't find an include directive, just comment out the code.
4107 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4108 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4109 am__include="#"
4110 am__quote=
4111 _am_result=none
4112 # First try GNU make style include.
4113 echo "include confinc" > confmf
4114 # We grep out `Entering directory' and `Leaving directory'
4115 # messages which can occur if `w' ends up in MAKEFLAGS.
4116 # In particular we don't look at `^make:' because GNU make might
4117 # be invoked under some other name (usually "gmake"), in which
4118 # case it prints its new name instead of `make'.
4119 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4120    am__include=include
4121    am__quote=
4122    _am_result=GNU
4123 fi
4124 # Now try BSD make style include.
4125 if test "$am__include" = "#"; then
4126    echo '.include "confinc"' > confmf
4127    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4128       am__include=.include
4129       am__quote="\""
4130       _am_result=BSD
4131    fi
4132 fi
4133
4134
4135 echo "$as_me:$LINENO: result: $_am_result" >&5
4136 echo "${ECHO_T}$_am_result" >&6
4137 rm -f confinc confmf
4138
4139 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4140 if test "${enable_dependency_tracking+set}" = set; then
4141   enableval="$enable_dependency_tracking"
4142
4143 fi;
4144 if test "x$enable_dependency_tracking" != xno; then
4145   am_depcomp="$ac_aux_dir/depcomp"
4146   AMDEPBACKSLASH='\'
4147 fi
4148
4149
4150 if test "x$enable_dependency_tracking" != xno; then
4151   AMDEP_TRUE=
4152   AMDEP_FALSE='#'
4153 else
4154   AMDEP_TRUE='#'
4155   AMDEP_FALSE=
4156 fi
4157
4158
4159
4160 ac_ext=c
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165 if test -n "$ac_tool_prefix"; then
4166   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4167 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4168 echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4170 if test "${ac_cv_prog_CC+set}" = set; then
4171   echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173   if test -n "$CC"; then
4174   ac_cv_prog_CC="$CC" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4178 do
4179   IFS=$as_save_IFS
4180   test -z "$as_dir" && as_dir=.
4181   for ac_exec_ext in '' $ac_executable_extensions; do
4182   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185     break 2
4186   fi
4187 done
4188 done
4189
4190 fi
4191 fi
4192 CC=$ac_cv_prog_CC
4193 if test -n "$CC"; then
4194   echo "$as_me:$LINENO: result: $CC" >&5
4195 echo "${ECHO_T}$CC" >&6
4196 else
4197   echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4199 fi
4200
4201 fi
4202 if test -z "$ac_cv_prog_CC"; then
4203   ac_ct_CC=$CC
4204   # Extract the first word of "gcc", so it can be a program name with args.
4205 set dummy gcc; ac_word=$2
4206 echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4208 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4209   echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211   if test -n "$ac_ct_CC"; then
4212   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4216 do
4217   IFS=$as_save_IFS
4218   test -z "$as_dir" && as_dir=.
4219   for ac_exec_ext in '' $ac_executable_extensions; do
4220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221     ac_cv_prog_ac_ct_CC="gcc"
4222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223     break 2
4224   fi
4225 done
4226 done
4227
4228 fi
4229 fi
4230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4231 if test -n "$ac_ct_CC"; then
4232   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4233 echo "${ECHO_T}$ac_ct_CC" >&6
4234 else
4235   echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6
4237 fi
4238
4239   CC=$ac_ct_CC
4240 else
4241   CC="$ac_cv_prog_CC"
4242 fi
4243
4244 if test -z "$CC"; then
4245   if test -n "$ac_tool_prefix"; then
4246   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4247 set dummy ${ac_tool_prefix}cc; ac_word=$2
4248 echo "$as_me:$LINENO: checking for $ac_word" >&5
4249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4250 if test "${ac_cv_prog_CC+set}" = set; then
4251   echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253   if test -n "$CC"; then
4254   ac_cv_prog_CC="$CC" # Let the user override the test.
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4258 do
4259   IFS=$as_save_IFS
4260   test -z "$as_dir" && as_dir=.
4261   for ac_exec_ext in '' $ac_executable_extensions; do
4262   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4263     ac_cv_prog_CC="${ac_tool_prefix}cc"
4264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265     break 2
4266   fi
4267 done
4268 done
4269
4270 fi
4271 fi
4272 CC=$ac_cv_prog_CC
4273 if test -n "$CC"; then
4274   echo "$as_me:$LINENO: result: $CC" >&5
4275 echo "${ECHO_T}$CC" >&6
4276 else
4277   echo "$as_me:$LINENO: result: no" >&5
4278 echo "${ECHO_T}no" >&6
4279 fi
4280
4281 fi
4282 if test -z "$ac_cv_prog_CC"; then
4283   ac_ct_CC=$CC
4284   # Extract the first word of "cc", so it can be a program name with args.
4285 set dummy cc; ac_word=$2
4286 echo "$as_me:$LINENO: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4288 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4289   echo $ECHO_N "(cached) $ECHO_C" >&6
4290 else
4291   if test -n "$ac_ct_CC"; then
4292   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4296 do
4297   IFS=$as_save_IFS
4298   test -z "$as_dir" && as_dir=.
4299   for ac_exec_ext in '' $ac_executable_extensions; do
4300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301     ac_cv_prog_ac_ct_CC="cc"
4302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303     break 2
4304   fi
4305 done
4306 done
4307
4308 fi
4309 fi
4310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4311 if test -n "$ac_ct_CC"; then
4312   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4313 echo "${ECHO_T}$ac_ct_CC" >&6
4314 else
4315   echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6
4317 fi
4318
4319   CC=$ac_ct_CC
4320 else
4321   CC="$ac_cv_prog_CC"
4322 fi
4323
4324 fi
4325 if test -z "$CC"; then
4326   # Extract the first word of "cc", so it can be a program name with args.
4327 set dummy cc; ac_word=$2
4328 echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4330 if test "${ac_cv_prog_CC+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   if test -n "$CC"; then
4334   ac_cv_prog_CC="$CC" # Let the user override the test.
4335 else
4336   ac_prog_rejected=no
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4339 do
4340   IFS=$as_save_IFS
4341   test -z "$as_dir" && as_dir=.
4342   for ac_exec_ext in '' $ac_executable_extensions; do
4343   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4344     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4345        ac_prog_rejected=yes
4346        continue
4347      fi
4348     ac_cv_prog_CC="cc"
4349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4350     break 2
4351   fi
4352 done
4353 done
4354
4355 if test $ac_prog_rejected = yes; then
4356   # We found a bogon in the path, so make sure we never use it.
4357   set dummy $ac_cv_prog_CC
4358   shift
4359   if test $# != 0; then
4360     # We chose a different compiler from the bogus one.
4361     # However, it has the same basename, so the bogon will be chosen
4362     # first if we set CC to just the basename; use the full file name.
4363     shift
4364     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4365   fi
4366 fi
4367 fi
4368 fi
4369 CC=$ac_cv_prog_CC
4370 if test -n "$CC"; then
4371   echo "$as_me:$LINENO: result: $CC" >&5
4372 echo "${ECHO_T}$CC" >&6
4373 else
4374   echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6
4376 fi
4377
4378 fi
4379 if test -z "$CC"; then
4380   if test -n "$ac_tool_prefix"; then
4381   for ac_prog in cl
4382   do
4383     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4385 echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4387 if test "${ac_cv_prog_CC+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390   if test -n "$CC"; then
4391   ac_cv_prog_CC="$CC" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396   IFS=$as_save_IFS
4397   test -z "$as_dir" && as_dir=.
4398   for ac_exec_ext in '' $ac_executable_extensions; do
4399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402     break 2
4403   fi
4404 done
4405 done
4406
4407 fi
4408 fi
4409 CC=$ac_cv_prog_CC
4410 if test -n "$CC"; then
4411   echo "$as_me:$LINENO: result: $CC" >&5
4412 echo "${ECHO_T}$CC" >&6
4413 else
4414   echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6
4416 fi
4417
4418     test -n "$CC" && break
4419   done
4420 fi
4421 if test -z "$CC"; then
4422   ac_ct_CC=$CC
4423   for ac_prog in cl
4424 do
4425   # Extract the first word of "$ac_prog", so it can be a program name with args.
4426 set dummy $ac_prog; ac_word=$2
4427 echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432   if test -n "$ac_ct_CC"; then
4433   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438   IFS=$as_save_IFS
4439   test -z "$as_dir" && as_dir=.
4440   for ac_exec_ext in '' $ac_executable_extensions; do
4441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4442     ac_cv_prog_ac_ct_CC="$ac_prog"
4443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444     break 2
4445   fi
4446 done
4447 done
4448
4449 fi
4450 fi
4451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4452 if test -n "$ac_ct_CC"; then
4453   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4454 echo "${ECHO_T}$ac_ct_CC" >&6
4455 else
4456   echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6
4458 fi
4459
4460   test -n "$ac_ct_CC" && break
4461 done
4462
4463   CC=$ac_ct_CC
4464 fi
4465
4466 fi
4467
4468
4469 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4470 See \`config.log' for more details." >&5
4471 echo "$as_me: error: no acceptable C compiler found in \$PATH
4472 See \`config.log' for more details." >&2;}
4473    { (exit 1); exit 1; }; }
4474
4475 # Provide some information about the compiler.
4476 echo "$as_me:$LINENO:" \
4477      "checking for C compiler version" >&5
4478 ac_compiler=`set X $ac_compile; echo $2`
4479 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4480   (eval $ac_compiler --version </dev/null >&5) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }
4484 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4485   (eval $ac_compiler -v </dev/null >&5) 2>&5
4486   ac_status=$?
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); }
4489 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4490   (eval $ac_compiler -V </dev/null >&5) 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }
4494
4495 cat >conftest.$ac_ext <<_ACEOF
4496 /* confdefs.h.  */
4497 _ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h.  */
4501
4502 int
4503 main ()
4504 {
4505
4506   ;
4507   return 0;
4508 }
4509 _ACEOF
4510 ac_clean_files_save=$ac_clean_files
4511 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4512 # Try to create an executable without -o first, disregard a.out.
4513 # It will help us diagnose broken compilers, and finding out an intuition
4514 # of exeext.
4515 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4516 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4517 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4518 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4519   (eval $ac_link_default) 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }; then
4523   # Find the output, starting from the most likely.  This scheme is
4524 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4525 # resort.
4526
4527 # Be careful to initialize this variable, since it used to be cached.
4528 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4529 ac_cv_exeext=
4530 # b.out is created by i960 compilers.
4531 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4532 do
4533   test -f "$ac_file" || continue
4534   case $ac_file in
4535     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4536         ;;
4537     conftest.$ac_ext )
4538         # This is the source file.
4539         ;;
4540     [ab].out )
4541         # We found the default executable, but exeext='' is most
4542         # certainly right.
4543         break;;
4544     *.* )
4545         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4546         # FIXME: I believe we export ac_cv_exeext for Libtool,
4547         # but it would be cool to find out if it's true.  Does anybody
4548         # maintain Libtool? --akim.
4549         export ac_cv_exeext
4550         break;;
4551     * )
4552         break;;
4553   esac
4554 done
4555 else
4556   echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4558
4559 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4560 See \`config.log' for more details." >&5
4561 echo "$as_me: error: C compiler cannot create executables
4562 See \`config.log' for more details." >&2;}
4563    { (exit 77); exit 77; }; }
4564 fi
4565
4566 ac_exeext=$ac_cv_exeext
4567 echo "$as_me:$LINENO: result: $ac_file" >&5
4568 echo "${ECHO_T}$ac_file" >&6
4569
4570 # Check the compiler produces executables we can run.  If not, either
4571 # the compiler is broken, or we cross compile.
4572 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4573 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4574 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4575 # If not cross compiling, check that we can run a simple program.
4576 if test "$cross_compiling" != yes; then
4577   if { ac_try='./$ac_file'
4578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579   (eval $ac_try) 2>&5
4580   ac_status=$?
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); }; }; then
4583     cross_compiling=no
4584   else
4585     if test "$cross_compiling" = maybe; then
4586         cross_compiling=yes
4587     else
4588         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4589 If you meant to cross compile, use \`--host'.
4590 See \`config.log' for more details." >&5
4591 echo "$as_me: error: cannot run C compiled programs.
4592 If you meant to cross compile, use \`--host'.
4593 See \`config.log' for more details." >&2;}
4594    { (exit 1); exit 1; }; }
4595     fi
4596   fi
4597 fi
4598 echo "$as_me:$LINENO: result: yes" >&5
4599 echo "${ECHO_T}yes" >&6
4600
4601 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4602 ac_clean_files=$ac_clean_files_save
4603 # Check the compiler produces executables we can run.  If not, either
4604 # the compiler is broken, or we cross compile.
4605 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4606 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4607 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4608 echo "${ECHO_T}$cross_compiling" >&6
4609
4610 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4611 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4613   (eval $ac_link) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; then
4617   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4618 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4619 # work properly (i.e., refer to `conftest.exe'), while it won't with
4620 # `rm'.
4621 for ac_file in conftest.exe conftest conftest.*; do
4622   test -f "$ac_file" || continue
4623   case $ac_file in
4624     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4625     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4626           export ac_cv_exeext
4627           break;;
4628     * ) break;;
4629   esac
4630 done
4631 else
4632   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4633 See \`config.log' for more details." >&5
4634 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4635 See \`config.log' for more details." >&2;}
4636    { (exit 1); exit 1; }; }
4637 fi
4638
4639 rm -f conftest$ac_cv_exeext
4640 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4641 echo "${ECHO_T}$ac_cv_exeext" >&6
4642
4643 rm -f conftest.$ac_ext
4644 EXEEXT=$ac_cv_exeext
4645 ac_exeext=$EXEEXT
4646 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4647 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4648 if test "${ac_cv_objext+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.o conftest.obj
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668   (eval $ac_compile) 2>&5
4669   ac_status=$?
4670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671   (exit $ac_status); }; then
4672   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4673   case $ac_file in
4674     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4675     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4676        break;;
4677   esac
4678 done
4679 else
4680   echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4682
4683 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4684 See \`config.log' for more details." >&5
4685 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4686 See \`config.log' for more details." >&2;}
4687    { (exit 1); exit 1; }; }
4688 fi
4689
4690 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4691 fi
4692 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4693 echo "${ECHO_T}$ac_cv_objext" >&6
4694 OBJEXT=$ac_cv_objext
4695 ac_objext=$OBJEXT
4696 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4697 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4698 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4699   echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701   cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h.  */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h.  */
4707
4708 int
4709 main ()
4710 {
4711 #ifndef __GNUC__
4712        choke me
4713 #endif
4714
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.$ac_objext
4720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721   (eval $ac_compile) 2>conftest.er1
4722   ac_status=$?
4723   grep -v '^ *+' conftest.er1 >conftest.err
4724   rm -f conftest.er1
4725   cat conftest.err >&5
4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); } &&
4728          { ac_try='test -z "$ac_c_werror_flag"
4729                          || test ! -s conftest.err'
4730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731   (eval $ac_try) 2>&5
4732   ac_status=$?
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); }; } &&
4735          { ac_try='test -s conftest.$ac_objext'
4736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737   (eval $ac_try) 2>&5
4738   ac_status=$?
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); }; }; then
4741   ac_compiler_gnu=yes
4742 else
4743   echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4745
4746 ac_compiler_gnu=no
4747 fi
4748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4749 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4750
4751 fi
4752 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4753 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4754 GCC=`test $ac_compiler_gnu = yes && echo yes`
4755 ac_test_CFLAGS=${CFLAGS+set}
4756 ac_save_CFLAGS=$CFLAGS
4757 CFLAGS="-g"
4758 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4759 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4760 if test "${ac_cv_prog_cc_g+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h.  */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h.  */
4769
4770 int
4771 main ()
4772 {
4773
4774   ;
4775   return 0;
4776 }
4777 _ACEOF
4778 rm -f conftest.$ac_objext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4780   (eval $ac_compile) 2>conftest.er1
4781   ac_status=$?
4782   grep -v '^ *+' conftest.er1 >conftest.err
4783   rm -f conftest.er1
4784   cat conftest.err >&5
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); } &&
4787          { ac_try='test -z "$ac_c_werror_flag"
4788                          || test ! -s conftest.err'
4789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790   (eval $ac_try) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; } &&
4794          { ac_try='test -s conftest.$ac_objext'
4795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796   (eval $ac_try) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); }; }; then
4800   ac_cv_prog_cc_g=yes
4801 else
4802   echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4804
4805 ac_cv_prog_cc_g=no
4806 fi
4807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4808 fi
4809 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4811 if test "$ac_test_CFLAGS" = set; then
4812   CFLAGS=$ac_save_CFLAGS
4813 elif test $ac_cv_prog_cc_g = yes; then
4814   if test "$GCC" = yes; then
4815     CFLAGS="-g -O2"
4816   else
4817     CFLAGS="-g"
4818   fi
4819 else
4820   if test "$GCC" = yes; then
4821     CFLAGS="-O2"
4822   else
4823     CFLAGS=
4824   fi
4825 fi
4826 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4827 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4828 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4829   echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831   ac_cv_prog_cc_stdc=no
4832 ac_save_CC=$CC
4833 cat >conftest.$ac_ext <<_ACEOF
4834 /* confdefs.h.  */
4835 _ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h.  */
4839 #include <stdarg.h>
4840 #include <stdio.h>
4841 #include <sys/types.h>
4842 #include <sys/stat.h>
4843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4844 struct buf { int x; };
4845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4846 static char *e (p, i)
4847      char **p;
4848      int i;
4849 {
4850   return p[i];
4851 }
4852 static char *f (char * (*g) (char **, int), char **p, ...)
4853 {
4854   char *s;
4855   va_list v;
4856   va_start (v,p);
4857   s = g (p, va_arg (v,int));
4858   va_end (v);
4859   return s;
4860 }
4861
4862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4863    function prototypes and stuff, but not '\xHH' hex character constants.
4864    These don't provoke an error unfortunately, instead are silently treated
4865    as 'x'.  The following induces an error, until -std1 is added to get
4866    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4867    array size at least.  It's necessary to write '\x00'==0 to get something
4868    that's true only with -std1.  */
4869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4870
4871 int test (int i, double x);
4872 struct s1 {int (*f) (int a);};
4873 struct s2 {int (*f) (double a);};
4874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4875 int argc;
4876 char **argv;
4877 int
4878 main ()
4879 {
4880 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4881   ;
4882   return 0;
4883 }
4884 _ACEOF
4885 # Don't try gcc -ansi; that turns off useful extensions and
4886 # breaks some systems' header files.
4887 # AIX                   -qlanglvl=ansi
4888 # Ultrix and OSF/1      -std1
4889 # HP-UX 10.20 and later -Ae
4890 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4891 # SVR4                  -Xc -D__EXTENSIONS__
4892 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4893 do
4894   CC="$ac_save_CC $ac_arg"
4895   rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897   (eval $ac_compile) 2>conftest.er1
4898   ac_status=$?
4899   grep -v '^ *+' conftest.er1 >conftest.err
4900   rm -f conftest.er1
4901   cat conftest.err >&5
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); } &&
4904          { ac_try='test -z "$ac_c_werror_flag"
4905                          || test ! -s conftest.err'
4906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907   (eval $ac_try) 2>&5
4908   ac_status=$?
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); }; } &&
4911          { ac_try='test -s conftest.$ac_objext'
4912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913   (eval $ac_try) 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); }; }; then
4917   ac_cv_prog_cc_stdc=$ac_arg
4918 break
4919 else
4920   echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4922
4923 fi
4924 rm -f conftest.err conftest.$ac_objext
4925 done
4926 rm -f conftest.$ac_ext conftest.$ac_objext
4927 CC=$ac_save_CC
4928
4929 fi
4930
4931 case "x$ac_cv_prog_cc_stdc" in
4932   x|xno)
4933     echo "$as_me:$LINENO: result: none needed" >&5
4934 echo "${ECHO_T}none needed" >&6 ;;
4935   *)
4936     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4937 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4938     CC="$CC $ac_cv_prog_cc_stdc" ;;
4939 esac
4940
4941 # Some people use a C++ compiler to compile C.  Since we use `exit',
4942 # in C++ we need to declare it.  In case someone uses the same compiler
4943 # for both compiling C and C++ we need to have the C++ compiler decide
4944 # the declaration of exit, since it's the most demanding environment.
4945 cat >conftest.$ac_ext <<_ACEOF
4946 #ifndef __cplusplus
4947   choke me
4948 #endif
4949 _ACEOF
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952   (eval $ac_compile) 2>conftest.er1
4953   ac_status=$?
4954   grep -v '^ *+' conftest.er1 >conftest.err
4955   rm -f conftest.er1
4956   cat conftest.err >&5
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); } &&
4959          { ac_try='test -z "$ac_c_werror_flag"
4960                          || test ! -s conftest.err'
4961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962   (eval $ac_try) 2>&5
4963   ac_status=$?
4964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965   (exit $ac_status); }; } &&
4966          { ac_try='test -s conftest.$ac_objext'
4967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968   (eval $ac_try) 2>&5
4969   ac_status=$?
4970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971   (exit $ac_status); }; }; then
4972   for ac_declaration in \
4973    '' \
4974    'extern "C" void std::exit (int) throw (); using std::exit;' \
4975    'extern "C" void std::exit (int); using std::exit;' \
4976    'extern "C" void exit (int) throw ();' \
4977    'extern "C" void exit (int);' \
4978    'void exit (int);'
4979 do
4980   cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h.  */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h.  */
4986 $ac_declaration
4987 #include <stdlib.h>
4988 int
4989 main ()
4990 {
4991 exit (42);
4992   ;
4993   return 0;
4994 }
4995 _ACEOF
4996 rm -f conftest.$ac_objext
4997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998   (eval $ac_compile) 2>conftest.er1
4999   ac_status=$?
5000   grep -v '^ *+' conftest.er1 >conftest.err
5001   rm -f conftest.er1
5002   cat conftest.err >&5
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); } &&
5005          { ac_try='test -z "$ac_c_werror_flag"
5006                          || test ! -s conftest.err'
5007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008   (eval $ac_try) 2>&5
5009   ac_status=$?
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); }; } &&
5012          { ac_try='test -s conftest.$ac_objext'
5013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014   (eval $ac_try) 2>&5
5015   ac_status=$?
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); }; }; then
5018   :
5019 else
5020   echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5022
5023 continue
5024 fi
5025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5026   cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h.  */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h.  */
5032 $ac_declaration
5033 int
5034 main ()
5035 {
5036 exit (42);
5037   ;
5038   return 0;
5039 }
5040 _ACEOF
5041 rm -f conftest.$ac_objext
5042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5043   (eval $ac_compile) 2>conftest.er1
5044   ac_status=$?
5045   grep -v '^ *+' conftest.er1 >conftest.err
5046   rm -f conftest.er1
5047   cat conftest.err >&5
5048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049   (exit $ac_status); } &&
5050          { ac_try='test -z "$ac_c_werror_flag"
5051                          || test ! -s conftest.err'
5052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053   (eval $ac_try) 2>&5
5054   ac_status=$?
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); }; } &&
5057          { ac_try='test -s conftest.$ac_objext'
5058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059   (eval $ac_try) 2>&5
5060   ac_status=$?
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); }; }; then
5063   break
5064 else
5065   echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 fi
5069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5070 done
5071 rm -f conftest*
5072 if test -n "$ac_declaration"; then
5073   echo '#ifdef __cplusplus' >>confdefs.h
5074   echo $ac_declaration      >>confdefs.h
5075   echo '#endif'             >>confdefs.h
5076 fi
5077
5078 else
5079   echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5081
5082 fi
5083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5084 ac_ext=c
5085 ac_cpp='$CPP $CPPFLAGS'
5086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089
5090 depcc="$CC"   am_compiler_list=
5091
5092 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5093 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5094 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5095   echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5098   # We make a subdir and do the tests there.  Otherwise we can end up
5099   # making bogus files that we don't know about and never remove.  For
5100   # instance it was reported that on HP-UX the gcc test will end up
5101   # making a dummy file named `D' -- because `-MD' means `put the output
5102   # in D'.
5103   mkdir conftest.dir
5104   # Copy depcomp to subdir because otherwise we won't find it if we're
5105   # using a relative directory.
5106   cp "$am_depcomp" conftest.dir
5107   cd conftest.dir
5108   # We will build objects and dependencies in a subdirectory because
5109   # it helps to detect inapplicable dependency modes.  For instance
5110   # both Tru64's cc and ICC support -MD to output dependencies as a
5111   # side effect of compilation, but ICC will put the dependencies in
5112   # the current directory while Tru64 will put them in the object
5113   # directory.
5114   mkdir sub
5115
5116   am_cv_CC_dependencies_compiler_type=none
5117   if test "$am_compiler_list" = ""; then
5118      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5119   fi
5120   for depmode in $am_compiler_list; do
5121     # Setup a source with many dependencies, because some compilers
5122     # like to wrap large dependency lists on column 80 (with \), and
5123     # we should not choose a depcomp mode which is confused by this.
5124     #
5125     # We need to recreate these files for each test, as the compiler may
5126     # overwrite some of them when testing with obscure command lines.
5127     # This happens at least with the AIX C compiler.
5128     : > sub/conftest.c
5129     for i in 1 2 3 4 5 6; do
5130       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5131       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5132       # Solaris 8's {/usr,}/bin/sh.
5133       touch sub/conftst$i.h
5134     done
5135     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5136
5137     case $depmode in
5138     nosideeffect)
5139       # after this tag, mechanisms are not by side-effect, so they'll
5140       # only be used when explicitly requested
5141       if test "x$enable_dependency_tracking" = xyes; then
5142         continue
5143       else
5144         break
5145       fi
5146       ;;
5147     none) break ;;
5148     esac
5149     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5150     # mode.  It turns out that the SunPro C++ compiler does not properly
5151     # handle `-M -o', and we need to detect this.
5152     if depmode=$depmode \
5153        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5154        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5155        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5156          >/dev/null 2>conftest.err &&
5157        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5158        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5159        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5160       # icc doesn't choke on unknown options, it will just issue warnings
5161       # or remarks (even with -Werror).  So we grep stderr for any message
5162       # that says an option was ignored or not supported.
5163       # When given -MP, icc 7.0 and 7.1 complain thusly:
5164       #   icc: Command line warning: ignoring option '-M'; no argument required
5165       # The diagnosis changed in icc 8.0:
5166       #   icc: Command line remark: option '-MP' not supported
5167       if (grep 'ignoring option' conftest.err ||
5168           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5169         am_cv_CC_dependencies_compiler_type=$depmode
5170         break
5171       fi
5172     fi
5173   done
5174
5175   cd ..
5176   rm -rf conftest.dir
5177 else
5178   am_cv_CC_dependencies_compiler_type=none
5179 fi
5180
5181 fi
5182 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5183 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5184 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5185
5186
5187
5188 if
5189   test "x$enable_dependency_tracking" != xno \
5190   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5191   am__fastdepCC_TRUE=
5192   am__fastdepCC_FALSE='#'
5193 else
5194   am__fastdepCC_TRUE='#'
5195   am__fastdepCC_FALSE=
5196 fi
5197
5198
5199 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5200 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5201 if test "${lt_cv_path_SED+set}" = set; then
5202   echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204   # Loop through the user's path and test for sed and gsed.
5205 # Then use that list of sed's as ones to test for truncation.
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5208 do
5209   IFS=$as_save_IFS
5210   test -z "$as_dir" && as_dir=.
5211   for lt_ac_prog in sed gsed; do
5212     for ac_exec_ext in '' $ac_executable_extensions; do
5213       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5214         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5215       fi
5216     done
5217   done
5218 done
5219 lt_ac_max=0
5220 lt_ac_count=0
5221 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5222 # along with /bin/sed that truncates output.
5223 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5224   test ! -f $lt_ac_sed && continue
5225   cat /dev/null > conftest.in
5226   lt_ac_count=0
5227   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5228   # Check for GNU sed and select it if it is found.
5229   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5230     lt_cv_path_SED=$lt_ac_sed
5231     break
5232   fi
5233   while true; do
5234     cat conftest.in conftest.in >conftest.tmp
5235     mv conftest.tmp conftest.in
5236     cp conftest.in conftest.nl
5237     echo >>conftest.nl
5238     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5239     cmp -s conftest.out conftest.nl || break
5240     # 10000 chars as input seems more than enough
5241     test $lt_ac_count -gt 10 && break
5242     lt_ac_count=`expr $lt_ac_count + 1`
5243     if test $lt_ac_count -gt $lt_ac_max; then
5244       lt_ac_max=$lt_ac_count
5245       lt_cv_path_SED=$lt_ac_sed
5246     fi
5247   done
5248 done
5249
5250 fi
5251
5252 SED=$lt_cv_path_SED
5253 echo "$as_me:$LINENO: result: $SED" >&5
5254 echo "${ECHO_T}$SED" >&6
5255
5256 echo "$as_me:$LINENO: checking for egrep" >&5
5257 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5258 if test "${ac_cv_prog_egrep+set}" = set; then
5259   echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5262     then ac_cv_prog_egrep='grep -E'
5263     else ac_cv_prog_egrep='egrep'
5264     fi
5265 fi
5266 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5267 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5268  EGREP=$ac_cv_prog_egrep
5269
5270
5271
5272 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5273 if test "${with_gnu_ld+set}" = set; then
5274   withval="$with_gnu_ld"
5275   test "$withval" = no || with_gnu_ld=yes
5276 else
5277   with_gnu_ld=no
5278 fi;
5279 ac_prog=ld
5280 if test "$GCC" = yes; then
5281   # Check if gcc -print-prog-name=ld gives a path.
5282   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5283 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5284   case $host in
5285   *-*-mingw*)
5286     # gcc leaves a trailing carriage return which upsets mingw
5287     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5288   *)
5289     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5290   esac
5291   case $ac_prog in
5292     # Accept absolute paths.
5293     [\\/]* | ?:[\\/]*)
5294       re_direlt='/[^/][^/]*/\.\./'
5295       # Canonicalize the pathname of ld
5296       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5297       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5298         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5299       done
5300       test -z "$LD" && LD="$ac_prog"
5301       ;;
5302   "")
5303     # If it fails, then pretend we aren't using GCC.
5304     ac_prog=ld
5305     ;;
5306   *)
5307     # If it is relative, then search for the first ld in PATH.
5308     with_gnu_ld=unknown
5309     ;;
5310   esac
5311 elif test "$with_gnu_ld" = yes; then
5312   echo "$as_me:$LINENO: checking for GNU ld" >&5
5313 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5314 else
5315   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5316 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5317 fi
5318 if test "${lt_cv_path_LD+set}" = set; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321   if test -z "$LD"; then
5322   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5323   for ac_dir in $PATH; do
5324     IFS="$lt_save_ifs"
5325     test -z "$ac_dir" && ac_dir=.
5326     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5327       lt_cv_path_LD="$ac_dir/$ac_prog"
5328       # Check to see if the program is GNU ld.  I'd rather use --version,
5329       # but apparently some variants of GNU ld only accept -v.
5330       # Break only if it was the GNU/non-GNU ld that we prefer.
5331       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5332       *GNU* | *'with BFD'*)
5333         test "$with_gnu_ld" != no && break
5334         ;;
5335       *)
5336         test "$with_gnu_ld" != yes && break
5337         ;;
5338       esac
5339     fi
5340   done
5341   IFS="$lt_save_ifs"
5342 else
5343   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5344 fi
5345 fi
5346
5347 LD="$lt_cv_path_LD"
5348 if test -n "$LD"; then
5349   echo "$as_me:$LINENO: result: $LD" >&5
5350 echo "${ECHO_T}$LD" >&6
5351 else
5352   echo "$as_me:$LINENO: result: no" >&5
5353 echo "${ECHO_T}no" >&6
5354 fi
5355 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5356 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5357    { (exit 1); exit 1; }; }
5358 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5359 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5360 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5361   echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5364 case `$LD -v 2>&1 </dev/null` in
5365 *GNU* | *'with BFD'*)
5366   lt_cv_prog_gnu_ld=yes
5367   ;;
5368 *)
5369   lt_cv_prog_gnu_ld=no
5370   ;;
5371 esac
5372 fi
5373 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5374 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5375 with_gnu_ld=$lt_cv_prog_gnu_ld
5376
5377
5378 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5379 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5380 if test "${lt_cv_ld_reload_flag+set}" = set; then
5381   echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383   lt_cv_ld_reload_flag='-r'
5384 fi
5385 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5386 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5387 reload_flag=$lt_cv_ld_reload_flag
5388 case $reload_flag in
5389 "" | " "*) ;;
5390 *) reload_flag=" $reload_flag" ;;
5391 esac
5392 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5393 case $host_os in
5394   darwin*)
5395     if test "$GCC" = yes; then
5396       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5397     else
5398       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5399     fi
5400     ;;
5401 esac
5402
5403 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5404 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5405 if test "${lt_cv_path_NM+set}" = set; then
5406   echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408   if test -n "$NM"; then
5409   # Let the user override the test.
5410   lt_cv_path_NM="$NM"
5411 else
5412   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5413   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5414     IFS="$lt_save_ifs"
5415     test -z "$ac_dir" && ac_dir=.
5416     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5417     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5418       # Check to see if the nm accepts a BSD-compat flag.
5419       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5420       #   nm: unknown option "B" ignored
5421       # Tru64's nm complains that /dev/null is an invalid object file
5422       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5423       */dev/null* | *'Invalid file or object type'*)
5424         lt_cv_path_NM="$tmp_nm -B"
5425         break
5426         ;;
5427       *)
5428         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5429         */dev/null*)
5430           lt_cv_path_NM="$tmp_nm -p"
5431           break
5432           ;;
5433         *)
5434           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5435           continue # so that we can try to find one that supports BSD flags
5436           ;;
5437         esac
5438       esac
5439     fi
5440   done
5441   IFS="$lt_save_ifs"
5442   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5443 fi
5444 fi
5445 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5446 echo "${ECHO_T}$lt_cv_path_NM" >&6
5447 NM="$lt_cv_path_NM"
5448
5449 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5450 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5451 LN_S=$as_ln_s
5452 if test "$LN_S" = "ln -s"; then
5453   echo "$as_me:$LINENO: result: yes" >&5
5454 echo "${ECHO_T}yes" >&6
5455 else
5456   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5457 echo "${ECHO_T}no, using $LN_S" >&6
5458 fi
5459
5460 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5461 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5462 if test "${lt_cv_deplibs_check_method+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465   lt_cv_file_magic_cmd='$MAGIC_CMD'
5466 lt_cv_file_magic_test_file=
5467 lt_cv_deplibs_check_method='unknown'
5468 # Need to set the preceding variable on all platforms that support
5469 # interlibrary dependencies.
5470 # 'none' -- dependencies not supported.
5471 # `unknown' -- same as none, but documents that we really don't know.
5472 # 'pass_all' -- all dependencies passed with no checks.
5473 # 'test_compile' -- check by making test program.
5474 # 'file_magic [[regex]]' -- check by looking for files in library path
5475 # which responds to the $file_magic_cmd with a given extended regex.
5476 # If you have `file' or equivalent on your system and you're not sure
5477 # whether `pass_all' will *always* work, you probably want this one.
5478
5479 case $host_os in
5480 aix4* | aix5*)
5481   lt_cv_deplibs_check_method=pass_all
5482   ;;
5483
5484 beos*)
5485   lt_cv_deplibs_check_method=pass_all
5486   ;;
5487
5488 bsdi[45]*)
5489   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5490   lt_cv_file_magic_cmd='/usr/bin/file -L'
5491   lt_cv_file_magic_test_file=/shlib/libc.so
5492   ;;
5493
5494 cygwin*)
5495   # func_win32_libid is a shell function defined in ltmain.sh
5496   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5497   lt_cv_file_magic_cmd='func_win32_libid'
5498   ;;
5499
5500 mingw* | pw32*)
5501   # Base MSYS/MinGW do not provide the 'file' command needed by
5502   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5503   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5504   lt_cv_file_magic_cmd='$OBJDUMP -f'
5505   ;;
5506
5507 darwin* | rhapsody*)
5508   lt_cv_deplibs_check_method=pass_all
5509   ;;
5510
5511 freebsd* | kfreebsd*-gnu | dragonfly*)
5512   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5513     case $host_cpu in
5514     i*86 )
5515       # Not sure whether the presence of OpenBSD here was a mistake.
5516       # Let's accept both of them until this is cleared up.
5517       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5518       lt_cv_file_magic_cmd=/usr/bin/file
5519       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5520       ;;
5521     esac
5522   else
5523     lt_cv_deplibs_check_method=pass_all
5524   fi
5525   ;;
5526
5527 gnu*)
5528   lt_cv_deplibs_check_method=pass_all
5529   ;;
5530
5531 hpux10.20* | hpux11*)
5532   lt_cv_file_magic_cmd=/usr/bin/file
5533   case $host_cpu in
5534   ia64*)
5535     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5536     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5537     ;;
5538   hppa*64*)
5539     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]'
5540     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5541     ;;
5542   *)
5543     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5544     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5545     ;;
5546   esac
5547   ;;
5548
5549 irix5* | irix6* | nonstopux*)
5550   case $LD in
5551   *-32|*"-32 ") libmagic=32-bit;;
5552   *-n32|*"-n32 ") libmagic=N32;;
5553   *-64|*"-64 ") libmagic=64-bit;;
5554   *) libmagic=never-match;;
5555   esac
5556   lt_cv_deplibs_check_method=pass_all
5557   ;;
5558
5559 # This must be Linux ELF.
5560 linux*)
5561   lt_cv_deplibs_check_method=pass_all
5562   ;;
5563
5564 netbsd*)
5565   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5566     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5567   else
5568     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5569   fi
5570   ;;
5571
5572 newos6*)
5573   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5574   lt_cv_file_magic_cmd=/usr/bin/file
5575   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5576   ;;
5577
5578 nto-qnx*)
5579   lt_cv_deplibs_check_method=unknown
5580   ;;
5581
5582 openbsd*)
5583   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5584     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5585   else
5586     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5587   fi
5588   ;;
5589
5590 osf3* | osf4* | osf5*)
5591   lt_cv_deplibs_check_method=pass_all
5592   ;;
5593
5594 sco3.2v5*)
5595   lt_cv_deplibs_check_method=pass_all
5596   ;;
5597
5598 solaris*)
5599   lt_cv_deplibs_check_method=pass_all
5600   ;;
5601
5602 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5603   case $host_vendor in
5604   motorola)
5605     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]'
5606     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5607     ;;
5608   ncr)
5609     lt_cv_deplibs_check_method=pass_all
5610     ;;
5611   sequent)
5612     lt_cv_file_magic_cmd='/bin/file'
5613     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5614     ;;
5615   sni)
5616     lt_cv_file_magic_cmd='/bin/file'
5617     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5618     lt_cv_file_magic_test_file=/lib/libc.so
5619     ;;
5620   siemens)
5621     lt_cv_deplibs_check_method=pass_all
5622     ;;
5623   esac
5624   ;;
5625
5626 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5627   lt_cv_deplibs_check_method=pass_all
5628   ;;
5629 esac
5630
5631 fi
5632 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5633 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5634 file_magic_cmd=$lt_cv_file_magic_cmd
5635 deplibs_check_method=$lt_cv_deplibs_check_method
5636 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5637
5638
5639
5640
5641 # If no C compiler was specified, use CC.
5642 LTCC=${LTCC-"$CC"}
5643
5644 # Allow CC to be a program name with arguments.
5645 compiler=$CC
5646
5647
5648 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5649 if test "${enable_libtool_lock+set}" = set; then
5650   enableval="$enable_libtool_lock"
5651
5652 fi;
5653 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5654
5655 # Some flags need to be propagated to the compiler or linker for good
5656 # libtool support.
5657 case $host in
5658 ia64-*-hpux*)
5659   # Find out which ABI we are using.
5660   echo 'int i;' > conftest.$ac_ext
5661   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662   (eval $ac_compile) 2>&5
5663   ac_status=$?
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); }; then
5666     case `/usr/bin/file conftest.$ac_objext` in
5667     *ELF-32*)
5668       HPUX_IA64_MODE="32"
5669       ;;
5670     *ELF-64*)
5671       HPUX_IA64_MODE="64"
5672       ;;
5673     esac
5674   fi
5675   rm -rf conftest*
5676   ;;
5677 *-*-irix6*)
5678   # Find out which ABI we are using.
5679   echo '#line 5679 "configure"' > conftest.$ac_ext
5680   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5681   (eval $ac_compile) 2>&5
5682   ac_status=$?
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); }; then
5685    if test "$lt_cv_prog_gnu_ld" = yes; then
5686     case `/usr/bin/file conftest.$ac_objext` in
5687     *32-bit*)
5688       LD="${LD-ld} -melf32bsmip"
5689       ;;
5690     *N32*)
5691       LD="${LD-ld} -melf32bmipn32"
5692       ;;
5693     *64-bit*)
5694       LD="${LD-ld} -melf64bmip"
5695       ;;
5696     esac
5697    else
5698     case `/usr/bin/file conftest.$ac_objext` in
5699     *32-bit*)
5700       LD="${LD-ld} -32"
5701       ;;
5702     *N32*)
5703       LD="${LD-ld} -n32"
5704       ;;
5705     *64-bit*)
5706       LD="${LD-ld} -64"
5707       ;;
5708     esac
5709    fi
5710   fi
5711   rm -rf conftest*
5712   ;;
5713
5714 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5715   # Find out which ABI we are using.
5716   echo 'int i;' > conftest.$ac_ext
5717   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718   (eval $ac_compile) 2>&5
5719   ac_status=$?
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); }; then
5722     case `/usr/bin/file conftest.o` in
5723     *32-bit*)
5724       case $host in
5725         x86_64-*linux*)
5726           LD="${LD-ld} -m elf_i386"
5727           ;;
5728         ppc64-*linux*|powerpc64-*linux*)
5729           LD="${LD-ld} -m elf32ppclinux"
5730           ;;
5731         s390x-*linux*)
5732           LD="${LD-ld} -m elf_s390"
5733           ;;
5734         sparc64-*linux*)
5735           LD="${LD-ld} -m elf32_sparc"
5736           ;;
5737       esac
5738       ;;
5739     *64-bit*)
5740       case $host in
5741         x86_64-*linux*)
5742           LD="${LD-ld} -m elf_x86_64"
5743           ;;
5744         ppc*-*linux*|powerpc*-*linux*)
5745           LD="${LD-ld} -m elf64ppc"
5746           ;;
5747         s390*-*linux*)
5748           LD="${LD-ld} -m elf64_s390"
5749           ;;
5750         sparc*-*linux*)
5751           LD="${LD-ld} -m elf64_sparc"
5752           ;;
5753       esac
5754       ;;
5755     esac
5756   fi
5757   rm -rf conftest*
5758   ;;
5759
5760 *-*-sco3.2v5*)
5761   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5762   SAVE_CFLAGS="$CFLAGS"
5763   CFLAGS="$CFLAGS -belf"
5764   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5765 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5766 if test "${lt_cv_cc_needs_belf+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   ac_ext=c
5770 ac_cpp='$CPP $CPPFLAGS'
5771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5774
5775      cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h.  */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h.  */
5781
5782 int
5783 main ()
5784 {
5785
5786   ;
5787   return 0;
5788 }
5789 _ACEOF
5790 rm -f conftest.$ac_objext conftest$ac_exeext
5791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5792   (eval $ac_link) 2>conftest.er1
5793   ac_status=$?
5794   grep -v '^ *+' conftest.er1 >conftest.err
5795   rm -f conftest.er1
5796   cat conftest.err >&5
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); } &&
5799          { ac_try='test -z "$ac_c_werror_flag"
5800                          || test ! -s conftest.err'
5801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802   (eval $ac_try) 2>&5
5803   ac_status=$?
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); }; } &&
5806          { ac_try='test -s conftest$ac_exeext'
5807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808   (eval $ac_try) 2>&5
5809   ac_status=$?
5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); }; }; then
5812   lt_cv_cc_needs_belf=yes
5813 else
5814   echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5816
5817 lt_cv_cc_needs_belf=no
5818 fi
5819 rm -f conftest.err conftest.$ac_objext \
5820       conftest$ac_exeext conftest.$ac_ext
5821      ac_ext=c
5822 ac_cpp='$CPP $CPPFLAGS'
5823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5826
5827 fi
5828 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5829 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5830   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5831     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5832     CFLAGS="$SAVE_CFLAGS"
5833   fi
5834   ;;
5835 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5836   if test -n "$ac_tool_prefix"; then
5837   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5839 echo "$as_me:$LINENO: checking for $ac_word" >&5
5840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5841 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5842   echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844   if test -n "$DLLTOOL"; then
5845   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850   IFS=$as_save_IFS
5851   test -z "$as_dir" && as_dir=.
5852   for ac_exec_ext in '' $ac_executable_extensions; do
5853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856     break 2
5857   fi
5858 done
5859 done
5860
5861 fi
5862 fi
5863 DLLTOOL=$ac_cv_prog_DLLTOOL
5864 if test -n "$DLLTOOL"; then
5865   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5866 echo "${ECHO_T}$DLLTOOL" >&6
5867 else
5868   echo "$as_me:$LINENO: result: no" >&5
5869 echo "${ECHO_T}no" >&6
5870 fi
5871
5872 fi
5873 if test -z "$ac_cv_prog_DLLTOOL"; then
5874   ac_ct_DLLTOOL=$DLLTOOL
5875   # Extract the first word of "dlltool", so it can be a program name with args.
5876 set dummy dlltool; ac_word=$2
5877 echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5879 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5880   echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882   if test -n "$ac_ct_DLLTOOL"; then
5883   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5884 else
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5887 do
5888   IFS=$as_save_IFS
5889   test -z "$as_dir" && as_dir=.
5890   for ac_exec_ext in '' $ac_executable_extensions; do
5891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894     break 2
5895   fi
5896 done
5897 done
5898
5899   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5900 fi
5901 fi
5902 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5903 if test -n "$ac_ct_DLLTOOL"; then
5904   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5905 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5906 else
5907   echo "$as_me:$LINENO: result: no" >&5
5908 echo "${ECHO_T}no" >&6
5909 fi
5910
5911   DLLTOOL=$ac_ct_DLLTOOL
5912 else
5913   DLLTOOL="$ac_cv_prog_DLLTOOL"
5914 fi
5915
5916   if test -n "$ac_tool_prefix"; then
5917   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5918 set dummy ${ac_tool_prefix}as; ac_word=$2
5919 echo "$as_me:$LINENO: checking for $ac_word" >&5
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5921 if test "${ac_cv_prog_AS+set}" = set; then
5922   echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924   if test -n "$AS"; then
5925   ac_cv_prog_AS="$AS" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930   IFS=$as_save_IFS
5931   test -z "$as_dir" && as_dir=.
5932   for ac_exec_ext in '' $ac_executable_extensions; do
5933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934     ac_cv_prog_AS="${ac_tool_prefix}as"
5935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936     break 2
5937   fi
5938 done
5939 done
5940
5941 fi
5942 fi
5943 AS=$ac_cv_prog_AS
5944 if test -n "$AS"; then
5945   echo "$as_me:$LINENO: result: $AS" >&5
5946 echo "${ECHO_T}$AS" >&6
5947 else
5948   echo "$as_me:$LINENO: result: no" >&5
5949 echo "${ECHO_T}no" >&6
5950 fi
5951
5952 fi
5953 if test -z "$ac_cv_prog_AS"; then
5954   ac_ct_AS=$AS
5955   # Extract the first word of "as", so it can be a program name with args.
5956 set dummy as; ac_word=$2
5957 echo "$as_me:$LINENO: checking for $ac_word" >&5
5958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5959 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5960   echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962   if test -n "$ac_ct_AS"; then
5963   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968   IFS=$as_save_IFS
5969   test -z "$as_dir" && as_dir=.
5970   for ac_exec_ext in '' $ac_executable_extensions; do
5971   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972     ac_cv_prog_ac_ct_AS="as"
5973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974     break 2
5975   fi
5976 done
5977 done
5978
5979   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5980 fi
5981 fi
5982 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5983 if test -n "$ac_ct_AS"; then
5984   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5985 echo "${ECHO_T}$ac_ct_AS" >&6
5986 else
5987   echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6
5989 fi
5990
5991   AS=$ac_ct_AS
5992 else
5993   AS="$ac_cv_prog_AS"
5994 fi
5995
5996   if test -n "$ac_tool_prefix"; then
5997   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5998 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5999 echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6001 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6002   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004   if test -n "$OBJDUMP"; then
6005   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6006 else
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6009 do
6010   IFS=$as_save_IFS
6011   test -z "$as_dir" && as_dir=.
6012   for ac_exec_ext in '' $ac_executable_extensions; do
6013   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6014     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016     break 2
6017   fi
6018 done
6019 done
6020
6021 fi
6022 fi
6023 OBJDUMP=$ac_cv_prog_OBJDUMP
6024 if test -n "$OBJDUMP"; then
6025   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6026 echo "${ECHO_T}$OBJDUMP" >&6
6027 else
6028   echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6
6030 fi
6031
6032 fi
6033 if test -z "$ac_cv_prog_OBJDUMP"; then
6034   ac_ct_OBJDUMP=$OBJDUMP
6035   # Extract the first word of "objdump", so it can be a program name with args.
6036 set dummy objdump; ac_word=$2
6037 echo "$as_me:$LINENO: checking for $ac_word" >&5
6038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6039 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6040   echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042   if test -n "$ac_ct_OBJDUMP"; then
6043   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6047 do
6048   IFS=$as_save_IFS
6049   test -z "$as_dir" && as_dir=.
6050   for ac_exec_ext in '' $ac_executable_extensions; do
6051   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6054     break 2
6055   fi
6056 done
6057 done
6058
6059   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6060 fi
6061 fi
6062 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6063 if test -n "$ac_ct_OBJDUMP"; then
6064   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6065 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6066 else
6067   echo "$as_me:$LINENO: result: no" >&5
6068 echo "${ECHO_T}no" >&6
6069 fi
6070
6071   OBJDUMP=$ac_ct_OBJDUMP
6072 else
6073   OBJDUMP="$ac_cv_prog_OBJDUMP"
6074 fi
6075
6076   ;;
6077
6078 esac
6079
6080 need_locks="$enable_libtool_lock"
6081
6082
6083 ac_ext=c
6084 ac_cpp='$CPP $CPPFLAGS'
6085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6088 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6089 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6090 # On Suns, sometimes $CPP names a directory.
6091 if test -n "$CPP" && test -d "$CPP"; then
6092   CPP=
6093 fi
6094 if test -z "$CPP"; then
6095   if test "${ac_cv_prog_CPP+set}" = set; then
6096   echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098       # Double quotes because CPP needs to be expanded
6099     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6100     do
6101       ac_preproc_ok=false
6102 for ac_c_preproc_warn_flag in '' yes
6103 do
6104   # Use a header file that comes with gcc, so configuring glibc
6105   # with a fresh cross-compiler works.
6106   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6107   # <limits.h> exists even on freestanding compilers.
6108   # On the NeXT, cc -E runs the code through the compiler's parser,
6109   # not just through cpp. "Syntax error" is here to catch this case.
6110   cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h.  */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h.  */
6116 #ifdef __STDC__
6117 # include <limits.h>
6118 #else
6119 # include <assert.h>
6120 #endif
6121                      Syntax error
6122 _ACEOF
6123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6124   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6125   ac_status=$?
6126   grep -v '^ *+' conftest.er1 >conftest.err
6127   rm -f conftest.er1
6128   cat conftest.err >&5
6129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130   (exit $ac_status); } >/dev/null; then
6131   if test -s conftest.err; then
6132     ac_cpp_err=$ac_c_preproc_warn_flag
6133     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6134   else
6135     ac_cpp_err=
6136   fi
6137 else
6138   ac_cpp_err=yes
6139 fi
6140 if test -z "$ac_cpp_err"; then
6141   :
6142 else
6143   echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6145
6146   # Broken: fails on valid input.
6147 continue
6148 fi
6149 rm -f conftest.err conftest.$ac_ext
6150
6151   # OK, works on sane cases.  Now check whether non-existent headers
6152   # can be detected and how.
6153   cat >conftest.$ac_ext <<_ACEOF
6154 /* confdefs.h.  */
6155 _ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h.  */
6159 #include <ac_nonexistent.h>
6160 _ACEOF
6161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6162   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6163   ac_status=$?
6164   grep -v '^ *+' conftest.er1 >conftest.err
6165   rm -f conftest.er1
6166   cat conftest.err >&5
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); } >/dev/null; then
6169   if test -s conftest.err; then
6170     ac_cpp_err=$ac_c_preproc_warn_flag
6171     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6172   else
6173     ac_cpp_err=
6174   fi
6175 else
6176   ac_cpp_err=yes
6177 fi
6178 if test -z "$ac_cpp_err"; then
6179   # Broken: success on invalid input.
6180 continue
6181 else
6182   echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6184
6185   # Passes both tests.
6186 ac_preproc_ok=:
6187 break
6188 fi
6189 rm -f conftest.err conftest.$ac_ext
6190
6191 done
6192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6193 rm -f conftest.err conftest.$ac_ext
6194 if $ac_preproc_ok; then
6195   break
6196 fi
6197
6198     done
6199     ac_cv_prog_CPP=$CPP
6200
6201 fi
6202   CPP=$ac_cv_prog_CPP
6203 else
6204   ac_cv_prog_CPP=$CPP
6205 fi
6206 echo "$as_me:$LINENO: result: $CPP" >&5
6207 echo "${ECHO_T}$CPP" >&6
6208 ac_preproc_ok=false
6209 for ac_c_preproc_warn_flag in '' yes
6210 do
6211   # Use a header file that comes with gcc, so configuring glibc
6212   # with a fresh cross-compiler works.
6213   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6214   # <limits.h> exists even on freestanding compilers.
6215   # On the NeXT, cc -E runs the code through the compiler's parser,
6216   # not just through cpp. "Syntax error" is here to catch this case.
6217   cat >conftest.$ac_ext <<_ACEOF
6218 /* confdefs.h.  */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h.  */
6223 #ifdef __STDC__
6224 # include <limits.h>
6225 #else
6226 # include <assert.h>
6227 #endif
6228                      Syntax error
6229 _ACEOF
6230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6231   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6232   ac_status=$?
6233   grep -v '^ *+' conftest.er1 >conftest.err
6234   rm -f conftest.er1
6235   cat conftest.err >&5
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); } >/dev/null; then
6238   if test -s conftest.err; then
6239     ac_cpp_err=$ac_c_preproc_warn_flag
6240     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6241   else
6242     ac_cpp_err=
6243   fi
6244 else
6245   ac_cpp_err=yes
6246 fi
6247 if test -z "$ac_cpp_err"; then
6248   :
6249 else
6250   echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6252
6253   # Broken: fails on valid input.
6254 continue
6255 fi
6256 rm -f conftest.err conftest.$ac_ext
6257
6258   # OK, works on sane cases.  Now check whether non-existent headers
6259   # can be detected and how.
6260   cat >conftest.$ac_ext <<_ACEOF
6261 /* confdefs.h.  */
6262 _ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h.  */
6266 #include <ac_nonexistent.h>
6267 _ACEOF
6268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6269   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6270   ac_status=$?
6271   grep -v '^ *+' conftest.er1 >conftest.err
6272   rm -f conftest.er1
6273   cat conftest.err >&5
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); } >/dev/null; then
6276   if test -s conftest.err; then
6277     ac_cpp_err=$ac_c_preproc_warn_flag
6278     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6279   else
6280     ac_cpp_err=
6281   fi
6282 else
6283   ac_cpp_err=yes
6284 fi
6285 if test -z "$ac_cpp_err"; then
6286   # Broken: success on invalid input.
6287 continue
6288 else
6289   echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6291
6292   # Passes both tests.
6293 ac_preproc_ok=:
6294 break
6295 fi
6296 rm -f conftest.err conftest.$ac_ext
6297
6298 done
6299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6300 rm -f conftest.err conftest.$ac_ext
6301 if $ac_preproc_ok; then
6302   :
6303 else
6304   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6305 See \`config.log' for more details." >&5
6306 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6307 See \`config.log' for more details." >&2;}
6308    { (exit 1); exit 1; }; }
6309 fi
6310
6311 ac_ext=c
6312 ac_cpp='$CPP $CPPFLAGS'
6313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6316
6317
6318 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6319 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6320 if test "${ac_cv_header_stdc+set}" = set; then
6321   echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323   cat >conftest.$ac_ext <<_ACEOF
6324 /* confdefs.h.  */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h.  */
6329 #include <stdlib.h>
6330 #include <stdarg.h>
6331 #include <string.h>
6332 #include <float.h>
6333
6334 int
6335 main ()
6336 {
6337
6338   ;
6339   return 0;
6340 }
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344   (eval $ac_compile) 2>conftest.er1
6345   ac_status=$?
6346   grep -v '^ *+' conftest.er1 >conftest.err
6347   rm -f conftest.er1
6348   cat conftest.err >&5
6349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350   (exit $ac_status); } &&
6351          { ac_try='test -z "$ac_c_werror_flag"
6352                          || test ! -s conftest.err'
6353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354   (eval $ac_try) 2>&5
6355   ac_status=$?
6356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357   (exit $ac_status); }; } &&
6358          { ac_try='test -s conftest.$ac_objext'
6359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360   (eval $ac_try) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); }; }; then
6364   ac_cv_header_stdc=yes
6365 else
6366   echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6368
6369 ac_cv_header_stdc=no
6370 fi
6371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6372
6373 if test $ac_cv_header_stdc = yes; then
6374   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6375   cat >conftest.$ac_ext <<_ACEOF
6376 /* confdefs.h.  */
6377 _ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h.  */
6381 #include <string.h>
6382
6383 _ACEOF
6384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6385   $EGREP "memchr" >/dev/null 2>&1; then
6386   :
6387 else
6388   ac_cv_header_stdc=no
6389 fi
6390 rm -f conftest*
6391
6392 fi
6393
6394 if test $ac_cv_header_stdc = yes; then
6395   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6396   cat >conftest.$ac_ext <<_ACEOF
6397 /* confdefs.h.  */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h.  */
6402 #include <stdlib.h>
6403
6404 _ACEOF
6405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6406   $EGREP "free" >/dev/null 2>&1; then
6407   :
6408 else
6409   ac_cv_header_stdc=no
6410 fi
6411 rm -f conftest*
6412
6413 fi
6414
6415 if test $ac_cv_header_stdc = yes; then
6416   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6417   if test "$cross_compiling" = yes; then
6418   :
6419 else
6420   cat >conftest.$ac_ext <<_ACEOF
6421 /* confdefs.h.  */
6422 _ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h.  */
6426 #include <ctype.h>
6427 #if ((' ' & 0x0FF) == 0x020)
6428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6430 #else
6431 # define ISLOWER(c) \
6432                    (('a' <= (c) && (c) <= 'i') \
6433                      || ('j' <= (c) && (c) <= 'r') \
6434                      || ('s' <= (c) && (c) <= 'z'))
6435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6436 #endif
6437
6438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6439 int
6440 main ()
6441 {
6442   int i;
6443   for (i = 0; i < 256; i++)
6444     if (XOR (islower (i), ISLOWER (i))
6445         || toupper (i) != TOUPPER (i))
6446       exit(2);
6447   exit (0);
6448 }
6449 _ACEOF
6450 rm -f conftest$ac_exeext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6452   (eval $ac_link) 2>&5
6453   ac_status=$?
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457   (eval $ac_try) 2>&5
6458   ac_status=$?
6459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460   (exit $ac_status); }; }; then
6461   :
6462 else
6463   echo "$as_me: program exited with status $ac_status" >&5
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6466
6467 ( exit $ac_status )
6468 ac_cv_header_stdc=no
6469 fi
6470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6471 fi
6472 fi
6473 fi
6474 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6475 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6476 if test $ac_cv_header_stdc = yes; then
6477
6478 cat >>confdefs.h <<\_ACEOF
6479 #define STDC_HEADERS 1
6480 _ACEOF
6481
6482 fi
6483
6484 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6495                   inttypes.h stdint.h unistd.h
6496 do
6497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6498 echo "$as_me:$LINENO: checking for $ac_header" >&5
6499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6501   echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503   cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h.  */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h.  */
6509 $ac_includes_default
6510
6511 #include <$ac_header>
6512 _ACEOF
6513 rm -f conftest.$ac_objext
6514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6515   (eval $ac_compile) 2>conftest.er1
6516   ac_status=$?
6517   grep -v '^ *+' conftest.er1 >conftest.err
6518   rm -f conftest.er1
6519   cat conftest.err >&5
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); } &&
6522          { ac_try='test -z "$ac_c_werror_flag"
6523                          || test ! -s conftest.err'
6524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525   (eval $ac_try) 2>&5
6526   ac_status=$?
6527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); }; } &&
6529          { ac_try='test -s conftest.$ac_objext'
6530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531   (eval $ac_try) 2>&5
6532   ac_status=$?
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); }; }; then
6535   eval "$as_ac_Header=yes"
6536 else
6537   echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6539
6540 eval "$as_ac_Header=no"
6541 fi
6542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6543 fi
6544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6547   cat >>confdefs.h <<_ACEOF
6548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6549 _ACEOF
6550
6551 fi
6552
6553 done
6554
6555
6556
6557 for ac_header in dlfcn.h
6558 do
6559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6561   echo "$as_me:$LINENO: checking for $ac_header" >&5
6562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6564   echo $ECHO_N "(cached) $ECHO_C" >&6
6565 fi
6566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6568 else
6569   # Is the header compilable?
6570 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6572 cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h.  */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h.  */
6578 $ac_includes_default
6579 #include <$ac_header>
6580 _ACEOF
6581 rm -f conftest.$ac_objext
6582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6583   (eval $ac_compile) 2>conftest.er1
6584   ac_status=$?
6585   grep -v '^ *+' conftest.er1 >conftest.err
6586   rm -f conftest.er1
6587   cat conftest.err >&5
6588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589   (exit $ac_status); } &&
6590          { ac_try='test -z "$ac_c_werror_flag"
6591                          || test ! -s conftest.err'
6592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593   (eval $ac_try) 2>&5
6594   ac_status=$?
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); }; } &&
6597          { ac_try='test -s conftest.$ac_objext'
6598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599   (eval $ac_try) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); }; }; then
6603   ac_header_compiler=yes
6604 else
6605   echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6607
6608 ac_header_compiler=no
6609 fi
6610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6612 echo "${ECHO_T}$ac_header_compiler" >&6
6613
6614 # Is the header present?
6615 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6617 cat >conftest.$ac_ext <<_ACEOF
6618 /* confdefs.h.  */
6619 _ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h.  */
6623 #include <$ac_header>
6624 _ACEOF
6625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6626   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6627   ac_status=$?
6628   grep -v '^ *+' conftest.er1 >conftest.err
6629   rm -f conftest.er1
6630   cat conftest.err >&5
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); } >/dev/null; then
6633   if test -s conftest.err; then
6634     ac_cpp_err=$ac_c_preproc_warn_flag
6635     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6636   else
6637     ac_cpp_err=
6638   fi
6639 else
6640   ac_cpp_err=yes
6641 fi
6642 if test -z "$ac_cpp_err"; then
6643   ac_header_preproc=yes
6644 else
6645   echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6647
6648   ac_header_preproc=no
6649 fi
6650 rm -f conftest.err conftest.$ac_ext
6651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6652 echo "${ECHO_T}$ac_header_preproc" >&6
6653
6654 # So?  What about this header?
6655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6656   yes:no: )
6657     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6661     ac_header_preproc=yes
6662     ;;
6663   no:yes:* )
6664     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6666     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6667 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6668     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6670     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6671 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6674     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6676     (
6677       cat <<\_ASBOX
6678 ## --------------------------------------------- ##
6679 ## Report this to <http://www.openldap.org/its/> ##
6680 ## --------------------------------------------- ##
6681 _ASBOX
6682     ) |
6683       sed "s/^/$as_me: WARNING:     /" >&2
6684     ;;
6685 esac
6686 echo "$as_me:$LINENO: checking for $ac_header" >&5
6687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6689   echo $ECHO_N "(cached) $ECHO_C" >&6
6690 else
6691   eval "$as_ac_Header=\$ac_header_preproc"
6692 fi
6693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6695
6696 fi
6697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6698   cat >>confdefs.h <<_ACEOF
6699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6700 _ACEOF
6701
6702 fi
6703
6704 done
6705
6706
6707 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6708
6709 # find the maximum length of command line arguments
6710 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6711 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6712 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715     i=0
6716   teststring="ABCD"
6717
6718   case $build_os in
6719   msdosdjgpp*)
6720     # On DJGPP, this test can blow up pretty badly due to problems in libc
6721     # (any single argument exceeding 2000 bytes causes a buffer overrun
6722     # during glob expansion).  Even if it were fixed, the result of this
6723     # check would be larger than it should be.
6724     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6725     ;;
6726
6727   gnu*)
6728     # Under GNU Hurd, this test is not required because there is
6729     # no limit to the length of command line arguments.
6730     # Libtool will interpret -1 as no limit whatsoever
6731     lt_cv_sys_max_cmd_len=-1;
6732     ;;
6733
6734   cygwin* | mingw*)
6735     # On Win9x/ME, this test blows up -- it succeeds, but takes
6736     # about 5 minutes as the teststring grows exponentially.
6737     # Worse, since 9x/ME are not pre-emptively multitasking,
6738     # you end up with a "frozen" computer, even though with patience
6739     # the test eventually succeeds (with a max line length of 256k).
6740     # Instead, let's just punt: use the minimum linelength reported by
6741     # all of the supported platforms: 8192 (on NT/2K/XP).
6742     lt_cv_sys_max_cmd_len=8192;
6743     ;;
6744
6745   amigaos*)
6746     # On AmigaOS with pdksh, this test takes hours, literally.
6747     # So we just punt and use a minimum line length of 8192.
6748     lt_cv_sys_max_cmd_len=8192;
6749     ;;
6750
6751   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6752     # This has been around since 386BSD, at least.  Likely further.
6753     if test -x /sbin/sysctl; then
6754       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6755     elif test -x /usr/sbin/sysctl; then
6756       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6757     else
6758       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6759     fi
6760     # And add a safety zone
6761     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6762     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6763     ;;
6764   osf*)
6765     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6766     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6767     # nice to cause kernel panics so lets avoid the loop below.
6768     # First set a reasonable default.
6769     lt_cv_sys_max_cmd_len=16384
6770     #
6771     if test -x /sbin/sysconfig; then
6772       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6773         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6774       esac
6775     fi
6776     ;;
6777   *)
6778     # If test is not a shell built-in, we'll probably end up computing a
6779     # maximum length that is only half of the actual maximum length, but
6780     # we can't tell.
6781     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6782     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6783                = "XX$teststring") >/dev/null 2>&1 &&
6784             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6785             lt_cv_sys_max_cmd_len=$new_result &&
6786             test $i != 17 # 1/2 MB should be enough
6787     do
6788       i=`expr $i + 1`
6789       teststring=$teststring$teststring
6790     done
6791     teststring=
6792     # Add a significant safety factor because C++ compilers can tack on massive
6793     # amounts of additional arguments before passing them to the linker.
6794     # It appears as though 1/2 is a usable value.
6795     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6796     ;;
6797   esac
6798
6799 fi
6800
6801 if test -n $lt_cv_sys_max_cmd_len ; then
6802   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6803 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6804 else
6805   echo "$as_me:$LINENO: result: none" >&5
6806 echo "${ECHO_T}none" >&6
6807 fi
6808
6809
6810
6811
6812 # Check for command to grab the raw symbol name followed by C symbol from nm.
6813 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6814 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6815 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6816   echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818
6819 # These are sane defaults that work on at least a few old systems.
6820 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6821
6822 # Character class describing NM global symbol codes.
6823 symcode='[BCDEGRST]'
6824
6825 # Regexp to match symbols that can be accessed directly from C.
6826 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6827
6828 # Transform an extracted symbol line into a proper C declaration
6829 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6830
6831 # Transform an extracted symbol line into symbol name and symbol address
6832 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'"
6833
6834 # Define system-specific variables.
6835 case $host_os in
6836 aix*)
6837   symcode='[BCDT]'
6838   ;;
6839 cygwin* | mingw* | pw32*)
6840   symcode='[ABCDGISTW]'
6841   ;;
6842 hpux*) # Its linker distinguishes data from code symbols
6843   if test "$host_cpu" = ia64; then
6844     symcode='[ABCDEGRST]'
6845   fi
6846   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6847   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'"
6848   ;;
6849 linux*)
6850   if test "$host_cpu" = ia64; then
6851     symcode='[ABCDGIRSTW]'
6852     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6853     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'"
6854   fi
6855   ;;
6856 irix* | nonstopux*)
6857   symcode='[BCDEGRST]'
6858   ;;
6859 osf*)
6860   symcode='[BCDEGQRST]'
6861   ;;
6862 solaris* | sysv5*)
6863   symcode='[BDRT]'
6864   ;;
6865 sysv4)
6866   symcode='[DFNSTU]'
6867   ;;
6868 esac
6869
6870 # Handle CRLF in mingw tool chain
6871 opt_cr=
6872 case $build_os in
6873 mingw*)
6874   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6875   ;;
6876 esac
6877
6878 # If we're using GNU nm, then use its standard symbol codes.
6879 case `$NM -V 2>&1` in
6880 *GNU* | *'with BFD'*)
6881   symcode='[ABCDGIRSTW]' ;;
6882 esac
6883
6884 # Try without a prefix undercore, then with it.
6885 for ac_symprfx in "" "_"; do
6886
6887   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6888   symxfrm="\\1 $ac_symprfx\\2 \\2"
6889
6890   # Write the raw and C identifiers.
6891   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6892
6893   # Check to see that the pipe works correctly.
6894   pipe_works=no
6895
6896   rm -f conftest*
6897   cat > conftest.$ac_ext <<EOF
6898 #ifdef __cplusplus
6899 extern "C" {
6900 #endif
6901 char nm_test_var;
6902 void nm_test_func(){}
6903 #ifdef __cplusplus
6904 }
6905 #endif
6906 int main(){nm_test_var='a';nm_test_func();return(0);}
6907 EOF
6908
6909   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6910   (eval $ac_compile) 2>&5
6911   ac_status=$?
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); }; then
6914     # Now try to grab the symbols.
6915     nlist=conftest.nm
6916     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6917   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6918   ac_status=$?
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } && test -s "$nlist"; then
6921       # Try sorting and uniquifying the output.
6922       if sort "$nlist" | uniq > "$nlist"T; then
6923         mv -f "$nlist"T "$nlist"
6924       else
6925         rm -f "$nlist"T
6926       fi
6927
6928       # Make sure that we snagged all the symbols we need.
6929       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6930         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6931           cat <<EOF > conftest.$ac_ext
6932 #ifdef __cplusplus
6933 extern "C" {
6934 #endif
6935
6936 EOF
6937           # Now generate the symbol file.
6938           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6939
6940           cat <<EOF >> conftest.$ac_ext
6941 #if defined (__STDC__) && __STDC__
6942 # define lt_ptr_t void *
6943 #else
6944 # define lt_ptr_t char *
6945 # define const
6946 #endif
6947
6948 /* The mapping between symbol names and symbols. */
6949 const struct {
6950   const char *name;
6951   lt_ptr_t address;
6952 }
6953 lt_preloaded_symbols[] =
6954 {
6955 EOF
6956           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6957           cat <<\EOF >> conftest.$ac_ext
6958   {0, (lt_ptr_t) 0}
6959 };
6960
6961 #ifdef __cplusplus
6962 }
6963 #endif
6964 EOF
6965           # Now try linking the two files.
6966           mv conftest.$ac_objext conftstm.$ac_objext
6967           lt_save_LIBS="$LIBS"
6968           lt_save_CFLAGS="$CFLAGS"
6969           LIBS="conftstm.$ac_objext"
6970           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6971           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6972   (eval $ac_link) 2>&5
6973   ac_status=$?
6974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6976             pipe_works=yes
6977           fi
6978           LIBS="$lt_save_LIBS"
6979           CFLAGS="$lt_save_CFLAGS"
6980         else
6981           echo "cannot find nm_test_func in $nlist" >&5
6982         fi
6983       else
6984         echo "cannot find nm_test_var in $nlist" >&5
6985       fi
6986     else
6987       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6988     fi
6989   else
6990     echo "$progname: failed program was:" >&5
6991     cat conftest.$ac_ext >&5
6992   fi
6993   rm -f conftest* conftst*
6994
6995   # Do not use the global_symbol_pipe unless it works.
6996   if test "$pipe_works" = yes; then
6997     break
6998   else
6999     lt_cv_sys_global_symbol_pipe=
7000   fi
7001 done
7002
7003 fi
7004
7005 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7006   lt_cv_sys_global_symbol_to_cdecl=
7007 fi
7008 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7009   echo "$as_me:$LINENO: result: failed" >&5
7010 echo "${ECHO_T}failed" >&6
7011 else
7012   echo "$as_me:$LINENO: result: ok" >&5
7013 echo "${ECHO_T}ok" >&6
7014 fi
7015
7016 echo "$as_me:$LINENO: checking for objdir" >&5
7017 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7018 if test "${lt_cv_objdir+set}" = set; then
7019   echo $ECHO_N "(cached) $ECHO_C" >&6
7020 else
7021   rm -f .libs 2>/dev/null
7022 mkdir .libs 2>/dev/null
7023 if test -d .libs; then
7024   lt_cv_objdir=.libs
7025 else
7026   # MS-DOS does not allow filenames that begin with a dot.
7027   lt_cv_objdir=_libs
7028 fi
7029 rmdir .libs 2>/dev/null
7030 fi
7031 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7032 echo "${ECHO_T}$lt_cv_objdir" >&6
7033 objdir=$lt_cv_objdir
7034
7035
7036
7037
7038
7039 case $host_os in
7040 aix3*)
7041   # AIX sometimes has problems with the GCC collect2 program.  For some
7042   # reason, if we set the COLLECT_NAMES environment variable, the problems
7043   # vanish in a puff of smoke.
7044   if test "X${COLLECT_NAMES+set}" != Xset; then
7045     COLLECT_NAMES=
7046     export COLLECT_NAMES
7047   fi
7048   ;;
7049 esac
7050
7051 # Sed substitution that helps us do robust quoting.  It backslashifies
7052 # metacharacters that are still active within double-quoted strings.
7053 Xsed='sed -e 1s/^X//'
7054 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7055
7056 # Same as above, but do not quote variable references.
7057 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7058
7059 # Sed substitution to delay expansion of an escaped shell variable in a
7060 # double_quote_subst'ed string.
7061 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7062
7063 # Sed substitution to avoid accidental globbing in evaled expressions
7064 no_glob_subst='s/\*/\\\*/g'
7065
7066 # Constants:
7067 rm="rm -f"
7068
7069 # Global variables:
7070 default_ofile=libtool
7071 can_build_shared=yes
7072
7073 # All known linkers require a `.a' archive for static linking (except MSVC,
7074 # which needs '.lib').
7075 libext=a
7076 ltmain="$ac_aux_dir/ltmain.sh"
7077 ofile="$default_ofile"
7078 with_gnu_ld="$lt_cv_prog_gnu_ld"
7079
7080 if test -n "$ac_tool_prefix"; then
7081   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7082 set dummy ${ac_tool_prefix}ar; ac_word=$2
7083 echo "$as_me:$LINENO: checking for $ac_word" >&5
7084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7085 if test "${ac_cv_prog_AR+set}" = set; then
7086   echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088   if test -n "$AR"; then
7089   ac_cv_prog_AR="$AR" # Let the user override the test.
7090 else
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094   IFS=$as_save_IFS
7095   test -z "$as_dir" && as_dir=.
7096   for ac_exec_ext in '' $ac_executable_extensions; do
7097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7098     ac_cv_prog_AR="${ac_tool_prefix}ar"
7099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100     break 2
7101   fi
7102 done
7103 done
7104
7105 fi
7106 fi
7107 AR=$ac_cv_prog_AR
7108 if test -n "$AR"; then
7109   echo "$as_me:$LINENO: result: $AR" >&5
7110 echo "${ECHO_T}$AR" >&6
7111 else
7112   echo "$as_me:$LINENO: result: no" >&5
7113 echo "${ECHO_T}no" >&6
7114 fi
7115
7116 fi
7117 if test -z "$ac_cv_prog_AR"; then
7118   ac_ct_AR=$AR
7119   # Extract the first word of "ar", so it can be a program name with args.
7120 set dummy ar; ac_word=$2
7121 echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7123 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7124   echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126   if test -n "$ac_ct_AR"; then
7127   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134   for ac_exec_ext in '' $ac_executable_extensions; do
7135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136     ac_cv_prog_ac_ct_AR="ar"
7137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141 done
7142
7143   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7144 fi
7145 fi
7146 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7147 if test -n "$ac_ct_AR"; then
7148   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7149 echo "${ECHO_T}$ac_ct_AR" >&6
7150 else
7151   echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6
7153 fi
7154
7155   AR=$ac_ct_AR
7156 else
7157   AR="$ac_cv_prog_AR"
7158 fi
7159
7160 if test -n "$ac_tool_prefix"; then
7161   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7162 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7163 echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7165 if test "${ac_cv_prog_RANLIB+set}" = set; then
7166   echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168   if test -n "$RANLIB"; then
7169   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174   IFS=$as_save_IFS
7175   test -z "$as_dir" && as_dir=.
7176   for ac_exec_ext in '' $ac_executable_extensions; do
7177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180     break 2
7181   fi
7182 done
7183 done
7184
7185 fi
7186 fi
7187 RANLIB=$ac_cv_prog_RANLIB
7188 if test -n "$RANLIB"; then
7189   echo "$as_me:$LINENO: result: $RANLIB" >&5
7190 echo "${ECHO_T}$RANLIB" >&6
7191 else
7192   echo "$as_me:$LINENO: result: no" >&5
7193 echo "${ECHO_T}no" >&6
7194 fi
7195
7196 fi
7197 if test -z "$ac_cv_prog_RANLIB"; then
7198   ac_ct_RANLIB=$RANLIB
7199   # Extract the first word of "ranlib", so it can be a program name with args.
7200 set dummy ranlib; ac_word=$2
7201 echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7203 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7204   echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206   if test -n "$ac_ct_RANLIB"; then
7207   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212   IFS=$as_save_IFS
7213   test -z "$as_dir" && as_dir=.
7214   for ac_exec_ext in '' $ac_executable_extensions; do
7215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216     ac_cv_prog_ac_ct_RANLIB="ranlib"
7217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219   fi
7220 done
7221 done
7222
7223   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7224 fi
7225 fi
7226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7227 if test -n "$ac_ct_RANLIB"; then
7228   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7229 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7230 else
7231   echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6
7233 fi
7234
7235   RANLIB=$ac_ct_RANLIB
7236 else
7237   RANLIB="$ac_cv_prog_RANLIB"
7238 fi
7239
7240 if test -n "$ac_tool_prefix"; then
7241   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7242 set dummy ${ac_tool_prefix}strip; ac_word=$2
7243 echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7245 if test "${ac_cv_prog_STRIP+set}" = set; then
7246   echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248   if test -n "$STRIP"; then
7249   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7250 else
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7253 do
7254   IFS=$as_save_IFS
7255   test -z "$as_dir" && as_dir=.
7256   for ac_exec_ext in '' $ac_executable_extensions; do
7257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260     break 2
7261   fi
7262 done
7263 done
7264
7265 fi
7266 fi
7267 STRIP=$ac_cv_prog_STRIP
7268 if test -n "$STRIP"; then
7269   echo "$as_me:$LINENO: result: $STRIP" >&5
7270 echo "${ECHO_T}$STRIP" >&6
7271 else
7272   echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6
7274 fi
7275
7276 fi
7277 if test -z "$ac_cv_prog_STRIP"; then
7278   ac_ct_STRIP=$STRIP
7279   # Extract the first word of "strip", so it can be a program name with args.
7280 set dummy strip; ac_word=$2
7281 echo "$as_me:$LINENO: checking for $ac_word" >&5
7282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7283 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7284   echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286   if test -n "$ac_ct_STRIP"; then
7287   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7288 else
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7291 do
7292   IFS=$as_save_IFS
7293   test -z "$as_dir" && as_dir=.
7294   for ac_exec_ext in '' $ac_executable_extensions; do
7295   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7296     ac_cv_prog_ac_ct_STRIP="strip"
7297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298     break 2
7299   fi
7300 done
7301 done
7302
7303   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7304 fi
7305 fi
7306 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7307 if test -n "$ac_ct_STRIP"; then
7308   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7309 echo "${ECHO_T}$ac_ct_STRIP" >&6
7310 else
7311   echo "$as_me:$LINENO: result: no" >&5
7312 echo "${ECHO_T}no" >&6
7313 fi
7314
7315   STRIP=$ac_ct_STRIP
7316 else
7317   STRIP="$ac_cv_prog_STRIP"
7318 fi
7319
7320
7321 old_CC="$CC"
7322 old_CFLAGS="$CFLAGS"
7323
7324 # Set sane defaults for various variables
7325 test -z "$AR" && AR=ar
7326 test -z "$AR_FLAGS" && AR_FLAGS=cru
7327 test -z "$AS" && AS=as
7328 test -z "$CC" && CC=cc
7329 test -z "$LTCC" && LTCC=$CC
7330 test -z "$DLLTOOL" && DLLTOOL=dlltool
7331 test -z "$LD" && LD=ld
7332 test -z "$LN_S" && LN_S="ln -s"
7333 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7334 test -z "$NM" && NM=nm
7335 test -z "$SED" && SED=sed
7336 test -z "$OBJDUMP" && OBJDUMP=objdump
7337 test -z "$RANLIB" && RANLIB=:
7338 test -z "$STRIP" && STRIP=:
7339 test -z "$ac_objext" && ac_objext=o
7340
7341 # Determine commands to create old-style static archives.
7342 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7343 old_postinstall_cmds='chmod 644 $oldlib'
7344 old_postuninstall_cmds=
7345
7346 if test -n "$RANLIB"; then
7347   case $host_os in
7348   openbsd*)
7349     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7350     ;;
7351   *)
7352     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7353     ;;
7354   esac
7355   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7356 fi
7357
7358 for cc_temp in $compiler""; do
7359   case $cc_temp in
7360     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7361     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7362     \-*) ;;
7363     *) break;;
7364   esac
7365 done
7366 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7367
7368
7369 # Only perform the check for file, if the check method requires it
7370 case $deplibs_check_method in
7371 file_magic*)
7372   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7373     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7374 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7375 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7376   echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378   case $MAGIC_CMD in
7379 [\\/*] |  ?:[\\/]*)
7380   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7381   ;;
7382 *)
7383   lt_save_MAGIC_CMD="$MAGIC_CMD"
7384   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7385   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7386   for ac_dir in $ac_dummy; do
7387     IFS="$lt_save_ifs"
7388     test -z "$ac_dir" && ac_dir=.
7389     if test -f $ac_dir/${ac_tool_prefix}file; then
7390       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7391       if test -n "$file_magic_test_file"; then
7392         case $deplibs_check_method in
7393         "file_magic "*)
7394           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7395           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7396           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7397             $EGREP "$file_magic_regex" > /dev/null; then
7398             :
7399           else
7400             cat <<EOF 1>&2
7401
7402 *** Warning: the command libtool uses to detect shared libraries,
7403 *** $file_magic_cmd, produces output that libtool cannot recognize.
7404 *** The result is that libtool may fail to recognize shared libraries
7405 *** as such.  This will affect the creation of libtool libraries that
7406 *** depend on shared libraries, but programs linked with such libtool
7407 *** libraries will work regardless of this problem.  Nevertheless, you
7408 *** may want to report the problem to your system manager and/or to
7409 *** bug-libtool@gnu.org
7410
7411 EOF
7412           fi ;;
7413         esac
7414       fi
7415       break
7416     fi
7417   done
7418   IFS="$lt_save_ifs"
7419   MAGIC_CMD="$lt_save_MAGIC_CMD"
7420   ;;
7421 esac
7422 fi
7423
7424 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7425 if test -n "$MAGIC_CMD"; then
7426   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7427 echo "${ECHO_T}$MAGIC_CMD" >&6
7428 else
7429   echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7431 fi
7432
7433 if test -z "$lt_cv_path_MAGIC_CMD"; then
7434   if test -n "$ac_tool_prefix"; then
7435     echo "$as_me:$LINENO: checking for file" >&5
7436 echo $ECHO_N "checking for file... $ECHO_C" >&6
7437 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7438   echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440   case $MAGIC_CMD in
7441 [\\/*] |  ?:[\\/]*)
7442   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7443   ;;
7444 *)
7445   lt_save_MAGIC_CMD="$MAGIC_CMD"
7446   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7447   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7448   for ac_dir in $ac_dummy; do
7449     IFS="$lt_save_ifs"
7450     test -z "$ac_dir" && ac_dir=.
7451     if test -f $ac_dir/file; then
7452       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7453       if test -n "$file_magic_test_file"; then
7454         case $deplibs_check_method in
7455         "file_magic "*)
7456           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7457           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7458           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7459             $EGREP "$file_magic_regex" > /dev/null; then
7460             :
7461           else
7462             cat <<EOF 1>&2
7463
7464 *** Warning: the command libtool uses to detect shared libraries,
7465 *** $file_magic_cmd, produces output that libtool cannot recognize.
7466 *** The result is that libtool may fail to recognize shared libraries
7467 *** as such.  This will affect the creation of libtool libraries that
7468 *** depend on shared libraries, but programs linked with such libtool
7469 *** libraries will work regardless of this problem.  Nevertheless, you
7470 *** may want to report the problem to your system manager and/or to
7471 *** bug-libtool@gnu.org
7472
7473 EOF
7474           fi ;;
7475         esac
7476       fi
7477       break
7478     fi
7479   done
7480   IFS="$lt_save_ifs"
7481   MAGIC_CMD="$lt_save_MAGIC_CMD"
7482   ;;
7483 esac
7484 fi
7485
7486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7487 if test -n "$MAGIC_CMD"; then
7488   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7489 echo "${ECHO_T}$MAGIC_CMD" >&6
7490 else
7491   echo "$as_me:$LINENO: result: no" >&5
7492 echo "${ECHO_T}no" >&6
7493 fi
7494
7495   else
7496     MAGIC_CMD=:
7497   fi
7498 fi
7499
7500   fi
7501   ;;
7502 esac
7503
7504 enable_dlopen=yes
7505 enable_win32_dll=yes
7506
7507 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7508 if test "${enable_libtool_lock+set}" = set; then
7509   enableval="$enable_libtool_lock"
7510
7511 fi;
7512 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7513
7514
7515 # Check whether --with-pic or --without-pic was given.
7516 if test "${with_pic+set}" = set; then
7517   withval="$with_pic"
7518   pic_mode="$withval"
7519 else
7520   pic_mode=default
7521 fi;
7522 test -z "$pic_mode" && pic_mode=default
7523
7524 # Use C for the default configuration in the libtool script
7525 tagname=
7526 lt_save_CC="$CC"
7527 ac_ext=c
7528 ac_cpp='$CPP $CPPFLAGS'
7529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7532
7533
7534 # Source file extension for C test sources.
7535 ac_ext=c
7536
7537 # Object file extension for compiled C test sources.
7538 objext=o
7539 objext=$objext
7540
7541 # Code to be used in simple compile tests
7542 lt_simple_compile_test_code="int some_variable = 0;\n"
7543
7544 # Code to be used in simple link tests
7545 lt_simple_link_test_code='int main(){return(0);}\n'
7546
7547
7548 # If no C compiler was specified, use CC.
7549 LTCC=${LTCC-"$CC"}
7550
7551 # Allow CC to be a program name with arguments.
7552 compiler=$CC
7553
7554
7555 # save warnings/boilerplate of simple test code
7556 ac_outfile=conftest.$ac_objext
7557 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7558 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7559 _lt_compiler_boilerplate=`cat conftest.err`
7560 $rm conftest*
7561
7562 ac_outfile=conftest.$ac_objext
7563 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7564 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7565 _lt_linker_boilerplate=`cat conftest.err`
7566 $rm conftest*
7567
7568
7569 #
7570 # Check for any special shared library compilation flags.
7571 #
7572 lt_prog_cc_shlib=
7573 if test "$GCC" = no; then
7574   case $host_os in
7575   sco3.2v5*)
7576     lt_prog_cc_shlib='-belf'
7577     ;;
7578   esac
7579 fi
7580 if test -n "$lt_prog_cc_shlib"; then
7581   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7582 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7583   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7584   else
7585     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7586 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7587     lt_cv_prog_cc_can_build_shared=no
7588   fi
7589 fi
7590
7591
7592 #
7593 # Check to make sure the static flag actually works.
7594 #
7595 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7596 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7597 if test "${lt_prog_compiler_static_works+set}" = set; then
7598   echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600   lt_prog_compiler_static_works=no
7601    save_LDFLAGS="$LDFLAGS"
7602    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7603    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7604    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7605      # The linker can only warn and ignore the option if not recognized
7606      # So say no if there are warnings
7607      if test -s conftest.err; then
7608        # Append any errors to the config.log.
7609        cat conftest.err 1>&5
7610        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7611        $SED '/^$/d' conftest.err >conftest.er2
7612        if diff conftest.exp conftest.er2 >/dev/null; then
7613          lt_prog_compiler_static_works=yes
7614        fi
7615      else
7616        lt_prog_compiler_static_works=yes
7617      fi
7618    fi
7619    $rm conftest*
7620    LDFLAGS="$save_LDFLAGS"
7621
7622 fi
7623 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7624 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7625
7626 if test x"$lt_prog_compiler_static_works" = xyes; then
7627     :
7628 else
7629     lt_prog_compiler_static=
7630 fi
7631
7632
7633
7634
7635 lt_prog_compiler_no_builtin_flag=
7636
7637 if test "$GCC" = yes; then
7638   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7639
7640
7641 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7642 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7643 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7644   echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646   lt_cv_prog_compiler_rtti_exceptions=no
7647   ac_outfile=conftest.$ac_objext
7648    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7649    lt_compiler_flag="-fno-rtti -fno-exceptions"
7650    # Insert the option either (1) after the last *FLAGS variable, or
7651    # (2) before a word containing "conftest.", or (3) at the end.
7652    # Note that $ac_compile itself does not contain backslashes and begins
7653    # with a dollar sign (not a hyphen), so the echo should work correctly.
7654    # The option is referenced via a variable to avoid confusing sed.
7655    lt_compile=`echo "$ac_compile" | $SED \
7656    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7657    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7658    -e 's:$: $lt_compiler_flag:'`
7659    (eval echo "\"\$as_me:7659: $lt_compile\"" >&5)
7660    (eval "$lt_compile" 2>conftest.err)
7661    ac_status=$?
7662    cat conftest.err >&5
7663    echo "$as_me:7663: \$? = $ac_status" >&5
7664    if (exit $ac_status) && test -s "$ac_outfile"; then
7665      # The compiler can only warn and ignore the option if not recognized
7666      # So say no if there are warnings other than the usual output.
7667      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7668      $SED '/^$/d' conftest.err >conftest.er2
7669      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7670        lt_cv_prog_compiler_rtti_exceptions=yes
7671      fi
7672    fi
7673    $rm conftest*
7674
7675 fi
7676 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7677 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7678
7679 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7680     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7681 else
7682     :
7683 fi
7684
7685 fi
7686
7687 lt_prog_compiler_wl=
7688 lt_prog_compiler_pic=
7689 lt_prog_compiler_static=
7690
7691 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7692 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7693
7694   if test "$GCC" = yes; then
7695     lt_prog_compiler_wl='-Wl,'
7696     lt_prog_compiler_static='-static'
7697
7698     case $host_os in
7699       aix*)
7700       # All AIX code is PIC.
7701       if test "$host_cpu" = ia64; then
7702         # AIX 5 now supports IA64 processor
7703         lt_prog_compiler_static='-Bstatic'
7704       fi
7705       ;;
7706
7707     amigaos*)
7708       # FIXME: we need at least 68020 code to build shared libraries, but
7709       # adding the `-m68020' flag to GCC prevents building anything better,
7710       # like `-m68040'.
7711       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7712       ;;
7713
7714     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7715       # PIC is the default for these OSes.
7716       ;;
7717
7718     mingw* | pw32* | os2*)
7719       # This hack is so that the source file can tell whether it is being
7720       # built for inclusion in a dll (and should export symbols for example).
7721       lt_prog_compiler_pic='-DDLL_EXPORT'
7722       ;;
7723
7724     darwin* | rhapsody*)
7725       # PIC is the default on this platform
7726       # Common symbols not allowed in MH_DYLIB files
7727       lt_prog_compiler_pic='-fno-common'
7728       ;;
7729
7730     msdosdjgpp*)
7731       # Just because we use GCC doesn't mean we suddenly get shared libraries
7732       # on systems that don't support them.
7733       lt_prog_compiler_can_build_shared=no
7734       enable_shared=no
7735       ;;
7736
7737     sysv4*MP*)
7738       if test -d /usr/nec; then
7739         lt_prog_compiler_pic=-Kconform_pic
7740       fi
7741       ;;
7742
7743     hpux*)
7744       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7745       # not for PA HP-UX.
7746       case $host_cpu in
7747       hppa*64*|ia64*)
7748         # +Z the default
7749         ;;
7750       *)
7751         lt_prog_compiler_pic='-fPIC'
7752         ;;
7753       esac
7754       ;;
7755
7756     *)
7757       lt_prog_compiler_pic='-fPIC'
7758       ;;
7759     esac
7760   else
7761     # PORTME Check for flag to pass linker flags through the system compiler.
7762     case $host_os in
7763     aix*)
7764       lt_prog_compiler_wl='-Wl,'
7765       if test "$host_cpu" = ia64; then
7766         # AIX 5 now supports IA64 processor
7767         lt_prog_compiler_static='-Bstatic'
7768       else
7769         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7770       fi
7771       ;;
7772       darwin*)
7773         # PIC is the default on this platform
7774         # Common symbols not allowed in MH_DYLIB files
7775        case $cc_basename in
7776          xlc*)
7777          lt_prog_compiler_pic='-qnocommon'
7778          lt_prog_compiler_wl='-Wl,'
7779          ;;
7780        esac
7781        ;;
7782
7783     mingw* | pw32* | os2*)
7784       # This hack is so that the source file can tell whether it is being
7785       # built for inclusion in a dll (and should export symbols for example).
7786       lt_prog_compiler_pic='-DDLL_EXPORT'
7787       ;;
7788
7789     hpux9* | hpux10* | hpux11*)
7790       lt_prog_compiler_wl='-Wl,'
7791       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7792       # not for PA HP-UX.
7793       case $host_cpu in
7794       hppa*64*|ia64*)
7795         # +Z the default
7796         ;;
7797       *)
7798         lt_prog_compiler_pic='+Z'
7799         ;;
7800       esac
7801       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7802       lt_prog_compiler_static='${wl}-a ${wl}archive'
7803       ;;
7804
7805     irix5* | irix6* | nonstopux*)
7806       lt_prog_compiler_wl='-Wl,'
7807       # PIC (with -KPIC) is the default.
7808       lt_prog_compiler_static='-non_shared'
7809       ;;
7810
7811     newsos6)
7812       lt_prog_compiler_pic='-KPIC'
7813       lt_prog_compiler_static='-Bstatic'
7814       ;;
7815
7816     linux*)
7817       case $cc_basename in
7818       icc* | ecc*)
7819         lt_prog_compiler_wl='-Wl,'
7820         lt_prog_compiler_pic='-KPIC'
7821         lt_prog_compiler_static='-static'
7822         ;;
7823       pgcc* | pgf77* | pgf90* | pgf95*)
7824         # Portland Group compilers (*not* the Pentium gcc compiler,
7825         # which looks to be a dead project)
7826         lt_prog_compiler_wl='-Wl,'
7827         lt_prog_compiler_pic='-fpic'
7828         lt_prog_compiler_static='-Bstatic'
7829         ;;
7830       ccc*)
7831         lt_prog_compiler_wl='-Wl,'
7832         # All Alpha code is PIC.
7833         lt_prog_compiler_static='-non_shared'
7834         ;;
7835       esac
7836       ;;
7837
7838     osf3* | osf4* | osf5*)
7839       lt_prog_compiler_wl='-Wl,'
7840       # All OSF/1 code is PIC.
7841       lt_prog_compiler_static='-non_shared'
7842       ;;
7843
7844     sco3.2v5*)
7845       lt_prog_compiler_pic='-Kpic'
7846       lt_prog_compiler_static='-dn'
7847       ;;
7848
7849     solaris*)
7850       lt_prog_compiler_pic='-KPIC'
7851       lt_prog_compiler_static='-Bstatic'
7852       case $cc_basename in
7853       f77* | f90* | f95*)
7854         lt_prog_compiler_wl='-Qoption ld ';;
7855       *)
7856         lt_prog_compiler_wl='-Wl,';;
7857       esac
7858       ;;
7859
7860     sunos4*)
7861       lt_prog_compiler_wl='-Qoption ld '
7862       lt_prog_compiler_pic='-PIC'
7863       lt_prog_compiler_static='-Bstatic'
7864       ;;
7865
7866     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7867       lt_prog_compiler_wl='-Wl,'
7868       lt_prog_compiler_pic='-KPIC'
7869       lt_prog_compiler_static='-Bstatic'
7870       ;;
7871
7872     sysv4*MP*)
7873       if test -d /usr/nec ;then
7874         lt_prog_compiler_pic='-Kconform_pic'
7875         lt_prog_compiler_static='-Bstatic'
7876       fi
7877       ;;
7878
7879     unicos*)
7880       lt_prog_compiler_wl='-Wl,'
7881       lt_prog_compiler_can_build_shared=no
7882       ;;
7883
7884     uts4*)
7885       lt_prog_compiler_pic='-pic'
7886       lt_prog_compiler_static='-Bstatic'
7887       ;;
7888
7889     *)
7890       lt_prog_compiler_can_build_shared=no
7891       ;;
7892     esac
7893   fi
7894
7895 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7896 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7897
7898 #
7899 # Check to make sure the PIC flag actually works.
7900 #
7901 if test -n "$lt_prog_compiler_pic"; then
7902
7903 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7904 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7905 if test "${lt_prog_compiler_pic_works+set}" = set; then
7906   echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908   lt_prog_compiler_pic_works=no
7909   ac_outfile=conftest.$ac_objext
7910    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7911    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7912    # Insert the option either (1) after the last *FLAGS variable, or
7913    # (2) before a word containing "conftest.", or (3) at the end.
7914    # Note that $ac_compile itself does not contain backslashes and begins
7915    # with a dollar sign (not a hyphen), so the echo should work correctly.
7916    # The option is referenced via a variable to avoid confusing sed.
7917    lt_compile=`echo "$ac_compile" | $SED \
7918    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7919    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7920    -e 's:$: $lt_compiler_flag:'`
7921    (eval echo "\"\$as_me:7921: $lt_compile\"" >&5)
7922    (eval "$lt_compile" 2>conftest.err)
7923    ac_status=$?
7924    cat conftest.err >&5
7925    echo "$as_me:7925: \$? = $ac_status" >&5
7926    if (exit $ac_status) && test -s "$ac_outfile"; then
7927      # The compiler can only warn and ignore the option if not recognized
7928      # So say no if there are warnings other than the usual output.
7929      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7930      $SED '/^$/d' conftest.err >conftest.er2
7931      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7932        lt_prog_compiler_pic_works=yes
7933      fi
7934    fi
7935    $rm conftest*
7936
7937 fi
7938 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7939 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7940
7941 if test x"$lt_prog_compiler_pic_works" = xyes; then
7942     case $lt_prog_compiler_pic in
7943      "" | " "*) ;;
7944      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7945      esac
7946 else
7947     lt_prog_compiler_pic=
7948      lt_prog_compiler_can_build_shared=no
7949 fi
7950
7951 fi
7952 case $host_os in
7953   # For platforms which do not support PIC, -DPIC is meaningless:
7954   *djgpp*)
7955     lt_prog_compiler_pic=
7956     ;;
7957   *)
7958     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7959     ;;
7960 esac
7961
7962 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7963 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7964 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7965   echo $ECHO_N "(cached) $ECHO_C" >&6
7966 else
7967   lt_cv_prog_compiler_c_o=no
7968    $rm -r conftest 2>/dev/null
7969    mkdir conftest
7970    cd conftest
7971    mkdir out
7972    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7973
7974    lt_compiler_flag="-o out/conftest2.$ac_objext"
7975    # Insert the option either (1) after the last *FLAGS variable, or
7976    # (2) before a word containing "conftest.", or (3) at the end.
7977    # Note that $ac_compile itself does not contain backslashes and begins
7978    # with a dollar sign (not a hyphen), so the echo should work correctly.
7979    lt_compile=`echo "$ac_compile" | $SED \
7980    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7981    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7982    -e 's:$: $lt_compiler_flag:'`
7983    (eval echo "\"\$as_me:7983: $lt_compile\"" >&5)
7984    (eval "$lt_compile" 2>out/conftest.err)
7985    ac_status=$?
7986    cat out/conftest.err >&5
7987    echo "$as_me:7987: \$? = $ac_status" >&5
7988    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7989    then
7990      # The compiler can only warn and ignore the option if not recognized
7991      # So say no if there are warnings
7992      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7993      $SED '/^$/d' out/conftest.err >out/conftest.er2
7994      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7995        lt_cv_prog_compiler_c_o=yes
7996      fi
7997    fi
7998    chmod u+w . 2>&5
7999    $rm conftest*
8000    # SGI C++ compiler will create directory out/ii_files/ for
8001    # template instantiation
8002    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8003    $rm out/* && rmdir out
8004    cd ..
8005    rmdir conftest
8006    $rm conftest*
8007
8008 fi
8009 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8010 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8011
8012
8013 hard_links="nottested"
8014 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8015   # do not overwrite the value of need_locks provided by the user
8016   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8017 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8018   hard_links=yes
8019   $rm conftest*
8020   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8021   touch conftest.a
8022   ln conftest.a conftest.b 2>&5 || hard_links=no
8023   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8024   echo "$as_me:$LINENO: result: $hard_links" >&5
8025 echo "${ECHO_T}$hard_links" >&6
8026   if test "$hard_links" = no; then
8027     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8028 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8029     need_locks=warn
8030   fi
8031 else
8032   need_locks=no
8033 fi
8034
8035 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8036 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8037
8038   runpath_var=
8039   allow_undefined_flag=
8040   enable_shared_with_static_runtimes=no
8041   archive_cmds=
8042   archive_expsym_cmds=
8043   old_archive_From_new_cmds=
8044   old_archive_from_expsyms_cmds=
8045   export_dynamic_flag_spec=
8046   whole_archive_flag_spec=
8047   thread_safe_flag_spec=
8048   hardcode_libdir_flag_spec=
8049   hardcode_libdir_flag_spec_ld=
8050   hardcode_libdir_separator=
8051   hardcode_direct=no
8052   hardcode_minus_L=no
8053   hardcode_shlibpath_var=unsupported
8054   link_all_deplibs=unknown
8055   hardcode_automatic=no
8056   module_cmds=
8057   module_expsym_cmds=
8058   always_export_symbols=no
8059   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8060   # include_expsyms should be a list of space-separated symbols to be *always*
8061   # included in the symbol list
8062   include_expsyms=
8063   # exclude_expsyms can be an extended regexp of symbols to exclude
8064   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8065   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8066   # as well as any symbol that contains `d'.
8067   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8068   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8069   # platforms (ab)use it in PIC code, but their linkers get confused if
8070   # the symbol is explicitly referenced.  Since portable code cannot
8071   # rely on this symbol name, it's probably fine to never include it in
8072   # preloaded symbol tables.
8073   extract_expsyms_cmds=
8074   # Just being paranoid about ensuring that cc_basename is set.
8075   for cc_temp in $compiler""; do
8076   case $cc_temp in
8077     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8078     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8079     \-*) ;;
8080     *) break;;
8081   esac
8082 done
8083 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8084
8085   case $host_os in
8086   cygwin* | mingw* | pw32*)
8087     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8088     # When not using gcc, we currently assume that we are using
8089     # Microsoft Visual C++.
8090     if test "$GCC" != yes; then
8091       with_gnu_ld=no
8092     fi
8093     ;;
8094   openbsd*)
8095     with_gnu_ld=no
8096     ;;
8097   esac
8098
8099   ld_shlibs=yes
8100   if test "$with_gnu_ld" = yes; then
8101     # If archive_cmds runs LD, not CC, wlarc should be empty
8102     wlarc='${wl}'
8103
8104     # Set some defaults for GNU ld with shared library support. These
8105     # are reset later if shared libraries are not supported. Putting them
8106     # here allows them to be overridden if necessary.
8107     runpath_var=LD_RUN_PATH
8108     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8109     export_dynamic_flag_spec='${wl}--export-dynamic'
8110     # ancient GNU ld didn't support --whole-archive et. al.
8111     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8112         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8113       else
8114         whole_archive_flag_spec=
8115     fi
8116     supports_anon_versioning=no
8117     case `$LD -v 2>/dev/null` in
8118       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8119       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8120       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8121       *\ 2.11.*) ;; # other 2.11 versions
8122       *) supports_anon_versioning=yes ;;
8123     esac
8124
8125     # See if GNU ld supports shared libraries.
8126     case $host_os in
8127     aix3* | aix4* | aix5*)
8128       # On AIX/PPC, the GNU linker is very broken
8129       if test "$host_cpu" != ia64; then
8130         ld_shlibs=no
8131         cat <<EOF 1>&2
8132
8133 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8134 *** to be unable to reliably create shared libraries on AIX.
8135 *** Therefore, libtool is disabling shared libraries support.  If you
8136 *** really care for shared libraries, you may want to modify your PATH
8137 *** so that a non-GNU linker is found, and then restart.
8138
8139 EOF
8140       fi
8141       ;;
8142
8143     amigaos*)
8144       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)'
8145       hardcode_libdir_flag_spec='-L$libdir'
8146       hardcode_minus_L=yes
8147
8148       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8149       # that the semantics of dynamic libraries on AmigaOS, at least up
8150       # to version 4, is to share data among multiple programs linked
8151       # with the same dynamic library.  Since this doesn't match the
8152       # behavior of shared libraries on other platforms, we can't use
8153       # them.
8154       ld_shlibs=no
8155       ;;
8156
8157     beos*)
8158       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8159         allow_undefined_flag=unsupported
8160         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8161         # support --undefined.  This deserves some investigation.  FIXME
8162         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8163       else
8164         ld_shlibs=no
8165       fi
8166       ;;
8167
8168     cygwin* | mingw* | pw32*)
8169       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8170       # as there is no search path for DLLs.
8171       hardcode_libdir_flag_spec='-L$libdir'
8172       allow_undefined_flag=unsupported
8173       always_export_symbols=no
8174       enable_shared_with_static_runtimes=yes
8175       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8176
8177       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8178         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8179         # If the export-symbols file already is a .def file (1st line
8180         # is EXPORTS), use it as is; otherwise, prepend...
8181         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8182           cp $export_symbols $output_objdir/$soname.def;
8183         else
8184           echo EXPORTS > $output_objdir/$soname.def;
8185           cat $export_symbols >> $output_objdir/$soname.def;
8186         fi~
8187         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8188       else
8189         ld_shlibs=no
8190       fi
8191       ;;
8192
8193     linux*)
8194       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8195         tmp_addflag=
8196         case $cc_basename,$host_cpu in
8197         pgcc*)                          # Portland Group C compiler
8198           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'
8199           tmp_addflag=' $pic_flag'
8200           ;;
8201         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8202           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'
8203           tmp_addflag=' $pic_flag -Mnomain' ;;
8204         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8205           tmp_addflag=' -i_dynamic' ;;
8206         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8207           tmp_addflag=' -i_dynamic -nofor_main' ;;
8208         ifc* | ifort*)                  # Intel Fortran compiler
8209           tmp_addflag=' -nofor_main' ;;
8210         esac
8211         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8212
8213         if test $supports_anon_versioning = yes; then
8214           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8215   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8216   $echo "local: *; };" >> $output_objdir/$libname.ver~
8217           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8218         fi
8219       else
8220         ld_shlibs=no
8221       fi
8222       ;;
8223
8224     netbsd*)
8225       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8226         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8227         wlarc=
8228       else
8229         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8230         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8231       fi
8232       ;;
8233
8234     solaris* | sysv5*)
8235       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8236         ld_shlibs=no
8237         cat <<EOF 1>&2
8238
8239 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8240 *** create shared libraries on Solaris systems.  Therefore, libtool
8241 *** is disabling shared libraries support.  We urge you to upgrade GNU
8242 *** binutils to release 2.9.1 or newer.  Another option is to modify
8243 *** your PATH or compiler configuration so that the native linker is
8244 *** used, and then restart.
8245
8246 EOF
8247       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8248         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8249         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8250       else
8251         ld_shlibs=no
8252       fi
8253       ;;
8254
8255     sunos4*)
8256       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8257       wlarc=
8258       hardcode_direct=yes
8259       hardcode_shlibpath_var=no
8260       ;;
8261
8262     *)
8263       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8264         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8266       else
8267         ld_shlibs=no
8268       fi
8269       ;;
8270     esac
8271
8272     if test "$ld_shlibs" = no; then
8273       runpath_var=
8274       hardcode_libdir_flag_spec=
8275       export_dynamic_flag_spec=
8276       whole_archive_flag_spec=
8277     fi
8278   else
8279     # PORTME fill in a description of your system's linker (not GNU ld)
8280     case $host_os in
8281     aix3*)
8282       allow_undefined_flag=unsupported
8283       always_export_symbols=yes
8284       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'
8285       # Note: this linker hardcodes the directories in LIBPATH if there
8286       # are no directories specified by -L.
8287       hardcode_minus_L=yes
8288       if test "$GCC" = yes && test -z "$link_static_flag"; then
8289         # Neither direct hardcoding nor static linking is supported with a
8290         # broken collect2.
8291         hardcode_direct=unsupported
8292       fi
8293       ;;
8294
8295     aix4* | aix5*)
8296       if test "$host_cpu" = ia64; then
8297         # On IA64, the linker does run time linking by default, so we don't
8298         # have to do anything special.
8299         aix_use_runtimelinking=no
8300         exp_sym_flag='-Bexport'
8301         no_entry_flag=""
8302       else
8303         # If we're using GNU nm, then we don't want the "-C" option.
8304         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8305         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8306           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'
8307         else
8308           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'
8309         fi
8310         aix_use_runtimelinking=no
8311
8312         # Test if we are trying to use run time linking or normal
8313         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8314         # need to do runtime linking.
8315         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8316           for ld_flag in $LDFLAGS; do
8317           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8318             aix_use_runtimelinking=yes
8319             break
8320           fi
8321           done
8322         esac
8323
8324         exp_sym_flag='-bexport'
8325         no_entry_flag='-bnoentry'
8326       fi
8327
8328       # When large executables or shared objects are built, AIX ld can
8329       # have problems creating the table of contents.  If linking a library
8330       # or program results in "error TOC overflow" add -mminimal-toc to
8331       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8332       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8333
8334       archive_cmds=''
8335       hardcode_direct=yes
8336       hardcode_libdir_separator=':'
8337       link_all_deplibs=yes
8338
8339       if test "$GCC" = yes; then
8340         case $host_os in aix4.[012]|aix4.[012].*)
8341         # We only want to do this on AIX 4.2 and lower, the check
8342         # below for broken collect2 doesn't work under 4.3+
8343           collect2name=`${CC} -print-prog-name=collect2`
8344           if test -f "$collect2name" && \
8345            strings "$collect2name" | grep resolve_lib_name >/dev/null
8346           then
8347           # We have reworked collect2
8348           hardcode_direct=yes
8349           else
8350           # We have old collect2
8351           hardcode_direct=unsupported
8352           # It fails to find uninstalled libraries when the uninstalled
8353           # path is not listed in the libpath.  Setting hardcode_minus_L
8354           # to unsupported forces relinking
8355           hardcode_minus_L=yes
8356           hardcode_libdir_flag_spec='-L$libdir'
8357           hardcode_libdir_separator=
8358           fi
8359         esac
8360         shared_flag='-shared'
8361         if test "$aix_use_runtimelinking" = yes; then
8362           shared_flag="$shared_flag "'${wl}-G'
8363         fi
8364       else
8365         # not using gcc
8366         if test "$host_cpu" = ia64; then
8367         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8368         # chokes on -Wl,-G. The following line is correct:
8369           shared_flag='-G'
8370         else
8371         if test "$aix_use_runtimelinking" = yes; then
8372             shared_flag='${wl}-G'
8373           else
8374             shared_flag='${wl}-bM:SRE'
8375         fi
8376         fi
8377       fi
8378
8379       # It seems that -bexpall does not export symbols beginning with
8380       # underscore (_), so it is better to generate a list of symbols to export.
8381       always_export_symbols=yes
8382       if test "$aix_use_runtimelinking" = yes; then
8383         # Warning - without using the other runtime loading flags (-brtl),
8384         # -berok will link without error, but may produce a broken library.
8385         allow_undefined_flag='-berok'
8386        # Determine the default libpath from the value encoded in an empty executable.
8387        cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h.  */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h.  */
8393
8394 int
8395 main ()
8396 {
8397
8398   ;
8399   return 0;
8400 }
8401 _ACEOF
8402 rm -f conftest.$ac_objext conftest$ac_exeext
8403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8404   (eval $ac_link) 2>conftest.er1
8405   ac_status=$?
8406   grep -v '^ *+' conftest.er1 >conftest.err
8407   rm -f conftest.er1
8408   cat conftest.err >&5
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); } &&
8411          { ac_try='test -z "$ac_c_werror_flag"
8412                          || test ! -s conftest.err'
8413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414   (eval $ac_try) 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); }; } &&
8418          { ac_try='test -s conftest$ac_exeext'
8419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420   (eval $ac_try) 2>&5
8421   ac_status=$?
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); }; }; then
8424
8425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8426 }'`
8427 # Check for a 64-bit object if we didn't find anything.
8428 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; }
8429 }'`; fi
8430 else
8431   echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8433
8434 fi
8435 rm -f conftest.err conftest.$ac_objext \
8436       conftest$ac_exeext conftest.$ac_ext
8437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8438
8439        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8440         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"
8441        else
8442         if test "$host_cpu" = ia64; then
8443           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8444           allow_undefined_flag="-z nodefs"
8445           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"
8446         else
8447          # Determine the default libpath from the value encoded in an empty executable.
8448          cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h.  */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h.  */
8454
8455 int
8456 main ()
8457 {
8458
8459   ;
8460   return 0;
8461 }
8462 _ACEOF
8463 rm -f conftest.$ac_objext conftest$ac_exeext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8465   (eval $ac_link) 2>conftest.er1
8466   ac_status=$?
8467   grep -v '^ *+' conftest.er1 >conftest.err
8468   rm -f conftest.er1
8469   cat conftest.err >&5
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); } &&
8472          { ac_try='test -z "$ac_c_werror_flag"
8473                          || test ! -s conftest.err'
8474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475   (eval $ac_try) 2>&5
8476   ac_status=$?
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); }; } &&
8479          { ac_try='test -s conftest$ac_exeext'
8480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481   (eval $ac_try) 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); }; }; then
8485
8486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8487 }'`
8488 # Check for a 64-bit object if we didn't find anything.
8489 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; }
8490 }'`; fi
8491 else
8492   echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8494
8495 fi
8496 rm -f conftest.err conftest.$ac_objext \
8497       conftest$ac_exeext conftest.$ac_ext
8498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8499
8500          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8501           # Warning - without using the other run time loading flags,
8502           # -berok will link without error, but may produce a broken library.
8503           no_undefined_flag=' ${wl}-bernotok'
8504           allow_undefined_flag=' ${wl}-berok'
8505           # -bexpall does not export symbols beginning with underscore (_)
8506           always_export_symbols=yes
8507           # Exported symbols can be pulled into shared objects from archives
8508           whole_archive_flag_spec=' '
8509           archive_cmds_need_lc=yes
8510           # This is similar to how AIX traditionally builds its shared libraries.
8511           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'
8512         fi
8513       fi
8514       ;;
8515
8516     amigaos*)
8517       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)'
8518       hardcode_libdir_flag_spec='-L$libdir'
8519       hardcode_minus_L=yes
8520       # see comment about different semantics on the GNU ld section
8521       ld_shlibs=no
8522       ;;
8523
8524     bsdi[45]*)
8525       export_dynamic_flag_spec=-rdynamic
8526       ;;
8527
8528     cygwin* | mingw* | pw32*)
8529       # When not using gcc, we currently assume that we are using
8530       # Microsoft Visual C++.
8531       # hardcode_libdir_flag_spec is actually meaningless, as there is
8532       # no search path for DLLs.
8533       hardcode_libdir_flag_spec=' '
8534       allow_undefined_flag=unsupported
8535       # Tell ltmain to make .lib files, not .a files.
8536       libext=lib
8537       # Tell ltmain to make .dll files, not .so files.
8538       shrext_cmds=".dll"
8539       # FIXME: Setting linknames here is a bad hack.
8540       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8541       # The linker will automatically build a .lib file if we build a DLL.
8542       old_archive_From_new_cmds='true'
8543       # FIXME: Should let the user specify the lib program.
8544       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8545       fix_srcfile_path='`cygpath -w "$srcfile"`'
8546       enable_shared_with_static_runtimes=yes
8547       ;;
8548
8549     darwin* | rhapsody*)
8550       case $host_os in
8551         rhapsody* | darwin1.[012])
8552          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8553          ;;
8554        *) # Darwin 1.3 on
8555          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8556            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8557          else
8558            case ${MACOSX_DEPLOYMENT_TARGET} in
8559              10.[012])
8560                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8561                ;;
8562              10.*)
8563                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8564                ;;
8565            esac
8566          fi
8567          ;;
8568       esac
8569       archive_cmds_need_lc=no
8570       hardcode_direct=no
8571       hardcode_automatic=yes
8572       hardcode_shlibpath_var=unsupported
8573       whole_archive_flag_spec=''
8574       link_all_deplibs=yes
8575     if test "$GCC" = yes ; then
8576         output_verbose_link_cmd='echo'
8577         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8578       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8579       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8580       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}'
8581       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}'
8582     else
8583       case $cc_basename in
8584         xlc*)
8585          output_verbose_link_cmd='echo'
8586          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8587          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8588           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8589          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}'
8590           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}'
8591           ;;
8592        *)
8593          ld_shlibs=no
8594           ;;
8595       esac
8596     fi
8597       ;;
8598
8599     dgux*)
8600       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8601       hardcode_libdir_flag_spec='-L$libdir'
8602       hardcode_shlibpath_var=no
8603       ;;
8604
8605     freebsd1*)
8606       ld_shlibs=no
8607       ;;
8608
8609     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8610     # support.  Future versions do this automatically, but an explicit c++rt0.o
8611     # does not break anything, and helps significantly (at the cost of a little
8612     # extra space).
8613     freebsd2.2*)
8614       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8615       hardcode_libdir_flag_spec='-R$libdir'
8616       hardcode_direct=yes
8617       hardcode_shlibpath_var=no
8618       ;;
8619
8620     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8621     freebsd2*)
8622       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8623       hardcode_direct=yes
8624       hardcode_minus_L=yes
8625       hardcode_shlibpath_var=no
8626       ;;
8627
8628     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8629     freebsd* | kfreebsd*-gnu | dragonfly*)
8630       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8631       hardcode_libdir_flag_spec='-R$libdir'
8632       hardcode_direct=yes
8633       hardcode_shlibpath_var=no
8634       ;;
8635
8636     hpux9*)
8637       if test "$GCC" = yes; then
8638         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'
8639       else
8640         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'
8641       fi
8642       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8643       hardcode_libdir_separator=:
8644       hardcode_direct=yes
8645
8646       # hardcode_minus_L: Not really in the search PATH,
8647       # but as the default location of the library.
8648       hardcode_minus_L=yes
8649       export_dynamic_flag_spec='${wl}-E'
8650       ;;
8651
8652     hpux10* | hpux11*)
8653       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8654         case $host_cpu in
8655         hppa*64*|ia64*)
8656           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8657           ;;
8658         *)
8659           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8660           ;;
8661         esac
8662       else
8663         case $host_cpu in
8664         hppa*64*|ia64*)
8665           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8666           ;;
8667         *)
8668           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8669           ;;
8670         esac
8671       fi
8672       if test "$with_gnu_ld" = no; then
8673         case $host_cpu in
8674         hppa*64*)
8675           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8676           hardcode_libdir_flag_spec_ld='+b $libdir'
8677           hardcode_libdir_separator=:
8678           hardcode_direct=no
8679           hardcode_shlibpath_var=no
8680           ;;
8681         ia64*)
8682           hardcode_libdir_flag_spec='-L$libdir'
8683           hardcode_direct=no
8684           hardcode_shlibpath_var=no
8685
8686           # hardcode_minus_L: Not really in the search PATH,
8687           # but as the default location of the library.
8688           hardcode_minus_L=yes
8689           ;;
8690         *)
8691           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8692           hardcode_libdir_separator=:
8693           hardcode_direct=yes
8694           export_dynamic_flag_spec='${wl}-E'
8695
8696           # hardcode_minus_L: Not really in the search PATH,
8697           # but as the default location of the library.
8698           hardcode_minus_L=yes
8699           ;;
8700         esac
8701       fi
8702       ;;
8703
8704     irix5* | irix6* | nonstopux*)
8705       if test "$GCC" = yes; then
8706         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'
8707       else
8708         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'
8709         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8710       fi
8711       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8712       hardcode_libdir_separator=:
8713       link_all_deplibs=yes
8714       ;;
8715
8716     netbsd*)
8717       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8718         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8719       else
8720         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8721       fi
8722       hardcode_libdir_flag_spec='-R$libdir'
8723       hardcode_direct=yes
8724       hardcode_shlibpath_var=no
8725       ;;
8726
8727     newsos6)
8728       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729       hardcode_direct=yes
8730       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8731       hardcode_libdir_separator=:
8732       hardcode_shlibpath_var=no
8733       ;;
8734
8735     openbsd*)
8736       hardcode_direct=yes
8737       hardcode_shlibpath_var=no
8738       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8739         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8740         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8741         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8742         export_dynamic_flag_spec='${wl}-E'
8743       else
8744        case $host_os in
8745          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8746            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8747            hardcode_libdir_flag_spec='-R$libdir'
8748            ;;
8749          *)
8750            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8751            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8752            ;;
8753        esac
8754       fi
8755       ;;
8756
8757     os2*)
8758       hardcode_libdir_flag_spec='-L$libdir'
8759       hardcode_minus_L=yes
8760       allow_undefined_flag=unsupported
8761       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'
8762       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8763       ;;
8764
8765     osf3*)
8766       if test "$GCC" = yes; then
8767         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8768         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'
8769       else
8770         allow_undefined_flag=' -expect_unresolved \*'
8771         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'
8772       fi
8773       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8774       hardcode_libdir_separator=:
8775       ;;
8776
8777     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8778       if test "$GCC" = yes; then
8779         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8780         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'
8781         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8782       else
8783         allow_undefined_flag=' -expect_unresolved \*'
8784         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'
8785         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8786         $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'
8787
8788         # Both c and cxx compiler support -rpath directly
8789         hardcode_libdir_flag_spec='-rpath $libdir'
8790       fi
8791       hardcode_libdir_separator=:
8792       ;;
8793
8794     sco3.2v5*)
8795       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8796       hardcode_shlibpath_var=no
8797       export_dynamic_flag_spec='${wl}-Bexport'
8798       runpath_var=LD_RUN_PATH
8799       hardcode_runpath_var=yes
8800       ;;
8801
8802     solaris*)
8803       no_undefined_flag=' -z text'
8804       if test "$GCC" = yes; then
8805         wlarc='${wl}'
8806         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8807         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8808           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8809       else
8810         wlarc=''
8811         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8812         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8813         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8814       fi
8815       hardcode_libdir_flag_spec='-R$libdir'
8816       hardcode_shlibpath_var=no
8817       case $host_os in
8818       solaris2.[0-5] | solaris2.[0-5].*) ;;
8819       *)
8820         # The compiler driver will combine linker options so we
8821         # cannot just pass the convience library names through
8822         # without $wl, iff we do not link with $LD.
8823         # Luckily, gcc supports the same syntax we need for Sun Studio.
8824         # Supported since Solaris 2.6 (maybe 2.5.1?)
8825         case $wlarc in
8826         '')
8827           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8828         *)
8829           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' ;;
8830         esac ;;
8831       esac
8832       link_all_deplibs=yes
8833       ;;
8834
8835     sunos4*)
8836       if test "x$host_vendor" = xsequent; then
8837         # Use $CC to link under sequent, because it throws in some extra .o
8838         # files that make .init and .fini sections work.
8839         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8840       else
8841         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8842       fi
8843       hardcode_libdir_flag_spec='-L$libdir'
8844       hardcode_direct=yes
8845       hardcode_minus_L=yes
8846       hardcode_shlibpath_var=no
8847       ;;
8848
8849     sysv4)
8850       case $host_vendor in
8851         sni)
8852           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8853           hardcode_direct=yes # is this really true???
8854         ;;
8855         siemens)
8856           ## LD is ld it makes a PLAMLIB
8857           ## CC just makes a GrossModule.
8858           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8859           reload_cmds='$CC -r -o $output$reload_objs'
8860           hardcode_direct=no
8861         ;;
8862         motorola)
8863           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8864           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8865         ;;
8866       esac
8867       runpath_var='LD_RUN_PATH'
8868       hardcode_shlibpath_var=no
8869       ;;
8870
8871     sysv4.3*)
8872       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873       hardcode_shlibpath_var=no
8874       export_dynamic_flag_spec='-Bexport'
8875       ;;
8876
8877     sysv4*MP*)
8878       if test -d /usr/nec; then
8879         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8880         hardcode_shlibpath_var=no
8881         runpath_var=LD_RUN_PATH
8882         hardcode_runpath_var=yes
8883         ld_shlibs=yes
8884       fi
8885       ;;
8886
8887     sysv4.2uw2*)
8888       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8889       hardcode_direct=yes
8890       hardcode_minus_L=no
8891       hardcode_shlibpath_var=no
8892       hardcode_runpath_var=yes
8893       runpath_var=LD_RUN_PATH
8894       ;;
8895
8896    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8897       no_undefined_flag='${wl}-z ${wl}text'
8898       if test "$GCC" = yes; then
8899         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8900       else
8901         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8902       fi
8903       runpath_var='LD_RUN_PATH'
8904       hardcode_shlibpath_var=no
8905       ;;
8906
8907     sysv5*)
8908       no_undefined_flag=' -z text'
8909       # $CC -shared without GNU ld will not create a library from C++
8910       # object files and a static libstdc++, better avoid it by now
8911       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8912       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8913                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8914       hardcode_libdir_flag_spec=
8915       hardcode_shlibpath_var=no
8916       runpath_var='LD_RUN_PATH'
8917       ;;
8918
8919     uts4*)
8920       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921       hardcode_libdir_flag_spec='-L$libdir'
8922       hardcode_shlibpath_var=no
8923       ;;
8924
8925     *)
8926       ld_shlibs=no
8927       ;;
8928     esac
8929   fi
8930
8931 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8932 echo "${ECHO_T}$ld_shlibs" >&6
8933 test "$ld_shlibs" = no && can_build_shared=no
8934
8935 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8936 if test "$GCC" = yes; then
8937   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8938 fi
8939
8940 #
8941 # Do we need to explicitly link libc?
8942 #
8943 case "x$archive_cmds_need_lc" in
8944 x|xyes)
8945   # Assume -lc should be added
8946   archive_cmds_need_lc=yes
8947
8948   if test "$enable_shared" = yes && test "$GCC" = yes; then
8949     case $archive_cmds in
8950     *'~'*)
8951       # FIXME: we may have to deal with multi-command sequences.
8952       ;;
8953     '$CC '*)
8954       # Test whether the compiler implicitly links with -lc since on some
8955       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8956       # to ld, don't add -lc before -lgcc.
8957       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8958 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8959       $rm conftest*
8960       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8961
8962       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8963   (eval $ac_compile) 2>&5
8964   ac_status=$?
8965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966   (exit $ac_status); } 2>conftest.err; then
8967         soname=conftest
8968         lib=conftest
8969         libobjs=conftest.$ac_objext
8970         deplibs=
8971         wl=$lt_prog_compiler_wl
8972         compiler_flags=-v
8973         linker_flags=-v
8974         verstring=
8975         output_objdir=.
8976         libname=conftest
8977         lt_save_allow_undefined_flag=$allow_undefined_flag
8978         allow_undefined_flag=
8979         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8980   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8981   ac_status=$?
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); }
8984         then
8985           archive_cmds_need_lc=no
8986         else
8987           archive_cmds_need_lc=yes
8988         fi
8989         allow_undefined_flag=$lt_save_allow_undefined_flag
8990       else
8991         cat conftest.err 1>&5
8992       fi
8993       $rm conftest*
8994       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8995 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8996       ;;
8997     esac
8998   fi
8999   ;;
9000 esac
9001
9002 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9003 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9004 library_names_spec=
9005 libname_spec='lib$name'
9006 soname_spec=
9007 shrext_cmds=".so"
9008 postinstall_cmds=
9009 postuninstall_cmds=
9010 finish_cmds=
9011 finish_eval=
9012 shlibpath_var=
9013 shlibpath_overrides_runpath=unknown
9014 version_type=none
9015 dynamic_linker="$host_os ld.so"
9016 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9017 if test "$GCC" = yes; then
9018   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9019   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9020     # if the path contains ";" then we assume it to be the separator
9021     # otherwise default to the standard path separator (i.e. ":") - it is
9022     # assumed that no part of a normal pathname contains ";" but that should
9023     # okay in the real world where ";" in dirpaths is itself problematic.
9024     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9025   else
9026     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9027   fi
9028 else
9029   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9030 fi
9031 need_lib_prefix=unknown
9032 hardcode_into_libs=no
9033
9034 # when you set need_version to no, make sure it does not cause -set_version
9035 # flags to be left without arguments
9036 need_version=unknown
9037
9038 case $host_os in
9039 aix3*)
9040   version_type=linux
9041   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9042   shlibpath_var=LIBPATH
9043
9044   # AIX 3 has no versioning support, so we append a major version to the name.
9045   soname_spec='${libname}${release}${shared_ext}$major'
9046   ;;
9047
9048 aix4* | aix5*)
9049   version_type=linux
9050   need_lib_prefix=no
9051   need_version=no
9052   hardcode_into_libs=yes
9053   if test "$host_cpu" = ia64; then
9054     # AIX 5 supports IA64
9055     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9056     shlibpath_var=LD_LIBRARY_PATH
9057   else
9058     # With GCC up to 2.95.x, collect2 would create an import file
9059     # for dependence libraries.  The import file would start with
9060     # the line `#! .'.  This would cause the generated library to
9061     # depend on `.', always an invalid library.  This was fixed in
9062     # development snapshots of GCC prior to 3.0.
9063     case $host_os in
9064       aix4 | aix4.[01] | aix4.[01].*)
9065       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9066            echo ' yes '
9067            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9068         :
9069       else
9070         can_build_shared=no
9071       fi
9072       ;;
9073     esac
9074     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9075     # soname into executable. Probably we can add versioning support to
9076     # collect2, so additional links can be useful in future.
9077     if test "$aix_use_runtimelinking" = yes; then
9078       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9079       # instead of lib<name>.a to let people know that these are not
9080       # typical AIX shared libraries.
9081       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082     else
9083       # We preserve .a as extension for shared libraries through AIX4.2
9084       # and later when we are not doing run time linking.
9085       library_names_spec='${libname}${release}.a $libname.a'
9086       soname_spec='${libname}${release}${shared_ext}$major'
9087     fi
9088     shlibpath_var=LIBPATH
9089   fi
9090   ;;
9091
9092 amigaos*)
9093   library_names_spec='$libname.ixlibrary $libname.a'
9094   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9095   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'
9096   ;;
9097
9098 beos*)
9099   library_names_spec='${libname}${shared_ext}'
9100   dynamic_linker="$host_os ld.so"
9101   shlibpath_var=LIBRARY_PATH
9102   ;;
9103
9104 bsdi[45]*)
9105   version_type=linux
9106   need_version=no
9107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9108   soname_spec='${libname}${release}${shared_ext}$major'
9109   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9110   shlibpath_var=LD_LIBRARY_PATH
9111   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9112   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9113   # the default ld.so.conf also contains /usr/contrib/lib and
9114   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9115   # libtool to hard-code these into programs
9116   ;;
9117
9118 cygwin* | mingw* | pw32*)
9119   version_type=windows
9120   shrext_cmds=".dll"
9121   need_version=no
9122   need_lib_prefix=no
9123
9124   case $GCC,$host_os in
9125   yes,cygwin* | yes,mingw* | yes,pw32*)
9126     library_names_spec='$libname.dll.a'
9127     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9128     postinstall_cmds='base_file=`basename \${file}`~
9129       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9130       dldir=$destdir/`dirname \$dlpath`~
9131       test -d \$dldir || mkdir -p \$dldir~
9132       $install_prog $dir/$dlname \$dldir/$dlname~
9133       chmod a+x \$dldir/$dlname'
9134     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9135       dlpath=$dir/\$dldll~
9136        $rm \$dlpath'
9137     shlibpath_overrides_runpath=yes
9138
9139     case $host_os in
9140     cygwin*)
9141       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9142       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9143       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9144       ;;
9145     mingw*)
9146       # MinGW DLLs use traditional 'lib' prefix
9147       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9148       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9149       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9150         # It is most probably a Windows format PATH printed by
9151         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9152         # path with ; separators, and with drive letters. We can handle the
9153         # drive letters (cygwin fileutils understands them), so leave them,
9154         # especially as we might pass files found there to a mingw objdump,
9155         # which wouldn't understand a cygwinified path. Ahh.
9156         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9157       else
9158         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9159       fi
9160       ;;
9161     pw32*)
9162       # pw32 DLLs use 'pw' prefix rather than 'lib'
9163       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9164       ;;
9165     esac
9166     ;;
9167
9168   *)
9169     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9170     ;;
9171   esac
9172   dynamic_linker='Win32 ld.exe'
9173   # FIXME: first we should search . and the directory the executable is in
9174   shlibpath_var=PATH
9175   ;;
9176
9177 darwin* | rhapsody*)
9178   dynamic_linker="$host_os dyld"
9179   version_type=darwin
9180   need_lib_prefix=no
9181   need_version=no
9182   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9183   soname_spec='${libname}${release}${major}$shared_ext'
9184   shlibpath_overrides_runpath=yes
9185   shlibpath_var=DYLD_LIBRARY_PATH
9186   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9187   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9188   if test "$GCC" = yes; then
9189     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"`
9190   else
9191     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9192   fi
9193   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9194   ;;
9195
9196 dgux*)
9197   version_type=linux
9198   need_lib_prefix=no
9199   need_version=no
9200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9201   soname_spec='${libname}${release}${shared_ext}$major'
9202   shlibpath_var=LD_LIBRARY_PATH
9203   ;;
9204
9205 freebsd1*)
9206   dynamic_linker=no
9207   ;;
9208
9209 kfreebsd*-gnu)
9210   version_type=linux
9211   need_lib_prefix=no
9212   need_version=no
9213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9214   soname_spec='${libname}${release}${shared_ext}$major'
9215   shlibpath_var=LD_LIBRARY_PATH
9216   shlibpath_overrides_runpath=no
9217   hardcode_into_libs=yes
9218   dynamic_linker='GNU ld.so'
9219   ;;
9220
9221 freebsd* | dragonfly*)
9222   # DragonFly does not have aout.  When/if they implement a new
9223   # versioning mechanism, adjust this.
9224   if test -x /usr/bin/objformat; then
9225     objformat=`/usr/bin/objformat`
9226   else
9227     case $host_os in
9228     freebsd[123]*) objformat=aout ;;
9229     *) objformat=elf ;;
9230     esac
9231   fi
9232   version_type=freebsd-$objformat
9233   case $version_type in
9234     freebsd-elf*)
9235       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9236       need_version=no
9237       need_lib_prefix=no
9238       ;;
9239     freebsd-*)
9240       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9241       need_version=yes
9242       ;;
9243   esac
9244   shlibpath_var=LD_LIBRARY_PATH
9245   case $host_os in
9246   freebsd2*)
9247     shlibpath_overrides_runpath=yes
9248     ;;
9249   freebsd3.[01]* | freebsdelf3.[01]*)
9250     shlibpath_overrides_runpath=yes
9251     hardcode_into_libs=yes
9252     ;;
9253   *) # from 3.2 on
9254     shlibpath_overrides_runpath=no
9255     hardcode_into_libs=yes
9256     ;;
9257   esac
9258   ;;
9259
9260 gnu*)
9261   version_type=linux
9262   need_lib_prefix=no
9263   need_version=no
9264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9265   soname_spec='${libname}${release}${shared_ext}$major'
9266   shlibpath_var=LD_LIBRARY_PATH
9267   hardcode_into_libs=yes
9268   ;;
9269
9270 hpux9* | hpux10* | hpux11*)
9271   # Give a soname corresponding to the major version so that dld.sl refuses to
9272   # link against other versions.
9273   version_type=sunos
9274   need_lib_prefix=no
9275   need_version=no
9276   case $host_cpu in
9277   ia64*)
9278     shrext_cmds='.so'
9279     hardcode_into_libs=yes
9280     dynamic_linker="$host_os dld.so"
9281     shlibpath_var=LD_LIBRARY_PATH
9282     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9284     soname_spec='${libname}${release}${shared_ext}$major'
9285     if test "X$HPUX_IA64_MODE" = X32; then
9286       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9287     else
9288       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9289     fi
9290     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9291     ;;
9292    hppa*64*)
9293      shrext_cmds='.sl'
9294      hardcode_into_libs=yes
9295      dynamic_linker="$host_os dld.sl"
9296      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9297      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9298      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9299      soname_spec='${libname}${release}${shared_ext}$major'
9300      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9301      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9302      ;;
9303    *)
9304     shrext_cmds='.sl'
9305     dynamic_linker="$host_os dld.sl"
9306     shlibpath_var=SHLIB_PATH
9307     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309     soname_spec='${libname}${release}${shared_ext}$major'
9310     ;;
9311   esac
9312   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9313   postinstall_cmds='chmod 555 $lib'
9314   ;;
9315
9316 irix5* | irix6* | nonstopux*)
9317   case $host_os in
9318     nonstopux*) version_type=nonstopux ;;
9319     *)
9320         if test "$lt_cv_prog_gnu_ld" = yes; then
9321                 version_type=linux
9322         else
9323                 version_type=irix
9324         fi ;;
9325   esac
9326   need_lib_prefix=no
9327   need_version=no
9328   soname_spec='${libname}${release}${shared_ext}$major'
9329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9330   case $host_os in
9331   irix5* | nonstopux*)
9332     libsuff= shlibsuff=
9333     ;;
9334   *)
9335     case $LD in # libtool.m4 will add one of these switches to LD
9336     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9337       libsuff= shlibsuff= libmagic=32-bit;;
9338     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9339       libsuff=32 shlibsuff=N32 libmagic=N32;;
9340     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9341       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9342     *) libsuff= shlibsuff= libmagic=never-match;;
9343     esac
9344     ;;
9345   esac
9346   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9347   shlibpath_overrides_runpath=no
9348   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9349   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9350   hardcode_into_libs=yes
9351   ;;
9352
9353 # No shared lib support for Linux oldld, aout, or coff.
9354 linux*oldld* | linux*aout* | linux*coff*)
9355   dynamic_linker=no
9356   ;;
9357
9358 # This must be Linux ELF.
9359 linux*)
9360   version_type=linux
9361   need_lib_prefix=no
9362   need_version=no
9363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364   soname_spec='${libname}${release}${shared_ext}$major'
9365   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9366   shlibpath_var=LD_LIBRARY_PATH
9367   shlibpath_overrides_runpath=no
9368   # This implies no fast_install, which is unacceptable.
9369   # Some rework will be needed to allow for fast_install
9370   # before this can be enabled.
9371   hardcode_into_libs=yes
9372
9373   # Append ld.so.conf contents to the search path
9374   if test -f /etc/ld.so.conf; then
9375     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' ' '`
9376     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9377   fi
9378
9379   # We used to test for /lib/ld.so.1 and disable shared libraries on
9380   # powerpc, because MkLinux only supported shared libraries with the
9381   # GNU dynamic linker.  Since this was broken with cross compilers,
9382   # most powerpc-linux boxes support dynamic linking these days and
9383   # people can always --disable-shared, the test was removed, and we
9384   # assume the GNU/Linux dynamic linker is in use.
9385   dynamic_linker='GNU/Linux ld.so'
9386   ;;
9387
9388 knetbsd*-gnu)
9389   version_type=linux
9390   need_lib_prefix=no
9391   need_version=no
9392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9393   soname_spec='${libname}${release}${shared_ext}$major'
9394   shlibpath_var=LD_LIBRARY_PATH
9395   shlibpath_overrides_runpath=no
9396   hardcode_into_libs=yes
9397   dynamic_linker='GNU ld.so'
9398   ;;
9399
9400 netbsd*)
9401   version_type=sunos
9402   need_lib_prefix=no
9403   need_version=no
9404   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9406     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9407     dynamic_linker='NetBSD (a.out) ld.so'
9408   else
9409     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9410     soname_spec='${libname}${release}${shared_ext}$major'
9411     dynamic_linker='NetBSD ld.elf_so'
9412   fi
9413   shlibpath_var=LD_LIBRARY_PATH
9414   shlibpath_overrides_runpath=yes
9415   hardcode_into_libs=yes
9416   ;;
9417
9418 newsos6)
9419   version_type=linux
9420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421   shlibpath_var=LD_LIBRARY_PATH
9422   shlibpath_overrides_runpath=yes
9423   ;;
9424
9425 nto-qnx*)
9426   version_type=linux
9427   need_lib_prefix=no
9428   need_version=no
9429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9430   soname_spec='${libname}${release}${shared_ext}$major'
9431   shlibpath_var=LD_LIBRARY_PATH
9432   shlibpath_overrides_runpath=yes
9433   ;;
9434
9435 openbsd*)
9436   version_type=sunos
9437   need_lib_prefix=no
9438   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9439   case $host_os in
9440     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9441     *)                         need_version=no  ;;
9442   esac
9443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9444   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9445   shlibpath_var=LD_LIBRARY_PATH
9446   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9447     case $host_os in
9448       openbsd2.[89] | openbsd2.[89].*)
9449         shlibpath_overrides_runpath=no
9450         ;;
9451       *)
9452         shlibpath_overrides_runpath=yes
9453         ;;
9454       esac
9455   else
9456     shlibpath_overrides_runpath=yes
9457   fi
9458   ;;
9459
9460 os2*)
9461   libname_spec='$name'
9462   shrext_cmds=".dll"
9463   need_lib_prefix=no
9464   library_names_spec='$libname${shared_ext} $libname.a'
9465   dynamic_linker='OS/2 ld.exe'
9466   shlibpath_var=LIBPATH
9467   ;;
9468
9469 osf3* | osf4* | osf5*)
9470   version_type=osf
9471   need_lib_prefix=no
9472   need_version=no
9473   soname_spec='${libname}${release}${shared_ext}$major'
9474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9475   shlibpath_var=LD_LIBRARY_PATH
9476   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9477   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9478   ;;
9479
9480 sco3.2v5*)
9481   version_type=osf
9482   soname_spec='${libname}${release}${shared_ext}$major'
9483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484   shlibpath_var=LD_LIBRARY_PATH
9485   ;;
9486
9487 solaris*)
9488   version_type=linux
9489   need_lib_prefix=no
9490   need_version=no
9491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9492   soname_spec='${libname}${release}${shared_ext}$major'
9493   shlibpath_var=LD_LIBRARY_PATH
9494   shlibpath_overrides_runpath=yes
9495   hardcode_into_libs=yes
9496   # ldd complains unless libraries are executable
9497   postinstall_cmds='chmod +x $lib'
9498   ;;
9499
9500 sunos4*)
9501   version_type=sunos
9502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9503   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9504   shlibpath_var=LD_LIBRARY_PATH
9505   shlibpath_overrides_runpath=yes
9506   if test "$with_gnu_ld" = yes; then
9507     need_lib_prefix=no
9508   fi
9509   need_version=yes
9510   ;;
9511
9512 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9513   version_type=linux
9514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9515   soname_spec='${libname}${release}${shared_ext}$major'
9516   shlibpath_var=LD_LIBRARY_PATH
9517   case $host_vendor in
9518     sni)
9519       shlibpath_overrides_runpath=no
9520       need_lib_prefix=no
9521       export_dynamic_flag_spec='${wl}-Blargedynsym'
9522       runpath_var=LD_RUN_PATH
9523       ;;
9524     siemens)
9525       need_lib_prefix=no
9526       ;;
9527     motorola)
9528       need_lib_prefix=no
9529       need_version=no
9530       shlibpath_overrides_runpath=no
9531       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9532       ;;
9533   esac
9534   ;;
9535
9536 sysv4*MP*)
9537   if test -d /usr/nec ;then
9538     version_type=linux
9539     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9540     soname_spec='$libname${shared_ext}.$major'
9541     shlibpath_var=LD_LIBRARY_PATH
9542   fi
9543   ;;
9544
9545 uts4*)
9546   version_type=linux
9547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548   soname_spec='${libname}${release}${shared_ext}$major'
9549   shlibpath_var=LD_LIBRARY_PATH
9550   ;;
9551
9552 *)
9553   dynamic_linker=no
9554   ;;
9555 esac
9556 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9557 echo "${ECHO_T}$dynamic_linker" >&6
9558 test "$dynamic_linker" = no && can_build_shared=no
9559
9560 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9561 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9562 hardcode_action=
9563 if test -n "$hardcode_libdir_flag_spec" || \
9564    test -n "$runpath_var" || \
9565    test "X$hardcode_automatic" = "Xyes" ; then
9566
9567   # We can hardcode non-existant directories.
9568   if test "$hardcode_direct" != no &&
9569      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9570      # have to relink, otherwise we might link with an installed library
9571      # when we should be linking with a yet-to-be-installed one
9572      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9573      test "$hardcode_minus_L" != no; then
9574     # Linking always hardcodes the temporary library directory.
9575     hardcode_action=relink
9576   else
9577     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9578     hardcode_action=immediate
9579   fi
9580 else
9581   # We cannot hardcode anything, or else we can only hardcode existing
9582   # directories.
9583   hardcode_action=unsupported
9584 fi
9585 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9586 echo "${ECHO_T}$hardcode_action" >&6
9587
9588 if test "$hardcode_action" = relink; then
9589   # Fast installation is not supported
9590   enable_fast_install=no
9591 elif test "$shlibpath_overrides_runpath" = yes ||
9592      test "$enable_shared" = no; then
9593   # Fast installation is not necessary
9594   enable_fast_install=needless
9595 fi
9596
9597 striplib=
9598 old_striplib=
9599 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9600 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9601 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9602   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9603   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9604   echo "$as_me:$LINENO: result: yes" >&5
9605 echo "${ECHO_T}yes" >&6
9606 else
9607 # FIXME - insert some real tests, host_os isn't really good enough
9608   case $host_os in
9609    darwin*)
9610        if test -n "$STRIP" ; then
9611          striplib="$STRIP -x"
9612          echo "$as_me:$LINENO: result: yes" >&5
9613 echo "${ECHO_T}yes" >&6
9614        else
9615   echo "$as_me:$LINENO: result: no" >&5
9616 echo "${ECHO_T}no" >&6
9617 fi
9618        ;;
9619    *)
9620   echo "$as_me:$LINENO: result: no" >&5
9621 echo "${ECHO_T}no" >&6
9622     ;;
9623   esac
9624 fi
9625
9626 if test "x$enable_dlopen" != xyes; then
9627   enable_dlopen=unknown
9628   enable_dlopen_self=unknown
9629   enable_dlopen_self_static=unknown
9630 else
9631   lt_cv_dlopen=no
9632   lt_cv_dlopen_libs=
9633
9634   case $host_os in
9635   beos*)
9636     lt_cv_dlopen="load_add_on"
9637     lt_cv_dlopen_libs=
9638     lt_cv_dlopen_self=yes
9639     ;;
9640
9641   mingw* | pw32*)
9642     lt_cv_dlopen="LoadLibrary"
9643     lt_cv_dlopen_libs=
9644    ;;
9645
9646   cygwin*)
9647     lt_cv_dlopen="dlopen"
9648     lt_cv_dlopen_libs=
9649    ;;
9650
9651   darwin*)
9652   # if libdl is installed we need to link against it
9653     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9654 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9655 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9656   echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658   ac_check_lib_save_LIBS=$LIBS
9659 LIBS="-ldl  $LIBS"
9660 cat >conftest.$ac_ext <<_ACEOF
9661 /* confdefs.h.  */
9662 _ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h.  */
9666
9667 /* Override any gcc2 internal prototype to avoid an error.  */
9668 #ifdef __cplusplus
9669 extern "C"
9670 #endif
9671 /* We use char because int might match the return type of a gcc2
9672    builtin and then its argument prototype would still apply.  */
9673 char dlopen ();
9674 int
9675 main ()
9676 {
9677 dlopen ();
9678   ;
9679   return 0;
9680 }
9681 _ACEOF
9682 rm -f conftest.$ac_objext conftest$ac_exeext
9683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9684   (eval $ac_link) 2>conftest.er1
9685   ac_status=$?
9686   grep -v '^ *+' conftest.er1 >conftest.err
9687   rm -f conftest.er1
9688   cat conftest.err >&5
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); } &&
9691          { ac_try='test -z "$ac_c_werror_flag"
9692                          || test ! -s conftest.err'
9693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694   (eval $ac_try) 2>&5
9695   ac_status=$?
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); }; } &&
9698          { ac_try='test -s conftest$ac_exeext'
9699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700   (eval $ac_try) 2>&5
9701   ac_status=$?
9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); }; }; then
9704   ac_cv_lib_dl_dlopen=yes
9705 else
9706   echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9708
9709 ac_cv_lib_dl_dlopen=no
9710 fi
9711 rm -f conftest.err conftest.$ac_objext \
9712       conftest$ac_exeext conftest.$ac_ext
9713 LIBS=$ac_check_lib_save_LIBS
9714 fi
9715 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9716 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9717 if test $ac_cv_lib_dl_dlopen = yes; then
9718   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9719 else
9720
9721     lt_cv_dlopen="dyld"
9722     lt_cv_dlopen_libs=
9723     lt_cv_dlopen_self=yes
9724
9725 fi
9726
9727    ;;
9728
9729   *)
9730     echo "$as_me:$LINENO: checking for shl_load" >&5
9731 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9732 if test "${ac_cv_func_shl_load+set}" = set; then
9733   echo $ECHO_N "(cached) $ECHO_C" >&6
9734 else
9735   cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h.  */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h.  */
9741 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9743 #define shl_load innocuous_shl_load
9744
9745 /* System header to define __stub macros and hopefully few prototypes,
9746     which can conflict with char shl_load (); below.
9747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9748     <limits.h> exists even on freestanding compilers.  */
9749
9750 #ifdef __STDC__
9751 # include <limits.h>
9752 #else
9753 # include <assert.h>
9754 #endif
9755
9756 #undef shl_load
9757
9758 /* Override any gcc2 internal prototype to avoid an error.  */
9759 #ifdef __cplusplus
9760 extern "C"
9761 {
9762 #endif
9763 /* We use char because int might match the return type of a gcc2
9764    builtin and then its argument prototype would still apply.  */
9765 char shl_load ();
9766 /* The GNU C library defines this for functions which it implements
9767     to always fail with ENOSYS.  Some functions are actually named
9768     something starting with __ and the normal name is an alias.  */
9769 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9770 choke me
9771 #else
9772 char (*f) () = shl_load;
9773 #endif
9774 #ifdef __cplusplus
9775 }
9776 #endif
9777
9778 int
9779 main ()
9780 {
9781 return f != shl_load;
9782   ;
9783   return 0;
9784 }
9785 _ACEOF
9786 rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9788   (eval $ac_link) 2>conftest.er1
9789   ac_status=$?
9790   grep -v '^ *+' conftest.er1 >conftest.err
9791   rm -f conftest.er1
9792   cat conftest.err >&5
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); } &&
9795          { ac_try='test -z "$ac_c_werror_flag"
9796                          || test ! -s conftest.err'
9797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798   (eval $ac_try) 2>&5
9799   ac_status=$?
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); }; } &&
9802          { ac_try='test -s conftest$ac_exeext'
9803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804   (eval $ac_try) 2>&5
9805   ac_status=$?
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); }; }; then
9808   ac_cv_func_shl_load=yes
9809 else
9810   echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813 ac_cv_func_shl_load=no
9814 fi
9815 rm -f conftest.err conftest.$ac_objext \
9816       conftest$ac_exeext conftest.$ac_ext
9817 fi
9818 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9819 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9820 if test $ac_cv_func_shl_load = yes; then
9821   lt_cv_dlopen="shl_load"
9822 else
9823   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9824 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9825 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9826   echo $ECHO_N "(cached) $ECHO_C" >&6
9827 else
9828   ac_check_lib_save_LIBS=$LIBS
9829 LIBS="-ldld  $LIBS"
9830 cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h.  */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h.  */
9836
9837 /* Override any gcc2 internal prototype to avoid an error.  */
9838 #ifdef __cplusplus
9839 extern "C"
9840 #endif
9841 /* We use char because int might match the return type of a gcc2
9842    builtin and then its argument prototype would still apply.  */
9843 char shl_load ();
9844 int
9845 main ()
9846 {
9847 shl_load ();
9848   ;
9849   return 0;
9850 }
9851 _ACEOF
9852 rm -f conftest.$ac_objext conftest$ac_exeext
9853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9854   (eval $ac_link) 2>conftest.er1
9855   ac_status=$?
9856   grep -v '^ *+' conftest.er1 >conftest.err
9857   rm -f conftest.er1
9858   cat conftest.err >&5
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); } &&
9861          { ac_try='test -z "$ac_c_werror_flag"
9862                          || test ! -s conftest.err'
9863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864   (eval $ac_try) 2>&5
9865   ac_status=$?
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); }; } &&
9868          { ac_try='test -s conftest$ac_exeext'
9869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870   (eval $ac_try) 2>&5
9871   ac_status=$?
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); }; }; then
9874   ac_cv_lib_dld_shl_load=yes
9875 else
9876   echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9878
9879 ac_cv_lib_dld_shl_load=no
9880 fi
9881 rm -f conftest.err conftest.$ac_objext \
9882       conftest$ac_exeext conftest.$ac_ext
9883 LIBS=$ac_check_lib_save_LIBS
9884 fi
9885 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9886 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9887 if test $ac_cv_lib_dld_shl_load = yes; then
9888   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9889 else
9890   echo "$as_me:$LINENO: checking for dlopen" >&5
9891 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9892 if test "${ac_cv_func_dlopen+set}" = set; then
9893   echo $ECHO_N "(cached) $ECHO_C" >&6
9894 else
9895   cat >conftest.$ac_ext <<_ACEOF
9896 /* confdefs.h.  */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h.  */
9901 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9903 #define dlopen innocuous_dlopen
9904
9905 /* System header to define __stub macros and hopefully few prototypes,
9906     which can conflict with char dlopen (); below.
9907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9908     <limits.h> exists even on freestanding compilers.  */
9909
9910 #ifdef __STDC__
9911 # include <limits.h>
9912 #else
9913 # include <assert.h>
9914 #endif
9915
9916 #undef dlopen
9917
9918 /* Override any gcc2 internal prototype to avoid an error.  */
9919 #ifdef __cplusplus
9920 extern "C"
9921 {
9922 #endif
9923 /* We use char because int might match the return type of a gcc2
9924    builtin and then its argument prototype would still apply.  */
9925 char dlopen ();
9926 /* The GNU C library defines this for functions which it implements
9927     to always fail with ENOSYS.  Some functions are actually named
9928     something starting with __ and the normal name is an alias.  */
9929 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9930 choke me
9931 #else
9932 char (*f) () = dlopen;
9933 #endif
9934 #ifdef __cplusplus
9935 }
9936 #endif
9937
9938 int
9939 main ()
9940 {
9941 return f != dlopen;
9942   ;
9943   return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948   (eval $ac_link) 2>conftest.er1
9949   ac_status=$?
9950   grep -v '^ *+' conftest.er1 >conftest.err
9951   rm -f conftest.er1
9952   cat conftest.err >&5
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); } &&
9955          { ac_try='test -z "$ac_c_werror_flag"
9956                          || test ! -s conftest.err'
9957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958   (eval $ac_try) 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); }; } &&
9962          { ac_try='test -s conftest$ac_exeext'
9963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964   (eval $ac_try) 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); }; }; then
9968   ac_cv_func_dlopen=yes
9969 else
9970   echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9972
9973 ac_cv_func_dlopen=no
9974 fi
9975 rm -f conftest.err conftest.$ac_objext \
9976       conftest$ac_exeext conftest.$ac_ext
9977 fi
9978 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9979 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9980 if test $ac_cv_func_dlopen = yes; then
9981   lt_cv_dlopen="dlopen"
9982 else
9983   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9984 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9985 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9986   echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988   ac_check_lib_save_LIBS=$LIBS
9989 LIBS="-ldl  $LIBS"
9990 cat >conftest.$ac_ext <<_ACEOF
9991 /* confdefs.h.  */
9992 _ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h.  */
9996
9997 /* Override any gcc2 internal prototype to avoid an error.  */
9998 #ifdef __cplusplus
9999 extern "C"
10000 #endif
10001 /* We use char because int might match the return type of a gcc2
10002    builtin and then its argument prototype would still apply.  */
10003 char dlopen ();
10004 int
10005 main ()
10006 {
10007 dlopen ();
10008   ;
10009   return 0;
10010 }
10011 _ACEOF
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10014   (eval $ac_link) 2>conftest.er1
10015   ac_status=$?
10016   grep -v '^ *+' conftest.er1 >conftest.err
10017   rm -f conftest.er1
10018   cat conftest.err >&5
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); } &&
10021          { ac_try='test -z "$ac_c_werror_flag"
10022                          || test ! -s conftest.err'
10023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024   (eval $ac_try) 2>&5
10025   ac_status=$?
10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027   (exit $ac_status); }; } &&
10028          { ac_try='test -s conftest$ac_exeext'
10029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030   (eval $ac_try) 2>&5
10031   ac_status=$?
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); }; }; then
10034   ac_cv_lib_dl_dlopen=yes
10035 else
10036   echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10038
10039 ac_cv_lib_dl_dlopen=no
10040 fi
10041 rm -f conftest.err conftest.$ac_objext \
10042       conftest$ac_exeext conftest.$ac_ext
10043 LIBS=$ac_check_lib_save_LIBS
10044 fi
10045 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10046 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10047 if test $ac_cv_lib_dl_dlopen = yes; then
10048   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10049 else
10050   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10051 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10052 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10053   echo $ECHO_N "(cached) $ECHO_C" >&6
10054 else
10055   ac_check_lib_save_LIBS=$LIBS
10056 LIBS="-lsvld  $LIBS"
10057 cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h.  */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h.  */
10063
10064 /* Override any gcc2 internal prototype to avoid an error.  */
10065 #ifdef __cplusplus
10066 extern "C"
10067 #endif
10068 /* We use char because int might match the return type of a gcc2
10069    builtin and then its argument prototype would still apply.  */
10070 char dlopen ();
10071 int
10072 main ()
10073 {
10074 dlopen ();
10075   ;
10076   return 0;
10077 }
10078 _ACEOF
10079 rm -f conftest.$ac_objext conftest$ac_exeext
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081   (eval $ac_link) 2>conftest.er1
10082   ac_status=$?
10083   grep -v '^ *+' conftest.er1 >conftest.err
10084   rm -f conftest.er1
10085   cat conftest.err >&5
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); } &&
10088          { ac_try='test -z "$ac_c_werror_flag"
10089                          || test ! -s conftest.err'
10090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091   (eval $ac_try) 2>&5
10092   ac_status=$?
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); }; } &&
10095          { ac_try='test -s conftest$ac_exeext'
10096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097   (eval $ac_try) 2>&5
10098   ac_status=$?
10099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100   (exit $ac_status); }; }; then
10101   ac_cv_lib_svld_dlopen=yes
10102 else
10103   echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10105
10106 ac_cv_lib_svld_dlopen=no
10107 fi
10108 rm -f conftest.err conftest.$ac_objext \
10109       conftest$ac_exeext conftest.$ac_ext
10110 LIBS=$ac_check_lib_save_LIBS
10111 fi
10112 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10113 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10114 if test $ac_cv_lib_svld_dlopen = yes; then
10115   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10116 else
10117   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10118 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10119 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10120   echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122   ac_check_lib_save_LIBS=$LIBS
10123 LIBS="-ldld  $LIBS"
10124 cat >conftest.$ac_ext <<_ACEOF
10125 /* confdefs.h.  */
10126 _ACEOF
10127 cat confdefs.h >>conftest.$ac_ext
10128 cat >>conftest.$ac_ext <<_ACEOF
10129 /* end confdefs.h.  */
10130
10131 /* Override any gcc2 internal prototype to avoid an error.  */
10132 #ifdef __cplusplus
10133 extern "C"
10134 #endif
10135 /* We use char because int might match the return type of a gcc2
10136    builtin and then its argument prototype would still apply.  */
10137 char dld_link ();
10138 int
10139 main ()
10140 {
10141 dld_link ();
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 rm -f conftest.$ac_objext conftest$ac_exeext
10147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10148   (eval $ac_link) 2>conftest.er1
10149   ac_status=$?
10150   grep -v '^ *+' conftest.er1 >conftest.err
10151   rm -f conftest.er1
10152   cat conftest.err >&5
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); } &&
10155          { ac_try='test -z "$ac_c_werror_flag"
10156                          || test ! -s conftest.err'
10157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158   (eval $ac_try) 2>&5
10159   ac_status=$?
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); }; } &&
10162          { ac_try='test -s conftest$ac_exeext'
10163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164   (eval $ac_try) 2>&5
10165   ac_status=$?
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); }; }; then
10168   ac_cv_lib_dld_dld_link=yes
10169 else
10170   echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173 ac_cv_lib_dld_dld_link=no
10174 fi
10175 rm -f conftest.err conftest.$ac_objext \
10176       conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_lib_save_LIBS
10178 fi
10179 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10180 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10181 if test $ac_cv_lib_dld_dld_link = yes; then
10182   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10183 fi
10184
10185
10186 fi
10187
10188
10189 fi
10190
10191
10192 fi
10193
10194
10195 fi
10196
10197
10198 fi
10199
10200     ;;
10201   esac
10202
10203   if test "x$lt_cv_dlopen" != xno; then
10204     enable_dlopen=yes
10205   else
10206     enable_dlopen=no
10207   fi
10208
10209   case $lt_cv_dlopen in
10210   dlopen)
10211     save_CPPFLAGS="$CPPFLAGS"
10212     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10213
10214     save_LDFLAGS="$LDFLAGS"
10215     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10216
10217     save_LIBS="$LIBS"
10218     LIBS="$lt_cv_dlopen_libs $LIBS"
10219
10220     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10221 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10222 if test "${lt_cv_dlopen_self+set}" = set; then
10223   echo $ECHO_N "(cached) $ECHO_C" >&6
10224 else
10225           if test "$cross_compiling" = yes; then :
10226   lt_cv_dlopen_self=cross
10227 else
10228   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10229   lt_status=$lt_dlunknown
10230   cat > conftest.$ac_ext <<EOF
10231 #line 10231 "configure"
10232 #include "confdefs.h"
10233
10234 #if HAVE_DLFCN_H
10235 #include <dlfcn.h>
10236 #endif
10237
10238 #include <stdio.h>
10239
10240 #ifdef RTLD_GLOBAL
10241 #  define LT_DLGLOBAL           RTLD_GLOBAL
10242 #else
10243 #  ifdef DL_GLOBAL
10244 #    define LT_DLGLOBAL         DL_GLOBAL
10245 #  else
10246 #    define LT_DLGLOBAL         0
10247 #  endif
10248 #endif
10249
10250 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10251    find out it does not work in some platform. */
10252 #ifndef LT_DLLAZY_OR_NOW
10253 #  ifdef RTLD_LAZY
10254 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10255 #  else
10256 #    ifdef DL_LAZY
10257 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10258 #    else
10259 #      ifdef RTLD_NOW
10260 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10261 #      else
10262 #        ifdef DL_NOW
10263 #          define LT_DLLAZY_OR_NOW      DL_NOW
10264 #        else
10265 #          define LT_DLLAZY_OR_NOW      0
10266 #        endif
10267 #      endif
10268 #    endif
10269 #  endif
10270 #endif
10271
10272 #ifdef __cplusplus
10273 extern "C" void exit (int);
10274 #endif
10275
10276 void fnord() { int i=42;}
10277 int main ()
10278 {
10279   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10280   int status = $lt_dlunknown;
10281
10282   if (self)
10283     {
10284       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10285       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10286       /* dlclose (self); */
10287     }
10288
10289     exit (status);
10290 }
10291 EOF
10292   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10293   (eval $ac_link) 2>&5
10294   ac_status=$?
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10297     (./conftest; exit; ) >&5 2>/dev/null
10298     lt_status=$?
10299     case x$lt_status in
10300       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10301       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10302       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10303     esac
10304   else :
10305     # compilation failed
10306     lt_cv_dlopen_self=no
10307   fi
10308 fi
10309 rm -fr conftest*
10310
10311
10312 fi
10313 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10314 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10315
10316     if test "x$lt_cv_dlopen_self" = xyes; then
10317       LDFLAGS="$LDFLAGS $link_static_flag"
10318       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10319 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10320 if test "${lt_cv_dlopen_self_static+set}" = set; then
10321   echo $ECHO_N "(cached) $ECHO_C" >&6
10322 else
10323           if test "$cross_compiling" = yes; then :
10324   lt_cv_dlopen_self_static=cross
10325 else
10326   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10327   lt_status=$lt_dlunknown
10328   cat > conftest.$ac_ext <<EOF
10329 #line 10329 "configure"
10330 #include "confdefs.h"
10331
10332 #if HAVE_DLFCN_H
10333 #include <dlfcn.h>
10334 #endif
10335
10336 #include <stdio.h>
10337
10338 #ifdef RTLD_GLOBAL
10339 #  define LT_DLGLOBAL           RTLD_GLOBAL
10340 #else
10341 #  ifdef DL_GLOBAL
10342 #    define LT_DLGLOBAL         DL_GLOBAL
10343 #  else
10344 #    define LT_DLGLOBAL         0
10345 #  endif
10346 #endif
10347
10348 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10349    find out it does not work in some platform. */
10350 #ifndef LT_DLLAZY_OR_NOW
10351 #  ifdef RTLD_LAZY
10352 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10353 #  else
10354 #    ifdef DL_LAZY
10355 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10356 #    else
10357 #      ifdef RTLD_NOW
10358 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10359 #      else
10360 #        ifdef DL_NOW
10361 #          define LT_DLLAZY_OR_NOW      DL_NOW
10362 #        else
10363 #          define LT_DLLAZY_OR_NOW      0
10364 #        endif
10365 #      endif
10366 #    endif
10367 #  endif
10368 #endif
10369
10370 #ifdef __cplusplus
10371 extern "C" void exit (int);
10372 #endif
10373
10374 void fnord() { int i=42;}
10375 int main ()
10376 {
10377   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10378   int status = $lt_dlunknown;
10379
10380   if (self)
10381     {
10382       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10383       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10384       /* dlclose (self); */
10385     }
10386
10387     exit (status);
10388 }
10389 EOF
10390   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10391   (eval $ac_link) 2>&5
10392   ac_status=$?
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10395     (./conftest; exit; ) >&5 2>/dev/null
10396     lt_status=$?
10397     case x$lt_status in
10398       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10399       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10400       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10401     esac
10402   else :
10403     # compilation failed
10404     lt_cv_dlopen_self_static=no
10405   fi
10406 fi
10407 rm -fr conftest*
10408
10409
10410 fi
10411 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10412 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10413     fi
10414
10415     CPPFLAGS="$save_CPPFLAGS"
10416     LDFLAGS="$save_LDFLAGS"
10417     LIBS="$save_LIBS"
10418     ;;
10419   esac
10420
10421   case $lt_cv_dlopen_self in
10422   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10423   *) enable_dlopen_self=unknown ;;
10424   esac
10425
10426   case $lt_cv_dlopen_self_static in
10427   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10428   *) enable_dlopen_self_static=unknown ;;
10429   esac
10430 fi
10431
10432
10433 # Report which librarie types wil actually be built
10434 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10435 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10436 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10437 echo "${ECHO_T}$can_build_shared" >&6
10438
10439 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10440 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10441 test "$can_build_shared" = "no" && enable_shared=no
10442
10443 # On AIX, shared libraries and static libraries use the same namespace, and
10444 # are all built from PIC.
10445 case $host_os in
10446 aix3*)
10447   test "$enable_shared" = yes && enable_static=no
10448   if test -n "$RANLIB"; then
10449     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10450     postinstall_cmds='$RANLIB $lib'
10451   fi
10452   ;;
10453
10454 aix4* | aix5*)
10455   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10456     test "$enable_shared" = yes && enable_static=no
10457   fi
10458     ;;
10459 esac
10460 echo "$as_me:$LINENO: result: $enable_shared" >&5
10461 echo "${ECHO_T}$enable_shared" >&6
10462
10463 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10464 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10465 # Make sure either enable_shared or enable_static is yes.
10466 test "$enable_shared" = yes || enable_static=yes
10467 echo "$as_me:$LINENO: result: $enable_static" >&5
10468 echo "${ECHO_T}$enable_static" >&6
10469
10470 # The else clause should only fire when bootstrapping the
10471 # libtool distribution, otherwise you forgot to ship ltmain.sh
10472 # with your package, and you will get complaints that there are
10473 # no rules to generate ltmain.sh.
10474 if test -f "$ltmain"; then
10475   # See if we are running on zsh, and set the options which allow our commands through
10476   # without removal of \ escapes.
10477   if test -n "${ZSH_VERSION+set}" ; then
10478     setopt NO_GLOB_SUBST
10479   fi
10480   # Now quote all the things that may contain metacharacters while being
10481   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10482   # variables and quote the copies for generation of the libtool script.
10483   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10484     SED SHELL STRIP \
10485     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10486     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10487     deplibs_check_method reload_flag reload_cmds need_locks \
10488     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10489     lt_cv_sys_global_symbol_to_c_name_address \
10490     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10491     old_postinstall_cmds old_postuninstall_cmds \
10492     compiler \
10493     CC \
10494     LD \
10495     lt_prog_compiler_wl \
10496     lt_prog_compiler_pic \
10497     lt_prog_compiler_static \
10498     lt_prog_compiler_no_builtin_flag \
10499     export_dynamic_flag_spec \
10500     thread_safe_flag_spec \
10501     whole_archive_flag_spec \
10502     enable_shared_with_static_runtimes \
10503     old_archive_cmds \
10504     old_archive_from_new_cmds \
10505     predep_objects \
10506     postdep_objects \
10507     predeps \
10508     postdeps \
10509     compiler_lib_search_path \
10510     archive_cmds \
10511     archive_expsym_cmds \
10512     postinstall_cmds \
10513     postuninstall_cmds \
10514     old_archive_from_expsyms_cmds \
10515     allow_undefined_flag \
10516     no_undefined_flag \
10517     export_symbols_cmds \
10518     hardcode_libdir_flag_spec \
10519     hardcode_libdir_flag_spec_ld \
10520     hardcode_libdir_separator \
10521     hardcode_automatic \
10522     module_cmds \
10523     module_expsym_cmds \
10524     lt_cv_prog_compiler_c_o \
10525     exclude_expsyms \
10526     include_expsyms; do
10527
10528     case $var in
10529     old_archive_cmds | \
10530     old_archive_from_new_cmds | \
10531     archive_cmds | \
10532     archive_expsym_cmds | \
10533     module_cmds | \
10534     module_expsym_cmds | \
10535     old_archive_from_expsyms_cmds | \
10536     export_symbols_cmds | \
10537     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10538     postinstall_cmds | postuninstall_cmds | \
10539     old_postinstall_cmds | old_postuninstall_cmds | \
10540     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10541       # Double-quote double-evaled strings.
10542       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10543       ;;
10544     *)
10545       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10546       ;;
10547     esac
10548   done
10549
10550   case $lt_echo in
10551   *'\$0 --fallback-echo"')
10552     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10553     ;;
10554   esac
10555
10556 cfgfile="${ofile}T"
10557   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10558   $rm -f "$cfgfile"
10559   { echo "$as_me:$LINENO: creating $ofile" >&5
10560 echo "$as_me: creating $ofile" >&6;}
10561
10562   cat <<__EOF__ >> "$cfgfile"
10563 #! $SHELL
10564
10565 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10566 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10567 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10568 #
10569 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10570 # Free Software Foundation, Inc.
10571 #
10572 # This file is part of GNU Libtool:
10573 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10574 #
10575 # This program is free software; you can redistribute it and/or modify
10576 # it under the terms of the GNU General Public License as published by
10577 # the Free Software Foundation; either version 2 of the License, or
10578 # (at your option) any later version.
10579 #
10580 # This program is distributed in the hope that it will be useful, but
10581 # WITHOUT ANY WARRANTY; without even the implied warranty of
10582 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10583 # General Public License for more details.
10584 #
10585 # You should have received a copy of the GNU General Public License
10586 # along with this program; if not, write to the Free Software
10587 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10588 #
10589 # As a special exception to the GNU General Public License, if you
10590 # distribute this file as part of a program that contains a
10591 # configuration script generated by Autoconf, you may include it under
10592 # the same distribution terms that you use for the rest of that program.
10593
10594 # A sed program that does not truncate output.
10595 SED=$lt_SED
10596
10597 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10598 Xsed="$SED -e 1s/^X//"
10599
10600 # The HP-UX ksh and POSIX shell print the target directory to stdout
10601 # if CDPATH is set.
10602 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10603
10604 # The names of the tagged configurations supported by this script.
10605 available_tags=
10606
10607 # ### BEGIN LIBTOOL CONFIG
10608
10609 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10610
10611 # Shell to use when invoking shell scripts.
10612 SHELL=$lt_SHELL
10613
10614 # Whether or not to build shared libraries.
10615 build_libtool_libs=$enable_shared
10616
10617 # Whether or not to build static libraries.
10618 build_old_libs=$enable_static
10619
10620 # Whether or not to add -lc for building shared libraries.
10621 build_libtool_need_lc=$archive_cmds_need_lc
10622
10623 # Whether or not to disallow shared libs when runtime libs are static
10624 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10625
10626 # Whether or not to optimize for fast installation.
10627 fast_install=$enable_fast_install
10628
10629 # The host system.
10630 host_alias=$host_alias
10631 host=$host
10632 host_os=$host_os
10633
10634 # The build system.
10635 build_alias=$build_alias
10636 build=$build
10637 build_os=$build_os
10638
10639 # An echo program that does not interpret backslashes.
10640 echo=$lt_echo
10641
10642 # The archiver.
10643 AR=$lt_AR
10644 AR_FLAGS=$lt_AR_FLAGS
10645
10646 # A C compiler.
10647 LTCC=$lt_LTCC
10648
10649 # A language-specific compiler.
10650 CC=$lt_compiler
10651
10652 # Is the compiler the GNU C compiler?
10653 with_gcc=$GCC
10654
10655 # An ERE matcher.
10656 EGREP=$lt_EGREP
10657
10658 # The linker used to build libraries.
10659 LD=$lt_LD
10660
10661 # Whether we need hard or soft links.
10662 LN_S=$lt_LN_S
10663
10664 # A BSD-compatible nm program.
10665 NM=$lt_NM
10666
10667 # A symbol stripping program
10668 STRIP=$lt_STRIP
10669
10670 # Used to examine libraries when file_magic_cmd begins "file"
10671 MAGIC_CMD=$MAGIC_CMD
10672
10673 # Used on cygwin: DLL creation program.
10674 DLLTOOL="$DLLTOOL"
10675
10676 # Used on cygwin: object dumper.
10677 OBJDUMP="$OBJDUMP"
10678
10679 # Used on cygwin: assembler.
10680 AS="$AS"
10681
10682 # The name of the directory that contains temporary libtool files.
10683 objdir=$objdir
10684
10685 # How to create reloadable object files.
10686 reload_flag=$lt_reload_flag
10687 reload_cmds=$lt_reload_cmds
10688
10689 # How to pass a linker flag through the compiler.
10690 wl=$lt_lt_prog_compiler_wl
10691
10692 # Object file suffix (normally "o").
10693 objext="$ac_objext"
10694
10695 # Old archive suffix (normally "a").
10696 libext="$libext"
10697
10698 # Shared library suffix (normally ".so").
10699 shrext_cmds='$shrext_cmds'
10700
10701 # Executable file suffix (normally "").
10702 exeext="$exeext"
10703
10704 # Additional compiler flags for building library objects.
10705 pic_flag=$lt_lt_prog_compiler_pic
10706 pic_mode=$pic_mode
10707
10708 # What is the maximum length of a command?
10709 max_cmd_len=$lt_cv_sys_max_cmd_len
10710
10711 # Does compiler simultaneously support -c and -o options?
10712 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10713
10714 # Must we lock files when doing compilation?
10715 need_locks=$lt_need_locks
10716
10717 # Do we need the lib prefix for modules?
10718 need_lib_prefix=$need_lib_prefix
10719
10720 # Do we need a version for libraries?
10721 need_version=$need_version
10722
10723 # Whether dlopen is supported.
10724 dlopen_support=$enable_dlopen
10725
10726 # Whether dlopen of programs is supported.
10727 dlopen_self=$enable_dlopen_self
10728
10729 # Whether dlopen of statically linked programs is supported.
10730 dlopen_self_static=$enable_dlopen_self_static
10731
10732 # Compiler flag to prevent dynamic linking.
10733 link_static_flag=$lt_lt_prog_compiler_static
10734
10735 # Compiler flag to turn off builtin functions.
10736 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10737
10738 # Compiler flag to allow reflexive dlopens.
10739 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10740
10741 # Compiler flag to generate shared objects directly from archives.
10742 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10743
10744 # Compiler flag to generate thread-safe objects.
10745 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10746
10747 # Library versioning type.
10748 version_type=$version_type
10749
10750 # Format of library name prefix.
10751 libname_spec=$lt_libname_spec
10752
10753 # List of archive names.  First name is the real one, the rest are links.
10754 # The last name is the one that the linker finds with -lNAME.
10755 library_names_spec=$lt_library_names_spec
10756
10757 # The coded name of the library, if different from the real name.
10758 soname_spec=$lt_soname_spec
10759
10760 # Commands used to build and install an old-style archive.
10761 RANLIB=$lt_RANLIB
10762 old_archive_cmds=$lt_old_archive_cmds
10763 old_postinstall_cmds=$lt_old_postinstall_cmds
10764 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10765
10766 # Create an old-style archive from a shared archive.
10767 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10768
10769 # Create a temporary old-style archive to link instead of a shared archive.
10770 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10771
10772 # Commands used to build and install a shared archive.
10773 archive_cmds=$lt_archive_cmds
10774 archive_expsym_cmds=$lt_archive_expsym_cmds
10775 postinstall_cmds=$lt_postinstall_cmds
10776 postuninstall_cmds=$lt_postuninstall_cmds
10777
10778 # Commands used to build a loadable module (assumed same as above if empty)
10779 module_cmds=$lt_module_cmds
10780 module_expsym_cmds=$lt_module_expsym_cmds
10781
10782 # Commands to strip libraries.
10783 old_striplib=$lt_old_striplib
10784 striplib=$lt_striplib
10785
10786 # Dependencies to place before the objects being linked to create a
10787 # shared library.
10788 predep_objects=$lt_predep_objects
10789
10790 # Dependencies to place after the objects being linked to create a
10791 # shared library.
10792 postdep_objects=$lt_postdep_objects
10793
10794 # Dependencies to place before the objects being linked to create a
10795 # shared library.
10796 predeps=$lt_predeps
10797
10798 # Dependencies to place after the objects being linked to create a
10799 # shared library.
10800 postdeps=$lt_postdeps
10801
10802 # The library search path used internally by the compiler when linking
10803 # a shared library.
10804 compiler_lib_search_path=$lt_compiler_lib_search_path
10805
10806 # Method to check whether dependent libraries are shared objects.
10807 deplibs_check_method=$lt_deplibs_check_method
10808
10809 # Command to use when deplibs_check_method == file_magic.
10810 file_magic_cmd=$lt_file_magic_cmd
10811
10812 # Flag that allows shared libraries with undefined symbols to be built.
10813 allow_undefined_flag=$lt_allow_undefined_flag
10814
10815 # Flag that forces no undefined symbols.
10816 no_undefined_flag=$lt_no_undefined_flag
10817
10818 # Commands used to finish a libtool library installation in a directory.
10819 finish_cmds=$lt_finish_cmds
10820
10821 # Same as above, but a single script fragment to be evaled but not shown.
10822 finish_eval=$lt_finish_eval
10823
10824 # Take the output of nm and produce a listing of raw symbols and C names.
10825 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10826
10827 # Transform the output of nm in a proper C declaration
10828 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10829
10830 # Transform the output of nm in a C name address pair
10831 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10832
10833 # This is the shared library runtime path variable.
10834 runpath_var=$runpath_var
10835
10836 # This is the shared library path variable.
10837 shlibpath_var=$shlibpath_var
10838
10839 # Is shlibpath searched before the hard-coded library search path?
10840 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10841
10842 # How to hardcode a shared library path into an executable.
10843 hardcode_action=$hardcode_action
10844
10845 # Whether we should hardcode library paths into libraries.
10846 hardcode_into_libs=$hardcode_into_libs
10847
10848 # Flag to hardcode \$libdir into a binary during linking.
10849 # This must work even if \$libdir does not exist.
10850 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10851
10852 # If ld is used when linking, flag to hardcode \$libdir into
10853 # a binary during linking. This must work even if \$libdir does
10854 # not exist.
10855 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10856
10857 # Whether we need a single -rpath flag with a separated argument.
10858 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10859
10860 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10861 # resulting binary.
10862 hardcode_direct=$hardcode_direct
10863
10864 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10865 # resulting binary.
10866 hardcode_minus_L=$hardcode_minus_L
10867
10868 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10869 # the resulting binary.
10870 hardcode_shlibpath_var=$hardcode_shlibpath_var
10871
10872 # Set to yes if building a shared library automatically hardcodes DIR into the library
10873 # and all subsequent libraries and executables linked against it.
10874 hardcode_automatic=$hardcode_automatic
10875
10876 # Variables whose values should be saved in libtool wrapper scripts and
10877 # restored at relink time.
10878 variables_saved_for_relink="$variables_saved_for_relink"
10879
10880 # Whether libtool must link a program against all its dependency libraries.
10881 link_all_deplibs=$link_all_deplibs
10882
10883 # Compile-time system search path for libraries
10884 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10885
10886 # Run-time system search path for libraries
10887 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10888
10889 # Fix the shell variable \$srcfile for the compiler.
10890 fix_srcfile_path="$fix_srcfile_path"
10891
10892 # Set to yes if exported symbols are required.
10893 always_export_symbols=$always_export_symbols
10894
10895 # The commands to list exported symbols.
10896 export_symbols_cmds=$lt_export_symbols_cmds
10897
10898 # The commands to extract the exported symbol list from a shared archive.
10899 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10900
10901 # Symbols that should not be listed in the preloaded symbols.
10902 exclude_expsyms=$lt_exclude_expsyms
10903
10904 # Symbols that must always be exported.
10905 include_expsyms=$lt_include_expsyms
10906
10907 # ### END LIBTOOL CONFIG
10908
10909 __EOF__
10910
10911
10912   case $host_os in
10913   aix3*)
10914     cat <<\EOF >> "$cfgfile"
10915
10916 # AIX sometimes has problems with the GCC collect2 program.  For some
10917 # reason, if we set the COLLECT_NAMES environment variable, the problems
10918 # vanish in a puff of smoke.
10919 if test "X${COLLECT_NAMES+set}" != Xset; then
10920   COLLECT_NAMES=
10921   export COLLECT_NAMES
10922 fi
10923 EOF
10924     ;;
10925   esac
10926
10927   # We use sed instead of cat because bash on DJGPP gets confused if
10928   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10929   # text mode, it properly converts lines to CR/LF.  This bash problem
10930   # is reportedly fixed, but why not run on old versions too?
10931   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10932
10933   mv -f "$cfgfile" "$ofile" || \
10934     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10935   chmod +x "$ofile"
10936
10937 else
10938   # If there is no Makefile yet, we rely on a make rule to execute
10939   # `config.status --recheck' to rerun these tests and create the
10940   # libtool script then.
10941   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10942   if test -f "$ltmain_in"; then
10943     test -f Makefile && make "$ltmain"
10944   fi
10945 fi
10946
10947
10948 ac_ext=c
10949 ac_cpp='$CPP $CPPFLAGS'
10950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10953
10954 CC="$lt_save_CC"
10955
10956
10957 # Check whether --with-tags or --without-tags was given.
10958 if test "${with_tags+set}" = set; then
10959   withval="$with_tags"
10960   tagnames="$withval"
10961 fi;
10962
10963 if test -f "$ltmain" && test -n "$tagnames"; then
10964   if test ! -f "${ofile}"; then
10965     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10966 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10967   fi
10968
10969   if test -z "$LTCC"; then
10970     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10971     if test -z "$LTCC"; then
10972       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10973 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10974     else
10975       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10976 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10977     fi
10978   fi
10979
10980   # Extract list of available tagged configurations in $ofile.
10981   # Note that this assumes the entire list is on one line.
10982   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10983
10984   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10985   for tagname in $tagnames; do
10986     IFS="$lt_save_ifs"
10987     # Check whether tagname contains only valid characters
10988     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10989     "") ;;
10990     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10991 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10992    { (exit 1); exit 1; }; }
10993         ;;
10994     esac
10995
10996     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10997     then
10998       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10999 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11000    { (exit 1); exit 1; }; }
11001     fi
11002
11003     # Update the list of available tags.
11004     if test -n "$tagname"; then
11005       echo appending configuration tag \"$tagname\" to $ofile
11006
11007       case $tagname in
11008       CXX)
11009         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11010             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11011             (test "X$CXX" != "Xg++"))) ; then
11012           :
11013         else
11014           tagname=""
11015         fi
11016         ;;
11017
11018       F77)
11019         if test -n "$F77" && test "X$F77" != "Xno"; then
11020           :
11021         else
11022           tagname=""
11023         fi
11024         ;;
11025
11026       GCJ)
11027         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11028           :
11029         else
11030           tagname=""
11031         fi
11032         ;;
11033
11034       RC)
11035
11036
11037
11038 # Source file extension for RC test sources.
11039 ac_ext=rc
11040
11041 # Object file extension for compiled RC test sources.
11042 objext=o
11043 objext_RC=$objext
11044
11045 # Code to be used in simple compile tests
11046 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11047
11048 # Code to be used in simple link tests
11049 lt_simple_link_test_code="$lt_simple_compile_test_code"
11050
11051 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11052
11053 # If no C compiler was specified, use CC.
11054 LTCC=${LTCC-"$CC"}
11055
11056 # Allow CC to be a program name with arguments.
11057 compiler=$CC
11058
11059
11060 # save warnings/boilerplate of simple test code
11061 ac_outfile=conftest.$ac_objext
11062 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11064 _lt_compiler_boilerplate=`cat conftest.err`
11065 $rm conftest*
11066
11067 ac_outfile=conftest.$ac_objext
11068 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11070 _lt_linker_boilerplate=`cat conftest.err`
11071 $rm conftest*
11072
11073
11074 # Allow CC to be a program name with arguments.
11075 lt_save_CC="$CC"
11076 CC=${RC-"windres"}
11077 compiler=$CC
11078 compiler_RC=$CC
11079 for cc_temp in $compiler""; do
11080   case $cc_temp in
11081     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11082     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11083     \-*) ;;
11084     *) break;;
11085   esac
11086 done
11087 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11088
11089 lt_cv_prog_compiler_c_o_RC=yes
11090
11091 # The else clause should only fire when bootstrapping the
11092 # libtool distribution, otherwise you forgot to ship ltmain.sh
11093 # with your package, and you will get complaints that there are
11094 # no rules to generate ltmain.sh.
11095 if test -f "$ltmain"; then
11096   # See if we are running on zsh, and set the options which allow our commands through
11097   # without removal of \ escapes.
11098   if test -n "${ZSH_VERSION+set}" ; then
11099     setopt NO_GLOB_SUBST
11100   fi
11101   # Now quote all the things that may contain metacharacters while being
11102   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11103   # variables and quote the copies for generation of the libtool script.
11104   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11105     SED SHELL STRIP \
11106     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11107     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11108     deplibs_check_method reload_flag reload_cmds need_locks \
11109     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11110     lt_cv_sys_global_symbol_to_c_name_address \
11111     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11112     old_postinstall_cmds old_postuninstall_cmds \
11113     compiler_RC \
11114     CC_RC \
11115     LD_RC \
11116     lt_prog_compiler_wl_RC \
11117     lt_prog_compiler_pic_RC \
11118     lt_prog_compiler_static_RC \
11119     lt_prog_compiler_no_builtin_flag_RC \
11120     export_dynamic_flag_spec_RC \
11121     thread_safe_flag_spec_RC \
11122     whole_archive_flag_spec_RC \
11123     enable_shared_with_static_runtimes_RC \
11124     old_archive_cmds_RC \
11125     old_archive_from_new_cmds_RC \
11126     predep_objects_RC \
11127     postdep_objects_RC \
11128     predeps_RC \
11129     postdeps_RC \
11130     compiler_lib_search_path_RC \
11131     archive_cmds_RC \
11132     archive_expsym_cmds_RC \
11133     postinstall_cmds_RC \
11134     postuninstall_cmds_RC \
11135     old_archive_from_expsyms_cmds_RC \
11136     allow_undefined_flag_RC \
11137     no_undefined_flag_RC \
11138     export_symbols_cmds_RC \
11139     hardcode_libdir_flag_spec_RC \
11140     hardcode_libdir_flag_spec_ld_RC \
11141     hardcode_libdir_separator_RC \
11142     hardcode_automatic_RC \
11143     module_cmds_RC \
11144     module_expsym_cmds_RC \
11145     lt_cv_prog_compiler_c_o_RC \
11146     exclude_expsyms_RC \
11147     include_expsyms_RC; do
11148
11149     case $var in
11150     old_archive_cmds_RC | \
11151     old_archive_from_new_cmds_RC | \
11152     archive_cmds_RC | \
11153     archive_expsym_cmds_RC | \
11154     module_cmds_RC | \
11155     module_expsym_cmds_RC | \
11156     old_archive_from_expsyms_cmds_RC | \
11157     export_symbols_cmds_RC | \
11158     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11159     postinstall_cmds | postuninstall_cmds | \
11160     old_postinstall_cmds | old_postuninstall_cmds | \
11161     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11162       # Double-quote double-evaled strings.
11163       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11164       ;;
11165     *)
11166       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11167       ;;
11168     esac
11169   done
11170
11171   case $lt_echo in
11172   *'\$0 --fallback-echo"')
11173     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11174     ;;
11175   esac
11176
11177 cfgfile="$ofile"
11178
11179   cat <<__EOF__ >> "$cfgfile"
11180 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11181
11182 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11183
11184 # Shell to use when invoking shell scripts.
11185 SHELL=$lt_SHELL
11186
11187 # Whether or not to build shared libraries.
11188 build_libtool_libs=$enable_shared
11189
11190 # Whether or not to build static libraries.
11191 build_old_libs=$enable_static
11192
11193 # Whether or not to add -lc for building shared libraries.
11194 build_libtool_need_lc=$archive_cmds_need_lc_RC
11195
11196 # Whether or not to disallow shared libs when runtime libs are static
11197 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11198
11199 # Whether or not to optimize for fast installation.
11200 fast_install=$enable_fast_install
11201
11202 # The host system.
11203 host_alias=$host_alias
11204 host=$host
11205 host_os=$host_os
11206
11207 # The build system.
11208 build_alias=$build_alias
11209 build=$build
11210 build_os=$build_os
11211
11212 # An echo program that does not interpret backslashes.
11213 echo=$lt_echo
11214
11215 # The archiver.
11216 AR=$lt_AR
11217 AR_FLAGS=$lt_AR_FLAGS
11218
11219 # A C compiler.
11220 LTCC=$lt_LTCC
11221
11222 # A language-specific compiler.
11223 CC=$lt_compiler_RC
11224
11225 # Is the compiler the GNU C compiler?
11226 with_gcc=$GCC_RC
11227
11228 # An ERE matcher.
11229 EGREP=$lt_EGREP
11230
11231 # The linker used to build libraries.
11232 LD=$lt_LD_RC
11233
11234 # Whether we need hard or soft links.
11235 LN_S=$lt_LN_S
11236
11237 # A BSD-compatible nm program.
11238 NM=$lt_NM
11239
11240 # A symbol stripping program
11241 STRIP=$lt_STRIP
11242
11243 # Used to examine libraries when file_magic_cmd begins "file"
11244 MAGIC_CMD=$MAGIC_CMD
11245
11246 # Used on cygwin: DLL creation program.
11247 DLLTOOL="$DLLTOOL"
11248
11249 # Used on cygwin: object dumper.
11250 OBJDUMP="$OBJDUMP"
11251
11252 # Used on cygwin: assembler.
11253 AS="$AS"
11254
11255 # The name of the directory that contains temporary libtool files.
11256 objdir=$objdir
11257
11258 # How to create reloadable object files.
11259 reload_flag=$lt_reload_flag
11260 reload_cmds=$lt_reload_cmds
11261
11262 # How to pass a linker flag through the compiler.
11263 wl=$lt_lt_prog_compiler_wl_RC
11264
11265 # Object file suffix (normally "o").
11266 objext="$ac_objext"
11267
11268 # Old archive suffix (normally "a").
11269 libext="$libext"
11270
11271 # Shared library suffix (normally ".so").
11272 shrext_cmds='$shrext_cmds'
11273
11274 # Executable file suffix (normally "").
11275 exeext="$exeext"
11276
11277 # Additional compiler flags for building library objects.
11278 pic_flag=$lt_lt_prog_compiler_pic_RC
11279 pic_mode=$pic_mode
11280
11281 # What is the maximum length of a command?
11282 max_cmd_len=$lt_cv_sys_max_cmd_len
11283
11284 # Does compiler simultaneously support -c and -o options?
11285 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11286
11287 # Must we lock files when doing compilation?
11288 need_locks=$lt_need_locks
11289
11290 # Do we need the lib prefix for modules?
11291 need_lib_prefix=$need_lib_prefix
11292
11293 # Do we need a version for libraries?
11294 need_version=$need_version
11295
11296 # Whether dlopen is supported.
11297 dlopen_support=$enable_dlopen
11298
11299 # Whether dlopen of programs is supported.
11300 dlopen_self=$enable_dlopen_self
11301
11302 # Whether dlopen of statically linked programs is supported.
11303 dlopen_self_static=$enable_dlopen_self_static
11304
11305 # Compiler flag to prevent dynamic linking.
11306 link_static_flag=$lt_lt_prog_compiler_static_RC
11307
11308 # Compiler flag to turn off builtin functions.
11309 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11310
11311 # Compiler flag to allow reflexive dlopens.
11312 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11313
11314 # Compiler flag to generate shared objects directly from archives.
11315 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11316
11317 # Compiler flag to generate thread-safe objects.
11318 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11319
11320 # Library versioning type.
11321 version_type=$version_type
11322
11323 # Format of library name prefix.
11324 libname_spec=$lt_libname_spec
11325
11326 # List of archive names.  First name is the real one, the rest are links.
11327 # The last name is the one that the linker finds with -lNAME.
11328 library_names_spec=$lt_library_names_spec
11329
11330 # The coded name of the library, if different from the real name.
11331 soname_spec=$lt_soname_spec
11332
11333 # Commands used to build and install an old-style archive.
11334 RANLIB=$lt_RANLIB
11335 old_archive_cmds=$lt_old_archive_cmds_RC
11336 old_postinstall_cmds=$lt_old_postinstall_cmds
11337 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11338
11339 # Create an old-style archive from a shared archive.
11340 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11341
11342 # Create a temporary old-style archive to link instead of a shared archive.
11343 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11344
11345 # Commands used to build and install a shared archive.
11346 archive_cmds=$lt_archive_cmds_RC
11347 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11348 postinstall_cmds=$lt_postinstall_cmds
11349 postuninstall_cmds=$lt_postuninstall_cmds
11350
11351 # Commands used to build a loadable module (assumed same as above if empty)
11352 module_cmds=$lt_module_cmds_RC
11353 module_expsym_cmds=$lt_module_expsym_cmds_RC
11354
11355 # Commands to strip libraries.
11356 old_striplib=$lt_old_striplib
11357 striplib=$lt_striplib
11358
11359 # Dependencies to place before the objects being linked to create a
11360 # shared library.
11361 predep_objects=$lt_predep_objects_RC
11362
11363 # Dependencies to place after the objects being linked to create a
11364 # shared library.
11365 postdep_objects=$lt_postdep_objects_RC
11366
11367 # Dependencies to place before the objects being linked to create a
11368 # shared library.
11369 predeps=$lt_predeps_RC
11370
11371 # Dependencies to place after the objects being linked to create a
11372 # shared library.
11373 postdeps=$lt_postdeps_RC
11374
11375 # The library search path used internally by the compiler when linking
11376 # a shared library.
11377 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11378
11379 # Method to check whether dependent libraries are shared objects.
11380 deplibs_check_method=$lt_deplibs_check_method
11381
11382 # Command to use when deplibs_check_method == file_magic.
11383 file_magic_cmd=$lt_file_magic_cmd
11384
11385 # Flag that allows shared libraries with undefined symbols to be built.
11386 allow_undefined_flag=$lt_allow_undefined_flag_RC
11387
11388 # Flag that forces no undefined symbols.
11389 no_undefined_flag=$lt_no_undefined_flag_RC
11390
11391 # Commands used to finish a libtool library installation in a directory.
11392 finish_cmds=$lt_finish_cmds
11393
11394 # Same as above, but a single script fragment to be evaled but not shown.
11395 finish_eval=$lt_finish_eval
11396
11397 # Take the output of nm and produce a listing of raw symbols and C names.
11398 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11399
11400 # Transform the output of nm in a proper C declaration
11401 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11402
11403 # Transform the output of nm in a C name address pair
11404 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11405
11406 # This is the shared library runtime path variable.
11407 runpath_var=$runpath_var
11408
11409 # This is the shared library path variable.
11410 shlibpath_var=$shlibpath_var
11411
11412 # Is shlibpath searched before the hard-coded library search path?
11413 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11414
11415 # How to hardcode a shared library path into an executable.
11416 hardcode_action=$hardcode_action_RC
11417
11418 # Whether we should hardcode library paths into libraries.
11419 hardcode_into_libs=$hardcode_into_libs
11420
11421 # Flag to hardcode \$libdir into a binary during linking.
11422 # This must work even if \$libdir does not exist.
11423 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11424
11425 # If ld is used when linking, flag to hardcode \$libdir into
11426 # a binary during linking. This must work even if \$libdir does
11427 # not exist.
11428 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11429
11430 # Whether we need a single -rpath flag with a separated argument.
11431 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11432
11433 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11434 # resulting binary.
11435 hardcode_direct=$hardcode_direct_RC
11436
11437 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11438 # resulting binary.
11439 hardcode_minus_L=$hardcode_minus_L_RC
11440
11441 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11442 # the resulting binary.
11443 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11444
11445 # Set to yes if building a shared library automatically hardcodes DIR into the library
11446 # and all subsequent libraries and executables linked against it.
11447 hardcode_automatic=$hardcode_automatic_RC
11448
11449 # Variables whose values should be saved in libtool wrapper scripts and
11450 # restored at relink time.
11451 variables_saved_for_relink="$variables_saved_for_relink"
11452
11453 # Whether libtool must link a program against all its dependency libraries.
11454 link_all_deplibs=$link_all_deplibs_RC
11455
11456 # Compile-time system search path for libraries
11457 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11458
11459 # Run-time system search path for libraries
11460 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11461
11462 # Fix the shell variable \$srcfile for the compiler.
11463 fix_srcfile_path="$fix_srcfile_path_RC"
11464
11465 # Set to yes if exported symbols are required.
11466 always_export_symbols=$always_export_symbols_RC
11467
11468 # The commands to list exported symbols.
11469 export_symbols_cmds=$lt_export_symbols_cmds_RC
11470
11471 # The commands to extract the exported symbol list from a shared archive.
11472 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11473
11474 # Symbols that should not be listed in the preloaded symbols.
11475 exclude_expsyms=$lt_exclude_expsyms_RC
11476
11477 # Symbols that must always be exported.
11478 include_expsyms=$lt_include_expsyms_RC
11479
11480 # ### END LIBTOOL TAG CONFIG: $tagname
11481
11482 __EOF__
11483
11484
11485 else
11486   # If there is no Makefile yet, we rely on a make rule to execute
11487   # `config.status --recheck' to rerun these tests and create the
11488   # libtool script then.
11489   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11490   if test -f "$ltmain_in"; then
11491     test -f Makefile && make "$ltmain"
11492   fi
11493 fi
11494
11495
11496 ac_ext=c
11497 ac_cpp='$CPP $CPPFLAGS'
11498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11501
11502 CC="$lt_save_CC"
11503
11504         ;;
11505
11506       *)
11507         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11508 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11509    { (exit 1); exit 1; }; }
11510         ;;
11511       esac
11512
11513       # Append the new tag name to the list of available tags.
11514       if test -n "$tagname" ; then
11515       available_tags="$available_tags $tagname"
11516     fi
11517     fi
11518   done
11519   IFS="$lt_save_ifs"
11520
11521   # Now substitute the updated list of available tags.
11522   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11523     mv "${ofile}T" "$ofile"
11524     chmod +x "$ofile"
11525   else
11526     rm -f "${ofile}T"
11527     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11528 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11529    { (exit 1); exit 1; }; }
11530   fi
11531 fi
11532
11533
11534
11535 # This can be used to rebuild libtool when needed
11536 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11537
11538 # Always use our own libtool.
11539 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11540
11541 # Prevent multiple expansion
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552 ol_link_perl=no
11553 if test $ol_enable_perl != no ; then
11554         # Extract the first word of "perl", so it can be a program name with args.
11555 set dummy perl; ac_word=$2
11556 echo "$as_me:$LINENO: checking for $ac_word" >&5
11557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11558 if test "${ac_cv_path_PERLBIN+set}" = set; then
11559   echo $ECHO_N "(cached) $ECHO_C" >&6
11560 else
11561   case $PERLBIN in
11562   [\\/]* | ?:[\\/]*)
11563   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11564   ;;
11565   *)
11566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567 for as_dir in $PATH
11568 do
11569   IFS=$as_save_IFS
11570   test -z "$as_dir" && as_dir=.
11571   for ac_exec_ext in '' $ac_executable_extensions; do
11572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11573     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11575     break 2
11576   fi
11577 done
11578 done
11579
11580   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11581   ;;
11582 esac
11583 fi
11584 PERLBIN=$ac_cv_path_PERLBIN
11585
11586 if test -n "$PERLBIN"; then
11587   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11588 echo "${ECHO_T}$PERLBIN" >&6
11589 else
11590   echo "$as_me:$LINENO: result: no" >&5
11591 echo "${ECHO_T}no" >&6
11592 fi
11593
11594
11595         if test "no$PERLBIN" = "no" ; then
11596                 if test $ol_enable_perl = yes ; then
11597                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11598 echo "$as_me: error: could not locate perl" >&2;}
11599    { (exit 1); exit 1; }; }
11600                 fi
11601
11602         else
11603                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11604                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11605
11606                 if test x"$ol_enable_perl" = "xyes" ; then
11607                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11608                 else
11609                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11610                 fi
11611                                 ol_link_perl=yes
11612         fi
11613 fi
11614
11615 ac_ext=c
11616 ac_cpp='$CPP $CPPFLAGS'
11617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11620 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11621 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11622 # On Suns, sometimes $CPP names a directory.
11623 if test -n "$CPP" && test -d "$CPP"; then
11624   CPP=
11625 fi
11626 if test -z "$CPP"; then
11627   if test "${ac_cv_prog_CPP+set}" = set; then
11628   echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630       # Double quotes because CPP needs to be expanded
11631     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11632     do
11633       ac_preproc_ok=false
11634 for ac_c_preproc_warn_flag in '' yes
11635 do
11636   # Use a header file that comes with gcc, so configuring glibc
11637   # with a fresh cross-compiler works.
11638   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11639   # <limits.h> exists even on freestanding compilers.
11640   # On the NeXT, cc -E runs the code through the compiler's parser,
11641   # not just through cpp. "Syntax error" is here to catch this case.
11642   cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h.  */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h.  */
11648 #ifdef __STDC__
11649 # include <limits.h>
11650 #else
11651 # include <assert.h>
11652 #endif
11653                      Syntax error
11654 _ACEOF
11655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11657   ac_status=$?
11658   grep -v '^ *+' conftest.er1 >conftest.err
11659   rm -f conftest.er1
11660   cat conftest.err >&5
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); } >/dev/null; then
11663   if test -s conftest.err; then
11664     ac_cpp_err=$ac_c_preproc_warn_flag
11665     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11666   else
11667     ac_cpp_err=
11668   fi
11669 else
11670   ac_cpp_err=yes
11671 fi
11672 if test -z "$ac_cpp_err"; then
11673   :
11674 else
11675   echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11677
11678   # Broken: fails on valid input.
11679 continue
11680 fi
11681 rm -f conftest.err conftest.$ac_ext
11682
11683   # OK, works on sane cases.  Now check whether non-existent headers
11684   # can be detected and how.
11685   cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h.  */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h.  */
11691 #include <ac_nonexistent.h>
11692 _ACEOF
11693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11695   ac_status=$?
11696   grep -v '^ *+' conftest.er1 >conftest.err
11697   rm -f conftest.er1
11698   cat conftest.err >&5
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); } >/dev/null; then
11701   if test -s conftest.err; then
11702     ac_cpp_err=$ac_c_preproc_warn_flag
11703     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11704   else
11705     ac_cpp_err=
11706   fi
11707 else
11708   ac_cpp_err=yes
11709 fi
11710 if test -z "$ac_cpp_err"; then
11711   # Broken: success on invalid input.
11712 continue
11713 else
11714   echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11716
11717   # Passes both tests.
11718 ac_preproc_ok=:
11719 break
11720 fi
11721 rm -f conftest.err conftest.$ac_ext
11722
11723 done
11724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11725 rm -f conftest.err conftest.$ac_ext
11726 if $ac_preproc_ok; then
11727   break
11728 fi
11729
11730     done
11731     ac_cv_prog_CPP=$CPP
11732
11733 fi
11734   CPP=$ac_cv_prog_CPP
11735 else
11736   ac_cv_prog_CPP=$CPP
11737 fi
11738 echo "$as_me:$LINENO: result: $CPP" >&5
11739 echo "${ECHO_T}$CPP" >&6
11740 ac_preproc_ok=false
11741 for ac_c_preproc_warn_flag in '' yes
11742 do
11743   # Use a header file that comes with gcc, so configuring glibc
11744   # with a fresh cross-compiler works.
11745   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11746   # <limits.h> exists even on freestanding compilers.
11747   # On the NeXT, cc -E runs the code through the compiler's parser,
11748   # not just through cpp. "Syntax error" is here to catch this case.
11749   cat >conftest.$ac_ext <<_ACEOF
11750 /* confdefs.h.  */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h.  */
11755 #ifdef __STDC__
11756 # include <limits.h>
11757 #else
11758 # include <assert.h>
11759 #endif
11760                      Syntax error
11761 _ACEOF
11762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11764   ac_status=$?
11765   grep -v '^ *+' conftest.er1 >conftest.err
11766   rm -f conftest.er1
11767   cat conftest.err >&5
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); } >/dev/null; then
11770   if test -s conftest.err; then
11771     ac_cpp_err=$ac_c_preproc_warn_flag
11772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11773   else
11774     ac_cpp_err=
11775   fi
11776 else
11777   ac_cpp_err=yes
11778 fi
11779 if test -z "$ac_cpp_err"; then
11780   :
11781 else
11782   echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11784
11785   # Broken: fails on valid input.
11786 continue
11787 fi
11788 rm -f conftest.err conftest.$ac_ext
11789
11790   # OK, works on sane cases.  Now check whether non-existent headers
11791   # can be detected and how.
11792   cat >conftest.$ac_ext <<_ACEOF
11793 /* confdefs.h.  */
11794 _ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h.  */
11798 #include <ac_nonexistent.h>
11799 _ACEOF
11800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11801   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11802   ac_status=$?
11803   grep -v '^ *+' conftest.er1 >conftest.err
11804   rm -f conftest.er1
11805   cat conftest.err >&5
11806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807   (exit $ac_status); } >/dev/null; then
11808   if test -s conftest.err; then
11809     ac_cpp_err=$ac_c_preproc_warn_flag
11810     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11811   else
11812     ac_cpp_err=
11813   fi
11814 else
11815   ac_cpp_err=yes
11816 fi
11817 if test -z "$ac_cpp_err"; then
11818   # Broken: success on invalid input.
11819 continue
11820 else
11821   echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11823
11824   # Passes both tests.
11825 ac_preproc_ok=:
11826 break
11827 fi
11828 rm -f conftest.err conftest.$ac_ext
11829
11830 done
11831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11832 rm -f conftest.err conftest.$ac_ext
11833 if $ac_preproc_ok; then
11834   :
11835 else
11836   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11837 See \`config.log' for more details." >&5
11838 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11839 See \`config.log' for more details." >&2;}
11840    { (exit 1); exit 1; }; }
11841 fi
11842
11843 ac_ext=c
11844 ac_cpp='$CPP $CPPFLAGS'
11845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11848
11849
11850 case $host_os in
11851   *mingw32* ) ac_cv_mingw32=yes ;;
11852   *cygwin* ) ac_cv_cygwin=yes ;;
11853 esac
11854
11855
11856
11857
11858 cat >>confdefs.h <<_ACEOF
11859 #define EXEEXT "${EXEEXT}"
11860 _ACEOF
11861
11862
11863 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11864 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11865 if test "${ac_cv_lib_be_be_app+set}" = set; then
11866   echo $ECHO_N "(cached) $ECHO_C" >&6
11867 else
11868   ac_check_lib_save_LIBS=$LIBS
11869 LIBS="-lbe -lroot -lnet $LIBS"
11870 cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h.  */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h.  */
11876
11877 /* Override any gcc2 internal prototype to avoid an error.  */
11878 #ifdef __cplusplus
11879 extern "C"
11880 #endif
11881 /* We use char because int might match the return type of a gcc2
11882    builtin and then its argument prototype would still apply.  */
11883 char be_app ();
11884 int
11885 main ()
11886 {
11887 be_app ();
11888   ;
11889   return 0;
11890 }
11891 _ACEOF
11892 rm -f conftest.$ac_objext conftest$ac_exeext
11893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11894   (eval $ac_link) 2>conftest.er1
11895   ac_status=$?
11896   grep -v '^ *+' conftest.er1 >conftest.err
11897   rm -f conftest.er1
11898   cat conftest.err >&5
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); } &&
11901          { ac_try='test -z "$ac_c_werror_flag"
11902                          || test ! -s conftest.err'
11903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904   (eval $ac_try) 2>&5
11905   ac_status=$?
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); }; } &&
11908          { ac_try='test -s conftest$ac_exeext'
11909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910   (eval $ac_try) 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); }; }; then
11914   ac_cv_lib_be_be_app=yes
11915 else
11916   echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11918
11919 ac_cv_lib_be_be_app=no
11920 fi
11921 rm -f conftest.err conftest.$ac_objext \
11922       conftest$ac_exeext conftest.$ac_ext
11923 LIBS=$ac_check_lib_save_LIBS
11924 fi
11925 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11926 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11927 if test $ac_cv_lib_be_be_app = yes; then
11928   LIBS="$LIBS -lbe -lroot -lnet"
11929 else
11930   :
11931 fi
11932
11933
11934 ac_ext=c
11935 ac_cpp='$CPP $CPPFLAGS'
11936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11939 if test -n "$ac_tool_prefix"; then
11940   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11941 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11942 echo "$as_me:$LINENO: checking for $ac_word" >&5
11943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11944 if test "${ac_cv_prog_CC+set}" = set; then
11945   echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947   if test -n "$CC"; then
11948   ac_cv_prog_CC="$CC" # Let the user override the test.
11949 else
11950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951 for as_dir in $PATH
11952 do
11953   IFS=$as_save_IFS
11954   test -z "$as_dir" && as_dir=.
11955   for ac_exec_ext in '' $ac_executable_extensions; do
11956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11957     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11959     break 2
11960   fi
11961 done
11962 done
11963
11964 fi
11965 fi
11966 CC=$ac_cv_prog_CC
11967 if test -n "$CC"; then
11968   echo "$as_me:$LINENO: result: $CC" >&5
11969 echo "${ECHO_T}$CC" >&6
11970 else
11971   echo "$as_me:$LINENO: result: no" >&5
11972 echo "${ECHO_T}no" >&6
11973 fi
11974
11975 fi
11976 if test -z "$ac_cv_prog_CC"; then
11977   ac_ct_CC=$CC
11978   # Extract the first word of "gcc", so it can be a program name with args.
11979 set dummy gcc; ac_word=$2
11980 echo "$as_me:$LINENO: checking for $ac_word" >&5
11981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11983   echo $ECHO_N "(cached) $ECHO_C" >&6
11984 else
11985   if test -n "$ac_ct_CC"; then
11986   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11987 else
11988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11990 do
11991   IFS=$as_save_IFS
11992   test -z "$as_dir" && as_dir=.
11993   for ac_exec_ext in '' $ac_executable_extensions; do
11994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11995     ac_cv_prog_ac_ct_CC="gcc"
11996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11997     break 2
11998   fi
11999 done
12000 done
12001
12002 fi
12003 fi
12004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12005 if test -n "$ac_ct_CC"; then
12006   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12007 echo "${ECHO_T}$ac_ct_CC" >&6
12008 else
12009   echo "$as_me:$LINENO: result: no" >&5
12010 echo "${ECHO_T}no" >&6
12011 fi
12012
12013   CC=$ac_ct_CC
12014 else
12015   CC="$ac_cv_prog_CC"
12016 fi
12017
12018 if test -z "$CC"; then
12019   if test -n "$ac_tool_prefix"; then
12020   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12021 set dummy ${ac_tool_prefix}cc; ac_word=$2
12022 echo "$as_me:$LINENO: checking for $ac_word" >&5
12023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12024 if test "${ac_cv_prog_CC+set}" = set; then
12025   echo $ECHO_N "(cached) $ECHO_C" >&6
12026 else
12027   if test -n "$CC"; then
12028   ac_cv_prog_CC="$CC" # Let the user override the test.
12029 else
12030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031 for as_dir in $PATH
12032 do
12033   IFS=$as_save_IFS
12034   test -z "$as_dir" && as_dir=.
12035   for ac_exec_ext in '' $ac_executable_extensions; do
12036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12037     ac_cv_prog_CC="${ac_tool_prefix}cc"
12038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12039     break 2
12040   fi
12041 done
12042 done
12043
12044 fi
12045 fi
12046 CC=$ac_cv_prog_CC
12047 if test -n "$CC"; then
12048   echo "$as_me:$LINENO: result: $CC" >&5
12049 echo "${ECHO_T}$CC" >&6
12050 else
12051   echo "$as_me:$LINENO: result: no" >&5
12052 echo "${ECHO_T}no" >&6
12053 fi
12054
12055 fi
12056 if test -z "$ac_cv_prog_CC"; then
12057   ac_ct_CC=$CC
12058   # Extract the first word of "cc", so it can be a program name with args.
12059 set dummy cc; ac_word=$2
12060 echo "$as_me:$LINENO: checking for $ac_word" >&5
12061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12063   echo $ECHO_N "(cached) $ECHO_C" >&6
12064 else
12065   if test -n "$ac_ct_CC"; then
12066   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12067 else
12068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069 for as_dir in $PATH
12070 do
12071   IFS=$as_save_IFS
12072   test -z "$as_dir" && as_dir=.
12073   for ac_exec_ext in '' $ac_executable_extensions; do
12074   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12075     ac_cv_prog_ac_ct_CC="cc"
12076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12077     break 2
12078   fi
12079 done
12080 done
12081
12082 fi
12083 fi
12084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12085 if test -n "$ac_ct_CC"; then
12086   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12087 echo "${ECHO_T}$ac_ct_CC" >&6
12088 else
12089   echo "$as_me:$LINENO: result: no" >&5
12090 echo "${ECHO_T}no" >&6
12091 fi
12092
12093   CC=$ac_ct_CC
12094 else
12095   CC="$ac_cv_prog_CC"
12096 fi
12097
12098 fi
12099 if test -z "$CC"; then
12100   # Extract the first word of "cc", so it can be a program name with args.
12101 set dummy cc; ac_word=$2
12102 echo "$as_me:$LINENO: checking for $ac_word" >&5
12103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12104 if test "${ac_cv_prog_CC+set}" = set; then
12105   echo $ECHO_N "(cached) $ECHO_C" >&6
12106 else
12107   if test -n "$CC"; then
12108   ac_cv_prog_CC="$CC" # Let the user override the test.
12109 else
12110   ac_prog_rejected=no
12111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12112 for as_dir in $PATH
12113 do
12114   IFS=$as_save_IFS
12115   test -z "$as_dir" && as_dir=.
12116   for ac_exec_ext in '' $ac_executable_extensions; do
12117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12118     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12119        ac_prog_rejected=yes
12120        continue
12121      fi
12122     ac_cv_prog_CC="cc"
12123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12124     break 2
12125   fi
12126 done
12127 done
12128
12129 if test $ac_prog_rejected = yes; then
12130   # We found a bogon in the path, so make sure we never use it.
12131   set dummy $ac_cv_prog_CC
12132   shift
12133   if test $# != 0; then
12134     # We chose a different compiler from the bogus one.
12135     # However, it has the same basename, so the bogon will be chosen
12136     # first if we set CC to just the basename; use the full file name.
12137     shift
12138     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12139   fi
12140 fi
12141 fi
12142 fi
12143 CC=$ac_cv_prog_CC
12144 if test -n "$CC"; then
12145   echo "$as_me:$LINENO: result: $CC" >&5
12146 echo "${ECHO_T}$CC" >&6
12147 else
12148   echo "$as_me:$LINENO: result: no" >&5
12149 echo "${ECHO_T}no" >&6
12150 fi
12151
12152 fi
12153 if test -z "$CC"; then
12154   if test -n "$ac_tool_prefix"; then
12155   for ac_prog in cl
12156   do
12157     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12159 echo "$as_me:$LINENO: checking for $ac_word" >&5
12160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12161 if test "${ac_cv_prog_CC+set}" = set; then
12162   echo $ECHO_N "(cached) $ECHO_C" >&6
12163 else
12164   if test -n "$CC"; then
12165   ac_cv_prog_CC="$CC" # Let the user override the test.
12166 else
12167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168 for as_dir in $PATH
12169 do
12170   IFS=$as_save_IFS
12171   test -z "$as_dir" && as_dir=.
12172   for ac_exec_ext in '' $ac_executable_extensions; do
12173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12174     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12176     break 2
12177   fi
12178 done
12179 done
12180
12181 fi
12182 fi
12183 CC=$ac_cv_prog_CC
12184 if test -n "$CC"; then
12185   echo "$as_me:$LINENO: result: $CC" >&5
12186 echo "${ECHO_T}$CC" >&6
12187 else
12188   echo "$as_me:$LINENO: result: no" >&5
12189 echo "${ECHO_T}no" >&6
12190 fi
12191
12192     test -n "$CC" && break
12193   done
12194 fi
12195 if test -z "$CC"; then
12196   ac_ct_CC=$CC
12197   for ac_prog in cl
12198 do
12199   # Extract the first word of "$ac_prog", so it can be a program name with args.
12200 set dummy $ac_prog; ac_word=$2
12201 echo "$as_me:$LINENO: checking for $ac_word" >&5
12202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12204   echo $ECHO_N "(cached) $ECHO_C" >&6
12205 else
12206   if test -n "$ac_ct_CC"; then
12207   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12208 else
12209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210 for as_dir in $PATH
12211 do
12212   IFS=$as_save_IFS
12213   test -z "$as_dir" && as_dir=.
12214   for ac_exec_ext in '' $ac_executable_extensions; do
12215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12216     ac_cv_prog_ac_ct_CC="$ac_prog"
12217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12218     break 2
12219   fi
12220 done
12221 done
12222
12223 fi
12224 fi
12225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12226 if test -n "$ac_ct_CC"; then
12227   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12228 echo "${ECHO_T}$ac_ct_CC" >&6
12229 else
12230   echo "$as_me:$LINENO: result: no" >&5
12231 echo "${ECHO_T}no" >&6
12232 fi
12233
12234   test -n "$ac_ct_CC" && break
12235 done
12236
12237   CC=$ac_ct_CC
12238 fi
12239
12240 fi
12241
12242
12243 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12244 See \`config.log' for more details." >&5
12245 echo "$as_me: error: no acceptable C compiler found in \$PATH
12246 See \`config.log' for more details." >&2;}
12247    { (exit 1); exit 1; }; }
12248
12249 # Provide some information about the compiler.
12250 echo "$as_me:$LINENO:" \
12251      "checking for C compiler version" >&5
12252 ac_compiler=`set X $ac_compile; echo $2`
12253 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12254   (eval $ac_compiler --version </dev/null >&5) 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); }
12258 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12259   (eval $ac_compiler -v </dev/null >&5) 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); }
12263 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12264   (eval $ac_compiler -V </dev/null >&5) 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); }
12268
12269 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12270 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12271 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12272   echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274   cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h.  */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h.  */
12280
12281 int
12282 main ()
12283 {
12284 #ifndef __GNUC__
12285        choke me
12286 #endif
12287
12288   ;
12289   return 0;
12290 }
12291 _ACEOF
12292 rm -f conftest.$ac_objext
12293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12294   (eval $ac_compile) 2>conftest.er1
12295   ac_status=$?
12296   grep -v '^ *+' conftest.er1 >conftest.err
12297   rm -f conftest.er1
12298   cat conftest.err >&5
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); } &&
12301          { ac_try='test -z "$ac_c_werror_flag"
12302                          || test ! -s conftest.err'
12303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304   (eval $ac_try) 2>&5
12305   ac_status=$?
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); }; } &&
12308          { ac_try='test -s conftest.$ac_objext'
12309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310   (eval $ac_try) 2>&5
12311   ac_status=$?
12312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313   (exit $ac_status); }; }; then
12314   ac_compiler_gnu=yes
12315 else
12316   echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12318
12319 ac_compiler_gnu=no
12320 fi
12321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12322 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12323
12324 fi
12325 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12326 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12327 GCC=`test $ac_compiler_gnu = yes && echo yes`
12328 ac_test_CFLAGS=${CFLAGS+set}
12329 ac_save_CFLAGS=$CFLAGS
12330 CFLAGS="-g"
12331 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12332 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12333 if test "${ac_cv_prog_cc_g+set}" = set; then
12334   echo $ECHO_N "(cached) $ECHO_C" >&6
12335 else
12336   cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h.  */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h.  */
12342
12343 int
12344 main ()
12345 {
12346
12347   ;
12348   return 0;
12349 }
12350 _ACEOF
12351 rm -f conftest.$ac_objext
12352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12353   (eval $ac_compile) 2>conftest.er1
12354   ac_status=$?
12355   grep -v '^ *+' conftest.er1 >conftest.err
12356   rm -f conftest.er1
12357   cat conftest.err >&5
12358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359   (exit $ac_status); } &&
12360          { ac_try='test -z "$ac_c_werror_flag"
12361                          || test ! -s conftest.err'
12362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363   (eval $ac_try) 2>&5
12364   ac_status=$?
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); }; } &&
12367          { ac_try='test -s conftest.$ac_objext'
12368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369   (eval $ac_try) 2>&5
12370   ac_status=$?
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); }; }; then
12373   ac_cv_prog_cc_g=yes
12374 else
12375   echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12377
12378 ac_cv_prog_cc_g=no
12379 fi
12380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12381 fi
12382 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12383 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12384 if test "$ac_test_CFLAGS" = set; then
12385   CFLAGS=$ac_save_CFLAGS
12386 elif test $ac_cv_prog_cc_g = yes; then
12387   if test "$GCC" = yes; then
12388     CFLAGS="-g -O2"
12389   else
12390     CFLAGS="-g"
12391   fi
12392 else
12393   if test "$GCC" = yes; then
12394     CFLAGS="-O2"
12395   else
12396     CFLAGS=
12397   fi
12398 fi
12399 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12400 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12401 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12402   echo $ECHO_N "(cached) $ECHO_C" >&6
12403 else
12404   ac_cv_prog_cc_stdc=no
12405 ac_save_CC=$CC
12406 cat >conftest.$ac_ext <<_ACEOF
12407 /* confdefs.h.  */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h.  */
12412 #include <stdarg.h>
12413 #include <stdio.h>
12414 #include <sys/types.h>
12415 #include <sys/stat.h>
12416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12417 struct buf { int x; };
12418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12419 static char *e (p, i)
12420      char **p;
12421      int i;
12422 {
12423   return p[i];
12424 }
12425 static char *f (char * (*g) (char **, int), char **p, ...)
12426 {
12427   char *s;
12428   va_list v;
12429   va_start (v,p);
12430   s = g (p, va_arg (v,int));
12431   va_end (v);
12432   return s;
12433 }
12434
12435 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12436    function prototypes and stuff, but not '\xHH' hex character constants.
12437    These don't provoke an error unfortunately, instead are silently treated
12438    as 'x'.  The following induces an error, until -std1 is added to get
12439    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12440    array size at least.  It's necessary to write '\x00'==0 to get something
12441    that's true only with -std1.  */
12442 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12443
12444 int test (int i, double x);
12445 struct s1 {int (*f) (int a);};
12446 struct s2 {int (*f) (double a);};
12447 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12448 int argc;
12449 char **argv;
12450 int
12451 main ()
12452 {
12453 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12454   ;
12455   return 0;
12456 }
12457 _ACEOF
12458 # Don't try gcc -ansi; that turns off useful extensions and
12459 # breaks some systems' header files.
12460 # AIX                   -qlanglvl=ansi
12461 # Ultrix and OSF/1      -std1
12462 # HP-UX 10.20 and later -Ae
12463 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12464 # SVR4                  -Xc -D__EXTENSIONS__
12465 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12466 do
12467   CC="$ac_save_CC $ac_arg"
12468   rm -f conftest.$ac_objext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12470   (eval $ac_compile) 2>conftest.er1
12471   ac_status=$?
12472   grep -v '^ *+' conftest.er1 >conftest.err
12473   rm -f conftest.er1
12474   cat conftest.err >&5
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); } &&
12477          { ac_try='test -z "$ac_c_werror_flag"
12478                          || test ! -s conftest.err'
12479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480   (eval $ac_try) 2>&5
12481   ac_status=$?
12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483   (exit $ac_status); }; } &&
12484          { ac_try='test -s conftest.$ac_objext'
12485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486   (eval $ac_try) 2>&5
12487   ac_status=$?
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); }; }; then
12490   ac_cv_prog_cc_stdc=$ac_arg
12491 break
12492 else
12493   echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496 fi
12497 rm -f conftest.err conftest.$ac_objext
12498 done
12499 rm -f conftest.$ac_ext conftest.$ac_objext
12500 CC=$ac_save_CC
12501
12502 fi
12503
12504 case "x$ac_cv_prog_cc_stdc" in
12505   x|xno)
12506     echo "$as_me:$LINENO: result: none needed" >&5
12507 echo "${ECHO_T}none needed" >&6 ;;
12508   *)
12509     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12510 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12511     CC="$CC $ac_cv_prog_cc_stdc" ;;
12512 esac
12513
12514 # Some people use a C++ compiler to compile C.  Since we use `exit',
12515 # in C++ we need to declare it.  In case someone uses the same compiler
12516 # for both compiling C and C++ we need to have the C++ compiler decide
12517 # the declaration of exit, since it's the most demanding environment.
12518 cat >conftest.$ac_ext <<_ACEOF
12519 #ifndef __cplusplus
12520   choke me
12521 #endif
12522 _ACEOF
12523 rm -f conftest.$ac_objext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12525   (eval $ac_compile) 2>conftest.er1
12526   ac_status=$?
12527   grep -v '^ *+' conftest.er1 >conftest.err
12528   rm -f conftest.er1
12529   cat conftest.err >&5
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); } &&
12532          { ac_try='test -z "$ac_c_werror_flag"
12533                          || test ! -s conftest.err'
12534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535   (eval $ac_try) 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); }; } &&
12539          { ac_try='test -s conftest.$ac_objext'
12540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541   (eval $ac_try) 2>&5
12542   ac_status=$?
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); }; }; then
12545   for ac_declaration in \
12546    '' \
12547    'extern "C" void std::exit (int) throw (); using std::exit;' \
12548    'extern "C" void std::exit (int); using std::exit;' \
12549    'extern "C" void exit (int) throw ();' \
12550    'extern "C" void exit (int);' \
12551    'void exit (int);'
12552 do
12553   cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h.  */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h.  */
12559 $ac_declaration
12560 #include <stdlib.h>
12561 int
12562 main ()
12563 {
12564 exit (42);
12565   ;
12566   return 0;
12567 }
12568 _ACEOF
12569 rm -f conftest.$ac_objext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12571   (eval $ac_compile) 2>conftest.er1
12572   ac_status=$?
12573   grep -v '^ *+' conftest.er1 >conftest.err
12574   rm -f conftest.er1
12575   cat conftest.err >&5
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); } &&
12578          { ac_try='test -z "$ac_c_werror_flag"
12579                          || test ! -s conftest.err'
12580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581   (eval $ac_try) 2>&5
12582   ac_status=$?
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); }; } &&
12585          { ac_try='test -s conftest.$ac_objext'
12586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587   (eval $ac_try) 2>&5
12588   ac_status=$?
12589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); }; }; then
12591   :
12592 else
12593   echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 continue
12597 fi
12598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12599   cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h.  */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h.  */
12605 $ac_declaration
12606 int
12607 main ()
12608 {
12609 exit (42);
12610   ;
12611   return 0;
12612 }
12613 _ACEOF
12614 rm -f conftest.$ac_objext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12616   (eval $ac_compile) 2>conftest.er1
12617   ac_status=$?
12618   grep -v '^ *+' conftest.er1 >conftest.err
12619   rm -f conftest.er1
12620   cat conftest.err >&5
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); } &&
12623          { ac_try='test -z "$ac_c_werror_flag"
12624                          || test ! -s conftest.err'
12625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626   (eval $ac_try) 2>&5
12627   ac_status=$?
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); }; } &&
12630          { ac_try='test -s conftest.$ac_objext'
12631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632   (eval $ac_try) 2>&5
12633   ac_status=$?
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); }; }; then
12636   break
12637 else
12638   echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12640
12641 fi
12642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12643 done
12644 rm -f conftest*
12645 if test -n "$ac_declaration"; then
12646   echo '#ifdef __cplusplus' >>confdefs.h
12647   echo $ac_declaration      >>confdefs.h
12648   echo '#endif'             >>confdefs.h
12649 fi
12650
12651 else
12652   echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655 fi
12656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12657 ac_ext=c
12658 ac_cpp='$CPP $CPPFLAGS'
12659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12662
12663 depcc="$CC"   am_compiler_list=
12664
12665 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12666 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12667 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12668   echo $ECHO_N "(cached) $ECHO_C" >&6
12669 else
12670   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12671   # We make a subdir and do the tests there.  Otherwise we can end up
12672   # making bogus files that we don't know about and never remove.  For
12673   # instance it was reported that on HP-UX the gcc test will end up
12674   # making a dummy file named `D' -- because `-MD' means `put the output
12675   # in D'.
12676   mkdir conftest.dir
12677   # Copy depcomp to subdir because otherwise we won't find it if we're
12678   # using a relative directory.
12679   cp "$am_depcomp" conftest.dir
12680   cd conftest.dir
12681   # We will build objects and dependencies in a subdirectory because
12682   # it helps to detect inapplicable dependency modes.  For instance
12683   # both Tru64's cc and ICC support -MD to output dependencies as a
12684   # side effect of compilation, but ICC will put the dependencies in
12685   # the current directory while Tru64 will put them in the object
12686   # directory.
12687   mkdir sub
12688
12689   am_cv_CC_dependencies_compiler_type=none
12690   if test "$am_compiler_list" = ""; then
12691      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12692   fi
12693   for depmode in $am_compiler_list; do
12694     # Setup a source with many dependencies, because some compilers
12695     # like to wrap large dependency lists on column 80 (with \), and
12696     # we should not choose a depcomp mode which is confused by this.
12697     #
12698     # We need to recreate these files for each test, as the compiler may
12699     # overwrite some of them when testing with obscure command lines.
12700     # This happens at least with the AIX C compiler.
12701     : > sub/conftest.c
12702     for i in 1 2 3 4 5 6; do
12703       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12704       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12705       # Solaris 8's {/usr,}/bin/sh.
12706       touch sub/conftst$i.h
12707     done
12708     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12709
12710     case $depmode in
12711     nosideeffect)
12712       # after this tag, mechanisms are not by side-effect, so they'll
12713       # only be used when explicitly requested
12714       if test "x$enable_dependency_tracking" = xyes; then
12715         continue
12716       else
12717         break
12718       fi
12719       ;;
12720     none) break ;;
12721     esac
12722     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12723     # mode.  It turns out that the SunPro C++ compiler does not properly
12724     # handle `-M -o', and we need to detect this.
12725     if depmode=$depmode \
12726        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12727        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12728        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12729          >/dev/null 2>conftest.err &&
12730        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12731        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12732        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12733       # icc doesn't choke on unknown options, it will just issue warnings
12734       # or remarks (even with -Werror).  So we grep stderr for any message
12735       # that says an option was ignored or not supported.
12736       # When given -MP, icc 7.0 and 7.1 complain thusly:
12737       #   icc: Command line warning: ignoring option '-M'; no argument required
12738       # The diagnosis changed in icc 8.0:
12739       #   icc: Command line remark: option '-MP' not supported
12740       if (grep 'ignoring option' conftest.err ||
12741           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12742         am_cv_CC_dependencies_compiler_type=$depmode
12743         break
12744       fi
12745     fi
12746   done
12747
12748   cd ..
12749   rm -rf conftest.dir
12750 else
12751   am_cv_CC_dependencies_compiler_type=none
12752 fi
12753
12754 fi
12755 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12756 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12757 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12758
12759
12760
12761 if
12762   test "x$enable_dependency_tracking" != xno \
12763   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12764   am__fastdepCC_TRUE=
12765   am__fastdepCC_FALSE='#'
12766 else
12767   am__fastdepCC_TRUE='#'
12768   am__fastdepCC_FALSE=
12769 fi
12770
12771
12772 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12773         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12774 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12775    { (exit 1); exit 1; }; }
12776 fi
12777
12778 # test for make depend flag
12779 OL_MKDEP=
12780 OL_MKDEP_FLAGS=
12781 if test -z "${MKDEP}"; then
12782         OL_MKDEP="${CC-cc}"
12783         if test -z "${MKDEP_FLAGS}"; then
12784                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12785 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12786 if test "${ol_cv_mkdep+set}" = set; then
12787   echo $ECHO_N "(cached) $ECHO_C" >&6
12788 else
12789
12790                         ol_cv_mkdep=no
12791                         for flag in "-M" "-xM"; do
12792                                 cat > conftest.c <<EOF
12793  noCode;
12794 EOF
12795                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797   (eval $ac_try) 2>&5
12798   ac_status=$?
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); }; } \
12801                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12802                                 then
12803                                         if test ! -f conftest."${ac_object}" ; then
12804                                                 ol_cv_mkdep=$flag
12805                                                 OL_MKDEP_FLAGS="$flag"
12806                                                 break
12807                                         fi
12808                                 fi
12809                         done
12810                         rm -f conftest*
12811
12812 fi
12813 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12814 echo "${ECHO_T}$ol_cv_mkdep" >&6
12815                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
12816         else
12817                 cc_cv_mkdep=yes
12818                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12819         fi
12820 else
12821         cc_cv_mkdep=yes
12822         OL_MKDEP="${MKDEP}"
12823         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12824 fi
12825
12826
12827
12828 if test "${ol_cv_mkdep}" = no ; then
12829         # this will soon become an error
12830         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12831 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12832 fi
12833
12834 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12835 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12836 if test "${ac_cv_lib_s_afopen+set}" = set; then
12837   echo $ECHO_N "(cached) $ECHO_C" >&6
12838 else
12839   ac_check_lib_save_LIBS=$LIBS
12840 LIBS="-ls  $LIBS"
12841 cat >conftest.$ac_ext <<_ACEOF
12842 /* confdefs.h.  */
12843 _ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h.  */
12847
12848 /* Override any gcc2 internal prototype to avoid an error.  */
12849 #ifdef __cplusplus
12850 extern "C"
12851 #endif
12852 /* We use char because int might match the return type of a gcc2
12853    builtin and then its argument prototype would still apply.  */
12854 char afopen ();
12855 int
12856 main ()
12857 {
12858 afopen ();
12859   ;
12860   return 0;
12861 }
12862 _ACEOF
12863 rm -f conftest.$ac_objext conftest$ac_exeext
12864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12865   (eval $ac_link) 2>conftest.er1
12866   ac_status=$?
12867   grep -v '^ *+' conftest.er1 >conftest.err
12868   rm -f conftest.er1
12869   cat conftest.err >&5
12870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871   (exit $ac_status); } &&
12872          { ac_try='test -z "$ac_c_werror_flag"
12873                          || test ! -s conftest.err'
12874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875   (eval $ac_try) 2>&5
12876   ac_status=$?
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); }; } &&
12879          { ac_try='test -s conftest$ac_exeext'
12880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881   (eval $ac_try) 2>&5
12882   ac_status=$?
12883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); }; }; then
12885   ac_cv_lib_s_afopen=yes
12886 else
12887   echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12889
12890 ac_cv_lib_s_afopen=no
12891 fi
12892 rm -f conftest.err conftest.$ac_objext \
12893       conftest$ac_exeext conftest.$ac_ext
12894 LIBS=$ac_check_lib_save_LIBS
12895 fi
12896 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12897 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12898 if test $ac_cv_lib_s_afopen = yes; then
12899
12900         AUTH_LIBS=-ls
12901
12902 cat >>confdefs.h <<\_ACEOF
12903 #define HAVE_AIX_SECURITY 1
12904 _ACEOF
12905
12906
12907 fi
12908
12909
12910 case "$target" in
12911 *-ibm-openedition)
12912         ac_cv_func_getopt=no
12913
12914 cat >>confdefs.h <<\_ACEOF
12915 #define BOTH_STRINGS_H 1
12916 _ACEOF
12917
12918         ;;
12919 esac
12920
12921 ol_link_modules=no
12922 WITH_MODULES_ENABLED=no
12923 if test $ol_enable_modules != no ; then
12924
12925 for ac_header in ltdl.h
12926 do
12927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12929   echo "$as_me:$LINENO: checking for $ac_header" >&5
12930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12932   echo $ECHO_N "(cached) $ECHO_C" >&6
12933 fi
12934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12936 else
12937   # Is the header compilable?
12938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12940 cat >conftest.$ac_ext <<_ACEOF
12941 /* confdefs.h.  */
12942 _ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h.  */
12946 $ac_includes_default
12947 #include <$ac_header>
12948 _ACEOF
12949 rm -f conftest.$ac_objext
12950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12951   (eval $ac_compile) 2>conftest.er1
12952   ac_status=$?
12953   grep -v '^ *+' conftest.er1 >conftest.err
12954   rm -f conftest.er1
12955   cat conftest.err >&5
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); } &&
12958          { ac_try='test -z "$ac_c_werror_flag"
12959                          || test ! -s conftest.err'
12960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961   (eval $ac_try) 2>&5
12962   ac_status=$?
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); }; } &&
12965          { ac_try='test -s conftest.$ac_objext'
12966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967   (eval $ac_try) 2>&5
12968   ac_status=$?
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); }; }; then
12971   ac_header_compiler=yes
12972 else
12973   echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12975
12976 ac_header_compiler=no
12977 fi
12978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12980 echo "${ECHO_T}$ac_header_compiler" >&6
12981
12982 # Is the header present?
12983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12985 cat >conftest.$ac_ext <<_ACEOF
12986 /* confdefs.h.  */
12987 _ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h.  */
12991 #include <$ac_header>
12992 _ACEOF
12993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12995   ac_status=$?
12996   grep -v '^ *+' conftest.er1 >conftest.err
12997   rm -f conftest.er1
12998   cat conftest.err >&5
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); } >/dev/null; then
13001   if test -s conftest.err; then
13002     ac_cpp_err=$ac_c_preproc_warn_flag
13003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13004   else
13005     ac_cpp_err=
13006   fi
13007 else
13008   ac_cpp_err=yes
13009 fi
13010 if test -z "$ac_cpp_err"; then
13011   ac_header_preproc=yes
13012 else
13013   echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13015
13016   ac_header_preproc=no
13017 fi
13018 rm -f conftest.err conftest.$ac_ext
13019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13020 echo "${ECHO_T}$ac_header_preproc" >&6
13021
13022 # So?  What about this header?
13023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13024   yes:no: )
13025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13029     ac_header_preproc=yes
13030     ;;
13031   no:yes:* )
13032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13034     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13035 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13036     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13038     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13039 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13042     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13044     (
13045       cat <<\_ASBOX
13046 ## --------------------------------------------- ##
13047 ## Report this to <http://www.openldap.org/its/> ##
13048 ## --------------------------------------------- ##
13049 _ASBOX
13050     ) |
13051       sed "s/^/$as_me: WARNING:     /" >&2
13052     ;;
13053 esac
13054 echo "$as_me:$LINENO: checking for $ac_header" >&5
13055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13057   echo $ECHO_N "(cached) $ECHO_C" >&6
13058 else
13059   eval "$as_ac_Header=\$ac_header_preproc"
13060 fi
13061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13063
13064 fi
13065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13066   cat >>confdefs.h <<_ACEOF
13067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13068 _ACEOF
13069
13070 fi
13071
13072 done
13073
13074
13075         if test $ac_cv_header_ltdl_h = no ; then
13076                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13077 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13078    { (exit 1); exit 1; }; }
13079         fi
13080
13081         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13082 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13083 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13084   echo $ECHO_N "(cached) $ECHO_C" >&6
13085 else
13086   ac_check_lib_save_LIBS=$LIBS
13087 LIBS="-lltdl  $LIBS"
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h.  */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h.  */
13094
13095 /* Override any gcc2 internal prototype to avoid an error.  */
13096 #ifdef __cplusplus
13097 extern "C"
13098 #endif
13099 /* We use char because int might match the return type of a gcc2
13100    builtin and then its argument prototype would still apply.  */
13101 char lt_dlinit ();
13102 int
13103 main ()
13104 {
13105 lt_dlinit ();
13106   ;
13107   return 0;
13108 }
13109 _ACEOF
13110 rm -f conftest.$ac_objext conftest$ac_exeext
13111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13112   (eval $ac_link) 2>conftest.er1
13113   ac_status=$?
13114   grep -v '^ *+' conftest.er1 >conftest.err
13115   rm -f conftest.er1
13116   cat conftest.err >&5
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); } &&
13119          { ac_try='test -z "$ac_c_werror_flag"
13120                          || test ! -s conftest.err'
13121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122   (eval $ac_try) 2>&5
13123   ac_status=$?
13124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125   (exit $ac_status); }; } &&
13126          { ac_try='test -s conftest$ac_exeext'
13127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128   (eval $ac_try) 2>&5
13129   ac_status=$?
13130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); }; }; then
13132   ac_cv_lib_ltdl_lt_dlinit=yes
13133 else
13134   echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13136
13137 ac_cv_lib_ltdl_lt_dlinit=no
13138 fi
13139 rm -f conftest.err conftest.$ac_objext \
13140       conftest$ac_exeext conftest.$ac_ext
13141 LIBS=$ac_check_lib_save_LIBS
13142 fi
13143 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13144 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13145 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13146
13147                 MODULES_LIBS=-lltdl
13148
13149 cat >>confdefs.h <<\_ACEOF
13150 #define HAVE_LIBLTDL 1
13151 _ACEOF
13152
13153
13154 fi
13155
13156
13157         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13158                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13159 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13160    { (exit 1); exit 1; }; }
13161         fi
13162         ol_link_modules=yes
13163         WITH_MODULES_ENABLED=yes
13164
13165 else
13166         for i in $Backends; do
13167                 eval "ol_tmp=\$ol_enable_$i"
13168                 if test $ol_tmp = mod ; then
13169                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13170 echo "$as_me: WARNING: building static $i backend" >&2;}
13171                         eval "ol_enable_$i=yes"
13172                 fi
13173         done
13174         for i in $Overlays; do
13175                 eval "ol_tmp=\$ol_enable_$i"
13176                 if test $ol_tmp = mod ; then
13177                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13178 echo "$as_me: WARNING: building static $i overlay" >&2;}
13179                         eval "ol_enable_$i=yes"
13180                 fi
13181         done
13182 fi
13183
13184 # test for EBCDIC
13185 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13186 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13187 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13188   echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190
13191         cat >conftest.$ac_ext <<_ACEOF
13192 /* confdefs.h.  */
13193 _ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h.  */
13197
13198 #if !('M' == 0xd4)
13199 #include <__ASCII__/generate_error.h>
13200 #endif
13201
13202 _ACEOF
13203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13204   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13205   ac_status=$?
13206   grep -v '^ *+' conftest.er1 >conftest.err
13207   rm -f conftest.er1
13208   cat conftest.err >&5
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); } >/dev/null; then
13211   if test -s conftest.err; then
13212     ac_cpp_err=$ac_c_preproc_warn_flag
13213     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13214   else
13215     ac_cpp_err=
13216   fi
13217 else
13218   ac_cpp_err=yes
13219 fi
13220 if test -z "$ac_cpp_err"; then
13221   ol_cv_cpp_ebcdic=yes
13222 else
13223   echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13225
13226   ol_cv_cpp_ebcdic=no
13227 fi
13228 rm -f conftest.err conftest.$ac_ext
13229 fi
13230 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13231 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13232 if test $ol_cv_cpp_ebcdic = yes ; then
13233
13234 cat >>confdefs.h <<\_ACEOF
13235 #define HAVE_EBCDIC 1
13236 _ACEOF
13237
13238 fi
13239
13240 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13241 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13242 if test "${ol_cv_header_stdc+set}" = set; then
13243   echo $ECHO_N "(cached) $ECHO_C" >&6
13244 else
13245   cat >conftest.$ac_ext <<_ACEOF
13246 /* confdefs.h.  */
13247 _ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h.  */
13251 #include <stdlib.h>
13252 #include <stdarg.h>
13253 #include <string.h>
13254 #include <float.h>
13255 _ACEOF
13256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13258   ac_status=$?
13259   grep -v '^ *+' conftest.er1 >conftest.err
13260   rm -f conftest.er1
13261   cat conftest.err >&5
13262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263   (exit $ac_status); } >/dev/null; then
13264   if test -s conftest.err; then
13265     ac_cpp_err=$ac_c_preproc_warn_flag
13266     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13267   else
13268     ac_cpp_err=
13269   fi
13270 else
13271   ac_cpp_err=yes
13272 fi
13273 if test -z "$ac_cpp_err"; then
13274   ol_cv_header_stdc=yes
13275 else
13276   echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13278
13279   ol_cv_header_stdc=no
13280 fi
13281 rm -f conftest.err conftest.$ac_ext
13282
13283 if test $ol_cv_header_stdc = yes; then
13284   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13285 cat >conftest.$ac_ext <<_ACEOF
13286 /* confdefs.h.  */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h.  */
13291 #include <string.h>
13292
13293 _ACEOF
13294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13295   $EGREP "memchr" >/dev/null 2>&1; then
13296   :
13297 else
13298   ol_cv_header_stdc=no
13299 fi
13300 rm -f conftest*
13301
13302 fi
13303
13304 if test $ol_cv_header_stdc = yes; then
13305   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13306 cat >conftest.$ac_ext <<_ACEOF
13307 /* confdefs.h.  */
13308 _ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h.  */
13312 #include <stdlib.h>
13313
13314 _ACEOF
13315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13316   $EGREP "free" >/dev/null 2>&1; then
13317   :
13318 else
13319   ol_cv_header_stdc=no
13320 fi
13321 rm -f conftest*
13322
13323 fi
13324
13325 if test $ol_cv_header_stdc = yes; then
13326   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13327 if test "$cross_compiling" = yes; then
13328   :
13329 else
13330   cat >conftest.$ac_ext <<_ACEOF
13331 /* confdefs.h.  */
13332 _ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h.  */
13336 #include <ctype.h>
13337 #ifndef HAVE_EBCDIC
13338 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13339 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13340 #else
13341 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13342                 || ('j' <= (c) && (c) <= 'r') \
13343                 || ('s' <= (c) && (c) <= 'z'))
13344 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13345 #endif
13346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13347 int main () { int i; for (i = 0; i < 256; i++)
13348 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13349 exit (0); }
13350
13351 _ACEOF
13352 rm -f conftest$ac_exeext
13353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13354   (eval $ac_link) 2>&5
13355   ac_status=$?
13356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359   (eval $ac_try) 2>&5
13360   ac_status=$?
13361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362   (exit $ac_status); }; }; then
13363   :
13364 else
13365   echo "$as_me: program exited with status $ac_status" >&5
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13368
13369 ( exit $ac_status )
13370 ol_cv_header_stdc=no
13371 fi
13372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13373 fi
13374 fi
13375 fi
13376 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13377 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13378 if test $ol_cv_header_stdc = yes; then
13379   cat >>confdefs.h <<\_ACEOF
13380 #define STDC_HEADERS 1
13381 _ACEOF
13382
13383 fi
13384 ac_cv_header_stdc=disable
13385
13386
13387 if test $ol_cv_header_stdc != yes; then
13388         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13389 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13390 fi
13391
13392
13393
13394
13395
13396
13397 ac_header_dirent=no
13398 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13399   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13400 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13401 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13403   echo $ECHO_N "(cached) $ECHO_C" >&6
13404 else
13405   cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h.  */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h.  */
13411 #include <sys/types.h>
13412 #include <$ac_hdr>
13413
13414 int
13415 main ()
13416 {
13417 if ((DIR *) 0)
13418 return 0;
13419   ;
13420   return 0;
13421 }
13422 _ACEOF
13423 rm -f conftest.$ac_objext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425   (eval $ac_compile) 2>conftest.er1
13426   ac_status=$?
13427   grep -v '^ *+' conftest.er1 >conftest.err
13428   rm -f conftest.er1
13429   cat conftest.err >&5
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); } &&
13432          { ac_try='test -z "$ac_c_werror_flag"
13433                          || test ! -s conftest.err'
13434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435   (eval $ac_try) 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); }; } &&
13439          { ac_try='test -s conftest.$ac_objext'
13440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441   (eval $ac_try) 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); }; }; then
13445   eval "$as_ac_Header=yes"
13446 else
13447   echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13449
13450 eval "$as_ac_Header=no"
13451 fi
13452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13453 fi
13454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13457   cat >>confdefs.h <<_ACEOF
13458 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13459 _ACEOF
13460
13461 ac_header_dirent=$ac_hdr; break
13462 fi
13463
13464 done
13465 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13466 if test $ac_header_dirent = dirent.h; then
13467   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13468 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13469 if test "${ac_cv_search_opendir+set}" = set; then
13470   echo $ECHO_N "(cached) $ECHO_C" >&6
13471 else
13472   ac_func_search_save_LIBS=$LIBS
13473 ac_cv_search_opendir=no
13474 cat >conftest.$ac_ext <<_ACEOF
13475 /* confdefs.h.  */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h.  */
13480
13481 /* Override any gcc2 internal prototype to avoid an error.  */
13482 #ifdef __cplusplus
13483 extern "C"
13484 #endif
13485 /* We use char because int might match the return type of a gcc2
13486    builtin and then its argument prototype would still apply.  */
13487 char opendir ();
13488 int
13489 main ()
13490 {
13491 opendir ();
13492   ;
13493   return 0;
13494 }
13495 _ACEOF
13496 rm -f conftest.$ac_objext conftest$ac_exeext
13497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13498   (eval $ac_link) 2>conftest.er1
13499   ac_status=$?
13500   grep -v '^ *+' conftest.er1 >conftest.err
13501   rm -f conftest.er1
13502   cat conftest.err >&5
13503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504   (exit $ac_status); } &&
13505          { ac_try='test -z "$ac_c_werror_flag"
13506                          || test ! -s conftest.err'
13507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508   (eval $ac_try) 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); }; } &&
13512          { ac_try='test -s conftest$ac_exeext'
13513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514   (eval $ac_try) 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); }; }; then
13518   ac_cv_search_opendir="none required"
13519 else
13520   echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13522
13523 fi
13524 rm -f conftest.err conftest.$ac_objext \
13525       conftest$ac_exeext conftest.$ac_ext
13526 if test "$ac_cv_search_opendir" = no; then
13527   for ac_lib in dir; do
13528     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13529     cat >conftest.$ac_ext <<_ACEOF
13530 /* confdefs.h.  */
13531 _ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h.  */
13535
13536 /* Override any gcc2 internal prototype to avoid an error.  */
13537 #ifdef __cplusplus
13538 extern "C"
13539 #endif
13540 /* We use char because int might match the return type of a gcc2
13541    builtin and then its argument prototype would still apply.  */
13542 char opendir ();
13543 int
13544 main ()
13545 {
13546 opendir ();
13547   ;
13548   return 0;
13549 }
13550 _ACEOF
13551 rm -f conftest.$ac_objext conftest$ac_exeext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553   (eval $ac_link) 2>conftest.er1
13554   ac_status=$?
13555   grep -v '^ *+' conftest.er1 >conftest.err
13556   rm -f conftest.er1
13557   cat conftest.err >&5
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); } &&
13560          { ac_try='test -z "$ac_c_werror_flag"
13561                          || test ! -s conftest.err'
13562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563   (eval $ac_try) 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; } &&
13567          { ac_try='test -s conftest$ac_exeext'
13568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569   (eval $ac_try) 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); }; }; then
13573   ac_cv_search_opendir="-l$ac_lib"
13574 break
13575 else
13576   echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13578
13579 fi
13580 rm -f conftest.err conftest.$ac_objext \
13581       conftest$ac_exeext conftest.$ac_ext
13582   done
13583 fi
13584 LIBS=$ac_func_search_save_LIBS
13585 fi
13586 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13587 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13588 if test "$ac_cv_search_opendir" != no; then
13589   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13590
13591 fi
13592
13593 else
13594   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13595 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13596 if test "${ac_cv_search_opendir+set}" = set; then
13597   echo $ECHO_N "(cached) $ECHO_C" >&6
13598 else
13599   ac_func_search_save_LIBS=$LIBS
13600 ac_cv_search_opendir=no
13601 cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h.  */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h.  */
13607
13608 /* Override any gcc2 internal prototype to avoid an error.  */
13609 #ifdef __cplusplus
13610 extern "C"
13611 #endif
13612 /* We use char because int might match the return type of a gcc2
13613    builtin and then its argument prototype would still apply.  */
13614 char opendir ();
13615 int
13616 main ()
13617 {
13618 opendir ();
13619   ;
13620   return 0;
13621 }
13622 _ACEOF
13623 rm -f conftest.$ac_objext conftest$ac_exeext
13624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13625   (eval $ac_link) 2>conftest.er1
13626   ac_status=$?
13627   grep -v '^ *+' conftest.er1 >conftest.err
13628   rm -f conftest.er1
13629   cat conftest.err >&5
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); } &&
13632          { ac_try='test -z "$ac_c_werror_flag"
13633                          || test ! -s conftest.err'
13634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635   (eval $ac_try) 2>&5
13636   ac_status=$?
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); }; } &&
13639          { ac_try='test -s conftest$ac_exeext'
13640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641   (eval $ac_try) 2>&5
13642   ac_status=$?
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); }; }; then
13645   ac_cv_search_opendir="none required"
13646 else
13647   echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13649
13650 fi
13651 rm -f conftest.err conftest.$ac_objext \
13652       conftest$ac_exeext conftest.$ac_ext
13653 if test "$ac_cv_search_opendir" = no; then
13654   for ac_lib in x; do
13655     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13656     cat >conftest.$ac_ext <<_ACEOF
13657 /* confdefs.h.  */
13658 _ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h.  */
13662
13663 /* Override any gcc2 internal prototype to avoid an error.  */
13664 #ifdef __cplusplus
13665 extern "C"
13666 #endif
13667 /* We use char because int might match the return type of a gcc2
13668    builtin and then its argument prototype would still apply.  */
13669 char opendir ();
13670 int
13671 main ()
13672 {
13673 opendir ();
13674   ;
13675   return 0;
13676 }
13677 _ACEOF
13678 rm -f conftest.$ac_objext conftest$ac_exeext
13679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13680   (eval $ac_link) 2>conftest.er1
13681   ac_status=$?
13682   grep -v '^ *+' conftest.er1 >conftest.err
13683   rm -f conftest.er1
13684   cat conftest.err >&5
13685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686   (exit $ac_status); } &&
13687          { ac_try='test -z "$ac_c_werror_flag"
13688                          || test ! -s conftest.err'
13689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690   (eval $ac_try) 2>&5
13691   ac_status=$?
13692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693   (exit $ac_status); }; } &&
13694          { ac_try='test -s conftest$ac_exeext'
13695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696   (eval $ac_try) 2>&5
13697   ac_status=$?
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); }; }; then
13700   ac_cv_search_opendir="-l$ac_lib"
13701 break
13702 else
13703   echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13705
13706 fi
13707 rm -f conftest.err conftest.$ac_objext \
13708       conftest$ac_exeext conftest.$ac_ext
13709   done
13710 fi
13711 LIBS=$ac_func_search_save_LIBS
13712 fi
13713 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13714 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13715 if test "$ac_cv_search_opendir" != no; then
13716   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13717
13718 fi
13719
13720 fi
13721
13722 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13723 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13724 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13725   echo $ECHO_N "(cached) $ECHO_C" >&6
13726 else
13727   cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h.  */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h.  */
13733 #include <sys/types.h>
13734 #include <sys/wait.h>
13735 #ifndef WEXITSTATUS
13736 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13737 #endif
13738 #ifndef WIFEXITED
13739 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13740 #endif
13741
13742 int
13743 main ()
13744 {
13745   int s;
13746   wait (&s);
13747   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13748   ;
13749   return 0;
13750 }
13751 _ACEOF
13752 rm -f conftest.$ac_objext
13753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13754   (eval $ac_compile) 2>conftest.er1
13755   ac_status=$?
13756   grep -v '^ *+' conftest.er1 >conftest.err
13757   rm -f conftest.er1
13758   cat conftest.err >&5
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); } &&
13761          { ac_try='test -z "$ac_c_werror_flag"
13762                          || test ! -s conftest.err'
13763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764   (eval $ac_try) 2>&5
13765   ac_status=$?
13766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); }; } &&
13768          { ac_try='test -s conftest.$ac_objext'
13769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770   (eval $ac_try) 2>&5
13771   ac_status=$?
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; }; then
13774   ac_cv_header_sys_wait_h=yes
13775 else
13776   echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13778
13779 ac_cv_header_sys_wait_h=no
13780 fi
13781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13782 fi
13783 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13784 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13785 if test $ac_cv_header_sys_wait_h = yes; then
13786
13787 cat >>confdefs.h <<\_ACEOF
13788 #define HAVE_SYS_WAIT_H 1
13789 _ACEOF
13790
13791 fi
13792
13793 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13794 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13795 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13796   echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798   cat >conftest.$ac_ext <<_ACEOF
13799 /* confdefs.h.  */
13800 _ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h.  */
13804 #include <sys/types.h>
13805 #include <termios.h>
13806 #ifdef TIOCGWINSZ
13807   yes
13808 #endif
13809
13810 _ACEOF
13811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13812   $EGREP "yes" >/dev/null 2>&1; then
13813   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13814 else
13815   ac_cv_sys_tiocgwinsz_in_termios_h=no
13816 fi
13817 rm -f conftest*
13818
13819 fi
13820 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13821 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13822
13823 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13824   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13825 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13826 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13827   echo $ECHO_N "(cached) $ECHO_C" >&6
13828 else
13829   cat >conftest.$ac_ext <<_ACEOF
13830 /* confdefs.h.  */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h.  */
13835 #include <sys/types.h>
13836 #include <sys/ioctl.h>
13837 #ifdef TIOCGWINSZ
13838   yes
13839 #endif
13840
13841 _ACEOF
13842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13843   $EGREP "yes" >/dev/null 2>&1; then
13844   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13845 else
13846   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13847 fi
13848 rm -f conftest*
13849
13850 fi
13851 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13852 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13853
13854   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13855
13856 cat >>confdefs.h <<\_ACEOF
13857 #define GWINSZ_IN_SYS_IOCTL 1
13858 _ACEOF
13859
13860   fi
13861 fi
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911 for ac_header in \
13912         arpa/inet.h             \
13913         arpa/nameser.h  \
13914         assert.h                \
13915         bits/types.h    \
13916         conio.h                 \
13917         crypt.h                 \
13918         direct.h                \
13919         errno.h                 \
13920         fcntl.h                 \
13921         filio.h                 \
13922         getopt.h                \
13923         grp.h                   \
13924         io.h                    \
13925         libutil.h               \
13926         limits.h                \
13927         locale.h                \
13928         malloc.h                \
13929         memory.h                \
13930         psap.h                  \
13931         pwd.h                   \
13932         process.h               \
13933         sgtty.h                 \
13934         shadow.h                \
13935         stddef.h                \
13936         string.h                \
13937         strings.h               \
13938         sysexits.h              \
13939         sys/file.h              \
13940         sys/filio.h             \
13941         sys/fstyp.h             \
13942         sys/errno.h             \
13943         sys/ioctl.h             \
13944         sys/param.h             \
13945         sys/privgrp.h   \
13946         sys/resource.h  \
13947         sys/select.h    \
13948         sys/socket.h    \
13949         sys/stat.h              \
13950         sys/syslog.h    \
13951         sys/time.h              \
13952         sys/types.h             \
13953         sys/uio.h               \
13954         sys/vmount.h    \
13955         syslog.h                \
13956         termios.h               \
13957         unistd.h                \
13958         utime.h                 \
13959
13960 do
13961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13963   echo "$as_me:$LINENO: checking for $ac_header" >&5
13964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13966   echo $ECHO_N "(cached) $ECHO_C" >&6
13967 fi
13968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13970 else
13971   # Is the header compilable?
13972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13974 cat >conftest.$ac_ext <<_ACEOF
13975 /* confdefs.h.  */
13976 _ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h.  */
13980 $ac_includes_default
13981 #include <$ac_header>
13982 _ACEOF
13983 rm -f conftest.$ac_objext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13985   (eval $ac_compile) 2>conftest.er1
13986   ac_status=$?
13987   grep -v '^ *+' conftest.er1 >conftest.err
13988   rm -f conftest.er1
13989   cat conftest.err >&5
13990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); } &&
13992          { ac_try='test -z "$ac_c_werror_flag"
13993                          || test ! -s conftest.err'
13994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995   (eval $ac_try) 2>&5
13996   ac_status=$?
13997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998   (exit $ac_status); }; } &&
13999          { ac_try='test -s conftest.$ac_objext'
14000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001   (eval $ac_try) 2>&5
14002   ac_status=$?
14003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004   (exit $ac_status); }; }; then
14005   ac_header_compiler=yes
14006 else
14007   echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14009
14010 ac_header_compiler=no
14011 fi
14012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14014 echo "${ECHO_T}$ac_header_compiler" >&6
14015
14016 # Is the header present?
14017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14019 cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h.  */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h.  */
14025 #include <$ac_header>
14026 _ACEOF
14027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14029   ac_status=$?
14030   grep -v '^ *+' conftest.er1 >conftest.err
14031   rm -f conftest.er1
14032   cat conftest.err >&5
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); } >/dev/null; then
14035   if test -s conftest.err; then
14036     ac_cpp_err=$ac_c_preproc_warn_flag
14037     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14038   else
14039     ac_cpp_err=
14040   fi
14041 else
14042   ac_cpp_err=yes
14043 fi
14044 if test -z "$ac_cpp_err"; then
14045   ac_header_preproc=yes
14046 else
14047   echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14049
14050   ac_header_preproc=no
14051 fi
14052 rm -f conftest.err conftest.$ac_ext
14053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14054 echo "${ECHO_T}$ac_header_preproc" >&6
14055
14056 # So?  What about this header?
14057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14058   yes:no: )
14059     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14063     ac_header_preproc=yes
14064     ;;
14065   no:yes:* )
14066     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14068     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14069 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14070     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14072     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14073 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14076     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14078     (
14079       cat <<\_ASBOX
14080 ## --------------------------------------------- ##
14081 ## Report this to <http://www.openldap.org/its/> ##
14082 ## --------------------------------------------- ##
14083 _ASBOX
14084     ) |
14085       sed "s/^/$as_me: WARNING:     /" >&2
14086     ;;
14087 esac
14088 echo "$as_me:$LINENO: checking for $ac_header" >&5
14089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14091   echo $ECHO_N "(cached) $ECHO_C" >&6
14092 else
14093   eval "$as_ac_Header=\$ac_header_preproc"
14094 fi
14095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14097
14098 fi
14099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14100   cat >>confdefs.h <<_ACEOF
14101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14102 _ACEOF
14103
14104 fi
14105
14106 done
14107
14108
14109 if test "$ac_cv_mingw32" = yes ; then
14110
14111
14112 for ac_header in winsock.h winsock2.h
14113 do
14114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14116   echo "$as_me:$LINENO: checking for $ac_header" >&5
14117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14119   echo $ECHO_N "(cached) $ECHO_C" >&6
14120 fi
14121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14123 else
14124   # Is the header compilable?
14125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14127 cat >conftest.$ac_ext <<_ACEOF
14128 /* confdefs.h.  */
14129 _ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h.  */
14133 $ac_includes_default
14134 #include <$ac_header>
14135 _ACEOF
14136 rm -f conftest.$ac_objext
14137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14138   (eval $ac_compile) 2>conftest.er1
14139   ac_status=$?
14140   grep -v '^ *+' conftest.er1 >conftest.err
14141   rm -f conftest.er1
14142   cat conftest.err >&5
14143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144   (exit $ac_status); } &&
14145          { ac_try='test -z "$ac_c_werror_flag"
14146                          || test ! -s conftest.err'
14147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148   (eval $ac_try) 2>&5
14149   ac_status=$?
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); }; } &&
14152          { ac_try='test -s conftest.$ac_objext'
14153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154   (eval $ac_try) 2>&5
14155   ac_status=$?
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); }; }; then
14158   ac_header_compiler=yes
14159 else
14160   echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14162
14163 ac_header_compiler=no
14164 fi
14165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14167 echo "${ECHO_T}$ac_header_compiler" >&6
14168
14169 # Is the header present?
14170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14172 cat >conftest.$ac_ext <<_ACEOF
14173 /* confdefs.h.  */
14174 _ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h.  */
14178 #include <$ac_header>
14179 _ACEOF
14180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14181   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14182   ac_status=$?
14183   grep -v '^ *+' conftest.er1 >conftest.err
14184   rm -f conftest.er1
14185   cat conftest.err >&5
14186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187   (exit $ac_status); } >/dev/null; then
14188   if test -s conftest.err; then
14189     ac_cpp_err=$ac_c_preproc_warn_flag
14190     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14191   else
14192     ac_cpp_err=
14193   fi
14194 else
14195   ac_cpp_err=yes
14196 fi
14197 if test -z "$ac_cpp_err"; then
14198   ac_header_preproc=yes
14199 else
14200   echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14202
14203   ac_header_preproc=no
14204 fi
14205 rm -f conftest.err conftest.$ac_ext
14206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14207 echo "${ECHO_T}$ac_header_preproc" >&6
14208
14209 # So?  What about this header?
14210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14211   yes:no: )
14212     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14216     ac_header_preproc=yes
14217     ;;
14218   no:yes:* )
14219     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14221     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14222 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14223     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14225     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14226 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14229     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14231     (
14232       cat <<\_ASBOX
14233 ## --------------------------------------------- ##
14234 ## Report this to <http://www.openldap.org/its/> ##
14235 ## --------------------------------------------- ##
14236 _ASBOX
14237     ) |
14238       sed "s/^/$as_me: WARNING:     /" >&2
14239     ;;
14240 esac
14241 echo "$as_me:$LINENO: checking for $ac_header" >&5
14242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14244   echo $ECHO_N "(cached) $ECHO_C" >&6
14245 else
14246   eval "$as_ac_Header=\$ac_header_preproc"
14247 fi
14248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14250
14251 fi
14252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14253   cat >>confdefs.h <<_ACEOF
14254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14255 _ACEOF
14256
14257 fi
14258
14259 done
14260
14261 fi
14262
14263
14264 for ac_header in resolv.h
14265 do
14266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14267 echo "$as_me:$LINENO: checking for $ac_header" >&5
14268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14270   echo $ECHO_N "(cached) $ECHO_C" >&6
14271 else
14272   cat >conftest.$ac_ext <<_ACEOF
14273 /* confdefs.h.  */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h.  */
14278 $ac_includes_default
14279 #include <netinet/in.h>
14280
14281
14282 #include <$ac_header>
14283 _ACEOF
14284 rm -f conftest.$ac_objext
14285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14286   (eval $ac_compile) 2>conftest.er1
14287   ac_status=$?
14288   grep -v '^ *+' conftest.er1 >conftest.err
14289   rm -f conftest.er1
14290   cat conftest.err >&5
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); } &&
14293          { ac_try='test -z "$ac_c_werror_flag"
14294                          || test ! -s conftest.err'
14295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296   (eval $ac_try) 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); }; } &&
14300          { ac_try='test -s conftest.$ac_objext'
14301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302   (eval $ac_try) 2>&5
14303   ac_status=$?
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); }; }; then
14306   eval "$as_ac_Header=yes"
14307 else
14308   echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14310
14311 eval "$as_ac_Header=no"
14312 fi
14313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14314 fi
14315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14318   cat >>confdefs.h <<_ACEOF
14319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14320 _ACEOF
14321
14322 fi
14323
14324 done
14325
14326
14327
14328 for ac_header in netinet/tcp.h
14329 do
14330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14331 echo "$as_me:$LINENO: checking for $ac_header" >&5
14332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14334   echo $ECHO_N "(cached) $ECHO_C" >&6
14335 else
14336   cat >conftest.$ac_ext <<_ACEOF
14337 /* confdefs.h.  */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h.  */
14342 $ac_includes_default
14343 #include <netinet/in.h>
14344
14345
14346 #include <$ac_header>
14347 _ACEOF
14348 rm -f conftest.$ac_objext
14349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14350   (eval $ac_compile) 2>conftest.er1
14351   ac_status=$?
14352   grep -v '^ *+' conftest.er1 >conftest.err
14353   rm -f conftest.er1
14354   cat conftest.err >&5
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); } &&
14357          { ac_try='test -z "$ac_c_werror_flag"
14358                          || test ! -s conftest.err'
14359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360   (eval $ac_try) 2>&5
14361   ac_status=$?
14362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); }; } &&
14364          { ac_try='test -s conftest.$ac_objext'
14365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366   (eval $ac_try) 2>&5
14367   ac_status=$?
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); }; }; then
14370   eval "$as_ac_Header=yes"
14371 else
14372   echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14374
14375 eval "$as_ac_Header=no"
14376 fi
14377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14378 fi
14379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14382   cat >>confdefs.h <<_ACEOF
14383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14384 _ACEOF
14385
14386 fi
14387
14388 done
14389
14390
14391
14392 for ac_header in sys/ucred.h
14393 do
14394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14395 echo "$as_me:$LINENO: checking for $ac_header" >&5
14396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14398   echo $ECHO_N "(cached) $ECHO_C" >&6
14399 else
14400   cat >conftest.$ac_ext <<_ACEOF
14401 /* confdefs.h.  */
14402 _ACEOF
14403 cat confdefs.h >>conftest.$ac_ext
14404 cat >>conftest.$ac_ext <<_ACEOF
14405 /* end confdefs.h.  */
14406 $ac_includes_default
14407 #ifdef HAVE_SYS_PARAM_H
14408 #include <sys/param.h>
14409 #endif
14410
14411
14412 #include <$ac_header>
14413 _ACEOF
14414 rm -f conftest.$ac_objext
14415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14416   (eval $ac_compile) 2>conftest.er1
14417   ac_status=$?
14418   grep -v '^ *+' conftest.er1 >conftest.err
14419   rm -f conftest.er1
14420   cat conftest.err >&5
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); } &&
14423          { ac_try='test -z "$ac_c_werror_flag"
14424                          || test ! -s conftest.err'
14425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426   (eval $ac_try) 2>&5
14427   ac_status=$?
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); }; } &&
14430          { ac_try='test -s conftest.$ac_objext'
14431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432   (eval $ac_try) 2>&5
14433   ac_status=$?
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); }; }; then
14436   eval "$as_ac_Header=yes"
14437 else
14438   echo "$as_me: failed program was:" >&5
14439 sed 's/^/| /' conftest.$ac_ext >&5
14440
14441 eval "$as_ac_Header=no"
14442 fi
14443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14444 fi
14445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14448   cat >>confdefs.h <<_ACEOF
14449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14450 _ACEOF
14451
14452 fi
14453
14454 done
14455
14456
14457
14458
14459
14460 for ac_func in sigaction sigset
14461 do
14462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14463 echo "$as_me:$LINENO: checking for $ac_func" >&5
14464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14465 if eval "test \"\${$as_ac_var+set}\" = set"; then
14466   echo $ECHO_N "(cached) $ECHO_C" >&6
14467 else
14468   cat >conftest.$ac_ext <<_ACEOF
14469 /* confdefs.h.  */
14470 _ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h.  */
14474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14476 #define $ac_func innocuous_$ac_func
14477
14478 /* System header to define __stub macros and hopefully few prototypes,
14479     which can conflict with char $ac_func (); below.
14480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14481     <limits.h> exists even on freestanding compilers.  */
14482
14483 #ifdef __STDC__
14484 # include <limits.h>
14485 #else
14486 # include <assert.h>
14487 #endif
14488
14489 #undef $ac_func
14490
14491 /* Override any gcc2 internal prototype to avoid an error.  */
14492 #ifdef __cplusplus
14493 extern "C"
14494 {
14495 #endif
14496 /* We use char because int might match the return type of a gcc2
14497    builtin and then its argument prototype would still apply.  */
14498 char $ac_func ();
14499 /* The GNU C library defines this for functions which it implements
14500     to always fail with ENOSYS.  Some functions are actually named
14501     something starting with __ and the normal name is an alias.  */
14502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14503 choke me
14504 #else
14505 char (*f) () = $ac_func;
14506 #endif
14507 #ifdef __cplusplus
14508 }
14509 #endif
14510
14511 int
14512 main ()
14513 {
14514 return f != $ac_func;
14515   ;
14516   return 0;
14517 }
14518 _ACEOF
14519 rm -f conftest.$ac_objext conftest$ac_exeext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14521   (eval $ac_link) 2>conftest.er1
14522   ac_status=$?
14523   grep -v '^ *+' conftest.er1 >conftest.err
14524   rm -f conftest.er1
14525   cat conftest.err >&5
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); } &&
14528          { ac_try='test -z "$ac_c_werror_flag"
14529                          || test ! -s conftest.err'
14530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531   (eval $ac_try) 2>&5
14532   ac_status=$?
14533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534   (exit $ac_status); }; } &&
14535          { ac_try='test -s conftest$ac_exeext'
14536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537   (eval $ac_try) 2>&5
14538   ac_status=$?
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); }; }; then
14541   eval "$as_ac_var=yes"
14542 else
14543   echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14545
14546 eval "$as_ac_var=no"
14547 fi
14548 rm -f conftest.err conftest.$ac_objext \
14549       conftest$ac_exeext conftest.$ac_ext
14550 fi
14551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14553 if test `eval echo '${'$as_ac_var'}'` = yes; then
14554   cat >>confdefs.h <<_ACEOF
14555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14556 _ACEOF
14557
14558 fi
14559 done
14560
14561
14562 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14563
14564 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14565 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14566 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14567   echo $ECHO_N "(cached) $ECHO_C" >&6
14568 else
14569   ac_check_lib_save_LIBS=$LIBS
14570 LIBS="-lV3  $LIBS"
14571 cat >conftest.$ac_ext <<_ACEOF
14572 /* confdefs.h.  */
14573 _ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h.  */
14577
14578 /* Override any gcc2 internal prototype to avoid an error.  */
14579 #ifdef __cplusplus
14580 extern "C"
14581 #endif
14582 /* We use char because int might match the return type of a gcc2
14583    builtin and then its argument prototype would still apply.  */
14584 char sigset ();
14585 int
14586 main ()
14587 {
14588 sigset ();
14589   ;
14590   return 0;
14591 }
14592 _ACEOF
14593 rm -f conftest.$ac_objext conftest$ac_exeext
14594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14595   (eval $ac_link) 2>conftest.er1
14596   ac_status=$?
14597   grep -v '^ *+' conftest.er1 >conftest.err
14598   rm -f conftest.er1
14599   cat conftest.err >&5
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); } &&
14602          { ac_try='test -z "$ac_c_werror_flag"
14603                          || test ! -s conftest.err'
14604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605   (eval $ac_try) 2>&5
14606   ac_status=$?
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); }; } &&
14609          { ac_try='test -s conftest$ac_exeext'
14610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611   (eval $ac_try) 2>&5
14612   ac_status=$?
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); }; }; then
14615   ac_cv_lib_V3_sigset=yes
14616 else
14617   echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14619
14620 ac_cv_lib_V3_sigset=no
14621 fi
14622 rm -f conftest.err conftest.$ac_objext \
14623       conftest$ac_exeext conftest.$ac_ext
14624 LIBS=$ac_check_lib_save_LIBS
14625 fi
14626 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14627 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14628 if test $ac_cv_lib_V3_sigset = yes; then
14629   cat >>confdefs.h <<_ACEOF
14630 #define HAVE_LIBV3 1
14631 _ACEOF
14632
14633   LIBS="-lV3 $LIBS"
14634
14635 fi
14636
14637 fi
14638
14639 if test "$ac_cv_header_winsock_h" = yes; then
14640 echo "$as_me:$LINENO: checking for winsock" >&5
14641 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14642 if test "${ol_cv_winsock+set}" = set; then
14643   echo $ECHO_N "(cached) $ECHO_C" >&6
14644 else
14645   save_LIBS="$LIBS"
14646 for curlib in ws2_32 wsock32; do
14647         LIBS="$LIBS -l$curlib"
14648         cat >conftest.$ac_ext <<_ACEOF
14649 /* confdefs.h.  */
14650 _ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h.  */
14654 #include <winsock.h>
14655
14656 int
14657 main ()
14658 {
14659
14660                         socket(0,0,0);
14661                         select(0,NULL,NULL,NULL,NULL);
14662                         closesocket(0);
14663                         gethostname(NULL,0);
14664
14665   ;
14666   return 0;
14667 }
14668 _ACEOF
14669 rm -f conftest.$ac_objext conftest$ac_exeext
14670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14671   (eval $ac_link) 2>conftest.er1
14672   ac_status=$?
14673   grep -v '^ *+' conftest.er1 >conftest.err
14674   rm -f conftest.er1
14675   cat conftest.err >&5
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); } &&
14678          { ac_try='test -z "$ac_c_werror_flag"
14679                          || test ! -s conftest.err'
14680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681   (eval $ac_try) 2>&5
14682   ac_status=$?
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); }; } &&
14685          { ac_try='test -s conftest$ac_exeext'
14686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687   (eval $ac_try) 2>&5
14688   ac_status=$?
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); }; }; then
14691   ol_cv_winsock=yes
14692 else
14693   echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14695
14696 ol_cv_winsock=no
14697 fi
14698 rm -f conftest.err conftest.$ac_objext \
14699       conftest$ac_exeext conftest.$ac_ext
14700
14701         if test $ol_cv_winsock = yes; then
14702
14703 cat >>confdefs.h <<\_ACEOF
14704 #define HAVE_WINSOCK 1
14705 _ACEOF
14706
14707                 ac_cv_func_socket=yes
14708                 ac_cv_func_select=yes
14709                 ac_cv_func_closesocket=yes
14710                 ac_cv_func_gethostname=yes
14711                 if test $curlib = ws2_32; then
14712                         ol_cv_winsock=winsock2
14713
14714 cat >>confdefs.h <<\_ACEOF
14715 #define HAVE_WINSOCK2 1
14716 _ACEOF
14717
14718                 fi
14719                 break
14720         fi
14721         LIBS="$save_LIBS"
14722 done
14723 fi
14724 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14725 echo "${ECHO_T}$ol_cv_winsock" >&6
14726 fi
14727
14728
14729 echo "$as_me:$LINENO: checking for socket" >&5
14730 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14731 if test "${ac_cv_func_socket+set}" = set; then
14732   echo $ECHO_N "(cached) $ECHO_C" >&6
14733 else
14734   cat >conftest.$ac_ext <<_ACEOF
14735 /* confdefs.h.  */
14736 _ACEOF
14737 cat confdefs.h >>conftest.$ac_ext
14738 cat >>conftest.$ac_ext <<_ACEOF
14739 /* end confdefs.h.  */
14740 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14742 #define socket innocuous_socket
14743
14744 /* System header to define __stub macros and hopefully few prototypes,
14745     which can conflict with char socket (); below.
14746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14747     <limits.h> exists even on freestanding compilers.  */
14748
14749 #ifdef __STDC__
14750 # include <limits.h>
14751 #else
14752 # include <assert.h>
14753 #endif
14754
14755 #undef socket
14756
14757 /* Override any gcc2 internal prototype to avoid an error.  */
14758 #ifdef __cplusplus
14759 extern "C"
14760 {
14761 #endif
14762 /* We use char because int might match the return type of a gcc2
14763    builtin and then its argument prototype would still apply.  */
14764 char socket ();
14765 /* The GNU C library defines this for functions which it implements
14766     to always fail with ENOSYS.  Some functions are actually named
14767     something starting with __ and the normal name is an alias.  */
14768 #if defined (__stub_socket) || defined (__stub___socket)
14769 choke me
14770 #else
14771 char (*f) () = socket;
14772 #endif
14773 #ifdef __cplusplus
14774 }
14775 #endif
14776
14777 int
14778 main ()
14779 {
14780 return f != socket;
14781   ;
14782   return 0;
14783 }
14784 _ACEOF
14785 rm -f conftest.$ac_objext conftest$ac_exeext
14786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14787   (eval $ac_link) 2>conftest.er1
14788   ac_status=$?
14789   grep -v '^ *+' conftest.er1 >conftest.err
14790   rm -f conftest.er1
14791   cat conftest.err >&5
14792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793   (exit $ac_status); } &&
14794          { ac_try='test -z "$ac_c_werror_flag"
14795                          || test ! -s conftest.err'
14796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797   (eval $ac_try) 2>&5
14798   ac_status=$?
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); }; } &&
14801          { ac_try='test -s conftest$ac_exeext'
14802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803   (eval $ac_try) 2>&5
14804   ac_status=$?
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); }; }; then
14807   ac_cv_func_socket=yes
14808 else
14809   echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14811
14812 ac_cv_func_socket=no
14813 fi
14814 rm -f conftest.err conftest.$ac_objext \
14815       conftest$ac_exeext conftest.$ac_ext
14816 fi
14817 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14818 echo "${ECHO_T}$ac_cv_func_socket" >&6
14819 if test $ac_cv_func_socket = yes; then
14820   :
14821 else
14822
14823
14824 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14825 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14826 if test "${ac_cv_lib_socket_main+set}" = set; then
14827   echo $ECHO_N "(cached) $ECHO_C" >&6
14828 else
14829   ac_check_lib_save_LIBS=$LIBS
14830 LIBS="-lsocket  $LIBS"
14831 cat >conftest.$ac_ext <<_ACEOF
14832 /* confdefs.h.  */
14833 _ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h.  */
14837
14838
14839 int
14840 main ()
14841 {
14842 main ();
14843   ;
14844   return 0;
14845 }
14846 _ACEOF
14847 rm -f conftest.$ac_objext conftest$ac_exeext
14848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14849   (eval $ac_link) 2>conftest.er1
14850   ac_status=$?
14851   grep -v '^ *+' conftest.er1 >conftest.err
14852   rm -f conftest.er1
14853   cat conftest.err >&5
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   (exit $ac_status); } &&
14856          { ac_try='test -z "$ac_c_werror_flag"
14857                          || test ! -s conftest.err'
14858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859   (eval $ac_try) 2>&5
14860   ac_status=$?
14861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862   (exit $ac_status); }; } &&
14863          { ac_try='test -s conftest$ac_exeext'
14864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14865   (eval $ac_try) 2>&5
14866   ac_status=$?
14867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868   (exit $ac_status); }; }; then
14869   ac_cv_lib_socket_main=yes
14870 else
14871   echo "$as_me: failed program was:" >&5
14872 sed 's/^/| /' conftest.$ac_ext >&5
14873
14874 ac_cv_lib_socket_main=no
14875 fi
14876 rm -f conftest.err conftest.$ac_objext \
14877       conftest$ac_exeext conftest.$ac_ext
14878 LIBS=$ac_check_lib_save_LIBS
14879 fi
14880 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14881 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14882 if test $ac_cv_lib_socket_main = yes; then
14883   cat >>confdefs.h <<_ACEOF
14884 #define HAVE_LIBSOCKET 1
14885 _ACEOF
14886
14887   LIBS="-lsocket $LIBS"
14888
14889 fi
14890
14891
14892 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14893 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14894 if test "${ac_cv_lib_net_main+set}" = set; then
14895   echo $ECHO_N "(cached) $ECHO_C" >&6
14896 else
14897   ac_check_lib_save_LIBS=$LIBS
14898 LIBS="-lnet  $LIBS"
14899 cat >conftest.$ac_ext <<_ACEOF
14900 /* confdefs.h.  */
14901 _ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h.  */
14905
14906
14907 int
14908 main ()
14909 {
14910 main ();
14911   ;
14912   return 0;
14913 }
14914 _ACEOF
14915 rm -f conftest.$ac_objext conftest$ac_exeext
14916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14917   (eval $ac_link) 2>conftest.er1
14918   ac_status=$?
14919   grep -v '^ *+' conftest.er1 >conftest.err
14920   rm -f conftest.er1
14921   cat conftest.err >&5
14922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923   (exit $ac_status); } &&
14924          { ac_try='test -z "$ac_c_werror_flag"
14925                          || test ! -s conftest.err'
14926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927   (eval $ac_try) 2>&5
14928   ac_status=$?
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); }; } &&
14931          { ac_try='test -s conftest$ac_exeext'
14932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933   (eval $ac_try) 2>&5
14934   ac_status=$?
14935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936   (exit $ac_status); }; }; then
14937   ac_cv_lib_net_main=yes
14938 else
14939   echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14941
14942 ac_cv_lib_net_main=no
14943 fi
14944 rm -f conftest.err conftest.$ac_objext \
14945       conftest$ac_exeext conftest.$ac_ext
14946 LIBS=$ac_check_lib_save_LIBS
14947 fi
14948 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14949 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14950 if test $ac_cv_lib_net_main = yes; then
14951   cat >>confdefs.h <<_ACEOF
14952 #define HAVE_LIBNET 1
14953 _ACEOF
14954
14955   LIBS="-lnet $LIBS"
14956
14957 fi
14958
14959
14960 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14961 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14962 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14963   echo $ECHO_N "(cached) $ECHO_C" >&6
14964 else
14965   ac_check_lib_save_LIBS=$LIBS
14966 LIBS="-lnsl_s  $LIBS"
14967 cat >conftest.$ac_ext <<_ACEOF
14968 /* confdefs.h.  */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h.  */
14973
14974
14975 int
14976 main ()
14977 {
14978 main ();
14979   ;
14980   return 0;
14981 }
14982 _ACEOF
14983 rm -f conftest.$ac_objext conftest$ac_exeext
14984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14985   (eval $ac_link) 2>conftest.er1
14986   ac_status=$?
14987   grep -v '^ *+' conftest.er1 >conftest.err
14988   rm -f conftest.er1
14989   cat conftest.err >&5
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); } &&
14992          { ac_try='test -z "$ac_c_werror_flag"
14993                          || test ! -s conftest.err'
14994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995   (eval $ac_try) 2>&5
14996   ac_status=$?
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); }; } &&
14999          { ac_try='test -s conftest$ac_exeext'
15000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001   (eval $ac_try) 2>&5
15002   ac_status=$?
15003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004   (exit $ac_status); }; }; then
15005   ac_cv_lib_nsl_s_main=yes
15006 else
15007   echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15009
15010 ac_cv_lib_nsl_s_main=no
15011 fi
15012 rm -f conftest.err conftest.$ac_objext \
15013       conftest$ac_exeext conftest.$ac_ext
15014 LIBS=$ac_check_lib_save_LIBS
15015 fi
15016 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15017 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
15018 if test $ac_cv_lib_nsl_s_main = yes; then
15019   cat >>confdefs.h <<_ACEOF
15020 #define HAVE_LIBNSL_S 1
15021 _ACEOF
15022
15023   LIBS="-lnsl_s $LIBS"
15024
15025 fi
15026
15027
15028 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15029 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15030 if test "${ac_cv_lib_nsl_main+set}" = set; then
15031   echo $ECHO_N "(cached) $ECHO_C" >&6
15032 else
15033   ac_check_lib_save_LIBS=$LIBS
15034 LIBS="-lnsl  $LIBS"
15035 cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h.  */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h.  */
15041
15042
15043 int
15044 main ()
15045 {
15046 main ();
15047   ;
15048   return 0;
15049 }
15050 _ACEOF
15051 rm -f conftest.$ac_objext conftest$ac_exeext
15052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15053   (eval $ac_link) 2>conftest.er1
15054   ac_status=$?
15055   grep -v '^ *+' conftest.er1 >conftest.err
15056   rm -f conftest.er1
15057   cat conftest.err >&5
15058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059   (exit $ac_status); } &&
15060          { ac_try='test -z "$ac_c_werror_flag"
15061                          || test ! -s conftest.err'
15062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063   (eval $ac_try) 2>&5
15064   ac_status=$?
15065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066   (exit $ac_status); }; } &&
15067          { ac_try='test -s conftest$ac_exeext'
15068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069   (eval $ac_try) 2>&5
15070   ac_status=$?
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   (exit $ac_status); }; }; then
15073   ac_cv_lib_nsl_main=yes
15074 else
15075   echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15077
15078 ac_cv_lib_nsl_main=no
15079 fi
15080 rm -f conftest.err conftest.$ac_objext \
15081       conftest$ac_exeext conftest.$ac_ext
15082 LIBS=$ac_check_lib_save_LIBS
15083 fi
15084 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15085 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15086 if test $ac_cv_lib_nsl_main = yes; then
15087   cat >>confdefs.h <<_ACEOF
15088 #define HAVE_LIBNSL 1
15089 _ACEOF
15090
15091   LIBS="-lnsl $LIBS"
15092
15093 fi
15094
15095
15096 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15097 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15098 if test "${ac_cv_lib_inet_socket+set}" = set; then
15099   echo $ECHO_N "(cached) $ECHO_C" >&6
15100 else
15101   ac_check_lib_save_LIBS=$LIBS
15102 LIBS="-linet  $LIBS"
15103 cat >conftest.$ac_ext <<_ACEOF
15104 /* confdefs.h.  */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h.  */
15109
15110 /* Override any gcc2 internal prototype to avoid an error.  */
15111 #ifdef __cplusplus
15112 extern "C"
15113 #endif
15114 /* We use char because int might match the return type of a gcc2
15115    builtin and then its argument prototype would still apply.  */
15116 char socket ();
15117 int
15118 main ()
15119 {
15120 socket ();
15121   ;
15122   return 0;
15123 }
15124 _ACEOF
15125 rm -f conftest.$ac_objext conftest$ac_exeext
15126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15127   (eval $ac_link) 2>conftest.er1
15128   ac_status=$?
15129   grep -v '^ *+' conftest.er1 >conftest.err
15130   rm -f conftest.er1
15131   cat conftest.err >&5
15132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133   (exit $ac_status); } &&
15134          { ac_try='test -z "$ac_c_werror_flag"
15135                          || test ! -s conftest.err'
15136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137   (eval $ac_try) 2>&5
15138   ac_status=$?
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); }; } &&
15141          { ac_try='test -s conftest$ac_exeext'
15142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143   (eval $ac_try) 2>&5
15144   ac_status=$?
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); }; }; then
15147   ac_cv_lib_inet_socket=yes
15148 else
15149   echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15151
15152 ac_cv_lib_inet_socket=no
15153 fi
15154 rm -f conftest.err conftest.$ac_objext \
15155       conftest$ac_exeext conftest.$ac_ext
15156 LIBS=$ac_check_lib_save_LIBS
15157 fi
15158 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15159 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15160 if test $ac_cv_lib_inet_socket = yes; then
15161   cat >>confdefs.h <<_ACEOF
15162 #define HAVE_LIBINET 1
15163 _ACEOF
15164
15165   LIBS="-linet $LIBS"
15166
15167 fi
15168
15169
15170 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15171 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15172 if test "${ac_cv_lib_gen_main+set}" = set; then
15173   echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175   ac_check_lib_save_LIBS=$LIBS
15176 LIBS="-lgen  $LIBS"
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h.  */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h.  */
15183
15184
15185 int
15186 main ()
15187 {
15188 main ();
15189   ;
15190   return 0;
15191 }
15192 _ACEOF
15193 rm -f conftest.$ac_objext conftest$ac_exeext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15195   (eval $ac_link) 2>conftest.er1
15196   ac_status=$?
15197   grep -v '^ *+' conftest.er1 >conftest.err
15198   rm -f conftest.er1
15199   cat conftest.err >&5
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); } &&
15202          { ac_try='test -z "$ac_c_werror_flag"
15203                          || test ! -s conftest.err'
15204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205   (eval $ac_try) 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); }; } &&
15209          { ac_try='test -s conftest$ac_exeext'
15210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211   (eval $ac_try) 2>&5
15212   ac_status=$?
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); }; }; then
15215   ac_cv_lib_gen_main=yes
15216 else
15217   echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15219
15220 ac_cv_lib_gen_main=no
15221 fi
15222 rm -f conftest.err conftest.$ac_objext \
15223       conftest$ac_exeext conftest.$ac_ext
15224 LIBS=$ac_check_lib_save_LIBS
15225 fi
15226 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15227 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15228 if test $ac_cv_lib_gen_main = yes; then
15229   cat >>confdefs.h <<_ACEOF
15230 #define HAVE_LIBGEN 1
15231 _ACEOF
15232
15233   LIBS="-lgen $LIBS"
15234
15235 fi
15236
15237
15238 fi
15239
15240
15241 echo "$as_me:$LINENO: checking for select" >&5
15242 echo $ECHO_N "checking for select... $ECHO_C" >&6
15243 if test "${ac_cv_func_select+set}" = set; then
15244   echo $ECHO_N "(cached) $ECHO_C" >&6
15245 else
15246   cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h.  */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h.  */
15252 /* Define select to an innocuous variant, in case <limits.h> declares select.
15253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15254 #define select innocuous_select
15255
15256 /* System header to define __stub macros and hopefully few prototypes,
15257     which can conflict with char select (); below.
15258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15259     <limits.h> exists even on freestanding compilers.  */
15260
15261 #ifdef __STDC__
15262 # include <limits.h>
15263 #else
15264 # include <assert.h>
15265 #endif
15266
15267 #undef select
15268
15269 /* Override any gcc2 internal prototype to avoid an error.  */
15270 #ifdef __cplusplus
15271 extern "C"
15272 {
15273 #endif
15274 /* We use char because int might match the return type of a gcc2
15275    builtin and then its argument prototype would still apply.  */
15276 char select ();
15277 /* The GNU C library defines this for functions which it implements
15278     to always fail with ENOSYS.  Some functions are actually named
15279     something starting with __ and the normal name is an alias.  */
15280 #if defined (__stub_select) || defined (__stub___select)
15281 choke me
15282 #else
15283 char (*f) () = select;
15284 #endif
15285 #ifdef __cplusplus
15286 }
15287 #endif
15288
15289 int
15290 main ()
15291 {
15292 return f != select;
15293   ;
15294   return 0;
15295 }
15296 _ACEOF
15297 rm -f conftest.$ac_objext conftest$ac_exeext
15298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15299   (eval $ac_link) 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); } &&
15306          { ac_try='test -z "$ac_c_werror_flag"
15307                          || test ! -s conftest.err'
15308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309   (eval $ac_try) 2>&5
15310   ac_status=$?
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); }; } &&
15313          { ac_try='test -s conftest$ac_exeext'
15314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315   (eval $ac_try) 2>&5
15316   ac_status=$?
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); }; }; then
15319   ac_cv_func_select=yes
15320 else
15321   echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15323
15324 ac_cv_func_select=no
15325 fi
15326 rm -f conftest.err conftest.$ac_objext \
15327       conftest$ac_exeext conftest.$ac_ext
15328 fi
15329 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15330 echo "${ECHO_T}$ac_cv_func_select" >&6
15331 if test $ac_cv_func_select = yes; then
15332   :
15333 else
15334   { { echo "$as_me:$LINENO: error: select() required." >&5
15335 echo "$as_me: error: select() required." >&2;}
15336    { (exit 1); exit 1; }; }
15337 fi
15338
15339
15340 if test "${ac_cv_header_winsock_h}" != yes; then
15341
15342
15343 for ac_header in sys/select.h sys/socket.h
15344 do
15345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15347   echo "$as_me:$LINENO: checking for $ac_header" >&5
15348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15350   echo $ECHO_N "(cached) $ECHO_C" >&6
15351 fi
15352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15354 else
15355   # Is the header compilable?
15356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15358 cat >conftest.$ac_ext <<_ACEOF
15359 /* confdefs.h.  */
15360 _ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h.  */
15364 $ac_includes_default
15365 #include <$ac_header>
15366 _ACEOF
15367 rm -f conftest.$ac_objext
15368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15369   (eval $ac_compile) 2>conftest.er1
15370   ac_status=$?
15371   grep -v '^ *+' conftest.er1 >conftest.err
15372   rm -f conftest.er1
15373   cat conftest.err >&5
15374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375   (exit $ac_status); } &&
15376          { ac_try='test -z "$ac_c_werror_flag"
15377                          || test ! -s conftest.err'
15378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379   (eval $ac_try) 2>&5
15380   ac_status=$?
15381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382   (exit $ac_status); }; } &&
15383          { ac_try='test -s conftest.$ac_objext'
15384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385   (eval $ac_try) 2>&5
15386   ac_status=$?
15387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388   (exit $ac_status); }; }; then
15389   ac_header_compiler=yes
15390 else
15391   echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15393
15394 ac_header_compiler=no
15395 fi
15396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15398 echo "${ECHO_T}$ac_header_compiler" >&6
15399
15400 # Is the header present?
15401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15403 cat >conftest.$ac_ext <<_ACEOF
15404 /* confdefs.h.  */
15405 _ACEOF
15406 cat confdefs.h >>conftest.$ac_ext
15407 cat >>conftest.$ac_ext <<_ACEOF
15408 /* end confdefs.h.  */
15409 #include <$ac_header>
15410 _ACEOF
15411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15413   ac_status=$?
15414   grep -v '^ *+' conftest.er1 >conftest.err
15415   rm -f conftest.er1
15416   cat conftest.err >&5
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); } >/dev/null; then
15419   if test -s conftest.err; then
15420     ac_cpp_err=$ac_c_preproc_warn_flag
15421     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15422   else
15423     ac_cpp_err=
15424   fi
15425 else
15426   ac_cpp_err=yes
15427 fi
15428 if test -z "$ac_cpp_err"; then
15429   ac_header_preproc=yes
15430 else
15431   echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15433
15434   ac_header_preproc=no
15435 fi
15436 rm -f conftest.err conftest.$ac_ext
15437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15438 echo "${ECHO_T}$ac_header_preproc" >&6
15439
15440 # So?  What about this header?
15441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15442   yes:no: )
15443     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15447     ac_header_preproc=yes
15448     ;;
15449   no:yes:* )
15450     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15452     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15453 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15454     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15456     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15457 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15460     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15462     (
15463       cat <<\_ASBOX
15464 ## --------------------------------------------- ##
15465 ## Report this to <http://www.openldap.org/its/> ##
15466 ## --------------------------------------------- ##
15467 _ASBOX
15468     ) |
15469       sed "s/^/$as_me: WARNING:     /" >&2
15470     ;;
15471 esac
15472 echo "$as_me:$LINENO: checking for $ac_header" >&5
15473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15475   echo $ECHO_N "(cached) $ECHO_C" >&6
15476 else
15477   eval "$as_ac_Header=\$ac_header_preproc"
15478 fi
15479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15481
15482 fi
15483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15484   cat >>confdefs.h <<_ACEOF
15485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15486 _ACEOF
15487
15488 fi
15489
15490 done
15491
15492 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15493 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15494 if test "${ac_cv_func_select_args+set}" = set; then
15495   echo $ECHO_N "(cached) $ECHO_C" >&6
15496 else
15497   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15498  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15499   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15500    cat >conftest.$ac_ext <<_ACEOF
15501 /* confdefs.h.  */
15502 _ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h.  */
15506 $ac_includes_default
15507 #if HAVE_SYS_SELECT_H
15508 # include <sys/select.h>
15509 #endif
15510 #if HAVE_SYS_SOCKET_H
15511 # include <sys/socket.h>
15512 #endif
15513
15514 int
15515 main ()
15516 {
15517 extern int select ($ac_arg1,
15518                                             $ac_arg234, $ac_arg234, $ac_arg234,
15519                                             $ac_arg5);
15520   ;
15521   return 0;
15522 }
15523 _ACEOF
15524 rm -f conftest.$ac_objext
15525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15526   (eval $ac_compile) 2>conftest.er1
15527   ac_status=$?
15528   grep -v '^ *+' conftest.er1 >conftest.err
15529   rm -f conftest.er1
15530   cat conftest.err >&5
15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532   (exit $ac_status); } &&
15533          { ac_try='test -z "$ac_c_werror_flag"
15534                          || test ! -s conftest.err'
15535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536   (eval $ac_try) 2>&5
15537   ac_status=$?
15538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539   (exit $ac_status); }; } &&
15540          { ac_try='test -s conftest.$ac_objext'
15541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542   (eval $ac_try) 2>&5
15543   ac_status=$?
15544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545   (exit $ac_status); }; }; then
15546   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15547 else
15548   echo "$as_me: failed program was:" >&5
15549 sed 's/^/| /' conftest.$ac_ext >&5
15550
15551 fi
15552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15553   done
15554  done
15555 done
15556 # Provide a safe default value.
15557 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15558
15559 fi
15560 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15561 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15562 ac_save_IFS=$IFS; IFS=','
15563 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15564 IFS=$ac_save_IFS
15565 shift
15566
15567 cat >>confdefs.h <<_ACEOF
15568 #define SELECT_TYPE_ARG1 $1
15569 _ACEOF
15570
15571
15572 cat >>confdefs.h <<_ACEOF
15573 #define SELECT_TYPE_ARG234 ($2)
15574 _ACEOF
15575
15576
15577 cat >>confdefs.h <<_ACEOF
15578 #define SELECT_TYPE_ARG5 ($3)
15579 _ACEOF
15580
15581 rm -f conftest*
15582
15583 fi
15584
15585
15586
15587 for ac_func in poll
15588 do
15589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15590 echo "$as_me:$LINENO: checking for $ac_func" >&5
15591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15592 if eval "test \"\${$as_ac_var+set}\" = set"; then
15593   echo $ECHO_N "(cached) $ECHO_C" >&6
15594 else
15595   cat >conftest.$ac_ext <<_ACEOF
15596 /* confdefs.h.  */
15597 _ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h.  */
15601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15603 #define $ac_func innocuous_$ac_func
15604
15605 /* System header to define __stub macros and hopefully few prototypes,
15606     which can conflict with char $ac_func (); below.
15607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15608     <limits.h> exists even on freestanding compilers.  */
15609
15610 #ifdef __STDC__
15611 # include <limits.h>
15612 #else
15613 # include <assert.h>
15614 #endif
15615
15616 #undef $ac_func
15617
15618 /* Override any gcc2 internal prototype to avoid an error.  */
15619 #ifdef __cplusplus
15620 extern "C"
15621 {
15622 #endif
15623 /* We use char because int might match the return type of a gcc2
15624    builtin and then its argument prototype would still apply.  */
15625 char $ac_func ();
15626 /* The GNU C library defines this for functions which it implements
15627     to always fail with ENOSYS.  Some functions are actually named
15628     something starting with __ and the normal name is an alias.  */
15629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15630 choke me
15631 #else
15632 char (*f) () = $ac_func;
15633 #endif
15634 #ifdef __cplusplus
15635 }
15636 #endif
15637
15638 int
15639 main ()
15640 {
15641 return f != $ac_func;
15642   ;
15643   return 0;
15644 }
15645 _ACEOF
15646 rm -f conftest.$ac_objext conftest$ac_exeext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15648   (eval $ac_link) 2>conftest.er1
15649   ac_status=$?
15650   grep -v '^ *+' conftest.er1 >conftest.err
15651   rm -f conftest.er1
15652   cat conftest.err >&5
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } &&
15655          { ac_try='test -z "$ac_c_werror_flag"
15656                          || test ! -s conftest.err'
15657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658   (eval $ac_try) 2>&5
15659   ac_status=$?
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); }; } &&
15662          { ac_try='test -s conftest$ac_exeext'
15663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664   (eval $ac_try) 2>&5
15665   ac_status=$?
15666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667   (exit $ac_status); }; }; then
15668   eval "$as_ac_var=yes"
15669 else
15670   echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15672
15673 eval "$as_ac_var=no"
15674 fi
15675 rm -f conftest.err conftest.$ac_objext \
15676       conftest$ac_exeext conftest.$ac_ext
15677 fi
15678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15680 if test `eval echo '${'$as_ac_var'}'` = yes; then
15681   cat >>confdefs.h <<_ACEOF
15682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15683 _ACEOF
15684
15685 fi
15686 done
15687
15688 if test $ac_cv_func_poll = yes; then
15689
15690
15691 for ac_header in poll.h sys/poll.h
15692 do
15693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15695   echo "$as_me:$LINENO: checking for $ac_header" >&5
15696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15698   echo $ECHO_N "(cached) $ECHO_C" >&6
15699 fi
15700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15702 else
15703   # Is the header compilable?
15704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15706 cat >conftest.$ac_ext <<_ACEOF
15707 /* confdefs.h.  */
15708 _ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h.  */
15712 $ac_includes_default
15713 #include <$ac_header>
15714 _ACEOF
15715 rm -f conftest.$ac_objext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15717   (eval $ac_compile) 2>conftest.er1
15718   ac_status=$?
15719   grep -v '^ *+' conftest.er1 >conftest.err
15720   rm -f conftest.er1
15721   cat conftest.err >&5
15722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723   (exit $ac_status); } &&
15724          { ac_try='test -z "$ac_c_werror_flag"
15725                          || test ! -s conftest.err'
15726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727   (eval $ac_try) 2>&5
15728   ac_status=$?
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); }; } &&
15731          { ac_try='test -s conftest.$ac_objext'
15732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733   (eval $ac_try) 2>&5
15734   ac_status=$?
15735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736   (exit $ac_status); }; }; then
15737   ac_header_compiler=yes
15738 else
15739   echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15741
15742 ac_header_compiler=no
15743 fi
15744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15746 echo "${ECHO_T}$ac_header_compiler" >&6
15747
15748 # Is the header present?
15749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15751 cat >conftest.$ac_ext <<_ACEOF
15752 /* confdefs.h.  */
15753 _ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h.  */
15757 #include <$ac_header>
15758 _ACEOF
15759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15760   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15761   ac_status=$?
15762   grep -v '^ *+' conftest.er1 >conftest.err
15763   rm -f conftest.er1
15764   cat conftest.err >&5
15765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766   (exit $ac_status); } >/dev/null; then
15767   if test -s conftest.err; then
15768     ac_cpp_err=$ac_c_preproc_warn_flag
15769     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15770   else
15771     ac_cpp_err=
15772   fi
15773 else
15774   ac_cpp_err=yes
15775 fi
15776 if test -z "$ac_cpp_err"; then
15777   ac_header_preproc=yes
15778 else
15779   echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15781
15782   ac_header_preproc=no
15783 fi
15784 rm -f conftest.err conftest.$ac_ext
15785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15786 echo "${ECHO_T}$ac_header_preproc" >&6
15787
15788 # So?  What about this header?
15789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15790   yes:no: )
15791     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15795     ac_header_preproc=yes
15796     ;;
15797   no:yes:* )
15798     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15800     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15801 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15802     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15804     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15805 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15808     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15810     (
15811       cat <<\_ASBOX
15812 ## --------------------------------------------- ##
15813 ## Report this to <http://www.openldap.org/its/> ##
15814 ## --------------------------------------------- ##
15815 _ASBOX
15816     ) |
15817       sed "s/^/$as_me: WARNING:     /" >&2
15818     ;;
15819 esac
15820 echo "$as_me:$LINENO: checking for $ac_header" >&5
15821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15823   echo $ECHO_N "(cached) $ECHO_C" >&6
15824 else
15825   eval "$as_ac_Header=\$ac_header_preproc"
15826 fi
15827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15829
15830 fi
15831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15832   cat >>confdefs.h <<_ACEOF
15833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15834 _ACEOF
15835
15836 fi
15837
15838 done
15839
15840 fi
15841
15842
15843 for ac_header in sys/epoll.h
15844 do
15845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15847   echo "$as_me:$LINENO: checking for $ac_header" >&5
15848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15850   echo $ECHO_N "(cached) $ECHO_C" >&6
15851 fi
15852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15854 else
15855   # Is the header compilable?
15856 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15858 cat >conftest.$ac_ext <<_ACEOF
15859 /* confdefs.h.  */
15860 _ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h.  */
15864 $ac_includes_default
15865 #include <$ac_header>
15866 _ACEOF
15867 rm -f conftest.$ac_objext
15868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15869   (eval $ac_compile) 2>conftest.er1
15870   ac_status=$?
15871   grep -v '^ *+' conftest.er1 >conftest.err
15872   rm -f conftest.er1
15873   cat conftest.err >&5
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); } &&
15876          { ac_try='test -z "$ac_c_werror_flag"
15877                          || test ! -s conftest.err'
15878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879   (eval $ac_try) 2>&5
15880   ac_status=$?
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); }; } &&
15883          { ac_try='test -s conftest.$ac_objext'
15884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885   (eval $ac_try) 2>&5
15886   ac_status=$?
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); }; }; then
15889   ac_header_compiler=yes
15890 else
15891   echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15893
15894 ac_header_compiler=no
15895 fi
15896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15898 echo "${ECHO_T}$ac_header_compiler" >&6
15899
15900 # Is the header present?
15901 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15903 cat >conftest.$ac_ext <<_ACEOF
15904 /* confdefs.h.  */
15905 _ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h.  */
15909 #include <$ac_header>
15910 _ACEOF
15911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15912   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15913   ac_status=$?
15914   grep -v '^ *+' conftest.er1 >conftest.err
15915   rm -f conftest.er1
15916   cat conftest.err >&5
15917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918   (exit $ac_status); } >/dev/null; then
15919   if test -s conftest.err; then
15920     ac_cpp_err=$ac_c_preproc_warn_flag
15921     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15922   else
15923     ac_cpp_err=
15924   fi
15925 else
15926   ac_cpp_err=yes
15927 fi
15928 if test -z "$ac_cpp_err"; then
15929   ac_header_preproc=yes
15930 else
15931   echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15933
15934   ac_header_preproc=no
15935 fi
15936 rm -f conftest.err conftest.$ac_ext
15937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15938 echo "${ECHO_T}$ac_header_preproc" >&6
15939
15940 # So?  What about this header?
15941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15942   yes:no: )
15943     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15947     ac_header_preproc=yes
15948     ;;
15949   no:yes:* )
15950     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15952     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15953 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15954     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15956     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15957 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15960     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15962     (
15963       cat <<\_ASBOX
15964 ## --------------------------------------------- ##
15965 ## Report this to <http://www.openldap.org/its/> ##
15966 ## --------------------------------------------- ##
15967 _ASBOX
15968     ) |
15969       sed "s/^/$as_me: WARNING:     /" >&2
15970     ;;
15971 esac
15972 echo "$as_me:$LINENO: checking for $ac_header" >&5
15973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15975   echo $ECHO_N "(cached) $ECHO_C" >&6
15976 else
15977   eval "$as_ac_Header=\$ac_header_preproc"
15978 fi
15979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15981
15982 fi
15983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15984   cat >>confdefs.h <<_ACEOF
15985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15986 _ACEOF
15987
15988 fi
15989
15990 done
15991
15992 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15993         echo "$as_me:$LINENO: checking for epoll system call" >&5
15994 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15995         if test "$cross_compiling" = yes; then
15996   echo "$as_me:$LINENO: result: no" >&5
15997 echo "${ECHO_T}no" >&6
15998 else
15999   cat >conftest.$ac_ext <<_ACEOF
16000 /* confdefs.h.  */
16001 _ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h.  */
16005 int main(int argc, char **argv)
16006 {
16007         int epfd = epoll_create(256);
16008         exit (epfd == -1 ? 1 : 0);
16009 }
16010 _ACEOF
16011 rm -f conftest$ac_exeext
16012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16013   (eval $ac_link) 2>&5
16014   ac_status=$?
16015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018   (eval $ac_try) 2>&5
16019   ac_status=$?
16020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021   (exit $ac_status); }; }; then
16022   echo "$as_me:$LINENO: result: yes" >&5
16023 echo "${ECHO_T}yes" >&6
16024
16025 cat >>confdefs.h <<\_ACEOF
16026 #define HAVE_EPOLL 1
16027 _ACEOF
16028
16029 else
16030   echo "$as_me: program exited with status $ac_status" >&5
16031 echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16033
16034 ( exit $ac_status )
16035 echo "$as_me:$LINENO: result: no" >&5
16036 echo "${ECHO_T}no" >&6
16037 fi
16038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16039 fi
16040 fi
16041
16042
16043 for ac_header in sys/devpoll.h
16044 do
16045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16047   echo "$as_me:$LINENO: checking for $ac_header" >&5
16048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16050   echo $ECHO_N "(cached) $ECHO_C" >&6
16051 fi
16052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16054 else
16055   # Is the header compilable?
16056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16058 cat >conftest.$ac_ext <<_ACEOF
16059 /* confdefs.h.  */
16060 _ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h.  */
16064 $ac_includes_default
16065 #include <$ac_header>
16066 _ACEOF
16067 rm -f conftest.$ac_objext
16068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16069   (eval $ac_compile) 2>conftest.er1
16070   ac_status=$?
16071   grep -v '^ *+' conftest.er1 >conftest.err
16072   rm -f conftest.er1
16073   cat conftest.err >&5
16074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); } &&
16076          { ac_try='test -z "$ac_c_werror_flag"
16077                          || test ! -s conftest.err'
16078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079   (eval $ac_try) 2>&5
16080   ac_status=$?
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); }; } &&
16083          { ac_try='test -s conftest.$ac_objext'
16084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085   (eval $ac_try) 2>&5
16086   ac_status=$?
16087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088   (exit $ac_status); }; }; then
16089   ac_header_compiler=yes
16090 else
16091   echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16093
16094 ac_header_compiler=no
16095 fi
16096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16098 echo "${ECHO_T}$ac_header_compiler" >&6
16099
16100 # Is the header present?
16101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16103 cat >conftest.$ac_ext <<_ACEOF
16104 /* confdefs.h.  */
16105 _ACEOF
16106 cat confdefs.h >>conftest.$ac_ext
16107 cat >>conftest.$ac_ext <<_ACEOF
16108 /* end confdefs.h.  */
16109 #include <$ac_header>
16110 _ACEOF
16111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16112   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16113   ac_status=$?
16114   grep -v '^ *+' conftest.er1 >conftest.err
16115   rm -f conftest.er1
16116   cat conftest.err >&5
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); } >/dev/null; then
16119   if test -s conftest.err; then
16120     ac_cpp_err=$ac_c_preproc_warn_flag
16121     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16122   else
16123     ac_cpp_err=
16124   fi
16125 else
16126   ac_cpp_err=yes
16127 fi
16128 if test -z "$ac_cpp_err"; then
16129   ac_header_preproc=yes
16130 else
16131   echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16133
16134   ac_header_preproc=no
16135 fi
16136 rm -f conftest.err conftest.$ac_ext
16137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16138 echo "${ECHO_T}$ac_header_preproc" >&6
16139
16140 # So?  What about this header?
16141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16142   yes:no: )
16143     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16145     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16147     ac_header_preproc=yes
16148     ;;
16149   no:yes:* )
16150     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16152     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16153 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16154     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16156     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16157 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16160     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16162     (
16163       cat <<\_ASBOX
16164 ## --------------------------------------------- ##
16165 ## Report this to <http://www.openldap.org/its/> ##
16166 ## --------------------------------------------- ##
16167 _ASBOX
16168     ) |
16169       sed "s/^/$as_me: WARNING:     /" >&2
16170     ;;
16171 esac
16172 echo "$as_me:$LINENO: checking for $ac_header" >&5
16173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16175   echo $ECHO_N "(cached) $ECHO_C" >&6
16176 else
16177   eval "$as_ac_Header=\$ac_header_preproc"
16178 fi
16179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16181
16182 fi
16183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16184   cat >>confdefs.h <<_ACEOF
16185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16186 _ACEOF
16187
16188 fi
16189
16190 done
16191
16192 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16193                 -a "${ac_cv_header_poll_h}" = yes ; \
16194 then
16195         echo "$as_me:$LINENO: checking for /dev/poll" >&5
16196 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16197         if test "$cross_compiling" = yes; then
16198   echo "$as_me:$LINENO: result: no" >&5
16199 echo "${ECHO_T}no" >&6
16200 else
16201   cat >conftest.$ac_ext <<_ACEOF
16202 /* confdefs.h.  */
16203 _ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h.  */
16207 int main(int argc, char **argv)
16208 {
16209         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16210         exit (devpollfd == -1 ? 1 : 0);
16211 }
16212 _ACEOF
16213 rm -f conftest$ac_exeext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16215   (eval $ac_link) 2>&5
16216   ac_status=$?
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220   (eval $ac_try) 2>&5
16221   ac_status=$?
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); }; }; then
16224   echo "$as_me:$LINENO: result: yes" >&5
16225 echo "${ECHO_T}yes" >&6
16226
16227 cat >>confdefs.h <<\_ACEOF
16228 #define HAVE_DEVPOLL 1
16229 _ACEOF
16230
16231 else
16232   echo "$as_me: program exited with status $ac_status" >&5
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16235
16236 ( exit $ac_status )
16237 echo "$as_me:$LINENO: result: no" >&5
16238 echo "${ECHO_T}no" >&6
16239 fi
16240 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16241 fi
16242 fi
16243
16244 # strerror checks
16245 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16246 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16247 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16248   echo $ECHO_N "(cached) $ECHO_C" >&6
16249 else
16250
16251         cat >conftest.$ac_ext <<_ACEOF
16252 /* confdefs.h.  */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h.  */
16257
16258 #include <stdio.h>
16259 #include <sys/types.h>
16260 #include <errno.h>
16261 #ifdef _WIN32
16262 #include <stdlib.h>
16263 #endif
16264 int
16265 main ()
16266 {
16267 char *c = (char *) *sys_errlist
16268   ;
16269   return 0;
16270 }
16271 _ACEOF
16272 rm -f conftest.$ac_objext
16273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16274   (eval $ac_compile) 2>conftest.er1
16275   ac_status=$?
16276   grep -v '^ *+' conftest.er1 >conftest.err
16277   rm -f conftest.er1
16278   cat conftest.err >&5
16279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); } &&
16281          { ac_try='test -z "$ac_c_werror_flag"
16282                          || test ! -s conftest.err'
16283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284   (eval $ac_try) 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); }; } &&
16288          { ac_try='test -s conftest.$ac_objext'
16289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290   (eval $ac_try) 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); }; }; then
16294   ol_cv_dcl_sys_errlist=yes
16295         ol_cv_have_sys_errlist=yes
16296 else
16297   echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16299
16300 ol_cv_dcl_sys_errlist=no
16301 fi
16302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16303 fi
16304 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16305 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16306 #
16307 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16308 if test $ol_cv_dcl_sys_errlist = no ; then
16309
16310 cat >>confdefs.h <<\_ACEOF
16311 #define DECL_SYS_ERRLIST 1
16312 _ACEOF
16313
16314
16315         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16316 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16317 if test "${ol_cv_have_sys_errlist+set}" = set; then
16318   echo $ECHO_N "(cached) $ECHO_C" >&6
16319 else
16320
16321                 cat >conftest.$ac_ext <<_ACEOF
16322 /* confdefs.h.  */
16323 _ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h.  */
16327 #include <errno.h>
16328 int
16329 main ()
16330 {
16331 char *c = (char *) *sys_errlist
16332   ;
16333   return 0;
16334 }
16335 _ACEOF
16336 rm -f conftest.$ac_objext conftest$ac_exeext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16338   (eval $ac_link) 2>conftest.er1
16339   ac_status=$?
16340   grep -v '^ *+' conftest.er1 >conftest.err
16341   rm -f conftest.er1
16342   cat conftest.err >&5
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); } &&
16345          { ac_try='test -z "$ac_c_werror_flag"
16346                          || test ! -s conftest.err'
16347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348   (eval $ac_try) 2>&5
16349   ac_status=$?
16350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); }; } &&
16352          { ac_try='test -s conftest$ac_exeext'
16353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354   (eval $ac_try) 2>&5
16355   ac_status=$?
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); }; }; then
16358   ol_cv_have_sys_errlist=yes
16359 else
16360   echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16362
16363 ol_cv_have_sys_errlist=no
16364 fi
16365 rm -f conftest.err conftest.$ac_objext \
16366       conftest$ac_exeext conftest.$ac_ext
16367 fi
16368 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16369 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16370 fi
16371 if test $ol_cv_have_sys_errlist = yes ; then
16372
16373 cat >>confdefs.h <<\_ACEOF
16374 #define HAVE_SYS_ERRLIST 1
16375 _ACEOF
16376
16377 fi
16378
16379
16380 for ac_func in strerror strerror_r
16381 do
16382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16383 echo "$as_me:$LINENO: checking for $ac_func" >&5
16384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16385 if eval "test \"\${$as_ac_var+set}\" = set"; then
16386   echo $ECHO_N "(cached) $ECHO_C" >&6
16387 else
16388   cat >conftest.$ac_ext <<_ACEOF
16389 /* confdefs.h.  */
16390 _ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h.  */
16394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16396 #define $ac_func innocuous_$ac_func
16397
16398 /* System header to define __stub macros and hopefully few prototypes,
16399     which can conflict with char $ac_func (); below.
16400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16401     <limits.h> exists even on freestanding compilers.  */
16402
16403 #ifdef __STDC__
16404 # include <limits.h>
16405 #else
16406 # include <assert.h>
16407 #endif
16408
16409 #undef $ac_func
16410
16411 /* Override any gcc2 internal prototype to avoid an error.  */
16412 #ifdef __cplusplus
16413 extern "C"
16414 {
16415 #endif
16416 /* We use char because int might match the return type of a gcc2
16417    builtin and then its argument prototype would still apply.  */
16418 char $ac_func ();
16419 /* The GNU C library defines this for functions which it implements
16420     to always fail with ENOSYS.  Some functions are actually named
16421     something starting with __ and the normal name is an alias.  */
16422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16423 choke me
16424 #else
16425 char (*f) () = $ac_func;
16426 #endif
16427 #ifdef __cplusplus
16428 }
16429 #endif
16430
16431 int
16432 main ()
16433 {
16434 return f != $ac_func;
16435   ;
16436   return 0;
16437 }
16438 _ACEOF
16439 rm -f conftest.$ac_objext conftest$ac_exeext
16440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16441   (eval $ac_link) 2>conftest.er1
16442   ac_status=$?
16443   grep -v '^ *+' conftest.er1 >conftest.err
16444   rm -f conftest.er1
16445   cat conftest.err >&5
16446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447   (exit $ac_status); } &&
16448          { ac_try='test -z "$ac_c_werror_flag"
16449                          || test ! -s conftest.err'
16450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451   (eval $ac_try) 2>&5
16452   ac_status=$?
16453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454   (exit $ac_status); }; } &&
16455          { ac_try='test -s conftest$ac_exeext'
16456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457   (eval $ac_try) 2>&5
16458   ac_status=$?
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); }; }; then
16461   eval "$as_ac_var=yes"
16462 else
16463   echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16465
16466 eval "$as_ac_var=no"
16467 fi
16468 rm -f conftest.err conftest.$ac_objext \
16469       conftest$ac_exeext conftest.$ac_ext
16470 fi
16471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16473 if test `eval echo '${'$as_ac_var'}'` = yes; then
16474   cat >>confdefs.h <<_ACEOF
16475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16476 _ACEOF
16477
16478 fi
16479 done
16480
16481 ol_cv_func_strerror_r=no
16482 if test "${ac_cv_func_strerror_r}" = yes ; then
16483         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16484 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16485 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16486   echo $ECHO_N "(cached) $ECHO_C" >&6
16487 else
16488
16489         cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h.  */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h.  */
16495 #include <string.h>
16496 _ACEOF
16497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16498   $EGREP "strerror_r" >/dev/null 2>&1; then
16499   ol_decl_strerror_r=yes
16500 else
16501   ol_decl_strerror_r=no
16502 fi
16503 rm -f conftest*
16504
16505         if test $ol_decl_strerror_r = yes ; then
16506                 cat >conftest.$ac_ext <<_ACEOF
16507 /* confdefs.h.  */
16508 _ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h.  */
16512 #include <string.h>
16513 int
16514 main ()
16515 {
16516    /* from autoconf 2.59 */
16517                                 char buf[100];
16518                                 char x = *strerror_r (0, buf, sizeof buf);
16519                                 char *p = strerror_r (0, buf, sizeof buf);
16520
16521   ;
16522   return 0;
16523 }
16524 _ACEOF
16525 rm -f conftest.$ac_objext
16526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16527   (eval $ac_compile) 2>conftest.er1
16528   ac_status=$?
16529   grep -v '^ *+' conftest.er1 >conftest.err
16530   rm -f conftest.er1
16531   cat conftest.err >&5
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); } &&
16534          { ac_try='test -z "$ac_c_werror_flag"
16535                          || test ! -s conftest.err'
16536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537   (eval $ac_try) 2>&5
16538   ac_status=$?
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   (exit $ac_status); }; } &&
16541          { ac_try='test -s conftest.$ac_objext'
16542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16543   (eval $ac_try) 2>&5
16544   ac_status=$?
16545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546   (exit $ac_status); }; }; then
16547   ol_cv_nonposix_strerror_r=yes
16548 else
16549   echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16551
16552 ol_cv_nonposix_strerror_r=no
16553 fi
16554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16555         else
16556                 if test "$cross_compiling" = yes; then
16557   ol_cv_nonposix_strerror=no
16558 else
16559   cat >conftest.$ac_ext <<_ACEOF
16560 /* confdefs.h.  */
16561 _ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h.  */
16565
16566                         main() {
16567                                 char buf[100];
16568                                 buf[0] = 0;
16569                                 strerror_r( 1, buf, sizeof buf );
16570                                 exit( buf[0] == 0 );
16571                         }
16572
16573 _ACEOF
16574 rm -f conftest$ac_exeext
16575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16576   (eval $ac_link) 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581   (eval $ac_try) 2>&5
16582   ac_status=$?
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); }; }; then
16585   ol_cv_nonposix_strerror_r=yes
16586 else
16587   echo "$as_me: program exited with status $ac_status" >&5
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16590
16591 ( exit $ac_status )
16592 ol_cv_nonposix_strerror=no
16593 fi
16594 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16595 fi
16596         fi
16597
16598 fi
16599 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16600 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16601 if test $ol_cv_nonposix_strerror_r = yes ; then
16602
16603 cat >>confdefs.h <<\_ACEOF
16604 #define HAVE_NONPOSIX_STRERROR_R 1
16605 _ACEOF
16606
16607 fi
16608
16609 elif test "${ac_cv_func_strerror}" = no ; then
16610         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16611 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16612 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16613   echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615
16616         cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h.  */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h.  */
16622
16623 #include <stdio.h>
16624 #include <sys/types.h>
16625 #include <errno.h>
16626 #ifdef _WIN32
16627 #include <stdlib.h>
16628 #endif
16629 int
16630 main ()
16631 {
16632 char *c = (char *) *sys_errlist
16633   ;
16634   return 0;
16635 }
16636 _ACEOF
16637 rm -f conftest.$ac_objext
16638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16639   (eval $ac_compile) 2>conftest.er1
16640   ac_status=$?
16641   grep -v '^ *+' conftest.er1 >conftest.err
16642   rm -f conftest.er1
16643   cat conftest.err >&5
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); } &&
16646          { ac_try='test -z "$ac_c_werror_flag"
16647                          || test ! -s conftest.err'
16648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649   (eval $ac_try) 2>&5
16650   ac_status=$?
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); }; } &&
16653          { ac_try='test -s conftest.$ac_objext'
16654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655   (eval $ac_try) 2>&5
16656   ac_status=$?
16657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658   (exit $ac_status); }; }; then
16659   ol_cv_dcl_sys_errlist=yes
16660         ol_cv_have_sys_errlist=yes
16661 else
16662   echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16664
16665 ol_cv_dcl_sys_errlist=no
16666 fi
16667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16668 fi
16669 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16670 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16671 #
16672 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16673 if test $ol_cv_dcl_sys_errlist = no ; then
16674
16675 cat >>confdefs.h <<\_ACEOF
16676 #define DECL_SYS_ERRLIST 1
16677 _ACEOF
16678
16679
16680         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16681 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16682 if test "${ol_cv_have_sys_errlist+set}" = set; then
16683   echo $ECHO_N "(cached) $ECHO_C" >&6
16684 else
16685
16686                 cat >conftest.$ac_ext <<_ACEOF
16687 /* confdefs.h.  */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h.  */
16692 #include <errno.h>
16693 int
16694 main ()
16695 {
16696 char *c = (char *) *sys_errlist
16697   ;
16698   return 0;
16699 }
16700 _ACEOF
16701 rm -f conftest.$ac_objext conftest$ac_exeext
16702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16703   (eval $ac_link) 2>conftest.er1
16704   ac_status=$?
16705   grep -v '^ *+' conftest.er1 >conftest.err
16706   rm -f conftest.er1
16707   cat conftest.err >&5
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); } &&
16710          { ac_try='test -z "$ac_c_werror_flag"
16711                          || test ! -s conftest.err'
16712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713   (eval $ac_try) 2>&5
16714   ac_status=$?
16715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716   (exit $ac_status); }; } &&
16717          { ac_try='test -s conftest$ac_exeext'
16718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719   (eval $ac_try) 2>&5
16720   ac_status=$?
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); }; }; then
16723   ol_cv_have_sys_errlist=yes
16724 else
16725   echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16727
16728 ol_cv_have_sys_errlist=no
16729 fi
16730 rm -f conftest.err conftest.$ac_objext \
16731       conftest$ac_exeext conftest.$ac_ext
16732 fi
16733 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16734 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16735 fi
16736 if test $ol_cv_have_sys_errlist = yes ; then
16737
16738 cat >>confdefs.h <<\_ACEOF
16739 #define HAVE_SYS_ERRLIST 1
16740 _ACEOF
16741
16742 fi
16743
16744 fi
16745
16746
16747
16748 for ac_header in regex.h
16749 do
16750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16751 echo "$as_me:$LINENO: checking for $ac_header" >&5
16752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16754   echo $ECHO_N "(cached) $ECHO_C" >&6
16755 else
16756   cat >conftest.$ac_ext <<_ACEOF
16757 /* confdefs.h.  */
16758 _ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h.  */
16762 $ac_includes_default
16763 #ifdef HAVE_SYS_TYPES_H
16764 #include <sys/types.h>
16765 #endif
16766
16767
16768 #include <$ac_header>
16769 _ACEOF
16770 rm -f conftest.$ac_objext
16771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16772   (eval $ac_compile) 2>conftest.er1
16773   ac_status=$?
16774   grep -v '^ *+' conftest.er1 >conftest.err
16775   rm -f conftest.er1
16776   cat conftest.err >&5
16777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778   (exit $ac_status); } &&
16779          { ac_try='test -z "$ac_c_werror_flag"
16780                          || test ! -s conftest.err'
16781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782   (eval $ac_try) 2>&5
16783   ac_status=$?
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); }; } &&
16786          { ac_try='test -s conftest.$ac_objext'
16787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788   (eval $ac_try) 2>&5
16789   ac_status=$?
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); }; }; then
16792   eval "$as_ac_Header=yes"
16793 else
16794   echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16796
16797 eval "$as_ac_Header=no"
16798 fi
16799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16800 fi
16801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16804   cat >>confdefs.h <<_ACEOF
16805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16806 _ACEOF
16807
16808 fi
16809
16810 done
16811
16812
16813 if test "$ac_cv_header_regex_h" != yes ; then
16814         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16815 echo "$as_me: error: POSIX regex.h required." >&2;}
16816    { (exit 1); exit 1; }; }
16817 fi
16818 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16819 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16820 if test "${ac_cv_search_regfree+set}" = set; then
16821   echo $ECHO_N "(cached) $ECHO_C" >&6
16822 else
16823   ac_func_search_save_LIBS=$LIBS
16824 ac_cv_search_regfree=no
16825 cat >conftest.$ac_ext <<_ACEOF
16826 /* confdefs.h.  */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h.  */
16831
16832 /* Override any gcc2 internal prototype to avoid an error.  */
16833 #ifdef __cplusplus
16834 extern "C"
16835 #endif
16836 /* We use char because int might match the return type of a gcc2
16837    builtin and then its argument prototype would still apply.  */
16838 char regfree ();
16839 int
16840 main ()
16841 {
16842 regfree ();
16843   ;
16844   return 0;
16845 }
16846 _ACEOF
16847 rm -f conftest.$ac_objext conftest$ac_exeext
16848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16849   (eval $ac_link) 2>conftest.er1
16850   ac_status=$?
16851   grep -v '^ *+' conftest.er1 >conftest.err
16852   rm -f conftest.er1
16853   cat conftest.err >&5
16854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); } &&
16856          { ac_try='test -z "$ac_c_werror_flag"
16857                          || test ! -s conftest.err'
16858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859   (eval $ac_try) 2>&5
16860   ac_status=$?
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); }; } &&
16863          { ac_try='test -s conftest$ac_exeext'
16864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16865   (eval $ac_try) 2>&5
16866   ac_status=$?
16867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868   (exit $ac_status); }; }; then
16869   ac_cv_search_regfree="none required"
16870 else
16871   echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16873
16874 fi
16875 rm -f conftest.err conftest.$ac_objext \
16876       conftest$ac_exeext conftest.$ac_ext
16877 if test "$ac_cv_search_regfree" = no; then
16878   for ac_lib in regex gnuregex; do
16879     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16880     cat >conftest.$ac_ext <<_ACEOF
16881 /* confdefs.h.  */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h.  */
16886
16887 /* Override any gcc2 internal prototype to avoid an error.  */
16888 #ifdef __cplusplus
16889 extern "C"
16890 #endif
16891 /* We use char because int might match the return type of a gcc2
16892    builtin and then its argument prototype would still apply.  */
16893 char regfree ();
16894 int
16895 main ()
16896 {
16897 regfree ();
16898   ;
16899   return 0;
16900 }
16901 _ACEOF
16902 rm -f conftest.$ac_objext conftest$ac_exeext
16903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16904   (eval $ac_link) 2>conftest.er1
16905   ac_status=$?
16906   grep -v '^ *+' conftest.er1 >conftest.err
16907   rm -f conftest.er1
16908   cat conftest.err >&5
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); } &&
16911          { ac_try='test -z "$ac_c_werror_flag"
16912                          || test ! -s conftest.err'
16913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914   (eval $ac_try) 2>&5
16915   ac_status=$?
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); }; } &&
16918          { ac_try='test -s conftest$ac_exeext'
16919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920   (eval $ac_try) 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); }; }; then
16924   ac_cv_search_regfree="-l$ac_lib"
16925 break
16926 else
16927   echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16929
16930 fi
16931 rm -f conftest.err conftest.$ac_objext \
16932       conftest$ac_exeext conftest.$ac_ext
16933   done
16934 fi
16935 LIBS=$ac_func_search_save_LIBS
16936 fi
16937 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16938 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16939 if test "$ac_cv_search_regfree" != no; then
16940   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16941   :
16942 else
16943   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16944 echo "$as_me: error: POSIX regex required." >&2;}
16945    { (exit 1); exit 1; }; }
16946 fi
16947
16948
16949
16950 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16951 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16952 if test "${ol_cv_c_posix_regex+set}" = set; then
16953   echo $ECHO_N "(cached) $ECHO_C" >&6
16954 else
16955
16956         if test "$cross_compiling" = yes; then
16957   ol_cv_c_posix_regex=cross
16958 else
16959   cat >conftest.$ac_ext <<_ACEOF
16960 /* confdefs.h.  */
16961 _ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h.  */
16965
16966 #include <sys/types.h>
16967 #include <regex.h>
16968 static char *pattern, *string;
16969 main()
16970 {
16971         int rc;
16972         regex_t re;
16973
16974         pattern = "^A";
16975
16976         if(regcomp(&re, pattern, 0)) {
16977                 return -1;
16978         }
16979
16980         string = "ALL MATCH";
16981
16982         rc = regexec(&re, string, 0, (void*)0, 0);
16983
16984         regfree(&re);
16985
16986         return rc;
16987 }
16988 _ACEOF
16989 rm -f conftest$ac_exeext
16990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16991   (eval $ac_link) 2>&5
16992   ac_status=$?
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996   (eval $ac_try) 2>&5
16997   ac_status=$?
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); }; }; then
17000   ol_cv_c_posix_regex=yes
17001 else
17002   echo "$as_me: program exited with status $ac_status" >&5
17003 echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17005
17006 ( exit $ac_status )
17007 ol_cv_c_posix_regex=no
17008 fi
17009 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17010 fi
17011 fi
17012 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17013 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
17014
17015 if test "$ol_cv_c_posix_regex" = no ; then
17016         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17017 echo "$as_me: error: broken POSIX regex!" >&2;}
17018    { (exit 1); exit 1; }; }
17019 fi
17020
17021
17022 have_uuid=no
17023
17024 for ac_header in sys/uuid.h
17025 do
17026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17028   echo "$as_me:$LINENO: checking for $ac_header" >&5
17029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17031   echo $ECHO_N "(cached) $ECHO_C" >&6
17032 fi
17033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17035 else
17036   # Is the header compilable?
17037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17039 cat >conftest.$ac_ext <<_ACEOF
17040 /* confdefs.h.  */
17041 _ACEOF
17042 cat confdefs.h >>conftest.$ac_ext
17043 cat >>conftest.$ac_ext <<_ACEOF
17044 /* end confdefs.h.  */
17045 $ac_includes_default
17046 #include <$ac_header>
17047 _ACEOF
17048 rm -f conftest.$ac_objext
17049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17050   (eval $ac_compile) 2>conftest.er1
17051   ac_status=$?
17052   grep -v '^ *+' conftest.er1 >conftest.err
17053   rm -f conftest.er1
17054   cat conftest.err >&5
17055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056   (exit $ac_status); } &&
17057          { ac_try='test -z "$ac_c_werror_flag"
17058                          || test ! -s conftest.err'
17059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060   (eval $ac_try) 2>&5
17061   ac_status=$?
17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063   (exit $ac_status); }; } &&
17064          { ac_try='test -s conftest.$ac_objext'
17065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066   (eval $ac_try) 2>&5
17067   ac_status=$?
17068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069   (exit $ac_status); }; }; then
17070   ac_header_compiler=yes
17071 else
17072   echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17074
17075 ac_header_compiler=no
17076 fi
17077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17079 echo "${ECHO_T}$ac_header_compiler" >&6
17080
17081 # Is the header present?
17082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17084 cat >conftest.$ac_ext <<_ACEOF
17085 /* confdefs.h.  */
17086 _ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h.  */
17090 #include <$ac_header>
17091 _ACEOF
17092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17093   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
17100   if test -s conftest.err; then
17101     ac_cpp_err=$ac_c_preproc_warn_flag
17102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17103   else
17104     ac_cpp_err=
17105   fi
17106 else
17107   ac_cpp_err=yes
17108 fi
17109 if test -z "$ac_cpp_err"; then
17110   ac_header_preproc=yes
17111 else
17112   echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17114
17115   ac_header_preproc=no
17116 fi
17117 rm -f conftest.err conftest.$ac_ext
17118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17119 echo "${ECHO_T}$ac_header_preproc" >&6
17120
17121 # So?  What about this header?
17122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17123   yes:no: )
17124     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17128     ac_header_preproc=yes
17129     ;;
17130   no:yes:* )
17131     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17133     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17134 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17135     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17137     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17138 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17141     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17143     (
17144       cat <<\_ASBOX
17145 ## --------------------------------------------- ##
17146 ## Report this to <http://www.openldap.org/its/> ##
17147 ## --------------------------------------------- ##
17148 _ASBOX
17149     ) |
17150       sed "s/^/$as_me: WARNING:     /" >&2
17151     ;;
17152 esac
17153 echo "$as_me:$LINENO: checking for $ac_header" >&5
17154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17156   echo $ECHO_N "(cached) $ECHO_C" >&6
17157 else
17158   eval "$as_ac_Header=\$ac_header_preproc"
17159 fi
17160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17162
17163 fi
17164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17165   cat >>confdefs.h <<_ACEOF
17166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17167 _ACEOF
17168
17169 fi
17170
17171 done
17172
17173 if test $ac_cv_header_sys_uuid_h = yes ; then
17174         save_LIBS="$LIBS"
17175         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17176 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17177 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17178   echo $ECHO_N "(cached) $ECHO_C" >&6
17179 else
17180   ac_func_search_save_LIBS=$LIBS
17181 ac_cv_search_uuid_to_str=no
17182 cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h.  */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h.  */
17188
17189 /* Override any gcc2 internal prototype to avoid an error.  */
17190 #ifdef __cplusplus
17191 extern "C"
17192 #endif
17193 /* We use char because int might match the return type of a gcc2
17194    builtin and then its argument prototype would still apply.  */
17195 char uuid_to_str ();
17196 int
17197 main ()
17198 {
17199 uuid_to_str ();
17200   ;
17201   return 0;
17202 }
17203 _ACEOF
17204 rm -f conftest.$ac_objext conftest$ac_exeext
17205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17206   (eval $ac_link) 2>conftest.er1
17207   ac_status=$?
17208   grep -v '^ *+' conftest.er1 >conftest.err
17209   rm -f conftest.er1
17210   cat conftest.err >&5
17211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212   (exit $ac_status); } &&
17213          { ac_try='test -z "$ac_c_werror_flag"
17214                          || test ! -s conftest.err'
17215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216   (eval $ac_try) 2>&5
17217   ac_status=$?
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); }; } &&
17220          { ac_try='test -s conftest$ac_exeext'
17221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222   (eval $ac_try) 2>&5
17223   ac_status=$?
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); }; }; then
17226   ac_cv_search_uuid_to_str="none required"
17227 else
17228   echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17230
17231 fi
17232 rm -f conftest.err conftest.$ac_objext \
17233       conftest$ac_exeext conftest.$ac_ext
17234 if test "$ac_cv_search_uuid_to_str" = no; then
17235   for ac_lib in uuid; do
17236     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17237     cat >conftest.$ac_ext <<_ACEOF
17238 /* confdefs.h.  */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h.  */
17243
17244 /* Override any gcc2 internal prototype to avoid an error.  */
17245 #ifdef __cplusplus
17246 extern "C"
17247 #endif
17248 /* We use char because int might match the return type of a gcc2
17249    builtin and then its argument prototype would still apply.  */
17250 char uuid_to_str ();
17251 int
17252 main ()
17253 {
17254 uuid_to_str ();
17255   ;
17256   return 0;
17257 }
17258 _ACEOF
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17261   (eval $ac_link) 2>conftest.er1
17262   ac_status=$?
17263   grep -v '^ *+' conftest.er1 >conftest.err
17264   rm -f conftest.er1
17265   cat conftest.err >&5
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); } &&
17268          { ac_try='test -z "$ac_c_werror_flag"
17269                          || test ! -s conftest.err'
17270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271   (eval $ac_try) 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); }; } &&
17275          { ac_try='test -s conftest$ac_exeext'
17276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277   (eval $ac_try) 2>&5
17278   ac_status=$?
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); }; }; then
17281   ac_cv_search_uuid_to_str="-l$ac_lib"
17282 break
17283 else
17284   echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17286
17287 fi
17288 rm -f conftest.err conftest.$ac_objext \
17289       conftest$ac_exeext conftest.$ac_ext
17290   done
17291 fi
17292 LIBS=$ac_func_search_save_LIBS
17293 fi
17294 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17295 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17296 if test "$ac_cv_search_uuid_to_str" != no; then
17297   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17298   have_uuid=yes
17299 else
17300   :
17301 fi
17302
17303         LIBS="$save_LIBS"
17304
17305         if test have_uuid = yes ; then
17306
17307 cat >>confdefs.h <<\_ACEOF
17308 #define HAVE_UUID_TO_STR 1
17309 _ACEOF
17310
17311
17312                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17313                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17314         fi
17315 fi
17316
17317 if test $have_uuid = no ; then
17318
17319 for ac_header in uuid/uuid.h
17320 do
17321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17323   echo "$as_me:$LINENO: checking for $ac_header" >&5
17324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17326   echo $ECHO_N "(cached) $ECHO_C" >&6
17327 fi
17328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17330 else
17331   # Is the header compilable?
17332 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17334 cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h.  */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h.  */
17340 $ac_includes_default
17341 #include <$ac_header>
17342 _ACEOF
17343 rm -f conftest.$ac_objext
17344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17345   (eval $ac_compile) 2>conftest.er1
17346   ac_status=$?
17347   grep -v '^ *+' conftest.er1 >conftest.err
17348   rm -f conftest.er1
17349   cat conftest.err >&5
17350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351   (exit $ac_status); } &&
17352          { ac_try='test -z "$ac_c_werror_flag"
17353                          || test ! -s conftest.err'
17354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355   (eval $ac_try) 2>&5
17356   ac_status=$?
17357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358   (exit $ac_status); }; } &&
17359          { ac_try='test -s conftest.$ac_objext'
17360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361   (eval $ac_try) 2>&5
17362   ac_status=$?
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); }; }; then
17365   ac_header_compiler=yes
17366 else
17367   echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17369
17370 ac_header_compiler=no
17371 fi
17372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17374 echo "${ECHO_T}$ac_header_compiler" >&6
17375
17376 # Is the header present?
17377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17379 cat >conftest.$ac_ext <<_ACEOF
17380 /* confdefs.h.  */
17381 _ACEOF
17382 cat confdefs.h >>conftest.$ac_ext
17383 cat >>conftest.$ac_ext <<_ACEOF
17384 /* end confdefs.h.  */
17385 #include <$ac_header>
17386 _ACEOF
17387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17388   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
17395   if test -s conftest.err; then
17396     ac_cpp_err=$ac_c_preproc_warn_flag
17397     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17398   else
17399     ac_cpp_err=
17400   fi
17401 else
17402   ac_cpp_err=yes
17403 fi
17404 if test -z "$ac_cpp_err"; then
17405   ac_header_preproc=yes
17406 else
17407   echo "$as_me: failed program was:" >&5
17408 sed 's/^/| /' conftest.$ac_ext >&5
17409
17410   ac_header_preproc=no
17411 fi
17412 rm -f conftest.err conftest.$ac_ext
17413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17414 echo "${ECHO_T}$ac_header_preproc" >&6
17415
17416 # So?  What about this header?
17417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17418   yes:no: )
17419     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17423     ac_header_preproc=yes
17424     ;;
17425   no:yes:* )
17426     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17428     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17429 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17430     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17432     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17433 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17436     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17438     (
17439       cat <<\_ASBOX
17440 ## --------------------------------------------- ##
17441 ## Report this to <http://www.openldap.org/its/> ##
17442 ## --------------------------------------------- ##
17443 _ASBOX
17444     ) |
17445       sed "s/^/$as_me: WARNING:     /" >&2
17446     ;;
17447 esac
17448 echo "$as_me:$LINENO: checking for $ac_header" >&5
17449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17451   echo $ECHO_N "(cached) $ECHO_C" >&6
17452 else
17453   eval "$as_ac_Header=\$ac_header_preproc"
17454 fi
17455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17457
17458 fi
17459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17460   cat >>confdefs.h <<_ACEOF
17461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17462 _ACEOF
17463
17464 fi
17465
17466 done
17467
17468         if test $ac_cv_header_uuid_uuid_h = yes ; then
17469                 save_LIBS="$LIBS"
17470                 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17471 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17472 if test "${ac_cv_search_uuid_generate+set}" = set; then
17473   echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475   ac_func_search_save_LIBS=$LIBS
17476 ac_cv_search_uuid_generate=no
17477 cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h.  */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h.  */
17483
17484 /* Override any gcc2 internal prototype to avoid an error.  */
17485 #ifdef __cplusplus
17486 extern "C"
17487 #endif
17488 /* We use char because int might match the return type of a gcc2
17489    builtin and then its argument prototype would still apply.  */
17490 char uuid_generate ();
17491 int
17492 main ()
17493 {
17494 uuid_generate ();
17495   ;
17496   return 0;
17497 }
17498 _ACEOF
17499 rm -f conftest.$ac_objext conftest$ac_exeext
17500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17501   (eval $ac_link) 2>conftest.er1
17502   ac_status=$?
17503   grep -v '^ *+' conftest.er1 >conftest.err
17504   rm -f conftest.er1
17505   cat conftest.err >&5
17506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507   (exit $ac_status); } &&
17508          { ac_try='test -z "$ac_c_werror_flag"
17509                          || test ! -s conftest.err'
17510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511   (eval $ac_try) 2>&5
17512   ac_status=$?
17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); }; } &&
17515          { ac_try='test -s conftest$ac_exeext'
17516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517   (eval $ac_try) 2>&5
17518   ac_status=$?
17519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520   (exit $ac_status); }; }; then
17521   ac_cv_search_uuid_generate="none required"
17522 else
17523   echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17525
17526 fi
17527 rm -f conftest.err conftest.$ac_objext \
17528       conftest$ac_exeext conftest.$ac_ext
17529 if test "$ac_cv_search_uuid_generate" = no; then
17530   for ac_lib in uuid; do
17531     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17532     cat >conftest.$ac_ext <<_ACEOF
17533 /* confdefs.h.  */
17534 _ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h.  */
17538
17539 /* Override any gcc2 internal prototype to avoid an error.  */
17540 #ifdef __cplusplus
17541 extern "C"
17542 #endif
17543 /* We use char because int might match the return type of a gcc2
17544    builtin and then its argument prototype would still apply.  */
17545 char uuid_generate ();
17546 int
17547 main ()
17548 {
17549 uuid_generate ();
17550   ;
17551   return 0;
17552 }
17553 _ACEOF
17554 rm -f conftest.$ac_objext conftest$ac_exeext
17555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17556   (eval $ac_link) 2>conftest.er1
17557   ac_status=$?
17558   grep -v '^ *+' conftest.er1 >conftest.err
17559   rm -f conftest.er1
17560   cat conftest.err >&5
17561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562   (exit $ac_status); } &&
17563          { ac_try='test -z "$ac_c_werror_flag"
17564                          || test ! -s conftest.err'
17565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566   (eval $ac_try) 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; } &&
17570          { ac_try='test -s conftest$ac_exeext'
17571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572   (eval $ac_try) 2>&5
17573   ac_status=$?
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); }; }; then
17576   ac_cv_search_uuid_generate="-l$ac_lib"
17577 break
17578 else
17579   echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17581
17582 fi
17583 rm -f conftest.err conftest.$ac_objext \
17584       conftest$ac_exeext conftest.$ac_ext
17585   done
17586 fi
17587 LIBS=$ac_func_search_save_LIBS
17588 fi
17589 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17590 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17591 if test "$ac_cv_search_uuid_generate" != no; then
17592   test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17593   have_uuid=yes
17594 else
17595   :
17596 fi
17597
17598                 LIBS="$save_LIBS"
17599
17600                 if test have_uuid = yes ; then
17601
17602 cat >>confdefs.h <<\_ACEOF
17603 #define HAVE_UUID_GENERATE 1
17604 _ACEOF
17605
17606
17607                         test "$ac_cv_search_uuid_generate" = "none required" || \
17608                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17609                 fi
17610         fi
17611 fi
17612
17613 if test $have_uuid = no ; then
17614         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17615 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17616         save_LIBS="$LIBS"
17617         LIBS="$LIBS -lrpcrt4"
17618         cat >conftest.$ac_ext <<_ACEOF
17619 /* confdefs.h.  */
17620 _ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h.  */
17624
17625                 int __stdcall UuidCreate(void *);
17626                 int __stdcall UuidToStringA(void *,void **);
17627
17628 int
17629 main ()
17630 {
17631
17632                 UuidCreate(0);
17633                 UuidToStringA(0,0);
17634
17635   ;
17636   return 0;
17637 }
17638 _ACEOF
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17641   (eval $ac_link) 2>conftest.er1
17642   ac_status=$?
17643   grep -v '^ *+' conftest.er1 >conftest.err
17644   rm -f conftest.er1
17645   cat conftest.err >&5
17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647   (exit $ac_status); } &&
17648          { ac_try='test -z "$ac_c_werror_flag"
17649                          || test ! -s conftest.err'
17650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651   (eval $ac_try) 2>&5
17652   ac_status=$?
17653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654   (exit $ac_status); }; } &&
17655          { ac_try='test -s conftest$ac_exeext'
17656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657   (eval $ac_try) 2>&5
17658   ac_status=$?
17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660   (exit $ac_status); }; }; then
17661   need_rpcrt=yes
17662 else
17663   echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17665
17666 need_rpcrt=no
17667 fi
17668 rm -f conftest.err conftest.$ac_objext \
17669       conftest$ac_exeext conftest.$ac_ext
17670         if test $need_rpcrt = yes; then
17671                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17672         fi
17673         LIBS="$save_LIBS"
17674         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17675 echo "${ECHO_T}$need_rpcrt" >&6
17676 fi
17677
17678 ol_cv_lib_resolver=no
17679 if test $ol_cv_lib_resolver = no ; then
17680         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17681 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17682 if test "${ol_cv_resolver_none+set}" = set; then
17683   echo $ECHO_N "(cached) $ECHO_C" >&6
17684 else
17685
17686         ol_RESOLVER_LIB=
17687         ol_LIBS=$LIBS
17688         LIBS="$ol_RESOLVER_LIB $LIBS"
17689
17690         cat >conftest.$ac_ext <<_ACEOF
17691 /* confdefs.h.  */
17692 _ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h.  */
17696
17697 #ifdef HAVE_SYS_TYPES_H
17698 #       include <sys/types.h>
17699 #endif
17700 #include <netinet/in.h>
17701 #ifdef HAVE_ARPA_NAMESER_H
17702 #       include <arpa/nameser.h>
17703 #endif
17704 #ifdef HAVE_RESOLV_H
17705 #       include <resolv.h>
17706 #endif
17707
17708 int
17709 main ()
17710 {
17711 {
17712         int len, status;
17713         char *request = NULL;
17714         unsigned char reply[64*1024];
17715         unsigned char host[64*1024];
17716         unsigned char *p;
17717
17718 #ifdef NS_HFIXEDSZ
17719         /* Bind 8/9 interface */
17720         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17721 #else
17722         /* Bind 4 interface */
17723 # ifndef T_SRV
17724 #  define T_SRV 33
17725 # endif
17726         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17727 #endif
17728         p = reply;
17729 #ifdef NS_HFIXEDSZ
17730         /* Bind 8/9 interface */
17731         p += NS_HFIXEDSZ;
17732 #elif defined(HFIXEDSZ)
17733         /* Bind 4 interface w/ HFIXEDSZ */
17734         p += HFIXEDSZ;
17735 #else
17736         /* Bind 4 interface w/o HFIXEDSZ */
17737         p += sizeof(HEADER);
17738 #endif
17739         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17740 }
17741   ;
17742   return 0;
17743 }
17744 _ACEOF
17745 rm -f conftest.$ac_objext conftest$ac_exeext
17746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17747   (eval $ac_link) 2>conftest.er1
17748   ac_status=$?
17749   grep -v '^ *+' conftest.er1 >conftest.err
17750   rm -f conftest.er1
17751   cat conftest.err >&5
17752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753   (exit $ac_status); } &&
17754          { ac_try='test -z "$ac_c_werror_flag"
17755                          || test ! -s conftest.err'
17756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757   (eval $ac_try) 2>&5
17758   ac_status=$?
17759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760   (exit $ac_status); }; } &&
17761          { ac_try='test -s conftest$ac_exeext'
17762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763   (eval $ac_try) 2>&5
17764   ac_status=$?
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); }; }; then
17767   ol_cv_resolver_none=yes
17768 else
17769   echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17771
17772 ol_cv_resolver_none=no
17773 fi
17774 rm -f conftest.err conftest.$ac_objext \
17775       conftest$ac_exeext conftest.$ac_ext
17776
17777         LIBS="$ol_LIBS"
17778
17779 fi
17780 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17781 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17782
17783         if test $ol_cv_resolver_none = yes ; then
17784                 ol_cv_lib_resolver=yes
17785         fi
17786 fi
17787
17788 if test $ol_cv_lib_resolver = no ; then
17789         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17790 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17791 if test "${ol_cv_resolver_resolv+set}" = set; then
17792   echo $ECHO_N "(cached) $ECHO_C" >&6
17793 else
17794
17795         ol_RESOLVER_LIB=-lresolv
17796         ol_LIBS=$LIBS
17797         LIBS="$ol_RESOLVER_LIB $LIBS"
17798
17799         cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h.  */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h.  */
17805
17806 #ifdef HAVE_SYS_TYPES_H
17807 #       include <sys/types.h>
17808 #endif
17809 #include <netinet/in.h>
17810 #ifdef HAVE_ARPA_NAMESER_H
17811 #       include <arpa/nameser.h>
17812 #endif
17813 #ifdef HAVE_RESOLV_H
17814 #       include <resolv.h>
17815 #endif
17816
17817 int
17818 main ()
17819 {
17820 {
17821         int len, status;
17822         char *request = NULL;
17823         unsigned char reply[64*1024];
17824         unsigned char host[64*1024];
17825         unsigned char *p;
17826
17827 #ifdef NS_HFIXEDSZ
17828         /* Bind 8/9 interface */
17829         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17830 #else
17831         /* Bind 4 interface */
17832 # ifndef T_SRV
17833 #  define T_SRV 33
17834 # endif
17835         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17836 #endif
17837         p = reply;
17838 #ifdef NS_HFIXEDSZ
17839         /* Bind 8/9 interface */
17840         p += NS_HFIXEDSZ;
17841 #elif defined(HFIXEDSZ)
17842         /* Bind 4 interface w/ HFIXEDSZ */
17843         p += HFIXEDSZ;
17844 #else
17845         /* Bind 4 interface w/o HFIXEDSZ */
17846         p += sizeof(HEADER);
17847 #endif
17848         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17849 }
17850   ;
17851   return 0;
17852 }
17853 _ACEOF
17854 rm -f conftest.$ac_objext conftest$ac_exeext
17855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17856   (eval $ac_link) 2>conftest.er1
17857   ac_status=$?
17858   grep -v '^ *+' conftest.er1 >conftest.err
17859   rm -f conftest.er1
17860   cat conftest.err >&5
17861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); } &&
17863          { ac_try='test -z "$ac_c_werror_flag"
17864                          || test ! -s conftest.err'
17865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866   (eval $ac_try) 2>&5
17867   ac_status=$?
17868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869   (exit $ac_status); }; } &&
17870          { ac_try='test -s conftest$ac_exeext'
17871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872   (eval $ac_try) 2>&5
17873   ac_status=$?
17874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875   (exit $ac_status); }; }; then
17876   ol_cv_resolver_resolv=yes
17877 else
17878   echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17880
17881 ol_cv_resolver_resolv=no
17882 fi
17883 rm -f conftest.err conftest.$ac_objext \
17884       conftest$ac_exeext conftest.$ac_ext
17885
17886         LIBS="$ol_LIBS"
17887
17888 fi
17889 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17890 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17891
17892         if test $ol_cv_resolver_resolv = yes ; then
17893                 ol_cv_lib_resolver=-lresolv
17894         fi
17895 fi
17896
17897 if test $ol_cv_lib_resolver = no ; then
17898         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17899 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17900 if test "${ol_cv_resolver_bind+set}" = set; then
17901   echo $ECHO_N "(cached) $ECHO_C" >&6
17902 else
17903
17904         ol_RESOLVER_LIB=-lbind
17905         ol_LIBS=$LIBS
17906         LIBS="$ol_RESOLVER_LIB $LIBS"
17907
17908         cat >conftest.$ac_ext <<_ACEOF
17909 /* confdefs.h.  */
17910 _ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h.  */
17914
17915 #ifdef HAVE_SYS_TYPES_H
17916 #       include <sys/types.h>
17917 #endif
17918 #include <netinet/in.h>
17919 #ifdef HAVE_ARPA_NAMESER_H
17920 #       include <arpa/nameser.h>
17921 #endif
17922 #ifdef HAVE_RESOLV_H
17923 #       include <resolv.h>
17924 #endif
17925
17926 int
17927 main ()
17928 {
17929 {
17930         int len, status;
17931         char *request = NULL;
17932         unsigned char reply[64*1024];
17933         unsigned char host[64*1024];
17934         unsigned char *p;
17935
17936 #ifdef NS_HFIXEDSZ
17937         /* Bind 8/9 interface */
17938         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17939 #else
17940         /* Bind 4 interface */
17941 # ifndef T_SRV
17942 #  define T_SRV 33
17943 # endif
17944         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17945 #endif
17946         p = reply;
17947 #ifdef NS_HFIXEDSZ
17948         /* Bind 8/9 interface */
17949         p += NS_HFIXEDSZ;
17950 #elif defined(HFIXEDSZ)
17951         /* Bind 4 interface w/ HFIXEDSZ */
17952         p += HFIXEDSZ;
17953 #else
17954         /* Bind 4 interface w/o HFIXEDSZ */
17955         p += sizeof(HEADER);
17956 #endif
17957         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17958 }
17959   ;
17960   return 0;
17961 }
17962 _ACEOF
17963 rm -f conftest.$ac_objext conftest$ac_exeext
17964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17965   (eval $ac_link) 2>conftest.er1
17966   ac_status=$?
17967   grep -v '^ *+' conftest.er1 >conftest.err
17968   rm -f conftest.er1
17969   cat conftest.err >&5
17970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971   (exit $ac_status); } &&
17972          { ac_try='test -z "$ac_c_werror_flag"
17973                          || test ! -s conftest.err'
17974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975   (eval $ac_try) 2>&5
17976   ac_status=$?
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); }; } &&
17979          { ac_try='test -s conftest$ac_exeext'
17980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981   (eval $ac_try) 2>&5
17982   ac_status=$?
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); }; }; then
17985   ol_cv_resolver_bind=yes
17986 else
17987   echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17989
17990 ol_cv_resolver_bind=no
17991 fi
17992 rm -f conftest.err conftest.$ac_objext \
17993       conftest$ac_exeext conftest.$ac_ext
17994
17995         LIBS="$ol_LIBS"
17996
17997 fi
17998 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17999 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
18000
18001         if test $ol_cv_resolver_bind = yes ; then
18002                 ol_cv_lib_resolver=-lbind
18003         fi
18004 fi
18005
18006
18007
18008 ol_link_dnssrv=no
18009 if test "$ol_cv_lib_resolver" != no ; then
18010
18011 cat >>confdefs.h <<\_ACEOF
18012 #define HAVE_RES_QUERY 1
18013 _ACEOF
18014
18015
18016         if test "$ol_enable_dnssrv" != no ; then
18017                 ol_link_dnssrv=yes
18018         fi
18019
18020         if test "$ol_cv_lib_resolver" != yes ; then
18021                 LIBS="$ol_cv_lib_resolver $LIBS"
18022         fi
18023 fi
18024
18025 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18026         if test "$ol_link_dnssrv" = no ; then
18027                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18028 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18029    { (exit 1); exit 1; }; }
18030         fi
18031 else
18032         ol_enable_dnssrv=no
18033 fi
18034
18035
18036 for ac_func in hstrerror
18037 do
18038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18039 echo "$as_me:$LINENO: checking for $ac_func" >&5
18040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18041 if eval "test \"\${$as_ac_var+set}\" = set"; then
18042   echo $ECHO_N "(cached) $ECHO_C" >&6
18043 else
18044   cat >conftest.$ac_ext <<_ACEOF
18045 /* confdefs.h.  */
18046 _ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h.  */
18050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18052 #define $ac_func innocuous_$ac_func
18053
18054 /* System header to define __stub macros and hopefully few prototypes,
18055     which can conflict with char $ac_func (); below.
18056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18057     <limits.h> exists even on freestanding compilers.  */
18058
18059 #ifdef __STDC__
18060 # include <limits.h>
18061 #else
18062 # include <assert.h>
18063 #endif
18064
18065 #undef $ac_func
18066
18067 /* Override any gcc2 internal prototype to avoid an error.  */
18068 #ifdef __cplusplus
18069 extern "C"
18070 {
18071 #endif
18072 /* We use char because int might match the return type of a gcc2
18073    builtin and then its argument prototype would still apply.  */
18074 char $ac_func ();
18075 /* The GNU C library defines this for functions which it implements
18076     to always fail with ENOSYS.  Some functions are actually named
18077     something starting with __ and the normal name is an alias.  */
18078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18079 choke me
18080 #else
18081 char (*f) () = $ac_func;
18082 #endif
18083 #ifdef __cplusplus
18084 }
18085 #endif
18086
18087 int
18088 main ()
18089 {
18090 return f != $ac_func;
18091   ;
18092   return 0;
18093 }
18094 _ACEOF
18095 rm -f conftest.$ac_objext conftest$ac_exeext
18096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18097   (eval $ac_link) 2>conftest.er1
18098   ac_status=$?
18099   grep -v '^ *+' conftest.er1 >conftest.err
18100   rm -f conftest.er1
18101   cat conftest.err >&5
18102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103   (exit $ac_status); } &&
18104          { ac_try='test -z "$ac_c_werror_flag"
18105                          || test ! -s conftest.err'
18106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107   (eval $ac_try) 2>&5
18108   ac_status=$?
18109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110   (exit $ac_status); }; } &&
18111          { ac_try='test -s conftest$ac_exeext'
18112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113   (eval $ac_try) 2>&5
18114   ac_status=$?
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); }; }; then
18117   eval "$as_ac_var=yes"
18118 else
18119   echo "$as_me: failed program was:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18121
18122 eval "$as_ac_var=no"
18123 fi
18124 rm -f conftest.err conftest.$ac_objext \
18125       conftest$ac_exeext conftest.$ac_ext
18126 fi
18127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18129 if test `eval echo '${'$as_ac_var'}'` = yes; then
18130   cat >>confdefs.h <<_ACEOF
18131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18132 _ACEOF
18133
18134 fi
18135 done
18136
18137
18138
18139
18140
18141
18142 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18143 do
18144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18145 echo "$as_me:$LINENO: checking for $ac_func" >&5
18146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18147 if eval "test \"\${$as_ac_var+set}\" = set"; then
18148   echo $ECHO_N "(cached) $ECHO_C" >&6
18149 else
18150   cat >conftest.$ac_ext <<_ACEOF
18151 /* confdefs.h.  */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h.  */
18156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18158 #define $ac_func innocuous_$ac_func
18159
18160 /* System header to define __stub macros and hopefully few prototypes,
18161     which can conflict with char $ac_func (); below.
18162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18163     <limits.h> exists even on freestanding compilers.  */
18164
18165 #ifdef __STDC__
18166 # include <limits.h>
18167 #else
18168 # include <assert.h>
18169 #endif
18170
18171 #undef $ac_func
18172
18173 /* Override any gcc2 internal prototype to avoid an error.  */
18174 #ifdef __cplusplus
18175 extern "C"
18176 {
18177 #endif
18178 /* We use char because int might match the return type of a gcc2
18179    builtin and then its argument prototype would still apply.  */
18180 char $ac_func ();
18181 /* The GNU C library defines this for functions which it implements
18182     to always fail with ENOSYS.  Some functions are actually named
18183     something starting with __ and the normal name is an alias.  */
18184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18185 choke me
18186 #else
18187 char (*f) () = $ac_func;
18188 #endif
18189 #ifdef __cplusplus
18190 }
18191 #endif
18192
18193 int
18194 main ()
18195 {
18196 return f != $ac_func;
18197   ;
18198   return 0;
18199 }
18200 _ACEOF
18201 rm -f conftest.$ac_objext conftest$ac_exeext
18202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18203   (eval $ac_link) 2>conftest.er1
18204   ac_status=$?
18205   grep -v '^ *+' conftest.er1 >conftest.err
18206   rm -f conftest.er1
18207   cat conftest.err >&5
18208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209   (exit $ac_status); } &&
18210          { ac_try='test -z "$ac_c_werror_flag"
18211                          || test ! -s conftest.err'
18212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213   (eval $ac_try) 2>&5
18214   ac_status=$?
18215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); }; } &&
18217          { ac_try='test -s conftest$ac_exeext'
18218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219   (eval $ac_try) 2>&5
18220   ac_status=$?
18221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222   (exit $ac_status); }; }; then
18223   eval "$as_ac_var=yes"
18224 else
18225   echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18227
18228 eval "$as_ac_var=no"
18229 fi
18230 rm -f conftest.err conftest.$ac_objext \
18231       conftest$ac_exeext conftest.$ac_ext
18232 fi
18233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18235 if test `eval echo '${'$as_ac_var'}'` = yes; then
18236   cat >>confdefs.h <<_ACEOF
18237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18238 _ACEOF
18239
18240 fi
18241 done
18242
18243
18244 ol_link_ipv6=no
18245 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18246         if test $ol_enable_ipv6 = yes ; then
18247                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18248 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18249    { (exit 1); exit 1; }; }
18250         fi
18251 elif test $ol_enable_ipv6 != no ; then
18252         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18253 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18254 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18255   echo $ECHO_N "(cached) $ECHO_C" >&6
18256 else
18257
18258                 cat >conftest.$ac_ext <<_ACEOF
18259 /* confdefs.h.  */
18260 _ACEOF
18261 cat confdefs.h >>conftest.$ac_ext
18262 cat >>conftest.$ac_ext <<_ACEOF
18263 /* end confdefs.h.  */
18264
18265 #                       include <netinet/in.h>
18266 #                       ifdef INET6_ADDRSTRLEN
18267                                 __has_inet6_addrstrlen__;
18268 #                       endif
18269
18270 _ACEOF
18271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18272   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18273   ol_cv_inet6_addrstrlen=yes
18274 else
18275   ol_cv_inet6_addrstrlen=no
18276 fi
18277 rm -f conftest*
18278
18279 fi
18280 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18281 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18282
18283
18284         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18285 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18286 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18287   echo $ECHO_N "(cached) $ECHO_C" >&6
18288 else
18289
18290                 cat >conftest.$ac_ext <<_ACEOF
18291 /* confdefs.h.  */
18292 _ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h.  */
18296
18297 #include <sys/types.h>
18298 #include <sys/socket.h>
18299
18300 int
18301 main ()
18302 {
18303
18304                         struct sockaddr_storage ss;
18305
18306   ;
18307   return 0;
18308 }
18309 _ACEOF
18310 rm -f conftest.$ac_objext
18311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18312   (eval $ac_compile) 2>conftest.er1
18313   ac_status=$?
18314   grep -v '^ *+' conftest.er1 >conftest.err
18315   rm -f conftest.er1
18316   cat conftest.err >&5
18317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318   (exit $ac_status); } &&
18319          { ac_try='test -z "$ac_c_werror_flag"
18320                          || test ! -s conftest.err'
18321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322   (eval $ac_try) 2>&5
18323   ac_status=$?
18324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325   (exit $ac_status); }; } &&
18326          { ac_try='test -s conftest.$ac_objext'
18327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18328   (eval $ac_try) 2>&5
18329   ac_status=$?
18330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331   (exit $ac_status); }; }; then
18332   ol_cv_struct_sockaddr_storage=yes
18333 else
18334   echo "$as_me: failed program was:" >&5
18335 sed 's/^/| /' conftest.$ac_ext >&5
18336
18337 ol_cv_struct_sockaddr_storage=no
18338 fi
18339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18340 fi
18341 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18342 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18343
18344         if test $ol_cv_inet6_addrstrlen = yes &&
18345            test $ol_cv_struct_sockaddr_storage = yes ; then
18346                 ol_link_ipv6=yes
18347         elif test $ol_enable_ipv6 = yes &&
18348              test $ol_cv_inet6_addrstrlen = no ; then
18349                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18350 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18351    { (exit 1); exit 1; }; }
18352         elif test $ol_enable_ipv6 = yes &&
18353              test $ol_cv_struct_sockaddr_storage = no ; then
18354                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18355 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18356    { (exit 1); exit 1; }; }
18357         fi
18358 fi
18359
18360 if test $ol_enable_local != no ; then
18361
18362 for ac_header in sys/un.h
18363 do
18364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18366   echo "$as_me:$LINENO: checking for $ac_header" >&5
18367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18369   echo $ECHO_N "(cached) $ECHO_C" >&6
18370 fi
18371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18373 else
18374   # Is the header compilable?
18375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18377 cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h.  */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h.  */
18383 $ac_includes_default
18384 #include <$ac_header>
18385 _ACEOF
18386 rm -f conftest.$ac_objext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18388   (eval $ac_compile) 2>conftest.er1
18389   ac_status=$?
18390   grep -v '^ *+' conftest.er1 >conftest.err
18391   rm -f conftest.er1
18392   cat conftest.err >&5
18393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394   (exit $ac_status); } &&
18395          { ac_try='test -z "$ac_c_werror_flag"
18396                          || test ! -s conftest.err'
18397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398   (eval $ac_try) 2>&5
18399   ac_status=$?
18400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401   (exit $ac_status); }; } &&
18402          { ac_try='test -s conftest.$ac_objext'
18403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404   (eval $ac_try) 2>&5
18405   ac_status=$?
18406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407   (exit $ac_status); }; }; then
18408   ac_header_compiler=yes
18409 else
18410   echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18412
18413 ac_header_compiler=no
18414 fi
18415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18417 echo "${ECHO_T}$ac_header_compiler" >&6
18418
18419 # Is the header present?
18420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18422 cat >conftest.$ac_ext <<_ACEOF
18423 /* confdefs.h.  */
18424 _ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h.  */
18428 #include <$ac_header>
18429 _ACEOF
18430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18432   ac_status=$?
18433   grep -v '^ *+' conftest.er1 >conftest.err
18434   rm -f conftest.er1
18435   cat conftest.err >&5
18436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437   (exit $ac_status); } >/dev/null; then
18438   if test -s conftest.err; then
18439     ac_cpp_err=$ac_c_preproc_warn_flag
18440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18441   else
18442     ac_cpp_err=
18443   fi
18444 else
18445   ac_cpp_err=yes
18446 fi
18447 if test -z "$ac_cpp_err"; then
18448   ac_header_preproc=yes
18449 else
18450   echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18452
18453   ac_header_preproc=no
18454 fi
18455 rm -f conftest.err conftest.$ac_ext
18456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18457 echo "${ECHO_T}$ac_header_preproc" >&6
18458
18459 # So?  What about this header?
18460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18461   yes:no: )
18462     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18466     ac_header_preproc=yes
18467     ;;
18468   no:yes:* )
18469     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18471     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18472 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18473     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18475     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18476 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18479     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18481     (
18482       cat <<\_ASBOX
18483 ## --------------------------------------------- ##
18484 ## Report this to <http://www.openldap.org/its/> ##
18485 ## --------------------------------------------- ##
18486 _ASBOX
18487     ) |
18488       sed "s/^/$as_me: WARNING:     /" >&2
18489     ;;
18490 esac
18491 echo "$as_me:$LINENO: checking for $ac_header" >&5
18492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18494   echo $ECHO_N "(cached) $ECHO_C" >&6
18495 else
18496   eval "$as_ac_Header=\$ac_header_preproc"
18497 fi
18498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18500
18501 fi
18502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18503   cat >>confdefs.h <<_ACEOF
18504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18505 _ACEOF
18506
18507 fi
18508
18509 done
18510
18511
18512         if test $ol_enable_local = auto ; then
18513                 ol_enable_local=$ac_cv_header_sys_un_h
18514         elif test $ac_cv_header_sys_un_h = no ; then
18515                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18516 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18517    { (exit 1); exit 1; }; }
18518         fi
18519 fi
18520
18521
18522 if test $ol_with_tls = yes ; then
18523         ol_with_tls=auto
18524 fi
18525
18526 ol_link_tls=no
18527 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
18528
18529 for ac_header in openssl/ssl.h
18530 do
18531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18533   echo "$as_me:$LINENO: checking for $ac_header" >&5
18534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18536   echo $ECHO_N "(cached) $ECHO_C" >&6
18537 fi
18538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18540 else
18541   # Is the header compilable?
18542 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18544 cat >conftest.$ac_ext <<_ACEOF
18545 /* confdefs.h.  */
18546 _ACEOF
18547 cat confdefs.h >>conftest.$ac_ext
18548 cat >>conftest.$ac_ext <<_ACEOF
18549 /* end confdefs.h.  */
18550 $ac_includes_default
18551 #include <$ac_header>
18552 _ACEOF
18553 rm -f conftest.$ac_objext
18554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18555   (eval $ac_compile) 2>conftest.er1
18556   ac_status=$?
18557   grep -v '^ *+' conftest.er1 >conftest.err
18558   rm -f conftest.er1
18559   cat conftest.err >&5
18560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561   (exit $ac_status); } &&
18562          { ac_try='test -z "$ac_c_werror_flag"
18563                          || test ! -s conftest.err'
18564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565   (eval $ac_try) 2>&5
18566   ac_status=$?
18567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568   (exit $ac_status); }; } &&
18569          { ac_try='test -s conftest.$ac_objext'
18570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571   (eval $ac_try) 2>&5
18572   ac_status=$?
18573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574   (exit $ac_status); }; }; then
18575   ac_header_compiler=yes
18576 else
18577   echo "$as_me: failed program was:" >&5
18578 sed 's/^/| /' conftest.$ac_ext >&5
18579
18580 ac_header_compiler=no
18581 fi
18582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18584 echo "${ECHO_T}$ac_header_compiler" >&6
18585
18586 # Is the header present?
18587 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18589 cat >conftest.$ac_ext <<_ACEOF
18590 /* confdefs.h.  */
18591 _ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h.  */
18595 #include <$ac_header>
18596 _ACEOF
18597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18598   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
18605   if test -s conftest.err; then
18606     ac_cpp_err=$ac_c_preproc_warn_flag
18607     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18608   else
18609     ac_cpp_err=
18610   fi
18611 else
18612   ac_cpp_err=yes
18613 fi
18614 if test -z "$ac_cpp_err"; then
18615   ac_header_preproc=yes
18616 else
18617   echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18619
18620   ac_header_preproc=no
18621 fi
18622 rm -f conftest.err conftest.$ac_ext
18623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18624 echo "${ECHO_T}$ac_header_preproc" >&6
18625
18626 # So?  What about this header?
18627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18628   yes:no: )
18629     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18633     ac_header_preproc=yes
18634     ;;
18635   no:yes:* )
18636     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18638     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18639 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18640     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18642     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18643 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18646     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18648     (
18649       cat <<\_ASBOX
18650 ## --------------------------------------------- ##
18651 ## Report this to <http://www.openldap.org/its/> ##
18652 ## --------------------------------------------- ##
18653 _ASBOX
18654     ) |
18655       sed "s/^/$as_me: WARNING:     /" >&2
18656     ;;
18657 esac
18658 echo "$as_me:$LINENO: checking for $ac_header" >&5
18659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18661   echo $ECHO_N "(cached) $ECHO_C" >&6
18662 else
18663   eval "$as_ac_Header=\$ac_header_preproc"
18664 fi
18665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18667
18668 fi
18669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18670   cat >>confdefs.h <<_ACEOF
18671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18672 _ACEOF
18673
18674 fi
18675
18676 done
18677
18678
18679         if test $ac_cv_header_openssl_ssl_h = yes ; then
18680                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
18681 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
18682 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
18683   echo $ECHO_N "(cached) $ECHO_C" >&6
18684 else
18685   ac_check_lib_save_LIBS=$LIBS
18686 LIBS="-lssl -lcrypto $LIBS"
18687 cat >conftest.$ac_ext <<_ACEOF
18688 /* confdefs.h.  */
18689 _ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h.  */
18693
18694 /* Override any gcc2 internal prototype to avoid an error.  */
18695 #ifdef __cplusplus
18696 extern "C"
18697 #endif
18698 /* We use char because int might match the return type of a gcc2
18699    builtin and then its argument prototype would still apply.  */
18700 char SSL_library_init ();
18701 int
18702 main ()
18703 {
18704 SSL_library_init ();
18705   ;
18706   return 0;
18707 }
18708 _ACEOF
18709 rm -f conftest.$ac_objext conftest$ac_exeext
18710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18711   (eval $ac_link) 2>conftest.er1
18712   ac_status=$?
18713   grep -v '^ *+' conftest.er1 >conftest.err
18714   rm -f conftest.er1
18715   cat conftest.err >&5
18716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717   (exit $ac_status); } &&
18718          { ac_try='test -z "$ac_c_werror_flag"
18719                          || test ! -s conftest.err'
18720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721   (eval $ac_try) 2>&5
18722   ac_status=$?
18723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724   (exit $ac_status); }; } &&
18725          { ac_try='test -s conftest$ac_exeext'
18726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727   (eval $ac_try) 2>&5
18728   ac_status=$?
18729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730   (exit $ac_status); }; }; then
18731   ac_cv_lib_ssl_SSL_library_init=yes
18732 else
18733   echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.$ac_ext >&5
18735
18736 ac_cv_lib_ssl_SSL_library_init=no
18737 fi
18738 rm -f conftest.err conftest.$ac_objext \
18739       conftest$ac_exeext conftest.$ac_ext
18740 LIBS=$ac_check_lib_save_LIBS
18741 fi
18742 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
18743 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
18744 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
18745   have_openssl=yes
18746                         need_rsaref=no
18747 else
18748   have_openssl=no
18749 fi
18750
18751
18752                 if test $have_openssl = no ; then
18753                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
18754 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
18755 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
18756   echo $ECHO_N "(cached) $ECHO_C" >&6
18757 else
18758   ac_check_lib_save_LIBS=$LIBS
18759 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
18760 cat >conftest.$ac_ext <<_ACEOF
18761 /* confdefs.h.  */
18762 _ACEOF
18763 cat confdefs.h >>conftest.$ac_ext
18764 cat >>conftest.$ac_ext <<_ACEOF
18765 /* end confdefs.h.  */
18766
18767 /* Override any gcc2 internal prototype to avoid an error.  */
18768 #ifdef __cplusplus
18769 extern "C"
18770 #endif
18771 /* We use char because int might match the return type of a gcc2
18772    builtin and then its argument prototype would still apply.  */
18773 char ssl3_accept ();
18774 int
18775 main ()
18776 {
18777 ssl3_accept ();
18778   ;
18779   return 0;
18780 }
18781 _ACEOF
18782 rm -f conftest.$ac_objext conftest$ac_exeext
18783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18784   (eval $ac_link) 2>conftest.er1
18785   ac_status=$?
18786   grep -v '^ *+' conftest.er1 >conftest.err
18787   rm -f conftest.er1
18788   cat conftest.err >&5
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); } &&
18791          { ac_try='test -z "$ac_c_werror_flag"
18792                          || test ! -s conftest.err'
18793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794   (eval $ac_try) 2>&5
18795   ac_status=$?
18796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797   (exit $ac_status); }; } &&
18798          { ac_try='test -s conftest$ac_exeext'
18799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800   (eval $ac_try) 2>&5
18801   ac_status=$?
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); }; }; then
18804   ac_cv_lib_ssl_ssl3_accept=yes
18805 else
18806   echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18808
18809 ac_cv_lib_ssl_ssl3_accept=no
18810 fi
18811 rm -f conftest.err conftest.$ac_objext \
18812       conftest$ac_exeext conftest.$ac_ext
18813 LIBS=$ac_check_lib_save_LIBS
18814 fi
18815 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
18816 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
18817 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
18818   have_openssl=yes
18819                                 need_rsaref=yes
18820 else
18821   have_openssl=no
18822 fi
18823
18824                 fi
18825
18826                 if test $have_openssl = yes ; then
18827                         ol_with_tls=openssl
18828                         ol_link_tls=yes
18829
18830
18831 cat >>confdefs.h <<\_ACEOF
18832 #define HAVE_OPENSSL 1
18833 _ACEOF
18834
18835
18836                         if test $need_rsaref = yes; then
18837
18838 cat >>confdefs.h <<\_ACEOF
18839 #define HAVE_RSAREF 1
18840 _ACEOF
18841
18842
18843                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
18844                         else
18845                                 TLS_LIBS="-lssl -lcrypto"
18846                         fi
18847
18848                         echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
18849 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
18850 if test "${ol_cv_ssl_crl_compat+set}" = set; then
18851   echo $ECHO_N "(cached) $ECHO_C" >&6
18852 else
18853
18854                 cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h.  */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h.  */
18860
18861 #ifdef HAVE_OPENSSL_SSL_H
18862 #include <openssl/ssl.h>
18863 #endif
18864
18865 /* Require 0.9.7d+ */
18866 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
18867         char *__ssl_compat = "0.9.7d";
18868 #endif
18869
18870 _ACEOF
18871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18872   $EGREP "__ssl_compat" >/dev/null 2>&1; then
18873   ol_cv_ssl_crl_compat=yes
18874 else
18875   ol_cv_ssl_crl_compat=no
18876 fi
18877 rm -f conftest*
18878
18879 fi
18880 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
18881 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
18882
18883                         if test $ol_cv_ssl_crl_compat = yes ; then
18884
18885 cat >>confdefs.h <<\_ACEOF
18886 #define HAVE_OPENSSL_CRL 1
18887 _ACEOF
18888
18889                         fi
18890                 fi
18891         fi
18892 fi
18893
18894 if test $ol_link_tls = no ; then
18895         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
18896
18897 for ac_header in gnutls/gnutls.h
18898 do
18899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18901   echo "$as_me:$LINENO: checking for $ac_header" >&5
18902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18904   echo $ECHO_N "(cached) $ECHO_C" >&6
18905 fi
18906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18908 else
18909   # Is the header compilable?
18910 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18912 cat >conftest.$ac_ext <<_ACEOF
18913 /* confdefs.h.  */
18914 _ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h.  */
18918 $ac_includes_default
18919 #include <$ac_header>
18920 _ACEOF
18921 rm -f conftest.$ac_objext
18922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18923   (eval $ac_compile) 2>conftest.er1
18924   ac_status=$?
18925   grep -v '^ *+' conftest.er1 >conftest.err
18926   rm -f conftest.er1
18927   cat conftest.err >&5
18928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929   (exit $ac_status); } &&
18930          { ac_try='test -z "$ac_c_werror_flag"
18931                          || test ! -s conftest.err'
18932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933   (eval $ac_try) 2>&5
18934   ac_status=$?
18935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936   (exit $ac_status); }; } &&
18937          { ac_try='test -s conftest.$ac_objext'
18938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939   (eval $ac_try) 2>&5
18940   ac_status=$?
18941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942   (exit $ac_status); }; }; then
18943   ac_header_compiler=yes
18944 else
18945   echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18947
18948 ac_header_compiler=no
18949 fi
18950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18952 echo "${ECHO_T}$ac_header_compiler" >&6
18953
18954 # Is the header present?
18955 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18957 cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h.  */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h.  */
18963 #include <$ac_header>
18964 _ACEOF
18965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18967   ac_status=$?
18968   grep -v '^ *+' conftest.er1 >conftest.err
18969   rm -f conftest.er1
18970   cat conftest.err >&5
18971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972   (exit $ac_status); } >/dev/null; then
18973   if test -s conftest.err; then
18974     ac_cpp_err=$ac_c_preproc_warn_flag
18975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18976   else
18977     ac_cpp_err=
18978   fi
18979 else
18980   ac_cpp_err=yes
18981 fi
18982 if test -z "$ac_cpp_err"; then
18983   ac_header_preproc=yes
18984 else
18985   echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18987
18988   ac_header_preproc=no
18989 fi
18990 rm -f conftest.err conftest.$ac_ext
18991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18992 echo "${ECHO_T}$ac_header_preproc" >&6
18993
18994 # So?  What about this header?
18995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18996   yes:no: )
18997     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19001     ac_header_preproc=yes
19002     ;;
19003   no:yes:* )
19004     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19006     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19007 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19008     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19010     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19011 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19014     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19016     (
19017       cat <<\_ASBOX
19018 ## --------------------------------------------- ##
19019 ## Report this to <http://www.openldap.org/its/> ##
19020 ## --------------------------------------------- ##
19021 _ASBOX
19022     ) |
19023       sed "s/^/$as_me: WARNING:     /" >&2
19024     ;;
19025 esac
19026 echo "$as_me:$LINENO: checking for $ac_header" >&5
19027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19029   echo $ECHO_N "(cached) $ECHO_C" >&6
19030 else
19031   eval "$as_ac_Header=\$ac_header_preproc"
19032 fi
19033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19035
19036 fi
19037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19038   cat >>confdefs.h <<_ACEOF
19039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19040 _ACEOF
19041
19042 fi
19043
19044 done
19045
19046
19047                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19048                         echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19049 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
19050 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19051   echo $ECHO_N "(cached) $ECHO_C" >&6
19052 else
19053   ac_check_lib_save_LIBS=$LIBS
19054 LIBS="-lgnutls  $LIBS"
19055 cat >conftest.$ac_ext <<_ACEOF
19056 /* confdefs.h.  */
19057 _ACEOF
19058 cat confdefs.h >>conftest.$ac_ext
19059 cat >>conftest.$ac_ext <<_ACEOF
19060 /* end confdefs.h.  */
19061
19062 /* Override any gcc2 internal prototype to avoid an error.  */
19063 #ifdef __cplusplus
19064 extern "C"
19065 #endif
19066 /* We use char because int might match the return type of a gcc2
19067    builtin and then its argument prototype would still apply.  */
19068 char gnutls_init ();
19069 int
19070 main ()
19071 {
19072 gnutls_init ();
19073   ;
19074   return 0;
19075 }
19076 _ACEOF
19077 rm -f conftest.$ac_objext conftest$ac_exeext
19078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19079   (eval $ac_link) 2>conftest.er1
19080   ac_status=$?
19081   grep -v '^ *+' conftest.er1 >conftest.err
19082   rm -f conftest.er1
19083   cat conftest.err >&5
19084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085   (exit $ac_status); } &&
19086          { ac_try='test -z "$ac_c_werror_flag"
19087                          || test ! -s conftest.err'
19088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089   (eval $ac_try) 2>&5
19090   ac_status=$?
19091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092   (exit $ac_status); }; } &&
19093          { ac_try='test -s conftest$ac_exeext'
19094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095   (eval $ac_try) 2>&5
19096   ac_status=$?
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); }; }; then
19099   ac_cv_lib_gnutls_gnutls_init=yes
19100 else
19101   echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19103
19104 ac_cv_lib_gnutls_gnutls_init=no
19105 fi
19106 rm -f conftest.err conftest.$ac_objext \
19107       conftest$ac_exeext conftest.$ac_ext
19108 LIBS=$ac_check_lib_save_LIBS
19109 fi
19110 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19111 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
19112 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19113   have_gnutls=yes
19114 else
19115   have_gnutls=no
19116 fi
19117
19118
19119                         if test $have_gnutls = yes ; then
19120                                 ol_with_tls=gnutls
19121                                 ol_link_tls=yes
19122
19123                                 TLS_LIBS="-lgnutls"
19124
19125
19126 cat >>confdefs.h <<\_ACEOF
19127 #define HAVE_GNUTLS 1
19128 _ACEOF
19129
19130                         fi
19131                 fi
19132         fi
19133 fi
19134
19135 WITH_TLS=no
19136 if test $ol_link_tls = yes ; then
19137
19138 cat >>confdefs.h <<\_ACEOF
19139 #define HAVE_TLS 1
19140 _ACEOF
19141
19142         WITH_TLS=yes
19143 elif test $ol_with_tls = auto ; then
19144         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19145 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19146         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19147 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19148 elif test $ol_with_tls != no ; then
19149         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19150 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19151    { (exit 1); exit 1; }; }
19152 else
19153         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19154 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19155 fi
19156
19157 if test $ol_enable_lmpasswd != no; then
19158         if test $ol_link_tls != yes ; then
19159                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19160 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19161    { (exit 1); exit 1; }; }
19162         fi
19163
19164
19165 cat >>confdefs.h <<\_ACEOF
19166 #define SLAPD_LMHASH 1
19167 _ACEOF
19168
19169 fi
19170
19171 ol_link_threads=no
19172
19173 case $ol_with_threads in auto | yes | nt)
19174
19175
19176         echo "$as_me:$LINENO: checking for _beginthread" >&5
19177 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19178 if test "${ac_cv_func__beginthread+set}" = set; then
19179   echo $ECHO_N "(cached) $ECHO_C" >&6
19180 else
19181   cat >conftest.$ac_ext <<_ACEOF
19182 /* confdefs.h.  */
19183 _ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h.  */
19187 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19189 #define _beginthread innocuous__beginthread
19190
19191 /* System header to define __stub macros and hopefully few prototypes,
19192     which can conflict with char _beginthread (); below.
19193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19194     <limits.h> exists even on freestanding compilers.  */
19195
19196 #ifdef __STDC__
19197 # include <limits.h>
19198 #else
19199 # include <assert.h>
19200 #endif
19201
19202 #undef _beginthread
19203
19204 /* Override any gcc2 internal prototype to avoid an error.  */
19205 #ifdef __cplusplus
19206 extern "C"
19207 {
19208 #endif
19209 /* We use char because int might match the return type of a gcc2
19210    builtin and then its argument prototype would still apply.  */
19211 char _beginthread ();
19212 /* The GNU C library defines this for functions which it implements
19213     to always fail with ENOSYS.  Some functions are actually named
19214     something starting with __ and the normal name is an alias.  */
19215 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19216 choke me
19217 #else
19218 char (*f) () = _beginthread;
19219 #endif
19220 #ifdef __cplusplus
19221 }
19222 #endif
19223
19224 int
19225 main ()
19226 {
19227 return f != _beginthread;
19228   ;
19229   return 0;
19230 }
19231 _ACEOF
19232 rm -f conftest.$ac_objext conftest$ac_exeext
19233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19234   (eval $ac_link) 2>conftest.er1
19235   ac_status=$?
19236   grep -v '^ *+' conftest.er1 >conftest.err
19237   rm -f conftest.er1
19238   cat conftest.err >&5
19239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240   (exit $ac_status); } &&
19241          { ac_try='test -z "$ac_c_werror_flag"
19242                          || test ! -s conftest.err'
19243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244   (eval $ac_try) 2>&5
19245   ac_status=$?
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); }; } &&
19248          { ac_try='test -s conftest$ac_exeext'
19249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250   (eval $ac_try) 2>&5
19251   ac_status=$?
19252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253   (exit $ac_status); }; }; then
19254   ac_cv_func__beginthread=yes
19255 else
19256   echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19258
19259 ac_cv_func__beginthread=no
19260 fi
19261 rm -f conftest.err conftest.$ac_objext \
19262       conftest$ac_exeext conftest.$ac_ext
19263 fi
19264 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19265 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19266
19267
19268         if test $ac_cv_func__beginthread = yes ; then
19269
19270 cat >>confdefs.h <<\_ACEOF
19271 #define HAVE_NT_THREADS 1
19272 _ACEOF
19273
19274                 ol_cv_nt_threads=yes
19275         fi
19276
19277
19278         if test "$ol_cv_nt_threads" = yes ; then
19279                 ol_link_threads=nt
19280                 ol_with_threads=found
19281                 ol_with_yielding_select=yes
19282
19283
19284 cat >>confdefs.h <<\_ACEOF
19285 #define HAVE_NT_SERVICE_MANAGER 1
19286 _ACEOF
19287
19288
19289 cat >>confdefs.h <<\_ACEOF
19290 #define HAVE_NT_EVENT_LOG 1
19291 _ACEOF
19292
19293         fi
19294
19295         if test $ol_with_threads = nt ; then
19296                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19297 echo "$as_me: error: could not locate NT Threads" >&2;}
19298    { (exit 1); exit 1; }; }
19299         fi
19300         ;;
19301 esac
19302
19303 case $ol_with_threads in auto | yes | posix)
19304
19305
19306 for ac_header in pthread.h
19307 do
19308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19310   echo "$as_me:$LINENO: checking for $ac_header" >&5
19311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19313   echo $ECHO_N "(cached) $ECHO_C" >&6
19314 fi
19315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19317 else
19318   # Is the header compilable?
19319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19321 cat >conftest.$ac_ext <<_ACEOF
19322 /* confdefs.h.  */
19323 _ACEOF
19324 cat confdefs.h >>conftest.$ac_ext
19325 cat >>conftest.$ac_ext <<_ACEOF
19326 /* end confdefs.h.  */
19327 $ac_includes_default
19328 #include <$ac_header>
19329 _ACEOF
19330 rm -f conftest.$ac_objext
19331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19332   (eval $ac_compile) 2>conftest.er1
19333   ac_status=$?
19334   grep -v '^ *+' conftest.er1 >conftest.err
19335   rm -f conftest.er1
19336   cat conftest.err >&5
19337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338   (exit $ac_status); } &&
19339          { ac_try='test -z "$ac_c_werror_flag"
19340                          || test ! -s conftest.err'
19341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342   (eval $ac_try) 2>&5
19343   ac_status=$?
19344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); }; } &&
19346          { ac_try='test -s conftest.$ac_objext'
19347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19348   (eval $ac_try) 2>&5
19349   ac_status=$?
19350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351   (exit $ac_status); }; }; then
19352   ac_header_compiler=yes
19353 else
19354   echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19356
19357 ac_header_compiler=no
19358 fi
19359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19361 echo "${ECHO_T}$ac_header_compiler" >&6
19362
19363 # Is the header present?
19364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19366 cat >conftest.$ac_ext <<_ACEOF
19367 /* confdefs.h.  */
19368 _ACEOF
19369 cat confdefs.h >>conftest.$ac_ext
19370 cat >>conftest.$ac_ext <<_ACEOF
19371 /* end confdefs.h.  */
19372 #include <$ac_header>
19373 _ACEOF
19374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19375   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19376   ac_status=$?
19377   grep -v '^ *+' conftest.er1 >conftest.err
19378   rm -f conftest.er1
19379   cat conftest.err >&5
19380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381   (exit $ac_status); } >/dev/null; then
19382   if test -s conftest.err; then
19383     ac_cpp_err=$ac_c_preproc_warn_flag
19384     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19385   else
19386     ac_cpp_err=
19387   fi
19388 else
19389   ac_cpp_err=yes
19390 fi
19391 if test -z "$ac_cpp_err"; then
19392   ac_header_preproc=yes
19393 else
19394   echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19396
19397   ac_header_preproc=no
19398 fi
19399 rm -f conftest.err conftest.$ac_ext
19400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19401 echo "${ECHO_T}$ac_header_preproc" >&6
19402
19403 # So?  What about this header?
19404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19405   yes:no: )
19406     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19410     ac_header_preproc=yes
19411     ;;
19412   no:yes:* )
19413     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19415     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19416 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19417     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19419     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19420 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19423     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19425     (
19426       cat <<\_ASBOX
19427 ## --------------------------------------------- ##
19428 ## Report this to <http://www.openldap.org/its/> ##
19429 ## --------------------------------------------- ##
19430 _ASBOX
19431     ) |
19432       sed "s/^/$as_me: WARNING:     /" >&2
19433     ;;
19434 esac
19435 echo "$as_me:$LINENO: checking for $ac_header" >&5
19436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19438   echo $ECHO_N "(cached) $ECHO_C" >&6
19439 else
19440   eval "$as_ac_Header=\$ac_header_preproc"
19441 fi
19442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19444
19445 fi
19446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19447   cat >>confdefs.h <<_ACEOF
19448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19449 _ACEOF
19450
19451 fi
19452
19453 done
19454
19455
19456         if test $ac_cv_header_pthread_h = yes ; then
19457                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19458 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19459 if test "${ol_cv_pthread_version+set}" = set; then
19460   echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462
19463         cat >conftest.$ac_ext <<_ACEOF
19464 /* confdefs.h.  */
19465 _ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h.  */
19469
19470 #               include <pthread.h>
19471
19472 int
19473 main ()
19474 {
19475
19476                 int i = PTHREAD_CREATE_JOINABLE;
19477
19478   ;
19479   return 0;
19480 }
19481 _ACEOF
19482 rm -f conftest.$ac_objext
19483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19484   (eval $ac_compile) 2>conftest.er1
19485   ac_status=$?
19486   grep -v '^ *+' conftest.er1 >conftest.err
19487   rm -f conftest.er1
19488   cat conftest.err >&5
19489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490   (exit $ac_status); } &&
19491          { ac_try='test -z "$ac_c_werror_flag"
19492                          || test ! -s conftest.err'
19493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494   (eval $ac_try) 2>&5
19495   ac_status=$?
19496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497   (exit $ac_status); }; } &&
19498          { ac_try='test -s conftest.$ac_objext'
19499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500   (eval $ac_try) 2>&5
19501   ac_status=$?
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); }; }; then
19504
19505         cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h.  */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h.  */
19511 #include <pthread.h>
19512
19513 _ACEOF
19514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19515   $EGREP "pthread_detach" >/dev/null 2>&1; then
19516   ol_cv_pthread_version=10
19517 else
19518   ol_cv_pthread_version=8
19519 fi
19520 rm -f conftest*
19521
19522 else
19523   echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19525
19526
19527         cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h.  */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h.  */
19533
19534 #               include <pthread.h>
19535 #               ifdef PTHREAD_CREATE_UNDETACHED
19536                 draft7
19537 #               endif
19538
19539 _ACEOF
19540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19541   $EGREP "draft7" >/dev/null 2>&1; then
19542   ol_cv_pthread_version=7
19543 else
19544
19545         cat >conftest.$ac_ext <<_ACEOF
19546 /* confdefs.h.  */
19547 _ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h.  */
19551 #include <pthread.h>
19552
19553 _ACEOF
19554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19555   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19556   ol_cv_pthread_version=6
19557 else
19558
19559         cat >conftest.$ac_ext <<_ACEOF
19560 /* confdefs.h.  */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h.  */
19565
19566 #               include <pthread.h>
19567 #ifdef          PTHREAD_MUTEX_INITIALIZER
19568                 draft5
19569 #endif
19570
19571 _ACEOF
19572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19573   $EGREP "draft5" >/dev/null 2>&1; then
19574   ol_cv_pthread_version=5
19575 else
19576   ol_cv_pthread_version=4
19577 fi
19578 rm -f conftest*
19579
19580 fi
19581 rm -f conftest*
19582
19583 fi
19584 rm -f conftest*
19585
19586 fi
19587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19588
19589 fi
19590 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
19591 echo "${ECHO_T}$ol_cv_pthread_version" >&6
19592
19593
19594                 if test $ol_cv_pthread_version != 0 ; then
19595
19596 cat >>confdefs.h <<_ACEOF
19597 #define HAVE_PTHREADS $ol_cv_pthread_version
19598 _ACEOF
19599
19600                 else
19601                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
19602 echo "$as_me: error: unknown pthread version" >&2;}
19603    { (exit 1); exit 1; }; }
19604                 fi
19605
19606                 # consider threads found
19607                 ol_with_threads=found
19608
19609
19610         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
19611 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
19612 if test "${ol_cv_header_linux_threads+set}" = set; then
19613   echo $ECHO_N "(cached) $ECHO_C" >&6
19614 else
19615   cat >conftest.$ac_ext <<_ACEOF
19616 /* confdefs.h.  */
19617 _ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h.  */
19621 #include <pthread.h>
19622 _ACEOF
19623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19624   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
19625   ol_cv_header_linux_threads=yes
19626 else
19627   ol_cv_header_linux_threads=no
19628 fi
19629 rm -f conftest*
19630
19631
19632 fi
19633 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
19634 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
19635         if test $ol_cv_header_linux_threads = yes; then
19636
19637 cat >>confdefs.h <<\_ACEOF
19638 #define HAVE_LINUX_THREADS 1
19639 _ACEOF
19640
19641         fi
19642
19643
19644         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
19645 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
19646 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
19647   echo $ECHO_N "(cached) $ECHO_C" >&6
19648 else
19649   cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h.  */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h.  */
19655 #include <pthread.h>
19656 #ifdef _POSIX_THREAD_IS_GNU_PTH
19657         __gnu_pth__;
19658 #endif
19659
19660 _ACEOF
19661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19662   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
19663   ol_cv_header_gnu_pth_pthread_h=yes
19664 else
19665   ol_cv_header_gnu_pth_pthread_h=no
19666 fi
19667 rm -f conftest*
19668
19669
19670 fi
19671 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19672 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
19673
19674
19675                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19676
19677 for ac_header in sched.h
19678 do
19679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19681   echo "$as_me:$LINENO: checking for $ac_header" >&5
19682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19684   echo $ECHO_N "(cached) $ECHO_C" >&6
19685 fi
19686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19688 else
19689   # Is the header compilable?
19690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19692 cat >conftest.$ac_ext <<_ACEOF
19693 /* confdefs.h.  */
19694 _ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h.  */
19698 $ac_includes_default
19699 #include <$ac_header>
19700 _ACEOF
19701 rm -f conftest.$ac_objext
19702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19703   (eval $ac_compile) 2>conftest.er1
19704   ac_status=$?
19705   grep -v '^ *+' conftest.er1 >conftest.err
19706   rm -f conftest.er1
19707   cat conftest.err >&5
19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709   (exit $ac_status); } &&
19710          { ac_try='test -z "$ac_c_werror_flag"
19711                          || test ! -s conftest.err'
19712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713   (eval $ac_try) 2>&5
19714   ac_status=$?
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); }; } &&
19717          { ac_try='test -s conftest.$ac_objext'
19718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719   (eval $ac_try) 2>&5
19720   ac_status=$?
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); }; }; then
19723   ac_header_compiler=yes
19724 else
19725   echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19727
19728 ac_header_compiler=no
19729 fi
19730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19732 echo "${ECHO_T}$ac_header_compiler" >&6
19733
19734 # Is the header present?
19735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19737 cat >conftest.$ac_ext <<_ACEOF
19738 /* confdefs.h.  */
19739 _ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h.  */
19743 #include <$ac_header>
19744 _ACEOF
19745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19746   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19747   ac_status=$?
19748   grep -v '^ *+' conftest.er1 >conftest.err
19749   rm -f conftest.er1
19750   cat conftest.err >&5
19751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752   (exit $ac_status); } >/dev/null; then
19753   if test -s conftest.err; then
19754     ac_cpp_err=$ac_c_preproc_warn_flag
19755     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19756   else
19757     ac_cpp_err=
19758   fi
19759 else
19760   ac_cpp_err=yes
19761 fi
19762 if test -z "$ac_cpp_err"; then
19763   ac_header_preproc=yes
19764 else
19765   echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19767
19768   ac_header_preproc=no
19769 fi
19770 rm -f conftest.err conftest.$ac_ext
19771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19772 echo "${ECHO_T}$ac_header_preproc" >&6
19773
19774 # So?  What about this header?
19775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19776   yes:no: )
19777     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19781     ac_header_preproc=yes
19782     ;;
19783   no:yes:* )
19784     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19786     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19787 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19788     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19790     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19791 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19794     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19796     (
19797       cat <<\_ASBOX
19798 ## --------------------------------------------- ##
19799 ## Report this to <http://www.openldap.org/its/> ##
19800 ## --------------------------------------------- ##
19801 _ASBOX
19802     ) |
19803       sed "s/^/$as_me: WARNING:     /" >&2
19804     ;;
19805 esac
19806 echo "$as_me:$LINENO: checking for $ac_header" >&5
19807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19809   echo $ECHO_N "(cached) $ECHO_C" >&6
19810 else
19811   eval "$as_ac_Header=\$ac_header_preproc"
19812 fi
19813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19815
19816 fi
19817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19818   cat >>confdefs.h <<_ACEOF
19819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19820 _ACEOF
19821
19822 fi
19823
19824 done
19825
19826                 fi
19827
19828
19829                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
19830 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
19831 if test "${ol_cv_pthread_create+set}" = set; then
19832   echo $ECHO_N "(cached) $ECHO_C" >&6
19833 else
19834
19835                         if test "$cross_compiling" = yes; then
19836   cat >conftest.$ac_ext <<_ACEOF
19837 /* confdefs.h.  */
19838 _ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h.  */
19842
19843 /* pthread test headers */
19844 #include <pthread.h>
19845 #if HAVE_PTHREADS < 7
19846 #include <errno.h>
19847 #endif
19848 #ifndef NULL
19849 #define NULL (void*)0
19850 #endif
19851
19852 static void *task(p)
19853         void *p;
19854 {
19855         return (void *) (p == NULL);
19856 }
19857
19858 int
19859 main ()
19860 {
19861
19862         /* pthread test function */
19863 #ifndef PTHREAD_CREATE_DETACHED
19864 #define PTHREAD_CREATE_DETACHED 1
19865 #endif
19866         pthread_t t;
19867         int status;
19868         int detach = PTHREAD_CREATE_DETACHED;
19869
19870 #if HAVE_PTHREADS > 4
19871         /* Final pthreads */
19872         pthread_attr_t attr;
19873
19874         status = pthread_attr_init(&attr);
19875         if( status ) return status;
19876
19877 #if HAVE_PTHREADS < 7
19878         status = pthread_attr_setdetachstate(&attr, &detach);
19879         if( status < 0 ) status = errno;
19880 #else
19881         status = pthread_attr_setdetachstate(&attr, detach);
19882 #endif
19883         if( status ) return status;
19884         status = pthread_create( &t, &attr, task, NULL );
19885 #if HAVE_PTHREADS < 7
19886         if( status < 0 ) status = errno;
19887 #endif
19888         if( status ) return status;
19889 #else
19890         /* Draft 4 pthreads */
19891         status = pthread_create( &t, pthread_attr_default, task, NULL );
19892         if( status ) return errno;
19893
19894         /* give thread a chance to complete */
19895         /* it should remain joinable and hence detachable */
19896         sleep( 1 );
19897
19898         status = pthread_detach( &t );
19899         if( status ) return errno;
19900 #endif
19901
19902 #ifdef HAVE_LINUX_THREADS
19903         pthread_kill_other_threads_np();
19904 #endif
19905
19906         return 0;
19907
19908   ;
19909   return 0;
19910 }
19911 _ACEOF
19912 rm -f conftest.$ac_objext conftest$ac_exeext
19913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19914   (eval $ac_link) 2>conftest.er1
19915   ac_status=$?
19916   grep -v '^ *+' conftest.er1 >conftest.err
19917   rm -f conftest.er1
19918   cat conftest.err >&5
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); } &&
19921          { ac_try='test -z "$ac_c_werror_flag"
19922                          || test ! -s conftest.err'
19923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924   (eval $ac_try) 2>&5
19925   ac_status=$?
19926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927   (exit $ac_status); }; } &&
19928          { ac_try='test -s conftest$ac_exeext'
19929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930   (eval $ac_try) 2>&5
19931   ac_status=$?
19932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933   (exit $ac_status); }; }; then
19934   ol_cv_pthread_create=yes
19935 else
19936   echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19938
19939 ol_cv_pthread_create=no
19940 fi
19941 rm -f conftest.err conftest.$ac_objext \
19942       conftest$ac_exeext conftest.$ac_ext
19943 else
19944   cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950
19951 /* pthread test headers */
19952 #include <pthread.h>
19953 #if HAVE_PTHREADS < 7
19954 #include <errno.h>
19955 #endif
19956 #ifndef NULL
19957 #define NULL (void*)0
19958 #endif
19959
19960 static void *task(p)
19961         void *p;
19962 {
19963         return (void *) (p == NULL);
19964 }
19965
19966
19967 int main(argc, argv)
19968         int argc;
19969         char **argv;
19970 {
19971
19972         /* pthread test function */
19973 #ifndef PTHREAD_CREATE_DETACHED
19974 #define PTHREAD_CREATE_DETACHED 1
19975 #endif
19976         pthread_t t;
19977         int status;
19978         int detach = PTHREAD_CREATE_DETACHED;
19979
19980 #if HAVE_PTHREADS > 4
19981         /* Final pthreads */
19982         pthread_attr_t attr;
19983
19984         status = pthread_attr_init(&attr);
19985         if( status ) return status;
19986
19987 #if HAVE_PTHREADS < 7
19988         status = pthread_attr_setdetachstate(&attr, &detach);
19989         if( status < 0 ) status = errno;
19990 #else
19991         status = pthread_attr_setdetachstate(&attr, detach);
19992 #endif
19993         if( status ) return status;
19994         status = pthread_create( &t, &attr, task, NULL );
19995 #if HAVE_PTHREADS < 7
19996         if( status < 0 ) status = errno;
19997 #endif
19998         if( status ) return status;
19999 #else
20000         /* Draft 4 pthreads */
20001         status = pthread_create( &t, pthread_attr_default, task, NULL );
20002         if( status ) return errno;
20003
20004         /* give thread a chance to complete */
20005         /* it should remain joinable and hence detachable */
20006         sleep( 1 );
20007
20008         status = pthread_detach( &t );
20009         if( status ) return errno;
20010 #endif
20011
20012 #ifdef HAVE_LINUX_THREADS
20013         pthread_kill_other_threads_np();
20014 #endif
20015
20016         return 0;
20017
20018 }
20019
20020 _ACEOF
20021 rm -f conftest$ac_exeext
20022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20023   (eval $ac_link) 2>&5
20024   ac_status=$?
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20028   (eval $ac_try) 2>&5
20029   ac_status=$?
20030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031   (exit $ac_status); }; }; then
20032   ol_cv_pthread_create=yes
20033 else
20034   echo "$as_me: program exited with status $ac_status" >&5
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20037
20038 ( exit $ac_status )
20039 ol_cv_pthread_create=no
20040 fi
20041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20042 fi
20043 fi
20044 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20045 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20046
20047                 if test $ol_cv_pthread_create != no ; then
20048                         ol_link_threads=posix
20049                         ol_link_pthreads=""
20050                 fi
20051
20052                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20053 if test "$ol_link_threads" = no ; then
20054         # try -kthread
20055         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20056 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20057 if test "${ol_cv_pthread_kthread+set}" = set; then
20058   echo $ECHO_N "(cached) $ECHO_C" >&6
20059 else
20060
20061                 # save the flags
20062                 ol_LIBS="$LIBS"
20063                 LIBS="-kthread $LIBS"
20064
20065                 if test "$cross_compiling" = yes; then
20066   cat >conftest.$ac_ext <<_ACEOF
20067 /* confdefs.h.  */
20068 _ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h.  */
20072
20073 /* pthread test headers */
20074 #include <pthread.h>
20075 #if HAVE_PTHREADS < 7
20076 #include <errno.h>
20077 #endif
20078 #ifndef NULL
20079 #define NULL (void*)0
20080 #endif
20081
20082 static void *task(p)
20083         void *p;
20084 {
20085         return (void *) (p == NULL);
20086 }
20087
20088 int
20089 main ()
20090 {
20091
20092         /* pthread test function */
20093 #ifndef PTHREAD_CREATE_DETACHED
20094 #define PTHREAD_CREATE_DETACHED 1
20095 #endif
20096         pthread_t t;
20097         int status;
20098         int detach = PTHREAD_CREATE_DETACHED;
20099
20100 #if HAVE_PTHREADS > 4
20101         /* Final pthreads */
20102         pthread_attr_t attr;
20103
20104         status = pthread_attr_init(&attr);
20105         if( status ) return status;
20106
20107 #if HAVE_PTHREADS < 7
20108         status = pthread_attr_setdetachstate(&attr, &detach);
20109         if( status < 0 ) status = errno;
20110 #else
20111         status = pthread_attr_setdetachstate(&attr, detach);
20112 #endif
20113         if( status ) return status;
20114         status = pthread_create( &t, &attr, task, NULL );
20115 #if HAVE_PTHREADS < 7
20116         if( status < 0 ) status = errno;
20117 #endif
20118         if( status ) return status;
20119 #else
20120         /* Draft 4 pthreads */
20121         status = pthread_create( &t, pthread_attr_default, task, NULL );
20122         if( status ) return errno;
20123
20124         /* give thread a chance to complete */
20125         /* it should remain joinable and hence detachable */
20126         sleep( 1 );
20127
20128         status = pthread_detach( &t );
20129         if( status ) return errno;
20130 #endif
20131
20132 #ifdef HAVE_LINUX_THREADS
20133         pthread_kill_other_threads_np();
20134 #endif
20135
20136         return 0;
20137
20138   ;
20139   return 0;
20140 }
20141 _ACEOF
20142 rm -f conftest.$ac_objext conftest$ac_exeext
20143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20144   (eval $ac_link) 2>conftest.er1
20145   ac_status=$?
20146   grep -v '^ *+' conftest.er1 >conftest.err
20147   rm -f conftest.er1
20148   cat conftest.err >&5
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); } &&
20151          { ac_try='test -z "$ac_c_werror_flag"
20152                          || test ! -s conftest.err'
20153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154   (eval $ac_try) 2>&5
20155   ac_status=$?
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); }; } &&
20158          { ac_try='test -s conftest$ac_exeext'
20159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160   (eval $ac_try) 2>&5
20161   ac_status=$?
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); }; }; then
20164   ol_cv_pthread_kthread=yes
20165 else
20166   echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20168
20169 ol_cv_pthread_kthread=no
20170 fi
20171 rm -f conftest.err conftest.$ac_objext \
20172       conftest$ac_exeext conftest.$ac_ext
20173 else
20174   cat >conftest.$ac_ext <<_ACEOF
20175 /* confdefs.h.  */
20176 _ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h.  */
20180
20181 /* pthread test headers */
20182 #include <pthread.h>
20183 #if HAVE_PTHREADS < 7
20184 #include <errno.h>
20185 #endif
20186 #ifndef NULL
20187 #define NULL (void*)0
20188 #endif
20189
20190 static void *task(p)
20191         void *p;
20192 {
20193         return (void *) (p == NULL);
20194 }
20195
20196
20197 int main(argc, argv)
20198         int argc;
20199         char **argv;
20200 {
20201
20202         /* pthread test function */
20203 #ifndef PTHREAD_CREATE_DETACHED
20204 #define PTHREAD_CREATE_DETACHED 1
20205 #endif
20206         pthread_t t;
20207         int status;
20208         int detach = PTHREAD_CREATE_DETACHED;
20209
20210 #if HAVE_PTHREADS > 4
20211         /* Final pthreads */
20212         pthread_attr_t attr;
20213
20214         status = pthread_attr_init(&attr);
20215         if( status ) return status;
20216
20217 #if HAVE_PTHREADS < 7
20218         status = pthread_attr_setdetachstate(&attr, &detach);
20219         if( status < 0 ) status = errno;
20220 #else
20221         status = pthread_attr_setdetachstate(&attr, detach);
20222 #endif
20223         if( status ) return status;
20224         status = pthread_create( &t, &attr, task, NULL );
20225 #if HAVE_PTHREADS < 7
20226         if( status < 0 ) status = errno;
20227 #endif
20228         if( status ) return status;
20229 #else
20230         /* Draft 4 pthreads */
20231         status = pthread_create( &t, pthread_attr_default, task, NULL );
20232         if( status ) return errno;
20233
20234         /* give thread a chance to complete */
20235         /* it should remain joinable and hence detachable */
20236         sleep( 1 );
20237
20238         status = pthread_detach( &t );
20239         if( status ) return errno;
20240 #endif
20241
20242 #ifdef HAVE_LINUX_THREADS
20243         pthread_kill_other_threads_np();
20244 #endif
20245
20246         return 0;
20247
20248 }
20249
20250 _ACEOF
20251 rm -f conftest$ac_exeext
20252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20253   (eval $ac_link) 2>&5
20254   ac_status=$?
20255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258   (eval $ac_try) 2>&5
20259   ac_status=$?
20260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261   (exit $ac_status); }; }; then
20262   ol_cv_pthread_kthread=yes
20263 else
20264   echo "$as_me: program exited with status $ac_status" >&5
20265 echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20267
20268 ( exit $ac_status )
20269 ol_cv_pthread_kthread=no
20270 fi
20271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20272 fi
20273
20274                 # restore the LIBS
20275                 LIBS="$ol_LIBS"
20276
20277 fi
20278 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20279 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20280
20281         if test $ol_cv_pthread_kthread = yes ; then
20282                 ol_link_pthreads="-kthread"
20283                 ol_link_threads=posix
20284         fi
20285 fi
20286
20287                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20288 if test "$ol_link_threads" = no ; then
20289         # try -pthread
20290         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20291 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20292 if test "${ol_cv_pthread_pthread+set}" = set; then
20293   echo $ECHO_N "(cached) $ECHO_C" >&6
20294 else
20295
20296                 # save the flags
20297                 ol_LIBS="$LIBS"
20298                 LIBS="-pthread $LIBS"
20299
20300                 if test "$cross_compiling" = yes; then
20301   cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h.  */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h.  */
20307
20308 /* pthread test headers */
20309 #include <pthread.h>
20310 #if HAVE_PTHREADS < 7
20311 #include <errno.h>
20312 #endif
20313 #ifndef NULL
20314 #define NULL (void*)0
20315 #endif
20316
20317 static void *task(p)
20318         void *p;
20319 {
20320         return (void *) (p == NULL);
20321 }
20322
20323 int
20324 main ()
20325 {
20326
20327         /* pthread test function */
20328 #ifndef PTHREAD_CREATE_DETACHED
20329 #define PTHREAD_CREATE_DETACHED 1
20330 #endif
20331         pthread_t t;
20332         int status;
20333         int detach = PTHREAD_CREATE_DETACHED;
20334
20335 #if HAVE_PTHREADS > 4
20336         /* Final pthreads */
20337         pthread_attr_t attr;
20338
20339         status = pthread_attr_init(&attr);
20340         if( status ) return status;
20341
20342 #if HAVE_PTHREADS < 7
20343         status = pthread_attr_setdetachstate(&attr, &detach);
20344         if( status < 0 ) status = errno;
20345 #else
20346         status = pthread_attr_setdetachstate(&attr, detach);
20347 #endif
20348         if( status ) return status;
20349         status = pthread_create( &t, &attr, task, NULL );
20350 #if HAVE_PTHREADS < 7
20351         if( status < 0 ) status = errno;
20352 #endif
20353         if( status ) return status;
20354 #else
20355         /* Draft 4 pthreads */
20356         status = pthread_create( &t, pthread_attr_default, task, NULL );
20357         if( status ) return errno;
20358
20359         /* give thread a chance to complete */
20360         /* it should remain joinable and hence detachable */
20361         sleep( 1 );
20362
20363         status = pthread_detach( &t );
20364         if( status ) return errno;
20365 #endif
20366
20367 #ifdef HAVE_LINUX_THREADS
20368         pthread_kill_other_threads_np();
20369 #endif
20370
20371         return 0;
20372
20373   ;
20374   return 0;
20375 }
20376 _ACEOF
20377 rm -f conftest.$ac_objext conftest$ac_exeext
20378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20379   (eval $ac_link) 2>conftest.er1
20380   ac_status=$?
20381   grep -v '^ *+' conftest.er1 >conftest.err
20382   rm -f conftest.er1
20383   cat conftest.err >&5
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); } &&
20386          { ac_try='test -z "$ac_c_werror_flag"
20387                          || test ! -s conftest.err'
20388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389   (eval $ac_try) 2>&5
20390   ac_status=$?
20391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392   (exit $ac_status); }; } &&
20393          { ac_try='test -s conftest$ac_exeext'
20394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395   (eval $ac_try) 2>&5
20396   ac_status=$?
20397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); }; }; then
20399   ol_cv_pthread_pthread=yes
20400 else
20401   echo "$as_me: failed program was:" >&5
20402 sed 's/^/| /' conftest.$ac_ext >&5
20403
20404 ol_cv_pthread_pthread=no
20405 fi
20406 rm -f conftest.err conftest.$ac_objext \
20407       conftest$ac_exeext conftest.$ac_ext
20408 else
20409   cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h.  */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h.  */
20415
20416 /* pthread test headers */
20417 #include <pthread.h>
20418 #if HAVE_PTHREADS < 7
20419 #include <errno.h>
20420 #endif
20421 #ifndef NULL
20422 #define NULL (void*)0
20423 #endif
20424
20425 static void *task(p)
20426         void *p;
20427 {
20428         return (void *) (p == NULL);
20429 }
20430
20431
20432 int main(argc, argv)
20433         int argc;
20434         char **argv;
20435 {
20436
20437         /* pthread test function */
20438 #ifndef PTHREAD_CREATE_DETACHED
20439 #define PTHREAD_CREATE_DETACHED 1
20440 #endif
20441         pthread_t t;
20442         int status;
20443         int detach = PTHREAD_CREATE_DETACHED;
20444
20445 #if HAVE_PTHREADS > 4
20446         /* Final pthreads */
20447         pthread_attr_t attr;
20448
20449         status = pthread_attr_init(&attr);
20450         if( status ) return status;
20451
20452 #if HAVE_PTHREADS < 7
20453         status = pthread_attr_setdetachstate(&attr, &detach);
20454         if( status < 0 ) status = errno;
20455 #else
20456         status = pthread_attr_setdetachstate(&attr, detach);
20457 #endif
20458         if( status ) return status;
20459         status = pthread_create( &t, &attr, task, NULL );
20460 #if HAVE_PTHREADS < 7
20461         if( status < 0 ) status = errno;
20462 #endif
20463         if( status ) return status;
20464 #else
20465         /* Draft 4 pthreads */
20466         status = pthread_create( &t, pthread_attr_default, task, NULL );
20467         if( status ) return errno;
20468
20469         /* give thread a chance to complete */
20470         /* it should remain joinable and hence detachable */
20471         sleep( 1 );
20472
20473         status = pthread_detach( &t );
20474         if( status ) return errno;
20475 #endif
20476
20477 #ifdef HAVE_LINUX_THREADS
20478         pthread_kill_other_threads_np();
20479 #endif
20480
20481         return 0;
20482
20483 }
20484
20485 _ACEOF
20486 rm -f conftest$ac_exeext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20488   (eval $ac_link) 2>&5
20489   ac_status=$?
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493   (eval $ac_try) 2>&5
20494   ac_status=$?
20495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496   (exit $ac_status); }; }; then
20497   ol_cv_pthread_pthread=yes
20498 else
20499   echo "$as_me: program exited with status $ac_status" >&5
20500 echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20502
20503 ( exit $ac_status )
20504 ol_cv_pthread_pthread=no
20505 fi
20506 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20507 fi
20508
20509                 # restore the LIBS
20510                 LIBS="$ol_LIBS"
20511
20512 fi
20513 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20514 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20515
20516         if test $ol_cv_pthread_pthread = yes ; then
20517                 ol_link_pthreads="-pthread"
20518                 ol_link_threads=posix
20519         fi
20520 fi
20521
20522                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20523 if test "$ol_link_threads" = no ; then
20524         # try -pthreads
20525         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20526 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20527 if test "${ol_cv_pthread_pthreads+set}" = set; then
20528   echo $ECHO_N "(cached) $ECHO_C" >&6
20529 else
20530
20531                 # save the flags
20532                 ol_LIBS="$LIBS"
20533                 LIBS="-pthreads $LIBS"
20534
20535                 if test "$cross_compiling" = yes; then
20536   cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h.  */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h.  */
20542
20543 /* pthread test headers */
20544 #include <pthread.h>
20545 #if HAVE_PTHREADS < 7
20546 #include <errno.h>
20547 #endif
20548 #ifndef NULL
20549 #define NULL (void*)0
20550 #endif
20551
20552 static void *task(p)
20553         void *p;
20554 {
20555         return (void *) (p == NULL);
20556 }
20557
20558 int
20559 main ()
20560 {
20561
20562         /* pthread test function */
20563 #ifndef PTHREAD_CREATE_DETACHED
20564 #define PTHREAD_CREATE_DETACHED 1
20565 #endif
20566         pthread_t t;
20567         int status;
20568         int detach = PTHREAD_CREATE_DETACHED;
20569
20570 #if HAVE_PTHREADS > 4
20571         /* Final pthreads */
20572         pthread_attr_t attr;
20573
20574         status = pthread_attr_init(&attr);
20575         if( status ) return status;
20576
20577 #if HAVE_PTHREADS < 7
20578         status = pthread_attr_setdetachstate(&attr, &detach);
20579         if( status < 0 ) status = errno;
20580 #else
20581         status = pthread_attr_setdetachstate(&attr, detach);
20582 #endif
20583         if( status ) return status;
20584         status = pthread_create( &t, &attr, task, NULL );
20585 #if HAVE_PTHREADS < 7
20586         if( status < 0 ) status = errno;
20587 #endif
20588         if( status ) return status;
20589 #else
20590         /* Draft 4 pthreads */
20591         status = pthread_create( &t, pthread_attr_default, task, NULL );
20592         if( status ) return errno;
20593
20594         /* give thread a chance to complete */
20595         /* it should remain joinable and hence detachable */
20596         sleep( 1 );
20597
20598         status = pthread_detach( &t );
20599         if( status ) return errno;
20600 #endif
20601
20602 #ifdef HAVE_LINUX_THREADS
20603         pthread_kill_other_threads_np();
20604 #endif
20605
20606         return 0;
20607
20608   ;
20609   return 0;
20610 }
20611 _ACEOF
20612 rm -f conftest.$ac_objext conftest$ac_exeext
20613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20614   (eval $ac_link) 2>conftest.er1
20615   ac_status=$?
20616   grep -v '^ *+' conftest.er1 >conftest.err
20617   rm -f conftest.er1
20618   cat conftest.err >&5
20619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620   (exit $ac_status); } &&
20621          { ac_try='test -z "$ac_c_werror_flag"
20622                          || test ! -s conftest.err'
20623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624   (eval $ac_try) 2>&5
20625   ac_status=$?
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); }; } &&
20628          { ac_try='test -s conftest$ac_exeext'
20629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20630   (eval $ac_try) 2>&5
20631   ac_status=$?
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); }; }; then
20634   ol_cv_pthread_pthreads=yes
20635 else
20636   echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20638
20639 ol_cv_pthread_pthreads=no
20640 fi
20641 rm -f conftest.err conftest.$ac_objext \
20642       conftest$ac_exeext conftest.$ac_ext
20643 else
20644   cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h.  */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h.  */
20650
20651 /* pthread test headers */
20652 #include <pthread.h>
20653 #if HAVE_PTHREADS < 7
20654 #include <errno.h>
20655 #endif
20656 #ifndef NULL
20657 #define NULL (void*)0
20658 #endif
20659
20660 static void *task(p)
20661         void *p;
20662 {
20663         return (void *) (p == NULL);
20664 }
20665
20666
20667 int main(argc, argv)
20668         int argc;
20669         char **argv;
20670 {
20671
20672         /* pthread test function */
20673 #ifndef PTHREAD_CREATE_DETACHED
20674 #define PTHREAD_CREATE_DETACHED 1
20675 #endif
20676         pthread_t t;
20677         int status;
20678         int detach = PTHREAD_CREATE_DETACHED;
20679
20680 #if HAVE_PTHREADS > 4
20681         /* Final pthreads */
20682         pthread_attr_t attr;
20683
20684         status = pthread_attr_init(&attr);
20685         if( status ) return status;
20686
20687 #if HAVE_PTHREADS < 7
20688         status = pthread_attr_setdetachstate(&attr, &detach);
20689         if( status < 0 ) status = errno;
20690 #else
20691         status = pthread_attr_setdetachstate(&attr, detach);
20692 #endif
20693         if( status ) return status;
20694         status = pthread_create( &t, &attr, task, NULL );
20695 #if HAVE_PTHREADS < 7
20696         if( status < 0 ) status = errno;
20697 #endif
20698         if( status ) return status;
20699 #else
20700         /* Draft 4 pthreads */
20701         status = pthread_create( &t, pthread_attr_default, task, NULL );
20702         if( status ) return errno;
20703
20704         /* give thread a chance to complete */
20705         /* it should remain joinable and hence detachable */
20706         sleep( 1 );
20707
20708         status = pthread_detach( &t );
20709         if( status ) return errno;
20710 #endif
20711
20712 #ifdef HAVE_LINUX_THREADS
20713         pthread_kill_other_threads_np();
20714 #endif
20715
20716         return 0;
20717
20718 }
20719
20720 _ACEOF
20721 rm -f conftest$ac_exeext
20722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20723   (eval $ac_link) 2>&5
20724   ac_status=$?
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728   (eval $ac_try) 2>&5
20729   ac_status=$?
20730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731   (exit $ac_status); }; }; then
20732   ol_cv_pthread_pthreads=yes
20733 else
20734   echo "$as_me: program exited with status $ac_status" >&5
20735 echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
20738 ( exit $ac_status )
20739 ol_cv_pthread_pthreads=no
20740 fi
20741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20742 fi
20743
20744                 # restore the LIBS
20745                 LIBS="$ol_LIBS"
20746
20747 fi
20748 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
20749 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
20750
20751         if test $ol_cv_pthread_pthreads = yes ; then
20752                 ol_link_pthreads="-pthreads"
20753                 ol_link_threads=posix
20754         fi
20755 fi
20756
20757                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20758 if test "$ol_link_threads" = no ; then
20759         # try -mthreads
20760         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
20761 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
20762 if test "${ol_cv_pthread_mthreads+set}" = set; then
20763   echo $ECHO_N "(cached) $ECHO_C" >&6
20764 else
20765
20766                 # save the flags
20767                 ol_LIBS="$LIBS"
20768                 LIBS="-mthreads $LIBS"
20769
20770                 if test "$cross_compiling" = yes; then
20771   cat >conftest.$ac_ext <<_ACEOF
20772 /* confdefs.h.  */
20773 _ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h.  */
20777
20778 /* pthread test headers */
20779 #include <pthread.h>
20780 #if HAVE_PTHREADS < 7
20781 #include <errno.h>
20782 #endif
20783 #ifndef NULL
20784 #define NULL (void*)0
20785 #endif
20786
20787 static void *task(p)
20788         void *p;
20789 {
20790         return (void *) (p == NULL);
20791 }
20792
20793 int
20794 main ()
20795 {
20796
20797         /* pthread test function */
20798 #ifndef PTHREAD_CREATE_DETACHED
20799 #define PTHREAD_CREATE_DETACHED 1
20800 #endif
20801         pthread_t t;
20802         int status;
20803         int detach = PTHREAD_CREATE_DETACHED;
20804
20805 #if HAVE_PTHREADS > 4
20806         /* Final pthreads */
20807         pthread_attr_t attr;
20808
20809         status = pthread_attr_init(&attr);
20810         if( status ) return status;
20811
20812 #if HAVE_PTHREADS < 7
20813         status = pthread_attr_setdetachstate(&attr, &detach);
20814         if( status < 0 ) status = errno;
20815 #else
20816         status = pthread_attr_setdetachstate(&attr, detach);
20817 #endif
20818         if( status ) return status;
20819         status = pthread_create( &t, &attr, task, NULL );
20820 #if HAVE_PTHREADS < 7
20821         if( status < 0 ) status = errno;
20822 #endif
20823         if( status ) return status;
20824 #else
20825         /* Draft 4 pthreads */
20826         status = pthread_create( &t, pthread_attr_default, task, NULL );
20827         if( status ) return errno;
20828
20829         /* give thread a chance to complete */
20830         /* it should remain joinable and hence detachable */
20831         sleep( 1 );
20832
20833         status = pthread_detach( &t );
20834         if( status ) return errno;
20835 #endif
20836
20837 #ifdef HAVE_LINUX_THREADS
20838         pthread_kill_other_threads_np();
20839 #endif
20840
20841         return 0;
20842
20843   ;
20844   return 0;
20845 }
20846 _ACEOF
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20849   (eval $ac_link) 2>conftest.er1
20850   ac_status=$?
20851   grep -v '^ *+' conftest.er1 >conftest.err
20852   rm -f conftest.er1
20853   cat conftest.err >&5
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); } &&
20856          { ac_try='test -z "$ac_c_werror_flag"
20857                          || test ! -s conftest.err'
20858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859   (eval $ac_try) 2>&5
20860   ac_status=$?
20861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862   (exit $ac_status); }; } &&
20863          { ac_try='test -s conftest$ac_exeext'
20864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865   (eval $ac_try) 2>&5
20866   ac_status=$?
20867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868   (exit $ac_status); }; }; then
20869   ol_cv_pthread_mthreads=yes
20870 else
20871   echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20873
20874 ol_cv_pthread_mthreads=no
20875 fi
20876 rm -f conftest.err conftest.$ac_objext \
20877       conftest$ac_exeext conftest.$ac_ext
20878 else
20879   cat >conftest.$ac_ext <<_ACEOF
20880 /* confdefs.h.  */
20881 _ACEOF
20882 cat confdefs.h >>conftest.$ac_ext
20883 cat >>conftest.$ac_ext <<_ACEOF
20884 /* end confdefs.h.  */
20885
20886 /* pthread test headers */
20887 #include <pthread.h>
20888 #if HAVE_PTHREADS < 7
20889 #include <errno.h>
20890 #endif
20891 #ifndef NULL
20892 #define NULL (void*)0
20893 #endif
20894
20895 static void *task(p)
20896         void *p;
20897 {
20898         return (void *) (p == NULL);
20899 }
20900
20901
20902 int main(argc, argv)
20903         int argc;
20904         char **argv;
20905 {
20906
20907         /* pthread test function */
20908 #ifndef PTHREAD_CREATE_DETACHED
20909 #define PTHREAD_CREATE_DETACHED 1
20910 #endif
20911         pthread_t t;
20912         int status;
20913         int detach = PTHREAD_CREATE_DETACHED;
20914
20915 #if HAVE_PTHREADS > 4
20916         /* Final pthreads */
20917         pthread_attr_t attr;
20918
20919         status = pthread_attr_init(&attr);
20920         if( status ) return status;
20921
20922 #if HAVE_PTHREADS < 7
20923         status = pthread_attr_setdetachstate(&attr, &detach);
20924         if( status < 0 ) status = errno;
20925 #else
20926         status = pthread_attr_setdetachstate(&attr, detach);
20927 #endif
20928         if( status ) return status;
20929         status = pthread_create( &t, &attr, task, NULL );
20930 #if HAVE_PTHREADS < 7
20931         if( status < 0 ) status = errno;
20932 #endif
20933         if( status ) return status;
20934 #else
20935         /* Draft 4 pthreads */
20936         status = pthread_create( &t, pthread_attr_default, task, NULL );
20937         if( status ) return errno;
20938
20939         /* give thread a chance to complete */
20940         /* it should remain joinable and hence detachable */
20941         sleep( 1 );
20942
20943         status = pthread_detach( &t );
20944         if( status ) return errno;
20945 #endif
20946
20947 #ifdef HAVE_LINUX_THREADS
20948         pthread_kill_other_threads_np();
20949 #endif
20950
20951         return 0;
20952
20953 }
20954
20955 _ACEOF
20956 rm -f conftest$ac_exeext
20957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20958   (eval $ac_link) 2>&5
20959   ac_status=$?
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20963   (eval $ac_try) 2>&5
20964   ac_status=$?
20965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966   (exit $ac_status); }; }; then
20967   ol_cv_pthread_mthreads=yes
20968 else
20969   echo "$as_me: program exited with status $ac_status" >&5
20970 echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.$ac_ext >&5
20972
20973 ( exit $ac_status )
20974 ol_cv_pthread_mthreads=no
20975 fi
20976 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20977 fi
20978
20979                 # restore the LIBS
20980                 LIBS="$ol_LIBS"
20981
20982 fi
20983 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
20984 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
20985
20986         if test $ol_cv_pthread_mthreads = yes ; then
20987                 ol_link_pthreads="-mthreads"
20988                 ol_link_threads=posix
20989         fi
20990 fi
20991
20992                 # Pthread try link: -thread (ol_cv_pthread_thread)
20993 if test "$ol_link_threads" = no ; then
20994         # try -thread
20995         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
20996 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
20997 if test "${ol_cv_pthread_thread+set}" = set; then
20998   echo $ECHO_N "(cached) $ECHO_C" >&6
20999 else
21000
21001                 # save the flags
21002                 ol_LIBS="$LIBS"
21003                 LIBS="-thread $LIBS"
21004
21005                 if test "$cross_compiling" = yes; then
21006   cat >conftest.$ac_ext <<_ACEOF
21007 /* confdefs.h.  */
21008 _ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h.  */
21012
21013 /* pthread test headers */
21014 #include <pthread.h>
21015 #if HAVE_PTHREADS < 7
21016 #include <errno.h>
21017 #endif
21018 #ifndef NULL
21019 #define NULL (void*)0
21020 #endif
21021
21022 static void *task(p)
21023         void *p;
21024 {
21025         return (void *) (p == NULL);
21026 }
21027
21028 int
21029 main ()
21030 {
21031
21032         /* pthread test function */
21033 #ifndef PTHREAD_CREATE_DETACHED
21034 #define PTHREAD_CREATE_DETACHED 1
21035 #endif
21036         pthread_t t;
21037         int status;
21038         int detach = PTHREAD_CREATE_DETACHED;
21039
21040 #if HAVE_PTHREADS > 4
21041         /* Final pthreads */
21042         pthread_attr_t attr;
21043
21044         status = pthread_attr_init(&attr);
21045         if( status ) return status;
21046
21047 #if HAVE_PTHREADS < 7
21048         status = pthread_attr_setdetachstate(&attr, &detach);
21049         if( status < 0 ) status = errno;
21050 #else
21051         status = pthread_attr_setdetachstate(&attr, detach);
21052 #endif
21053         if( status ) return status;
21054         status = pthread_create( &t, &attr, task, NULL );
21055 #if HAVE_PTHREADS < 7
21056         if( status < 0 ) status = errno;
21057 #endif
21058         if( status ) return status;
21059 #else
21060         /* Draft 4 pthreads */
21061         status = pthread_create( &t, pthread_attr_default, task, NULL );
21062         if( status ) return errno;
21063
21064         /* give thread a chance to complete */
21065         /* it should remain joinable and hence detachable */
21066         sleep( 1 );
21067
21068         status = pthread_detach( &t );
21069         if( status ) return errno;
21070 #endif
21071
21072 #ifdef HAVE_LINUX_THREADS
21073         pthread_kill_other_threads_np();
21074 #endif
21075
21076         return 0;
21077
21078   ;
21079   return 0;
21080 }
21081 _ACEOF
21082 rm -f conftest.$ac_objext conftest$ac_exeext
21083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21084   (eval $ac_link) 2>conftest.er1
21085   ac_status=$?
21086   grep -v '^ *+' conftest.er1 >conftest.err
21087   rm -f conftest.er1
21088   cat conftest.err >&5
21089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090   (exit $ac_status); } &&
21091          { ac_try='test -z "$ac_c_werror_flag"
21092                          || test ! -s conftest.err'
21093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094   (eval $ac_try) 2>&5
21095   ac_status=$?
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); }; } &&
21098          { ac_try='test -s conftest$ac_exeext'
21099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100   (eval $ac_try) 2>&5
21101   ac_status=$?
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); }; }; then
21104   ol_cv_pthread_thread=yes
21105 else
21106   echo "$as_me: failed program was:" >&5
21107 sed 's/^/| /' conftest.$ac_ext >&5
21108
21109 ol_cv_pthread_thread=no
21110 fi
21111 rm -f conftest.err conftest.$ac_objext \
21112       conftest$ac_exeext conftest.$ac_ext
21113 else
21114   cat >conftest.$ac_ext <<_ACEOF
21115 /* confdefs.h.  */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h.  */
21120
21121 /* pthread test headers */
21122 #include <pthread.h>
21123 #if HAVE_PTHREADS < 7
21124 #include <errno.h>
21125 #endif
21126 #ifndef NULL
21127 #define NULL (void*)0
21128 #endif
21129
21130 static void *task(p)
21131         void *p;
21132 {
21133         return (void *) (p == NULL);
21134 }
21135
21136
21137 int main(argc, argv)
21138         int argc;
21139         char **argv;
21140 {
21141
21142         /* pthread test function */
21143 #ifndef PTHREAD_CREATE_DETACHED
21144 #define PTHREAD_CREATE_DETACHED 1
21145 #endif
21146         pthread_t t;
21147         int status;
21148         int detach = PTHREAD_CREATE_DETACHED;
21149
21150 #if HAVE_PTHREADS > 4
21151         /* Final pthreads */
21152         pthread_attr_t attr;
21153
21154         status = pthread_attr_init(&attr);
21155         if( status ) return status;
21156
21157 #if HAVE_PTHREADS < 7
21158         status = pthread_attr_setdetachstate(&attr, &detach);
21159         if( status < 0 ) status = errno;
21160 #else
21161         status = pthread_attr_setdetachstate(&attr, detach);
21162 #endif
21163         if( status ) return status;
21164         status = pthread_create( &t, &attr, task, NULL );
21165 #if HAVE_PTHREADS < 7
21166         if( status < 0 ) status = errno;
21167 #endif
21168         if( status ) return status;
21169 #else
21170         /* Draft 4 pthreads */
21171         status = pthread_create( &t, pthread_attr_default, task, NULL );
21172         if( status ) return errno;
21173
21174         /* give thread a chance to complete */
21175         /* it should remain joinable and hence detachable */
21176         sleep( 1 );
21177
21178         status = pthread_detach( &t );
21179         if( status ) return errno;
21180 #endif
21181
21182 #ifdef HAVE_LINUX_THREADS
21183         pthread_kill_other_threads_np();
21184 #endif
21185
21186         return 0;
21187
21188 }
21189
21190 _ACEOF
21191 rm -f conftest$ac_exeext
21192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21193   (eval $ac_link) 2>&5
21194   ac_status=$?
21195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198   (eval $ac_try) 2>&5
21199   ac_status=$?
21200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); }; }; then
21202   ol_cv_pthread_thread=yes
21203 else
21204   echo "$as_me: program exited with status $ac_status" >&5
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21207
21208 ( exit $ac_status )
21209 ol_cv_pthread_thread=no
21210 fi
21211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21212 fi
21213
21214                 # restore the LIBS
21215                 LIBS="$ol_LIBS"
21216
21217 fi
21218 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21219 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21220
21221         if test $ol_cv_pthread_thread = yes ; then
21222                 ol_link_pthreads="-thread"
21223                 ol_link_threads=posix
21224         fi
21225 fi
21226
21227
21228                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21229 if test "$ol_link_threads" = no ; then
21230         # try -lpthread -lmach -lexc -lc_r
21231         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21232 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21233 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21234   echo $ECHO_N "(cached) $ECHO_C" >&6
21235 else
21236
21237                 # save the flags
21238                 ol_LIBS="$LIBS"
21239                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21240
21241                 if test "$cross_compiling" = yes; then
21242   cat >conftest.$ac_ext <<_ACEOF
21243 /* confdefs.h.  */
21244 _ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h.  */
21248
21249 /* pthread test headers */
21250 #include <pthread.h>
21251 #if HAVE_PTHREADS < 7
21252 #include <errno.h>
21253 #endif
21254 #ifndef NULL
21255 #define NULL (void*)0
21256 #endif
21257
21258 static void *task(p)
21259         void *p;
21260 {
21261         return (void *) (p == NULL);
21262 }
21263
21264 int
21265 main ()
21266 {
21267
21268         /* pthread test function */
21269 #ifndef PTHREAD_CREATE_DETACHED
21270 #define PTHREAD_CREATE_DETACHED 1
21271 #endif
21272         pthread_t t;
21273         int status;
21274         int detach = PTHREAD_CREATE_DETACHED;
21275
21276 #if HAVE_PTHREADS > 4
21277         /* Final pthreads */
21278         pthread_attr_t attr;
21279
21280         status = pthread_attr_init(&attr);
21281         if( status ) return status;
21282
21283 #if HAVE_PTHREADS < 7
21284         status = pthread_attr_setdetachstate(&attr, &detach);
21285         if( status < 0 ) status = errno;
21286 #else
21287         status = pthread_attr_setdetachstate(&attr, detach);
21288 #endif
21289         if( status ) return status;
21290         status = pthread_create( &t, &attr, task, NULL );
21291 #if HAVE_PTHREADS < 7
21292         if( status < 0 ) status = errno;
21293 #endif
21294         if( status ) return status;
21295 #else
21296         /* Draft 4 pthreads */
21297         status = pthread_create( &t, pthread_attr_default, task, NULL );
21298         if( status ) return errno;
21299
21300         /* give thread a chance to complete */
21301         /* it should remain joinable and hence detachable */
21302         sleep( 1 );
21303
21304         status = pthread_detach( &t );
21305         if( status ) return errno;
21306 #endif
21307
21308 #ifdef HAVE_LINUX_THREADS
21309         pthread_kill_other_threads_np();
21310 #endif
21311
21312         return 0;
21313
21314   ;
21315   return 0;
21316 }
21317 _ACEOF
21318 rm -f conftest.$ac_objext conftest$ac_exeext
21319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21320   (eval $ac_link) 2>conftest.er1
21321   ac_status=$?
21322   grep -v '^ *+' conftest.er1 >conftest.err
21323   rm -f conftest.er1
21324   cat conftest.err >&5
21325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326   (exit $ac_status); } &&
21327          { ac_try='test -z "$ac_c_werror_flag"
21328                          || test ! -s conftest.err'
21329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330   (eval $ac_try) 2>&5
21331   ac_status=$?
21332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); }; } &&
21334          { ac_try='test -s conftest$ac_exeext'
21335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21336   (eval $ac_try) 2>&5
21337   ac_status=$?
21338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339   (exit $ac_status); }; }; then
21340   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21341 else
21342   echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21344
21345 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21346 fi
21347 rm -f conftest.err conftest.$ac_objext \
21348       conftest$ac_exeext conftest.$ac_ext
21349 else
21350   cat >conftest.$ac_ext <<_ACEOF
21351 /* confdefs.h.  */
21352 _ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h.  */
21356
21357 /* pthread test headers */
21358 #include <pthread.h>
21359 #if HAVE_PTHREADS < 7
21360 #include <errno.h>
21361 #endif
21362 #ifndef NULL
21363 #define NULL (void*)0
21364 #endif
21365
21366 static void *task(p)
21367         void *p;
21368 {
21369         return (void *) (p == NULL);
21370 }
21371
21372
21373 int main(argc, argv)
21374         int argc;
21375         char **argv;
21376 {
21377
21378         /* pthread test function */
21379 #ifndef PTHREAD_CREATE_DETACHED
21380 #define PTHREAD_CREATE_DETACHED 1
21381 #endif
21382         pthread_t t;
21383         int status;
21384         int detach = PTHREAD_CREATE_DETACHED;
21385
21386 #if HAVE_PTHREADS > 4
21387         /* Final pthreads */
21388         pthread_attr_t attr;
21389
21390         status = pthread_attr_init(&attr);
21391         if( status ) return status;
21392
21393 #if HAVE_PTHREADS < 7
21394         status = pthread_attr_setdetachstate(&attr, &detach);
21395         if( status < 0 ) status = errno;
21396 #else
21397         status = pthread_attr_setdetachstate(&attr, detach);
21398 #endif
21399         if( status ) return status;
21400         status = pthread_create( &t, &attr, task, NULL );
21401 #if HAVE_PTHREADS < 7
21402         if( status < 0 ) status = errno;
21403 #endif
21404         if( status ) return status;
21405 #else
21406         /* Draft 4 pthreads */
21407         status = pthread_create( &t, pthread_attr_default, task, NULL );
21408         if( status ) return errno;
21409
21410         /* give thread a chance to complete */
21411         /* it should remain joinable and hence detachable */
21412         sleep( 1 );
21413
21414         status = pthread_detach( &t );
21415         if( status ) return errno;
21416 #endif
21417
21418 #ifdef HAVE_LINUX_THREADS
21419         pthread_kill_other_threads_np();
21420 #endif
21421
21422         return 0;
21423
21424 }
21425
21426 _ACEOF
21427 rm -f conftest$ac_exeext
21428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21429   (eval $ac_link) 2>&5
21430   ac_status=$?
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21434   (eval $ac_try) 2>&5
21435   ac_status=$?
21436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437   (exit $ac_status); }; }; then
21438   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21439 else
21440   echo "$as_me: program exited with status $ac_status" >&5
21441 echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21443
21444 ( exit $ac_status )
21445 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21446 fi
21447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21448 fi
21449
21450                 # restore the LIBS
21451                 LIBS="$ol_LIBS"
21452
21453 fi
21454 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21455 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21456
21457         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21458                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21459                 ol_link_threads=posix
21460         fi
21461 fi
21462
21463                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21464 if test "$ol_link_threads" = no ; then
21465         # try -lpthread -lmach -lexc
21466         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21467 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21468 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21469   echo $ECHO_N "(cached) $ECHO_C" >&6
21470 else
21471
21472                 # save the flags
21473                 ol_LIBS="$LIBS"
21474                 LIBS="-lpthread -lmach -lexc $LIBS"
21475
21476                 if test "$cross_compiling" = yes; then
21477   cat >conftest.$ac_ext <<_ACEOF
21478 /* confdefs.h.  */
21479 _ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h.  */
21483
21484 /* pthread test headers */
21485 #include <pthread.h>
21486 #if HAVE_PTHREADS < 7
21487 #include <errno.h>
21488 #endif
21489 #ifndef NULL
21490 #define NULL (void*)0
21491 #endif
21492
21493 static void *task(p)
21494         void *p;
21495 {
21496         return (void *) (p == NULL);
21497 }
21498
21499 int
21500 main ()
21501 {
21502
21503         /* pthread test function */
21504 #ifndef PTHREAD_CREATE_DETACHED
21505 #define PTHREAD_CREATE_DETACHED 1
21506 #endif
21507         pthread_t t;
21508         int status;
21509         int detach = PTHREAD_CREATE_DETACHED;
21510
21511 #if HAVE_PTHREADS > 4
21512         /* Final pthreads */
21513         pthread_attr_t attr;
21514
21515         status = pthread_attr_init(&attr);
21516         if( status ) return status;
21517
21518 #if HAVE_PTHREADS < 7
21519         status = pthread_attr_setdetachstate(&attr, &detach);
21520         if( status < 0 ) status = errno;
21521 #else
21522         status = pthread_attr_setdetachstate(&attr, detach);
21523 #endif
21524         if( status ) return status;
21525         status = pthread_create( &t, &attr, task, NULL );
21526 #if HAVE_PTHREADS < 7
21527         if( status < 0 ) status = errno;
21528 #endif
21529         if( status ) return status;
21530 #else
21531         /* Draft 4 pthreads */
21532         status = pthread_create( &t, pthread_attr_default, task, NULL );
21533         if( status ) return errno;
21534
21535         /* give thread a chance to complete */
21536         /* it should remain joinable and hence detachable */
21537         sleep( 1 );
21538
21539         status = pthread_detach( &t );
21540         if( status ) return errno;
21541 #endif
21542
21543 #ifdef HAVE_LINUX_THREADS
21544         pthread_kill_other_threads_np();
21545 #endif
21546
21547         return 0;
21548
21549   ;
21550   return 0;
21551 }
21552 _ACEOF
21553 rm -f conftest.$ac_objext conftest$ac_exeext
21554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21555   (eval $ac_link) 2>conftest.er1
21556   ac_status=$?
21557   grep -v '^ *+' conftest.er1 >conftest.err
21558   rm -f conftest.er1
21559   cat conftest.err >&5
21560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561   (exit $ac_status); } &&
21562          { ac_try='test -z "$ac_c_werror_flag"
21563                          || test ! -s conftest.err'
21564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565   (eval $ac_try) 2>&5
21566   ac_status=$?
21567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568   (exit $ac_status); }; } &&
21569          { ac_try='test -s conftest$ac_exeext'
21570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21571   (eval $ac_try) 2>&5
21572   ac_status=$?
21573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574   (exit $ac_status); }; }; then
21575   ol_cv_pthread_lpthread_lmach_lexc=yes
21576 else
21577   echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21579
21580 ol_cv_pthread_lpthread_lmach_lexc=no
21581 fi
21582 rm -f conftest.err conftest.$ac_objext \
21583       conftest$ac_exeext conftest.$ac_ext
21584 else
21585   cat >conftest.$ac_ext <<_ACEOF
21586 /* confdefs.h.  */
21587 _ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h.  */
21591
21592 /* pthread test headers */
21593 #include <pthread.h>
21594 #if HAVE_PTHREADS < 7
21595 #include <errno.h>
21596 #endif
21597 #ifndef NULL
21598 #define NULL (void*)0
21599 #endif
21600
21601 static void *task(p)
21602         void *p;
21603 {
21604         return (void *) (p == NULL);
21605 }
21606
21607
21608 int main(argc, argv)
21609         int argc;
21610         char **argv;
21611 {
21612
21613         /* pthread test function */
21614 #ifndef PTHREAD_CREATE_DETACHED
21615 #define PTHREAD_CREATE_DETACHED 1
21616 #endif
21617         pthread_t t;
21618         int status;
21619         int detach = PTHREAD_CREATE_DETACHED;
21620
21621 #if HAVE_PTHREADS > 4
21622         /* Final pthreads */
21623         pthread_attr_t attr;
21624
21625         status = pthread_attr_init(&attr);
21626         if( status ) return status;
21627
21628 #if HAVE_PTHREADS < 7
21629         status = pthread_attr_setdetachstate(&attr, &detach);
21630         if( status < 0 ) status = errno;
21631 #else
21632         status = pthread_attr_setdetachstate(&attr, detach);
21633 #endif
21634         if( status ) return status;
21635         status = pthread_create( &t, &attr, task, NULL );
21636 #if HAVE_PTHREADS < 7
21637         if( status < 0 ) status = errno;
21638 #endif
21639         if( status ) return status;
21640 #else
21641         /* Draft 4 pthreads */
21642         status = pthread_create( &t, pthread_attr_default, task, NULL );
21643         if( status ) return errno;
21644
21645         /* give thread a chance to complete */
21646         /* it should remain joinable and hence detachable */
21647         sleep( 1 );
21648
21649         status = pthread_detach( &t );
21650         if( status ) return errno;
21651 #endif
21652
21653 #ifdef HAVE_LINUX_THREADS
21654         pthread_kill_other_threads_np();
21655 #endif
21656
21657         return 0;
21658
21659 }
21660
21661 _ACEOF
21662 rm -f conftest$ac_exeext
21663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21664   (eval $ac_link) 2>&5
21665   ac_status=$?
21666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669   (eval $ac_try) 2>&5
21670   ac_status=$?
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); }; }; then
21673   ol_cv_pthread_lpthread_lmach_lexc=yes
21674 else
21675   echo "$as_me: program exited with status $ac_status" >&5
21676 echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21678
21679 ( exit $ac_status )
21680 ol_cv_pthread_lpthread_lmach_lexc=no
21681 fi
21682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21683 fi
21684
21685                 # restore the LIBS
21686                 LIBS="$ol_LIBS"
21687
21688 fi
21689 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
21690 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
21691
21692         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
21693                 ol_link_pthreads="-lpthread -lmach -lexc"
21694                 ol_link_threads=posix
21695         fi
21696 fi
21697
21698
21699                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
21700 if test "$ol_link_threads" = no ; then
21701         # try -lpthread -Wl,-woff,85
21702         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
21703 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
21704 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
21705   echo $ECHO_N "(cached) $ECHO_C" >&6
21706 else
21707
21708                 # save the flags
21709                 ol_LIBS="$LIBS"
21710                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
21711
21712                 if test "$cross_compiling" = yes; then
21713   cat >conftest.$ac_ext <<_ACEOF
21714 /* confdefs.h.  */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h.  */
21719
21720 /* pthread test headers */
21721 #include <pthread.h>
21722 #if HAVE_PTHREADS < 7
21723 #include <errno.h>
21724 #endif
21725 #ifndef NULL
21726 #define NULL (void*)0
21727 #endif
21728
21729 static void *task(p)
21730         void *p;
21731 {
21732         return (void *) (p == NULL);
21733 }
21734
21735 int
21736 main ()
21737 {
21738
21739         /* pthread test function */
21740 #ifndef PTHREAD_CREATE_DETACHED
21741 #define PTHREAD_CREATE_DETACHED 1
21742 #endif
21743         pthread_t t;
21744         int status;
21745         int detach = PTHREAD_CREATE_DETACHED;
21746
21747 #if HAVE_PTHREADS > 4
21748         /* Final pthreads */
21749         pthread_attr_t attr;
21750
21751         status = pthread_attr_init(&attr);
21752         if( status ) return status;
21753
21754 #if HAVE_PTHREADS < 7
21755         status = pthread_attr_setdetachstate(&attr, &detach);
21756         if( status < 0 ) status = errno;
21757 #else
21758         status = pthread_attr_setdetachstate(&attr, detach);
21759 #endif
21760         if( status ) return status;
21761         status = pthread_create( &t, &attr, task, NULL );
21762 #if HAVE_PTHREADS < 7
21763         if( status < 0 ) status = errno;
21764 #endif
21765         if( status ) return status;
21766 #else
21767         /* Draft 4 pthreads */
21768         status = pthread_create( &t, pthread_attr_default, task, NULL );
21769         if( status ) return errno;
21770
21771         /* give thread a chance to complete */
21772         /* it should remain joinable and hence detachable */
21773         sleep( 1 );
21774
21775         status = pthread_detach( &t );
21776         if( status ) return errno;
21777 #endif
21778
21779 #ifdef HAVE_LINUX_THREADS
21780         pthread_kill_other_threads_np();
21781 #endif
21782
21783         return 0;
21784
21785   ;
21786   return 0;
21787 }
21788 _ACEOF
21789 rm -f conftest.$ac_objext conftest$ac_exeext
21790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21791   (eval $ac_link) 2>conftest.er1
21792   ac_status=$?
21793   grep -v '^ *+' conftest.er1 >conftest.err
21794   rm -f conftest.er1
21795   cat conftest.err >&5
21796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797   (exit $ac_status); } &&
21798          { ac_try='test -z "$ac_c_werror_flag"
21799                          || test ! -s conftest.err'
21800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801   (eval $ac_try) 2>&5
21802   ac_status=$?
21803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804   (exit $ac_status); }; } &&
21805          { ac_try='test -s conftest$ac_exeext'
21806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807   (eval $ac_try) 2>&5
21808   ac_status=$?
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); }; }; then
21811   ol_cv_pthread_lib_lpthread_woff=yes
21812 else
21813   echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21815
21816 ol_cv_pthread_lib_lpthread_woff=no
21817 fi
21818 rm -f conftest.err conftest.$ac_objext \
21819       conftest$ac_exeext conftest.$ac_ext
21820 else
21821   cat >conftest.$ac_ext <<_ACEOF
21822 /* confdefs.h.  */
21823 _ACEOF
21824 cat confdefs.h >>conftest.$ac_ext
21825 cat >>conftest.$ac_ext <<_ACEOF
21826 /* end confdefs.h.  */
21827
21828 /* pthread test headers */
21829 #include <pthread.h>
21830 #if HAVE_PTHREADS < 7
21831 #include <errno.h>
21832 #endif
21833 #ifndef NULL
21834 #define NULL (void*)0
21835 #endif
21836
21837 static void *task(p)
21838         void *p;
21839 {
21840         return (void *) (p == NULL);
21841 }
21842
21843
21844 int main(argc, argv)
21845         int argc;
21846         char **argv;
21847 {
21848
21849         /* pthread test function */
21850 #ifndef PTHREAD_CREATE_DETACHED
21851 #define PTHREAD_CREATE_DETACHED 1
21852 #endif
21853         pthread_t t;
21854         int status;
21855         int detach = PTHREAD_CREATE_DETACHED;
21856
21857 #if HAVE_PTHREADS > 4
21858         /* Final pthreads */
21859         pthread_attr_t attr;
21860
21861         status = pthread_attr_init(&attr);
21862         if( status ) return status;
21863
21864 #if HAVE_PTHREADS < 7
21865         status = pthread_attr_setdetachstate(&attr, &detach);
21866         if( status < 0 ) status = errno;
21867 #else
21868         status = pthread_attr_setdetachstate(&attr, detach);
21869 #endif
21870         if( status ) return status;
21871         status = pthread_create( &t, &attr, task, NULL );
21872 #if HAVE_PTHREADS < 7
21873         if( status < 0 ) status = errno;
21874 #endif
21875         if( status ) return status;
21876 #else
21877         /* Draft 4 pthreads */
21878         status = pthread_create( &t, pthread_attr_default, task, NULL );
21879         if( status ) return errno;
21880
21881         /* give thread a chance to complete */
21882         /* it should remain joinable and hence detachable */
21883         sleep( 1 );
21884
21885         status = pthread_detach( &t );
21886         if( status ) return errno;
21887 #endif
21888
21889 #ifdef HAVE_LINUX_THREADS
21890         pthread_kill_other_threads_np();
21891 #endif
21892
21893         return 0;
21894
21895 }
21896
21897 _ACEOF
21898 rm -f conftest$ac_exeext
21899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21900   (eval $ac_link) 2>&5
21901   ac_status=$?
21902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905   (eval $ac_try) 2>&5
21906   ac_status=$?
21907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); }; }; then
21909   ol_cv_pthread_lib_lpthread_woff=yes
21910 else
21911   echo "$as_me: program exited with status $ac_status" >&5
21912 echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21914
21915 ( exit $ac_status )
21916 ol_cv_pthread_lib_lpthread_woff=no
21917 fi
21918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21919 fi
21920
21921                 # restore the LIBS
21922                 LIBS="$ol_LIBS"
21923
21924 fi
21925 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21926 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
21927
21928         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21929                 ol_link_pthreads="-lpthread -Wl,-woff,85"
21930                 ol_link_threads=posix
21931         fi
21932 fi
21933
21934
21935                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21936 if test "$ol_link_threads" = no ; then
21937         # try -lpthread
21938         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
21939 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
21940 if test "${ol_cv_pthread_lpthread+set}" = set; then
21941   echo $ECHO_N "(cached) $ECHO_C" >&6
21942 else
21943
21944                 # save the flags
21945                 ol_LIBS="$LIBS"
21946                 LIBS="-lpthread $LIBS"
21947
21948                 if test "$cross_compiling" = yes; then
21949   cat >conftest.$ac_ext <<_ACEOF
21950 /* confdefs.h.  */
21951 _ACEOF
21952 cat confdefs.h >>conftest.$ac_ext
21953 cat >>conftest.$ac_ext <<_ACEOF
21954 /* end confdefs.h.  */
21955
21956 /* pthread test headers */
21957 #include <pthread.h>
21958 #if HAVE_PTHREADS < 7
21959 #include <errno.h>
21960 #endif
21961 #ifndef NULL
21962 #define NULL (void*)0
21963 #endif
21964
21965 static void *task(p)
21966         void *p;
21967 {
21968         return (void *) (p == NULL);
21969 }
21970
21971 int
21972 main ()
21973 {
21974
21975         /* pthread test function */
21976 #ifndef PTHREAD_CREATE_DETACHED
21977 #define PTHREAD_CREATE_DETACHED 1
21978 #endif
21979         pthread_t t;
21980         int status;
21981         int detach = PTHREAD_CREATE_DETACHED;
21982
21983 #if HAVE_PTHREADS > 4
21984         /* Final pthreads */
21985         pthread_attr_t attr;
21986
21987         status = pthread_attr_init(&attr);
21988         if( status ) return status;
21989
21990 #if HAVE_PTHREADS < 7
21991         status = pthread_attr_setdetachstate(&attr, &detach);
21992         if( status < 0 ) status = errno;
21993 #else
21994         status = pthread_attr_setdetachstate(&attr, detach);
21995 #endif
21996         if( status ) return status;
21997         status = pthread_create( &t, &attr, task, NULL );
21998 #if HAVE_PTHREADS < 7
21999         if( status < 0 ) status = errno;
22000 #endif
22001         if( status ) return status;
22002 #else
22003         /* Draft 4 pthreads */
22004         status = pthread_create( &t, pthread_attr_default, task, NULL );
22005         if( status ) return errno;
22006
22007         /* give thread a chance to complete */
22008         /* it should remain joinable and hence detachable */
22009         sleep( 1 );
22010
22011         status = pthread_detach( &t );
22012         if( status ) return errno;
22013 #endif
22014
22015 #ifdef HAVE_LINUX_THREADS
22016         pthread_kill_other_threads_np();
22017 #endif
22018
22019         return 0;
22020
22021   ;
22022   return 0;
22023 }
22024 _ACEOF
22025 rm -f conftest.$ac_objext conftest$ac_exeext
22026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22027   (eval $ac_link) 2>conftest.er1
22028   ac_status=$?
22029   grep -v '^ *+' conftest.er1 >conftest.err
22030   rm -f conftest.er1
22031   cat conftest.err >&5
22032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); } &&
22034          { ac_try='test -z "$ac_c_werror_flag"
22035                          || test ! -s conftest.err'
22036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037   (eval $ac_try) 2>&5
22038   ac_status=$?
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); }; } &&
22041          { ac_try='test -s conftest$ac_exeext'
22042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043   (eval $ac_try) 2>&5
22044   ac_status=$?
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); }; }; then
22047   ol_cv_pthread_lpthread=yes
22048 else
22049   echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22051
22052 ol_cv_pthread_lpthread=no
22053 fi
22054 rm -f conftest.err conftest.$ac_objext \
22055       conftest$ac_exeext conftest.$ac_ext
22056 else
22057   cat >conftest.$ac_ext <<_ACEOF
22058 /* confdefs.h.  */
22059 _ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h.  */
22063
22064 /* pthread test headers */
22065 #include <pthread.h>
22066 #if HAVE_PTHREADS < 7
22067 #include <errno.h>
22068 #endif
22069 #ifndef NULL
22070 #define NULL (void*)0
22071 #endif
22072
22073 static void *task(p)
22074         void *p;
22075 {
22076         return (void *) (p == NULL);
22077 }
22078
22079
22080 int main(argc, argv)
22081         int argc;
22082         char **argv;
22083 {
22084
22085         /* pthread test function */
22086 #ifndef PTHREAD_CREATE_DETACHED
22087 #define PTHREAD_CREATE_DETACHED 1
22088 #endif
22089         pthread_t t;
22090         int status;
22091         int detach = PTHREAD_CREATE_DETACHED;
22092
22093 #if HAVE_PTHREADS > 4
22094         /* Final pthreads */
22095         pthread_attr_t attr;
22096
22097         status = pthread_attr_init(&attr);
22098         if( status ) return status;
22099
22100 #if HAVE_PTHREADS < 7
22101         status = pthread_attr_setdetachstate(&attr, &detach);
22102         if( status < 0 ) status = errno;
22103 #else
22104         status = pthread_attr_setdetachstate(&attr, detach);
22105 #endif
22106         if( status ) return status;
22107         status = pthread_create( &t, &attr, task, NULL );
22108 #if HAVE_PTHREADS < 7
22109         if( status < 0 ) status = errno;
22110 #endif
22111         if( status ) return status;
22112 #else
22113         /* Draft 4 pthreads */
22114         status = pthread_create( &t, pthread_attr_default, task, NULL );
22115         if( status ) return errno;
22116
22117         /* give thread a chance to complete */
22118         /* it should remain joinable and hence detachable */
22119         sleep( 1 );
22120
22121         status = pthread_detach( &t );
22122         if( status ) return errno;
22123 #endif
22124
22125 #ifdef HAVE_LINUX_THREADS
22126         pthread_kill_other_threads_np();
22127 #endif
22128
22129         return 0;
22130
22131 }
22132
22133 _ACEOF
22134 rm -f conftest$ac_exeext
22135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22136   (eval $ac_link) 2>&5
22137   ac_status=$?
22138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22141   (eval $ac_try) 2>&5
22142   ac_status=$?
22143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144   (exit $ac_status); }; }; then
22145   ol_cv_pthread_lpthread=yes
22146 else
22147   echo "$as_me: program exited with status $ac_status" >&5
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22150
22151 ( exit $ac_status )
22152 ol_cv_pthread_lpthread=no
22153 fi
22154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22155 fi
22156
22157                 # restore the LIBS
22158                 LIBS="$ol_LIBS"
22159
22160 fi
22161 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22162 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22163
22164         if test $ol_cv_pthread_lpthread = yes ; then
22165                 ol_link_pthreads="-lpthread"
22166                 ol_link_threads=posix
22167         fi
22168 fi
22169
22170                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22171 if test "$ol_link_threads" = no ; then
22172         # try -lc_r
22173         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22174 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22175 if test "${ol_cv_pthread_lc_r+set}" = set; then
22176   echo $ECHO_N "(cached) $ECHO_C" >&6
22177 else
22178
22179                 # save the flags
22180                 ol_LIBS="$LIBS"
22181                 LIBS="-lc_r $LIBS"
22182
22183                 if test "$cross_compiling" = yes; then
22184   cat >conftest.$ac_ext <<_ACEOF
22185 /* confdefs.h.  */
22186 _ACEOF
22187 cat confdefs.h >>conftest.$ac_ext
22188 cat >>conftest.$ac_ext <<_ACEOF
22189 /* end confdefs.h.  */
22190
22191 /* pthread test headers */
22192 #include <pthread.h>
22193 #if HAVE_PTHREADS < 7
22194 #include <errno.h>
22195 #endif
22196 #ifndef NULL
22197 #define NULL (void*)0
22198 #endif
22199
22200 static void *task(p)
22201         void *p;
22202 {
22203         return (void *) (p == NULL);
22204 }
22205
22206 int
22207 main ()
22208 {
22209
22210         /* pthread test function */
22211 #ifndef PTHREAD_CREATE_DETACHED
22212 #define PTHREAD_CREATE_DETACHED 1
22213 #endif
22214         pthread_t t;
22215         int status;
22216         int detach = PTHREAD_CREATE_DETACHED;
22217
22218 #if HAVE_PTHREADS > 4
22219         /* Final pthreads */
22220         pthread_attr_t attr;
22221
22222         status = pthread_attr_init(&attr);
22223         if( status ) return status;
22224
22225 #if HAVE_PTHREADS < 7
22226         status = pthread_attr_setdetachstate(&attr, &detach);
22227         if( status < 0 ) status = errno;
22228 #else
22229         status = pthread_attr_setdetachstate(&attr, detach);
22230 #endif
22231         if( status ) return status;
22232         status = pthread_create( &t, &attr, task, NULL );
22233 #if HAVE_PTHREADS < 7
22234         if( status < 0 ) status = errno;
22235 #endif
22236         if( status ) return status;
22237 #else
22238         /* Draft 4 pthreads */
22239         status = pthread_create( &t, pthread_attr_default, task, NULL );
22240         if( status ) return errno;
22241
22242         /* give thread a chance to complete */
22243         /* it should remain joinable and hence detachable */
22244         sleep( 1 );
22245
22246         status = pthread_detach( &t );
22247         if( status ) return errno;
22248 #endif
22249
22250 #ifdef HAVE_LINUX_THREADS
22251         pthread_kill_other_threads_np();
22252 #endif
22253
22254         return 0;
22255
22256   ;
22257   return 0;
22258 }
22259 _ACEOF
22260 rm -f conftest.$ac_objext conftest$ac_exeext
22261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22262   (eval $ac_link) 2>conftest.er1
22263   ac_status=$?
22264   grep -v '^ *+' conftest.er1 >conftest.err
22265   rm -f conftest.er1
22266   cat conftest.err >&5
22267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); } &&
22269          { ac_try='test -z "$ac_c_werror_flag"
22270                          || test ! -s conftest.err'
22271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272   (eval $ac_try) 2>&5
22273   ac_status=$?
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); }; } &&
22276          { ac_try='test -s conftest$ac_exeext'
22277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278   (eval $ac_try) 2>&5
22279   ac_status=$?
22280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281   (exit $ac_status); }; }; then
22282   ol_cv_pthread_lc_r=yes
22283 else
22284   echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22286
22287 ol_cv_pthread_lc_r=no
22288 fi
22289 rm -f conftest.err conftest.$ac_objext \
22290       conftest$ac_exeext conftest.$ac_ext
22291 else
22292   cat >conftest.$ac_ext <<_ACEOF
22293 /* confdefs.h.  */
22294 _ACEOF
22295 cat confdefs.h >>conftest.$ac_ext
22296 cat >>conftest.$ac_ext <<_ACEOF
22297 /* end confdefs.h.  */
22298
22299 /* pthread test headers */
22300 #include <pthread.h>
22301 #if HAVE_PTHREADS < 7
22302 #include <errno.h>
22303 #endif
22304 #ifndef NULL
22305 #define NULL (void*)0
22306 #endif
22307
22308 static void *task(p)
22309         void *p;
22310 {
22311         return (void *) (p == NULL);
22312 }
22313
22314
22315 int main(argc, argv)
22316         int argc;
22317         char **argv;
22318 {
22319
22320         /* pthread test function */
22321 #ifndef PTHREAD_CREATE_DETACHED
22322 #define PTHREAD_CREATE_DETACHED 1
22323 #endif
22324         pthread_t t;
22325         int status;
22326         int detach = PTHREAD_CREATE_DETACHED;
22327
22328 #if HAVE_PTHREADS > 4
22329         /* Final pthreads */
22330         pthread_attr_t attr;
22331
22332         status = pthread_attr_init(&attr);
22333         if( status ) return status;
22334
22335 #if HAVE_PTHREADS < 7
22336         status = pthread_attr_setdetachstate(&attr, &detach);
22337         if( status < 0 ) status = errno;
22338 #else
22339         status = pthread_attr_setdetachstate(&attr, detach);
22340 #endif
22341         if( status ) return status;
22342         status = pthread_create( &t, &attr, task, NULL );
22343 #if HAVE_PTHREADS < 7
22344         if( status < 0 ) status = errno;
22345 #endif
22346         if( status ) return status;
22347 #else
22348         /* Draft 4 pthreads */
22349         status = pthread_create( &t, pthread_attr_default, task, NULL );
22350         if( status ) return errno;
22351
22352         /* give thread a chance to complete */
22353         /* it should remain joinable and hence detachable */
22354         sleep( 1 );
22355
22356         status = pthread_detach( &t );
22357         if( status ) return errno;
22358 #endif
22359
22360 #ifdef HAVE_LINUX_THREADS
22361         pthread_kill_other_threads_np();
22362 #endif
22363
22364         return 0;
22365
22366 }
22367
22368 _ACEOF
22369 rm -f conftest$ac_exeext
22370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22371   (eval $ac_link) 2>&5
22372   ac_status=$?
22373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376   (eval $ac_try) 2>&5
22377   ac_status=$?
22378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379   (exit $ac_status); }; }; then
22380   ol_cv_pthread_lc_r=yes
22381 else
22382   echo "$as_me: program exited with status $ac_status" >&5
22383 echo "$as_me: failed program was:" >&5
22384 sed 's/^/| /' conftest.$ac_ext >&5
22385
22386 ( exit $ac_status )
22387 ol_cv_pthread_lc_r=no
22388 fi
22389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22390 fi
22391
22392                 # restore the LIBS
22393                 LIBS="$ol_LIBS"
22394
22395 fi
22396 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22397 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22398
22399         if test $ol_cv_pthread_lc_r = yes ; then
22400                 ol_link_pthreads="-lc_r"
22401                 ol_link_threads=posix
22402         fi
22403 fi
22404
22405
22406                 # Pthread try link: -threads (ol_cv_pthread_threads)
22407 if test "$ol_link_threads" = no ; then
22408         # try -threads
22409         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22410 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22411 if test "${ol_cv_pthread_threads+set}" = set; then
22412   echo $ECHO_N "(cached) $ECHO_C" >&6
22413 else
22414
22415                 # save the flags
22416                 ol_LIBS="$LIBS"
22417                 LIBS="-threads $LIBS"
22418
22419                 if test "$cross_compiling" = yes; then
22420   cat >conftest.$ac_ext <<_ACEOF
22421 /* confdefs.h.  */
22422 _ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h.  */
22426
22427 /* pthread test headers */
22428 #include <pthread.h>
22429 #if HAVE_PTHREADS < 7
22430 #include <errno.h>
22431 #endif
22432 #ifndef NULL
22433 #define NULL (void*)0
22434 #endif
22435
22436 static void *task(p)
22437         void *p;
22438 {
22439         return (void *) (p == NULL);
22440 }
22441
22442 int
22443 main ()
22444 {
22445
22446         /* pthread test function */
22447 #ifndef PTHREAD_CREATE_DETACHED
22448 #define PTHREAD_CREATE_DETACHED 1
22449 #endif
22450         pthread_t t;
22451         int status;
22452         int detach = PTHREAD_CREATE_DETACHED;
22453
22454 #if HAVE_PTHREADS > 4
22455         /* Final pthreads */
22456         pthread_attr_t attr;
22457
22458         status = pthread_attr_init(&attr);
22459         if( status ) return status;
22460
22461 #if HAVE_PTHREADS < 7
22462         status = pthread_attr_setdetachstate(&attr, &detach);
22463         if( status < 0 ) status = errno;
22464 #else
22465         status = pthread_attr_setdetachstate(&attr, detach);
22466 #endif
22467         if( status ) return status;
22468         status = pthread_create( &t, &attr, task, NULL );
22469 #if HAVE_PTHREADS < 7
22470         if( status < 0 ) status = errno;
22471 #endif
22472         if( status ) return status;
22473 #else
22474         /* Draft 4 pthreads */
22475         status = pthread_create( &t, pthread_attr_default, task, NULL );
22476         if( status ) return errno;
22477
22478         /* give thread a chance to complete */
22479         /* it should remain joinable and hence detachable */
22480         sleep( 1 );
22481
22482         status = pthread_detach( &t );
22483         if( status ) return errno;
22484 #endif
22485
22486 #ifdef HAVE_LINUX_THREADS
22487         pthread_kill_other_threads_np();
22488 #endif
22489
22490         return 0;
22491
22492   ;
22493   return 0;
22494 }
22495 _ACEOF
22496 rm -f conftest.$ac_objext conftest$ac_exeext
22497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22498   (eval $ac_link) 2>conftest.er1
22499   ac_status=$?
22500   grep -v '^ *+' conftest.er1 >conftest.err
22501   rm -f conftest.er1
22502   cat conftest.err >&5
22503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504   (exit $ac_status); } &&
22505          { ac_try='test -z "$ac_c_werror_flag"
22506                          || test ! -s conftest.err'
22507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508   (eval $ac_try) 2>&5
22509   ac_status=$?
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); }; } &&
22512          { ac_try='test -s conftest$ac_exeext'
22513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514   (eval $ac_try) 2>&5
22515   ac_status=$?
22516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517   (exit $ac_status); }; }; then
22518   ol_cv_pthread_threads=yes
22519 else
22520   echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22522
22523 ol_cv_pthread_threads=no
22524 fi
22525 rm -f conftest.err conftest.$ac_objext \
22526       conftest$ac_exeext conftest.$ac_ext
22527 else
22528   cat >conftest.$ac_ext <<_ACEOF
22529 /* confdefs.h.  */
22530 _ACEOF
22531 cat confdefs.h >>conftest.$ac_ext
22532 cat >>conftest.$ac_ext <<_ACEOF
22533 /* end confdefs.h.  */
22534
22535 /* pthread test headers */
22536 #include <pthread.h>
22537 #if HAVE_PTHREADS < 7
22538 #include <errno.h>
22539 #endif
22540 #ifndef NULL
22541 #define NULL (void*)0
22542 #endif
22543
22544 static void *task(p)
22545         void *p;
22546 {
22547         return (void *) (p == NULL);
22548 }
22549
22550
22551 int main(argc, argv)
22552         int argc;
22553         char **argv;
22554 {
22555
22556         /* pthread test function */
22557 #ifndef PTHREAD_CREATE_DETACHED
22558 #define PTHREAD_CREATE_DETACHED 1
22559 #endif
22560         pthread_t t;
22561         int status;
22562         int detach = PTHREAD_CREATE_DETACHED;
22563
22564 #if HAVE_PTHREADS > 4
22565         /* Final pthreads */
22566         pthread_attr_t attr;
22567
22568         status = pthread_attr_init(&attr);
22569         if( status ) return status;
22570
22571 #if HAVE_PTHREADS < 7
22572         status = pthread_attr_setdetachstate(&attr, &detach);
22573         if( status < 0 ) status = errno;
22574 #else
22575         status = pthread_attr_setdetachstate(&attr, detach);
22576 #endif
22577         if( status ) return status;
22578         status = pthread_create( &t, &attr, task, NULL );
22579 #if HAVE_PTHREADS < 7
22580         if( status < 0 ) status = errno;
22581 #endif
22582         if( status ) return status;
22583 #else
22584         /* Draft 4 pthreads */
22585         status = pthread_create( &t, pthread_attr_default, task, NULL );
22586         if( status ) return errno;
22587
22588         /* give thread a chance to complete */
22589         /* it should remain joinable and hence detachable */
22590         sleep( 1 );
22591
22592         status = pthread_detach( &t );
22593         if( status ) return errno;
22594 #endif
22595
22596 #ifdef HAVE_LINUX_THREADS
22597         pthread_kill_other_threads_np();
22598 #endif
22599
22600         return 0;
22601
22602 }
22603
22604 _ACEOF
22605 rm -f conftest$ac_exeext
22606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22607   (eval $ac_link) 2>&5
22608   ac_status=$?
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612   (eval $ac_try) 2>&5
22613   ac_status=$?
22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); }; }; then
22616   ol_cv_pthread_threads=yes
22617 else
22618   echo "$as_me: program exited with status $ac_status" >&5
22619 echo "$as_me: failed program was:" >&5
22620 sed 's/^/| /' conftest.$ac_ext >&5
22621
22622 ( exit $ac_status )
22623 ol_cv_pthread_threads=no
22624 fi
22625 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22626 fi
22627
22628                 # restore the LIBS
22629                 LIBS="$ol_LIBS"
22630
22631 fi
22632 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
22633 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
22634
22635         if test $ol_cv_pthread_threads = yes ; then
22636                 ol_link_pthreads="-threads"
22637                 ol_link_threads=posix
22638         fi
22639 fi
22640
22641
22642                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
22643 if test "$ol_link_threads" = no ; then
22644         # try -lpthreads -lmach -lexc -lc_r
22645         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
22646 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
22647 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
22648   echo $ECHO_N "(cached) $ECHO_C" >&6
22649 else
22650
22651                 # save the flags
22652                 ol_LIBS="$LIBS"
22653                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
22654
22655                 if test "$cross_compiling" = yes; then
22656   cat >conftest.$ac_ext <<_ACEOF
22657 /* confdefs.h.  */
22658 _ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h.  */
22662
22663 /* pthread test headers */
22664 #include <pthread.h>
22665 #if HAVE_PTHREADS < 7
22666 #include <errno.h>
22667 #endif
22668 #ifndef NULL
22669 #define NULL (void*)0
22670 #endif
22671
22672 static void *task(p)
22673         void *p;
22674 {
22675         return (void *) (p == NULL);
22676 }
22677
22678 int
22679 main ()
22680 {
22681
22682         /* pthread test function */
22683 #ifndef PTHREAD_CREATE_DETACHED
22684 #define PTHREAD_CREATE_DETACHED 1
22685 #endif
22686         pthread_t t;
22687         int status;
22688         int detach = PTHREAD_CREATE_DETACHED;
22689
22690 #if HAVE_PTHREADS > 4
22691         /* Final pthreads */
22692         pthread_attr_t attr;
22693
22694         status = pthread_attr_init(&attr);
22695         if( status ) return status;
22696
22697 #if HAVE_PTHREADS < 7
22698         status = pthread_attr_setdetachstate(&attr, &detach);
22699         if( status < 0 ) status = errno;
22700 #else
22701         status = pthread_attr_setdetachstate(&attr, detach);
22702 #endif
22703         if( status ) return status;
22704         status = pthread_create( &t, &attr, task, NULL );
22705 #if HAVE_PTHREADS < 7
22706         if( status < 0 ) status = errno;
22707 #endif
22708         if( status ) return status;
22709 #else
22710         /* Draft 4 pthreads */
22711         status = pthread_create( &t, pthread_attr_default, task, NULL );
22712         if( status ) return errno;
22713
22714         /* give thread a chance to complete */
22715         /* it should remain joinable and hence detachable */
22716         sleep( 1 );
22717
22718         status = pthread_detach( &t );
22719         if( status ) return errno;
22720 #endif
22721
22722 #ifdef HAVE_LINUX_THREADS
22723         pthread_kill_other_threads_np();
22724 #endif
22725
22726         return 0;
22727
22728   ;
22729   return 0;
22730 }
22731 _ACEOF
22732 rm -f conftest.$ac_objext conftest$ac_exeext
22733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22734   (eval $ac_link) 2>conftest.er1
22735   ac_status=$?
22736   grep -v '^ *+' conftest.er1 >conftest.err
22737   rm -f conftest.er1
22738   cat conftest.err >&5
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); } &&
22741          { ac_try='test -z "$ac_c_werror_flag"
22742                          || test ! -s conftest.err'
22743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744   (eval $ac_try) 2>&5
22745   ac_status=$?
22746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747   (exit $ac_status); }; } &&
22748          { ac_try='test -s conftest$ac_exeext'
22749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750   (eval $ac_try) 2>&5
22751   ac_status=$?
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); }; }; then
22754   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22755 else
22756   echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22758
22759 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22760 fi
22761 rm -f conftest.err conftest.$ac_objext \
22762       conftest$ac_exeext conftest.$ac_ext
22763 else
22764   cat >conftest.$ac_ext <<_ACEOF
22765 /* confdefs.h.  */
22766 _ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h.  */
22770
22771 /* pthread test headers */
22772 #include <pthread.h>
22773 #if HAVE_PTHREADS < 7
22774 #include <errno.h>
22775 #endif
22776 #ifndef NULL
22777 #define NULL (void*)0
22778 #endif
22779
22780 static void *task(p)
22781         void *p;
22782 {
22783         return (void *) (p == NULL);
22784 }
22785
22786
22787 int main(argc, argv)
22788         int argc;
22789         char **argv;
22790 {
22791
22792         /* pthread test function */
22793 #ifndef PTHREAD_CREATE_DETACHED
22794 #define PTHREAD_CREATE_DETACHED 1
22795 #endif
22796         pthread_t t;
22797         int status;
22798         int detach = PTHREAD_CREATE_DETACHED;
22799
22800 #if HAVE_PTHREADS > 4
22801         /* Final pthreads */
22802         pthread_attr_t attr;
22803
22804         status = pthread_attr_init(&attr);
22805         if( status ) return status;
22806
22807 #if HAVE_PTHREADS < 7
22808         status = pthread_attr_setdetachstate(&attr, &detach);
22809         if( status < 0 ) status = errno;
22810 #else
22811         status = pthread_attr_setdetachstate(&attr, detach);
22812 #endif
22813         if( status ) return status;
22814         status = pthread_create( &t, &attr, task, NULL );
22815 #if HAVE_PTHREADS < 7
22816         if( status < 0 ) status = errno;
22817 #endif
22818         if( status ) return status;
22819 #else
22820         /* Draft 4 pthreads */
22821         status = pthread_create( &t, pthread_attr_default, task, NULL );
22822         if( status ) return errno;
22823
22824         /* give thread a chance to complete */
22825         /* it should remain joinable and hence detachable */
22826         sleep( 1 );
22827
22828         status = pthread_detach( &t );
22829         if( status ) return errno;
22830 #endif
22831
22832 #ifdef HAVE_LINUX_THREADS
22833         pthread_kill_other_threads_np();
22834 #endif
22835
22836         return 0;
22837
22838 }
22839
22840 _ACEOF
22841 rm -f conftest$ac_exeext
22842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22843   (eval $ac_link) 2>&5
22844   ac_status=$?
22845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22848   (eval $ac_try) 2>&5
22849   ac_status=$?
22850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851   (exit $ac_status); }; }; then
22852   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22853 else
22854   echo "$as_me: program exited with status $ac_status" >&5
22855 echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22857
22858 ( exit $ac_status )
22859 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22860 fi
22861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22862 fi
22863
22864                 # restore the LIBS
22865                 LIBS="$ol_LIBS"
22866
22867 fi
22868 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
22869 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
22870
22871         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
22872                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
22873                 ol_link_threads=posix
22874         fi
22875 fi
22876
22877                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
22878 if test "$ol_link_threads" = no ; then
22879         # try -lpthreads -lmach -lexc
22880         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
22881 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
22882 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
22883   echo $ECHO_N "(cached) $ECHO_C" >&6
22884 else
22885
22886                 # save the flags
22887                 ol_LIBS="$LIBS"
22888                 LIBS="-lpthreads -lmach -lexc $LIBS"
22889
22890                 if test "$cross_compiling" = yes; then
22891   cat >conftest.$ac_ext <<_ACEOF
22892 /* confdefs.h.  */
22893 _ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h.  */
22897
22898 /* pthread test headers */
22899 #include <pthread.h>
22900 #if HAVE_PTHREADS < 7
22901 #include <errno.h>
22902 #endif
22903 #ifndef NULL
22904 #define NULL (void*)0
22905 #endif
22906
22907 static void *task(p)
22908         void *p;
22909 {
22910         return (void *) (p == NULL);
22911 }
22912
22913 int
22914 main ()
22915 {
22916
22917         /* pthread test function */
22918 #ifndef PTHREAD_CREATE_DETACHED
22919 #define PTHREAD_CREATE_DETACHED 1
22920 #endif
22921         pthread_t t;
22922         int status;
22923         int detach = PTHREAD_CREATE_DETACHED;
22924
22925 #if HAVE_PTHREADS > 4
22926         /* Final pthreads */
22927         pthread_attr_t attr;
22928
22929         status = pthread_attr_init(&attr);
22930         if( status ) return status;
22931
22932 #if HAVE_PTHREADS < 7
22933         status = pthread_attr_setdetachstate(&attr, &detach);
22934         if( status < 0 ) status = errno;
22935 #else
22936         status = pthread_attr_setdetachstate(&attr, detach);
22937 #endif
22938         if( status ) return status;
22939         status = pthread_create( &t, &attr, task, NULL );
22940 #if HAVE_PTHREADS < 7
22941         if( status < 0 ) status = errno;
22942 #endif
22943         if( status ) return status;
22944 #else
22945         /* Draft 4 pthreads */
22946         status = pthread_create( &t, pthread_attr_default, task, NULL );
22947         if( status ) return errno;
22948
22949         /* give thread a chance to complete */
22950         /* it should remain joinable and hence detachable */
22951         sleep( 1 );
22952
22953         status = pthread_detach( &t );
22954         if( status ) return errno;
22955 #endif
22956
22957 #ifdef HAVE_LINUX_THREADS
22958         pthread_kill_other_threads_np();
22959 #endif
22960
22961         return 0;
22962
22963   ;
22964   return 0;
22965 }
22966 _ACEOF
22967 rm -f conftest.$ac_objext conftest$ac_exeext
22968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22969   (eval $ac_link) 2>conftest.er1
22970   ac_status=$?
22971   grep -v '^ *+' conftest.er1 >conftest.err
22972   rm -f conftest.er1
22973   cat conftest.err >&5
22974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975   (exit $ac_status); } &&
22976          { ac_try='test -z "$ac_c_werror_flag"
22977                          || test ! -s conftest.err'
22978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22979   (eval $ac_try) 2>&5
22980   ac_status=$?
22981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982   (exit $ac_status); }; } &&
22983          { ac_try='test -s conftest$ac_exeext'
22984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22985   (eval $ac_try) 2>&5
22986   ac_status=$?
22987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988   (exit $ac_status); }; }; then
22989   ol_cv_pthread_lpthreads_lmach_lexc=yes
22990 else
22991   echo "$as_me: failed program was:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22993
22994 ol_cv_pthread_lpthreads_lmach_lexc=no
22995 fi
22996 rm -f conftest.err conftest.$ac_objext \
22997       conftest$ac_exeext conftest.$ac_ext
22998 else
22999   cat >conftest.$ac_ext <<_ACEOF
23000 /* confdefs.h.  */
23001 _ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h.  */
23005
23006 /* pthread test headers */
23007 #include <pthread.h>
23008 #if HAVE_PTHREADS < 7
23009 #include <errno.h>
23010 #endif
23011 #ifndef NULL
23012 #define NULL (void*)0
23013 #endif
23014
23015 static void *task(p)
23016         void *p;
23017 {
23018         return (void *) (p == NULL);
23019 }
23020
23021
23022 int main(argc, argv)
23023         int argc;
23024         char **argv;
23025 {
23026
23027         /* pthread test function */
23028 #ifndef PTHREAD_CREATE_DETACHED
23029 #define PTHREAD_CREATE_DETACHED 1
23030 #endif
23031         pthread_t t;
23032         int status;
23033         int detach = PTHREAD_CREATE_DETACHED;
23034
23035 #if HAVE_PTHREADS > 4
23036         /* Final pthreads */
23037         pthread_attr_t attr;
23038
23039         status = pthread_attr_init(&attr);
23040         if( status ) return status;
23041
23042 #if HAVE_PTHREADS < 7
23043         status = pthread_attr_setdetachstate(&attr, &detach);
23044         if( status < 0 ) status = errno;
23045 #else
23046         status = pthread_attr_setdetachstate(&attr, detach);
23047 #endif
23048         if( status ) return status;
23049         status = pthread_create( &t, &attr, task, NULL );
23050 #if HAVE_PTHREADS < 7
23051         if( status < 0 ) status = errno;
23052 #endif
23053         if( status ) return status;
23054 #else
23055         /* Draft 4 pthreads */
23056         status = pthread_create( &t, pthread_attr_default, task, NULL );
23057         if( status ) return errno;
23058
23059         /* give thread a chance to complete */
23060         /* it should remain joinable and hence detachable */
23061         sleep( 1 );
23062
23063         status = pthread_detach( &t );
23064         if( status ) return errno;
23065 #endif
23066
23067 #ifdef HAVE_LINUX_THREADS
23068         pthread_kill_other_threads_np();
23069 #endif
23070
23071         return 0;
23072
23073 }
23074
23075 _ACEOF
23076 rm -f conftest$ac_exeext
23077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23078   (eval $ac_link) 2>&5
23079   ac_status=$?
23080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083   (eval $ac_try) 2>&5
23084   ac_status=$?
23085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086   (exit $ac_status); }; }; then
23087   ol_cv_pthread_lpthreads_lmach_lexc=yes
23088 else
23089   echo "$as_me: program exited with status $ac_status" >&5
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23092
23093 ( exit $ac_status )
23094 ol_cv_pthread_lpthreads_lmach_lexc=no
23095 fi
23096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23097 fi
23098
23099                 # restore the LIBS
23100                 LIBS="$ol_LIBS"
23101
23102 fi
23103 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23104 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23105
23106         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23107                 ol_link_pthreads="-lpthreads -lmach -lexc"
23108                 ol_link_threads=posix
23109         fi
23110 fi
23111
23112                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23113 if test "$ol_link_threads" = no ; then
23114         # try -lpthreads -lexc
23115         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23116 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23117 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23118   echo $ECHO_N "(cached) $ECHO_C" >&6
23119 else
23120
23121                 # save the flags
23122                 ol_LIBS="$LIBS"
23123                 LIBS="-lpthreads -lexc $LIBS"
23124
23125                 if test "$cross_compiling" = yes; then
23126   cat >conftest.$ac_ext <<_ACEOF
23127 /* confdefs.h.  */
23128 _ACEOF
23129 cat confdefs.h >>conftest.$ac_ext
23130 cat >>conftest.$ac_ext <<_ACEOF
23131 /* end confdefs.h.  */
23132
23133 /* pthread test headers */
23134 #include <pthread.h>
23135 #if HAVE_PTHREADS < 7
23136 #include <errno.h>
23137 #endif
23138 #ifndef NULL
23139 #define NULL (void*)0
23140 #endif
23141
23142 static void *task(p)
23143         void *p;
23144 {
23145         return (void *) (p == NULL);
23146 }
23147
23148 int
23149 main ()
23150 {
23151
23152         /* pthread test function */
23153 #ifndef PTHREAD_CREATE_DETACHED
23154 #define PTHREAD_CREATE_DETACHED 1
23155 #endif
23156         pthread_t t;
23157         int status;
23158         int detach = PTHREAD_CREATE_DETACHED;
23159
23160 #if HAVE_PTHREADS > 4
23161         /* Final pthreads */
23162         pthread_attr_t attr;
23163
23164         status = pthread_attr_init(&attr);
23165         if( status ) return status;
23166
23167 #if HAVE_PTHREADS < 7
23168         status = pthread_attr_setdetachstate(&attr, &detach);
23169         if( status < 0 ) status = errno;
23170 #else
23171         status = pthread_attr_setdetachstate(&attr, detach);
23172 #endif
23173         if( status ) return status;
23174         status = pthread_create( &t, &attr, task, NULL );
23175 #if HAVE_PTHREADS < 7
23176         if( status < 0 ) status = errno;
23177 #endif
23178         if( status ) return status;
23179 #else
23180         /* Draft 4 pthreads */
23181         status = pthread_create( &t, pthread_attr_default, task, NULL );
23182         if( status ) return errno;
23183
23184         /* give thread a chance to complete */
23185         /* it should remain joinable and hence detachable */
23186         sleep( 1 );
23187
23188         status = pthread_detach( &t );
23189         if( status ) return errno;
23190 #endif
23191
23192 #ifdef HAVE_LINUX_THREADS
23193         pthread_kill_other_threads_np();
23194 #endif
23195
23196         return 0;
23197
23198   ;
23199   return 0;
23200 }
23201 _ACEOF
23202 rm -f conftest.$ac_objext conftest$ac_exeext
23203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23204   (eval $ac_link) 2>conftest.er1
23205   ac_status=$?
23206   grep -v '^ *+' conftest.er1 >conftest.err
23207   rm -f conftest.er1
23208   cat conftest.err >&5
23209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210   (exit $ac_status); } &&
23211          { ac_try='test -z "$ac_c_werror_flag"
23212                          || test ! -s conftest.err'
23213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23214   (eval $ac_try) 2>&5
23215   ac_status=$?
23216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217   (exit $ac_status); }; } &&
23218          { ac_try='test -s conftest$ac_exeext'
23219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220   (eval $ac_try) 2>&5
23221   ac_status=$?
23222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223   (exit $ac_status); }; }; then
23224   ol_cv_pthread_lpthreads_lexc=yes
23225 else
23226   echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23228
23229 ol_cv_pthread_lpthreads_lexc=no
23230 fi
23231 rm -f conftest.err conftest.$ac_objext \
23232       conftest$ac_exeext conftest.$ac_ext
23233 else
23234   cat >conftest.$ac_ext <<_ACEOF
23235 /* confdefs.h.  */
23236 _ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h.  */
23240
23241 /* pthread test headers */
23242 #include <pthread.h>
23243 #if HAVE_PTHREADS < 7
23244 #include <errno.h>
23245 #endif
23246 #ifndef NULL
23247 #define NULL (void*)0
23248 #endif
23249
23250 static void *task(p)
23251         void *p;
23252 {
23253         return (void *) (p == NULL);
23254 }
23255
23256
23257 int main(argc, argv)
23258         int argc;
23259         char **argv;
23260 {
23261
23262         /* pthread test function */
23263 #ifndef PTHREAD_CREATE_DETACHED
23264 #define PTHREAD_CREATE_DETACHED 1
23265 #endif
23266         pthread_t t;
23267         int status;
23268         int detach = PTHREAD_CREATE_DETACHED;
23269
23270 #if HAVE_PTHREADS > 4
23271         /* Final pthreads */
23272         pthread_attr_t attr;
23273
23274         status = pthread_attr_init(&attr);
23275         if( status ) return status;
23276
23277 #if HAVE_PTHREADS < 7
23278         status = pthread_attr_setdetachstate(&attr, &detach);
23279         if( status < 0 ) status = errno;
23280 #else
23281         status = pthread_attr_setdetachstate(&attr, detach);
23282 #endif
23283         if( status ) return status;
23284         status = pthread_create( &t, &attr, task, NULL );
23285 #if HAVE_PTHREADS < 7
23286         if( status < 0 ) status = errno;
23287 #endif
23288         if( status ) return status;
23289 #else
23290         /* Draft 4 pthreads */
23291         status = pthread_create( &t, pthread_attr_default, task, NULL );
23292         if( status ) return errno;
23293
23294         /* give thread a chance to complete */
23295         /* it should remain joinable and hence detachable */
23296         sleep( 1 );
23297
23298         status = pthread_detach( &t );
23299         if( status ) return errno;
23300 #endif
23301
23302 #ifdef HAVE_LINUX_THREADS
23303         pthread_kill_other_threads_np();
23304 #endif
23305
23306         return 0;
23307
23308 }
23309
23310 _ACEOF
23311 rm -f conftest$ac_exeext
23312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23313   (eval $ac_link) 2>&5
23314   ac_status=$?
23315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318   (eval $ac_try) 2>&5
23319   ac_status=$?
23320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321   (exit $ac_status); }; }; then
23322   ol_cv_pthread_lpthreads_lexc=yes
23323 else
23324   echo "$as_me: program exited with status $ac_status" >&5
23325 echo "$as_me: failed program was:" >&5
23326 sed 's/^/| /' conftest.$ac_ext >&5
23327
23328 ( exit $ac_status )
23329 ol_cv_pthread_lpthreads_lexc=no
23330 fi
23331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23332 fi
23333
23334                 # restore the LIBS
23335                 LIBS="$ol_LIBS"
23336
23337 fi
23338 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23339 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23340
23341         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23342                 ol_link_pthreads="-lpthreads -lexc"
23343                 ol_link_threads=posix
23344         fi
23345 fi
23346
23347
23348                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23349 if test "$ol_link_threads" = no ; then
23350         # try -lpthreads
23351         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23352 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23353 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23354   echo $ECHO_N "(cached) $ECHO_C" >&6
23355 else
23356
23357                 # save the flags
23358                 ol_LIBS="$LIBS"
23359                 LIBS="-lpthreads $LIBS"
23360
23361                 if test "$cross_compiling" = yes; then
23362   cat >conftest.$ac_ext <<_ACEOF
23363 /* confdefs.h.  */
23364 _ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h.  */
23368
23369 /* pthread test headers */
23370 #include <pthread.h>
23371 #if HAVE_PTHREADS < 7
23372 #include <errno.h>
23373 #endif
23374 #ifndef NULL
23375 #define NULL (void*)0
23376 #endif
23377
23378 static void *task(p)
23379         void *p;
23380 {
23381         return (void *) (p == NULL);
23382 }
23383
23384 int
23385 main ()
23386 {
23387
23388         /* pthread test function */
23389 #ifndef PTHREAD_CREATE_DETACHED
23390 #define PTHREAD_CREATE_DETACHED 1
23391 #endif
23392         pthread_t t;
23393         int status;
23394         int detach = PTHREAD_CREATE_DETACHED;
23395
23396 #if HAVE_PTHREADS > 4
23397         /* Final pthreads */
23398         pthread_attr_t attr;
23399
23400         status = pthread_attr_init(&attr);
23401         if( status ) return status;
23402
23403 #if HAVE_PTHREADS < 7
23404         status = pthread_attr_setdetachstate(&attr, &detach);
23405         if( status < 0 ) status = errno;
23406 #else
23407         status = pthread_attr_setdetachstate(&attr, detach);
23408 #endif
23409         if( status ) return status;
23410         status = pthread_create( &t, &attr, task, NULL );
23411 #if HAVE_PTHREADS < 7
23412         if( status < 0 ) status = errno;
23413 #endif
23414         if( status ) return status;
23415 #else
23416         /* Draft 4 pthreads */
23417         status = pthread_create( &t, pthread_attr_default, task, NULL );
23418         if( status ) return errno;
23419
23420         /* give thread a chance to complete */
23421         /* it should remain joinable and hence detachable */
23422         sleep( 1 );
23423
23424         status = pthread_detach( &t );
23425         if( status ) return errno;
23426 #endif
23427
23428 #ifdef HAVE_LINUX_THREADS
23429         pthread_kill_other_threads_np();
23430 #endif
23431
23432         return 0;
23433
23434   ;
23435   return 0;
23436 }
23437 _ACEOF
23438 rm -f conftest.$ac_objext conftest$ac_exeext
23439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23440   (eval $ac_link) 2>conftest.er1
23441   ac_status=$?
23442   grep -v '^ *+' conftest.er1 >conftest.err
23443   rm -f conftest.er1
23444   cat conftest.err >&5
23445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446   (exit $ac_status); } &&
23447          { ac_try='test -z "$ac_c_werror_flag"
23448                          || test ! -s conftest.err'
23449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450   (eval $ac_try) 2>&5
23451   ac_status=$?
23452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453   (exit $ac_status); }; } &&
23454          { ac_try='test -s conftest$ac_exeext'
23455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23456   (eval $ac_try) 2>&5
23457   ac_status=$?
23458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459   (exit $ac_status); }; }; then
23460   ol_cv_pthread_lib_lpthreads=yes
23461 else
23462   echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23464
23465 ol_cv_pthread_lib_lpthreads=no
23466 fi
23467 rm -f conftest.err conftest.$ac_objext \
23468       conftest$ac_exeext conftest.$ac_ext
23469 else
23470   cat >conftest.$ac_ext <<_ACEOF
23471 /* confdefs.h.  */
23472 _ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h.  */
23476
23477 /* pthread test headers */
23478 #include <pthread.h>
23479 #if HAVE_PTHREADS < 7
23480 #include <errno.h>
23481 #endif
23482 #ifndef NULL
23483 #define NULL (void*)0
23484 #endif
23485
23486 static void *task(p)
23487         void *p;
23488 {
23489         return (void *) (p == NULL);
23490 }
23491
23492
23493 int main(argc, argv)
23494         int argc;
23495         char **argv;
23496 {
23497
23498         /* pthread test function */
23499 #ifndef PTHREAD_CREATE_DETACHED
23500 #define PTHREAD_CREATE_DETACHED 1
23501 #endif
23502         pthread_t t;
23503         int status;
23504         int detach = PTHREAD_CREATE_DETACHED;
23505
23506 #if HAVE_PTHREADS > 4
23507         /* Final pthreads */
23508         pthread_attr_t attr;
23509
23510         status = pthread_attr_init(&attr);
23511         if( status ) return status;
23512
23513 #if HAVE_PTHREADS < 7
23514         status = pthread_attr_setdetachstate(&attr, &detach);
23515         if( status < 0 ) status = errno;
23516 #else
23517         status = pthread_attr_setdetachstate(&attr, detach);
23518 #endif
23519         if( status ) return status;
23520         status = pthread_create( &t, &attr, task, NULL );
23521 #if HAVE_PTHREADS < 7
23522         if( status < 0 ) status = errno;
23523 #endif
23524         if( status ) return status;
23525 #else
23526         /* Draft 4 pthreads */
23527         status = pthread_create( &t, pthread_attr_default, task, NULL );
23528         if( status ) return errno;
23529
23530         /* give thread a chance to complete */
23531         /* it should remain joinable and hence detachable */
23532         sleep( 1 );
23533
23534         status = pthread_detach( &t );
23535         if( status ) return errno;
23536 #endif
23537
23538 #ifdef HAVE_LINUX_THREADS
23539         pthread_kill_other_threads_np();
23540 #endif
23541
23542         return 0;
23543
23544 }
23545
23546 _ACEOF
23547 rm -f conftest$ac_exeext
23548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23549   (eval $ac_link) 2>&5
23550   ac_status=$?
23551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23554   (eval $ac_try) 2>&5
23555   ac_status=$?
23556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557   (exit $ac_status); }; }; then
23558   ol_cv_pthread_lib_lpthreads=yes
23559 else
23560   echo "$as_me: program exited with status $ac_status" >&5
23561 echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23563
23564 ( exit $ac_status )
23565 ol_cv_pthread_lib_lpthreads=no
23566 fi
23567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23568 fi
23569
23570                 # restore the LIBS
23571                 LIBS="$ol_LIBS"
23572
23573 fi
23574 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23575 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23576
23577         if test $ol_cv_pthread_lib_lpthreads = yes ; then
23578                 ol_link_pthreads="-lpthreads"
23579                 ol_link_threads=posix
23580         fi
23581 fi
23582
23583
23584                 if test $ol_link_threads != no ; then
23585                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23586
23587                                                 save_CPPFLAGS="$CPPFLAGS"
23588                         save_LIBS="$LIBS"
23589                         LIBS="$LTHREAD_LIBS $LIBS"
23590
23591
23592
23593
23594 for ac_func in sched_yield pthread_yield thr_yield
23595 do
23596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23597 echo "$as_me:$LINENO: checking for $ac_func" >&5
23598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23599 if eval "test \"\${$as_ac_var+set}\" = set"; then
23600   echo $ECHO_N "(cached) $ECHO_C" >&6
23601 else
23602   cat >conftest.$ac_ext <<_ACEOF
23603 /* confdefs.h.  */
23604 _ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h.  */
23608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23610 #define $ac_func innocuous_$ac_func
23611
23612 /* System header to define __stub macros and hopefully few prototypes,
23613     which can conflict with char $ac_func (); below.
23614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23615     <limits.h> exists even on freestanding compilers.  */
23616
23617 #ifdef __STDC__
23618 # include <limits.h>
23619 #else
23620 # include <assert.h>
23621 #endif
23622
23623 #undef $ac_func
23624
23625 /* Override any gcc2 internal prototype to avoid an error.  */
23626 #ifdef __cplusplus
23627 extern "C"
23628 {
23629 #endif
23630 /* We use char because int might match the return type of a gcc2
23631    builtin and then its argument prototype would still apply.  */
23632 char $ac_func ();
23633 /* The GNU C library defines this for functions which it implements
23634     to always fail with ENOSYS.  Some functions are actually named
23635     something starting with __ and the normal name is an alias.  */
23636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23637 choke me
23638 #else
23639 char (*f) () = $ac_func;
23640 #endif
23641 #ifdef __cplusplus
23642 }
23643 #endif
23644
23645 int
23646 main ()
23647 {
23648 return f != $ac_func;
23649   ;
23650   return 0;
23651 }
23652 _ACEOF
23653 rm -f conftest.$ac_objext conftest$ac_exeext
23654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23655   (eval $ac_link) 2>conftest.er1
23656   ac_status=$?
23657   grep -v '^ *+' conftest.er1 >conftest.err
23658   rm -f conftest.er1
23659   cat conftest.err >&5
23660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661   (exit $ac_status); } &&
23662          { ac_try='test -z "$ac_c_werror_flag"
23663                          || test ! -s conftest.err'
23664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23665   (eval $ac_try) 2>&5
23666   ac_status=$?
23667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668   (exit $ac_status); }; } &&
23669          { ac_try='test -s conftest$ac_exeext'
23670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23671   (eval $ac_try) 2>&5
23672   ac_status=$?
23673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674   (exit $ac_status); }; }; then
23675   eval "$as_ac_var=yes"
23676 else
23677   echo "$as_me: failed program was:" >&5
23678 sed 's/^/| /' conftest.$ac_ext >&5
23679
23680 eval "$as_ac_var=no"
23681 fi
23682 rm -f conftest.err conftest.$ac_objext \
23683       conftest$ac_exeext conftest.$ac_ext
23684 fi
23685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23687 if test `eval echo '${'$as_ac_var'}'` = yes; then
23688   cat >>confdefs.h <<_ACEOF
23689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23690 _ACEOF
23691
23692 fi
23693 done
23694
23695
23696                         if test $ac_cv_func_sched_yield = no &&
23697                            test $ac_cv_func_pthread_yield = no &&
23698                            test $ac_cv_func_thr_yield = no ; then
23699                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23700 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23701 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23702   echo $ECHO_N "(cached) $ECHO_C" >&6
23703 else
23704   ac_check_lib_save_LIBS=$LIBS
23705 LIBS="-lrt  $LIBS"
23706 cat >conftest.$ac_ext <<_ACEOF
23707 /* confdefs.h.  */
23708 _ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h.  */
23712
23713 /* Override any gcc2 internal prototype to avoid an error.  */
23714 #ifdef __cplusplus
23715 extern "C"
23716 #endif
23717 /* We use char because int might match the return type of a gcc2
23718    builtin and then its argument prototype would still apply.  */
23719 char sched_yield ();
23720 int
23721 main ()
23722 {
23723 sched_yield ();
23724   ;
23725   return 0;
23726 }
23727 _ACEOF
23728 rm -f conftest.$ac_objext conftest$ac_exeext
23729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23730   (eval $ac_link) 2>conftest.er1
23731   ac_status=$?
23732   grep -v '^ *+' conftest.er1 >conftest.err
23733   rm -f conftest.er1
23734   cat conftest.err >&5
23735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736   (exit $ac_status); } &&
23737          { ac_try='test -z "$ac_c_werror_flag"
23738                          || test ! -s conftest.err'
23739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740   (eval $ac_try) 2>&5
23741   ac_status=$?
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); }; } &&
23744          { ac_try='test -s conftest$ac_exeext'
23745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746   (eval $ac_try) 2>&5
23747   ac_status=$?
23748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749   (exit $ac_status); }; }; then
23750   ac_cv_lib_rt_sched_yield=yes
23751 else
23752   echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23754
23755 ac_cv_lib_rt_sched_yield=no
23756 fi
23757 rm -f conftest.err conftest.$ac_objext \
23758       conftest$ac_exeext conftest.$ac_ext
23759 LIBS=$ac_check_lib_save_LIBS
23760 fi
23761 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23762 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23763 if test $ac_cv_lib_rt_sched_yield = yes; then
23764   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
23765
23766 cat >>confdefs.h <<\_ACEOF
23767 #define HAVE_SCHED_YIELD 1
23768 _ACEOF
23769
23770                                         ac_cv_func_sched_yield=yes
23771 else
23772   ac_cv_func_sched_yield=no
23773 fi
23774
23775                         fi
23776                         if test $ac_cv_func_sched_yield = no &&
23777                            test $ac_cv_func_pthread_yield = no &&
23778                            test "$ac_cv_func_thr_yield" = no ; then
23779                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
23780 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
23781                         fi
23782
23783
23784 for ac_func in pthread_kill
23785 do
23786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23787 echo "$as_me:$LINENO: checking for $ac_func" >&5
23788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23789 if eval "test \"\${$as_ac_var+set}\" = set"; then
23790   echo $ECHO_N "(cached) $ECHO_C" >&6
23791 else
23792   cat >conftest.$ac_ext <<_ACEOF
23793 /* confdefs.h.  */
23794 _ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h.  */
23798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23800 #define $ac_func innocuous_$ac_func
23801
23802 /* System header to define __stub macros and hopefully few prototypes,
23803     which can conflict with char $ac_func (); below.
23804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23805     <limits.h> exists even on freestanding compilers.  */
23806
23807 #ifdef __STDC__
23808 # include <limits.h>
23809 #else
23810 # include <assert.h>
23811 #endif
23812
23813 #undef $ac_func
23814
23815 /* Override any gcc2 internal prototype to avoid an error.  */
23816 #ifdef __cplusplus
23817 extern "C"
23818 {
23819 #endif
23820 /* We use char because int might match the return type of a gcc2
23821    builtin and then its argument prototype would still apply.  */
23822 char $ac_func ();
23823 /* The GNU C library defines this for functions which it implements
23824     to always fail with ENOSYS.  Some functions are actually named
23825     something starting with __ and the normal name is an alias.  */
23826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23827 choke me
23828 #else
23829 char (*f) () = $ac_func;
23830 #endif
23831 #ifdef __cplusplus
23832 }
23833 #endif
23834
23835 int
23836 main ()
23837 {
23838 return f != $ac_func;
23839   ;
23840   return 0;
23841 }
23842 _ACEOF
23843 rm -f conftest.$ac_objext conftest$ac_exeext
23844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23845   (eval $ac_link) 2>conftest.er1
23846   ac_status=$?
23847   grep -v '^ *+' conftest.er1 >conftest.err
23848   rm -f conftest.er1
23849   cat conftest.err >&5
23850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851   (exit $ac_status); } &&
23852          { ac_try='test -z "$ac_c_werror_flag"
23853                          || test ! -s conftest.err'
23854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23855   (eval $ac_try) 2>&5
23856   ac_status=$?
23857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858   (exit $ac_status); }; } &&
23859          { ac_try='test -s conftest$ac_exeext'
23860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861   (eval $ac_try) 2>&5
23862   ac_status=$?
23863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864   (exit $ac_status); }; }; then
23865   eval "$as_ac_var=yes"
23866 else
23867   echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23869
23870 eval "$as_ac_var=no"
23871 fi
23872 rm -f conftest.err conftest.$ac_objext \
23873       conftest$ac_exeext conftest.$ac_ext
23874 fi
23875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23877 if test `eval echo '${'$as_ac_var'}'` = yes; then
23878   cat >>confdefs.h <<_ACEOF
23879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23880 _ACEOF
23881
23882 fi
23883 done
23884
23885
23886                                                                         echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
23887 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
23888 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
23889   echo $ECHO_N "(cached) $ECHO_C" >&6
23890 else
23891
23892                                                                 cat >conftest.$ac_ext <<_ACEOF
23893 /* confdefs.h.  */
23894 _ACEOF
23895 cat confdefs.h >>conftest.$ac_ext
23896 cat >>conftest.$ac_ext <<_ACEOF
23897 /* end confdefs.h.  */
23898
23899 #include <pthread.h>
23900 pthread_rwlock_t rwlock;
23901
23902 int
23903 main ()
23904 {
23905 pthread_rwlock_destroy(&rwlock);
23906   ;
23907   return 0;
23908 }
23909 _ACEOF
23910 rm -f conftest.$ac_objext conftest$ac_exeext
23911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23912   (eval $ac_link) 2>conftest.er1
23913   ac_status=$?
23914   grep -v '^ *+' conftest.er1 >conftest.err
23915   rm -f conftest.er1
23916   cat conftest.err >&5
23917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918   (exit $ac_status); } &&
23919          { ac_try='test -z "$ac_c_werror_flag"
23920                          || test ! -s conftest.err'
23921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23922   (eval $ac_try) 2>&5
23923   ac_status=$?
23924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925   (exit $ac_status); }; } &&
23926          { ac_try='test -s conftest$ac_exeext'
23927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928   (eval $ac_try) 2>&5
23929   ac_status=$?
23930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931   (exit $ac_status); }; }; then
23932   ol_cv_func_pthread_rwlock_destroy=yes
23933 else
23934   echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23936
23937 ol_cv_func_pthread_rwlock_destroy=no
23938 fi
23939 rm -f conftest.err conftest.$ac_objext \
23940       conftest$ac_exeext conftest.$ac_ext
23941
23942 fi
23943 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
23944 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
23945                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
23946
23947 cat >>confdefs.h <<\_ACEOF
23948 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
23949 _ACEOF
23950
23951                         fi
23952
23953                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
23954 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
23955 if test "${ol_cv_func_pthread_detach+set}" = set; then
23956   echo $ECHO_N "(cached) $ECHO_C" >&6
23957 else
23958
23959                                                                 cat >conftest.$ac_ext <<_ACEOF
23960 /* confdefs.h.  */
23961 _ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h.  */
23965
23966 #include <pthread.h>
23967 #ifndef NULL
23968 #define NULL (void*)0
23969 #endif
23970
23971 int
23972 main ()
23973 {
23974 pthread_detach(NULL);
23975   ;
23976   return 0;
23977 }
23978 _ACEOF
23979 rm -f conftest.$ac_objext conftest$ac_exeext
23980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23981   (eval $ac_link) 2>conftest.er1
23982   ac_status=$?
23983   grep -v '^ *+' conftest.er1 >conftest.err
23984   rm -f conftest.er1
23985   cat conftest.err >&5
23986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987   (exit $ac_status); } &&
23988          { ac_try='test -z "$ac_c_werror_flag"
23989                          || test ! -s conftest.err'
23990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23991   (eval $ac_try) 2>&5
23992   ac_status=$?
23993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994   (exit $ac_status); }; } &&
23995          { ac_try='test -s conftest$ac_exeext'
23996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23997   (eval $ac_try) 2>&5
23998   ac_status=$?
23999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000   (exit $ac_status); }; }; then
24001   ol_cv_func_pthread_detach=yes
24002 else
24003   echo "$as_me: failed program was:" >&5
24004 sed 's/^/| /' conftest.$ac_ext >&5
24005
24006 ol_cv_func_pthread_detach=no
24007 fi
24008 rm -f conftest.err conftest.$ac_objext \
24009       conftest$ac_exeext conftest.$ac_ext
24010
24011 fi
24012 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24013 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24014
24015                         if test $ol_cv_func_pthread_detach = no ; then
24016                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24017 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24018    { (exit 1); exit 1; }; }
24019                         fi
24020
24021
24022 cat >>confdefs.h <<\_ACEOF
24023 #define HAVE_PTHREAD_DETACH 1
24024 _ACEOF
24025
24026
24027
24028
24029
24030
24031 for ac_func in \
24032                                 pthread_setconcurrency \
24033                                 pthread_getconcurrency \
24034                                 thr_setconcurrency \
24035                                 thr_getconcurrency \
24036
24037 do
24038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24039 echo "$as_me:$LINENO: checking for $ac_func" >&5
24040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24041 if eval "test \"\${$as_ac_var+set}\" = set"; then
24042   echo $ECHO_N "(cached) $ECHO_C" >&6
24043 else
24044   cat >conftest.$ac_ext <<_ACEOF
24045 /* confdefs.h.  */
24046 _ACEOF
24047 cat confdefs.h >>conftest.$ac_ext
24048 cat >>conftest.$ac_ext <<_ACEOF
24049 /* end confdefs.h.  */
24050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24052 #define $ac_func innocuous_$ac_func
24053
24054 /* System header to define __stub macros and hopefully few prototypes,
24055     which can conflict with char $ac_func (); below.
24056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24057     <limits.h> exists even on freestanding compilers.  */
24058
24059 #ifdef __STDC__
24060 # include <limits.h>
24061 #else
24062 # include <assert.h>
24063 #endif
24064
24065 #undef $ac_func
24066
24067 /* Override any gcc2 internal prototype to avoid an error.  */
24068 #ifdef __cplusplus
24069 extern "C"
24070 {
24071 #endif
24072 /* We use char because int might match the return type of a gcc2
24073    builtin and then its argument prototype would still apply.  */
24074 char $ac_func ();
24075 /* The GNU C library defines this for functions which it implements
24076     to always fail with ENOSYS.  Some functions are actually named
24077     something starting with __ and the normal name is an alias.  */
24078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24079 choke me
24080 #else
24081 char (*f) () = $ac_func;
24082 #endif
24083 #ifdef __cplusplus
24084 }
24085 #endif
24086
24087 int
24088 main ()
24089 {
24090 return f != $ac_func;
24091   ;
24092   return 0;
24093 }
24094 _ACEOF
24095 rm -f conftest.$ac_objext conftest$ac_exeext
24096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24097   (eval $ac_link) 2>conftest.er1
24098   ac_status=$?
24099   grep -v '^ *+' conftest.er1 >conftest.err
24100   rm -f conftest.er1
24101   cat conftest.err >&5
24102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103   (exit $ac_status); } &&
24104          { ac_try='test -z "$ac_c_werror_flag"
24105                          || test ! -s conftest.err'
24106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24107   (eval $ac_try) 2>&5
24108   ac_status=$?
24109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110   (exit $ac_status); }; } &&
24111          { ac_try='test -s conftest$ac_exeext'
24112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24113   (eval $ac_try) 2>&5
24114   ac_status=$?
24115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116   (exit $ac_status); }; }; then
24117   eval "$as_ac_var=yes"
24118 else
24119   echo "$as_me: failed program was:" >&5
24120 sed 's/^/| /' conftest.$ac_ext >&5
24121
24122 eval "$as_ac_var=no"
24123 fi
24124 rm -f conftest.err conftest.$ac_objext \
24125       conftest$ac_exeext conftest.$ac_ext
24126 fi
24127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24129 if test `eval echo '${'$as_ac_var'}'` = yes; then
24130   cat >>confdefs.h <<_ACEOF
24131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24132 _ACEOF
24133
24134 fi
24135 done
24136
24137
24138
24139
24140 for ac_func in pthread_kill_other_threads_np
24141 do
24142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24143 echo "$as_me:$LINENO: checking for $ac_func" >&5
24144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24145 if eval "test \"\${$as_ac_var+set}\" = set"; then
24146   echo $ECHO_N "(cached) $ECHO_C" >&6
24147 else
24148   cat >conftest.$ac_ext <<_ACEOF
24149 /* confdefs.h.  */
24150 _ACEOF
24151 cat confdefs.h >>conftest.$ac_ext
24152 cat >>conftest.$ac_ext <<_ACEOF
24153 /* end confdefs.h.  */
24154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24156 #define $ac_func innocuous_$ac_func
24157
24158 /* System header to define __stub macros and hopefully few prototypes,
24159     which can conflict with char $ac_func (); below.
24160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24161     <limits.h> exists even on freestanding compilers.  */
24162
24163 #ifdef __STDC__
24164 # include <limits.h>
24165 #else
24166 # include <assert.h>
24167 #endif
24168
24169 #undef $ac_func
24170
24171 /* Override any gcc2 internal prototype to avoid an error.  */
24172 #ifdef __cplusplus
24173 extern "C"
24174 {
24175 #endif
24176 /* We use char because int might match the return type of a gcc2
24177    builtin and then its argument prototype would still apply.  */
24178 char $ac_func ();
24179 /* The GNU C library defines this for functions which it implements
24180     to always fail with ENOSYS.  Some functions are actually named
24181     something starting with __ and the normal name is an alias.  */
24182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24183 choke me
24184 #else
24185 char (*f) () = $ac_func;
24186 #endif
24187 #ifdef __cplusplus
24188 }
24189 #endif
24190
24191 int
24192 main ()
24193 {
24194 return f != $ac_func;
24195   ;
24196   return 0;
24197 }
24198 _ACEOF
24199 rm -f conftest.$ac_objext conftest$ac_exeext
24200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24201   (eval $ac_link) 2>conftest.er1
24202   ac_status=$?
24203   grep -v '^ *+' conftest.er1 >conftest.err
24204   rm -f conftest.er1
24205   cat conftest.err >&5
24206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207   (exit $ac_status); } &&
24208          { ac_try='test -z "$ac_c_werror_flag"
24209                          || test ! -s conftest.err'
24210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24211   (eval $ac_try) 2>&5
24212   ac_status=$?
24213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214   (exit $ac_status); }; } &&
24215          { ac_try='test -s conftest$ac_exeext'
24216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24217   (eval $ac_try) 2>&5
24218   ac_status=$?
24219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220   (exit $ac_status); }; }; then
24221   eval "$as_ac_var=yes"
24222 else
24223   echo "$as_me: failed program was:" >&5
24224 sed 's/^/| /' conftest.$ac_ext >&5
24225
24226 eval "$as_ac_var=no"
24227 fi
24228 rm -f conftest.err conftest.$ac_objext \
24229       conftest$ac_exeext conftest.$ac_ext
24230 fi
24231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24233 if test `eval echo '${'$as_ac_var'}'` = yes; then
24234   cat >>confdefs.h <<_ACEOF
24235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24236 _ACEOF
24237
24238 fi
24239 done
24240
24241         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24242 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24243 if test "${ol_cv_sys_linux_threads+set}" = set; then
24244   echo $ECHO_N "(cached) $ECHO_C" >&6
24245 else
24246   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24247 fi
24248 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24249 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24250
24251
24252
24253
24254         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24255 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24256 if test "${ol_cv_linux_threads+set}" = set; then
24257   echo $ECHO_N "(cached) $ECHO_C" >&6
24258 else
24259
24260                 if test $ol_cv_header_linux_threads = yes &&
24261                    test $ol_cv_sys_linux_threads = yes; then
24262                         ol_cv_linux_threads=yes
24263                 elif test $ol_cv_header_linux_threads = no &&
24264                      test $ol_cv_sys_linux_threads = no; then
24265                         ol_cv_linux_threads=no
24266                 else
24267                         ol_cv_linux_threads=error
24268                 fi
24269
24270 fi
24271 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24272 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24273
24274
24275                         if test $ol_cv_linux_threads = error; then
24276                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24277 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24278    { (exit 1); exit 1; }; };
24279                         fi
24280
24281                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24282 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24283 if test "${ol_cv_pthread_create_works+set}" = set; then
24284   echo $ECHO_N "(cached) $ECHO_C" >&6
24285 else
24286
24287                         if test "$cross_compiling" = yes; then
24288                                 ol_cv_pthread_create_works=yes
24289 else
24290   cat >conftest.$ac_ext <<_ACEOF
24291 /* confdefs.h.  */
24292 _ACEOF
24293 cat confdefs.h >>conftest.$ac_ext
24294 cat >>conftest.$ac_ext <<_ACEOF
24295 /* end confdefs.h.  */
24296
24297 /* pthread test headers */
24298 #include <pthread.h>
24299 #if HAVE_PTHREADS < 7
24300 #include <errno.h>
24301 #endif
24302 #ifndef NULL
24303 #define NULL (void*)0
24304 #endif
24305
24306 static void *task(p)
24307         void *p;
24308 {
24309         return (void *) (p == NULL);
24310 }
24311
24312
24313 int main(argc, argv)
24314         int argc;
24315         char **argv;
24316 {
24317
24318         /* pthread test function */
24319 #ifndef PTHREAD_CREATE_DETACHED
24320 #define PTHREAD_CREATE_DETACHED 1
24321 #endif
24322         pthread_t t;
24323         int status;
24324         int detach = PTHREAD_CREATE_DETACHED;
24325
24326 #if HAVE_PTHREADS > 4
24327         /* Final pthreads */
24328         pthread_attr_t attr;
24329
24330         status = pthread_attr_init(&attr);
24331         if( status ) return status;
24332
24333 #if HAVE_PTHREADS < 7
24334         status = pthread_attr_setdetachstate(&attr, &detach);
24335         if( status < 0 ) status = errno;
24336 #else
24337         status = pthread_attr_setdetachstate(&attr, detach);
24338 #endif
24339         if( status ) return status;
24340         status = pthread_create( &t, &attr, task, NULL );
24341 #if HAVE_PTHREADS < 7
24342         if( status < 0 ) status = errno;
24343 #endif
24344         if( status ) return status;
24345 #else
24346         /* Draft 4 pthreads */
24347         status = pthread_create( &t, pthread_attr_default, task, NULL );
24348         if( status ) return errno;
24349
24350         /* give thread a chance to complete */
24351         /* it should remain joinable and hence detachable */
24352         sleep( 1 );
24353
24354         status = pthread_detach( &t );
24355         if( status ) return errno;
24356 #endif
24357
24358 #ifdef HAVE_LINUX_THREADS
24359         pthread_kill_other_threads_np();
24360 #endif
24361
24362         return 0;
24363
24364 }
24365
24366 _ACEOF
24367 rm -f conftest$ac_exeext
24368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24369   (eval $ac_link) 2>&5
24370   ac_status=$?
24371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24374   (eval $ac_try) 2>&5
24375   ac_status=$?
24376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377   (exit $ac_status); }; }; then
24378   ol_cv_pthread_create_works=yes
24379 else
24380   echo "$as_me: program exited with status $ac_status" >&5
24381 echo "$as_me: failed program was:" >&5
24382 sed 's/^/| /' conftest.$ac_ext >&5
24383
24384 ( exit $ac_status )
24385 ol_cv_pthread_create_works=no
24386 fi
24387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24388 fi
24389 fi
24390 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24391 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24392
24393                         if test $ol_cv_pthread_create_works = no ; then
24394                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24395 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24396    { (exit 1); exit 1; }; }
24397                         fi
24398
24399                         ol_replace_broken_yield=no
24400
24401                         if test $ol_replace_broken_yield = yes ; then
24402
24403 cat >>confdefs.h <<\_ACEOF
24404 #define REPLACE_BROKEN_YIELD 1
24405 _ACEOF
24406
24407                         fi
24408
24409                                                 if test $ol_with_yielding_select = auto ; then
24410                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24411 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24412 if test "${ol_cv_pthread_select_yields+set}" = set; then
24413   echo $ECHO_N "(cached) $ECHO_C" >&6
24414 else
24415
24416                                 if test "$cross_compiling" = yes; then
24417   ol_cv_pthread_select_yields=cross
24418 else
24419   cat >conftest.$ac_ext <<_ACEOF
24420 /* confdefs.h.  */
24421 _ACEOF
24422 cat confdefs.h >>conftest.$ac_ext
24423 cat >>conftest.$ac_ext <<_ACEOF
24424 /* end confdefs.h.  */
24425
24426 #include <sys/types.h>
24427 #include <sys/time.h>
24428 #include <unistd.h>
24429 #include <pthread.h>
24430 #ifndef NULL
24431 #define NULL (void*) 0
24432 #endif
24433
24434 static int fildes[2];
24435
24436 static void *task(p)
24437         void *p;
24438 {
24439         int i;
24440         struct timeval tv;
24441
24442         fd_set rfds;
24443
24444         tv.tv_sec=10;
24445         tv.tv_usec=0;
24446
24447         FD_ZERO(&rfds);
24448         FD_SET(fildes[0], &rfds);
24449
24450         /* we're not interested in any fds */
24451         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24452
24453         if(i < 0) {
24454                 perror("select");
24455                 exit(10);
24456         }
24457
24458         exit(0); /* if we exit here, the select blocked the whole process */
24459 }
24460
24461 int main(argc, argv)
24462         int argc;
24463         char **argv;
24464 {
24465         pthread_t t;
24466
24467         /* create a pipe to select */
24468         if(pipe(&fildes[0])) {
24469                 perror("select");
24470                 exit(1);
24471         }
24472
24473 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24474         (void) pthread_setconcurrency(2);
24475 #else
24476 #ifdef HAVE_THR_SETCONCURRENCY
24477         /* Set Solaris LWP concurrency to 2 */
24478         thr_setconcurrency(2);
24479 #endif
24480 #endif
24481
24482 #if HAVE_PTHREADS < 6
24483         pthread_create(&t, pthread_attr_default, task, NULL);
24484 #else
24485         pthread_create(&t, NULL, task, NULL);
24486 #endif
24487
24488         /* make sure task runs first */
24489 #ifdef HAVE_THR_YIELD
24490         thr_yield();
24491 #elif defined( HAVE_SCHED_YIELD )
24492         sched_yield();
24493 #elif defined( HAVE_PTHREAD_YIELD )
24494         pthread_yield();
24495 #endif
24496
24497         exit(2);
24498 }
24499 _ACEOF
24500 rm -f conftest$ac_exeext
24501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24502   (eval $ac_link) 2>&5
24503   ac_status=$?
24504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24507   (eval $ac_try) 2>&5
24508   ac_status=$?
24509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510   (exit $ac_status); }; }; then
24511   ol_cv_pthread_select_yields=no
24512 else
24513   echo "$as_me: program exited with status $ac_status" >&5
24514 echo "$as_me: failed program was:" >&5
24515 sed 's/^/| /' conftest.$ac_ext >&5
24516
24517 ( exit $ac_status )
24518 ol_cv_pthread_select_yields=yes
24519 fi
24520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24521 fi
24522 fi
24523 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24524 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24525
24526                                 if test $ol_cv_pthread_select_yields = cross ; then
24527                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24528 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24529    { (exit 1); exit 1; }; }
24530                                 fi
24531
24532                                 if test $ol_cv_pthread_select_yields = yes ; then
24533                                         ol_with_yielding_select=yes
24534                                 fi
24535                         fi
24536
24537                                                 CPPFLAGS="$save_CPPFLAGS"
24538                         LIBS="$save_LIBS"
24539                 else
24540                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24541 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24542    { (exit 1); exit 1; }; }
24543                 fi
24544         fi
24545
24546         if test $ol_with_threads = posix ; then
24547                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24548 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24549    { (exit 1); exit 1; }; }
24550         fi
24551         ;;
24552 esac
24553
24554 case $ol_with_threads in auto | yes | mach)
24555
24556
24557
24558 for ac_header in mach/cthreads.h cthreads.h
24559 do
24560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24562   echo "$as_me:$LINENO: checking for $ac_header" >&5
24563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24565   echo $ECHO_N "(cached) $ECHO_C" >&6
24566 fi
24567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24569 else
24570   # Is the header compilable?
24571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24573 cat >conftest.$ac_ext <<_ACEOF
24574 /* confdefs.h.  */
24575 _ACEOF
24576 cat confdefs.h >>conftest.$ac_ext
24577 cat >>conftest.$ac_ext <<_ACEOF
24578 /* end confdefs.h.  */
24579 $ac_includes_default
24580 #include <$ac_header>
24581 _ACEOF
24582 rm -f conftest.$ac_objext
24583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24584   (eval $ac_compile) 2>conftest.er1
24585   ac_status=$?
24586   grep -v '^ *+' conftest.er1 >conftest.err
24587   rm -f conftest.er1
24588   cat conftest.err >&5
24589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590   (exit $ac_status); } &&
24591          { ac_try='test -z "$ac_c_werror_flag"
24592                          || test ! -s conftest.err'
24593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24594   (eval $ac_try) 2>&5
24595   ac_status=$?
24596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597   (exit $ac_status); }; } &&
24598          { ac_try='test -s conftest.$ac_objext'
24599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24600   (eval $ac_try) 2>&5
24601   ac_status=$?
24602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603   (exit $ac_status); }; }; then
24604   ac_header_compiler=yes
24605 else
24606   echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24608
24609 ac_header_compiler=no
24610 fi
24611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24613 echo "${ECHO_T}$ac_header_compiler" >&6
24614
24615 # Is the header present?
24616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24618 cat >conftest.$ac_ext <<_ACEOF
24619 /* confdefs.h.  */
24620 _ACEOF
24621 cat confdefs.h >>conftest.$ac_ext
24622 cat >>conftest.$ac_ext <<_ACEOF
24623 /* end confdefs.h.  */
24624 #include <$ac_header>
24625 _ACEOF
24626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24628   ac_status=$?
24629   grep -v '^ *+' conftest.er1 >conftest.err
24630   rm -f conftest.er1
24631   cat conftest.err >&5
24632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633   (exit $ac_status); } >/dev/null; then
24634   if test -s conftest.err; then
24635     ac_cpp_err=$ac_c_preproc_warn_flag
24636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24637   else
24638     ac_cpp_err=
24639   fi
24640 else
24641   ac_cpp_err=yes
24642 fi
24643 if test -z "$ac_cpp_err"; then
24644   ac_header_preproc=yes
24645 else
24646   echo "$as_me: failed program was:" >&5
24647 sed 's/^/| /' conftest.$ac_ext >&5
24648
24649   ac_header_preproc=no
24650 fi
24651 rm -f conftest.err conftest.$ac_ext
24652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24653 echo "${ECHO_T}$ac_header_preproc" >&6
24654
24655 # So?  What about this header?
24656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24657   yes:no: )
24658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24662     ac_header_preproc=yes
24663     ;;
24664   no:yes:* )
24665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24677     (
24678       cat <<\_ASBOX
24679 ## --------------------------------------------- ##
24680 ## Report this to <http://www.openldap.org/its/> ##
24681 ## --------------------------------------------- ##
24682 _ASBOX
24683     ) |
24684       sed "s/^/$as_me: WARNING:     /" >&2
24685     ;;
24686 esac
24687 echo "$as_me:$LINENO: checking for $ac_header" >&5
24688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24690   echo $ECHO_N "(cached) $ECHO_C" >&6
24691 else
24692   eval "$as_ac_Header=\$ac_header_preproc"
24693 fi
24694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24696
24697 fi
24698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24699   cat >>confdefs.h <<_ACEOF
24700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24701 _ACEOF
24702
24703 fi
24704
24705 done
24706
24707         if test $ac_cv_header_mach_cthreads_h = yes ; then
24708                 ol_with_threads=found
24709
24710                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24711 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24712 if test "${ac_cv_func_cthread_fork+set}" = set; then
24713   echo $ECHO_N "(cached) $ECHO_C" >&6
24714 else
24715   cat >conftest.$ac_ext <<_ACEOF
24716 /* confdefs.h.  */
24717 _ACEOF
24718 cat confdefs.h >>conftest.$ac_ext
24719 cat >>conftest.$ac_ext <<_ACEOF
24720 /* end confdefs.h.  */
24721 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24723 #define cthread_fork innocuous_cthread_fork
24724
24725 /* System header to define __stub macros and hopefully few prototypes,
24726     which can conflict with char cthread_fork (); below.
24727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24728     <limits.h> exists even on freestanding compilers.  */
24729
24730 #ifdef __STDC__
24731 # include <limits.h>
24732 #else
24733 # include <assert.h>
24734 #endif
24735
24736 #undef cthread_fork
24737
24738 /* Override any gcc2 internal prototype to avoid an error.  */
24739 #ifdef __cplusplus
24740 extern "C"
24741 {
24742 #endif
24743 /* We use char because int might match the return type of a gcc2
24744    builtin and then its argument prototype would still apply.  */
24745 char cthread_fork ();
24746 /* The GNU C library defines this for functions which it implements
24747     to always fail with ENOSYS.  Some functions are actually named
24748     something starting with __ and the normal name is an alias.  */
24749 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24750 choke me
24751 #else
24752 char (*f) () = cthread_fork;
24753 #endif
24754 #ifdef __cplusplus
24755 }
24756 #endif
24757
24758 int
24759 main ()
24760 {
24761 return f != cthread_fork;
24762   ;
24763   return 0;
24764 }
24765 _ACEOF
24766 rm -f conftest.$ac_objext conftest$ac_exeext
24767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24768   (eval $ac_link) 2>conftest.er1
24769   ac_status=$?
24770   grep -v '^ *+' conftest.er1 >conftest.err
24771   rm -f conftest.er1
24772   cat conftest.err >&5
24773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774   (exit $ac_status); } &&
24775          { ac_try='test -z "$ac_c_werror_flag"
24776                          || test ! -s conftest.err'
24777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24778   (eval $ac_try) 2>&5
24779   ac_status=$?
24780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781   (exit $ac_status); }; } &&
24782          { ac_try='test -s conftest$ac_exeext'
24783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24784   (eval $ac_try) 2>&5
24785   ac_status=$?
24786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787   (exit $ac_status); }; }; then
24788   ac_cv_func_cthread_fork=yes
24789 else
24790   echo "$as_me: failed program was:" >&5
24791 sed 's/^/| /' conftest.$ac_ext >&5
24792
24793 ac_cv_func_cthread_fork=no
24794 fi
24795 rm -f conftest.err conftest.$ac_objext \
24796       conftest$ac_exeext conftest.$ac_ext
24797 fi
24798 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24799 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24800 if test $ac_cv_func_cthread_fork = yes; then
24801   ol_link_threads=yes
24802 fi
24803
24804
24805                 if test $ol_link_threads = no ; then
24806                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
24807 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
24808 if test "${ol_cv_cthread_all_load+set}" = set; then
24809   echo $ECHO_N "(cached) $ECHO_C" >&6
24810 else
24811
24812                                                                 save_LIBS="$LIBS"
24813                                 LIBS="-all_load $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 #include <mach/cthreads.h>
24821 int
24822 main ()
24823 {
24824
24825                                         cthread_fork((void *)0, (void *)0);
24826
24827   ;
24828   return 0;
24829 }
24830 _ACEOF
24831 rm -f conftest.$ac_objext conftest$ac_exeext
24832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24833   (eval $ac_link) 2>conftest.er1
24834   ac_status=$?
24835   grep -v '^ *+' conftest.er1 >conftest.err
24836   rm -f conftest.er1
24837   cat conftest.err >&5
24838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839   (exit $ac_status); } &&
24840          { ac_try='test -z "$ac_c_werror_flag"
24841                          || test ! -s conftest.err'
24842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24843   (eval $ac_try) 2>&5
24844   ac_status=$?
24845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846   (exit $ac_status); }; } &&
24847          { ac_try='test -s conftest$ac_exeext'
24848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24849   (eval $ac_try) 2>&5
24850   ac_status=$?
24851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852   (exit $ac_status); }; }; then
24853   ol_cv_cthread_all_load=yes
24854 else
24855   echo "$as_me: failed program was:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24857
24858 ol_cv_cthread_all_load=no
24859 fi
24860 rm -f conftest.err conftest.$ac_objext \
24861       conftest$ac_exeext conftest.$ac_ext
24862                                                                 LIBS="$save_LIBS"
24863
24864 fi
24865 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
24866 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
24867
24868                         if test $ol_cv_cthread_all_load = yes ; then
24869                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
24870                                 ol_link_threads=mach
24871                                 ol_with_threads=found
24872                         fi
24873                 fi
24874
24875         elif test $ac_cv_header_cthreads_h = yes ; then
24876
24877                 ol_with_threads=found
24878
24879                                 save_LIBS="$LIBS"
24880                 LIBS="$LIBS -lthreads"
24881                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24882 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24883 if test "${ac_cv_func_cthread_fork+set}" = set; then
24884   echo $ECHO_N "(cached) $ECHO_C" >&6
24885 else
24886   cat >conftest.$ac_ext <<_ACEOF
24887 /* confdefs.h.  */
24888 _ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h.  */
24892 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24894 #define cthread_fork innocuous_cthread_fork
24895
24896 /* System header to define __stub macros and hopefully few prototypes,
24897     which can conflict with char cthread_fork (); below.
24898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24899     <limits.h> exists even on freestanding compilers.  */
24900
24901 #ifdef __STDC__
24902 # include <limits.h>
24903 #else
24904 # include <assert.h>
24905 #endif
24906
24907 #undef cthread_fork
24908
24909 /* Override any gcc2 internal prototype to avoid an error.  */
24910 #ifdef __cplusplus
24911 extern "C"
24912 {
24913 #endif
24914 /* We use char because int might match the return type of a gcc2
24915    builtin and then its argument prototype would still apply.  */
24916 char cthread_fork ();
24917 /* The GNU C library defines this for functions which it implements
24918     to always fail with ENOSYS.  Some functions are actually named
24919     something starting with __ and the normal name is an alias.  */
24920 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24921 choke me
24922 #else
24923 char (*f) () = cthread_fork;
24924 #endif
24925 #ifdef __cplusplus
24926 }
24927 #endif
24928
24929 int
24930 main ()
24931 {
24932 return f != cthread_fork;
24933   ;
24934   return 0;
24935 }
24936 _ACEOF
24937 rm -f conftest.$ac_objext conftest$ac_exeext
24938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24939   (eval $ac_link) 2>conftest.er1
24940   ac_status=$?
24941   grep -v '^ *+' conftest.er1 >conftest.err
24942   rm -f conftest.er1
24943   cat conftest.err >&5
24944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945   (exit $ac_status); } &&
24946          { ac_try='test -z "$ac_c_werror_flag"
24947                          || test ! -s conftest.err'
24948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24949   (eval $ac_try) 2>&5
24950   ac_status=$?
24951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952   (exit $ac_status); }; } &&
24953          { ac_try='test -s conftest$ac_exeext'
24954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24955   (eval $ac_try) 2>&5
24956   ac_status=$?
24957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958   (exit $ac_status); }; }; then
24959   ac_cv_func_cthread_fork=yes
24960 else
24961   echo "$as_me: failed program was:" >&5
24962 sed 's/^/| /' conftest.$ac_ext >&5
24963
24964 ac_cv_func_cthread_fork=no
24965 fi
24966 rm -f conftest.err conftest.$ac_objext \
24967       conftest$ac_exeext conftest.$ac_ext
24968 fi
24969 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24970 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24971 if test $ac_cv_func_cthread_fork = yes; then
24972   ol_link_threads=yes
24973 fi
24974
24975                 LIBS="$save_LIBS"
24976
24977                 if test $ol_link_threads = yes ; then
24978                         LTHREAD_LIBS="-lthreads"
24979                         ol_link_threads=mach
24980                         ol_with_threads=found
24981                 else
24982                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24983 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24984    { (exit 1); exit 1; }; }
24985                 fi
24986
24987         elif test $ol_with_threads = mach ; then
24988                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
24989 echo "$as_me: error: could not locate Mach CThreads" >&2;}
24990    { (exit 1); exit 1; }; }
24991         fi
24992
24993         if test $ol_link_threads = mach ; then
24994
24995 cat >>confdefs.h <<\_ACEOF
24996 #define HAVE_MACH_CTHREADS 1
24997 _ACEOF
24998
24999         elif test $ol_with_threads = found ; then
25000                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25001 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25002    { (exit 1); exit 1; }; }
25003         fi
25004         ;;
25005 esac
25006
25007 case $ol_with_threads in auto | yes | pth)
25008
25009
25010 for ac_header in pth.h
25011 do
25012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25014   echo "$as_me:$LINENO: checking for $ac_header" >&5
25015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25017   echo $ECHO_N "(cached) $ECHO_C" >&6
25018 fi
25019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25021 else
25022   # Is the header compilable?
25023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25025 cat >conftest.$ac_ext <<_ACEOF
25026 /* confdefs.h.  */
25027 _ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h.  */
25031 $ac_includes_default
25032 #include <$ac_header>
25033 _ACEOF
25034 rm -f conftest.$ac_objext
25035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25036   (eval $ac_compile) 2>conftest.er1
25037   ac_status=$?
25038   grep -v '^ *+' conftest.er1 >conftest.err
25039   rm -f conftest.er1
25040   cat conftest.err >&5
25041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042   (exit $ac_status); } &&
25043          { ac_try='test -z "$ac_c_werror_flag"
25044                          || test ! -s conftest.err'
25045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25046   (eval $ac_try) 2>&5
25047   ac_status=$?
25048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049   (exit $ac_status); }; } &&
25050          { ac_try='test -s conftest.$ac_objext'
25051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25052   (eval $ac_try) 2>&5
25053   ac_status=$?
25054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055   (exit $ac_status); }; }; then
25056   ac_header_compiler=yes
25057 else
25058   echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25060
25061 ac_header_compiler=no
25062 fi
25063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25065 echo "${ECHO_T}$ac_header_compiler" >&6
25066
25067 # Is the header present?
25068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25070 cat >conftest.$ac_ext <<_ACEOF
25071 /* confdefs.h.  */
25072 _ACEOF
25073 cat confdefs.h >>conftest.$ac_ext
25074 cat >>conftest.$ac_ext <<_ACEOF
25075 /* end confdefs.h.  */
25076 #include <$ac_header>
25077 _ACEOF
25078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25079   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25080   ac_status=$?
25081   grep -v '^ *+' conftest.er1 >conftest.err
25082   rm -f conftest.er1
25083   cat conftest.err >&5
25084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085   (exit $ac_status); } >/dev/null; then
25086   if test -s conftest.err; then
25087     ac_cpp_err=$ac_c_preproc_warn_flag
25088     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25089   else
25090     ac_cpp_err=
25091   fi
25092 else
25093   ac_cpp_err=yes
25094 fi
25095 if test -z "$ac_cpp_err"; then
25096   ac_header_preproc=yes
25097 else
25098   echo "$as_me: failed program was:" >&5
25099 sed 's/^/| /' conftest.$ac_ext >&5
25100
25101   ac_header_preproc=no
25102 fi
25103 rm -f conftest.err conftest.$ac_ext
25104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25105 echo "${ECHO_T}$ac_header_preproc" >&6
25106
25107 # So?  What about this header?
25108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25109   yes:no: )
25110     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25114     ac_header_preproc=yes
25115     ;;
25116   no:yes:* )
25117     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25119     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25120 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25121     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25123     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25124 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25127     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25129     (
25130       cat <<\_ASBOX
25131 ## --------------------------------------------- ##
25132 ## Report this to <http://www.openldap.org/its/> ##
25133 ## --------------------------------------------- ##
25134 _ASBOX
25135     ) |
25136       sed "s/^/$as_me: WARNING:     /" >&2
25137     ;;
25138 esac
25139 echo "$as_me:$LINENO: checking for $ac_header" >&5
25140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25142   echo $ECHO_N "(cached) $ECHO_C" >&6
25143 else
25144   eval "$as_ac_Header=\$ac_header_preproc"
25145 fi
25146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25148
25149 fi
25150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25151   cat >>confdefs.h <<_ACEOF
25152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25153 _ACEOF
25154
25155 fi
25156
25157 done
25158
25159
25160         if test $ac_cv_header_pth_h = yes ; then
25161                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25162 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25163 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25164   echo $ECHO_N "(cached) $ECHO_C" >&6
25165 else
25166   ac_check_lib_save_LIBS=$LIBS
25167 LIBS="-lpth  $LIBS"
25168 cat >conftest.$ac_ext <<_ACEOF
25169 /* confdefs.h.  */
25170 _ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h.  */
25174
25175 /* Override any gcc2 internal prototype to avoid an error.  */
25176 #ifdef __cplusplus
25177 extern "C"
25178 #endif
25179 /* We use char because int might match the return type of a gcc2
25180    builtin and then its argument prototype would still apply.  */
25181 char pth_version ();
25182 int
25183 main ()
25184 {
25185 pth_version ();
25186   ;
25187   return 0;
25188 }
25189 _ACEOF
25190 rm -f conftest.$ac_objext conftest$ac_exeext
25191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25192   (eval $ac_link) 2>conftest.er1
25193   ac_status=$?
25194   grep -v '^ *+' conftest.er1 >conftest.err
25195   rm -f conftest.er1
25196   cat conftest.err >&5
25197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198   (exit $ac_status); } &&
25199          { ac_try='test -z "$ac_c_werror_flag"
25200                          || test ! -s conftest.err'
25201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25202   (eval $ac_try) 2>&5
25203   ac_status=$?
25204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205   (exit $ac_status); }; } &&
25206          { ac_try='test -s conftest$ac_exeext'
25207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25208   (eval $ac_try) 2>&5
25209   ac_status=$?
25210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211   (exit $ac_status); }; }; then
25212   ac_cv_lib_pth_pth_version=yes
25213 else
25214   echo "$as_me: failed program was:" >&5
25215 sed 's/^/| /' conftest.$ac_ext >&5
25216
25217 ac_cv_lib_pth_pth_version=no
25218 fi
25219 rm -f conftest.err conftest.$ac_objext \
25220       conftest$ac_exeext conftest.$ac_ext
25221 LIBS=$ac_check_lib_save_LIBS
25222 fi
25223 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25224 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25225 if test $ac_cv_lib_pth_pth_version = yes; then
25226   have_pth=yes
25227 else
25228   have_pth=no
25229 fi
25230
25231
25232                 if test $have_pth = yes ; then
25233
25234 cat >>confdefs.h <<\_ACEOF
25235 #define HAVE_GNU_PTH 1
25236 _ACEOF
25237
25238                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25239                         ol_link_threads=pth
25240                         ol_with_threads=found
25241
25242                         if test $ol_with_yielding_select = auto ; then
25243                                 ol_with_yielding_select=yes
25244                         fi
25245                 fi
25246         fi
25247         ;;
25248 esac
25249
25250 case $ol_with_threads in auto | yes | lwp)
25251
25252
25253
25254 for ac_header in thread.h synch.h
25255 do
25256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25258   echo "$as_me:$LINENO: checking for $ac_header" >&5
25259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25261   echo $ECHO_N "(cached) $ECHO_C" >&6
25262 fi
25263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25265 else
25266   # Is the header compilable?
25267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25269 cat >conftest.$ac_ext <<_ACEOF
25270 /* confdefs.h.  */
25271 _ACEOF
25272 cat confdefs.h >>conftest.$ac_ext
25273 cat >>conftest.$ac_ext <<_ACEOF
25274 /* end confdefs.h.  */
25275 $ac_includes_default
25276 #include <$ac_header>
25277 _ACEOF
25278 rm -f conftest.$ac_objext
25279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25280   (eval $ac_compile) 2>conftest.er1
25281   ac_status=$?
25282   grep -v '^ *+' conftest.er1 >conftest.err
25283   rm -f conftest.er1
25284   cat conftest.err >&5
25285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286   (exit $ac_status); } &&
25287          { ac_try='test -z "$ac_c_werror_flag"
25288                          || test ! -s conftest.err'
25289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25290   (eval $ac_try) 2>&5
25291   ac_status=$?
25292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293   (exit $ac_status); }; } &&
25294          { ac_try='test -s conftest.$ac_objext'
25295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296   (eval $ac_try) 2>&5
25297   ac_status=$?
25298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299   (exit $ac_status); }; }; then
25300   ac_header_compiler=yes
25301 else
25302   echo "$as_me: failed program was:" >&5
25303 sed 's/^/| /' conftest.$ac_ext >&5
25304
25305 ac_header_compiler=no
25306 fi
25307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25309 echo "${ECHO_T}$ac_header_compiler" >&6
25310
25311 # Is the header present?
25312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25314 cat >conftest.$ac_ext <<_ACEOF
25315 /* confdefs.h.  */
25316 _ACEOF
25317 cat confdefs.h >>conftest.$ac_ext
25318 cat >>conftest.$ac_ext <<_ACEOF
25319 /* end confdefs.h.  */
25320 #include <$ac_header>
25321 _ACEOF
25322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25323   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25324   ac_status=$?
25325   grep -v '^ *+' conftest.er1 >conftest.err
25326   rm -f conftest.er1
25327   cat conftest.err >&5
25328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329   (exit $ac_status); } >/dev/null; then
25330   if test -s conftest.err; then
25331     ac_cpp_err=$ac_c_preproc_warn_flag
25332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25333   else
25334     ac_cpp_err=
25335   fi
25336 else
25337   ac_cpp_err=yes
25338 fi
25339 if test -z "$ac_cpp_err"; then
25340   ac_header_preproc=yes
25341 else
25342   echo "$as_me: failed program was:" >&5
25343 sed 's/^/| /' conftest.$ac_ext >&5
25344
25345   ac_header_preproc=no
25346 fi
25347 rm -f conftest.err conftest.$ac_ext
25348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25349 echo "${ECHO_T}$ac_header_preproc" >&6
25350
25351 # So?  What about this header?
25352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25353   yes:no: )
25354     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25358     ac_header_preproc=yes
25359     ;;
25360   no:yes:* )
25361     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25363     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25364 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25365     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25367     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25368 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25371     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25373     (
25374       cat <<\_ASBOX
25375 ## --------------------------------------------- ##
25376 ## Report this to <http://www.openldap.org/its/> ##
25377 ## --------------------------------------------- ##
25378 _ASBOX
25379     ) |
25380       sed "s/^/$as_me: WARNING:     /" >&2
25381     ;;
25382 esac
25383 echo "$as_me:$LINENO: checking for $ac_header" >&5
25384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25386   echo $ECHO_N "(cached) $ECHO_C" >&6
25387 else
25388   eval "$as_ac_Header=\$ac_header_preproc"
25389 fi
25390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25392
25393 fi
25394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25395   cat >>confdefs.h <<_ACEOF
25396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25397 _ACEOF
25398
25399 fi
25400
25401 done
25402
25403         if test $ac_cv_header_thread_h = yes &&
25404            test $ac_cv_header_synch_h = yes ; then
25405                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25406 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25407 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25408   echo $ECHO_N "(cached) $ECHO_C" >&6
25409 else
25410   ac_check_lib_save_LIBS=$LIBS
25411 LIBS="-lthread  $LIBS"
25412 cat >conftest.$ac_ext <<_ACEOF
25413 /* confdefs.h.  */
25414 _ACEOF
25415 cat confdefs.h >>conftest.$ac_ext
25416 cat >>conftest.$ac_ext <<_ACEOF
25417 /* end confdefs.h.  */
25418
25419 /* Override any gcc2 internal prototype to avoid an error.  */
25420 #ifdef __cplusplus
25421 extern "C"
25422 #endif
25423 /* We use char because int might match the return type of a gcc2
25424    builtin and then its argument prototype would still apply.  */
25425 char thr_create ();
25426 int
25427 main ()
25428 {
25429 thr_create ();
25430   ;
25431   return 0;
25432 }
25433 _ACEOF
25434 rm -f conftest.$ac_objext conftest$ac_exeext
25435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25436   (eval $ac_link) 2>conftest.er1
25437   ac_status=$?
25438   grep -v '^ *+' conftest.er1 >conftest.err
25439   rm -f conftest.er1
25440   cat conftest.err >&5
25441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442   (exit $ac_status); } &&
25443          { ac_try='test -z "$ac_c_werror_flag"
25444                          || test ! -s conftest.err'
25445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25446   (eval $ac_try) 2>&5
25447   ac_status=$?
25448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449   (exit $ac_status); }; } &&
25450          { ac_try='test -s conftest$ac_exeext'
25451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25452   (eval $ac_try) 2>&5
25453   ac_status=$?
25454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455   (exit $ac_status); }; }; then
25456   ac_cv_lib_thread_thr_create=yes
25457 else
25458   echo "$as_me: failed program was:" >&5
25459 sed 's/^/| /' conftest.$ac_ext >&5
25460
25461 ac_cv_lib_thread_thr_create=no
25462 fi
25463 rm -f conftest.err conftest.$ac_objext \
25464       conftest$ac_exeext conftest.$ac_ext
25465 LIBS=$ac_check_lib_save_LIBS
25466 fi
25467 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25468 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25469 if test $ac_cv_lib_thread_thr_create = yes; then
25470   have_thr=yes
25471 else
25472   have_thr=no
25473 fi
25474
25475
25476                 if test $have_thr = yes ; then
25477
25478 cat >>confdefs.h <<\_ACEOF
25479 #define HAVE_THR 1
25480 _ACEOF
25481
25482                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25483                         ol_link_threads=thr
25484
25485                         if test $ol_with_yielding_select = auto ; then
25486                                 ol_with_yielding_select=yes
25487                         fi
25488
25489
25490
25491 for ac_func in \
25492                                 thr_setconcurrency \
25493                                 thr_getconcurrency \
25494
25495 do
25496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25497 echo "$as_me:$LINENO: checking for $ac_func" >&5
25498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25499 if eval "test \"\${$as_ac_var+set}\" = set"; then
25500   echo $ECHO_N "(cached) $ECHO_C" >&6
25501 else
25502   cat >conftest.$ac_ext <<_ACEOF
25503 /* confdefs.h.  */
25504 _ACEOF
25505 cat confdefs.h >>conftest.$ac_ext
25506 cat >>conftest.$ac_ext <<_ACEOF
25507 /* end confdefs.h.  */
25508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25510 #define $ac_func innocuous_$ac_func
25511
25512 /* System header to define __stub macros and hopefully few prototypes,
25513     which can conflict with char $ac_func (); below.
25514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25515     <limits.h> exists even on freestanding compilers.  */
25516
25517 #ifdef __STDC__
25518 # include <limits.h>
25519 #else
25520 # include <assert.h>
25521 #endif
25522
25523 #undef $ac_func
25524
25525 /* Override any gcc2 internal prototype to avoid an error.  */
25526 #ifdef __cplusplus
25527 extern "C"
25528 {
25529 #endif
25530 /* We use char because int might match the return type of a gcc2
25531    builtin and then its argument prototype would still apply.  */
25532 char $ac_func ();
25533 /* The GNU C library defines this for functions which it implements
25534     to always fail with ENOSYS.  Some functions are actually named
25535     something starting with __ and the normal name is an alias.  */
25536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25537 choke me
25538 #else
25539 char (*f) () = $ac_func;
25540 #endif
25541 #ifdef __cplusplus
25542 }
25543 #endif
25544
25545 int
25546 main ()
25547 {
25548 return f != $ac_func;
25549   ;
25550   return 0;
25551 }
25552 _ACEOF
25553 rm -f conftest.$ac_objext conftest$ac_exeext
25554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25555   (eval $ac_link) 2>conftest.er1
25556   ac_status=$?
25557   grep -v '^ *+' conftest.er1 >conftest.err
25558   rm -f conftest.er1
25559   cat conftest.err >&5
25560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561   (exit $ac_status); } &&
25562          { ac_try='test -z "$ac_c_werror_flag"
25563                          || test ! -s conftest.err'
25564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25565   (eval $ac_try) 2>&5
25566   ac_status=$?
25567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568   (exit $ac_status); }; } &&
25569          { ac_try='test -s conftest$ac_exeext'
25570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25571   (eval $ac_try) 2>&5
25572   ac_status=$?
25573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574   (exit $ac_status); }; }; then
25575   eval "$as_ac_var=yes"
25576 else
25577   echo "$as_me: failed program was:" >&5
25578 sed 's/^/| /' conftest.$ac_ext >&5
25579
25580 eval "$as_ac_var=no"
25581 fi
25582 rm -f conftest.err conftest.$ac_objext \
25583       conftest$ac_exeext conftest.$ac_ext
25584 fi
25585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25587 if test `eval echo '${'$as_ac_var'}'` = yes; then
25588   cat >>confdefs.h <<_ACEOF
25589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25590 _ACEOF
25591
25592 fi
25593 done
25594
25595                 fi
25596         fi
25597
25598
25599 for ac_header in lwp/lwp.h
25600 do
25601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25603   echo "$as_me:$LINENO: checking for $ac_header" >&5
25604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25606   echo $ECHO_N "(cached) $ECHO_C" >&6
25607 fi
25608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25610 else
25611   # Is the header compilable?
25612 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25614 cat >conftest.$ac_ext <<_ACEOF
25615 /* confdefs.h.  */
25616 _ACEOF
25617 cat confdefs.h >>conftest.$ac_ext
25618 cat >>conftest.$ac_ext <<_ACEOF
25619 /* end confdefs.h.  */
25620 $ac_includes_default
25621 #include <$ac_header>
25622 _ACEOF
25623 rm -f conftest.$ac_objext
25624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25625   (eval $ac_compile) 2>conftest.er1
25626   ac_status=$?
25627   grep -v '^ *+' conftest.er1 >conftest.err
25628   rm -f conftest.er1
25629   cat conftest.err >&5
25630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631   (exit $ac_status); } &&
25632          { ac_try='test -z "$ac_c_werror_flag"
25633                          || test ! -s conftest.err'
25634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25635   (eval $ac_try) 2>&5
25636   ac_status=$?
25637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638   (exit $ac_status); }; } &&
25639          { ac_try='test -s conftest.$ac_objext'
25640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25641   (eval $ac_try) 2>&5
25642   ac_status=$?
25643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644   (exit $ac_status); }; }; then
25645   ac_header_compiler=yes
25646 else
25647   echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25649
25650 ac_header_compiler=no
25651 fi
25652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25654 echo "${ECHO_T}$ac_header_compiler" >&6
25655
25656 # Is the header present?
25657 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25659 cat >conftest.$ac_ext <<_ACEOF
25660 /* confdefs.h.  */
25661 _ACEOF
25662 cat confdefs.h >>conftest.$ac_ext
25663 cat >>conftest.$ac_ext <<_ACEOF
25664 /* end confdefs.h.  */
25665 #include <$ac_header>
25666 _ACEOF
25667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25669   ac_status=$?
25670   grep -v '^ *+' conftest.er1 >conftest.err
25671   rm -f conftest.er1
25672   cat conftest.err >&5
25673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674   (exit $ac_status); } >/dev/null; then
25675   if test -s conftest.err; then
25676     ac_cpp_err=$ac_c_preproc_warn_flag
25677     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25678   else
25679     ac_cpp_err=
25680   fi
25681 else
25682   ac_cpp_err=yes
25683 fi
25684 if test -z "$ac_cpp_err"; then
25685   ac_header_preproc=yes
25686 else
25687   echo "$as_me: failed program was:" >&5
25688 sed 's/^/| /' conftest.$ac_ext >&5
25689
25690   ac_header_preproc=no
25691 fi
25692 rm -f conftest.err conftest.$ac_ext
25693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25694 echo "${ECHO_T}$ac_header_preproc" >&6
25695
25696 # So?  What about this header?
25697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25698   yes:no: )
25699     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25703     ac_header_preproc=yes
25704     ;;
25705   no:yes:* )
25706     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25708     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25709 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25710     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25712     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25713 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25714     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25716     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25718     (
25719       cat <<\_ASBOX
25720 ## --------------------------------------------- ##
25721 ## Report this to <http://www.openldap.org/its/> ##
25722 ## --------------------------------------------- ##
25723 _ASBOX
25724     ) |
25725       sed "s/^/$as_me: WARNING:     /" >&2
25726     ;;
25727 esac
25728 echo "$as_me:$LINENO: checking for $ac_header" >&5
25729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25731   echo $ECHO_N "(cached) $ECHO_C" >&6
25732 else
25733   eval "$as_ac_Header=\$ac_header_preproc"
25734 fi
25735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25737
25738 fi
25739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25740   cat >>confdefs.h <<_ACEOF
25741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25742 _ACEOF
25743
25744 fi
25745
25746 done
25747
25748         if test $ac_cv_header_lwp_lwp_h = yes ; then
25749                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
25750 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
25751 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
25752   echo $ECHO_N "(cached) $ECHO_C" >&6
25753 else
25754   ac_check_lib_save_LIBS=$LIBS
25755 LIBS="-llwp  $LIBS"
25756 cat >conftest.$ac_ext <<_ACEOF
25757 /* confdefs.h.  */
25758 _ACEOF
25759 cat confdefs.h >>conftest.$ac_ext
25760 cat >>conftest.$ac_ext <<_ACEOF
25761 /* end confdefs.h.  */
25762
25763 /* Override any gcc2 internal prototype to avoid an error.  */
25764 #ifdef __cplusplus
25765 extern "C"
25766 #endif
25767 /* We use char because int might match the return type of a gcc2
25768    builtin and then its argument prototype would still apply.  */
25769 char lwp_create ();
25770 int
25771 main ()
25772 {
25773 lwp_create ();
25774   ;
25775   return 0;
25776 }
25777 _ACEOF
25778 rm -f conftest.$ac_objext conftest$ac_exeext
25779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25780   (eval $ac_link) 2>conftest.er1
25781   ac_status=$?
25782   grep -v '^ *+' conftest.er1 >conftest.err
25783   rm -f conftest.er1
25784   cat conftest.err >&5
25785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786   (exit $ac_status); } &&
25787          { ac_try='test -z "$ac_c_werror_flag"
25788                          || test ! -s conftest.err'
25789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25790   (eval $ac_try) 2>&5
25791   ac_status=$?
25792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793   (exit $ac_status); }; } &&
25794          { ac_try='test -s conftest$ac_exeext'
25795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25796   (eval $ac_try) 2>&5
25797   ac_status=$?
25798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25799   (exit $ac_status); }; }; then
25800   ac_cv_lib_lwp_lwp_create=yes
25801 else
25802   echo "$as_me: failed program was:" >&5
25803 sed 's/^/| /' conftest.$ac_ext >&5
25804
25805 ac_cv_lib_lwp_lwp_create=no
25806 fi
25807 rm -f conftest.err conftest.$ac_objext \
25808       conftest$ac_exeext conftest.$ac_ext
25809 LIBS=$ac_check_lib_save_LIBS
25810 fi
25811 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
25812 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
25813 if test $ac_cv_lib_lwp_lwp_create = yes; then
25814   have_lwp=yes
25815 else
25816   have_lwp=no
25817 fi
25818
25819
25820                 if test $have_lwp = yes ; then
25821
25822 cat >>confdefs.h <<\_ACEOF
25823 #define HAVE_LWP 1
25824 _ACEOF
25825
25826                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
25827                         ol_link_threads=lwp
25828
25829                         if test $ol_with_yielding_select = auto ; then
25830                                 ol_with_yielding_select=no
25831                         fi
25832                 fi
25833         fi
25834         ;;
25835 esac
25836
25837 if test $ol_with_yielding_select = yes ; then
25838
25839 cat >>confdefs.h <<\_ACEOF
25840 #define HAVE_YIELDING_SELECT 1
25841 _ACEOF
25842
25843 fi
25844
25845 if test $ol_with_threads = manual ; then
25846                 ol_link_threads=yes
25847
25848         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
25849 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
25850
25851
25852
25853 for ac_header in pthread.h sched.h
25854 do
25855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25857   echo "$as_me:$LINENO: checking for $ac_header" >&5
25858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25860   echo $ECHO_N "(cached) $ECHO_C" >&6
25861 fi
25862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25864 else
25865   # Is the header compilable?
25866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25868 cat >conftest.$ac_ext <<_ACEOF
25869 /* confdefs.h.  */
25870 _ACEOF
25871 cat confdefs.h >>conftest.$ac_ext
25872 cat >>conftest.$ac_ext <<_ACEOF
25873 /* end confdefs.h.  */
25874 $ac_includes_default
25875 #include <$ac_header>
25876 _ACEOF
25877 rm -f conftest.$ac_objext
25878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25879   (eval $ac_compile) 2>conftest.er1
25880   ac_status=$?
25881   grep -v '^ *+' conftest.er1 >conftest.err
25882   rm -f conftest.er1
25883   cat conftest.err >&5
25884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885   (exit $ac_status); } &&
25886          { ac_try='test -z "$ac_c_werror_flag"
25887                          || test ! -s conftest.err'
25888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25889   (eval $ac_try) 2>&5
25890   ac_status=$?
25891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892   (exit $ac_status); }; } &&
25893          { ac_try='test -s conftest.$ac_objext'
25894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25895   (eval $ac_try) 2>&5
25896   ac_status=$?
25897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898   (exit $ac_status); }; }; then
25899   ac_header_compiler=yes
25900 else
25901   echo "$as_me: failed program was:" >&5
25902 sed 's/^/| /' conftest.$ac_ext >&5
25903
25904 ac_header_compiler=no
25905 fi
25906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25908 echo "${ECHO_T}$ac_header_compiler" >&6
25909
25910 # Is the header present?
25911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25913 cat >conftest.$ac_ext <<_ACEOF
25914 /* confdefs.h.  */
25915 _ACEOF
25916 cat confdefs.h >>conftest.$ac_ext
25917 cat >>conftest.$ac_ext <<_ACEOF
25918 /* end confdefs.h.  */
25919 #include <$ac_header>
25920 _ACEOF
25921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25922   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25923   ac_status=$?
25924   grep -v '^ *+' conftest.er1 >conftest.err
25925   rm -f conftest.er1
25926   cat conftest.err >&5
25927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928   (exit $ac_status); } >/dev/null; then
25929   if test -s conftest.err; then
25930     ac_cpp_err=$ac_c_preproc_warn_flag
25931     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25932   else
25933     ac_cpp_err=
25934   fi
25935 else
25936   ac_cpp_err=yes
25937 fi
25938 if test -z "$ac_cpp_err"; then
25939   ac_header_preproc=yes
25940 else
25941   echo "$as_me: failed program was:" >&5
25942 sed 's/^/| /' conftest.$ac_ext >&5
25943
25944   ac_header_preproc=no
25945 fi
25946 rm -f conftest.err conftest.$ac_ext
25947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25948 echo "${ECHO_T}$ac_header_preproc" >&6
25949
25950 # So?  What about this header?
25951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25952   yes:no: )
25953     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25957     ac_header_preproc=yes
25958     ;;
25959   no:yes:* )
25960     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25962     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25963 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25964     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25966     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25967 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25970     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25972     (
25973       cat <<\_ASBOX
25974 ## --------------------------------------------- ##
25975 ## Report this to <http://www.openldap.org/its/> ##
25976 ## --------------------------------------------- ##
25977 _ASBOX
25978     ) |
25979       sed "s/^/$as_me: WARNING:     /" >&2
25980     ;;
25981 esac
25982 echo "$as_me:$LINENO: checking for $ac_header" >&5
25983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25985   echo $ECHO_N "(cached) $ECHO_C" >&6
25986 else
25987   eval "$as_ac_Header=\$ac_header_preproc"
25988 fi
25989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25991
25992 fi
25993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25994   cat >>confdefs.h <<_ACEOF
25995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25996 _ACEOF
25997
25998 fi
25999
26000 done
26001
26002
26003
26004 for ac_func in sched_yield pthread_yield
26005 do
26006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26007 echo "$as_me:$LINENO: checking for $ac_func" >&5
26008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26009 if eval "test \"\${$as_ac_var+set}\" = set"; then
26010   echo $ECHO_N "(cached) $ECHO_C" >&6
26011 else
26012   cat >conftest.$ac_ext <<_ACEOF
26013 /* confdefs.h.  */
26014 _ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h.  */
26018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26020 #define $ac_func innocuous_$ac_func
26021
26022 /* System header to define __stub macros and hopefully few prototypes,
26023     which can conflict with char $ac_func (); below.
26024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26025     <limits.h> exists even on freestanding compilers.  */
26026
26027 #ifdef __STDC__
26028 # include <limits.h>
26029 #else
26030 # include <assert.h>
26031 #endif
26032
26033 #undef $ac_func
26034
26035 /* Override any gcc2 internal prototype to avoid an error.  */
26036 #ifdef __cplusplus
26037 extern "C"
26038 {
26039 #endif
26040 /* We use char because int might match the return type of a gcc2
26041    builtin and then its argument prototype would still apply.  */
26042 char $ac_func ();
26043 /* The GNU C library defines this for functions which it implements
26044     to always fail with ENOSYS.  Some functions are actually named
26045     something starting with __ and the normal name is an alias.  */
26046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26047 choke me
26048 #else
26049 char (*f) () = $ac_func;
26050 #endif
26051 #ifdef __cplusplus
26052 }
26053 #endif
26054
26055 int
26056 main ()
26057 {
26058 return f != $ac_func;
26059   ;
26060   return 0;
26061 }
26062 _ACEOF
26063 rm -f conftest.$ac_objext conftest$ac_exeext
26064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26065   (eval $ac_link) 2>conftest.er1
26066   ac_status=$?
26067   grep -v '^ *+' conftest.er1 >conftest.err
26068   rm -f conftest.er1
26069   cat conftest.err >&5
26070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071   (exit $ac_status); } &&
26072          { ac_try='test -z "$ac_c_werror_flag"
26073                          || test ! -s conftest.err'
26074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26075   (eval $ac_try) 2>&5
26076   ac_status=$?
26077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078   (exit $ac_status); }; } &&
26079          { ac_try='test -s conftest$ac_exeext'
26080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26081   (eval $ac_try) 2>&5
26082   ac_status=$?
26083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084   (exit $ac_status); }; }; then
26085   eval "$as_ac_var=yes"
26086 else
26087   echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26089
26090 eval "$as_ac_var=no"
26091 fi
26092 rm -f conftest.err conftest.$ac_objext \
26093       conftest$ac_exeext conftest.$ac_ext
26094 fi
26095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26097 if test `eval echo '${'$as_ac_var'}'` = yes; then
26098   cat >>confdefs.h <<_ACEOF
26099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26100 _ACEOF
26101
26102 fi
26103 done
26104
26105
26106         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26107 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26108 if test "${ol_cv_header_linux_threads+set}" = set; then
26109   echo $ECHO_N "(cached) $ECHO_C" >&6
26110 else
26111   cat >conftest.$ac_ext <<_ACEOF
26112 /* confdefs.h.  */
26113 _ACEOF
26114 cat confdefs.h >>conftest.$ac_ext
26115 cat >>conftest.$ac_ext <<_ACEOF
26116 /* end confdefs.h.  */
26117 #include <pthread.h>
26118 _ACEOF
26119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26120   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26121   ol_cv_header_linux_threads=yes
26122 else
26123   ol_cv_header_linux_threads=no
26124 fi
26125 rm -f conftest*
26126
26127
26128 fi
26129 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26130 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26131         if test $ol_cv_header_linux_threads = yes; then
26132
26133 cat >>confdefs.h <<\_ACEOF
26134 #define HAVE_LINUX_THREADS 1
26135 _ACEOF
26136
26137         fi
26138
26139
26140
26141 for ac_header in mach/cthreads.h
26142 do
26143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26145   echo "$as_me:$LINENO: checking for $ac_header" >&5
26146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26148   echo $ECHO_N "(cached) $ECHO_C" >&6
26149 fi
26150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26152 else
26153   # Is the header compilable?
26154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26156 cat >conftest.$ac_ext <<_ACEOF
26157 /* confdefs.h.  */
26158 _ACEOF
26159 cat confdefs.h >>conftest.$ac_ext
26160 cat >>conftest.$ac_ext <<_ACEOF
26161 /* end confdefs.h.  */
26162 $ac_includes_default
26163 #include <$ac_header>
26164 _ACEOF
26165 rm -f conftest.$ac_objext
26166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26167   (eval $ac_compile) 2>conftest.er1
26168   ac_status=$?
26169   grep -v '^ *+' conftest.er1 >conftest.err
26170   rm -f conftest.er1
26171   cat conftest.err >&5
26172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173   (exit $ac_status); } &&
26174          { ac_try='test -z "$ac_c_werror_flag"
26175                          || test ! -s conftest.err'
26176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26177   (eval $ac_try) 2>&5
26178   ac_status=$?
26179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180   (exit $ac_status); }; } &&
26181          { ac_try='test -s conftest.$ac_objext'
26182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26183   (eval $ac_try) 2>&5
26184   ac_status=$?
26185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186   (exit $ac_status); }; }; then
26187   ac_header_compiler=yes
26188 else
26189   echo "$as_me: failed program was:" >&5
26190 sed 's/^/| /' conftest.$ac_ext >&5
26191
26192 ac_header_compiler=no
26193 fi
26194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26196 echo "${ECHO_T}$ac_header_compiler" >&6
26197
26198 # Is the header present?
26199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26201 cat >conftest.$ac_ext <<_ACEOF
26202 /* confdefs.h.  */
26203 _ACEOF
26204 cat confdefs.h >>conftest.$ac_ext
26205 cat >>conftest.$ac_ext <<_ACEOF
26206 /* end confdefs.h.  */
26207 #include <$ac_header>
26208 _ACEOF
26209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26210   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26211   ac_status=$?
26212   grep -v '^ *+' conftest.er1 >conftest.err
26213   rm -f conftest.er1
26214   cat conftest.err >&5
26215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26216   (exit $ac_status); } >/dev/null; then
26217   if test -s conftest.err; then
26218     ac_cpp_err=$ac_c_preproc_warn_flag
26219     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26220   else
26221     ac_cpp_err=
26222   fi
26223 else
26224   ac_cpp_err=yes
26225 fi
26226 if test -z "$ac_cpp_err"; then
26227   ac_header_preproc=yes
26228 else
26229   echo "$as_me: failed program was:" >&5
26230 sed 's/^/| /' conftest.$ac_ext >&5
26231
26232   ac_header_preproc=no
26233 fi
26234 rm -f conftest.err conftest.$ac_ext
26235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26236 echo "${ECHO_T}$ac_header_preproc" >&6
26237
26238 # So?  What about this header?
26239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26240   yes:no: )
26241     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26245     ac_header_preproc=yes
26246     ;;
26247   no:yes:* )
26248     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26250     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26251 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26252     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26254     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26255 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26258     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26260     (
26261       cat <<\_ASBOX
26262 ## --------------------------------------------- ##
26263 ## Report this to <http://www.openldap.org/its/> ##
26264 ## --------------------------------------------- ##
26265 _ASBOX
26266     ) |
26267       sed "s/^/$as_me: WARNING:     /" >&2
26268     ;;
26269 esac
26270 echo "$as_me:$LINENO: checking for $ac_header" >&5
26271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26273   echo $ECHO_N "(cached) $ECHO_C" >&6
26274 else
26275   eval "$as_ac_Header=\$ac_header_preproc"
26276 fi
26277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26279
26280 fi
26281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26282   cat >>confdefs.h <<_ACEOF
26283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26284 _ACEOF
26285
26286 fi
26287
26288 done
26289
26290
26291 for ac_header in lwp/lwp.h
26292 do
26293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26295   echo "$as_me:$LINENO: checking for $ac_header" >&5
26296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26298   echo $ECHO_N "(cached) $ECHO_C" >&6
26299 fi
26300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26302 else
26303   # Is the header compilable?
26304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26306 cat >conftest.$ac_ext <<_ACEOF
26307 /* confdefs.h.  */
26308 _ACEOF
26309 cat confdefs.h >>conftest.$ac_ext
26310 cat >>conftest.$ac_ext <<_ACEOF
26311 /* end confdefs.h.  */
26312 $ac_includes_default
26313 #include <$ac_header>
26314 _ACEOF
26315 rm -f conftest.$ac_objext
26316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26317   (eval $ac_compile) 2>conftest.er1
26318   ac_status=$?
26319   grep -v '^ *+' conftest.er1 >conftest.err
26320   rm -f conftest.er1
26321   cat conftest.err >&5
26322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323   (exit $ac_status); } &&
26324          { ac_try='test -z "$ac_c_werror_flag"
26325                          || test ! -s conftest.err'
26326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26327   (eval $ac_try) 2>&5
26328   ac_status=$?
26329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330   (exit $ac_status); }; } &&
26331          { ac_try='test -s conftest.$ac_objext'
26332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26333   (eval $ac_try) 2>&5
26334   ac_status=$?
26335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336   (exit $ac_status); }; }; then
26337   ac_header_compiler=yes
26338 else
26339   echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26341
26342 ac_header_compiler=no
26343 fi
26344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26346 echo "${ECHO_T}$ac_header_compiler" >&6
26347
26348 # Is the header present?
26349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26351 cat >conftest.$ac_ext <<_ACEOF
26352 /* confdefs.h.  */
26353 _ACEOF
26354 cat confdefs.h >>conftest.$ac_ext
26355 cat >>conftest.$ac_ext <<_ACEOF
26356 /* end confdefs.h.  */
26357 #include <$ac_header>
26358 _ACEOF
26359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26360   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26361   ac_status=$?
26362   grep -v '^ *+' conftest.er1 >conftest.err
26363   rm -f conftest.er1
26364   cat conftest.err >&5
26365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366   (exit $ac_status); } >/dev/null; then
26367   if test -s conftest.err; then
26368     ac_cpp_err=$ac_c_preproc_warn_flag
26369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26370   else
26371     ac_cpp_err=
26372   fi
26373 else
26374   ac_cpp_err=yes
26375 fi
26376 if test -z "$ac_cpp_err"; then
26377   ac_header_preproc=yes
26378 else
26379   echo "$as_me: failed program was:" >&5
26380 sed 's/^/| /' conftest.$ac_ext >&5
26381
26382   ac_header_preproc=no
26383 fi
26384 rm -f conftest.err conftest.$ac_ext
26385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26386 echo "${ECHO_T}$ac_header_preproc" >&6
26387
26388 # So?  What about this header?
26389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26390   yes:no: )
26391     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26393     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26395     ac_header_preproc=yes
26396     ;;
26397   no:yes:* )
26398     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26400     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26401 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26402     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26404     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26405 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26408     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26410     (
26411       cat <<\_ASBOX
26412 ## --------------------------------------------- ##
26413 ## Report this to <http://www.openldap.org/its/> ##
26414 ## --------------------------------------------- ##
26415 _ASBOX
26416     ) |
26417       sed "s/^/$as_me: WARNING:     /" >&2
26418     ;;
26419 esac
26420 echo "$as_me:$LINENO: checking for $ac_header" >&5
26421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26423   echo $ECHO_N "(cached) $ECHO_C" >&6
26424 else
26425   eval "$as_ac_Header=\$ac_header_preproc"
26426 fi
26427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26429
26430 fi
26431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26432   cat >>confdefs.h <<_ACEOF
26433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26434 _ACEOF
26435
26436 fi
26437
26438 done
26439
26440
26441
26442 for ac_header in thread.h synch.h
26443 do
26444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26446   echo "$as_me:$LINENO: checking for $ac_header" >&5
26447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26449   echo $ECHO_N "(cached) $ECHO_C" >&6
26450 fi
26451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26453 else
26454   # Is the header compilable?
26455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26457 cat >conftest.$ac_ext <<_ACEOF
26458 /* confdefs.h.  */
26459 _ACEOF
26460 cat confdefs.h >>conftest.$ac_ext
26461 cat >>conftest.$ac_ext <<_ACEOF
26462 /* end confdefs.h.  */
26463 $ac_includes_default
26464 #include <$ac_header>
26465 _ACEOF
26466 rm -f conftest.$ac_objext
26467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26468   (eval $ac_compile) 2>conftest.er1
26469   ac_status=$?
26470   grep -v '^ *+' conftest.er1 >conftest.err
26471   rm -f conftest.er1
26472   cat conftest.err >&5
26473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474   (exit $ac_status); } &&
26475          { ac_try='test -z "$ac_c_werror_flag"
26476                          || test ! -s conftest.err'
26477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26478   (eval $ac_try) 2>&5
26479   ac_status=$?
26480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481   (exit $ac_status); }; } &&
26482          { ac_try='test -s conftest.$ac_objext'
26483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484   (eval $ac_try) 2>&5
26485   ac_status=$?
26486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487   (exit $ac_status); }; }; then
26488   ac_header_compiler=yes
26489 else
26490   echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26492
26493 ac_header_compiler=no
26494 fi
26495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26497 echo "${ECHO_T}$ac_header_compiler" >&6
26498
26499 # Is the header present?
26500 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26502 cat >conftest.$ac_ext <<_ACEOF
26503 /* confdefs.h.  */
26504 _ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h.  */
26508 #include <$ac_header>
26509 _ACEOF
26510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26511   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26512   ac_status=$?
26513   grep -v '^ *+' conftest.er1 >conftest.err
26514   rm -f conftest.er1
26515   cat conftest.err >&5
26516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517   (exit $ac_status); } >/dev/null; then
26518   if test -s conftest.err; then
26519     ac_cpp_err=$ac_c_preproc_warn_flag
26520     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26521   else
26522     ac_cpp_err=
26523   fi
26524 else
26525   ac_cpp_err=yes
26526 fi
26527 if test -z "$ac_cpp_err"; then
26528   ac_header_preproc=yes
26529 else
26530   echo "$as_me: failed program was:" >&5
26531 sed 's/^/| /' conftest.$ac_ext >&5
26532
26533   ac_header_preproc=no
26534 fi
26535 rm -f conftest.err conftest.$ac_ext
26536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26537 echo "${ECHO_T}$ac_header_preproc" >&6
26538
26539 # So?  What about this header?
26540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26541   yes:no: )
26542     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26546     ac_header_preproc=yes
26547     ;;
26548   no:yes:* )
26549     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26551     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26552 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26553     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26555     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26556 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26559     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26561     (
26562       cat <<\_ASBOX
26563 ## --------------------------------------------- ##
26564 ## Report this to <http://www.openldap.org/its/> ##
26565 ## --------------------------------------------- ##
26566 _ASBOX
26567     ) |
26568       sed "s/^/$as_me: WARNING:     /" >&2
26569     ;;
26570 esac
26571 echo "$as_me:$LINENO: checking for $ac_header" >&5
26572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26574   echo $ECHO_N "(cached) $ECHO_C" >&6
26575 else
26576   eval "$as_ac_Header=\$ac_header_preproc"
26577 fi
26578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26580
26581 fi
26582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26583   cat >>confdefs.h <<_ACEOF
26584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26585 _ACEOF
26586
26587 fi
26588
26589 done
26590
26591 fi
26592
26593 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26594                         cat >>confdefs.h <<\_ACEOF
26595 #define REENTRANT 1
26596 _ACEOF
26597
26598         cat >>confdefs.h <<\_ACEOF
26599 #define _REENTRANT 1
26600 _ACEOF
26601
26602         cat >>confdefs.h <<\_ACEOF
26603 #define THREAD_SAFE 1
26604 _ACEOF
26605
26606         cat >>confdefs.h <<\_ACEOF
26607 #define _THREAD_SAFE 1
26608 _ACEOF
26609
26610         cat >>confdefs.h <<\_ACEOF
26611 #define THREADSAFE 1
26612 _ACEOF
26613
26614         cat >>confdefs.h <<\_ACEOF
26615 #define _THREADSAFE 1
26616 _ACEOF
26617
26618         cat >>confdefs.h <<\_ACEOF
26619 #define _SGI_MP_SOURCE 1
26620 _ACEOF
26621
26622
26623                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
26624 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26625 if test "${ol_cv_errno_thread_specific+set}" = set; then
26626   echo $ECHO_N "(cached) $ECHO_C" >&6
26627 else
26628
26629                 cat >conftest.$ac_ext <<_ACEOF
26630 /* confdefs.h.  */
26631 _ACEOF
26632 cat confdefs.h >>conftest.$ac_ext
26633 cat >>conftest.$ac_ext <<_ACEOF
26634 /* end confdefs.h.  */
26635 #include <errno.h>
26636 int
26637 main ()
26638 {
26639 errno = 0;
26640   ;
26641   return 0;
26642 }
26643 _ACEOF
26644 rm -f conftest.$ac_objext conftest$ac_exeext
26645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26646   (eval $ac_link) 2>conftest.er1
26647   ac_status=$?
26648   grep -v '^ *+' conftest.er1 >conftest.err
26649   rm -f conftest.er1
26650   cat conftest.err >&5
26651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652   (exit $ac_status); } &&
26653          { ac_try='test -z "$ac_c_werror_flag"
26654                          || test ! -s conftest.err'
26655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656   (eval $ac_try) 2>&5
26657   ac_status=$?
26658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659   (exit $ac_status); }; } &&
26660          { ac_try='test -s conftest$ac_exeext'
26661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662   (eval $ac_try) 2>&5
26663   ac_status=$?
26664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665   (exit $ac_status); }; }; then
26666   ol_cv_errno_thread_specific=yes
26667 else
26668   echo "$as_me: failed program was:" >&5
26669 sed 's/^/| /' conftest.$ac_ext >&5
26670
26671 ol_cv_errno_thread_specific=no
26672 fi
26673 rm -f conftest.err conftest.$ac_objext \
26674       conftest$ac_exeext conftest.$ac_ext
26675
26676 fi
26677 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
26678 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
26679
26680                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
26681 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
26682 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
26683   echo $ECHO_N "(cached) $ECHO_C" >&6
26684 else
26685
26686                 cat >conftest.$ac_ext <<_ACEOF
26687 /* confdefs.h.  */
26688 _ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h.  */
26692 #include <netdb.h>
26693 int
26694 main ()
26695 {
26696 h_errno = 0;
26697   ;
26698   return 0;
26699 }
26700 _ACEOF
26701 rm -f conftest.$ac_objext conftest$ac_exeext
26702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26703   (eval $ac_link) 2>conftest.er1
26704   ac_status=$?
26705   grep -v '^ *+' conftest.er1 >conftest.err
26706   rm -f conftest.er1
26707   cat conftest.err >&5
26708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709   (exit $ac_status); } &&
26710          { ac_try='test -z "$ac_c_werror_flag"
26711                          || test ! -s conftest.err'
26712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26713   (eval $ac_try) 2>&5
26714   ac_status=$?
26715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716   (exit $ac_status); }; } &&
26717          { ac_try='test -s conftest$ac_exeext'
26718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719   (eval $ac_try) 2>&5
26720   ac_status=$?
26721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722   (exit $ac_status); }; }; then
26723   ol_cv_h_errno_thread_specific=yes
26724 else
26725   echo "$as_me: failed program was:" >&5
26726 sed 's/^/| /' conftest.$ac_ext >&5
26727
26728 ol_cv_h_errno_thread_specific=no
26729 fi
26730 rm -f conftest.err conftest.$ac_objext \
26731       conftest$ac_exeext conftest.$ac_ext
26732
26733 fi
26734 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
26735 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
26736
26737         if test $ol_cv_errno_thread_specific != yes ||
26738            test $ol_cv_h_errno_thread_specific != yes ; then
26739                 LIBS="$LTHREAD_LIBS $LIBS"
26740                 LTHREAD_LIBS=""
26741         fi
26742
26743 fi
26744
26745 if test $ol_link_threads = no ; then
26746         if test $ol_with_threads = yes ; then
26747                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
26748 echo "$as_me: error: no suitable thread support" >&2;}
26749    { (exit 1); exit 1; }; }
26750         fi
26751
26752         if test $ol_with_threads = auto ; then
26753                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
26754 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26755                 ol_with_threads=no
26756         fi
26757
26758
26759 cat >>confdefs.h <<\_ACEOF
26760 #define NO_THREADS 1
26761 _ACEOF
26762
26763         LTHREAD_LIBS=""
26764         BUILD_THREAD=no
26765 else
26766         BUILD_THREAD=yes
26767 fi
26768
26769 if test $ol_link_threads != no ; then
26770
26771 cat >>confdefs.h <<\_ACEOF
26772 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
26773 _ACEOF
26774
26775 fi
26776
26777
26778
26779
26780 for ac_func in \
26781         ctime_r                 \
26782         gethostbyname_r gethostbyaddr_r \
26783
26784 do
26785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26786 echo "$as_me:$LINENO: checking for $ac_func" >&5
26787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26788 if eval "test \"\${$as_ac_var+set}\" = set"; then
26789   echo $ECHO_N "(cached) $ECHO_C" >&6
26790 else
26791   cat >conftest.$ac_ext <<_ACEOF
26792 /* confdefs.h.  */
26793 _ACEOF
26794 cat confdefs.h >>conftest.$ac_ext
26795 cat >>conftest.$ac_ext <<_ACEOF
26796 /* end confdefs.h.  */
26797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26799 #define $ac_func innocuous_$ac_func
26800
26801 /* System header to define __stub macros and hopefully few prototypes,
26802     which can conflict with char $ac_func (); below.
26803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26804     <limits.h> exists even on freestanding compilers.  */
26805
26806 #ifdef __STDC__
26807 # include <limits.h>
26808 #else
26809 # include <assert.h>
26810 #endif
26811
26812 #undef $ac_func
26813
26814 /* Override any gcc2 internal prototype to avoid an error.  */
26815 #ifdef __cplusplus
26816 extern "C"
26817 {
26818 #endif
26819 /* We use char because int might match the return type of a gcc2
26820    builtin and then its argument prototype would still apply.  */
26821 char $ac_func ();
26822 /* The GNU C library defines this for functions which it implements
26823     to always fail with ENOSYS.  Some functions are actually named
26824     something starting with __ and the normal name is an alias.  */
26825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26826 choke me
26827 #else
26828 char (*f) () = $ac_func;
26829 #endif
26830 #ifdef __cplusplus
26831 }
26832 #endif
26833
26834 int
26835 main ()
26836 {
26837 return f != $ac_func;
26838   ;
26839   return 0;
26840 }
26841 _ACEOF
26842 rm -f conftest.$ac_objext conftest$ac_exeext
26843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26844   (eval $ac_link) 2>conftest.er1
26845   ac_status=$?
26846   grep -v '^ *+' conftest.er1 >conftest.err
26847   rm -f conftest.er1
26848   cat conftest.err >&5
26849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850   (exit $ac_status); } &&
26851          { ac_try='test -z "$ac_c_werror_flag"
26852                          || test ! -s conftest.err'
26853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26854   (eval $ac_try) 2>&5
26855   ac_status=$?
26856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857   (exit $ac_status); }; } &&
26858          { ac_try='test -s conftest$ac_exeext'
26859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26860   (eval $ac_try) 2>&5
26861   ac_status=$?
26862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863   (exit $ac_status); }; }; then
26864   eval "$as_ac_var=yes"
26865 else
26866   echo "$as_me: failed program was:" >&5
26867 sed 's/^/| /' conftest.$ac_ext >&5
26868
26869 eval "$as_ac_var=no"
26870 fi
26871 rm -f conftest.err conftest.$ac_objext \
26872       conftest$ac_exeext conftest.$ac_ext
26873 fi
26874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26876 if test `eval echo '${'$as_ac_var'}'` = yes; then
26877   cat >>confdefs.h <<_ACEOF
26878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26879 _ACEOF
26880
26881 fi
26882 done
26883
26884
26885 if test "$ac_cv_func_ctime_r" = no ; then
26886         ol_cv_func_ctime_r_nargs=0
26887 else
26888         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
26889 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
26890 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
26891   echo $ECHO_N "(cached) $ECHO_C" >&6
26892 else
26893   cat >conftest.$ac_ext <<_ACEOF
26894 /* confdefs.h.  */
26895 _ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h.  */
26899 #include <time.h>
26900 int
26901 main ()
26902 {
26903 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
26904   ;
26905   return 0;
26906 }
26907 _ACEOF
26908 rm -f conftest.$ac_objext
26909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26910   (eval $ac_compile) 2>conftest.er1
26911   ac_status=$?
26912   grep -v '^ *+' conftest.er1 >conftest.err
26913   rm -f conftest.er1
26914   cat conftest.err >&5
26915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26916   (exit $ac_status); } &&
26917          { ac_try='test -z "$ac_c_werror_flag"
26918                          || test ! -s conftest.err'
26919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26920   (eval $ac_try) 2>&5
26921   ac_status=$?
26922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923   (exit $ac_status); }; } &&
26924          { ac_try='test -s conftest.$ac_objext'
26925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26926   (eval $ac_try) 2>&5
26927   ac_status=$?
26928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929   (exit $ac_status); }; }; then
26930   ol_cv_func_ctime_r_nargs3=yes
26931 else
26932   echo "$as_me: failed program was:" >&5
26933 sed 's/^/| /' conftest.$ac_ext >&5
26934
26935 ol_cv_func_ctime_r_nargs3=no
26936 fi
26937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26938
26939         cat >conftest.$ac_ext <<_ACEOF
26940 /* confdefs.h.  */
26941 _ACEOF
26942 cat confdefs.h >>conftest.$ac_ext
26943 cat >>conftest.$ac_ext <<_ACEOF
26944 /* end confdefs.h.  */
26945 #include <time.h>
26946 int
26947 main ()
26948 {
26949 time_t ti; char *buffer; ctime_r(&ti,buffer);
26950   ;
26951   return 0;
26952 }
26953 _ACEOF
26954 rm -f conftest.$ac_objext
26955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26956   (eval $ac_compile) 2>conftest.er1
26957   ac_status=$?
26958   grep -v '^ *+' conftest.er1 >conftest.err
26959   rm -f conftest.er1
26960   cat conftest.err >&5
26961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962   (exit $ac_status); } &&
26963          { ac_try='test -z "$ac_c_werror_flag"
26964                          || test ! -s conftest.err'
26965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26966   (eval $ac_try) 2>&5
26967   ac_status=$?
26968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969   (exit $ac_status); }; } &&
26970          { ac_try='test -s conftest.$ac_objext'
26971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26972   (eval $ac_try) 2>&5
26973   ac_status=$?
26974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975   (exit $ac_status); }; }; then
26976   ol_cv_func_ctime_r_nargs2=yes
26977 else
26978   echo "$as_me: failed program was:" >&5
26979 sed 's/^/| /' conftest.$ac_ext >&5
26980
26981 ol_cv_func_ctime_r_nargs2=no
26982 fi
26983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26984
26985         if test $ol_cv_func_ctime_r_nargs3 = yes &&
26986            test $ol_cv_func_ctime_r_nargs2 = no ; then
26987
26988                 ol_cv_func_ctime_r_nargs=3
26989
26990         elif test $ol_cv_func_ctime_r_nargs3 = no &&
26991              test $ol_cv_func_ctime_r_nargs2 = yes ; then
26992
26993                 ol_cv_func_ctime_r_nargs=2
26994
26995         else
26996                 ol_cv_func_ctime_r_nargs=0
26997         fi
26998
26999 fi
27000 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27001 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27002
27003   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27004
27005 cat >>confdefs.h <<_ACEOF
27006 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27007 _ACEOF
27008
27009   fi
27010
27011 fi
27012
27013 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27014         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27015 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27016 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27017   echo $ECHO_N "(cached) $ECHO_C" >&6
27018 else
27019   cat >conftest.$ac_ext <<_ACEOF
27020 /* confdefs.h.  */
27021 _ACEOF
27022 cat confdefs.h >>conftest.$ac_ext
27023 cat >>conftest.$ac_ext <<_ACEOF
27024 /* end confdefs.h.  */
27025 #include <sys/types.h>
27026 #include <sys/socket.h>
27027 #include <netinet/in.h>
27028 #include <netdb.h>
27029 #define BUFSIZE (sizeof(struct hostent)+10)
27030 int
27031 main ()
27032 {
27033 struct hostent hent; char buffer[BUFSIZE];
27034                 int bufsize=BUFSIZE;int h_errno;
27035                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27036                         buffer, bufsize, &h_errno);
27037   ;
27038   return 0;
27039 }
27040 _ACEOF
27041 rm -f conftest.$ac_objext
27042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27043   (eval $ac_compile) 2>conftest.er1
27044   ac_status=$?
27045   grep -v '^ *+' conftest.er1 >conftest.err
27046   rm -f conftest.er1
27047   cat conftest.err >&5
27048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049   (exit $ac_status); } &&
27050          { ac_try='test -z "$ac_c_werror_flag"
27051                          || test ! -s conftest.err'
27052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27053   (eval $ac_try) 2>&5
27054   ac_status=$?
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); }; } &&
27057          { ac_try='test -s conftest.$ac_objext'
27058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059   (eval $ac_try) 2>&5
27060   ac_status=$?
27061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062   (exit $ac_status); }; }; then
27063   ol_cv_func_gethostbyname_r_nargs5=yes
27064 else
27065   echo "$as_me: failed program was:" >&5
27066 sed 's/^/| /' conftest.$ac_ext >&5
27067
27068 ol_cv_func_gethostbyname_r_nargs5=no
27069 fi
27070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27071
27072         cat >conftest.$ac_ext <<_ACEOF
27073 /* confdefs.h.  */
27074 _ACEOF
27075 cat confdefs.h >>conftest.$ac_ext
27076 cat >>conftest.$ac_ext <<_ACEOF
27077 /* end confdefs.h.  */
27078 #include <sys/types.h>
27079 #include <sys/socket.h>
27080 #include <netinet/in.h>
27081 #include <netdb.h>
27082 #define BUFSIZE (sizeof(struct hostent)+10)
27083 int
27084 main ()
27085 {
27086 struct hostent hent;struct hostent *rhent;
27087                 char buffer[BUFSIZE];
27088                 int bufsize=BUFSIZE;int h_errno;
27089                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27090                         &rhent, &h_errno);
27091   ;
27092   return 0;
27093 }
27094 _ACEOF
27095 rm -f conftest.$ac_objext
27096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27097   (eval $ac_compile) 2>conftest.er1
27098   ac_status=$?
27099   grep -v '^ *+' conftest.er1 >conftest.err
27100   rm -f conftest.er1
27101   cat conftest.err >&5
27102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103   (exit $ac_status); } &&
27104          { ac_try='test -z "$ac_c_werror_flag"
27105                          || test ! -s conftest.err'
27106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27107   (eval $ac_try) 2>&5
27108   ac_status=$?
27109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110   (exit $ac_status); }; } &&
27111          { ac_try='test -s conftest.$ac_objext'
27112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27113   (eval $ac_try) 2>&5
27114   ac_status=$?
27115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116   (exit $ac_status); }; }; then
27117   ol_cv_func_gethostbyname_r_nargs6=yes
27118 else
27119   echo "$as_me: failed program was:" >&5
27120 sed 's/^/| /' conftest.$ac_ext >&5
27121
27122 ol_cv_func_gethostbyname_r_nargs6=no
27123 fi
27124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27125
27126         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27127            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27128
27129                 ol_cv_func_gethostbyname_r_nargs=5
27130
27131         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27132              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27133
27134                 ol_cv_func_gethostbyname_r_nargs=6
27135
27136         else
27137                 ol_cv_func_gethostbyname_r_nargs=0
27138         fi
27139
27140 fi
27141 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27142 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27143   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27144
27145 cat >>confdefs.h <<_ACEOF
27146 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27147 _ACEOF
27148
27149   fi
27150
27151 else
27152         ol_cv_func_gethostbyname_r_nargs=0
27153 fi
27154
27155 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27156         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27157 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27158 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27159   echo $ECHO_N "(cached) $ECHO_C" >&6
27160 else
27161   cat >conftest.$ac_ext <<_ACEOF
27162 /* confdefs.h.  */
27163 _ACEOF
27164 cat confdefs.h >>conftest.$ac_ext
27165 cat >>conftest.$ac_ext <<_ACEOF
27166 /* end confdefs.h.  */
27167 #include <sys/types.h>
27168 #include <sys/socket.h>
27169 #include <netinet/in.h>
27170 #include <netdb.h>
27171 #define BUFSIZE (sizeof(struct hostent)+10)
27172 int
27173 main ()
27174 {
27175 struct hostent hent; char buffer[BUFSIZE];
27176             struct in_addr add;
27177             size_t alen=sizeof(struct in_addr);
27178             int bufsize=BUFSIZE;int h_errno;
27179                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27180                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27181   ;
27182   return 0;
27183 }
27184 _ACEOF
27185 rm -f conftest.$ac_objext
27186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27187   (eval $ac_compile) 2>conftest.er1
27188   ac_status=$?
27189   grep -v '^ *+' conftest.er1 >conftest.err
27190   rm -f conftest.er1
27191   cat conftest.err >&5
27192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193   (exit $ac_status); } &&
27194          { ac_try='test -z "$ac_c_werror_flag"
27195                          || test ! -s conftest.err'
27196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27197   (eval $ac_try) 2>&5
27198   ac_status=$?
27199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200   (exit $ac_status); }; } &&
27201          { ac_try='test -s conftest.$ac_objext'
27202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27203   (eval $ac_try) 2>&5
27204   ac_status=$?
27205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206   (exit $ac_status); }; }; then
27207   ol_cv_func_gethostbyaddr_r_nargs7=yes
27208 else
27209   echo "$as_me: failed program was:" >&5
27210 sed 's/^/| /' conftest.$ac_ext >&5
27211
27212 ol_cv_func_gethostbyaddr_r_nargs7=no
27213 fi
27214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27215
27216         cat >conftest.$ac_ext <<_ACEOF
27217 /* confdefs.h.  */
27218 _ACEOF
27219 cat confdefs.h >>conftest.$ac_ext
27220 cat >>conftest.$ac_ext <<_ACEOF
27221 /* end confdefs.h.  */
27222 #include <sys/types.h>
27223 #include <sys/socket.h>
27224 #include <netinet/in.h>
27225 #include <netdb.h>
27226 #define BUFSIZE (sizeof(struct hostent)+10)
27227 int
27228 main ()
27229 {
27230 struct hostent hent;
27231                 struct hostent *rhent; char buffer[BUFSIZE];
27232                 struct in_addr add;
27233                 size_t alen=sizeof(struct in_addr);
27234                 int bufsize=BUFSIZE;int h_errno;
27235                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27236                         alen, AF_INET, &hent, buffer, bufsize,
27237                         &rhent, &h_errno);
27238   ;
27239   return 0;
27240 }
27241 _ACEOF
27242 rm -f conftest.$ac_objext
27243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27244   (eval $ac_compile) 2>conftest.er1
27245   ac_status=$?
27246   grep -v '^ *+' conftest.er1 >conftest.err
27247   rm -f conftest.er1
27248   cat conftest.err >&5
27249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250   (exit $ac_status); } &&
27251          { ac_try='test -z "$ac_c_werror_flag"
27252                          || test ! -s conftest.err'
27253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27254   (eval $ac_try) 2>&5
27255   ac_status=$?
27256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257   (exit $ac_status); }; } &&
27258          { ac_try='test -s conftest.$ac_objext'
27259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260   (eval $ac_try) 2>&5
27261   ac_status=$?
27262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263   (exit $ac_status); }; }; then
27264   ol_cv_func_gethostbyaddr_r_nargs8=yes
27265 else
27266   echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27268
27269 ol_cv_func_gethostbyaddr_r_nargs8=no
27270 fi
27271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27272
27273         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27274            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27275
27276                 ol_cv_func_gethostbyaddr_r_nargs=7
27277
27278         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27279              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27280
27281                 ol_cv_func_gethostbyaddr_r_nargs=8
27282
27283         else
27284                 ol_cv_func_gethostbyaddr_r_nargs=0
27285         fi
27286
27287 fi
27288 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27289 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27290   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27291
27292 cat >>confdefs.h <<_ACEOF
27293 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27294 _ACEOF
27295
27296   fi
27297
27298 else
27299         ol_cv_func_gethostbyaddr_r_nargs=0
27300 fi
27301
27302 ol_link_bdb=no
27303
27304 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27305         ol_cv_berkeley_db=no
27306
27307 for ac_header in db.h
27308 do
27309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27311   echo "$as_me:$LINENO: checking for $ac_header" >&5
27312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27314   echo $ECHO_N "(cached) $ECHO_C" >&6
27315 fi
27316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27318 else
27319   # Is the header compilable?
27320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27322 cat >conftest.$ac_ext <<_ACEOF
27323 /* confdefs.h.  */
27324 _ACEOF
27325 cat confdefs.h >>conftest.$ac_ext
27326 cat >>conftest.$ac_ext <<_ACEOF
27327 /* end confdefs.h.  */
27328 $ac_includes_default
27329 #include <$ac_header>
27330 _ACEOF
27331 rm -f conftest.$ac_objext
27332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27333   (eval $ac_compile) 2>conftest.er1
27334   ac_status=$?
27335   grep -v '^ *+' conftest.er1 >conftest.err
27336   rm -f conftest.er1
27337   cat conftest.err >&5
27338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339   (exit $ac_status); } &&
27340          { ac_try='test -z "$ac_c_werror_flag"
27341                          || test ! -s conftest.err'
27342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27343   (eval $ac_try) 2>&5
27344   ac_status=$?
27345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346   (exit $ac_status); }; } &&
27347          { ac_try='test -s conftest.$ac_objext'
27348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27349   (eval $ac_try) 2>&5
27350   ac_status=$?
27351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352   (exit $ac_status); }; }; then
27353   ac_header_compiler=yes
27354 else
27355   echo "$as_me: failed program was:" >&5
27356 sed 's/^/| /' conftest.$ac_ext >&5
27357
27358 ac_header_compiler=no
27359 fi
27360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27362 echo "${ECHO_T}$ac_header_compiler" >&6
27363
27364 # Is the header present?
27365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27367 cat >conftest.$ac_ext <<_ACEOF
27368 /* confdefs.h.  */
27369 _ACEOF
27370 cat confdefs.h >>conftest.$ac_ext
27371 cat >>conftest.$ac_ext <<_ACEOF
27372 /* end confdefs.h.  */
27373 #include <$ac_header>
27374 _ACEOF
27375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27376   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27377   ac_status=$?
27378   grep -v '^ *+' conftest.er1 >conftest.err
27379   rm -f conftest.er1
27380   cat conftest.err >&5
27381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382   (exit $ac_status); } >/dev/null; then
27383   if test -s conftest.err; then
27384     ac_cpp_err=$ac_c_preproc_warn_flag
27385     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27386   else
27387     ac_cpp_err=
27388   fi
27389 else
27390   ac_cpp_err=yes
27391 fi
27392 if test -z "$ac_cpp_err"; then
27393   ac_header_preproc=yes
27394 else
27395   echo "$as_me: failed program was:" >&5
27396 sed 's/^/| /' conftest.$ac_ext >&5
27397
27398   ac_header_preproc=no
27399 fi
27400 rm -f conftest.err conftest.$ac_ext
27401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27402 echo "${ECHO_T}$ac_header_preproc" >&6
27403
27404 # So?  What about this header?
27405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27406   yes:no: )
27407     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27411     ac_header_preproc=yes
27412     ;;
27413   no:yes:* )
27414     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27416     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27417 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27418     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27420     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27421 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27424     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27426     (
27427       cat <<\_ASBOX
27428 ## --------------------------------------------- ##
27429 ## Report this to <http://www.openldap.org/its/> ##
27430 ## --------------------------------------------- ##
27431 _ASBOX
27432     ) |
27433       sed "s/^/$as_me: WARNING:     /" >&2
27434     ;;
27435 esac
27436 echo "$as_me:$LINENO: checking for $ac_header" >&5
27437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27439   echo $ECHO_N "(cached) $ECHO_C" >&6
27440 else
27441   eval "$as_ac_Header=\$ac_header_preproc"
27442 fi
27443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27445
27446 fi
27447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27448   cat >>confdefs.h <<_ACEOF
27449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27450 _ACEOF
27451
27452 fi
27453
27454 done
27455
27456 if test $ac_cv_header_db_h = yes; then
27457         echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
27458 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6
27459 if test "${ol_cv_bdb_major+set}" = set; then
27460   echo $ECHO_N "(cached) $ECHO_C" >&6
27461 else
27462
27463         cat >conftest.$ac_ext <<_ACEOF
27464
27465 #include <db.h>
27466 #ifndef DB_VERSION_MAJOR
27467 #       define DB_VERSION_MAJOR 1
27468 #endif
27469 __db_version DB_VERSION_MAJOR
27470
27471 _ACEOF
27472         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
27473         ol_cv_bdb_major=${3}
27474
27475 fi
27476 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27477 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27478 case $ol_cv_bdb_major in [1-9]*) : ;; *)
27479         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
27480 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
27481    { (exit 1); exit 1; }; } ;;
27482 esac
27483
27484 echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
27485 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6
27486 if test "${ol_cv_bdb_minor+set}" = set; then
27487   echo $ECHO_N "(cached) $ECHO_C" >&6
27488 else
27489
27490         cat >conftest.$ac_ext <<_ACEOF
27491
27492 #include <db.h>
27493 #ifndef DB_VERSION_MINOR
27494 #       define DB_VERSION_MINOR 0
27495 #endif
27496 __db_version DB_VERSION_MINOR
27497
27498 _ACEOF
27499         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
27500         ol_cv_bdb_minor=${3}
27501
27502 fi
27503 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
27504 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
27505 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
27506         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
27507 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
27508    { (exit 1); exit 1; }; } ;;
27509 esac
27510
27511         echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
27512 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6
27513 if test "${ol_cv_bdb_compat+set}" = set; then
27514   echo $ECHO_N "(cached) $ECHO_C" >&6
27515 else
27516
27517         cat >conftest.$ac_ext <<_ACEOF
27518 /* confdefs.h.  */
27519 _ACEOF
27520 cat confdefs.h >>conftest.$ac_ext
27521 cat >>conftest.$ac_ext <<_ACEOF
27522 /* end confdefs.h.  */
27523
27524 #include <db.h>
27525
27526  /* this check could be improved */
27527 #ifndef DB_VERSION_MAJOR
27528 #       define DB_VERSION_MAJOR 1
27529 #endif
27530 #ifndef DB_VERSION_MINOR
27531 #       define DB_VERSION_MINOR 0
27532 #endif
27533
27534 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
27535
27536 /* require 4.4 or later */
27537 #if DB_VERSION_MM >= 0x0404
27538         __db_version_compat
27539 #endif
27540
27541 _ACEOF
27542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27543   $EGREP "__db_version_compat" >/dev/null 2>&1; then
27544   ol_cv_bdb_compat=yes
27545 else
27546   ol_cv_bdb_compat=no
27547 fi
27548 rm -f conftest*
27549
27550 fi
27551 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
27552 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
27553
27554
27555         if test $ol_cv_bdb_compat != yes ; then
27556                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
27557 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
27558    { (exit 1); exit 1; }; }
27559         fi
27560
27561         ol_cv_lib_db=no
27562
27563 if test $ol_cv_bdb_major = 4 ; then
27564         if test $ol_cv_lib_db = no ; then
27565         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
27566 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6
27567 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
27568   echo $ECHO_N "(cached) $ECHO_C" >&6
27569 else
27570
27571         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
27572         ol_LIBS=$LIBS
27573         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27574
27575         cat >conftest.$ac_ext <<_ACEOF
27576 /* confdefs.h.  */
27577 _ACEOF
27578 cat confdefs.h >>conftest.$ac_ext
27579 cat >>conftest.$ac_ext <<_ACEOF
27580 /* end confdefs.h.  */
27581
27582 #ifdef HAVE_DB_185_H
27583 # include <db_185.h>
27584 #else
27585 # include <db.h>
27586 #endif
27587
27588 #ifndef DB_VERSION_MAJOR
27589 # define DB_VERSION_MAJOR 1
27590 #endif
27591
27592 #ifndef NULL
27593 #define NULL ((void*)0)
27594 #endif
27595
27596 int
27597 main ()
27598 {
27599
27600 #if DB_VERSION_MAJOR > 2
27601         db_env_create( NULL, 0 );
27602 #elif DB_VERSION_MAJOR > 1
27603         db_appexit( NULL );
27604 #else
27605         (void) dbopen( NULL, 0, 0, 0, NULL);
27606 #endif
27607
27608   ;
27609   return 0;
27610 }
27611 _ACEOF
27612 rm -f conftest.$ac_objext conftest$ac_exeext
27613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27614   (eval $ac_link) 2>conftest.er1
27615   ac_status=$?
27616   grep -v '^ *+' conftest.er1 >conftest.err
27617   rm -f conftest.er1
27618   cat conftest.err >&5
27619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620   (exit $ac_status); } &&
27621          { ac_try='test -z "$ac_c_werror_flag"
27622                          || test ! -s conftest.err'
27623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27624   (eval $ac_try) 2>&5
27625   ac_status=$?
27626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627   (exit $ac_status); }; } &&
27628          { ac_try='test -s conftest$ac_exeext'
27629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27630   (eval $ac_try) 2>&5
27631   ac_status=$?
27632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633   (exit $ac_status); }; }; then
27634   ol_cv_db_db_4_dot_m=yes
27635 else
27636   echo "$as_me: failed program was:" >&5
27637 sed 's/^/| /' conftest.$ac_ext >&5
27638
27639 ol_cv_db_db_4_dot_m=no
27640 fi
27641 rm -f conftest.err conftest.$ac_objext \
27642       conftest$ac_exeext conftest.$ac_ext
27643
27644         LIBS="$ol_LIBS"
27645
27646 fi
27647 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
27648 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6
27649
27650         if test $ol_cv_db_db_4_dot_m = yes ; then
27651                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
27652         fi
27653 fi
27654
27655         if test $ol_cv_lib_db = no ; then
27656         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
27657 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6
27658 if test "${ol_cv_db_db4m+set}" = set; then
27659   echo $ECHO_N "(cached) $ECHO_C" >&6
27660 else
27661
27662         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
27663         ol_LIBS=$LIBS
27664         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27665
27666         cat >conftest.$ac_ext <<_ACEOF
27667 /* confdefs.h.  */
27668 _ACEOF
27669 cat confdefs.h >>conftest.$ac_ext
27670 cat >>conftest.$ac_ext <<_ACEOF
27671 /* end confdefs.h.  */
27672
27673 #ifdef HAVE_DB_185_H
27674 # include <db_185.h>
27675 #else
27676 # include <db.h>
27677 #endif
27678
27679 #ifndef DB_VERSION_MAJOR
27680 # define DB_VERSION_MAJOR 1
27681 #endif
27682
27683 #ifndef NULL
27684 #define NULL ((void*)0)
27685 #endif
27686
27687 int
27688 main ()
27689 {
27690
27691 #if DB_VERSION_MAJOR > 2
27692         db_env_create( NULL, 0 );
27693 #elif DB_VERSION_MAJOR > 1
27694         db_appexit( NULL );
27695 #else
27696         (void) dbopen( NULL, 0, 0, 0, NULL);
27697 #endif
27698
27699   ;
27700   return 0;
27701 }
27702 _ACEOF
27703 rm -f conftest.$ac_objext conftest$ac_exeext
27704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27705   (eval $ac_link) 2>conftest.er1
27706   ac_status=$?
27707   grep -v '^ *+' conftest.er1 >conftest.err
27708   rm -f conftest.er1
27709   cat conftest.err >&5
27710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711   (exit $ac_status); } &&
27712          { ac_try='test -z "$ac_c_werror_flag"
27713                          || test ! -s conftest.err'
27714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715   (eval $ac_try) 2>&5
27716   ac_status=$?
27717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718   (exit $ac_status); }; } &&
27719          { ac_try='test -s conftest$ac_exeext'
27720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27721   (eval $ac_try) 2>&5
27722   ac_status=$?
27723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724   (exit $ac_status); }; }; then
27725   ol_cv_db_db4m=yes
27726 else
27727   echo "$as_me: failed program was:" >&5
27728 sed 's/^/| /' conftest.$ac_ext >&5
27729
27730 ol_cv_db_db4m=no
27731 fi
27732 rm -f conftest.err conftest.$ac_objext \
27733       conftest$ac_exeext conftest.$ac_ext
27734
27735         LIBS="$ol_LIBS"
27736
27737 fi
27738 echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
27739 echo "${ECHO_T}$ol_cv_db_db4m" >&6
27740
27741         if test $ol_cv_db_db4m = yes ; then
27742                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
27743         fi
27744 fi
27745
27746         if test $ol_cv_lib_db = no ; then
27747         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
27748 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6
27749 if test "${ol_cv_db_db_4m+set}" = set; then
27750   echo $ECHO_N "(cached) $ECHO_C" >&6
27751 else
27752
27753         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
27754         ol_LIBS=$LIBS
27755         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27756
27757         cat >conftest.$ac_ext <<_ACEOF
27758 /* confdefs.h.  */
27759 _ACEOF
27760 cat confdefs.h >>conftest.$ac_ext
27761 cat >>conftest.$ac_ext <<_ACEOF
27762 /* end confdefs.h.  */
27763
27764 #ifdef HAVE_DB_185_H
27765 # include <db_185.h>
27766 #else
27767 # include <db.h>
27768 #endif
27769
27770 #ifndef DB_VERSION_MAJOR
27771 # define DB_VERSION_MAJOR 1
27772 #endif
27773
27774 #ifndef NULL
27775 #define NULL ((void*)0)
27776 #endif
27777
27778 int
27779 main ()
27780 {
27781
27782 #if DB_VERSION_MAJOR > 2
27783         db_env_create( NULL, 0 );
27784 #elif DB_VERSION_MAJOR > 1
27785         db_appexit( NULL );
27786 #else
27787         (void) dbopen( NULL, 0, 0, 0, NULL);
27788 #endif
27789
27790   ;
27791   return 0;
27792 }
27793 _ACEOF
27794 rm -f conftest.$ac_objext conftest$ac_exeext
27795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27796   (eval $ac_link) 2>conftest.er1
27797   ac_status=$?
27798   grep -v '^ *+' conftest.er1 >conftest.err
27799   rm -f conftest.er1
27800   cat conftest.err >&5
27801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802   (exit $ac_status); } &&
27803          { ac_try='test -z "$ac_c_werror_flag"
27804                          || test ! -s conftest.err'
27805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27806   (eval $ac_try) 2>&5
27807   ac_status=$?
27808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809   (exit $ac_status); }; } &&
27810          { ac_try='test -s conftest$ac_exeext'
27811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27812   (eval $ac_try) 2>&5
27813   ac_status=$?
27814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815   (exit $ac_status); }; }; then
27816   ol_cv_db_db_4m=yes
27817 else
27818   echo "$as_me: failed program was:" >&5
27819 sed 's/^/| /' conftest.$ac_ext >&5
27820
27821 ol_cv_db_db_4m=no
27822 fi
27823 rm -f conftest.err conftest.$ac_objext \
27824       conftest$ac_exeext conftest.$ac_ext
27825
27826         LIBS="$ol_LIBS"
27827
27828 fi
27829 echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
27830 echo "${ECHO_T}$ol_cv_db_db_4m" >&6
27831
27832         if test $ol_cv_db_db_4m = yes ; then
27833                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
27834         fi
27835 fi
27836
27837         if test $ol_cv_lib_db = no ; then
27838         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
27839 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6
27840 if test "${ol_cv_db_db_4_m+set}" = set; then
27841   echo $ECHO_N "(cached) $ECHO_C" >&6
27842 else
27843
27844         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
27845         ol_LIBS=$LIBS
27846         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27847
27848         cat >conftest.$ac_ext <<_ACEOF
27849 /* confdefs.h.  */
27850 _ACEOF
27851 cat confdefs.h >>conftest.$ac_ext
27852 cat >>conftest.$ac_ext <<_ACEOF
27853 /* end confdefs.h.  */
27854
27855 #ifdef HAVE_DB_185_H
27856 # include <db_185.h>
27857 #else
27858 # include <db.h>
27859 #endif
27860
27861 #ifndef DB_VERSION_MAJOR
27862 # define DB_VERSION_MAJOR 1
27863 #endif
27864
27865 #ifndef NULL
27866 #define NULL ((void*)0)
27867 #endif
27868
27869 int
27870 main ()
27871 {
27872
27873 #if DB_VERSION_MAJOR > 2
27874         db_env_create( NULL, 0 );
27875 #elif DB_VERSION_MAJOR > 1
27876         db_appexit( NULL );
27877 #else
27878         (void) dbopen( NULL, 0, 0, 0, NULL);
27879 #endif
27880
27881   ;
27882   return 0;
27883 }
27884 _ACEOF
27885 rm -f conftest.$ac_objext conftest$ac_exeext
27886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27887   (eval $ac_link) 2>conftest.er1
27888   ac_status=$?
27889   grep -v '^ *+' conftest.er1 >conftest.err
27890   rm -f conftest.er1
27891   cat conftest.err >&5
27892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893   (exit $ac_status); } &&
27894          { ac_try='test -z "$ac_c_werror_flag"
27895                          || test ! -s conftest.err'
27896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27897   (eval $ac_try) 2>&5
27898   ac_status=$?
27899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900   (exit $ac_status); }; } &&
27901          { ac_try='test -s conftest$ac_exeext'
27902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27903   (eval $ac_try) 2>&5
27904   ac_status=$?
27905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906   (exit $ac_status); }; }; then
27907   ol_cv_db_db_4_m=yes
27908 else
27909   echo "$as_me: failed program was:" >&5
27910 sed 's/^/| /' conftest.$ac_ext >&5
27911
27912 ol_cv_db_db_4_m=no
27913 fi
27914 rm -f conftest.err conftest.$ac_objext \
27915       conftest$ac_exeext conftest.$ac_ext
27916
27917         LIBS="$ol_LIBS"
27918
27919 fi
27920 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
27921 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6
27922
27923         if test $ol_cv_db_db_4_m = yes ; then
27924                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
27925         fi
27926 fi
27927
27928         if test $ol_cv_lib_db = no ; then
27929         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
27930 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
27931 if test "${ol_cv_db_db_4+set}" = set; then
27932   echo $ECHO_N "(cached) $ECHO_C" >&6
27933 else
27934
27935         ol_DB_LIB=-ldb-4
27936         ol_LIBS=$LIBS
27937         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27938
27939         cat >conftest.$ac_ext <<_ACEOF
27940 /* confdefs.h.  */
27941 _ACEOF
27942 cat confdefs.h >>conftest.$ac_ext
27943 cat >>conftest.$ac_ext <<_ACEOF
27944 /* end confdefs.h.  */
27945
27946 #ifdef HAVE_DB_185_H
27947 # include <db_185.h>
27948 #else
27949 # include <db.h>
27950 #endif
27951
27952 #ifndef DB_VERSION_MAJOR
27953 # define DB_VERSION_MAJOR 1
27954 #endif
27955
27956 #ifndef NULL
27957 #define NULL ((void*)0)
27958 #endif
27959
27960 int
27961 main ()
27962 {
27963
27964 #if DB_VERSION_MAJOR > 2
27965         db_env_create( NULL, 0 );
27966 #elif DB_VERSION_MAJOR > 1
27967         db_appexit( NULL );
27968 #else
27969         (void) dbopen( NULL, 0, 0, 0, NULL);
27970 #endif
27971
27972   ;
27973   return 0;
27974 }
27975 _ACEOF
27976 rm -f conftest.$ac_objext conftest$ac_exeext
27977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27978   (eval $ac_link) 2>conftest.er1
27979   ac_status=$?
27980   grep -v '^ *+' conftest.er1 >conftest.err
27981   rm -f conftest.er1
27982   cat conftest.err >&5
27983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984   (exit $ac_status); } &&
27985          { ac_try='test -z "$ac_c_werror_flag"
27986                          || test ! -s conftest.err'
27987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27988   (eval $ac_try) 2>&5
27989   ac_status=$?
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); }; } &&
27992          { ac_try='test -s conftest$ac_exeext'
27993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994   (eval $ac_try) 2>&5
27995   ac_status=$?
27996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997   (exit $ac_status); }; }; then
27998   ol_cv_db_db_4=yes
27999 else
28000   echo "$as_me: failed program was:" >&5
28001 sed 's/^/| /' conftest.$ac_ext >&5
28002
28003 ol_cv_db_db_4=no
28004 fi
28005 rm -f conftest.err conftest.$ac_objext \
28006       conftest$ac_exeext conftest.$ac_ext
28007
28008         LIBS="$ol_LIBS"
28009
28010 fi
28011 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28012 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28013
28014         if test $ol_cv_db_db_4 = yes ; then
28015                 ol_cv_lib_db=-ldb-4
28016         fi
28017 fi
28018
28019         if test $ol_cv_lib_db = no ; then
28020         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28021 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28022 if test "${ol_cv_db_db4+set}" = set; then
28023   echo $ECHO_N "(cached) $ECHO_C" >&6
28024 else
28025
28026         ol_DB_LIB=-ldb4
28027         ol_LIBS=$LIBS
28028         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28029
28030         cat >conftest.$ac_ext <<_ACEOF
28031 /* confdefs.h.  */
28032 _ACEOF
28033 cat confdefs.h >>conftest.$ac_ext
28034 cat >>conftest.$ac_ext <<_ACEOF
28035 /* end confdefs.h.  */
28036
28037 #ifdef HAVE_DB_185_H
28038 # include <db_185.h>
28039 #else
28040 # include <db.h>
28041 #endif
28042
28043 #ifndef DB_VERSION_MAJOR
28044 # define DB_VERSION_MAJOR 1
28045 #endif
28046
28047 #ifndef NULL
28048 #define NULL ((void*)0)
28049 #endif
28050
28051 int
28052 main ()
28053 {
28054
28055 #if DB_VERSION_MAJOR > 2
28056         db_env_create( NULL, 0 );
28057 #elif DB_VERSION_MAJOR > 1
28058         db_appexit( NULL );
28059 #else
28060         (void) dbopen( NULL, 0, 0, 0, NULL);
28061 #endif
28062
28063   ;
28064   return 0;
28065 }
28066 _ACEOF
28067 rm -f conftest.$ac_objext conftest$ac_exeext
28068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28069   (eval $ac_link) 2>conftest.er1
28070   ac_status=$?
28071   grep -v '^ *+' conftest.er1 >conftest.err
28072   rm -f conftest.er1
28073   cat conftest.err >&5
28074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075   (exit $ac_status); } &&
28076          { ac_try='test -z "$ac_c_werror_flag"
28077                          || test ! -s conftest.err'
28078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28079   (eval $ac_try) 2>&5
28080   ac_status=$?
28081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082   (exit $ac_status); }; } &&
28083          { ac_try='test -s conftest$ac_exeext'
28084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28085   (eval $ac_try) 2>&5
28086   ac_status=$?
28087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088   (exit $ac_status); }; }; then
28089   ol_cv_db_db4=yes
28090 else
28091   echo "$as_me: failed program was:" >&5
28092 sed 's/^/| /' conftest.$ac_ext >&5
28093
28094 ol_cv_db_db4=no
28095 fi
28096 rm -f conftest.err conftest.$ac_objext \
28097       conftest$ac_exeext conftest.$ac_ext
28098
28099         LIBS="$ol_LIBS"
28100
28101 fi
28102 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28103 echo "${ECHO_T}$ol_cv_db_db4" >&6
28104
28105         if test $ol_cv_db_db4 = yes ; then
28106                 ol_cv_lib_db=-ldb4
28107         fi
28108 fi
28109
28110         if test $ol_cv_lib_db = no ; then
28111         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28112 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
28113 if test "${ol_cv_db_db+set}" = set; then
28114   echo $ECHO_N "(cached) $ECHO_C" >&6
28115 else
28116
28117         ol_DB_LIB=-ldb
28118         ol_LIBS=$LIBS
28119         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28120
28121         cat >conftest.$ac_ext <<_ACEOF
28122 /* confdefs.h.  */
28123 _ACEOF
28124 cat confdefs.h >>conftest.$ac_ext
28125 cat >>conftest.$ac_ext <<_ACEOF
28126 /* end confdefs.h.  */
28127
28128 #ifdef HAVE_DB_185_H
28129 # include <db_185.h>
28130 #else
28131 # include <db.h>
28132 #endif
28133
28134 #ifndef DB_VERSION_MAJOR
28135 # define DB_VERSION_MAJOR 1
28136 #endif
28137
28138 #ifndef NULL
28139 #define NULL ((void*)0)
28140 #endif
28141
28142 int
28143 main ()
28144 {
28145
28146 #if DB_VERSION_MAJOR > 2
28147         db_env_create( NULL, 0 );
28148 #elif DB_VERSION_MAJOR > 1
28149         db_appexit( NULL );
28150 #else
28151         (void) dbopen( NULL, 0, 0, 0, NULL);
28152 #endif
28153
28154   ;
28155   return 0;
28156 }
28157 _ACEOF
28158 rm -f conftest.$ac_objext conftest$ac_exeext
28159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28160   (eval $ac_link) 2>conftest.er1
28161   ac_status=$?
28162   grep -v '^ *+' conftest.er1 >conftest.err
28163   rm -f conftest.er1
28164   cat conftest.err >&5
28165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166   (exit $ac_status); } &&
28167          { ac_try='test -z "$ac_c_werror_flag"
28168                          || test ! -s conftest.err'
28169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28170   (eval $ac_try) 2>&5
28171   ac_status=$?
28172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28173   (exit $ac_status); }; } &&
28174          { ac_try='test -s conftest$ac_exeext'
28175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28176   (eval $ac_try) 2>&5
28177   ac_status=$?
28178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179   (exit $ac_status); }; }; then
28180   ol_cv_db_db=yes
28181 else
28182   echo "$as_me: failed program was:" >&5
28183 sed 's/^/| /' conftest.$ac_ext >&5
28184
28185 ol_cv_db_db=no
28186 fi
28187 rm -f conftest.err conftest.$ac_objext \
28188       conftest$ac_exeext conftest.$ac_ext
28189
28190         LIBS="$ol_LIBS"
28191
28192 fi
28193 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28194 echo "${ECHO_T}$ol_cv_db_db" >&6
28195
28196         if test $ol_cv_db_db = yes ; then
28197                 ol_cv_lib_db=-ldb
28198         fi
28199 fi
28200
28201 fi
28202 if test $ol_cv_lib_db = no ; then
28203         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28204 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
28205 if test "${ol_cv_db_none+set}" = set; then
28206   echo $ECHO_N "(cached) $ECHO_C" >&6
28207 else
28208
28209         ol_DB_LIB=
28210         ol_LIBS=$LIBS
28211         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28212
28213         cat >conftest.$ac_ext <<_ACEOF
28214 /* confdefs.h.  */
28215 _ACEOF
28216 cat confdefs.h >>conftest.$ac_ext
28217 cat >>conftest.$ac_ext <<_ACEOF
28218 /* end confdefs.h.  */
28219
28220 #ifdef HAVE_DB_185_H
28221 # include <db_185.h>
28222 #else
28223 # include <db.h>
28224 #endif
28225
28226 #ifndef DB_VERSION_MAJOR
28227 # define DB_VERSION_MAJOR 1
28228 #endif
28229
28230 #ifndef NULL
28231 #define NULL ((void*)0)
28232 #endif
28233
28234 int
28235 main ()
28236 {
28237
28238 #if DB_VERSION_MAJOR > 2
28239         db_env_create( NULL, 0 );
28240 #elif DB_VERSION_MAJOR > 1
28241         db_appexit( NULL );
28242 #else
28243         (void) dbopen( NULL, 0, 0, 0, NULL);
28244 #endif
28245
28246   ;
28247   return 0;
28248 }
28249 _ACEOF
28250 rm -f conftest.$ac_objext conftest$ac_exeext
28251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28252   (eval $ac_link) 2>conftest.er1
28253   ac_status=$?
28254   grep -v '^ *+' conftest.er1 >conftest.err
28255   rm -f conftest.er1
28256   cat conftest.err >&5
28257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258   (exit $ac_status); } &&
28259          { ac_try='test -z "$ac_c_werror_flag"
28260                          || test ! -s conftest.err'
28261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28262   (eval $ac_try) 2>&5
28263   ac_status=$?
28264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265   (exit $ac_status); }; } &&
28266          { ac_try='test -s conftest$ac_exeext'
28267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28268   (eval $ac_try) 2>&5
28269   ac_status=$?
28270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271   (exit $ac_status); }; }; then
28272   ol_cv_db_none=yes
28273 else
28274   echo "$as_me: failed program was:" >&5
28275 sed 's/^/| /' conftest.$ac_ext >&5
28276
28277 ol_cv_db_none=no
28278 fi
28279 rm -f conftest.err conftest.$ac_objext \
28280       conftest$ac_exeext conftest.$ac_ext
28281
28282         LIBS="$ol_LIBS"
28283
28284 fi
28285 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28286 echo "${ECHO_T}$ol_cv_db_none" >&6
28287
28288         if test $ol_cv_db_none = yes ; then
28289                 ol_cv_lib_db=yes
28290         fi
28291 fi
28292
28293
28294         if test "$ol_cv_lib_db" != no ; then
28295                 ol_cv_berkeley_db=yes
28296                 echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
28297 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6
28298 if test "${ol_cv_berkeley_db_version+set}" = set; then
28299   echo $ECHO_N "(cached) $ECHO_C" >&6
28300 else
28301
28302         ol_LIBS="$LIBS"
28303         LIBS="$LTHREAD_LIBS $LIBS"
28304         if test $ol_cv_lib_db != yes ; then
28305                 LIBS="$ol_cv_lib_db $LIBS"
28306         fi
28307
28308         if test "$cross_compiling" = yes; then
28309   ol_cv_berkeley_db_version=cross
28310 else
28311   cat >conftest.$ac_ext <<_ACEOF
28312 /* confdefs.h.  */
28313 _ACEOF
28314 cat confdefs.h >>conftest.$ac_ext
28315 cat >>conftest.$ac_ext <<_ACEOF
28316 /* end confdefs.h.  */
28317
28318 #ifdef HAVE_DB_185_H
28319         choke me;
28320 #else
28321 #include <db.h>
28322 #endif
28323 #ifndef DB_VERSION_MAJOR
28324 # define DB_VERSION_MAJOR 1
28325 #endif
28326 #ifndef NULL
28327 #define NULL ((void *)0)
28328 #endif
28329 main()
28330 {
28331 #if DB_VERSION_MAJOR > 1
28332         char *version;
28333         int major, minor, patch;
28334
28335         version = db_version( &major, &minor, &patch );
28336
28337         if( major != DB_VERSION_MAJOR ||
28338                 minor != DB_VERSION_MINOR ||
28339                 patch != DB_VERSION_PATCH )
28340         {
28341                 printf("Berkeley DB version mismatch\n"
28342                         "\theader: %s\n\tlibrary: %s\n",
28343                         DB_VERSION_STRING, version);
28344                 return 1;
28345         }
28346 #endif
28347
28348         return 0;
28349 }
28350 _ACEOF
28351 rm -f conftest$ac_exeext
28352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28353   (eval $ac_link) 2>&5
28354   ac_status=$?
28355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28358   (eval $ac_try) 2>&5
28359   ac_status=$?
28360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361   (exit $ac_status); }; }; then
28362   ol_cv_berkeley_db_version=yes
28363 else
28364   echo "$as_me: program exited with status $ac_status" >&5
28365 echo "$as_me: failed program was:" >&5
28366 sed 's/^/| /' conftest.$ac_ext >&5
28367
28368 ( exit $ac_status )
28369 ol_cv_berkeley_db_version=no
28370 fi
28371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28372 fi
28373
28374         LIBS="$ol_LIBS"
28375
28376 fi
28377 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
28378 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
28379
28380         if test $ol_cv_berkeley_db_version = no ; then
28381                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
28382 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
28383    { (exit 1); exit 1; }; }
28384         fi
28385
28386                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
28387 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
28388 if test "${ol_cv_berkeley_db_thread+set}" = set; then
28389   echo $ECHO_N "(cached) $ECHO_C" >&6
28390 else
28391
28392         ol_LIBS="$LIBS"
28393         LIBS="$LTHREAD_LIBS $LIBS"
28394         if test $ol_cv_lib_db != yes ; then
28395                 LIBS="$ol_cv_lib_db $LIBS"
28396         fi
28397
28398         if test "$cross_compiling" = yes; then
28399   ol_cv_berkeley_db_thread=cross
28400 else
28401   cat >conftest.$ac_ext <<_ACEOF
28402 /* confdefs.h.  */
28403 _ACEOF
28404 cat confdefs.h >>conftest.$ac_ext
28405 cat >>conftest.$ac_ext <<_ACEOF
28406 /* end confdefs.h.  */
28407
28408 #ifdef HAVE_DB_185_H
28409         choke me;
28410 #else
28411 #include <db.h>
28412 #endif
28413 #ifndef NULL
28414 #define NULL ((void *)0)
28415 #endif
28416 main()
28417 {
28418         int rc;
28419         u_int32_t flags = DB_CREATE |
28420 #ifdef DB_PRIVATE
28421                 DB_PRIVATE |
28422 #endif
28423                 DB_THREAD;
28424
28425 #if DB_VERSION_MAJOR > 2
28426         DB_ENV *env = NULL;
28427
28428         rc = db_env_create( &env, 0 );
28429
28430         flags |= DB_INIT_MPOOL;
28431 #ifdef DB_MPOOL_PRIVATE
28432         flags |= DB_MPOOL_PRIVATE;
28433 #endif
28434
28435         if( rc ) {
28436                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
28437                 return rc;
28438         }
28439
28440 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
28441         rc = (env->open)( env, NULL, flags, 0 );
28442 #else
28443         rc = (env->open)( env, NULL, NULL, flags, 0 );
28444 #endif
28445
28446         if ( rc == 0 ) {
28447                 rc = env->close( env, 0 );
28448         }
28449
28450         if( rc ) {
28451                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
28452                 return rc;
28453         }
28454
28455 #else
28456         DB_ENV env;
28457         memset( &env, '\0', sizeof(env) );
28458
28459         rc = db_appinit( NULL, NULL, &env, flags );
28460
28461         if( rc == 0 ) {
28462                 db_appexit( &env );
28463         }
28464
28465         unlink("__db_mpool.share");
28466         unlink("__db_lock.share");
28467 #endif
28468
28469         return rc;
28470 }
28471 _ACEOF
28472 rm -f conftest$ac_exeext
28473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28474   (eval $ac_link) 2>&5
28475   ac_status=$?
28476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28479   (eval $ac_try) 2>&5
28480   ac_status=$?
28481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482   (exit $ac_status); }; }; then
28483   ol_cv_berkeley_db_thread=yes
28484 else
28485   echo "$as_me: program exited with status $ac_status" >&5
28486 echo "$as_me: failed program was:" >&5
28487 sed 's/^/| /' conftest.$ac_ext >&5
28488
28489 ( exit $ac_status )
28490 ol_cv_berkeley_db_thread=no
28491 fi
28492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28493 fi
28494
28495         LIBS="$ol_LIBS"
28496
28497 fi
28498 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
28499 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
28500
28501         if test $ol_cv_berkeley_db_thread != no ; then
28502
28503 cat >>confdefs.h <<\_ACEOF
28504 #define HAVE_BERKELEY_DB_THREAD 1
28505 _ACEOF
28506
28507         fi
28508
28509         fi
28510 fi
28511
28512
28513         if test $ol_cv_berkeley_db = no ; then
28514                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
28515 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
28516    { (exit 1); exit 1; }; }
28517         fi
28518
28519
28520 cat >>confdefs.h <<\_ACEOF
28521 #define HAVE_BERKELEY_DB 1
28522 _ACEOF
28523
28524
28525                         if test $ol_cv_lib_db != yes ; then
28526                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
28527         fi
28528
28529         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
28530
28531         ol_link_bdb=yes
28532 fi
28533
28534
28535 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
28536         BUILD_LIBS_DYNAMIC=shared
28537
28538 cat >>confdefs.h <<\_ACEOF
28539 #define LDAP_LIBS_DYNAMIC 1
28540 _ACEOF
28541
28542         LTSTATIC=""
28543 else
28544         BUILD_LIBS_DYNAMIC=static
28545         LTSTATIC="-static"
28546 fi
28547
28548 if test $ol_enable_wrappers != no ; then
28549
28550 for ac_header in tcpd.h
28551 do
28552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28554   echo "$as_me:$LINENO: checking for $ac_header" >&5
28555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28557   echo $ECHO_N "(cached) $ECHO_C" >&6
28558 fi
28559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28561 else
28562   # Is the header compilable?
28563 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28565 cat >conftest.$ac_ext <<_ACEOF
28566 /* confdefs.h.  */
28567 _ACEOF
28568 cat confdefs.h >>conftest.$ac_ext
28569 cat >>conftest.$ac_ext <<_ACEOF
28570 /* end confdefs.h.  */
28571 $ac_includes_default
28572 #include <$ac_header>
28573 _ACEOF
28574 rm -f conftest.$ac_objext
28575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28576   (eval $ac_compile) 2>conftest.er1
28577   ac_status=$?
28578   grep -v '^ *+' conftest.er1 >conftest.err
28579   rm -f conftest.er1
28580   cat conftest.err >&5
28581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582   (exit $ac_status); } &&
28583          { ac_try='test -z "$ac_c_werror_flag"
28584                          || test ! -s conftest.err'
28585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28586   (eval $ac_try) 2>&5
28587   ac_status=$?
28588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589   (exit $ac_status); }; } &&
28590          { ac_try='test -s conftest.$ac_objext'
28591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28592   (eval $ac_try) 2>&5
28593   ac_status=$?
28594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595   (exit $ac_status); }; }; then
28596   ac_header_compiler=yes
28597 else
28598   echo "$as_me: failed program was:" >&5
28599 sed 's/^/| /' conftest.$ac_ext >&5
28600
28601 ac_header_compiler=no
28602 fi
28603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28605 echo "${ECHO_T}$ac_header_compiler" >&6
28606
28607 # Is the header present?
28608 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28610 cat >conftest.$ac_ext <<_ACEOF
28611 /* confdefs.h.  */
28612 _ACEOF
28613 cat confdefs.h >>conftest.$ac_ext
28614 cat >>conftest.$ac_ext <<_ACEOF
28615 /* end confdefs.h.  */
28616 #include <$ac_header>
28617 _ACEOF
28618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28619   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28620   ac_status=$?
28621   grep -v '^ *+' conftest.er1 >conftest.err
28622   rm -f conftest.er1
28623   cat conftest.err >&5
28624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625   (exit $ac_status); } >/dev/null; then
28626   if test -s conftest.err; then
28627     ac_cpp_err=$ac_c_preproc_warn_flag
28628     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28629   else
28630     ac_cpp_err=
28631   fi
28632 else
28633   ac_cpp_err=yes
28634 fi
28635 if test -z "$ac_cpp_err"; then
28636   ac_header_preproc=yes
28637 else
28638   echo "$as_me: failed program was:" >&5
28639 sed 's/^/| /' conftest.$ac_ext >&5
28640
28641   ac_header_preproc=no
28642 fi
28643 rm -f conftest.err conftest.$ac_ext
28644 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28645 echo "${ECHO_T}$ac_header_preproc" >&6
28646
28647 # So?  What about this header?
28648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28649   yes:no: )
28650     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28654     ac_header_preproc=yes
28655     ;;
28656   no:yes:* )
28657     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28659     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28660 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28661     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28663     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28664 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28667     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28669     (
28670       cat <<\_ASBOX
28671 ## --------------------------------------------- ##
28672 ## Report this to <http://www.openldap.org/its/> ##
28673 ## --------------------------------------------- ##
28674 _ASBOX
28675     ) |
28676       sed "s/^/$as_me: WARNING:     /" >&2
28677     ;;
28678 esac
28679 echo "$as_me:$LINENO: checking for $ac_header" >&5
28680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28682   echo $ECHO_N "(cached) $ECHO_C" >&6
28683 else
28684   eval "$as_ac_Header=\$ac_header_preproc"
28685 fi
28686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28688
28689 fi
28690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28691   cat >>confdefs.h <<_ACEOF
28692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28693 _ACEOF
28694
28695                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
28696 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
28697                 save_LIBS="$LIBS"
28698                 LIBS="$LIBS -lwrap"
28699                 cat >conftest.$ac_ext <<_ACEOF
28700 /* confdefs.h.  */
28701 _ACEOF
28702 cat confdefs.h >>conftest.$ac_ext
28703 cat >>conftest.$ac_ext <<_ACEOF
28704 /* end confdefs.h.  */
28705
28706 #include <tcpd.h>
28707 int allow_severity = 0;
28708 int deny_severity  = 0;
28709
28710 struct request_info *req;
28711
28712 int
28713 main ()
28714 {
28715
28716 hosts_access(req)
28717
28718   ;
28719   return 0;
28720 }
28721 _ACEOF
28722 rm -f conftest.$ac_objext conftest$ac_exeext
28723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28724   (eval $ac_link) 2>conftest.er1
28725   ac_status=$?
28726   grep -v '^ *+' conftest.er1 >conftest.err
28727   rm -f conftest.er1
28728   cat conftest.err >&5
28729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730   (exit $ac_status); } &&
28731          { ac_try='test -z "$ac_c_werror_flag"
28732                          || test ! -s conftest.err'
28733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28734   (eval $ac_try) 2>&5
28735   ac_status=$?
28736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737   (exit $ac_status); }; } &&
28738          { ac_try='test -s conftest$ac_exeext'
28739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28740   (eval $ac_try) 2>&5
28741   ac_status=$?
28742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743   (exit $ac_status); }; }; then
28744   echo "$as_me:$LINENO: result: -lwrap" >&5
28745 echo "${ECHO_T}-lwrap" >&6
28746                 have_wrappers=yes
28747                 LIBS="$save_LIBS"
28748 else
28749   echo "$as_me: failed program was:" >&5
28750 sed 's/^/| /' conftest.$ac_ext >&5
28751
28752
28753                                 LIBS="$LIBS -lnsl"
28754                 cat >conftest.$ac_ext <<_ACEOF
28755 /* confdefs.h.  */
28756 _ACEOF
28757 cat confdefs.h >>conftest.$ac_ext
28758 cat >>conftest.$ac_ext <<_ACEOF
28759 /* end confdefs.h.  */
28760
28761 #include <tcpd.h>
28762 int allow_severity = 0;
28763 int deny_severity  = 0;
28764
28765 struct request_info *req;
28766
28767 int
28768 main ()
28769 {
28770
28771 hosts_access(req)
28772
28773   ;
28774   return 0;
28775 }
28776 _ACEOF
28777 rm -f conftest.$ac_objext conftest$ac_exeext
28778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28779   (eval $ac_link) 2>conftest.er1
28780   ac_status=$?
28781   grep -v '^ *+' conftest.er1 >conftest.err
28782   rm -f conftest.er1
28783   cat conftest.err >&5
28784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785   (exit $ac_status); } &&
28786          { ac_try='test -z "$ac_c_werror_flag"
28787                          || test ! -s conftest.err'
28788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28789   (eval $ac_try) 2>&5
28790   ac_status=$?
28791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792   (exit $ac_status); }; } &&
28793          { ac_try='test -s conftest$ac_exeext'
28794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28795   (eval $ac_try) 2>&5
28796   ac_status=$?
28797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28798   (exit $ac_status); }; }; then
28799   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
28800 echo "${ECHO_T}-lwrap -lnsl" >&6
28801                 have_wrappers=yes
28802                 LIBS="$save_LIBS -lnsl"
28803 else
28804   echo "$as_me: failed program was:" >&5
28805 sed 's/^/| /' conftest.$ac_ext >&5
28806
28807
28808                 echo "$as_me:$LINENO: result: no" >&5
28809 echo "${ECHO_T}no" >&6
28810                 have_wrappers=no
28811                 LIBS=$save_LIBS
28812 fi
28813 rm -f conftest.err conftest.$ac_objext \
28814       conftest$ac_exeext conftest.$ac_ext
28815 fi
28816 rm -f conftest.err conftest.$ac_objext \
28817       conftest$ac_exeext conftest.$ac_ext
28818 else
28819   have_wrappers=no
28820 fi
28821
28822 done
28823
28824
28825         if test $have_wrappers = yes ; then
28826
28827 cat >>confdefs.h <<\_ACEOF
28828 #define HAVE_TCPD 1
28829 _ACEOF
28830
28831                 WRAP_LIBS="-lwrap"
28832         elif test $ol_enable_wrappers = yes ; then
28833                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
28834 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
28835    { (exit 1); exit 1; }; }
28836         else
28837                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
28838 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
28839                 WRAP_LIBS=""
28840         fi
28841 fi
28842
28843 if test $ol_enable_syslog != no ; then
28844         echo "$as_me:$LINENO: checking for openlog" >&5
28845 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
28846 if test "${ac_cv_func_openlog+set}" = set; then
28847   echo $ECHO_N "(cached) $ECHO_C" >&6
28848 else
28849   cat >conftest.$ac_ext <<_ACEOF
28850 /* confdefs.h.  */
28851 _ACEOF
28852 cat confdefs.h >>conftest.$ac_ext
28853 cat >>conftest.$ac_ext <<_ACEOF
28854 /* end confdefs.h.  */
28855 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
28856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28857 #define openlog innocuous_openlog
28858
28859 /* System header to define __stub macros and hopefully few prototypes,
28860     which can conflict with char openlog (); below.
28861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28862     <limits.h> exists even on freestanding compilers.  */
28863
28864 #ifdef __STDC__
28865 # include <limits.h>
28866 #else
28867 # include <assert.h>
28868 #endif
28869
28870 #undef openlog
28871
28872 /* Override any gcc2 internal prototype to avoid an error.  */
28873 #ifdef __cplusplus
28874 extern "C"
28875 {
28876 #endif
28877 /* We use char because int might match the return type of a gcc2
28878    builtin and then its argument prototype would still apply.  */
28879 char openlog ();
28880 /* The GNU C library defines this for functions which it implements
28881     to always fail with ENOSYS.  Some functions are actually named
28882     something starting with __ and the normal name is an alias.  */
28883 #if defined (__stub_openlog) || defined (__stub___openlog)
28884 choke me
28885 #else
28886 char (*f) () = openlog;
28887 #endif
28888 #ifdef __cplusplus
28889 }
28890 #endif
28891
28892 int
28893 main ()
28894 {
28895 return f != openlog;
28896   ;
28897   return 0;
28898 }
28899 _ACEOF
28900 rm -f conftest.$ac_objext conftest$ac_exeext
28901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28902   (eval $ac_link) 2>conftest.er1
28903   ac_status=$?
28904   grep -v '^ *+' conftest.er1 >conftest.err
28905   rm -f conftest.er1
28906   cat conftest.err >&5
28907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908   (exit $ac_status); } &&
28909          { ac_try='test -z "$ac_c_werror_flag"
28910                          || test ! -s conftest.err'
28911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28912   (eval $ac_try) 2>&5
28913   ac_status=$?
28914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915   (exit $ac_status); }; } &&
28916          { ac_try='test -s conftest$ac_exeext'
28917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28918   (eval $ac_try) 2>&5
28919   ac_status=$?
28920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921   (exit $ac_status); }; }; then
28922   ac_cv_func_openlog=yes
28923 else
28924   echo "$as_me: failed program was:" >&5
28925 sed 's/^/| /' conftest.$ac_ext >&5
28926
28927 ac_cv_func_openlog=no
28928 fi
28929 rm -f conftest.err conftest.$ac_objext \
28930       conftest$ac_exeext conftest.$ac_ext
28931 fi
28932 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
28933 echo "${ECHO_T}$ac_cv_func_openlog" >&6
28934
28935         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
28936                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
28937 echo "$as_me: error: could not find syslog" >&2;}
28938    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
28939         fi
28940         ol_enable_syslog=$ac_cv_func_openlog
28941 fi
28942
28943 ol_link_sql=no
28944 if test $ol_enable_sql != no ; then
28945
28946
28947 for ac_header in sql.h sqlext.h
28948 do
28949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28951   echo "$as_me:$LINENO: checking for $ac_header" >&5
28952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28954   echo $ECHO_N "(cached) $ECHO_C" >&6
28955 fi
28956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28958 else
28959   # Is the header compilable?
28960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28962 cat >conftest.$ac_ext <<_ACEOF
28963 /* confdefs.h.  */
28964 _ACEOF
28965 cat confdefs.h >>conftest.$ac_ext
28966 cat >>conftest.$ac_ext <<_ACEOF
28967 /* end confdefs.h.  */
28968 $ac_includes_default
28969 #include <$ac_header>
28970 _ACEOF
28971 rm -f conftest.$ac_objext
28972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28973   (eval $ac_compile) 2>conftest.er1
28974   ac_status=$?
28975   grep -v '^ *+' conftest.er1 >conftest.err
28976   rm -f conftest.er1
28977   cat conftest.err >&5
28978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979   (exit $ac_status); } &&
28980          { ac_try='test -z "$ac_c_werror_flag"
28981                          || test ! -s conftest.err'
28982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28983   (eval $ac_try) 2>&5
28984   ac_status=$?
28985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986   (exit $ac_status); }; } &&
28987          { ac_try='test -s conftest.$ac_objext'
28988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28989   (eval $ac_try) 2>&5
28990   ac_status=$?
28991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992   (exit $ac_status); }; }; then
28993   ac_header_compiler=yes
28994 else
28995   echo "$as_me: failed program was:" >&5
28996 sed 's/^/| /' conftest.$ac_ext >&5
28997
28998 ac_header_compiler=no
28999 fi
29000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29002 echo "${ECHO_T}$ac_header_compiler" >&6
29003
29004 # Is the header present?
29005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29007 cat >conftest.$ac_ext <<_ACEOF
29008 /* confdefs.h.  */
29009 _ACEOF
29010 cat confdefs.h >>conftest.$ac_ext
29011 cat >>conftest.$ac_ext <<_ACEOF
29012 /* end confdefs.h.  */
29013 #include <$ac_header>
29014 _ACEOF
29015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29017   ac_status=$?
29018   grep -v '^ *+' conftest.er1 >conftest.err
29019   rm -f conftest.er1
29020   cat conftest.err >&5
29021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022   (exit $ac_status); } >/dev/null; then
29023   if test -s conftest.err; then
29024     ac_cpp_err=$ac_c_preproc_warn_flag
29025     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29026   else
29027     ac_cpp_err=
29028   fi
29029 else
29030   ac_cpp_err=yes
29031 fi
29032 if test -z "$ac_cpp_err"; then
29033   ac_header_preproc=yes
29034 else
29035   echo "$as_me: failed program was:" >&5
29036 sed 's/^/| /' conftest.$ac_ext >&5
29037
29038   ac_header_preproc=no
29039 fi
29040 rm -f conftest.err conftest.$ac_ext
29041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29042 echo "${ECHO_T}$ac_header_preproc" >&6
29043
29044 # So?  What about this header?
29045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29046   yes:no: )
29047     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29051     ac_header_preproc=yes
29052     ;;
29053   no:yes:* )
29054     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29056     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29057 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29058     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29060     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29061 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29064     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29066     (
29067       cat <<\_ASBOX
29068 ## --------------------------------------------- ##
29069 ## Report this to <http://www.openldap.org/its/> ##
29070 ## --------------------------------------------- ##
29071 _ASBOX
29072     ) |
29073       sed "s/^/$as_me: WARNING:     /" >&2
29074     ;;
29075 esac
29076 echo "$as_me:$LINENO: checking for $ac_header" >&5
29077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29079   echo $ECHO_N "(cached) $ECHO_C" >&6
29080 else
29081   eval "$as_ac_Header=\$ac_header_preproc"
29082 fi
29083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29085
29086 fi
29087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29088   cat >>confdefs.h <<_ACEOF
29089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29090 _ACEOF
29091
29092 else
29093
29094                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29095 echo "$as_me: error: could not locate SQL headers" >&2;}
29096    { (exit 1); exit 1; }; }
29097
29098 fi
29099
29100 done
29101
29102
29103         sql_LIBS="$LIBS"
29104         LIBS="$LTHREAD_LIBS"
29105
29106         if test $ol_with_odbc = auto ; then
29107                 ol_with_odbc="iodbc unixodbc odbc32"
29108         fi
29109
29110         for odbc in $ol_with_odbc ; do
29111                 if test $ol_link_sql = no ; then
29112                         case $odbc in
29113                         iodbc)
29114                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29115 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
29116 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29117   echo $ECHO_N "(cached) $ECHO_C" >&6
29118 else
29119   ac_check_lib_save_LIBS=$LIBS
29120 LIBS="-liodbc  $LIBS"
29121 cat >conftest.$ac_ext <<_ACEOF
29122 /* confdefs.h.  */
29123 _ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h.  */
29127
29128 /* Override any gcc2 internal prototype to avoid an error.  */
29129 #ifdef __cplusplus
29130 extern "C"
29131 #endif
29132 /* We use char because int might match the return type of a gcc2
29133    builtin and then its argument prototype would still apply.  */
29134 char SQLDriverConnect ();
29135 int
29136 main ()
29137 {
29138 SQLDriverConnect ();
29139   ;
29140   return 0;
29141 }
29142 _ACEOF
29143 rm -f conftest.$ac_objext conftest$ac_exeext
29144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29145   (eval $ac_link) 2>conftest.er1
29146   ac_status=$?
29147   grep -v '^ *+' conftest.er1 >conftest.err
29148   rm -f conftest.er1
29149   cat conftest.err >&5
29150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151   (exit $ac_status); } &&
29152          { ac_try='test -z "$ac_c_werror_flag"
29153                          || test ! -s conftest.err'
29154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155   (eval $ac_try) 2>&5
29156   ac_status=$?
29157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158   (exit $ac_status); }; } &&
29159          { ac_try='test -s conftest$ac_exeext'
29160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29161   (eval $ac_try) 2>&5
29162   ac_status=$?
29163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164   (exit $ac_status); }; }; then
29165   ac_cv_lib_iodbc_SQLDriverConnect=yes
29166 else
29167   echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29169
29170 ac_cv_lib_iodbc_SQLDriverConnect=no
29171 fi
29172 rm -f conftest.err conftest.$ac_objext \
29173       conftest$ac_exeext conftest.$ac_ext
29174 LIBS=$ac_check_lib_save_LIBS
29175 fi
29176 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29177 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
29178 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29179   have_iodbc=yes
29180 else
29181   have_iodbc=no
29182 fi
29183
29184                                 if test $have_iodbc = yes ; then
29185                                         ol_link_sql="-liodbc"
29186                                 fi
29187                                 ;;
29188
29189                         unixodbc)
29190                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29191 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
29192 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29193   echo $ECHO_N "(cached) $ECHO_C" >&6
29194 else
29195   ac_check_lib_save_LIBS=$LIBS
29196 LIBS="-lodbc  $LIBS"
29197 cat >conftest.$ac_ext <<_ACEOF
29198 /* confdefs.h.  */
29199 _ACEOF
29200 cat confdefs.h >>conftest.$ac_ext
29201 cat >>conftest.$ac_ext <<_ACEOF
29202 /* end confdefs.h.  */
29203
29204 /* Override any gcc2 internal prototype to avoid an error.  */
29205 #ifdef __cplusplus
29206 extern "C"
29207 #endif
29208 /* We use char because int might match the return type of a gcc2
29209    builtin and then its argument prototype would still apply.  */
29210 char SQLDriverConnect ();
29211 int
29212 main ()
29213 {
29214 SQLDriverConnect ();
29215   ;
29216   return 0;
29217 }
29218 _ACEOF
29219 rm -f conftest.$ac_objext conftest$ac_exeext
29220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29221   (eval $ac_link) 2>conftest.er1
29222   ac_status=$?
29223   grep -v '^ *+' conftest.er1 >conftest.err
29224   rm -f conftest.er1
29225   cat conftest.err >&5
29226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227   (exit $ac_status); } &&
29228          { ac_try='test -z "$ac_c_werror_flag"
29229                          || test ! -s conftest.err'
29230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29231   (eval $ac_try) 2>&5
29232   ac_status=$?
29233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234   (exit $ac_status); }; } &&
29235          { ac_try='test -s conftest$ac_exeext'
29236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29237   (eval $ac_try) 2>&5
29238   ac_status=$?
29239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240   (exit $ac_status); }; }; then
29241   ac_cv_lib_odbc_SQLDriverConnect=yes
29242 else
29243   echo "$as_me: failed program was:" >&5
29244 sed 's/^/| /' conftest.$ac_ext >&5
29245
29246 ac_cv_lib_odbc_SQLDriverConnect=no
29247 fi
29248 rm -f conftest.err conftest.$ac_objext \
29249       conftest$ac_exeext conftest.$ac_ext
29250 LIBS=$ac_check_lib_save_LIBS
29251 fi
29252 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
29253 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
29254 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
29255   have_odbc=yes
29256 else
29257   have_odbc=no
29258 fi
29259
29260                                 if test $have_odbc = yes ; then
29261                                         ol_link_sql="-lodbc"
29262                                 fi
29263                                 ;;
29264
29265                         odbc32)
29266                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
29267 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6
29268 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
29269   echo $ECHO_N "(cached) $ECHO_C" >&6
29270 else
29271   ac_check_lib_save_LIBS=$LIBS
29272 LIBS="-lodbc32  $LIBS"
29273 cat >conftest.$ac_ext <<_ACEOF
29274 /* confdefs.h.  */
29275 _ACEOF
29276 cat confdefs.h >>conftest.$ac_ext
29277 cat >>conftest.$ac_ext <<_ACEOF
29278 /* end confdefs.h.  */
29279
29280 /* Override any gcc2 internal prototype to avoid an error.  */
29281 #ifdef __cplusplus
29282 extern "C"
29283 #endif
29284 /* We use char because int might match the return type of a gcc2
29285    builtin and then its argument prototype would still apply.  */
29286 char SQLDriverConnect ();
29287 int
29288 main ()
29289 {
29290 SQLDriverConnect ();
29291   ;
29292   return 0;
29293 }
29294 _ACEOF
29295 rm -f conftest.$ac_objext conftest$ac_exeext
29296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29297   (eval $ac_link) 2>conftest.er1
29298   ac_status=$?
29299   grep -v '^ *+' conftest.er1 >conftest.err
29300   rm -f conftest.er1
29301   cat conftest.err >&5
29302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303   (exit $ac_status); } &&
29304          { ac_try='test -z "$ac_c_werror_flag"
29305                          || test ! -s conftest.err'
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); }; } &&
29311          { ac_try='test -s conftest$ac_exeext'
29312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29313   (eval $ac_try) 2>&5
29314   ac_status=$?
29315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316   (exit $ac_status); }; }; then
29317   ac_cv_lib_odbc32_SQLDriverConnect=yes
29318 else
29319   echo "$as_me: failed program was:" >&5
29320 sed 's/^/| /' conftest.$ac_ext >&5
29321
29322 ac_cv_lib_odbc32_SQLDriverConnect=no
29323 fi
29324 rm -f conftest.err conftest.$ac_objext \
29325       conftest$ac_exeext conftest.$ac_ext
29326 LIBS=$ac_check_lib_save_LIBS
29327 fi
29328 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
29329 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6
29330 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
29331   have_odbc32=yes
29332 else
29333   have_odbc32=no
29334 fi
29335
29336                                 if test $have_odbc32 = yes ; then
29337                                         ol_link_sql="-lodbc32"
29338                                 fi
29339                                 ;;
29340
29341                         *)
29342                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
29343 echo "$as_me: error: unknown ODBC library" >&2;}
29344    { (exit 1); exit 1; }; }
29345                                 ;;
29346                         esac
29347                 fi
29348         done
29349
29350         LIBS="$sql_LIBS"
29351
29352         if test $ol_link_sql != no ; then
29353                 SLAPD_SQL_LIBS="$ol_link_sql"
29354
29355         elif test $ol_enable_sql != auto ; then
29356                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
29357 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
29358    { (exit 1); exit 1; }; }
29359         fi
29360 fi
29361
29362 ol_link_ndb=no
29363 if test $ol_enable_ndb != no ; then
29364         # Extract the first word of "mysql_config", so it can be a program name with args.
29365 set dummy mysql_config; ac_word=$2
29366 echo "$as_me:$LINENO: checking for $ac_word" >&5
29367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29368 if test "${ac_cv_prog_MYSQL+set}" = set; then
29369   echo $ECHO_N "(cached) $ECHO_C" >&6
29370 else
29371   if test -n "$MYSQL"; then
29372   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
29373 else
29374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29375 for as_dir in $PATH
29376 do
29377   IFS=$as_save_IFS
29378   test -z "$as_dir" && as_dir=.
29379   for ac_exec_ext in '' $ac_executable_extensions; do
29380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29381     ac_cv_prog_MYSQL="yes"
29382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29383     break 2
29384   fi
29385 done
29386 done
29387
29388 fi
29389 fi
29390 MYSQL=$ac_cv_prog_MYSQL
29391 if test -n "$MYSQL"; then
29392   echo "$as_me:$LINENO: result: $MYSQL" >&5
29393 echo "${ECHO_T}$MYSQL" >&6
29394 else
29395   echo "$as_me:$LINENO: result: no" >&5
29396 echo "${ECHO_T}no" >&6
29397 fi
29398
29399         if test "$MYSQL" != yes ; then
29400                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
29401 echo "$as_me: error: could not locate mysql_config" >&2;}
29402    { (exit 1); exit 1; }; }
29403         fi
29404
29405         SQL_INC=`mysql_config --include`
29406         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
29407
29408         save_CPPFLAGS="$CPPFLAGS"
29409         CPPFLAGS="$SLAPD_NDB_INCS"
29410         echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
29411 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6
29412         cat >conftest.$ac_ext <<_ACEOF
29413 /* confdefs.h.  */
29414 _ACEOF
29415 cat confdefs.h >>conftest.$ac_ext
29416 cat >>conftest.$ac_ext <<_ACEOF
29417 /* end confdefs.h.  */
29418 #include <NdbApi.hpp>
29419 _ACEOF
29420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29421   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29422   ac_status=$?
29423   grep -v '^ *+' conftest.er1 >conftest.err
29424   rm -f conftest.er1
29425   cat conftest.err >&5
29426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427   (exit $ac_status); } >/dev/null; then
29428   if test -s conftest.err; then
29429     ac_cpp_err=$ac_c_preproc_warn_flag
29430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29431   else
29432     ac_cpp_err=
29433   fi
29434 else
29435   ac_cpp_err=yes
29436 fi
29437 if test -z "$ac_cpp_err"; then
29438   echo "$as_me:$LINENO: result: yes" >&5
29439 echo "${ECHO_T}yes" >&6
29440 else
29441   echo "$as_me: failed program was:" >&5
29442 sed 's/^/| /' conftest.$ac_ext >&5
29443
29444   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
29445 echo "$as_me: error: could not locate NdbApi headers" >&2;}
29446    { (exit 1); exit 1; }; }
29447
29448 fi
29449 rm -f conftest.err conftest.$ac_ext
29450         CPPFLAGS="$save_CPPFLAGS"
29451
29452         SQL_LIB=`mysql_config --libs_r`
29453         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
29454
29455         save_LDFLAGS="$LDFLAGS"
29456         save_LIBS="$LIBS"
29457         LDFLAGS="$SQL_LIB"
29458         echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
29459 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6
29460 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
29461   echo $ECHO_N "(cached) $ECHO_C" >&6
29462 else
29463   ac_check_lib_save_LIBS=$LIBS
29464 LIBS="-lndbclient -lstdc++ $LIBS"
29465 cat >conftest.$ac_ext <<_ACEOF
29466 /* confdefs.h.  */
29467 _ACEOF
29468 cat confdefs.h >>conftest.$ac_ext
29469 cat >>conftest.$ac_ext <<_ACEOF
29470 /* end confdefs.h.  */
29471
29472 /* Override any gcc2 internal prototype to avoid an error.  */
29473 #ifdef __cplusplus
29474 extern "C"
29475 #endif
29476 /* We use char because int might match the return type of a gcc2
29477    builtin and then its argument prototype would still apply.  */
29478 char ndb_init ();
29479 int
29480 main ()
29481 {
29482 ndb_init ();
29483   ;
29484   return 0;
29485 }
29486 _ACEOF
29487 rm -f conftest.$ac_objext conftest$ac_exeext
29488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29489   (eval $ac_link) 2>conftest.er1
29490   ac_status=$?
29491   grep -v '^ *+' conftest.er1 >conftest.err
29492   rm -f conftest.er1
29493   cat conftest.err >&5
29494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495   (exit $ac_status); } &&
29496          { ac_try='test -z "$ac_c_werror_flag"
29497                          || test ! -s conftest.err'
29498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29499   (eval $ac_try) 2>&5
29500   ac_status=$?
29501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502   (exit $ac_status); }; } &&
29503          { ac_try='test -s conftest$ac_exeext'
29504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29505   (eval $ac_try) 2>&5
29506   ac_status=$?
29507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508   (exit $ac_status); }; }; then
29509   ac_cv_lib_ndbclient_ndb_init=yes
29510 else
29511   echo "$as_me: failed program was:" >&5
29512 sed 's/^/| /' conftest.$ac_ext >&5
29513
29514 ac_cv_lib_ndbclient_ndb_init=no
29515 fi
29516 rm -f conftest.err conftest.$ac_objext \
29517       conftest$ac_exeext conftest.$ac_ext
29518 LIBS=$ac_check_lib_save_LIBS
29519 fi
29520 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
29521 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6
29522 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
29523   : ok
29524 else
29525
29526                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
29527 echo "$as_me: error: could not locate ndbclient library" >&2;}
29528    { (exit 1); exit 1; }; }
29529
29530 fi
29531
29532         LIBS="$save_LIBS"
29533         LDFLAGS="$save_LDFLAGS"
29534
29535         if test "$ol_enable_ndb" = yes ; then
29536                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
29537         fi
29538 fi
29539
29540 ol_icu=no
29541
29542 for ac_header in unicode/utypes.h
29543 do
29544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29546   echo "$as_me:$LINENO: checking for $ac_header" >&5
29547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29549   echo $ECHO_N "(cached) $ECHO_C" >&6
29550 fi
29551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29553 else
29554   # Is the header compilable?
29555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29557 cat >conftest.$ac_ext <<_ACEOF
29558 /* confdefs.h.  */
29559 _ACEOF
29560 cat confdefs.h >>conftest.$ac_ext
29561 cat >>conftest.$ac_ext <<_ACEOF
29562 /* end confdefs.h.  */
29563 $ac_includes_default
29564 #include <$ac_header>
29565 _ACEOF
29566 rm -f conftest.$ac_objext
29567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29568   (eval $ac_compile) 2>conftest.er1
29569   ac_status=$?
29570   grep -v '^ *+' conftest.er1 >conftest.err
29571   rm -f conftest.er1
29572   cat conftest.err >&5
29573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574   (exit $ac_status); } &&
29575          { ac_try='test -z "$ac_c_werror_flag"
29576                          || test ! -s conftest.err'
29577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29578   (eval $ac_try) 2>&5
29579   ac_status=$?
29580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581   (exit $ac_status); }; } &&
29582          { ac_try='test -s conftest.$ac_objext'
29583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29584   (eval $ac_try) 2>&5
29585   ac_status=$?
29586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587   (exit $ac_status); }; }; then
29588   ac_header_compiler=yes
29589 else
29590   echo "$as_me: failed program was:" >&5
29591 sed 's/^/| /' conftest.$ac_ext >&5
29592
29593 ac_header_compiler=no
29594 fi
29595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29597 echo "${ECHO_T}$ac_header_compiler" >&6
29598
29599 # Is the header present?
29600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29602 cat >conftest.$ac_ext <<_ACEOF
29603 /* confdefs.h.  */
29604 _ACEOF
29605 cat confdefs.h >>conftest.$ac_ext
29606 cat >>conftest.$ac_ext <<_ACEOF
29607 /* end confdefs.h.  */
29608 #include <$ac_header>
29609 _ACEOF
29610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29611   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29612   ac_status=$?
29613   grep -v '^ *+' conftest.er1 >conftest.err
29614   rm -f conftest.er1
29615   cat conftest.err >&5
29616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617   (exit $ac_status); } >/dev/null; then
29618   if test -s conftest.err; then
29619     ac_cpp_err=$ac_c_preproc_warn_flag
29620     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29621   else
29622     ac_cpp_err=
29623   fi
29624 else
29625   ac_cpp_err=yes
29626 fi
29627 if test -z "$ac_cpp_err"; then
29628   ac_header_preproc=yes
29629 else
29630   echo "$as_me: failed program was:" >&5
29631 sed 's/^/| /' conftest.$ac_ext >&5
29632
29633   ac_header_preproc=no
29634 fi
29635 rm -f conftest.err conftest.$ac_ext
29636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29637 echo "${ECHO_T}$ac_header_preproc" >&6
29638
29639 # So?  What about this header?
29640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29641   yes:no: )
29642     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29646     ac_header_preproc=yes
29647     ;;
29648   no:yes:* )
29649     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29651     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29652 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29653     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29655     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29656 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29659     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29661     (
29662       cat <<\_ASBOX
29663 ## --------------------------------------------- ##
29664 ## Report this to <http://www.openldap.org/its/> ##
29665 ## --------------------------------------------- ##
29666 _ASBOX
29667     ) |
29668       sed "s/^/$as_me: WARNING:     /" >&2
29669     ;;
29670 esac
29671 echo "$as_me:$LINENO: checking for $ac_header" >&5
29672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29674   echo $ECHO_N "(cached) $ECHO_C" >&6
29675 else
29676   eval "$as_ac_Header=\$ac_header_preproc"
29677 fi
29678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29680
29681 fi
29682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29683   cat >>confdefs.h <<_ACEOF
29684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29685 _ACEOF
29686
29687 fi
29688
29689 done
29690
29691 if test $ac_cv_header_unicode_utypes_h = yes ; then
29692                 OL_ICULIBS="-licuuc -licudata"
29693
29694         echo "$as_me:$LINENO: checking for ICU libraries" >&5
29695 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
29696 if test "${ol_cv_lib_icu+set}" = set; then
29697   echo $ECHO_N "(cached) $ECHO_C" >&6
29698 else
29699
29700                 ol_LIBS="$LIBS"
29701                 LIBS="$OL_ICULIBS $LIBS"
29702                 cat >conftest.$ac_ext <<_ACEOF
29703 /* confdefs.h.  */
29704 _ACEOF
29705 cat confdefs.h >>conftest.$ac_ext
29706 cat >>conftest.$ac_ext <<_ACEOF
29707 /* end confdefs.h.  */
29708
29709 #include <unicode/utypes.h>
29710
29711 int
29712 main ()
29713 {
29714
29715 (void) u_errorName(0);
29716
29717   ;
29718   return 0;
29719 }
29720 _ACEOF
29721 rm -f conftest.$ac_objext conftest$ac_exeext
29722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29723   (eval $ac_link) 2>conftest.er1
29724   ac_status=$?
29725   grep -v '^ *+' conftest.er1 >conftest.err
29726   rm -f conftest.er1
29727   cat conftest.err >&5
29728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729   (exit $ac_status); } &&
29730          { ac_try='test -z "$ac_c_werror_flag"
29731                          || test ! -s conftest.err'
29732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29733   (eval $ac_try) 2>&5
29734   ac_status=$?
29735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736   (exit $ac_status); }; } &&
29737          { ac_try='test -s conftest$ac_exeext'
29738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29739   (eval $ac_try) 2>&5
29740   ac_status=$?
29741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742   (exit $ac_status); }; }; then
29743   ol_cv_lib_icu=yes
29744 else
29745   echo "$as_me: failed program was:" >&5
29746 sed 's/^/| /' conftest.$ac_ext >&5
29747
29748 ol_cv_lib_icu=no
29749 fi
29750 rm -f conftest.err conftest.$ac_objext \
29751       conftest$ac_exeext conftest.$ac_ext
29752                 LIBS="$ol_LIBS"
29753
29754 fi
29755 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
29756 echo "${ECHO_T}$ol_cv_lib_icu" >&6
29757
29758         if test $ol_cv_lib_icu != no ; then
29759                 ol_icu="$OL_ICULIBS"
29760
29761 cat >>confdefs.h <<\_ACEOF
29762 #define HAVE_ICU 1
29763 _ACEOF
29764
29765         fi
29766 fi
29767
29768 if test "$ol_icu" = no ; then
29769         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
29770 echo "$as_me: WARNING: ICU not available" >&2;}
29771 else
29772         ICU_LIBS="$ol_icu"
29773 fi
29774 WITH_SASL=no
29775 ol_link_sasl=no
29776 ol_link_spasswd=no
29777 if test $ol_with_cyrus_sasl != no ; then
29778
29779
29780 for ac_header in sasl/sasl.h sasl.h
29781 do
29782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29784   echo "$as_me:$LINENO: checking for $ac_header" >&5
29785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29787   echo $ECHO_N "(cached) $ECHO_C" >&6
29788 fi
29789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29791 else
29792   # Is the header compilable?
29793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29795 cat >conftest.$ac_ext <<_ACEOF
29796 /* confdefs.h.  */
29797 _ACEOF
29798 cat confdefs.h >>conftest.$ac_ext
29799 cat >>conftest.$ac_ext <<_ACEOF
29800 /* end confdefs.h.  */
29801 $ac_includes_default
29802 #include <$ac_header>
29803 _ACEOF
29804 rm -f conftest.$ac_objext
29805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29806   (eval $ac_compile) 2>conftest.er1
29807   ac_status=$?
29808   grep -v '^ *+' conftest.er1 >conftest.err
29809   rm -f conftest.er1
29810   cat conftest.err >&5
29811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812   (exit $ac_status); } &&
29813          { ac_try='test -z "$ac_c_werror_flag"
29814                          || test ! -s conftest.err'
29815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29816   (eval $ac_try) 2>&5
29817   ac_status=$?
29818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819   (exit $ac_status); }; } &&
29820          { ac_try='test -s conftest.$ac_objext'
29821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29822   (eval $ac_try) 2>&5
29823   ac_status=$?
29824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825   (exit $ac_status); }; }; then
29826   ac_header_compiler=yes
29827 else
29828   echo "$as_me: failed program was:" >&5
29829 sed 's/^/| /' conftest.$ac_ext >&5
29830
29831 ac_header_compiler=no
29832 fi
29833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29835 echo "${ECHO_T}$ac_header_compiler" >&6
29836
29837 # Is the header present?
29838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29840 cat >conftest.$ac_ext <<_ACEOF
29841 /* confdefs.h.  */
29842 _ACEOF
29843 cat confdefs.h >>conftest.$ac_ext
29844 cat >>conftest.$ac_ext <<_ACEOF
29845 /* end confdefs.h.  */
29846 #include <$ac_header>
29847 _ACEOF
29848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29850   ac_status=$?
29851   grep -v '^ *+' conftest.er1 >conftest.err
29852   rm -f conftest.er1
29853   cat conftest.err >&5
29854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855   (exit $ac_status); } >/dev/null; then
29856   if test -s conftest.err; then
29857     ac_cpp_err=$ac_c_preproc_warn_flag
29858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29859   else
29860     ac_cpp_err=
29861   fi
29862 else
29863   ac_cpp_err=yes
29864 fi
29865 if test -z "$ac_cpp_err"; then
29866   ac_header_preproc=yes
29867 else
29868   echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29870
29871   ac_header_preproc=no
29872 fi
29873 rm -f conftest.err conftest.$ac_ext
29874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29875 echo "${ECHO_T}$ac_header_preproc" >&6
29876
29877 # So?  What about this header?
29878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29879   yes:no: )
29880     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29884     ac_header_preproc=yes
29885     ;;
29886   no:yes:* )
29887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29889     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29890 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29891     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29893     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29894 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29897     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29899     (
29900       cat <<\_ASBOX
29901 ## --------------------------------------------- ##
29902 ## Report this to <http://www.openldap.org/its/> ##
29903 ## --------------------------------------------- ##
29904 _ASBOX
29905     ) |
29906       sed "s/^/$as_me: WARNING:     /" >&2
29907     ;;
29908 esac
29909 echo "$as_me:$LINENO: checking for $ac_header" >&5
29910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29912   echo $ECHO_N "(cached) $ECHO_C" >&6
29913 else
29914   eval "$as_ac_Header=\$ac_header_preproc"
29915 fi
29916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29918
29919 fi
29920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29921   cat >>confdefs.h <<_ACEOF
29922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29923 _ACEOF
29924
29925 fi
29926
29927 done
29928
29929
29930         if test $ac_cv_header_sasl_sasl_h = yes ||
29931            test $ac_cv_header_sasl_h = yes; then
29932                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
29933 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
29934 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
29935   echo $ECHO_N "(cached) $ECHO_C" >&6
29936 else
29937   ac_check_lib_save_LIBS=$LIBS
29938 LIBS="-lsasl2  $LIBS"
29939 cat >conftest.$ac_ext <<_ACEOF
29940 /* confdefs.h.  */
29941 _ACEOF
29942 cat confdefs.h >>conftest.$ac_ext
29943 cat >>conftest.$ac_ext <<_ACEOF
29944 /* end confdefs.h.  */
29945
29946 /* Override any gcc2 internal prototype to avoid an error.  */
29947 #ifdef __cplusplus
29948 extern "C"
29949 #endif
29950 /* We use char because int might match the return type of a gcc2
29951    builtin and then its argument prototype would still apply.  */
29952 char sasl_client_init ();
29953 int
29954 main ()
29955 {
29956 sasl_client_init ();
29957   ;
29958   return 0;
29959 }
29960 _ACEOF
29961 rm -f conftest.$ac_objext conftest$ac_exeext
29962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29963   (eval $ac_link) 2>conftest.er1
29964   ac_status=$?
29965   grep -v '^ *+' conftest.er1 >conftest.err
29966   rm -f conftest.er1
29967   cat conftest.err >&5
29968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969   (exit $ac_status); } &&
29970          { ac_try='test -z "$ac_c_werror_flag"
29971                          || test ! -s conftest.err'
29972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29973   (eval $ac_try) 2>&5
29974   ac_status=$?
29975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976   (exit $ac_status); }; } &&
29977          { ac_try='test -s conftest$ac_exeext'
29978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29979   (eval $ac_try) 2>&5
29980   ac_status=$?
29981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982   (exit $ac_status); }; }; then
29983   ac_cv_lib_sasl2_sasl_client_init=yes
29984 else
29985   echo "$as_me: failed program was:" >&5
29986 sed 's/^/| /' conftest.$ac_ext >&5
29987
29988 ac_cv_lib_sasl2_sasl_client_init=no
29989 fi
29990 rm -f conftest.err conftest.$ac_objext \
29991       conftest$ac_exeext conftest.$ac_ext
29992 LIBS=$ac_check_lib_save_LIBS
29993 fi
29994 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
29995 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
29996 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
29997   ol_link_sasl="-lsasl2"
29998 else
29999   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30000 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
30001 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30002   echo $ECHO_N "(cached) $ECHO_C" >&6
30003 else
30004   ac_check_lib_save_LIBS=$LIBS
30005 LIBS="-lsasl  $LIBS"
30006 cat >conftest.$ac_ext <<_ACEOF
30007 /* confdefs.h.  */
30008 _ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h.  */
30012
30013 /* Override any gcc2 internal prototype to avoid an error.  */
30014 #ifdef __cplusplus
30015 extern "C"
30016 #endif
30017 /* We use char because int might match the return type of a gcc2
30018    builtin and then its argument prototype would still apply.  */
30019 char sasl_client_init ();
30020 int
30021 main ()
30022 {
30023 sasl_client_init ();
30024   ;
30025   return 0;
30026 }
30027 _ACEOF
30028 rm -f conftest.$ac_objext conftest$ac_exeext
30029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30030   (eval $ac_link) 2>conftest.er1
30031   ac_status=$?
30032   grep -v '^ *+' conftest.er1 >conftest.err
30033   rm -f conftest.er1
30034   cat conftest.err >&5
30035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036   (exit $ac_status); } &&
30037          { ac_try='test -z "$ac_c_werror_flag"
30038                          || test ! -s conftest.err'
30039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30040   (eval $ac_try) 2>&5
30041   ac_status=$?
30042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043   (exit $ac_status); }; } &&
30044          { ac_try='test -s conftest$ac_exeext'
30045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30046   (eval $ac_try) 2>&5
30047   ac_status=$?
30048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049   (exit $ac_status); }; }; then
30050   ac_cv_lib_sasl_sasl_client_init=yes
30051 else
30052   echo "$as_me: failed program was:" >&5
30053 sed 's/^/| /' conftest.$ac_ext >&5
30054
30055 ac_cv_lib_sasl_sasl_client_init=no
30056 fi
30057 rm -f conftest.err conftest.$ac_objext \
30058       conftest$ac_exeext conftest.$ac_ext
30059 LIBS=$ac_check_lib_save_LIBS
30060 fi
30061 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30062 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
30063 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30064   ol_link_sasl="-lsasl"
30065 fi
30066
30067 fi
30068
30069         fi
30070
30071         if test $ol_link_sasl = no ; then
30072                 if test $ol_with_cyrus_sasl != auto ; then
30073                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30074 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30075    { (exit 1); exit 1; }; }
30076                 else
30077                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30078 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30079                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30080 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30081                         if test $ol_link_tls = no ; then
30082                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30083 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30084                         fi
30085                 fi
30086         else
30087                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30088 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
30089 if test "${ol_cv_sasl_compat+set}" = set; then
30090   echo $ECHO_N "(cached) $ECHO_C" >&6
30091 else
30092
30093         cat >conftest.$ac_ext <<_ACEOF
30094 /* confdefs.h.  */
30095 _ACEOF
30096 cat confdefs.h >>conftest.$ac_ext
30097 cat >>conftest.$ac_ext <<_ACEOF
30098 /* end confdefs.h.  */
30099
30100 #ifdef HAVE_SASL_SASL_H
30101 #include <sasl/sasl.h>
30102 #else
30103 #include <sasl.h>
30104 #endif
30105
30106 /* Require 2.1.15+ */
30107 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
30108         char *__sasl_compat = "2.2+ or better okay (we guess)";
30109 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
30110         && SASL_VERSION_STEP >=15
30111         char *__sasl_compat = "2.1.15+ or better okay";
30112 #endif
30113
30114 _ACEOF
30115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30116   $EGREP "__sasl_compat" >/dev/null 2>&1; then
30117   ol_cv_sasl_compat=yes
30118 else
30119   ol_cv_sasl_compat=no
30120 fi
30121 rm -f conftest*
30122
30123 fi
30124 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30125 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
30126
30127                 if test $ol_cv_sasl_compat = no ; then
30128                         ol_link_sasl=no
30129                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30130 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30131    { (exit 1); exit 1; }; }
30132                 fi
30133
30134
30135 cat >>confdefs.h <<\_ACEOF
30136 #define HAVE_CYRUS_SASL 1
30137 _ACEOF
30138
30139                 SASL_LIBS="$ol_link_sasl"
30140                 if test $ol_enable_spasswd != no ; then
30141                         ol_link_spasswd=yes
30142                 fi
30143
30144                 ac_save_LIBS="$LIBS"
30145                 LIBS="$LIBS $ol_link_sasl"
30146                 echo "$as_me:$LINENO: checking for sasl_version" >&5
30147 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
30148 if test "${ac_cv_func_sasl_version+set}" = set; then
30149   echo $ECHO_N "(cached) $ECHO_C" >&6
30150 else
30151   cat >conftest.$ac_ext <<_ACEOF
30152 /* confdefs.h.  */
30153 _ACEOF
30154 cat confdefs.h >>conftest.$ac_ext
30155 cat >>conftest.$ac_ext <<_ACEOF
30156 /* end confdefs.h.  */
30157 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30159 #define sasl_version innocuous_sasl_version
30160
30161 /* System header to define __stub macros and hopefully few prototypes,
30162     which can conflict with char sasl_version (); below.
30163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30164     <limits.h> exists even on freestanding compilers.  */
30165
30166 #ifdef __STDC__
30167 # include <limits.h>
30168 #else
30169 # include <assert.h>
30170 #endif
30171
30172 #undef sasl_version
30173
30174 /* Override any gcc2 internal prototype to avoid an error.  */
30175 #ifdef __cplusplus
30176 extern "C"
30177 {
30178 #endif
30179 /* We use char because int might match the return type of a gcc2
30180    builtin and then its argument prototype would still apply.  */
30181 char sasl_version ();
30182 /* The GNU C library defines this for functions which it implements
30183     to always fail with ENOSYS.  Some functions are actually named
30184     something starting with __ and the normal name is an alias.  */
30185 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
30186 choke me
30187 #else
30188 char (*f) () = sasl_version;
30189 #endif
30190 #ifdef __cplusplus
30191 }
30192 #endif
30193
30194 int
30195 main ()
30196 {
30197 return f != sasl_version;
30198   ;
30199   return 0;
30200 }
30201 _ACEOF
30202 rm -f conftest.$ac_objext conftest$ac_exeext
30203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30204   (eval $ac_link) 2>conftest.er1
30205   ac_status=$?
30206   grep -v '^ *+' conftest.er1 >conftest.err
30207   rm -f conftest.er1
30208   cat conftest.err >&5
30209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210   (exit $ac_status); } &&
30211          { ac_try='test -z "$ac_c_werror_flag"
30212                          || test ! -s conftest.err'
30213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30214   (eval $ac_try) 2>&5
30215   ac_status=$?
30216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217   (exit $ac_status); }; } &&
30218          { ac_try='test -s conftest$ac_exeext'
30219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30220   (eval $ac_try) 2>&5
30221   ac_status=$?
30222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223   (exit $ac_status); }; }; then
30224   ac_cv_func_sasl_version=yes
30225 else
30226   echo "$as_me: failed program was:" >&5
30227 sed 's/^/| /' conftest.$ac_ext >&5
30228
30229 ac_cv_func_sasl_version=no
30230 fi
30231 rm -f conftest.err conftest.$ac_objext \
30232       conftest$ac_exeext conftest.$ac_ext
30233 fi
30234 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30235 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
30236 if test $ac_cv_func_sasl_version = yes; then
30237
30238 cat >>confdefs.h <<\_ACEOF
30239 #define HAVE_SASL_VERSION 1
30240 _ACEOF
30241
30242 fi
30243
30244                 LIBS="$ac_save_LIBS"
30245
30246                 WITH_SASL=yes
30247         fi
30248
30249 else
30250         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30251 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30252         if test $ol_link_tls = no ; then
30253                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30254 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30255         fi
30256 fi
30257
30258 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30259         dev=no
30260         if test -r /dev/urandom ; then
30261                 dev="/dev/urandom";
30262         elif test -r /idev/urandom ; then
30263                 dev="/idev/urandom";
30264         elif test -r /dev/srandom ; then
30265                 dev="/dev/srandom";
30266         elif test -r /dev/random ; then
30267                 dev="/dev/random";
30268         elif test -r /idev/random ; then
30269                 dev="/idev/random";
30270         fi
30271
30272         if test $dev != no ; then
30273
30274 cat >>confdefs.h <<_ACEOF
30275 #define URANDOM_DEVICE "$dev"
30276 _ACEOF
30277
30278         fi
30279 fi
30280
30281 ol_link_fetch=no
30282 if test $ol_with_fetch != no ; then
30283         ol_LIBS=$LIBS
30284 LIBS="-lfetch -lcom_err $LIBS"
30285 echo "$as_me:$LINENO: checking fetch(3) library" >&5
30286 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
30287 if test "${ol_cv_lib_fetch+set}" = set; then
30288   echo $ECHO_N "(cached) $ECHO_C" >&6
30289 else
30290
30291         cat >conftest.$ac_ext <<_ACEOF
30292 /* confdefs.h.  */
30293 _ACEOF
30294 cat confdefs.h >>conftest.$ac_ext
30295 cat >>conftest.$ac_ext <<_ACEOF
30296 /* end confdefs.h.  */
30297
30298 #include <sys/param.h>
30299 #include <stdio.h>
30300 #include <fetch.h>
30301 int
30302 main ()
30303 {
30304 struct url *u = fetchParseURL("file:///");
30305   ;
30306   return 0;
30307 }
30308 _ACEOF
30309 rm -f conftest.$ac_objext conftest$ac_exeext
30310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30311   (eval $ac_link) 2>conftest.er1
30312   ac_status=$?
30313   grep -v '^ *+' conftest.er1 >conftest.err
30314   rm -f conftest.er1
30315   cat conftest.err >&5
30316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317   (exit $ac_status); } &&
30318          { ac_try='test -z "$ac_c_werror_flag"
30319                          || test ! -s conftest.err'
30320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30321   (eval $ac_try) 2>&5
30322   ac_status=$?
30323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324   (exit $ac_status); }; } &&
30325          { ac_try='test -s conftest$ac_exeext'
30326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30327   (eval $ac_try) 2>&5
30328   ac_status=$?
30329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330   (exit $ac_status); }; }; then
30331   ol_cv_lib_fetch=yes
30332 else
30333   echo "$as_me: failed program was:" >&5
30334 sed 's/^/| /' conftest.$ac_ext >&5
30335
30336 ol_cv_lib_fetch=no
30337 fi
30338 rm -f conftest.err conftest.$ac_objext \
30339       conftest$ac_exeext conftest.$ac_ext
30340 fi
30341 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
30342 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
30343 LIBS=$ol_LIBS
30344 if test $ol_cv_lib_fetch != no ; then
30345         ol_link_fetch="-lfetch -lcom_err"
30346
30347 cat >>confdefs.h <<\_ACEOF
30348 #define HAVE_FETCH 1
30349 _ACEOF
30350
30351 fi
30352
30353
30354         if test $ol_cv_lib_fetch != no ; then
30355                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
30356                 ol_link_fetch=freebsd
30357
30358         elif test $ol_with_fetch != auto ; then
30359                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
30360 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
30361    { (exit 1); exit 1; }; }
30362         fi
30363 fi
30364
30365 if test $ol_enable_crypt != no ; then
30366         save_LIBS="$LIBS"
30367         LIBS="$TLS_LIBS $LIBS"
30368
30369         echo "$as_me:$LINENO: checking for crypt" >&5
30370 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
30371 if test "${ac_cv_func_crypt+set}" = set; then
30372   echo $ECHO_N "(cached) $ECHO_C" >&6
30373 else
30374   cat >conftest.$ac_ext <<_ACEOF
30375 /* confdefs.h.  */
30376 _ACEOF
30377 cat confdefs.h >>conftest.$ac_ext
30378 cat >>conftest.$ac_ext <<_ACEOF
30379 /* end confdefs.h.  */
30380 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
30381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30382 #define crypt innocuous_crypt
30383
30384 /* System header to define __stub macros and hopefully few prototypes,
30385     which can conflict with char crypt (); below.
30386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30387     <limits.h> exists even on freestanding compilers.  */
30388
30389 #ifdef __STDC__
30390 # include <limits.h>
30391 #else
30392 # include <assert.h>
30393 #endif
30394
30395 #undef crypt
30396
30397 /* Override any gcc2 internal prototype to avoid an error.  */
30398 #ifdef __cplusplus
30399 extern "C"
30400 {
30401 #endif
30402 /* We use char because int might match the return type of a gcc2
30403    builtin and then its argument prototype would still apply.  */
30404 char crypt ();
30405 /* The GNU C library defines this for functions which it implements
30406     to always fail with ENOSYS.  Some functions are actually named
30407     something starting with __ and the normal name is an alias.  */
30408 #if defined (__stub_crypt) || defined (__stub___crypt)
30409 choke me
30410 #else
30411 char (*f) () = crypt;
30412 #endif
30413 #ifdef __cplusplus
30414 }
30415 #endif
30416
30417 int
30418 main ()
30419 {
30420 return f != crypt;
30421   ;
30422   return 0;
30423 }
30424 _ACEOF
30425 rm -f conftest.$ac_objext conftest$ac_exeext
30426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30427   (eval $ac_link) 2>conftest.er1
30428   ac_status=$?
30429   grep -v '^ *+' conftest.er1 >conftest.err
30430   rm -f conftest.er1
30431   cat conftest.err >&5
30432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433   (exit $ac_status); } &&
30434          { ac_try='test -z "$ac_c_werror_flag"
30435                          || test ! -s conftest.err'
30436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30437   (eval $ac_try) 2>&5
30438   ac_status=$?
30439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440   (exit $ac_status); }; } &&
30441          { ac_try='test -s conftest$ac_exeext'
30442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30443   (eval $ac_try) 2>&5
30444   ac_status=$?
30445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30446   (exit $ac_status); }; }; then
30447   ac_cv_func_crypt=yes
30448 else
30449   echo "$as_me: failed program was:" >&5
30450 sed 's/^/| /' conftest.$ac_ext >&5
30451
30452 ac_cv_func_crypt=no
30453 fi
30454 rm -f conftest.err conftest.$ac_objext \
30455       conftest$ac_exeext conftest.$ac_ext
30456 fi
30457 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
30458 echo "${ECHO_T}$ac_cv_func_crypt" >&6
30459 if test $ac_cv_func_crypt = yes; then
30460   have_crypt=yes
30461 else
30462
30463                 LIBS="$save_LIBS"
30464                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
30465 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
30466 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
30467   echo $ECHO_N "(cached) $ECHO_C" >&6
30468 else
30469   ac_check_lib_save_LIBS=$LIBS
30470 LIBS="-lcrypt  $LIBS"
30471 cat >conftest.$ac_ext <<_ACEOF
30472 /* confdefs.h.  */
30473 _ACEOF
30474 cat confdefs.h >>conftest.$ac_ext
30475 cat >>conftest.$ac_ext <<_ACEOF
30476 /* end confdefs.h.  */
30477
30478 /* Override any gcc2 internal prototype to avoid an error.  */
30479 #ifdef __cplusplus
30480 extern "C"
30481 #endif
30482 /* We use char because int might match the return type of a gcc2
30483    builtin and then its argument prototype would still apply.  */
30484 char crypt ();
30485 int
30486 main ()
30487 {
30488 crypt ();
30489   ;
30490   return 0;
30491 }
30492 _ACEOF
30493 rm -f conftest.$ac_objext conftest$ac_exeext
30494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30495   (eval $ac_link) 2>conftest.er1
30496   ac_status=$?
30497   grep -v '^ *+' conftest.er1 >conftest.err
30498   rm -f conftest.er1
30499   cat conftest.err >&5
30500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501   (exit $ac_status); } &&
30502          { ac_try='test -z "$ac_c_werror_flag"
30503                          || test ! -s conftest.err'
30504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30505   (eval $ac_try) 2>&5
30506   ac_status=$?
30507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508   (exit $ac_status); }; } &&
30509          { ac_try='test -s conftest$ac_exeext'
30510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30511   (eval $ac_try) 2>&5
30512   ac_status=$?
30513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30514   (exit $ac_status); }; }; then
30515   ac_cv_lib_crypt_crypt=yes
30516 else
30517   echo "$as_me: failed program was:" >&5
30518 sed 's/^/| /' conftest.$ac_ext >&5
30519
30520 ac_cv_lib_crypt_crypt=no
30521 fi
30522 rm -f conftest.err conftest.$ac_objext \
30523       conftest$ac_exeext conftest.$ac_ext
30524 LIBS=$ac_check_lib_save_LIBS
30525 fi
30526 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
30527 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
30528 if test $ac_cv_lib_crypt_crypt = yes; then
30529   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
30530                         have_crypt=yes
30531 else
30532   have_crypt=no
30533 fi
30534
30535 fi
30536
30537
30538         LIBS="$save_LIBS"
30539
30540         if test $have_crypt = yes ; then
30541
30542 cat >>confdefs.h <<\_ACEOF
30543 #define HAVE_CRYPT 1
30544 _ACEOF
30545
30546         else
30547                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
30548 echo "$as_me: WARNING: could not find crypt" >&2;}
30549                 if test $ol_enable_crypt = yes ; then
30550                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
30551 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
30552    { (exit 1); exit 1; }; }
30553                 fi
30554
30555                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
30556 echo "$as_me: WARNING: disabling crypt support" >&2;}
30557                 ol_enable_crypt=no
30558         fi
30559 fi
30560
30561 if test $ol_enable_proctitle != no ; then
30562         echo "$as_me:$LINENO: checking for setproctitle" >&5
30563 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
30564 if test "${ac_cv_func_setproctitle+set}" = set; then
30565   echo $ECHO_N "(cached) $ECHO_C" >&6
30566 else
30567   cat >conftest.$ac_ext <<_ACEOF
30568 /* confdefs.h.  */
30569 _ACEOF
30570 cat confdefs.h >>conftest.$ac_ext
30571 cat >>conftest.$ac_ext <<_ACEOF
30572 /* end confdefs.h.  */
30573 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
30574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30575 #define setproctitle innocuous_setproctitle
30576
30577 /* System header to define __stub macros and hopefully few prototypes,
30578     which can conflict with char setproctitle (); below.
30579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30580     <limits.h> exists even on freestanding compilers.  */
30581
30582 #ifdef __STDC__
30583 # include <limits.h>
30584 #else
30585 # include <assert.h>
30586 #endif
30587
30588 #undef setproctitle
30589
30590 /* Override any gcc2 internal prototype to avoid an error.  */
30591 #ifdef __cplusplus
30592 extern "C"
30593 {
30594 #endif
30595 /* We use char because int might match the return type of a gcc2
30596    builtin and then its argument prototype would still apply.  */
30597 char setproctitle ();
30598 /* The GNU C library defines this for functions which it implements
30599     to always fail with ENOSYS.  Some functions are actually named
30600     something starting with __ and the normal name is an alias.  */
30601 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
30602 choke me
30603 #else
30604 char (*f) () = setproctitle;
30605 #endif
30606 #ifdef __cplusplus
30607 }
30608 #endif
30609
30610 int
30611 main ()
30612 {
30613 return f != setproctitle;
30614   ;
30615   return 0;
30616 }
30617 _ACEOF
30618 rm -f conftest.$ac_objext conftest$ac_exeext
30619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30620   (eval $ac_link) 2>conftest.er1
30621   ac_status=$?
30622   grep -v '^ *+' conftest.er1 >conftest.err
30623   rm -f conftest.er1
30624   cat conftest.err >&5
30625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626   (exit $ac_status); } &&
30627          { ac_try='test -z "$ac_c_werror_flag"
30628                          || test ! -s conftest.err'
30629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30630   (eval $ac_try) 2>&5
30631   ac_status=$?
30632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633   (exit $ac_status); }; } &&
30634          { ac_try='test -s conftest$ac_exeext'
30635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30636   (eval $ac_try) 2>&5
30637   ac_status=$?
30638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639   (exit $ac_status); }; }; then
30640   ac_cv_func_setproctitle=yes
30641 else
30642   echo "$as_me: failed program was:" >&5
30643 sed 's/^/| /' conftest.$ac_ext >&5
30644
30645 ac_cv_func_setproctitle=no
30646 fi
30647 rm -f conftest.err conftest.$ac_objext \
30648       conftest$ac_exeext conftest.$ac_ext
30649 fi
30650 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
30651 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
30652 if test $ac_cv_func_setproctitle = yes; then
30653   have_setproctitle=yes
30654 else
30655
30656                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
30657 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
30658 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
30659   echo $ECHO_N "(cached) $ECHO_C" >&6
30660 else
30661   ac_check_lib_save_LIBS=$LIBS
30662 LIBS="-lutil  $LIBS"
30663 cat >conftest.$ac_ext <<_ACEOF
30664 /* confdefs.h.  */
30665 _ACEOF
30666 cat confdefs.h >>conftest.$ac_ext
30667 cat >>conftest.$ac_ext <<_ACEOF
30668 /* end confdefs.h.  */
30669
30670 /* Override any gcc2 internal prototype to avoid an error.  */
30671 #ifdef __cplusplus
30672 extern "C"
30673 #endif
30674 /* We use char because int might match the return type of a gcc2
30675    builtin and then its argument prototype would still apply.  */
30676 char setproctitle ();
30677 int
30678 main ()
30679 {
30680 setproctitle ();
30681   ;
30682   return 0;
30683 }
30684 _ACEOF
30685 rm -f conftest.$ac_objext conftest$ac_exeext
30686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30687   (eval $ac_link) 2>conftest.er1
30688   ac_status=$?
30689   grep -v '^ *+' conftest.er1 >conftest.err
30690   rm -f conftest.er1
30691   cat conftest.err >&5
30692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693   (exit $ac_status); } &&
30694          { ac_try='test -z "$ac_c_werror_flag"
30695                          || test ! -s conftest.err'
30696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30697   (eval $ac_try) 2>&5
30698   ac_status=$?
30699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30700   (exit $ac_status); }; } &&
30701          { ac_try='test -s conftest$ac_exeext'
30702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30703   (eval $ac_try) 2>&5
30704   ac_status=$?
30705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706   (exit $ac_status); }; }; then
30707   ac_cv_lib_util_setproctitle=yes
30708 else
30709   echo "$as_me: failed program was:" >&5
30710 sed 's/^/| /' conftest.$ac_ext >&5
30711
30712 ac_cv_lib_util_setproctitle=no
30713 fi
30714 rm -f conftest.err conftest.$ac_objext \
30715       conftest$ac_exeext conftest.$ac_ext
30716 LIBS=$ac_check_lib_save_LIBS
30717 fi
30718 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
30719 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
30720 if test $ac_cv_lib_util_setproctitle = yes; then
30721   have_setproctitle=yes
30722                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
30723 else
30724   have_setproctitle=no
30725                         case $LIBOBJS in
30726     "setproctitle.$ac_objext"   | \
30727   *" setproctitle.$ac_objext"   | \
30728     "setproctitle.$ac_objext "* | \
30729   *" setproctitle.$ac_objext "* ) ;;
30730   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
30731 esac
30732
30733                         LIBSRCS="$LIBSRCS setproctitle.c"
30734 fi
30735
30736 fi
30737
30738
30739         if test $have_setproctitle = yes ; then
30740
30741 cat >>confdefs.h <<\_ACEOF
30742 #define HAVE_SETPROCTITLE 1
30743 _ACEOF
30744
30745         fi
30746 fi
30747
30748 if test $ol_enable_slp != no ; then
30749
30750 for ac_header in slp.h
30751 do
30752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30754   echo "$as_me:$LINENO: checking for $ac_header" >&5
30755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30757   echo $ECHO_N "(cached) $ECHO_C" >&6
30758 fi
30759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30761 else
30762   # Is the header compilable?
30763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30765 cat >conftest.$ac_ext <<_ACEOF
30766 /* confdefs.h.  */
30767 _ACEOF
30768 cat confdefs.h >>conftest.$ac_ext
30769 cat >>conftest.$ac_ext <<_ACEOF
30770 /* end confdefs.h.  */
30771 $ac_includes_default
30772 #include <$ac_header>
30773 _ACEOF
30774 rm -f conftest.$ac_objext
30775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30776   (eval $ac_compile) 2>conftest.er1
30777   ac_status=$?
30778   grep -v '^ *+' conftest.er1 >conftest.err
30779   rm -f conftest.er1
30780   cat conftest.err >&5
30781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782   (exit $ac_status); } &&
30783          { ac_try='test -z "$ac_c_werror_flag"
30784                          || test ! -s conftest.err'
30785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30786   (eval $ac_try) 2>&5
30787   ac_status=$?
30788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789   (exit $ac_status); }; } &&
30790          { ac_try='test -s conftest.$ac_objext'
30791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30792   (eval $ac_try) 2>&5
30793   ac_status=$?
30794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795   (exit $ac_status); }; }; then
30796   ac_header_compiler=yes
30797 else
30798   echo "$as_me: failed program was:" >&5
30799 sed 's/^/| /' conftest.$ac_ext >&5
30800
30801 ac_header_compiler=no
30802 fi
30803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30805 echo "${ECHO_T}$ac_header_compiler" >&6
30806
30807 # Is the header present?
30808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30810 cat >conftest.$ac_ext <<_ACEOF
30811 /* confdefs.h.  */
30812 _ACEOF
30813 cat confdefs.h >>conftest.$ac_ext
30814 cat >>conftest.$ac_ext <<_ACEOF
30815 /* end confdefs.h.  */
30816 #include <$ac_header>
30817 _ACEOF
30818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30819   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30820   ac_status=$?
30821   grep -v '^ *+' conftest.er1 >conftest.err
30822   rm -f conftest.er1
30823   cat conftest.err >&5
30824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825   (exit $ac_status); } >/dev/null; then
30826   if test -s conftest.err; then
30827     ac_cpp_err=$ac_c_preproc_warn_flag
30828     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30829   else
30830     ac_cpp_err=
30831   fi
30832 else
30833   ac_cpp_err=yes
30834 fi
30835 if test -z "$ac_cpp_err"; then
30836   ac_header_preproc=yes
30837 else
30838   echo "$as_me: failed program was:" >&5
30839 sed 's/^/| /' conftest.$ac_ext >&5
30840
30841   ac_header_preproc=no
30842 fi
30843 rm -f conftest.err conftest.$ac_ext
30844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30845 echo "${ECHO_T}$ac_header_preproc" >&6
30846
30847 # So?  What about this header?
30848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30849   yes:no: )
30850     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30854     ac_header_preproc=yes
30855     ;;
30856   no:yes:* )
30857     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30859     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30860 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30861     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30863     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30864 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30867     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30869     (
30870       cat <<\_ASBOX
30871 ## --------------------------------------------- ##
30872 ## Report this to <http://www.openldap.org/its/> ##
30873 ## --------------------------------------------- ##
30874 _ASBOX
30875     ) |
30876       sed "s/^/$as_me: WARNING:     /" >&2
30877     ;;
30878 esac
30879 echo "$as_me:$LINENO: checking for $ac_header" >&5
30880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30882   echo $ECHO_N "(cached) $ECHO_C" >&6
30883 else
30884   eval "$as_ac_Header=\$ac_header_preproc"
30885 fi
30886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30888
30889 fi
30890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30891   cat >>confdefs.h <<_ACEOF
30892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30893 _ACEOF
30894
30895 fi
30896
30897 done
30898
30899
30900         if test $ac_cv_header_slp_h = yes ; then
30901                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
30902 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
30903 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
30904   echo $ECHO_N "(cached) $ECHO_C" >&6
30905 else
30906   ac_check_lib_save_LIBS=$LIBS
30907 LIBS="-lslp  $LIBS"
30908 cat >conftest.$ac_ext <<_ACEOF
30909 /* confdefs.h.  */
30910 _ACEOF
30911 cat confdefs.h >>conftest.$ac_ext
30912 cat >>conftest.$ac_ext <<_ACEOF
30913 /* end confdefs.h.  */
30914
30915 /* Override any gcc2 internal prototype to avoid an error.  */
30916 #ifdef __cplusplus
30917 extern "C"
30918 #endif
30919 /* We use char because int might match the return type of a gcc2
30920    builtin and then its argument prototype would still apply.  */
30921 char SLPOpen ();
30922 int
30923 main ()
30924 {
30925 SLPOpen ();
30926   ;
30927   return 0;
30928 }
30929 _ACEOF
30930 rm -f conftest.$ac_objext conftest$ac_exeext
30931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30932   (eval $ac_link) 2>conftest.er1
30933   ac_status=$?
30934   grep -v '^ *+' conftest.er1 >conftest.err
30935   rm -f conftest.er1
30936   cat conftest.err >&5
30937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30938   (exit $ac_status); } &&
30939          { ac_try='test -z "$ac_c_werror_flag"
30940                          || test ! -s conftest.err'
30941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30942   (eval $ac_try) 2>&5
30943   ac_status=$?
30944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945   (exit $ac_status); }; } &&
30946          { ac_try='test -s conftest$ac_exeext'
30947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30948   (eval $ac_try) 2>&5
30949   ac_status=$?
30950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951   (exit $ac_status); }; }; then
30952   ac_cv_lib_slp_SLPOpen=yes
30953 else
30954   echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.$ac_ext >&5
30956
30957 ac_cv_lib_slp_SLPOpen=no
30958 fi
30959 rm -f conftest.err conftest.$ac_objext \
30960       conftest$ac_exeext conftest.$ac_ext
30961 LIBS=$ac_check_lib_save_LIBS
30962 fi
30963 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
30964 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
30965 if test $ac_cv_lib_slp_SLPOpen = yes; then
30966   have_slp=yes
30967 else
30968   have_slp=no
30969 fi
30970
30971                 if test $have_slp = yes ; then
30972
30973 cat >>confdefs.h <<\_ACEOF
30974 #define HAVE_SLP 1
30975 _ACEOF
30976
30977                         SLAPD_SLP_LIBS=-lslp
30978                 fi
30979
30980         elif test $ol_enable_slp = yes ; then
30981                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
30982 echo "$as_me: error: SLP not found" >&2;}
30983    { (exit 1); exit 1; }; }
30984         fi
30985 fi
30986
30987
30988 echo "$as_me:$LINENO: checking for mode_t" >&5
30989 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30990 if test "${ac_cv_type_mode_t+set}" = set; then
30991   echo $ECHO_N "(cached) $ECHO_C" >&6
30992 else
30993   cat >conftest.$ac_ext <<_ACEOF
30994 /* confdefs.h.  */
30995 _ACEOF
30996 cat confdefs.h >>conftest.$ac_ext
30997 cat >>conftest.$ac_ext <<_ACEOF
30998 /* end confdefs.h.  */
30999 $ac_includes_default
31000 int
31001 main ()
31002 {
31003 if ((mode_t *) 0)
31004   return 0;
31005 if (sizeof (mode_t))
31006   return 0;
31007   ;
31008   return 0;
31009 }
31010 _ACEOF
31011 rm -f conftest.$ac_objext
31012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31013   (eval $ac_compile) 2>conftest.er1
31014   ac_status=$?
31015   grep -v '^ *+' conftest.er1 >conftest.err
31016   rm -f conftest.er1
31017   cat conftest.err >&5
31018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019   (exit $ac_status); } &&
31020          { ac_try='test -z "$ac_c_werror_flag"
31021                          || test ! -s conftest.err'
31022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31023   (eval $ac_try) 2>&5
31024   ac_status=$?
31025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31026   (exit $ac_status); }; } &&
31027          { ac_try='test -s conftest.$ac_objext'
31028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31029   (eval $ac_try) 2>&5
31030   ac_status=$?
31031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032   (exit $ac_status); }; }; then
31033   ac_cv_type_mode_t=yes
31034 else
31035   echo "$as_me: failed program was:" >&5
31036 sed 's/^/| /' conftest.$ac_ext >&5
31037
31038 ac_cv_type_mode_t=no
31039 fi
31040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31041 fi
31042 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31043 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31044 if test $ac_cv_type_mode_t = yes; then
31045   :
31046 else
31047
31048 cat >>confdefs.h <<_ACEOF
31049 #define mode_t int
31050 _ACEOF
31051
31052 fi
31053
31054 echo "$as_me:$LINENO: checking for off_t" >&5
31055 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31056 if test "${ac_cv_type_off_t+set}" = set; then
31057   echo $ECHO_N "(cached) $ECHO_C" >&6
31058 else
31059   cat >conftest.$ac_ext <<_ACEOF
31060 /* confdefs.h.  */
31061 _ACEOF
31062 cat confdefs.h >>conftest.$ac_ext
31063 cat >>conftest.$ac_ext <<_ACEOF
31064 /* end confdefs.h.  */
31065 $ac_includes_default
31066 int
31067 main ()
31068 {
31069 if ((off_t *) 0)
31070   return 0;
31071 if (sizeof (off_t))
31072   return 0;
31073   ;
31074   return 0;
31075 }
31076 _ACEOF
31077 rm -f conftest.$ac_objext
31078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31079   (eval $ac_compile) 2>conftest.er1
31080   ac_status=$?
31081   grep -v '^ *+' conftest.er1 >conftest.err
31082   rm -f conftest.er1
31083   cat conftest.err >&5
31084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085   (exit $ac_status); } &&
31086          { ac_try='test -z "$ac_c_werror_flag"
31087                          || test ! -s conftest.err'
31088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31089   (eval $ac_try) 2>&5
31090   ac_status=$?
31091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092   (exit $ac_status); }; } &&
31093          { ac_try='test -s conftest.$ac_objext'
31094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31095   (eval $ac_try) 2>&5
31096   ac_status=$?
31097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31098   (exit $ac_status); }; }; then
31099   ac_cv_type_off_t=yes
31100 else
31101   echo "$as_me: failed program was:" >&5
31102 sed 's/^/| /' conftest.$ac_ext >&5
31103
31104 ac_cv_type_off_t=no
31105 fi
31106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31107 fi
31108 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31109 echo "${ECHO_T}$ac_cv_type_off_t" >&6
31110 if test $ac_cv_type_off_t = yes; then
31111   :
31112 else
31113
31114 cat >>confdefs.h <<_ACEOF
31115 #define off_t long
31116 _ACEOF
31117
31118 fi
31119
31120 echo "$as_me:$LINENO: checking for pid_t" >&5
31121 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31122 if test "${ac_cv_type_pid_t+set}" = set; then
31123   echo $ECHO_N "(cached) $ECHO_C" >&6
31124 else
31125   cat >conftest.$ac_ext <<_ACEOF
31126 /* confdefs.h.  */
31127 _ACEOF
31128 cat confdefs.h >>conftest.$ac_ext
31129 cat >>conftest.$ac_ext <<_ACEOF
31130 /* end confdefs.h.  */
31131 $ac_includes_default
31132 int
31133 main ()
31134 {
31135 if ((pid_t *) 0)
31136   return 0;
31137 if (sizeof (pid_t))
31138   return 0;
31139   ;
31140   return 0;
31141 }
31142 _ACEOF
31143 rm -f conftest.$ac_objext
31144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31145   (eval $ac_compile) 2>conftest.er1
31146   ac_status=$?
31147   grep -v '^ *+' conftest.er1 >conftest.err
31148   rm -f conftest.er1
31149   cat conftest.err >&5
31150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151   (exit $ac_status); } &&
31152          { ac_try='test -z "$ac_c_werror_flag"
31153                          || test ! -s conftest.err'
31154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31155   (eval $ac_try) 2>&5
31156   ac_status=$?
31157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158   (exit $ac_status); }; } &&
31159          { ac_try='test -s conftest.$ac_objext'
31160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31161   (eval $ac_try) 2>&5
31162   ac_status=$?
31163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164   (exit $ac_status); }; }; then
31165   ac_cv_type_pid_t=yes
31166 else
31167   echo "$as_me: failed program was:" >&5
31168 sed 's/^/| /' conftest.$ac_ext >&5
31169
31170 ac_cv_type_pid_t=no
31171 fi
31172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31173 fi
31174 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31175 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31176 if test $ac_cv_type_pid_t = yes; then
31177   :
31178 else
31179
31180 cat >>confdefs.h <<_ACEOF
31181 #define pid_t int
31182 _ACEOF
31183
31184 fi
31185
31186 echo "$as_me:$LINENO: checking for ssize_t" >&5
31187 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
31188 if test "${ac_cv_type_ssize_t+set}" = set; then
31189   echo $ECHO_N "(cached) $ECHO_C" >&6
31190 else
31191   cat >conftest.$ac_ext <<_ACEOF
31192 /* confdefs.h.  */
31193 _ACEOF
31194 cat confdefs.h >>conftest.$ac_ext
31195 cat >>conftest.$ac_ext <<_ACEOF
31196 /* end confdefs.h.  */
31197 $ac_includes_default
31198 int
31199 main ()
31200 {
31201 if ((ssize_t *) 0)
31202   return 0;
31203 if (sizeof (ssize_t))
31204   return 0;
31205   ;
31206   return 0;
31207 }
31208 _ACEOF
31209 rm -f conftest.$ac_objext
31210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31211   (eval $ac_compile) 2>conftest.er1
31212   ac_status=$?
31213   grep -v '^ *+' conftest.er1 >conftest.err
31214   rm -f conftest.er1
31215   cat conftest.err >&5
31216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217   (exit $ac_status); } &&
31218          { ac_try='test -z "$ac_c_werror_flag"
31219                          || test ! -s conftest.err'
31220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31221   (eval $ac_try) 2>&5
31222   ac_status=$?
31223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224   (exit $ac_status); }; } &&
31225          { ac_try='test -s conftest.$ac_objext'
31226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31227   (eval $ac_try) 2>&5
31228   ac_status=$?
31229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230   (exit $ac_status); }; }; then
31231   ac_cv_type_ssize_t=yes
31232 else
31233   echo "$as_me: failed program was:" >&5
31234 sed 's/^/| /' conftest.$ac_ext >&5
31235
31236 ac_cv_type_ssize_t=no
31237 fi
31238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31239 fi
31240 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31241 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
31242 if test $ac_cv_type_ssize_t = yes; then
31243   :
31244 else
31245
31246 cat >>confdefs.h <<_ACEOF
31247 #define ssize_t signed int
31248 _ACEOF
31249
31250 fi
31251
31252 echo "$as_me:$LINENO: checking for caddr_t" >&5
31253 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
31254 if test "${ac_cv_type_caddr_t+set}" = set; then
31255   echo $ECHO_N "(cached) $ECHO_C" >&6
31256 else
31257   cat >conftest.$ac_ext <<_ACEOF
31258 /* confdefs.h.  */
31259 _ACEOF
31260 cat confdefs.h >>conftest.$ac_ext
31261 cat >>conftest.$ac_ext <<_ACEOF
31262 /* end confdefs.h.  */
31263 $ac_includes_default
31264 int
31265 main ()
31266 {
31267 if ((caddr_t *) 0)
31268   return 0;
31269 if (sizeof (caddr_t))
31270   return 0;
31271   ;
31272   return 0;
31273 }
31274 _ACEOF
31275 rm -f conftest.$ac_objext
31276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31277   (eval $ac_compile) 2>conftest.er1
31278   ac_status=$?
31279   grep -v '^ *+' conftest.er1 >conftest.err
31280   rm -f conftest.er1
31281   cat conftest.err >&5
31282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283   (exit $ac_status); } &&
31284          { ac_try='test -z "$ac_c_werror_flag"
31285                          || test ! -s conftest.err'
31286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31287   (eval $ac_try) 2>&5
31288   ac_status=$?
31289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290   (exit $ac_status); }; } &&
31291          { ac_try='test -s conftest.$ac_objext'
31292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31293   (eval $ac_try) 2>&5
31294   ac_status=$?
31295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296   (exit $ac_status); }; }; then
31297   ac_cv_type_caddr_t=yes
31298 else
31299   echo "$as_me: failed program was:" >&5
31300 sed 's/^/| /' conftest.$ac_ext >&5
31301
31302 ac_cv_type_caddr_t=no
31303 fi
31304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31305 fi
31306 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31307 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
31308 if test $ac_cv_type_caddr_t = yes; then
31309   :
31310 else
31311
31312 cat >>confdefs.h <<_ACEOF
31313 #define caddr_t char *
31314 _ACEOF
31315
31316 fi
31317
31318 echo "$as_me:$LINENO: checking for size_t" >&5
31319 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31320 if test "${ac_cv_type_size_t+set}" = set; then
31321   echo $ECHO_N "(cached) $ECHO_C" >&6
31322 else
31323   cat >conftest.$ac_ext <<_ACEOF
31324 /* confdefs.h.  */
31325 _ACEOF
31326 cat confdefs.h >>conftest.$ac_ext
31327 cat >>conftest.$ac_ext <<_ACEOF
31328 /* end confdefs.h.  */
31329 $ac_includes_default
31330 int
31331 main ()
31332 {
31333 if ((size_t *) 0)
31334   return 0;
31335 if (sizeof (size_t))
31336   return 0;
31337   ;
31338   return 0;
31339 }
31340 _ACEOF
31341 rm -f conftest.$ac_objext
31342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31343   (eval $ac_compile) 2>conftest.er1
31344   ac_status=$?
31345   grep -v '^ *+' conftest.er1 >conftest.err
31346   rm -f conftest.er1
31347   cat conftest.err >&5
31348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349   (exit $ac_status); } &&
31350          { ac_try='test -z "$ac_c_werror_flag"
31351                          || test ! -s conftest.err'
31352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31353   (eval $ac_try) 2>&5
31354   ac_status=$?
31355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356   (exit $ac_status); }; } &&
31357          { ac_try='test -s conftest.$ac_objext'
31358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31359   (eval $ac_try) 2>&5
31360   ac_status=$?
31361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362   (exit $ac_status); }; }; then
31363   ac_cv_type_size_t=yes
31364 else
31365   echo "$as_me: failed program was:" >&5
31366 sed 's/^/| /' conftest.$ac_ext >&5
31367
31368 ac_cv_type_size_t=no
31369 fi
31370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31371 fi
31372 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31373 echo "${ECHO_T}$ac_cv_type_size_t" >&6
31374 if test $ac_cv_type_size_t = yes; then
31375   :
31376 else
31377
31378 cat >>confdefs.h <<_ACEOF
31379 #define size_t unsigned
31380 _ACEOF
31381
31382 fi
31383
31384
31385 echo "$as_me:$LINENO: checking for long long" >&5
31386 echo $ECHO_N "checking for long long... $ECHO_C" >&6
31387 if test "${ac_cv_type_long_long+set}" = set; then
31388   echo $ECHO_N "(cached) $ECHO_C" >&6
31389 else
31390   cat >conftest.$ac_ext <<_ACEOF
31391 /* confdefs.h.  */
31392 _ACEOF
31393 cat confdefs.h >>conftest.$ac_ext
31394 cat >>conftest.$ac_ext <<_ACEOF
31395 /* end confdefs.h.  */
31396 $ac_includes_default
31397 int
31398 main ()
31399 {
31400 if ((long long *) 0)
31401   return 0;
31402 if (sizeof (long long))
31403   return 0;
31404   ;
31405   return 0;
31406 }
31407 _ACEOF
31408 rm -f conftest.$ac_objext
31409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31410   (eval $ac_compile) 2>conftest.er1
31411   ac_status=$?
31412   grep -v '^ *+' conftest.er1 >conftest.err
31413   rm -f conftest.er1
31414   cat conftest.err >&5
31415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31416   (exit $ac_status); } &&
31417          { ac_try='test -z "$ac_c_werror_flag"
31418                          || test ! -s conftest.err'
31419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31420   (eval $ac_try) 2>&5
31421   ac_status=$?
31422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423   (exit $ac_status); }; } &&
31424          { ac_try='test -s conftest.$ac_objext'
31425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31426   (eval $ac_try) 2>&5
31427   ac_status=$?
31428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429   (exit $ac_status); }; }; then
31430   ac_cv_type_long_long=yes
31431 else
31432   echo "$as_me: failed program was:" >&5
31433 sed 's/^/| /' conftest.$ac_ext >&5
31434
31435 ac_cv_type_long_long=no
31436 fi
31437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31438 fi
31439 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
31440 echo "${ECHO_T}$ac_cv_type_long_long" >&6
31441 if test $ac_cv_type_long_long = yes; then
31442
31443 cat >>confdefs.h <<_ACEOF
31444 #define HAVE_LONG_LONG 1
31445 _ACEOF
31446
31447
31448 fi
31449
31450 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
31451 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
31452 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
31453   echo $ECHO_N "(cached) $ECHO_C" >&6
31454 else
31455   cat >conftest.$ac_ext <<_ACEOF
31456 /* confdefs.h.  */
31457 _ACEOF
31458 cat confdefs.h >>conftest.$ac_ext
31459 cat >>conftest.$ac_ext <<_ACEOF
31460 /* end confdefs.h.  */
31461 $ac_includes_default
31462 int
31463 main ()
31464 {
31465 if ((ptrdiff_t *) 0)
31466   return 0;
31467 if (sizeof (ptrdiff_t))
31468   return 0;
31469   ;
31470   return 0;
31471 }
31472 _ACEOF
31473 rm -f conftest.$ac_objext
31474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31475   (eval $ac_compile) 2>conftest.er1
31476   ac_status=$?
31477   grep -v '^ *+' conftest.er1 >conftest.err
31478   rm -f conftest.er1
31479   cat conftest.err >&5
31480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481   (exit $ac_status); } &&
31482          { ac_try='test -z "$ac_c_werror_flag"
31483                          || test ! -s conftest.err'
31484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31485   (eval $ac_try) 2>&5
31486   ac_status=$?
31487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488   (exit $ac_status); }; } &&
31489          { ac_try='test -s conftest.$ac_objext'
31490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31491   (eval $ac_try) 2>&5
31492   ac_status=$?
31493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494   (exit $ac_status); }; }; then
31495   ac_cv_type_ptrdiff_t=yes
31496 else
31497   echo "$as_me: failed program was:" >&5
31498 sed 's/^/| /' conftest.$ac_ext >&5
31499
31500 ac_cv_type_ptrdiff_t=no
31501 fi
31502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31503 fi
31504 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
31505 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
31506 if test $ac_cv_type_ptrdiff_t = yes; then
31507
31508 cat >>confdefs.h <<_ACEOF
31509 #define HAVE_PTRDIFF_T 1
31510 _ACEOF
31511
31512
31513 fi
31514
31515
31516
31517 echo "$as_me:$LINENO: checking for socklen_t" >&5
31518 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
31519 if test "${ac_cv_type_socklen_t+set}" = set; then
31520   echo $ECHO_N "(cached) $ECHO_C" >&6
31521 else
31522   cat >conftest.$ac_ext <<_ACEOF
31523 /* confdefs.h.  */
31524 _ACEOF
31525 cat confdefs.h >>conftest.$ac_ext
31526 cat >>conftest.$ac_ext <<_ACEOF
31527 /* end confdefs.h.  */
31528 $ac_includes_default
31529 #ifdef HAVE_SYS_SOCKET_H
31530 #include <sys/socket.h>
31531 #endif
31532
31533 int
31534 main ()
31535 {
31536 if ((socklen_t *) 0)
31537   return 0;
31538 if (sizeof (socklen_t))
31539   return 0;
31540   ;
31541   return 0;
31542 }
31543 _ACEOF
31544 rm -f conftest.$ac_objext
31545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31546   (eval $ac_compile) 2>conftest.er1
31547   ac_status=$?
31548   grep -v '^ *+' conftest.er1 >conftest.err
31549   rm -f conftest.er1
31550   cat conftest.err >&5
31551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31552   (exit $ac_status); } &&
31553          { ac_try='test -z "$ac_c_werror_flag"
31554                          || test ! -s conftest.err'
31555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31556   (eval $ac_try) 2>&5
31557   ac_status=$?
31558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559   (exit $ac_status); }; } &&
31560          { ac_try='test -s conftest.$ac_objext'
31561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31562   (eval $ac_try) 2>&5
31563   ac_status=$?
31564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565   (exit $ac_status); }; }; then
31566   ac_cv_type_socklen_t=yes
31567 else
31568   echo "$as_me: failed program was:" >&5
31569 sed 's/^/| /' conftest.$ac_ext >&5
31570
31571 ac_cv_type_socklen_t=no
31572 fi
31573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31574 fi
31575 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
31576 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
31577
31578
31579 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
31580 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
31581 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
31582   echo $ECHO_N "(cached) $ECHO_C" >&6
31583 else
31584
31585         set socklen_t int unsigned "unsigned long" long size_t
31586         test "$ac_cv_type_socklen_t" = yes || shift
31587         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
31588         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
31589                 cat >conftest.$ac_ext <<_ACEOF
31590 /* confdefs.h.  */
31591 _ACEOF
31592 cat confdefs.h >>conftest.$ac_ext
31593 cat >>conftest.$ac_ext <<_ACEOF
31594 /* end confdefs.h.  */
31595 $ac_includes_default
31596 #ifdef HAVE_SYS_SOCKET_H
31597 #include <sys/socket.h>
31598 #endif
31599 extern int accept(int s, $addrtype *ap, $lentype *lp);
31600
31601 int
31602 main ()
31603 {
31604
31605 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
31606
31607   ;
31608   return 0;
31609 }
31610 _ACEOF
31611 rm -f conftest.$ac_objext
31612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31613   (eval $ac_compile) 2>conftest.er1
31614   ac_status=$?
31615   grep -v '^ *+' conftest.er1 >conftest.err
31616   rm -f conftest.er1
31617   cat conftest.err >&5
31618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619   (exit $ac_status); } &&
31620          { ac_try='test -z "$ac_c_werror_flag"
31621                          || test ! -s conftest.err'
31622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31623   (eval $ac_try) 2>&5
31624   ac_status=$?
31625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626   (exit $ac_status); }; } &&
31627          { ac_try='test -s conftest.$ac_objext'
31628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31629   (eval $ac_try) 2>&5
31630   ac_status=$?
31631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632   (exit $ac_status); }; }; then
31633   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
31634 else
31635   echo "$as_me: failed program was:" >&5
31636 sed 's/^/| /' conftest.$ac_ext >&5
31637
31638 fi
31639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31640         done ; done
31641 fi
31642
31643 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
31644 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
31645
31646 cat >>confdefs.h <<_ACEOF
31647 #define ber_socklen_t $ol_cv_type_ber_socklen_t
31648 _ACEOF
31649
31650
31651 if test "$ac_cv_type_socklen_t" != yes; then
31652
31653 cat >>confdefs.h <<_ACEOF
31654 #define socklen_t $ol_cv_type_ber_socklen_t
31655 _ACEOF
31656
31657 fi
31658
31659
31660 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31661 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
31662 if test "${ac_cv_type_signal+set}" = set; then
31663   echo $ECHO_N "(cached) $ECHO_C" >&6
31664 else
31665   cat >conftest.$ac_ext <<_ACEOF
31666 /* confdefs.h.  */
31667 _ACEOF
31668 cat confdefs.h >>conftest.$ac_ext
31669 cat >>conftest.$ac_ext <<_ACEOF
31670 /* end confdefs.h.  */
31671 #include <sys/types.h>
31672 #include <signal.h>
31673 #ifdef signal
31674 # undef signal
31675 #endif
31676 #ifdef __cplusplus
31677 extern "C" void (*signal (int, void (*)(int)))(int);
31678 #else
31679 void (*signal ()) ();
31680 #endif
31681
31682 int
31683 main ()
31684 {
31685 int i;
31686   ;
31687   return 0;
31688 }
31689 _ACEOF
31690 rm -f conftest.$ac_objext
31691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31692   (eval $ac_compile) 2>conftest.er1
31693   ac_status=$?
31694   grep -v '^ *+' conftest.er1 >conftest.err
31695   rm -f conftest.er1
31696   cat conftest.err >&5
31697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698   (exit $ac_status); } &&
31699          { ac_try='test -z "$ac_c_werror_flag"
31700                          || test ! -s conftest.err'
31701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31702   (eval $ac_try) 2>&5
31703   ac_status=$?
31704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705   (exit $ac_status); }; } &&
31706          { ac_try='test -s conftest.$ac_objext'
31707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31708   (eval $ac_try) 2>&5
31709   ac_status=$?
31710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711   (exit $ac_status); }; }; then
31712   ac_cv_type_signal=void
31713 else
31714   echo "$as_me: failed program was:" >&5
31715 sed 's/^/| /' conftest.$ac_ext >&5
31716
31717 ac_cv_type_signal=int
31718 fi
31719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31720 fi
31721 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31722 echo "${ECHO_T}$ac_cv_type_signal" >&6
31723
31724 cat >>confdefs.h <<_ACEOF
31725 #define RETSIGTYPE $ac_cv_type_signal
31726 _ACEOF
31727
31728
31729
31730 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
31731 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
31732 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
31733   echo $ECHO_N "(cached) $ECHO_C" >&6
31734 else
31735   cat >conftest.$ac_ext <<_ACEOF
31736 /* confdefs.h.  */
31737 _ACEOF
31738 cat confdefs.h >>conftest.$ac_ext
31739 cat >>conftest.$ac_ext <<_ACEOF
31740 /* end confdefs.h.  */
31741 $ac_includes_default
31742 #include <signal.h>
31743
31744
31745 int
31746 main ()
31747 {
31748 if ((sig_atomic_t *) 0)
31749   return 0;
31750 if (sizeof (sig_atomic_t))
31751   return 0;
31752   ;
31753   return 0;
31754 }
31755 _ACEOF
31756 rm -f conftest.$ac_objext
31757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31758   (eval $ac_compile) 2>conftest.er1
31759   ac_status=$?
31760   grep -v '^ *+' conftest.er1 >conftest.err
31761   rm -f conftest.er1
31762   cat conftest.err >&5
31763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764   (exit $ac_status); } &&
31765          { ac_try='test -z "$ac_c_werror_flag"
31766                          || test ! -s conftest.err'
31767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31768   (eval $ac_try) 2>&5
31769   ac_status=$?
31770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771   (exit $ac_status); }; } &&
31772          { ac_try='test -s conftest.$ac_objext'
31773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31774   (eval $ac_try) 2>&5
31775   ac_status=$?
31776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31777   (exit $ac_status); }; }; then
31778   ac_cv_type_sig_atomic_t=yes
31779 else
31780   echo "$as_me: failed program was:" >&5
31781 sed 's/^/| /' conftest.$ac_ext >&5
31782
31783 ac_cv_type_sig_atomic_t=no
31784 fi
31785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31786 fi
31787 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
31788 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
31789 if test $ac_cv_type_sig_atomic_t = yes; then
31790   :
31791 else
31792
31793 cat >>confdefs.h <<_ACEOF
31794 #define sig_atomic_t int
31795 _ACEOF
31796
31797 fi
31798
31799
31800 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
31801 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
31802 if test "${ac_cv_type_uid_t+set}" = set; then
31803   echo $ECHO_N "(cached) $ECHO_C" >&6
31804 else
31805   cat >conftest.$ac_ext <<_ACEOF
31806 /* confdefs.h.  */
31807 _ACEOF
31808 cat confdefs.h >>conftest.$ac_ext
31809 cat >>conftest.$ac_ext <<_ACEOF
31810 /* end confdefs.h.  */
31811 #include <sys/types.h>
31812
31813 _ACEOF
31814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31815   $EGREP "uid_t" >/dev/null 2>&1; then
31816   ac_cv_type_uid_t=yes
31817 else
31818   ac_cv_type_uid_t=no
31819 fi
31820 rm -f conftest*
31821
31822 fi
31823 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
31824 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
31825 if test $ac_cv_type_uid_t = no; then
31826
31827 cat >>confdefs.h <<\_ACEOF
31828 #define uid_t int
31829 _ACEOF
31830
31831
31832 cat >>confdefs.h <<\_ACEOF
31833 #define gid_t int
31834 _ACEOF
31835
31836 fi
31837
31838
31839 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31840 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
31841 if test "${ac_cv_header_time+set}" = set; then
31842   echo $ECHO_N "(cached) $ECHO_C" >&6
31843 else
31844   cat >conftest.$ac_ext <<_ACEOF
31845 /* confdefs.h.  */
31846 _ACEOF
31847 cat confdefs.h >>conftest.$ac_ext
31848 cat >>conftest.$ac_ext <<_ACEOF
31849 /* end confdefs.h.  */
31850 #include <sys/types.h>
31851 #include <sys/time.h>
31852 #include <time.h>
31853
31854 int
31855 main ()
31856 {
31857 if ((struct tm *) 0)
31858 return 0;
31859   ;
31860   return 0;
31861 }
31862 _ACEOF
31863 rm -f conftest.$ac_objext
31864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31865   (eval $ac_compile) 2>conftest.er1
31866   ac_status=$?
31867   grep -v '^ *+' conftest.er1 >conftest.err
31868   rm -f conftest.er1
31869   cat conftest.err >&5
31870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871   (exit $ac_status); } &&
31872          { ac_try='test -z "$ac_c_werror_flag"
31873                          || test ! -s conftest.err'
31874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31875   (eval $ac_try) 2>&5
31876   ac_status=$?
31877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31878   (exit $ac_status); }; } &&
31879          { ac_try='test -s conftest.$ac_objext'
31880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31881   (eval $ac_try) 2>&5
31882   ac_status=$?
31883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884   (exit $ac_status); }; }; then
31885   ac_cv_header_time=yes
31886 else
31887   echo "$as_me: failed program was:" >&5
31888 sed 's/^/| /' conftest.$ac_ext >&5
31889
31890 ac_cv_header_time=no
31891 fi
31892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31893 fi
31894 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31895 echo "${ECHO_T}$ac_cv_header_time" >&6
31896 if test $ac_cv_header_time = yes; then
31897
31898 cat >>confdefs.h <<\_ACEOF
31899 #define TIME_WITH_SYS_TIME 1
31900 _ACEOF
31901
31902 fi
31903
31904 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31905 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
31906 if test "${ac_cv_struct_tm+set}" = set; then
31907   echo $ECHO_N "(cached) $ECHO_C" >&6
31908 else
31909   cat >conftest.$ac_ext <<_ACEOF
31910 /* confdefs.h.  */
31911 _ACEOF
31912 cat confdefs.h >>conftest.$ac_ext
31913 cat >>conftest.$ac_ext <<_ACEOF
31914 /* end confdefs.h.  */
31915 #include <sys/types.h>
31916 #include <time.h>
31917
31918 int
31919 main ()
31920 {
31921 struct tm *tp; tp->tm_sec;
31922   ;
31923   return 0;
31924 }
31925 _ACEOF
31926 rm -f conftest.$ac_objext
31927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31928   (eval $ac_compile) 2>conftest.er1
31929   ac_status=$?
31930   grep -v '^ *+' conftest.er1 >conftest.err
31931   rm -f conftest.er1
31932   cat conftest.err >&5
31933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934   (exit $ac_status); } &&
31935          { ac_try='test -z "$ac_c_werror_flag"
31936                          || test ! -s conftest.err'
31937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31938   (eval $ac_try) 2>&5
31939   ac_status=$?
31940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941   (exit $ac_status); }; } &&
31942          { ac_try='test -s conftest.$ac_objext'
31943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31944   (eval $ac_try) 2>&5
31945   ac_status=$?
31946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947   (exit $ac_status); }; }; then
31948   ac_cv_struct_tm=time.h
31949 else
31950   echo "$as_me: failed program was:" >&5
31951 sed 's/^/| /' conftest.$ac_ext >&5
31952
31953 ac_cv_struct_tm=sys/time.h
31954 fi
31955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31956 fi
31957 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31958 echo "${ECHO_T}$ac_cv_struct_tm" >&6
31959 if test $ac_cv_struct_tm = sys/time.h; then
31960
31961 cat >>confdefs.h <<\_ACEOF
31962 #define TM_IN_SYS_TIME 1
31963 _ACEOF
31964
31965 fi
31966
31967 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31968 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
31969 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31970   echo $ECHO_N "(cached) $ECHO_C" >&6
31971 else
31972   cat >conftest.$ac_ext <<_ACEOF
31973 /* confdefs.h.  */
31974 _ACEOF
31975 cat confdefs.h >>conftest.$ac_ext
31976 cat >>conftest.$ac_ext <<_ACEOF
31977 /* end confdefs.h.  */
31978 $ac_includes_default
31979 int
31980 main ()
31981 {
31982 static struct stat ac_aggr;
31983 if (ac_aggr.st_blksize)
31984 return 0;
31985   ;
31986   return 0;
31987 }
31988 _ACEOF
31989 rm -f conftest.$ac_objext
31990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31991   (eval $ac_compile) 2>conftest.er1
31992   ac_status=$?
31993   grep -v '^ *+' conftest.er1 >conftest.err
31994   rm -f conftest.er1
31995   cat conftest.err >&5
31996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997   (exit $ac_status); } &&
31998          { ac_try='test -z "$ac_c_werror_flag"
31999                          || test ! -s conftest.err'
32000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32001   (eval $ac_try) 2>&5
32002   ac_status=$?
32003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004   (exit $ac_status); }; } &&
32005          { ac_try='test -s conftest.$ac_objext'
32006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32007   (eval $ac_try) 2>&5
32008   ac_status=$?
32009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010   (exit $ac_status); }; }; then
32011   ac_cv_member_struct_stat_st_blksize=yes
32012 else
32013   echo "$as_me: failed program was:" >&5
32014 sed 's/^/| /' conftest.$ac_ext >&5
32015
32016 cat >conftest.$ac_ext <<_ACEOF
32017 /* confdefs.h.  */
32018 _ACEOF
32019 cat confdefs.h >>conftest.$ac_ext
32020 cat >>conftest.$ac_ext <<_ACEOF
32021 /* end confdefs.h.  */
32022 $ac_includes_default
32023 int
32024 main ()
32025 {
32026 static struct stat ac_aggr;
32027 if (sizeof ac_aggr.st_blksize)
32028 return 0;
32029   ;
32030   return 0;
32031 }
32032 _ACEOF
32033 rm -f conftest.$ac_objext
32034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32035   (eval $ac_compile) 2>conftest.er1
32036   ac_status=$?
32037   grep -v '^ *+' conftest.er1 >conftest.err
32038   rm -f conftest.er1
32039   cat conftest.err >&5
32040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041   (exit $ac_status); } &&
32042          { ac_try='test -z "$ac_c_werror_flag"
32043                          || test ! -s conftest.err'
32044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32045   (eval $ac_try) 2>&5
32046   ac_status=$?
32047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32048   (exit $ac_status); }; } &&
32049          { ac_try='test -s conftest.$ac_objext'
32050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32051   (eval $ac_try) 2>&5
32052   ac_status=$?
32053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054   (exit $ac_status); }; }; then
32055   ac_cv_member_struct_stat_st_blksize=yes
32056 else
32057   echo "$as_me: failed program was:" >&5
32058 sed 's/^/| /' conftest.$ac_ext >&5
32059
32060 ac_cv_member_struct_stat_st_blksize=no
32061 fi
32062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32063 fi
32064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32065 fi
32066 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32067 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
32068 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32069
32070 cat >>confdefs.h <<_ACEOF
32071 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32072 _ACEOF
32073
32074
32075 fi
32076
32077 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32078 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
32079 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32080   echo $ECHO_N "(cached) $ECHO_C" >&6
32081 else
32082   cat >conftest.$ac_ext <<_ACEOF
32083 /* confdefs.h.  */
32084 _ACEOF
32085 cat confdefs.h >>conftest.$ac_ext
32086 cat >>conftest.$ac_ext <<_ACEOF
32087 /* end confdefs.h.  */
32088 $ac_includes_default
32089 #include <pwd.h>
32090
32091 int
32092 main ()
32093 {
32094 static struct passwd ac_aggr;
32095 if (ac_aggr.pw_gecos)
32096 return 0;
32097   ;
32098   return 0;
32099 }
32100 _ACEOF
32101 rm -f conftest.$ac_objext
32102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32103   (eval $ac_compile) 2>conftest.er1
32104   ac_status=$?
32105   grep -v '^ *+' conftest.er1 >conftest.err
32106   rm -f conftest.er1
32107   cat conftest.err >&5
32108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109   (exit $ac_status); } &&
32110          { ac_try='test -z "$ac_c_werror_flag"
32111                          || test ! -s conftest.err'
32112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32113   (eval $ac_try) 2>&5
32114   ac_status=$?
32115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32116   (exit $ac_status); }; } &&
32117          { ac_try='test -s conftest.$ac_objext'
32118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32119   (eval $ac_try) 2>&5
32120   ac_status=$?
32121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122   (exit $ac_status); }; }; then
32123   ac_cv_member_struct_passwd_pw_gecos=yes
32124 else
32125   echo "$as_me: failed program was:" >&5
32126 sed 's/^/| /' conftest.$ac_ext >&5
32127
32128 cat >conftest.$ac_ext <<_ACEOF
32129 /* confdefs.h.  */
32130 _ACEOF
32131 cat confdefs.h >>conftest.$ac_ext
32132 cat >>conftest.$ac_ext <<_ACEOF
32133 /* end confdefs.h.  */
32134 $ac_includes_default
32135 #include <pwd.h>
32136
32137 int
32138 main ()
32139 {
32140 static struct passwd ac_aggr;
32141 if (sizeof ac_aggr.pw_gecos)
32142 return 0;
32143   ;
32144   return 0;
32145 }
32146 _ACEOF
32147 rm -f conftest.$ac_objext
32148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32149   (eval $ac_compile) 2>conftest.er1
32150   ac_status=$?
32151   grep -v '^ *+' conftest.er1 >conftest.err
32152   rm -f conftest.er1
32153   cat conftest.err >&5
32154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155   (exit $ac_status); } &&
32156          { ac_try='test -z "$ac_c_werror_flag"
32157                          || test ! -s conftest.err'
32158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32159   (eval $ac_try) 2>&5
32160   ac_status=$?
32161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162   (exit $ac_status); }; } &&
32163          { ac_try='test -s conftest.$ac_objext'
32164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32165   (eval $ac_try) 2>&5
32166   ac_status=$?
32167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32168   (exit $ac_status); }; }; then
32169   ac_cv_member_struct_passwd_pw_gecos=yes
32170 else
32171   echo "$as_me: failed program was:" >&5
32172 sed 's/^/| /' conftest.$ac_ext >&5
32173
32174 ac_cv_member_struct_passwd_pw_gecos=no
32175 fi
32176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32177 fi
32178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32179 fi
32180 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32181 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
32182 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32183
32184 cat >>confdefs.h <<_ACEOF
32185 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32186 _ACEOF
32187
32188
32189 fi
32190
32191 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32192 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
32193 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32194   echo $ECHO_N "(cached) $ECHO_C" >&6
32195 else
32196   cat >conftest.$ac_ext <<_ACEOF
32197 /* confdefs.h.  */
32198 _ACEOF
32199 cat confdefs.h >>conftest.$ac_ext
32200 cat >>conftest.$ac_ext <<_ACEOF
32201 /* end confdefs.h.  */
32202 $ac_includes_default
32203 #include <pwd.h>
32204
32205 int
32206 main ()
32207 {
32208 static struct passwd ac_aggr;
32209 if (ac_aggr.pw_passwd)
32210 return 0;
32211   ;
32212   return 0;
32213 }
32214 _ACEOF
32215 rm -f conftest.$ac_objext
32216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32217   (eval $ac_compile) 2>conftest.er1
32218   ac_status=$?
32219   grep -v '^ *+' conftest.er1 >conftest.err
32220   rm -f conftest.er1
32221   cat conftest.err >&5
32222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32223   (exit $ac_status); } &&
32224          { ac_try='test -z "$ac_c_werror_flag"
32225                          || test ! -s conftest.err'
32226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32227   (eval $ac_try) 2>&5
32228   ac_status=$?
32229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230   (exit $ac_status); }; } &&
32231          { ac_try='test -s conftest.$ac_objext'
32232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32233   (eval $ac_try) 2>&5
32234   ac_status=$?
32235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236   (exit $ac_status); }; }; then
32237   ac_cv_member_struct_passwd_pw_passwd=yes
32238 else
32239   echo "$as_me: failed program was:" >&5
32240 sed 's/^/| /' conftest.$ac_ext >&5
32241
32242 cat >conftest.$ac_ext <<_ACEOF
32243 /* confdefs.h.  */
32244 _ACEOF
32245 cat confdefs.h >>conftest.$ac_ext
32246 cat >>conftest.$ac_ext <<_ACEOF
32247 /* end confdefs.h.  */
32248 $ac_includes_default
32249 #include <pwd.h>
32250
32251 int
32252 main ()
32253 {
32254 static struct passwd ac_aggr;
32255 if (sizeof ac_aggr.pw_passwd)
32256 return 0;
32257   ;
32258   return 0;
32259 }
32260 _ACEOF
32261 rm -f conftest.$ac_objext
32262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32263   (eval $ac_compile) 2>conftest.er1
32264   ac_status=$?
32265   grep -v '^ *+' conftest.er1 >conftest.err
32266   rm -f conftest.er1
32267   cat conftest.err >&5
32268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269   (exit $ac_status); } &&
32270          { ac_try='test -z "$ac_c_werror_flag"
32271                          || test ! -s conftest.err'
32272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32273   (eval $ac_try) 2>&5
32274   ac_status=$?
32275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32276   (exit $ac_status); }; } &&
32277          { ac_try='test -s conftest.$ac_objext'
32278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32279   (eval $ac_try) 2>&5
32280   ac_status=$?
32281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282   (exit $ac_status); }; }; then
32283   ac_cv_member_struct_passwd_pw_passwd=yes
32284 else
32285   echo "$as_me: failed program was:" >&5
32286 sed 's/^/| /' conftest.$ac_ext >&5
32287
32288 ac_cv_member_struct_passwd_pw_passwd=no
32289 fi
32290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32291 fi
32292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32293 fi
32294 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32295 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
32296 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32297
32298 cat >>confdefs.h <<_ACEOF
32299 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32300 _ACEOF
32301
32302
32303 fi
32304
32305
32306 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32307 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
32308 if test "${ol_cv_c_upper_lower+set}" = set; then
32309   echo $ECHO_N "(cached) $ECHO_C" >&6
32310 else
32311
32312         if test "$cross_compiling" = yes; then
32313   ol_cv_c_upper_lower=safe
32314 else
32315   cat >conftest.$ac_ext <<_ACEOF
32316 /* confdefs.h.  */
32317 _ACEOF
32318 cat confdefs.h >>conftest.$ac_ext
32319 cat >>conftest.$ac_ext <<_ACEOF
32320 /* end confdefs.h.  */
32321
32322 #include <ctype.h>
32323 main()
32324 {
32325         if ('C' == toupper('C'))
32326                 exit(0);
32327         else
32328                 exit(1);
32329 }
32330 _ACEOF
32331 rm -f conftest$ac_exeext
32332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32333   (eval $ac_link) 2>&5
32334   ac_status=$?
32335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32336   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32338   (eval $ac_try) 2>&5
32339   ac_status=$?
32340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341   (exit $ac_status); }; }; then
32342   ol_cv_c_upper_lower=no
32343 else
32344   echo "$as_me: program exited with status $ac_status" >&5
32345 echo "$as_me: failed program was:" >&5
32346 sed 's/^/| /' conftest.$ac_ext >&5
32347
32348 ( exit $ac_status )
32349 ol_cv_c_upper_lower=yes
32350 fi
32351 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32352 fi
32353 fi
32354 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32355 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
32356 if test $ol_cv_c_upper_lower != no ; then
32357
32358 cat >>confdefs.h <<\_ACEOF
32359 #define C_UPPER_LOWER 1
32360 _ACEOF
32361
32362 fi
32363
32364 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32365 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
32366 if test "${ac_cv_c_const+set}" = set; then
32367   echo $ECHO_N "(cached) $ECHO_C" >&6
32368 else
32369   cat >conftest.$ac_ext <<_ACEOF
32370 /* confdefs.h.  */
32371 _ACEOF
32372 cat confdefs.h >>conftest.$ac_ext
32373 cat >>conftest.$ac_ext <<_ACEOF
32374 /* end confdefs.h.  */
32375
32376 int
32377 main ()
32378 {
32379 /* FIXME: Include the comments suggested by Paul. */
32380 #ifndef __cplusplus
32381   /* Ultrix mips cc rejects this.  */
32382   typedef int charset[2];
32383   const charset x;
32384   /* SunOS 4.1.1 cc rejects this.  */
32385   char const *const *ccp;
32386   char **p;
32387   /* NEC SVR4.0.2 mips cc rejects this.  */
32388   struct point {int x, y;};
32389   static struct point const zero = {0,0};
32390   /* AIX XL C 1.02.0.0 rejects this.
32391      It does not let you subtract one const X* pointer from another in
32392      an arm of an if-expression whose if-part is not a constant
32393      expression */
32394   const char *g = "string";
32395   ccp = &g + (g ? g-g : 0);
32396   /* HPUX 7.0 cc rejects these. */
32397   ++ccp;
32398   p = (char**) ccp;
32399   ccp = (char const *const *) p;
32400   { /* SCO 3.2v4 cc rejects this.  */
32401     char *t;
32402     char const *s = 0 ? (char *) 0 : (char const *) 0;
32403
32404     *t++ = 0;
32405   }
32406   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32407     int x[] = {25, 17};
32408     const int *foo = &x[0];
32409     ++foo;
32410   }
32411   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32412     typedef const int *iptr;
32413     iptr p = 0;
32414     ++p;
32415   }
32416   { /* AIX XL C 1.02.0.0 rejects this saying
32417        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32418     struct s { int j; const int *ap[3]; };
32419     struct s *b; b->j = 5;
32420   }
32421   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32422     const int foo = 10;
32423   }
32424 #endif
32425
32426   ;
32427   return 0;
32428 }
32429 _ACEOF
32430 rm -f conftest.$ac_objext
32431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32432   (eval $ac_compile) 2>conftest.er1
32433   ac_status=$?
32434   grep -v '^ *+' conftest.er1 >conftest.err
32435   rm -f conftest.er1
32436   cat conftest.err >&5
32437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438   (exit $ac_status); } &&
32439          { ac_try='test -z "$ac_c_werror_flag"
32440                          || test ! -s conftest.err'
32441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32442   (eval $ac_try) 2>&5
32443   ac_status=$?
32444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445   (exit $ac_status); }; } &&
32446          { ac_try='test -s conftest.$ac_objext'
32447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32448   (eval $ac_try) 2>&5
32449   ac_status=$?
32450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451   (exit $ac_status); }; }; then
32452   ac_cv_c_const=yes
32453 else
32454   echo "$as_me: failed program was:" >&5
32455 sed 's/^/| /' conftest.$ac_ext >&5
32456
32457 ac_cv_c_const=no
32458 fi
32459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32460 fi
32461 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32462 echo "${ECHO_T}$ac_cv_c_const" >&6
32463 if test $ac_cv_c_const = no; then
32464
32465 cat >>confdefs.h <<\_ACEOF
32466 #define const
32467 _ACEOF
32468
32469 fi
32470
32471 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
32472 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
32473 if test "${ol_cv_c_volatile+set}" = set; then
32474   echo $ECHO_N "(cached) $ECHO_C" >&6
32475 else
32476   cat >conftest.$ac_ext <<_ACEOF
32477 /* confdefs.h.  */
32478 _ACEOF
32479 cat confdefs.h >>conftest.$ac_ext
32480 cat >>conftest.$ac_ext <<_ACEOF
32481 /* end confdefs.h.  */
32482 int x, y, z;
32483 int
32484 main ()
32485 {
32486 volatile int a; int * volatile b = x ? &y : &z;
32487       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
32488       *b = 0;
32489   ;
32490   return 0;
32491 }
32492 _ACEOF
32493 rm -f conftest.$ac_objext
32494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32495   (eval $ac_compile) 2>conftest.er1
32496   ac_status=$?
32497   grep -v '^ *+' conftest.er1 >conftest.err
32498   rm -f conftest.er1
32499   cat conftest.err >&5
32500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501   (exit $ac_status); } &&
32502          { ac_try='test -z "$ac_c_werror_flag"
32503                          || test ! -s conftest.err'
32504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32505   (eval $ac_try) 2>&5
32506   ac_status=$?
32507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508   (exit $ac_status); }; } &&
32509          { ac_try='test -s conftest.$ac_objext'
32510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32511   (eval $ac_try) 2>&5
32512   ac_status=$?
32513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514   (exit $ac_status); }; }; then
32515   ol_cv_c_volatile=yes
32516 else
32517   echo "$as_me: failed program was:" >&5
32518 sed 's/^/| /' conftest.$ac_ext >&5
32519
32520 ol_cv_c_volatile=no
32521 fi
32522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32523 fi
32524 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
32525 echo "${ECHO_T}$ol_cv_c_volatile" >&6
32526   if test $ol_cv_c_volatile = yes; then
32527     :
32528   else
32529
32530 cat >>confdefs.h <<\_ACEOF
32531 #define volatile
32532 _ACEOF
32533
32534   fi
32535
32536
32537 if test $cross_compiling = yes ; then
32538         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
32539 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
32540
32541 cat >>confdefs.h <<\_ACEOF
32542 #define CROSS_COMPILING 1
32543 _ACEOF
32544
32545 else
32546         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
32547 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
32548 if test "${ac_cv_c_bigendian+set}" = set; then
32549   echo $ECHO_N "(cached) $ECHO_C" >&6
32550 else
32551   # See if sys/param.h defines the BYTE_ORDER macro.
32552 cat >conftest.$ac_ext <<_ACEOF
32553 /* confdefs.h.  */
32554 _ACEOF
32555 cat confdefs.h >>conftest.$ac_ext
32556 cat >>conftest.$ac_ext <<_ACEOF
32557 /* end confdefs.h.  */
32558 #include <sys/types.h>
32559 #include <sys/param.h>
32560
32561 int
32562 main ()
32563 {
32564 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
32565  bogus endian macros
32566 #endif
32567
32568   ;
32569   return 0;
32570 }
32571 _ACEOF
32572 rm -f conftest.$ac_objext
32573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32574   (eval $ac_compile) 2>conftest.er1
32575   ac_status=$?
32576   grep -v '^ *+' conftest.er1 >conftest.err
32577   rm -f conftest.er1
32578   cat conftest.err >&5
32579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580   (exit $ac_status); } &&
32581          { ac_try='test -z "$ac_c_werror_flag"
32582                          || test ! -s conftest.err'
32583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32584   (eval $ac_try) 2>&5
32585   ac_status=$?
32586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587   (exit $ac_status); }; } &&
32588          { ac_try='test -s conftest.$ac_objext'
32589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32590   (eval $ac_try) 2>&5
32591   ac_status=$?
32592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593   (exit $ac_status); }; }; then
32594   # It does; now see whether it defined to BIG_ENDIAN or not.
32595 cat >conftest.$ac_ext <<_ACEOF
32596 /* confdefs.h.  */
32597 _ACEOF
32598 cat confdefs.h >>conftest.$ac_ext
32599 cat >>conftest.$ac_ext <<_ACEOF
32600 /* end confdefs.h.  */
32601 #include <sys/types.h>
32602 #include <sys/param.h>
32603
32604 int
32605 main ()
32606 {
32607 #if BYTE_ORDER != BIG_ENDIAN
32608  not big endian
32609 #endif
32610
32611   ;
32612   return 0;
32613 }
32614 _ACEOF
32615 rm -f conftest.$ac_objext
32616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32617   (eval $ac_compile) 2>conftest.er1
32618   ac_status=$?
32619   grep -v '^ *+' conftest.er1 >conftest.err
32620   rm -f conftest.er1
32621   cat conftest.err >&5
32622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623   (exit $ac_status); } &&
32624          { ac_try='test -z "$ac_c_werror_flag"
32625                          || test ! -s conftest.err'
32626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32627   (eval $ac_try) 2>&5
32628   ac_status=$?
32629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630   (exit $ac_status); }; } &&
32631          { ac_try='test -s conftest.$ac_objext'
32632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32633   (eval $ac_try) 2>&5
32634   ac_status=$?
32635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636   (exit $ac_status); }; }; then
32637   ac_cv_c_bigendian=yes
32638 else
32639   echo "$as_me: failed program was:" >&5
32640 sed 's/^/| /' conftest.$ac_ext >&5
32641
32642 ac_cv_c_bigendian=no
32643 fi
32644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32645 else
32646   echo "$as_me: failed program was:" >&5
32647 sed 's/^/| /' conftest.$ac_ext >&5
32648
32649 # It does not; compile a test program.
32650 if test "$cross_compiling" = yes; then
32651   # try to guess the endianness by grepping values into an object file
32652   ac_cv_c_bigendian=unknown
32653   cat >conftest.$ac_ext <<_ACEOF
32654 /* confdefs.h.  */
32655 _ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h.  */
32659 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
32660 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
32661 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
32662 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
32663 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
32664 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
32665 int
32666 main ()
32667 {
32668  _ascii (); _ebcdic ();
32669   ;
32670   return 0;
32671 }
32672 _ACEOF
32673 rm -f conftest.$ac_objext
32674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32675   (eval $ac_compile) 2>conftest.er1
32676   ac_status=$?
32677   grep -v '^ *+' conftest.er1 >conftest.err
32678   rm -f conftest.er1
32679   cat conftest.err >&5
32680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681   (exit $ac_status); } &&
32682          { ac_try='test -z "$ac_c_werror_flag"
32683                          || test ! -s conftest.err'
32684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32685   (eval $ac_try) 2>&5
32686   ac_status=$?
32687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688   (exit $ac_status); }; } &&
32689          { ac_try='test -s conftest.$ac_objext'
32690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32691   (eval $ac_try) 2>&5
32692   ac_status=$?
32693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694   (exit $ac_status); }; }; then
32695   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
32696   ac_cv_c_bigendian=yes
32697 fi
32698 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
32699   if test "$ac_cv_c_bigendian" = unknown; then
32700     ac_cv_c_bigendian=no
32701   else
32702     # finding both strings is unlikely to happen, but who knows?
32703     ac_cv_c_bigendian=unknown
32704   fi
32705 fi
32706 else
32707   echo "$as_me: failed program was:" >&5
32708 sed 's/^/| /' conftest.$ac_ext >&5
32709
32710 fi
32711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32712 else
32713   cat >conftest.$ac_ext <<_ACEOF
32714 /* confdefs.h.  */
32715 _ACEOF
32716 cat confdefs.h >>conftest.$ac_ext
32717 cat >>conftest.$ac_ext <<_ACEOF
32718 /* end confdefs.h.  */
32719 int
32720 main ()
32721 {
32722   /* Are we little or big endian?  From Harbison&Steele.  */
32723   union
32724   {
32725     long l;
32726     char c[sizeof (long)];
32727   } u;
32728   u.l = 1;
32729   exit (u.c[sizeof (long) - 1] == 1);
32730 }
32731 _ACEOF
32732 rm -f conftest$ac_exeext
32733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32734   (eval $ac_link) 2>&5
32735   ac_status=$?
32736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32737   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32739   (eval $ac_try) 2>&5
32740   ac_status=$?
32741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742   (exit $ac_status); }; }; then
32743   ac_cv_c_bigendian=no
32744 else
32745   echo "$as_me: program exited with status $ac_status" >&5
32746 echo "$as_me: failed program was:" >&5
32747 sed 's/^/| /' conftest.$ac_ext >&5
32748
32749 ( exit $ac_status )
32750 ac_cv_c_bigendian=yes
32751 fi
32752 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32753 fi
32754 fi
32755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32756 fi
32757 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
32758 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
32759 case $ac_cv_c_bigendian in
32760   yes)
32761
32762 cat >>confdefs.h <<\_ACEOF
32763 #define WORDS_BIGENDIAN 1
32764 _ACEOF
32765  ;;
32766   no)
32767      ;;
32768   *)
32769     { { echo "$as_me:$LINENO: error: unknown endianness
32770 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
32771 echo "$as_me: error: unknown endianness
32772 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
32773    { (exit 1); exit 1; }; } ;;
32774 esac
32775
32776 fi
32777
32778 echo "$as_me:$LINENO: checking for short" >&5
32779 echo $ECHO_N "checking for short... $ECHO_C" >&6
32780 if test "${ac_cv_type_short+set}" = set; then
32781   echo $ECHO_N "(cached) $ECHO_C" >&6
32782 else
32783   cat >conftest.$ac_ext <<_ACEOF
32784 /* confdefs.h.  */
32785 _ACEOF
32786 cat confdefs.h >>conftest.$ac_ext
32787 cat >>conftest.$ac_ext <<_ACEOF
32788 /* end confdefs.h.  */
32789 $ac_includes_default
32790 int
32791 main ()
32792 {
32793 if ((short *) 0)
32794   return 0;
32795 if (sizeof (short))
32796   return 0;
32797   ;
32798   return 0;
32799 }
32800 _ACEOF
32801 rm -f conftest.$ac_objext
32802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32803   (eval $ac_compile) 2>conftest.er1
32804   ac_status=$?
32805   grep -v '^ *+' conftest.er1 >conftest.err
32806   rm -f conftest.er1
32807   cat conftest.err >&5
32808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809   (exit $ac_status); } &&
32810          { ac_try='test -z "$ac_c_werror_flag"
32811                          || test ! -s conftest.err'
32812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32813   (eval $ac_try) 2>&5
32814   ac_status=$?
32815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816   (exit $ac_status); }; } &&
32817          { ac_try='test -s conftest.$ac_objext'
32818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32819   (eval $ac_try) 2>&5
32820   ac_status=$?
32821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822   (exit $ac_status); }; }; then
32823   ac_cv_type_short=yes
32824 else
32825   echo "$as_me: failed program was:" >&5
32826 sed 's/^/| /' conftest.$ac_ext >&5
32827
32828 ac_cv_type_short=no
32829 fi
32830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32831 fi
32832 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
32833 echo "${ECHO_T}$ac_cv_type_short" >&6
32834
32835 echo "$as_me:$LINENO: checking size of short" >&5
32836 echo $ECHO_N "checking size of short... $ECHO_C" >&6
32837 if test "${ac_cv_sizeof_short+set}" = set; then
32838   echo $ECHO_N "(cached) $ECHO_C" >&6
32839 else
32840   if test "$ac_cv_type_short" = yes; then
32841   # The cast to unsigned long works around a bug in the HP C Compiler
32842   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32843   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32844   # This bug is HP SR number 8606223364.
32845   if test "$cross_compiling" = yes; then
32846   # Depending upon the size, compute the lo and hi bounds.
32847 cat >conftest.$ac_ext <<_ACEOF
32848 /* confdefs.h.  */
32849 _ACEOF
32850 cat confdefs.h >>conftest.$ac_ext
32851 cat >>conftest.$ac_ext <<_ACEOF
32852 /* end confdefs.h.  */
32853 $ac_includes_default
32854 int
32855 main ()
32856 {
32857 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
32858 test_array [0] = 0
32859
32860   ;
32861   return 0;
32862 }
32863 _ACEOF
32864 rm -f conftest.$ac_objext
32865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32866   (eval $ac_compile) 2>conftest.er1
32867   ac_status=$?
32868   grep -v '^ *+' conftest.er1 >conftest.err
32869   rm -f conftest.er1
32870   cat conftest.err >&5
32871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872   (exit $ac_status); } &&
32873          { ac_try='test -z "$ac_c_werror_flag"
32874                          || test ! -s conftest.err'
32875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32876   (eval $ac_try) 2>&5
32877   ac_status=$?
32878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879   (exit $ac_status); }; } &&
32880          { ac_try='test -s conftest.$ac_objext'
32881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32882   (eval $ac_try) 2>&5
32883   ac_status=$?
32884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885   (exit $ac_status); }; }; then
32886   ac_lo=0 ac_mid=0
32887   while :; do
32888     cat >conftest.$ac_ext <<_ACEOF
32889 /* confdefs.h.  */
32890 _ACEOF
32891 cat confdefs.h >>conftest.$ac_ext
32892 cat >>conftest.$ac_ext <<_ACEOF
32893 /* end confdefs.h.  */
32894 $ac_includes_default
32895 int
32896 main ()
32897 {
32898 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
32899 test_array [0] = 0
32900
32901   ;
32902   return 0;
32903 }
32904 _ACEOF
32905 rm -f conftest.$ac_objext
32906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32907   (eval $ac_compile) 2>conftest.er1
32908   ac_status=$?
32909   grep -v '^ *+' conftest.er1 >conftest.err
32910   rm -f conftest.er1
32911   cat conftest.err >&5
32912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913   (exit $ac_status); } &&
32914          { ac_try='test -z "$ac_c_werror_flag"
32915                          || test ! -s conftest.err'
32916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32917   (eval $ac_try) 2>&5
32918   ac_status=$?
32919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32920   (exit $ac_status); }; } &&
32921          { ac_try='test -s conftest.$ac_objext'
32922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32923   (eval $ac_try) 2>&5
32924   ac_status=$?
32925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926   (exit $ac_status); }; }; then
32927   ac_hi=$ac_mid; break
32928 else
32929   echo "$as_me: failed program was:" >&5
32930 sed 's/^/| /' conftest.$ac_ext >&5
32931
32932 ac_lo=`expr $ac_mid + 1`
32933                     if test $ac_lo -le $ac_mid; then
32934                       ac_lo= ac_hi=
32935                       break
32936                     fi
32937                     ac_mid=`expr 2 '*' $ac_mid + 1`
32938 fi
32939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32940   done
32941 else
32942   echo "$as_me: failed program was:" >&5
32943 sed 's/^/| /' conftest.$ac_ext >&5
32944
32945 cat >conftest.$ac_ext <<_ACEOF
32946 /* confdefs.h.  */
32947 _ACEOF
32948 cat confdefs.h >>conftest.$ac_ext
32949 cat >>conftest.$ac_ext <<_ACEOF
32950 /* end confdefs.h.  */
32951 $ac_includes_default
32952 int
32953 main ()
32954 {
32955 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
32956 test_array [0] = 0
32957
32958   ;
32959   return 0;
32960 }
32961 _ACEOF
32962 rm -f conftest.$ac_objext
32963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32964   (eval $ac_compile) 2>conftest.er1
32965   ac_status=$?
32966   grep -v '^ *+' conftest.er1 >conftest.err
32967   rm -f conftest.er1
32968   cat conftest.err >&5
32969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32970   (exit $ac_status); } &&
32971          { ac_try='test -z "$ac_c_werror_flag"
32972                          || test ! -s conftest.err'
32973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32974   (eval $ac_try) 2>&5
32975   ac_status=$?
32976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977   (exit $ac_status); }; } &&
32978          { ac_try='test -s conftest.$ac_objext'
32979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32980   (eval $ac_try) 2>&5
32981   ac_status=$?
32982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983   (exit $ac_status); }; }; then
32984   ac_hi=-1 ac_mid=-1
32985   while :; do
32986     cat >conftest.$ac_ext <<_ACEOF
32987 /* confdefs.h.  */
32988 _ACEOF
32989 cat confdefs.h >>conftest.$ac_ext
32990 cat >>conftest.$ac_ext <<_ACEOF
32991 /* end confdefs.h.  */
32992 $ac_includes_default
32993 int
32994 main ()
32995 {
32996 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
32997 test_array [0] = 0
32998
32999   ;
33000   return 0;
33001 }
33002 _ACEOF
33003 rm -f conftest.$ac_objext
33004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33005   (eval $ac_compile) 2>conftest.er1
33006   ac_status=$?
33007   grep -v '^ *+' conftest.er1 >conftest.err
33008   rm -f conftest.er1
33009   cat conftest.err >&5
33010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011   (exit $ac_status); } &&
33012          { ac_try='test -z "$ac_c_werror_flag"
33013                          || test ! -s conftest.err'
33014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33015   (eval $ac_try) 2>&5
33016   ac_status=$?
33017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33018   (exit $ac_status); }; } &&
33019          { ac_try='test -s conftest.$ac_objext'
33020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33021   (eval $ac_try) 2>&5
33022   ac_status=$?
33023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024   (exit $ac_status); }; }; then
33025   ac_lo=$ac_mid; break
33026 else
33027   echo "$as_me: failed program was:" >&5
33028 sed 's/^/| /' conftest.$ac_ext >&5
33029
33030 ac_hi=`expr '(' $ac_mid ')' - 1`
33031                        if test $ac_mid -le $ac_hi; then
33032                          ac_lo= ac_hi=
33033                          break
33034                        fi
33035                        ac_mid=`expr 2 '*' $ac_mid`
33036 fi
33037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33038   done
33039 else
33040   echo "$as_me: failed program was:" >&5
33041 sed 's/^/| /' conftest.$ac_ext >&5
33042
33043 ac_lo= ac_hi=
33044 fi
33045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33046 fi
33047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33048 # Binary search between lo and hi bounds.
33049 while test "x$ac_lo" != "x$ac_hi"; do
33050   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33051   cat >conftest.$ac_ext <<_ACEOF
33052 /* confdefs.h.  */
33053 _ACEOF
33054 cat confdefs.h >>conftest.$ac_ext
33055 cat >>conftest.$ac_ext <<_ACEOF
33056 /* end confdefs.h.  */
33057 $ac_includes_default
33058 int
33059 main ()
33060 {
33061 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33062 test_array [0] = 0
33063
33064   ;
33065   return 0;
33066 }
33067 _ACEOF
33068 rm -f conftest.$ac_objext
33069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33070   (eval $ac_compile) 2>conftest.er1
33071   ac_status=$?
33072   grep -v '^ *+' conftest.er1 >conftest.err
33073   rm -f conftest.er1
33074   cat conftest.err >&5
33075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076   (exit $ac_status); } &&
33077          { ac_try='test -z "$ac_c_werror_flag"
33078                          || test ! -s conftest.err'
33079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33080   (eval $ac_try) 2>&5
33081   ac_status=$?
33082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083   (exit $ac_status); }; } &&
33084          { ac_try='test -s conftest.$ac_objext'
33085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33086   (eval $ac_try) 2>&5
33087   ac_status=$?
33088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089   (exit $ac_status); }; }; then
33090   ac_hi=$ac_mid
33091 else
33092   echo "$as_me: failed program was:" >&5
33093 sed 's/^/| /' conftest.$ac_ext >&5
33094
33095 ac_lo=`expr '(' $ac_mid ')' + 1`
33096 fi
33097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33098 done
33099 case $ac_lo in
33100 ?*) ac_cv_sizeof_short=$ac_lo;;
33101 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
33102 See \`config.log' for more details." >&5
33103 echo "$as_me: error: cannot compute sizeof (short), 77
33104 See \`config.log' for more details." >&2;}
33105    { (exit 1); exit 1; }; } ;;
33106 esac
33107 else
33108   if test "$cross_compiling" = yes; then
33109   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33110 See \`config.log' for more details." >&5
33111 echo "$as_me: error: cannot run test program while cross compiling
33112 See \`config.log' for more details." >&2;}
33113    { (exit 1); exit 1; }; }
33114 else
33115   cat >conftest.$ac_ext <<_ACEOF
33116 /* confdefs.h.  */
33117 _ACEOF
33118 cat confdefs.h >>conftest.$ac_ext
33119 cat >>conftest.$ac_ext <<_ACEOF
33120 /* end confdefs.h.  */
33121 $ac_includes_default
33122 long longval () { return (long) (sizeof (short)); }
33123 unsigned long ulongval () { return (long) (sizeof (short)); }
33124 #include <stdio.h>
33125 #include <stdlib.h>
33126 int
33127 main ()
33128 {
33129
33130   FILE *f = fopen ("conftest.val", "w");
33131   if (! f)
33132     exit (1);
33133   if (((long) (sizeof (short))) < 0)
33134     {
33135       long i = longval ();
33136       if (i != ((long) (sizeof (short))))
33137         exit (1);
33138       fprintf (f, "%ld\n", i);
33139     }
33140   else
33141     {
33142       unsigned long i = ulongval ();
33143       if (i != ((long) (sizeof (short))))
33144         exit (1);
33145       fprintf (f, "%lu\n", i);
33146     }
33147   exit (ferror (f) || fclose (f) != 0);
33148
33149   ;
33150   return 0;
33151 }
33152 _ACEOF
33153 rm -f conftest$ac_exeext
33154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33155   (eval $ac_link) 2>&5
33156   ac_status=$?
33157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33158   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33160   (eval $ac_try) 2>&5
33161   ac_status=$?
33162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33163   (exit $ac_status); }; }; then
33164   ac_cv_sizeof_short=`cat conftest.val`
33165 else
33166   echo "$as_me: program exited with status $ac_status" >&5
33167 echo "$as_me: failed program was:" >&5
33168 sed 's/^/| /' conftest.$ac_ext >&5
33169
33170 ( exit $ac_status )
33171 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
33172 See \`config.log' for more details." >&5
33173 echo "$as_me: error: cannot compute sizeof (short), 77
33174 See \`config.log' for more details." >&2;}
33175    { (exit 1); exit 1; }; }
33176 fi
33177 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33178 fi
33179 fi
33180 rm -f conftest.val
33181 else
33182   ac_cv_sizeof_short=0
33183 fi
33184 fi
33185 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33186 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
33187 cat >>confdefs.h <<_ACEOF
33188 #define SIZEOF_SHORT $ac_cv_sizeof_short
33189 _ACEOF
33190
33191
33192 echo "$as_me:$LINENO: checking for int" >&5
33193 echo $ECHO_N "checking for int... $ECHO_C" >&6
33194 if test "${ac_cv_type_int+set}" = set; then
33195   echo $ECHO_N "(cached) $ECHO_C" >&6
33196 else
33197   cat >conftest.$ac_ext <<_ACEOF
33198 /* confdefs.h.  */
33199 _ACEOF
33200 cat confdefs.h >>conftest.$ac_ext
33201 cat >>conftest.$ac_ext <<_ACEOF
33202 /* end confdefs.h.  */
33203 $ac_includes_default
33204 int
33205 main ()
33206 {
33207 if ((int *) 0)
33208   return 0;
33209 if (sizeof (int))
33210   return 0;
33211   ;
33212   return 0;
33213 }
33214 _ACEOF
33215 rm -f conftest.$ac_objext
33216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33217   (eval $ac_compile) 2>conftest.er1
33218   ac_status=$?
33219   grep -v '^ *+' conftest.er1 >conftest.err
33220   rm -f conftest.er1
33221   cat conftest.err >&5
33222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223   (exit $ac_status); } &&
33224          { ac_try='test -z "$ac_c_werror_flag"
33225                          || test ! -s conftest.err'
33226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33227   (eval $ac_try) 2>&5
33228   ac_status=$?
33229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230   (exit $ac_status); }; } &&
33231          { ac_try='test -s conftest.$ac_objext'
33232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33233   (eval $ac_try) 2>&5
33234   ac_status=$?
33235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236   (exit $ac_status); }; }; then
33237   ac_cv_type_int=yes
33238 else
33239   echo "$as_me: failed program was:" >&5
33240 sed 's/^/| /' conftest.$ac_ext >&5
33241
33242 ac_cv_type_int=no
33243 fi
33244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33245 fi
33246 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33247 echo "${ECHO_T}$ac_cv_type_int" >&6
33248
33249 echo "$as_me:$LINENO: checking size of int" >&5
33250 echo $ECHO_N "checking size of int... $ECHO_C" >&6
33251 if test "${ac_cv_sizeof_int+set}" = set; then
33252   echo $ECHO_N "(cached) $ECHO_C" >&6
33253 else
33254   if test "$ac_cv_type_int" = yes; then
33255   # The cast to unsigned long works around a bug in the HP C Compiler
33256   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33257   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33258   # This bug is HP SR number 8606223364.
33259   if test "$cross_compiling" = yes; then
33260   # Depending upon the size, compute the lo and hi bounds.
33261 cat >conftest.$ac_ext <<_ACEOF
33262 /* confdefs.h.  */
33263 _ACEOF
33264 cat confdefs.h >>conftest.$ac_ext
33265 cat >>conftest.$ac_ext <<_ACEOF
33266 /* end confdefs.h.  */
33267 $ac_includes_default
33268 int
33269 main ()
33270 {
33271 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
33272 test_array [0] = 0
33273
33274   ;
33275   return 0;
33276 }
33277 _ACEOF
33278 rm -f conftest.$ac_objext
33279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33280   (eval $ac_compile) 2>conftest.er1
33281   ac_status=$?
33282   grep -v '^ *+' conftest.er1 >conftest.err
33283   rm -f conftest.er1
33284   cat conftest.err >&5
33285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286   (exit $ac_status); } &&
33287          { ac_try='test -z "$ac_c_werror_flag"
33288                          || test ! -s conftest.err'
33289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33290   (eval $ac_try) 2>&5
33291   ac_status=$?
33292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293   (exit $ac_status); }; } &&
33294          { ac_try='test -s conftest.$ac_objext'
33295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33296   (eval $ac_try) 2>&5
33297   ac_status=$?
33298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299   (exit $ac_status); }; }; then
33300   ac_lo=0 ac_mid=0
33301   while :; do
33302     cat >conftest.$ac_ext <<_ACEOF
33303 /* confdefs.h.  */
33304 _ACEOF
33305 cat confdefs.h >>conftest.$ac_ext
33306 cat >>conftest.$ac_ext <<_ACEOF
33307 /* end confdefs.h.  */
33308 $ac_includes_default
33309 int
33310 main ()
33311 {
33312 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
33313 test_array [0] = 0
33314
33315   ;
33316   return 0;
33317 }
33318 _ACEOF
33319 rm -f conftest.$ac_objext
33320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33321   (eval $ac_compile) 2>conftest.er1
33322   ac_status=$?
33323   grep -v '^ *+' conftest.er1 >conftest.err
33324   rm -f conftest.er1
33325   cat conftest.err >&5
33326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33327   (exit $ac_status); } &&
33328          { ac_try='test -z "$ac_c_werror_flag"
33329                          || test ! -s conftest.err'
33330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33331   (eval $ac_try) 2>&5
33332   ac_status=$?
33333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334   (exit $ac_status); }; } &&
33335          { ac_try='test -s conftest.$ac_objext'
33336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33337   (eval $ac_try) 2>&5
33338   ac_status=$?
33339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340   (exit $ac_status); }; }; then
33341   ac_hi=$ac_mid; break
33342 else
33343   echo "$as_me: failed program was:" >&5
33344 sed 's/^/| /' conftest.$ac_ext >&5
33345
33346 ac_lo=`expr $ac_mid + 1`
33347                     if test $ac_lo -le $ac_mid; then
33348                       ac_lo= ac_hi=
33349                       break
33350                     fi
33351                     ac_mid=`expr 2 '*' $ac_mid + 1`
33352 fi
33353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33354   done
33355 else
33356   echo "$as_me: failed program was:" >&5
33357 sed 's/^/| /' conftest.$ac_ext >&5
33358
33359 cat >conftest.$ac_ext <<_ACEOF
33360 /* confdefs.h.  */
33361 _ACEOF
33362 cat confdefs.h >>conftest.$ac_ext
33363 cat >>conftest.$ac_ext <<_ACEOF
33364 /* end confdefs.h.  */
33365 $ac_includes_default
33366 int
33367 main ()
33368 {
33369 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
33370 test_array [0] = 0
33371
33372   ;
33373   return 0;
33374 }
33375 _ACEOF
33376 rm -f conftest.$ac_objext
33377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33378   (eval $ac_compile) 2>conftest.er1
33379   ac_status=$?
33380   grep -v '^ *+' conftest.er1 >conftest.err
33381   rm -f conftest.er1
33382   cat conftest.err >&5
33383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384   (exit $ac_status); } &&
33385          { ac_try='test -z "$ac_c_werror_flag"
33386                          || test ! -s conftest.err'
33387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33388   (eval $ac_try) 2>&5
33389   ac_status=$?
33390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391   (exit $ac_status); }; } &&
33392          { ac_try='test -s conftest.$ac_objext'
33393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33394   (eval $ac_try) 2>&5
33395   ac_status=$?
33396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33397   (exit $ac_status); }; }; then
33398   ac_hi=-1 ac_mid=-1
33399   while :; do
33400     cat >conftest.$ac_ext <<_ACEOF
33401 /* confdefs.h.  */
33402 _ACEOF
33403 cat confdefs.h >>conftest.$ac_ext
33404 cat >>conftest.$ac_ext <<_ACEOF
33405 /* end confdefs.h.  */
33406 $ac_includes_default
33407 int
33408 main ()
33409 {
33410 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
33411 test_array [0] = 0
33412
33413   ;
33414   return 0;
33415 }
33416 _ACEOF
33417 rm -f conftest.$ac_objext
33418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33419   (eval $ac_compile) 2>conftest.er1
33420   ac_status=$?
33421   grep -v '^ *+' conftest.er1 >conftest.err
33422   rm -f conftest.er1
33423   cat conftest.err >&5
33424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425   (exit $ac_status); } &&
33426          { ac_try='test -z "$ac_c_werror_flag"
33427                          || test ! -s conftest.err'
33428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33429   (eval $ac_try) 2>&5
33430   ac_status=$?
33431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432   (exit $ac_status); }; } &&
33433          { ac_try='test -s conftest.$ac_objext'
33434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33435   (eval $ac_try) 2>&5
33436   ac_status=$?
33437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33438   (exit $ac_status); }; }; then
33439   ac_lo=$ac_mid; break
33440 else
33441   echo "$as_me: failed program was:" >&5
33442 sed 's/^/| /' conftest.$ac_ext >&5
33443
33444 ac_hi=`expr '(' $ac_mid ')' - 1`
33445                        if test $ac_mid -le $ac_hi; then
33446                          ac_lo= ac_hi=
33447                          break
33448                        fi
33449                        ac_mid=`expr 2 '*' $ac_mid`
33450 fi
33451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33452   done
33453 else
33454   echo "$as_me: failed program was:" >&5
33455 sed 's/^/| /' conftest.$ac_ext >&5
33456
33457 ac_lo= ac_hi=
33458 fi
33459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33460 fi
33461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33462 # Binary search between lo and hi bounds.
33463 while test "x$ac_lo" != "x$ac_hi"; do
33464   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33465   cat >conftest.$ac_ext <<_ACEOF
33466 /* confdefs.h.  */
33467 _ACEOF
33468 cat confdefs.h >>conftest.$ac_ext
33469 cat >>conftest.$ac_ext <<_ACEOF
33470 /* end confdefs.h.  */
33471 $ac_includes_default
33472 int
33473 main ()
33474 {
33475 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
33476 test_array [0] = 0
33477
33478   ;
33479   return 0;
33480 }
33481 _ACEOF
33482 rm -f conftest.$ac_objext
33483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33484   (eval $ac_compile) 2>conftest.er1
33485   ac_status=$?
33486   grep -v '^ *+' conftest.er1 >conftest.err
33487   rm -f conftest.er1
33488   cat conftest.err >&5
33489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33490   (exit $ac_status); } &&
33491          { ac_try='test -z "$ac_c_werror_flag"
33492                          || test ! -s conftest.err'
33493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33494   (eval $ac_try) 2>&5
33495   ac_status=$?
33496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497   (exit $ac_status); }; } &&
33498          { ac_try='test -s conftest.$ac_objext'
33499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33500   (eval $ac_try) 2>&5
33501   ac_status=$?
33502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33503   (exit $ac_status); }; }; then
33504   ac_hi=$ac_mid
33505 else
33506   echo "$as_me: failed program was:" >&5
33507 sed 's/^/| /' conftest.$ac_ext >&5
33508
33509 ac_lo=`expr '(' $ac_mid ')' + 1`
33510 fi
33511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33512 done
33513 case $ac_lo in
33514 ?*) ac_cv_sizeof_int=$ac_lo;;
33515 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
33516 See \`config.log' for more details." >&5
33517 echo "$as_me: error: cannot compute sizeof (int), 77
33518 See \`config.log' for more details." >&2;}
33519    { (exit 1); exit 1; }; } ;;
33520 esac
33521 else
33522   if test "$cross_compiling" = yes; then
33523   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33524 See \`config.log' for more details." >&5
33525 echo "$as_me: error: cannot run test program while cross compiling
33526 See \`config.log' for more details." >&2;}
33527    { (exit 1); exit 1; }; }
33528 else
33529   cat >conftest.$ac_ext <<_ACEOF
33530 /* confdefs.h.  */
33531 _ACEOF
33532 cat confdefs.h >>conftest.$ac_ext
33533 cat >>conftest.$ac_ext <<_ACEOF
33534 /* end confdefs.h.  */
33535 $ac_includes_default
33536 long longval () { return (long) (sizeof (int)); }
33537 unsigned long ulongval () { return (long) (sizeof (int)); }
33538 #include <stdio.h>
33539 #include <stdlib.h>
33540 int
33541 main ()
33542 {
33543
33544   FILE *f = fopen ("conftest.val", "w");
33545   if (! f)
33546     exit (1);
33547   if (((long) (sizeof (int))) < 0)
33548     {
33549       long i = longval ();
33550       if (i != ((long) (sizeof (int))))
33551         exit (1);
33552       fprintf (f, "%ld\n", i);
33553     }
33554   else
33555     {
33556       unsigned long i = ulongval ();
33557       if (i != ((long) (sizeof (int))))
33558         exit (1);
33559       fprintf (f, "%lu\n", i);
33560     }
33561   exit (ferror (f) || fclose (f) != 0);
33562
33563   ;
33564   return 0;
33565 }
33566 _ACEOF
33567 rm -f conftest$ac_exeext
33568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33569   (eval $ac_link) 2>&5
33570   ac_status=$?
33571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33574   (eval $ac_try) 2>&5
33575   ac_status=$?
33576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577   (exit $ac_status); }; }; then
33578   ac_cv_sizeof_int=`cat conftest.val`
33579 else
33580   echo "$as_me: program exited with status $ac_status" >&5
33581 echo "$as_me: failed program was:" >&5
33582 sed 's/^/| /' conftest.$ac_ext >&5
33583
33584 ( exit $ac_status )
33585 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
33586 See \`config.log' for more details." >&5
33587 echo "$as_me: error: cannot compute sizeof (int), 77
33588 See \`config.log' for more details." >&2;}
33589    { (exit 1); exit 1; }; }
33590 fi
33591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33592 fi
33593 fi
33594 rm -f conftest.val
33595 else
33596   ac_cv_sizeof_int=0
33597 fi
33598 fi
33599 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
33600 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
33601 cat >>confdefs.h <<_ACEOF
33602 #define SIZEOF_INT $ac_cv_sizeof_int
33603 _ACEOF
33604
33605
33606 echo "$as_me:$LINENO: checking for long" >&5
33607 echo $ECHO_N "checking for long... $ECHO_C" >&6
33608 if test "${ac_cv_type_long+set}" = set; then
33609   echo $ECHO_N "(cached) $ECHO_C" >&6
33610 else
33611   cat >conftest.$ac_ext <<_ACEOF
33612 /* confdefs.h.  */
33613 _ACEOF
33614 cat confdefs.h >>conftest.$ac_ext
33615 cat >>conftest.$ac_ext <<_ACEOF
33616 /* end confdefs.h.  */
33617 $ac_includes_default
33618 int
33619 main ()
33620 {
33621 if ((long *) 0)
33622   return 0;
33623 if (sizeof (long))
33624   return 0;
33625   ;
33626   return 0;
33627 }
33628 _ACEOF
33629 rm -f conftest.$ac_objext
33630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33631   (eval $ac_compile) 2>conftest.er1
33632   ac_status=$?
33633   grep -v '^ *+' conftest.er1 >conftest.err
33634   rm -f conftest.er1
33635   cat conftest.err >&5
33636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33637   (exit $ac_status); } &&
33638          { ac_try='test -z "$ac_c_werror_flag"
33639                          || test ! -s conftest.err'
33640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33641   (eval $ac_try) 2>&5
33642   ac_status=$?
33643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33644   (exit $ac_status); }; } &&
33645          { ac_try='test -s conftest.$ac_objext'
33646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33647   (eval $ac_try) 2>&5
33648   ac_status=$?
33649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33650   (exit $ac_status); }; }; then
33651   ac_cv_type_long=yes
33652 else
33653   echo "$as_me: failed program was:" >&5
33654 sed 's/^/| /' conftest.$ac_ext >&5
33655
33656 ac_cv_type_long=no
33657 fi
33658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33659 fi
33660 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
33661 echo "${ECHO_T}$ac_cv_type_long" >&6
33662
33663 echo "$as_me:$LINENO: checking size of long" >&5
33664 echo $ECHO_N "checking size of long... $ECHO_C" >&6
33665 if test "${ac_cv_sizeof_long+set}" = set; then
33666   echo $ECHO_N "(cached) $ECHO_C" >&6
33667 else
33668   if test "$ac_cv_type_long" = yes; then
33669   # The cast to unsigned long works around a bug in the HP C Compiler
33670   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33671   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33672   # This bug is HP SR number 8606223364.
33673   if test "$cross_compiling" = yes; then
33674   # Depending upon the size, compute the lo and hi bounds.
33675 cat >conftest.$ac_ext <<_ACEOF
33676 /* confdefs.h.  */
33677 _ACEOF
33678 cat confdefs.h >>conftest.$ac_ext
33679 cat >>conftest.$ac_ext <<_ACEOF
33680 /* end confdefs.h.  */
33681 $ac_includes_default
33682 int
33683 main ()
33684 {
33685 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
33686 test_array [0] = 0
33687
33688   ;
33689   return 0;
33690 }
33691 _ACEOF
33692 rm -f conftest.$ac_objext
33693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33694   (eval $ac_compile) 2>conftest.er1
33695   ac_status=$?
33696   grep -v '^ *+' conftest.er1 >conftest.err
33697   rm -f conftest.er1
33698   cat conftest.err >&5
33699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700   (exit $ac_status); } &&
33701          { ac_try='test -z "$ac_c_werror_flag"
33702                          || test ! -s conftest.err'
33703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33704   (eval $ac_try) 2>&5
33705   ac_status=$?
33706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707   (exit $ac_status); }; } &&
33708          { ac_try='test -s conftest.$ac_objext'
33709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33710   (eval $ac_try) 2>&5
33711   ac_status=$?
33712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713   (exit $ac_status); }; }; then
33714   ac_lo=0 ac_mid=0
33715   while :; do
33716     cat >conftest.$ac_ext <<_ACEOF
33717 /* confdefs.h.  */
33718 _ACEOF
33719 cat confdefs.h >>conftest.$ac_ext
33720 cat >>conftest.$ac_ext <<_ACEOF
33721 /* end confdefs.h.  */
33722 $ac_includes_default
33723 int
33724 main ()
33725 {
33726 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
33727 test_array [0] = 0
33728
33729   ;
33730   return 0;
33731 }
33732 _ACEOF
33733 rm -f conftest.$ac_objext
33734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33735   (eval $ac_compile) 2>conftest.er1
33736   ac_status=$?
33737   grep -v '^ *+' conftest.er1 >conftest.err
33738   rm -f conftest.er1
33739   cat conftest.err >&5
33740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33741   (exit $ac_status); } &&
33742          { ac_try='test -z "$ac_c_werror_flag"
33743                          || test ! -s conftest.err'
33744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33745   (eval $ac_try) 2>&5
33746   ac_status=$?
33747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748   (exit $ac_status); }; } &&
33749          { ac_try='test -s conftest.$ac_objext'
33750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33751   (eval $ac_try) 2>&5
33752   ac_status=$?
33753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754   (exit $ac_status); }; }; then
33755   ac_hi=$ac_mid; break
33756 else
33757   echo "$as_me: failed program was:" >&5
33758 sed 's/^/| /' conftest.$ac_ext >&5
33759
33760 ac_lo=`expr $ac_mid + 1`
33761                     if test $ac_lo -le $ac_mid; then
33762                       ac_lo= ac_hi=
33763                       break
33764                     fi
33765                     ac_mid=`expr 2 '*' $ac_mid + 1`
33766 fi
33767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33768   done
33769 else
33770   echo "$as_me: failed program was:" >&5
33771 sed 's/^/| /' conftest.$ac_ext >&5
33772
33773 cat >conftest.$ac_ext <<_ACEOF
33774 /* confdefs.h.  */
33775 _ACEOF
33776 cat confdefs.h >>conftest.$ac_ext
33777 cat >>conftest.$ac_ext <<_ACEOF
33778 /* end confdefs.h.  */
33779 $ac_includes_default
33780 int
33781 main ()
33782 {
33783 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
33784 test_array [0] = 0
33785
33786   ;
33787   return 0;
33788 }
33789 _ACEOF
33790 rm -f conftest.$ac_objext
33791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33792   (eval $ac_compile) 2>conftest.er1
33793   ac_status=$?
33794   grep -v '^ *+' conftest.er1 >conftest.err
33795   rm -f conftest.er1
33796   cat conftest.err >&5
33797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798   (exit $ac_status); } &&
33799          { ac_try='test -z "$ac_c_werror_flag"
33800                          || test ! -s conftest.err'
33801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33802   (eval $ac_try) 2>&5
33803   ac_status=$?
33804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805   (exit $ac_status); }; } &&
33806          { ac_try='test -s conftest.$ac_objext'
33807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33808   (eval $ac_try) 2>&5
33809   ac_status=$?
33810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811   (exit $ac_status); }; }; then
33812   ac_hi=-1 ac_mid=-1
33813   while :; do
33814     cat >conftest.$ac_ext <<_ACEOF
33815 /* confdefs.h.  */
33816 _ACEOF
33817 cat confdefs.h >>conftest.$ac_ext
33818 cat >>conftest.$ac_ext <<_ACEOF
33819 /* end confdefs.h.  */
33820 $ac_includes_default
33821 int
33822 main ()
33823 {
33824 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
33825 test_array [0] = 0
33826
33827   ;
33828   return 0;
33829 }
33830 _ACEOF
33831 rm -f conftest.$ac_objext
33832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33833   (eval $ac_compile) 2>conftest.er1
33834   ac_status=$?
33835   grep -v '^ *+' conftest.er1 >conftest.err
33836   rm -f conftest.er1
33837   cat conftest.err >&5
33838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33839   (exit $ac_status); } &&
33840          { ac_try='test -z "$ac_c_werror_flag"
33841                          || test ! -s conftest.err'
33842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33843   (eval $ac_try) 2>&5
33844   ac_status=$?
33845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846   (exit $ac_status); }; } &&
33847          { ac_try='test -s conftest.$ac_objext'
33848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33849   (eval $ac_try) 2>&5
33850   ac_status=$?
33851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852   (exit $ac_status); }; }; then
33853   ac_lo=$ac_mid; break
33854 else
33855   echo "$as_me: failed program was:" >&5
33856 sed 's/^/| /' conftest.$ac_ext >&5
33857
33858 ac_hi=`expr '(' $ac_mid ')' - 1`
33859                        if test $ac_mid -le $ac_hi; then
33860                          ac_lo= ac_hi=
33861                          break
33862                        fi
33863                        ac_mid=`expr 2 '*' $ac_mid`
33864 fi
33865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33866   done
33867 else
33868   echo "$as_me: failed program was:" >&5
33869 sed 's/^/| /' conftest.$ac_ext >&5
33870
33871 ac_lo= ac_hi=
33872 fi
33873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33874 fi
33875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33876 # Binary search between lo and hi bounds.
33877 while test "x$ac_lo" != "x$ac_hi"; do
33878   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33879   cat >conftest.$ac_ext <<_ACEOF
33880 /* confdefs.h.  */
33881 _ACEOF
33882 cat confdefs.h >>conftest.$ac_ext
33883 cat >>conftest.$ac_ext <<_ACEOF
33884 /* end confdefs.h.  */
33885 $ac_includes_default
33886 int
33887 main ()
33888 {
33889 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
33890 test_array [0] = 0
33891
33892   ;
33893   return 0;
33894 }
33895 _ACEOF
33896 rm -f conftest.$ac_objext
33897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33898   (eval $ac_compile) 2>conftest.er1
33899   ac_status=$?
33900   grep -v '^ *+' conftest.er1 >conftest.err
33901   rm -f conftest.er1
33902   cat conftest.err >&5
33903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33904   (exit $ac_status); } &&
33905          { ac_try='test -z "$ac_c_werror_flag"
33906                          || test ! -s conftest.err'
33907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33908   (eval $ac_try) 2>&5
33909   ac_status=$?
33910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911   (exit $ac_status); }; } &&
33912          { ac_try='test -s conftest.$ac_objext'
33913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33914   (eval $ac_try) 2>&5
33915   ac_status=$?
33916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33917   (exit $ac_status); }; }; then
33918   ac_hi=$ac_mid
33919 else
33920   echo "$as_me: failed program was:" >&5
33921 sed 's/^/| /' conftest.$ac_ext >&5
33922
33923 ac_lo=`expr '(' $ac_mid ')' + 1`
33924 fi
33925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33926 done
33927 case $ac_lo in
33928 ?*) ac_cv_sizeof_long=$ac_lo;;
33929 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
33930 See \`config.log' for more details." >&5
33931 echo "$as_me: error: cannot compute sizeof (long), 77
33932 See \`config.log' for more details." >&2;}
33933    { (exit 1); exit 1; }; } ;;
33934 esac
33935 else
33936   if test "$cross_compiling" = yes; then
33937   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33938 See \`config.log' for more details." >&5
33939 echo "$as_me: error: cannot run test program while cross compiling
33940 See \`config.log' for more details." >&2;}
33941    { (exit 1); exit 1; }; }
33942 else
33943   cat >conftest.$ac_ext <<_ACEOF
33944 /* confdefs.h.  */
33945 _ACEOF
33946 cat confdefs.h >>conftest.$ac_ext
33947 cat >>conftest.$ac_ext <<_ACEOF
33948 /* end confdefs.h.  */
33949 $ac_includes_default
33950 long longval () { return (long) (sizeof (long)); }
33951 unsigned long ulongval () { return (long) (sizeof (long)); }
33952 #include <stdio.h>
33953 #include <stdlib.h>
33954 int
33955 main ()
33956 {
33957
33958   FILE *f = fopen ("conftest.val", "w");
33959   if (! f)
33960     exit (1);
33961   if (((long) (sizeof (long))) < 0)
33962     {
33963       long i = longval ();
33964       if (i != ((long) (sizeof (long))))
33965         exit (1);
33966       fprintf (f, "%ld\n", i);
33967     }
33968   else
33969     {
33970       unsigned long i = ulongval ();
33971       if (i != ((long) (sizeof (long))))
33972         exit (1);
33973       fprintf (f, "%lu\n", i);
33974     }
33975   exit (ferror (f) || fclose (f) != 0);
33976
33977   ;
33978   return 0;
33979 }
33980 _ACEOF
33981 rm -f conftest$ac_exeext
33982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33983   (eval $ac_link) 2>&5
33984   ac_status=$?
33985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33988   (eval $ac_try) 2>&5
33989   ac_status=$?
33990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991   (exit $ac_status); }; }; then
33992   ac_cv_sizeof_long=`cat conftest.val`
33993 else
33994   echo "$as_me: program exited with status $ac_status" >&5
33995 echo "$as_me: failed program was:" >&5
33996 sed 's/^/| /' conftest.$ac_ext >&5
33997
33998 ( exit $ac_status )
33999 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
34000 See \`config.log' for more details." >&5
34001 echo "$as_me: error: cannot compute sizeof (long), 77
34002 See \`config.log' for more details." >&2;}
34003    { (exit 1); exit 1; }; }
34004 fi
34005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34006 fi
34007 fi
34008 rm -f conftest.val
34009 else
34010   ac_cv_sizeof_long=0
34011 fi
34012 fi
34013 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34014 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
34015 cat >>confdefs.h <<_ACEOF
34016 #define SIZEOF_LONG $ac_cv_sizeof_long
34017 _ACEOF
34018
34019
34020 echo "$as_me:$LINENO: checking for long long" >&5
34021 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34022 if test "${ac_cv_type_long_long+set}" = set; then
34023   echo $ECHO_N "(cached) $ECHO_C" >&6
34024 else
34025   cat >conftest.$ac_ext <<_ACEOF
34026 /* confdefs.h.  */
34027 _ACEOF
34028 cat confdefs.h >>conftest.$ac_ext
34029 cat >>conftest.$ac_ext <<_ACEOF
34030 /* end confdefs.h.  */
34031 $ac_includes_default
34032 int
34033 main ()
34034 {
34035 if ((long long *) 0)
34036   return 0;
34037 if (sizeof (long long))
34038   return 0;
34039   ;
34040   return 0;
34041 }
34042 _ACEOF
34043 rm -f conftest.$ac_objext
34044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34045   (eval $ac_compile) 2>conftest.er1
34046   ac_status=$?
34047   grep -v '^ *+' conftest.er1 >conftest.err
34048   rm -f conftest.er1
34049   cat conftest.err >&5
34050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051   (exit $ac_status); } &&
34052          { ac_try='test -z "$ac_c_werror_flag"
34053                          || test ! -s conftest.err'
34054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34055   (eval $ac_try) 2>&5
34056   ac_status=$?
34057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34058   (exit $ac_status); }; } &&
34059          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
34065   ac_cv_type_long_long=yes
34066 else
34067   echo "$as_me: failed program was:" >&5
34068 sed 's/^/| /' conftest.$ac_ext >&5
34069
34070 ac_cv_type_long_long=no
34071 fi
34072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34073 fi
34074 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34075 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34076
34077 echo "$as_me:$LINENO: checking size of long long" >&5
34078 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
34079 if test "${ac_cv_sizeof_long_long+set}" = set; then
34080   echo $ECHO_N "(cached) $ECHO_C" >&6
34081 else
34082   if test "$ac_cv_type_long_long" = yes; then
34083   # The cast to unsigned long works around a bug in the HP C Compiler
34084   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34085   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34086   # This bug is HP SR number 8606223364.
34087   if test "$cross_compiling" = yes; then
34088   # Depending upon the size, compute the lo and hi bounds.
34089 cat >conftest.$ac_ext <<_ACEOF
34090 /* confdefs.h.  */
34091 _ACEOF
34092 cat confdefs.h >>conftest.$ac_ext
34093 cat >>conftest.$ac_ext <<_ACEOF
34094 /* end confdefs.h.  */
34095 $ac_includes_default
34096 int
34097 main ()
34098 {
34099 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
34100 test_array [0] = 0
34101
34102   ;
34103   return 0;
34104 }
34105 _ACEOF
34106 rm -f conftest.$ac_objext
34107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34108   (eval $ac_compile) 2>conftest.er1
34109   ac_status=$?
34110   grep -v '^ *+' conftest.er1 >conftest.err
34111   rm -f conftest.er1
34112   cat conftest.err >&5
34113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114   (exit $ac_status); } &&
34115          { ac_try='test -z "$ac_c_werror_flag"
34116                          || test ! -s conftest.err'
34117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34118   (eval $ac_try) 2>&5
34119   ac_status=$?
34120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34121   (exit $ac_status); }; } &&
34122          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
34128   ac_lo=0 ac_mid=0
34129   while :; do
34130     cat >conftest.$ac_ext <<_ACEOF
34131 /* confdefs.h.  */
34132 _ACEOF
34133 cat confdefs.h >>conftest.$ac_ext
34134 cat >>conftest.$ac_ext <<_ACEOF
34135 /* end confdefs.h.  */
34136 $ac_includes_default
34137 int
34138 main ()
34139 {
34140 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
34141 test_array [0] = 0
34142
34143   ;
34144   return 0;
34145 }
34146 _ACEOF
34147 rm -f conftest.$ac_objext
34148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34149   (eval $ac_compile) 2>conftest.er1
34150   ac_status=$?
34151   grep -v '^ *+' conftest.er1 >conftest.err
34152   rm -f conftest.er1
34153   cat conftest.err >&5
34154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34155   (exit $ac_status); } &&
34156          { ac_try='test -z "$ac_c_werror_flag"
34157                          || test ! -s conftest.err'
34158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34159   (eval $ac_try) 2>&5
34160   ac_status=$?
34161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34162   (exit $ac_status); }; } &&
34163          { ac_try='test -s conftest.$ac_objext'
34164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34165   (eval $ac_try) 2>&5
34166   ac_status=$?
34167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34168   (exit $ac_status); }; }; then
34169   ac_hi=$ac_mid; break
34170 else
34171   echo "$as_me: failed program was:" >&5
34172 sed 's/^/| /' conftest.$ac_ext >&5
34173
34174 ac_lo=`expr $ac_mid + 1`
34175                     if test $ac_lo -le $ac_mid; then
34176                       ac_lo= ac_hi=
34177                       break
34178                     fi
34179                     ac_mid=`expr 2 '*' $ac_mid + 1`
34180 fi
34181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34182   done
34183 else
34184   echo "$as_me: failed program was:" >&5
34185 sed 's/^/| /' conftest.$ac_ext >&5
34186
34187 cat >conftest.$ac_ext <<_ACEOF
34188 /* confdefs.h.  */
34189 _ACEOF
34190 cat confdefs.h >>conftest.$ac_ext
34191 cat >>conftest.$ac_ext <<_ACEOF
34192 /* end confdefs.h.  */
34193 $ac_includes_default
34194 int
34195 main ()
34196 {
34197 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
34198 test_array [0] = 0
34199
34200   ;
34201   return 0;
34202 }
34203 _ACEOF
34204 rm -f conftest.$ac_objext
34205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34206   (eval $ac_compile) 2>conftest.er1
34207   ac_status=$?
34208   grep -v '^ *+' conftest.er1 >conftest.err
34209   rm -f conftest.er1
34210   cat conftest.err >&5
34211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212   (exit $ac_status); } &&
34213          { ac_try='test -z "$ac_c_werror_flag"
34214                          || test ! -s conftest.err'
34215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34216   (eval $ac_try) 2>&5
34217   ac_status=$?
34218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219   (exit $ac_status); }; } &&
34220          { ac_try='test -s conftest.$ac_objext'
34221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34222   (eval $ac_try) 2>&5
34223   ac_status=$?
34224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225   (exit $ac_status); }; }; then
34226   ac_hi=-1 ac_mid=-1
34227   while :; do
34228     cat >conftest.$ac_ext <<_ACEOF
34229 /* confdefs.h.  */
34230 _ACEOF
34231 cat confdefs.h >>conftest.$ac_ext
34232 cat >>conftest.$ac_ext <<_ACEOF
34233 /* end confdefs.h.  */
34234 $ac_includes_default
34235 int
34236 main ()
34237 {
34238 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
34239 test_array [0] = 0
34240
34241   ;
34242   return 0;
34243 }
34244 _ACEOF
34245 rm -f conftest.$ac_objext
34246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34247   (eval $ac_compile) 2>conftest.er1
34248   ac_status=$?
34249   grep -v '^ *+' conftest.er1 >conftest.err
34250   rm -f conftest.er1
34251   cat conftest.err >&5
34252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34253   (exit $ac_status); } &&
34254          { ac_try='test -z "$ac_c_werror_flag"
34255                          || test ! -s conftest.err'
34256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34257   (eval $ac_try) 2>&5
34258   ac_status=$?
34259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34260   (exit $ac_status); }; } &&
34261          { ac_try='test -s conftest.$ac_objext'
34262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34263   (eval $ac_try) 2>&5
34264   ac_status=$?
34265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266   (exit $ac_status); }; }; then
34267   ac_lo=$ac_mid; break
34268 else
34269   echo "$as_me: failed program was:" >&5
34270 sed 's/^/| /' conftest.$ac_ext >&5
34271
34272 ac_hi=`expr '(' $ac_mid ')' - 1`
34273                        if test $ac_mid -le $ac_hi; then
34274                          ac_lo= ac_hi=
34275                          break
34276                        fi
34277                        ac_mid=`expr 2 '*' $ac_mid`
34278 fi
34279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34280   done
34281 else
34282   echo "$as_me: failed program was:" >&5
34283 sed 's/^/| /' conftest.$ac_ext >&5
34284
34285 ac_lo= ac_hi=
34286 fi
34287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34288 fi
34289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34290 # Binary search between lo and hi bounds.
34291 while test "x$ac_lo" != "x$ac_hi"; do
34292   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34293   cat >conftest.$ac_ext <<_ACEOF
34294 /* confdefs.h.  */
34295 _ACEOF
34296 cat confdefs.h >>conftest.$ac_ext
34297 cat >>conftest.$ac_ext <<_ACEOF
34298 /* end confdefs.h.  */
34299 $ac_includes_default
34300 int
34301 main ()
34302 {
34303 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
34304 test_array [0] = 0
34305
34306   ;
34307   return 0;
34308 }
34309 _ACEOF
34310 rm -f conftest.$ac_objext
34311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34312   (eval $ac_compile) 2>conftest.er1
34313   ac_status=$?
34314   grep -v '^ *+' conftest.er1 >conftest.err
34315   rm -f conftest.er1
34316   cat conftest.err >&5
34317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34318   (exit $ac_status); } &&
34319          { ac_try='test -z "$ac_c_werror_flag"
34320                          || test ! -s conftest.err'
34321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34322   (eval $ac_try) 2>&5
34323   ac_status=$?
34324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34325   (exit $ac_status); }; } &&
34326          { ac_try='test -s conftest.$ac_objext'
34327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34328   (eval $ac_try) 2>&5
34329   ac_status=$?
34330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331   (exit $ac_status); }; }; then
34332   ac_hi=$ac_mid
34333 else
34334   echo "$as_me: failed program was:" >&5
34335 sed 's/^/| /' conftest.$ac_ext >&5
34336
34337 ac_lo=`expr '(' $ac_mid ')' + 1`
34338 fi
34339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34340 done
34341 case $ac_lo in
34342 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34343 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
34344 See \`config.log' for more details." >&5
34345 echo "$as_me: error: cannot compute sizeof (long long), 77
34346 See \`config.log' for more details." >&2;}
34347    { (exit 1); exit 1; }; } ;;
34348 esac
34349 else
34350   if test "$cross_compiling" = yes; then
34351   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34352 See \`config.log' for more details." >&5
34353 echo "$as_me: error: cannot run test program while cross compiling
34354 See \`config.log' for more details." >&2;}
34355    { (exit 1); exit 1; }; }
34356 else
34357   cat >conftest.$ac_ext <<_ACEOF
34358 /* confdefs.h.  */
34359 _ACEOF
34360 cat confdefs.h >>conftest.$ac_ext
34361 cat >>conftest.$ac_ext <<_ACEOF
34362 /* end confdefs.h.  */
34363 $ac_includes_default
34364 long longval () { return (long) (sizeof (long long)); }
34365 unsigned long ulongval () { return (long) (sizeof (long long)); }
34366 #include <stdio.h>
34367 #include <stdlib.h>
34368 int
34369 main ()
34370 {
34371
34372   FILE *f = fopen ("conftest.val", "w");
34373   if (! f)
34374     exit (1);
34375   if (((long) (sizeof (long long))) < 0)
34376     {
34377       long i = longval ();
34378       if (i != ((long) (sizeof (long long))))
34379         exit (1);
34380       fprintf (f, "%ld\n", i);
34381     }
34382   else
34383     {
34384       unsigned long i = ulongval ();
34385       if (i != ((long) (sizeof (long long))))
34386         exit (1);
34387       fprintf (f, "%lu\n", i);
34388     }
34389   exit (ferror (f) || fclose (f) != 0);
34390
34391   ;
34392   return 0;
34393 }
34394 _ACEOF
34395 rm -f conftest$ac_exeext
34396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34397   (eval $ac_link) 2>&5
34398   ac_status=$?
34399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34402   (eval $ac_try) 2>&5
34403   ac_status=$?
34404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34405   (exit $ac_status); }; }; then
34406   ac_cv_sizeof_long_long=`cat conftest.val`
34407 else
34408   echo "$as_me: program exited with status $ac_status" >&5
34409 echo "$as_me: failed program was:" >&5
34410 sed 's/^/| /' conftest.$ac_ext >&5
34411
34412 ( exit $ac_status )
34413 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
34414 See \`config.log' for more details." >&5
34415 echo "$as_me: error: cannot compute sizeof (long long), 77
34416 See \`config.log' for more details." >&2;}
34417    { (exit 1); exit 1; }; }
34418 fi
34419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34420 fi
34421 fi
34422 rm -f conftest.val
34423 else
34424   ac_cv_sizeof_long_long=0
34425 fi
34426 fi
34427 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
34428 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
34429 cat >>confdefs.h <<_ACEOF
34430 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
34431 _ACEOF
34432
34433
34434 echo "$as_me:$LINENO: checking for wchar_t" >&5
34435 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
34436 if test "${ac_cv_type_wchar_t+set}" = set; then
34437   echo $ECHO_N "(cached) $ECHO_C" >&6
34438 else
34439   cat >conftest.$ac_ext <<_ACEOF
34440 /* confdefs.h.  */
34441 _ACEOF
34442 cat confdefs.h >>conftest.$ac_ext
34443 cat >>conftest.$ac_ext <<_ACEOF
34444 /* end confdefs.h.  */
34445 $ac_includes_default
34446 int
34447 main ()
34448 {
34449 if ((wchar_t *) 0)
34450   return 0;
34451 if (sizeof (wchar_t))
34452   return 0;
34453   ;
34454   return 0;
34455 }
34456 _ACEOF
34457 rm -f conftest.$ac_objext
34458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34459   (eval $ac_compile) 2>conftest.er1
34460   ac_status=$?
34461   grep -v '^ *+' conftest.er1 >conftest.err
34462   rm -f conftest.er1
34463   cat conftest.err >&5
34464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34465   (exit $ac_status); } &&
34466          { ac_try='test -z "$ac_c_werror_flag"
34467                          || test ! -s conftest.err'
34468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34469   (eval $ac_try) 2>&5
34470   ac_status=$?
34471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472   (exit $ac_status); }; } &&
34473          { ac_try='test -s conftest.$ac_objext'
34474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34475   (eval $ac_try) 2>&5
34476   ac_status=$?
34477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478   (exit $ac_status); }; }; then
34479   ac_cv_type_wchar_t=yes
34480 else
34481   echo "$as_me: failed program was:" >&5
34482 sed 's/^/| /' conftest.$ac_ext >&5
34483
34484 ac_cv_type_wchar_t=no
34485 fi
34486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34487 fi
34488 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
34489 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
34490
34491 echo "$as_me:$LINENO: checking size of wchar_t" >&5
34492 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
34493 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
34494   echo $ECHO_N "(cached) $ECHO_C" >&6
34495 else
34496   if test "$ac_cv_type_wchar_t" = yes; then
34497   # The cast to unsigned long works around a bug in the HP C Compiler
34498   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34499   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34500   # This bug is HP SR number 8606223364.
34501   if test "$cross_compiling" = yes; then
34502   # Depending upon the size, compute the lo and hi bounds.
34503 cat >conftest.$ac_ext <<_ACEOF
34504 /* confdefs.h.  */
34505 _ACEOF
34506 cat confdefs.h >>conftest.$ac_ext
34507 cat >>conftest.$ac_ext <<_ACEOF
34508 /* end confdefs.h.  */
34509 $ac_includes_default
34510 int
34511 main ()
34512 {
34513 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
34514 test_array [0] = 0
34515
34516   ;
34517   return 0;
34518 }
34519 _ACEOF
34520 rm -f conftest.$ac_objext
34521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34522   (eval $ac_compile) 2>conftest.er1
34523   ac_status=$?
34524   grep -v '^ *+' conftest.er1 >conftest.err
34525   rm -f conftest.er1
34526   cat conftest.err >&5
34527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34528   (exit $ac_status); } &&
34529          { ac_try='test -z "$ac_c_werror_flag"
34530                          || test ! -s conftest.err'
34531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34532   (eval $ac_try) 2>&5
34533   ac_status=$?
34534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34535   (exit $ac_status); }; } &&
34536          { ac_try='test -s conftest.$ac_objext'
34537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34538   (eval $ac_try) 2>&5
34539   ac_status=$?
34540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34541   (exit $ac_status); }; }; then
34542   ac_lo=0 ac_mid=0
34543   while :; do
34544     cat >conftest.$ac_ext <<_ACEOF
34545 /* confdefs.h.  */
34546 _ACEOF
34547 cat confdefs.h >>conftest.$ac_ext
34548 cat >>conftest.$ac_ext <<_ACEOF
34549 /* end confdefs.h.  */
34550 $ac_includes_default
34551 int
34552 main ()
34553 {
34554 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
34555 test_array [0] = 0
34556
34557   ;
34558   return 0;
34559 }
34560 _ACEOF
34561 rm -f conftest.$ac_objext
34562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34563   (eval $ac_compile) 2>conftest.er1
34564   ac_status=$?
34565   grep -v '^ *+' conftest.er1 >conftest.err
34566   rm -f conftest.er1
34567   cat conftest.err >&5
34568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34569   (exit $ac_status); } &&
34570          { ac_try='test -z "$ac_c_werror_flag"
34571                          || test ! -s conftest.err'
34572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34573   (eval $ac_try) 2>&5
34574   ac_status=$?
34575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34576   (exit $ac_status); }; } &&
34577          { ac_try='test -s conftest.$ac_objext'
34578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34579   (eval $ac_try) 2>&5
34580   ac_status=$?
34581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34582   (exit $ac_status); }; }; then
34583   ac_hi=$ac_mid; break
34584 else
34585   echo "$as_me: failed program was:" >&5
34586 sed 's/^/| /' conftest.$ac_ext >&5
34587
34588 ac_lo=`expr $ac_mid + 1`
34589                     if test $ac_lo -le $ac_mid; then
34590                       ac_lo= ac_hi=
34591                       break
34592                     fi
34593                     ac_mid=`expr 2 '*' $ac_mid + 1`
34594 fi
34595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34596   done
34597 else
34598   echo "$as_me: failed program was:" >&5
34599 sed 's/^/| /' conftest.$ac_ext >&5
34600
34601 cat >conftest.$ac_ext <<_ACEOF
34602 /* confdefs.h.  */
34603 _ACEOF
34604 cat confdefs.h >>conftest.$ac_ext
34605 cat >>conftest.$ac_ext <<_ACEOF
34606 /* end confdefs.h.  */
34607 $ac_includes_default
34608 int
34609 main ()
34610 {
34611 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
34612 test_array [0] = 0
34613
34614   ;
34615   return 0;
34616 }
34617 _ACEOF
34618 rm -f conftest.$ac_objext
34619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34620   (eval $ac_compile) 2>conftest.er1
34621   ac_status=$?
34622   grep -v '^ *+' conftest.er1 >conftest.err
34623   rm -f conftest.er1
34624   cat conftest.err >&5
34625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34626   (exit $ac_status); } &&
34627          { ac_try='test -z "$ac_c_werror_flag"
34628                          || test ! -s conftest.err'
34629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34630   (eval $ac_try) 2>&5
34631   ac_status=$?
34632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633   (exit $ac_status); }; } &&
34634          { ac_try='test -s conftest.$ac_objext'
34635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34636   (eval $ac_try) 2>&5
34637   ac_status=$?
34638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34639   (exit $ac_status); }; }; then
34640   ac_hi=-1 ac_mid=-1
34641   while :; do
34642     cat >conftest.$ac_ext <<_ACEOF
34643 /* confdefs.h.  */
34644 _ACEOF
34645 cat confdefs.h >>conftest.$ac_ext
34646 cat >>conftest.$ac_ext <<_ACEOF
34647 /* end confdefs.h.  */
34648 $ac_includes_default
34649 int
34650 main ()
34651 {
34652 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
34653 test_array [0] = 0
34654
34655   ;
34656   return 0;
34657 }
34658 _ACEOF
34659 rm -f conftest.$ac_objext
34660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34661   (eval $ac_compile) 2>conftest.er1
34662   ac_status=$?
34663   grep -v '^ *+' conftest.er1 >conftest.err
34664   rm -f conftest.er1
34665   cat conftest.err >&5
34666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34667   (exit $ac_status); } &&
34668          { ac_try='test -z "$ac_c_werror_flag"
34669                          || test ! -s conftest.err'
34670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34671   (eval $ac_try) 2>&5
34672   ac_status=$?
34673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674   (exit $ac_status); }; } &&
34675          { ac_try='test -s conftest.$ac_objext'
34676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34677   (eval $ac_try) 2>&5
34678   ac_status=$?
34679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34680   (exit $ac_status); }; }; then
34681   ac_lo=$ac_mid; break
34682 else
34683   echo "$as_me: failed program was:" >&5
34684 sed 's/^/| /' conftest.$ac_ext >&5
34685
34686 ac_hi=`expr '(' $ac_mid ')' - 1`
34687                        if test $ac_mid -le $ac_hi; then
34688                          ac_lo= ac_hi=
34689                          break
34690                        fi
34691                        ac_mid=`expr 2 '*' $ac_mid`
34692 fi
34693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34694   done
34695 else
34696   echo "$as_me: failed program was:" >&5
34697 sed 's/^/| /' conftest.$ac_ext >&5
34698
34699 ac_lo= ac_hi=
34700 fi
34701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34702 fi
34703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34704 # Binary search between lo and hi bounds.
34705 while test "x$ac_lo" != "x$ac_hi"; do
34706   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34707   cat >conftest.$ac_ext <<_ACEOF
34708 /* confdefs.h.  */
34709 _ACEOF
34710 cat confdefs.h >>conftest.$ac_ext
34711 cat >>conftest.$ac_ext <<_ACEOF
34712 /* end confdefs.h.  */
34713 $ac_includes_default
34714 int
34715 main ()
34716 {
34717 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
34718 test_array [0] = 0
34719
34720   ;
34721   return 0;
34722 }
34723 _ACEOF
34724 rm -f conftest.$ac_objext
34725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34726   (eval $ac_compile) 2>conftest.er1
34727   ac_status=$?
34728   grep -v '^ *+' conftest.er1 >conftest.err
34729   rm -f conftest.er1
34730   cat conftest.err >&5
34731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732   (exit $ac_status); } &&
34733          { ac_try='test -z "$ac_c_werror_flag"
34734                          || test ! -s conftest.err'
34735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34736   (eval $ac_try) 2>&5
34737   ac_status=$?
34738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739   (exit $ac_status); }; } &&
34740          { ac_try='test -s conftest.$ac_objext'
34741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34742   (eval $ac_try) 2>&5
34743   ac_status=$?
34744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745   (exit $ac_status); }; }; then
34746   ac_hi=$ac_mid
34747 else
34748   echo "$as_me: failed program was:" >&5
34749 sed 's/^/| /' conftest.$ac_ext >&5
34750
34751 ac_lo=`expr '(' $ac_mid ')' + 1`
34752 fi
34753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34754 done
34755 case $ac_lo in
34756 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
34757 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
34758 See \`config.log' for more details." >&5
34759 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
34760 See \`config.log' for more details." >&2;}
34761    { (exit 1); exit 1; }; } ;;
34762 esac
34763 else
34764   if test "$cross_compiling" = yes; then
34765   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34766 See \`config.log' for more details." >&5
34767 echo "$as_me: error: cannot run test program while cross compiling
34768 See \`config.log' for more details." >&2;}
34769    { (exit 1); exit 1; }; }
34770 else
34771   cat >conftest.$ac_ext <<_ACEOF
34772 /* confdefs.h.  */
34773 _ACEOF
34774 cat confdefs.h >>conftest.$ac_ext
34775 cat >>conftest.$ac_ext <<_ACEOF
34776 /* end confdefs.h.  */
34777 $ac_includes_default
34778 long longval () { return (long) (sizeof (wchar_t)); }
34779 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
34780 #include <stdio.h>
34781 #include <stdlib.h>
34782 int
34783 main ()
34784 {
34785
34786   FILE *f = fopen ("conftest.val", "w");
34787   if (! f)
34788     exit (1);
34789   if (((long) (sizeof (wchar_t))) < 0)
34790     {
34791       long i = longval ();
34792       if (i != ((long) (sizeof (wchar_t))))
34793         exit (1);
34794       fprintf (f, "%ld\n", i);
34795     }
34796   else
34797     {
34798       unsigned long i = ulongval ();
34799       if (i != ((long) (sizeof (wchar_t))))
34800         exit (1);
34801       fprintf (f, "%lu\n", i);
34802     }
34803   exit (ferror (f) || fclose (f) != 0);
34804
34805   ;
34806   return 0;
34807 }
34808 _ACEOF
34809 rm -f conftest$ac_exeext
34810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34811   (eval $ac_link) 2>&5
34812   ac_status=$?
34813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34816   (eval $ac_try) 2>&5
34817   ac_status=$?
34818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34819   (exit $ac_status); }; }; then
34820   ac_cv_sizeof_wchar_t=`cat conftest.val`
34821 else
34822   echo "$as_me: program exited with status $ac_status" >&5
34823 echo "$as_me: failed program was:" >&5
34824 sed 's/^/| /' conftest.$ac_ext >&5
34825
34826 ( exit $ac_status )
34827 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
34828 See \`config.log' for more details." >&5
34829 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
34830 See \`config.log' for more details." >&2;}
34831    { (exit 1); exit 1; }; }
34832 fi
34833 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34834 fi
34835 fi
34836 rm -f conftest.val
34837 else
34838   ac_cv_sizeof_wchar_t=0
34839 fi
34840 fi
34841 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
34842 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
34843 cat >>confdefs.h <<_ACEOF
34844 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
34845 _ACEOF
34846
34847
34848
34849 if test "$ac_cv_sizeof_int" -lt 4 ; then
34850         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
34851 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
34852
34853
34854 cat >>confdefs.h <<\_ACEOF
34855 #define LBER_INT_T long
34856 _ACEOF
34857
34858 else
34859
34860 cat >>confdefs.h <<\_ACEOF
34861 #define LBER_INT_T int
34862 _ACEOF
34863
34864 fi
34865
34866
34867 cat >>confdefs.h <<\_ACEOF
34868 #define LBER_LEN_T long
34869 _ACEOF
34870
34871
34872 cat >>confdefs.h <<\_ACEOF
34873 #define LBER_SOCKET_T int
34874 _ACEOF
34875
34876
34877 cat >>confdefs.h <<\_ACEOF
34878 #define LBER_TAG_T long
34879 _ACEOF
34880
34881
34882 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
34883         if test $ac_cv_sizeof_long_long -gt 4 ; then
34884                 ol_with_mp=longlong
34885
34886 cat >>confdefs.h <<\_ACEOF
34887 #define USE_MP_LONG_LONG 1
34888 _ACEOF
34889
34890         elif test $ol_with_mp = longlong ; then
34891                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
34892 echo "$as_me: error: long long unusable for multiple precision" >&2;}
34893    { (exit 1); exit 1; }; }
34894         fi
34895 fi
34896 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
34897         if test $ac_cv_sizeof_long -gt 4 ; then
34898                 ol_with_mp=long
34899
34900 cat >>confdefs.h <<\_ACEOF
34901 #define USE_MP_LONG 1
34902 _ACEOF
34903
34904         elif test $ol_with_mp = long ; then
34905                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
34906 echo "$as_me: error: long unusable for multiple precision" >&2;}
34907    { (exit 1); exit 1; }; }
34908         fi
34909 fi
34910 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
34911
34912 for ac_header in openssl/bn.h
34913 do
34914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34916   echo "$as_me:$LINENO: checking for $ac_header" >&5
34917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34919   echo $ECHO_N "(cached) $ECHO_C" >&6
34920 fi
34921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34923 else
34924   # Is the header compilable?
34925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34927 cat >conftest.$ac_ext <<_ACEOF
34928 /* confdefs.h.  */
34929 _ACEOF
34930 cat confdefs.h >>conftest.$ac_ext
34931 cat >>conftest.$ac_ext <<_ACEOF
34932 /* end confdefs.h.  */
34933 $ac_includes_default
34934 #include <$ac_header>
34935 _ACEOF
34936 rm -f conftest.$ac_objext
34937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34938   (eval $ac_compile) 2>conftest.er1
34939   ac_status=$?
34940   grep -v '^ *+' conftest.er1 >conftest.err
34941   rm -f conftest.er1
34942   cat conftest.err >&5
34943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34944   (exit $ac_status); } &&
34945          { ac_try='test -z "$ac_c_werror_flag"
34946                          || test ! -s conftest.err'
34947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34948   (eval $ac_try) 2>&5
34949   ac_status=$?
34950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951   (exit $ac_status); }; } &&
34952          { ac_try='test -s conftest.$ac_objext'
34953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34954   (eval $ac_try) 2>&5
34955   ac_status=$?
34956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957   (exit $ac_status); }; }; then
34958   ac_header_compiler=yes
34959 else
34960   echo "$as_me: failed program was:" >&5
34961 sed 's/^/| /' conftest.$ac_ext >&5
34962
34963 ac_header_compiler=no
34964 fi
34965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34967 echo "${ECHO_T}$ac_header_compiler" >&6
34968
34969 # Is the header present?
34970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34972 cat >conftest.$ac_ext <<_ACEOF
34973 /* confdefs.h.  */
34974 _ACEOF
34975 cat confdefs.h >>conftest.$ac_ext
34976 cat >>conftest.$ac_ext <<_ACEOF
34977 /* end confdefs.h.  */
34978 #include <$ac_header>
34979 _ACEOF
34980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34982   ac_status=$?
34983   grep -v '^ *+' conftest.er1 >conftest.err
34984   rm -f conftest.er1
34985   cat conftest.err >&5
34986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987   (exit $ac_status); } >/dev/null; then
34988   if test -s conftest.err; then
34989     ac_cpp_err=$ac_c_preproc_warn_flag
34990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34991   else
34992     ac_cpp_err=
34993   fi
34994 else
34995   ac_cpp_err=yes
34996 fi
34997 if test -z "$ac_cpp_err"; then
34998   ac_header_preproc=yes
34999 else
35000   echo "$as_me: failed program was:" >&5
35001 sed 's/^/| /' conftest.$ac_ext >&5
35002
35003   ac_header_preproc=no
35004 fi
35005 rm -f conftest.err conftest.$ac_ext
35006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35007 echo "${ECHO_T}$ac_header_preproc" >&6
35008
35009 # So?  What about this header?
35010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35011   yes:no: )
35012     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35016     ac_header_preproc=yes
35017     ;;
35018   no:yes:* )
35019     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35021     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35022 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35023     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35025     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35026 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35029     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35031     (
35032       cat <<\_ASBOX
35033 ## --------------------------------------------- ##
35034 ## Report this to <http://www.openldap.org/its/> ##
35035 ## --------------------------------------------- ##
35036 _ASBOX
35037     ) |
35038       sed "s/^/$as_me: WARNING:     /" >&2
35039     ;;
35040 esac
35041 echo "$as_me:$LINENO: checking for $ac_header" >&5
35042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35044   echo $ECHO_N "(cached) $ECHO_C" >&6
35045 else
35046   eval "$as_ac_Header=\$ac_header_preproc"
35047 fi
35048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35050
35051 fi
35052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35053   cat >>confdefs.h <<_ACEOF
35054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35055 _ACEOF
35056
35057 fi
35058
35059 done
35060
35061
35062 for ac_header in openssl/crypto.h
35063 do
35064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35066   echo "$as_me:$LINENO: checking for $ac_header" >&5
35067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35069   echo $ECHO_N "(cached) $ECHO_C" >&6
35070 fi
35071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35073 else
35074   # Is the header compilable?
35075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35077 cat >conftest.$ac_ext <<_ACEOF
35078 /* confdefs.h.  */
35079 _ACEOF
35080 cat confdefs.h >>conftest.$ac_ext
35081 cat >>conftest.$ac_ext <<_ACEOF
35082 /* end confdefs.h.  */
35083 $ac_includes_default
35084 #include <$ac_header>
35085 _ACEOF
35086 rm -f conftest.$ac_objext
35087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35088   (eval $ac_compile) 2>conftest.er1
35089   ac_status=$?
35090   grep -v '^ *+' conftest.er1 >conftest.err
35091   rm -f conftest.er1
35092   cat conftest.err >&5
35093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094   (exit $ac_status); } &&
35095          { ac_try='test -z "$ac_c_werror_flag"
35096                          || test ! -s conftest.err'
35097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35098   (eval $ac_try) 2>&5
35099   ac_status=$?
35100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101   (exit $ac_status); }; } &&
35102          { ac_try='test -s conftest.$ac_objext'
35103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35104   (eval $ac_try) 2>&5
35105   ac_status=$?
35106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35107   (exit $ac_status); }; }; then
35108   ac_header_compiler=yes
35109 else
35110   echo "$as_me: failed program was:" >&5
35111 sed 's/^/| /' conftest.$ac_ext >&5
35112
35113 ac_header_compiler=no
35114 fi
35115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35117 echo "${ECHO_T}$ac_header_compiler" >&6
35118
35119 # Is the header present?
35120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35122 cat >conftest.$ac_ext <<_ACEOF
35123 /* confdefs.h.  */
35124 _ACEOF
35125 cat confdefs.h >>conftest.$ac_ext
35126 cat >>conftest.$ac_ext <<_ACEOF
35127 /* end confdefs.h.  */
35128 #include <$ac_header>
35129 _ACEOF
35130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35131   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35132   ac_status=$?
35133   grep -v '^ *+' conftest.er1 >conftest.err
35134   rm -f conftest.er1
35135   cat conftest.err >&5
35136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35137   (exit $ac_status); } >/dev/null; then
35138   if test -s conftest.err; then
35139     ac_cpp_err=$ac_c_preproc_warn_flag
35140     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35141   else
35142     ac_cpp_err=
35143   fi
35144 else
35145   ac_cpp_err=yes
35146 fi
35147 if test -z "$ac_cpp_err"; then
35148   ac_header_preproc=yes
35149 else
35150   echo "$as_me: failed program was:" >&5
35151 sed 's/^/| /' conftest.$ac_ext >&5
35152
35153   ac_header_preproc=no
35154 fi
35155 rm -f conftest.err conftest.$ac_ext
35156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35157 echo "${ECHO_T}$ac_header_preproc" >&6
35158
35159 # So?  What about this header?
35160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35161   yes:no: )
35162     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35166     ac_header_preproc=yes
35167     ;;
35168   no:yes:* )
35169     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35171     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35172 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35173     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35175     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35176 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35179     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35181     (
35182       cat <<\_ASBOX
35183 ## --------------------------------------------- ##
35184 ## Report this to <http://www.openldap.org/its/> ##
35185 ## --------------------------------------------- ##
35186 _ASBOX
35187     ) |
35188       sed "s/^/$as_me: WARNING:     /" >&2
35189     ;;
35190 esac
35191 echo "$as_me:$LINENO: checking for $ac_header" >&5
35192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35194   echo $ECHO_N "(cached) $ECHO_C" >&6
35195 else
35196   eval "$as_ac_Header=\$ac_header_preproc"
35197 fi
35198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35200
35201 fi
35202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35203   cat >>confdefs.h <<_ACEOF
35204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35205 _ACEOF
35206
35207 fi
35208
35209 done
35210
35211         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35212                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35213                 test "$ol_with_tls" = "found" ; then
35214                 ol_with_mp=bignum
35215
35216 cat >>confdefs.h <<\_ACEOF
35217 #define USE_MP_BIGNUM 1
35218 _ACEOF
35219
35220         elif test $ol_with_mp = bignum ; then
35221                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35222 echo "$as_me: error: bignum not available" >&2;}
35223    { (exit 1); exit 1; }; }
35224         fi
35225 fi
35226 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35227
35228 for ac_header in gmp.h
35229 do
35230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35232   echo "$as_me:$LINENO: checking for $ac_header" >&5
35233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35235   echo $ECHO_N "(cached) $ECHO_C" >&6
35236 fi
35237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35239 else
35240   # Is the header compilable?
35241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35243 cat >conftest.$ac_ext <<_ACEOF
35244 /* confdefs.h.  */
35245 _ACEOF
35246 cat confdefs.h >>conftest.$ac_ext
35247 cat >>conftest.$ac_ext <<_ACEOF
35248 /* end confdefs.h.  */
35249 $ac_includes_default
35250 #include <$ac_header>
35251 _ACEOF
35252 rm -f conftest.$ac_objext
35253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35254   (eval $ac_compile) 2>conftest.er1
35255   ac_status=$?
35256   grep -v '^ *+' conftest.er1 >conftest.err
35257   rm -f conftest.er1
35258   cat conftest.err >&5
35259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35260   (exit $ac_status); } &&
35261          { ac_try='test -z "$ac_c_werror_flag"
35262                          || test ! -s conftest.err'
35263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35264   (eval $ac_try) 2>&5
35265   ac_status=$?
35266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35267   (exit $ac_status); }; } &&
35268          { ac_try='test -s conftest.$ac_objext'
35269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35270   (eval $ac_try) 2>&5
35271   ac_status=$?
35272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273   (exit $ac_status); }; }; then
35274   ac_header_compiler=yes
35275 else
35276   echo "$as_me: failed program was:" >&5
35277 sed 's/^/| /' conftest.$ac_ext >&5
35278
35279 ac_header_compiler=no
35280 fi
35281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35283 echo "${ECHO_T}$ac_header_compiler" >&6
35284
35285 # Is the header present?
35286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35288 cat >conftest.$ac_ext <<_ACEOF
35289 /* confdefs.h.  */
35290 _ACEOF
35291 cat confdefs.h >>conftest.$ac_ext
35292 cat >>conftest.$ac_ext <<_ACEOF
35293 /* end confdefs.h.  */
35294 #include <$ac_header>
35295 _ACEOF
35296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35297   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35298   ac_status=$?
35299   grep -v '^ *+' conftest.er1 >conftest.err
35300   rm -f conftest.er1
35301   cat conftest.err >&5
35302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35303   (exit $ac_status); } >/dev/null; then
35304   if test -s conftest.err; then
35305     ac_cpp_err=$ac_c_preproc_warn_flag
35306     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35307   else
35308     ac_cpp_err=
35309   fi
35310 else
35311   ac_cpp_err=yes
35312 fi
35313 if test -z "$ac_cpp_err"; then
35314   ac_header_preproc=yes
35315 else
35316   echo "$as_me: failed program was:" >&5
35317 sed 's/^/| /' conftest.$ac_ext >&5
35318
35319   ac_header_preproc=no
35320 fi
35321 rm -f conftest.err conftest.$ac_ext
35322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35323 echo "${ECHO_T}$ac_header_preproc" >&6
35324
35325 # So?  What about this header?
35326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35327   yes:no: )
35328     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35332     ac_header_preproc=yes
35333     ;;
35334   no:yes:* )
35335     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35337     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35338 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35339     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35341     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35342 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35345     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35347     (
35348       cat <<\_ASBOX
35349 ## --------------------------------------------- ##
35350 ## Report this to <http://www.openldap.org/its/> ##
35351 ## --------------------------------------------- ##
35352 _ASBOX
35353     ) |
35354       sed "s/^/$as_me: WARNING:     /" >&2
35355     ;;
35356 esac
35357 echo "$as_me:$LINENO: checking for $ac_header" >&5
35358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35360   echo $ECHO_N "(cached) $ECHO_C" >&6
35361 else
35362   eval "$as_ac_Header=\$ac_header_preproc"
35363 fi
35364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35366
35367 fi
35368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35369   cat >>confdefs.h <<_ACEOF
35370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35371 _ACEOF
35372
35373 fi
35374
35375 done
35376
35377
35378 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35379 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
35380 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35381   echo $ECHO_N "(cached) $ECHO_C" >&6
35382 else
35383   ac_check_lib_save_LIBS=$LIBS
35384 LIBS="-lgmp  $LIBS"
35385 cat >conftest.$ac_ext <<_ACEOF
35386 /* confdefs.h.  */
35387 _ACEOF
35388 cat confdefs.h >>conftest.$ac_ext
35389 cat >>conftest.$ac_ext <<_ACEOF
35390 /* end confdefs.h.  */
35391
35392 /* Override any gcc2 internal prototype to avoid an error.  */
35393 #ifdef __cplusplus
35394 extern "C"
35395 #endif
35396 /* We use char because int might match the return type of a gcc2
35397    builtin and then its argument prototype would still apply.  */
35398 char __gmpz_add_ui ();
35399 int
35400 main ()
35401 {
35402 __gmpz_add_ui ();
35403   ;
35404   return 0;
35405 }
35406 _ACEOF
35407 rm -f conftest.$ac_objext conftest$ac_exeext
35408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35409   (eval $ac_link) 2>conftest.er1
35410   ac_status=$?
35411   grep -v '^ *+' conftest.er1 >conftest.err
35412   rm -f conftest.er1
35413   cat conftest.err >&5
35414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35415   (exit $ac_status); } &&
35416          { ac_try='test -z "$ac_c_werror_flag"
35417                          || test ! -s conftest.err'
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); }; } &&
35423          { ac_try='test -s conftest$ac_exeext'
35424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35425   (eval $ac_try) 2>&5
35426   ac_status=$?
35427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35428   (exit $ac_status); }; }; then
35429   ac_cv_lib_gmp___gmpz_add_ui=yes
35430 else
35431   echo "$as_me: failed program was:" >&5
35432 sed 's/^/| /' conftest.$ac_ext >&5
35433
35434 ac_cv_lib_gmp___gmpz_add_ui=no
35435 fi
35436 rm -f conftest.err conftest.$ac_objext \
35437       conftest$ac_exeext conftest.$ac_ext
35438 LIBS=$ac_check_lib_save_LIBS
35439 fi
35440 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
35441 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
35442 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
35443   cat >>confdefs.h <<_ACEOF
35444 #define HAVE_LIBGMP 1
35445 _ACEOF
35446
35447   LIBS="-lgmp $LIBS"
35448
35449 fi
35450
35451         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
35452
35453 cat >>confdefs.h <<\_ACEOF
35454 #define USE_MP_GMP 1
35455 _ACEOF
35456
35457                 ol_with_mp=gmp
35458         elif test $ol_with_mp = gmp ; then
35459                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
35460 echo "$as_me: error: gmp not available" >&2;}
35461    { (exit 1); exit 1; }; }
35462         fi
35463 fi
35464 if test $ol_with_mp = auto ; then
35465         ol_with_mp=no
35466 fi
35467
35468 echo "$as_me:$LINENO: checking for working memcmp" >&5
35469 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
35470 if test "${ac_cv_func_memcmp_working+set}" = set; then
35471   echo $ECHO_N "(cached) $ECHO_C" >&6
35472 else
35473   if test "$cross_compiling" = yes; then
35474   ac_cv_func_memcmp_working=no
35475 else
35476   cat >conftest.$ac_ext <<_ACEOF
35477 /* confdefs.h.  */
35478 _ACEOF
35479 cat confdefs.h >>conftest.$ac_ext
35480 cat >>conftest.$ac_ext <<_ACEOF
35481 /* end confdefs.h.  */
35482 $ac_includes_default
35483 int
35484 main ()
35485 {
35486
35487   /* Some versions of memcmp are not 8-bit clean.  */
35488   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
35489   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
35490     exit (1);
35491
35492   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
35493      or more and with at least one buffer not starting on a 4-byte boundary.
35494      William Lewis provided this test program.   */
35495   {
35496     char foo[21];
35497     char bar[21];
35498     int i;
35499     for (i = 0; i < 4; i++)
35500       {
35501         char *a = foo + i;
35502         char *b = bar + i;
35503         strcpy (a, "--------01111111");
35504         strcpy (b, "--------10000000");
35505         if (memcmp (a, b, 16) >= 0)
35506           exit (1);
35507       }
35508     exit (0);
35509   }
35510
35511   ;
35512   return 0;
35513 }
35514 _ACEOF
35515 rm -f conftest$ac_exeext
35516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35517   (eval $ac_link) 2>&5
35518   ac_status=$?
35519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35522   (eval $ac_try) 2>&5
35523   ac_status=$?
35524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35525   (exit $ac_status); }; }; then
35526   ac_cv_func_memcmp_working=yes
35527 else
35528   echo "$as_me: program exited with status $ac_status" >&5
35529 echo "$as_me: failed program was:" >&5
35530 sed 's/^/| /' conftest.$ac_ext >&5
35531
35532 ( exit $ac_status )
35533 ac_cv_func_memcmp_working=no
35534 fi
35535 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35536 fi
35537 fi
35538 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
35539 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
35540 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
35541     "memcmp.$ac_objext"   | \
35542   *" memcmp.$ac_objext"   | \
35543     "memcmp.$ac_objext "* | \
35544   *" memcmp.$ac_objext "* ) ;;
35545   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
35546 esac
35547
35548
35549
35550 if test $ac_cv_func_memcmp_working = no ; then
35551
35552 cat >>confdefs.h <<\_ACEOF
35553 #define NEED_MEMCMP_REPLACEMENT 1
35554 _ACEOF
35555
35556 fi
35557
35558
35559 for ac_func in strftime
35560 do
35561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35562 echo "$as_me:$LINENO: checking for $ac_func" >&5
35563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35564 if eval "test \"\${$as_ac_var+set}\" = set"; then
35565   echo $ECHO_N "(cached) $ECHO_C" >&6
35566 else
35567   cat >conftest.$ac_ext <<_ACEOF
35568 /* confdefs.h.  */
35569 _ACEOF
35570 cat confdefs.h >>conftest.$ac_ext
35571 cat >>conftest.$ac_ext <<_ACEOF
35572 /* end confdefs.h.  */
35573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35575 #define $ac_func innocuous_$ac_func
35576
35577 /* System header to define __stub macros and hopefully few prototypes,
35578     which can conflict with char $ac_func (); below.
35579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35580     <limits.h> exists even on freestanding compilers.  */
35581
35582 #ifdef __STDC__
35583 # include <limits.h>
35584 #else
35585 # include <assert.h>
35586 #endif
35587
35588 #undef $ac_func
35589
35590 /* Override any gcc2 internal prototype to avoid an error.  */
35591 #ifdef __cplusplus
35592 extern "C"
35593 {
35594 #endif
35595 /* We use char because int might match the return type of a gcc2
35596    builtin and then its argument prototype would still apply.  */
35597 char $ac_func ();
35598 /* The GNU C library defines this for functions which it implements
35599     to always fail with ENOSYS.  Some functions are actually named
35600     something starting with __ and the normal name is an alias.  */
35601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35602 choke me
35603 #else
35604 char (*f) () = $ac_func;
35605 #endif
35606 #ifdef __cplusplus
35607 }
35608 #endif
35609
35610 int
35611 main ()
35612 {
35613 return f != $ac_func;
35614   ;
35615   return 0;
35616 }
35617 _ACEOF
35618 rm -f conftest.$ac_objext conftest$ac_exeext
35619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35620   (eval $ac_link) 2>conftest.er1
35621   ac_status=$?
35622   grep -v '^ *+' conftest.er1 >conftest.err
35623   rm -f conftest.er1
35624   cat conftest.err >&5
35625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35626   (exit $ac_status); } &&
35627          { ac_try='test -z "$ac_c_werror_flag"
35628                          || test ! -s conftest.err'
35629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35630   (eval $ac_try) 2>&5
35631   ac_status=$?
35632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633   (exit $ac_status); }; } &&
35634          { ac_try='test -s conftest$ac_exeext'
35635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35636   (eval $ac_try) 2>&5
35637   ac_status=$?
35638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35639   (exit $ac_status); }; }; then
35640   eval "$as_ac_var=yes"
35641 else
35642   echo "$as_me: failed program was:" >&5
35643 sed 's/^/| /' conftest.$ac_ext >&5
35644
35645 eval "$as_ac_var=no"
35646 fi
35647 rm -f conftest.err conftest.$ac_objext \
35648       conftest$ac_exeext conftest.$ac_ext
35649 fi
35650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35652 if test `eval echo '${'$as_ac_var'}'` = yes; then
35653   cat >>confdefs.h <<_ACEOF
35654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35655 _ACEOF
35656
35657 else
35658   # strftime is in -lintl on SCO UNIX.
35659 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
35660 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
35661 if test "${ac_cv_lib_intl_strftime+set}" = set; then
35662   echo $ECHO_N "(cached) $ECHO_C" >&6
35663 else
35664   ac_check_lib_save_LIBS=$LIBS
35665 LIBS="-lintl  $LIBS"
35666 cat >conftest.$ac_ext <<_ACEOF
35667 /* confdefs.h.  */
35668 _ACEOF
35669 cat confdefs.h >>conftest.$ac_ext
35670 cat >>conftest.$ac_ext <<_ACEOF
35671 /* end confdefs.h.  */
35672
35673 /* Override any gcc2 internal prototype to avoid an error.  */
35674 #ifdef __cplusplus
35675 extern "C"
35676 #endif
35677 /* We use char because int might match the return type of a gcc2
35678    builtin and then its argument prototype would still apply.  */
35679 char strftime ();
35680 int
35681 main ()
35682 {
35683 strftime ();
35684   ;
35685   return 0;
35686 }
35687 _ACEOF
35688 rm -f conftest.$ac_objext conftest$ac_exeext
35689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35690   (eval $ac_link) 2>conftest.er1
35691   ac_status=$?
35692   grep -v '^ *+' conftest.er1 >conftest.err
35693   rm -f conftest.er1
35694   cat conftest.err >&5
35695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696   (exit $ac_status); } &&
35697          { ac_try='test -z "$ac_c_werror_flag"
35698                          || test ! -s conftest.err'
35699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35700   (eval $ac_try) 2>&5
35701   ac_status=$?
35702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703   (exit $ac_status); }; } &&
35704          { ac_try='test -s conftest$ac_exeext'
35705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35706   (eval $ac_try) 2>&5
35707   ac_status=$?
35708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35709   (exit $ac_status); }; }; then
35710   ac_cv_lib_intl_strftime=yes
35711 else
35712   echo "$as_me: failed program was:" >&5
35713 sed 's/^/| /' conftest.$ac_ext >&5
35714
35715 ac_cv_lib_intl_strftime=no
35716 fi
35717 rm -f conftest.err conftest.$ac_objext \
35718       conftest$ac_exeext conftest.$ac_ext
35719 LIBS=$ac_check_lib_save_LIBS
35720 fi
35721 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
35722 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
35723 if test $ac_cv_lib_intl_strftime = yes; then
35724   cat >>confdefs.h <<\_ACEOF
35725 #define HAVE_STRFTIME 1
35726 _ACEOF
35727
35728 LIBS="-lintl $LIBS"
35729 fi
35730
35731 fi
35732 done
35733
35734
35735 echo "$as_me:$LINENO: checking for inet_aton()" >&5
35736 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
35737 if test "${ol_cv_func_inet_aton+set}" = set; then
35738   echo $ECHO_N "(cached) $ECHO_C" >&6
35739 else
35740   cat >conftest.$ac_ext <<_ACEOF
35741 /* confdefs.h.  */
35742 _ACEOF
35743 cat confdefs.h >>conftest.$ac_ext
35744 cat >>conftest.$ac_ext <<_ACEOF
35745 /* end confdefs.h.  */
35746
35747 #ifdef HAVE_SYS_TYPES_H
35748 #       include <sys/types.h>
35749 #endif
35750 #ifdef HAVE_SYS_SOCKET_H
35751 #       include <sys/socket.h>
35752 #       ifdef HAVE_SYS_SELECT_H
35753 #               include <sys/select.h>
35754 #       endif
35755 #       include <netinet/in.h>
35756 #       ifdef HAVE_ARPA_INET_H
35757 #               include <arpa/inet.h>
35758 #       endif
35759 #endif
35760
35761 int
35762 main ()
35763 {
35764 struct in_addr in;
35765 int rc = inet_aton( "255.255.255.255", &in );
35766   ;
35767   return 0;
35768 }
35769 _ACEOF
35770 rm -f conftest.$ac_objext conftest$ac_exeext
35771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35772   (eval $ac_link) 2>conftest.er1
35773   ac_status=$?
35774   grep -v '^ *+' conftest.er1 >conftest.err
35775   rm -f conftest.er1
35776   cat conftest.err >&5
35777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778   (exit $ac_status); } &&
35779          { ac_try='test -z "$ac_c_werror_flag"
35780                          || test ! -s conftest.err'
35781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35782   (eval $ac_try) 2>&5
35783   ac_status=$?
35784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35785   (exit $ac_status); }; } &&
35786          { ac_try='test -s conftest$ac_exeext'
35787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35788   (eval $ac_try) 2>&5
35789   ac_status=$?
35790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35791   (exit $ac_status); }; }; then
35792   ol_cv_func_inet_aton=yes
35793 else
35794   echo "$as_me: failed program was:" >&5
35795 sed 's/^/| /' conftest.$ac_ext >&5
35796
35797 ol_cv_func_inet_aton=no
35798 fi
35799 rm -f conftest.err conftest.$ac_objext \
35800       conftest$ac_exeext conftest.$ac_ext
35801 fi
35802 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
35803 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
35804   if test $ol_cv_func_inet_aton != no; then
35805
35806 cat >>confdefs.h <<\_ACEOF
35807 #define HAVE_INET_ATON 1
35808 _ACEOF
35809
35810   fi
35811
35812
35813 echo "$as_me:$LINENO: checking for _spawnlp" >&5
35814 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
35815 if test "${ac_cv_func__spawnlp+set}" = set; then
35816   echo $ECHO_N "(cached) $ECHO_C" >&6
35817 else
35818   cat >conftest.$ac_ext <<_ACEOF
35819 /* confdefs.h.  */
35820 _ACEOF
35821 cat confdefs.h >>conftest.$ac_ext
35822 cat >>conftest.$ac_ext <<_ACEOF
35823 /* end confdefs.h.  */
35824 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
35825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35826 #define _spawnlp innocuous__spawnlp
35827
35828 /* System header to define __stub macros and hopefully few prototypes,
35829     which can conflict with char _spawnlp (); below.
35830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35831     <limits.h> exists even on freestanding compilers.  */
35832
35833 #ifdef __STDC__
35834 # include <limits.h>
35835 #else
35836 # include <assert.h>
35837 #endif
35838
35839 #undef _spawnlp
35840
35841 /* Override any gcc2 internal prototype to avoid an error.  */
35842 #ifdef __cplusplus
35843 extern "C"
35844 {
35845 #endif
35846 /* We use char because int might match the return type of a gcc2
35847    builtin and then its argument prototype would still apply.  */
35848 char _spawnlp ();
35849 /* The GNU C library defines this for functions which it implements
35850     to always fail with ENOSYS.  Some functions are actually named
35851     something starting with __ and the normal name is an alias.  */
35852 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
35853 choke me
35854 #else
35855 char (*f) () = _spawnlp;
35856 #endif
35857 #ifdef __cplusplus
35858 }
35859 #endif
35860
35861 int
35862 main ()
35863 {
35864 return f != _spawnlp;
35865   ;
35866   return 0;
35867 }
35868 _ACEOF
35869 rm -f conftest.$ac_objext conftest$ac_exeext
35870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35871   (eval $ac_link) 2>conftest.er1
35872   ac_status=$?
35873   grep -v '^ *+' conftest.er1 >conftest.err
35874   rm -f conftest.er1
35875   cat conftest.err >&5
35876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35877   (exit $ac_status); } &&
35878          { ac_try='test -z "$ac_c_werror_flag"
35879                          || test ! -s conftest.err'
35880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35881   (eval $ac_try) 2>&5
35882   ac_status=$?
35883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35884   (exit $ac_status); }; } &&
35885          { ac_try='test -s conftest$ac_exeext'
35886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35887   (eval $ac_try) 2>&5
35888   ac_status=$?
35889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35890   (exit $ac_status); }; }; then
35891   ac_cv_func__spawnlp=yes
35892 else
35893   echo "$as_me: failed program was:" >&5
35894 sed 's/^/| /' conftest.$ac_ext >&5
35895
35896 ac_cv_func__spawnlp=no
35897 fi
35898 rm -f conftest.err conftest.$ac_objext \
35899       conftest$ac_exeext conftest.$ac_ext
35900 fi
35901 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
35902 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
35903 if test $ac_cv_func__spawnlp = yes; then
35904
35905 cat >>confdefs.h <<\_ACEOF
35906 #define HAVE_SPAWNLP 1
35907 _ACEOF
35908
35909 fi
35910
35911
35912 echo "$as_me:$LINENO: checking for _snprintf" >&5
35913 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
35914 if test "${ac_cv_func__snprintf+set}" = set; then
35915   echo $ECHO_N "(cached) $ECHO_C" >&6
35916 else
35917   cat >conftest.$ac_ext <<_ACEOF
35918 /* confdefs.h.  */
35919 _ACEOF
35920 cat confdefs.h >>conftest.$ac_ext
35921 cat >>conftest.$ac_ext <<_ACEOF
35922 /* end confdefs.h.  */
35923 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
35924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35925 #define _snprintf innocuous__snprintf
35926
35927 /* System header to define __stub macros and hopefully few prototypes,
35928     which can conflict with char _snprintf (); below.
35929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35930     <limits.h> exists even on freestanding compilers.  */
35931
35932 #ifdef __STDC__
35933 # include <limits.h>
35934 #else
35935 # include <assert.h>
35936 #endif
35937
35938 #undef _snprintf
35939
35940 /* Override any gcc2 internal prototype to avoid an error.  */
35941 #ifdef __cplusplus
35942 extern "C"
35943 {
35944 #endif
35945 /* We use char because int might match the return type of a gcc2
35946    builtin and then its argument prototype would still apply.  */
35947 char _snprintf ();
35948 /* The GNU C library defines this for functions which it implements
35949     to always fail with ENOSYS.  Some functions are actually named
35950     something starting with __ and the normal name is an alias.  */
35951 #if defined (__stub__snprintf) || defined (__stub____snprintf)
35952 choke me
35953 #else
35954 char (*f) () = _snprintf;
35955 #endif
35956 #ifdef __cplusplus
35957 }
35958 #endif
35959
35960 int
35961 main ()
35962 {
35963 return f != _snprintf;
35964   ;
35965   return 0;
35966 }
35967 _ACEOF
35968 rm -f conftest.$ac_objext conftest$ac_exeext
35969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35970   (eval $ac_link) 2>conftest.er1
35971   ac_status=$?
35972   grep -v '^ *+' conftest.er1 >conftest.err
35973   rm -f conftest.er1
35974   cat conftest.err >&5
35975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35976   (exit $ac_status); } &&
35977          { ac_try='test -z "$ac_c_werror_flag"
35978                          || test ! -s conftest.err'
35979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35980   (eval $ac_try) 2>&5
35981   ac_status=$?
35982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35983   (exit $ac_status); }; } &&
35984          { ac_try='test -s conftest$ac_exeext'
35985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35986   (eval $ac_try) 2>&5
35987   ac_status=$?
35988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35989   (exit $ac_status); }; }; then
35990   ac_cv_func__snprintf=yes
35991 else
35992   echo "$as_me: failed program was:" >&5
35993 sed 's/^/| /' conftest.$ac_ext >&5
35994
35995 ac_cv_func__snprintf=no
35996 fi
35997 rm -f conftest.err conftest.$ac_objext \
35998       conftest$ac_exeext conftest.$ac_ext
35999 fi
36000 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36001 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
36002 if test $ac_cv_func__snprintf = yes; then
36003   ac_cv_func_snprintf=yes
36004
36005 cat >>confdefs.h <<\_ACEOF
36006 #define snprintf _snprintf
36007 _ACEOF
36008
36009
36010 fi
36011
36012
36013 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
36014 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
36015 if test "${ac_cv_func__vsnprintf+set}" = set; then
36016   echo $ECHO_N "(cached) $ECHO_C" >&6
36017 else
36018   cat >conftest.$ac_ext <<_ACEOF
36019 /* confdefs.h.  */
36020 _ACEOF
36021 cat confdefs.h >>conftest.$ac_ext
36022 cat >>conftest.$ac_ext <<_ACEOF
36023 /* end confdefs.h.  */
36024 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
36025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36026 #define _vsnprintf innocuous__vsnprintf
36027
36028 /* System header to define __stub macros and hopefully few prototypes,
36029     which can conflict with char _vsnprintf (); below.
36030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36031     <limits.h> exists even on freestanding compilers.  */
36032
36033 #ifdef __STDC__
36034 # include <limits.h>
36035 #else
36036 # include <assert.h>
36037 #endif
36038
36039 #undef _vsnprintf
36040
36041 /* Override any gcc2 internal prototype to avoid an error.  */
36042 #ifdef __cplusplus
36043 extern "C"
36044 {
36045 #endif
36046 /* We use char because int might match the return type of a gcc2
36047    builtin and then its argument prototype would still apply.  */
36048 char _vsnprintf ();
36049 /* The GNU C library defines this for functions which it implements
36050     to always fail with ENOSYS.  Some functions are actually named
36051     something starting with __ and the normal name is an alias.  */
36052 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
36053 choke me
36054 #else
36055 char (*f) () = _vsnprintf;
36056 #endif
36057 #ifdef __cplusplus
36058 }
36059 #endif
36060
36061 int
36062 main ()
36063 {
36064 return f != _vsnprintf;
36065   ;
36066   return 0;
36067 }
36068 _ACEOF
36069 rm -f conftest.$ac_objext conftest$ac_exeext
36070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36071   (eval $ac_link) 2>conftest.er1
36072   ac_status=$?
36073   grep -v '^ *+' conftest.er1 >conftest.err
36074   rm -f conftest.er1
36075   cat conftest.err >&5
36076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36077   (exit $ac_status); } &&
36078          { ac_try='test -z "$ac_c_werror_flag"
36079                          || test ! -s conftest.err'
36080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36081   (eval $ac_try) 2>&5
36082   ac_status=$?
36083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36084   (exit $ac_status); }; } &&
36085          { ac_try='test -s conftest$ac_exeext'
36086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36087   (eval $ac_try) 2>&5
36088   ac_status=$?
36089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36090   (exit $ac_status); }; }; then
36091   ac_cv_func__vsnprintf=yes
36092 else
36093   echo "$as_me: failed program was:" >&5
36094 sed 's/^/| /' conftest.$ac_ext >&5
36095
36096 ac_cv_func__vsnprintf=no
36097 fi
36098 rm -f conftest.err conftest.$ac_objext \
36099       conftest$ac_exeext conftest.$ac_ext
36100 fi
36101 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
36102 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
36103 if test $ac_cv_func__vsnprintf = yes; then
36104   ac_cv_func_vsnprintf=yes
36105
36106 cat >>confdefs.h <<\_ACEOF
36107 #define vsnprintf _vsnprintf
36108 _ACEOF
36109
36110
36111 fi
36112
36113
36114
36115 for ac_func in vprintf
36116 do
36117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36118 echo "$as_me:$LINENO: checking for $ac_func" >&5
36119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36120 if eval "test \"\${$as_ac_var+set}\" = set"; then
36121   echo $ECHO_N "(cached) $ECHO_C" >&6
36122 else
36123   cat >conftest.$ac_ext <<_ACEOF
36124 /* confdefs.h.  */
36125 _ACEOF
36126 cat confdefs.h >>conftest.$ac_ext
36127 cat >>conftest.$ac_ext <<_ACEOF
36128 /* end confdefs.h.  */
36129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36131 #define $ac_func innocuous_$ac_func
36132
36133 /* System header to define __stub macros and hopefully few prototypes,
36134     which can conflict with char $ac_func (); below.
36135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36136     <limits.h> exists even on freestanding compilers.  */
36137
36138 #ifdef __STDC__
36139 # include <limits.h>
36140 #else
36141 # include <assert.h>
36142 #endif
36143
36144 #undef $ac_func
36145
36146 /* Override any gcc2 internal prototype to avoid an error.  */
36147 #ifdef __cplusplus
36148 extern "C"
36149 {
36150 #endif
36151 /* We use char because int might match the return type of a gcc2
36152    builtin and then its argument prototype would still apply.  */
36153 char $ac_func ();
36154 /* The GNU C library defines this for functions which it implements
36155     to always fail with ENOSYS.  Some functions are actually named
36156     something starting with __ and the normal name is an alias.  */
36157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36158 choke me
36159 #else
36160 char (*f) () = $ac_func;
36161 #endif
36162 #ifdef __cplusplus
36163 }
36164 #endif
36165
36166 int
36167 main ()
36168 {
36169 return f != $ac_func;
36170   ;
36171   return 0;
36172 }
36173 _ACEOF
36174 rm -f conftest.$ac_objext conftest$ac_exeext
36175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36176   (eval $ac_link) 2>conftest.er1
36177   ac_status=$?
36178   grep -v '^ *+' conftest.er1 >conftest.err
36179   rm -f conftest.er1
36180   cat conftest.err >&5
36181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182   (exit $ac_status); } &&
36183          { ac_try='test -z "$ac_c_werror_flag"
36184                          || test ! -s conftest.err'
36185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36186   (eval $ac_try) 2>&5
36187   ac_status=$?
36188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36189   (exit $ac_status); }; } &&
36190          { ac_try='test -s conftest$ac_exeext'
36191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36192   (eval $ac_try) 2>&5
36193   ac_status=$?
36194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36195   (exit $ac_status); }; }; then
36196   eval "$as_ac_var=yes"
36197 else
36198   echo "$as_me: failed program was:" >&5
36199 sed 's/^/| /' conftest.$ac_ext >&5
36200
36201 eval "$as_ac_var=no"
36202 fi
36203 rm -f conftest.err conftest.$ac_objext \
36204       conftest$ac_exeext conftest.$ac_ext
36205 fi
36206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36208 if test `eval echo '${'$as_ac_var'}'` = yes; then
36209   cat >>confdefs.h <<_ACEOF
36210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36211 _ACEOF
36212
36213 echo "$as_me:$LINENO: checking for _doprnt" >&5
36214 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
36215 if test "${ac_cv_func__doprnt+set}" = set; then
36216   echo $ECHO_N "(cached) $ECHO_C" >&6
36217 else
36218   cat >conftest.$ac_ext <<_ACEOF
36219 /* confdefs.h.  */
36220 _ACEOF
36221 cat confdefs.h >>conftest.$ac_ext
36222 cat >>conftest.$ac_ext <<_ACEOF
36223 /* end confdefs.h.  */
36224 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36226 #define _doprnt innocuous__doprnt
36227
36228 /* System header to define __stub macros and hopefully few prototypes,
36229     which can conflict with char _doprnt (); below.
36230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36231     <limits.h> exists even on freestanding compilers.  */
36232
36233 #ifdef __STDC__
36234 # include <limits.h>
36235 #else
36236 # include <assert.h>
36237 #endif
36238
36239 #undef _doprnt
36240
36241 /* Override any gcc2 internal prototype to avoid an error.  */
36242 #ifdef __cplusplus
36243 extern "C"
36244 {
36245 #endif
36246 /* We use char because int might match the return type of a gcc2
36247    builtin and then its argument prototype would still apply.  */
36248 char _doprnt ();
36249 /* The GNU C library defines this for functions which it implements
36250     to always fail with ENOSYS.  Some functions are actually named
36251     something starting with __ and the normal name is an alias.  */
36252 #if defined (__stub__doprnt) || defined (__stub____doprnt)
36253 choke me
36254 #else
36255 char (*f) () = _doprnt;
36256 #endif
36257 #ifdef __cplusplus
36258 }
36259 #endif
36260
36261 int
36262 main ()
36263 {
36264 return f != _doprnt;
36265   ;
36266   return 0;
36267 }
36268 _ACEOF
36269 rm -f conftest.$ac_objext conftest$ac_exeext
36270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36271   (eval $ac_link) 2>conftest.er1
36272   ac_status=$?
36273   grep -v '^ *+' conftest.er1 >conftest.err
36274   rm -f conftest.er1
36275   cat conftest.err >&5
36276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277   (exit $ac_status); } &&
36278          { ac_try='test -z "$ac_c_werror_flag"
36279                          || test ! -s conftest.err'
36280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36281   (eval $ac_try) 2>&5
36282   ac_status=$?
36283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36284   (exit $ac_status); }; } &&
36285          { ac_try='test -s conftest$ac_exeext'
36286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36287   (eval $ac_try) 2>&5
36288   ac_status=$?
36289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36290   (exit $ac_status); }; }; then
36291   ac_cv_func__doprnt=yes
36292 else
36293   echo "$as_me: failed program was:" >&5
36294 sed 's/^/| /' conftest.$ac_ext >&5
36295
36296 ac_cv_func__doprnt=no
36297 fi
36298 rm -f conftest.err conftest.$ac_objext \
36299       conftest$ac_exeext conftest.$ac_ext
36300 fi
36301 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36302 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
36303 if test $ac_cv_func__doprnt = yes; then
36304
36305 cat >>confdefs.h <<\_ACEOF
36306 #define HAVE_DOPRNT 1
36307 _ACEOF
36308
36309 fi
36310
36311 fi
36312 done
36313
36314
36315
36316 if test $ac_cv_func_vprintf = yes ; then
36317
36318
36319 for ac_func in snprintf vsnprintf
36320 do
36321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36322 echo "$as_me:$LINENO: checking for $ac_func" >&5
36323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36324 if eval "test \"\${$as_ac_var+set}\" = set"; then
36325   echo $ECHO_N "(cached) $ECHO_C" >&6
36326 else
36327   cat >conftest.$ac_ext <<_ACEOF
36328 /* confdefs.h.  */
36329 _ACEOF
36330 cat confdefs.h >>conftest.$ac_ext
36331 cat >>conftest.$ac_ext <<_ACEOF
36332 /* end confdefs.h.  */
36333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36335 #define $ac_func innocuous_$ac_func
36336
36337 /* System header to define __stub macros and hopefully few prototypes,
36338     which can conflict with char $ac_func (); below.
36339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36340     <limits.h> exists even on freestanding compilers.  */
36341
36342 #ifdef __STDC__
36343 # include <limits.h>
36344 #else
36345 # include <assert.h>
36346 #endif
36347
36348 #undef $ac_func
36349
36350 /* Override any gcc2 internal prototype to avoid an error.  */
36351 #ifdef __cplusplus
36352 extern "C"
36353 {
36354 #endif
36355 /* We use char because int might match the return type of a gcc2
36356    builtin and then its argument prototype would still apply.  */
36357 char $ac_func ();
36358 /* The GNU C library defines this for functions which it implements
36359     to always fail with ENOSYS.  Some functions are actually named
36360     something starting with __ and the normal name is an alias.  */
36361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36362 choke me
36363 #else
36364 char (*f) () = $ac_func;
36365 #endif
36366 #ifdef __cplusplus
36367 }
36368 #endif
36369
36370 int
36371 main ()
36372 {
36373 return f != $ac_func;
36374   ;
36375   return 0;
36376 }
36377 _ACEOF
36378 rm -f conftest.$ac_objext conftest$ac_exeext
36379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36380   (eval $ac_link) 2>conftest.er1
36381   ac_status=$?
36382   grep -v '^ *+' conftest.er1 >conftest.err
36383   rm -f conftest.er1
36384   cat conftest.err >&5
36385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386   (exit $ac_status); } &&
36387          { ac_try='test -z "$ac_c_werror_flag"
36388                          || test ! -s conftest.err'
36389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36390   (eval $ac_try) 2>&5
36391   ac_status=$?
36392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393   (exit $ac_status); }; } &&
36394          { ac_try='test -s conftest$ac_exeext'
36395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36396   (eval $ac_try) 2>&5
36397   ac_status=$?
36398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36399   (exit $ac_status); }; }; then
36400   eval "$as_ac_var=yes"
36401 else
36402   echo "$as_me: failed program was:" >&5
36403 sed 's/^/| /' conftest.$ac_ext >&5
36404
36405 eval "$as_ac_var=no"
36406 fi
36407 rm -f conftest.err conftest.$ac_objext \
36408       conftest$ac_exeext conftest.$ac_ext
36409 fi
36410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36412 if test `eval echo '${'$as_ac_var'}'` = yes; then
36413   cat >>confdefs.h <<_ACEOF
36414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36415 _ACEOF
36416
36417 fi
36418 done
36419
36420 fi
36421
36422
36423
36424
36425
36426
36427
36428
36429
36430
36431
36432
36433
36434
36435
36436
36437
36438
36439
36440
36441
36442
36443
36444
36445
36446
36447
36448
36449
36450
36451
36452
36453
36454
36455
36456
36457
36458
36459
36460
36461
36462
36463
36464
36465
36466
36467
36468
36469
36470
36471
36472
36473
36474
36475
36476
36477 for ac_func in \
36478         bcopy                   \
36479         closesocket             \
36480         chroot                  \
36481         endgrent                \
36482         endpwent                \
36483         fcntl                   \
36484         flock                   \
36485         fstat                   \
36486         getdtablesize           \
36487         getgrgid                \
36488         gethostname             \
36489         getpass                 \
36490         getpassphrase           \
36491         getpwuid                \
36492         getpwnam                \
36493         getspnam                \
36494         gettimeofday            \
36495         initgroups              \
36496         inet_ntoa_b             \
36497         ioctl                   \
36498         lockf                   \
36499         memcpy                  \
36500         memmove                 \
36501         memrchr                 \
36502         mkstemp                 \
36503         mktemp                  \
36504         pipe                    \
36505         read                    \
36506         recv                    \
36507         recvfrom                \
36508         setpwfile               \
36509         setgid                  \
36510         setegid                 \
36511         setsid                  \
36512         setuid                  \
36513         seteuid                 \
36514         signal                  \
36515         strdup                  \
36516         strpbrk                 \
36517         strrchr                 \
36518         strsep                  \
36519         strstr                  \
36520         strtol                  \
36521         strtoul                 \
36522         strtoq                  \
36523         strtouq                 \
36524         strtoll                 \
36525         strspn                  \
36526         sysconf                 \
36527         waitpid                 \
36528         wait4                   \
36529         write                   \
36530         send                    \
36531         sendmsg                 \
36532         sendto                  \
36533
36534 do
36535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36536 echo "$as_me:$LINENO: checking for $ac_func" >&5
36537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36538 if eval "test \"\${$as_ac_var+set}\" = set"; then
36539   echo $ECHO_N "(cached) $ECHO_C" >&6
36540 else
36541   cat >conftest.$ac_ext <<_ACEOF
36542 /* confdefs.h.  */
36543 _ACEOF
36544 cat confdefs.h >>conftest.$ac_ext
36545 cat >>conftest.$ac_ext <<_ACEOF
36546 /* end confdefs.h.  */
36547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36549 #define $ac_func innocuous_$ac_func
36550
36551 /* System header to define __stub macros and hopefully few prototypes,
36552     which can conflict with char $ac_func (); below.
36553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36554     <limits.h> exists even on freestanding compilers.  */
36555
36556 #ifdef __STDC__
36557 # include <limits.h>
36558 #else
36559 # include <assert.h>
36560 #endif
36561
36562 #undef $ac_func
36563
36564 /* Override any gcc2 internal prototype to avoid an error.  */
36565 #ifdef __cplusplus
36566 extern "C"
36567 {
36568 #endif
36569 /* We use char because int might match the return type of a gcc2
36570    builtin and then its argument prototype would still apply.  */
36571 char $ac_func ();
36572 /* The GNU C library defines this for functions which it implements
36573     to always fail with ENOSYS.  Some functions are actually named
36574     something starting with __ and the normal name is an alias.  */
36575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36576 choke me
36577 #else
36578 char (*f) () = $ac_func;
36579 #endif
36580 #ifdef __cplusplus
36581 }
36582 #endif
36583
36584 int
36585 main ()
36586 {
36587 return f != $ac_func;
36588   ;
36589   return 0;
36590 }
36591 _ACEOF
36592 rm -f conftest.$ac_objext conftest$ac_exeext
36593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36594   (eval $ac_link) 2>conftest.er1
36595   ac_status=$?
36596   grep -v '^ *+' conftest.er1 >conftest.err
36597   rm -f conftest.er1
36598   cat conftest.err >&5
36599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36600   (exit $ac_status); } &&
36601          { ac_try='test -z "$ac_c_werror_flag"
36602                          || test ! -s conftest.err'
36603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36604   (eval $ac_try) 2>&5
36605   ac_status=$?
36606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36607   (exit $ac_status); }; } &&
36608          { ac_try='test -s conftest$ac_exeext'
36609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36610   (eval $ac_try) 2>&5
36611   ac_status=$?
36612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36613   (exit $ac_status); }; }; then
36614   eval "$as_ac_var=yes"
36615 else
36616   echo "$as_me: failed program was:" >&5
36617 sed 's/^/| /' conftest.$ac_ext >&5
36618
36619 eval "$as_ac_var=no"
36620 fi
36621 rm -f conftest.err conftest.$ac_objext \
36622       conftest$ac_exeext conftest.$ac_ext
36623 fi
36624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36626 if test `eval echo '${'$as_ac_var'}'` = yes; then
36627   cat >>confdefs.h <<_ACEOF
36628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36629 _ACEOF
36630
36631 fi
36632 done
36633
36634
36635
36636
36637 for ac_func in getopt getpeereid
36638 do
36639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36640 echo "$as_me:$LINENO: checking for $ac_func" >&5
36641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36642 if eval "test \"\${$as_ac_var+set}\" = set"; then
36643   echo $ECHO_N "(cached) $ECHO_C" >&6
36644 else
36645   cat >conftest.$ac_ext <<_ACEOF
36646 /* confdefs.h.  */
36647 _ACEOF
36648 cat confdefs.h >>conftest.$ac_ext
36649 cat >>conftest.$ac_ext <<_ACEOF
36650 /* end confdefs.h.  */
36651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36653 #define $ac_func innocuous_$ac_func
36654
36655 /* System header to define __stub macros and hopefully few prototypes,
36656     which can conflict with char $ac_func (); below.
36657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36658     <limits.h> exists even on freestanding compilers.  */
36659
36660 #ifdef __STDC__
36661 # include <limits.h>
36662 #else
36663 # include <assert.h>
36664 #endif
36665
36666 #undef $ac_func
36667
36668 /* Override any gcc2 internal prototype to avoid an error.  */
36669 #ifdef __cplusplus
36670 extern "C"
36671 {
36672 #endif
36673 /* We use char because int might match the return type of a gcc2
36674    builtin and then its argument prototype would still apply.  */
36675 char $ac_func ();
36676 /* The GNU C library defines this for functions which it implements
36677     to always fail with ENOSYS.  Some functions are actually named
36678     something starting with __ and the normal name is an alias.  */
36679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36680 choke me
36681 #else
36682 char (*f) () = $ac_func;
36683 #endif
36684 #ifdef __cplusplus
36685 }
36686 #endif
36687
36688 int
36689 main ()
36690 {
36691 return f != $ac_func;
36692   ;
36693   return 0;
36694 }
36695 _ACEOF
36696 rm -f conftest.$ac_objext conftest$ac_exeext
36697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36698   (eval $ac_link) 2>conftest.er1
36699   ac_status=$?
36700   grep -v '^ *+' conftest.er1 >conftest.err
36701   rm -f conftest.er1
36702   cat conftest.err >&5
36703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36704   (exit $ac_status); } &&
36705          { ac_try='test -z "$ac_c_werror_flag"
36706                          || test ! -s conftest.err'
36707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36708   (eval $ac_try) 2>&5
36709   ac_status=$?
36710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36711   (exit $ac_status); }; } &&
36712          { ac_try='test -s conftest$ac_exeext'
36713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36714   (eval $ac_try) 2>&5
36715   ac_status=$?
36716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36717   (exit $ac_status); }; }; then
36718   eval "$as_ac_var=yes"
36719 else
36720   echo "$as_me: failed program was:" >&5
36721 sed 's/^/| /' conftest.$ac_ext >&5
36722
36723 eval "$as_ac_var=no"
36724 fi
36725 rm -f conftest.err conftest.$ac_objext \
36726       conftest$ac_exeext conftest.$ac_ext
36727 fi
36728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36730 if test `eval echo '${'$as_ac_var'}'` = yes; then
36731   cat >>confdefs.h <<_ACEOF
36732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36733 _ACEOF
36734
36735 else
36736   case $LIBOBJS in
36737     "$ac_func.$ac_objext"   | \
36738   *" $ac_func.$ac_objext"   | \
36739     "$ac_func.$ac_objext "* | \
36740   *" $ac_func.$ac_objext "* ) ;;
36741   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
36742 esac
36743
36744 fi
36745 done
36746
36747
36748
36749 if test "$ac_cv_func_getopt" != yes; then
36750         LIBSRCS="$LIBSRCS getopt.c"
36751 fi
36752
36753 if test "$ac_cv_func_getpeereid" != yes; then
36754
36755 for ac_func in getpeerucred
36756 do
36757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36758 echo "$as_me:$LINENO: checking for $ac_func" >&5
36759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36760 if eval "test \"\${$as_ac_var+set}\" = set"; then
36761   echo $ECHO_N "(cached) $ECHO_C" >&6
36762 else
36763   cat >conftest.$ac_ext <<_ACEOF
36764 /* confdefs.h.  */
36765 _ACEOF
36766 cat confdefs.h >>conftest.$ac_ext
36767 cat >>conftest.$ac_ext <<_ACEOF
36768 /* end confdefs.h.  */
36769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36771 #define $ac_func innocuous_$ac_func
36772
36773 /* System header to define __stub macros and hopefully few prototypes,
36774     which can conflict with char $ac_func (); below.
36775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36776     <limits.h> exists even on freestanding compilers.  */
36777
36778 #ifdef __STDC__
36779 # include <limits.h>
36780 #else
36781 # include <assert.h>
36782 #endif
36783
36784 #undef $ac_func
36785
36786 /* Override any gcc2 internal prototype to avoid an error.  */
36787 #ifdef __cplusplus
36788 extern "C"
36789 {
36790 #endif
36791 /* We use char because int might match the return type of a gcc2
36792    builtin and then its argument prototype would still apply.  */
36793 char $ac_func ();
36794 /* The GNU C library defines this for functions which it implements
36795     to always fail with ENOSYS.  Some functions are actually named
36796     something starting with __ and the normal name is an alias.  */
36797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36798 choke me
36799 #else
36800 char (*f) () = $ac_func;
36801 #endif
36802 #ifdef __cplusplus
36803 }
36804 #endif
36805
36806 int
36807 main ()
36808 {
36809 return f != $ac_func;
36810   ;
36811   return 0;
36812 }
36813 _ACEOF
36814 rm -f conftest.$ac_objext conftest$ac_exeext
36815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36816   (eval $ac_link) 2>conftest.er1
36817   ac_status=$?
36818   grep -v '^ *+' conftest.er1 >conftest.err
36819   rm -f conftest.er1
36820   cat conftest.err >&5
36821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36822   (exit $ac_status); } &&
36823          { ac_try='test -z "$ac_c_werror_flag"
36824                          || test ! -s conftest.err'
36825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36826   (eval $ac_try) 2>&5
36827   ac_status=$?
36828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36829   (exit $ac_status); }; } &&
36830          { ac_try='test -s conftest$ac_exeext'
36831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36832   (eval $ac_try) 2>&5
36833   ac_status=$?
36834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36835   (exit $ac_status); }; }; then
36836   eval "$as_ac_var=yes"
36837 else
36838   echo "$as_me: failed program was:" >&5
36839 sed 's/^/| /' conftest.$ac_ext >&5
36840
36841 eval "$as_ac_var=no"
36842 fi
36843 rm -f conftest.err conftest.$ac_objext \
36844       conftest$ac_exeext conftest.$ac_ext
36845 fi
36846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36848 if test `eval echo '${'$as_ac_var'}'` = yes; then
36849   cat >>confdefs.h <<_ACEOF
36850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36851 _ACEOF
36852
36853 fi
36854 done
36855
36856         if test "$ac_cv_func_getpeerucred" != yes ; then
36857                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
36858 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
36859 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
36860   echo $ECHO_N "(cached) $ECHO_C" >&6
36861 else
36862   cat >conftest.$ac_ext <<_ACEOF
36863 /* confdefs.h.  */
36864 _ACEOF
36865 cat confdefs.h >>conftest.$ac_ext
36866 cat >>conftest.$ac_ext <<_ACEOF
36867 /* end confdefs.h.  */
36868 $ac_includes_default
36869 #ifdef HAVE_SYS_SOCKET_H
36870 #include <sys/socket.h>
36871 #endif
36872
36873 int
36874 main ()
36875 {
36876 static struct msghdr ac_aggr;
36877 if (ac_aggr.msg_accrightslen)
36878 return 0;
36879   ;
36880   return 0;
36881 }
36882 _ACEOF
36883 rm -f conftest.$ac_objext
36884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36885   (eval $ac_compile) 2>conftest.er1
36886   ac_status=$?
36887   grep -v '^ *+' conftest.er1 >conftest.err
36888   rm -f conftest.er1
36889   cat conftest.err >&5
36890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36891   (exit $ac_status); } &&
36892          { ac_try='test -z "$ac_c_werror_flag"
36893                          || test ! -s conftest.err'
36894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36895   (eval $ac_try) 2>&5
36896   ac_status=$?
36897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36898   (exit $ac_status); }; } &&
36899          { ac_try='test -s conftest.$ac_objext'
36900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36901   (eval $ac_try) 2>&5
36902   ac_status=$?
36903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36904   (exit $ac_status); }; }; then
36905   ac_cv_member_struct_msghdr_msg_accrightslen=yes
36906 else
36907   echo "$as_me: failed program was:" >&5
36908 sed 's/^/| /' conftest.$ac_ext >&5
36909
36910 cat >conftest.$ac_ext <<_ACEOF
36911 /* confdefs.h.  */
36912 _ACEOF
36913 cat confdefs.h >>conftest.$ac_ext
36914 cat >>conftest.$ac_ext <<_ACEOF
36915 /* end confdefs.h.  */
36916 $ac_includes_default
36917 #ifdef HAVE_SYS_SOCKET_H
36918 #include <sys/socket.h>
36919 #endif
36920
36921 int
36922 main ()
36923 {
36924 static struct msghdr ac_aggr;
36925 if (sizeof ac_aggr.msg_accrightslen)
36926 return 0;
36927   ;
36928   return 0;
36929 }
36930 _ACEOF
36931 rm -f conftest.$ac_objext
36932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36933   (eval $ac_compile) 2>conftest.er1
36934   ac_status=$?
36935   grep -v '^ *+' conftest.er1 >conftest.err
36936   rm -f conftest.er1
36937   cat conftest.err >&5
36938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36939   (exit $ac_status); } &&
36940          { ac_try='test -z "$ac_c_werror_flag"
36941                          || test ! -s conftest.err'
36942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36943   (eval $ac_try) 2>&5
36944   ac_status=$?
36945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36946   (exit $ac_status); }; } &&
36947          { ac_try='test -s conftest.$ac_objext'
36948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36949   (eval $ac_try) 2>&5
36950   ac_status=$?
36951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36952   (exit $ac_status); }; }; then
36953   ac_cv_member_struct_msghdr_msg_accrightslen=yes
36954 else
36955   echo "$as_me: failed program was:" >&5
36956 sed 's/^/| /' conftest.$ac_ext >&5
36957
36958 ac_cv_member_struct_msghdr_msg_accrightslen=no
36959 fi
36960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36961 fi
36962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36963 fi
36964 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
36965 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
36966 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
36967
36968 cat >>confdefs.h <<_ACEOF
36969 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
36970 _ACEOF
36971
36972
36973 fi
36974
36975                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
36976                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
36977 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
36978 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
36979   echo $ECHO_N "(cached) $ECHO_C" >&6
36980 else
36981   cat >conftest.$ac_ext <<_ACEOF
36982 /* confdefs.h.  */
36983 _ACEOF
36984 cat confdefs.h >>conftest.$ac_ext
36985 cat >>conftest.$ac_ext <<_ACEOF
36986 /* end confdefs.h.  */
36987 $ac_includes_default
36988 #ifdef HAVE_SYS_SOCKET_H
36989 #include <sys/socket.h>
36990 #endif
36991
36992 int
36993 main ()
36994 {
36995 static struct msghdr ac_aggr;
36996 if (ac_aggr.msg_control)
36997 return 0;
36998   ;
36999   return 0;
37000 }
37001 _ACEOF
37002 rm -f conftest.$ac_objext
37003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37004   (eval $ac_compile) 2>conftest.er1
37005   ac_status=$?
37006   grep -v '^ *+' conftest.er1 >conftest.err
37007   rm -f conftest.er1
37008   cat conftest.err >&5
37009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010   (exit $ac_status); } &&
37011          { ac_try='test -z "$ac_c_werror_flag"
37012                          || test ! -s conftest.err'
37013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37014   (eval $ac_try) 2>&5
37015   ac_status=$?
37016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37017   (exit $ac_status); }; } &&
37018          { ac_try='test -s conftest.$ac_objext'
37019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37020   (eval $ac_try) 2>&5
37021   ac_status=$?
37022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37023   (exit $ac_status); }; }; then
37024   ac_cv_member_struct_msghdr_msg_control=yes
37025 else
37026   echo "$as_me: failed program was:" >&5
37027 sed 's/^/| /' conftest.$ac_ext >&5
37028
37029 cat >conftest.$ac_ext <<_ACEOF
37030 /* confdefs.h.  */
37031 _ACEOF
37032 cat confdefs.h >>conftest.$ac_ext
37033 cat >>conftest.$ac_ext <<_ACEOF
37034 /* end confdefs.h.  */
37035 $ac_includes_default
37036 #ifdef HAVE_SYS_SOCKET_H
37037 #include <sys/socket.h>
37038 #endif
37039
37040 int
37041 main ()
37042 {
37043 static struct msghdr ac_aggr;
37044 if (sizeof ac_aggr.msg_control)
37045 return 0;
37046   ;
37047   return 0;
37048 }
37049 _ACEOF
37050 rm -f conftest.$ac_objext
37051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37052   (eval $ac_compile) 2>conftest.er1
37053   ac_status=$?
37054   grep -v '^ *+' conftest.er1 >conftest.err
37055   rm -f conftest.er1
37056   cat conftest.err >&5
37057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37058   (exit $ac_status); } &&
37059          { ac_try='test -z "$ac_c_werror_flag"
37060                          || test ! -s conftest.err'
37061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37062   (eval $ac_try) 2>&5
37063   ac_status=$?
37064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37065   (exit $ac_status); }; } &&
37066          { ac_try='test -s conftest.$ac_objext'
37067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37068   (eval $ac_try) 2>&5
37069   ac_status=$?
37070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37071   (exit $ac_status); }; }; then
37072   ac_cv_member_struct_msghdr_msg_control=yes
37073 else
37074   echo "$as_me: failed program was:" >&5
37075 sed 's/^/| /' conftest.$ac_ext >&5
37076
37077 ac_cv_member_struct_msghdr_msg_control=no
37078 fi
37079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37080 fi
37081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37082 fi
37083 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37084 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
37085 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37086
37087 cat >>confdefs.h <<_ACEOF
37088 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37089 _ACEOF
37090
37091
37092 fi
37093
37094                 fi
37095                 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37096 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
37097 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37098   echo $ECHO_N "(cached) $ECHO_C" >&6
37099 else
37100   cat >conftest.$ac_ext <<_ACEOF
37101 /* confdefs.h.  */
37102 _ACEOF
37103 cat confdefs.h >>conftest.$ac_ext
37104 cat >>conftest.$ac_ext <<_ACEOF
37105 /* end confdefs.h.  */
37106 $ac_includes_default
37107 int
37108 main ()
37109 {
37110 static struct stat ac_aggr;
37111 if (ac_aggr.st_fstype)
37112 return 0;
37113   ;
37114   return 0;
37115 }
37116 _ACEOF
37117 rm -f conftest.$ac_objext
37118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37119   (eval $ac_compile) 2>conftest.er1
37120   ac_status=$?
37121   grep -v '^ *+' conftest.er1 >conftest.err
37122   rm -f conftest.er1
37123   cat conftest.err >&5
37124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37125   (exit $ac_status); } &&
37126          { ac_try='test -z "$ac_c_werror_flag"
37127                          || test ! -s conftest.err'
37128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37129   (eval $ac_try) 2>&5
37130   ac_status=$?
37131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37132   (exit $ac_status); }; } &&
37133          { ac_try='test -s conftest.$ac_objext'
37134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37135   (eval $ac_try) 2>&5
37136   ac_status=$?
37137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37138   (exit $ac_status); }; }; then
37139   ac_cv_member_struct_stat_st_fstype=yes
37140 else
37141   echo "$as_me: failed program was:" >&5
37142 sed 's/^/| /' conftest.$ac_ext >&5
37143
37144 cat >conftest.$ac_ext <<_ACEOF
37145 /* confdefs.h.  */
37146 _ACEOF
37147 cat confdefs.h >>conftest.$ac_ext
37148 cat >>conftest.$ac_ext <<_ACEOF
37149 /* end confdefs.h.  */
37150 $ac_includes_default
37151 int
37152 main ()
37153 {
37154 static struct stat ac_aggr;
37155 if (sizeof ac_aggr.st_fstype)
37156 return 0;
37157   ;
37158   return 0;
37159 }
37160 _ACEOF
37161 rm -f conftest.$ac_objext
37162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37163   (eval $ac_compile) 2>conftest.er1
37164   ac_status=$?
37165   grep -v '^ *+' conftest.er1 >conftest.err
37166   rm -f conftest.er1
37167   cat conftest.err >&5
37168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37169   (exit $ac_status); } &&
37170          { ac_try='test -z "$ac_c_werror_flag"
37171                          || test ! -s conftest.err'
37172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37173   (eval $ac_try) 2>&5
37174   ac_status=$?
37175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37176   (exit $ac_status); }; } &&
37177          { ac_try='test -s conftest.$ac_objext'
37178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37179   (eval $ac_try) 2>&5
37180   ac_status=$?
37181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37182   (exit $ac_status); }; }; then
37183   ac_cv_member_struct_stat_st_fstype=yes
37184 else
37185   echo "$as_me: failed program was:" >&5
37186 sed 's/^/| /' conftest.$ac_ext >&5
37187
37188 ac_cv_member_struct_stat_st_fstype=no
37189 fi
37190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37191 fi
37192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37193 fi
37194 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37195 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
37196 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37197
37198 cat >>confdefs.h <<_ACEOF
37199 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37200 _ACEOF
37201
37202
37203 fi
37204 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37205 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
37206 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37207   echo $ECHO_N "(cached) $ECHO_C" >&6
37208 else
37209   cat >conftest.$ac_ext <<_ACEOF
37210 /* confdefs.h.  */
37211 _ACEOF
37212 cat confdefs.h >>conftest.$ac_ext
37213 cat >>conftest.$ac_ext <<_ACEOF
37214 /* end confdefs.h.  */
37215 $ac_includes_default
37216 int
37217 main ()
37218 {
37219 static struct stat ac_aggr;
37220 if (ac_aggr.st_vfstype)
37221 return 0;
37222   ;
37223   return 0;
37224 }
37225 _ACEOF
37226 rm -f conftest.$ac_objext
37227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37228   (eval $ac_compile) 2>conftest.er1
37229   ac_status=$?
37230   grep -v '^ *+' conftest.er1 >conftest.err
37231   rm -f conftest.er1
37232   cat conftest.err >&5
37233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37234   (exit $ac_status); } &&
37235          { ac_try='test -z "$ac_c_werror_flag"
37236                          || test ! -s conftest.err'
37237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37238   (eval $ac_try) 2>&5
37239   ac_status=$?
37240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241   (exit $ac_status); }; } &&
37242          { ac_try='test -s conftest.$ac_objext'
37243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37244   (eval $ac_try) 2>&5
37245   ac_status=$?
37246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247   (exit $ac_status); }; }; then
37248   ac_cv_member_struct_stat_st_vfstype=yes
37249 else
37250   echo "$as_me: failed program was:" >&5
37251 sed 's/^/| /' conftest.$ac_ext >&5
37252
37253 cat >conftest.$ac_ext <<_ACEOF
37254 /* confdefs.h.  */
37255 _ACEOF
37256 cat confdefs.h >>conftest.$ac_ext
37257 cat >>conftest.$ac_ext <<_ACEOF
37258 /* end confdefs.h.  */
37259 $ac_includes_default
37260 int
37261 main ()
37262 {
37263 static struct stat ac_aggr;
37264 if (sizeof ac_aggr.st_vfstype)
37265 return 0;
37266   ;
37267   return 0;
37268 }
37269 _ACEOF
37270 rm -f conftest.$ac_objext
37271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37272   (eval $ac_compile) 2>conftest.er1
37273   ac_status=$?
37274   grep -v '^ *+' conftest.er1 >conftest.err
37275   rm -f conftest.er1
37276   cat conftest.err >&5
37277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37278   (exit $ac_status); } &&
37279          { ac_try='test -z "$ac_c_werror_flag"
37280                          || test ! -s conftest.err'
37281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37282   (eval $ac_try) 2>&5
37283   ac_status=$?
37284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37285   (exit $ac_status); }; } &&
37286          { ac_try='test -s conftest.$ac_objext'
37287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37288   (eval $ac_try) 2>&5
37289   ac_status=$?
37290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37291   (exit $ac_status); }; }; then
37292   ac_cv_member_struct_stat_st_vfstype=yes
37293 else
37294   echo "$as_me: failed program was:" >&5
37295 sed 's/^/| /' conftest.$ac_ext >&5
37296
37297 ac_cv_member_struct_stat_st_vfstype=no
37298 fi
37299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37300 fi
37301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37302 fi
37303 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37304 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
37305 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37306
37307 cat >>confdefs.h <<_ACEOF
37308 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37309 _ACEOF
37310
37311
37312 fi
37313
37314                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37315                         cat >conftest.$ac_ext <<_ACEOF
37316 struct stat st; char *ptr=st.st_fstype;
37317 _ACEOF
37318 rm -f conftest.$ac_objext
37319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37320   (eval $ac_compile) 2>conftest.er1
37321   ac_status=$?
37322   grep -v '^ *+' conftest.er1 >conftest.err
37323   rm -f conftest.er1
37324   cat conftest.err >&5
37325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326   (exit $ac_status); } &&
37327          { ac_try='test -z "$ac_c_werror_flag"
37328                          || test ! -s conftest.err'
37329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37330   (eval $ac_try) 2>&5
37331   ac_status=$?
37332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37333   (exit $ac_status); }; } &&
37334          { ac_try='test -s conftest.$ac_objext'
37335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37336   (eval $ac_try) 2>&5
37337   ac_status=$?
37338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339   (exit $ac_status); }; }; then
37340
37341 cat >>confdefs.h <<\_ACEOF
37342 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37343 _ACEOF
37344
37345 else
37346   echo "$as_me: failed program was:" >&5
37347 sed 's/^/| /' conftest.$ac_ext >&5
37348
37349
37350 cat >>confdefs.h <<\_ACEOF
37351 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37352 _ACEOF
37353
37354 fi
37355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37356                 fi
37357         fi
37358         LIBSRCS="$LIBSRCS getpeereid.c"
37359 fi
37360
37361 if test "$ac_cv_func_snprintf" != yes ||
37362    test "$ac_cv_func_vsnprintf" != yes; then
37363         if test "$ac_cv_func_snprintf" != yes; then
37364
37365 cat >>confdefs.h <<\_ACEOF
37366 #define snprintf ber_pvt_snprintf
37367 _ACEOF
37368
37369         fi
37370         if test "$ac_cv_func_vsnprintf" != yes; then
37371
37372 cat >>confdefs.h <<\_ACEOF
37373 #define vsnprintf ber_pvt_vsnprintf
37374 _ACEOF
37375
37376         fi
37377 fi
37378
37379
37380 if test "$ol_enable_slapi" != no ; then
37381
37382 for ac_header in ltdl.h
37383 do
37384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37386   echo "$as_me:$LINENO: checking for $ac_header" >&5
37387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37389   echo $ECHO_N "(cached) $ECHO_C" >&6
37390 fi
37391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37393 else
37394   # Is the header compilable?
37395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37397 cat >conftest.$ac_ext <<_ACEOF
37398 /* confdefs.h.  */
37399 _ACEOF
37400 cat confdefs.h >>conftest.$ac_ext
37401 cat >>conftest.$ac_ext <<_ACEOF
37402 /* end confdefs.h.  */
37403 $ac_includes_default
37404 #include <$ac_header>
37405 _ACEOF
37406 rm -f conftest.$ac_objext
37407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37408   (eval $ac_compile) 2>conftest.er1
37409   ac_status=$?
37410   grep -v '^ *+' conftest.er1 >conftest.err
37411   rm -f conftest.er1
37412   cat conftest.err >&5
37413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37414   (exit $ac_status); } &&
37415          { ac_try='test -z "$ac_c_werror_flag"
37416                          || test ! -s conftest.err'
37417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37418   (eval $ac_try) 2>&5
37419   ac_status=$?
37420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37421   (exit $ac_status); }; } &&
37422          { ac_try='test -s conftest.$ac_objext'
37423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37424   (eval $ac_try) 2>&5
37425   ac_status=$?
37426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37427   (exit $ac_status); }; }; then
37428   ac_header_compiler=yes
37429 else
37430   echo "$as_me: failed program was:" >&5
37431 sed 's/^/| /' conftest.$ac_ext >&5
37432
37433 ac_header_compiler=no
37434 fi
37435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37437 echo "${ECHO_T}$ac_header_compiler" >&6
37438
37439 # Is the header present?
37440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37442 cat >conftest.$ac_ext <<_ACEOF
37443 /* confdefs.h.  */
37444 _ACEOF
37445 cat confdefs.h >>conftest.$ac_ext
37446 cat >>conftest.$ac_ext <<_ACEOF
37447 /* end confdefs.h.  */
37448 #include <$ac_header>
37449 _ACEOF
37450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37452   ac_status=$?
37453   grep -v '^ *+' conftest.er1 >conftest.err
37454   rm -f conftest.er1
37455   cat conftest.err >&5
37456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37457   (exit $ac_status); } >/dev/null; then
37458   if test -s conftest.err; then
37459     ac_cpp_err=$ac_c_preproc_warn_flag
37460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37461   else
37462     ac_cpp_err=
37463   fi
37464 else
37465   ac_cpp_err=yes
37466 fi
37467 if test -z "$ac_cpp_err"; then
37468   ac_header_preproc=yes
37469 else
37470   echo "$as_me: failed program was:" >&5
37471 sed 's/^/| /' conftest.$ac_ext >&5
37472
37473   ac_header_preproc=no
37474 fi
37475 rm -f conftest.err conftest.$ac_ext
37476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37477 echo "${ECHO_T}$ac_header_preproc" >&6
37478
37479 # So?  What about this header?
37480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37481   yes:no: )
37482     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37486     ac_header_preproc=yes
37487     ;;
37488   no:yes:* )
37489     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37491     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37492 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37493     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37495     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37496 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37499     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37501     (
37502       cat <<\_ASBOX
37503 ## --------------------------------------------- ##
37504 ## Report this to <http://www.openldap.org/its/> ##
37505 ## --------------------------------------------- ##
37506 _ASBOX
37507     ) |
37508       sed "s/^/$as_me: WARNING:     /" >&2
37509     ;;
37510 esac
37511 echo "$as_me:$LINENO: checking for $ac_header" >&5
37512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37514   echo $ECHO_N "(cached) $ECHO_C" >&6
37515 else
37516   eval "$as_ac_Header=\$ac_header_preproc"
37517 fi
37518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37520
37521 fi
37522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37523   cat >>confdefs.h <<_ACEOF
37524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37525 _ACEOF
37526
37527 fi
37528
37529 done
37530
37531
37532         if test $ac_cv_header_ltdl_h != yes ; then
37533                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
37534 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
37535    { (exit 1); exit 1; }; }
37536         fi
37537         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
37538 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
37539 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
37540   echo $ECHO_N "(cached) $ECHO_C" >&6
37541 else
37542   ac_check_lib_save_LIBS=$LIBS
37543 LIBS="-lltdl  $LIBS"
37544 cat >conftest.$ac_ext <<_ACEOF
37545 /* confdefs.h.  */
37546 _ACEOF
37547 cat confdefs.h >>conftest.$ac_ext
37548 cat >>conftest.$ac_ext <<_ACEOF
37549 /* end confdefs.h.  */
37550
37551 /* Override any gcc2 internal prototype to avoid an error.  */
37552 #ifdef __cplusplus
37553 extern "C"
37554 #endif
37555 /* We use char because int might match the return type of a gcc2
37556    builtin and then its argument prototype would still apply.  */
37557 char lt_dlinit ();
37558 int
37559 main ()
37560 {
37561 lt_dlinit ();
37562   ;
37563   return 0;
37564 }
37565 _ACEOF
37566 rm -f conftest.$ac_objext conftest$ac_exeext
37567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37568   (eval $ac_link) 2>conftest.er1
37569   ac_status=$?
37570   grep -v '^ *+' conftest.er1 >conftest.err
37571   rm -f conftest.er1
37572   cat conftest.err >&5
37573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37574   (exit $ac_status); } &&
37575          { ac_try='test -z "$ac_c_werror_flag"
37576                          || test ! -s conftest.err'
37577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37578   (eval $ac_try) 2>&5
37579   ac_status=$?
37580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37581   (exit $ac_status); }; } &&
37582          { ac_try='test -s conftest$ac_exeext'
37583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37584   (eval $ac_try) 2>&5
37585   ac_status=$?
37586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37587   (exit $ac_status); }; }; then
37588   ac_cv_lib_ltdl_lt_dlinit=yes
37589 else
37590   echo "$as_me: failed program was:" >&5
37591 sed 's/^/| /' conftest.$ac_ext >&5
37592
37593 ac_cv_lib_ltdl_lt_dlinit=no
37594 fi
37595 rm -f conftest.err conftest.$ac_objext \
37596       conftest$ac_exeext conftest.$ac_ext
37597 LIBS=$ac_check_lib_save_LIBS
37598 fi
37599 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
37600 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
37601 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
37602
37603                 SLAPI_LIBS=-lltdl
37604                 LIBSLAPI=libslapi.a
37605                 LIBSLAPITOOLS=../libslapi.a
37606
37607 cat >>confdefs.h <<\_ACEOF
37608 #define HAVE_LIBLTDL 1
37609 _ACEOF
37610
37611
37612 else
37613   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
37614 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
37615    { (exit 1); exit 1; }; }
37616 fi
37617
37618
37619
37620 cat >>confdefs.h <<\_ACEOF
37621 #define LDAP_SLAPI 1
37622 _ACEOF
37623
37624 fi
37625
37626 if test "$ol_enable_debug" != no ; then
37627         if test "$ol_enable_debug" = traditional; then
37628
37629 cat >>confdefs.h <<\_ACEOF
37630 #define OLD_DEBUG 1
37631 _ACEOF
37632
37633         fi
37634
37635 cat >>confdefs.h <<\_ACEOF
37636 #define LDAP_DEBUG 1
37637 _ACEOF
37638
37639 fi
37640 if test "$ol_enable_syslog" = yes ; then
37641
37642 cat >>confdefs.h <<\_ACEOF
37643 #define LDAP_SYSLOG 1
37644 _ACEOF
37645
37646 fi
37647 if test "$ol_enable_proctitle" != no ; then
37648
37649 cat >>confdefs.h <<\_ACEOF
37650 #define LDAP_PROCTITLE 1
37651 _ACEOF
37652
37653 fi
37654 if test "$ol_enable_referrals" != no ; then
37655
37656 cat >>confdefs.h <<\_ACEOF
37657 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
37658 _ACEOF
37659
37660 fi
37661 if test "$ol_enable_local" != no; then
37662
37663 cat >>confdefs.h <<\_ACEOF
37664 #define LDAP_PF_LOCAL 1
37665 _ACEOF
37666
37667 fi
37668 if test "$ol_link_ipv6" != no; then
37669
37670 cat >>confdefs.h <<\_ACEOF
37671 #define LDAP_PF_INET6 1
37672 _ACEOF
37673
37674 fi
37675 if test "$ol_enable_cleartext" != no ; then
37676
37677 cat >>confdefs.h <<\_ACEOF
37678 #define SLAPD_CLEARTEXT 1
37679 _ACEOF
37680
37681 fi
37682 if test "$ol_enable_crypt" != no ; then
37683
37684 cat >>confdefs.h <<\_ACEOF
37685 #define SLAPD_CRYPT 1
37686 _ACEOF
37687
37688 fi
37689 if test "$ol_link_spasswd" != no ; then
37690
37691 cat >>confdefs.h <<\_ACEOF
37692 #define SLAPD_SPASSWD 1
37693 _ACEOF
37694
37695 fi
37696 if test "$ol_enable_rlookups" != no ; then
37697
37698 cat >>confdefs.h <<\_ACEOF
37699 #define SLAPD_RLOOKUPS 1
37700 _ACEOF
37701
37702 fi
37703 if test "$ol_enable_aci" != no ; then
37704         if test $ol_enable_dynacl = no ; then
37705                 ol_enable_dynacl=yes
37706                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
37707 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
37708         fi
37709         if test "$ol_enable_aci" = mod ; then
37710                 MFLAG=SLAPD_MOD_DYNAMIC
37711                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
37712 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
37713    { (exit 1); exit 1; }; }
37714         else
37715                 MFLAG=SLAPD_MOD_STATIC
37716         fi
37717         WITH_ACI_ENABLED=$ol_enable_aci
37718
37719 cat >>confdefs.h <<_ACEOF
37720 #define SLAPD_ACI_ENABLED $MFLAG
37721 _ACEOF
37722
37723 else
37724         WITH_ACI_ENABLED=no
37725 fi
37726 if test "$ol_enable_dynacl" != no ; then
37727
37728 cat >>confdefs.h <<\_ACEOF
37729 #define SLAP_DYNACL 1
37730 _ACEOF
37731
37732 fi
37733
37734 if test "$ol_link_modules" != no ; then
37735
37736 cat >>confdefs.h <<\_ACEOF
37737 #define SLAPD_MODULES 1
37738 _ACEOF
37739
37740         BUILD_SLAPD=yes
37741         SLAPD_MODULES_LDFLAGS="-dlopen self"
37742 fi
37743
37744
37745 cat >>confdefs.h <<\_ACEOF
37746 #define SLAPD_MOD_STATIC 1
37747 _ACEOF
37748
37749
37750 cat >>confdefs.h <<\_ACEOF
37751 #define SLAPD_MOD_DYNAMIC 2
37752 _ACEOF
37753
37754
37755 if test "$ol_enable_monitor" != no ; then
37756         BUILD_SLAPD=yes
37757         BUILD_MONITOR=$ol_enable_monitor
37758         if test "$ol_enable_monitor" = mod ; then
37759                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
37760                 MFLAG=SLAPD_MOD_DYNAMIC
37761         else
37762                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
37763                 MFLAG=SLAPD_MOD_STATIC
37764         fi
37765
37766 cat >>confdefs.h <<_ACEOF
37767 #define SLAPD_MONITOR $MFLAG
37768 _ACEOF
37769
37770 fi
37771
37772 if test "$ol_enable_bdb" != no ; then
37773         BUILD_SLAPD=yes
37774         BUILD_BDB=$ol_enable_bdb
37775         if test "$ol_enable_bdb" = mod ; then
37776                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
37777                 MFLAG=SLAPD_MOD_DYNAMIC
37778         else
37779                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
37780                 MFLAG=SLAPD_MOD_STATIC
37781         fi
37782
37783 cat >>confdefs.h <<_ACEOF
37784 #define SLAPD_BDB $MFLAG
37785 _ACEOF
37786
37787 fi
37788
37789 if test "$ol_enable_dnssrv" != no ; then
37790         BUILD_SLAPD=yes
37791         BUILD_DNSSRV=$ol_enable_dnssrv
37792         if test "$ol_enable_dnssrv" = mod ; then
37793                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
37794                 MFLAG=SLAPD_MOD_DYNAMIC
37795         else
37796                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
37797                 MFLAG=SLAPD_MOD_STATIC
37798         fi
37799
37800 cat >>confdefs.h <<_ACEOF
37801 #define SLAPD_DNSSRV $MFLAG
37802 _ACEOF
37803
37804 fi
37805
37806 if test "$ol_enable_hdb" != no ; then
37807         BUILD_SLAPD=yes
37808         BUILD_HDB=$ol_enable_hdb
37809         if test "$ol_enable_hdb" = mod ; then
37810                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
37811                 MFLAG=SLAPD_MOD_DYNAMIC
37812         else
37813                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
37814                 MFLAG=SLAPD_MOD_STATIC
37815         fi
37816
37817 cat >>confdefs.h <<_ACEOF
37818 #define SLAPD_HDB $MFLAG
37819 _ACEOF
37820
37821 fi
37822
37823 if test "$ol_enable_ldap" != no ; then
37824         BUILD_SLAPD=yes
37825         BUILD_LDAP=$ol_enable_ldap
37826         if test "$ol_enable_ldap" = mod ; then
37827                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
37828                 MFLAG=SLAPD_MOD_DYNAMIC
37829         else
37830                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
37831                 MFLAG=SLAPD_MOD_STATIC
37832         fi
37833
37834 cat >>confdefs.h <<_ACEOF
37835 #define SLAPD_LDAP $MFLAG
37836 _ACEOF
37837
37838 fi
37839
37840 if test "$ol_enable_meta" != no ; then
37841         BUILD_SLAPD=yes
37842         BUILD_META=$ol_enable_meta
37843         BUILD_REWRITE=yes
37844         if test "$ol_enable_meta" = mod ; then
37845                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
37846                 MFLAG=SLAPD_MOD_DYNAMIC
37847         else
37848                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
37849                 MFLAG=SLAPD_MOD_STATIC
37850         fi
37851
37852 cat >>confdefs.h <<_ACEOF
37853 #define SLAPD_META $MFLAG
37854 _ACEOF
37855
37856 fi
37857
37858 if test "$ol_enable_ndb" != no ; then
37859         BUILD_SLAPD=yes
37860         BUILD_NDB=$ol_enable_ndb
37861         if test "$ol_enable_ndb" = mod ; then
37862                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
37863                 MFLAG=SLAPD_MOD_DYNAMIC
37864         else
37865                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
37866                 MFLAG=SLAPD_MOD_STATIC
37867         fi
37868
37869 cat >>confdefs.h <<_ACEOF
37870 #define SLAPD_NDB $MFLAG
37871 _ACEOF
37872
37873 fi
37874
37875 if test "$ol_enable_null" != no ; then
37876         BUILD_SLAPD=yes
37877         BUILD_NULL=$ol_enable_null
37878         if test "$ol_enable_null" = mod ; then
37879                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
37880                 MFLAG=SLAPD_MOD_DYNAMIC
37881         else
37882                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
37883                 MFLAG=SLAPD_MOD_STATIC
37884         fi
37885
37886 cat >>confdefs.h <<_ACEOF
37887 #define SLAPD_NULL $MFLAG
37888 _ACEOF
37889
37890 fi
37891
37892 if test "$ol_enable_passwd" != no ; then
37893         BUILD_SLAPD=yes
37894         BUILD_PASSWD=$ol_enable_passwd
37895         if test "$ol_enable_passwd" = mod ; then
37896                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
37897                 MFLAG=SLAPD_MOD_DYNAMIC
37898         else
37899                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
37900                 MFLAG=SLAPD_MOD_STATIC
37901         fi
37902
37903 cat >>confdefs.h <<_ACEOF
37904 #define SLAPD_PASSWD $MFLAG
37905 _ACEOF
37906
37907 fi
37908
37909 if test "$ol_link_perl" != no ; then
37910         BUILD_SLAPD=yes
37911         BUILD_PERL=$ol_enable_perl
37912         if test "$ol_enable_perl" = mod ; then
37913                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
37914                 MFLAG=SLAPD_MOD_DYNAMIC
37915         else
37916                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
37917                 MFLAG=SLAPD_MOD_STATIC
37918         fi
37919
37920 cat >>confdefs.h <<_ACEOF
37921 #define SLAPD_PERL $MFLAG
37922 _ACEOF
37923
37924 fi
37925
37926 if test "$ol_enable_relay" != no ; then
37927         BUILD_SLAPD=yes
37928         BUILD_RELAY=$ol_enable_relay
37929         if test "$ol_enable_relay" = mod ; then
37930                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
37931                 MFLAG=SLAPD_MOD_DYNAMIC
37932         else
37933                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
37934                 MFLAG=SLAPD_MOD_STATIC
37935         fi
37936
37937 cat >>confdefs.h <<_ACEOF
37938 #define SLAPD_RELAY $MFLAG
37939 _ACEOF
37940
37941 fi
37942
37943 if test "$ol_enable_shell" != no ; then
37944         if test "$ol_link_threads" != no ; then
37945                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
37946 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
37947         fi
37948         BUILD_SLAPD=yes
37949         BUILD_SHELL=$ol_enable_shell
37950         if test "$ol_enable_shell" = mod ; then
37951                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
37952                 MFLAG=SLAPD_MOD_DYNAMIC
37953         else
37954                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
37955                 MFLAG=SLAPD_MOD_STATIC
37956         fi
37957
37958 cat >>confdefs.h <<_ACEOF
37959 #define SLAPD_SHELL $MFLAG
37960 _ACEOF
37961
37962 fi
37963
37964 if test "$ol_enable_sock" != no ; then
37965         BUILD_SLAPD=yes
37966         BUILD_SOCK=$ol_enable_sock
37967         if test "$ol_enable_sock" = mod ; then
37968                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
37969                 MFLAG=SLAPD_MOD_DYNAMIC
37970         else
37971                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
37972                 MFLAG=SLAPD_MOD_STATIC
37973         fi
37974
37975 cat >>confdefs.h <<_ACEOF
37976 #define SLAPD_SOCK $MFLAG
37977 _ACEOF
37978
37979 fi
37980
37981 if test "$ol_link_sql" != no ; then
37982         BUILD_SLAPD=yes
37983         BUILD_SQL=$ol_enable_sql
37984         if test "$ol_enable_sql" = mod; then
37985                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
37986                 MFLAG=SLAPD_MOD_DYNAMIC
37987         else
37988                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
37989                 MFLAG=SLAPD_MOD_STATIC
37990         fi
37991
37992 cat >>confdefs.h <<_ACEOF
37993 #define SLAPD_SQL $MFLAG
37994 _ACEOF
37995
37996 fi
37997
37998 if test "$ol_enable_accesslog" != no ; then
37999         BUILD_ACCESSLOG=$ol_enable_accesslog
38000         if test "$ol_enable_accesslog" = mod ; then
38001                 MFLAG=SLAPD_MOD_DYNAMIC
38002                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38003         else
38004                 MFLAG=SLAPD_MOD_STATIC
38005                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38006         fi
38007
38008 cat >>confdefs.h <<_ACEOF
38009 #define SLAPD_OVER_ACCESSLOG $MFLAG
38010 _ACEOF
38011
38012 fi
38013
38014 if test "$ol_enable_auditlog" != no ; then
38015         BUILD_AUDITLOG=$ol_enable_auditlog
38016         if test "$ol_enable_auditlog" = mod ; then
38017                 MFLAG=SLAPD_MOD_DYNAMIC
38018                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38019         else
38020                 MFLAG=SLAPD_MOD_STATIC
38021                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38022         fi
38023
38024 cat >>confdefs.h <<_ACEOF
38025 #define SLAPD_OVER_AUDITLOG $MFLAG
38026 _ACEOF
38027
38028 fi
38029
38030 if test "$ol_enable_collect" != no ; then
38031         BUILD_COLLECT=$ol_enable_collect
38032         if test "$ol_enable_collect" = mod ; then
38033                 MFLAG=SLAPD_MOD_DYNAMIC
38034                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38035         else
38036                 MFLAG=SLAPD_MOD_STATIC
38037                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38038         fi
38039
38040 cat >>confdefs.h <<_ACEOF
38041 #define SLAPD_OVER_COLLECT $MFLAG
38042 _ACEOF
38043
38044 fi
38045
38046 if test "$ol_enable_constraint" != no ; then
38047         BUILD_CONSTRAINT=$ol_enable_constraint
38048         if test "$ol_enable_constraint" = mod ; then
38049                 MFLAG=SLAPD_MOD_DYNAMIC
38050                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38051         else
38052                 MFLAG=SLAPD_MOD_STATIC
38053                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38054         fi
38055
38056 cat >>confdefs.h <<_ACEOF
38057 #define SLAPD_OVER_CONSTRAINT $MFLAG
38058 _ACEOF
38059
38060 fi
38061
38062 if test "$ol_enable_dds" != no ; then
38063         BUILD_DDS=$ol_enable_dds
38064         if test "$ol_enable_dds" = mod ; then
38065                 MFLAG=SLAPD_MOD_DYNAMIC
38066                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38067         else
38068                 MFLAG=SLAPD_MOD_STATIC
38069                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38070         fi
38071
38072 cat >>confdefs.h <<_ACEOF
38073 #define SLAPD_OVER_DDS $MFLAG
38074 _ACEOF
38075
38076 fi
38077
38078 if test "$ol_enable_dyngroup" != no ; then
38079         BUILD_DYNGROUP=$ol_enable_dyngroup
38080         if test "$ol_enable_dyngroup" = mod ; then
38081                 MFLAG=SLAPD_MOD_DYNAMIC
38082                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38083         else
38084                 MFLAG=SLAPD_MOD_STATIC
38085                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38086         fi
38087
38088 cat >>confdefs.h <<_ACEOF
38089 #define SLAPD_OVER_DYNGROUP $MFLAG
38090 _ACEOF
38091
38092 fi
38093
38094 if test "$ol_enable_dynlist" != no ; then
38095         BUILD_DYNLIST=$ol_enable_dynlist
38096         if test "$ol_enable_dynlist" = mod ; then
38097                 MFLAG=SLAPD_MOD_DYNAMIC
38098                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38099         else
38100                 MFLAG=SLAPD_MOD_STATIC
38101                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38102         fi
38103
38104 cat >>confdefs.h <<_ACEOF
38105 #define SLAPD_OVER_DYNLIST $MFLAG
38106 _ACEOF
38107
38108 fi
38109
38110 if test "$ol_enable_memberof" != no ; then
38111         BUILD_MEMBEROF=$ol_enable_memberof
38112         if test "$ol_enable_memberof" = mod ; then
38113                 MFLAG=SLAPD_MOD_DYNAMIC
38114                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38115         else
38116                 MFLAG=SLAPD_MOD_STATIC
38117                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38118         fi
38119
38120 cat >>confdefs.h <<_ACEOF
38121 #define SLAPD_OVER_MEMBEROF $MFLAG
38122 _ACEOF
38123
38124 fi
38125
38126 if test "$ol_enable_ppolicy" != no ; then
38127         BUILD_PPOLICY=$ol_enable_ppolicy
38128         if test "$ol_enable_ppolicy" = mod ; then
38129                 MFLAG=SLAPD_MOD_DYNAMIC
38130                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38131         else
38132                 MFLAG=SLAPD_MOD_STATIC
38133                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38134         fi
38135
38136 cat >>confdefs.h <<_ACEOF
38137 #define SLAPD_OVER_PPOLICY $MFLAG
38138 _ACEOF
38139
38140 fi
38141
38142 if test "$ol_enable_proxycache" != no ; then
38143         BUILD_PROXYCACHE=$ol_enable_proxycache
38144         if test "$ol_enable_proxycache" = mod ; then
38145                 MFLAG=SLAPD_MOD_DYNAMIC
38146                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38147         else
38148                 MFLAG=SLAPD_MOD_STATIC
38149                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38150         fi
38151
38152 cat >>confdefs.h <<_ACEOF
38153 #define SLAPD_OVER_PROXYCACHE $MFLAG
38154 _ACEOF
38155
38156 fi
38157
38158 if test "$ol_enable_refint" != no ; then
38159         BUILD_REFINT=$ol_enable_refint
38160         if test "$ol_enable_refint" = mod ; then
38161                 MFLAG=SLAPD_MOD_DYNAMIC
38162                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38163         else
38164                 MFLAG=SLAPD_MOD_STATIC
38165                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38166         fi
38167
38168 cat >>confdefs.h <<_ACEOF
38169 #define SLAPD_OVER_REFINT $MFLAG
38170 _ACEOF
38171
38172 fi
38173
38174 if test "$ol_enable_retcode" != no ; then
38175         BUILD_RETCODE=$ol_enable_retcode
38176         if test "$ol_enable_retcode" = mod ; then
38177                 MFLAG=SLAPD_MOD_DYNAMIC
38178                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38179         else
38180                 MFLAG=SLAPD_MOD_STATIC
38181                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38182         fi
38183
38184 cat >>confdefs.h <<_ACEOF
38185 #define SLAPD_OVER_RETCODE $MFLAG
38186 _ACEOF
38187
38188 fi
38189
38190 if test "$ol_enable_rwm" != no ; then
38191         BUILD_REWRITE=yes
38192         BUILD_RWM=$ol_enable_rwm
38193         if test "$ol_enable_rwm" = mod ; then
38194                 MFLAG=SLAPD_MOD_DYNAMIC
38195                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38196         else
38197                 MFLAG=SLAPD_MOD_STATIC
38198                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38199         fi
38200
38201 cat >>confdefs.h <<_ACEOF
38202 #define SLAPD_OVER_RWM $MFLAG
38203 _ACEOF
38204
38205 fi
38206
38207 if test "$ol_enable_seqmod" != no ; then
38208         BUILD_SEQMOD=$ol_enable_seqmod
38209         if test "$ol_enable_seqmod" = mod ; then
38210                 MFLAG=SLAPD_MOD_DYNAMIC
38211                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38212         else
38213                 MFLAG=SLAPD_MOD_STATIC
38214                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38215         fi
38216
38217 cat >>confdefs.h <<_ACEOF
38218 #define SLAPD_OVER_SEQMOD $MFLAG
38219 _ACEOF
38220
38221 fi
38222
38223 if test "$ol_enable_syncprov" != no ; then
38224         BUILD_SYNCPROV=$ol_enable_syncprov
38225         if test "$ol_enable_syncprov" = mod ; then
38226                 MFLAG=SLAPD_MOD_DYNAMIC
38227                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38228         else
38229                 MFLAG=SLAPD_MOD_STATIC
38230                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38231         fi
38232
38233 cat >>confdefs.h <<_ACEOF
38234 #define SLAPD_OVER_SYNCPROV $MFLAG
38235 _ACEOF
38236
38237 fi
38238
38239 if test "$ol_enable_translucent" != no ; then
38240         BUILD_TRANSLUCENT=$ol_enable_translucent
38241         if test "$ol_enable_translucent" = mod ; then
38242                 MFLAG=SLAPD_MOD_DYNAMIC
38243                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38244         else
38245                 MFLAG=SLAPD_MOD_STATIC
38246                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38247         fi
38248
38249 cat >>confdefs.h <<_ACEOF
38250 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38251 _ACEOF
38252
38253 fi
38254
38255 if test "$ol_enable_unique" != no ; then
38256         BUILD_UNIQUE=$ol_enable_unique
38257         if test "$ol_enable_unique" = mod ; then
38258                 MFLAG=SLAPD_MOD_DYNAMIC
38259                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38260         else
38261                 MFLAG=SLAPD_MOD_STATIC
38262                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38263         fi
38264
38265 cat >>confdefs.h <<_ACEOF
38266 #define SLAPD_OVER_UNIQUE $MFLAG
38267 _ACEOF
38268
38269 fi
38270
38271 if test "$ol_enable_valsort" != no ; then
38272         BUILD_VALSORT=$ol_enable_valsort
38273         if test "$ol_enable_valsort" = mod ; then
38274                 MFLAG=SLAPD_MOD_DYNAMIC
38275                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38276         else
38277                 MFLAG=SLAPD_MOD_STATIC
38278                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38279         fi
38280
38281 cat >>confdefs.h <<_ACEOF
38282 #define SLAPD_OVER_VALSORT $MFLAG
38283 _ACEOF
38284
38285 fi
38286
38287 if test "$ol_enable_rewrite" != no ; then
38288
38289 cat >>confdefs.h <<\_ACEOF
38290 #define ENABLE_REWRITE 1
38291 _ACEOF
38292
38293         BUILD_REWRITE=yes
38294 fi
38295
38296 if test "$ol_enable_slapi" != no ; then
38297
38298 cat >>confdefs.h <<\_ACEOF
38299 #define ENABLE_SLAPI 1
38300 _ACEOF
38301
38302         BUILD_SLAPI=yes
38303         SLAPD_SLAPI_DEPEND=libslapi.a
38304 fi
38305
38306
38307
38308 if test "$ac_cv_mingw32" = yes ; then
38309         PLAT=NT
38310         SLAPD_MODULES_LDFLAGS=
38311 else
38312         PLAT=UNIX
38313 fi
38314
38315
38316
38317
38318
38319
38320
38321
38322
38323
38324
38325
38326
38327
38328
38329
38330
38331
38332
38333
38334
38335
38336
38337
38338
38339
38340
38341
38342
38343
38344
38345
38346
38347
38348
38349
38350
38351
38352
38353
38354
38355
38356
38357
38358
38359
38360
38361
38362
38363
38364
38365
38366
38367
38368
38369
38370
38371
38372
38373
38374
38375
38376
38377
38378
38379
38380
38381
38382
38383
38384
38385
38386
38387
38388
38389
38390
38391
38392
38393
38394
38395
38396
38397
38398
38399
38400
38401
38402
38403 # Check whether --with-xxinstall or --without-xxinstall was given.
38404 if test "${with_xxinstall+set}" = set; then
38405   withval="$with_xxinstall"
38406
38407 fi;
38408
38409
38410                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
38411
38412
38413           ac_config_commands="$ac_config_commands default"
38414
38415
38416
38417 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38418 # Let make expand exec_prefix.
38419 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38420
38421 # VPATH may cause trouble with some makes, so we remove $(srcdir),
38422 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38423 # trailing colons and then remove the whole line if VPATH becomes empty
38424 # (actually we leave an empty line to preserve line numbers).
38425 if test "x$srcdir" = x.; then
38426   ac_vpsub='/^[  ]*VPATH[        ]*=/{
38427 s/:*\$(srcdir):*/:/;
38428 s/:*\${srcdir}:*/:/;
38429 s/:*@srcdir@:*/:/;
38430 s/^\([^=]*=[     ]*\):*/\1/;
38431 s/:*$//;
38432 s/^[^=]*=[       ]*$//;
38433 }'
38434 fi
38435
38436 DEFS=-DHAVE_CONFIG_H
38437
38438 ac_libobjs=
38439 ac_ltlibobjs=
38440 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38441   # 1. Remove the extension, and $U if already installed.
38442   ac_i=`echo "$ac_i" |
38443          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
38444   # 2. Add them.
38445   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
38446   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
38447 done
38448 LIBOBJS=$ac_libobjs
38449
38450 LTLIBOBJS=$ac_ltlibobjs
38451
38452
38453 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38454   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38455 Usually this means the macro was only invoked conditionally." >&5
38456 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38457 Usually this means the macro was only invoked conditionally." >&2;}
38458    { (exit 1); exit 1; }; }
38459 fi
38460 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38461   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38462 Usually this means the macro was only invoked conditionally." >&5
38463 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38464 Usually this means the macro was only invoked conditionally." >&2;}
38465    { (exit 1); exit 1; }; }
38466 fi
38467 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38468   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38469 Usually this means the macro was only invoked conditionally." >&5
38470 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38471 Usually this means the macro was only invoked conditionally." >&2;}
38472    { (exit 1); exit 1; }; }
38473 fi
38474
38475 : ${CONFIG_STATUS=./config.status}
38476 ac_clean_files_save=$ac_clean_files
38477 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38478 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38479 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38480 cat >$CONFIG_STATUS <<_ACEOF
38481 #! $SHELL
38482 # Generated by $as_me.
38483 # Run this file to recreate the current configuration.
38484 # Compiler output produced by configure, useful for debugging
38485 # configure, is in config.log if it exists.
38486
38487 debug=false
38488 ac_cs_recheck=false
38489 ac_cs_silent=false
38490 SHELL=\${CONFIG_SHELL-$SHELL}
38491 _ACEOF
38492
38493 cat >>$CONFIG_STATUS <<\_ACEOF
38494 ## --------------------- ##
38495 ## M4sh Initialization.  ##
38496 ## --------------------- ##
38497
38498 # Be Bourne compatible
38499 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38500   emulate sh
38501   NULLCMD=:
38502   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38503   # is contrary to our usage.  Disable this feature.
38504   alias -g '${1+"$@"}'='"$@"'
38505 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
38506   set -o posix
38507 fi
38508 DUALCASE=1; export DUALCASE # for MKS sh
38509
38510 # Support unset when possible.
38511 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38512   as_unset=unset
38513 else
38514   as_unset=false
38515 fi
38516
38517
38518 # Work around bugs in pre-3.0 UWIN ksh.
38519 $as_unset ENV MAIL MAILPATH
38520 PS1='$ '
38521 PS2='> '
38522 PS4='+ '
38523
38524 # NLS nuisances.
38525 for as_var in \
38526   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38527   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38528   LC_TELEPHONE LC_TIME
38529 do
38530   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38531     eval $as_var=C; export $as_var
38532   else
38533     $as_unset $as_var
38534   fi
38535 done
38536
38537 # Required to use basename.
38538 if expr a : '\(a\)' >/dev/null 2>&1; then
38539   as_expr=expr
38540 else
38541   as_expr=false
38542 fi
38543
38544 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
38545   as_basename=basename
38546 else
38547   as_basename=false
38548 fi
38549
38550
38551 # Name of the executable.
38552 as_me=`$as_basename "$0" ||
38553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38554          X"$0" : 'X\(//\)$' \| \
38555          X"$0" : 'X\(/\)$' \| \
38556          .     : '\(.\)' 2>/dev/null ||
38557 echo X/"$0" |
38558     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
38559           /^X\/\(\/\/\)$/{ s//\1/; q; }
38560           /^X\/\(\/\).*/{ s//\1/; q; }
38561           s/.*/./; q'`
38562
38563
38564 # PATH needs CR, and LINENO needs CR and PATH.
38565 # Avoid depending upon Character Ranges.
38566 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38567 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38568 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38569 as_cr_digits='0123456789'
38570 as_cr_alnum=$as_cr_Letters$as_cr_digits
38571
38572 # The user is always right.
38573 if test "${PATH_SEPARATOR+set}" != set; then
38574   echo "#! /bin/sh" >conf$$.sh
38575   echo  "exit 0"   >>conf$$.sh
38576   chmod +x conf$$.sh
38577   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38578     PATH_SEPARATOR=';'
38579   else
38580     PATH_SEPARATOR=:
38581   fi
38582   rm -f conf$$.sh
38583 fi
38584
38585
38586   as_lineno_1=$LINENO
38587   as_lineno_2=$LINENO
38588   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
38589   test "x$as_lineno_1" != "x$as_lineno_2" &&
38590   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
38591   # Find who we are.  Look in the path if we contain no path at all
38592   # relative or not.
38593   case $0 in
38594     *[\\/]* ) as_myself=$0 ;;
38595     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38596 for as_dir in $PATH
38597 do
38598   IFS=$as_save_IFS
38599   test -z "$as_dir" && as_dir=.
38600   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38601 done
38602
38603        ;;
38604   esac
38605   # We did not find ourselves, most probably we were run as `sh COMMAND'
38606   # in which case we are not to be found in the path.
38607   if test "x$as_myself" = x; then
38608     as_myself=$0
38609   fi
38610   if test ! -f "$as_myself"; then
38611     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
38612 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
38613    { (exit 1); exit 1; }; }
38614   fi
38615   case $CONFIG_SHELL in
38616   '')
38617     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38618 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
38619 do
38620   IFS=$as_save_IFS
38621   test -z "$as_dir" && as_dir=.
38622   for as_base in sh bash ksh sh5; do
38623          case $as_dir in
38624          /*)
38625            if ("$as_dir/$as_base" -c '
38626   as_lineno_1=$LINENO
38627   as_lineno_2=$LINENO
38628   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
38629   test "x$as_lineno_1" != "x$as_lineno_2" &&
38630   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
38631              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
38632              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
38633              CONFIG_SHELL=$as_dir/$as_base
38634              export CONFIG_SHELL
38635              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
38636            fi;;
38637          esac
38638        done
38639 done
38640 ;;
38641   esac
38642
38643   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38644   # uniformly replaced by the line number.  The first 'sed' inserts a
38645   # line-number line before each line; the second 'sed' does the real
38646   # work.  The second script uses 'N' to pair each line-number line
38647   # with the numbered line, and appends trailing '-' during
38648   # substitution so that $LINENO is not a special case at line end.
38649   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38650   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
38651   sed '=' <$as_myself |
38652     sed '
38653       N
38654       s,$,-,
38655       : loop
38656       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
38657       t loop
38658       s,-$,,
38659       s,^['$as_cr_digits']*\n,,
38660     ' >$as_me.lineno &&
38661   chmod +x $as_me.lineno ||
38662     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
38663 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
38664    { (exit 1); exit 1; }; }
38665
38666   # Don't try to exec as it changes $[0], causing all sort of problems
38667   # (the dirname of $[0] is not the place where we might find the
38668   # original and so on.  Autoconf is especially sensible to this).
38669   . ./$as_me.lineno
38670   # Exit status is that of the last command.
38671   exit
38672 }
38673
38674
38675 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
38676   *c*,-n*) ECHO_N= ECHO_C='
38677 ' ECHO_T='      ' ;;
38678   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
38679   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
38680 esac
38681
38682 if expr a : '\(a\)' >/dev/null 2>&1; then
38683   as_expr=expr
38684 else
38685   as_expr=false
38686 fi
38687
38688 rm -f conf$$ conf$$.exe conf$$.file
38689 echo >conf$$.file
38690 if ln -s conf$$.file conf$$ 2>/dev/null; then
38691   # We could just check for DJGPP; but this test a) works b) is more generic
38692   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
38693   if test -f conf$$.exe; then
38694     # Don't use ln at all; we don't have any links
38695     as_ln_s='cp -p'
38696   else
38697     as_ln_s='ln -s'
38698   fi
38699 elif ln conf$$.file conf$$ 2>/dev/null; then
38700   as_ln_s=ln
38701 else
38702   as_ln_s='cp -p'
38703 fi
38704 rm -f conf$$ conf$$.exe conf$$.file
38705
38706 if mkdir -p . 2>/dev/null; then
38707   as_mkdir_p=:
38708 else
38709   test -d ./-p && rmdir ./-p
38710   as_mkdir_p=false
38711 fi
38712
38713 as_executable_p="test -f"
38714
38715 # Sed expression to map a string onto a valid CPP name.
38716 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38717
38718 # Sed expression to map a string onto a valid variable name.
38719 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38720
38721
38722 # IFS
38723 # We need space, tab and new line, in precisely that order.
38724 as_nl='
38725 '
38726 IFS="   $as_nl"
38727
38728 # CDPATH.
38729 $as_unset CDPATH
38730
38731 exec 6>&1
38732
38733 # Open the log real soon, to keep \$[0] and so on meaningful, and to
38734 # report actual input values of CONFIG_FILES etc. instead of their
38735 # values after options handling.  Logging --version etc. is OK.
38736 exec 5>>config.log
38737 {
38738   echo
38739   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38740 ## Running $as_me. ##
38741 _ASBOX
38742 } >&5
38743 cat >&5 <<_CSEOF
38744
38745 This file was extended by $as_me, which was
38746 generated by GNU Autoconf 2.59.  Invocation command line was
38747
38748   CONFIG_FILES    = $CONFIG_FILES
38749   CONFIG_HEADERS  = $CONFIG_HEADERS
38750   CONFIG_LINKS    = $CONFIG_LINKS
38751   CONFIG_COMMANDS = $CONFIG_COMMANDS
38752   $ $0 $@
38753
38754 _CSEOF
38755 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
38756 echo >&5
38757 _ACEOF
38758
38759 # Files that config.status was made for.
38760 if test -n "$ac_config_files"; then
38761   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
38762 fi
38763
38764 if test -n "$ac_config_headers"; then
38765   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
38766 fi
38767
38768 if test -n "$ac_config_links"; then
38769   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
38770 fi
38771
38772 if test -n "$ac_config_commands"; then
38773   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
38774 fi
38775
38776 cat >>$CONFIG_STATUS <<\_ACEOF
38777
38778 ac_cs_usage="\
38779 \`$as_me' instantiates files from templates according to the
38780 current configuration.
38781
38782 Usage: $0 [OPTIONS] [FILE]...
38783
38784   -h, --help       print this help, then exit
38785   -V, --version    print version number, then exit
38786   -q, --quiet      do not print progress messages
38787   -d, --debug      don't remove temporary files
38788       --recheck    update $as_me by reconfiguring in the same conditions
38789   --file=FILE[:TEMPLATE]
38790                    instantiate the configuration file FILE
38791   --header=FILE[:TEMPLATE]
38792                    instantiate the configuration header FILE
38793
38794 Configuration files:
38795 $config_files
38796
38797 Configuration headers:
38798 $config_headers
38799
38800 Configuration commands:
38801 $config_commands
38802
38803 Report bugs to <bug-autoconf@gnu.org>."
38804 _ACEOF
38805
38806 cat >>$CONFIG_STATUS <<_ACEOF
38807 ac_cs_version="\\
38808 config.status
38809 configured by $0, generated by GNU Autoconf 2.59,
38810   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
38811
38812 Copyright (C) 2003 Free Software Foundation, Inc.
38813 This config.status script is free software; the Free Software Foundation
38814 gives unlimited permission to copy, distribute and modify it."
38815 srcdir=$srcdir
38816 INSTALL="$INSTALL"
38817 _ACEOF
38818
38819 cat >>$CONFIG_STATUS <<\_ACEOF
38820 # If no file are specified by the user, then we need to provide default
38821 # value.  By we need to know if files were specified by the user.
38822 ac_need_defaults=:
38823 while test $# != 0
38824 do
38825   case $1 in
38826   --*=*)
38827     ac_option=`expr "x$1" : 'x\([^=]*\)='`
38828     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
38829     ac_shift=:
38830     ;;
38831   -*)
38832     ac_option=$1
38833     ac_optarg=$2
38834     ac_shift=shift
38835     ;;
38836   *) # This is not an option, so the user has probably given explicit
38837      # arguments.
38838      ac_option=$1
38839      ac_need_defaults=false;;
38840   esac
38841
38842   case $ac_option in
38843   # Handling of the options.
38844 _ACEOF
38845 cat >>$CONFIG_STATUS <<\_ACEOF
38846   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
38847     ac_cs_recheck=: ;;
38848   --version | --vers* | -V )
38849     echo "$ac_cs_version"; exit 0 ;;
38850   --he | --h)
38851     # Conflict between --help and --header
38852     { { echo "$as_me:$LINENO: error: ambiguous option: $1
38853 Try \`$0 --help' for more information." >&5
38854 echo "$as_me: error: ambiguous option: $1
38855 Try \`$0 --help' for more information." >&2;}
38856    { (exit 1); exit 1; }; };;
38857   --help | --hel | -h )
38858     echo "$ac_cs_usage"; exit 0 ;;
38859   --debug | --d* | -d )
38860     debug=: ;;
38861   --file | --fil | --fi | --f )
38862     $ac_shift
38863     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
38864     ac_need_defaults=false;;
38865   --header | --heade | --head | --hea )
38866     $ac_shift
38867     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
38868     ac_need_defaults=false;;
38869   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
38870   | -silent | --silent | --silen | --sile | --sil | --si | --s)
38871     ac_cs_silent=: ;;
38872
38873   # This is an error.
38874   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
38875 Try \`$0 --help' for more information." >&5
38876 echo "$as_me: error: unrecognized option: $1
38877 Try \`$0 --help' for more information." >&2;}
38878    { (exit 1); exit 1; }; } ;;
38879
38880   *) ac_config_targets="$ac_config_targets $1" ;;
38881
38882   esac
38883   shift
38884 done
38885
38886 ac_configure_extra_args=
38887
38888 if $ac_cs_silent; then
38889   exec 6>/dev/null
38890   ac_configure_extra_args="$ac_configure_extra_args --silent"
38891 fi
38892
38893 _ACEOF
38894 cat >>$CONFIG_STATUS <<_ACEOF
38895 if \$ac_cs_recheck; then
38896   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
38897   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38898 fi
38899
38900 _ACEOF
38901
38902 cat >>$CONFIG_STATUS <<_ACEOF
38903 #
38904 # INIT-COMMANDS section.
38905 #
38906
38907 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38908
38909 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
38910 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
38911
38912
38913 _ACEOF
38914
38915
38916
38917 cat >>$CONFIG_STATUS <<\_ACEOF
38918 for ac_config_target in $ac_config_targets
38919 do
38920   case "$ac_config_target" in
38921   # Handling of arguments.
38922   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
38923   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
38924   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
38925   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
38926   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
38927   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
38928   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
38929   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
38930   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
38931   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
38932   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
38933   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
38934   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
38935   "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" ;;
38936   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
38937   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
38938   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
38939   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
38940   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
38941   "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" ;;
38942   "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" ;;
38943   "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" ;;
38944   "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" ;;
38945   "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" ;;
38946   "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" ;;
38947   "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" ;;
38948   "servers/slapd/back-ndb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk" ;;
38949   "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" ;;
38950   "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" ;;
38951   "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" ;;
38952   "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" ;;
38953   "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" ;;
38954   "servers/slapd/back-sock/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk" ;;
38955   "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" ;;
38956   "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" ;;
38957   "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" ;;
38958   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
38959   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
38960   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
38961   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
38962   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38963   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
38964   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
38965   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
38966   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
38967   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
38968 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
38969    { (exit 1); exit 1; }; };;
38970   esac
38971 done
38972
38973 # If the user did not use the arguments to specify the items to instantiate,
38974 # then the envvar interface is used.  Set only those that are not.
38975 # We use the long form for the default assignment because of an extremely
38976 # bizarre bug on SunOS 4.1.3.
38977 if $ac_need_defaults; then
38978   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38979   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38980   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38981 fi
38982
38983 # Have a temporary directory for convenience.  Make it in the build tree
38984 # simply because there is no reason to put it here, and in addition,
38985 # creating and moving files from /tmp can sometimes cause problems.
38986 # Create a temporary directory, and hook for its removal unless debugging.
38987 $debug ||
38988 {
38989   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
38990   trap '{ (exit 1); exit 1; }' 1 2 13 15
38991 }
38992
38993 # Create a (secure) tmp directory for tmp files.
38994
38995 {
38996   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
38997   test -n "$tmp" && test -d "$tmp"
38998 }  ||
38999 {
39000   tmp=./confstat$$-$RANDOM
39001   (umask 077 && mkdir $tmp)
39002 } ||
39003 {
39004    echo "$me: cannot create a temporary directory in ." >&2
39005    { (exit 1); exit 1; }
39006 }
39007
39008 _ACEOF
39009
39010 cat >>$CONFIG_STATUS <<_ACEOF
39011
39012 #
39013 # CONFIG_FILES section.
39014 #
39015
39016 # No need to generate the scripts if there are no CONFIG_FILES.
39017 # This happens for instance when ./config.status config.h
39018 if test -n "\$CONFIG_FILES"; then
39019   # Protect against being on the right side of a sed subst in config.status.
39020   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39021    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39022 s,@SHELL@,$SHELL,;t t
39023 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39024 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39025 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39026 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39027 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39028 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39029 s,@exec_prefix@,$exec_prefix,;t t
39030 s,@prefix@,$prefix,;t t
39031 s,@program_transform_name@,$program_transform_name,;t t
39032 s,@bindir@,$bindir,;t t
39033 s,@sbindir@,$sbindir,;t t
39034 s,@libexecdir@,$libexecdir,;t t
39035 s,@datadir@,$datadir,;t t
39036 s,@sysconfdir@,$sysconfdir,;t t
39037 s,@sharedstatedir@,$sharedstatedir,;t t
39038 s,@localstatedir@,$localstatedir,;t t
39039 s,@libdir@,$libdir,;t t
39040 s,@includedir@,$includedir,;t t
39041 s,@oldincludedir@,$oldincludedir,;t t
39042 s,@infodir@,$infodir,;t t
39043 s,@mandir@,$mandir,;t t
39044 s,@build_alias@,$build_alias,;t t
39045 s,@host_alias@,$host_alias,;t t
39046 s,@target_alias@,$target_alias,;t t
39047 s,@DEFS@,$DEFS,;t t
39048 s,@ECHO_C@,$ECHO_C,;t t
39049 s,@ECHO_N@,$ECHO_N,;t t
39050 s,@ECHO_T@,$ECHO_T,;t t
39051 s,@LIBS@,$LIBS,;t t
39052 s,@build@,$build,;t t
39053 s,@build_cpu@,$build_cpu,;t t
39054 s,@build_vendor@,$build_vendor,;t t
39055 s,@build_os@,$build_os,;t t
39056 s,@host@,$host,;t t
39057 s,@host_cpu@,$host_cpu,;t t
39058 s,@host_vendor@,$host_vendor,;t t
39059 s,@host_os@,$host_os,;t t
39060 s,@target@,$target,;t t
39061 s,@target_cpu@,$target_cpu,;t t
39062 s,@target_vendor@,$target_vendor,;t t
39063 s,@target_os@,$target_os,;t t
39064 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39065 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39066 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39067 s,@CYGPATH_W@,$CYGPATH_W,;t t
39068 s,@PACKAGE@,$PACKAGE,;t t
39069 s,@VERSION@,$VERSION,;t t
39070 s,@ACLOCAL@,$ACLOCAL,;t t
39071 s,@AUTOCONF@,$AUTOCONF,;t t
39072 s,@AUTOMAKE@,$AUTOMAKE,;t t
39073 s,@AUTOHEADER@,$AUTOHEADER,;t t
39074 s,@MAKEINFO@,$MAKEINFO,;t t
39075 s,@install_sh@,$install_sh,;t t
39076 s,@STRIP@,$STRIP,;t t
39077 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39078 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
39079 s,@mkdir_p@,$mkdir_p,;t t
39080 s,@AWK@,$AWK,;t t
39081 s,@SET_MAKE@,$SET_MAKE,;t t
39082 s,@am__leading_dot@,$am__leading_dot,;t t
39083 s,@AMTAR@,$AMTAR,;t t
39084 s,@am__tar@,$am__tar,;t t
39085 s,@am__untar@,$am__untar,;t t
39086 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
39087 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
39088 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
39089 s,@top_builddir@,$top_builddir,;t t
39090 s,@ldap_subdir@,$ldap_subdir,;t t
39091 s,@CC@,$CC,;t t
39092 s,@AR@,$AR,;t t
39093 s,@CFLAGS@,$CFLAGS,;t t
39094 s,@LDFLAGS@,$LDFLAGS,;t t
39095 s,@CPPFLAGS@,$CPPFLAGS,;t t
39096 s,@ac_ct_CC@,$ac_ct_CC,;t t
39097 s,@EXEEXT@,$EXEEXT,;t t
39098 s,@OBJEXT@,$OBJEXT,;t t
39099 s,@DEPDIR@,$DEPDIR,;t t
39100 s,@am__include@,$am__include,;t t
39101 s,@am__quote@,$am__quote,;t t
39102 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
39103 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
39104 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
39105 s,@CCDEPMODE@,$CCDEPMODE,;t t
39106 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
39107 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
39108 s,@EGREP@,$EGREP,;t t
39109 s,@LN_S@,$LN_S,;t t
39110 s,@ECHO@,$ECHO,;t t
39111 s,@ac_ct_AR@,$ac_ct_AR,;t t
39112 s,@RANLIB@,$RANLIB,;t t
39113 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39114 s,@DLLTOOL@,$DLLTOOL,;t t
39115 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
39116 s,@AS@,$AS,;t t
39117 s,@ac_ct_AS@,$ac_ct_AS,;t t
39118 s,@OBJDUMP@,$OBJDUMP,;t t
39119 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
39120 s,@CPP@,$CPP,;t t
39121 s,@LIBTOOL@,$LIBTOOL,;t t
39122 s,@PERLBIN@,$PERLBIN,;t t
39123 s,@OL_MKDEP@,$OL_MKDEP,;t t
39124 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
39125 s,@LTSTATIC@,$LTSTATIC,;t t
39126 s,@MYSQL@,$MYSQL,;t t
39127 s,@LIBOBJS@,$LIBOBJS,;t t
39128 s,@LIBSRCS@,$LIBSRCS,;t t
39129 s,@PLAT@,$PLAT,;t t
39130 s,@WITH_SASL@,$WITH_SASL,;t t
39131 s,@WITH_TLS@,$WITH_TLS,;t t
39132 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
39133 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
39134 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
39135 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
39136 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
39137 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
39138 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
39139 s,@BUILD_BDB@,$BUILD_BDB,;t t
39140 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
39141 s,@BUILD_HDB@,$BUILD_HDB,;t t
39142 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
39143 s,@BUILD_META@,$BUILD_META,;t t
39144 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
39145 s,@BUILD_NDB@,$BUILD_NDB,;t t
39146 s,@BUILD_NULL@,$BUILD_NULL,;t t
39147 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
39148 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
39149 s,@BUILD_PERL@,$BUILD_PERL,;t t
39150 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
39151 s,@BUILD_SOCK@,$BUILD_SOCK,;t t
39152 s,@BUILD_SQL@,$BUILD_SQL,;t t
39153 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
39154 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
39155 s,@BUILD_COLLECT@,$BUILD_COLLECT,;t t
39156 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
39157 s,@BUILD_DDS@,$BUILD_DDS,;t t
39158 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
39159 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
39160 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
39161 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
39162 s,@BUILD_MEMBEROF@,$BUILD_MEMBEROF,;t t
39163 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
39164 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
39165 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
39166 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
39167 s,@BUILD_RWM@,$BUILD_RWM,;t t
39168 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
39169 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
39170 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
39171 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
39172 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
39173 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
39174 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
39175 s,@BDB_LIBS@,$BDB_LIBS,;t t
39176 s,@SLAPD_NDB_LIBS@,$SLAPD_NDB_LIBS,;t t
39177 s,@SLAPD_NDB_INCS@,$SLAPD_NDB_INCS,;t t
39178 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
39179 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
39180 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
39181 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
39182 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
39183 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
39184 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
39185 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
39186 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
39187 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
39188 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
39189 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
39190 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
39191 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
39192 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
39193 s,@SASL_LIBS@,$SASL_LIBS,;t t
39194 s,@TLS_LIBS@,$TLS_LIBS,;t t
39195 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
39196 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
39197 s,@LIBSLAPI@,$LIBSLAPI,;t t
39198 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
39199 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
39200 s,@ICU_LIBS@,$ICU_LIBS,;t t
39201 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
39202 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
39203 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
39204 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
39205 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
39206 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
39207 CEOF
39208
39209 _ACEOF
39210
39211   cat >>$CONFIG_STATUS <<\_ACEOF
39212   # Split the substitutions into bite-sized pieces for seds with
39213   # small command number limits, like on Digital OSF/1 and HP-UX.
39214   ac_max_sed_lines=48
39215   ac_sed_frag=1 # Number of current file.
39216   ac_beg=1 # First line for current file.
39217   ac_end=$ac_max_sed_lines # Line after last line for current file.
39218   ac_more_lines=:
39219   ac_sed_cmds=
39220   while $ac_more_lines; do
39221     if test $ac_beg -gt 1; then
39222       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39223     else
39224       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39225     fi
39226     if test ! -s $tmp/subs.frag; then
39227       ac_more_lines=false
39228     else
39229       # The purpose of the label and of the branching condition is to
39230       # speed up the sed processing (if there are no `@' at all, there
39231       # is no need to browse any of the substitutions).
39232       # These are the two extra sed commands mentioned above.
39233       (echo ':t
39234   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39235       if test -z "$ac_sed_cmds"; then
39236         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
39237       else
39238         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
39239       fi
39240       ac_sed_frag=`expr $ac_sed_frag + 1`
39241       ac_beg=$ac_end
39242       ac_end=`expr $ac_end + $ac_max_sed_lines`
39243     fi
39244   done
39245   if test -z "$ac_sed_cmds"; then
39246     ac_sed_cmds=cat
39247   fi
39248 fi # test -n "$CONFIG_FILES"
39249
39250 _ACEOF
39251 cat >>$CONFIG_STATUS <<\_ACEOF
39252 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
39253   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39254   case $ac_file in
39255   - | *:- | *:-:* ) # input from stdin
39256         cat >$tmp/stdin
39257         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39258         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39259   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39260         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39261   * )   ac_file_in=$ac_file.in ;;
39262   esac
39263
39264   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39265   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39266 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39267          X"$ac_file" : 'X\(//\)[^/]' \| \
39268          X"$ac_file" : 'X\(//\)$' \| \
39269          X"$ac_file" : 'X\(/\)' \| \
39270          .     : '\(.\)' 2>/dev/null ||
39271 echo X"$ac_file" |
39272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39273           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39274           /^X\(\/\/\)$/{ s//\1/; q; }
39275           /^X\(\/\).*/{ s//\1/; q; }
39276           s/.*/./; q'`
39277   { if $as_mkdir_p; then
39278     mkdir -p "$ac_dir"
39279   else
39280     as_dir="$ac_dir"
39281     as_dirs=
39282     while test ! -d "$as_dir"; do
39283       as_dirs="$as_dir $as_dirs"
39284       as_dir=`(dirname "$as_dir") 2>/dev/null ||
39285 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39286          X"$as_dir" : 'X\(//\)[^/]' \| \
39287          X"$as_dir" : 'X\(//\)$' \| \
39288          X"$as_dir" : 'X\(/\)' \| \
39289          .     : '\(.\)' 2>/dev/null ||
39290 echo X"$as_dir" |
39291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39292           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39293           /^X\(\/\/\)$/{ s//\1/; q; }
39294           /^X\(\/\).*/{ s//\1/; q; }
39295           s/.*/./; q'`
39296     done
39297     test ! -n "$as_dirs" || mkdir $as_dirs
39298   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39299 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39300    { (exit 1); exit 1; }; }; }
39301
39302   ac_builddir=.
39303
39304 if test "$ac_dir" != .; then
39305   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39306   # A "../" for each directory in $ac_dir_suffix.
39307   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39308 else
39309   ac_dir_suffix= ac_top_builddir=
39310 fi
39311
39312 case $srcdir in
39313   .)  # No --srcdir option.  We are building in place.
39314     ac_srcdir=.
39315     if test -z "$ac_top_builddir"; then
39316        ac_top_srcdir=.
39317     else
39318        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39319     fi ;;
39320   [\\/]* | ?:[\\/]* )  # Absolute path.
39321     ac_srcdir=$srcdir$ac_dir_suffix;
39322     ac_top_srcdir=$srcdir ;;
39323   *) # Relative path.
39324     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39325     ac_top_srcdir=$ac_top_builddir$srcdir ;;
39326 esac
39327
39328 # Do not use `cd foo && pwd` to compute absolute paths, because
39329 # the directories may not exist.
39330 case `pwd` in
39331 .) ac_abs_builddir="$ac_dir";;
39332 *)
39333   case "$ac_dir" in
39334   .) ac_abs_builddir=`pwd`;;
39335   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39336   *) ac_abs_builddir=`pwd`/"$ac_dir";;
39337   esac;;
39338 esac
39339 case $ac_abs_builddir in
39340 .) ac_abs_top_builddir=${ac_top_builddir}.;;
39341 *)
39342   case ${ac_top_builddir}. in
39343   .) ac_abs_top_builddir=$ac_abs_builddir;;
39344   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39345   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
39346   esac;;
39347 esac
39348 case $ac_abs_builddir in
39349 .) ac_abs_srcdir=$ac_srcdir;;
39350 *)
39351   case $ac_srcdir in
39352   .) ac_abs_srcdir=$ac_abs_builddir;;
39353   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39354   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
39355   esac;;
39356 esac
39357 case $ac_abs_builddir in
39358 .) ac_abs_top_srcdir=$ac_top_srcdir;;
39359 *)
39360   case $ac_top_srcdir in
39361   .) ac_abs_top_srcdir=$ac_abs_builddir;;
39362   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39363   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
39364   esac;;
39365 esac
39366
39367
39368   case $INSTALL in
39369   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39370   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
39371   esac
39372
39373   if test x"$ac_file" != x-; then
39374     { echo "$as_me:$LINENO: creating $ac_file" >&5
39375 echo "$as_me: creating $ac_file" >&6;}
39376     rm -f "$ac_file"
39377   fi
39378   # Let's still pretend it is `configure' which instantiates (i.e., don't
39379   # use $as_me), people would be surprised to read:
39380   #    /* config.h.  Generated by config.status.  */
39381   if test x"$ac_file" = x-; then
39382     configure_input=
39383   else
39384     configure_input="$ac_file.  "
39385   fi
39386   configure_input=$configure_input"Generated from `echo $ac_file_in |
39387                                      sed 's,.*/,,'` by configure."
39388
39389   # First look for the input files in the build tree, otherwise in the
39390   # src tree.
39391   ac_file_inputs=`IFS=:
39392     for f in $ac_file_in; do
39393       case $f in
39394       -) echo $tmp/stdin ;;
39395       [\\/$]*)
39396          # Absolute (can't be DOS-style, as IFS=:)
39397          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39398 echo "$as_me: error: cannot find input file: $f" >&2;}
39399    { (exit 1); exit 1; }; }
39400          echo "$f";;
39401       *) # Relative
39402          if test -f "$f"; then
39403            # Build tree
39404            echo "$f"
39405          elif test -f "$srcdir/$f"; then
39406            # Source tree
39407            echo "$srcdir/$f"
39408          else
39409            # /dev/null tree
39410            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39411 echo "$as_me: error: cannot find input file: $f" >&2;}
39412    { (exit 1); exit 1; }; }
39413          fi;;
39414       esac
39415     done` || { (exit 1); exit 1; }
39416 _ACEOF
39417 cat >>$CONFIG_STATUS <<_ACEOF
39418   sed "$ac_vpsub
39419 $extrasub
39420 _ACEOF
39421 cat >>$CONFIG_STATUS <<\_ACEOF
39422 :t
39423 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39424 s,@configure_input@,$configure_input,;t t
39425 s,@srcdir@,$ac_srcdir,;t t
39426 s,@abs_srcdir@,$ac_abs_srcdir,;t t
39427 s,@top_srcdir@,$ac_top_srcdir,;t t
39428 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
39429 s,@builddir@,$ac_builddir,;t t
39430 s,@abs_builddir@,$ac_abs_builddir,;t t
39431 s,@top_builddir@,$ac_top_builddir,;t t
39432 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
39433 s,@INSTALL@,$ac_INSTALL,;t t
39434 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
39435   rm -f $tmp/stdin
39436   if test x"$ac_file" != x-; then
39437     mv $tmp/out $ac_file
39438   else
39439     cat $tmp/out
39440     rm -f $tmp/out
39441   fi
39442
39443 done
39444 _ACEOF
39445 cat >>$CONFIG_STATUS <<\_ACEOF
39446
39447 #
39448 # CONFIG_HEADER section.
39449 #
39450
39451 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
39452 # NAME is the cpp macro being defined and VALUE is the value it is being given.
39453 #
39454 # ac_d sets the value in "#define NAME VALUE" lines.
39455 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
39456 ac_dB='[         ].*$,\1#\2'
39457 ac_dC=' '
39458 ac_dD=',;t'
39459 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
39460 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
39461 ac_uB='$,\1#\2define\3'
39462 ac_uC=' '
39463 ac_uD=',;t'
39464
39465 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
39466   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39467   case $ac_file in
39468   - | *:- | *:-:* ) # input from stdin
39469         cat >$tmp/stdin
39470         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39471         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39472   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39473         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39474   * )   ac_file_in=$ac_file.in ;;
39475   esac
39476
39477   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
39478 echo "$as_me: creating $ac_file" >&6;}
39479
39480   # First look for the input files in the build tree, otherwise in the
39481   # src tree.
39482   ac_file_inputs=`IFS=:
39483     for f in $ac_file_in; do
39484       case $f in
39485       -) echo $tmp/stdin ;;
39486       [\\/$]*)
39487          # Absolute (can't be DOS-style, as IFS=:)
39488          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39489 echo "$as_me: error: cannot find input file: $f" >&2;}
39490    { (exit 1); exit 1; }; }
39491          # Do quote $f, to prevent DOS paths from being IFS'd.
39492          echo "$f";;
39493       *) # Relative
39494          if test -f "$f"; then
39495            # Build tree
39496            echo "$f"
39497          elif test -f "$srcdir/$f"; then
39498            # Source tree
39499            echo "$srcdir/$f"
39500          else
39501            # /dev/null tree
39502            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39503 echo "$as_me: error: cannot find input file: $f" >&2;}
39504    { (exit 1); exit 1; }; }
39505          fi;;
39506       esac
39507     done` || { (exit 1); exit 1; }
39508   # Remove the trailing spaces.
39509   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
39510
39511 _ACEOF
39512
39513 # Transform confdefs.h into two sed scripts, `conftest.defines' and
39514 # `conftest.undefs', that substitutes the proper values into
39515 # config.h.in to produce config.h.  The first handles `#define'
39516 # templates, and the second `#undef' templates.
39517 # And first: Protect against being on the right side of a sed subst in
39518 # config.status.  Protect against being in an unquoted here document
39519 # in config.status.
39520 rm -f conftest.defines conftest.undefs
39521 # Using a here document instead of a string reduces the quoting nightmare.
39522 # Putting comments in sed scripts is not portable.
39523 #
39524 # `end' is used to avoid that the second main sed command (meant for
39525 # 0-ary CPP macros) applies to n-ary macro definitions.
39526 # See the Autoconf documentation for `clear'.
39527 cat >confdef2sed.sed <<\_ACEOF
39528 s/[\\&,]/\\&/g
39529 s,[\\$`],\\&,g
39530 t clear
39531 : clear
39532 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
39533 t end
39534 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
39535 : end
39536 _ACEOF
39537 # If some macros were called several times there might be several times
39538 # the same #defines, which is useless.  Nevertheless, we may not want to
39539 # sort them, since we want the *last* AC-DEFINE to be honored.
39540 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
39541 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
39542 rm -f confdef2sed.sed
39543
39544 # This sed command replaces #undef with comments.  This is necessary, for
39545 # example, in the case of _POSIX_SOURCE, which is predefined and required
39546 # on some systems where configure will not decide to define it.
39547 cat >>conftest.undefs <<\_ACEOF
39548 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
39549 _ACEOF
39550
39551 # Break up conftest.defines because some shells have a limit on the size
39552 # of here documents, and old seds have small limits too (100 cmds).
39553 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
39554 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
39555 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
39556 echo '  :' >>$CONFIG_STATUS
39557 rm -f conftest.tail
39558 while grep . conftest.defines >/dev/null
39559 do
39560   # Write a limited-size here document to $tmp/defines.sed.
39561   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
39562   # Speed up: don't consider the non `#define' lines.
39563   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
39564   # Work around the forget-to-reset-the-flag bug.
39565   echo 't clr' >>$CONFIG_STATUS
39566   echo ': clr' >>$CONFIG_STATUS
39567   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
39568   echo 'CEOF
39569   sed -f $tmp/defines.sed $tmp/in >$tmp/out
39570   rm -f $tmp/in
39571   mv $tmp/out $tmp/in
39572 ' >>$CONFIG_STATUS
39573   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
39574   rm -f conftest.defines
39575   mv conftest.tail conftest.defines
39576 done
39577 rm -f conftest.defines
39578 echo '  fi # grep' >>$CONFIG_STATUS
39579 echo >>$CONFIG_STATUS
39580
39581 # Break up conftest.undefs because some shells have a limit on the size
39582 # of here documents, and old seds have small limits too (100 cmds).
39583 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
39584 rm -f conftest.tail
39585 while grep . conftest.undefs >/dev/null
39586 do
39587   # Write a limited-size here document to $tmp/undefs.sed.
39588   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
39589   # Speed up: don't consider the non `#undef'
39590   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
39591   # Work around the forget-to-reset-the-flag bug.
39592   echo 't clr' >>$CONFIG_STATUS
39593   echo ': clr' >>$CONFIG_STATUS
39594   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
39595   echo 'CEOF
39596   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
39597   rm -f $tmp/in
39598   mv $tmp/out $tmp/in
39599 ' >>$CONFIG_STATUS
39600   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
39601   rm -f conftest.undefs
39602   mv conftest.tail conftest.undefs
39603 done
39604 rm -f conftest.undefs
39605
39606 cat >>$CONFIG_STATUS <<\_ACEOF
39607   # Let's still pretend it is `configure' which instantiates (i.e., don't
39608   # use $as_me), people would be surprised to read:
39609   #    /* config.h.  Generated by config.status.  */
39610   if test x"$ac_file" = x-; then
39611     echo "/* Generated by configure.  */" >$tmp/config.h
39612   else
39613     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
39614   fi
39615   cat $tmp/in >>$tmp/config.h
39616   rm -f $tmp/in
39617   if test x"$ac_file" != x-; then
39618     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
39619       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39620 echo "$as_me: $ac_file is unchanged" >&6;}
39621     else
39622       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39624          X"$ac_file" : 'X\(//\)[^/]' \| \
39625          X"$ac_file" : 'X\(//\)$' \| \
39626          X"$ac_file" : 'X\(/\)' \| \
39627          .     : '\(.\)' 2>/dev/null ||
39628 echo X"$ac_file" |
39629     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39630           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39631           /^X\(\/\/\)$/{ s//\1/; q; }
39632           /^X\(\/\).*/{ s//\1/; q; }
39633           s/.*/./; q'`
39634       { if $as_mkdir_p; then
39635     mkdir -p "$ac_dir"
39636   else
39637     as_dir="$ac_dir"
39638     as_dirs=
39639     while test ! -d "$as_dir"; do
39640       as_dirs="$as_dir $as_dirs"
39641       as_dir=`(dirname "$as_dir") 2>/dev/null ||
39642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39643          X"$as_dir" : 'X\(//\)[^/]' \| \
39644          X"$as_dir" : 'X\(//\)$' \| \
39645          X"$as_dir" : 'X\(/\)' \| \
39646          .     : '\(.\)' 2>/dev/null ||
39647 echo X"$as_dir" |
39648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39649           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39650           /^X\(\/\/\)$/{ s//\1/; q; }
39651           /^X\(\/\).*/{ s//\1/; q; }
39652           s/.*/./; q'`
39653     done
39654     test ! -n "$as_dirs" || mkdir $as_dirs
39655   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39656 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39657    { (exit 1); exit 1; }; }; }
39658
39659       rm -f $ac_file
39660       mv $tmp/config.h $ac_file
39661     fi
39662   else
39663     cat $tmp/config.h
39664     rm -f $tmp/config.h
39665   fi
39666 # Compute $ac_file's index in $config_headers.
39667 _am_stamp_count=1
39668 for _am_header in $config_headers :; do
39669   case $_am_header in
39670     $ac_file | $ac_file:* )
39671       break ;;
39672     * )
39673       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39674   esac
39675 done
39676 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
39677 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39678          X$ac_file : 'X\(//\)[^/]' \| \
39679          X$ac_file : 'X\(//\)$' \| \
39680          X$ac_file : 'X\(/\)' \| \
39681          .     : '\(.\)' 2>/dev/null ||
39682 echo X$ac_file |
39683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39684           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39685           /^X\(\/\/\)$/{ s//\1/; q; }
39686           /^X\(\/\).*/{ s//\1/; q; }
39687           s/.*/./; q'`/stamp-h$_am_stamp_count
39688 done
39689 _ACEOF
39690 cat >>$CONFIG_STATUS <<\_ACEOF
39691
39692 #
39693 # CONFIG_COMMANDS section.
39694 #
39695 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
39696   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
39697   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
39698   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
39699 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39700          X"$ac_dest" : 'X\(//\)[^/]' \| \
39701          X"$ac_dest" : 'X\(//\)$' \| \
39702          X"$ac_dest" : 'X\(/\)' \| \
39703          .     : '\(.\)' 2>/dev/null ||
39704 echo X"$ac_dest" |
39705     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39706           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39707           /^X\(\/\/\)$/{ s//\1/; q; }
39708           /^X\(\/\).*/{ s//\1/; q; }
39709           s/.*/./; q'`
39710   { if $as_mkdir_p; then
39711     mkdir -p "$ac_dir"
39712   else
39713     as_dir="$ac_dir"
39714     as_dirs=
39715     while test ! -d "$as_dir"; do
39716       as_dirs="$as_dir $as_dirs"
39717       as_dir=`(dirname "$as_dir") 2>/dev/null ||
39718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39719          X"$as_dir" : 'X\(//\)[^/]' \| \
39720          X"$as_dir" : 'X\(//\)$' \| \
39721          X"$as_dir" : 'X\(/\)' \| \
39722          .     : '\(.\)' 2>/dev/null ||
39723 echo X"$as_dir" |
39724     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39725           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39726           /^X\(\/\/\)$/{ s//\1/; q; }
39727           /^X\(\/\).*/{ s//\1/; q; }
39728           s/.*/./; q'`
39729     done
39730     test ! -n "$as_dirs" || mkdir $as_dirs
39731   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39732 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39733    { (exit 1); exit 1; }; }; }
39734
39735   ac_builddir=.
39736
39737 if test "$ac_dir" != .; then
39738   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39739   # A "../" for each directory in $ac_dir_suffix.
39740   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39741 else
39742   ac_dir_suffix= ac_top_builddir=
39743 fi
39744
39745 case $srcdir in
39746   .)  # No --srcdir option.  We are building in place.
39747     ac_srcdir=.
39748     if test -z "$ac_top_builddir"; then
39749        ac_top_srcdir=.
39750     else
39751        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39752     fi ;;
39753   [\\/]* | ?:[\\/]* )  # Absolute path.
39754     ac_srcdir=$srcdir$ac_dir_suffix;
39755     ac_top_srcdir=$srcdir ;;
39756   *) # Relative path.
39757     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39758     ac_top_srcdir=$ac_top_builddir$srcdir ;;
39759 esac
39760
39761 # Do not use `cd foo && pwd` to compute absolute paths, because
39762 # the directories may not exist.
39763 case `pwd` in
39764 .) ac_abs_builddir="$ac_dir";;
39765 *)
39766   case "$ac_dir" in
39767   .) ac_abs_builddir=`pwd`;;
39768   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39769   *) ac_abs_builddir=`pwd`/"$ac_dir";;
39770   esac;;
39771 esac
39772 case $ac_abs_builddir in
39773 .) ac_abs_top_builddir=${ac_top_builddir}.;;
39774 *)
39775   case ${ac_top_builddir}. in
39776   .) ac_abs_top_builddir=$ac_abs_builddir;;
39777   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39778   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
39779   esac;;
39780 esac
39781 case $ac_abs_builddir in
39782 .) ac_abs_srcdir=$ac_srcdir;;
39783 *)
39784   case $ac_srcdir in
39785   .) ac_abs_srcdir=$ac_abs_builddir;;
39786   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39787   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
39788   esac;;
39789 esac
39790 case $ac_abs_builddir in
39791 .) ac_abs_top_srcdir=$ac_top_srcdir;;
39792 *)
39793   case $ac_top_srcdir in
39794   .) ac_abs_top_srcdir=$ac_abs_builddir;;
39795   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39796   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
39797   esac;;
39798 esac
39799
39800
39801   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
39802 echo "$as_me: executing $ac_dest commands" >&6;}
39803   case $ac_dest in
39804     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39805   # Strip MF so we end up with the name of the file.
39806   mf=`echo "$mf" | sed -e 's/:.*$//'`
39807   # Check whether this is an Automake generated Makefile or not.
39808   # We used to match only the files named `Makefile.in', but
39809   # some people rename them; so instead we look at the file content.
39810   # Grep'ing the first line is not enough: some people post-process
39811   # each Makefile.in and add a new line on top of each file to say so.
39812   # So let's grep whole file.
39813   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
39814     dirpart=`(dirname "$mf") 2>/dev/null ||
39815 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39816          X"$mf" : 'X\(//\)[^/]' \| \
39817          X"$mf" : 'X\(//\)$' \| \
39818          X"$mf" : 'X\(/\)' \| \
39819          .     : '\(.\)' 2>/dev/null ||
39820 echo X"$mf" |
39821     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39822           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39823           /^X\(\/\/\)$/{ s//\1/; q; }
39824           /^X\(\/\).*/{ s//\1/; q; }
39825           s/.*/./; q'`
39826   else
39827     continue
39828   fi
39829   # Extract the definition of DEPDIR, am__include, and am__quote
39830   # from the Makefile without running `make'.
39831   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39832   test -z "$DEPDIR" && continue
39833   am__include=`sed -n 's/^am__include = //p' < "$mf"`
39834   test -z "am__include" && continue
39835   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39836   # When using ansi2knr, U may be empty or an underscore; expand it
39837   U=`sed -n 's/^U = //p' < "$mf"`
39838   # Find all dependency output files, they are included files with
39839   # $(DEPDIR) in their names.  We invoke sed twice because it is the
39840   # simplest approach to changing $(DEPDIR) to its actual value in the
39841   # expansion.
39842   for file in `sed -n "
39843     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39844        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
39845     # Make sure the directory exists.
39846     test -f "$dirpart/$file" && continue
39847     fdir=`(dirname "$file") 2>/dev/null ||
39848 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39849          X"$file" : 'X\(//\)[^/]' \| \
39850          X"$file" : 'X\(//\)$' \| \
39851          X"$file" : 'X\(/\)' \| \
39852          .     : '\(.\)' 2>/dev/null ||
39853 echo X"$file" |
39854     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39855           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39856           /^X\(\/\/\)$/{ s//\1/; q; }
39857           /^X\(\/\).*/{ s//\1/; q; }
39858           s/.*/./; q'`
39859     { if $as_mkdir_p; then
39860     mkdir -p $dirpart/$fdir
39861   else
39862     as_dir=$dirpart/$fdir
39863     as_dirs=
39864     while test ! -d "$as_dir"; do
39865       as_dirs="$as_dir $as_dirs"
39866       as_dir=`(dirname "$as_dir") 2>/dev/null ||
39867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39868          X"$as_dir" : 'X\(//\)[^/]' \| \
39869          X"$as_dir" : 'X\(//\)$' \| \
39870          X"$as_dir" : 'X\(/\)' \| \
39871          .     : '\(.\)' 2>/dev/null ||
39872 echo X"$as_dir" |
39873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39875           /^X\(\/\/\)$/{ s//\1/; q; }
39876           /^X\(\/\).*/{ s//\1/; q; }
39877           s/.*/./; q'`
39878     done
39879     test ! -n "$as_dirs" || mkdir $as_dirs
39880   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
39881 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
39882    { (exit 1); exit 1; }; }; }
39883
39884     # echo "creating $dirpart/$file"
39885     echo '# dummy' > "$dirpart/$file"
39886   done
39887 done
39888  ;;
39889     default )
39890 chmod +x tests/run
39891 date > stamp-h
39892 BACKENDSC="servers/slapd/backends.c"
39893 echo "Making $BACKENDSC"
39894 rm -f $BACKENDSC
39895 cat > $BACKENDSC << ENDX
39896 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
39897  *
39898  * Copyright 1998-2008 The OpenLDAP Foundation.
39899  * All rights reserved.
39900  *
39901  * Redistribution and use in source and binary forms, with or without
39902  * modification, are permitted only as authorized by the OpenLDAP
39903  * Public License.
39904  *
39905  * A copy of this license is available in the file LICENSE in the
39906  * top-level directory of the distribution or, alternatively, at
39907  * <http://www.OpenLDAP.org/license.html>.
39908  */
39909 /* This file is automatically generated by configure; please do not edit. */
39910
39911 #include "portable.h"
39912 #include "slap.h"
39913
39914 ENDX
39915 if test "${STATIC_BACKENDS}"; then
39916         for b in config ${STATIC_BACKENDS}; do
39917                 bb=`echo "${b}" | sed -e 's/back-//'`
39918                 cat >> $BACKENDSC << ENDX
39919 extern BI_init ${bb}_back_initialize;
39920 ENDX
39921         done
39922
39923         cat >> $BACKENDSC << ENDX
39924
39925 BackendInfo slap_binfo[] = {
39926 ENDX
39927
39928         for b in config ${STATIC_BACKENDS}; do
39929                 bb=`echo "${b}" | sed -e 's/back-//'`
39930                 echo "    Add ${bb} ..."
39931                 cat >> $BACKENDSC << ENDX
39932         { "${bb}", ${bb}_back_initialize },
39933 ENDX
39934         done
39935
39936         cat >> $BACKENDSC << ENDX
39937         { NULL, NULL },
39938 };
39939
39940 /* end of generated file */
39941 ENDX
39942 fi
39943 OVERLAYSC="servers/slapd/overlays/statover.c"
39944 echo "Making $OVERLAYSC"
39945 rm -f $OVERLAYSC
39946 cat > $OVERLAYSC << ENDX
39947 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
39948  *
39949  * Copyright 1998-2008 The OpenLDAP Foundation.
39950  * All rights reserved.
39951  *
39952  * Redistribution and use in source and binary forms, with or without
39953  * modification, are permitted only as authorized by the OpenLDAP
39954  * Public License.
39955  *
39956  * A copy of this license is available in the file LICENSE in the
39957  * top-level directory of the distribution or, alternatively, at
39958  * <http://www.OpenLDAP.org/license.html>.
39959  */
39960 /* This file is automatically generated by configure; please do not edit. */
39961
39962 #include "portable.h"
39963 #include "slap.h"
39964
39965 ENDX
39966 if test "${STATIC_OVERLAYS}"; then
39967         for o in ${STATIC_OVERLAYS}; do
39968                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
39969                 cat >> $OVERLAYSC << ENDX
39970 extern OV_init ${oo}_initialize;
39971 ENDX
39972         done
39973 fi
39974
39975 cat >> $OVERLAYSC << ENDX
39976
39977 OverlayInit slap_oinfo[] = {
39978 ENDX
39979
39980 if test "${STATIC_OVERLAYS}"; then
39981         for o in ${STATIC_OVERLAYS}; do
39982                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
39983                 echo "    Add ${oo} ..."
39984                 cat >> $OVERLAYSC << ENDX
39985         { "${oo}", ${oo}_initialize },
39986 ENDX
39987         done
39988 fi
39989
39990         cat >> $OVERLAYSC << ENDX
39991         { NULL, NULL },
39992 };
39993
39994 /* end of generated file */
39995 ENDX
39996
39997 if test "${ol_cv_mkdep}" = no; then
39998         echo '(Do not "make depend"; we do not know how to build dependencies)'
39999 else
40000         echo 'Please run "make depend" to build dependencies'
40001 fi
40002  ;;
40003   esac
40004 done
40005 _ACEOF
40006
40007 cat >>$CONFIG_STATUS <<\_ACEOF
40008
40009 { (exit 0); exit 0; }
40010 _ACEOF
40011 chmod +x $CONFIG_STATUS
40012 ac_clean_files=$ac_clean_files_save
40013
40014
40015 # configure is writing to config.log, and then calls config.status.
40016 # config.status does its own redirection, appending to config.log.
40017 # Unfortunately, on DOS this fails, as config.log is still kept open
40018 # by configure, so config.status won't be able to write to it; its
40019 # output is simply discarded.  So we exec the FD to /dev/null,
40020 # effectively closing config.log, so it can be properly (re)opened and
40021 # appended to by config.status.  When coming back to configure, we
40022 # need to make the FD available again.
40023 if test "$no_create" != yes; then
40024   ac_cs_success=:
40025   ac_config_status_args=
40026   test "$silent" = yes &&
40027     ac_config_status_args="$ac_config_status_args --quiet"
40028   exec 5>/dev/null
40029   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40030   exec 5>>config.log
40031   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40032   # would make configure fail if this is the last instruction.
40033   $ac_cs_success || { (exit 1); exit 1; }
40034 fi
40035