]> git.sur5r.net Git - openldap/blob - configure
ITS#4750 only read LDAP_CONF_FILE if geteuid() != getuid()
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.673 2008/11/21 01:03:57 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2008 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293        echo_test_string=`eval $cmd` &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC MYSQL LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_META BUILD_MONITOR BUILD_NDB BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SOCK BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_COLLECT BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_MEMBEROF BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT LDAP_LIBS SLAPD_LIBS BDB_LIBS SLAPD_NDB_LIBS SLAPD_NDB_INCS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS GSSAPI_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929
930 #
931 # Report the --help message.
932 #
933 if test "$ac_init_help" = "long"; then
934   # Omit some internal or obsolete options to make the list less imposing.
935   # This message is too long to be a string in the A/UX 3.1 sh.
936   cat <<_ACEOF
937 \`configure' configures this package to adapt to many kinds of systems.
938
939 Usage: $0 [OPTION]... [VAR=VALUE]...
940
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE.  See below for descriptions of some of the useful variables.
943
944 Defaults for the options are specified in brackets.
945
946 Configuration:
947   -h, --help              display this help and exit
948       --help=short        display options specific to this package
949       --help=recursive    display the short help of all the included packages
950   -V, --version           display version information and exit
951   -q, --quiet, --silent   do not print \`checking...' messages
952       --cache-file=FILE   cache test results in FILE [disabled]
953   -C, --config-cache      alias for \`--cache-file=config.cache'
954   -n, --no-create         do not create output files
955       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
956
957 _ACEOF
958
959   cat <<_ACEOF
960 Installation directories:
961   --prefix=PREFIX         install architecture-independent files in PREFIX
962                           [$ac_default_prefix]
963   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
964                           [PREFIX]
965
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
970
971 For better control, use the options below.
972
973 Fine tuning of the installation directories:
974   --bindir=DIR           user executables [EPREFIX/bin]
975   --sbindir=DIR          system admin executables [EPREFIX/sbin]
976   --libexecdir=DIR       program executables [EPREFIX/libexec]
977   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
978   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
979   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
980   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
981   --libdir=DIR           object code libraries [EPREFIX/lib]
982   --includedir=DIR       C header files [PREFIX/include]
983   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
984   --infodir=DIR          info documentation [PREFIX/info]
985   --mandir=DIR           man documentation [PREFIX/man]
986 _ACEOF
987
988   cat <<\_ACEOF
989
990 Program names:
991   --program-prefix=PREFIX            prepend PREFIX to installed program names
992   --program-suffix=SUFFIX            append SUFFIX to installed program names
993   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
994
995 System types:
996   --build=BUILD     configure for building on BUILD [guessed]
997   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
998   --target=TARGET   configure for building compilers for TARGET [HOST]
999 _ACEOF
1000 fi
1001
1002 if test -n "$ac_init_help"; then
1003
1004   cat <<\_ACEOF
1005
1006 Optional Features:
1007   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1008   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1009   --enable-debug          enable debugging no|yes|traditional [yes]
1010   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1011   --enable-syslog         enable syslog support [auto]
1012   --enable-proctitle      enable proctitle support [yes]
1013   --enable-ipv6           enable IPv6 support [auto]
1014   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1015
1016 SLAPD (Standalone LDAP Daemon) Options:
1017   --enable-slapd          enable building slapd [yes]
1018     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1019     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1020     --enable-cleartext    enable cleartext passwords [yes]
1021     --enable-crypt        enable crypt(3) passwords [no]
1022     --enable-lmpasswd     enable LAN Manager passwords [no]
1023     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1024     --enable-modules      enable dynamic module support [no]
1025     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1026     --enable-rlookups     enable reverse lookups of client hostnames [no]
1027     --enable-slapi        enable SLAPI support (experimental) [no]
1028     --enable-slp          enable SLPv2 support [no]
1029     --enable-wrappers     enable tcp wrapper support [no]
1030
1031 SLAPD Backend Options:
1032     --enable-backends     enable all available backends no|yes|mod
1033     --enable-bdb          enable Berkeley DB backend no|yes|mod [no]
1034     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1035     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1036     --enable-ldap         enable ldap backend no|yes|mod [no]
1037     --enable-meta         enable metadirectory backend no|yes|mod [no]
1038     --enable-monitor      enable monitor backend no|yes|mod [yes]
1039     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1040     --enable-null         enable null backend no|yes|mod [no]
1041     --enable-passwd       enable passwd backend no|yes|mod [no]
1042     --enable-perl         enable perl backend no|yes|mod [no]
1043     --enable-relay        enable relay backend no|yes|mod [yes]
1044     --enable-shell        enable shell backend no|yes|mod [no]
1045     --enable-sock         enable sock backend no|yes|mod [no]
1046     --enable-sql          enable sql backend no|yes|mod [no]
1047
1048 SLAPD Overlay Options:
1049     --enable-overlays     enable all available overlays no|yes|mod
1050     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1051     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1052     --enable-collect      Collect overlay no|yes|mod [no]
1053     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1054     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1055     --enable-deref        Dereference overlay no|yes|mod [no]
1056     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1057     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1058     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1059     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1060     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1061     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1062     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1063     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1064     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1065     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1066     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1067     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1068     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1069
1070 Library Generation & Linking Options
1071   --enable-static[=PKGS]
1072                           build static libraries [default=yes]
1073   --enable-shared[=PKGS]
1074                           build shared libraries [default=yes]
1075   --enable-fast-install[=PKGS]
1076                           optimize for fast installation [default=yes]
1077   --disable-dependency-tracking  speeds up one-time build
1078   --enable-dependency-tracking   do not reject slow dependency extractors
1079   --disable-libtool-lock  avoid locking (might break parallel builds)
1080
1081 Optional Packages:
1082   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1083   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1084   --with-subdir=DIR       change default subdirectory used for installs
1085   --with-cyrus-sasl       with Cyrus SASL support [auto]
1086   --with-fetch            with fetch(3) URL support [auto]
1087   --with-gssapi           with GSSAPI support [auto]
1088   --with-threads          with threads [auto]
1089   --with-tls              with TLS/SSL support auto|openssl|gnutls [auto]
1090   --with-yielding-select  with implicitly yielding select [auto]
1091   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1092   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1093   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1094   --with-pic              try to use only PIC/non-PIC objects [default=use
1095                           both]
1096   --with-tags[=TAGS]
1097                           include additional configurations [automatic]
1098
1099 See INSTALL file for further details.
1100
1101 Some influential environment variables:
1102   CC          C compiler command
1103   CFLAGS      C compiler flags
1104   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1105               nonstandard directory <lib dir>
1106   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1107               headers in a nonstandard directory <include dir>
1108   CPP         C preprocessor
1109
1110 Use these variables to override the choices made by `configure' or to help
1111 it to find libraries and programs with nonstandard names/locations.
1112
1113 _ACEOF
1114 fi
1115
1116 if test "$ac_init_help" = "recursive"; then
1117   # If there are subdirs, report their specific --help.
1118   ac_popdir=`pwd`
1119   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1120     test -d $ac_dir || continue
1121     ac_builddir=.
1122
1123 if test "$ac_dir" != .; then
1124   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1125   # A "../" for each directory in $ac_dir_suffix.
1126   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1127 else
1128   ac_dir_suffix= ac_top_builddir=
1129 fi
1130
1131 case $srcdir in
1132   .)  # No --srcdir option.  We are building in place.
1133     ac_srcdir=.
1134     if test -z "$ac_top_builddir"; then
1135        ac_top_srcdir=.
1136     else
1137        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1138     fi ;;
1139   [\\/]* | ?:[\\/]* )  # Absolute path.
1140     ac_srcdir=$srcdir$ac_dir_suffix;
1141     ac_top_srcdir=$srcdir ;;
1142   *) # Relative path.
1143     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1144     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1145 esac
1146
1147 # Do not use `cd foo && pwd` to compute absolute paths, because
1148 # the directories may not exist.
1149 case `pwd` in
1150 .) ac_abs_builddir="$ac_dir";;
1151 *)
1152   case "$ac_dir" in
1153   .) ac_abs_builddir=`pwd`;;
1154   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1155   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1156   esac;;
1157 esac
1158 case $ac_abs_builddir in
1159 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 *)
1161   case ${ac_top_builddir}. in
1162   .) ac_abs_top_builddir=$ac_abs_builddir;;
1163   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1164   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1165   esac;;
1166 esac
1167 case $ac_abs_builddir in
1168 .) ac_abs_srcdir=$ac_srcdir;;
1169 *)
1170   case $ac_srcdir in
1171   .) ac_abs_srcdir=$ac_abs_builddir;;
1172   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1173   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1174   esac;;
1175 esac
1176 case $ac_abs_builddir in
1177 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 *)
1179   case $ac_top_srcdir in
1180   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1181   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1182   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1183   esac;;
1184 esac
1185
1186     cd $ac_dir
1187     # Check for guested configure; otherwise get Cygnus style configure.
1188     if test -f $ac_srcdir/configure.gnu; then
1189       echo
1190       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1191     elif test -f $ac_srcdir/configure; then
1192       echo
1193       $SHELL $ac_srcdir/configure  --help=recursive
1194     elif test -f $ac_srcdir/configure.ac ||
1195            test -f $ac_srcdir/configure.in; then
1196       echo
1197       $ac_configure --help
1198     else
1199       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1200     fi
1201     cd $ac_popdir
1202   done
1203 fi
1204
1205 test -n "$ac_init_help" && exit 0
1206 if $ac_init_version; then
1207   cat <<\_ACEOF
1208
1209 Copyright (C) 2003 Free Software Foundation, Inc.
1210 This configure script is free software; the Free Software Foundation
1211 gives unlimited permission to copy, distribute and modify it.
1212
1213 Copyright 1998-2008 The OpenLDAP Foundation. All rights reserved.
1214 Restrictions apply, see COPYRIGHT and LICENSE files.
1215 _ACEOF
1216   exit 0
1217 fi
1218 exec 5>config.log
1219 cat >&5 <<_ACEOF
1220 This file contains any messages produced by compilers while
1221 running configure, to aid debugging if configure makes a mistake.
1222
1223 It was created by $as_me, which was
1224 generated by GNU Autoconf 2.59.  Invocation command line was
1225
1226   $ $0 $@
1227
1228 _ACEOF
1229 {
1230 cat <<_ASUNAME
1231 ## --------- ##
1232 ## Platform. ##
1233 ## --------- ##
1234
1235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1236 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1237 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1238 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1239 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1240
1241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1242 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1243
1244 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1245 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1247 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1248 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1249 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1250 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1251
1252 _ASUNAME
1253
1254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1255 for as_dir in $PATH
1256 do
1257   IFS=$as_save_IFS
1258   test -z "$as_dir" && as_dir=.
1259   echo "PATH: $as_dir"
1260 done
1261
1262 } >&5
1263
1264 cat >&5 <<_ACEOF
1265
1266
1267 ## ----------- ##
1268 ## Core tests. ##
1269 ## ----------- ##
1270
1271 _ACEOF
1272
1273
1274 # Keep a trace of the command line.
1275 # Strip out --no-create and --no-recursion so they do not pile up.
1276 # Strip out --silent because we don't want to record it for future runs.
1277 # Also quote any args containing shell meta-characters.
1278 # Make two passes to allow for proper duplicate-argument suppression.
1279 ac_configure_args=
1280 ac_configure_args0=
1281 ac_configure_args1=
1282 ac_sep=
1283 ac_must_keep_next=false
1284 for ac_pass in 1 2
1285 do
1286   for ac_arg
1287   do
1288     case $ac_arg in
1289     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1290     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291     | -silent | --silent | --silen | --sile | --sil)
1292       continue ;;
1293     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1295     esac
1296     case $ac_pass in
1297     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1298     2)
1299       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1300       if test $ac_must_keep_next = true; then
1301         ac_must_keep_next=false # Got value, back to normal.
1302       else
1303         case $ac_arg in
1304           *=* | --config-cache | -C | -disable-* | --disable-* \
1305           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1306           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1307           | -with-* | --with-* | -without-* | --without-* | --x)
1308             case "$ac_configure_args0 " in
1309               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1310             esac
1311             ;;
1312           -* ) ac_must_keep_next=true ;;
1313         esac
1314       fi
1315       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1316       # Get rid of the leading space.
1317       ac_sep=" "
1318       ;;
1319     esac
1320   done
1321 done
1322 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1323 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1324
1325 # When interrupted or exit'd, cleanup temporary files, and complete
1326 # config.log.  We remove comments because anyway the quotes in there
1327 # would cause problems or look ugly.
1328 # WARNING: Be sure not to use single quotes in there, as some shells,
1329 # such as our DU 5.0 friend, will then `close' the trap.
1330 trap 'exit_status=$?
1331   # Save into config.log some information that might help in debugging.
1332   {
1333     echo
1334
1335     cat <<\_ASBOX
1336 ## ---------------- ##
1337 ## Cache variables. ##
1338 ## ---------------- ##
1339 _ASBOX
1340     echo
1341     # The following way of writing the cache mishandles newlines in values,
1342 {
1343   (set) 2>&1 |
1344     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1345     *ac_space=\ *)
1346       sed -n \
1347         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1348           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1349       ;;
1350     *)
1351       sed -n \
1352         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1353       ;;
1354     esac;
1355 }
1356     echo
1357
1358     cat <<\_ASBOX
1359 ## ----------------- ##
1360 ## Output variables. ##
1361 ## ----------------- ##
1362 _ASBOX
1363     echo
1364     for ac_var in $ac_subst_vars
1365     do
1366       eval ac_val=$`echo $ac_var`
1367       echo "$ac_var='"'"'$ac_val'"'"'"
1368     done | sort
1369     echo
1370
1371     if test -n "$ac_subst_files"; then
1372       cat <<\_ASBOX
1373 ## ------------- ##
1374 ## Output files. ##
1375 ## ------------- ##
1376 _ASBOX
1377       echo
1378       for ac_var in $ac_subst_files
1379       do
1380         eval ac_val=$`echo $ac_var`
1381         echo "$ac_var='"'"'$ac_val'"'"'"
1382       done | sort
1383       echo
1384     fi
1385
1386     if test -s confdefs.h; then
1387       cat <<\_ASBOX
1388 ## ----------- ##
1389 ## confdefs.h. ##
1390 ## ----------- ##
1391 _ASBOX
1392       echo
1393       sed "/^$/d" confdefs.h | sort
1394       echo
1395     fi
1396     test "$ac_signal" != 0 &&
1397       echo "$as_me: caught signal $ac_signal"
1398     echo "$as_me: exit $exit_status"
1399   } >&5
1400   rm -f core *.core &&
1401   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1402     exit $exit_status
1403      ' 0
1404 for ac_signal in 1 2 13 15; do
1405   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1406 done
1407 ac_signal=0
1408
1409 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1410 rm -rf conftest* confdefs.h
1411 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1412 echo >confdefs.h
1413
1414 # Predefined preprocessor variables.
1415
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_NAME "$PACKAGE_NAME"
1418 _ACEOF
1419
1420
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1423 _ACEOF
1424
1425
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1428 _ACEOF
1429
1430
1431 cat >>confdefs.h <<_ACEOF
1432 #define PACKAGE_STRING "$PACKAGE_STRING"
1433 _ACEOF
1434
1435
1436 cat >>confdefs.h <<_ACEOF
1437 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1438 _ACEOF
1439
1440
1441 # Let the site file select an alternate cache file if it wants to.
1442 # Prefer explicitly selected file to automatically selected ones.
1443 if test -z "$CONFIG_SITE"; then
1444   if test "x$prefix" != xNONE; then
1445     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1446   else
1447     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1448   fi
1449 fi
1450 for ac_site_file in $CONFIG_SITE; do
1451   if test -r "$ac_site_file"; then
1452     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1453 echo "$as_me: loading site script $ac_site_file" >&6;}
1454     sed 's/^/| /' "$ac_site_file" >&5
1455     . "$ac_site_file"
1456   fi
1457 done
1458
1459
1460 # Check that the precious variables saved in the cache have kept the same
1461 # value.
1462 ac_cache_corrupted=false
1463 for ac_var in `(set) 2>&1 |
1464                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1465   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466   eval ac_new_set=\$ac_env_${ac_var}_set
1467   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468   eval ac_new_val="\$ac_env_${ac_var}_value"
1469   case $ac_old_set,$ac_new_set in
1470     set,)
1471       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473       ac_cache_corrupted=: ;;
1474     ,set)
1475       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477       ac_cache_corrupted=: ;;
1478     ,);;
1479     *)
1480       if test "x$ac_old_val" != "x$ac_new_val"; then
1481         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1482 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1483         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1484 echo "$as_me:   former value:  $ac_old_val" >&2;}
1485         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1486 echo "$as_me:   current value: $ac_new_val" >&2;}
1487         ac_cache_corrupted=:
1488       fi;;
1489   esac
1490   # Pass precious variables to config.status.
1491   if test "$ac_new_set" = set; then
1492     case $ac_new_val in
1493     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495     *) ac_arg=$ac_var=$ac_new_val ;;
1496     esac
1497     case " $ac_configure_args " in
1498       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1499       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500     esac
1501   fi
1502 done
1503 if $ac_cache_corrupted; then
1504   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508    { (exit 1); exit 1; }; }
1509 fi
1510
1511 ac_ext=c
1512 ac_cpp='$CPP $CPPFLAGS'
1513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559 ac_aux_dir=
1560 for ac_dir in build $srcdir/build; do
1561   if test -f $ac_dir/install-sh; then
1562     ac_aux_dir=$ac_dir
1563     ac_install_sh="$ac_aux_dir/install-sh -c"
1564     break
1565   elif test -f $ac_dir/install.sh; then
1566     ac_aux_dir=$ac_dir
1567     ac_install_sh="$ac_aux_dir/install.sh -c"
1568     break
1569   elif test -f $ac_dir/shtool; then
1570     ac_aux_dir=$ac_dir
1571     ac_install_sh="$ac_aux_dir/shtool install -c"
1572     break
1573   fi
1574 done
1575 if test -z "$ac_aux_dir"; then
1576   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1577 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1578    { (exit 1); exit 1; }; }
1579 fi
1580 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1581 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1582 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1583
1584 eval `$ac_aux_dir/version.sh`
1585 if test -z "$OL_STRING"; then
1586         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1587 echo "$as_me: error: could not determine version" >&2;}
1588    { (exit 1); exit 1; }; }
1589 fi
1590
1591 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1592         ac_cv_shtool="$ac_aux_dir/shtool"
1593 else
1594         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1595 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1596    { (exit 1); exit 1; }; }
1597 fi
1598
1599 SHTOOL="$ac_cv_shtool"
1600
1601 TB="" TN=""
1602 if test -t 1; then
1603         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1604         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1605 fi
1606
1607 OPENLDAP_CVS=""
1608 if test -d $ac_aux_dir/CVS; then
1609         OPENLDAP_CVS="(from CVS sources) "
1610 fi
1611
1612 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1613
1614 # Make sure we can run config.sub.
1615 $ac_config_sub sun4 >/dev/null 2>&1 ||
1616   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1617 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1618    { (exit 1); exit 1; }; }
1619
1620 echo "$as_me:$LINENO: checking build system type" >&5
1621 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1622 if test "${ac_cv_build+set}" = set; then
1623   echo $ECHO_N "(cached) $ECHO_C" >&6
1624 else
1625   ac_cv_build_alias=$build_alias
1626 test -z "$ac_cv_build_alias" &&
1627   ac_cv_build_alias=`$ac_config_guess`
1628 test -z "$ac_cv_build_alias" &&
1629   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1630 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1631    { (exit 1); exit 1; }; }
1632 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1633   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1634 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1635    { (exit 1); exit 1; }; }
1636
1637 fi
1638 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1639 echo "${ECHO_T}$ac_cv_build" >&6
1640 build=$ac_cv_build
1641 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1642 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1643 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1644
1645
1646 echo "$as_me:$LINENO: checking host system type" >&5
1647 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1648 if test "${ac_cv_host+set}" = set; then
1649   echo $ECHO_N "(cached) $ECHO_C" >&6
1650 else
1651   ac_cv_host_alias=$host_alias
1652 test -z "$ac_cv_host_alias" &&
1653   ac_cv_host_alias=$ac_cv_build_alias
1654 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1655   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1656 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1657    { (exit 1); exit 1; }; }
1658
1659 fi
1660 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1661 echo "${ECHO_T}$ac_cv_host" >&6
1662 host=$ac_cv_host
1663 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1664 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1665 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1666
1667
1668 echo "$as_me:$LINENO: checking target system type" >&5
1669 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1670 if test "${ac_cv_target+set}" = set; then
1671   echo $ECHO_N "(cached) $ECHO_C" >&6
1672 else
1673   ac_cv_target_alias=$target_alias
1674 test "x$ac_cv_target_alias" = "x" &&
1675   ac_cv_target_alias=$ac_cv_host_alias
1676 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1677   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1678 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1679    { (exit 1); exit 1; }; }
1680
1681 fi
1682 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1683 echo "${ECHO_T}$ac_cv_target" >&6
1684 target=$ac_cv_target
1685 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1686 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1687 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1688
1689
1690 # The aliases save the names the user supplied, while $host etc.
1691 # will get canonicalized.
1692 test -n "$target_alias" &&
1693   test "$program_prefix$program_suffix$program_transform_name" = \
1694     NONENONEs,x,x, &&
1695   program_prefix=${target_alias}-
1696
1697 am__api_version="1.9"
1698 # Find a good install program.  We prefer a C program (faster),
1699 # so one script is as good as another.  But avoid the broken or
1700 # incompatible versions:
1701 # SysV /etc/install, /usr/sbin/install
1702 # SunOS /usr/etc/install
1703 # IRIX /sbin/install
1704 # AIX /bin/install
1705 # AmigaOS /C/install, which installs bootblocks on floppy discs
1706 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1707 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1708 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1709 # OS/2's system install, which has a completely different semantic
1710 # ./install, which can be erroneously created by make from ./install.sh.
1711 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1712 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1713 if test -z "$INSTALL"; then
1714 if test "${ac_cv_path_install+set}" = set; then
1715   echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 for as_dir in $PATH
1719 do
1720   IFS=$as_save_IFS
1721   test -z "$as_dir" && as_dir=.
1722   # Account for people who put trailing slashes in PATH elements.
1723 case $as_dir/ in
1724   ./ | .// | /cC/* | \
1725   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1726   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1727   /usr/ucb/* ) ;;
1728   *)
1729     # OSF1 and SCO ODT 3.0 have their own names for install.
1730     # Don't use installbsd from OSF since it installs stuff as root
1731     # by default.
1732     for ac_prog in ginstall scoinst install; do
1733       for ac_exec_ext in '' $ac_executable_extensions; do
1734         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1735           if test $ac_prog = install &&
1736             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1737             # AIX install.  It has an incompatible calling convention.
1738             :
1739           elif test $ac_prog = install &&
1740             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1741             # program-specific install script used by HP pwplus--don't use.
1742             :
1743           else
1744             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1745             break 3
1746           fi
1747         fi
1748       done
1749     done
1750     ;;
1751 esac
1752 done
1753
1754
1755 fi
1756   if test "${ac_cv_path_install+set}" = set; then
1757     INSTALL=$ac_cv_path_install
1758   else
1759     # As a last resort, use the slow shell script.  We don't cache a
1760     # path for INSTALL within a source directory, because that will
1761     # break other packages using the cache if that directory is
1762     # removed, or if the path is relative.
1763     INSTALL=$ac_install_sh
1764   fi
1765 fi
1766 echo "$as_me:$LINENO: result: $INSTALL" >&5
1767 echo "${ECHO_T}$INSTALL" >&6
1768
1769 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1770 # It thinks the first close brace ends the variable substitution.
1771 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1772
1773 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1774
1775 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1776
1777 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1778 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1779 # Just in case
1780 sleep 1
1781 echo timestamp > conftest.file
1782 # Do `set' in a subshell so we don't clobber the current shell's
1783 # arguments.  Must try -L first in case configure is actually a
1784 # symlink; some systems play weird games with the mod time of symlinks
1785 # (eg FreeBSD returns the mod time of the symlink's containing
1786 # directory).
1787 if (
1788    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1789    if test "$*" = "X"; then
1790       # -L didn't work.
1791       set X `ls -t $srcdir/configure conftest.file`
1792    fi
1793    rm -f conftest.file
1794    if test "$*" != "X $srcdir/configure conftest.file" \
1795       && test "$*" != "X conftest.file $srcdir/configure"; then
1796
1797       # If neither matched, then we have a broken ls.  This can happen
1798       # if, for instance, CONFIG_SHELL is bash and it inherits a
1799       # broken ls alias from the environment.  This has actually
1800       # happened.  Such a system could not be considered "sane".
1801       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1802 alias in your environment" >&5
1803 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1804 alias in your environment" >&2;}
1805    { (exit 1); exit 1; }; }
1806    fi
1807
1808    test "$2" = conftest.file
1809    )
1810 then
1811    # Ok.
1812    :
1813 else
1814    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1815 Check your system clock" >&5
1816 echo "$as_me: error: newly created file is older than distributed files!
1817 Check your system clock" >&2;}
1818    { (exit 1); exit 1; }; }
1819 fi
1820 echo "$as_me:$LINENO: result: yes" >&5
1821 echo "${ECHO_T}yes" >&6
1822 test "$program_prefix" != NONE &&
1823   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1824 # Use a double $ so make ignores it.
1825 test "$program_suffix" != NONE &&
1826   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1827 # Double any \ or $.  echo might interpret backslashes.
1828 # By default was `s,x,x', remove it if useless.
1829 cat <<\_ACEOF >conftest.sed
1830 s/[\\$]/&&/g;s/;s,x,x,$//
1831 _ACEOF
1832 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1833 rm conftest.sed
1834
1835 # expand $ac_aux_dir to an absolute path
1836 am_aux_dir=`cd $ac_aux_dir && pwd`
1837
1838 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1839 # Use eval to expand $SHELL
1840 if eval "$MISSING --run true"; then
1841   am_missing_run="$MISSING --run "
1842 else
1843   am_missing_run=
1844   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1845 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1846 fi
1847
1848 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1849   # We used to keeping the `.' as first argument, in order to
1850   # allow $(mkdir_p) to be used without argument.  As in
1851   #   $(mkdir_p) $(somedir)
1852   # where $(somedir) is conditionally defined.  However this is wrong
1853   # for two reasons:
1854   #  1. if the package is installed by a user who cannot write `.'
1855   #     make install will fail,
1856   #  2. the above comment should most certainly read
1857   #     $(mkdir_p) $(DESTDIR)$(somedir)
1858   #     so it does not work when $(somedir) is undefined and
1859   #     $(DESTDIR) is not.
1860   #  To support the latter case, we have to write
1861   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1862   #  so the `.' trick is pointless.
1863   mkdir_p='mkdir -p --'
1864 else
1865   # On NextStep and OpenStep, the `mkdir' command does not
1866   # recognize any option.  It will interpret all options as
1867   # directories to create, and then abort because `.' already
1868   # exists.
1869   for d in ./-p ./--version;
1870   do
1871     test -d $d && rmdir $d
1872   done
1873   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1874   if test -f "$ac_aux_dir/mkinstalldirs"; then
1875     mkdir_p='$(mkinstalldirs)'
1876   else
1877     mkdir_p='$(install_sh) -d'
1878   fi
1879 fi
1880
1881 for ac_prog in gawk mawk nawk awk
1882 do
1883   # Extract the first word of "$ac_prog", so it can be a program name with args.
1884 set dummy $ac_prog; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_AWK+set}" = set; then
1888   echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890   if test -n "$AWK"; then
1891   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1895 do
1896   IFS=$as_save_IFS
1897   test -z "$as_dir" && as_dir=.
1898   for ac_exec_ext in '' $ac_executable_extensions; do
1899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900     ac_cv_prog_AWK="$ac_prog"
1901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902     break 2
1903   fi
1904 done
1905 done
1906
1907 fi
1908 fi
1909 AWK=$ac_cv_prog_AWK
1910 if test -n "$AWK"; then
1911   echo "$as_me:$LINENO: result: $AWK" >&5
1912 echo "${ECHO_T}$AWK" >&6
1913 else
1914   echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1916 fi
1917
1918   test -n "$AWK" && break
1919 done
1920
1921 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1922 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1923 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1924 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1925   echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927   cat >conftest.make <<\_ACEOF
1928 all:
1929         @echo 'ac_maketemp="$(MAKE)"'
1930 _ACEOF
1931 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1932 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1933 if test -n "$ac_maketemp"; then
1934   eval ac_cv_prog_make_${ac_make}_set=yes
1935 else
1936   eval ac_cv_prog_make_${ac_make}_set=no
1937 fi
1938 rm -f conftest.make
1939 fi
1940 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1941   echo "$as_me:$LINENO: result: yes" >&5
1942 echo "${ECHO_T}yes" >&6
1943   SET_MAKE=
1944 else
1945   echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947   SET_MAKE="MAKE=${MAKE-make}"
1948 fi
1949
1950 rm -rf .tst 2>/dev/null
1951 mkdir .tst 2>/dev/null
1952 if test -d .tst; then
1953   am__leading_dot=.
1954 else
1955   am__leading_dot=_
1956 fi
1957 rmdir .tst 2>/dev/null
1958
1959 # test to see if srcdir already configured
1960 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1961    test -f $srcdir/config.status; then
1962   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1963 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1964    { (exit 1); exit 1; }; }
1965 fi
1966
1967 # test whether we have cygpath
1968 if test -z "$CYGPATH_W"; then
1969   if (cygpath --version) >/dev/null 2>/dev/null; then
1970     CYGPATH_W='cygpath -w'
1971   else
1972     CYGPATH_W=echo
1973   fi
1974 fi
1975
1976
1977 # Define the identity of the package.
1978  PACKAGE=$OL_PACKAGE
1979  VERSION=$OL_VERSION
1980
1981
1982 # Some tools Automake needs.
1983
1984 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1985
1986
1987 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1988
1989
1990 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1991
1992
1993 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1994
1995
1996 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1997
1998 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1999
2000 # Installed binaries are usually stripped using `strip' when the user
2001 # run `make install-strip'.  However `strip' might not be the right
2002 # tool to use in cross-compilation environments, therefore Automake
2003 # will honor the `STRIP' environment variable to overrule this program.
2004 if test "$cross_compiling" != no; then
2005   if test -n "$ac_tool_prefix"; then
2006   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}strip; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_STRIP+set}" = set; then
2011   echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013   if test -n "$STRIP"; then
2014   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019   IFS=$as_save_IFS
2020   test -z "$as_dir" && as_dir=.
2021   for ac_exec_ext in '' $ac_executable_extensions; do
2022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025     break 2
2026   fi
2027 done
2028 done
2029
2030 fi
2031 fi
2032 STRIP=$ac_cv_prog_STRIP
2033 if test -n "$STRIP"; then
2034   echo "$as_me:$LINENO: result: $STRIP" >&5
2035 echo "${ECHO_T}$STRIP" >&6
2036 else
2037   echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2039 fi
2040
2041 fi
2042 if test -z "$ac_cv_prog_STRIP"; then
2043   ac_ct_STRIP=$STRIP
2044   # Extract the first word of "strip", so it can be a program name with args.
2045 set dummy strip; ac_word=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2049   echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051   if test -n "$ac_ct_STRIP"; then
2052   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057   IFS=$as_save_IFS
2058   test -z "$as_dir" && as_dir=.
2059   for ac_exec_ext in '' $ac_executable_extensions; do
2060   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061     ac_cv_prog_ac_ct_STRIP="strip"
2062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063     break 2
2064   fi
2065 done
2066 done
2067
2068   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2069 fi
2070 fi
2071 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2072 if test -n "$ac_ct_STRIP"; then
2073   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2074 echo "${ECHO_T}$ac_ct_STRIP" >&6
2075 else
2076   echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2078 fi
2079
2080   STRIP=$ac_ct_STRIP
2081 else
2082   STRIP="$ac_cv_prog_STRIP"
2083 fi
2084
2085 fi
2086 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2087
2088 # We need awk for the "check" target.  The system "awk" is bad on
2089 # some platforms.
2090 # Always define AMTAR for backward compatibility.
2091
2092 AMTAR=${AMTAR-"${am_missing_run}tar"}
2093
2094 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2095
2096
2097
2098
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define OPENLDAP_PACKAGE "$PACKAGE"
2102 _ACEOF
2103
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define OPENLDAP_VERSION "$VERSION"
2107 _ACEOF
2108
2109
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define LDAP_VENDOR_VERSION $OL_API_INC
2113 _ACEOF
2114
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2118 _ACEOF
2119
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2123 _ACEOF
2124
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2128 _ACEOF
2129
2130
2131 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2132
2133 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2134
2135 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2136
2137
2138
2139
2140
2141
2142
2143           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2144
2145           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2146
2147           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2148
2149
2150 echo "$as_me:$LINENO: checking configure arguments" >&5
2151 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2152
2153
2154 top_builddir=`pwd`
2155
2156 ldap_subdir="/openldap"
2157
2158
2159 # Check whether --with-subdir or --without-subdir was given.
2160 if test "${with_subdir+set}" = set; then
2161   withval="$with_subdir"
2162   case "$withval" in
2163         no) ldap_subdir=""
2164                 ;;
2165         yes)
2166                 ;;
2167         /*|\\*)
2168                 ldap_subdir="$withval"
2169                 ;;
2170         *)
2171                 ldap_subdir="/$withval"
2172                 ;;
2173 esac
2174
2175 fi;
2176
2177 # OpenLDAP --enable-debug
2178
2179         # Check whether --enable-debug or --disable-debug was given.
2180 if test "${enable_debug+set}" = set; then
2181   enableval="$enable_debug"
2182
2183         ol_arg=invalid
2184         for ol_val in no yes traditional ; do
2185                 if test "$enableval" = "$ol_val" ; then
2186                         ol_arg="$ol_val"
2187                 fi
2188         done
2189         if test "$ol_arg" = "invalid" ; then
2190                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2191 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2192    { (exit 1); exit 1; }; }
2193         fi
2194         ol_enable_debug="$ol_arg"
2195
2196 else
2197         ol_enable_debug=yes
2198 fi;
2199 # end --enable-debug
2200 # OpenLDAP --enable-dynamic
2201
2202         # Check whether --enable-dynamic or --disable-dynamic was given.
2203 if test "${enable_dynamic+set}" = set; then
2204   enableval="$enable_dynamic"
2205
2206         ol_arg=invalid
2207         for ol_val in auto yes no ; do
2208                 if test "$enableval" = "$ol_val" ; then
2209                         ol_arg="$ol_val"
2210                 fi
2211         done
2212         if test "$ol_arg" = "invalid" ; then
2213                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2214 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2215    { (exit 1); exit 1; }; }
2216         fi
2217         ol_enable_dynamic="$ol_arg"
2218
2219 else
2220         ol_enable_dynamic=no
2221 fi;
2222 # end --enable-dynamic
2223 # OpenLDAP --enable-syslog
2224
2225         # Check whether --enable-syslog or --disable-syslog was given.
2226 if test "${enable_syslog+set}" = set; then
2227   enableval="$enable_syslog"
2228
2229         ol_arg=invalid
2230         for ol_val in auto yes no ; do
2231                 if test "$enableval" = "$ol_val" ; then
2232                         ol_arg="$ol_val"
2233                 fi
2234         done
2235         if test "$ol_arg" = "invalid" ; then
2236                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2237 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2238    { (exit 1); exit 1; }; }
2239         fi
2240         ol_enable_syslog="$ol_arg"
2241
2242 else
2243         ol_enable_syslog=auto
2244 fi;
2245 # end --enable-syslog
2246 # OpenLDAP --enable-proctitle
2247
2248         # Check whether --enable-proctitle or --disable-proctitle was given.
2249 if test "${enable_proctitle+set}" = set; then
2250   enableval="$enable_proctitle"
2251
2252         ol_arg=invalid
2253         for ol_val in auto yes no ; do
2254                 if test "$enableval" = "$ol_val" ; then
2255                         ol_arg="$ol_val"
2256                 fi
2257         done
2258         if test "$ol_arg" = "invalid" ; then
2259                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2260 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2261    { (exit 1); exit 1; }; }
2262         fi
2263         ol_enable_proctitle="$ol_arg"
2264
2265 else
2266         ol_enable_proctitle=yes
2267 fi;
2268 # end --enable-proctitle
2269 ol_enable_referrals=${ol_enable_referrals-no}
2270 # OpenLDAP --enable-ipv6
2271
2272         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2273 if test "${enable_ipv6+set}" = set; then
2274   enableval="$enable_ipv6"
2275
2276         ol_arg=invalid
2277         for ol_val in auto yes no ; do
2278                 if test "$enableval" = "$ol_val" ; then
2279                         ol_arg="$ol_val"
2280                 fi
2281         done
2282         if test "$ol_arg" = "invalid" ; then
2283                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2284 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2285    { (exit 1); exit 1; }; }
2286         fi
2287         ol_enable_ipv6="$ol_arg"
2288
2289 else
2290         ol_enable_ipv6=auto
2291 fi;
2292 # end --enable-ipv6
2293 # OpenLDAP --enable-local
2294
2295         # Check whether --enable-local or --disable-local was given.
2296 if test "${enable_local+set}" = set; then
2297   enableval="$enable_local"
2298
2299         ol_arg=invalid
2300         for ol_val in auto yes no ; do
2301                 if test "$enableval" = "$ol_val" ; then
2302                         ol_arg="$ol_val"
2303                 fi
2304         done
2305         if test "$ol_arg" = "invalid" ; then
2306                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2307 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2308    { (exit 1); exit 1; }; }
2309         fi
2310         ol_enable_local="$ol_arg"
2311
2312 else
2313         ol_enable_local=auto
2314 fi;
2315 # end --enable-local
2316
2317 # OpenLDAP --with-cyrus_sasl
2318
2319 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2320 if test "${with_cyrus_sasl+set}" = set; then
2321   withval="$with_cyrus_sasl"
2322
2323         ol_arg=invalid
2324         for ol_val in auto yes no  ; do
2325                 if test "$withval" = "$ol_val" ; then
2326                         ol_arg="$ol_val"
2327                 fi
2328         done
2329         if test "$ol_arg" = "invalid" ; then
2330                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2331 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2332    { (exit 1); exit 1; }; }
2333         fi
2334         ol_with_cyrus_sasl="$ol_arg"
2335
2336 else
2337         ol_with_cyrus_sasl="auto"
2338 fi; # end --with-cyrus_sasl
2339
2340 # OpenLDAP --with-fetch
2341
2342 # Check whether --with-fetch or --without-fetch was given.
2343 if test "${with_fetch+set}" = set; then
2344   withval="$with_fetch"
2345
2346         ol_arg=invalid
2347         for ol_val in auto yes no  ; do
2348                 if test "$withval" = "$ol_val" ; then
2349                         ol_arg="$ol_val"
2350                 fi
2351         done
2352         if test "$ol_arg" = "invalid" ; then
2353                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2354 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2355    { (exit 1); exit 1; }; }
2356         fi
2357         ol_with_fetch="$ol_arg"
2358
2359 else
2360         ol_with_fetch="auto"
2361 fi; # end --with-fetch
2362
2363 # OpenLDAP --with-gssapi
2364
2365 # Check whether --with-gssapi or --without-gssapi was given.
2366 if test "${with_gssapi+set}" = set; then
2367   withval="$with_gssapi"
2368
2369         ol_arg=invalid
2370         for ol_val in auto yes no  ; do
2371                 if test "$withval" = "$ol_val" ; then
2372                         ol_arg="$ol_val"
2373                 fi
2374         done
2375         if test "$ol_arg" = "invalid" ; then
2376                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-gssapi" >&5
2377 echo "$as_me: error: bad value $withval for --with-gssapi" >&2;}
2378    { (exit 1); exit 1; }; }
2379         fi
2380         ol_with_gssapi="$ol_arg"
2381
2382 else
2383         ol_with_gssapi="auto"
2384 fi; # end --with-gssapi
2385
2386 # OpenLDAP --with-threads
2387
2388 # Check whether --with-threads or --without-threads was given.
2389 if test "${with_threads+set}" = set; then
2390   withval="$with_threads"
2391
2392         ol_arg=invalid
2393         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2394                 if test "$withval" = "$ol_val" ; then
2395                         ol_arg="$ol_val"
2396                 fi
2397         done
2398         if test "$ol_arg" = "invalid" ; then
2399                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2400 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2401    { (exit 1); exit 1; }; }
2402         fi
2403         ol_with_threads="$ol_arg"
2404
2405 else
2406         ol_with_threads="auto"
2407 fi; # end --with-threads
2408
2409 # OpenLDAP --with-tls
2410
2411 # Check whether --with-tls or --without-tls was given.
2412 if test "${with_tls+set}" = set; then
2413   withval="$with_tls"
2414
2415         ol_arg=invalid
2416         for ol_val in auto openssl gnutls yes no  ; do
2417                 if test "$withval" = "$ol_val" ; then
2418                         ol_arg="$ol_val"
2419                 fi
2420         done
2421         if test "$ol_arg" = "invalid" ; then
2422                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2423 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2424    { (exit 1); exit 1; }; }
2425         fi
2426         ol_with_tls="$ol_arg"
2427
2428 else
2429         ol_with_tls="auto"
2430 fi; # end --with-tls
2431
2432 # OpenLDAP --with-yielding_select
2433
2434 # Check whether --with-yielding_select or --without-yielding_select was given.
2435 if test "${with_yielding_select+set}" = set; then
2436   withval="$with_yielding_select"
2437
2438         ol_arg=invalid
2439         for ol_val in auto yes no manual  ; do
2440                 if test "$withval" = "$ol_val" ; then
2441                         ol_arg="$ol_val"
2442                 fi
2443         done
2444         if test "$ol_arg" = "invalid" ; then
2445                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2446 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2447    { (exit 1); exit 1; }; }
2448         fi
2449         ol_with_yielding_select="$ol_arg"
2450
2451 else
2452         ol_with_yielding_select="auto"
2453 fi; # end --with-yielding_select
2454
2455 # OpenLDAP --with-mp
2456
2457 # Check whether --with-mp or --without-mp was given.
2458 if test "${with_mp+set}" = set; then
2459   withval="$with_mp"
2460
2461         ol_arg=invalid
2462         for ol_val in auto longlong long bignum gmp yes no ; do
2463                 if test "$withval" = "$ol_val" ; then
2464                         ol_arg="$ol_val"
2465                 fi
2466         done
2467         if test "$ol_arg" = "invalid" ; then
2468                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2469 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2470    { (exit 1); exit 1; }; }
2471         fi
2472         ol_with_mp="$ol_arg"
2473
2474 else
2475         ol_with_mp="auto"
2476 fi; # end --with-mp
2477
2478 # OpenLDAP --with-odbc
2479
2480 # Check whether --with-odbc or --without-odbc was given.
2481 if test "${with_odbc+set}" = set; then
2482   withval="$with_odbc"
2483
2484         ol_arg=invalid
2485         for ol_val in auto iodbc unixodbc odbc32  ; do
2486                 if test "$withval" = "$ol_val" ; then
2487                         ol_arg="$ol_val"
2488                 fi
2489         done
2490         if test "$ol_arg" = "invalid" ; then
2491                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2492 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2493    { (exit 1); exit 1; }; }
2494         fi
2495         ol_with_odbc="$ol_arg"
2496
2497 else
2498         ol_with_odbc="auto"
2499 fi; # end --with-odbc
2500
2501
2502
2503 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2504 if test "${enable_xxslapdoptions+set}" = set; then
2505   enableval="$enable_xxslapdoptions"
2506
2507 fi;
2508 # OpenLDAP --enable-slapd
2509
2510         # Check whether --enable-slapd or --disable-slapd was given.
2511 if test "${enable_slapd+set}" = set; then
2512   enableval="$enable_slapd"
2513
2514         ol_arg=invalid
2515         for ol_val in auto yes no ; do
2516                 if test "$enableval" = "$ol_val" ; then
2517                         ol_arg="$ol_val"
2518                 fi
2519         done
2520         if test "$ol_arg" = "invalid" ; then
2521                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2522 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2523    { (exit 1); exit 1; }; }
2524         fi
2525         ol_enable_slapd="$ol_arg"
2526
2527 else
2528         ol_enable_slapd=yes
2529 fi;
2530 # end --enable-slapd
2531 # OpenLDAP --enable-dynacl
2532
2533         # Check whether --enable-dynacl or --disable-dynacl was given.
2534 if test "${enable_dynacl+set}" = set; then
2535   enableval="$enable_dynacl"
2536
2537         ol_arg=invalid
2538         for ol_val in auto yes no ; do
2539                 if test "$enableval" = "$ol_val" ; then
2540                         ol_arg="$ol_val"
2541                 fi
2542         done
2543         if test "$ol_arg" = "invalid" ; then
2544                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2545 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2546    { (exit 1); exit 1; }; }
2547         fi
2548         ol_enable_dynacl="$ol_arg"
2549
2550 else
2551         ol_enable_dynacl=no
2552 fi;
2553 # end --enable-dynacl
2554 # OpenLDAP --enable-aci
2555
2556         # Check whether --enable-aci or --disable-aci was given.
2557 if test "${enable_aci+set}" = set; then
2558   enableval="$enable_aci"
2559
2560         ol_arg=invalid
2561         for ol_val in no yes mod ; do
2562                 if test "$enableval" = "$ol_val" ; then
2563                         ol_arg="$ol_val"
2564                 fi
2565         done
2566         if test "$ol_arg" = "invalid" ; then
2567                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2568 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2569    { (exit 1); exit 1; }; }
2570         fi
2571         ol_enable_aci="$ol_arg"
2572
2573 else
2574         ol_enable_aci=no
2575 fi;
2576 # end --enable-aci
2577 # OpenLDAP --enable-cleartext
2578
2579         # Check whether --enable-cleartext or --disable-cleartext was given.
2580 if test "${enable_cleartext+set}" = set; then
2581   enableval="$enable_cleartext"
2582
2583         ol_arg=invalid
2584         for ol_val in auto yes no ; do
2585                 if test "$enableval" = "$ol_val" ; then
2586                         ol_arg="$ol_val"
2587                 fi
2588         done
2589         if test "$ol_arg" = "invalid" ; then
2590                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2591 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2592    { (exit 1); exit 1; }; }
2593         fi
2594         ol_enable_cleartext="$ol_arg"
2595
2596 else
2597         ol_enable_cleartext=yes
2598 fi;
2599 # end --enable-cleartext
2600 # OpenLDAP --enable-crypt
2601
2602         # Check whether --enable-crypt or --disable-crypt was given.
2603 if test "${enable_crypt+set}" = set; then
2604   enableval="$enable_crypt"
2605
2606         ol_arg=invalid
2607         for ol_val in auto yes no ; do
2608                 if test "$enableval" = "$ol_val" ; then
2609                         ol_arg="$ol_val"
2610                 fi
2611         done
2612         if test "$ol_arg" = "invalid" ; then
2613                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2614 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2615    { (exit 1); exit 1; }; }
2616         fi
2617         ol_enable_crypt="$ol_arg"
2618
2619 else
2620         ol_enable_crypt=no
2621 fi;
2622 # end --enable-crypt
2623 # OpenLDAP --enable-lmpasswd
2624
2625         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2626 if test "${enable_lmpasswd+set}" = set; then
2627   enableval="$enable_lmpasswd"
2628
2629         ol_arg=invalid
2630         for ol_val in auto yes no ; do
2631                 if test "$enableval" = "$ol_val" ; then
2632                         ol_arg="$ol_val"
2633                 fi
2634         done
2635         if test "$ol_arg" = "invalid" ; then
2636                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2637 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2638    { (exit 1); exit 1; }; }
2639         fi
2640         ol_enable_lmpasswd="$ol_arg"
2641
2642 else
2643         ol_enable_lmpasswd=no
2644 fi;
2645 # end --enable-lmpasswd
2646 # OpenLDAP --enable-spasswd
2647
2648         # Check whether --enable-spasswd or --disable-spasswd was given.
2649 if test "${enable_spasswd+set}" = set; then
2650   enableval="$enable_spasswd"
2651
2652         ol_arg=invalid
2653         for ol_val in auto yes no ; do
2654                 if test "$enableval" = "$ol_val" ; then
2655                         ol_arg="$ol_val"
2656                 fi
2657         done
2658         if test "$ol_arg" = "invalid" ; then
2659                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2660 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2661    { (exit 1); exit 1; }; }
2662         fi
2663         ol_enable_spasswd="$ol_arg"
2664
2665 else
2666         ol_enable_spasswd=no
2667 fi;
2668 # end --enable-spasswd
2669 # OpenLDAP --enable-modules
2670
2671         # Check whether --enable-modules or --disable-modules was given.
2672 if test "${enable_modules+set}" = set; then
2673   enableval="$enable_modules"
2674
2675         ol_arg=invalid
2676         for ol_val in auto yes no ; do
2677                 if test "$enableval" = "$ol_val" ; then
2678                         ol_arg="$ol_val"
2679                 fi
2680         done
2681         if test "$ol_arg" = "invalid" ; then
2682                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2683 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2684    { (exit 1); exit 1; }; }
2685         fi
2686         ol_enable_modules="$ol_arg"
2687
2688 else
2689         ol_enable_modules=no
2690 fi;
2691 # end --enable-modules
2692 # OpenLDAP --enable-rewrite
2693
2694         # Check whether --enable-rewrite or --disable-rewrite was given.
2695 if test "${enable_rewrite+set}" = set; then
2696   enableval="$enable_rewrite"
2697
2698         ol_arg=invalid
2699         for ol_val in auto yes no ; do
2700                 if test "$enableval" = "$ol_val" ; then
2701                         ol_arg="$ol_val"
2702                 fi
2703         done
2704         if test "$ol_arg" = "invalid" ; then
2705                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2706 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2707    { (exit 1); exit 1; }; }
2708         fi
2709         ol_enable_rewrite="$ol_arg"
2710
2711 else
2712         ol_enable_rewrite=auto
2713 fi;
2714 # end --enable-rewrite
2715 # OpenLDAP --enable-rlookups
2716
2717         # Check whether --enable-rlookups or --disable-rlookups was given.
2718 if test "${enable_rlookups+set}" = set; then
2719   enableval="$enable_rlookups"
2720
2721         ol_arg=invalid
2722         for ol_val in auto yes no ; do
2723                 if test "$enableval" = "$ol_val" ; then
2724                         ol_arg="$ol_val"
2725                 fi
2726         done
2727         if test "$ol_arg" = "invalid" ; then
2728                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2729 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2730    { (exit 1); exit 1; }; }
2731         fi
2732         ol_enable_rlookups="$ol_arg"
2733
2734 else
2735         ol_enable_rlookups=no
2736 fi;
2737 # end --enable-rlookups
2738 # OpenLDAP --enable-slapi
2739
2740         # Check whether --enable-slapi or --disable-slapi was given.
2741 if test "${enable_slapi+set}" = set; then
2742   enableval="$enable_slapi"
2743
2744         ol_arg=invalid
2745         for ol_val in auto yes no ; do
2746                 if test "$enableval" = "$ol_val" ; then
2747                         ol_arg="$ol_val"
2748                 fi
2749         done
2750         if test "$ol_arg" = "invalid" ; then
2751                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2752 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2753    { (exit 1); exit 1; }; }
2754         fi
2755         ol_enable_slapi="$ol_arg"
2756
2757 else
2758         ol_enable_slapi=no
2759 fi;
2760 # end --enable-slapi
2761 # OpenLDAP --enable-slp
2762
2763         # Check whether --enable-slp or --disable-slp was given.
2764 if test "${enable_slp+set}" = set; then
2765   enableval="$enable_slp"
2766
2767         ol_arg=invalid
2768         for ol_val in auto yes no ; do
2769                 if test "$enableval" = "$ol_val" ; then
2770                         ol_arg="$ol_val"
2771                 fi
2772         done
2773         if test "$ol_arg" = "invalid" ; then
2774                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2775 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2776    { (exit 1); exit 1; }; }
2777         fi
2778         ol_enable_slp="$ol_arg"
2779
2780 else
2781         ol_enable_slp=no
2782 fi;
2783 # end --enable-slp
2784 # OpenLDAP --enable-wrappers
2785
2786         # Check whether --enable-wrappers or --disable-wrappers was given.
2787 if test "${enable_wrappers+set}" = set; then
2788   enableval="$enable_wrappers"
2789
2790         ol_arg=invalid
2791         for ol_val in auto yes no ; do
2792                 if test "$enableval" = "$ol_val" ; then
2793                         ol_arg="$ol_val"
2794                 fi
2795         done
2796         if test "$ol_arg" = "invalid" ; then
2797                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2798 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2799    { (exit 1); exit 1; }; }
2800         fi
2801         ol_enable_wrappers="$ol_arg"
2802
2803 else
2804         ol_enable_wrappers=no
2805 fi;
2806 # end --enable-wrappers
2807
2808 Backends="bdb \
2809         dnssrv \
2810         hdb \
2811         ldap \
2812         meta \
2813         monitor \
2814         ndb \
2815         null \
2816         passwd \
2817         perl \
2818         relay \
2819         shell \
2820         sock \
2821         sql"
2822
2823 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2824 if test "${enable_xxslapbackends+set}" = set; then
2825   enableval="$enable_xxslapbackends"
2826
2827 fi;
2828
2829 # OpenLDAP --enable-backends
2830
2831         # Check whether --enable-backends or --disable-backends was given.
2832 if test "${enable_backends+set}" = set; then
2833   enableval="$enable_backends"
2834
2835         ol_arg=invalid
2836         for ol_val in no yes mod ; do
2837                 if test "$enableval" = "$ol_val" ; then
2838                         ol_arg="$ol_val"
2839                 fi
2840         done
2841         if test "$ol_arg" = "invalid" ; then
2842                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2843 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2844    { (exit 1); exit 1; }; }
2845         fi
2846         ol_enable_backends="$ol_arg"
2847
2848 fi;
2849 # end --enable-backends
2850 # OpenLDAP --enable-bdb
2851
2852         # Check whether --enable-bdb or --disable-bdb was given.
2853 if test "${enable_bdb+set}" = set; then
2854   enableval="$enable_bdb"
2855
2856         ol_arg=invalid
2857         for ol_val in no yes mod ; do
2858                 if test "$enableval" = "$ol_val" ; then
2859                         ol_arg="$ol_val"
2860                 fi
2861         done
2862         if test "$ol_arg" = "invalid" ; then
2863                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2864 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2865    { (exit 1); exit 1; }; }
2866         fi
2867         ol_enable_bdb="$ol_arg"
2868
2869 else
2870         ol_enable_bdb=${ol_enable_backends:-no}
2871 fi;
2872 # end --enable-bdb
2873 # OpenLDAP --enable-dnssrv
2874
2875         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2876 if test "${enable_dnssrv+set}" = set; then
2877   enableval="$enable_dnssrv"
2878
2879         ol_arg=invalid
2880         for ol_val in no yes mod ; do
2881                 if test "$enableval" = "$ol_val" ; then
2882                         ol_arg="$ol_val"
2883                 fi
2884         done
2885         if test "$ol_arg" = "invalid" ; then
2886                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2887 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2888    { (exit 1); exit 1; }; }
2889         fi
2890         ol_enable_dnssrv="$ol_arg"
2891
2892 else
2893         ol_enable_dnssrv=${ol_enable_backends:-no}
2894 fi;
2895 # end --enable-dnssrv
2896 # OpenLDAP --enable-hdb
2897
2898         # Check whether --enable-hdb or --disable-hdb was given.
2899 if test "${enable_hdb+set}" = set; then
2900   enableval="$enable_hdb"
2901
2902         ol_arg=invalid
2903         for ol_val in no yes mod ; do
2904                 if test "$enableval" = "$ol_val" ; then
2905                         ol_arg="$ol_val"
2906                 fi
2907         done
2908         if test "$ol_arg" = "invalid" ; then
2909                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2910 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2911    { (exit 1); exit 1; }; }
2912         fi
2913         ol_enable_hdb="$ol_arg"
2914
2915 else
2916         ol_enable_hdb=${ol_enable_backends:-yes}
2917 fi;
2918 # end --enable-hdb
2919 # OpenLDAP --enable-ldap
2920
2921         # Check whether --enable-ldap or --disable-ldap was given.
2922 if test "${enable_ldap+set}" = set; then
2923   enableval="$enable_ldap"
2924
2925         ol_arg=invalid
2926         for ol_val in no yes mod ; do
2927                 if test "$enableval" = "$ol_val" ; then
2928                         ol_arg="$ol_val"
2929                 fi
2930         done
2931         if test "$ol_arg" = "invalid" ; then
2932                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2933 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2934    { (exit 1); exit 1; }; }
2935         fi
2936         ol_enable_ldap="$ol_arg"
2937
2938 else
2939         ol_enable_ldap=${ol_enable_backends:-no}
2940 fi;
2941 # end --enable-ldap
2942 # OpenLDAP --enable-meta
2943
2944         # Check whether --enable-meta or --disable-meta was given.
2945 if test "${enable_meta+set}" = set; then
2946   enableval="$enable_meta"
2947
2948         ol_arg=invalid
2949         for ol_val in no yes mod ; do
2950                 if test "$enableval" = "$ol_val" ; then
2951                         ol_arg="$ol_val"
2952                 fi
2953         done
2954         if test "$ol_arg" = "invalid" ; then
2955                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2956 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2957    { (exit 1); exit 1; }; }
2958         fi
2959         ol_enable_meta="$ol_arg"
2960
2961 else
2962         ol_enable_meta=${ol_enable_backends:-no}
2963 fi;
2964 # end --enable-meta
2965 # OpenLDAP --enable-monitor
2966
2967         # Check whether --enable-monitor or --disable-monitor was given.
2968 if test "${enable_monitor+set}" = set; then
2969   enableval="$enable_monitor"
2970
2971         ol_arg=invalid
2972         for ol_val in no yes mod ; do
2973                 if test "$enableval" = "$ol_val" ; then
2974                         ol_arg="$ol_val"
2975                 fi
2976         done
2977         if test "$ol_arg" = "invalid" ; then
2978                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2979 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2980    { (exit 1); exit 1; }; }
2981         fi
2982         ol_enable_monitor="$ol_arg"
2983
2984 else
2985         ol_enable_monitor=${ol_enable_backends:-yes}
2986 fi;
2987 # end --enable-monitor
2988 # OpenLDAP --enable-ndb
2989
2990         # Check whether --enable-ndb or --disable-ndb was given.
2991 if test "${enable_ndb+set}" = set; then
2992   enableval="$enable_ndb"
2993
2994         ol_arg=invalid
2995         for ol_val in no yes mod ; do
2996                 if test "$enableval" = "$ol_val" ; then
2997                         ol_arg="$ol_val"
2998                 fi
2999         done
3000         if test "$ol_arg" = "invalid" ; then
3001                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3002 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3003    { (exit 1); exit 1; }; }
3004         fi
3005         ol_enable_ndb="$ol_arg"
3006
3007 else
3008         ol_enable_ndb=${ol_enable_backends:-no}
3009 fi;
3010 # end --enable-ndb
3011 # OpenLDAP --enable-null
3012
3013         # Check whether --enable-null or --disable-null was given.
3014 if test "${enable_null+set}" = set; then
3015   enableval="$enable_null"
3016
3017         ol_arg=invalid
3018         for ol_val in no yes mod ; do
3019                 if test "$enableval" = "$ol_val" ; then
3020                         ol_arg="$ol_val"
3021                 fi
3022         done
3023         if test "$ol_arg" = "invalid" ; then
3024                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3025 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3026    { (exit 1); exit 1; }; }
3027         fi
3028         ol_enable_null="$ol_arg"
3029
3030 else
3031         ol_enable_null=${ol_enable_backends:-no}
3032 fi;
3033 # end --enable-null
3034 # OpenLDAP --enable-passwd
3035
3036         # Check whether --enable-passwd or --disable-passwd was given.
3037 if test "${enable_passwd+set}" = set; then
3038   enableval="$enable_passwd"
3039
3040         ol_arg=invalid
3041         for ol_val in no yes mod ; do
3042                 if test "$enableval" = "$ol_val" ; then
3043                         ol_arg="$ol_val"
3044                 fi
3045         done
3046         if test "$ol_arg" = "invalid" ; then
3047                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3048 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3049    { (exit 1); exit 1; }; }
3050         fi
3051         ol_enable_passwd="$ol_arg"
3052
3053 else
3054         ol_enable_passwd=${ol_enable_backends:-no}
3055 fi;
3056 # end --enable-passwd
3057 # OpenLDAP --enable-perl
3058
3059         # Check whether --enable-perl or --disable-perl was given.
3060 if test "${enable_perl+set}" = set; then
3061   enableval="$enable_perl"
3062
3063         ol_arg=invalid
3064         for ol_val in no yes mod ; do
3065                 if test "$enableval" = "$ol_val" ; then
3066                         ol_arg="$ol_val"
3067                 fi
3068         done
3069         if test "$ol_arg" = "invalid" ; then
3070                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3071 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3072    { (exit 1); exit 1; }; }
3073         fi
3074         ol_enable_perl="$ol_arg"
3075
3076 else
3077         ol_enable_perl=${ol_enable_backends:-no}
3078 fi;
3079 # end --enable-perl
3080 # OpenLDAP --enable-relay
3081
3082         # Check whether --enable-relay or --disable-relay was given.
3083 if test "${enable_relay+set}" = set; then
3084   enableval="$enable_relay"
3085
3086         ol_arg=invalid
3087         for ol_val in no yes mod ; do
3088                 if test "$enableval" = "$ol_val" ; then
3089                         ol_arg="$ol_val"
3090                 fi
3091         done
3092         if test "$ol_arg" = "invalid" ; then
3093                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3094 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3095    { (exit 1); exit 1; }; }
3096         fi
3097         ol_enable_relay="$ol_arg"
3098
3099 else
3100         ol_enable_relay=${ol_enable_backends:-yes}
3101 fi;
3102 # end --enable-relay
3103 # OpenLDAP --enable-shell
3104
3105         # Check whether --enable-shell or --disable-shell was given.
3106 if test "${enable_shell+set}" = set; then
3107   enableval="$enable_shell"
3108
3109         ol_arg=invalid
3110         for ol_val in no yes mod ; do
3111                 if test "$enableval" = "$ol_val" ; then
3112                         ol_arg="$ol_val"
3113                 fi
3114         done
3115         if test "$ol_arg" = "invalid" ; then
3116                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3117 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3118    { (exit 1); exit 1; }; }
3119         fi
3120         ol_enable_shell="$ol_arg"
3121
3122 else
3123         ol_enable_shell=${ol_enable_backends:-no}
3124 fi;
3125 # end --enable-shell
3126 # OpenLDAP --enable-sock
3127
3128         # Check whether --enable-sock or --disable-sock was given.
3129 if test "${enable_sock+set}" = set; then
3130   enableval="$enable_sock"
3131
3132         ol_arg=invalid
3133         for ol_val in no yes mod ; do
3134                 if test "$enableval" = "$ol_val" ; then
3135                         ol_arg="$ol_val"
3136                 fi
3137         done
3138         if test "$ol_arg" = "invalid" ; then
3139                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3140 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3141    { (exit 1); exit 1; }; }
3142         fi
3143         ol_enable_sock="$ol_arg"
3144
3145 else
3146         ol_enable_sock=${ol_enable_backends:-no}
3147 fi;
3148 # end --enable-sock
3149 # OpenLDAP --enable-sql
3150
3151         # Check whether --enable-sql or --disable-sql was given.
3152 if test "${enable_sql+set}" = set; then
3153   enableval="$enable_sql"
3154
3155         ol_arg=invalid
3156         for ol_val in no yes mod ; do
3157                 if test "$enableval" = "$ol_val" ; then
3158                         ol_arg="$ol_val"
3159                 fi
3160         done
3161         if test "$ol_arg" = "invalid" ; then
3162                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3163 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3164    { (exit 1); exit 1; }; }
3165         fi
3166         ol_enable_sql="$ol_arg"
3167
3168 else
3169         ol_enable_sql=${ol_enable_backends:-no}
3170 fi;
3171 # end --enable-sql
3172
3173 Overlays="accesslog \
3174         auditlog \
3175         collect \
3176         constraint \
3177         dds \
3178         deref \
3179         dyngroup \
3180         dynlist \
3181         memberof \
3182         ppolicy \
3183         proxycache \
3184         refint \
3185         retcode \
3186         rwm \
3187         seqmod \
3188         syncprov \
3189         translucent \
3190         unique \
3191         valsort"
3192
3193 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3194 if test "${enable_xxslapoverlays+set}" = set; then
3195   enableval="$enable_xxslapoverlays"
3196
3197 fi;
3198
3199 # OpenLDAP --enable-overlays
3200
3201         # Check whether --enable-overlays or --disable-overlays was given.
3202 if test "${enable_overlays+set}" = set; then
3203   enableval="$enable_overlays"
3204
3205         ol_arg=invalid
3206         for ol_val in no yes mod ; do
3207                 if test "$enableval" = "$ol_val" ; then
3208                         ol_arg="$ol_val"
3209                 fi
3210         done
3211         if test "$ol_arg" = "invalid" ; then
3212                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3213 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3214    { (exit 1); exit 1; }; }
3215         fi
3216         ol_enable_overlays="$ol_arg"
3217
3218 fi;
3219 # end --enable-overlays
3220 # OpenLDAP --enable-accesslog
3221
3222         # Check whether --enable-accesslog or --disable-accesslog was given.
3223 if test "${enable_accesslog+set}" = set; then
3224   enableval="$enable_accesslog"
3225
3226         ol_arg=invalid
3227         for ol_val in no yes mod ; do
3228                 if test "$enableval" = "$ol_val" ; then
3229                         ol_arg="$ol_val"
3230                 fi
3231         done
3232         if test "$ol_arg" = "invalid" ; then
3233                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3234 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3235    { (exit 1); exit 1; }; }
3236         fi
3237         ol_enable_accesslog="$ol_arg"
3238
3239 else
3240         ol_enable_accesslog=${ol_enable_overlays:-no}
3241 fi;
3242 # end --enable-accesslog
3243
3244 # OpenLDAP --enable-auditlog
3245
3246         # Check whether --enable-auditlog or --disable-auditlog was given.
3247 if test "${enable_auditlog+set}" = set; then
3248   enableval="$enable_auditlog"
3249
3250         ol_arg=invalid
3251         for ol_val in no yes mod ; do
3252                 if test "$enableval" = "$ol_val" ; then
3253                         ol_arg="$ol_val"
3254                 fi
3255         done
3256         if test "$ol_arg" = "invalid" ; then
3257                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3258 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3259    { (exit 1); exit 1; }; }
3260         fi
3261         ol_enable_auditlog="$ol_arg"
3262
3263 else
3264         ol_enable_auditlog=${ol_enable_overlays:-no}
3265 fi;
3266 # end --enable-auditlog
3267
3268 # OpenLDAP --enable-collect
3269
3270         # Check whether --enable-collect or --disable-collect was given.
3271 if test "${enable_collect+set}" = set; then
3272   enableval="$enable_collect"
3273
3274         ol_arg=invalid
3275         for ol_val in no yes mod ; do
3276                 if test "$enableval" = "$ol_val" ; then
3277                         ol_arg="$ol_val"
3278                 fi
3279         done
3280         if test "$ol_arg" = "invalid" ; then
3281                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3282 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3283    { (exit 1); exit 1; }; }
3284         fi
3285         ol_enable_collect="$ol_arg"
3286
3287 else
3288         ol_enable_collect=${ol_enable_overlays:-no}
3289 fi;
3290 # end --enable-collect
3291
3292 # OpenLDAP --enable-constraint
3293
3294         # Check whether --enable-constraint or --disable-constraint was given.
3295 if test "${enable_constraint+set}" = set; then
3296   enableval="$enable_constraint"
3297
3298         ol_arg=invalid
3299         for ol_val in no yes mod ; do
3300                 if test "$enableval" = "$ol_val" ; then
3301                         ol_arg="$ol_val"
3302                 fi
3303         done
3304         if test "$ol_arg" = "invalid" ; then
3305                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3306 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3307    { (exit 1); exit 1; }; }
3308         fi
3309         ol_enable_constraint="$ol_arg"
3310
3311 else
3312         ol_enable_constraint=${ol_enable_overlays:-no}
3313 fi;
3314 # end --enable-constraint
3315
3316 # OpenLDAP --enable-dds
3317
3318         # Check whether --enable-dds or --disable-dds was given.
3319 if test "${enable_dds+set}" = set; then
3320   enableval="$enable_dds"
3321
3322         ol_arg=invalid
3323         for ol_val in no yes mod ; do
3324                 if test "$enableval" = "$ol_val" ; then
3325                         ol_arg="$ol_val"
3326                 fi
3327         done
3328         if test "$ol_arg" = "invalid" ; then
3329                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3330 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3331    { (exit 1); exit 1; }; }
3332         fi
3333         ol_enable_dds="$ol_arg"
3334
3335 else
3336         ol_enable_dds=${ol_enable_overlays:-no}
3337 fi;
3338 # end --enable-dds
3339
3340 # OpenLDAP --enable-deref
3341
3342         # Check whether --enable-deref or --disable-deref was given.
3343 if test "${enable_deref+set}" = set; then
3344   enableval="$enable_deref"
3345
3346         ol_arg=invalid
3347         for ol_val in no yes mod ; do
3348                 if test "$enableval" = "$ol_val" ; then
3349                         ol_arg="$ol_val"
3350                 fi
3351         done
3352         if test "$ol_arg" = "invalid" ; then
3353                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3354 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3355    { (exit 1); exit 1; }; }
3356         fi
3357         ol_enable_deref="$ol_arg"
3358
3359 else
3360         ol_enable_deref=${ol_enable_overlays:-no}
3361 fi;
3362 # end --enable-deref
3363
3364 # OpenLDAP --enable-dyngroup
3365
3366         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3367 if test "${enable_dyngroup+set}" = set; then
3368   enableval="$enable_dyngroup"
3369
3370         ol_arg=invalid
3371         for ol_val in no yes mod ; do
3372                 if test "$enableval" = "$ol_val" ; then
3373                         ol_arg="$ol_val"
3374                 fi
3375         done
3376         if test "$ol_arg" = "invalid" ; then
3377                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3378 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3379    { (exit 1); exit 1; }; }
3380         fi
3381         ol_enable_dyngroup="$ol_arg"
3382
3383 else
3384         ol_enable_dyngroup=${ol_enable_overlays:-no}
3385 fi;
3386 # end --enable-dyngroup
3387
3388 # OpenLDAP --enable-dynlist
3389
3390         # Check whether --enable-dynlist or --disable-dynlist was given.
3391 if test "${enable_dynlist+set}" = set; then
3392   enableval="$enable_dynlist"
3393
3394         ol_arg=invalid
3395         for ol_val in no yes mod ; do
3396                 if test "$enableval" = "$ol_val" ; then
3397                         ol_arg="$ol_val"
3398                 fi
3399         done
3400         if test "$ol_arg" = "invalid" ; then
3401                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3402 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3403    { (exit 1); exit 1; }; }
3404         fi
3405         ol_enable_dynlist="$ol_arg"
3406
3407 else
3408         ol_enable_dynlist=${ol_enable_overlays:-no}
3409 fi;
3410 # end --enable-dynlist
3411
3412 # OpenLDAP --enable-memberof
3413
3414         # Check whether --enable-memberof or --disable-memberof was given.
3415 if test "${enable_memberof+set}" = set; then
3416   enableval="$enable_memberof"
3417
3418         ol_arg=invalid
3419         for ol_val in no yes mod ; do
3420                 if test "$enableval" = "$ol_val" ; then
3421                         ol_arg="$ol_val"
3422                 fi
3423         done
3424         if test "$ol_arg" = "invalid" ; then
3425                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3426 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3427    { (exit 1); exit 1; }; }
3428         fi
3429         ol_enable_memberof="$ol_arg"
3430
3431 else
3432         ol_enable_memberof=${ol_enable_overlays:-no}
3433 fi;
3434 # end --enable-memberof
3435
3436 # OpenLDAP --enable-ppolicy
3437
3438         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3439 if test "${enable_ppolicy+set}" = set; then
3440   enableval="$enable_ppolicy"
3441
3442         ol_arg=invalid
3443         for ol_val in no yes mod ; do
3444                 if test "$enableval" = "$ol_val" ; then
3445                         ol_arg="$ol_val"
3446                 fi
3447         done
3448         if test "$ol_arg" = "invalid" ; then
3449                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3450 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3451    { (exit 1); exit 1; }; }
3452         fi
3453         ol_enable_ppolicy="$ol_arg"
3454
3455 else
3456         ol_enable_ppolicy=${ol_enable_overlays:-no}
3457 fi;
3458 # end --enable-ppolicy
3459
3460 # OpenLDAP --enable-proxycache
3461
3462         # Check whether --enable-proxycache or --disable-proxycache was given.
3463 if test "${enable_proxycache+set}" = set; then
3464   enableval="$enable_proxycache"
3465
3466         ol_arg=invalid
3467         for ol_val in no yes mod ; do
3468                 if test "$enableval" = "$ol_val" ; then
3469                         ol_arg="$ol_val"
3470                 fi
3471         done
3472         if test "$ol_arg" = "invalid" ; then
3473                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3474 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3475    { (exit 1); exit 1; }; }
3476         fi
3477         ol_enable_proxycache="$ol_arg"
3478
3479 else
3480         ol_enable_proxycache=${ol_enable_overlays:-no}
3481 fi;
3482 # end --enable-proxycache
3483
3484 # OpenLDAP --enable-refint
3485
3486         # Check whether --enable-refint or --disable-refint was given.
3487 if test "${enable_refint+set}" = set; then
3488   enableval="$enable_refint"
3489
3490         ol_arg=invalid
3491         for ol_val in no yes mod ; do
3492                 if test "$enableval" = "$ol_val" ; then
3493                         ol_arg="$ol_val"
3494                 fi
3495         done
3496         if test "$ol_arg" = "invalid" ; then
3497                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3498 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3499    { (exit 1); exit 1; }; }
3500         fi
3501         ol_enable_refint="$ol_arg"
3502
3503 else
3504         ol_enable_refint=${ol_enable_overlays:-no}
3505 fi;
3506 # end --enable-refint
3507
3508 # OpenLDAP --enable-retcode
3509
3510         # Check whether --enable-retcode or --disable-retcode was given.
3511 if test "${enable_retcode+set}" = set; then
3512   enableval="$enable_retcode"
3513
3514         ol_arg=invalid
3515         for ol_val in no yes mod ; do
3516                 if test "$enableval" = "$ol_val" ; then
3517                         ol_arg="$ol_val"
3518                 fi
3519         done
3520         if test "$ol_arg" = "invalid" ; then
3521                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3522 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3523    { (exit 1); exit 1; }; }
3524         fi
3525         ol_enable_retcode="$ol_arg"
3526
3527 else
3528         ol_enable_retcode=${ol_enable_overlays:-no}
3529 fi;
3530 # end --enable-retcode
3531
3532 # OpenLDAP --enable-rwm
3533
3534         # Check whether --enable-rwm or --disable-rwm was given.
3535 if test "${enable_rwm+set}" = set; then
3536   enableval="$enable_rwm"
3537
3538         ol_arg=invalid
3539         for ol_val in no yes mod ; do
3540                 if test "$enableval" = "$ol_val" ; then
3541                         ol_arg="$ol_val"
3542                 fi
3543         done
3544         if test "$ol_arg" = "invalid" ; then
3545                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3546 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3547    { (exit 1); exit 1; }; }
3548         fi
3549         ol_enable_rwm="$ol_arg"
3550
3551 else
3552         ol_enable_rwm=${ol_enable_overlays:-no}
3553 fi;
3554 # end --enable-rwm
3555
3556 # OpenLDAP --enable-seqmod
3557
3558         # Check whether --enable-seqmod or --disable-seqmod was given.
3559 if test "${enable_seqmod+set}" = set; then
3560   enableval="$enable_seqmod"
3561
3562         ol_arg=invalid
3563         for ol_val in no yes mod ; do
3564                 if test "$enableval" = "$ol_val" ; then
3565                         ol_arg="$ol_val"
3566                 fi
3567         done
3568         if test "$ol_arg" = "invalid" ; then
3569                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3570 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3571    { (exit 1); exit 1; }; }
3572         fi
3573         ol_enable_seqmod="$ol_arg"
3574
3575 else
3576         ol_enable_seqmod=${ol_enable_overlays:-yes}
3577 fi;
3578 # end --enable-seqmod
3579
3580 # OpenLDAP --enable-syncprov
3581
3582         # Check whether --enable-syncprov or --disable-syncprov was given.
3583 if test "${enable_syncprov+set}" = set; then
3584   enableval="$enable_syncprov"
3585
3586         ol_arg=invalid
3587         for ol_val in no yes mod ; do
3588                 if test "$enableval" = "$ol_val" ; then
3589                         ol_arg="$ol_val"
3590                 fi
3591         done
3592         if test "$ol_arg" = "invalid" ; then
3593                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3594 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3595    { (exit 1); exit 1; }; }
3596         fi
3597         ol_enable_syncprov="$ol_arg"
3598
3599 else
3600         ol_enable_syncprov=${ol_enable_overlays:-yes}
3601 fi;
3602 # end --enable-syncprov
3603
3604 # OpenLDAP --enable-translucent
3605
3606         # Check whether --enable-translucent or --disable-translucent was given.
3607 if test "${enable_translucent+set}" = set; then
3608   enableval="$enable_translucent"
3609
3610         ol_arg=invalid
3611         for ol_val in no yes mod ; do
3612                 if test "$enableval" = "$ol_val" ; then
3613                         ol_arg="$ol_val"
3614                 fi
3615         done
3616         if test "$ol_arg" = "invalid" ; then
3617                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3618 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3619    { (exit 1); exit 1; }; }
3620         fi
3621         ol_enable_translucent="$ol_arg"
3622
3623 else
3624         ol_enable_translucent=${ol_enable_overlays:-no}
3625 fi;
3626 # end --enable-translucent
3627
3628 # OpenLDAP --enable-unique
3629
3630         # Check whether --enable-unique or --disable-unique was given.
3631 if test "${enable_unique+set}" = set; then
3632   enableval="$enable_unique"
3633
3634         ol_arg=invalid
3635         for ol_val in no yes mod ; do
3636                 if test "$enableval" = "$ol_val" ; then
3637                         ol_arg="$ol_val"
3638                 fi
3639         done
3640         if test "$ol_arg" = "invalid" ; then
3641                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3642 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3643    { (exit 1); exit 1; }; }
3644         fi
3645         ol_enable_unique="$ol_arg"
3646
3647 else
3648         ol_enable_unique=${ol_enable_overlays:-no}
3649 fi;
3650 # end --enable-unique
3651
3652 # OpenLDAP --enable-valsort
3653
3654         # Check whether --enable-valsort or --disable-valsort was given.
3655 if test "${enable_valsort+set}" = set; then
3656   enableval="$enable_valsort"
3657
3658         ol_arg=invalid
3659         for ol_val in no yes mod ; do
3660                 if test "$enableval" = "$ol_val" ; then
3661                         ol_arg="$ol_val"
3662                 fi
3663         done
3664         if test "$ol_arg" = "invalid" ; then
3665                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3666 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3667    { (exit 1); exit 1; }; }
3668         fi
3669         ol_enable_valsort="$ol_arg"
3670
3671 else
3672         ol_enable_valsort=${ol_enable_overlays:-no}
3673 fi;
3674 # end --enable-valsort
3675
3676
3677 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3678 if test "${enable_xxliboptions+set}" = set; then
3679   enableval="$enable_xxliboptions"
3680
3681 fi;
3682 # Check whether --enable-static or --disable-static was given.
3683 if test "${enable_static+set}" = set; then
3684   enableval="$enable_static"
3685   p=${PACKAGE-default}
3686     case $enableval in
3687     yes) enable_static=yes ;;
3688     no) enable_static=no ;;
3689     *)
3690      enable_static=no
3691       # Look at the argument we got.  We use all the common list separators.
3692       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3693       for pkg in $enableval; do
3694         IFS="$lt_save_ifs"
3695         if test "X$pkg" = "X$p"; then
3696           enable_static=yes
3697         fi
3698       done
3699       IFS="$lt_save_ifs"
3700       ;;
3701     esac
3702 else
3703   enable_static=yes
3704 fi;
3705
3706 # Check whether --enable-shared or --disable-shared was given.
3707 if test "${enable_shared+set}" = set; then
3708   enableval="$enable_shared"
3709   p=${PACKAGE-default}
3710     case $enableval in
3711     yes) enable_shared=yes ;;
3712     no) enable_shared=no ;;
3713     *)
3714       enable_shared=no
3715       # Look at the argument we got.  We use all the common list separators.
3716       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3717       for pkg in $enableval; do
3718         IFS="$lt_save_ifs"
3719         if test "X$pkg" = "X$p"; then
3720           enable_shared=yes
3721         fi
3722       done
3723       IFS="$lt_save_ifs"
3724       ;;
3725     esac
3726 else
3727   enable_shared=yes
3728 fi;
3729
3730
3731
3732 # validate options
3733 if test $ol_enable_slapd = no ; then
3734                 if test $ol_enable_slapi = yes ; then
3735                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3736 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3737         fi
3738         case "$ol_enable_backends" in yes | mod)
3739                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3740 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3741         esac
3742         for i in $Backends; do
3743                 eval "ol_tmp=\$ol_enable_$i"
3744                 if test $ol_tmp != no ; then
3745                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3746 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3747                         eval "ol_enable_$i=no"
3748                 fi
3749         done
3750         if test $ol_enable_modules = yes ; then
3751                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3752 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3753         fi
3754         if test $ol_enable_wrappers = yes ; then
3755                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3756 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3757         fi
3758         if test $ol_enable_rlookups = yes ; then
3759                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3760 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3761         fi
3762         if test $ol_enable_dynacl = yes ; then
3763                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3764 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3765         fi
3766         if test $ol_enable_aci != no ; then
3767                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3768 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3769         fi
3770         if test $ol_enable_rewrite = yes ; then
3771                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3772 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3773         fi
3774                 case "$ol_enable_overlays" in yes | mod)
3775                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3776 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3777         esac
3778         for i in $Overlays; do
3779                 eval "ol_tmp=\$ol_enable_$i"
3780                 if test $ol_tmp != no ; then
3781                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3782 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3783                         eval "ol_enable_$i=no"
3784                 fi
3785         done
3786
3787         # force settings to no
3788         ol_enable_slapi=no
3789
3790         ol_enable_backends=
3791         ol_enable_overlays=
3792         ol_enable_modules=no
3793         ol_enable_rlookups=no
3794         ol_enable_dynacl=no
3795         ol_enable_aci=no
3796         ol_enable_wrappers=no
3797
3798         ol_enable_rewrite=no
3799
3800 elif test $ol_enable_modules != yes &&
3801         test $ol_enable_bdb = no &&
3802         test $ol_enable_dnssrv = no &&
3803         test $ol_enable_hdb = no &&
3804         test $ol_enable_ldap = no &&
3805         test $ol_enable_meta = no &&
3806         test $ol_enable_monitor = no &&
3807         test $ol_enable_ndb = no &&
3808         test $ol_enable_null = no &&
3809         test $ol_enable_passwd = no &&
3810         test $ol_enable_perl = no &&
3811         test $ol_enable_relay = no &&
3812         test $ol_enable_shell = no &&
3813         test $ol_enable_sock = no &&
3814         test $ol_enable_sql = no ; then
3815
3816         if test $ol_enable_slapd = yes ; then
3817                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3818 echo "$as_me: error: slapd requires a backend" >&2;}
3819    { (exit 1); exit 1; }; }
3820         else
3821                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3822 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3823                 ol_enable_slapd=no
3824         fi
3825 fi
3826
3827 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3828         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3829 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3830    { (exit 1); exit 1; }; }
3831 fi
3832
3833 if test $ol_enable_lmpasswd = yes ; then
3834         if test $ol_with_tls = no ; then
3835                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3836 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3837    { (exit 1); exit 1; }; }
3838         fi
3839 fi
3840
3841 if test $ol_enable_spasswd = yes ; then
3842         if test $ol_with_cyrus_sasl = no ; then
3843                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3844 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3845    { (exit 1); exit 1; }; }
3846         fi
3847         ol_with_cyrus_sasl=yes
3848 fi
3849
3850 echo "$as_me:$LINENO: result: done" >&5
3851 echo "${ECHO_T}done" >&6
3852
3853 LDAP_LIBS=
3854 BDB_LIBS=
3855 SLAPD_NDB_LIBS=
3856 SLAPD_NDB_INCS=
3857 LTHREAD_LIBS=
3858 LUTIL_LIBS=
3859
3860 SLAPD_LIBS=
3861
3862 BUILD_SLAPD=no
3863
3864 BUILD_THREAD=no
3865
3866 BUILD_SLAPI=no
3867 SLAPD_SLAPI_DEPEND=
3868
3869 BUILD_BDB=no
3870 BUILD_DNSSRV=no
3871 BUILD_HDB=no
3872 BUILD_LDAP=no
3873 BUILD_META=no
3874 BUILD_MONITOR=no
3875 BUILD_NDB=no
3876 BUILD_NULL=no
3877 BUILD_PASSWD=no
3878 BUILD_PERL=no
3879 BUILD_RELAY=no
3880 BUILD_SHELL=no
3881 BUILD_SOCK=no
3882 BUILD_SQL=no
3883
3884 BUILD_ACCESSLOG=no
3885 BUILD_AUDITLOG=no
3886 BUILD_CONSTRAINT=no
3887 BUILD_DDS=no
3888 BUILD_DENYOP=no
3889 BUILD_DYNGROUP=no
3890 BUILD_DYNLIST=no
3891 BUILD_LASTMOD=no
3892 BUILD_MEMBEROF=no
3893 BUILD_PPOLICY=no
3894 BUILD_PROXYCACHE=no
3895 BUILD_REFINT=no
3896 BUILD_RETCODE=no
3897 BUILD_RWM=no
3898 BUILD_SEQMOD=no
3899 BUILD_SYNCPROV=no
3900 BUILD_TRANSLUCENT=no
3901 BUILD_UNIQUE=no
3902 BUILD_VALSORT=no
3903
3904 SLAPD_STATIC_OVERLAYS=
3905 SLAPD_DYNAMIC_OVERLAYS=
3906
3907 SLAPD_MODULES_LDFLAGS=
3908 SLAPD_MODULES_CPPFLAGS=
3909
3910 SLAPD_STATIC_BACKENDS=back-ldif
3911 SLAPD_DYNAMIC_BACKENDS=
3912
3913 SLAPD_PERL_LDFLAGS=
3914 MOD_PERL_LDFLAGS=
3915 PERL_CPPFLAGS=
3916
3917 SLAPD_SQL_LDFLAGS=
3918 SLAPD_SQL_LIBS=
3919 SLAPD_SQL_INCLUDES=
3920
3921 KRB4_LIBS=
3922 KRB5_LIBS=
3923 SASL_LIBS=
3924 GSSAPI_LIBS=
3925 TLS_LIBS=
3926 MODULES_LIBS=
3927 SLAPI_LIBS=
3928 LIBSLAPI=
3929 LIBSLAPITOOLS=
3930 AUTH_LIBS=
3931 ICU_LIBS=
3932
3933 SLAPD_SLP_LIBS=
3934 SLAPD_GMP_LIBS=
3935
3936
3937
3938 cat >>confdefs.h <<\_ACEOF
3939 #define HAVE_MKVERSION 1
3940 _ACEOF
3941
3942
3943
3944
3945 ol_aix_threads=no
3946 case "$target" in
3947 *-*-aix*)       if test -z "$CC" ; then
3948                 case "$ol_with_threads" in
3949                 auto | yes |  posix) ol_aix_threads=yes ;;
3950                 esac
3951         fi
3952 ;;
3953 esac
3954
3955 if test $ol_aix_threads = yes ; then
3956         if test -z "${CC}" ; then
3957                 for ac_prog in cc_r xlc_r cc
3958 do
3959   # Extract the first word of "$ac_prog", so it can be a program name with args.
3960 set dummy $ac_prog; ac_word=$2
3961 echo "$as_me:$LINENO: checking for $ac_word" >&5
3962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963 if test "${ac_cv_prog_CC+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   if test -n "$CC"; then
3967   ac_cv_prog_CC="$CC" # Let the user override the test.
3968 else
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3971 do
3972   IFS=$as_save_IFS
3973   test -z "$as_dir" && as_dir=.
3974   for ac_exec_ext in '' $ac_executable_extensions; do
3975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976     ac_cv_prog_CC="$ac_prog"
3977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3978     break 2
3979   fi
3980 done
3981 done
3982
3983 fi
3984 fi
3985 CC=$ac_cv_prog_CC
3986 if test -n "$CC"; then
3987   echo "$as_me:$LINENO: result: $CC" >&5
3988 echo "${ECHO_T}$CC" >&6
3989 else
3990   echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6
3992 fi
3993
3994   test -n "$CC" && break
3995 done
3996
3997
3998                 if test "$CC" = cc ; then
3999                                                 if test $ol_with_threads != auto ; then
4000                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4001 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4002    { (exit 1); exit 1; }; }
4003                         else
4004                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4005 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4006                         fi
4007                         ol_with_threads=no
4008                 fi
4009         fi
4010
4011         case ${CC} in cc_r | xlc_r)
4012                 ol_with_threads=posix
4013                 ol_cv_pthread_create=yes
4014                 ;;
4015         esac
4016 fi
4017
4018 if test -z "${CC}"; then
4019         for ac_prog in cc gcc
4020 do
4021   # Extract the first word of "$ac_prog", so it can be a program name with args.
4022 set dummy $ac_prog; ac_word=$2
4023 echo "$as_me:$LINENO: checking for $ac_word" >&5
4024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4025 if test "${ac_cv_prog_CC+set}" = set; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   if test -n "$CC"; then
4029   ac_cv_prog_CC="$CC" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034   IFS=$as_save_IFS
4035   test -z "$as_dir" && as_dir=.
4036   for ac_exec_ext in '' $ac_executable_extensions; do
4037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038     ac_cv_prog_CC="$ac_prog"
4039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4040     break 2
4041   fi
4042 done
4043 done
4044
4045 fi
4046 fi
4047 CC=$ac_cv_prog_CC
4048 if test -n "$CC"; then
4049   echo "$as_me:$LINENO: result: $CC" >&5
4050 echo "${ECHO_T}$CC" >&6
4051 else
4052   echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4054 fi
4055
4056   test -n "$CC" && break
4057 done
4058 test -n "$CC" || CC="missing"
4059
4060
4061         if test "${CC}" = "missing" ; then
4062                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4063 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4064    { (exit 1); exit 1; }; }
4065         fi
4066 fi
4067
4068 if test -z "${AR}"; then
4069         for ac_prog in ar gar
4070 do
4071   # Extract the first word of "$ac_prog", so it can be a program name with args.
4072 set dummy $ac_prog; ac_word=$2
4073 echo "$as_me:$LINENO: checking for $ac_word" >&5
4074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4075 if test "${ac_cv_prog_AR+set}" = set; then
4076   echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078   if test -n "$AR"; then
4079   ac_cv_prog_AR="$AR" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084   IFS=$as_save_IFS
4085   test -z "$as_dir" && as_dir=.
4086   for ac_exec_ext in '' $ac_executable_extensions; do
4087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088     ac_cv_prog_AR="$ac_prog"
4089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4090     break 2
4091   fi
4092 done
4093 done
4094
4095 fi
4096 fi
4097 AR=$ac_cv_prog_AR
4098 if test -n "$AR"; then
4099   echo "$as_me:$LINENO: result: $AR" >&5
4100 echo "${ECHO_T}$AR" >&6
4101 else
4102   echo "$as_me:$LINENO: result: no" >&5
4103 echo "${ECHO_T}no" >&6
4104 fi
4105
4106   test -n "$AR" && break
4107 done
4108 test -n "$AR" || AR="missing"
4109
4110
4111         if test "${AR}" = "missing" ; then
4112                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4113 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4114    { (exit 1); exit 1; }; }
4115         fi
4116 fi
4117
4118
4119
4120
4121
4122 # Check whether --enable-fast-install or --disable-fast-install was given.
4123 if test "${enable_fast_install+set}" = set; then
4124   enableval="$enable_fast_install"
4125   p=${PACKAGE-default}
4126     case $enableval in
4127     yes) enable_fast_install=yes ;;
4128     no) enable_fast_install=no ;;
4129     *)
4130       enable_fast_install=no
4131       # Look at the argument we got.  We use all the common list separators.
4132       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4133       for pkg in $enableval; do
4134         IFS="$lt_save_ifs"
4135         if test "X$pkg" = "X$p"; then
4136           enable_fast_install=yes
4137         fi
4138       done
4139       IFS="$lt_save_ifs"
4140       ;;
4141     esac
4142 else
4143   enable_fast_install=yes
4144 fi;
4145
4146 DEPDIR="${am__leading_dot}deps"
4147
4148           ac_config_commands="$ac_config_commands depfiles"
4149
4150
4151 am_make=${MAKE-make}
4152 cat > confinc << 'END'
4153 am__doit:
4154         @echo done
4155 .PHONY: am__doit
4156 END
4157 # If we don't find an include directive, just comment out the code.
4158 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4159 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4160 am__include="#"
4161 am__quote=
4162 _am_result=none
4163 # First try GNU make style include.
4164 echo "include confinc" > confmf
4165 # We grep out `Entering directory' and `Leaving directory'
4166 # messages which can occur if `w' ends up in MAKEFLAGS.
4167 # In particular we don't look at `^make:' because GNU make might
4168 # be invoked under some other name (usually "gmake"), in which
4169 # case it prints its new name instead of `make'.
4170 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4171    am__include=include
4172    am__quote=
4173    _am_result=GNU
4174 fi
4175 # Now try BSD make style include.
4176 if test "$am__include" = "#"; then
4177    echo '.include "confinc"' > confmf
4178    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4179       am__include=.include
4180       am__quote="\""
4181       _am_result=BSD
4182    fi
4183 fi
4184
4185
4186 echo "$as_me:$LINENO: result: $_am_result" >&5
4187 echo "${ECHO_T}$_am_result" >&6
4188 rm -f confinc confmf
4189
4190 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4191 if test "${enable_dependency_tracking+set}" = set; then
4192   enableval="$enable_dependency_tracking"
4193
4194 fi;
4195 if test "x$enable_dependency_tracking" != xno; then
4196   am_depcomp="$ac_aux_dir/depcomp"
4197   AMDEPBACKSLASH='\'
4198 fi
4199
4200
4201 if test "x$enable_dependency_tracking" != xno; then
4202   AMDEP_TRUE=
4203   AMDEP_FALSE='#'
4204 else
4205   AMDEP_TRUE='#'
4206   AMDEP_FALSE=
4207 fi
4208
4209
4210
4211 ac_ext=c
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216 if test -n "$ac_tool_prefix"; then
4217   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4218 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4219 echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4221 if test "${ac_cv_prog_CC+set}" = set; then
4222   echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224   if test -n "$CC"; then
4225   ac_cv_prog_CC="$CC" # Let the user override the test.
4226 else
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4229 do
4230   IFS=$as_save_IFS
4231   test -z "$as_dir" && as_dir=.
4232   for ac_exec_ext in '' $ac_executable_extensions; do
4233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4234     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4236     break 2
4237   fi
4238 done
4239 done
4240
4241 fi
4242 fi
4243 CC=$ac_cv_prog_CC
4244 if test -n "$CC"; then
4245   echo "$as_me:$LINENO: result: $CC" >&5
4246 echo "${ECHO_T}$CC" >&6
4247 else
4248   echo "$as_me:$LINENO: result: no" >&5
4249 echo "${ECHO_T}no" >&6
4250 fi
4251
4252 fi
4253 if test -z "$ac_cv_prog_CC"; then
4254   ac_ct_CC=$CC
4255   # Extract the first word of "gcc", so it can be a program name with args.
4256 set dummy gcc; ac_word=$2
4257 echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4260   echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262   if test -n "$ac_ct_CC"; then
4263   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268   IFS=$as_save_IFS
4269   test -z "$as_dir" && as_dir=.
4270   for ac_exec_ext in '' $ac_executable_extensions; do
4271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272     ac_cv_prog_ac_ct_CC="gcc"
4273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274     break 2
4275   fi
4276 done
4277 done
4278
4279 fi
4280 fi
4281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4282 if test -n "$ac_ct_CC"; then
4283   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4284 echo "${ECHO_T}$ac_ct_CC" >&6
4285 else
4286   echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4288 fi
4289
4290   CC=$ac_ct_CC
4291 else
4292   CC="$ac_cv_prog_CC"
4293 fi
4294
4295 if test -z "$CC"; then
4296   if test -n "$ac_tool_prefix"; then
4297   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4298 set dummy ${ac_tool_prefix}cc; ac_word=$2
4299 echo "$as_me:$LINENO: checking for $ac_word" >&5
4300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4301 if test "${ac_cv_prog_CC+set}" = set; then
4302   echo $ECHO_N "(cached) $ECHO_C" >&6
4303 else
4304   if test -n "$CC"; then
4305   ac_cv_prog_CC="$CC" # Let the user override the test.
4306 else
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH
4309 do
4310   IFS=$as_save_IFS
4311   test -z "$as_dir" && as_dir=.
4312   for ac_exec_ext in '' $ac_executable_extensions; do
4313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4314     ac_cv_prog_CC="${ac_tool_prefix}cc"
4315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4316     break 2
4317   fi
4318 done
4319 done
4320
4321 fi
4322 fi
4323 CC=$ac_cv_prog_CC
4324 if test -n "$CC"; then
4325   echo "$as_me:$LINENO: result: $CC" >&5
4326 echo "${ECHO_T}$CC" >&6
4327 else
4328   echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6
4330 fi
4331
4332 fi
4333 if test -z "$ac_cv_prog_CC"; then
4334   ac_ct_CC=$CC
4335   # Extract the first word of "cc", so it can be a program name with args.
4336 set dummy cc; ac_word=$2
4337 echo "$as_me:$LINENO: checking for $ac_word" >&5
4338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4340   echo $ECHO_N "(cached) $ECHO_C" >&6
4341 else
4342   if test -n "$ac_ct_CC"; then
4343   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4344 else
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4347 do
4348   IFS=$as_save_IFS
4349   test -z "$as_dir" && as_dir=.
4350   for ac_exec_ext in '' $ac_executable_extensions; do
4351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352     ac_cv_prog_ac_ct_CC="cc"
4353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354     break 2
4355   fi
4356 done
4357 done
4358
4359 fi
4360 fi
4361 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4362 if test -n "$ac_ct_CC"; then
4363   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4364 echo "${ECHO_T}$ac_ct_CC" >&6
4365 else
4366   echo "$as_me:$LINENO: result: no" >&5
4367 echo "${ECHO_T}no" >&6
4368 fi
4369
4370   CC=$ac_ct_CC
4371 else
4372   CC="$ac_cv_prog_CC"
4373 fi
4374
4375 fi
4376 if test -z "$CC"; then
4377   # Extract the first word of "cc", so it can be a program name with args.
4378 set dummy cc; ac_word=$2
4379 echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4381 if test "${ac_cv_prog_CC+set}" = set; then
4382   echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384   if test -n "$CC"; then
4385   ac_cv_prog_CC="$CC" # Let the user override the test.
4386 else
4387   ac_prog_rejected=no
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4390 do
4391   IFS=$as_save_IFS
4392   test -z "$as_dir" && as_dir=.
4393   for ac_exec_ext in '' $ac_executable_extensions; do
4394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4395     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4396        ac_prog_rejected=yes
4397        continue
4398      fi
4399     ac_cv_prog_CC="cc"
4400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401     break 2
4402   fi
4403 done
4404 done
4405
4406 if test $ac_prog_rejected = yes; then
4407   # We found a bogon in the path, so make sure we never use it.
4408   set dummy $ac_cv_prog_CC
4409   shift
4410   if test $# != 0; then
4411     # We chose a different compiler from the bogus one.
4412     # However, it has the same basename, so the bogon will be chosen
4413     # first if we set CC to just the basename; use the full file name.
4414     shift
4415     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4416   fi
4417 fi
4418 fi
4419 fi
4420 CC=$ac_cv_prog_CC
4421 if test -n "$CC"; then
4422   echo "$as_me:$LINENO: result: $CC" >&5
4423 echo "${ECHO_T}$CC" >&6
4424 else
4425   echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6
4427 fi
4428
4429 fi
4430 if test -z "$CC"; then
4431   if test -n "$ac_tool_prefix"; then
4432   for ac_prog in cl
4433   do
4434     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4436 echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4438 if test "${ac_cv_prog_CC+set}" = set; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441   if test -n "$CC"; then
4442   ac_cv_prog_CC="$CC" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449   for ac_exec_ext in '' $ac_executable_extensions; do
4450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4451     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453     break 2
4454   fi
4455 done
4456 done
4457
4458 fi
4459 fi
4460 CC=$ac_cv_prog_CC
4461 if test -n "$CC"; then
4462   echo "$as_me:$LINENO: result: $CC" >&5
4463 echo "${ECHO_T}$CC" >&6
4464 else
4465   echo "$as_me:$LINENO: result: no" >&5
4466 echo "${ECHO_T}no" >&6
4467 fi
4468
4469     test -n "$CC" && break
4470   done
4471 fi
4472 if test -z "$CC"; then
4473   ac_ct_CC=$CC
4474   for ac_prog in cl
4475 do
4476   # Extract the first word of "$ac_prog", so it can be a program name with args.
4477 set dummy $ac_prog; ac_word=$2
4478 echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   if test -n "$ac_ct_CC"; then
4484   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491   for ac_exec_ext in '' $ac_executable_extensions; do
4492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493     ac_cv_prog_ac_ct_CC="$ac_prog"
4494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498 done
4499
4500 fi
4501 fi
4502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4503 if test -n "$ac_ct_CC"; then
4504   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4505 echo "${ECHO_T}$ac_ct_CC" >&6
4506 else
4507   echo "$as_me:$LINENO: result: no" >&5
4508 echo "${ECHO_T}no" >&6
4509 fi
4510
4511   test -n "$ac_ct_CC" && break
4512 done
4513
4514   CC=$ac_ct_CC
4515 fi
4516
4517 fi
4518
4519
4520 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4521 See \`config.log' for more details." >&5
4522 echo "$as_me: error: no acceptable C compiler found in \$PATH
4523 See \`config.log' for more details." >&2;}
4524    { (exit 1); exit 1; }; }
4525
4526 # Provide some information about the compiler.
4527 echo "$as_me:$LINENO:" \
4528      "checking for C compiler version" >&5
4529 ac_compiler=`set X $ac_compile; echo $2`
4530 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4531   (eval $ac_compiler --version </dev/null >&5) 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); }
4535 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4536   (eval $ac_compiler -v </dev/null >&5) 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }
4540 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4541   (eval $ac_compiler -V </dev/null >&5) 2>&5
4542   ac_status=$?
4543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544   (exit $ac_status); }
4545
4546 cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h.  */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h.  */
4552
4553 int
4554 main ()
4555 {
4556
4557   ;
4558   return 0;
4559 }
4560 _ACEOF
4561 ac_clean_files_save=$ac_clean_files
4562 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4563 # Try to create an executable without -o first, disregard a.out.
4564 # It will help us diagnose broken compilers, and finding out an intuition
4565 # of exeext.
4566 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4567 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4568 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4569 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4570   (eval $ac_link_default) 2>&5
4571   ac_status=$?
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); }; then
4574   # Find the output, starting from the most likely.  This scheme is
4575 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4576 # resort.
4577
4578 # Be careful to initialize this variable, since it used to be cached.
4579 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4580 ac_cv_exeext=
4581 # b.out is created by i960 compilers.
4582 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4583 do
4584   test -f "$ac_file" || continue
4585   case $ac_file in
4586     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4587         ;;
4588     conftest.$ac_ext )
4589         # This is the source file.
4590         ;;
4591     [ab].out )
4592         # We found the default executable, but exeext='' is most
4593         # certainly right.
4594         break;;
4595     *.* )
4596         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4597         # FIXME: I believe we export ac_cv_exeext for Libtool,
4598         # but it would be cool to find out if it's true.  Does anybody
4599         # maintain Libtool? --akim.
4600         export ac_cv_exeext
4601         break;;
4602     * )
4603         break;;
4604   esac
4605 done
4606 else
4607   echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4611 See \`config.log' for more details." >&5
4612 echo "$as_me: error: C compiler cannot create executables
4613 See \`config.log' for more details." >&2;}
4614    { (exit 77); exit 77; }; }
4615 fi
4616
4617 ac_exeext=$ac_cv_exeext
4618 echo "$as_me:$LINENO: result: $ac_file" >&5
4619 echo "${ECHO_T}$ac_file" >&6
4620
4621 # Check the compiler produces executables we can run.  If not, either
4622 # the compiler is broken, or we cross compile.
4623 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4624 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4625 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4626 # If not cross compiling, check that we can run a simple program.
4627 if test "$cross_compiling" != yes; then
4628   if { ac_try='./$ac_file'
4629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630   (eval $ac_try) 2>&5
4631   ac_status=$?
4632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633   (exit $ac_status); }; }; then
4634     cross_compiling=no
4635   else
4636     if test "$cross_compiling" = maybe; then
4637         cross_compiling=yes
4638     else
4639         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4640 If you meant to cross compile, use \`--host'.
4641 See \`config.log' for more details." >&5
4642 echo "$as_me: error: cannot run C compiled programs.
4643 If you meant to cross compile, use \`--host'.
4644 See \`config.log' for more details." >&2;}
4645    { (exit 1); exit 1; }; }
4646     fi
4647   fi
4648 fi
4649 echo "$as_me:$LINENO: result: yes" >&5
4650 echo "${ECHO_T}yes" >&6
4651
4652 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4653 ac_clean_files=$ac_clean_files_save
4654 # Check the compiler produces executables we can run.  If not, either
4655 # the compiler is broken, or we cross compile.
4656 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4657 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4658 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4659 echo "${ECHO_T}$cross_compiling" >&6
4660
4661 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4662 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4664   (eval $ac_link) 2>&5
4665   ac_status=$?
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); }; then
4668   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4669 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4670 # work properly (i.e., refer to `conftest.exe'), while it won't with
4671 # `rm'.
4672 for ac_file in conftest.exe conftest conftest.*; do
4673   test -f "$ac_file" || continue
4674   case $ac_file in
4675     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4676     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4677           export ac_cv_exeext
4678           break;;
4679     * ) break;;
4680   esac
4681 done
4682 else
4683   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4684 See \`config.log' for more details." >&5
4685 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4686 See \`config.log' for more details." >&2;}
4687    { (exit 1); exit 1; }; }
4688 fi
4689
4690 rm -f conftest$ac_cv_exeext
4691 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4692 echo "${ECHO_T}$ac_cv_exeext" >&6
4693
4694 rm -f conftest.$ac_ext
4695 EXEEXT=$ac_cv_exeext
4696 ac_exeext=$EXEEXT
4697 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4698 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4699 if test "${ac_cv_objext+set}" = set; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702   cat >conftest.$ac_ext <<_ACEOF
4703 /* confdefs.h.  */
4704 _ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h.  */
4708
4709 int
4710 main ()
4711 {
4712
4713   ;
4714   return 0;
4715 }
4716 _ACEOF
4717 rm -f conftest.o conftest.obj
4718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719   (eval $ac_compile) 2>&5
4720   ac_status=$?
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); }; then
4723   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4724   case $ac_file in
4725     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4726     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4727        break;;
4728   esac
4729 done
4730 else
4731   echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4733
4734 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4735 See \`config.log' for more details." >&5
4736 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4737 See \`config.log' for more details." >&2;}
4738    { (exit 1); exit 1; }; }
4739 fi
4740
4741 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4742 fi
4743 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4744 echo "${ECHO_T}$ac_cv_objext" >&6
4745 OBJEXT=$ac_cv_objext
4746 ac_objext=$OBJEXT
4747 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4748 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4749 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4750   echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752   cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h.  */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h.  */
4758
4759 int
4760 main ()
4761 {
4762 #ifndef __GNUC__
4763        choke me
4764 #endif
4765
4766   ;
4767   return 0;
4768 }
4769 _ACEOF
4770 rm -f conftest.$ac_objext
4771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4772   (eval $ac_compile) 2>conftest.er1
4773   ac_status=$?
4774   grep -v '^ *+' conftest.er1 >conftest.err
4775   rm -f conftest.er1
4776   cat conftest.err >&5
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); } &&
4779          { ac_try='test -z "$ac_c_werror_flag"
4780                          || test ! -s conftest.err'
4781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782   (eval $ac_try) 2>&5
4783   ac_status=$?
4784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); }; } &&
4786          { ac_try='test -s conftest.$ac_objext'
4787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788   (eval $ac_try) 2>&5
4789   ac_status=$?
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); }; }; then
4792   ac_compiler_gnu=yes
4793 else
4794   echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4796
4797 ac_compiler_gnu=no
4798 fi
4799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4800 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4801
4802 fi
4803 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4804 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4805 GCC=`test $ac_compiler_gnu = yes && echo yes`
4806 ac_test_CFLAGS=${CFLAGS+set}
4807 ac_save_CFLAGS=$CFLAGS
4808 CFLAGS="-g"
4809 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4810 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4811 if test "${ac_cv_prog_cc_g+set}" = set; then
4812   echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814   cat >conftest.$ac_ext <<_ACEOF
4815 /* confdefs.h.  */
4816 _ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h.  */
4820
4821 int
4822 main ()
4823 {
4824
4825   ;
4826   return 0;
4827 }
4828 _ACEOF
4829 rm -f conftest.$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831   (eval $ac_compile) 2>conftest.er1
4832   ac_status=$?
4833   grep -v '^ *+' conftest.er1 >conftest.err
4834   rm -f conftest.er1
4835   cat conftest.err >&5
4836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837   (exit $ac_status); } &&
4838          { ac_try='test -z "$ac_c_werror_flag"
4839                          || test ! -s conftest.err'
4840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841   (eval $ac_try) 2>&5
4842   ac_status=$?
4843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844   (exit $ac_status); }; } &&
4845          { ac_try='test -s conftest.$ac_objext'
4846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847   (eval $ac_try) 2>&5
4848   ac_status=$?
4849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850   (exit $ac_status); }; }; then
4851   ac_cv_prog_cc_g=yes
4852 else
4853   echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4855
4856 ac_cv_prog_cc_g=no
4857 fi
4858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4859 fi
4860 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4861 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4862 if test "$ac_test_CFLAGS" = set; then
4863   CFLAGS=$ac_save_CFLAGS
4864 elif test $ac_cv_prog_cc_g = yes; then
4865   if test "$GCC" = yes; then
4866     CFLAGS="-g -O2"
4867   else
4868     CFLAGS="-g"
4869   fi
4870 else
4871   if test "$GCC" = yes; then
4872     CFLAGS="-O2"
4873   else
4874     CFLAGS=
4875   fi
4876 fi
4877 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4878 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4879 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   ac_cv_prog_cc_stdc=no
4883 ac_save_CC=$CC
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h.  */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h.  */
4890 #include <stdarg.h>
4891 #include <stdio.h>
4892 #include <sys/types.h>
4893 #include <sys/stat.h>
4894 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4895 struct buf { int x; };
4896 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4897 static char *e (p, i)
4898      char **p;
4899      int i;
4900 {
4901   return p[i];
4902 }
4903 static char *f (char * (*g) (char **, int), char **p, ...)
4904 {
4905   char *s;
4906   va_list v;
4907   va_start (v,p);
4908   s = g (p, va_arg (v,int));
4909   va_end (v);
4910   return s;
4911 }
4912
4913 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4914    function prototypes and stuff, but not '\xHH' hex character constants.
4915    These don't provoke an error unfortunately, instead are silently treated
4916    as 'x'.  The following induces an error, until -std1 is added to get
4917    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4918    array size at least.  It's necessary to write '\x00'==0 to get something
4919    that's true only with -std1.  */
4920 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4921
4922 int test (int i, double x);
4923 struct s1 {int (*f) (int a);};
4924 struct s2 {int (*f) (double a);};
4925 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4926 int argc;
4927 char **argv;
4928 int
4929 main ()
4930 {
4931 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4932   ;
4933   return 0;
4934 }
4935 _ACEOF
4936 # Don't try gcc -ansi; that turns off useful extensions and
4937 # breaks some systems' header files.
4938 # AIX                   -qlanglvl=ansi
4939 # Ultrix and OSF/1      -std1
4940 # HP-UX 10.20 and later -Ae
4941 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4942 # SVR4                  -Xc -D__EXTENSIONS__
4943 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4944 do
4945   CC="$ac_save_CC $ac_arg"
4946   rm -f conftest.$ac_objext
4947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4948   (eval $ac_compile) 2>conftest.er1
4949   ac_status=$?
4950   grep -v '^ *+' conftest.er1 >conftest.err
4951   rm -f conftest.er1
4952   cat conftest.err >&5
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); } &&
4955          { ac_try='test -z "$ac_c_werror_flag"
4956                          || test ! -s conftest.err'
4957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958   (eval $ac_try) 2>&5
4959   ac_status=$?
4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); }; } &&
4962          { ac_try='test -s conftest.$ac_objext'
4963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964   (eval $ac_try) 2>&5
4965   ac_status=$?
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); }; }; then
4968   ac_cv_prog_cc_stdc=$ac_arg
4969 break
4970 else
4971   echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4973
4974 fi
4975 rm -f conftest.err conftest.$ac_objext
4976 done
4977 rm -f conftest.$ac_ext conftest.$ac_objext
4978 CC=$ac_save_CC
4979
4980 fi
4981
4982 case "x$ac_cv_prog_cc_stdc" in
4983   x|xno)
4984     echo "$as_me:$LINENO: result: none needed" >&5
4985 echo "${ECHO_T}none needed" >&6 ;;
4986   *)
4987     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4988 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4989     CC="$CC $ac_cv_prog_cc_stdc" ;;
4990 esac
4991
4992 # Some people use a C++ compiler to compile C.  Since we use `exit',
4993 # in C++ we need to declare it.  In case someone uses the same compiler
4994 # for both compiling C and C++ we need to have the C++ compiler decide
4995 # the declaration of exit, since it's the most demanding environment.
4996 cat >conftest.$ac_ext <<_ACEOF
4997 #ifndef __cplusplus
4998   choke me
4999 #endif
5000 _ACEOF
5001 rm -f conftest.$ac_objext
5002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003   (eval $ac_compile) 2>conftest.er1
5004   ac_status=$?
5005   grep -v '^ *+' conftest.er1 >conftest.err
5006   rm -f conftest.er1
5007   cat conftest.err >&5
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); } &&
5010          { ac_try='test -z "$ac_c_werror_flag"
5011                          || test ! -s conftest.err'
5012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013   (eval $ac_try) 2>&5
5014   ac_status=$?
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); }; } &&
5017          { ac_try='test -s conftest.$ac_objext'
5018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019   (eval $ac_try) 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); }; }; then
5023   for ac_declaration in \
5024    '' \
5025    'extern "C" void std::exit (int) throw (); using std::exit;' \
5026    'extern "C" void std::exit (int); using std::exit;' \
5027    'extern "C" void exit (int) throw ();' \
5028    'extern "C" void exit (int);' \
5029    'void exit (int);'
5030 do
5031   cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h.  */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h.  */
5037 $ac_declaration
5038 #include <stdlib.h>
5039 int
5040 main ()
5041 {
5042 exit (42);
5043   ;
5044   return 0;
5045 }
5046 _ACEOF
5047 rm -f conftest.$ac_objext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049   (eval $ac_compile) 2>conftest.er1
5050   ac_status=$?
5051   grep -v '^ *+' conftest.er1 >conftest.err
5052   rm -f conftest.er1
5053   cat conftest.err >&5
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); } &&
5056          { ac_try='test -z "$ac_c_werror_flag"
5057                          || test ! -s conftest.err'
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); }; } &&
5063          { ac_try='test -s conftest.$ac_objext'
5064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065   (eval $ac_try) 2>&5
5066   ac_status=$?
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); }; }; then
5069   :
5070 else
5071   echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5073
5074 continue
5075 fi
5076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5077   cat >conftest.$ac_ext <<_ACEOF
5078 /* confdefs.h.  */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h.  */
5083 $ac_declaration
5084 int
5085 main ()
5086 {
5087 exit (42);
5088   ;
5089   return 0;
5090 }
5091 _ACEOF
5092 rm -f conftest.$ac_objext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5094   (eval $ac_compile) 2>conftest.er1
5095   ac_status=$?
5096   grep -v '^ *+' conftest.er1 >conftest.err
5097   rm -f conftest.er1
5098   cat conftest.err >&5
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); } &&
5101          { ac_try='test -z "$ac_c_werror_flag"
5102                          || test ! -s conftest.err'
5103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104   (eval $ac_try) 2>&5
5105   ac_status=$?
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); }; } &&
5108          { ac_try='test -s conftest.$ac_objext'
5109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110   (eval $ac_try) 2>&5
5111   ac_status=$?
5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); }; }; then
5114   break
5115 else
5116   echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 fi
5120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5121 done
5122 rm -f conftest*
5123 if test -n "$ac_declaration"; then
5124   echo '#ifdef __cplusplus' >>confdefs.h
5125   echo $ac_declaration      >>confdefs.h
5126   echo '#endif'             >>confdefs.h
5127 fi
5128
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 fi
5134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5135 ac_ext=c
5136 ac_cpp='$CPP $CPPFLAGS'
5137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5140
5141 depcc="$CC"   am_compiler_list=
5142
5143 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5144 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5145 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5146   echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5149   # We make a subdir and do the tests there.  Otherwise we can end up
5150   # making bogus files that we don't know about and never remove.  For
5151   # instance it was reported that on HP-UX the gcc test will end up
5152   # making a dummy file named `D' -- because `-MD' means `put the output
5153   # in D'.
5154   mkdir conftest.dir
5155   # Copy depcomp to subdir because otherwise we won't find it if we're
5156   # using a relative directory.
5157   cp "$am_depcomp" conftest.dir
5158   cd conftest.dir
5159   # We will build objects and dependencies in a subdirectory because
5160   # it helps to detect inapplicable dependency modes.  For instance
5161   # both Tru64's cc and ICC support -MD to output dependencies as a
5162   # side effect of compilation, but ICC will put the dependencies in
5163   # the current directory while Tru64 will put them in the object
5164   # directory.
5165   mkdir sub
5166
5167   am_cv_CC_dependencies_compiler_type=none
5168   if test "$am_compiler_list" = ""; then
5169      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5170   fi
5171   for depmode in $am_compiler_list; do
5172     # Setup a source with many dependencies, because some compilers
5173     # like to wrap large dependency lists on column 80 (with \), and
5174     # we should not choose a depcomp mode which is confused by this.
5175     #
5176     # We need to recreate these files for each test, as the compiler may
5177     # overwrite some of them when testing with obscure command lines.
5178     # This happens at least with the AIX C compiler.
5179     : > sub/conftest.c
5180     for i in 1 2 3 4 5 6; do
5181       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5182       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5183       # Solaris 8's {/usr,}/bin/sh.
5184       touch sub/conftst$i.h
5185     done
5186     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5187
5188     case $depmode in
5189     nosideeffect)
5190       # after this tag, mechanisms are not by side-effect, so they'll
5191       # only be used when explicitly requested
5192       if test "x$enable_dependency_tracking" = xyes; then
5193         continue
5194       else
5195         break
5196       fi
5197       ;;
5198     none) break ;;
5199     esac
5200     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5201     # mode.  It turns out that the SunPro C++ compiler does not properly
5202     # handle `-M -o', and we need to detect this.
5203     if depmode=$depmode \
5204        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5205        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5206        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5207          >/dev/null 2>conftest.err &&
5208        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5209        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5210        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5211       # icc doesn't choke on unknown options, it will just issue warnings
5212       # or remarks (even with -Werror).  So we grep stderr for any message
5213       # that says an option was ignored or not supported.
5214       # When given -MP, icc 7.0 and 7.1 complain thusly:
5215       #   icc: Command line warning: ignoring option '-M'; no argument required
5216       # The diagnosis changed in icc 8.0:
5217       #   icc: Command line remark: option '-MP' not supported
5218       if (grep 'ignoring option' conftest.err ||
5219           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5220         am_cv_CC_dependencies_compiler_type=$depmode
5221         break
5222       fi
5223     fi
5224   done
5225
5226   cd ..
5227   rm -rf conftest.dir
5228 else
5229   am_cv_CC_dependencies_compiler_type=none
5230 fi
5231
5232 fi
5233 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5234 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5235 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5236
5237
5238
5239 if
5240   test "x$enable_dependency_tracking" != xno \
5241   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5242   am__fastdepCC_TRUE=
5243   am__fastdepCC_FALSE='#'
5244 else
5245   am__fastdepCC_TRUE='#'
5246   am__fastdepCC_FALSE=
5247 fi
5248
5249
5250 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5251 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5252 if test "${lt_cv_path_SED+set}" = set; then
5253   echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255   # Loop through the user's path and test for sed and gsed.
5256 # Then use that list of sed's as ones to test for truncation.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260   IFS=$as_save_IFS
5261   test -z "$as_dir" && as_dir=.
5262   for lt_ac_prog in sed gsed; do
5263     for ac_exec_ext in '' $ac_executable_extensions; do
5264       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5265         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5266       fi
5267     done
5268   done
5269 done
5270 lt_ac_max=0
5271 lt_ac_count=0
5272 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5273 # along with /bin/sed that truncates output.
5274 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5275   test ! -f $lt_ac_sed && continue
5276   cat /dev/null > conftest.in
5277   lt_ac_count=0
5278   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5279   # Check for GNU sed and select it if it is found.
5280   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5281     lt_cv_path_SED=$lt_ac_sed
5282     break
5283   fi
5284   while true; do
5285     cat conftest.in conftest.in >conftest.tmp
5286     mv conftest.tmp conftest.in
5287     cp conftest.in conftest.nl
5288     echo >>conftest.nl
5289     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5290     cmp -s conftest.out conftest.nl || break
5291     # 10000 chars as input seems more than enough
5292     test $lt_ac_count -gt 10 && break
5293     lt_ac_count=`expr $lt_ac_count + 1`
5294     if test $lt_ac_count -gt $lt_ac_max; then
5295       lt_ac_max=$lt_ac_count
5296       lt_cv_path_SED=$lt_ac_sed
5297     fi
5298   done
5299 done
5300
5301 fi
5302
5303 SED=$lt_cv_path_SED
5304 echo "$as_me:$LINENO: result: $SED" >&5
5305 echo "${ECHO_T}$SED" >&6
5306
5307 echo "$as_me:$LINENO: checking for egrep" >&5
5308 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5309 if test "${ac_cv_prog_egrep+set}" = set; then
5310   echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5313     then ac_cv_prog_egrep='grep -E'
5314     else ac_cv_prog_egrep='egrep'
5315     fi
5316 fi
5317 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5318 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5319  EGREP=$ac_cv_prog_egrep
5320
5321
5322
5323 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5324 if test "${with_gnu_ld+set}" = set; then
5325   withval="$with_gnu_ld"
5326   test "$withval" = no || with_gnu_ld=yes
5327 else
5328   with_gnu_ld=no
5329 fi;
5330 ac_prog=ld
5331 if test "$GCC" = yes; then
5332   # Check if gcc -print-prog-name=ld gives a path.
5333   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5334 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5335   case $host in
5336   *-*-mingw*)
5337     # gcc leaves a trailing carriage return which upsets mingw
5338     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5339   *)
5340     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5341   esac
5342   case $ac_prog in
5343     # Accept absolute paths.
5344     [\\/]* | ?:[\\/]*)
5345       re_direlt='/[^/][^/]*/\.\./'
5346       # Canonicalize the pathname of ld
5347       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5348       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5349         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5350       done
5351       test -z "$LD" && LD="$ac_prog"
5352       ;;
5353   "")
5354     # If it fails, then pretend we aren't using GCC.
5355     ac_prog=ld
5356     ;;
5357   *)
5358     # If it is relative, then search for the first ld in PATH.
5359     with_gnu_ld=unknown
5360     ;;
5361   esac
5362 elif test "$with_gnu_ld" = yes; then
5363   echo "$as_me:$LINENO: checking for GNU ld" >&5
5364 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5365 else
5366   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5367 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5368 fi
5369 if test "${lt_cv_path_LD+set}" = set; then
5370   echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372   if test -z "$LD"; then
5373   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5374   for ac_dir in $PATH; do
5375     IFS="$lt_save_ifs"
5376     test -z "$ac_dir" && ac_dir=.
5377     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5378       lt_cv_path_LD="$ac_dir/$ac_prog"
5379       # Check to see if the program is GNU ld.  I'd rather use --version,
5380       # but apparently some variants of GNU ld only accept -v.
5381       # Break only if it was the GNU/non-GNU ld that we prefer.
5382       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5383       *GNU* | *'with BFD'*)
5384         test "$with_gnu_ld" != no && break
5385         ;;
5386       *)
5387         test "$with_gnu_ld" != yes && break
5388         ;;
5389       esac
5390     fi
5391   done
5392   IFS="$lt_save_ifs"
5393 else
5394   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5395 fi
5396 fi
5397
5398 LD="$lt_cv_path_LD"
5399 if test -n "$LD"; then
5400   echo "$as_me:$LINENO: result: $LD" >&5
5401 echo "${ECHO_T}$LD" >&6
5402 else
5403   echo "$as_me:$LINENO: result: no" >&5
5404 echo "${ECHO_T}no" >&6
5405 fi
5406 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5407 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5408    { (exit 1); exit 1; }; }
5409 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5410 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5411 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5412   echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5415 case `$LD -v 2>&1 </dev/null` in
5416 *GNU* | *'with BFD'*)
5417   lt_cv_prog_gnu_ld=yes
5418   ;;
5419 *)
5420   lt_cv_prog_gnu_ld=no
5421   ;;
5422 esac
5423 fi
5424 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5425 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5426 with_gnu_ld=$lt_cv_prog_gnu_ld
5427
5428
5429 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5430 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5431 if test "${lt_cv_ld_reload_flag+set}" = set; then
5432   echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434   lt_cv_ld_reload_flag='-r'
5435 fi
5436 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5437 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5438 reload_flag=$lt_cv_ld_reload_flag
5439 case $reload_flag in
5440 "" | " "*) ;;
5441 *) reload_flag=" $reload_flag" ;;
5442 esac
5443 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5444 case $host_os in
5445   darwin*)
5446     if test "$GCC" = yes; then
5447       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5448     else
5449       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5450     fi
5451     ;;
5452 esac
5453
5454 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5455 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5456 if test "${lt_cv_path_NM+set}" = set; then
5457   echo $ECHO_N "(cached) $ECHO_C" >&6
5458 else
5459   if test -n "$NM"; then
5460   # Let the user override the test.
5461   lt_cv_path_NM="$NM"
5462 else
5463   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5464   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5465     IFS="$lt_save_ifs"
5466     test -z "$ac_dir" && ac_dir=.
5467     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5468     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5469       # Check to see if the nm accepts a BSD-compat flag.
5470       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5471       #   nm: unknown option "B" ignored
5472       # Tru64's nm complains that /dev/null is an invalid object file
5473       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5474       */dev/null* | *'Invalid file or object type'*)
5475         lt_cv_path_NM="$tmp_nm -B"
5476         break
5477         ;;
5478       *)
5479         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5480         */dev/null*)
5481           lt_cv_path_NM="$tmp_nm -p"
5482           break
5483           ;;
5484         *)
5485           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5486           continue # so that we can try to find one that supports BSD flags
5487           ;;
5488         esac
5489       esac
5490     fi
5491   done
5492   IFS="$lt_save_ifs"
5493   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5494 fi
5495 fi
5496 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5497 echo "${ECHO_T}$lt_cv_path_NM" >&6
5498 NM="$lt_cv_path_NM"
5499
5500 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5501 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5502 LN_S=$as_ln_s
5503 if test "$LN_S" = "ln -s"; then
5504   echo "$as_me:$LINENO: result: yes" >&5
5505 echo "${ECHO_T}yes" >&6
5506 else
5507   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5508 echo "${ECHO_T}no, using $LN_S" >&6
5509 fi
5510
5511 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5512 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5513 if test "${lt_cv_deplibs_check_method+set}" = set; then
5514   echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516   lt_cv_file_magic_cmd='$MAGIC_CMD'
5517 lt_cv_file_magic_test_file=
5518 lt_cv_deplibs_check_method='unknown'
5519 # Need to set the preceding variable on all platforms that support
5520 # interlibrary dependencies.
5521 # 'none' -- dependencies not supported.
5522 # `unknown' -- same as none, but documents that we really don't know.
5523 # 'pass_all' -- all dependencies passed with no checks.
5524 # 'test_compile' -- check by making test program.
5525 # 'file_magic [[regex]]' -- check by looking for files in library path
5526 # which responds to the $file_magic_cmd with a given extended regex.
5527 # If you have `file' or equivalent on your system and you're not sure
5528 # whether `pass_all' will *always* work, you probably want this one.
5529
5530 case $host_os in
5531 aix4* | aix5*)
5532   lt_cv_deplibs_check_method=pass_all
5533   ;;
5534
5535 beos*)
5536   lt_cv_deplibs_check_method=pass_all
5537   ;;
5538
5539 bsdi[45]*)
5540   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5541   lt_cv_file_magic_cmd='/usr/bin/file -L'
5542   lt_cv_file_magic_test_file=/shlib/libc.so
5543   ;;
5544
5545 cygwin*)
5546   # func_win32_libid is a shell function defined in ltmain.sh
5547   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5548   lt_cv_file_magic_cmd='func_win32_libid'
5549   ;;
5550
5551 mingw* | pw32*)
5552   # Base MSYS/MinGW do not provide the 'file' command needed by
5553   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5554   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5555   lt_cv_file_magic_cmd='$OBJDUMP -f'
5556   ;;
5557
5558 darwin* | rhapsody*)
5559   lt_cv_deplibs_check_method=pass_all
5560   ;;
5561
5562 freebsd* | kfreebsd*-gnu | dragonfly*)
5563   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5564     case $host_cpu in
5565     i*86 )
5566       # Not sure whether the presence of OpenBSD here was a mistake.
5567       # Let's accept both of them until this is cleared up.
5568       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5569       lt_cv_file_magic_cmd=/usr/bin/file
5570       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5571       ;;
5572     esac
5573   else
5574     lt_cv_deplibs_check_method=pass_all
5575   fi
5576   ;;
5577
5578 gnu*)
5579   lt_cv_deplibs_check_method=pass_all
5580   ;;
5581
5582 hpux10.20* | hpux11*)
5583   lt_cv_file_magic_cmd=/usr/bin/file
5584   case $host_cpu in
5585   ia64*)
5586     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5587     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5588     ;;
5589   hppa*64*)
5590     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]'
5591     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5592     ;;
5593   *)
5594     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5595     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5596     ;;
5597   esac
5598   ;;
5599
5600 irix5* | irix6* | nonstopux*)
5601   case $LD in
5602   *-32|*"-32 ") libmagic=32-bit;;
5603   *-n32|*"-n32 ") libmagic=N32;;
5604   *-64|*"-64 ") libmagic=64-bit;;
5605   *) libmagic=never-match;;
5606   esac
5607   lt_cv_deplibs_check_method=pass_all
5608   ;;
5609
5610 # This must be Linux ELF.
5611 linux*)
5612   lt_cv_deplibs_check_method=pass_all
5613   ;;
5614
5615 netbsd*)
5616   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5617     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5618   else
5619     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5620   fi
5621   ;;
5622
5623 newos6*)
5624   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5625   lt_cv_file_magic_cmd=/usr/bin/file
5626   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5627   ;;
5628
5629 nto-qnx*)
5630   lt_cv_deplibs_check_method=unknown
5631   ;;
5632
5633 openbsd*)
5634   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5635     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5636   else
5637     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5638   fi
5639   ;;
5640
5641 osf3* | osf4* | osf5*)
5642   lt_cv_deplibs_check_method=pass_all
5643   ;;
5644
5645 sco3.2v5*)
5646   lt_cv_deplibs_check_method=pass_all
5647   ;;
5648
5649 solaris*)
5650   lt_cv_deplibs_check_method=pass_all
5651   ;;
5652
5653 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5654   case $host_vendor in
5655   motorola)
5656     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]'
5657     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5658     ;;
5659   ncr)
5660     lt_cv_deplibs_check_method=pass_all
5661     ;;
5662   sequent)
5663     lt_cv_file_magic_cmd='/bin/file'
5664     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5665     ;;
5666   sni)
5667     lt_cv_file_magic_cmd='/bin/file'
5668     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5669     lt_cv_file_magic_test_file=/lib/libc.so
5670     ;;
5671   siemens)
5672     lt_cv_deplibs_check_method=pass_all
5673     ;;
5674   esac
5675   ;;
5676
5677 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5678   lt_cv_deplibs_check_method=pass_all
5679   ;;
5680 esac
5681
5682 fi
5683 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5684 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5685 file_magic_cmd=$lt_cv_file_magic_cmd
5686 deplibs_check_method=$lt_cv_deplibs_check_method
5687 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5688
5689
5690
5691
5692 # If no C compiler was specified, use CC.
5693 LTCC=${LTCC-"$CC"}
5694
5695 # Allow CC to be a program name with arguments.
5696 compiler=$CC
5697
5698
5699 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5700 if test "${enable_libtool_lock+set}" = set; then
5701   enableval="$enable_libtool_lock"
5702
5703 fi;
5704 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5705
5706 # Some flags need to be propagated to the compiler or linker for good
5707 # libtool support.
5708 case $host in
5709 ia64-*-hpux*)
5710   # Find out which ABI we are using.
5711   echo 'int i;' > conftest.$ac_ext
5712   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713   (eval $ac_compile) 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); }; then
5717     case `/usr/bin/file conftest.$ac_objext` in
5718     *ELF-32*)
5719       HPUX_IA64_MODE="32"
5720       ;;
5721     *ELF-64*)
5722       HPUX_IA64_MODE="64"
5723       ;;
5724     esac
5725   fi
5726   rm -rf conftest*
5727   ;;
5728 *-*-irix6*)
5729   # Find out which ABI we are using.
5730   echo '#line 5730 "configure"' > conftest.$ac_ext
5731   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732   (eval $ac_compile) 2>&5
5733   ac_status=$?
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); }; then
5736    if test "$lt_cv_prog_gnu_ld" = yes; then
5737     case `/usr/bin/file conftest.$ac_objext` in
5738     *32-bit*)
5739       LD="${LD-ld} -melf32bsmip"
5740       ;;
5741     *N32*)
5742       LD="${LD-ld} -melf32bmipn32"
5743       ;;
5744     *64-bit*)
5745       LD="${LD-ld} -melf64bmip"
5746       ;;
5747     esac
5748    else
5749     case `/usr/bin/file conftest.$ac_objext` in
5750     *32-bit*)
5751       LD="${LD-ld} -32"
5752       ;;
5753     *N32*)
5754       LD="${LD-ld} -n32"
5755       ;;
5756     *64-bit*)
5757       LD="${LD-ld} -64"
5758       ;;
5759     esac
5760    fi
5761   fi
5762   rm -rf conftest*
5763   ;;
5764
5765 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5766   # Find out which ABI we are using.
5767   echo 'int i;' > conftest.$ac_ext
5768   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769   (eval $ac_compile) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); }; then
5773     case `/usr/bin/file conftest.o` in
5774     *32-bit*)
5775       case $host in
5776         x86_64-*linux*)
5777           LD="${LD-ld} -m elf_i386"
5778           ;;
5779         ppc64-*linux*|powerpc64-*linux*)
5780           LD="${LD-ld} -m elf32ppclinux"
5781           ;;
5782         s390x-*linux*)
5783           LD="${LD-ld} -m elf_s390"
5784           ;;
5785         sparc64-*linux*)
5786           LD="${LD-ld} -m elf32_sparc"
5787           ;;
5788       esac
5789       ;;
5790     *64-bit*)
5791       case $host in
5792         x86_64-*linux*)
5793           LD="${LD-ld} -m elf_x86_64"
5794           ;;
5795         ppc*-*linux*|powerpc*-*linux*)
5796           LD="${LD-ld} -m elf64ppc"
5797           ;;
5798         s390*-*linux*)
5799           LD="${LD-ld} -m elf64_s390"
5800           ;;
5801         sparc*-*linux*)
5802           LD="${LD-ld} -m elf64_sparc"
5803           ;;
5804       esac
5805       ;;
5806     esac
5807   fi
5808   rm -rf conftest*
5809   ;;
5810
5811 *-*-sco3.2v5*)
5812   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5813   SAVE_CFLAGS="$CFLAGS"
5814   CFLAGS="$CFLAGS -belf"
5815   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5816 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5817 if test "${lt_cv_cc_needs_belf+set}" = set; then
5818   echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820   ac_ext=c
5821 ac_cpp='$CPP $CPPFLAGS'
5822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5825
5826      cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h.  */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h.  */
5832
5833 int
5834 main ()
5835 {
5836
5837   ;
5838   return 0;
5839 }
5840 _ACEOF
5841 rm -f conftest.$ac_objext conftest$ac_exeext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5843   (eval $ac_link) 2>conftest.er1
5844   ac_status=$?
5845   grep -v '^ *+' conftest.er1 >conftest.err
5846   rm -f conftest.er1
5847   cat conftest.err >&5
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); } &&
5850          { ac_try='test -z "$ac_c_werror_flag"
5851                          || test ! -s conftest.err'
5852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853   (eval $ac_try) 2>&5
5854   ac_status=$?
5855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856   (exit $ac_status); }; } &&
5857          { ac_try='test -s conftest$ac_exeext'
5858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859   (eval $ac_try) 2>&5
5860   ac_status=$?
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); }; }; then
5863   lt_cv_cc_needs_belf=yes
5864 else
5865   echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5867
5868 lt_cv_cc_needs_belf=no
5869 fi
5870 rm -f conftest.err conftest.$ac_objext \
5871       conftest$ac_exeext conftest.$ac_ext
5872      ac_ext=c
5873 ac_cpp='$CPP $CPPFLAGS'
5874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5877
5878 fi
5879 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5880 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5881   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5882     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5883     CFLAGS="$SAVE_CFLAGS"
5884   fi
5885   ;;
5886 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5887   if test -n "$ac_tool_prefix"; then
5888   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5889 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5890 echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5892 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895   if test -n "$DLLTOOL"; then
5896   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5897 else
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5900 do
5901   IFS=$as_save_IFS
5902   test -z "$as_dir" && as_dir=.
5903   for ac_exec_ext in '' $ac_executable_extensions; do
5904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907     break 2
5908   fi
5909 done
5910 done
5911
5912 fi
5913 fi
5914 DLLTOOL=$ac_cv_prog_DLLTOOL
5915 if test -n "$DLLTOOL"; then
5916   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5917 echo "${ECHO_T}$DLLTOOL" >&6
5918 else
5919   echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5921 fi
5922
5923 fi
5924 if test -z "$ac_cv_prog_DLLTOOL"; then
5925   ac_ct_DLLTOOL=$DLLTOOL
5926   # Extract the first word of "dlltool", so it can be a program name with args.
5927 set dummy dlltool; ac_word=$2
5928 echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5931   echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933   if test -n "$ac_ct_DLLTOOL"; then
5934   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939   IFS=$as_save_IFS
5940   test -z "$as_dir" && as_dir=.
5941   for ac_exec_ext in '' $ac_executable_extensions; do
5942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945     break 2
5946   fi
5947 done
5948 done
5949
5950   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5951 fi
5952 fi
5953 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5954 if test -n "$ac_ct_DLLTOOL"; then
5955   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5956 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5957 else
5958   echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5960 fi
5961
5962   DLLTOOL=$ac_ct_DLLTOOL
5963 else
5964   DLLTOOL="$ac_cv_prog_DLLTOOL"
5965 fi
5966
5967   if test -n "$ac_tool_prefix"; then
5968   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5969 set dummy ${ac_tool_prefix}as; ac_word=$2
5970 echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5972 if test "${ac_cv_prog_AS+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975   if test -n "$AS"; then
5976   ac_cv_prog_AS="$AS" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981   IFS=$as_save_IFS
5982   test -z "$as_dir" && as_dir=.
5983   for ac_exec_ext in '' $ac_executable_extensions; do
5984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985     ac_cv_prog_AS="${ac_tool_prefix}as"
5986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987     break 2
5988   fi
5989 done
5990 done
5991
5992 fi
5993 fi
5994 AS=$ac_cv_prog_AS
5995 if test -n "$AS"; then
5996   echo "$as_me:$LINENO: result: $AS" >&5
5997 echo "${ECHO_T}$AS" >&6
5998 else
5999   echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6
6001 fi
6002
6003 fi
6004 if test -z "$ac_cv_prog_AS"; then
6005   ac_ct_AS=$AS
6006   # Extract the first word of "as", so it can be a program name with args.
6007 set dummy as; ac_word=$2
6008 echo "$as_me:$LINENO: checking for $ac_word" >&5
6009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6010 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   if test -n "$ac_ct_AS"; then
6014   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019   IFS=$as_save_IFS
6020   test -z "$as_dir" && as_dir=.
6021   for ac_exec_ext in '' $ac_executable_extensions; do
6022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023     ac_cv_prog_ac_ct_AS="as"
6024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025     break 2
6026   fi
6027 done
6028 done
6029
6030   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6031 fi
6032 fi
6033 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6034 if test -n "$ac_ct_AS"; then
6035   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6036 echo "${ECHO_T}$ac_ct_AS" >&6
6037 else
6038   echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6
6040 fi
6041
6042   AS=$ac_ct_AS
6043 else
6044   AS="$ac_cv_prog_AS"
6045 fi
6046
6047   if test -n "$ac_tool_prefix"; then
6048   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6049 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6050 echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6052 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6053   echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055   if test -n "$OBJDUMP"; then
6056   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061   IFS=$as_save_IFS
6062   test -z "$as_dir" && as_dir=.
6063   for ac_exec_ext in '' $ac_executable_extensions; do
6064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067     break 2
6068   fi
6069 done
6070 done
6071
6072 fi
6073 fi
6074 OBJDUMP=$ac_cv_prog_OBJDUMP
6075 if test -n "$OBJDUMP"; then
6076   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6077 echo "${ECHO_T}$OBJDUMP" >&6
6078 else
6079   echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6
6081 fi
6082
6083 fi
6084 if test -z "$ac_cv_prog_OBJDUMP"; then
6085   ac_ct_OBJDUMP=$OBJDUMP
6086   # Extract the first word of "objdump", so it can be a program name with args.
6087 set dummy objdump; ac_word=$2
6088 echo "$as_me:$LINENO: checking for $ac_word" >&5
6089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6090 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6091   echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093   if test -n "$ac_ct_OBJDUMP"; then
6094   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099   IFS=$as_save_IFS
6100   test -z "$as_dir" && as_dir=.
6101   for ac_exec_ext in '' $ac_executable_extensions; do
6102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6103     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105     break 2
6106   fi
6107 done
6108 done
6109
6110   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6111 fi
6112 fi
6113 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6114 if test -n "$ac_ct_OBJDUMP"; then
6115   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6116 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6117 else
6118   echo "$as_me:$LINENO: result: no" >&5
6119 echo "${ECHO_T}no" >&6
6120 fi
6121
6122   OBJDUMP=$ac_ct_OBJDUMP
6123 else
6124   OBJDUMP="$ac_cv_prog_OBJDUMP"
6125 fi
6126
6127   ;;
6128
6129 esac
6130
6131 need_locks="$enable_libtool_lock"
6132
6133
6134 ac_ext=c
6135 ac_cpp='$CPP $CPPFLAGS'
6136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6139 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6140 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6141 # On Suns, sometimes $CPP names a directory.
6142 if test -n "$CPP" && test -d "$CPP"; then
6143   CPP=
6144 fi
6145 if test -z "$CPP"; then
6146   if test "${ac_cv_prog_CPP+set}" = set; then
6147   echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149       # Double quotes because CPP needs to be expanded
6150     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6151     do
6152       ac_preproc_ok=false
6153 for ac_c_preproc_warn_flag in '' yes
6154 do
6155   # Use a header file that comes with gcc, so configuring glibc
6156   # with a fresh cross-compiler works.
6157   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6158   # <limits.h> exists even on freestanding compilers.
6159   # On the NeXT, cc -E runs the code through the compiler's parser,
6160   # not just through cpp. "Syntax error" is here to catch this case.
6161   cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h.  */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h.  */
6167 #ifdef __STDC__
6168 # include <limits.h>
6169 #else
6170 # include <assert.h>
6171 #endif
6172                      Syntax error
6173 _ACEOF
6174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6175   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6176   ac_status=$?
6177   grep -v '^ *+' conftest.er1 >conftest.err
6178   rm -f conftest.er1
6179   cat conftest.err >&5
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); } >/dev/null; then
6182   if test -s conftest.err; then
6183     ac_cpp_err=$ac_c_preproc_warn_flag
6184     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6185   else
6186     ac_cpp_err=
6187   fi
6188 else
6189   ac_cpp_err=yes
6190 fi
6191 if test -z "$ac_cpp_err"; then
6192   :
6193 else
6194   echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6196
6197   # Broken: fails on valid input.
6198 continue
6199 fi
6200 rm -f conftest.err conftest.$ac_ext
6201
6202   # OK, works on sane cases.  Now check whether non-existent headers
6203   # can be detected and how.
6204   cat >conftest.$ac_ext <<_ACEOF
6205 /* confdefs.h.  */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h.  */
6210 #include <ac_nonexistent.h>
6211 _ACEOF
6212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6214   ac_status=$?
6215   grep -v '^ *+' conftest.er1 >conftest.err
6216   rm -f conftest.er1
6217   cat conftest.err >&5
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); } >/dev/null; then
6220   if test -s conftest.err; then
6221     ac_cpp_err=$ac_c_preproc_warn_flag
6222     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6223   else
6224     ac_cpp_err=
6225   fi
6226 else
6227   ac_cpp_err=yes
6228 fi
6229 if test -z "$ac_cpp_err"; then
6230   # Broken: success on invalid input.
6231 continue
6232 else
6233   echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6235
6236   # Passes both tests.
6237 ac_preproc_ok=:
6238 break
6239 fi
6240 rm -f conftest.err conftest.$ac_ext
6241
6242 done
6243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6244 rm -f conftest.err conftest.$ac_ext
6245 if $ac_preproc_ok; then
6246   break
6247 fi
6248
6249     done
6250     ac_cv_prog_CPP=$CPP
6251
6252 fi
6253   CPP=$ac_cv_prog_CPP
6254 else
6255   ac_cv_prog_CPP=$CPP
6256 fi
6257 echo "$as_me:$LINENO: result: $CPP" >&5
6258 echo "${ECHO_T}$CPP" >&6
6259 ac_preproc_ok=false
6260 for ac_c_preproc_warn_flag in '' yes
6261 do
6262   # Use a header file that comes with gcc, so configuring glibc
6263   # with a fresh cross-compiler works.
6264   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6265   # <limits.h> exists even on freestanding compilers.
6266   # On the NeXT, cc -E runs the code through the compiler's parser,
6267   # not just through cpp. "Syntax error" is here to catch this case.
6268   cat >conftest.$ac_ext <<_ACEOF
6269 /* confdefs.h.  */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h.  */
6274 #ifdef __STDC__
6275 # include <limits.h>
6276 #else
6277 # include <assert.h>
6278 #endif
6279                      Syntax error
6280 _ACEOF
6281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6282   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6283   ac_status=$?
6284   grep -v '^ *+' conftest.er1 >conftest.err
6285   rm -f conftest.er1
6286   cat conftest.err >&5
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); } >/dev/null; then
6289   if test -s conftest.err; then
6290     ac_cpp_err=$ac_c_preproc_warn_flag
6291     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6292   else
6293     ac_cpp_err=
6294   fi
6295 else
6296   ac_cpp_err=yes
6297 fi
6298 if test -z "$ac_cpp_err"; then
6299   :
6300 else
6301   echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304   # Broken: fails on valid input.
6305 continue
6306 fi
6307 rm -f conftest.err conftest.$ac_ext
6308
6309   # OK, works on sane cases.  Now check whether non-existent headers
6310   # can be detected and how.
6311   cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h.  */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h.  */
6317 #include <ac_nonexistent.h>
6318 _ACEOF
6319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6320   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6321   ac_status=$?
6322   grep -v '^ *+' conftest.er1 >conftest.err
6323   rm -f conftest.er1
6324   cat conftest.err >&5
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); } >/dev/null; then
6327   if test -s conftest.err; then
6328     ac_cpp_err=$ac_c_preproc_warn_flag
6329     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6330   else
6331     ac_cpp_err=
6332   fi
6333 else
6334   ac_cpp_err=yes
6335 fi
6336 if test -z "$ac_cpp_err"; then
6337   # Broken: success on invalid input.
6338 continue
6339 else
6340   echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6342
6343   # Passes both tests.
6344 ac_preproc_ok=:
6345 break
6346 fi
6347 rm -f conftest.err conftest.$ac_ext
6348
6349 done
6350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6351 rm -f conftest.err conftest.$ac_ext
6352 if $ac_preproc_ok; then
6353   :
6354 else
6355   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6356 See \`config.log' for more details." >&5
6357 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6358 See \`config.log' for more details." >&2;}
6359    { (exit 1); exit 1; }; }
6360 fi
6361
6362 ac_ext=c
6363 ac_cpp='$CPP $CPPFLAGS'
6364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6367
6368
6369 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6370 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6371 if test "${ac_cv_header_stdc+set}" = set; then
6372   echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374   cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h.  */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h.  */
6380 #include <stdlib.h>
6381 #include <stdarg.h>
6382 #include <string.h>
6383 #include <float.h>
6384
6385 int
6386 main ()
6387 {
6388
6389   ;
6390   return 0;
6391 }
6392 _ACEOF
6393 rm -f conftest.$ac_objext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6395   (eval $ac_compile) 2>conftest.er1
6396   ac_status=$?
6397   grep -v '^ *+' conftest.er1 >conftest.err
6398   rm -f conftest.er1
6399   cat conftest.err >&5
6400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401   (exit $ac_status); } &&
6402          { ac_try='test -z "$ac_c_werror_flag"
6403                          || test ! -s conftest.err'
6404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405   (eval $ac_try) 2>&5
6406   ac_status=$?
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); }; } &&
6409          { ac_try='test -s conftest.$ac_objext'
6410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411   (eval $ac_try) 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); }; }; then
6415   ac_cv_header_stdc=yes
6416 else
6417   echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6419
6420 ac_cv_header_stdc=no
6421 fi
6422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6423
6424 if test $ac_cv_header_stdc = yes; then
6425   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6426   cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h.  */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h.  */
6432 #include <string.h>
6433
6434 _ACEOF
6435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6436   $EGREP "memchr" >/dev/null 2>&1; then
6437   :
6438 else
6439   ac_cv_header_stdc=no
6440 fi
6441 rm -f conftest*
6442
6443 fi
6444
6445 if test $ac_cv_header_stdc = yes; then
6446   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6447   cat >conftest.$ac_ext <<_ACEOF
6448 /* confdefs.h.  */
6449 _ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h.  */
6453 #include <stdlib.h>
6454
6455 _ACEOF
6456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6457   $EGREP "free" >/dev/null 2>&1; then
6458   :
6459 else
6460   ac_cv_header_stdc=no
6461 fi
6462 rm -f conftest*
6463
6464 fi
6465
6466 if test $ac_cv_header_stdc = yes; then
6467   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6468   if test "$cross_compiling" = yes; then
6469   :
6470 else
6471   cat >conftest.$ac_ext <<_ACEOF
6472 /* confdefs.h.  */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h.  */
6477 #include <ctype.h>
6478 #if ((' ' & 0x0FF) == 0x020)
6479 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6480 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6481 #else
6482 # define ISLOWER(c) \
6483                    (('a' <= (c) && (c) <= 'i') \
6484                      || ('j' <= (c) && (c) <= 'r') \
6485                      || ('s' <= (c) && (c) <= 'z'))
6486 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6487 #endif
6488
6489 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6490 int
6491 main ()
6492 {
6493   int i;
6494   for (i = 0; i < 256; i++)
6495     if (XOR (islower (i), ISLOWER (i))
6496         || toupper (i) != TOUPPER (i))
6497       exit(2);
6498   exit (0);
6499 }
6500 _ACEOF
6501 rm -f conftest$ac_exeext
6502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6503   (eval $ac_link) 2>&5
6504   ac_status=$?
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508   (eval $ac_try) 2>&5
6509   ac_status=$?
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); }; }; then
6512   :
6513 else
6514   echo "$as_me: program exited with status $ac_status" >&5
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6517
6518 ( exit $ac_status )
6519 ac_cv_header_stdc=no
6520 fi
6521 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6522 fi
6523 fi
6524 fi
6525 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6526 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6527 if test $ac_cv_header_stdc = yes; then
6528
6529 cat >>confdefs.h <<\_ACEOF
6530 #define STDC_HEADERS 1
6531 _ACEOF
6532
6533 fi
6534
6535 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6546                   inttypes.h stdint.h unistd.h
6547 do
6548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6549 echo "$as_me:$LINENO: checking for $ac_header" >&5
6550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6552   echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554   cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h.  */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h.  */
6560 $ac_includes_default
6561
6562 #include <$ac_header>
6563 _ACEOF
6564 rm -f conftest.$ac_objext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6566   (eval $ac_compile) 2>conftest.er1
6567   ac_status=$?
6568   grep -v '^ *+' conftest.er1 >conftest.err
6569   rm -f conftest.er1
6570   cat conftest.err >&5
6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572   (exit $ac_status); } &&
6573          { ac_try='test -z "$ac_c_werror_flag"
6574                          || test ! -s conftest.err'
6575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576   (eval $ac_try) 2>&5
6577   ac_status=$?
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); }; } &&
6580          { ac_try='test -s conftest.$ac_objext'
6581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582   (eval $ac_try) 2>&5
6583   ac_status=$?
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); }; }; then
6586   eval "$as_ac_Header=yes"
6587 else
6588   echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6590
6591 eval "$as_ac_Header=no"
6592 fi
6593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6594 fi
6595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6598   cat >>confdefs.h <<_ACEOF
6599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6600 _ACEOF
6601
6602 fi
6603
6604 done
6605
6606
6607
6608 for ac_header in dlfcn.h
6609 do
6610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6612   echo "$as_me:$LINENO: checking for $ac_header" >&5
6613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6615   echo $ECHO_N "(cached) $ECHO_C" >&6
6616 fi
6617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6619 else
6620   # Is the header compilable?
6621 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6623 cat >conftest.$ac_ext <<_ACEOF
6624 /* confdefs.h.  */
6625 _ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h.  */
6629 $ac_includes_default
6630 #include <$ac_header>
6631 _ACEOF
6632 rm -f conftest.$ac_objext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6634   (eval $ac_compile) 2>conftest.er1
6635   ac_status=$?
6636   grep -v '^ *+' conftest.er1 >conftest.err
6637   rm -f conftest.er1
6638   cat conftest.err >&5
6639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640   (exit $ac_status); } &&
6641          { ac_try='test -z "$ac_c_werror_flag"
6642                          || test ! -s conftest.err'
6643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644   (eval $ac_try) 2>&5
6645   ac_status=$?
6646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647   (exit $ac_status); }; } &&
6648          { ac_try='test -s conftest.$ac_objext'
6649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650   (eval $ac_try) 2>&5
6651   ac_status=$?
6652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653   (exit $ac_status); }; }; then
6654   ac_header_compiler=yes
6655 else
6656   echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6658
6659 ac_header_compiler=no
6660 fi
6661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6663 echo "${ECHO_T}$ac_header_compiler" >&6
6664
6665 # Is the header present?
6666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6668 cat >conftest.$ac_ext <<_ACEOF
6669 /* confdefs.h.  */
6670 _ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h.  */
6674 #include <$ac_header>
6675 _ACEOF
6676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6677   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6678   ac_status=$?
6679   grep -v '^ *+' conftest.er1 >conftest.err
6680   rm -f conftest.er1
6681   cat conftest.err >&5
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); } >/dev/null; then
6684   if test -s conftest.err; then
6685     ac_cpp_err=$ac_c_preproc_warn_flag
6686     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6687   else
6688     ac_cpp_err=
6689   fi
6690 else
6691   ac_cpp_err=yes
6692 fi
6693 if test -z "$ac_cpp_err"; then
6694   ac_header_preproc=yes
6695 else
6696   echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6698
6699   ac_header_preproc=no
6700 fi
6701 rm -f conftest.err conftest.$ac_ext
6702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6703 echo "${ECHO_T}$ac_header_preproc" >&6
6704
6705 # So?  What about this header?
6706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6707   yes:no: )
6708     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6712     ac_header_preproc=yes
6713     ;;
6714   no:yes:* )
6715     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6717     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6718 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6719     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6721     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6722 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6725     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6727     (
6728       cat <<\_ASBOX
6729 ## --------------------------------------------- ##
6730 ## Report this to <http://www.openldap.org/its/> ##
6731 ## --------------------------------------------- ##
6732 _ASBOX
6733     ) |
6734       sed "s/^/$as_me: WARNING:     /" >&2
6735     ;;
6736 esac
6737 echo "$as_me:$LINENO: checking for $ac_header" >&5
6738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6740   echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742   eval "$as_ac_Header=\$ac_header_preproc"
6743 fi
6744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6746
6747 fi
6748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6749   cat >>confdefs.h <<_ACEOF
6750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6751 _ACEOF
6752
6753 fi
6754
6755 done
6756
6757
6758 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6759
6760 # find the maximum length of command line arguments
6761 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6762 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6763 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766     i=0
6767   teststring="ABCD"
6768
6769   case $build_os in
6770   msdosdjgpp*)
6771     # On DJGPP, this test can blow up pretty badly due to problems in libc
6772     # (any single argument exceeding 2000 bytes causes a buffer overrun
6773     # during glob expansion).  Even if it were fixed, the result of this
6774     # check would be larger than it should be.
6775     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6776     ;;
6777
6778   gnu*)
6779     # Under GNU Hurd, this test is not required because there is
6780     # no limit to the length of command line arguments.
6781     # Libtool will interpret -1 as no limit whatsoever
6782     lt_cv_sys_max_cmd_len=-1;
6783     ;;
6784
6785   cygwin* | mingw*)
6786     # On Win9x/ME, this test blows up -- it succeeds, but takes
6787     # about 5 minutes as the teststring grows exponentially.
6788     # Worse, since 9x/ME are not pre-emptively multitasking,
6789     # you end up with a "frozen" computer, even though with patience
6790     # the test eventually succeeds (with a max line length of 256k).
6791     # Instead, let's just punt: use the minimum linelength reported by
6792     # all of the supported platforms: 8192 (on NT/2K/XP).
6793     lt_cv_sys_max_cmd_len=8192;
6794     ;;
6795
6796   amigaos*)
6797     # On AmigaOS with pdksh, this test takes hours, literally.
6798     # So we just punt and use a minimum line length of 8192.
6799     lt_cv_sys_max_cmd_len=8192;
6800     ;;
6801
6802   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6803     # This has been around since 386BSD, at least.  Likely further.
6804     if test -x /sbin/sysctl; then
6805       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6806     elif test -x /usr/sbin/sysctl; then
6807       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6808     else
6809       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6810     fi
6811     # And add a safety zone
6812     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6813     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6814     ;;
6815   osf*)
6816     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6817     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6818     # nice to cause kernel panics so lets avoid the loop below.
6819     # First set a reasonable default.
6820     lt_cv_sys_max_cmd_len=16384
6821     #
6822     if test -x /sbin/sysconfig; then
6823       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6824         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6825       esac
6826     fi
6827     ;;
6828   *)
6829     # If test is not a shell built-in, we'll probably end up computing a
6830     # maximum length that is only half of the actual maximum length, but
6831     # we can't tell.
6832     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6833     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6834                = "XX$teststring") >/dev/null 2>&1 &&
6835             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6836             lt_cv_sys_max_cmd_len=$new_result &&
6837             test $i != 17 # 1/2 MB should be enough
6838     do
6839       i=`expr $i + 1`
6840       teststring=$teststring$teststring
6841     done
6842     teststring=
6843     # Add a significant safety factor because C++ compilers can tack on massive
6844     # amounts of additional arguments before passing them to the linker.
6845     # It appears as though 1/2 is a usable value.
6846     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6847     ;;
6848   esac
6849
6850 fi
6851
6852 if test -n $lt_cv_sys_max_cmd_len ; then
6853   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6854 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6855 else
6856   echo "$as_me:$LINENO: result: none" >&5
6857 echo "${ECHO_T}none" >&6
6858 fi
6859
6860
6861
6862
6863 # Check for command to grab the raw symbol name followed by C symbol from nm.
6864 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6865 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6866 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6867   echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869
6870 # These are sane defaults that work on at least a few old systems.
6871 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6872
6873 # Character class describing NM global symbol codes.
6874 symcode='[BCDEGRST]'
6875
6876 # Regexp to match symbols that can be accessed directly from C.
6877 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6878
6879 # Transform an extracted symbol line into a proper C declaration
6880 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6881
6882 # Transform an extracted symbol line into symbol name and symbol address
6883 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'"
6884
6885 # Define system-specific variables.
6886 case $host_os in
6887 aix*)
6888   symcode='[BCDT]'
6889   ;;
6890 cygwin* | mingw* | pw32*)
6891   symcode='[ABCDGISTW]'
6892   ;;
6893 hpux*) # Its linker distinguishes data from code symbols
6894   if test "$host_cpu" = ia64; then
6895     symcode='[ABCDEGRST]'
6896   fi
6897   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6898   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'"
6899   ;;
6900 linux*)
6901   if test "$host_cpu" = ia64; then
6902     symcode='[ABCDGIRSTW]'
6903     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6904     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'"
6905   fi
6906   ;;
6907 irix* | nonstopux*)
6908   symcode='[BCDEGRST]'
6909   ;;
6910 osf*)
6911   symcode='[BCDEGQRST]'
6912   ;;
6913 solaris* | sysv5*)
6914   symcode='[BDRT]'
6915   ;;
6916 sysv4)
6917   symcode='[DFNSTU]'
6918   ;;
6919 esac
6920
6921 # Handle CRLF in mingw tool chain
6922 opt_cr=
6923 case $build_os in
6924 mingw*)
6925   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6926   ;;
6927 esac
6928
6929 # If we're using GNU nm, then use its standard symbol codes.
6930 case `$NM -V 2>&1` in
6931 *GNU* | *'with BFD'*)
6932   symcode='[ABCDGIRSTW]' ;;
6933 esac
6934
6935 # Try without a prefix undercore, then with it.
6936 for ac_symprfx in "" "_"; do
6937
6938   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6939   symxfrm="\\1 $ac_symprfx\\2 \\2"
6940
6941   # Write the raw and C identifiers.
6942   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6943
6944   # Check to see that the pipe works correctly.
6945   pipe_works=no
6946
6947   rm -f conftest*
6948   cat > conftest.$ac_ext <<EOF
6949 #ifdef __cplusplus
6950 extern "C" {
6951 #endif
6952 char nm_test_var;
6953 void nm_test_func(){}
6954 #ifdef __cplusplus
6955 }
6956 #endif
6957 int main(){nm_test_var='a';nm_test_func();return(0);}
6958 EOF
6959
6960   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6961   (eval $ac_compile) 2>&5
6962   ac_status=$?
6963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964   (exit $ac_status); }; then
6965     # Now try to grab the symbols.
6966     nlist=conftest.nm
6967     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6968   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6969   ac_status=$?
6970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971   (exit $ac_status); } && test -s "$nlist"; then
6972       # Try sorting and uniquifying the output.
6973       if sort "$nlist" | uniq > "$nlist"T; then
6974         mv -f "$nlist"T "$nlist"
6975       else
6976         rm -f "$nlist"T
6977       fi
6978
6979       # Make sure that we snagged all the symbols we need.
6980       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6981         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6982           cat <<EOF > conftest.$ac_ext
6983 #ifdef __cplusplus
6984 extern "C" {
6985 #endif
6986
6987 EOF
6988           # Now generate the symbol file.
6989           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6990
6991           cat <<EOF >> conftest.$ac_ext
6992 #if defined (__STDC__) && __STDC__
6993 # define lt_ptr_t void *
6994 #else
6995 # define lt_ptr_t char *
6996 # define const
6997 #endif
6998
6999 /* The mapping between symbol names and symbols. */
7000 const struct {
7001   const char *name;
7002   lt_ptr_t address;
7003 }
7004 lt_preloaded_symbols[] =
7005 {
7006 EOF
7007           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7008           cat <<\EOF >> conftest.$ac_ext
7009   {0, (lt_ptr_t) 0}
7010 };
7011
7012 #ifdef __cplusplus
7013 }
7014 #endif
7015 EOF
7016           # Now try linking the two files.
7017           mv conftest.$ac_objext conftstm.$ac_objext
7018           lt_save_LIBS="$LIBS"
7019           lt_save_CFLAGS="$CFLAGS"
7020           LIBS="conftstm.$ac_objext"
7021           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7022           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7023   (eval $ac_link) 2>&5
7024   ac_status=$?
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7027             pipe_works=yes
7028           fi
7029           LIBS="$lt_save_LIBS"
7030           CFLAGS="$lt_save_CFLAGS"
7031         else
7032           echo "cannot find nm_test_func in $nlist" >&5
7033         fi
7034       else
7035         echo "cannot find nm_test_var in $nlist" >&5
7036       fi
7037     else
7038       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7039     fi
7040   else
7041     echo "$progname: failed program was:" >&5
7042     cat conftest.$ac_ext >&5
7043   fi
7044   rm -f conftest* conftst*
7045
7046   # Do not use the global_symbol_pipe unless it works.
7047   if test "$pipe_works" = yes; then
7048     break
7049   else
7050     lt_cv_sys_global_symbol_pipe=
7051   fi
7052 done
7053
7054 fi
7055
7056 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7057   lt_cv_sys_global_symbol_to_cdecl=
7058 fi
7059 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7060   echo "$as_me:$LINENO: result: failed" >&5
7061 echo "${ECHO_T}failed" >&6
7062 else
7063   echo "$as_me:$LINENO: result: ok" >&5
7064 echo "${ECHO_T}ok" >&6
7065 fi
7066
7067 echo "$as_me:$LINENO: checking for objdir" >&5
7068 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7069 if test "${lt_cv_objdir+set}" = set; then
7070   echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072   rm -f .libs 2>/dev/null
7073 mkdir .libs 2>/dev/null
7074 if test -d .libs; then
7075   lt_cv_objdir=.libs
7076 else
7077   # MS-DOS does not allow filenames that begin with a dot.
7078   lt_cv_objdir=_libs
7079 fi
7080 rmdir .libs 2>/dev/null
7081 fi
7082 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7083 echo "${ECHO_T}$lt_cv_objdir" >&6
7084 objdir=$lt_cv_objdir
7085
7086
7087
7088
7089
7090 case $host_os in
7091 aix3*)
7092   # AIX sometimes has problems with the GCC collect2 program.  For some
7093   # reason, if we set the COLLECT_NAMES environment variable, the problems
7094   # vanish in a puff of smoke.
7095   if test "X${COLLECT_NAMES+set}" != Xset; then
7096     COLLECT_NAMES=
7097     export COLLECT_NAMES
7098   fi
7099   ;;
7100 esac
7101
7102 # Sed substitution that helps us do robust quoting.  It backslashifies
7103 # metacharacters that are still active within double-quoted strings.
7104 Xsed='sed -e 1s/^X//'
7105 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7106
7107 # Same as above, but do not quote variable references.
7108 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7109
7110 # Sed substitution to delay expansion of an escaped shell variable in a
7111 # double_quote_subst'ed string.
7112 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7113
7114 # Sed substitution to avoid accidental globbing in evaled expressions
7115 no_glob_subst='s/\*/\\\*/g'
7116
7117 # Constants:
7118 rm="rm -f"
7119
7120 # Global variables:
7121 default_ofile=libtool
7122 can_build_shared=yes
7123
7124 # All known linkers require a `.a' archive for static linking (except MSVC,
7125 # which needs '.lib').
7126 libext=a
7127 ltmain="$ac_aux_dir/ltmain.sh"
7128 ofile="$default_ofile"
7129 with_gnu_ld="$lt_cv_prog_gnu_ld"
7130
7131 if test -n "$ac_tool_prefix"; then
7132   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7133 set dummy ${ac_tool_prefix}ar; ac_word=$2
7134 echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7136 if test "${ac_cv_prog_AR+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   if test -n "$AR"; then
7140   ac_cv_prog_AR="$AR" # Let the user override the test.
7141 else
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145   IFS=$as_save_IFS
7146   test -z "$as_dir" && as_dir=.
7147   for ac_exec_ext in '' $ac_executable_extensions; do
7148   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7149     ac_cv_prog_AR="${ac_tool_prefix}ar"
7150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151     break 2
7152   fi
7153 done
7154 done
7155
7156 fi
7157 fi
7158 AR=$ac_cv_prog_AR
7159 if test -n "$AR"; then
7160   echo "$as_me:$LINENO: result: $AR" >&5
7161 echo "${ECHO_T}$AR" >&6
7162 else
7163   echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7165 fi
7166
7167 fi
7168 if test -z "$ac_cv_prog_AR"; then
7169   ac_ct_AR=$AR
7170   # Extract the first word of "ar", so it can be a program name with args.
7171 set dummy ar; ac_word=$2
7172 echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7174 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   if test -n "$ac_ct_AR"; then
7178   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183   IFS=$as_save_IFS
7184   test -z "$as_dir" && as_dir=.
7185   for ac_exec_ext in '' $ac_executable_extensions; do
7186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187     ac_cv_prog_ac_ct_AR="ar"
7188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189     break 2
7190   fi
7191 done
7192 done
7193
7194   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7195 fi
7196 fi
7197 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7198 if test -n "$ac_ct_AR"; then
7199   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7200 echo "${ECHO_T}$ac_ct_AR" >&6
7201 else
7202   echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7204 fi
7205
7206   AR=$ac_ct_AR
7207 else
7208   AR="$ac_cv_prog_AR"
7209 fi
7210
7211 if test -n "$ac_tool_prefix"; then
7212   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7213 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7214 echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7216 if test "${ac_cv_prog_RANLIB+set}" = set; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   if test -n "$RANLIB"; then
7220   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7221 else
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 for as_dir in $PATH
7224 do
7225   IFS=$as_save_IFS
7226   test -z "$as_dir" && as_dir=.
7227   for ac_exec_ext in '' $ac_executable_extensions; do
7228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231     break 2
7232   fi
7233 done
7234 done
7235
7236 fi
7237 fi
7238 RANLIB=$ac_cv_prog_RANLIB
7239 if test -n "$RANLIB"; then
7240   echo "$as_me:$LINENO: result: $RANLIB" >&5
7241 echo "${ECHO_T}$RANLIB" >&6
7242 else
7243   echo "$as_me:$LINENO: result: no" >&5
7244 echo "${ECHO_T}no" >&6
7245 fi
7246
7247 fi
7248 if test -z "$ac_cv_prog_RANLIB"; then
7249   ac_ct_RANLIB=$RANLIB
7250   # Extract the first word of "ranlib", so it can be a program name with args.
7251 set dummy ranlib; ac_word=$2
7252 echo "$as_me:$LINENO: checking for $ac_word" >&5
7253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7254 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7255   echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257   if test -n "$ac_ct_RANLIB"; then
7258   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7262 do
7263   IFS=$as_save_IFS
7264   test -z "$as_dir" && as_dir=.
7265   for ac_exec_ext in '' $ac_executable_extensions; do
7266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7267     ac_cv_prog_ac_ct_RANLIB="ranlib"
7268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269     break 2
7270   fi
7271 done
7272 done
7273
7274   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7275 fi
7276 fi
7277 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7278 if test -n "$ac_ct_RANLIB"; then
7279   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7280 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7281 else
7282   echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6
7284 fi
7285
7286   RANLIB=$ac_ct_RANLIB
7287 else
7288   RANLIB="$ac_cv_prog_RANLIB"
7289 fi
7290
7291 if test -n "$ac_tool_prefix"; then
7292   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7293 set dummy ${ac_tool_prefix}strip; ac_word=$2
7294 echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7296 if test "${ac_cv_prog_STRIP+set}" = set; then
7297   echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299   if test -n "$STRIP"; then
7300   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7301 else
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7304 do
7305   IFS=$as_save_IFS
7306   test -z "$as_dir" && as_dir=.
7307   for ac_exec_ext in '' $ac_executable_extensions; do
7308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311     break 2
7312   fi
7313 done
7314 done
7315
7316 fi
7317 fi
7318 STRIP=$ac_cv_prog_STRIP
7319 if test -n "$STRIP"; then
7320   echo "$as_me:$LINENO: result: $STRIP" >&5
7321 echo "${ECHO_T}$STRIP" >&6
7322 else
7323   echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6
7325 fi
7326
7327 fi
7328 if test -z "$ac_cv_prog_STRIP"; then
7329   ac_ct_STRIP=$STRIP
7330   # Extract the first word of "strip", so it can be a program name with args.
7331 set dummy strip; ac_word=$2
7332 echo "$as_me:$LINENO: checking for $ac_word" >&5
7333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7334 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7335   echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337   if test -n "$ac_ct_STRIP"; then
7338   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345   for ac_exec_ext in '' $ac_executable_extensions; do
7346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347     ac_cv_prog_ac_ct_STRIP="strip"
7348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349     break 2
7350   fi
7351 done
7352 done
7353
7354   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7355 fi
7356 fi
7357 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7358 if test -n "$ac_ct_STRIP"; then
7359   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7360 echo "${ECHO_T}$ac_ct_STRIP" >&6
7361 else
7362   echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6
7364 fi
7365
7366   STRIP=$ac_ct_STRIP
7367 else
7368   STRIP="$ac_cv_prog_STRIP"
7369 fi
7370
7371
7372 old_CC="$CC"
7373 old_CFLAGS="$CFLAGS"
7374
7375 # Set sane defaults for various variables
7376 test -z "$AR" && AR=ar
7377 test -z "$AR_FLAGS" && AR_FLAGS=cru
7378 test -z "$AS" && AS=as
7379 test -z "$CC" && CC=cc
7380 test -z "$LTCC" && LTCC=$CC
7381 test -z "$DLLTOOL" && DLLTOOL=dlltool
7382 test -z "$LD" && LD=ld
7383 test -z "$LN_S" && LN_S="ln -s"
7384 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7385 test -z "$NM" && NM=nm
7386 test -z "$SED" && SED=sed
7387 test -z "$OBJDUMP" && OBJDUMP=objdump
7388 test -z "$RANLIB" && RANLIB=:
7389 test -z "$STRIP" && STRIP=:
7390 test -z "$ac_objext" && ac_objext=o
7391
7392 # Determine commands to create old-style static archives.
7393 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7394 old_postinstall_cmds='chmod 644 $oldlib'
7395 old_postuninstall_cmds=
7396
7397 if test -n "$RANLIB"; then
7398   case $host_os in
7399   openbsd*)
7400     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7401     ;;
7402   *)
7403     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7404     ;;
7405   esac
7406   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7407 fi
7408
7409 for cc_temp in $compiler""; do
7410   case $cc_temp in
7411     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7412     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7413     \-*) ;;
7414     *) break;;
7415   esac
7416 done
7417 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7418
7419
7420 # Only perform the check for file, if the check method requires it
7421 case $deplibs_check_method in
7422 file_magic*)
7423   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7424     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7425 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7426 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7427   echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429   case $MAGIC_CMD in
7430 [\\/*] |  ?:[\\/]*)
7431   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7432   ;;
7433 *)
7434   lt_save_MAGIC_CMD="$MAGIC_CMD"
7435   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7436   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7437   for ac_dir in $ac_dummy; do
7438     IFS="$lt_save_ifs"
7439     test -z "$ac_dir" && ac_dir=.
7440     if test -f $ac_dir/${ac_tool_prefix}file; then
7441       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7442       if test -n "$file_magic_test_file"; then
7443         case $deplibs_check_method in
7444         "file_magic "*)
7445           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7446           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7447           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7448             $EGREP "$file_magic_regex" > /dev/null; then
7449             :
7450           else
7451             cat <<EOF 1>&2
7452
7453 *** Warning: the command libtool uses to detect shared libraries,
7454 *** $file_magic_cmd, produces output that libtool cannot recognize.
7455 *** The result is that libtool may fail to recognize shared libraries
7456 *** as such.  This will affect the creation of libtool libraries that
7457 *** depend on shared libraries, but programs linked with such libtool
7458 *** libraries will work regardless of this problem.  Nevertheless, you
7459 *** may want to report the problem to your system manager and/or to
7460 *** bug-libtool@gnu.org
7461
7462 EOF
7463           fi ;;
7464         esac
7465       fi
7466       break
7467     fi
7468   done
7469   IFS="$lt_save_ifs"
7470   MAGIC_CMD="$lt_save_MAGIC_CMD"
7471   ;;
7472 esac
7473 fi
7474
7475 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7476 if test -n "$MAGIC_CMD"; then
7477   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7478 echo "${ECHO_T}$MAGIC_CMD" >&6
7479 else
7480   echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6
7482 fi
7483
7484 if test -z "$lt_cv_path_MAGIC_CMD"; then
7485   if test -n "$ac_tool_prefix"; then
7486     echo "$as_me:$LINENO: checking for file" >&5
7487 echo $ECHO_N "checking for file... $ECHO_C" >&6
7488 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7489   echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491   case $MAGIC_CMD in
7492 [\\/*] |  ?:[\\/]*)
7493   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7494   ;;
7495 *)
7496   lt_save_MAGIC_CMD="$MAGIC_CMD"
7497   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7498   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7499   for ac_dir in $ac_dummy; do
7500     IFS="$lt_save_ifs"
7501     test -z "$ac_dir" && ac_dir=.
7502     if test -f $ac_dir/file; then
7503       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7504       if test -n "$file_magic_test_file"; then
7505         case $deplibs_check_method in
7506         "file_magic "*)
7507           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7508           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7509           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7510             $EGREP "$file_magic_regex" > /dev/null; then
7511             :
7512           else
7513             cat <<EOF 1>&2
7514
7515 *** Warning: the command libtool uses to detect shared libraries,
7516 *** $file_magic_cmd, produces output that libtool cannot recognize.
7517 *** The result is that libtool may fail to recognize shared libraries
7518 *** as such.  This will affect the creation of libtool libraries that
7519 *** depend on shared libraries, but programs linked with such libtool
7520 *** libraries will work regardless of this problem.  Nevertheless, you
7521 *** may want to report the problem to your system manager and/or to
7522 *** bug-libtool@gnu.org
7523
7524 EOF
7525           fi ;;
7526         esac
7527       fi
7528       break
7529     fi
7530   done
7531   IFS="$lt_save_ifs"
7532   MAGIC_CMD="$lt_save_MAGIC_CMD"
7533   ;;
7534 esac
7535 fi
7536
7537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7538 if test -n "$MAGIC_CMD"; then
7539   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7540 echo "${ECHO_T}$MAGIC_CMD" >&6
7541 else
7542   echo "$as_me:$LINENO: result: no" >&5
7543 echo "${ECHO_T}no" >&6
7544 fi
7545
7546   else
7547     MAGIC_CMD=:
7548   fi
7549 fi
7550
7551   fi
7552   ;;
7553 esac
7554
7555 enable_dlopen=yes
7556 enable_win32_dll=yes
7557
7558 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7559 if test "${enable_libtool_lock+set}" = set; then
7560   enableval="$enable_libtool_lock"
7561
7562 fi;
7563 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7564
7565
7566 # Check whether --with-pic or --without-pic was given.
7567 if test "${with_pic+set}" = set; then
7568   withval="$with_pic"
7569   pic_mode="$withval"
7570 else
7571   pic_mode=default
7572 fi;
7573 test -z "$pic_mode" && pic_mode=default
7574
7575 # Use C for the default configuration in the libtool script
7576 tagname=
7577 lt_save_CC="$CC"
7578 ac_ext=c
7579 ac_cpp='$CPP $CPPFLAGS'
7580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7583
7584
7585 # Source file extension for C test sources.
7586 ac_ext=c
7587
7588 # Object file extension for compiled C test sources.
7589 objext=o
7590 objext=$objext
7591
7592 # Code to be used in simple compile tests
7593 lt_simple_compile_test_code="int some_variable = 0;\n"
7594
7595 # Code to be used in simple link tests
7596 lt_simple_link_test_code='int main(){return(0);}\n'
7597
7598
7599 # If no C compiler was specified, use CC.
7600 LTCC=${LTCC-"$CC"}
7601
7602 # Allow CC to be a program name with arguments.
7603 compiler=$CC
7604
7605
7606 # save warnings/boilerplate of simple test code
7607 ac_outfile=conftest.$ac_objext
7608 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7609 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7610 _lt_compiler_boilerplate=`cat conftest.err`
7611 $rm conftest*
7612
7613 ac_outfile=conftest.$ac_objext
7614 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7615 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7616 _lt_linker_boilerplate=`cat conftest.err`
7617 $rm conftest*
7618
7619
7620 #
7621 # Check for any special shared library compilation flags.
7622 #
7623 lt_prog_cc_shlib=
7624 if test "$GCC" = no; then
7625   case $host_os in
7626   sco3.2v5*)
7627     lt_prog_cc_shlib='-belf'
7628     ;;
7629   esac
7630 fi
7631 if test -n "$lt_prog_cc_shlib"; then
7632   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7633 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7634   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7635   else
7636     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7637 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7638     lt_cv_prog_cc_can_build_shared=no
7639   fi
7640 fi
7641
7642
7643 #
7644 # Check to make sure the static flag actually works.
7645 #
7646 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7647 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7648 if test "${lt_prog_compiler_static_works+set}" = set; then
7649   echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651   lt_prog_compiler_static_works=no
7652    save_LDFLAGS="$LDFLAGS"
7653    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7654    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7655    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7656      # The linker can only warn and ignore the option if not recognized
7657      # So say no if there are warnings
7658      if test -s conftest.err; then
7659        # Append any errors to the config.log.
7660        cat conftest.err 1>&5
7661        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7662        $SED '/^$/d' conftest.err >conftest.er2
7663        if diff conftest.exp conftest.er2 >/dev/null; then
7664          lt_prog_compiler_static_works=yes
7665        fi
7666      else
7667        lt_prog_compiler_static_works=yes
7668      fi
7669    fi
7670    $rm conftest*
7671    LDFLAGS="$save_LDFLAGS"
7672
7673 fi
7674 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7675 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7676
7677 if test x"$lt_prog_compiler_static_works" = xyes; then
7678     :
7679 else
7680     lt_prog_compiler_static=
7681 fi
7682
7683
7684
7685
7686 lt_prog_compiler_no_builtin_flag=
7687
7688 if test "$GCC" = yes; then
7689   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7690
7691
7692 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7693 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7694 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7695   echo $ECHO_N "(cached) $ECHO_C" >&6
7696 else
7697   lt_cv_prog_compiler_rtti_exceptions=no
7698   ac_outfile=conftest.$ac_objext
7699    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7700    lt_compiler_flag="-fno-rtti -fno-exceptions"
7701    # Insert the option either (1) after the last *FLAGS variable, or
7702    # (2) before a word containing "conftest.", or (3) at the end.
7703    # Note that $ac_compile itself does not contain backslashes and begins
7704    # with a dollar sign (not a hyphen), so the echo should work correctly.
7705    # The option is referenced via a variable to avoid confusing sed.
7706    lt_compile=`echo "$ac_compile" | $SED \
7707    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7708    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7709    -e 's:$: $lt_compiler_flag:'`
7710    (eval echo "\"\$as_me:7710: $lt_compile\"" >&5)
7711    (eval "$lt_compile" 2>conftest.err)
7712    ac_status=$?
7713    cat conftest.err >&5
7714    echo "$as_me:7714: \$? = $ac_status" >&5
7715    if (exit $ac_status) && test -s "$ac_outfile"; then
7716      # The compiler can only warn and ignore the option if not recognized
7717      # So say no if there are warnings other than the usual output.
7718      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7719      $SED '/^$/d' conftest.err >conftest.er2
7720      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7721        lt_cv_prog_compiler_rtti_exceptions=yes
7722      fi
7723    fi
7724    $rm conftest*
7725
7726 fi
7727 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7728 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7729
7730 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7731     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7732 else
7733     :
7734 fi
7735
7736 fi
7737
7738 lt_prog_compiler_wl=
7739 lt_prog_compiler_pic=
7740 lt_prog_compiler_static=
7741
7742 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7743 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7744
7745   if test "$GCC" = yes; then
7746     lt_prog_compiler_wl='-Wl,'
7747     lt_prog_compiler_static='-static'
7748
7749     case $host_os in
7750       aix*)
7751       # All AIX code is PIC.
7752       if test "$host_cpu" = ia64; then
7753         # AIX 5 now supports IA64 processor
7754         lt_prog_compiler_static='-Bstatic'
7755       fi
7756       ;;
7757
7758     amigaos*)
7759       # FIXME: we need at least 68020 code to build shared libraries, but
7760       # adding the `-m68020' flag to GCC prevents building anything better,
7761       # like `-m68040'.
7762       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7763       ;;
7764
7765     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7766       # PIC is the default for these OSes.
7767       ;;
7768
7769     mingw* | pw32* | os2*)
7770       # This hack is so that the source file can tell whether it is being
7771       # built for inclusion in a dll (and should export symbols for example).
7772       lt_prog_compiler_pic='-DDLL_EXPORT'
7773       ;;
7774
7775     darwin* | rhapsody*)
7776       # PIC is the default on this platform
7777       # Common symbols not allowed in MH_DYLIB files
7778       lt_prog_compiler_pic='-fno-common'
7779       ;;
7780
7781     msdosdjgpp*)
7782       # Just because we use GCC doesn't mean we suddenly get shared libraries
7783       # on systems that don't support them.
7784       lt_prog_compiler_can_build_shared=no
7785       enable_shared=no
7786       ;;
7787
7788     sysv4*MP*)
7789       if test -d /usr/nec; then
7790         lt_prog_compiler_pic=-Kconform_pic
7791       fi
7792       ;;
7793
7794     hpux*)
7795       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7796       # not for PA HP-UX.
7797       case $host_cpu in
7798       hppa*64*|ia64*)
7799         # +Z the default
7800         ;;
7801       *)
7802         lt_prog_compiler_pic='-fPIC'
7803         ;;
7804       esac
7805       ;;
7806
7807     *)
7808       lt_prog_compiler_pic='-fPIC'
7809       ;;
7810     esac
7811   else
7812     # PORTME Check for flag to pass linker flags through the system compiler.
7813     case $host_os in
7814     aix*)
7815       lt_prog_compiler_wl='-Wl,'
7816       if test "$host_cpu" = ia64; then
7817         # AIX 5 now supports IA64 processor
7818         lt_prog_compiler_static='-Bstatic'
7819       else
7820         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7821       fi
7822       ;;
7823       darwin*)
7824         # PIC is the default on this platform
7825         # Common symbols not allowed in MH_DYLIB files
7826        case $cc_basename in
7827          xlc*)
7828          lt_prog_compiler_pic='-qnocommon'
7829          lt_prog_compiler_wl='-Wl,'
7830          ;;
7831        esac
7832        ;;
7833
7834     mingw* | pw32* | os2*)
7835       # This hack is so that the source file can tell whether it is being
7836       # built for inclusion in a dll (and should export symbols for example).
7837       lt_prog_compiler_pic='-DDLL_EXPORT'
7838       ;;
7839
7840     hpux9* | hpux10* | hpux11*)
7841       lt_prog_compiler_wl='-Wl,'
7842       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7843       # not for PA HP-UX.
7844       case $host_cpu in
7845       hppa*64*|ia64*)
7846         # +Z the default
7847         ;;
7848       *)
7849         lt_prog_compiler_pic='+Z'
7850         ;;
7851       esac
7852       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7853       lt_prog_compiler_static='${wl}-a ${wl}archive'
7854       ;;
7855
7856     irix5* | irix6* | nonstopux*)
7857       lt_prog_compiler_wl='-Wl,'
7858       # PIC (with -KPIC) is the default.
7859       lt_prog_compiler_static='-non_shared'
7860       ;;
7861
7862     newsos6)
7863       lt_prog_compiler_pic='-KPIC'
7864       lt_prog_compiler_static='-Bstatic'
7865       ;;
7866
7867     linux*)
7868       case $cc_basename in
7869       icc* | ecc*)
7870         lt_prog_compiler_wl='-Wl,'
7871         lt_prog_compiler_pic='-KPIC'
7872         lt_prog_compiler_static='-static'
7873         ;;
7874       pgcc* | pgf77* | pgf90* | pgf95*)
7875         # Portland Group compilers (*not* the Pentium gcc compiler,
7876         # which looks to be a dead project)
7877         lt_prog_compiler_wl='-Wl,'
7878         lt_prog_compiler_pic='-fpic'
7879         lt_prog_compiler_static='-Bstatic'
7880         ;;
7881       ccc*)
7882         lt_prog_compiler_wl='-Wl,'
7883         # All Alpha code is PIC.
7884         lt_prog_compiler_static='-non_shared'
7885         ;;
7886       esac
7887       ;;
7888
7889     osf3* | osf4* | osf5*)
7890       lt_prog_compiler_wl='-Wl,'
7891       # All OSF/1 code is PIC.
7892       lt_prog_compiler_static='-non_shared'
7893       ;;
7894
7895     sco3.2v5*)
7896       lt_prog_compiler_pic='-Kpic'
7897       lt_prog_compiler_static='-dn'
7898       ;;
7899
7900     solaris*)
7901       lt_prog_compiler_pic='-KPIC'
7902       lt_prog_compiler_static='-Bstatic'
7903       case $cc_basename in
7904       f77* | f90* | f95*)
7905         lt_prog_compiler_wl='-Qoption ld ';;
7906       *)
7907         lt_prog_compiler_wl='-Wl,';;
7908       esac
7909       ;;
7910
7911     sunos4*)
7912       lt_prog_compiler_wl='-Qoption ld '
7913       lt_prog_compiler_pic='-PIC'
7914       lt_prog_compiler_static='-Bstatic'
7915       ;;
7916
7917     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7918       lt_prog_compiler_wl='-Wl,'
7919       lt_prog_compiler_pic='-KPIC'
7920       lt_prog_compiler_static='-Bstatic'
7921       ;;
7922
7923     sysv4*MP*)
7924       if test -d /usr/nec ;then
7925         lt_prog_compiler_pic='-Kconform_pic'
7926         lt_prog_compiler_static='-Bstatic'
7927       fi
7928       ;;
7929
7930     unicos*)
7931       lt_prog_compiler_wl='-Wl,'
7932       lt_prog_compiler_can_build_shared=no
7933       ;;
7934
7935     uts4*)
7936       lt_prog_compiler_pic='-pic'
7937       lt_prog_compiler_static='-Bstatic'
7938       ;;
7939
7940     *)
7941       lt_prog_compiler_can_build_shared=no
7942       ;;
7943     esac
7944   fi
7945
7946 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7947 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7948
7949 #
7950 # Check to make sure the PIC flag actually works.
7951 #
7952 if test -n "$lt_prog_compiler_pic"; then
7953
7954 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7955 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7956 if test "${lt_prog_compiler_pic_works+set}" = set; then
7957   echo $ECHO_N "(cached) $ECHO_C" >&6
7958 else
7959   lt_prog_compiler_pic_works=no
7960   ac_outfile=conftest.$ac_objext
7961    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7962    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7963    # Insert the option either (1) after the last *FLAGS variable, or
7964    # (2) before a word containing "conftest.", or (3) at the end.
7965    # Note that $ac_compile itself does not contain backslashes and begins
7966    # with a dollar sign (not a hyphen), so the echo should work correctly.
7967    # The option is referenced via a variable to avoid confusing sed.
7968    lt_compile=`echo "$ac_compile" | $SED \
7969    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7970    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7971    -e 's:$: $lt_compiler_flag:'`
7972    (eval echo "\"\$as_me:7972: $lt_compile\"" >&5)
7973    (eval "$lt_compile" 2>conftest.err)
7974    ac_status=$?
7975    cat conftest.err >&5
7976    echo "$as_me:7976: \$? = $ac_status" >&5
7977    if (exit $ac_status) && test -s "$ac_outfile"; then
7978      # The compiler can only warn and ignore the option if not recognized
7979      # So say no if there are warnings other than the usual output.
7980      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7981      $SED '/^$/d' conftest.err >conftest.er2
7982      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7983        lt_prog_compiler_pic_works=yes
7984      fi
7985    fi
7986    $rm conftest*
7987
7988 fi
7989 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7990 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7991
7992 if test x"$lt_prog_compiler_pic_works" = xyes; then
7993     case $lt_prog_compiler_pic in
7994      "" | " "*) ;;
7995      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7996      esac
7997 else
7998     lt_prog_compiler_pic=
7999      lt_prog_compiler_can_build_shared=no
8000 fi
8001
8002 fi
8003 case $host_os in
8004   # For platforms which do not support PIC, -DPIC is meaningless:
8005   *djgpp*)
8006     lt_prog_compiler_pic=
8007     ;;
8008   *)
8009     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8010     ;;
8011 esac
8012
8013 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8014 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8015 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8016   echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018   lt_cv_prog_compiler_c_o=no
8019    $rm -r conftest 2>/dev/null
8020    mkdir conftest
8021    cd conftest
8022    mkdir out
8023    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8024
8025    lt_compiler_flag="-o out/conftest2.$ac_objext"
8026    # Insert the option either (1) after the last *FLAGS variable, or
8027    # (2) before a word containing "conftest.", or (3) at the end.
8028    # Note that $ac_compile itself does not contain backslashes and begins
8029    # with a dollar sign (not a hyphen), so the echo should work correctly.
8030    lt_compile=`echo "$ac_compile" | $SED \
8031    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8032    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8033    -e 's:$: $lt_compiler_flag:'`
8034    (eval echo "\"\$as_me:8034: $lt_compile\"" >&5)
8035    (eval "$lt_compile" 2>out/conftest.err)
8036    ac_status=$?
8037    cat out/conftest.err >&5
8038    echo "$as_me:8038: \$? = $ac_status" >&5
8039    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8040    then
8041      # The compiler can only warn and ignore the option if not recognized
8042      # So say no if there are warnings
8043      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8044      $SED '/^$/d' out/conftest.err >out/conftest.er2
8045      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8046        lt_cv_prog_compiler_c_o=yes
8047      fi
8048    fi
8049    chmod u+w . 2>&5
8050    $rm conftest*
8051    # SGI C++ compiler will create directory out/ii_files/ for
8052    # template instantiation
8053    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8054    $rm out/* && rmdir out
8055    cd ..
8056    rmdir conftest
8057    $rm conftest*
8058
8059 fi
8060 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8061 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8062
8063
8064 hard_links="nottested"
8065 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8066   # do not overwrite the value of need_locks provided by the user
8067   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8068 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8069   hard_links=yes
8070   $rm conftest*
8071   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8072   touch conftest.a
8073   ln conftest.a conftest.b 2>&5 || hard_links=no
8074   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8075   echo "$as_me:$LINENO: result: $hard_links" >&5
8076 echo "${ECHO_T}$hard_links" >&6
8077   if test "$hard_links" = no; then
8078     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8079 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8080     need_locks=warn
8081   fi
8082 else
8083   need_locks=no
8084 fi
8085
8086 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8087 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8088
8089   runpath_var=
8090   allow_undefined_flag=
8091   enable_shared_with_static_runtimes=no
8092   archive_cmds=
8093   archive_expsym_cmds=
8094   old_archive_From_new_cmds=
8095   old_archive_from_expsyms_cmds=
8096   export_dynamic_flag_spec=
8097   whole_archive_flag_spec=
8098   thread_safe_flag_spec=
8099   hardcode_libdir_flag_spec=
8100   hardcode_libdir_flag_spec_ld=
8101   hardcode_libdir_separator=
8102   hardcode_direct=no
8103   hardcode_minus_L=no
8104   hardcode_shlibpath_var=unsupported
8105   link_all_deplibs=unknown
8106   hardcode_automatic=no
8107   module_cmds=
8108   module_expsym_cmds=
8109   always_export_symbols=no
8110   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8111   # include_expsyms should be a list of space-separated symbols to be *always*
8112   # included in the symbol list
8113   include_expsyms=
8114   # exclude_expsyms can be an extended regexp of symbols to exclude
8115   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8116   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8117   # as well as any symbol that contains `d'.
8118   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8119   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8120   # platforms (ab)use it in PIC code, but their linkers get confused if
8121   # the symbol is explicitly referenced.  Since portable code cannot
8122   # rely on this symbol name, it's probably fine to never include it in
8123   # preloaded symbol tables.
8124   extract_expsyms_cmds=
8125   # Just being paranoid about ensuring that cc_basename is set.
8126   for cc_temp in $compiler""; do
8127   case $cc_temp in
8128     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8129     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8130     \-*) ;;
8131     *) break;;
8132   esac
8133 done
8134 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8135
8136   case $host_os in
8137   cygwin* | mingw* | pw32*)
8138     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8139     # When not using gcc, we currently assume that we are using
8140     # Microsoft Visual C++.
8141     if test "$GCC" != yes; then
8142       with_gnu_ld=no
8143     fi
8144     ;;
8145   openbsd*)
8146     with_gnu_ld=no
8147     ;;
8148   esac
8149
8150   ld_shlibs=yes
8151   if test "$with_gnu_ld" = yes; then
8152     # If archive_cmds runs LD, not CC, wlarc should be empty
8153     wlarc='${wl}'
8154
8155     # Set some defaults for GNU ld with shared library support. These
8156     # are reset later if shared libraries are not supported. Putting them
8157     # here allows them to be overridden if necessary.
8158     runpath_var=LD_RUN_PATH
8159     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8160     export_dynamic_flag_spec='${wl}--export-dynamic'
8161     # ancient GNU ld didn't support --whole-archive et. al.
8162     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8163         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8164       else
8165         whole_archive_flag_spec=
8166     fi
8167     supports_anon_versioning=no
8168     case `$LD -v 2>/dev/null` in
8169       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8170       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8171       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8172       *\ 2.11.*) ;; # other 2.11 versions
8173       *) supports_anon_versioning=yes ;;
8174     esac
8175
8176     # See if GNU ld supports shared libraries.
8177     case $host_os in
8178     aix3* | aix4* | aix5*)
8179       # On AIX/PPC, the GNU linker is very broken
8180       if test "$host_cpu" != ia64; then
8181         ld_shlibs=no
8182         cat <<EOF 1>&2
8183
8184 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8185 *** to be unable to reliably create shared libraries on AIX.
8186 *** Therefore, libtool is disabling shared libraries support.  If you
8187 *** really care for shared libraries, you may want to modify your PATH
8188 *** so that a non-GNU linker is found, and then restart.
8189
8190 EOF
8191       fi
8192       ;;
8193
8194     amigaos*)
8195       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)'
8196       hardcode_libdir_flag_spec='-L$libdir'
8197       hardcode_minus_L=yes
8198
8199       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8200       # that the semantics of dynamic libraries on AmigaOS, at least up
8201       # to version 4, is to share data among multiple programs linked
8202       # with the same dynamic library.  Since this doesn't match the
8203       # behavior of shared libraries on other platforms, we can't use
8204       # them.
8205       ld_shlibs=no
8206       ;;
8207
8208     beos*)
8209       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8210         allow_undefined_flag=unsupported
8211         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8212         # support --undefined.  This deserves some investigation.  FIXME
8213         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8214       else
8215         ld_shlibs=no
8216       fi
8217       ;;
8218
8219     cygwin* | mingw* | pw32*)
8220       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8221       # as there is no search path for DLLs.
8222       hardcode_libdir_flag_spec='-L$libdir'
8223       allow_undefined_flag=unsupported
8224       always_export_symbols=no
8225       enable_shared_with_static_runtimes=yes
8226       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8227
8228       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8229         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8230         # If the export-symbols file already is a .def file (1st line
8231         # is EXPORTS), use it as is; otherwise, prepend...
8232         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8233           cp $export_symbols $output_objdir/$soname.def;
8234         else
8235           echo EXPORTS > $output_objdir/$soname.def;
8236           cat $export_symbols >> $output_objdir/$soname.def;
8237         fi~
8238         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8239       else
8240         ld_shlibs=no
8241       fi
8242       ;;
8243
8244     linux*)
8245       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8246         tmp_addflag=
8247         case $cc_basename,$host_cpu in
8248         pgcc*)                          # Portland Group C compiler
8249           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'
8250           tmp_addflag=' $pic_flag'
8251           ;;
8252         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8253           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'
8254           tmp_addflag=' $pic_flag -Mnomain' ;;
8255         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8256           tmp_addflag=' -i_dynamic' ;;
8257         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8258           tmp_addflag=' -i_dynamic -nofor_main' ;;
8259         ifc* | ifort*)                  # Intel Fortran compiler
8260           tmp_addflag=' -nofor_main' ;;
8261         esac
8262         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8263
8264         if test $supports_anon_versioning = yes; then
8265           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8266   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8267   $echo "local: *; };" >> $output_objdir/$libname.ver~
8268           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8269         fi
8270       else
8271         ld_shlibs=no
8272       fi
8273       ;;
8274
8275     netbsd*)
8276       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8277         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8278         wlarc=
8279       else
8280         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8281         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8282       fi
8283       ;;
8284
8285     solaris* | sysv5*)
8286       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8287         ld_shlibs=no
8288         cat <<EOF 1>&2
8289
8290 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8291 *** create shared libraries on Solaris systems.  Therefore, libtool
8292 *** is disabling shared libraries support.  We urge you to upgrade GNU
8293 *** binutils to release 2.9.1 or newer.  Another option is to modify
8294 *** your PATH or compiler configuration so that the native linker is
8295 *** used, and then restart.
8296
8297 EOF
8298       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8299         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8300         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8301       else
8302         ld_shlibs=no
8303       fi
8304       ;;
8305
8306     sunos4*)
8307       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8308       wlarc=
8309       hardcode_direct=yes
8310       hardcode_shlibpath_var=no
8311       ;;
8312
8313     *)
8314       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8315         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8316         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8317       else
8318         ld_shlibs=no
8319       fi
8320       ;;
8321     esac
8322
8323     if test "$ld_shlibs" = no; then
8324       runpath_var=
8325       hardcode_libdir_flag_spec=
8326       export_dynamic_flag_spec=
8327       whole_archive_flag_spec=
8328     fi
8329   else
8330     # PORTME fill in a description of your system's linker (not GNU ld)
8331     case $host_os in
8332     aix3*)
8333       allow_undefined_flag=unsupported
8334       always_export_symbols=yes
8335       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'
8336       # Note: this linker hardcodes the directories in LIBPATH if there
8337       # are no directories specified by -L.
8338       hardcode_minus_L=yes
8339       if test "$GCC" = yes && test -z "$link_static_flag"; then
8340         # Neither direct hardcoding nor static linking is supported with a
8341         # broken collect2.
8342         hardcode_direct=unsupported
8343       fi
8344       ;;
8345
8346     aix4* | aix5*)
8347       if test "$host_cpu" = ia64; then
8348         # On IA64, the linker does run time linking by default, so we don't
8349         # have to do anything special.
8350         aix_use_runtimelinking=no
8351         exp_sym_flag='-Bexport'
8352         no_entry_flag=""
8353       else
8354         # If we're using GNU nm, then we don't want the "-C" option.
8355         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8356         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8357           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'
8358         else
8359           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'
8360         fi
8361         aix_use_runtimelinking=no
8362
8363         # Test if we are trying to use run time linking or normal
8364         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8365         # need to do runtime linking.
8366         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8367           for ld_flag in $LDFLAGS; do
8368           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8369             aix_use_runtimelinking=yes
8370             break
8371           fi
8372           done
8373         esac
8374
8375         exp_sym_flag='-bexport'
8376         no_entry_flag='-bnoentry'
8377       fi
8378
8379       # When large executables or shared objects are built, AIX ld can
8380       # have problems creating the table of contents.  If linking a library
8381       # or program results in "error TOC overflow" add -mminimal-toc to
8382       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8383       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8384
8385       archive_cmds=''
8386       hardcode_direct=yes
8387       hardcode_libdir_separator=':'
8388       link_all_deplibs=yes
8389
8390       if test "$GCC" = yes; then
8391         case $host_os in aix4.[012]|aix4.[012].*)
8392         # We only want to do this on AIX 4.2 and lower, the check
8393         # below for broken collect2 doesn't work under 4.3+
8394           collect2name=`${CC} -print-prog-name=collect2`
8395           if test -f "$collect2name" && \
8396            strings "$collect2name" | grep resolve_lib_name >/dev/null
8397           then
8398           # We have reworked collect2
8399           hardcode_direct=yes
8400           else
8401           # We have old collect2
8402           hardcode_direct=unsupported
8403           # It fails to find uninstalled libraries when the uninstalled
8404           # path is not listed in the libpath.  Setting hardcode_minus_L
8405           # to unsupported forces relinking
8406           hardcode_minus_L=yes
8407           hardcode_libdir_flag_spec='-L$libdir'
8408           hardcode_libdir_separator=
8409           fi
8410         esac
8411         shared_flag='-shared'
8412         if test "$aix_use_runtimelinking" = yes; then
8413           shared_flag="$shared_flag "'${wl}-G'
8414         fi
8415       else
8416         # not using gcc
8417         if test "$host_cpu" = ia64; then
8418         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8419         # chokes on -Wl,-G. The following line is correct:
8420           shared_flag='-G'
8421         else
8422         if test "$aix_use_runtimelinking" = yes; then
8423             shared_flag='${wl}-G'
8424           else
8425             shared_flag='${wl}-bM:SRE'
8426         fi
8427         fi
8428       fi
8429
8430       # It seems that -bexpall does not export symbols beginning with
8431       # underscore (_), so it is better to generate a list of symbols to export.
8432       always_export_symbols=yes
8433       if test "$aix_use_runtimelinking" = yes; then
8434         # Warning - without using the other runtime loading flags (-brtl),
8435         # -berok will link without error, but may produce a broken library.
8436         allow_undefined_flag='-berok'
8437        # Determine the default libpath from the value encoded in an empty executable.
8438        cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h.  */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h.  */
8444
8445 int
8446 main ()
8447 {
8448
8449   ;
8450   return 0;
8451 }
8452 _ACEOF
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455   (eval $ac_link) 2>conftest.er1
8456   ac_status=$?
8457   grep -v '^ *+' conftest.er1 >conftest.err
8458   rm -f conftest.er1
8459   cat conftest.err >&5
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); } &&
8462          { ac_try='test -z "$ac_c_werror_flag"
8463                          || test ! -s conftest.err'
8464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465   (eval $ac_try) 2>&5
8466   ac_status=$?
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); }; } &&
8469          { ac_try='test -s conftest$ac_exeext'
8470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471   (eval $ac_try) 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; }; then
8475
8476 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8477 }'`
8478 # Check for a 64-bit object if we didn't find anything.
8479 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; }
8480 }'`; fi
8481 else
8482   echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8484
8485 fi
8486 rm -f conftest.err conftest.$ac_objext \
8487       conftest$ac_exeext conftest.$ac_ext
8488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8489
8490        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8491         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"
8492        else
8493         if test "$host_cpu" = ia64; then
8494           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8495           allow_undefined_flag="-z nodefs"
8496           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"
8497         else
8498          # Determine the default libpath from the value encoded in an empty executable.
8499          cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h.  */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h.  */
8505
8506 int
8507 main ()
8508 {
8509
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516   (eval $ac_link) 2>conftest.er1
8517   ac_status=$?
8518   grep -v '^ *+' conftest.er1 >conftest.err
8519   rm -f conftest.er1
8520   cat conftest.err >&5
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -z "$ac_c_werror_flag"
8524                          || test ! -s conftest.err'
8525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526   (eval $ac_try) 2>&5
8527   ac_status=$?
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); }; } &&
8530          { ac_try='test -s conftest$ac_exeext'
8531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532   (eval $ac_try) 2>&5
8533   ac_status=$?
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); }; }; then
8536
8537 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8538 }'`
8539 # Check for a 64-bit object if we didn't find anything.
8540 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; }
8541 }'`; fi
8542 else
8543   echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8545
8546 fi
8547 rm -f conftest.err conftest.$ac_objext \
8548       conftest$ac_exeext conftest.$ac_ext
8549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8550
8551          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8552           # Warning - without using the other run time loading flags,
8553           # -berok will link without error, but may produce a broken library.
8554           no_undefined_flag=' ${wl}-bernotok'
8555           allow_undefined_flag=' ${wl}-berok'
8556           # -bexpall does not export symbols beginning with underscore (_)
8557           always_export_symbols=yes
8558           # Exported symbols can be pulled into shared objects from archives
8559           whole_archive_flag_spec=' '
8560           archive_cmds_need_lc=yes
8561           # This is similar to how AIX traditionally builds its shared libraries.
8562           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'
8563         fi
8564       fi
8565       ;;
8566
8567     amigaos*)
8568       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)'
8569       hardcode_libdir_flag_spec='-L$libdir'
8570       hardcode_minus_L=yes
8571       # see comment about different semantics on the GNU ld section
8572       ld_shlibs=no
8573       ;;
8574
8575     bsdi[45]*)
8576       export_dynamic_flag_spec=-rdynamic
8577       ;;
8578
8579     cygwin* | mingw* | pw32*)
8580       # When not using gcc, we currently assume that we are using
8581       # Microsoft Visual C++.
8582       # hardcode_libdir_flag_spec is actually meaningless, as there is
8583       # no search path for DLLs.
8584       hardcode_libdir_flag_spec=' '
8585       allow_undefined_flag=unsupported
8586       # Tell ltmain to make .lib files, not .a files.
8587       libext=lib
8588       # Tell ltmain to make .dll files, not .so files.
8589       shrext_cmds=".dll"
8590       # FIXME: Setting linknames here is a bad hack.
8591       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8592       # The linker will automatically build a .lib file if we build a DLL.
8593       old_archive_From_new_cmds='true'
8594       # FIXME: Should let the user specify the lib program.
8595       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8596       fix_srcfile_path='`cygpath -w "$srcfile"`'
8597       enable_shared_with_static_runtimes=yes
8598       ;;
8599
8600     darwin* | rhapsody*)
8601       case $host_os in
8602         rhapsody* | darwin1.[012])
8603          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8604          ;;
8605        *) # Darwin 1.3 on
8606          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8607            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8608          else
8609            case ${MACOSX_DEPLOYMENT_TARGET} in
8610              10.[012])
8611                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8612                ;;
8613              10.*)
8614                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8615                ;;
8616            esac
8617          fi
8618          ;;
8619       esac
8620       archive_cmds_need_lc=no
8621       hardcode_direct=no
8622       hardcode_automatic=yes
8623       hardcode_shlibpath_var=unsupported
8624       whole_archive_flag_spec=''
8625       link_all_deplibs=yes
8626     if test "$GCC" = yes ; then
8627         output_verbose_link_cmd='echo'
8628         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8629       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8630       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8631       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}'
8632       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}'
8633     else
8634       case $cc_basename in
8635         xlc*)
8636          output_verbose_link_cmd='echo'
8637          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8638          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8639           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8640          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}'
8641           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}'
8642           ;;
8643        *)
8644          ld_shlibs=no
8645           ;;
8646       esac
8647     fi
8648       ;;
8649
8650     dgux*)
8651       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8652       hardcode_libdir_flag_spec='-L$libdir'
8653       hardcode_shlibpath_var=no
8654       ;;
8655
8656     freebsd1*)
8657       ld_shlibs=no
8658       ;;
8659
8660     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8661     # support.  Future versions do this automatically, but an explicit c++rt0.o
8662     # does not break anything, and helps significantly (at the cost of a little
8663     # extra space).
8664     freebsd2.2*)
8665       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8666       hardcode_libdir_flag_spec='-R$libdir'
8667       hardcode_direct=yes
8668       hardcode_shlibpath_var=no
8669       ;;
8670
8671     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8672     freebsd2*)
8673       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8674       hardcode_direct=yes
8675       hardcode_minus_L=yes
8676       hardcode_shlibpath_var=no
8677       ;;
8678
8679     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8680     freebsd* | kfreebsd*-gnu | dragonfly*)
8681       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8682       hardcode_libdir_flag_spec='-R$libdir'
8683       hardcode_direct=yes
8684       hardcode_shlibpath_var=no
8685       ;;
8686
8687     hpux9*)
8688       if test "$GCC" = yes; then
8689         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'
8690       else
8691         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'
8692       fi
8693       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8694       hardcode_libdir_separator=:
8695       hardcode_direct=yes
8696
8697       # hardcode_minus_L: Not really in the search PATH,
8698       # but as the default location of the library.
8699       hardcode_minus_L=yes
8700       export_dynamic_flag_spec='${wl}-E'
8701       ;;
8702
8703     hpux10* | hpux11*)
8704       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8705         case $host_cpu in
8706         hppa*64*|ia64*)
8707           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8708           ;;
8709         *)
8710           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8711           ;;
8712         esac
8713       else
8714         case $host_cpu in
8715         hppa*64*|ia64*)
8716           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8717           ;;
8718         *)
8719           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8720           ;;
8721         esac
8722       fi
8723       if test "$with_gnu_ld" = no; then
8724         case $host_cpu in
8725         hppa*64*)
8726           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8727           hardcode_libdir_flag_spec_ld='+b $libdir'
8728           hardcode_libdir_separator=:
8729           hardcode_direct=no
8730           hardcode_shlibpath_var=no
8731           ;;
8732         ia64*)
8733           hardcode_libdir_flag_spec='-L$libdir'
8734           hardcode_direct=no
8735           hardcode_shlibpath_var=no
8736
8737           # hardcode_minus_L: Not really in the search PATH,
8738           # but as the default location of the library.
8739           hardcode_minus_L=yes
8740           ;;
8741         *)
8742           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8743           hardcode_libdir_separator=:
8744           hardcode_direct=yes
8745           export_dynamic_flag_spec='${wl}-E'
8746
8747           # hardcode_minus_L: Not really in the search PATH,
8748           # but as the default location of the library.
8749           hardcode_minus_L=yes
8750           ;;
8751         esac
8752       fi
8753       ;;
8754
8755     irix5* | irix6* | nonstopux*)
8756       if test "$GCC" = yes; then
8757         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'
8758       else
8759         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'
8760         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8761       fi
8762       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8763       hardcode_libdir_separator=:
8764       link_all_deplibs=yes
8765       ;;
8766
8767     netbsd*)
8768       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8769         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8770       else
8771         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8772       fi
8773       hardcode_libdir_flag_spec='-R$libdir'
8774       hardcode_direct=yes
8775       hardcode_shlibpath_var=no
8776       ;;
8777
8778     newsos6)
8779       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8780       hardcode_direct=yes
8781       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8782       hardcode_libdir_separator=:
8783       hardcode_shlibpath_var=no
8784       ;;
8785
8786     openbsd*)
8787       hardcode_direct=yes
8788       hardcode_shlibpath_var=no
8789       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8790         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8791         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8792         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8793         export_dynamic_flag_spec='${wl}-E'
8794       else
8795        case $host_os in
8796          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8797            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8798            hardcode_libdir_flag_spec='-R$libdir'
8799            ;;
8800          *)
8801            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8802            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8803            ;;
8804        esac
8805       fi
8806       ;;
8807
8808     os2*)
8809       hardcode_libdir_flag_spec='-L$libdir'
8810       hardcode_minus_L=yes
8811       allow_undefined_flag=unsupported
8812       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'
8813       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8814       ;;
8815
8816     osf3*)
8817       if test "$GCC" = yes; then
8818         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8819         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'
8820       else
8821         allow_undefined_flag=' -expect_unresolved \*'
8822         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'
8823       fi
8824       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8825       hardcode_libdir_separator=:
8826       ;;
8827
8828     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8829       if test "$GCC" = yes; then
8830         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8831         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'
8832         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8833       else
8834         allow_undefined_flag=' -expect_unresolved \*'
8835         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'
8836         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8837         $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'
8838
8839         # Both c and cxx compiler support -rpath directly
8840         hardcode_libdir_flag_spec='-rpath $libdir'
8841       fi
8842       hardcode_libdir_separator=:
8843       ;;
8844
8845     sco3.2v5*)
8846       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8847       hardcode_shlibpath_var=no
8848       export_dynamic_flag_spec='${wl}-Bexport'
8849       runpath_var=LD_RUN_PATH
8850       hardcode_runpath_var=yes
8851       ;;
8852
8853     solaris*)
8854       no_undefined_flag=' -z text'
8855       if test "$GCC" = yes; then
8856         wlarc='${wl}'
8857         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8858         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8859           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8860       else
8861         wlarc=''
8862         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8863         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8864         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8865       fi
8866       hardcode_libdir_flag_spec='-R$libdir'
8867       hardcode_shlibpath_var=no
8868       case $host_os in
8869       solaris2.[0-5] | solaris2.[0-5].*) ;;
8870       *)
8871         # The compiler driver will combine linker options so we
8872         # cannot just pass the convience library names through
8873         # without $wl, iff we do not link with $LD.
8874         # Luckily, gcc supports the same syntax we need for Sun Studio.
8875         # Supported since Solaris 2.6 (maybe 2.5.1?)
8876         case $wlarc in
8877         '')
8878           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8879         *)
8880           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' ;;
8881         esac ;;
8882       esac
8883       link_all_deplibs=yes
8884       ;;
8885
8886     sunos4*)
8887       if test "x$host_vendor" = xsequent; then
8888         # Use $CC to link under sequent, because it throws in some extra .o
8889         # files that make .init and .fini sections work.
8890         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8891       else
8892         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8893       fi
8894       hardcode_libdir_flag_spec='-L$libdir'
8895       hardcode_direct=yes
8896       hardcode_minus_L=yes
8897       hardcode_shlibpath_var=no
8898       ;;
8899
8900     sysv4)
8901       case $host_vendor in
8902         sni)
8903           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8904           hardcode_direct=yes # is this really true???
8905         ;;
8906         siemens)
8907           ## LD is ld it makes a PLAMLIB
8908           ## CC just makes a GrossModule.
8909           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8910           reload_cmds='$CC -r -o $output$reload_objs'
8911           hardcode_direct=no
8912         ;;
8913         motorola)
8914           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8915           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8916         ;;
8917       esac
8918       runpath_var='LD_RUN_PATH'
8919       hardcode_shlibpath_var=no
8920       ;;
8921
8922     sysv4.3*)
8923       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8924       hardcode_shlibpath_var=no
8925       export_dynamic_flag_spec='-Bexport'
8926       ;;
8927
8928     sysv4*MP*)
8929       if test -d /usr/nec; then
8930         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931         hardcode_shlibpath_var=no
8932         runpath_var=LD_RUN_PATH
8933         hardcode_runpath_var=yes
8934         ld_shlibs=yes
8935       fi
8936       ;;
8937
8938     sysv4.2uw2*)
8939       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8940       hardcode_direct=yes
8941       hardcode_minus_L=no
8942       hardcode_shlibpath_var=no
8943       hardcode_runpath_var=yes
8944       runpath_var=LD_RUN_PATH
8945       ;;
8946
8947    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8948       no_undefined_flag='${wl}-z ${wl}text'
8949       if test "$GCC" = yes; then
8950         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8951       else
8952         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8953       fi
8954       runpath_var='LD_RUN_PATH'
8955       hardcode_shlibpath_var=no
8956       ;;
8957
8958     sysv5*)
8959       no_undefined_flag=' -z text'
8960       # $CC -shared without GNU ld will not create a library from C++
8961       # object files and a static libstdc++, better avoid it by now
8962       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8963       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8964                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8965       hardcode_libdir_flag_spec=
8966       hardcode_shlibpath_var=no
8967       runpath_var='LD_RUN_PATH'
8968       ;;
8969
8970     uts4*)
8971       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8972       hardcode_libdir_flag_spec='-L$libdir'
8973       hardcode_shlibpath_var=no
8974       ;;
8975
8976     *)
8977       ld_shlibs=no
8978       ;;
8979     esac
8980   fi
8981
8982 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8983 echo "${ECHO_T}$ld_shlibs" >&6
8984 test "$ld_shlibs" = no && can_build_shared=no
8985
8986 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8987 if test "$GCC" = yes; then
8988   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8989 fi
8990
8991 #
8992 # Do we need to explicitly link libc?
8993 #
8994 case "x$archive_cmds_need_lc" in
8995 x|xyes)
8996   # Assume -lc should be added
8997   archive_cmds_need_lc=yes
8998
8999   if test "$enable_shared" = yes && test "$GCC" = yes; then
9000     case $archive_cmds in
9001     *'~'*)
9002       # FIXME: we may have to deal with multi-command sequences.
9003       ;;
9004     '$CC '*)
9005       # Test whether the compiler implicitly links with -lc since on some
9006       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9007       # to ld, don't add -lc before -lgcc.
9008       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9009 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9010       $rm conftest*
9011       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9012
9013       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9014   (eval $ac_compile) 2>&5
9015   ac_status=$?
9016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); } 2>conftest.err; then
9018         soname=conftest
9019         lib=conftest
9020         libobjs=conftest.$ac_objext
9021         deplibs=
9022         wl=$lt_prog_compiler_wl
9023         compiler_flags=-v
9024         linker_flags=-v
9025         verstring=
9026         output_objdir=.
9027         libname=conftest
9028         lt_save_allow_undefined_flag=$allow_undefined_flag
9029         allow_undefined_flag=
9030         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9031   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9032   ac_status=$?
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); }
9035         then
9036           archive_cmds_need_lc=no
9037         else
9038           archive_cmds_need_lc=yes
9039         fi
9040         allow_undefined_flag=$lt_save_allow_undefined_flag
9041       else
9042         cat conftest.err 1>&5
9043       fi
9044       $rm conftest*
9045       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9046 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9047       ;;
9048     esac
9049   fi
9050   ;;
9051 esac
9052
9053 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9054 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9055 library_names_spec=
9056 libname_spec='lib$name'
9057 soname_spec=
9058 shrext_cmds=".so"
9059 postinstall_cmds=
9060 postuninstall_cmds=
9061 finish_cmds=
9062 finish_eval=
9063 shlibpath_var=
9064 shlibpath_overrides_runpath=unknown
9065 version_type=none
9066 dynamic_linker="$host_os ld.so"
9067 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9068 if test "$GCC" = yes; then
9069   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9070   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9071     # if the path contains ";" then we assume it to be the separator
9072     # otherwise default to the standard path separator (i.e. ":") - it is
9073     # assumed that no part of a normal pathname contains ";" but that should
9074     # okay in the real world where ";" in dirpaths is itself problematic.
9075     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9076   else
9077     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9078   fi
9079 else
9080   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9081 fi
9082 need_lib_prefix=unknown
9083 hardcode_into_libs=no
9084
9085 # when you set need_version to no, make sure it does not cause -set_version
9086 # flags to be left without arguments
9087 need_version=unknown
9088
9089 case $host_os in
9090 aix3*)
9091   version_type=linux
9092   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9093   shlibpath_var=LIBPATH
9094
9095   # AIX 3 has no versioning support, so we append a major version to the name.
9096   soname_spec='${libname}${release}${shared_ext}$major'
9097   ;;
9098
9099 aix4* | aix5*)
9100   version_type=linux
9101   need_lib_prefix=no
9102   need_version=no
9103   hardcode_into_libs=yes
9104   if test "$host_cpu" = ia64; then
9105     # AIX 5 supports IA64
9106     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9107     shlibpath_var=LD_LIBRARY_PATH
9108   else
9109     # With GCC up to 2.95.x, collect2 would create an import file
9110     # for dependence libraries.  The import file would start with
9111     # the line `#! .'.  This would cause the generated library to
9112     # depend on `.', always an invalid library.  This was fixed in
9113     # development snapshots of GCC prior to 3.0.
9114     case $host_os in
9115       aix4 | aix4.[01] | aix4.[01].*)
9116       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9117            echo ' yes '
9118            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9119         :
9120       else
9121         can_build_shared=no
9122       fi
9123       ;;
9124     esac
9125     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9126     # soname into executable. Probably we can add versioning support to
9127     # collect2, so additional links can be useful in future.
9128     if test "$aix_use_runtimelinking" = yes; then
9129       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9130       # instead of lib<name>.a to let people know that these are not
9131       # typical AIX shared libraries.
9132       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133     else
9134       # We preserve .a as extension for shared libraries through AIX4.2
9135       # and later when we are not doing run time linking.
9136       library_names_spec='${libname}${release}.a $libname.a'
9137       soname_spec='${libname}${release}${shared_ext}$major'
9138     fi
9139     shlibpath_var=LIBPATH
9140   fi
9141   ;;
9142
9143 amigaos*)
9144   library_names_spec='$libname.ixlibrary $libname.a'
9145   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9146   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'
9147   ;;
9148
9149 beos*)
9150   library_names_spec='${libname}${shared_ext}'
9151   dynamic_linker="$host_os ld.so"
9152   shlibpath_var=LIBRARY_PATH
9153   ;;
9154
9155 bsdi[45]*)
9156   version_type=linux
9157   need_version=no
9158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9159   soname_spec='${libname}${release}${shared_ext}$major'
9160   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9161   shlibpath_var=LD_LIBRARY_PATH
9162   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9163   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9164   # the default ld.so.conf also contains /usr/contrib/lib and
9165   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9166   # libtool to hard-code these into programs
9167   ;;
9168
9169 cygwin* | mingw* | pw32*)
9170   version_type=windows
9171   shrext_cmds=".dll"
9172   need_version=no
9173   need_lib_prefix=no
9174
9175   case $GCC,$host_os in
9176   yes,cygwin* | yes,mingw* | yes,pw32*)
9177     library_names_spec='$libname.dll.a'
9178     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9179     postinstall_cmds='base_file=`basename \${file}`~
9180       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9181       dldir=$destdir/`dirname \$dlpath`~
9182       test -d \$dldir || mkdir -p \$dldir~
9183       $install_prog $dir/$dlname \$dldir/$dlname~
9184       chmod a+x \$dldir/$dlname'
9185     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9186       dlpath=$dir/\$dldll~
9187        $rm \$dlpath'
9188     shlibpath_overrides_runpath=yes
9189
9190     case $host_os in
9191     cygwin*)
9192       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9193       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9194       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9195       ;;
9196     mingw*)
9197       # MinGW DLLs use traditional 'lib' prefix
9198       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9199       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9200       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9201         # It is most probably a Windows format PATH printed by
9202         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9203         # path with ; separators, and with drive letters. We can handle the
9204         # drive letters (cygwin fileutils understands them), so leave them,
9205         # especially as we might pass files found there to a mingw objdump,
9206         # which wouldn't understand a cygwinified path. Ahh.
9207         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9208       else
9209         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9210       fi
9211       ;;
9212     pw32*)
9213       # pw32 DLLs use 'pw' prefix rather than 'lib'
9214       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9215       ;;
9216     esac
9217     ;;
9218
9219   *)
9220     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9221     ;;
9222   esac
9223   dynamic_linker='Win32 ld.exe'
9224   # FIXME: first we should search . and the directory the executable is in
9225   shlibpath_var=PATH
9226   ;;
9227
9228 darwin* | rhapsody*)
9229   dynamic_linker="$host_os dyld"
9230   version_type=darwin
9231   need_lib_prefix=no
9232   need_version=no
9233   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9234   soname_spec='${libname}${release}${major}$shared_ext'
9235   shlibpath_overrides_runpath=yes
9236   shlibpath_var=DYLD_LIBRARY_PATH
9237   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9238   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9239   if test "$GCC" = yes; then
9240     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"`
9241   else
9242     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9243   fi
9244   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9245   ;;
9246
9247 dgux*)
9248   version_type=linux
9249   need_lib_prefix=no
9250   need_version=no
9251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9252   soname_spec='${libname}${release}${shared_ext}$major'
9253   shlibpath_var=LD_LIBRARY_PATH
9254   ;;
9255
9256 freebsd1*)
9257   dynamic_linker=no
9258   ;;
9259
9260 kfreebsd*-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   shlibpath_overrides_runpath=no
9268   hardcode_into_libs=yes
9269   dynamic_linker='GNU ld.so'
9270   ;;
9271
9272 freebsd* | dragonfly*)
9273   # DragonFly does not have aout.  When/if they implement a new
9274   # versioning mechanism, adjust this.
9275   if test -x /usr/bin/objformat; then
9276     objformat=`/usr/bin/objformat`
9277   else
9278     case $host_os in
9279     freebsd[123]*) objformat=aout ;;
9280     *) objformat=elf ;;
9281     esac
9282   fi
9283   version_type=freebsd-$objformat
9284   case $version_type in
9285     freebsd-elf*)
9286       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9287       need_version=no
9288       need_lib_prefix=no
9289       ;;
9290     freebsd-*)
9291       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9292       need_version=yes
9293       ;;
9294   esac
9295   shlibpath_var=LD_LIBRARY_PATH
9296   case $host_os in
9297   freebsd2*)
9298     shlibpath_overrides_runpath=yes
9299     ;;
9300   freebsd3.[01]* | freebsdelf3.[01]*)
9301     shlibpath_overrides_runpath=yes
9302     hardcode_into_libs=yes
9303     ;;
9304   *) # from 3.2 on
9305     shlibpath_overrides_runpath=no
9306     hardcode_into_libs=yes
9307     ;;
9308   esac
9309   ;;
9310
9311 gnu*)
9312   version_type=linux
9313   need_lib_prefix=no
9314   need_version=no
9315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9316   soname_spec='${libname}${release}${shared_ext}$major'
9317   shlibpath_var=LD_LIBRARY_PATH
9318   hardcode_into_libs=yes
9319   ;;
9320
9321 hpux9* | hpux10* | hpux11*)
9322   # Give a soname corresponding to the major version so that dld.sl refuses to
9323   # link against other versions.
9324   version_type=sunos
9325   need_lib_prefix=no
9326   need_version=no
9327   case $host_cpu in
9328   ia64*)
9329     shrext_cmds='.so'
9330     hardcode_into_libs=yes
9331     dynamic_linker="$host_os dld.so"
9332     shlibpath_var=LD_LIBRARY_PATH
9333     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9334     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9335     soname_spec='${libname}${release}${shared_ext}$major'
9336     if test "X$HPUX_IA64_MODE" = X32; then
9337       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9338     else
9339       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9340     fi
9341     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9342     ;;
9343    hppa*64*)
9344      shrext_cmds='.sl'
9345      hardcode_into_libs=yes
9346      dynamic_linker="$host_os dld.sl"
9347      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9348      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9349      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350      soname_spec='${libname}${release}${shared_ext}$major'
9351      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9352      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9353      ;;
9354    *)
9355     shrext_cmds='.sl'
9356     dynamic_linker="$host_os dld.sl"
9357     shlibpath_var=SHLIB_PATH
9358     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360     soname_spec='${libname}${release}${shared_ext}$major'
9361     ;;
9362   esac
9363   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9364   postinstall_cmds='chmod 555 $lib'
9365   ;;
9366
9367 irix5* | irix6* | nonstopux*)
9368   case $host_os in
9369     nonstopux*) version_type=nonstopux ;;
9370     *)
9371         if test "$lt_cv_prog_gnu_ld" = yes; then
9372                 version_type=linux
9373         else
9374                 version_type=irix
9375         fi ;;
9376   esac
9377   need_lib_prefix=no
9378   need_version=no
9379   soname_spec='${libname}${release}${shared_ext}$major'
9380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9381   case $host_os in
9382   irix5* | nonstopux*)
9383     libsuff= shlibsuff=
9384     ;;
9385   *)
9386     case $LD in # libtool.m4 will add one of these switches to LD
9387     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9388       libsuff= shlibsuff= libmagic=32-bit;;
9389     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9390       libsuff=32 shlibsuff=N32 libmagic=N32;;
9391     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9392       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9393     *) libsuff= shlibsuff= libmagic=never-match;;
9394     esac
9395     ;;
9396   esac
9397   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9398   shlibpath_overrides_runpath=no
9399   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9400   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9401   hardcode_into_libs=yes
9402   ;;
9403
9404 # No shared lib support for Linux oldld, aout, or coff.
9405 linux*oldld* | linux*aout* | linux*coff*)
9406   dynamic_linker=no
9407   ;;
9408
9409 # This must be Linux ELF.
9410 linux*)
9411   version_type=linux
9412   need_lib_prefix=no
9413   need_version=no
9414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9415   soname_spec='${libname}${release}${shared_ext}$major'
9416   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9417   shlibpath_var=LD_LIBRARY_PATH
9418   shlibpath_overrides_runpath=no
9419   # This implies no fast_install, which is unacceptable.
9420   # Some rework will be needed to allow for fast_install
9421   # before this can be enabled.
9422   hardcode_into_libs=yes
9423
9424   # Append ld.so.conf contents to the search path
9425   if test -f /etc/ld.so.conf; then
9426     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' ' '`
9427     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9428   fi
9429
9430   # We used to test for /lib/ld.so.1 and disable shared libraries on
9431   # powerpc, because MkLinux only supported shared libraries with the
9432   # GNU dynamic linker.  Since this was broken with cross compilers,
9433   # most powerpc-linux boxes support dynamic linking these days and
9434   # people can always --disable-shared, the test was removed, and we
9435   # assume the GNU/Linux dynamic linker is in use.
9436   dynamic_linker='GNU/Linux ld.so'
9437   ;;
9438
9439 knetbsd*-gnu)
9440   version_type=linux
9441   need_lib_prefix=no
9442   need_version=no
9443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9444   soname_spec='${libname}${release}${shared_ext}$major'
9445   shlibpath_var=LD_LIBRARY_PATH
9446   shlibpath_overrides_runpath=no
9447   hardcode_into_libs=yes
9448   dynamic_linker='GNU ld.so'
9449   ;;
9450
9451 netbsd*)
9452   version_type=sunos
9453   need_lib_prefix=no
9454   need_version=no
9455   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9456     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9457     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9458     dynamic_linker='NetBSD (a.out) ld.so'
9459   else
9460     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9461     soname_spec='${libname}${release}${shared_ext}$major'
9462     dynamic_linker='NetBSD ld.elf_so'
9463   fi
9464   shlibpath_var=LD_LIBRARY_PATH
9465   shlibpath_overrides_runpath=yes
9466   hardcode_into_libs=yes
9467   ;;
9468
9469 newsos6)
9470   version_type=linux
9471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472   shlibpath_var=LD_LIBRARY_PATH
9473   shlibpath_overrides_runpath=yes
9474   ;;
9475
9476 nto-qnx*)
9477   version_type=linux
9478   need_lib_prefix=no
9479   need_version=no
9480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9481   soname_spec='${libname}${release}${shared_ext}$major'
9482   shlibpath_var=LD_LIBRARY_PATH
9483   shlibpath_overrides_runpath=yes
9484   ;;
9485
9486 openbsd*)
9487   version_type=sunos
9488   need_lib_prefix=no
9489   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9490   case $host_os in
9491     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9492     *)                         need_version=no  ;;
9493   esac
9494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9495   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9496   shlibpath_var=LD_LIBRARY_PATH
9497   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9498     case $host_os in
9499       openbsd2.[89] | openbsd2.[89].*)
9500         shlibpath_overrides_runpath=no
9501         ;;
9502       *)
9503         shlibpath_overrides_runpath=yes
9504         ;;
9505       esac
9506   else
9507     shlibpath_overrides_runpath=yes
9508   fi
9509   ;;
9510
9511 os2*)
9512   libname_spec='$name'
9513   shrext_cmds=".dll"
9514   need_lib_prefix=no
9515   library_names_spec='$libname${shared_ext} $libname.a'
9516   dynamic_linker='OS/2 ld.exe'
9517   shlibpath_var=LIBPATH
9518   ;;
9519
9520 osf3* | osf4* | osf5*)
9521   version_type=osf
9522   need_lib_prefix=no
9523   need_version=no
9524   soname_spec='${libname}${release}${shared_ext}$major'
9525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526   shlibpath_var=LD_LIBRARY_PATH
9527   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9528   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9529   ;;
9530
9531 sco3.2v5*)
9532   version_type=osf
9533   soname_spec='${libname}${release}${shared_ext}$major'
9534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9535   shlibpath_var=LD_LIBRARY_PATH
9536   ;;
9537
9538 solaris*)
9539   version_type=linux
9540   need_lib_prefix=no
9541   need_version=no
9542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543   soname_spec='${libname}${release}${shared_ext}$major'
9544   shlibpath_var=LD_LIBRARY_PATH
9545   shlibpath_overrides_runpath=yes
9546   hardcode_into_libs=yes
9547   # ldd complains unless libraries are executable
9548   postinstall_cmds='chmod +x $lib'
9549   ;;
9550
9551 sunos4*)
9552   version_type=sunos
9553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9554   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9555   shlibpath_var=LD_LIBRARY_PATH
9556   shlibpath_overrides_runpath=yes
9557   if test "$with_gnu_ld" = yes; then
9558     need_lib_prefix=no
9559   fi
9560   need_version=yes
9561   ;;
9562
9563 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9564   version_type=linux
9565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566   soname_spec='${libname}${release}${shared_ext}$major'
9567   shlibpath_var=LD_LIBRARY_PATH
9568   case $host_vendor in
9569     sni)
9570       shlibpath_overrides_runpath=no
9571       need_lib_prefix=no
9572       export_dynamic_flag_spec='${wl}-Blargedynsym'
9573       runpath_var=LD_RUN_PATH
9574       ;;
9575     siemens)
9576       need_lib_prefix=no
9577       ;;
9578     motorola)
9579       need_lib_prefix=no
9580       need_version=no
9581       shlibpath_overrides_runpath=no
9582       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9583       ;;
9584   esac
9585   ;;
9586
9587 sysv4*MP*)
9588   if test -d /usr/nec ;then
9589     version_type=linux
9590     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9591     soname_spec='$libname${shared_ext}.$major'
9592     shlibpath_var=LD_LIBRARY_PATH
9593   fi
9594   ;;
9595
9596 uts4*)
9597   version_type=linux
9598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599   soname_spec='${libname}${release}${shared_ext}$major'
9600   shlibpath_var=LD_LIBRARY_PATH
9601   ;;
9602
9603 *)
9604   dynamic_linker=no
9605   ;;
9606 esac
9607 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9608 echo "${ECHO_T}$dynamic_linker" >&6
9609 test "$dynamic_linker" = no && can_build_shared=no
9610
9611 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9612 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9613 hardcode_action=
9614 if test -n "$hardcode_libdir_flag_spec" || \
9615    test -n "$runpath_var" || \
9616    test "X$hardcode_automatic" = "Xyes" ; then
9617
9618   # We can hardcode non-existant directories.
9619   if test "$hardcode_direct" != no &&
9620      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9621      # have to relink, otherwise we might link with an installed library
9622      # when we should be linking with a yet-to-be-installed one
9623      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9624      test "$hardcode_minus_L" != no; then
9625     # Linking always hardcodes the temporary library directory.
9626     hardcode_action=relink
9627   else
9628     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9629     hardcode_action=immediate
9630   fi
9631 else
9632   # We cannot hardcode anything, or else we can only hardcode existing
9633   # directories.
9634   hardcode_action=unsupported
9635 fi
9636 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9637 echo "${ECHO_T}$hardcode_action" >&6
9638
9639 if test "$hardcode_action" = relink; then
9640   # Fast installation is not supported
9641   enable_fast_install=no
9642 elif test "$shlibpath_overrides_runpath" = yes ||
9643      test "$enable_shared" = no; then
9644   # Fast installation is not necessary
9645   enable_fast_install=needless
9646 fi
9647
9648 striplib=
9649 old_striplib=
9650 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9651 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9652 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9653   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9654   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9655   echo "$as_me:$LINENO: result: yes" >&5
9656 echo "${ECHO_T}yes" >&6
9657 else
9658 # FIXME - insert some real tests, host_os isn't really good enough
9659   case $host_os in
9660    darwin*)
9661        if test -n "$STRIP" ; then
9662          striplib="$STRIP -x"
9663          echo "$as_me:$LINENO: result: yes" >&5
9664 echo "${ECHO_T}yes" >&6
9665        else
9666   echo "$as_me:$LINENO: result: no" >&5
9667 echo "${ECHO_T}no" >&6
9668 fi
9669        ;;
9670    *)
9671   echo "$as_me:$LINENO: result: no" >&5
9672 echo "${ECHO_T}no" >&6
9673     ;;
9674   esac
9675 fi
9676
9677 if test "x$enable_dlopen" != xyes; then
9678   enable_dlopen=unknown
9679   enable_dlopen_self=unknown
9680   enable_dlopen_self_static=unknown
9681 else
9682   lt_cv_dlopen=no
9683   lt_cv_dlopen_libs=
9684
9685   case $host_os in
9686   beos*)
9687     lt_cv_dlopen="load_add_on"
9688     lt_cv_dlopen_libs=
9689     lt_cv_dlopen_self=yes
9690     ;;
9691
9692   mingw* | pw32*)
9693     lt_cv_dlopen="LoadLibrary"
9694     lt_cv_dlopen_libs=
9695    ;;
9696
9697   cygwin*)
9698     lt_cv_dlopen="dlopen"
9699     lt_cv_dlopen_libs=
9700    ;;
9701
9702   darwin*)
9703   # if libdl is installed we need to link against it
9704     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9705 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9706 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9707   echo $ECHO_N "(cached) $ECHO_C" >&6
9708 else
9709   ac_check_lib_save_LIBS=$LIBS
9710 LIBS="-ldl  $LIBS"
9711 cat >conftest.$ac_ext <<_ACEOF
9712 /* confdefs.h.  */
9713 _ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h.  */
9717
9718 /* Override any gcc2 internal prototype to avoid an error.  */
9719 #ifdef __cplusplus
9720 extern "C"
9721 #endif
9722 /* We use char because int might match the return type of a gcc2
9723    builtin and then its argument prototype would still apply.  */
9724 char dlopen ();
9725 int
9726 main ()
9727 {
9728 dlopen ();
9729   ;
9730   return 0;
9731 }
9732 _ACEOF
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735   (eval $ac_link) 2>conftest.er1
9736   ac_status=$?
9737   grep -v '^ *+' conftest.er1 >conftest.err
9738   rm -f conftest.er1
9739   cat conftest.err >&5
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } &&
9742          { ac_try='test -z "$ac_c_werror_flag"
9743                          || test ! -s conftest.err'
9744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745   (eval $ac_try) 2>&5
9746   ac_status=$?
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); }; } &&
9749          { ac_try='test -s conftest$ac_exeext'
9750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751   (eval $ac_try) 2>&5
9752   ac_status=$?
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); }; }; then
9755   ac_cv_lib_dl_dlopen=yes
9756 else
9757   echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9759
9760 ac_cv_lib_dl_dlopen=no
9761 fi
9762 rm -f conftest.err conftest.$ac_objext \
9763       conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_lib_save_LIBS
9765 fi
9766 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9767 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9768 if test $ac_cv_lib_dl_dlopen = yes; then
9769   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9770 else
9771
9772     lt_cv_dlopen="dyld"
9773     lt_cv_dlopen_libs=
9774     lt_cv_dlopen_self=yes
9775
9776 fi
9777
9778    ;;
9779
9780   *)
9781     echo "$as_me:$LINENO: checking for shl_load" >&5
9782 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9783 if test "${ac_cv_func_shl_load+set}" = set; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9794 #define shl_load innocuous_shl_load
9795
9796 /* System header to define __stub macros and hopefully few prototypes,
9797     which can conflict with char shl_load (); below.
9798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799     <limits.h> exists even on freestanding compilers.  */
9800
9801 #ifdef __STDC__
9802 # include <limits.h>
9803 #else
9804 # include <assert.h>
9805 #endif
9806
9807 #undef shl_load
9808
9809 /* Override any gcc2 internal prototype to avoid an error.  */
9810 #ifdef __cplusplus
9811 extern "C"
9812 {
9813 #endif
9814 /* We use char because int might match the return type of a gcc2
9815    builtin and then its argument prototype would still apply.  */
9816 char shl_load ();
9817 /* The GNU C library defines this for functions which it implements
9818     to always fail with ENOSYS.  Some functions are actually named
9819     something starting with __ and the normal name is an alias.  */
9820 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9821 choke me
9822 #else
9823 char (*f) () = shl_load;
9824 #endif
9825 #ifdef __cplusplus
9826 }
9827 #endif
9828
9829 int
9830 main ()
9831 {
9832 return f != shl_load;
9833   ;
9834   return 0;
9835 }
9836 _ACEOF
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839   (eval $ac_link) 2>conftest.er1
9840   ac_status=$?
9841   grep -v '^ *+' conftest.er1 >conftest.err
9842   rm -f conftest.er1
9843   cat conftest.err >&5
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); } &&
9846          { ac_try='test -z "$ac_c_werror_flag"
9847                          || test ! -s conftest.err'
9848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849   (eval $ac_try) 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); }; } &&
9853          { ac_try='test -s conftest$ac_exeext'
9854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855   (eval $ac_try) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }; }; then
9859   ac_cv_func_shl_load=yes
9860 else
9861   echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9863
9864 ac_cv_func_shl_load=no
9865 fi
9866 rm -f conftest.err conftest.$ac_objext \
9867       conftest$ac_exeext conftest.$ac_ext
9868 fi
9869 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9870 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9871 if test $ac_cv_func_shl_load = yes; then
9872   lt_cv_dlopen="shl_load"
9873 else
9874   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9875 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9876 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9877   echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879   ac_check_lib_save_LIBS=$LIBS
9880 LIBS="-ldld  $LIBS"
9881 cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h.  */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h.  */
9887
9888 /* Override any gcc2 internal prototype to avoid an error.  */
9889 #ifdef __cplusplus
9890 extern "C"
9891 #endif
9892 /* We use char because int might match the return type of a gcc2
9893    builtin and then its argument prototype would still apply.  */
9894 char shl_load ();
9895 int
9896 main ()
9897 {
9898 shl_load ();
9899   ;
9900   return 0;
9901 }
9902 _ACEOF
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9905   (eval $ac_link) 2>conftest.er1
9906   ac_status=$?
9907   grep -v '^ *+' conftest.er1 >conftest.err
9908   rm -f conftest.er1
9909   cat conftest.err >&5
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); } &&
9912          { ac_try='test -z "$ac_c_werror_flag"
9913                          || test ! -s conftest.err'
9914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915   (eval $ac_try) 2>&5
9916   ac_status=$?
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); }; } &&
9919          { ac_try='test -s conftest$ac_exeext'
9920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921   (eval $ac_try) 2>&5
9922   ac_status=$?
9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924   (exit $ac_status); }; }; then
9925   ac_cv_lib_dld_shl_load=yes
9926 else
9927   echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9929
9930 ac_cv_lib_dld_shl_load=no
9931 fi
9932 rm -f conftest.err conftest.$ac_objext \
9933       conftest$ac_exeext conftest.$ac_ext
9934 LIBS=$ac_check_lib_save_LIBS
9935 fi
9936 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9937 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9938 if test $ac_cv_lib_dld_shl_load = yes; then
9939   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9940 else
9941   echo "$as_me:$LINENO: checking for dlopen" >&5
9942 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9943 if test "${ac_cv_func_dlopen+set}" = set; then
9944   echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946   cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h.  */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h.  */
9952 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9954 #define dlopen innocuous_dlopen
9955
9956 /* System header to define __stub macros and hopefully few prototypes,
9957     which can conflict with char dlopen (); below.
9958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9959     <limits.h> exists even on freestanding compilers.  */
9960
9961 #ifdef __STDC__
9962 # include <limits.h>
9963 #else
9964 # include <assert.h>
9965 #endif
9966
9967 #undef dlopen
9968
9969 /* Override any gcc2 internal prototype to avoid an error.  */
9970 #ifdef __cplusplus
9971 extern "C"
9972 {
9973 #endif
9974 /* We use char because int might match the return type of a gcc2
9975    builtin and then its argument prototype would still apply.  */
9976 char dlopen ();
9977 /* The GNU C library defines this for functions which it implements
9978     to always fail with ENOSYS.  Some functions are actually named
9979     something starting with __ and the normal name is an alias.  */
9980 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9981 choke me
9982 #else
9983 char (*f) () = dlopen;
9984 #endif
9985 #ifdef __cplusplus
9986 }
9987 #endif
9988
9989 int
9990 main ()
9991 {
9992 return f != dlopen;
9993   ;
9994   return 0;
9995 }
9996 _ACEOF
9997 rm -f conftest.$ac_objext conftest$ac_exeext
9998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9999   (eval $ac_link) 2>conftest.er1
10000   ac_status=$?
10001   grep -v '^ *+' conftest.er1 >conftest.err
10002   rm -f conftest.er1
10003   cat conftest.err >&5
10004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005   (exit $ac_status); } &&
10006          { ac_try='test -z "$ac_c_werror_flag"
10007                          || test ! -s conftest.err'
10008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009   (eval $ac_try) 2>&5
10010   ac_status=$?
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); }; } &&
10013          { ac_try='test -s conftest$ac_exeext'
10014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015   (eval $ac_try) 2>&5
10016   ac_status=$?
10017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018   (exit $ac_status); }; }; then
10019   ac_cv_func_dlopen=yes
10020 else
10021   echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10023
10024 ac_cv_func_dlopen=no
10025 fi
10026 rm -f conftest.err conftest.$ac_objext \
10027       conftest$ac_exeext conftest.$ac_ext
10028 fi
10029 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10030 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10031 if test $ac_cv_func_dlopen = yes; then
10032   lt_cv_dlopen="dlopen"
10033 else
10034   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10035 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10036 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10037   echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039   ac_check_lib_save_LIBS=$LIBS
10040 LIBS="-ldl  $LIBS"
10041 cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h.  */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h.  */
10047
10048 /* Override any gcc2 internal prototype to avoid an error.  */
10049 #ifdef __cplusplus
10050 extern "C"
10051 #endif
10052 /* We use char because int might match the return type of a gcc2
10053    builtin and then its argument prototype would still apply.  */
10054 char dlopen ();
10055 int
10056 main ()
10057 {
10058 dlopen ();
10059   ;
10060   return 0;
10061 }
10062 _ACEOF
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10065   (eval $ac_link) 2>conftest.er1
10066   ac_status=$?
10067   grep -v '^ *+' conftest.er1 >conftest.err
10068   rm -f conftest.er1
10069   cat conftest.err >&5
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); } &&
10072          { ac_try='test -z "$ac_c_werror_flag"
10073                          || test ! -s conftest.err'
10074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075   (eval $ac_try) 2>&5
10076   ac_status=$?
10077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078   (exit $ac_status); }; } &&
10079          { ac_try='test -s conftest$ac_exeext'
10080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081   (eval $ac_try) 2>&5
10082   ac_status=$?
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); }; }; then
10085   ac_cv_lib_dl_dlopen=yes
10086 else
10087   echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10089
10090 ac_cv_lib_dl_dlopen=no
10091 fi
10092 rm -f conftest.err conftest.$ac_objext \
10093       conftest$ac_exeext conftest.$ac_ext
10094 LIBS=$ac_check_lib_save_LIBS
10095 fi
10096 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10097 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10098 if test $ac_cv_lib_dl_dlopen = yes; then
10099   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10100 else
10101   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10102 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10103 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10104   echo $ECHO_N "(cached) $ECHO_C" >&6
10105 else
10106   ac_check_lib_save_LIBS=$LIBS
10107 LIBS="-lsvld  $LIBS"
10108 cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h.  */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h.  */
10114
10115 /* Override any gcc2 internal prototype to avoid an error.  */
10116 #ifdef __cplusplus
10117 extern "C"
10118 #endif
10119 /* We use char because int might match the return type of a gcc2
10120    builtin and then its argument prototype would still apply.  */
10121 char dlopen ();
10122 int
10123 main ()
10124 {
10125 dlopen ();
10126   ;
10127   return 0;
10128 }
10129 _ACEOF
10130 rm -f conftest.$ac_objext conftest$ac_exeext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132   (eval $ac_link) 2>conftest.er1
10133   ac_status=$?
10134   grep -v '^ *+' conftest.er1 >conftest.err
10135   rm -f conftest.er1
10136   cat conftest.err >&5
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); } &&
10139          { ac_try='test -z "$ac_c_werror_flag"
10140                          || test ! -s conftest.err'
10141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142   (eval $ac_try) 2>&5
10143   ac_status=$?
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); }; } &&
10146          { ac_try='test -s conftest$ac_exeext'
10147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148   (eval $ac_try) 2>&5
10149   ac_status=$?
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); }; }; then
10152   ac_cv_lib_svld_dlopen=yes
10153 else
10154   echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10156
10157 ac_cv_lib_svld_dlopen=no
10158 fi
10159 rm -f conftest.err conftest.$ac_objext \
10160       conftest$ac_exeext conftest.$ac_ext
10161 LIBS=$ac_check_lib_save_LIBS
10162 fi
10163 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10164 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10165 if test $ac_cv_lib_svld_dlopen = yes; then
10166   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10167 else
10168   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10169 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10170 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10171   echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173   ac_check_lib_save_LIBS=$LIBS
10174 LIBS="-ldld  $LIBS"
10175 cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h.  */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h.  */
10181
10182 /* Override any gcc2 internal prototype to avoid an error.  */
10183 #ifdef __cplusplus
10184 extern "C"
10185 #endif
10186 /* We use char because int might match the return type of a gcc2
10187    builtin and then its argument prototype would still apply.  */
10188 char dld_link ();
10189 int
10190 main ()
10191 {
10192 dld_link ();
10193   ;
10194   return 0;
10195 }
10196 _ACEOF
10197 rm -f conftest.$ac_objext conftest$ac_exeext
10198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10199   (eval $ac_link) 2>conftest.er1
10200   ac_status=$?
10201   grep -v '^ *+' conftest.er1 >conftest.err
10202   rm -f conftest.er1
10203   cat conftest.err >&5
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); } &&
10206          { ac_try='test -z "$ac_c_werror_flag"
10207                          || test ! -s conftest.err'
10208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209   (eval $ac_try) 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; } &&
10213          { ac_try='test -s conftest$ac_exeext'
10214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215   (eval $ac_try) 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); }; }; then
10219   ac_cv_lib_dld_dld_link=yes
10220 else
10221   echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10223
10224 ac_cv_lib_dld_dld_link=no
10225 fi
10226 rm -f conftest.err conftest.$ac_objext \
10227       conftest$ac_exeext conftest.$ac_ext
10228 LIBS=$ac_check_lib_save_LIBS
10229 fi
10230 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10231 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10232 if test $ac_cv_lib_dld_dld_link = yes; then
10233   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10234 fi
10235
10236
10237 fi
10238
10239
10240 fi
10241
10242
10243 fi
10244
10245
10246 fi
10247
10248
10249 fi
10250
10251     ;;
10252   esac
10253
10254   if test "x$lt_cv_dlopen" != xno; then
10255     enable_dlopen=yes
10256   else
10257     enable_dlopen=no
10258   fi
10259
10260   case $lt_cv_dlopen in
10261   dlopen)
10262     save_CPPFLAGS="$CPPFLAGS"
10263     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10264
10265     save_LDFLAGS="$LDFLAGS"
10266     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10267
10268     save_LIBS="$LIBS"
10269     LIBS="$lt_cv_dlopen_libs $LIBS"
10270
10271     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10272 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10273 if test "${lt_cv_dlopen_self+set}" = set; then
10274   echo $ECHO_N "(cached) $ECHO_C" >&6
10275 else
10276           if test "$cross_compiling" = yes; then :
10277   lt_cv_dlopen_self=cross
10278 else
10279   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10280   lt_status=$lt_dlunknown
10281   cat > conftest.$ac_ext <<EOF
10282 #line 10282 "configure"
10283 #include "confdefs.h"
10284
10285 #if HAVE_DLFCN_H
10286 #include <dlfcn.h>
10287 #endif
10288
10289 #include <stdio.h>
10290
10291 #ifdef RTLD_GLOBAL
10292 #  define LT_DLGLOBAL           RTLD_GLOBAL
10293 #else
10294 #  ifdef DL_GLOBAL
10295 #    define LT_DLGLOBAL         DL_GLOBAL
10296 #  else
10297 #    define LT_DLGLOBAL         0
10298 #  endif
10299 #endif
10300
10301 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10302    find out it does not work in some platform. */
10303 #ifndef LT_DLLAZY_OR_NOW
10304 #  ifdef RTLD_LAZY
10305 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10306 #  else
10307 #    ifdef DL_LAZY
10308 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10309 #    else
10310 #      ifdef RTLD_NOW
10311 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10312 #      else
10313 #        ifdef DL_NOW
10314 #          define LT_DLLAZY_OR_NOW      DL_NOW
10315 #        else
10316 #          define LT_DLLAZY_OR_NOW      0
10317 #        endif
10318 #      endif
10319 #    endif
10320 #  endif
10321 #endif
10322
10323 #ifdef __cplusplus
10324 extern "C" void exit (int);
10325 #endif
10326
10327 void fnord() { int i=42;}
10328 int main ()
10329 {
10330   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10331   int status = $lt_dlunknown;
10332
10333   if (self)
10334     {
10335       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10336       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10337       /* dlclose (self); */
10338     }
10339
10340     exit (status);
10341 }
10342 EOF
10343   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344   (eval $ac_link) 2>&5
10345   ac_status=$?
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10348     (./conftest; exit; ) >&5 2>/dev/null
10349     lt_status=$?
10350     case x$lt_status in
10351       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10352       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10353       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10354     esac
10355   else :
10356     # compilation failed
10357     lt_cv_dlopen_self=no
10358   fi
10359 fi
10360 rm -fr conftest*
10361
10362
10363 fi
10364 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10365 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10366
10367     if test "x$lt_cv_dlopen_self" = xyes; then
10368       LDFLAGS="$LDFLAGS $link_static_flag"
10369       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10370 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10371 if test "${lt_cv_dlopen_self_static+set}" = set; then
10372   echo $ECHO_N "(cached) $ECHO_C" >&6
10373 else
10374           if test "$cross_compiling" = yes; then :
10375   lt_cv_dlopen_self_static=cross
10376 else
10377   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10378   lt_status=$lt_dlunknown
10379   cat > conftest.$ac_ext <<EOF
10380 #line 10380 "configure"
10381 #include "confdefs.h"
10382
10383 #if HAVE_DLFCN_H
10384 #include <dlfcn.h>
10385 #endif
10386
10387 #include <stdio.h>
10388
10389 #ifdef RTLD_GLOBAL
10390 #  define LT_DLGLOBAL           RTLD_GLOBAL
10391 #else
10392 #  ifdef DL_GLOBAL
10393 #    define LT_DLGLOBAL         DL_GLOBAL
10394 #  else
10395 #    define LT_DLGLOBAL         0
10396 #  endif
10397 #endif
10398
10399 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10400    find out it does not work in some platform. */
10401 #ifndef LT_DLLAZY_OR_NOW
10402 #  ifdef RTLD_LAZY
10403 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10404 #  else
10405 #    ifdef DL_LAZY
10406 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10407 #    else
10408 #      ifdef RTLD_NOW
10409 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10410 #      else
10411 #        ifdef DL_NOW
10412 #          define LT_DLLAZY_OR_NOW      DL_NOW
10413 #        else
10414 #          define LT_DLLAZY_OR_NOW      0
10415 #        endif
10416 #      endif
10417 #    endif
10418 #  endif
10419 #endif
10420
10421 #ifdef __cplusplus
10422 extern "C" void exit (int);
10423 #endif
10424
10425 void fnord() { int i=42;}
10426 int main ()
10427 {
10428   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10429   int status = $lt_dlunknown;
10430
10431   if (self)
10432     {
10433       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10434       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10435       /* dlclose (self); */
10436     }
10437
10438     exit (status);
10439 }
10440 EOF
10441   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10442   (eval $ac_link) 2>&5
10443   ac_status=$?
10444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10446     (./conftest; exit; ) >&5 2>/dev/null
10447     lt_status=$?
10448     case x$lt_status in
10449       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10450       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10451       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10452     esac
10453   else :
10454     # compilation failed
10455     lt_cv_dlopen_self_static=no
10456   fi
10457 fi
10458 rm -fr conftest*
10459
10460
10461 fi
10462 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10463 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10464     fi
10465
10466     CPPFLAGS="$save_CPPFLAGS"
10467     LDFLAGS="$save_LDFLAGS"
10468     LIBS="$save_LIBS"
10469     ;;
10470   esac
10471
10472   case $lt_cv_dlopen_self in
10473   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10474   *) enable_dlopen_self=unknown ;;
10475   esac
10476
10477   case $lt_cv_dlopen_self_static in
10478   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10479   *) enable_dlopen_self_static=unknown ;;
10480   esac
10481 fi
10482
10483
10484 # Report which librarie types wil actually be built
10485 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10486 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10487 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10488 echo "${ECHO_T}$can_build_shared" >&6
10489
10490 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10491 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10492 test "$can_build_shared" = "no" && enable_shared=no
10493
10494 # On AIX, shared libraries and static libraries use the same namespace, and
10495 # are all built from PIC.
10496 case $host_os in
10497 aix3*)
10498   test "$enable_shared" = yes && enable_static=no
10499   if test -n "$RANLIB"; then
10500     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10501     postinstall_cmds='$RANLIB $lib'
10502   fi
10503   ;;
10504
10505 aix4* | aix5*)
10506   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10507     test "$enable_shared" = yes && enable_static=no
10508   fi
10509     ;;
10510 esac
10511 echo "$as_me:$LINENO: result: $enable_shared" >&5
10512 echo "${ECHO_T}$enable_shared" >&6
10513
10514 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10515 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10516 # Make sure either enable_shared or enable_static is yes.
10517 test "$enable_shared" = yes || enable_static=yes
10518 echo "$as_me:$LINENO: result: $enable_static" >&5
10519 echo "${ECHO_T}$enable_static" >&6
10520
10521 # The else clause should only fire when bootstrapping the
10522 # libtool distribution, otherwise you forgot to ship ltmain.sh
10523 # with your package, and you will get complaints that there are
10524 # no rules to generate ltmain.sh.
10525 if test -f "$ltmain"; then
10526   # See if we are running on zsh, and set the options which allow our commands through
10527   # without removal of \ escapes.
10528   if test -n "${ZSH_VERSION+set}" ; then
10529     setopt NO_GLOB_SUBST
10530   fi
10531   # Now quote all the things that may contain metacharacters while being
10532   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10533   # variables and quote the copies for generation of the libtool script.
10534   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10535     SED SHELL STRIP \
10536     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10537     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10538     deplibs_check_method reload_flag reload_cmds need_locks \
10539     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10540     lt_cv_sys_global_symbol_to_c_name_address \
10541     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10542     old_postinstall_cmds old_postuninstall_cmds \
10543     compiler \
10544     CC \
10545     LD \
10546     lt_prog_compiler_wl \
10547     lt_prog_compiler_pic \
10548     lt_prog_compiler_static \
10549     lt_prog_compiler_no_builtin_flag \
10550     export_dynamic_flag_spec \
10551     thread_safe_flag_spec \
10552     whole_archive_flag_spec \
10553     enable_shared_with_static_runtimes \
10554     old_archive_cmds \
10555     old_archive_from_new_cmds \
10556     predep_objects \
10557     postdep_objects \
10558     predeps \
10559     postdeps \
10560     compiler_lib_search_path \
10561     archive_cmds \
10562     archive_expsym_cmds \
10563     postinstall_cmds \
10564     postuninstall_cmds \
10565     old_archive_from_expsyms_cmds \
10566     allow_undefined_flag \
10567     no_undefined_flag \
10568     export_symbols_cmds \
10569     hardcode_libdir_flag_spec \
10570     hardcode_libdir_flag_spec_ld \
10571     hardcode_libdir_separator \
10572     hardcode_automatic \
10573     module_cmds \
10574     module_expsym_cmds \
10575     lt_cv_prog_compiler_c_o \
10576     exclude_expsyms \
10577     include_expsyms; do
10578
10579     case $var in
10580     old_archive_cmds | \
10581     old_archive_from_new_cmds | \
10582     archive_cmds | \
10583     archive_expsym_cmds | \
10584     module_cmds | \
10585     module_expsym_cmds | \
10586     old_archive_from_expsyms_cmds | \
10587     export_symbols_cmds | \
10588     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10589     postinstall_cmds | postuninstall_cmds | \
10590     old_postinstall_cmds | old_postuninstall_cmds | \
10591     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10592       # Double-quote double-evaled strings.
10593       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10594       ;;
10595     *)
10596       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10597       ;;
10598     esac
10599   done
10600
10601   case $lt_echo in
10602   *'\$0 --fallback-echo"')
10603     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10604     ;;
10605   esac
10606
10607 cfgfile="${ofile}T"
10608   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10609   $rm -f "$cfgfile"
10610   { echo "$as_me:$LINENO: creating $ofile" >&5
10611 echo "$as_me: creating $ofile" >&6;}
10612
10613   cat <<__EOF__ >> "$cfgfile"
10614 #! $SHELL
10615
10616 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10617 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10618 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10619 #
10620 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10621 # Free Software Foundation, Inc.
10622 #
10623 # This file is part of GNU Libtool:
10624 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10625 #
10626 # This program is free software; you can redistribute it and/or modify
10627 # it under the terms of the GNU General Public License as published by
10628 # the Free Software Foundation; either version 2 of the License, or
10629 # (at your option) any later version.
10630 #
10631 # This program is distributed in the hope that it will be useful, but
10632 # WITHOUT ANY WARRANTY; without even the implied warranty of
10633 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10634 # General Public License for more details.
10635 #
10636 # You should have received a copy of the GNU General Public License
10637 # along with this program; if not, write to the Free Software
10638 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10639 #
10640 # As a special exception to the GNU General Public License, if you
10641 # distribute this file as part of a program that contains a
10642 # configuration script generated by Autoconf, you may include it under
10643 # the same distribution terms that you use for the rest of that program.
10644
10645 # A sed program that does not truncate output.
10646 SED=$lt_SED
10647
10648 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10649 Xsed="$SED -e 1s/^X//"
10650
10651 # The HP-UX ksh and POSIX shell print the target directory to stdout
10652 # if CDPATH is set.
10653 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10654
10655 # The names of the tagged configurations supported by this script.
10656 available_tags=
10657
10658 # ### BEGIN LIBTOOL CONFIG
10659
10660 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10661
10662 # Shell to use when invoking shell scripts.
10663 SHELL=$lt_SHELL
10664
10665 # Whether or not to build shared libraries.
10666 build_libtool_libs=$enable_shared
10667
10668 # Whether or not to build static libraries.
10669 build_old_libs=$enable_static
10670
10671 # Whether or not to add -lc for building shared libraries.
10672 build_libtool_need_lc=$archive_cmds_need_lc
10673
10674 # Whether or not to disallow shared libs when runtime libs are static
10675 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10676
10677 # Whether or not to optimize for fast installation.
10678 fast_install=$enable_fast_install
10679
10680 # The host system.
10681 host_alias=$host_alias
10682 host=$host
10683 host_os=$host_os
10684
10685 # The build system.
10686 build_alias=$build_alias
10687 build=$build
10688 build_os=$build_os
10689
10690 # An echo program that does not interpret backslashes.
10691 echo=$lt_echo
10692
10693 # The archiver.
10694 AR=$lt_AR
10695 AR_FLAGS=$lt_AR_FLAGS
10696
10697 # A C compiler.
10698 LTCC=$lt_LTCC
10699
10700 # A language-specific compiler.
10701 CC=$lt_compiler
10702
10703 # Is the compiler the GNU C compiler?
10704 with_gcc=$GCC
10705
10706 # An ERE matcher.
10707 EGREP=$lt_EGREP
10708
10709 # The linker used to build libraries.
10710 LD=$lt_LD
10711
10712 # Whether we need hard or soft links.
10713 LN_S=$lt_LN_S
10714
10715 # A BSD-compatible nm program.
10716 NM=$lt_NM
10717
10718 # A symbol stripping program
10719 STRIP=$lt_STRIP
10720
10721 # Used to examine libraries when file_magic_cmd begins "file"
10722 MAGIC_CMD=$MAGIC_CMD
10723
10724 # Used on cygwin: DLL creation program.
10725 DLLTOOL="$DLLTOOL"
10726
10727 # Used on cygwin: object dumper.
10728 OBJDUMP="$OBJDUMP"
10729
10730 # Used on cygwin: assembler.
10731 AS="$AS"
10732
10733 # The name of the directory that contains temporary libtool files.
10734 objdir=$objdir
10735
10736 # How to create reloadable object files.
10737 reload_flag=$lt_reload_flag
10738 reload_cmds=$lt_reload_cmds
10739
10740 # How to pass a linker flag through the compiler.
10741 wl=$lt_lt_prog_compiler_wl
10742
10743 # Object file suffix (normally "o").
10744 objext="$ac_objext"
10745
10746 # Old archive suffix (normally "a").
10747 libext="$libext"
10748
10749 # Shared library suffix (normally ".so").
10750 shrext_cmds='$shrext_cmds'
10751
10752 # Executable file suffix (normally "").
10753 exeext="$exeext"
10754
10755 # Additional compiler flags for building library objects.
10756 pic_flag=$lt_lt_prog_compiler_pic
10757 pic_mode=$pic_mode
10758
10759 # What is the maximum length of a command?
10760 max_cmd_len=$lt_cv_sys_max_cmd_len
10761
10762 # Does compiler simultaneously support -c and -o options?
10763 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10764
10765 # Must we lock files when doing compilation?
10766 need_locks=$lt_need_locks
10767
10768 # Do we need the lib prefix for modules?
10769 need_lib_prefix=$need_lib_prefix
10770
10771 # Do we need a version for libraries?
10772 need_version=$need_version
10773
10774 # Whether dlopen is supported.
10775 dlopen_support=$enable_dlopen
10776
10777 # Whether dlopen of programs is supported.
10778 dlopen_self=$enable_dlopen_self
10779
10780 # Whether dlopen of statically linked programs is supported.
10781 dlopen_self_static=$enable_dlopen_self_static
10782
10783 # Compiler flag to prevent dynamic linking.
10784 link_static_flag=$lt_lt_prog_compiler_static
10785
10786 # Compiler flag to turn off builtin functions.
10787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10788
10789 # Compiler flag to allow reflexive dlopens.
10790 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10791
10792 # Compiler flag to generate shared objects directly from archives.
10793 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10794
10795 # Compiler flag to generate thread-safe objects.
10796 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10797
10798 # Library versioning type.
10799 version_type=$version_type
10800
10801 # Format of library name prefix.
10802 libname_spec=$lt_libname_spec
10803
10804 # List of archive names.  First name is the real one, the rest are links.
10805 # The last name is the one that the linker finds with -lNAME.
10806 library_names_spec=$lt_library_names_spec
10807
10808 # The coded name of the library, if different from the real name.
10809 soname_spec=$lt_soname_spec
10810
10811 # Commands used to build and install an old-style archive.
10812 RANLIB=$lt_RANLIB
10813 old_archive_cmds=$lt_old_archive_cmds
10814 old_postinstall_cmds=$lt_old_postinstall_cmds
10815 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10816
10817 # Create an old-style archive from a shared archive.
10818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10819
10820 # Create a temporary old-style archive to link instead of a shared archive.
10821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10822
10823 # Commands used to build and install a shared archive.
10824 archive_cmds=$lt_archive_cmds
10825 archive_expsym_cmds=$lt_archive_expsym_cmds
10826 postinstall_cmds=$lt_postinstall_cmds
10827 postuninstall_cmds=$lt_postuninstall_cmds
10828
10829 # Commands used to build a loadable module (assumed same as above if empty)
10830 module_cmds=$lt_module_cmds
10831 module_expsym_cmds=$lt_module_expsym_cmds
10832
10833 # Commands to strip libraries.
10834 old_striplib=$lt_old_striplib
10835 striplib=$lt_striplib
10836
10837 # Dependencies to place before the objects being linked to create a
10838 # shared library.
10839 predep_objects=$lt_predep_objects
10840
10841 # Dependencies to place after the objects being linked to create a
10842 # shared library.
10843 postdep_objects=$lt_postdep_objects
10844
10845 # Dependencies to place before the objects being linked to create a
10846 # shared library.
10847 predeps=$lt_predeps
10848
10849 # Dependencies to place after the objects being linked to create a
10850 # shared library.
10851 postdeps=$lt_postdeps
10852
10853 # The library search path used internally by the compiler when linking
10854 # a shared library.
10855 compiler_lib_search_path=$lt_compiler_lib_search_path
10856
10857 # Method to check whether dependent libraries are shared objects.
10858 deplibs_check_method=$lt_deplibs_check_method
10859
10860 # Command to use when deplibs_check_method == file_magic.
10861 file_magic_cmd=$lt_file_magic_cmd
10862
10863 # Flag that allows shared libraries with undefined symbols to be built.
10864 allow_undefined_flag=$lt_allow_undefined_flag
10865
10866 # Flag that forces no undefined symbols.
10867 no_undefined_flag=$lt_no_undefined_flag
10868
10869 # Commands used to finish a libtool library installation in a directory.
10870 finish_cmds=$lt_finish_cmds
10871
10872 # Same as above, but a single script fragment to be evaled but not shown.
10873 finish_eval=$lt_finish_eval
10874
10875 # Take the output of nm and produce a listing of raw symbols and C names.
10876 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10877
10878 # Transform the output of nm in a proper C declaration
10879 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10880
10881 # Transform the output of nm in a C name address pair
10882 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10883
10884 # This is the shared library runtime path variable.
10885 runpath_var=$runpath_var
10886
10887 # This is the shared library path variable.
10888 shlibpath_var=$shlibpath_var
10889
10890 # Is shlibpath searched before the hard-coded library search path?
10891 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10892
10893 # How to hardcode a shared library path into an executable.
10894 hardcode_action=$hardcode_action
10895
10896 # Whether we should hardcode library paths into libraries.
10897 hardcode_into_libs=$hardcode_into_libs
10898
10899 # Flag to hardcode \$libdir into a binary during linking.
10900 # This must work even if \$libdir does not exist.
10901 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10902
10903 # If ld is used when linking, flag to hardcode \$libdir into
10904 # a binary during linking. This must work even if \$libdir does
10905 # not exist.
10906 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10907
10908 # Whether we need a single -rpath flag with a separated argument.
10909 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10910
10911 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10912 # resulting binary.
10913 hardcode_direct=$hardcode_direct
10914
10915 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10916 # resulting binary.
10917 hardcode_minus_L=$hardcode_minus_L
10918
10919 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10920 # the resulting binary.
10921 hardcode_shlibpath_var=$hardcode_shlibpath_var
10922
10923 # Set to yes if building a shared library automatically hardcodes DIR into the library
10924 # and all subsequent libraries and executables linked against it.
10925 hardcode_automatic=$hardcode_automatic
10926
10927 # Variables whose values should be saved in libtool wrapper scripts and
10928 # restored at relink time.
10929 variables_saved_for_relink="$variables_saved_for_relink"
10930
10931 # Whether libtool must link a program against all its dependency libraries.
10932 link_all_deplibs=$link_all_deplibs
10933
10934 # Compile-time system search path for libraries
10935 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10936
10937 # Run-time system search path for libraries
10938 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10939
10940 # Fix the shell variable \$srcfile for the compiler.
10941 fix_srcfile_path="$fix_srcfile_path"
10942
10943 # Set to yes if exported symbols are required.
10944 always_export_symbols=$always_export_symbols
10945
10946 # The commands to list exported symbols.
10947 export_symbols_cmds=$lt_export_symbols_cmds
10948
10949 # The commands to extract the exported symbol list from a shared archive.
10950 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10951
10952 # Symbols that should not be listed in the preloaded symbols.
10953 exclude_expsyms=$lt_exclude_expsyms
10954
10955 # Symbols that must always be exported.
10956 include_expsyms=$lt_include_expsyms
10957
10958 # ### END LIBTOOL CONFIG
10959
10960 __EOF__
10961
10962
10963   case $host_os in
10964   aix3*)
10965     cat <<\EOF >> "$cfgfile"
10966
10967 # AIX sometimes has problems with the GCC collect2 program.  For some
10968 # reason, if we set the COLLECT_NAMES environment variable, the problems
10969 # vanish in a puff of smoke.
10970 if test "X${COLLECT_NAMES+set}" != Xset; then
10971   COLLECT_NAMES=
10972   export COLLECT_NAMES
10973 fi
10974 EOF
10975     ;;
10976   esac
10977
10978   # We use sed instead of cat because bash on DJGPP gets confused if
10979   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10980   # text mode, it properly converts lines to CR/LF.  This bash problem
10981   # is reportedly fixed, but why not run on old versions too?
10982   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10983
10984   mv -f "$cfgfile" "$ofile" || \
10985     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10986   chmod +x "$ofile"
10987
10988 else
10989   # If there is no Makefile yet, we rely on a make rule to execute
10990   # `config.status --recheck' to rerun these tests and create the
10991   # libtool script then.
10992   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10993   if test -f "$ltmain_in"; then
10994     test -f Makefile && make "$ltmain"
10995   fi
10996 fi
10997
10998
10999 ac_ext=c
11000 ac_cpp='$CPP $CPPFLAGS'
11001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11004
11005 CC="$lt_save_CC"
11006
11007
11008 # Check whether --with-tags or --without-tags was given.
11009 if test "${with_tags+set}" = set; then
11010   withval="$with_tags"
11011   tagnames="$withval"
11012 fi;
11013
11014 if test -f "$ltmain" && test -n "$tagnames"; then
11015   if test ! -f "${ofile}"; then
11016     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11017 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11018   fi
11019
11020   if test -z "$LTCC"; then
11021     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11022     if test -z "$LTCC"; then
11023       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11024 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11025     else
11026       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11027 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11028     fi
11029   fi
11030
11031   # Extract list of available tagged configurations in $ofile.
11032   # Note that this assumes the entire list is on one line.
11033   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11034
11035   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11036   for tagname in $tagnames; do
11037     IFS="$lt_save_ifs"
11038     # Check whether tagname contains only valid characters
11039     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11040     "") ;;
11041     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11042 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11043    { (exit 1); exit 1; }; }
11044         ;;
11045     esac
11046
11047     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11048     then
11049       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11050 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11051    { (exit 1); exit 1; }; }
11052     fi
11053
11054     # Update the list of available tags.
11055     if test -n "$tagname"; then
11056       echo appending configuration tag \"$tagname\" to $ofile
11057
11058       case $tagname in
11059       CXX)
11060         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11061             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11062             (test "X$CXX" != "Xg++"))) ; then
11063           :
11064         else
11065           tagname=""
11066         fi
11067         ;;
11068
11069       F77)
11070         if test -n "$F77" && test "X$F77" != "Xno"; then
11071           :
11072         else
11073           tagname=""
11074         fi
11075         ;;
11076
11077       GCJ)
11078         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11079           :
11080         else
11081           tagname=""
11082         fi
11083         ;;
11084
11085       RC)
11086
11087
11088
11089 # Source file extension for RC test sources.
11090 ac_ext=rc
11091
11092 # Object file extension for compiled RC test sources.
11093 objext=o
11094 objext_RC=$objext
11095
11096 # Code to be used in simple compile tests
11097 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11098
11099 # Code to be used in simple link tests
11100 lt_simple_link_test_code="$lt_simple_compile_test_code"
11101
11102 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11103
11104 # If no C compiler was specified, use CC.
11105 LTCC=${LTCC-"$CC"}
11106
11107 # Allow CC to be a program name with arguments.
11108 compiler=$CC
11109
11110
11111 # save warnings/boilerplate of simple test code
11112 ac_outfile=conftest.$ac_objext
11113 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11115 _lt_compiler_boilerplate=`cat conftest.err`
11116 $rm conftest*
11117
11118 ac_outfile=conftest.$ac_objext
11119 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11121 _lt_linker_boilerplate=`cat conftest.err`
11122 $rm conftest*
11123
11124
11125 # Allow CC to be a program name with arguments.
11126 lt_save_CC="$CC"
11127 CC=${RC-"windres"}
11128 compiler=$CC
11129 compiler_RC=$CC
11130 for cc_temp in $compiler""; do
11131   case $cc_temp in
11132     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11133     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11134     \-*) ;;
11135     *) break;;
11136   esac
11137 done
11138 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11139
11140 lt_cv_prog_compiler_c_o_RC=yes
11141
11142 # The else clause should only fire when bootstrapping the
11143 # libtool distribution, otherwise you forgot to ship ltmain.sh
11144 # with your package, and you will get complaints that there are
11145 # no rules to generate ltmain.sh.
11146 if test -f "$ltmain"; then
11147   # See if we are running on zsh, and set the options which allow our commands through
11148   # without removal of \ escapes.
11149   if test -n "${ZSH_VERSION+set}" ; then
11150     setopt NO_GLOB_SUBST
11151   fi
11152   # Now quote all the things that may contain metacharacters while being
11153   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11154   # variables and quote the copies for generation of the libtool script.
11155   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11156     SED SHELL STRIP \
11157     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11158     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11159     deplibs_check_method reload_flag reload_cmds need_locks \
11160     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11161     lt_cv_sys_global_symbol_to_c_name_address \
11162     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11163     old_postinstall_cmds old_postuninstall_cmds \
11164     compiler_RC \
11165     CC_RC \
11166     LD_RC \
11167     lt_prog_compiler_wl_RC \
11168     lt_prog_compiler_pic_RC \
11169     lt_prog_compiler_static_RC \
11170     lt_prog_compiler_no_builtin_flag_RC \
11171     export_dynamic_flag_spec_RC \
11172     thread_safe_flag_spec_RC \
11173     whole_archive_flag_spec_RC \
11174     enable_shared_with_static_runtimes_RC \
11175     old_archive_cmds_RC \
11176     old_archive_from_new_cmds_RC \
11177     predep_objects_RC \
11178     postdep_objects_RC \
11179     predeps_RC \
11180     postdeps_RC \
11181     compiler_lib_search_path_RC \
11182     archive_cmds_RC \
11183     archive_expsym_cmds_RC \
11184     postinstall_cmds_RC \
11185     postuninstall_cmds_RC \
11186     old_archive_from_expsyms_cmds_RC \
11187     allow_undefined_flag_RC \
11188     no_undefined_flag_RC \
11189     export_symbols_cmds_RC \
11190     hardcode_libdir_flag_spec_RC \
11191     hardcode_libdir_flag_spec_ld_RC \
11192     hardcode_libdir_separator_RC \
11193     hardcode_automatic_RC \
11194     module_cmds_RC \
11195     module_expsym_cmds_RC \
11196     lt_cv_prog_compiler_c_o_RC \
11197     exclude_expsyms_RC \
11198     include_expsyms_RC; do
11199
11200     case $var in
11201     old_archive_cmds_RC | \
11202     old_archive_from_new_cmds_RC | \
11203     archive_cmds_RC | \
11204     archive_expsym_cmds_RC | \
11205     module_cmds_RC | \
11206     module_expsym_cmds_RC | \
11207     old_archive_from_expsyms_cmds_RC | \
11208     export_symbols_cmds_RC | \
11209     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11210     postinstall_cmds | postuninstall_cmds | \
11211     old_postinstall_cmds | old_postuninstall_cmds | \
11212     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11213       # Double-quote double-evaled strings.
11214       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11215       ;;
11216     *)
11217       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11218       ;;
11219     esac
11220   done
11221
11222   case $lt_echo in
11223   *'\$0 --fallback-echo"')
11224     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11225     ;;
11226   esac
11227
11228 cfgfile="$ofile"
11229
11230   cat <<__EOF__ >> "$cfgfile"
11231 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11232
11233 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11234
11235 # Shell to use when invoking shell scripts.
11236 SHELL=$lt_SHELL
11237
11238 # Whether or not to build shared libraries.
11239 build_libtool_libs=$enable_shared
11240
11241 # Whether or not to build static libraries.
11242 build_old_libs=$enable_static
11243
11244 # Whether or not to add -lc for building shared libraries.
11245 build_libtool_need_lc=$archive_cmds_need_lc_RC
11246
11247 # Whether or not to disallow shared libs when runtime libs are static
11248 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11249
11250 # Whether or not to optimize for fast installation.
11251 fast_install=$enable_fast_install
11252
11253 # The host system.
11254 host_alias=$host_alias
11255 host=$host
11256 host_os=$host_os
11257
11258 # The build system.
11259 build_alias=$build_alias
11260 build=$build
11261 build_os=$build_os
11262
11263 # An echo program that does not interpret backslashes.
11264 echo=$lt_echo
11265
11266 # The archiver.
11267 AR=$lt_AR
11268 AR_FLAGS=$lt_AR_FLAGS
11269
11270 # A C compiler.
11271 LTCC=$lt_LTCC
11272
11273 # A language-specific compiler.
11274 CC=$lt_compiler_RC
11275
11276 # Is the compiler the GNU C compiler?
11277 with_gcc=$GCC_RC
11278
11279 # An ERE matcher.
11280 EGREP=$lt_EGREP
11281
11282 # The linker used to build libraries.
11283 LD=$lt_LD_RC
11284
11285 # Whether we need hard or soft links.
11286 LN_S=$lt_LN_S
11287
11288 # A BSD-compatible nm program.
11289 NM=$lt_NM
11290
11291 # A symbol stripping program
11292 STRIP=$lt_STRIP
11293
11294 # Used to examine libraries when file_magic_cmd begins "file"
11295 MAGIC_CMD=$MAGIC_CMD
11296
11297 # Used on cygwin: DLL creation program.
11298 DLLTOOL="$DLLTOOL"
11299
11300 # Used on cygwin: object dumper.
11301 OBJDUMP="$OBJDUMP"
11302
11303 # Used on cygwin: assembler.
11304 AS="$AS"
11305
11306 # The name of the directory that contains temporary libtool files.
11307 objdir=$objdir
11308
11309 # How to create reloadable object files.
11310 reload_flag=$lt_reload_flag
11311 reload_cmds=$lt_reload_cmds
11312
11313 # How to pass a linker flag through the compiler.
11314 wl=$lt_lt_prog_compiler_wl_RC
11315
11316 # Object file suffix (normally "o").
11317 objext="$ac_objext"
11318
11319 # Old archive suffix (normally "a").
11320 libext="$libext"
11321
11322 # Shared library suffix (normally ".so").
11323 shrext_cmds='$shrext_cmds'
11324
11325 # Executable file suffix (normally "").
11326 exeext="$exeext"
11327
11328 # Additional compiler flags for building library objects.
11329 pic_flag=$lt_lt_prog_compiler_pic_RC
11330 pic_mode=$pic_mode
11331
11332 # What is the maximum length of a command?
11333 max_cmd_len=$lt_cv_sys_max_cmd_len
11334
11335 # Does compiler simultaneously support -c and -o options?
11336 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11337
11338 # Must we lock files when doing compilation?
11339 need_locks=$lt_need_locks
11340
11341 # Do we need the lib prefix for modules?
11342 need_lib_prefix=$need_lib_prefix
11343
11344 # Do we need a version for libraries?
11345 need_version=$need_version
11346
11347 # Whether dlopen is supported.
11348 dlopen_support=$enable_dlopen
11349
11350 # Whether dlopen of programs is supported.
11351 dlopen_self=$enable_dlopen_self
11352
11353 # Whether dlopen of statically linked programs is supported.
11354 dlopen_self_static=$enable_dlopen_self_static
11355
11356 # Compiler flag to prevent dynamic linking.
11357 link_static_flag=$lt_lt_prog_compiler_static_RC
11358
11359 # Compiler flag to turn off builtin functions.
11360 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11361
11362 # Compiler flag to allow reflexive dlopens.
11363 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11364
11365 # Compiler flag to generate shared objects directly from archives.
11366 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11367
11368 # Compiler flag to generate thread-safe objects.
11369 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11370
11371 # Library versioning type.
11372 version_type=$version_type
11373
11374 # Format of library name prefix.
11375 libname_spec=$lt_libname_spec
11376
11377 # List of archive names.  First name is the real one, the rest are links.
11378 # The last name is the one that the linker finds with -lNAME.
11379 library_names_spec=$lt_library_names_spec
11380
11381 # The coded name of the library, if different from the real name.
11382 soname_spec=$lt_soname_spec
11383
11384 # Commands used to build and install an old-style archive.
11385 RANLIB=$lt_RANLIB
11386 old_archive_cmds=$lt_old_archive_cmds_RC
11387 old_postinstall_cmds=$lt_old_postinstall_cmds
11388 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11389
11390 # Create an old-style archive from a shared archive.
11391 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11392
11393 # Create a temporary old-style archive to link instead of a shared archive.
11394 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11395
11396 # Commands used to build and install a shared archive.
11397 archive_cmds=$lt_archive_cmds_RC
11398 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11399 postinstall_cmds=$lt_postinstall_cmds
11400 postuninstall_cmds=$lt_postuninstall_cmds
11401
11402 # Commands used to build a loadable module (assumed same as above if empty)
11403 module_cmds=$lt_module_cmds_RC
11404 module_expsym_cmds=$lt_module_expsym_cmds_RC
11405
11406 # Commands to strip libraries.
11407 old_striplib=$lt_old_striplib
11408 striplib=$lt_striplib
11409
11410 # Dependencies to place before the objects being linked to create a
11411 # shared library.
11412 predep_objects=$lt_predep_objects_RC
11413
11414 # Dependencies to place after the objects being linked to create a
11415 # shared library.
11416 postdep_objects=$lt_postdep_objects_RC
11417
11418 # Dependencies to place before the objects being linked to create a
11419 # shared library.
11420 predeps=$lt_predeps_RC
11421
11422 # Dependencies to place after the objects being linked to create a
11423 # shared library.
11424 postdeps=$lt_postdeps_RC
11425
11426 # The library search path used internally by the compiler when linking
11427 # a shared library.
11428 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11429
11430 # Method to check whether dependent libraries are shared objects.
11431 deplibs_check_method=$lt_deplibs_check_method
11432
11433 # Command to use when deplibs_check_method == file_magic.
11434 file_magic_cmd=$lt_file_magic_cmd
11435
11436 # Flag that allows shared libraries with undefined symbols to be built.
11437 allow_undefined_flag=$lt_allow_undefined_flag_RC
11438
11439 # Flag that forces no undefined symbols.
11440 no_undefined_flag=$lt_no_undefined_flag_RC
11441
11442 # Commands used to finish a libtool library installation in a directory.
11443 finish_cmds=$lt_finish_cmds
11444
11445 # Same as above, but a single script fragment to be evaled but not shown.
11446 finish_eval=$lt_finish_eval
11447
11448 # Take the output of nm and produce a listing of raw symbols and C names.
11449 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11450
11451 # Transform the output of nm in a proper C declaration
11452 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11453
11454 # Transform the output of nm in a C name address pair
11455 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11456
11457 # This is the shared library runtime path variable.
11458 runpath_var=$runpath_var
11459
11460 # This is the shared library path variable.
11461 shlibpath_var=$shlibpath_var
11462
11463 # Is shlibpath searched before the hard-coded library search path?
11464 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11465
11466 # How to hardcode a shared library path into an executable.
11467 hardcode_action=$hardcode_action_RC
11468
11469 # Whether we should hardcode library paths into libraries.
11470 hardcode_into_libs=$hardcode_into_libs
11471
11472 # Flag to hardcode \$libdir into a binary during linking.
11473 # This must work even if \$libdir does not exist.
11474 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11475
11476 # If ld is used when linking, flag to hardcode \$libdir into
11477 # a binary during linking. This must work even if \$libdir does
11478 # not exist.
11479 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11480
11481 # Whether we need a single -rpath flag with a separated argument.
11482 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11483
11484 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11485 # resulting binary.
11486 hardcode_direct=$hardcode_direct_RC
11487
11488 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11489 # resulting binary.
11490 hardcode_minus_L=$hardcode_minus_L_RC
11491
11492 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11493 # the resulting binary.
11494 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11495
11496 # Set to yes if building a shared library automatically hardcodes DIR into the library
11497 # and all subsequent libraries and executables linked against it.
11498 hardcode_automatic=$hardcode_automatic_RC
11499
11500 # Variables whose values should be saved in libtool wrapper scripts and
11501 # restored at relink time.
11502 variables_saved_for_relink="$variables_saved_for_relink"
11503
11504 # Whether libtool must link a program against all its dependency libraries.
11505 link_all_deplibs=$link_all_deplibs_RC
11506
11507 # Compile-time system search path for libraries
11508 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11509
11510 # Run-time system search path for libraries
11511 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11512
11513 # Fix the shell variable \$srcfile for the compiler.
11514 fix_srcfile_path="$fix_srcfile_path_RC"
11515
11516 # Set to yes if exported symbols are required.
11517 always_export_symbols=$always_export_symbols_RC
11518
11519 # The commands to list exported symbols.
11520 export_symbols_cmds=$lt_export_symbols_cmds_RC
11521
11522 # The commands to extract the exported symbol list from a shared archive.
11523 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11524
11525 # Symbols that should not be listed in the preloaded symbols.
11526 exclude_expsyms=$lt_exclude_expsyms_RC
11527
11528 # Symbols that must always be exported.
11529 include_expsyms=$lt_include_expsyms_RC
11530
11531 # ### END LIBTOOL TAG CONFIG: $tagname
11532
11533 __EOF__
11534
11535
11536 else
11537   # If there is no Makefile yet, we rely on a make rule to execute
11538   # `config.status --recheck' to rerun these tests and create the
11539   # libtool script then.
11540   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11541   if test -f "$ltmain_in"; then
11542     test -f Makefile && make "$ltmain"
11543   fi
11544 fi
11545
11546
11547 ac_ext=c
11548 ac_cpp='$CPP $CPPFLAGS'
11549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11552
11553 CC="$lt_save_CC"
11554
11555         ;;
11556
11557       *)
11558         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11559 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11560    { (exit 1); exit 1; }; }
11561         ;;
11562       esac
11563
11564       # Append the new tag name to the list of available tags.
11565       if test -n "$tagname" ; then
11566       available_tags="$available_tags $tagname"
11567     fi
11568     fi
11569   done
11570   IFS="$lt_save_ifs"
11571
11572   # Now substitute the updated list of available tags.
11573   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11574     mv "${ofile}T" "$ofile"
11575     chmod +x "$ofile"
11576   else
11577     rm -f "${ofile}T"
11578     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11579 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11580    { (exit 1); exit 1; }; }
11581   fi
11582 fi
11583
11584
11585
11586 # This can be used to rebuild libtool when needed
11587 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11588
11589 # Always use our own libtool.
11590 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11591
11592 # Prevent multiple expansion
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603 ol_link_perl=no
11604 if test $ol_enable_perl != no ; then
11605         # Extract the first word of "perl", so it can be a program name with args.
11606 set dummy perl; ac_word=$2
11607 echo "$as_me:$LINENO: checking for $ac_word" >&5
11608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11609 if test "${ac_cv_path_PERLBIN+set}" = set; then
11610   echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612   case $PERLBIN in
11613   [\\/]* | ?:[\\/]*)
11614   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11615   ;;
11616   *)
11617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11619 do
11620   IFS=$as_save_IFS
11621   test -z "$as_dir" && as_dir=.
11622   for ac_exec_ext in '' $ac_executable_extensions; do
11623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11624     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11626     break 2
11627   fi
11628 done
11629 done
11630
11631   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11632   ;;
11633 esac
11634 fi
11635 PERLBIN=$ac_cv_path_PERLBIN
11636
11637 if test -n "$PERLBIN"; then
11638   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11639 echo "${ECHO_T}$PERLBIN" >&6
11640 else
11641   echo "$as_me:$LINENO: result: no" >&5
11642 echo "${ECHO_T}no" >&6
11643 fi
11644
11645
11646         if test "no$PERLBIN" = "no" ; then
11647                 if test $ol_enable_perl = yes ; then
11648                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11649 echo "$as_me: error: could not locate perl" >&2;}
11650    { (exit 1); exit 1; }; }
11651                 fi
11652
11653         else
11654                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11655                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11656
11657                 if test x"$ol_enable_perl" = "xyes" ; then
11658                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11659                 else
11660                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11661                 fi
11662                                 ol_link_perl=yes
11663         fi
11664 fi
11665
11666 ac_ext=c
11667 ac_cpp='$CPP $CPPFLAGS'
11668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11671 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11672 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11673 # On Suns, sometimes $CPP names a directory.
11674 if test -n "$CPP" && test -d "$CPP"; then
11675   CPP=
11676 fi
11677 if test -z "$CPP"; then
11678   if test "${ac_cv_prog_CPP+set}" = set; then
11679   echo $ECHO_N "(cached) $ECHO_C" >&6
11680 else
11681       # Double quotes because CPP needs to be expanded
11682     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11683     do
11684       ac_preproc_ok=false
11685 for ac_c_preproc_warn_flag in '' yes
11686 do
11687   # Use a header file that comes with gcc, so configuring glibc
11688   # with a fresh cross-compiler works.
11689   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11690   # <limits.h> exists even on freestanding compilers.
11691   # On the NeXT, cc -E runs the code through the compiler's parser,
11692   # not just through cpp. "Syntax error" is here to catch this case.
11693   cat >conftest.$ac_ext <<_ACEOF
11694 /* confdefs.h.  */
11695 _ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h.  */
11699 #ifdef __STDC__
11700 # include <limits.h>
11701 #else
11702 # include <assert.h>
11703 #endif
11704                      Syntax error
11705 _ACEOF
11706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11707   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11708   ac_status=$?
11709   grep -v '^ *+' conftest.er1 >conftest.err
11710   rm -f conftest.er1
11711   cat conftest.err >&5
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); } >/dev/null; then
11714   if test -s conftest.err; then
11715     ac_cpp_err=$ac_c_preproc_warn_flag
11716     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11717   else
11718     ac_cpp_err=
11719   fi
11720 else
11721   ac_cpp_err=yes
11722 fi
11723 if test -z "$ac_cpp_err"; then
11724   :
11725 else
11726   echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11728
11729   # Broken: fails on valid input.
11730 continue
11731 fi
11732 rm -f conftest.err conftest.$ac_ext
11733
11734   # OK, works on sane cases.  Now check whether non-existent headers
11735   # can be detected and how.
11736   cat >conftest.$ac_ext <<_ACEOF
11737 /* confdefs.h.  */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h.  */
11742 #include <ac_nonexistent.h>
11743 _ACEOF
11744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11745   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11746   ac_status=$?
11747   grep -v '^ *+' conftest.er1 >conftest.err
11748   rm -f conftest.er1
11749   cat conftest.err >&5
11750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); } >/dev/null; then
11752   if test -s conftest.err; then
11753     ac_cpp_err=$ac_c_preproc_warn_flag
11754     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11755   else
11756     ac_cpp_err=
11757   fi
11758 else
11759   ac_cpp_err=yes
11760 fi
11761 if test -z "$ac_cpp_err"; then
11762   # Broken: success on invalid input.
11763 continue
11764 else
11765   echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11767
11768   # Passes both tests.
11769 ac_preproc_ok=:
11770 break
11771 fi
11772 rm -f conftest.err conftest.$ac_ext
11773
11774 done
11775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11776 rm -f conftest.err conftest.$ac_ext
11777 if $ac_preproc_ok; then
11778   break
11779 fi
11780
11781     done
11782     ac_cv_prog_CPP=$CPP
11783
11784 fi
11785   CPP=$ac_cv_prog_CPP
11786 else
11787   ac_cv_prog_CPP=$CPP
11788 fi
11789 echo "$as_me:$LINENO: result: $CPP" >&5
11790 echo "${ECHO_T}$CPP" >&6
11791 ac_preproc_ok=false
11792 for ac_c_preproc_warn_flag in '' yes
11793 do
11794   # Use a header file that comes with gcc, so configuring glibc
11795   # with a fresh cross-compiler works.
11796   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11797   # <limits.h> exists even on freestanding compilers.
11798   # On the NeXT, cc -E runs the code through the compiler's parser,
11799   # not just through cpp. "Syntax error" is here to catch this case.
11800   cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806 #ifdef __STDC__
11807 # include <limits.h>
11808 #else
11809 # include <assert.h>
11810 #endif
11811                      Syntax error
11812 _ACEOF
11813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11814   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11815   ac_status=$?
11816   grep -v '^ *+' conftest.er1 >conftest.err
11817   rm -f conftest.er1
11818   cat conftest.err >&5
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); } >/dev/null; then
11821   if test -s conftest.err; then
11822     ac_cpp_err=$ac_c_preproc_warn_flag
11823     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11824   else
11825     ac_cpp_err=
11826   fi
11827 else
11828   ac_cpp_err=yes
11829 fi
11830 if test -z "$ac_cpp_err"; then
11831   :
11832 else
11833   echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11835
11836   # Broken: fails on valid input.
11837 continue
11838 fi
11839 rm -f conftest.err conftest.$ac_ext
11840
11841   # OK, works on sane cases.  Now check whether non-existent headers
11842   # can be detected and how.
11843   cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h.  */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h.  */
11849 #include <ac_nonexistent.h>
11850 _ACEOF
11851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11852   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11853   ac_status=$?
11854   grep -v '^ *+' conftest.er1 >conftest.err
11855   rm -f conftest.er1
11856   cat conftest.err >&5
11857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); } >/dev/null; then
11859   if test -s conftest.err; then
11860     ac_cpp_err=$ac_c_preproc_warn_flag
11861     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11862   else
11863     ac_cpp_err=
11864   fi
11865 else
11866   ac_cpp_err=yes
11867 fi
11868 if test -z "$ac_cpp_err"; then
11869   # Broken: success on invalid input.
11870 continue
11871 else
11872   echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11874
11875   # Passes both tests.
11876 ac_preproc_ok=:
11877 break
11878 fi
11879 rm -f conftest.err conftest.$ac_ext
11880
11881 done
11882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11883 rm -f conftest.err conftest.$ac_ext
11884 if $ac_preproc_ok; then
11885   :
11886 else
11887   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11888 See \`config.log' for more details." >&5
11889 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11890 See \`config.log' for more details." >&2;}
11891    { (exit 1); exit 1; }; }
11892 fi
11893
11894 ac_ext=c
11895 ac_cpp='$CPP $CPPFLAGS'
11896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11899
11900
11901 case $host_os in
11902   *mingw32* ) ac_cv_mingw32=yes ;;
11903   *cygwin* ) ac_cv_cygwin=yes ;;
11904 esac
11905
11906
11907
11908
11909 cat >>confdefs.h <<_ACEOF
11910 #define EXEEXT "${EXEEXT}"
11911 _ACEOF
11912
11913
11914 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11915 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11916 if test "${ac_cv_lib_be_be_app+set}" = set; then
11917   echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919   ac_check_lib_save_LIBS=$LIBS
11920 LIBS="-lbe -lroot -lnet $LIBS"
11921 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h.  */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h.  */
11927
11928 /* Override any gcc2 internal prototype to avoid an error.  */
11929 #ifdef __cplusplus
11930 extern "C"
11931 #endif
11932 /* We use char because int might match the return type of a gcc2
11933    builtin and then its argument prototype would still apply.  */
11934 char be_app ();
11935 int
11936 main ()
11937 {
11938 be_app ();
11939   ;
11940   return 0;
11941 }
11942 _ACEOF
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11945   (eval $ac_link) 2>conftest.er1
11946   ac_status=$?
11947   grep -v '^ *+' conftest.er1 >conftest.err
11948   rm -f conftest.er1
11949   cat conftest.err >&5
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); } &&
11952          { ac_try='test -z "$ac_c_werror_flag"
11953                          || test ! -s conftest.err'
11954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955   (eval $ac_try) 2>&5
11956   ac_status=$?
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); }; } &&
11959          { ac_try='test -s conftest$ac_exeext'
11960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961   (eval $ac_try) 2>&5
11962   ac_status=$?
11963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964   (exit $ac_status); }; }; then
11965   ac_cv_lib_be_be_app=yes
11966 else
11967   echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11969
11970 ac_cv_lib_be_be_app=no
11971 fi
11972 rm -f conftest.err conftest.$ac_objext \
11973       conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11975 fi
11976 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11977 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11978 if test $ac_cv_lib_be_be_app = yes; then
11979   LIBS="$LIBS -lbe -lroot -lnet"
11980 else
11981   :
11982 fi
11983
11984
11985 ac_ext=c
11986 ac_cpp='$CPP $CPPFLAGS'
11987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11990 if test -n "$ac_tool_prefix"; then
11991   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11992 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11993 echo "$as_me:$LINENO: checking for $ac_word" >&5
11994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11995 if test "${ac_cv_prog_CC+set}" = set; then
11996   echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998   if test -n "$CC"; then
11999   ac_cv_prog_CC="$CC" # Let the user override the test.
12000 else
12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002 for as_dir in $PATH
12003 do
12004   IFS=$as_save_IFS
12005   test -z "$as_dir" && as_dir=.
12006   for ac_exec_ext in '' $ac_executable_extensions; do
12007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12008     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12010     break 2
12011   fi
12012 done
12013 done
12014
12015 fi
12016 fi
12017 CC=$ac_cv_prog_CC
12018 if test -n "$CC"; then
12019   echo "$as_me:$LINENO: result: $CC" >&5
12020 echo "${ECHO_T}$CC" >&6
12021 else
12022   echo "$as_me:$LINENO: result: no" >&5
12023 echo "${ECHO_T}no" >&6
12024 fi
12025
12026 fi
12027 if test -z "$ac_cv_prog_CC"; then
12028   ac_ct_CC=$CC
12029   # Extract the first word of "gcc", so it can be a program name with args.
12030 set dummy gcc; ac_word=$2
12031 echo "$as_me:$LINENO: checking for $ac_word" >&5
12032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12034   echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036   if test -n "$ac_ct_CC"; then
12037   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12038 else
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12041 do
12042   IFS=$as_save_IFS
12043   test -z "$as_dir" && as_dir=.
12044   for ac_exec_ext in '' $ac_executable_extensions; do
12045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12046     ac_cv_prog_ac_ct_CC="gcc"
12047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12048     break 2
12049   fi
12050 done
12051 done
12052
12053 fi
12054 fi
12055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12056 if test -n "$ac_ct_CC"; then
12057   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12058 echo "${ECHO_T}$ac_ct_CC" >&6
12059 else
12060   echo "$as_me:$LINENO: result: no" >&5
12061 echo "${ECHO_T}no" >&6
12062 fi
12063
12064   CC=$ac_ct_CC
12065 else
12066   CC="$ac_cv_prog_CC"
12067 fi
12068
12069 if test -z "$CC"; then
12070   if test -n "$ac_tool_prefix"; then
12071   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12072 set dummy ${ac_tool_prefix}cc; ac_word=$2
12073 echo "$as_me:$LINENO: checking for $ac_word" >&5
12074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12075 if test "${ac_cv_prog_CC+set}" = set; then
12076   echo $ECHO_N "(cached) $ECHO_C" >&6
12077 else
12078   if test -n "$CC"; then
12079   ac_cv_prog_CC="$CC" # Let the user override the test.
12080 else
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12083 do
12084   IFS=$as_save_IFS
12085   test -z "$as_dir" && as_dir=.
12086   for ac_exec_ext in '' $ac_executable_extensions; do
12087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088     ac_cv_prog_CC="${ac_tool_prefix}cc"
12089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12090     break 2
12091   fi
12092 done
12093 done
12094
12095 fi
12096 fi
12097 CC=$ac_cv_prog_CC
12098 if test -n "$CC"; then
12099   echo "$as_me:$LINENO: result: $CC" >&5
12100 echo "${ECHO_T}$CC" >&6
12101 else
12102   echo "$as_me:$LINENO: result: no" >&5
12103 echo "${ECHO_T}no" >&6
12104 fi
12105
12106 fi
12107 if test -z "$ac_cv_prog_CC"; then
12108   ac_ct_CC=$CC
12109   # Extract the first word of "cc", so it can be a program name with args.
12110 set dummy cc; ac_word=$2
12111 echo "$as_me:$LINENO: checking for $ac_word" >&5
12112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12113 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12114   echo $ECHO_N "(cached) $ECHO_C" >&6
12115 else
12116   if test -n "$ac_ct_CC"; then
12117   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12118 else
12119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12120 for as_dir in $PATH
12121 do
12122   IFS=$as_save_IFS
12123   test -z "$as_dir" && as_dir=.
12124   for ac_exec_ext in '' $ac_executable_extensions; do
12125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12126     ac_cv_prog_ac_ct_CC="cc"
12127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12128     break 2
12129   fi
12130 done
12131 done
12132
12133 fi
12134 fi
12135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12136 if test -n "$ac_ct_CC"; then
12137   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12138 echo "${ECHO_T}$ac_ct_CC" >&6
12139 else
12140   echo "$as_me:$LINENO: result: no" >&5
12141 echo "${ECHO_T}no" >&6
12142 fi
12143
12144   CC=$ac_ct_CC
12145 else
12146   CC="$ac_cv_prog_CC"
12147 fi
12148
12149 fi
12150 if test -z "$CC"; then
12151   # Extract the first word of "cc", so it can be a program name with args.
12152 set dummy cc; ac_word=$2
12153 echo "$as_me:$LINENO: checking for $ac_word" >&5
12154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12155 if test "${ac_cv_prog_CC+set}" = set; then
12156   echo $ECHO_N "(cached) $ECHO_C" >&6
12157 else
12158   if test -n "$CC"; then
12159   ac_cv_prog_CC="$CC" # Let the user override the test.
12160 else
12161   ac_prog_rejected=no
12162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163 for as_dir in $PATH
12164 do
12165   IFS=$as_save_IFS
12166   test -z "$as_dir" && as_dir=.
12167   for ac_exec_ext in '' $ac_executable_extensions; do
12168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12169     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12170        ac_prog_rejected=yes
12171        continue
12172      fi
12173     ac_cv_prog_CC="cc"
12174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12175     break 2
12176   fi
12177 done
12178 done
12179
12180 if test $ac_prog_rejected = yes; then
12181   # We found a bogon in the path, so make sure we never use it.
12182   set dummy $ac_cv_prog_CC
12183   shift
12184   if test $# != 0; then
12185     # We chose a different compiler from the bogus one.
12186     # However, it has the same basename, so the bogon will be chosen
12187     # first if we set CC to just the basename; use the full file name.
12188     shift
12189     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12190   fi
12191 fi
12192 fi
12193 fi
12194 CC=$ac_cv_prog_CC
12195 if test -n "$CC"; then
12196   echo "$as_me:$LINENO: result: $CC" >&5
12197 echo "${ECHO_T}$CC" >&6
12198 else
12199   echo "$as_me:$LINENO: result: no" >&5
12200 echo "${ECHO_T}no" >&6
12201 fi
12202
12203 fi
12204 if test -z "$CC"; then
12205   if test -n "$ac_tool_prefix"; then
12206   for ac_prog in cl
12207   do
12208     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12209 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12210 echo "$as_me:$LINENO: checking for $ac_word" >&5
12211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12212 if test "${ac_cv_prog_CC+set}" = set; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215   if test -n "$CC"; then
12216   ac_cv_prog_CC="$CC" # Let the user override the test.
12217 else
12218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12219 for as_dir in $PATH
12220 do
12221   IFS=$as_save_IFS
12222   test -z "$as_dir" && as_dir=.
12223   for ac_exec_ext in '' $ac_executable_extensions; do
12224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12225     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12227     break 2
12228   fi
12229 done
12230 done
12231
12232 fi
12233 fi
12234 CC=$ac_cv_prog_CC
12235 if test -n "$CC"; then
12236   echo "$as_me:$LINENO: result: $CC" >&5
12237 echo "${ECHO_T}$CC" >&6
12238 else
12239   echo "$as_me:$LINENO: result: no" >&5
12240 echo "${ECHO_T}no" >&6
12241 fi
12242
12243     test -n "$CC" && break
12244   done
12245 fi
12246 if test -z "$CC"; then
12247   ac_ct_CC=$CC
12248   for ac_prog in cl
12249 do
12250   # Extract the first word of "$ac_prog", so it can be a program name with args.
12251 set dummy $ac_prog; ac_word=$2
12252 echo "$as_me:$LINENO: checking for $ac_word" >&5
12253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12255   echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257   if test -n "$ac_ct_CC"; then
12258   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12259 else
12260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12261 for as_dir in $PATH
12262 do
12263   IFS=$as_save_IFS
12264   test -z "$as_dir" && as_dir=.
12265   for ac_exec_ext in '' $ac_executable_extensions; do
12266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12267     ac_cv_prog_ac_ct_CC="$ac_prog"
12268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12269     break 2
12270   fi
12271 done
12272 done
12273
12274 fi
12275 fi
12276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12277 if test -n "$ac_ct_CC"; then
12278   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12279 echo "${ECHO_T}$ac_ct_CC" >&6
12280 else
12281   echo "$as_me:$LINENO: result: no" >&5
12282 echo "${ECHO_T}no" >&6
12283 fi
12284
12285   test -n "$ac_ct_CC" && break
12286 done
12287
12288   CC=$ac_ct_CC
12289 fi
12290
12291 fi
12292
12293
12294 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12295 See \`config.log' for more details." >&5
12296 echo "$as_me: error: no acceptable C compiler found in \$PATH
12297 See \`config.log' for more details." >&2;}
12298    { (exit 1); exit 1; }; }
12299
12300 # Provide some information about the compiler.
12301 echo "$as_me:$LINENO:" \
12302      "checking for C compiler version" >&5
12303 ac_compiler=`set X $ac_compile; echo $2`
12304 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12305   (eval $ac_compiler --version </dev/null >&5) 2>&5
12306   ac_status=$?
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); }
12309 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12310   (eval $ac_compiler -v </dev/null >&5) 2>&5
12311   ac_status=$?
12312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313   (exit $ac_status); }
12314 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12315   (eval $ac_compiler -V </dev/null >&5) 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); }
12319
12320 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12321 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12322 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12323   echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325   cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h.  */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h.  */
12331
12332 int
12333 main ()
12334 {
12335 #ifndef __GNUC__
12336        choke me
12337 #endif
12338
12339   ;
12340   return 0;
12341 }
12342 _ACEOF
12343 rm -f conftest.$ac_objext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12345   (eval $ac_compile) 2>conftest.er1
12346   ac_status=$?
12347   grep -v '^ *+' conftest.er1 >conftest.err
12348   rm -f conftest.er1
12349   cat conftest.err >&5
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); } &&
12352          { ac_try='test -z "$ac_c_werror_flag"
12353                          || test ! -s conftest.err'
12354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355   (eval $ac_try) 2>&5
12356   ac_status=$?
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); }; } &&
12359          { ac_try='test -s conftest.$ac_objext'
12360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361   (eval $ac_try) 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; }; then
12365   ac_compiler_gnu=yes
12366 else
12367   echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12369
12370 ac_compiler_gnu=no
12371 fi
12372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12373 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12374
12375 fi
12376 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12377 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12378 GCC=`test $ac_compiler_gnu = yes && echo yes`
12379 ac_test_CFLAGS=${CFLAGS+set}
12380 ac_save_CFLAGS=$CFLAGS
12381 CFLAGS="-g"
12382 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12383 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12384 if test "${ac_cv_prog_cc_g+set}" = set; then
12385   echo $ECHO_N "(cached) $ECHO_C" >&6
12386 else
12387   cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h.  */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h.  */
12393
12394 int
12395 main ()
12396 {
12397
12398   ;
12399   return 0;
12400 }
12401 _ACEOF
12402 rm -f conftest.$ac_objext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12404   (eval $ac_compile) 2>conftest.er1
12405   ac_status=$?
12406   grep -v '^ *+' conftest.er1 >conftest.err
12407   rm -f conftest.er1
12408   cat conftest.err >&5
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); } &&
12411          { ac_try='test -z "$ac_c_werror_flag"
12412                          || test ! -s conftest.err'
12413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414   (eval $ac_try) 2>&5
12415   ac_status=$?
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); }; } &&
12418          { ac_try='test -s conftest.$ac_objext'
12419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420   (eval $ac_try) 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; }; then
12424   ac_cv_prog_cc_g=yes
12425 else
12426   echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12428
12429 ac_cv_prog_cc_g=no
12430 fi
12431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12432 fi
12433 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12434 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12435 if test "$ac_test_CFLAGS" = set; then
12436   CFLAGS=$ac_save_CFLAGS
12437 elif test $ac_cv_prog_cc_g = yes; then
12438   if test "$GCC" = yes; then
12439     CFLAGS="-g -O2"
12440   else
12441     CFLAGS="-g"
12442   fi
12443 else
12444   if test "$GCC" = yes; then
12445     CFLAGS="-O2"
12446   else
12447     CFLAGS=
12448   fi
12449 fi
12450 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12451 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12452 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12453   echo $ECHO_N "(cached) $ECHO_C" >&6
12454 else
12455   ac_cv_prog_cc_stdc=no
12456 ac_save_CC=$CC
12457 cat >conftest.$ac_ext <<_ACEOF
12458 /* confdefs.h.  */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h.  */
12463 #include <stdarg.h>
12464 #include <stdio.h>
12465 #include <sys/types.h>
12466 #include <sys/stat.h>
12467 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12468 struct buf { int x; };
12469 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12470 static char *e (p, i)
12471      char **p;
12472      int i;
12473 {
12474   return p[i];
12475 }
12476 static char *f (char * (*g) (char **, int), char **p, ...)
12477 {
12478   char *s;
12479   va_list v;
12480   va_start (v,p);
12481   s = g (p, va_arg (v,int));
12482   va_end (v);
12483   return s;
12484 }
12485
12486 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12487    function prototypes and stuff, but not '\xHH' hex character constants.
12488    These don't provoke an error unfortunately, instead are silently treated
12489    as 'x'.  The following induces an error, until -std1 is added to get
12490    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12491    array size at least.  It's necessary to write '\x00'==0 to get something
12492    that's true only with -std1.  */
12493 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12494
12495 int test (int i, double x);
12496 struct s1 {int (*f) (int a);};
12497 struct s2 {int (*f) (double a);};
12498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12499 int argc;
12500 char **argv;
12501 int
12502 main ()
12503 {
12504 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12505   ;
12506   return 0;
12507 }
12508 _ACEOF
12509 # Don't try gcc -ansi; that turns off useful extensions and
12510 # breaks some systems' header files.
12511 # AIX                   -qlanglvl=ansi
12512 # Ultrix and OSF/1      -std1
12513 # HP-UX 10.20 and later -Ae
12514 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12515 # SVR4                  -Xc -D__EXTENSIONS__
12516 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12517 do
12518   CC="$ac_save_CC $ac_arg"
12519   rm -f conftest.$ac_objext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521   (eval $ac_compile) 2>conftest.er1
12522   ac_status=$?
12523   grep -v '^ *+' conftest.er1 >conftest.err
12524   rm -f conftest.er1
12525   cat conftest.err >&5
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); } &&
12528          { ac_try='test -z "$ac_c_werror_flag"
12529                          || test ! -s conftest.err'
12530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531   (eval $ac_try) 2>&5
12532   ac_status=$?
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); }; } &&
12535          { ac_try='test -s conftest.$ac_objext'
12536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537   (eval $ac_try) 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); }; }; then
12541   ac_cv_prog_cc_stdc=$ac_arg
12542 break
12543 else
12544   echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12546
12547 fi
12548 rm -f conftest.err conftest.$ac_objext
12549 done
12550 rm -f conftest.$ac_ext conftest.$ac_objext
12551 CC=$ac_save_CC
12552
12553 fi
12554
12555 case "x$ac_cv_prog_cc_stdc" in
12556   x|xno)
12557     echo "$as_me:$LINENO: result: none needed" >&5
12558 echo "${ECHO_T}none needed" >&6 ;;
12559   *)
12560     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12561 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12562     CC="$CC $ac_cv_prog_cc_stdc" ;;
12563 esac
12564
12565 # Some people use a C++ compiler to compile C.  Since we use `exit',
12566 # in C++ we need to declare it.  In case someone uses the same compiler
12567 # for both compiling C and C++ we need to have the C++ compiler decide
12568 # the declaration of exit, since it's the most demanding environment.
12569 cat >conftest.$ac_ext <<_ACEOF
12570 #ifndef __cplusplus
12571   choke me
12572 #endif
12573 _ACEOF
12574 rm -f conftest.$ac_objext
12575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12576   (eval $ac_compile) 2>conftest.er1
12577   ac_status=$?
12578   grep -v '^ *+' conftest.er1 >conftest.err
12579   rm -f conftest.er1
12580   cat conftest.err >&5
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); } &&
12583          { ac_try='test -z "$ac_c_werror_flag"
12584                          || test ! -s conftest.err'
12585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586   (eval $ac_try) 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); }; } &&
12590          { ac_try='test -s conftest.$ac_objext'
12591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592   (eval $ac_try) 2>&5
12593   ac_status=$?
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); }; }; then
12596   for ac_declaration in \
12597    '' \
12598    'extern "C" void std::exit (int) throw (); using std::exit;' \
12599    'extern "C" void std::exit (int); using std::exit;' \
12600    'extern "C" void exit (int) throw ();' \
12601    'extern "C" void exit (int);' \
12602    'void exit (int);'
12603 do
12604   cat >conftest.$ac_ext <<_ACEOF
12605 /* confdefs.h.  */
12606 _ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h.  */
12610 $ac_declaration
12611 #include <stdlib.h>
12612 int
12613 main ()
12614 {
12615 exit (42);
12616   ;
12617   return 0;
12618 }
12619 _ACEOF
12620 rm -f conftest.$ac_objext
12621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12622   (eval $ac_compile) 2>conftest.er1
12623   ac_status=$?
12624   grep -v '^ *+' conftest.er1 >conftest.err
12625   rm -f conftest.er1
12626   cat conftest.err >&5
12627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); } &&
12629          { ac_try='test -z "$ac_c_werror_flag"
12630                          || test ! -s conftest.err'
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); }; } &&
12636          { ac_try='test -s conftest.$ac_objext'
12637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638   (eval $ac_try) 2>&5
12639   ac_status=$?
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); }; }; then
12642   :
12643 else
12644   echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12646
12647 continue
12648 fi
12649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12650   cat >conftest.$ac_ext <<_ACEOF
12651 /* confdefs.h.  */
12652 _ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h.  */
12656 $ac_declaration
12657 int
12658 main ()
12659 {
12660 exit (42);
12661   ;
12662   return 0;
12663 }
12664 _ACEOF
12665 rm -f conftest.$ac_objext
12666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667   (eval $ac_compile) 2>conftest.er1
12668   ac_status=$?
12669   grep -v '^ *+' conftest.er1 >conftest.err
12670   rm -f conftest.er1
12671   cat conftest.err >&5
12672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673   (exit $ac_status); } &&
12674          { ac_try='test -z "$ac_c_werror_flag"
12675                          || test ! -s conftest.err'
12676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677   (eval $ac_try) 2>&5
12678   ac_status=$?
12679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); }; } &&
12681          { ac_try='test -s conftest.$ac_objext'
12682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683   (eval $ac_try) 2>&5
12684   ac_status=$?
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); }; }; then
12687   break
12688 else
12689   echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692 fi
12693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12694 done
12695 rm -f conftest*
12696 if test -n "$ac_declaration"; then
12697   echo '#ifdef __cplusplus' >>confdefs.h
12698   echo $ac_declaration      >>confdefs.h
12699   echo '#endif'             >>confdefs.h
12700 fi
12701
12702 else
12703   echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12705
12706 fi
12707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12708 ac_ext=c
12709 ac_cpp='$CPP $CPPFLAGS'
12710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12713
12714 depcc="$CC"   am_compiler_list=
12715
12716 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12717 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12718 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12719   echo $ECHO_N "(cached) $ECHO_C" >&6
12720 else
12721   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12722   # We make a subdir and do the tests there.  Otherwise we can end up
12723   # making bogus files that we don't know about and never remove.  For
12724   # instance it was reported that on HP-UX the gcc test will end up
12725   # making a dummy file named `D' -- because `-MD' means `put the output
12726   # in D'.
12727   mkdir conftest.dir
12728   # Copy depcomp to subdir because otherwise we won't find it if we're
12729   # using a relative directory.
12730   cp "$am_depcomp" conftest.dir
12731   cd conftest.dir
12732   # We will build objects and dependencies in a subdirectory because
12733   # it helps to detect inapplicable dependency modes.  For instance
12734   # both Tru64's cc and ICC support -MD to output dependencies as a
12735   # side effect of compilation, but ICC will put the dependencies in
12736   # the current directory while Tru64 will put them in the object
12737   # directory.
12738   mkdir sub
12739
12740   am_cv_CC_dependencies_compiler_type=none
12741   if test "$am_compiler_list" = ""; then
12742      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12743   fi
12744   for depmode in $am_compiler_list; do
12745     # Setup a source with many dependencies, because some compilers
12746     # like to wrap large dependency lists on column 80 (with \), and
12747     # we should not choose a depcomp mode which is confused by this.
12748     #
12749     # We need to recreate these files for each test, as the compiler may
12750     # overwrite some of them when testing with obscure command lines.
12751     # This happens at least with the AIX C compiler.
12752     : > sub/conftest.c
12753     for i in 1 2 3 4 5 6; do
12754       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12755       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12756       # Solaris 8's {/usr,}/bin/sh.
12757       touch sub/conftst$i.h
12758     done
12759     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12760
12761     case $depmode in
12762     nosideeffect)
12763       # after this tag, mechanisms are not by side-effect, so they'll
12764       # only be used when explicitly requested
12765       if test "x$enable_dependency_tracking" = xyes; then
12766         continue
12767       else
12768         break
12769       fi
12770       ;;
12771     none) break ;;
12772     esac
12773     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12774     # mode.  It turns out that the SunPro C++ compiler does not properly
12775     # handle `-M -o', and we need to detect this.
12776     if depmode=$depmode \
12777        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12778        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12779        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12780          >/dev/null 2>conftest.err &&
12781        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12782        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12783        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12784       # icc doesn't choke on unknown options, it will just issue warnings
12785       # or remarks (even with -Werror).  So we grep stderr for any message
12786       # that says an option was ignored or not supported.
12787       # When given -MP, icc 7.0 and 7.1 complain thusly:
12788       #   icc: Command line warning: ignoring option '-M'; no argument required
12789       # The diagnosis changed in icc 8.0:
12790       #   icc: Command line remark: option '-MP' not supported
12791       if (grep 'ignoring option' conftest.err ||
12792           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12793         am_cv_CC_dependencies_compiler_type=$depmode
12794         break
12795       fi
12796     fi
12797   done
12798
12799   cd ..
12800   rm -rf conftest.dir
12801 else
12802   am_cv_CC_dependencies_compiler_type=none
12803 fi
12804
12805 fi
12806 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12807 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12808 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12809
12810
12811
12812 if
12813   test "x$enable_dependency_tracking" != xno \
12814   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12815   am__fastdepCC_TRUE=
12816   am__fastdepCC_FALSE='#'
12817 else
12818   am__fastdepCC_TRUE='#'
12819   am__fastdepCC_FALSE=
12820 fi
12821
12822
12823 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12824         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12825 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12826    { (exit 1); exit 1; }; }
12827 fi
12828
12829 # test for make depend flag
12830 OL_MKDEP=
12831 OL_MKDEP_FLAGS=
12832 if test -z "${MKDEP}"; then
12833         OL_MKDEP="${CC-cc}"
12834         if test -z "${MKDEP_FLAGS}"; then
12835                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12836 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12837 if test "${ol_cv_mkdep+set}" = set; then
12838   echo $ECHO_N "(cached) $ECHO_C" >&6
12839 else
12840
12841                         ol_cv_mkdep=no
12842                         for flag in "-M" "-xM"; do
12843                                 cat > conftest.c <<EOF
12844  noCode;
12845 EOF
12846                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848   (eval $ac_try) 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); }; } \
12852                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12853                                 then
12854                                         if test ! -f conftest."${ac_object}" ; then
12855                                                 ol_cv_mkdep=$flag
12856                                                 OL_MKDEP_FLAGS="$flag"
12857                                                 break
12858                                         fi
12859                                 fi
12860                         done
12861                         rm -f conftest*
12862
12863 fi
12864 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12865 echo "${ECHO_T}$ol_cv_mkdep" >&6
12866                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
12867         else
12868                 cc_cv_mkdep=yes
12869                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12870         fi
12871 else
12872         cc_cv_mkdep=yes
12873         OL_MKDEP="${MKDEP}"
12874         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12875 fi
12876
12877
12878
12879 if test "${ol_cv_mkdep}" = no ; then
12880         # this will soon become an error
12881         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12882 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12883 fi
12884
12885 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12886 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12887 if test "${ac_cv_lib_s_afopen+set}" = set; then
12888   echo $ECHO_N "(cached) $ECHO_C" >&6
12889 else
12890   ac_check_lib_save_LIBS=$LIBS
12891 LIBS="-ls  $LIBS"
12892 cat >conftest.$ac_ext <<_ACEOF
12893 /* confdefs.h.  */
12894 _ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h.  */
12898
12899 /* Override any gcc2 internal prototype to avoid an error.  */
12900 #ifdef __cplusplus
12901 extern "C"
12902 #endif
12903 /* We use char because int might match the return type of a gcc2
12904    builtin and then its argument prototype would still apply.  */
12905 char afopen ();
12906 int
12907 main ()
12908 {
12909 afopen ();
12910   ;
12911   return 0;
12912 }
12913 _ACEOF
12914 rm -f conftest.$ac_objext conftest$ac_exeext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12916   (eval $ac_link) 2>conftest.er1
12917   ac_status=$?
12918   grep -v '^ *+' conftest.er1 >conftest.err
12919   rm -f conftest.er1
12920   cat conftest.err >&5
12921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922   (exit $ac_status); } &&
12923          { ac_try='test -z "$ac_c_werror_flag"
12924                          || test ! -s conftest.err'
12925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926   (eval $ac_try) 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); }; } &&
12930          { ac_try='test -s conftest$ac_exeext'
12931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932   (eval $ac_try) 2>&5
12933   ac_status=$?
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); }; }; then
12936   ac_cv_lib_s_afopen=yes
12937 else
12938   echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12940
12941 ac_cv_lib_s_afopen=no
12942 fi
12943 rm -f conftest.err conftest.$ac_objext \
12944       conftest$ac_exeext conftest.$ac_ext
12945 LIBS=$ac_check_lib_save_LIBS
12946 fi
12947 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12948 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12949 if test $ac_cv_lib_s_afopen = yes; then
12950
12951         AUTH_LIBS=-ls
12952
12953 cat >>confdefs.h <<\_ACEOF
12954 #define HAVE_AIX_SECURITY 1
12955 _ACEOF
12956
12957
12958 fi
12959
12960
12961 case "$target" in
12962 *-ibm-openedition)
12963         ac_cv_func_getopt=no
12964
12965 cat >>confdefs.h <<\_ACEOF
12966 #define BOTH_STRINGS_H 1
12967 _ACEOF
12968
12969         ;;
12970 esac
12971
12972 ol_link_modules=no
12973 WITH_MODULES_ENABLED=no
12974 if test $ol_enable_modules != no ; then
12975
12976 for ac_header in ltdl.h
12977 do
12978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12980   echo "$as_me:$LINENO: checking for $ac_header" >&5
12981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12983   echo $ECHO_N "(cached) $ECHO_C" >&6
12984 fi
12985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12987 else
12988   # Is the header compilable?
12989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12991 cat >conftest.$ac_ext <<_ACEOF
12992 /* confdefs.h.  */
12993 _ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h.  */
12997 $ac_includes_default
12998 #include <$ac_header>
12999 _ACEOF
13000 rm -f conftest.$ac_objext
13001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13002   (eval $ac_compile) 2>conftest.er1
13003   ac_status=$?
13004   grep -v '^ *+' conftest.er1 >conftest.err
13005   rm -f conftest.er1
13006   cat conftest.err >&5
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); } &&
13009          { ac_try='test -z "$ac_c_werror_flag"
13010                          || test ! -s conftest.err'
13011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012   (eval $ac_try) 2>&5
13013   ac_status=$?
13014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015   (exit $ac_status); }; } &&
13016          { ac_try='test -s conftest.$ac_objext'
13017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018   (eval $ac_try) 2>&5
13019   ac_status=$?
13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); }; }; then
13022   ac_header_compiler=yes
13023 else
13024   echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13026
13027 ac_header_compiler=no
13028 fi
13029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13031 echo "${ECHO_T}$ac_header_compiler" >&6
13032
13033 # Is the header present?
13034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13036 cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h.  */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h.  */
13042 #include <$ac_header>
13043 _ACEOF
13044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13046   ac_status=$?
13047   grep -v '^ *+' conftest.er1 >conftest.err
13048   rm -f conftest.er1
13049   cat conftest.err >&5
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); } >/dev/null; then
13052   if test -s conftest.err; then
13053     ac_cpp_err=$ac_c_preproc_warn_flag
13054     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13055   else
13056     ac_cpp_err=
13057   fi
13058 else
13059   ac_cpp_err=yes
13060 fi
13061 if test -z "$ac_cpp_err"; then
13062   ac_header_preproc=yes
13063 else
13064   echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13066
13067   ac_header_preproc=no
13068 fi
13069 rm -f conftest.err conftest.$ac_ext
13070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13071 echo "${ECHO_T}$ac_header_preproc" >&6
13072
13073 # So?  What about this header?
13074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13075   yes:no: )
13076     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13080     ac_header_preproc=yes
13081     ;;
13082   no:yes:* )
13083     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13085     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13086 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13087     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13089     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13090 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13093     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13095     (
13096       cat <<\_ASBOX
13097 ## --------------------------------------------- ##
13098 ## Report this to <http://www.openldap.org/its/> ##
13099 ## --------------------------------------------- ##
13100 _ASBOX
13101     ) |
13102       sed "s/^/$as_me: WARNING:     /" >&2
13103     ;;
13104 esac
13105 echo "$as_me:$LINENO: checking for $ac_header" >&5
13106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13108   echo $ECHO_N "(cached) $ECHO_C" >&6
13109 else
13110   eval "$as_ac_Header=\$ac_header_preproc"
13111 fi
13112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13114
13115 fi
13116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13117   cat >>confdefs.h <<_ACEOF
13118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13119 _ACEOF
13120
13121 fi
13122
13123 done
13124
13125
13126         if test $ac_cv_header_ltdl_h = no ; then
13127                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13128 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13129    { (exit 1); exit 1; }; }
13130         fi
13131
13132         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13133 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13134 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13135   echo $ECHO_N "(cached) $ECHO_C" >&6
13136 else
13137   ac_check_lib_save_LIBS=$LIBS
13138 LIBS="-lltdl  $LIBS"
13139 cat >conftest.$ac_ext <<_ACEOF
13140 /* confdefs.h.  */
13141 _ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h.  */
13145
13146 /* Override any gcc2 internal prototype to avoid an error.  */
13147 #ifdef __cplusplus
13148 extern "C"
13149 #endif
13150 /* We use char because int might match the return type of a gcc2
13151    builtin and then its argument prototype would still apply.  */
13152 char lt_dlinit ();
13153 int
13154 main ()
13155 {
13156 lt_dlinit ();
13157   ;
13158   return 0;
13159 }
13160 _ACEOF
13161 rm -f conftest.$ac_objext conftest$ac_exeext
13162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13163   (eval $ac_link) 2>conftest.er1
13164   ac_status=$?
13165   grep -v '^ *+' conftest.er1 >conftest.err
13166   rm -f conftest.er1
13167   cat conftest.err >&5
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); } &&
13170          { ac_try='test -z "$ac_c_werror_flag"
13171                          || test ! -s conftest.err'
13172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173   (eval $ac_try) 2>&5
13174   ac_status=$?
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); }; } &&
13177          { ac_try='test -s conftest$ac_exeext'
13178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179   (eval $ac_try) 2>&5
13180   ac_status=$?
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); }; }; then
13183   ac_cv_lib_ltdl_lt_dlinit=yes
13184 else
13185   echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13187
13188 ac_cv_lib_ltdl_lt_dlinit=no
13189 fi
13190 rm -f conftest.err conftest.$ac_objext \
13191       conftest$ac_exeext conftest.$ac_ext
13192 LIBS=$ac_check_lib_save_LIBS
13193 fi
13194 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13195 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13196 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13197
13198                 MODULES_LIBS=-lltdl
13199
13200 cat >>confdefs.h <<\_ACEOF
13201 #define HAVE_LIBLTDL 1
13202 _ACEOF
13203
13204
13205 fi
13206
13207
13208         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13209                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13210 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13211    { (exit 1); exit 1; }; }
13212         fi
13213         ol_link_modules=yes
13214         WITH_MODULES_ENABLED=yes
13215
13216 else
13217         for i in $Backends; do
13218                 eval "ol_tmp=\$ol_enable_$i"
13219                 if test $ol_tmp = mod ; then
13220                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13221 echo "$as_me: WARNING: building static $i backend" >&2;}
13222                         eval "ol_enable_$i=yes"
13223                 fi
13224         done
13225         for i in $Overlays; do
13226                 eval "ol_tmp=\$ol_enable_$i"
13227                 if test $ol_tmp = mod ; then
13228                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13229 echo "$as_me: WARNING: building static $i overlay" >&2;}
13230                         eval "ol_enable_$i=yes"
13231                 fi
13232         done
13233 fi
13234
13235 # test for EBCDIC
13236 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13237 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13238 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13239   echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241
13242         cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h.  */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h.  */
13248
13249 #if !('M' == 0xd4)
13250 #include <__ASCII__/generate_error.h>
13251 #endif
13252
13253 _ACEOF
13254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13256   ac_status=$?
13257   grep -v '^ *+' conftest.er1 >conftest.err
13258   rm -f conftest.er1
13259   cat conftest.err >&5
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); } >/dev/null; then
13262   if test -s conftest.err; then
13263     ac_cpp_err=$ac_c_preproc_warn_flag
13264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13265   else
13266     ac_cpp_err=
13267   fi
13268 else
13269   ac_cpp_err=yes
13270 fi
13271 if test -z "$ac_cpp_err"; then
13272   ol_cv_cpp_ebcdic=yes
13273 else
13274   echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13276
13277   ol_cv_cpp_ebcdic=no
13278 fi
13279 rm -f conftest.err conftest.$ac_ext
13280 fi
13281 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13282 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13283 if test $ol_cv_cpp_ebcdic = yes ; then
13284
13285 cat >>confdefs.h <<\_ACEOF
13286 #define HAVE_EBCDIC 1
13287 _ACEOF
13288
13289 fi
13290
13291 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13292 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13293 if test "${ol_cv_header_stdc+set}" = set; then
13294   echo $ECHO_N "(cached) $ECHO_C" >&6
13295 else
13296   cat >conftest.$ac_ext <<_ACEOF
13297 /* confdefs.h.  */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h.  */
13302 #include <stdlib.h>
13303 #include <stdarg.h>
13304 #include <string.h>
13305 #include <float.h>
13306 _ACEOF
13307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13309   ac_status=$?
13310   grep -v '^ *+' conftest.er1 >conftest.err
13311   rm -f conftest.er1
13312   cat conftest.err >&5
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); } >/dev/null; then
13315   if test -s conftest.err; then
13316     ac_cpp_err=$ac_c_preproc_warn_flag
13317     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13318   else
13319     ac_cpp_err=
13320   fi
13321 else
13322   ac_cpp_err=yes
13323 fi
13324 if test -z "$ac_cpp_err"; then
13325   ol_cv_header_stdc=yes
13326 else
13327   echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330   ol_cv_header_stdc=no
13331 fi
13332 rm -f conftest.err conftest.$ac_ext
13333
13334 if test $ol_cv_header_stdc = yes; then
13335   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13336 cat >conftest.$ac_ext <<_ACEOF
13337 /* confdefs.h.  */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h.  */
13342 #include <string.h>
13343
13344 _ACEOF
13345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13346   $EGREP "memchr" >/dev/null 2>&1; then
13347   :
13348 else
13349   ol_cv_header_stdc=no
13350 fi
13351 rm -f conftest*
13352
13353 fi
13354
13355 if test $ol_cv_header_stdc = yes; then
13356   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13357 cat >conftest.$ac_ext <<_ACEOF
13358 /* confdefs.h.  */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h.  */
13363 #include <stdlib.h>
13364
13365 _ACEOF
13366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13367   $EGREP "free" >/dev/null 2>&1; then
13368   :
13369 else
13370   ol_cv_header_stdc=no
13371 fi
13372 rm -f conftest*
13373
13374 fi
13375
13376 if test $ol_cv_header_stdc = yes; then
13377   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13378 if test "$cross_compiling" = yes; then
13379   :
13380 else
13381   cat >conftest.$ac_ext <<_ACEOF
13382 /* confdefs.h.  */
13383 _ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h.  */
13387 #include <ctype.h>
13388 #ifndef HAVE_EBCDIC
13389 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13390 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13391 #else
13392 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13393                 || ('j' <= (c) && (c) <= 'r') \
13394                 || ('s' <= (c) && (c) <= 'z'))
13395 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13396 #endif
13397 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13398 int main () { int i; for (i = 0; i < 256; i++)
13399 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13400 exit (0); }
13401
13402 _ACEOF
13403 rm -f conftest$ac_exeext
13404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13405   (eval $ac_link) 2>&5
13406   ac_status=$?
13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410   (eval $ac_try) 2>&5
13411   ac_status=$?
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); }; }; then
13414   :
13415 else
13416   echo "$as_me: program exited with status $ac_status" >&5
13417 echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13419
13420 ( exit $ac_status )
13421 ol_cv_header_stdc=no
13422 fi
13423 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13424 fi
13425 fi
13426 fi
13427 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13428 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13429 if test $ol_cv_header_stdc = yes; then
13430   cat >>confdefs.h <<\_ACEOF
13431 #define STDC_HEADERS 1
13432 _ACEOF
13433
13434 fi
13435 ac_cv_header_stdc=disable
13436
13437
13438 if test $ol_cv_header_stdc != yes; then
13439         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13440 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13441 fi
13442
13443
13444
13445
13446
13447
13448 ac_header_dirent=no
13449 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13450   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13451 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13452 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13454   echo $ECHO_N "(cached) $ECHO_C" >&6
13455 else
13456   cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h.  */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h.  */
13462 #include <sys/types.h>
13463 #include <$ac_hdr>
13464
13465 int
13466 main ()
13467 {
13468 if ((DIR *) 0)
13469 return 0;
13470   ;
13471   return 0;
13472 }
13473 _ACEOF
13474 rm -f conftest.$ac_objext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13476   (eval $ac_compile) 2>conftest.er1
13477   ac_status=$?
13478   grep -v '^ *+' conftest.er1 >conftest.err
13479   rm -f conftest.er1
13480   cat conftest.err >&5
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); } &&
13483          { ac_try='test -z "$ac_c_werror_flag"
13484                          || test ! -s conftest.err'
13485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486   (eval $ac_try) 2>&5
13487   ac_status=$?
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); }; } &&
13490          { ac_try='test -s conftest.$ac_objext'
13491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492   (eval $ac_try) 2>&5
13493   ac_status=$?
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); }; }; then
13496   eval "$as_ac_Header=yes"
13497 else
13498   echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13500
13501 eval "$as_ac_Header=no"
13502 fi
13503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13504 fi
13505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13508   cat >>confdefs.h <<_ACEOF
13509 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13510 _ACEOF
13511
13512 ac_header_dirent=$ac_hdr; break
13513 fi
13514
13515 done
13516 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13517 if test $ac_header_dirent = dirent.h; then
13518   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13519 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13520 if test "${ac_cv_search_opendir+set}" = set; then
13521   echo $ECHO_N "(cached) $ECHO_C" >&6
13522 else
13523   ac_func_search_save_LIBS=$LIBS
13524 ac_cv_search_opendir=no
13525 cat >conftest.$ac_ext <<_ACEOF
13526 /* confdefs.h.  */
13527 _ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h.  */
13531
13532 /* Override any gcc2 internal prototype to avoid an error.  */
13533 #ifdef __cplusplus
13534 extern "C"
13535 #endif
13536 /* We use char because int might match the return type of a gcc2
13537    builtin and then its argument prototype would still apply.  */
13538 char opendir ();
13539 int
13540 main ()
13541 {
13542 opendir ();
13543   ;
13544   return 0;
13545 }
13546 _ACEOF
13547 rm -f conftest.$ac_objext conftest$ac_exeext
13548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13549   (eval $ac_link) 2>conftest.er1
13550   ac_status=$?
13551   grep -v '^ *+' conftest.er1 >conftest.err
13552   rm -f conftest.er1
13553   cat conftest.err >&5
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); } &&
13556          { ac_try='test -z "$ac_c_werror_flag"
13557                          || test ! -s conftest.err'
13558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559   (eval $ac_try) 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); }; } &&
13563          { ac_try='test -s conftest$ac_exeext'
13564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565   (eval $ac_try) 2>&5
13566   ac_status=$?
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); }; }; then
13569   ac_cv_search_opendir="none required"
13570 else
13571   echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13573
13574 fi
13575 rm -f conftest.err conftest.$ac_objext \
13576       conftest$ac_exeext conftest.$ac_ext
13577 if test "$ac_cv_search_opendir" = no; then
13578   for ac_lib in dir; do
13579     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13580     cat >conftest.$ac_ext <<_ACEOF
13581 /* confdefs.h.  */
13582 _ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h.  */
13586
13587 /* Override any gcc2 internal prototype to avoid an error.  */
13588 #ifdef __cplusplus
13589 extern "C"
13590 #endif
13591 /* We use char because int might match the return type of a gcc2
13592    builtin and then its argument prototype would still apply.  */
13593 char opendir ();
13594 int
13595 main ()
13596 {
13597 opendir ();
13598   ;
13599   return 0;
13600 }
13601 _ACEOF
13602 rm -f conftest.$ac_objext conftest$ac_exeext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13604   (eval $ac_link) 2>conftest.er1
13605   ac_status=$?
13606   grep -v '^ *+' conftest.er1 >conftest.err
13607   rm -f conftest.er1
13608   cat conftest.err >&5
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); } &&
13611          { ac_try='test -z "$ac_c_werror_flag"
13612                          || test ! -s conftest.err'
13613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614   (eval $ac_try) 2>&5
13615   ac_status=$?
13616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); }; } &&
13618          { ac_try='test -s conftest$ac_exeext'
13619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620   (eval $ac_try) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }; }; then
13624   ac_cv_search_opendir="-l$ac_lib"
13625 break
13626 else
13627   echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 fi
13631 rm -f conftest.err conftest.$ac_objext \
13632       conftest$ac_exeext conftest.$ac_ext
13633   done
13634 fi
13635 LIBS=$ac_func_search_save_LIBS
13636 fi
13637 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13638 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13639 if test "$ac_cv_search_opendir" != no; then
13640   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13641
13642 fi
13643
13644 else
13645   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13646 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13647 if test "${ac_cv_search_opendir+set}" = set; then
13648   echo $ECHO_N "(cached) $ECHO_C" >&6
13649 else
13650   ac_func_search_save_LIBS=$LIBS
13651 ac_cv_search_opendir=no
13652 cat >conftest.$ac_ext <<_ACEOF
13653 /* confdefs.h.  */
13654 _ACEOF
13655 cat confdefs.h >>conftest.$ac_ext
13656 cat >>conftest.$ac_ext <<_ACEOF
13657 /* end confdefs.h.  */
13658
13659 /* Override any gcc2 internal prototype to avoid an error.  */
13660 #ifdef __cplusplus
13661 extern "C"
13662 #endif
13663 /* We use char because int might match the return type of a gcc2
13664    builtin and then its argument prototype would still apply.  */
13665 char opendir ();
13666 int
13667 main ()
13668 {
13669 opendir ();
13670   ;
13671   return 0;
13672 }
13673 _ACEOF
13674 rm -f conftest.$ac_objext conftest$ac_exeext
13675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13676   (eval $ac_link) 2>conftest.er1
13677   ac_status=$?
13678   grep -v '^ *+' conftest.er1 >conftest.err
13679   rm -f conftest.er1
13680   cat conftest.err >&5
13681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); } &&
13683          { ac_try='test -z "$ac_c_werror_flag"
13684                          || test ! -s conftest.err'
13685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686   (eval $ac_try) 2>&5
13687   ac_status=$?
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); }; } &&
13690          { ac_try='test -s conftest$ac_exeext'
13691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692   (eval $ac_try) 2>&5
13693   ac_status=$?
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); }; }; then
13696   ac_cv_search_opendir="none required"
13697 else
13698   echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13700
13701 fi
13702 rm -f conftest.err conftest.$ac_objext \
13703       conftest$ac_exeext conftest.$ac_ext
13704 if test "$ac_cv_search_opendir" = no; then
13705   for ac_lib in x; do
13706     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13707     cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h.  */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h.  */
13713
13714 /* Override any gcc2 internal prototype to avoid an error.  */
13715 #ifdef __cplusplus
13716 extern "C"
13717 #endif
13718 /* We use char because int might match the return type of a gcc2
13719    builtin and then its argument prototype would still apply.  */
13720 char opendir ();
13721 int
13722 main ()
13723 {
13724 opendir ();
13725   ;
13726   return 0;
13727 }
13728 _ACEOF
13729 rm -f conftest.$ac_objext conftest$ac_exeext
13730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13731   (eval $ac_link) 2>conftest.er1
13732   ac_status=$?
13733   grep -v '^ *+' conftest.er1 >conftest.err
13734   rm -f conftest.er1
13735   cat conftest.err >&5
13736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737   (exit $ac_status); } &&
13738          { ac_try='test -z "$ac_c_werror_flag"
13739                          || test ! -s conftest.err'
13740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741   (eval $ac_try) 2>&5
13742   ac_status=$?
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); }; } &&
13745          { ac_try='test -s conftest$ac_exeext'
13746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747   (eval $ac_try) 2>&5
13748   ac_status=$?
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); }; }; then
13751   ac_cv_search_opendir="-l$ac_lib"
13752 break
13753 else
13754   echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13756
13757 fi
13758 rm -f conftest.err conftest.$ac_objext \
13759       conftest$ac_exeext conftest.$ac_ext
13760   done
13761 fi
13762 LIBS=$ac_func_search_save_LIBS
13763 fi
13764 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13765 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13766 if test "$ac_cv_search_opendir" != no; then
13767   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13768
13769 fi
13770
13771 fi
13772
13773 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13774 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13775 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13776   echo $ECHO_N "(cached) $ECHO_C" >&6
13777 else
13778   cat >conftest.$ac_ext <<_ACEOF
13779 /* confdefs.h.  */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h.  */
13784 #include <sys/types.h>
13785 #include <sys/wait.h>
13786 #ifndef WEXITSTATUS
13787 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13788 #endif
13789 #ifndef WIFEXITED
13790 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13791 #endif
13792
13793 int
13794 main ()
13795 {
13796   int s;
13797   wait (&s);
13798   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13799   ;
13800   return 0;
13801 }
13802 _ACEOF
13803 rm -f conftest.$ac_objext
13804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13805   (eval $ac_compile) 2>conftest.er1
13806   ac_status=$?
13807   grep -v '^ *+' conftest.er1 >conftest.err
13808   rm -f conftest.er1
13809   cat conftest.err >&5
13810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811   (exit $ac_status); } &&
13812          { ac_try='test -z "$ac_c_werror_flag"
13813                          || test ! -s conftest.err'
13814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815   (eval $ac_try) 2>&5
13816   ac_status=$?
13817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); }; } &&
13819          { ac_try='test -s conftest.$ac_objext'
13820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821   (eval $ac_try) 2>&5
13822   ac_status=$?
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); }; }; then
13825   ac_cv_header_sys_wait_h=yes
13826 else
13827   echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13829
13830 ac_cv_header_sys_wait_h=no
13831 fi
13832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13833 fi
13834 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13835 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13836 if test $ac_cv_header_sys_wait_h = yes; then
13837
13838 cat >>confdefs.h <<\_ACEOF
13839 #define HAVE_SYS_WAIT_H 1
13840 _ACEOF
13841
13842 fi
13843
13844 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13845 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13846 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13847   echo $ECHO_N "(cached) $ECHO_C" >&6
13848 else
13849   cat >conftest.$ac_ext <<_ACEOF
13850 /* confdefs.h.  */
13851 _ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h.  */
13855 #include <sys/types.h>
13856 #include <termios.h>
13857 #ifdef TIOCGWINSZ
13858   yes
13859 #endif
13860
13861 _ACEOF
13862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13863   $EGREP "yes" >/dev/null 2>&1; then
13864   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13865 else
13866   ac_cv_sys_tiocgwinsz_in_termios_h=no
13867 fi
13868 rm -f conftest*
13869
13870 fi
13871 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13872 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13873
13874 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13875   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13876 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13877 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13878   echo $ECHO_N "(cached) $ECHO_C" >&6
13879 else
13880   cat >conftest.$ac_ext <<_ACEOF
13881 /* confdefs.h.  */
13882 _ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h.  */
13886 #include <sys/types.h>
13887 #include <sys/ioctl.h>
13888 #ifdef TIOCGWINSZ
13889   yes
13890 #endif
13891
13892 _ACEOF
13893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13894   $EGREP "yes" >/dev/null 2>&1; then
13895   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13896 else
13897   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13898 fi
13899 rm -f conftest*
13900
13901 fi
13902 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13903 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13904
13905   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13906
13907 cat >>confdefs.h <<\_ACEOF
13908 #define GWINSZ_IN_SYS_IOCTL 1
13909 _ACEOF
13910
13911   fi
13912 fi
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962 for ac_header in \
13963         arpa/inet.h             \
13964         arpa/nameser.h  \
13965         assert.h                \
13966         bits/types.h    \
13967         conio.h                 \
13968         crypt.h                 \
13969         direct.h                \
13970         errno.h                 \
13971         fcntl.h                 \
13972         filio.h                 \
13973         getopt.h                \
13974         grp.h                   \
13975         io.h                    \
13976         libutil.h               \
13977         limits.h                \
13978         locale.h                \
13979         malloc.h                \
13980         memory.h                \
13981         psap.h                  \
13982         pwd.h                   \
13983         process.h               \
13984         sgtty.h                 \
13985         shadow.h                \
13986         stddef.h                \
13987         string.h                \
13988         strings.h               \
13989         sysexits.h              \
13990         sys/file.h              \
13991         sys/filio.h             \
13992         sys/fstyp.h             \
13993         sys/errno.h             \
13994         sys/ioctl.h             \
13995         sys/param.h             \
13996         sys/privgrp.h   \
13997         sys/resource.h  \
13998         sys/select.h    \
13999         sys/socket.h    \
14000         sys/stat.h              \
14001         sys/syslog.h    \
14002         sys/time.h              \
14003         sys/types.h             \
14004         sys/uio.h               \
14005         sys/vmount.h    \
14006         syslog.h                \
14007         termios.h               \
14008         unistd.h                \
14009         utime.h                 \
14010
14011 do
14012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14014   echo "$as_me:$LINENO: checking for $ac_header" >&5
14015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14017   echo $ECHO_N "(cached) $ECHO_C" >&6
14018 fi
14019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14021 else
14022   # Is the header compilable?
14023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14025 cat >conftest.$ac_ext <<_ACEOF
14026 /* confdefs.h.  */
14027 _ACEOF
14028 cat confdefs.h >>conftest.$ac_ext
14029 cat >>conftest.$ac_ext <<_ACEOF
14030 /* end confdefs.h.  */
14031 $ac_includes_default
14032 #include <$ac_header>
14033 _ACEOF
14034 rm -f conftest.$ac_objext
14035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14036   (eval $ac_compile) 2>conftest.er1
14037   ac_status=$?
14038   grep -v '^ *+' conftest.er1 >conftest.err
14039   rm -f conftest.er1
14040   cat conftest.err >&5
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); } &&
14043          { ac_try='test -z "$ac_c_werror_flag"
14044                          || test ! -s conftest.err'
14045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046   (eval $ac_try) 2>&5
14047   ac_status=$?
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); }; } &&
14050          { ac_try='test -s conftest.$ac_objext'
14051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052   (eval $ac_try) 2>&5
14053   ac_status=$?
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); }; }; then
14056   ac_header_compiler=yes
14057 else
14058   echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14060
14061 ac_header_compiler=no
14062 fi
14063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14065 echo "${ECHO_T}$ac_header_compiler" >&6
14066
14067 # Is the header present?
14068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14070 cat >conftest.$ac_ext <<_ACEOF
14071 /* confdefs.h.  */
14072 _ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h.  */
14076 #include <$ac_header>
14077 _ACEOF
14078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14079   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14080   ac_status=$?
14081   grep -v '^ *+' conftest.er1 >conftest.err
14082   rm -f conftest.er1
14083   cat conftest.err >&5
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); } >/dev/null; then
14086   if test -s conftest.err; then
14087     ac_cpp_err=$ac_c_preproc_warn_flag
14088     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14089   else
14090     ac_cpp_err=
14091   fi
14092 else
14093   ac_cpp_err=yes
14094 fi
14095 if test -z "$ac_cpp_err"; then
14096   ac_header_preproc=yes
14097 else
14098   echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14100
14101   ac_header_preproc=no
14102 fi
14103 rm -f conftest.err conftest.$ac_ext
14104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14105 echo "${ECHO_T}$ac_header_preproc" >&6
14106
14107 # So?  What about this header?
14108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14109   yes:no: )
14110     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14114     ac_header_preproc=yes
14115     ;;
14116   no:yes:* )
14117     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14119     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14120 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14121     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14123     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14124 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14127     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14129     (
14130       cat <<\_ASBOX
14131 ## --------------------------------------------- ##
14132 ## Report this to <http://www.openldap.org/its/> ##
14133 ## --------------------------------------------- ##
14134 _ASBOX
14135     ) |
14136       sed "s/^/$as_me: WARNING:     /" >&2
14137     ;;
14138 esac
14139 echo "$as_me:$LINENO: checking for $ac_header" >&5
14140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14142   echo $ECHO_N "(cached) $ECHO_C" >&6
14143 else
14144   eval "$as_ac_Header=\$ac_header_preproc"
14145 fi
14146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14148
14149 fi
14150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14151   cat >>confdefs.h <<_ACEOF
14152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14153 _ACEOF
14154
14155 fi
14156
14157 done
14158
14159
14160 if test "$ac_cv_mingw32" = yes ; then
14161
14162
14163 for ac_header in winsock.h winsock2.h
14164 do
14165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14167   echo "$as_me:$LINENO: checking for $ac_header" >&5
14168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14170   echo $ECHO_N "(cached) $ECHO_C" >&6
14171 fi
14172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14174 else
14175   # Is the header compilable?
14176 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14178 cat >conftest.$ac_ext <<_ACEOF
14179 /* confdefs.h.  */
14180 _ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h.  */
14184 $ac_includes_default
14185 #include <$ac_header>
14186 _ACEOF
14187 rm -f conftest.$ac_objext
14188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14189   (eval $ac_compile) 2>conftest.er1
14190   ac_status=$?
14191   grep -v '^ *+' conftest.er1 >conftest.err
14192   rm -f conftest.er1
14193   cat conftest.err >&5
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); } &&
14196          { ac_try='test -z "$ac_c_werror_flag"
14197                          || test ! -s conftest.err'
14198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199   (eval $ac_try) 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; } &&
14203          { ac_try='test -s conftest.$ac_objext'
14204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205   (eval $ac_try) 2>&5
14206   ac_status=$?
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); }; }; then
14209   ac_header_compiler=yes
14210 else
14211   echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14213
14214 ac_header_compiler=no
14215 fi
14216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14218 echo "${ECHO_T}$ac_header_compiler" >&6
14219
14220 # Is the header present?
14221 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14223 cat >conftest.$ac_ext <<_ACEOF
14224 /* confdefs.h.  */
14225 _ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h.  */
14229 #include <$ac_header>
14230 _ACEOF
14231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14233   ac_status=$?
14234   grep -v '^ *+' conftest.er1 >conftest.err
14235   rm -f conftest.er1
14236   cat conftest.err >&5
14237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238   (exit $ac_status); } >/dev/null; then
14239   if test -s conftest.err; then
14240     ac_cpp_err=$ac_c_preproc_warn_flag
14241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14242   else
14243     ac_cpp_err=
14244   fi
14245 else
14246   ac_cpp_err=yes
14247 fi
14248 if test -z "$ac_cpp_err"; then
14249   ac_header_preproc=yes
14250 else
14251   echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.$ac_ext >&5
14253
14254   ac_header_preproc=no
14255 fi
14256 rm -f conftest.err conftest.$ac_ext
14257 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14258 echo "${ECHO_T}$ac_header_preproc" >&6
14259
14260 # So?  What about this header?
14261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14262   yes:no: )
14263     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14267     ac_header_preproc=yes
14268     ;;
14269   no:yes:* )
14270     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14272     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14273 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14274     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14276     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14277 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14280     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14282     (
14283       cat <<\_ASBOX
14284 ## --------------------------------------------- ##
14285 ## Report this to <http://www.openldap.org/its/> ##
14286 ## --------------------------------------------- ##
14287 _ASBOX
14288     ) |
14289       sed "s/^/$as_me: WARNING:     /" >&2
14290     ;;
14291 esac
14292 echo "$as_me:$LINENO: checking for $ac_header" >&5
14293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14295   echo $ECHO_N "(cached) $ECHO_C" >&6
14296 else
14297   eval "$as_ac_Header=\$ac_header_preproc"
14298 fi
14299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14301
14302 fi
14303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14304   cat >>confdefs.h <<_ACEOF
14305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14306 _ACEOF
14307
14308 fi
14309
14310 done
14311
14312 fi
14313
14314
14315 for ac_header in resolv.h
14316 do
14317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14318 echo "$as_me:$LINENO: checking for $ac_header" >&5
14319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14321   echo $ECHO_N "(cached) $ECHO_C" >&6
14322 else
14323   cat >conftest.$ac_ext <<_ACEOF
14324 /* confdefs.h.  */
14325 _ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h.  */
14329 $ac_includes_default
14330 #include <netinet/in.h>
14331
14332
14333 #include <$ac_header>
14334 _ACEOF
14335 rm -f conftest.$ac_objext
14336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14337   (eval $ac_compile) 2>conftest.er1
14338   ac_status=$?
14339   grep -v '^ *+' conftest.er1 >conftest.err
14340   rm -f conftest.er1
14341   cat conftest.err >&5
14342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343   (exit $ac_status); } &&
14344          { ac_try='test -z "$ac_c_werror_flag"
14345                          || test ! -s conftest.err'
14346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347   (eval $ac_try) 2>&5
14348   ac_status=$?
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); }; } &&
14351          { ac_try='test -s conftest.$ac_objext'
14352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353   (eval $ac_try) 2>&5
14354   ac_status=$?
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); }; }; then
14357   eval "$as_ac_Header=yes"
14358 else
14359   echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14361
14362 eval "$as_ac_Header=no"
14363 fi
14364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14365 fi
14366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14369   cat >>confdefs.h <<_ACEOF
14370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14371 _ACEOF
14372
14373 fi
14374
14375 done
14376
14377
14378
14379 for ac_header in netinet/tcp.h
14380 do
14381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14382 echo "$as_me:$LINENO: checking for $ac_header" >&5
14383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14385   echo $ECHO_N "(cached) $ECHO_C" >&6
14386 else
14387   cat >conftest.$ac_ext <<_ACEOF
14388 /* confdefs.h.  */
14389 _ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h.  */
14393 $ac_includes_default
14394 #include <netinet/in.h>
14395
14396
14397 #include <$ac_header>
14398 _ACEOF
14399 rm -f conftest.$ac_objext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401   (eval $ac_compile) 2>conftest.er1
14402   ac_status=$?
14403   grep -v '^ *+' conftest.er1 >conftest.err
14404   rm -f conftest.er1
14405   cat conftest.err >&5
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); } &&
14408          { ac_try='test -z "$ac_c_werror_flag"
14409                          || test ! -s conftest.err'
14410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411   (eval $ac_try) 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); }; } &&
14415          { ac_try='test -s conftest.$ac_objext'
14416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417   (eval $ac_try) 2>&5
14418   ac_status=$?
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); }; }; then
14421   eval "$as_ac_Header=yes"
14422 else
14423   echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14425
14426 eval "$as_ac_Header=no"
14427 fi
14428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14429 fi
14430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14433   cat >>confdefs.h <<_ACEOF
14434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14435 _ACEOF
14436
14437 fi
14438
14439 done
14440
14441
14442
14443 for ac_header in sys/ucred.h
14444 do
14445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14446 echo "$as_me:$LINENO: checking for $ac_header" >&5
14447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14449   echo $ECHO_N "(cached) $ECHO_C" >&6
14450 else
14451   cat >conftest.$ac_ext <<_ACEOF
14452 /* confdefs.h.  */
14453 _ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h.  */
14457 $ac_includes_default
14458 #ifdef HAVE_SYS_PARAM_H
14459 #include <sys/param.h>
14460 #endif
14461
14462
14463 #include <$ac_header>
14464 _ACEOF
14465 rm -f conftest.$ac_objext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14467   (eval $ac_compile) 2>conftest.er1
14468   ac_status=$?
14469   grep -v '^ *+' conftest.er1 >conftest.err
14470   rm -f conftest.er1
14471   cat conftest.err >&5
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); } &&
14474          { ac_try='test -z "$ac_c_werror_flag"
14475                          || test ! -s conftest.err'
14476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477   (eval $ac_try) 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); }; } &&
14481          { ac_try='test -s conftest.$ac_objext'
14482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483   (eval $ac_try) 2>&5
14484   ac_status=$?
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); }; }; then
14487   eval "$as_ac_Header=yes"
14488 else
14489   echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14491
14492 eval "$as_ac_Header=no"
14493 fi
14494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14495 fi
14496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14499   cat >>confdefs.h <<_ACEOF
14500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14501 _ACEOF
14502
14503 fi
14504
14505 done
14506
14507
14508
14509
14510
14511 for ac_func in sigaction sigset
14512 do
14513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14514 echo "$as_me:$LINENO: checking for $ac_func" >&5
14515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14516 if eval "test \"\${$as_ac_var+set}\" = set"; then
14517   echo $ECHO_N "(cached) $ECHO_C" >&6
14518 else
14519   cat >conftest.$ac_ext <<_ACEOF
14520 /* confdefs.h.  */
14521 _ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h.  */
14525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14526    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14527 #define $ac_func innocuous_$ac_func
14528
14529 /* System header to define __stub macros and hopefully few prototypes,
14530     which can conflict with char $ac_func (); below.
14531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14532     <limits.h> exists even on freestanding compilers.  */
14533
14534 #ifdef __STDC__
14535 # include <limits.h>
14536 #else
14537 # include <assert.h>
14538 #endif
14539
14540 #undef $ac_func
14541
14542 /* Override any gcc2 internal prototype to avoid an error.  */
14543 #ifdef __cplusplus
14544 extern "C"
14545 {
14546 #endif
14547 /* We use char because int might match the return type of a gcc2
14548    builtin and then its argument prototype would still apply.  */
14549 char $ac_func ();
14550 /* The GNU C library defines this for functions which it implements
14551     to always fail with ENOSYS.  Some functions are actually named
14552     something starting with __ and the normal name is an alias.  */
14553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14554 choke me
14555 #else
14556 char (*f) () = $ac_func;
14557 #endif
14558 #ifdef __cplusplus
14559 }
14560 #endif
14561
14562 int
14563 main ()
14564 {
14565 return f != $ac_func;
14566   ;
14567   return 0;
14568 }
14569 _ACEOF
14570 rm -f conftest.$ac_objext conftest$ac_exeext
14571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14572   (eval $ac_link) 2>conftest.er1
14573   ac_status=$?
14574   grep -v '^ *+' conftest.er1 >conftest.err
14575   rm -f conftest.er1
14576   cat conftest.err >&5
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); } &&
14579          { ac_try='test -z "$ac_c_werror_flag"
14580                          || test ! -s conftest.err'
14581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582   (eval $ac_try) 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); }; } &&
14586          { ac_try='test -s conftest$ac_exeext'
14587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588   (eval $ac_try) 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); }; }; then
14592   eval "$as_ac_var=yes"
14593 else
14594   echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14596
14597 eval "$as_ac_var=no"
14598 fi
14599 rm -f conftest.err conftest.$ac_objext \
14600       conftest$ac_exeext conftest.$ac_ext
14601 fi
14602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14604 if test `eval echo '${'$as_ac_var'}'` = yes; then
14605   cat >>confdefs.h <<_ACEOF
14606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14607 _ACEOF
14608
14609 fi
14610 done
14611
14612
14613 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14614
14615 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14616 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14617 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14618   echo $ECHO_N "(cached) $ECHO_C" >&6
14619 else
14620   ac_check_lib_save_LIBS=$LIBS
14621 LIBS="-lV3  $LIBS"
14622 cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h.  */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h.  */
14628
14629 /* Override any gcc2 internal prototype to avoid an error.  */
14630 #ifdef __cplusplus
14631 extern "C"
14632 #endif
14633 /* We use char because int might match the return type of a gcc2
14634    builtin and then its argument prototype would still apply.  */
14635 char sigset ();
14636 int
14637 main ()
14638 {
14639 sigset ();
14640   ;
14641   return 0;
14642 }
14643 _ACEOF
14644 rm -f conftest.$ac_objext conftest$ac_exeext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14646   (eval $ac_link) 2>conftest.er1
14647   ac_status=$?
14648   grep -v '^ *+' conftest.er1 >conftest.err
14649   rm -f conftest.er1
14650   cat conftest.err >&5
14651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   (exit $ac_status); } &&
14653          { ac_try='test -z "$ac_c_werror_flag"
14654                          || test ! -s conftest.err'
14655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656   (eval $ac_try) 2>&5
14657   ac_status=$?
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); }; } &&
14660          { ac_try='test -s conftest$ac_exeext'
14661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662   (eval $ac_try) 2>&5
14663   ac_status=$?
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); }; }; then
14666   ac_cv_lib_V3_sigset=yes
14667 else
14668   echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14670
14671 ac_cv_lib_V3_sigset=no
14672 fi
14673 rm -f conftest.err conftest.$ac_objext \
14674       conftest$ac_exeext conftest.$ac_ext
14675 LIBS=$ac_check_lib_save_LIBS
14676 fi
14677 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14678 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14679 if test $ac_cv_lib_V3_sigset = yes; then
14680   cat >>confdefs.h <<_ACEOF
14681 #define HAVE_LIBV3 1
14682 _ACEOF
14683
14684   LIBS="-lV3 $LIBS"
14685
14686 fi
14687
14688 fi
14689
14690 if test "$ac_cv_header_winsock_h" = yes; then
14691 echo "$as_me:$LINENO: checking for winsock" >&5
14692 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14693 if test "${ol_cv_winsock+set}" = set; then
14694   echo $ECHO_N "(cached) $ECHO_C" >&6
14695 else
14696   save_LIBS="$LIBS"
14697 for curlib in ws2_32 wsock32; do
14698         LIBS="$LIBS -l$curlib"
14699         cat >conftest.$ac_ext <<_ACEOF
14700 /* confdefs.h.  */
14701 _ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h.  */
14705 #include <winsock.h>
14706
14707 int
14708 main ()
14709 {
14710
14711                         socket(0,0,0);
14712                         select(0,NULL,NULL,NULL,NULL);
14713                         closesocket(0);
14714                         gethostname(NULL,0);
14715
14716   ;
14717   return 0;
14718 }
14719 _ACEOF
14720 rm -f conftest.$ac_objext conftest$ac_exeext
14721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14722   (eval $ac_link) 2>conftest.er1
14723   ac_status=$?
14724   grep -v '^ *+' conftest.er1 >conftest.err
14725   rm -f conftest.er1
14726   cat conftest.err >&5
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); } &&
14729          { ac_try='test -z "$ac_c_werror_flag"
14730                          || test ! -s conftest.err'
14731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732   (eval $ac_try) 2>&5
14733   ac_status=$?
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); }; } &&
14736          { ac_try='test -s conftest$ac_exeext'
14737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738   (eval $ac_try) 2>&5
14739   ac_status=$?
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); }; }; then
14742   ol_cv_winsock=yes
14743 else
14744   echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14746
14747 ol_cv_winsock=no
14748 fi
14749 rm -f conftest.err conftest.$ac_objext \
14750       conftest$ac_exeext conftest.$ac_ext
14751
14752         if test $ol_cv_winsock = yes; then
14753
14754 cat >>confdefs.h <<\_ACEOF
14755 #define HAVE_WINSOCK 1
14756 _ACEOF
14757
14758                 ac_cv_func_socket=yes
14759                 ac_cv_func_select=yes
14760                 ac_cv_func_closesocket=yes
14761                 ac_cv_func_gethostname=yes
14762                 if test $curlib = ws2_32; then
14763                         ol_cv_winsock=winsock2
14764
14765 cat >>confdefs.h <<\_ACEOF
14766 #define HAVE_WINSOCK2 1
14767 _ACEOF
14768
14769                 fi
14770                 break
14771         fi
14772         LIBS="$save_LIBS"
14773 done
14774 fi
14775 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14776 echo "${ECHO_T}$ol_cv_winsock" >&6
14777 fi
14778
14779
14780 echo "$as_me:$LINENO: checking for socket" >&5
14781 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14782 if test "${ac_cv_func_socket+set}" = set; then
14783   echo $ECHO_N "(cached) $ECHO_C" >&6
14784 else
14785   cat >conftest.$ac_ext <<_ACEOF
14786 /* confdefs.h.  */
14787 _ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h.  */
14791 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14793 #define socket innocuous_socket
14794
14795 /* System header to define __stub macros and hopefully few prototypes,
14796     which can conflict with char socket (); below.
14797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14798     <limits.h> exists even on freestanding compilers.  */
14799
14800 #ifdef __STDC__
14801 # include <limits.h>
14802 #else
14803 # include <assert.h>
14804 #endif
14805
14806 #undef socket
14807
14808 /* Override any gcc2 internal prototype to avoid an error.  */
14809 #ifdef __cplusplus
14810 extern "C"
14811 {
14812 #endif
14813 /* We use char because int might match the return type of a gcc2
14814    builtin and then its argument prototype would still apply.  */
14815 char socket ();
14816 /* The GNU C library defines this for functions which it implements
14817     to always fail with ENOSYS.  Some functions are actually named
14818     something starting with __ and the normal name is an alias.  */
14819 #if defined (__stub_socket) || defined (__stub___socket)
14820 choke me
14821 #else
14822 char (*f) () = socket;
14823 #endif
14824 #ifdef __cplusplus
14825 }
14826 #endif
14827
14828 int
14829 main ()
14830 {
14831 return f != socket;
14832   ;
14833   return 0;
14834 }
14835 _ACEOF
14836 rm -f conftest.$ac_objext conftest$ac_exeext
14837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14838   (eval $ac_link) 2>conftest.er1
14839   ac_status=$?
14840   grep -v '^ *+' conftest.er1 >conftest.err
14841   rm -f conftest.er1
14842   cat conftest.err >&5
14843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844   (exit $ac_status); } &&
14845          { ac_try='test -z "$ac_c_werror_flag"
14846                          || test ! -s conftest.err'
14847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848   (eval $ac_try) 2>&5
14849   ac_status=$?
14850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); }; } &&
14852          { ac_try='test -s conftest$ac_exeext'
14853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14854   (eval $ac_try) 2>&5
14855   ac_status=$?
14856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857   (exit $ac_status); }; }; then
14858   ac_cv_func_socket=yes
14859 else
14860   echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14862
14863 ac_cv_func_socket=no
14864 fi
14865 rm -f conftest.err conftest.$ac_objext \
14866       conftest$ac_exeext conftest.$ac_ext
14867 fi
14868 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14869 echo "${ECHO_T}$ac_cv_func_socket" >&6
14870 if test $ac_cv_func_socket = yes; then
14871   :
14872 else
14873
14874
14875 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14876 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14877 if test "${ac_cv_lib_socket_main+set}" = set; then
14878   echo $ECHO_N "(cached) $ECHO_C" >&6
14879 else
14880   ac_check_lib_save_LIBS=$LIBS
14881 LIBS="-lsocket  $LIBS"
14882 cat >conftest.$ac_ext <<_ACEOF
14883 /* confdefs.h.  */
14884 _ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h.  */
14888
14889
14890 int
14891 main ()
14892 {
14893 main ();
14894   ;
14895   return 0;
14896 }
14897 _ACEOF
14898 rm -f conftest.$ac_objext conftest$ac_exeext
14899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14900   (eval $ac_link) 2>conftest.er1
14901   ac_status=$?
14902   grep -v '^ *+' conftest.er1 >conftest.err
14903   rm -f conftest.er1
14904   cat conftest.err >&5
14905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906   (exit $ac_status); } &&
14907          { ac_try='test -z "$ac_c_werror_flag"
14908                          || test ! -s conftest.err'
14909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910   (eval $ac_try) 2>&5
14911   ac_status=$?
14912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913   (exit $ac_status); }; } &&
14914          { ac_try='test -s conftest$ac_exeext'
14915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916   (eval $ac_try) 2>&5
14917   ac_status=$?
14918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919   (exit $ac_status); }; }; then
14920   ac_cv_lib_socket_main=yes
14921 else
14922   echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14924
14925 ac_cv_lib_socket_main=no
14926 fi
14927 rm -f conftest.err conftest.$ac_objext \
14928       conftest$ac_exeext conftest.$ac_ext
14929 LIBS=$ac_check_lib_save_LIBS
14930 fi
14931 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14932 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14933 if test $ac_cv_lib_socket_main = yes; then
14934   cat >>confdefs.h <<_ACEOF
14935 #define HAVE_LIBSOCKET 1
14936 _ACEOF
14937
14938   LIBS="-lsocket $LIBS"
14939
14940 fi
14941
14942
14943 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14944 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14945 if test "${ac_cv_lib_net_main+set}" = set; then
14946   echo $ECHO_N "(cached) $ECHO_C" >&6
14947 else
14948   ac_check_lib_save_LIBS=$LIBS
14949 LIBS="-lnet  $LIBS"
14950 cat >conftest.$ac_ext <<_ACEOF
14951 /* confdefs.h.  */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h.  */
14956
14957
14958 int
14959 main ()
14960 {
14961 main ();
14962   ;
14963   return 0;
14964 }
14965 _ACEOF
14966 rm -f conftest.$ac_objext conftest$ac_exeext
14967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14968   (eval $ac_link) 2>conftest.er1
14969   ac_status=$?
14970   grep -v '^ *+' conftest.er1 >conftest.err
14971   rm -f conftest.er1
14972   cat conftest.err >&5
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); } &&
14975          { ac_try='test -z "$ac_c_werror_flag"
14976                          || test ! -s conftest.err'
14977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978   (eval $ac_try) 2>&5
14979   ac_status=$?
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); }; } &&
14982          { ac_try='test -s conftest$ac_exeext'
14983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984   (eval $ac_try) 2>&5
14985   ac_status=$?
14986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987   (exit $ac_status); }; }; then
14988   ac_cv_lib_net_main=yes
14989 else
14990   echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14992
14993 ac_cv_lib_net_main=no
14994 fi
14995 rm -f conftest.err conftest.$ac_objext \
14996       conftest$ac_exeext conftest.$ac_ext
14997 LIBS=$ac_check_lib_save_LIBS
14998 fi
14999 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15000 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
15001 if test $ac_cv_lib_net_main = yes; then
15002   cat >>confdefs.h <<_ACEOF
15003 #define HAVE_LIBNET 1
15004 _ACEOF
15005
15006   LIBS="-lnet $LIBS"
15007
15008 fi
15009
15010
15011 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15012 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
15013 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15014   echo $ECHO_N "(cached) $ECHO_C" >&6
15015 else
15016   ac_check_lib_save_LIBS=$LIBS
15017 LIBS="-lnsl_s  $LIBS"
15018 cat >conftest.$ac_ext <<_ACEOF
15019 /* confdefs.h.  */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h.  */
15024
15025
15026 int
15027 main ()
15028 {
15029 main ();
15030   ;
15031   return 0;
15032 }
15033 _ACEOF
15034 rm -f conftest.$ac_objext conftest$ac_exeext
15035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15036   (eval $ac_link) 2>conftest.er1
15037   ac_status=$?
15038   grep -v '^ *+' conftest.er1 >conftest.err
15039   rm -f conftest.er1
15040   cat conftest.err >&5
15041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042   (exit $ac_status); } &&
15043          { ac_try='test -z "$ac_c_werror_flag"
15044                          || test ! -s conftest.err'
15045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046   (eval $ac_try) 2>&5
15047   ac_status=$?
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   (exit $ac_status); }; } &&
15050          { ac_try='test -s conftest$ac_exeext'
15051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052   (eval $ac_try) 2>&5
15053   ac_status=$?
15054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055   (exit $ac_status); }; }; then
15056   ac_cv_lib_nsl_s_main=yes
15057 else
15058   echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15060
15061 ac_cv_lib_nsl_s_main=no
15062 fi
15063 rm -f conftest.err conftest.$ac_objext \
15064       conftest$ac_exeext conftest.$ac_ext
15065 LIBS=$ac_check_lib_save_LIBS
15066 fi
15067 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15068 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
15069 if test $ac_cv_lib_nsl_s_main = yes; then
15070   cat >>confdefs.h <<_ACEOF
15071 #define HAVE_LIBNSL_S 1
15072 _ACEOF
15073
15074   LIBS="-lnsl_s $LIBS"
15075
15076 fi
15077
15078
15079 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15080 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15081 if test "${ac_cv_lib_nsl_main+set}" = set; then
15082   echo $ECHO_N "(cached) $ECHO_C" >&6
15083 else
15084   ac_check_lib_save_LIBS=$LIBS
15085 LIBS="-lnsl  $LIBS"
15086 cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h.  */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h.  */
15092
15093
15094 int
15095 main ()
15096 {
15097 main ();
15098   ;
15099   return 0;
15100 }
15101 _ACEOF
15102 rm -f conftest.$ac_objext conftest$ac_exeext
15103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15104   (eval $ac_link) 2>conftest.er1
15105   ac_status=$?
15106   grep -v '^ *+' conftest.er1 >conftest.err
15107   rm -f conftest.er1
15108   cat conftest.err >&5
15109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   (exit $ac_status); } &&
15111          { ac_try='test -z "$ac_c_werror_flag"
15112                          || test ! -s conftest.err'
15113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114   (eval $ac_try) 2>&5
15115   ac_status=$?
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); }; } &&
15118          { ac_try='test -s conftest$ac_exeext'
15119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120   (eval $ac_try) 2>&5
15121   ac_status=$?
15122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); }; }; then
15124   ac_cv_lib_nsl_main=yes
15125 else
15126   echo "$as_me: failed program was:" >&5
15127 sed 's/^/| /' conftest.$ac_ext >&5
15128
15129 ac_cv_lib_nsl_main=no
15130 fi
15131 rm -f conftest.err conftest.$ac_objext \
15132       conftest$ac_exeext conftest.$ac_ext
15133 LIBS=$ac_check_lib_save_LIBS
15134 fi
15135 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15136 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15137 if test $ac_cv_lib_nsl_main = yes; then
15138   cat >>confdefs.h <<_ACEOF
15139 #define HAVE_LIBNSL 1
15140 _ACEOF
15141
15142   LIBS="-lnsl $LIBS"
15143
15144 fi
15145
15146
15147 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15148 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15149 if test "${ac_cv_lib_inet_socket+set}" = set; then
15150   echo $ECHO_N "(cached) $ECHO_C" >&6
15151 else
15152   ac_check_lib_save_LIBS=$LIBS
15153 LIBS="-linet  $LIBS"
15154 cat >conftest.$ac_ext <<_ACEOF
15155 /* confdefs.h.  */
15156 _ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h.  */
15160
15161 /* Override any gcc2 internal prototype to avoid an error.  */
15162 #ifdef __cplusplus
15163 extern "C"
15164 #endif
15165 /* We use char because int might match the return type of a gcc2
15166    builtin and then its argument prototype would still apply.  */
15167 char socket ();
15168 int
15169 main ()
15170 {
15171 socket ();
15172   ;
15173   return 0;
15174 }
15175 _ACEOF
15176 rm -f conftest.$ac_objext conftest$ac_exeext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15178   (eval $ac_link) 2>conftest.er1
15179   ac_status=$?
15180   grep -v '^ *+' conftest.er1 >conftest.err
15181   rm -f conftest.er1
15182   cat conftest.err >&5
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   (exit $ac_status); } &&
15185          { ac_try='test -z "$ac_c_werror_flag"
15186                          || test ! -s conftest.err'
15187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188   (eval $ac_try) 2>&5
15189   ac_status=$?
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); }; } &&
15192          { ac_try='test -s conftest$ac_exeext'
15193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194   (eval $ac_try) 2>&5
15195   ac_status=$?
15196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197   (exit $ac_status); }; }; then
15198   ac_cv_lib_inet_socket=yes
15199 else
15200   echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15202
15203 ac_cv_lib_inet_socket=no
15204 fi
15205 rm -f conftest.err conftest.$ac_objext \
15206       conftest$ac_exeext conftest.$ac_ext
15207 LIBS=$ac_check_lib_save_LIBS
15208 fi
15209 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15210 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15211 if test $ac_cv_lib_inet_socket = yes; then
15212   cat >>confdefs.h <<_ACEOF
15213 #define HAVE_LIBINET 1
15214 _ACEOF
15215
15216   LIBS="-linet $LIBS"
15217
15218 fi
15219
15220
15221 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15222 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15223 if test "${ac_cv_lib_gen_main+set}" = set; then
15224   echo $ECHO_N "(cached) $ECHO_C" >&6
15225 else
15226   ac_check_lib_save_LIBS=$LIBS
15227 LIBS="-lgen  $LIBS"
15228 cat >conftest.$ac_ext <<_ACEOF
15229 /* confdefs.h.  */
15230 _ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h.  */
15234
15235
15236 int
15237 main ()
15238 {
15239 main ();
15240   ;
15241   return 0;
15242 }
15243 _ACEOF
15244 rm -f conftest.$ac_objext conftest$ac_exeext
15245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15246   (eval $ac_link) 2>conftest.er1
15247   ac_status=$?
15248   grep -v '^ *+' conftest.er1 >conftest.err
15249   rm -f conftest.er1
15250   cat conftest.err >&5
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); } &&
15253          { ac_try='test -z "$ac_c_werror_flag"
15254                          || test ! -s conftest.err'
15255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256   (eval $ac_try) 2>&5
15257   ac_status=$?
15258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259   (exit $ac_status); }; } &&
15260          { ac_try='test -s conftest$ac_exeext'
15261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262   (eval $ac_try) 2>&5
15263   ac_status=$?
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); }; }; then
15266   ac_cv_lib_gen_main=yes
15267 else
15268   echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15270
15271 ac_cv_lib_gen_main=no
15272 fi
15273 rm -f conftest.err conftest.$ac_objext \
15274       conftest$ac_exeext conftest.$ac_ext
15275 LIBS=$ac_check_lib_save_LIBS
15276 fi
15277 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15278 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15279 if test $ac_cv_lib_gen_main = yes; then
15280   cat >>confdefs.h <<_ACEOF
15281 #define HAVE_LIBGEN 1
15282 _ACEOF
15283
15284   LIBS="-lgen $LIBS"
15285
15286 fi
15287
15288
15289 fi
15290
15291
15292 echo "$as_me:$LINENO: checking for select" >&5
15293 echo $ECHO_N "checking for select... $ECHO_C" >&6
15294 if test "${ac_cv_func_select+set}" = set; then
15295   echo $ECHO_N "(cached) $ECHO_C" >&6
15296 else
15297   cat >conftest.$ac_ext <<_ACEOF
15298 /* confdefs.h.  */
15299 _ACEOF
15300 cat confdefs.h >>conftest.$ac_ext
15301 cat >>conftest.$ac_ext <<_ACEOF
15302 /* end confdefs.h.  */
15303 /* Define select to an innocuous variant, in case <limits.h> declares select.
15304    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15305 #define select innocuous_select
15306
15307 /* System header to define __stub macros and hopefully few prototypes,
15308     which can conflict with char select (); below.
15309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15310     <limits.h> exists even on freestanding compilers.  */
15311
15312 #ifdef __STDC__
15313 # include <limits.h>
15314 #else
15315 # include <assert.h>
15316 #endif
15317
15318 #undef select
15319
15320 /* Override any gcc2 internal prototype to avoid an error.  */
15321 #ifdef __cplusplus
15322 extern "C"
15323 {
15324 #endif
15325 /* We use char because int might match the return type of a gcc2
15326    builtin and then its argument prototype would still apply.  */
15327 char select ();
15328 /* The GNU C library defines this for functions which it implements
15329     to always fail with ENOSYS.  Some functions are actually named
15330     something starting with __ and the normal name is an alias.  */
15331 #if defined (__stub_select) || defined (__stub___select)
15332 choke me
15333 #else
15334 char (*f) () = select;
15335 #endif
15336 #ifdef __cplusplus
15337 }
15338 #endif
15339
15340 int
15341 main ()
15342 {
15343 return f != select;
15344   ;
15345   return 0;
15346 }
15347 _ACEOF
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15350   (eval $ac_link) 2>conftest.er1
15351   ac_status=$?
15352   grep -v '^ *+' conftest.er1 >conftest.err
15353   rm -f conftest.er1
15354   cat conftest.err >&5
15355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356   (exit $ac_status); } &&
15357          { ac_try='test -z "$ac_c_werror_flag"
15358                          || test ! -s conftest.err'
15359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360   (eval $ac_try) 2>&5
15361   ac_status=$?
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); }; } &&
15364          { ac_try='test -s conftest$ac_exeext'
15365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366   (eval $ac_try) 2>&5
15367   ac_status=$?
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); }; }; then
15370   ac_cv_func_select=yes
15371 else
15372   echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15374
15375 ac_cv_func_select=no
15376 fi
15377 rm -f conftest.err conftest.$ac_objext \
15378       conftest$ac_exeext conftest.$ac_ext
15379 fi
15380 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15381 echo "${ECHO_T}$ac_cv_func_select" >&6
15382 if test $ac_cv_func_select = yes; then
15383   :
15384 else
15385   { { echo "$as_me:$LINENO: error: select() required." >&5
15386 echo "$as_me: error: select() required." >&2;}
15387    { (exit 1); exit 1; }; }
15388 fi
15389
15390
15391 if test "${ac_cv_header_winsock_h}" != yes; then
15392
15393
15394 for ac_header in sys/select.h sys/socket.h
15395 do
15396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15398   echo "$as_me:$LINENO: checking for $ac_header" >&5
15399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15401   echo $ECHO_N "(cached) $ECHO_C" >&6
15402 fi
15403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15405 else
15406   # Is the header compilable?
15407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15409 cat >conftest.$ac_ext <<_ACEOF
15410 /* confdefs.h.  */
15411 _ACEOF
15412 cat confdefs.h >>conftest.$ac_ext
15413 cat >>conftest.$ac_ext <<_ACEOF
15414 /* end confdefs.h.  */
15415 $ac_includes_default
15416 #include <$ac_header>
15417 _ACEOF
15418 rm -f conftest.$ac_objext
15419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15420   (eval $ac_compile) 2>conftest.er1
15421   ac_status=$?
15422   grep -v '^ *+' conftest.er1 >conftest.err
15423   rm -f conftest.er1
15424   cat conftest.err >&5
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); } &&
15427          { ac_try='test -z "$ac_c_werror_flag"
15428                          || test ! -s conftest.err'
15429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430   (eval $ac_try) 2>&5
15431   ac_status=$?
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); }; } &&
15434          { ac_try='test -s conftest.$ac_objext'
15435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436   (eval $ac_try) 2>&5
15437   ac_status=$?
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); }; }; then
15440   ac_header_compiler=yes
15441 else
15442   echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15444
15445 ac_header_compiler=no
15446 fi
15447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15449 echo "${ECHO_T}$ac_header_compiler" >&6
15450
15451 # Is the header present?
15452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15454 cat >conftest.$ac_ext <<_ACEOF
15455 /* confdefs.h.  */
15456 _ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h.  */
15460 #include <$ac_header>
15461 _ACEOF
15462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15463   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15464   ac_status=$?
15465   grep -v '^ *+' conftest.er1 >conftest.err
15466   rm -f conftest.er1
15467   cat conftest.err >&5
15468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469   (exit $ac_status); } >/dev/null; then
15470   if test -s conftest.err; then
15471     ac_cpp_err=$ac_c_preproc_warn_flag
15472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15473   else
15474     ac_cpp_err=
15475   fi
15476 else
15477   ac_cpp_err=yes
15478 fi
15479 if test -z "$ac_cpp_err"; then
15480   ac_header_preproc=yes
15481 else
15482   echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15484
15485   ac_header_preproc=no
15486 fi
15487 rm -f conftest.err conftest.$ac_ext
15488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15489 echo "${ECHO_T}$ac_header_preproc" >&6
15490
15491 # So?  What about this header?
15492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15493   yes:no: )
15494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15498     ac_header_preproc=yes
15499     ;;
15500   no:yes:* )
15501     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15503     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15504 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15505     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15507     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15508 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15511     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15513     (
15514       cat <<\_ASBOX
15515 ## --------------------------------------------- ##
15516 ## Report this to <http://www.openldap.org/its/> ##
15517 ## --------------------------------------------- ##
15518 _ASBOX
15519     ) |
15520       sed "s/^/$as_me: WARNING:     /" >&2
15521     ;;
15522 esac
15523 echo "$as_me:$LINENO: checking for $ac_header" >&5
15524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15526   echo $ECHO_N "(cached) $ECHO_C" >&6
15527 else
15528   eval "$as_ac_Header=\$ac_header_preproc"
15529 fi
15530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15532
15533 fi
15534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15535   cat >>confdefs.h <<_ACEOF
15536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15537 _ACEOF
15538
15539 fi
15540
15541 done
15542
15543 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15544 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15545 if test "${ac_cv_func_select_args+set}" = set; then
15546   echo $ECHO_N "(cached) $ECHO_C" >&6
15547 else
15548   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15549  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15550   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15551    cat >conftest.$ac_ext <<_ACEOF
15552 /* confdefs.h.  */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h.  */
15557 $ac_includes_default
15558 #if HAVE_SYS_SELECT_H
15559 # include <sys/select.h>
15560 #endif
15561 #if HAVE_SYS_SOCKET_H
15562 # include <sys/socket.h>
15563 #endif
15564
15565 int
15566 main ()
15567 {
15568 extern int select ($ac_arg1,
15569                                             $ac_arg234, $ac_arg234, $ac_arg234,
15570                                             $ac_arg5);
15571   ;
15572   return 0;
15573 }
15574 _ACEOF
15575 rm -f conftest.$ac_objext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15577   (eval $ac_compile) 2>conftest.er1
15578   ac_status=$?
15579   grep -v '^ *+' conftest.er1 >conftest.err
15580   rm -f conftest.er1
15581   cat conftest.err >&5
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); } &&
15584          { ac_try='test -z "$ac_c_werror_flag"
15585                          || test ! -s conftest.err'
15586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587   (eval $ac_try) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); }; } &&
15591          { ac_try='test -s conftest.$ac_objext'
15592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593   (eval $ac_try) 2>&5
15594   ac_status=$?
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); }; }; then
15597   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15598 else
15599   echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15601
15602 fi
15603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15604   done
15605  done
15606 done
15607 # Provide a safe default value.
15608 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15609
15610 fi
15611 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15612 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15613 ac_save_IFS=$IFS; IFS=','
15614 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15615 IFS=$ac_save_IFS
15616 shift
15617
15618 cat >>confdefs.h <<_ACEOF
15619 #define SELECT_TYPE_ARG1 $1
15620 _ACEOF
15621
15622
15623 cat >>confdefs.h <<_ACEOF
15624 #define SELECT_TYPE_ARG234 ($2)
15625 _ACEOF
15626
15627
15628 cat >>confdefs.h <<_ACEOF
15629 #define SELECT_TYPE_ARG5 ($3)
15630 _ACEOF
15631
15632 rm -f conftest*
15633
15634 fi
15635
15636
15637
15638 for ac_func in poll
15639 do
15640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15641 echo "$as_me:$LINENO: checking for $ac_func" >&5
15642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15643 if eval "test \"\${$as_ac_var+set}\" = set"; then
15644   echo $ECHO_N "(cached) $ECHO_C" >&6
15645 else
15646   cat >conftest.$ac_ext <<_ACEOF
15647 /* confdefs.h.  */
15648 _ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h.  */
15652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15654 #define $ac_func innocuous_$ac_func
15655
15656 /* System header to define __stub macros and hopefully few prototypes,
15657     which can conflict with char $ac_func (); below.
15658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15659     <limits.h> exists even on freestanding compilers.  */
15660
15661 #ifdef __STDC__
15662 # include <limits.h>
15663 #else
15664 # include <assert.h>
15665 #endif
15666
15667 #undef $ac_func
15668
15669 /* Override any gcc2 internal prototype to avoid an error.  */
15670 #ifdef __cplusplus
15671 extern "C"
15672 {
15673 #endif
15674 /* We use char because int might match the return type of a gcc2
15675    builtin and then its argument prototype would still apply.  */
15676 char $ac_func ();
15677 /* The GNU C library defines this for functions which it implements
15678     to always fail with ENOSYS.  Some functions are actually named
15679     something starting with __ and the normal name is an alias.  */
15680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15681 choke me
15682 #else
15683 char (*f) () = $ac_func;
15684 #endif
15685 #ifdef __cplusplus
15686 }
15687 #endif
15688
15689 int
15690 main ()
15691 {
15692 return f != $ac_func;
15693   ;
15694   return 0;
15695 }
15696 _ACEOF
15697 rm -f conftest.$ac_objext conftest$ac_exeext
15698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15699   (eval $ac_link) 2>conftest.er1
15700   ac_status=$?
15701   grep -v '^ *+' conftest.er1 >conftest.err
15702   rm -f conftest.er1
15703   cat conftest.err >&5
15704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705   (exit $ac_status); } &&
15706          { ac_try='test -z "$ac_c_werror_flag"
15707                          || test ! -s conftest.err'
15708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709   (eval $ac_try) 2>&5
15710   ac_status=$?
15711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712   (exit $ac_status); }; } &&
15713          { ac_try='test -s conftest$ac_exeext'
15714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15715   (eval $ac_try) 2>&5
15716   ac_status=$?
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); }; }; then
15719   eval "$as_ac_var=yes"
15720 else
15721   echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15723
15724 eval "$as_ac_var=no"
15725 fi
15726 rm -f conftest.err conftest.$ac_objext \
15727       conftest$ac_exeext conftest.$ac_ext
15728 fi
15729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15731 if test `eval echo '${'$as_ac_var'}'` = yes; then
15732   cat >>confdefs.h <<_ACEOF
15733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15734 _ACEOF
15735
15736 fi
15737 done
15738
15739 if test $ac_cv_func_poll = yes; then
15740
15741
15742 for ac_header in poll.h sys/poll.h
15743 do
15744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15746   echo "$as_me:$LINENO: checking for $ac_header" >&5
15747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15749   echo $ECHO_N "(cached) $ECHO_C" >&6
15750 fi
15751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15753 else
15754   # Is the header compilable?
15755 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15757 cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h.  */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h.  */
15763 $ac_includes_default
15764 #include <$ac_header>
15765 _ACEOF
15766 rm -f conftest.$ac_objext
15767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15768   (eval $ac_compile) 2>conftest.er1
15769   ac_status=$?
15770   grep -v '^ *+' conftest.er1 >conftest.err
15771   rm -f conftest.er1
15772   cat conftest.err >&5
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); } &&
15775          { ac_try='test -z "$ac_c_werror_flag"
15776                          || test ! -s conftest.err'
15777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778   (eval $ac_try) 2>&5
15779   ac_status=$?
15780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781   (exit $ac_status); }; } &&
15782          { ac_try='test -s conftest.$ac_objext'
15783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784   (eval $ac_try) 2>&5
15785   ac_status=$?
15786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787   (exit $ac_status); }; }; then
15788   ac_header_compiler=yes
15789 else
15790   echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15792
15793 ac_header_compiler=no
15794 fi
15795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15797 echo "${ECHO_T}$ac_header_compiler" >&6
15798
15799 # Is the header present?
15800 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15802 cat >conftest.$ac_ext <<_ACEOF
15803 /* confdefs.h.  */
15804 _ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h.  */
15808 #include <$ac_header>
15809 _ACEOF
15810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15812   ac_status=$?
15813   grep -v '^ *+' conftest.er1 >conftest.err
15814   rm -f conftest.er1
15815   cat conftest.err >&5
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); } >/dev/null; then
15818   if test -s conftest.err; then
15819     ac_cpp_err=$ac_c_preproc_warn_flag
15820     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15821   else
15822     ac_cpp_err=
15823   fi
15824 else
15825   ac_cpp_err=yes
15826 fi
15827 if test -z "$ac_cpp_err"; then
15828   ac_header_preproc=yes
15829 else
15830   echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15832
15833   ac_header_preproc=no
15834 fi
15835 rm -f conftest.err conftest.$ac_ext
15836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15837 echo "${ECHO_T}$ac_header_preproc" >&6
15838
15839 # So?  What about this header?
15840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15841   yes:no: )
15842     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15846     ac_header_preproc=yes
15847     ;;
15848   no:yes:* )
15849     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15851     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15852 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15853     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15855     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15856 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15859     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15861     (
15862       cat <<\_ASBOX
15863 ## --------------------------------------------- ##
15864 ## Report this to <http://www.openldap.org/its/> ##
15865 ## --------------------------------------------- ##
15866 _ASBOX
15867     ) |
15868       sed "s/^/$as_me: WARNING:     /" >&2
15869     ;;
15870 esac
15871 echo "$as_me:$LINENO: checking for $ac_header" >&5
15872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15874   echo $ECHO_N "(cached) $ECHO_C" >&6
15875 else
15876   eval "$as_ac_Header=\$ac_header_preproc"
15877 fi
15878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15880
15881 fi
15882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15883   cat >>confdefs.h <<_ACEOF
15884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15885 _ACEOF
15886
15887 fi
15888
15889 done
15890
15891 fi
15892
15893
15894 for ac_header in sys/epoll.h
15895 do
15896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15898   echo "$as_me:$LINENO: checking for $ac_header" >&5
15899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15901   echo $ECHO_N "(cached) $ECHO_C" >&6
15902 fi
15903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15905 else
15906   # Is the header compilable?
15907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15909 cat >conftest.$ac_ext <<_ACEOF
15910 /* confdefs.h.  */
15911 _ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h.  */
15915 $ac_includes_default
15916 #include <$ac_header>
15917 _ACEOF
15918 rm -f conftest.$ac_objext
15919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15920   (eval $ac_compile) 2>conftest.er1
15921   ac_status=$?
15922   grep -v '^ *+' conftest.er1 >conftest.err
15923   rm -f conftest.er1
15924   cat conftest.err >&5
15925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926   (exit $ac_status); } &&
15927          { ac_try='test -z "$ac_c_werror_flag"
15928                          || test ! -s conftest.err'
15929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930   (eval $ac_try) 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); }; } &&
15934          { ac_try='test -s conftest.$ac_objext'
15935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936   (eval $ac_try) 2>&5
15937   ac_status=$?
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); }; }; then
15940   ac_header_compiler=yes
15941 else
15942   echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15944
15945 ac_header_compiler=no
15946 fi
15947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15949 echo "${ECHO_T}$ac_header_compiler" >&6
15950
15951 # Is the header present?
15952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15954 cat >conftest.$ac_ext <<_ACEOF
15955 /* confdefs.h.  */
15956 _ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h.  */
15960 #include <$ac_header>
15961 _ACEOF
15962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15964   ac_status=$?
15965   grep -v '^ *+' conftest.er1 >conftest.err
15966   rm -f conftest.er1
15967   cat conftest.err >&5
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); } >/dev/null; then
15970   if test -s conftest.err; then
15971     ac_cpp_err=$ac_c_preproc_warn_flag
15972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15973   else
15974     ac_cpp_err=
15975   fi
15976 else
15977   ac_cpp_err=yes
15978 fi
15979 if test -z "$ac_cpp_err"; then
15980   ac_header_preproc=yes
15981 else
15982   echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15984
15985   ac_header_preproc=no
15986 fi
15987 rm -f conftest.err conftest.$ac_ext
15988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15989 echo "${ECHO_T}$ac_header_preproc" >&6
15990
15991 # So?  What about this header?
15992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15993   yes:no: )
15994     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15998     ac_header_preproc=yes
15999     ;;
16000   no:yes:* )
16001     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16003     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16004 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16005     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16007     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16008 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16011     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16013     (
16014       cat <<\_ASBOX
16015 ## --------------------------------------------- ##
16016 ## Report this to <http://www.openldap.org/its/> ##
16017 ## --------------------------------------------- ##
16018 _ASBOX
16019     ) |
16020       sed "s/^/$as_me: WARNING:     /" >&2
16021     ;;
16022 esac
16023 echo "$as_me:$LINENO: checking for $ac_header" >&5
16024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16026   echo $ECHO_N "(cached) $ECHO_C" >&6
16027 else
16028   eval "$as_ac_Header=\$ac_header_preproc"
16029 fi
16030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16032
16033 fi
16034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16035   cat >>confdefs.h <<_ACEOF
16036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16037 _ACEOF
16038
16039 fi
16040
16041 done
16042
16043 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16044         echo "$as_me:$LINENO: checking for epoll system call" >&5
16045 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
16046         if test "$cross_compiling" = yes; then
16047   echo "$as_me:$LINENO: result: no" >&5
16048 echo "${ECHO_T}no" >&6
16049 else
16050   cat >conftest.$ac_ext <<_ACEOF
16051 /* confdefs.h.  */
16052 _ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h.  */
16056 int main(int argc, char **argv)
16057 {
16058         int epfd = epoll_create(256);
16059         exit (epfd == -1 ? 1 : 0);
16060 }
16061 _ACEOF
16062 rm -f conftest$ac_exeext
16063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16064   (eval $ac_link) 2>&5
16065   ac_status=$?
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069   (eval $ac_try) 2>&5
16070   ac_status=$?
16071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072   (exit $ac_status); }; }; then
16073   echo "$as_me:$LINENO: result: yes" >&5
16074 echo "${ECHO_T}yes" >&6
16075
16076 cat >>confdefs.h <<\_ACEOF
16077 #define HAVE_EPOLL 1
16078 _ACEOF
16079
16080 else
16081   echo "$as_me: program exited with status $ac_status" >&5
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16084
16085 ( exit $ac_status )
16086 echo "$as_me:$LINENO: result: no" >&5
16087 echo "${ECHO_T}no" >&6
16088 fi
16089 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16090 fi
16091 fi
16092
16093
16094 for ac_header in sys/devpoll.h
16095 do
16096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16098   echo "$as_me:$LINENO: checking for $ac_header" >&5
16099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16101   echo $ECHO_N "(cached) $ECHO_C" >&6
16102 fi
16103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16105 else
16106   # Is the header compilable?
16107 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16109 cat >conftest.$ac_ext <<_ACEOF
16110 /* confdefs.h.  */
16111 _ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h.  */
16115 $ac_includes_default
16116 #include <$ac_header>
16117 _ACEOF
16118 rm -f conftest.$ac_objext
16119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16120   (eval $ac_compile) 2>conftest.er1
16121   ac_status=$?
16122   grep -v '^ *+' conftest.er1 >conftest.err
16123   rm -f conftest.er1
16124   cat conftest.err >&5
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); } &&
16127          { ac_try='test -z "$ac_c_werror_flag"
16128                          || test ! -s conftest.err'
16129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130   (eval $ac_try) 2>&5
16131   ac_status=$?
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); }; } &&
16134          { ac_try='test -s conftest.$ac_objext'
16135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136   (eval $ac_try) 2>&5
16137   ac_status=$?
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); }; }; then
16140   ac_header_compiler=yes
16141 else
16142   echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16144
16145 ac_header_compiler=no
16146 fi
16147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16149 echo "${ECHO_T}$ac_header_compiler" >&6
16150
16151 # Is the header present?
16152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16154 cat >conftest.$ac_ext <<_ACEOF
16155 /* confdefs.h.  */
16156 _ACEOF
16157 cat confdefs.h >>conftest.$ac_ext
16158 cat >>conftest.$ac_ext <<_ACEOF
16159 /* end confdefs.h.  */
16160 #include <$ac_header>
16161 _ACEOF
16162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16163   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16164   ac_status=$?
16165   grep -v '^ *+' conftest.er1 >conftest.err
16166   rm -f conftest.er1
16167   cat conftest.err >&5
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); } >/dev/null; then
16170   if test -s conftest.err; then
16171     ac_cpp_err=$ac_c_preproc_warn_flag
16172     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16173   else
16174     ac_cpp_err=
16175   fi
16176 else
16177   ac_cpp_err=yes
16178 fi
16179 if test -z "$ac_cpp_err"; then
16180   ac_header_preproc=yes
16181 else
16182   echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16184
16185   ac_header_preproc=no
16186 fi
16187 rm -f conftest.err conftest.$ac_ext
16188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16189 echo "${ECHO_T}$ac_header_preproc" >&6
16190
16191 # So?  What about this header?
16192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16193   yes:no: )
16194     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16198     ac_header_preproc=yes
16199     ;;
16200   no:yes:* )
16201     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16203     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16204 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16205     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16207     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16208 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16211     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16213     (
16214       cat <<\_ASBOX
16215 ## --------------------------------------------- ##
16216 ## Report this to <http://www.openldap.org/its/> ##
16217 ## --------------------------------------------- ##
16218 _ASBOX
16219     ) |
16220       sed "s/^/$as_me: WARNING:     /" >&2
16221     ;;
16222 esac
16223 echo "$as_me:$LINENO: checking for $ac_header" >&5
16224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16226   echo $ECHO_N "(cached) $ECHO_C" >&6
16227 else
16228   eval "$as_ac_Header=\$ac_header_preproc"
16229 fi
16230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16232
16233 fi
16234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16235   cat >>confdefs.h <<_ACEOF
16236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16237 _ACEOF
16238
16239 fi
16240
16241 done
16242
16243 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16244                 -a "${ac_cv_header_poll_h}" = yes ; \
16245 then
16246         echo "$as_me:$LINENO: checking for /dev/poll" >&5
16247 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16248         if test "$cross_compiling" = yes; then
16249   echo "$as_me:$LINENO: result: no" >&5
16250 echo "${ECHO_T}no" >&6
16251 else
16252   cat >conftest.$ac_ext <<_ACEOF
16253 /* confdefs.h.  */
16254 _ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h.  */
16258 int main(int argc, char **argv)
16259 {
16260         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16261         exit (devpollfd == -1 ? 1 : 0);
16262 }
16263 _ACEOF
16264 rm -f conftest$ac_exeext
16265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16266   (eval $ac_link) 2>&5
16267   ac_status=$?
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271   (eval $ac_try) 2>&5
16272   ac_status=$?
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); }; }; then
16275   echo "$as_me:$LINENO: result: yes" >&5
16276 echo "${ECHO_T}yes" >&6
16277
16278 cat >>confdefs.h <<\_ACEOF
16279 #define HAVE_DEVPOLL 1
16280 _ACEOF
16281
16282 else
16283   echo "$as_me: program exited with status $ac_status" >&5
16284 echo "$as_me: failed program was:" >&5
16285 sed 's/^/| /' conftest.$ac_ext >&5
16286
16287 ( exit $ac_status )
16288 echo "$as_me:$LINENO: result: no" >&5
16289 echo "${ECHO_T}no" >&6
16290 fi
16291 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16292 fi
16293 fi
16294
16295 # strerror checks
16296 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16297 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16298 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16299   echo $ECHO_N "(cached) $ECHO_C" >&6
16300 else
16301
16302         cat >conftest.$ac_ext <<_ACEOF
16303 /* confdefs.h.  */
16304 _ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h.  */
16308
16309 #include <stdio.h>
16310 #include <sys/types.h>
16311 #include <errno.h>
16312 #ifdef _WIN32
16313 #include <stdlib.h>
16314 #endif
16315 int
16316 main ()
16317 {
16318 char *c = (char *) *sys_errlist
16319   ;
16320   return 0;
16321 }
16322 _ACEOF
16323 rm -f conftest.$ac_objext
16324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16325   (eval $ac_compile) 2>conftest.er1
16326   ac_status=$?
16327   grep -v '^ *+' conftest.er1 >conftest.err
16328   rm -f conftest.er1
16329   cat conftest.err >&5
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); } &&
16332          { ac_try='test -z "$ac_c_werror_flag"
16333                          || test ! -s conftest.err'
16334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335   (eval $ac_try) 2>&5
16336   ac_status=$?
16337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338   (exit $ac_status); }; } &&
16339          { ac_try='test -s conftest.$ac_objext'
16340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16341   (eval $ac_try) 2>&5
16342   ac_status=$?
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); }; }; then
16345   ol_cv_dcl_sys_errlist=yes
16346         ol_cv_have_sys_errlist=yes
16347 else
16348   echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16350
16351 ol_cv_dcl_sys_errlist=no
16352 fi
16353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16354 fi
16355 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16356 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16357 #
16358 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16359 if test $ol_cv_dcl_sys_errlist = no ; then
16360
16361 cat >>confdefs.h <<\_ACEOF
16362 #define DECL_SYS_ERRLIST 1
16363 _ACEOF
16364
16365
16366         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16367 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16368 if test "${ol_cv_have_sys_errlist+set}" = set; then
16369   echo $ECHO_N "(cached) $ECHO_C" >&6
16370 else
16371
16372                 cat >conftest.$ac_ext <<_ACEOF
16373 /* confdefs.h.  */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h.  */
16378 #include <errno.h>
16379 int
16380 main ()
16381 {
16382 char *c = (char *) *sys_errlist
16383   ;
16384   return 0;
16385 }
16386 _ACEOF
16387 rm -f conftest.$ac_objext conftest$ac_exeext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16389   (eval $ac_link) 2>conftest.er1
16390   ac_status=$?
16391   grep -v '^ *+' conftest.er1 >conftest.err
16392   rm -f conftest.er1
16393   cat conftest.err >&5
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); } &&
16396          { ac_try='test -z "$ac_c_werror_flag"
16397                          || test ! -s conftest.err'
16398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399   (eval $ac_try) 2>&5
16400   ac_status=$?
16401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402   (exit $ac_status); }; } &&
16403          { ac_try='test -s conftest$ac_exeext'
16404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405   (eval $ac_try) 2>&5
16406   ac_status=$?
16407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408   (exit $ac_status); }; }; then
16409   ol_cv_have_sys_errlist=yes
16410 else
16411   echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16413
16414 ol_cv_have_sys_errlist=no
16415 fi
16416 rm -f conftest.err conftest.$ac_objext \
16417       conftest$ac_exeext conftest.$ac_ext
16418 fi
16419 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16420 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16421 fi
16422 if test $ol_cv_have_sys_errlist = yes ; then
16423
16424 cat >>confdefs.h <<\_ACEOF
16425 #define HAVE_SYS_ERRLIST 1
16426 _ACEOF
16427
16428 fi
16429
16430
16431 for ac_func in strerror strerror_r
16432 do
16433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16434 echo "$as_me:$LINENO: checking for $ac_func" >&5
16435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16436 if eval "test \"\${$as_ac_var+set}\" = set"; then
16437   echo $ECHO_N "(cached) $ECHO_C" >&6
16438 else
16439   cat >conftest.$ac_ext <<_ACEOF
16440 /* confdefs.h.  */
16441 _ACEOF
16442 cat confdefs.h >>conftest.$ac_ext
16443 cat >>conftest.$ac_ext <<_ACEOF
16444 /* end confdefs.h.  */
16445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16447 #define $ac_func innocuous_$ac_func
16448
16449 /* System header to define __stub macros and hopefully few prototypes,
16450     which can conflict with char $ac_func (); below.
16451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16452     <limits.h> exists even on freestanding compilers.  */
16453
16454 #ifdef __STDC__
16455 # include <limits.h>
16456 #else
16457 # include <assert.h>
16458 #endif
16459
16460 #undef $ac_func
16461
16462 /* Override any gcc2 internal prototype to avoid an error.  */
16463 #ifdef __cplusplus
16464 extern "C"
16465 {
16466 #endif
16467 /* We use char because int might match the return type of a gcc2
16468    builtin and then its argument prototype would still apply.  */
16469 char $ac_func ();
16470 /* The GNU C library defines this for functions which it implements
16471     to always fail with ENOSYS.  Some functions are actually named
16472     something starting with __ and the normal name is an alias.  */
16473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16474 choke me
16475 #else
16476 char (*f) () = $ac_func;
16477 #endif
16478 #ifdef __cplusplus
16479 }
16480 #endif
16481
16482 int
16483 main ()
16484 {
16485 return f != $ac_func;
16486   ;
16487   return 0;
16488 }
16489 _ACEOF
16490 rm -f conftest.$ac_objext conftest$ac_exeext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16492   (eval $ac_link) 2>conftest.er1
16493   ac_status=$?
16494   grep -v '^ *+' conftest.er1 >conftest.err
16495   rm -f conftest.er1
16496   cat conftest.err >&5
16497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); } &&
16499          { ac_try='test -z "$ac_c_werror_flag"
16500                          || test ! -s conftest.err'
16501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502   (eval $ac_try) 2>&5
16503   ac_status=$?
16504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505   (exit $ac_status); }; } &&
16506          { ac_try='test -s conftest$ac_exeext'
16507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508   (eval $ac_try) 2>&5
16509   ac_status=$?
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); }; }; then
16512   eval "$as_ac_var=yes"
16513 else
16514   echo "$as_me: failed program was:" >&5
16515 sed 's/^/| /' conftest.$ac_ext >&5
16516
16517 eval "$as_ac_var=no"
16518 fi
16519 rm -f conftest.err conftest.$ac_objext \
16520       conftest$ac_exeext conftest.$ac_ext
16521 fi
16522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16524 if test `eval echo '${'$as_ac_var'}'` = yes; then
16525   cat >>confdefs.h <<_ACEOF
16526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16527 _ACEOF
16528
16529 fi
16530 done
16531
16532 ol_cv_func_strerror_r=no
16533 if test "${ac_cv_func_strerror_r}" = yes ; then
16534         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16535 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16536 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16537   echo $ECHO_N "(cached) $ECHO_C" >&6
16538 else
16539
16540         cat >conftest.$ac_ext <<_ACEOF
16541 /* confdefs.h.  */
16542 _ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h.  */
16546 #include <string.h>
16547 _ACEOF
16548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16549   $EGREP "strerror_r" >/dev/null 2>&1; then
16550   ol_decl_strerror_r=yes
16551 else
16552   ol_decl_strerror_r=no
16553 fi
16554 rm -f conftest*
16555
16556         if test $ol_decl_strerror_r = yes ; then
16557                 cat >conftest.$ac_ext <<_ACEOF
16558 /* confdefs.h.  */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h.  */
16563 #include <string.h>
16564 int
16565 main ()
16566 {
16567    /* from autoconf 2.59 */
16568                                 char buf[100];
16569                                 char x = *strerror_r (0, buf, sizeof buf);
16570                                 char *p = strerror_r (0, buf, sizeof buf);
16571
16572   ;
16573   return 0;
16574 }
16575 _ACEOF
16576 rm -f conftest.$ac_objext
16577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16578   (eval $ac_compile) 2>conftest.er1
16579   ac_status=$?
16580   grep -v '^ *+' conftest.er1 >conftest.err
16581   rm -f conftest.er1
16582   cat conftest.err >&5
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); } &&
16585          { ac_try='test -z "$ac_c_werror_flag"
16586                          || test ! -s conftest.err'
16587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588   (eval $ac_try) 2>&5
16589   ac_status=$?
16590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591   (exit $ac_status); }; } &&
16592          { ac_try='test -s conftest.$ac_objext'
16593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594   (eval $ac_try) 2>&5
16595   ac_status=$?
16596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597   (exit $ac_status); }; }; then
16598   ol_cv_nonposix_strerror_r=yes
16599 else
16600   echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16602
16603 ol_cv_nonposix_strerror_r=no
16604 fi
16605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16606         else
16607                 if test "$cross_compiling" = yes; then
16608   ol_cv_nonposix_strerror=no
16609 else
16610   cat >conftest.$ac_ext <<_ACEOF
16611 /* confdefs.h.  */
16612 _ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h.  */
16616
16617                         main() {
16618                                 char buf[100];
16619                                 buf[0] = 0;
16620                                 strerror_r( 1, buf, sizeof buf );
16621                                 exit( buf[0] == 0 );
16622                         }
16623
16624 _ACEOF
16625 rm -f conftest$ac_exeext
16626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16627   (eval $ac_link) 2>&5
16628   ac_status=$?
16629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16632   (eval $ac_try) 2>&5
16633   ac_status=$?
16634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635   (exit $ac_status); }; }; then
16636   ol_cv_nonposix_strerror_r=yes
16637 else
16638   echo "$as_me: program exited with status $ac_status" >&5
16639 echo "$as_me: failed program was:" >&5
16640 sed 's/^/| /' conftest.$ac_ext >&5
16641
16642 ( exit $ac_status )
16643 ol_cv_nonposix_strerror=no
16644 fi
16645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16646 fi
16647         fi
16648
16649 fi
16650 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16651 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16652 if test $ol_cv_nonposix_strerror_r = yes ; then
16653
16654 cat >>confdefs.h <<\_ACEOF
16655 #define HAVE_NONPOSIX_STRERROR_R 1
16656 _ACEOF
16657
16658 fi
16659
16660 elif test "${ac_cv_func_strerror}" = no ; then
16661         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16662 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16663 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16664   echo $ECHO_N "(cached) $ECHO_C" >&6
16665 else
16666
16667         cat >conftest.$ac_ext <<_ACEOF
16668 /* confdefs.h.  */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h.  */
16673
16674 #include <stdio.h>
16675 #include <sys/types.h>
16676 #include <errno.h>
16677 #ifdef _WIN32
16678 #include <stdlib.h>
16679 #endif
16680 int
16681 main ()
16682 {
16683 char *c = (char *) *sys_errlist
16684   ;
16685   return 0;
16686 }
16687 _ACEOF
16688 rm -f conftest.$ac_objext
16689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16690   (eval $ac_compile) 2>conftest.er1
16691   ac_status=$?
16692   grep -v '^ *+' conftest.er1 >conftest.err
16693   rm -f conftest.er1
16694   cat conftest.err >&5
16695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); } &&
16697          { ac_try='test -z "$ac_c_werror_flag"
16698                          || test ! -s conftest.err'
16699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700   (eval $ac_try) 2>&5
16701   ac_status=$?
16702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); }; } &&
16704          { ac_try='test -s conftest.$ac_objext'
16705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706   (eval $ac_try) 2>&5
16707   ac_status=$?
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); }; }; then
16710   ol_cv_dcl_sys_errlist=yes
16711         ol_cv_have_sys_errlist=yes
16712 else
16713   echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16715
16716 ol_cv_dcl_sys_errlist=no
16717 fi
16718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16719 fi
16720 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16721 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16722 #
16723 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16724 if test $ol_cv_dcl_sys_errlist = no ; then
16725
16726 cat >>confdefs.h <<\_ACEOF
16727 #define DECL_SYS_ERRLIST 1
16728 _ACEOF
16729
16730
16731         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16732 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16733 if test "${ol_cv_have_sys_errlist+set}" = set; then
16734   echo $ECHO_N "(cached) $ECHO_C" >&6
16735 else
16736
16737                 cat >conftest.$ac_ext <<_ACEOF
16738 /* confdefs.h.  */
16739 _ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h.  */
16743 #include <errno.h>
16744 int
16745 main ()
16746 {
16747 char *c = (char *) *sys_errlist
16748   ;
16749   return 0;
16750 }
16751 _ACEOF
16752 rm -f conftest.$ac_objext conftest$ac_exeext
16753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16754   (eval $ac_link) 2>conftest.er1
16755   ac_status=$?
16756   grep -v '^ *+' conftest.er1 >conftest.err
16757   rm -f conftest.er1
16758   cat conftest.err >&5
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); } &&
16761          { ac_try='test -z "$ac_c_werror_flag"
16762                          || test ! -s conftest.err'
16763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764   (eval $ac_try) 2>&5
16765   ac_status=$?
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); }; } &&
16768          { ac_try='test -s conftest$ac_exeext'
16769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770   (eval $ac_try) 2>&5
16771   ac_status=$?
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); }; }; then
16774   ol_cv_have_sys_errlist=yes
16775 else
16776   echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16778
16779 ol_cv_have_sys_errlist=no
16780 fi
16781 rm -f conftest.err conftest.$ac_objext \
16782       conftest$ac_exeext conftest.$ac_ext
16783 fi
16784 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16785 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16786 fi
16787 if test $ol_cv_have_sys_errlist = yes ; then
16788
16789 cat >>confdefs.h <<\_ACEOF
16790 #define HAVE_SYS_ERRLIST 1
16791 _ACEOF
16792
16793 fi
16794
16795 fi
16796
16797
16798
16799 for ac_header in regex.h
16800 do
16801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16802 echo "$as_me:$LINENO: checking for $ac_header" >&5
16803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16805   echo $ECHO_N "(cached) $ECHO_C" >&6
16806 else
16807   cat >conftest.$ac_ext <<_ACEOF
16808 /* confdefs.h.  */
16809 _ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h.  */
16813 $ac_includes_default
16814 #ifdef HAVE_SYS_TYPES_H
16815 #include <sys/types.h>
16816 #endif
16817
16818
16819 #include <$ac_header>
16820 _ACEOF
16821 rm -f conftest.$ac_objext
16822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16823   (eval $ac_compile) 2>conftest.er1
16824   ac_status=$?
16825   grep -v '^ *+' conftest.er1 >conftest.err
16826   rm -f conftest.er1
16827   cat conftest.err >&5
16828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829   (exit $ac_status); } &&
16830          { ac_try='test -z "$ac_c_werror_flag"
16831                          || test ! -s conftest.err'
16832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833   (eval $ac_try) 2>&5
16834   ac_status=$?
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); }; } &&
16837          { ac_try='test -s conftest.$ac_objext'
16838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839   (eval $ac_try) 2>&5
16840   ac_status=$?
16841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842   (exit $ac_status); }; }; then
16843   eval "$as_ac_Header=yes"
16844 else
16845   echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16847
16848 eval "$as_ac_Header=no"
16849 fi
16850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16851 fi
16852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16855   cat >>confdefs.h <<_ACEOF
16856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16857 _ACEOF
16858
16859 fi
16860
16861 done
16862
16863
16864 if test "$ac_cv_header_regex_h" != yes ; then
16865         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16866 echo "$as_me: error: POSIX regex.h required." >&2;}
16867    { (exit 1); exit 1; }; }
16868 fi
16869 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16870 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16871 if test "${ac_cv_search_regfree+set}" = set; then
16872   echo $ECHO_N "(cached) $ECHO_C" >&6
16873 else
16874   ac_func_search_save_LIBS=$LIBS
16875 ac_cv_search_regfree=no
16876 cat >conftest.$ac_ext <<_ACEOF
16877 /* confdefs.h.  */
16878 _ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h.  */
16882
16883 /* Override any gcc2 internal prototype to avoid an error.  */
16884 #ifdef __cplusplus
16885 extern "C"
16886 #endif
16887 /* We use char because int might match the return type of a gcc2
16888    builtin and then its argument prototype would still apply.  */
16889 char regfree ();
16890 int
16891 main ()
16892 {
16893 regfree ();
16894   ;
16895   return 0;
16896 }
16897 _ACEOF
16898 rm -f conftest.$ac_objext conftest$ac_exeext
16899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16900   (eval $ac_link) 2>conftest.er1
16901   ac_status=$?
16902   grep -v '^ *+' conftest.er1 >conftest.err
16903   rm -f conftest.er1
16904   cat conftest.err >&5
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); } &&
16907          { ac_try='test -z "$ac_c_werror_flag"
16908                          || test ! -s conftest.err'
16909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910   (eval $ac_try) 2>&5
16911   ac_status=$?
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); }; } &&
16914          { ac_try='test -s conftest$ac_exeext'
16915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916   (eval $ac_try) 2>&5
16917   ac_status=$?
16918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919   (exit $ac_status); }; }; then
16920   ac_cv_search_regfree="none required"
16921 else
16922   echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16924
16925 fi
16926 rm -f conftest.err conftest.$ac_objext \
16927       conftest$ac_exeext conftest.$ac_ext
16928 if test "$ac_cv_search_regfree" = no; then
16929   for ac_lib in regex gnuregex; do
16930     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16931     cat >conftest.$ac_ext <<_ACEOF
16932 /* confdefs.h.  */
16933 _ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h.  */
16937
16938 /* Override any gcc2 internal prototype to avoid an error.  */
16939 #ifdef __cplusplus
16940 extern "C"
16941 #endif
16942 /* We use char because int might match the return type of a gcc2
16943    builtin and then its argument prototype would still apply.  */
16944 char regfree ();
16945 int
16946 main ()
16947 {
16948 regfree ();
16949   ;
16950   return 0;
16951 }
16952 _ACEOF
16953 rm -f conftest.$ac_objext conftest$ac_exeext
16954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16955   (eval $ac_link) 2>conftest.er1
16956   ac_status=$?
16957   grep -v '^ *+' conftest.er1 >conftest.err
16958   rm -f conftest.er1
16959   cat conftest.err >&5
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); } &&
16962          { ac_try='test -z "$ac_c_werror_flag"
16963                          || test ! -s conftest.err'
16964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965   (eval $ac_try) 2>&5
16966   ac_status=$?
16967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968   (exit $ac_status); }; } &&
16969          { ac_try='test -s conftest$ac_exeext'
16970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971   (eval $ac_try) 2>&5
16972   ac_status=$?
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); }; }; then
16975   ac_cv_search_regfree="-l$ac_lib"
16976 break
16977 else
16978   echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16980
16981 fi
16982 rm -f conftest.err conftest.$ac_objext \
16983       conftest$ac_exeext conftest.$ac_ext
16984   done
16985 fi
16986 LIBS=$ac_func_search_save_LIBS
16987 fi
16988 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16989 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16990 if test "$ac_cv_search_regfree" != no; then
16991   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16992   :
16993 else
16994   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16995 echo "$as_me: error: POSIX regex required." >&2;}
16996    { (exit 1); exit 1; }; }
16997 fi
16998
16999
17000
17001 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17002 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
17003 if test "${ol_cv_c_posix_regex+set}" = set; then
17004   echo $ECHO_N "(cached) $ECHO_C" >&6
17005 else
17006
17007         if test "$cross_compiling" = yes; then
17008   ol_cv_c_posix_regex=cross
17009 else
17010   cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h.  */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h.  */
17016
17017 #include <sys/types.h>
17018 #include <regex.h>
17019 static char *pattern, *string;
17020 main()
17021 {
17022         int rc;
17023         regex_t re;
17024
17025         pattern = "^A";
17026
17027         if(regcomp(&re, pattern, 0)) {
17028                 return -1;
17029         }
17030
17031         string = "ALL MATCH";
17032
17033         rc = regexec(&re, string, 0, (void*)0, 0);
17034
17035         regfree(&re);
17036
17037         return rc;
17038 }
17039 _ACEOF
17040 rm -f conftest$ac_exeext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17042   (eval $ac_link) 2>&5
17043   ac_status=$?
17044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047   (eval $ac_try) 2>&5
17048   ac_status=$?
17049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050   (exit $ac_status); }; }; then
17051   ol_cv_c_posix_regex=yes
17052 else
17053   echo "$as_me: program exited with status $ac_status" >&5
17054 echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17056
17057 ( exit $ac_status )
17058 ol_cv_c_posix_regex=no
17059 fi
17060 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17061 fi
17062 fi
17063 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17064 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
17065
17066 if test "$ol_cv_c_posix_regex" = no ; then
17067         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17068 echo "$as_me: error: broken POSIX regex!" >&2;}
17069    { (exit 1); exit 1; }; }
17070 fi
17071
17072
17073 have_uuid=no
17074
17075 for ac_header in sys/uuid.h
17076 do
17077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17079   echo "$as_me:$LINENO: checking for $ac_header" >&5
17080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17082   echo $ECHO_N "(cached) $ECHO_C" >&6
17083 fi
17084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17086 else
17087   # Is the header compilable?
17088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17090 cat >conftest.$ac_ext <<_ACEOF
17091 /* confdefs.h.  */
17092 _ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h.  */
17096 $ac_includes_default
17097 #include <$ac_header>
17098 _ACEOF
17099 rm -f conftest.$ac_objext
17100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17101   (eval $ac_compile) 2>conftest.er1
17102   ac_status=$?
17103   grep -v '^ *+' conftest.er1 >conftest.err
17104   rm -f conftest.er1
17105   cat conftest.err >&5
17106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107   (exit $ac_status); } &&
17108          { ac_try='test -z "$ac_c_werror_flag"
17109                          || test ! -s conftest.err'
17110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17111   (eval $ac_try) 2>&5
17112   ac_status=$?
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); }; } &&
17115          { ac_try='test -s conftest.$ac_objext'
17116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117   (eval $ac_try) 2>&5
17118   ac_status=$?
17119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120   (exit $ac_status); }; }; then
17121   ac_header_compiler=yes
17122 else
17123   echo "$as_me: failed program was:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17125
17126 ac_header_compiler=no
17127 fi
17128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17130 echo "${ECHO_T}$ac_header_compiler" >&6
17131
17132 # Is the header present?
17133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17135 cat >conftest.$ac_ext <<_ACEOF
17136 /* confdefs.h.  */
17137 _ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h.  */
17141 #include <$ac_header>
17142 _ACEOF
17143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17145   ac_status=$?
17146   grep -v '^ *+' conftest.er1 >conftest.err
17147   rm -f conftest.er1
17148   cat conftest.err >&5
17149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150   (exit $ac_status); } >/dev/null; then
17151   if test -s conftest.err; then
17152     ac_cpp_err=$ac_c_preproc_warn_flag
17153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17154   else
17155     ac_cpp_err=
17156   fi
17157 else
17158   ac_cpp_err=yes
17159 fi
17160 if test -z "$ac_cpp_err"; then
17161   ac_header_preproc=yes
17162 else
17163   echo "$as_me: failed program was:" >&5
17164 sed 's/^/| /' conftest.$ac_ext >&5
17165
17166   ac_header_preproc=no
17167 fi
17168 rm -f conftest.err conftest.$ac_ext
17169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17170 echo "${ECHO_T}$ac_header_preproc" >&6
17171
17172 # So?  What about this header?
17173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17174   yes:no: )
17175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17179     ac_header_preproc=yes
17180     ;;
17181   no:yes:* )
17182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17194     (
17195       cat <<\_ASBOX
17196 ## --------------------------------------------- ##
17197 ## Report this to <http://www.openldap.org/its/> ##
17198 ## --------------------------------------------- ##
17199 _ASBOX
17200     ) |
17201       sed "s/^/$as_me: WARNING:     /" >&2
17202     ;;
17203 esac
17204 echo "$as_me:$LINENO: checking for $ac_header" >&5
17205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17207   echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17209   eval "$as_ac_Header=\$ac_header_preproc"
17210 fi
17211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17213
17214 fi
17215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17216   cat >>confdefs.h <<_ACEOF
17217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17218 _ACEOF
17219
17220 fi
17221
17222 done
17223
17224 if test $ac_cv_header_sys_uuid_h = yes ; then
17225         save_LIBS="$LIBS"
17226         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17227 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17228 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17229   echo $ECHO_N "(cached) $ECHO_C" >&6
17230 else
17231   ac_func_search_save_LIBS=$LIBS
17232 ac_cv_search_uuid_to_str=no
17233 cat >conftest.$ac_ext <<_ACEOF
17234 /* confdefs.h.  */
17235 _ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h.  */
17239
17240 /* Override any gcc2 internal prototype to avoid an error.  */
17241 #ifdef __cplusplus
17242 extern "C"
17243 #endif
17244 /* We use char because int might match the return type of a gcc2
17245    builtin and then its argument prototype would still apply.  */
17246 char uuid_to_str ();
17247 int
17248 main ()
17249 {
17250 uuid_to_str ();
17251   ;
17252   return 0;
17253 }
17254 _ACEOF
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17257   (eval $ac_link) 2>conftest.er1
17258   ac_status=$?
17259   grep -v '^ *+' conftest.er1 >conftest.err
17260   rm -f conftest.er1
17261   cat conftest.err >&5
17262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263   (exit $ac_status); } &&
17264          { ac_try='test -z "$ac_c_werror_flag"
17265                          || test ! -s conftest.err'
17266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267   (eval $ac_try) 2>&5
17268   ac_status=$?
17269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270   (exit $ac_status); }; } &&
17271          { ac_try='test -s conftest$ac_exeext'
17272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273   (eval $ac_try) 2>&5
17274   ac_status=$?
17275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276   (exit $ac_status); }; }; then
17277   ac_cv_search_uuid_to_str="none required"
17278 else
17279   echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17281
17282 fi
17283 rm -f conftest.err conftest.$ac_objext \
17284       conftest$ac_exeext conftest.$ac_ext
17285 if test "$ac_cv_search_uuid_to_str" = no; then
17286   for ac_lib in uuid; do
17287     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17288     cat >conftest.$ac_ext <<_ACEOF
17289 /* confdefs.h.  */
17290 _ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h.  */
17294
17295 /* Override any gcc2 internal prototype to avoid an error.  */
17296 #ifdef __cplusplus
17297 extern "C"
17298 #endif
17299 /* We use char because int might match the return type of a gcc2
17300    builtin and then its argument prototype would still apply.  */
17301 char uuid_to_str ();
17302 int
17303 main ()
17304 {
17305 uuid_to_str ();
17306   ;
17307   return 0;
17308 }
17309 _ACEOF
17310 rm -f conftest.$ac_objext conftest$ac_exeext
17311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17312   (eval $ac_link) 2>conftest.er1
17313   ac_status=$?
17314   grep -v '^ *+' conftest.er1 >conftest.err
17315   rm -f conftest.er1
17316   cat conftest.err >&5
17317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318   (exit $ac_status); } &&
17319          { ac_try='test -z "$ac_c_werror_flag"
17320                          || test ! -s conftest.err'
17321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322   (eval $ac_try) 2>&5
17323   ac_status=$?
17324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325   (exit $ac_status); }; } &&
17326          { ac_try='test -s conftest$ac_exeext'
17327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328   (eval $ac_try) 2>&5
17329   ac_status=$?
17330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331   (exit $ac_status); }; }; then
17332   ac_cv_search_uuid_to_str="-l$ac_lib"
17333 break
17334 else
17335   echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17337
17338 fi
17339 rm -f conftest.err conftest.$ac_objext \
17340       conftest$ac_exeext conftest.$ac_ext
17341   done
17342 fi
17343 LIBS=$ac_func_search_save_LIBS
17344 fi
17345 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17346 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17347 if test "$ac_cv_search_uuid_to_str" != no; then
17348   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17349   have_uuid=yes
17350 else
17351   :
17352 fi
17353
17354         LIBS="$save_LIBS"
17355
17356         if test have_uuid = yes ; then
17357
17358 cat >>confdefs.h <<\_ACEOF
17359 #define HAVE_UUID_TO_STR 1
17360 _ACEOF
17361
17362
17363                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17364                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17365         fi
17366 fi
17367
17368 if test $have_uuid = no ; then
17369
17370 for ac_header in uuid/uuid.h
17371 do
17372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17374   echo "$as_me:$LINENO: checking for $ac_header" >&5
17375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17377   echo $ECHO_N "(cached) $ECHO_C" >&6
17378 fi
17379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17381 else
17382   # Is the header compilable?
17383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17385 cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h.  */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h.  */
17391 $ac_includes_default
17392 #include <$ac_header>
17393 _ACEOF
17394 rm -f conftest.$ac_objext
17395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17396   (eval $ac_compile) 2>conftest.er1
17397   ac_status=$?
17398   grep -v '^ *+' conftest.er1 >conftest.err
17399   rm -f conftest.er1
17400   cat conftest.err >&5
17401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402   (exit $ac_status); } &&
17403          { ac_try='test -z "$ac_c_werror_flag"
17404                          || test ! -s conftest.err'
17405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406   (eval $ac_try) 2>&5
17407   ac_status=$?
17408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409   (exit $ac_status); }; } &&
17410          { ac_try='test -s conftest.$ac_objext'
17411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412   (eval $ac_try) 2>&5
17413   ac_status=$?
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); }; }; then
17416   ac_header_compiler=yes
17417 else
17418   echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17420
17421 ac_header_compiler=no
17422 fi
17423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17425 echo "${ECHO_T}$ac_header_compiler" >&6
17426
17427 # Is the header present?
17428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17430 cat >conftest.$ac_ext <<_ACEOF
17431 /* confdefs.h.  */
17432 _ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h.  */
17436 #include <$ac_header>
17437 _ACEOF
17438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17440   ac_status=$?
17441   grep -v '^ *+' conftest.er1 >conftest.err
17442   rm -f conftest.er1
17443   cat conftest.err >&5
17444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445   (exit $ac_status); } >/dev/null; then
17446   if test -s conftest.err; then
17447     ac_cpp_err=$ac_c_preproc_warn_flag
17448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17449   else
17450     ac_cpp_err=
17451   fi
17452 else
17453   ac_cpp_err=yes
17454 fi
17455 if test -z "$ac_cpp_err"; then
17456   ac_header_preproc=yes
17457 else
17458   echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.$ac_ext >&5
17460
17461   ac_header_preproc=no
17462 fi
17463 rm -f conftest.err conftest.$ac_ext
17464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17465 echo "${ECHO_T}$ac_header_preproc" >&6
17466
17467 # So?  What about this header?
17468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17469   yes:no: )
17470     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17474     ac_header_preproc=yes
17475     ;;
17476   no:yes:* )
17477     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17479     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17480 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17481     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17483     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17484 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17487     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17489     (
17490       cat <<\_ASBOX
17491 ## --------------------------------------------- ##
17492 ## Report this to <http://www.openldap.org/its/> ##
17493 ## --------------------------------------------- ##
17494 _ASBOX
17495     ) |
17496       sed "s/^/$as_me: WARNING:     /" >&2
17497     ;;
17498 esac
17499 echo "$as_me:$LINENO: checking for $ac_header" >&5
17500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17502   echo $ECHO_N "(cached) $ECHO_C" >&6
17503 else
17504   eval "$as_ac_Header=\$ac_header_preproc"
17505 fi
17506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17508
17509 fi
17510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17511   cat >>confdefs.h <<_ACEOF
17512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17513 _ACEOF
17514
17515 fi
17516
17517 done
17518
17519         if test $ac_cv_header_uuid_uuid_h = yes ; then
17520                 save_LIBS="$LIBS"
17521                 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17522 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17523 if test "${ac_cv_search_uuid_generate+set}" = set; then
17524   echo $ECHO_N "(cached) $ECHO_C" >&6
17525 else
17526   ac_func_search_save_LIBS=$LIBS
17527 ac_cv_search_uuid_generate=no
17528 cat >conftest.$ac_ext <<_ACEOF
17529 /* confdefs.h.  */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h.  */
17534
17535 /* Override any gcc2 internal prototype to avoid an error.  */
17536 #ifdef __cplusplus
17537 extern "C"
17538 #endif
17539 /* We use char because int might match the return type of a gcc2
17540    builtin and then its argument prototype would still apply.  */
17541 char uuid_generate ();
17542 int
17543 main ()
17544 {
17545 uuid_generate ();
17546   ;
17547   return 0;
17548 }
17549 _ACEOF
17550 rm -f conftest.$ac_objext conftest$ac_exeext
17551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17552   (eval $ac_link) 2>conftest.er1
17553   ac_status=$?
17554   grep -v '^ *+' conftest.er1 >conftest.err
17555   rm -f conftest.er1
17556   cat conftest.err >&5
17557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558   (exit $ac_status); } &&
17559          { ac_try='test -z "$ac_c_werror_flag"
17560                          || test ! -s conftest.err'
17561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562   (eval $ac_try) 2>&5
17563   ac_status=$?
17564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565   (exit $ac_status); }; } &&
17566          { ac_try='test -s conftest$ac_exeext'
17567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568   (eval $ac_try) 2>&5
17569   ac_status=$?
17570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571   (exit $ac_status); }; }; then
17572   ac_cv_search_uuid_generate="none required"
17573 else
17574   echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17576
17577 fi
17578 rm -f conftest.err conftest.$ac_objext \
17579       conftest$ac_exeext conftest.$ac_ext
17580 if test "$ac_cv_search_uuid_generate" = no; then
17581   for ac_lib in uuid; do
17582     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17583     cat >conftest.$ac_ext <<_ACEOF
17584 /* confdefs.h.  */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h.  */
17589
17590 /* Override any gcc2 internal prototype to avoid an error.  */
17591 #ifdef __cplusplus
17592 extern "C"
17593 #endif
17594 /* We use char because int might match the return type of a gcc2
17595    builtin and then its argument prototype would still apply.  */
17596 char uuid_generate ();
17597 int
17598 main ()
17599 {
17600 uuid_generate ();
17601   ;
17602   return 0;
17603 }
17604 _ACEOF
17605 rm -f conftest.$ac_objext conftest$ac_exeext
17606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17607   (eval $ac_link) 2>conftest.er1
17608   ac_status=$?
17609   grep -v '^ *+' conftest.er1 >conftest.err
17610   rm -f conftest.er1
17611   cat conftest.err >&5
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); } &&
17614          { ac_try='test -z "$ac_c_werror_flag"
17615                          || test ! -s conftest.err'
17616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617   (eval $ac_try) 2>&5
17618   ac_status=$?
17619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620   (exit $ac_status); }; } &&
17621          { ac_try='test -s conftest$ac_exeext'
17622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623   (eval $ac_try) 2>&5
17624   ac_status=$?
17625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626   (exit $ac_status); }; }; then
17627   ac_cv_search_uuid_generate="-l$ac_lib"
17628 break
17629 else
17630   echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17632
17633 fi
17634 rm -f conftest.err conftest.$ac_objext \
17635       conftest$ac_exeext conftest.$ac_ext
17636   done
17637 fi
17638 LIBS=$ac_func_search_save_LIBS
17639 fi
17640 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17641 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17642 if test "$ac_cv_search_uuid_generate" != no; then
17643   test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17644   have_uuid=yes
17645 else
17646   :
17647 fi
17648
17649                 LIBS="$save_LIBS"
17650
17651                 if test have_uuid = yes ; then
17652
17653 cat >>confdefs.h <<\_ACEOF
17654 #define HAVE_UUID_GENERATE 1
17655 _ACEOF
17656
17657
17658                         test "$ac_cv_search_uuid_generate" = "none required" || \
17659                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17660                 fi
17661         fi
17662 fi
17663
17664 if test $have_uuid = no ; then
17665         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17666 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17667         save_LIBS="$LIBS"
17668         LIBS="$LIBS -lrpcrt4"
17669         cat >conftest.$ac_ext <<_ACEOF
17670 /* confdefs.h.  */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h.  */
17675
17676                 int __stdcall UuidCreate(void *);
17677                 int __stdcall UuidToStringA(void *,void **);
17678
17679 int
17680 main ()
17681 {
17682
17683                 UuidCreate(0);
17684                 UuidToStringA(0,0);
17685
17686   ;
17687   return 0;
17688 }
17689 _ACEOF
17690 rm -f conftest.$ac_objext conftest$ac_exeext
17691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17692   (eval $ac_link) 2>conftest.er1
17693   ac_status=$?
17694   grep -v '^ *+' conftest.er1 >conftest.err
17695   rm -f conftest.er1
17696   cat conftest.err >&5
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); } &&
17699          { ac_try='test -z "$ac_c_werror_flag"
17700                          || test ! -s conftest.err'
17701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702   (eval $ac_try) 2>&5
17703   ac_status=$?
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); }; } &&
17706          { ac_try='test -s conftest$ac_exeext'
17707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708   (eval $ac_try) 2>&5
17709   ac_status=$?
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); }; }; then
17712   need_rpcrt=yes
17713 else
17714   echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17716
17717 need_rpcrt=no
17718 fi
17719 rm -f conftest.err conftest.$ac_objext \
17720       conftest$ac_exeext conftest.$ac_ext
17721         if test $need_rpcrt = yes; then
17722                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17723         fi
17724         LIBS="$save_LIBS"
17725         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17726 echo "${ECHO_T}$need_rpcrt" >&6
17727 fi
17728
17729 ol_cv_lib_resolver=no
17730 if test $ol_cv_lib_resolver = no ; then
17731         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17732 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17733 if test "${ol_cv_resolver_none+set}" = set; then
17734   echo $ECHO_N "(cached) $ECHO_C" >&6
17735 else
17736
17737         ol_RESOLVER_LIB=
17738         ol_LIBS=$LIBS
17739         LIBS="$ol_RESOLVER_LIB $LIBS"
17740
17741         cat >conftest.$ac_ext <<_ACEOF
17742 /* confdefs.h.  */
17743 _ACEOF
17744 cat confdefs.h >>conftest.$ac_ext
17745 cat >>conftest.$ac_ext <<_ACEOF
17746 /* end confdefs.h.  */
17747
17748 #ifdef HAVE_SYS_TYPES_H
17749 #       include <sys/types.h>
17750 #endif
17751 #include <netinet/in.h>
17752 #ifdef HAVE_ARPA_NAMESER_H
17753 #       include <arpa/nameser.h>
17754 #endif
17755 #ifdef HAVE_RESOLV_H
17756 #       include <resolv.h>
17757 #endif
17758
17759 int
17760 main ()
17761 {
17762 {
17763         int len, status;
17764         char *request = NULL;
17765         unsigned char reply[64*1024];
17766         unsigned char host[64*1024];
17767         unsigned char *p;
17768
17769 #ifdef NS_HFIXEDSZ
17770         /* Bind 8/9 interface */
17771         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17772 #else
17773         /* Bind 4 interface */
17774 # ifndef T_SRV
17775 #  define T_SRV 33
17776 # endif
17777         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17778 #endif
17779         p = reply;
17780 #ifdef NS_HFIXEDSZ
17781         /* Bind 8/9 interface */
17782         p += NS_HFIXEDSZ;
17783 #elif defined(HFIXEDSZ)
17784         /* Bind 4 interface w/ HFIXEDSZ */
17785         p += HFIXEDSZ;
17786 #else
17787         /* Bind 4 interface w/o HFIXEDSZ */
17788         p += sizeof(HEADER);
17789 #endif
17790         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17791 }
17792   ;
17793   return 0;
17794 }
17795 _ACEOF
17796 rm -f conftest.$ac_objext conftest$ac_exeext
17797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17798   (eval $ac_link) 2>conftest.er1
17799   ac_status=$?
17800   grep -v '^ *+' conftest.er1 >conftest.err
17801   rm -f conftest.er1
17802   cat conftest.err >&5
17803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804   (exit $ac_status); } &&
17805          { ac_try='test -z "$ac_c_werror_flag"
17806                          || test ! -s conftest.err'
17807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808   (eval $ac_try) 2>&5
17809   ac_status=$?
17810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811   (exit $ac_status); }; } &&
17812          { ac_try='test -s conftest$ac_exeext'
17813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814   (eval $ac_try) 2>&5
17815   ac_status=$?
17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817   (exit $ac_status); }; }; then
17818   ol_cv_resolver_none=yes
17819 else
17820   echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17822
17823 ol_cv_resolver_none=no
17824 fi
17825 rm -f conftest.err conftest.$ac_objext \
17826       conftest$ac_exeext conftest.$ac_ext
17827
17828         LIBS="$ol_LIBS"
17829
17830 fi
17831 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17832 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17833
17834         if test $ol_cv_resolver_none = yes ; then
17835                 ol_cv_lib_resolver=yes
17836         fi
17837 fi
17838
17839 if test $ol_cv_lib_resolver = no ; then
17840         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17841 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17842 if test "${ol_cv_resolver_resolv+set}" = set; then
17843   echo $ECHO_N "(cached) $ECHO_C" >&6
17844 else
17845
17846         ol_RESOLVER_LIB=-lresolv
17847         ol_LIBS=$LIBS
17848         LIBS="$ol_RESOLVER_LIB $LIBS"
17849
17850         cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h.  */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h.  */
17856
17857 #ifdef HAVE_SYS_TYPES_H
17858 #       include <sys/types.h>
17859 #endif
17860 #include <netinet/in.h>
17861 #ifdef HAVE_ARPA_NAMESER_H
17862 #       include <arpa/nameser.h>
17863 #endif
17864 #ifdef HAVE_RESOLV_H
17865 #       include <resolv.h>
17866 #endif
17867
17868 int
17869 main ()
17870 {
17871 {
17872         int len, status;
17873         char *request = NULL;
17874         unsigned char reply[64*1024];
17875         unsigned char host[64*1024];
17876         unsigned char *p;
17877
17878 #ifdef NS_HFIXEDSZ
17879         /* Bind 8/9 interface */
17880         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17881 #else
17882         /* Bind 4 interface */
17883 # ifndef T_SRV
17884 #  define T_SRV 33
17885 # endif
17886         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17887 #endif
17888         p = reply;
17889 #ifdef NS_HFIXEDSZ
17890         /* Bind 8/9 interface */
17891         p += NS_HFIXEDSZ;
17892 #elif defined(HFIXEDSZ)
17893         /* Bind 4 interface w/ HFIXEDSZ */
17894         p += HFIXEDSZ;
17895 #else
17896         /* Bind 4 interface w/o HFIXEDSZ */
17897         p += sizeof(HEADER);
17898 #endif
17899         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17900 }
17901   ;
17902   return 0;
17903 }
17904 _ACEOF
17905 rm -f conftest.$ac_objext conftest$ac_exeext
17906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17907   (eval $ac_link) 2>conftest.er1
17908   ac_status=$?
17909   grep -v '^ *+' conftest.er1 >conftest.err
17910   rm -f conftest.er1
17911   cat conftest.err >&5
17912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913   (exit $ac_status); } &&
17914          { ac_try='test -z "$ac_c_werror_flag"
17915                          || test ! -s conftest.err'
17916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17917   (eval $ac_try) 2>&5
17918   ac_status=$?
17919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920   (exit $ac_status); }; } &&
17921          { ac_try='test -s conftest$ac_exeext'
17922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923   (eval $ac_try) 2>&5
17924   ac_status=$?
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); }; }; then
17927   ol_cv_resolver_resolv=yes
17928 else
17929   echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17931
17932 ol_cv_resolver_resolv=no
17933 fi
17934 rm -f conftest.err conftest.$ac_objext \
17935       conftest$ac_exeext conftest.$ac_ext
17936
17937         LIBS="$ol_LIBS"
17938
17939 fi
17940 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17941 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17942
17943         if test $ol_cv_resolver_resolv = yes ; then
17944                 ol_cv_lib_resolver=-lresolv
17945         fi
17946 fi
17947
17948 if test $ol_cv_lib_resolver = no ; then
17949         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17950 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17951 if test "${ol_cv_resolver_bind+set}" = set; then
17952   echo $ECHO_N "(cached) $ECHO_C" >&6
17953 else
17954
17955         ol_RESOLVER_LIB=-lbind
17956         ol_LIBS=$LIBS
17957         LIBS="$ol_RESOLVER_LIB $LIBS"
17958
17959         cat >conftest.$ac_ext <<_ACEOF
17960 /* confdefs.h.  */
17961 _ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h.  */
17965
17966 #ifdef HAVE_SYS_TYPES_H
17967 #       include <sys/types.h>
17968 #endif
17969 #include <netinet/in.h>
17970 #ifdef HAVE_ARPA_NAMESER_H
17971 #       include <arpa/nameser.h>
17972 #endif
17973 #ifdef HAVE_RESOLV_H
17974 #       include <resolv.h>
17975 #endif
17976
17977 int
17978 main ()
17979 {
17980 {
17981         int len, status;
17982         char *request = NULL;
17983         unsigned char reply[64*1024];
17984         unsigned char host[64*1024];
17985         unsigned char *p;
17986
17987 #ifdef NS_HFIXEDSZ
17988         /* Bind 8/9 interface */
17989         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17990 #else
17991         /* Bind 4 interface */
17992 # ifndef T_SRV
17993 #  define T_SRV 33
17994 # endif
17995         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17996 #endif
17997         p = reply;
17998 #ifdef NS_HFIXEDSZ
17999         /* Bind 8/9 interface */
18000         p += NS_HFIXEDSZ;
18001 #elif defined(HFIXEDSZ)
18002         /* Bind 4 interface w/ HFIXEDSZ */
18003         p += HFIXEDSZ;
18004 #else
18005         /* Bind 4 interface w/o HFIXEDSZ */
18006         p += sizeof(HEADER);
18007 #endif
18008         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18009 }
18010   ;
18011   return 0;
18012 }
18013 _ACEOF
18014 rm -f conftest.$ac_objext conftest$ac_exeext
18015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18016   (eval $ac_link) 2>conftest.er1
18017   ac_status=$?
18018   grep -v '^ *+' conftest.er1 >conftest.err
18019   rm -f conftest.er1
18020   cat conftest.err >&5
18021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022   (exit $ac_status); } &&
18023          { ac_try='test -z "$ac_c_werror_flag"
18024                          || test ! -s conftest.err'
18025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026   (eval $ac_try) 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); }; } &&
18030          { ac_try='test -s conftest$ac_exeext'
18031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032   (eval $ac_try) 2>&5
18033   ac_status=$?
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); }; }; then
18036   ol_cv_resolver_bind=yes
18037 else
18038   echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18040
18041 ol_cv_resolver_bind=no
18042 fi
18043 rm -f conftest.err conftest.$ac_objext \
18044       conftest$ac_exeext conftest.$ac_ext
18045
18046         LIBS="$ol_LIBS"
18047
18048 fi
18049 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18050 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
18051
18052         if test $ol_cv_resolver_bind = yes ; then
18053                 ol_cv_lib_resolver=-lbind
18054         fi
18055 fi
18056
18057
18058
18059 ol_link_dnssrv=no
18060 if test "$ol_cv_lib_resolver" != no ; then
18061
18062 cat >>confdefs.h <<\_ACEOF
18063 #define HAVE_RES_QUERY 1
18064 _ACEOF
18065
18066
18067         if test "$ol_enable_dnssrv" != no ; then
18068                 ol_link_dnssrv=yes
18069         fi
18070
18071         if test "$ol_cv_lib_resolver" != yes ; then
18072                 LIBS="$ol_cv_lib_resolver $LIBS"
18073         fi
18074 fi
18075
18076 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18077         if test "$ol_link_dnssrv" = no ; then
18078                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18079 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18080    { (exit 1); exit 1; }; }
18081         fi
18082 else
18083         ol_enable_dnssrv=no
18084 fi
18085
18086
18087 for ac_func in hstrerror
18088 do
18089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18090 echo "$as_me:$LINENO: checking for $ac_func" >&5
18091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18092 if eval "test \"\${$as_ac_var+set}\" = set"; then
18093   echo $ECHO_N "(cached) $ECHO_C" >&6
18094 else
18095   cat >conftest.$ac_ext <<_ACEOF
18096 /* confdefs.h.  */
18097 _ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h.  */
18101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18103 #define $ac_func innocuous_$ac_func
18104
18105 /* System header to define __stub macros and hopefully few prototypes,
18106     which can conflict with char $ac_func (); below.
18107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18108     <limits.h> exists even on freestanding compilers.  */
18109
18110 #ifdef __STDC__
18111 # include <limits.h>
18112 #else
18113 # include <assert.h>
18114 #endif
18115
18116 #undef $ac_func
18117
18118 /* Override any gcc2 internal prototype to avoid an error.  */
18119 #ifdef __cplusplus
18120 extern "C"
18121 {
18122 #endif
18123 /* We use char because int might match the return type of a gcc2
18124    builtin and then its argument prototype would still apply.  */
18125 char $ac_func ();
18126 /* The GNU C library defines this for functions which it implements
18127     to always fail with ENOSYS.  Some functions are actually named
18128     something starting with __ and the normal name is an alias.  */
18129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18130 choke me
18131 #else
18132 char (*f) () = $ac_func;
18133 #endif
18134 #ifdef __cplusplus
18135 }
18136 #endif
18137
18138 int
18139 main ()
18140 {
18141 return f != $ac_func;
18142   ;
18143   return 0;
18144 }
18145 _ACEOF
18146 rm -f conftest.$ac_objext conftest$ac_exeext
18147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18148   (eval $ac_link) 2>conftest.er1
18149   ac_status=$?
18150   grep -v '^ *+' conftest.er1 >conftest.err
18151   rm -f conftest.er1
18152   cat conftest.err >&5
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); } &&
18155          { ac_try='test -z "$ac_c_werror_flag"
18156                          || test ! -s conftest.err'
18157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158   (eval $ac_try) 2>&5
18159   ac_status=$?
18160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161   (exit $ac_status); }; } &&
18162          { ac_try='test -s conftest$ac_exeext'
18163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164   (eval $ac_try) 2>&5
18165   ac_status=$?
18166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167   (exit $ac_status); }; }; then
18168   eval "$as_ac_var=yes"
18169 else
18170   echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18172
18173 eval "$as_ac_var=no"
18174 fi
18175 rm -f conftest.err conftest.$ac_objext \
18176       conftest$ac_exeext conftest.$ac_ext
18177 fi
18178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18180 if test `eval echo '${'$as_ac_var'}'` = yes; then
18181   cat >>confdefs.h <<_ACEOF
18182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18183 _ACEOF
18184
18185 fi
18186 done
18187
18188
18189
18190
18191
18192
18193 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18194 do
18195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18196 echo "$as_me:$LINENO: checking for $ac_func" >&5
18197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18198 if eval "test \"\${$as_ac_var+set}\" = set"; then
18199   echo $ECHO_N "(cached) $ECHO_C" >&6
18200 else
18201   cat >conftest.$ac_ext <<_ACEOF
18202 /* confdefs.h.  */
18203 _ACEOF
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h.  */
18207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18209 #define $ac_func innocuous_$ac_func
18210
18211 /* System header to define __stub macros and hopefully few prototypes,
18212     which can conflict with char $ac_func (); below.
18213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18214     <limits.h> exists even on freestanding compilers.  */
18215
18216 #ifdef __STDC__
18217 # include <limits.h>
18218 #else
18219 # include <assert.h>
18220 #endif
18221
18222 #undef $ac_func
18223
18224 /* Override any gcc2 internal prototype to avoid an error.  */
18225 #ifdef __cplusplus
18226 extern "C"
18227 {
18228 #endif
18229 /* We use char because int might match the return type of a gcc2
18230    builtin and then its argument prototype would still apply.  */
18231 char $ac_func ();
18232 /* The GNU C library defines this for functions which it implements
18233     to always fail with ENOSYS.  Some functions are actually named
18234     something starting with __ and the normal name is an alias.  */
18235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18236 choke me
18237 #else
18238 char (*f) () = $ac_func;
18239 #endif
18240 #ifdef __cplusplus
18241 }
18242 #endif
18243
18244 int
18245 main ()
18246 {
18247 return f != $ac_func;
18248   ;
18249   return 0;
18250 }
18251 _ACEOF
18252 rm -f conftest.$ac_objext conftest$ac_exeext
18253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18254   (eval $ac_link) 2>conftest.er1
18255   ac_status=$?
18256   grep -v '^ *+' conftest.er1 >conftest.err
18257   rm -f conftest.er1
18258   cat conftest.err >&5
18259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260   (exit $ac_status); } &&
18261          { ac_try='test -z "$ac_c_werror_flag"
18262                          || test ! -s conftest.err'
18263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264   (eval $ac_try) 2>&5
18265   ac_status=$?
18266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267   (exit $ac_status); }; } &&
18268          { ac_try='test -s conftest$ac_exeext'
18269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270   (eval $ac_try) 2>&5
18271   ac_status=$?
18272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273   (exit $ac_status); }; }; then
18274   eval "$as_ac_var=yes"
18275 else
18276   echo "$as_me: failed program was:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18278
18279 eval "$as_ac_var=no"
18280 fi
18281 rm -f conftest.err conftest.$ac_objext \
18282       conftest$ac_exeext conftest.$ac_ext
18283 fi
18284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18286 if test `eval echo '${'$as_ac_var'}'` = yes; then
18287   cat >>confdefs.h <<_ACEOF
18288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18289 _ACEOF
18290
18291 fi
18292 done
18293
18294
18295 ol_link_ipv6=no
18296 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18297         if test $ol_enable_ipv6 = yes ; then
18298                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18299 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18300    { (exit 1); exit 1; }; }
18301         fi
18302 elif test $ol_enable_ipv6 != no ; then
18303         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18304 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18305 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18306   echo $ECHO_N "(cached) $ECHO_C" >&6
18307 else
18308
18309                 cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h.  */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h.  */
18315
18316 #                       include <netinet/in.h>
18317 #                       ifdef INET6_ADDRSTRLEN
18318                                 __has_inet6_addrstrlen__;
18319 #                       endif
18320
18321 _ACEOF
18322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18323   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18324   ol_cv_inet6_addrstrlen=yes
18325 else
18326   ol_cv_inet6_addrstrlen=no
18327 fi
18328 rm -f conftest*
18329
18330 fi
18331 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18332 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18333
18334
18335         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18336 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18337 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18338   echo $ECHO_N "(cached) $ECHO_C" >&6
18339 else
18340
18341                 cat >conftest.$ac_ext <<_ACEOF
18342 /* confdefs.h.  */
18343 _ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h.  */
18347
18348 #include <sys/types.h>
18349 #include <sys/socket.h>
18350
18351 int
18352 main ()
18353 {
18354
18355                         struct sockaddr_storage ss;
18356
18357   ;
18358   return 0;
18359 }
18360 _ACEOF
18361 rm -f conftest.$ac_objext
18362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18363   (eval $ac_compile) 2>conftest.er1
18364   ac_status=$?
18365   grep -v '^ *+' conftest.er1 >conftest.err
18366   rm -f conftest.er1
18367   cat conftest.err >&5
18368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369   (exit $ac_status); } &&
18370          { ac_try='test -z "$ac_c_werror_flag"
18371                          || test ! -s conftest.err'
18372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373   (eval $ac_try) 2>&5
18374   ac_status=$?
18375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376   (exit $ac_status); }; } &&
18377          { ac_try='test -s conftest.$ac_objext'
18378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379   (eval $ac_try) 2>&5
18380   ac_status=$?
18381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382   (exit $ac_status); }; }; then
18383   ol_cv_struct_sockaddr_storage=yes
18384 else
18385   echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18387
18388 ol_cv_struct_sockaddr_storage=no
18389 fi
18390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18391 fi
18392 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18393 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18394
18395         if test $ol_cv_inet6_addrstrlen = yes &&
18396            test $ol_cv_struct_sockaddr_storage = yes ; then
18397                 ol_link_ipv6=yes
18398         elif test $ol_enable_ipv6 = yes &&
18399              test $ol_cv_inet6_addrstrlen = no ; then
18400                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18401 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18402    { (exit 1); exit 1; }; }
18403         elif test $ol_enable_ipv6 = yes &&
18404              test $ol_cv_struct_sockaddr_storage = no ; then
18405                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18406 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18407    { (exit 1); exit 1; }; }
18408         fi
18409 fi
18410
18411 if test $ol_enable_local != no ; then
18412
18413 for ac_header in sys/un.h
18414 do
18415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18417   echo "$as_me:$LINENO: checking for $ac_header" >&5
18418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18420   echo $ECHO_N "(cached) $ECHO_C" >&6
18421 fi
18422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18424 else
18425   # Is the header compilable?
18426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18428 cat >conftest.$ac_ext <<_ACEOF
18429 /* confdefs.h.  */
18430 _ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h.  */
18434 $ac_includes_default
18435 #include <$ac_header>
18436 _ACEOF
18437 rm -f conftest.$ac_objext
18438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18439   (eval $ac_compile) 2>conftest.er1
18440   ac_status=$?
18441   grep -v '^ *+' conftest.er1 >conftest.err
18442   rm -f conftest.er1
18443   cat conftest.err >&5
18444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445   (exit $ac_status); } &&
18446          { ac_try='test -z "$ac_c_werror_flag"
18447                          || test ! -s conftest.err'
18448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449   (eval $ac_try) 2>&5
18450   ac_status=$?
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); }; } &&
18453          { ac_try='test -s conftest.$ac_objext'
18454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455   (eval $ac_try) 2>&5
18456   ac_status=$?
18457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458   (exit $ac_status); }; }; then
18459   ac_header_compiler=yes
18460 else
18461   echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18463
18464 ac_header_compiler=no
18465 fi
18466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18468 echo "${ECHO_T}$ac_header_compiler" >&6
18469
18470 # Is the header present?
18471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18473 cat >conftest.$ac_ext <<_ACEOF
18474 /* confdefs.h.  */
18475 _ACEOF
18476 cat confdefs.h >>conftest.$ac_ext
18477 cat >>conftest.$ac_ext <<_ACEOF
18478 /* end confdefs.h.  */
18479 #include <$ac_header>
18480 _ACEOF
18481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18482   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18483   ac_status=$?
18484   grep -v '^ *+' conftest.er1 >conftest.err
18485   rm -f conftest.er1
18486   cat conftest.err >&5
18487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488   (exit $ac_status); } >/dev/null; then
18489   if test -s conftest.err; then
18490     ac_cpp_err=$ac_c_preproc_warn_flag
18491     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18492   else
18493     ac_cpp_err=
18494   fi
18495 else
18496   ac_cpp_err=yes
18497 fi
18498 if test -z "$ac_cpp_err"; then
18499   ac_header_preproc=yes
18500 else
18501   echo "$as_me: failed program was:" >&5
18502 sed 's/^/| /' conftest.$ac_ext >&5
18503
18504   ac_header_preproc=no
18505 fi
18506 rm -f conftest.err conftest.$ac_ext
18507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18508 echo "${ECHO_T}$ac_header_preproc" >&6
18509
18510 # So?  What about this header?
18511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18512   yes:no: )
18513     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18517     ac_header_preproc=yes
18518     ;;
18519   no:yes:* )
18520     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18522     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18523 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18524     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18526     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18527 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18528     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18530     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18532     (
18533       cat <<\_ASBOX
18534 ## --------------------------------------------- ##
18535 ## Report this to <http://www.openldap.org/its/> ##
18536 ## --------------------------------------------- ##
18537 _ASBOX
18538     ) |
18539       sed "s/^/$as_me: WARNING:     /" >&2
18540     ;;
18541 esac
18542 echo "$as_me:$LINENO: checking for $ac_header" >&5
18543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18545   echo $ECHO_N "(cached) $ECHO_C" >&6
18546 else
18547   eval "$as_ac_Header=\$ac_header_preproc"
18548 fi
18549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18551
18552 fi
18553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18554   cat >>confdefs.h <<_ACEOF
18555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18556 _ACEOF
18557
18558 fi
18559
18560 done
18561
18562
18563         if test $ol_enable_local = auto ; then
18564                 ol_enable_local=$ac_cv_header_sys_un_h
18565         elif test $ac_cv_header_sys_un_h = no ; then
18566                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18567 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18568    { (exit 1); exit 1; }; }
18569         fi
18570 fi
18571
18572 ol_link_gssapi=no
18573
18574 case $ol_with_gssapi in yes | auto)
18575
18576         ol_header_gssapi=no
18577
18578 for ac_header in gssapi/gssapi.h
18579 do
18580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18582   echo "$as_me:$LINENO: checking for $ac_header" >&5
18583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18585   echo $ECHO_N "(cached) $ECHO_C" >&6
18586 fi
18587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18589 else
18590   # Is the header compilable?
18591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18593 cat >conftest.$ac_ext <<_ACEOF
18594 /* confdefs.h.  */
18595 _ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h.  */
18599 $ac_includes_default
18600 #include <$ac_header>
18601 _ACEOF
18602 rm -f conftest.$ac_objext
18603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18604   (eval $ac_compile) 2>conftest.er1
18605   ac_status=$?
18606   grep -v '^ *+' conftest.er1 >conftest.err
18607   rm -f conftest.er1
18608   cat conftest.err >&5
18609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610   (exit $ac_status); } &&
18611          { ac_try='test -z "$ac_c_werror_flag"
18612                          || test ! -s conftest.err'
18613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614   (eval $ac_try) 2>&5
18615   ac_status=$?
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); }; } &&
18618          { ac_try='test -s conftest.$ac_objext'
18619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620   (eval $ac_try) 2>&5
18621   ac_status=$?
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); }; }; then
18624   ac_header_compiler=yes
18625 else
18626   echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18628
18629 ac_header_compiler=no
18630 fi
18631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18633 echo "${ECHO_T}$ac_header_compiler" >&6
18634
18635 # Is the header present?
18636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18638 cat >conftest.$ac_ext <<_ACEOF
18639 /* confdefs.h.  */
18640 _ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h.  */
18644 #include <$ac_header>
18645 _ACEOF
18646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18648   ac_status=$?
18649   grep -v '^ *+' conftest.er1 >conftest.err
18650   rm -f conftest.er1
18651   cat conftest.err >&5
18652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653   (exit $ac_status); } >/dev/null; then
18654   if test -s conftest.err; then
18655     ac_cpp_err=$ac_c_preproc_warn_flag
18656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18657   else
18658     ac_cpp_err=
18659   fi
18660 else
18661   ac_cpp_err=yes
18662 fi
18663 if test -z "$ac_cpp_err"; then
18664   ac_header_preproc=yes
18665 else
18666   echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18668
18669   ac_header_preproc=no
18670 fi
18671 rm -f conftest.err conftest.$ac_ext
18672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18673 echo "${ECHO_T}$ac_header_preproc" >&6
18674
18675 # So?  What about this header?
18676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18677   yes:no: )
18678     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18682     ac_header_preproc=yes
18683     ;;
18684   no:yes:* )
18685     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18687     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18688 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18689     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18691     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18692 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18695     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18697     (
18698       cat <<\_ASBOX
18699 ## --------------------------------------------- ##
18700 ## Report this to <http://www.openldap.org/its/> ##
18701 ## --------------------------------------------- ##
18702 _ASBOX
18703     ) |
18704       sed "s/^/$as_me: WARNING:     /" >&2
18705     ;;
18706 esac
18707 echo "$as_me:$LINENO: checking for $ac_header" >&5
18708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18710   echo $ECHO_N "(cached) $ECHO_C" >&6
18711 else
18712   eval "$as_ac_Header=\$ac_header_preproc"
18713 fi
18714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18716
18717 fi
18718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18719   cat >>confdefs.h <<_ACEOF
18720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18721 _ACEOF
18722
18723 fi
18724
18725 done
18726
18727         if test $ac_cv_header_gssapi_gssapi_h = yes ; then
18728                 ol_header_gssapi=yes
18729         else
18730
18731 for ac_header in gssapi.h
18732 do
18733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18735   echo "$as_me:$LINENO: checking for $ac_header" >&5
18736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18738   echo $ECHO_N "(cached) $ECHO_C" >&6
18739 fi
18740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18742 else
18743   # Is the header compilable?
18744 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18746 cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h.  */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h.  */
18752 $ac_includes_default
18753 #include <$ac_header>
18754 _ACEOF
18755 rm -f conftest.$ac_objext
18756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18757   (eval $ac_compile) 2>conftest.er1
18758   ac_status=$?
18759   grep -v '^ *+' conftest.er1 >conftest.err
18760   rm -f conftest.er1
18761   cat conftest.err >&5
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); } &&
18764          { ac_try='test -z "$ac_c_werror_flag"
18765                          || test ! -s conftest.err'
18766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767   (eval $ac_try) 2>&5
18768   ac_status=$?
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); }; } &&
18771          { ac_try='test -s conftest.$ac_objext'
18772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773   (eval $ac_try) 2>&5
18774   ac_status=$?
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); }; }; then
18777   ac_header_compiler=yes
18778 else
18779   echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18781
18782 ac_header_compiler=no
18783 fi
18784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18786 echo "${ECHO_T}$ac_header_compiler" >&6
18787
18788 # Is the header present?
18789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18791 cat >conftest.$ac_ext <<_ACEOF
18792 /* confdefs.h.  */
18793 _ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h.  */
18797 #include <$ac_header>
18798 _ACEOF
18799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18801   ac_status=$?
18802   grep -v '^ *+' conftest.er1 >conftest.err
18803   rm -f conftest.er1
18804   cat conftest.err >&5
18805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806   (exit $ac_status); } >/dev/null; then
18807   if test -s conftest.err; then
18808     ac_cpp_err=$ac_c_preproc_warn_flag
18809     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18810   else
18811     ac_cpp_err=
18812   fi
18813 else
18814   ac_cpp_err=yes
18815 fi
18816 if test -z "$ac_cpp_err"; then
18817   ac_header_preproc=yes
18818 else
18819   echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18821
18822   ac_header_preproc=no
18823 fi
18824 rm -f conftest.err conftest.$ac_ext
18825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18826 echo "${ECHO_T}$ac_header_preproc" >&6
18827
18828 # So?  What about this header?
18829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18830   yes:no: )
18831     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18835     ac_header_preproc=yes
18836     ;;
18837   no:yes:* )
18838     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18840     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18841 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18842     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18844     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18845 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18848     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18850     (
18851       cat <<\_ASBOX
18852 ## --------------------------------------------- ##
18853 ## Report this to <http://www.openldap.org/its/> ##
18854 ## --------------------------------------------- ##
18855 _ASBOX
18856     ) |
18857       sed "s/^/$as_me: WARNING:     /" >&2
18858     ;;
18859 esac
18860 echo "$as_me:$LINENO: checking for $ac_header" >&5
18861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18863   echo $ECHO_N "(cached) $ECHO_C" >&6
18864 else
18865   eval "$as_ac_Header=\$ac_header_preproc"
18866 fi
18867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18869
18870 fi
18871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18872   cat >>confdefs.h <<_ACEOF
18873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18874 _ACEOF
18875
18876 fi
18877
18878 done
18879
18880                 if test $ac_cv_header_gssapi_h = yes ; then
18881                         ol_header_gssapi=yes
18882                 fi
18883
18884                                                                 saveLIBS="$LIBS"
18885                 LIBS="$LIBS $GSSAPI_LIBS"
18886
18887 for ac_func in gss_oid_to_str
18888 do
18889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18890 echo "$as_me:$LINENO: checking for $ac_func" >&5
18891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18892 if eval "test \"\${$as_ac_var+set}\" = set"; then
18893   echo $ECHO_N "(cached) $ECHO_C" >&6
18894 else
18895   cat >conftest.$ac_ext <<_ACEOF
18896 /* confdefs.h.  */
18897 _ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h.  */
18901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18903 #define $ac_func innocuous_$ac_func
18904
18905 /* System header to define __stub macros and hopefully few prototypes,
18906     which can conflict with char $ac_func (); below.
18907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18908     <limits.h> exists even on freestanding compilers.  */
18909
18910 #ifdef __STDC__
18911 # include <limits.h>
18912 #else
18913 # include <assert.h>
18914 #endif
18915
18916 #undef $ac_func
18917
18918 /* Override any gcc2 internal prototype to avoid an error.  */
18919 #ifdef __cplusplus
18920 extern "C"
18921 {
18922 #endif
18923 /* We use char because int might match the return type of a gcc2
18924    builtin and then its argument prototype would still apply.  */
18925 char $ac_func ();
18926 /* The GNU C library defines this for functions which it implements
18927     to always fail with ENOSYS.  Some functions are actually named
18928     something starting with __ and the normal name is an alias.  */
18929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18930 choke me
18931 #else
18932 char (*f) () = $ac_func;
18933 #endif
18934 #ifdef __cplusplus
18935 }
18936 #endif
18937
18938 int
18939 main ()
18940 {
18941 return f != $ac_func;
18942   ;
18943   return 0;
18944 }
18945 _ACEOF
18946 rm -f conftest.$ac_objext conftest$ac_exeext
18947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18948   (eval $ac_link) 2>conftest.er1
18949   ac_status=$?
18950   grep -v '^ *+' conftest.er1 >conftest.err
18951   rm -f conftest.er1
18952   cat conftest.err >&5
18953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954   (exit $ac_status); } &&
18955          { ac_try='test -z "$ac_c_werror_flag"
18956                          || test ! -s conftest.err'
18957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958   (eval $ac_try) 2>&5
18959   ac_status=$?
18960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961   (exit $ac_status); }; } &&
18962          { ac_try='test -s conftest$ac_exeext'
18963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964   (eval $ac_try) 2>&5
18965   ac_status=$?
18966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967   (exit $ac_status); }; }; then
18968   eval "$as_ac_var=yes"
18969 else
18970   echo "$as_me: failed program was:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18972
18973 eval "$as_ac_var=no"
18974 fi
18975 rm -f conftest.err conftest.$ac_objext \
18976       conftest$ac_exeext conftest.$ac_ext
18977 fi
18978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18980 if test `eval echo '${'$as_ac_var'}'` = yes; then
18981   cat >>confdefs.h <<_ACEOF
18982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18983 _ACEOF
18984
18985 fi
18986 done
18987
18988                 LIBS="$saveLIBS"
18989         fi
18990
18991         if test $ol_header_gssapi = yes ; then
18992                                                 echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi" >&5
18993 echo $ECHO_N "checking for gss_wrap in -lgssapi... $ECHO_C" >&6
18994 if test "${ac_cv_lib_gssapi_gss_wrap+set}" = set; then
18995   echo $ECHO_N "(cached) $ECHO_C" >&6
18996 else
18997   ac_check_lib_save_LIBS=$LIBS
18998 LIBS="-lgssapi  $LIBS"
18999 cat >conftest.$ac_ext <<_ACEOF
19000 /* confdefs.h.  */
19001 _ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h.  */
19005
19006 /* Override any gcc2 internal prototype to avoid an error.  */
19007 #ifdef __cplusplus
19008 extern "C"
19009 #endif
19010 /* We use char because int might match the return type of a gcc2
19011    builtin and then its argument prototype would still apply.  */
19012 char gss_wrap ();
19013 int
19014 main ()
19015 {
19016 gss_wrap ();
19017   ;
19018   return 0;
19019 }
19020 _ACEOF
19021 rm -f conftest.$ac_objext conftest$ac_exeext
19022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19023   (eval $ac_link) 2>conftest.er1
19024   ac_status=$?
19025   grep -v '^ *+' conftest.er1 >conftest.err
19026   rm -f conftest.er1
19027   cat conftest.err >&5
19028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029   (exit $ac_status); } &&
19030          { ac_try='test -z "$ac_c_werror_flag"
19031                          || test ! -s conftest.err'
19032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19033   (eval $ac_try) 2>&5
19034   ac_status=$?
19035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036   (exit $ac_status); }; } &&
19037          { ac_try='test -s conftest$ac_exeext'
19038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039   (eval $ac_try) 2>&5
19040   ac_status=$?
19041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042   (exit $ac_status); }; }; then
19043   ac_cv_lib_gssapi_gss_wrap=yes
19044 else
19045   echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19047
19048 ac_cv_lib_gssapi_gss_wrap=no
19049 fi
19050 rm -f conftest.err conftest.$ac_objext \
19051       conftest$ac_exeext conftest.$ac_ext
19052 LIBS=$ac_check_lib_save_LIBS
19053 fi
19054 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_wrap" >&5
19055 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_wrap" >&6
19056 if test $ac_cv_lib_gssapi_gss_wrap = yes; then
19057   ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi"
19058 else
19059   ol_link_gssapi=no
19060 fi
19061
19062                 if test $ol_link_gssapi != yes ; then
19063                         echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi_krb5" >&5
19064 echo $ECHO_N "checking for gss_wrap in -lgssapi_krb5... $ECHO_C" >&6
19065 if test "${ac_cv_lib_gssapi_krb5_gss_wrap+set}" = set; then
19066   echo $ECHO_N "(cached) $ECHO_C" >&6
19067 else
19068   ac_check_lib_save_LIBS=$LIBS
19069 LIBS="-lgssapi_krb5  $LIBS"
19070 cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h.  */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h.  */
19076
19077 /* Override any gcc2 internal prototype to avoid an error.  */
19078 #ifdef __cplusplus
19079 extern "C"
19080 #endif
19081 /* We use char because int might match the return type of a gcc2
19082    builtin and then its argument prototype would still apply.  */
19083 char gss_wrap ();
19084 int
19085 main ()
19086 {
19087 gss_wrap ();
19088   ;
19089   return 0;
19090 }
19091 _ACEOF
19092 rm -f conftest.$ac_objext conftest$ac_exeext
19093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19094   (eval $ac_link) 2>conftest.er1
19095   ac_status=$?
19096   grep -v '^ *+' conftest.er1 >conftest.err
19097   rm -f conftest.er1
19098   cat conftest.err >&5
19099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100   (exit $ac_status); } &&
19101          { ac_try='test -z "$ac_c_werror_flag"
19102                          || test ! -s conftest.err'
19103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104   (eval $ac_try) 2>&5
19105   ac_status=$?
19106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107   (exit $ac_status); }; } &&
19108          { ac_try='test -s conftest$ac_exeext'
19109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110   (eval $ac_try) 2>&5
19111   ac_status=$?
19112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113   (exit $ac_status); }; }; then
19114   ac_cv_lib_gssapi_krb5_gss_wrap=yes
19115 else
19116   echo "$as_me: failed program was:" >&5
19117 sed 's/^/| /' conftest.$ac_ext >&5
19118
19119 ac_cv_lib_gssapi_krb5_gss_wrap=no
19120 fi
19121 rm -f conftest.err conftest.$ac_objext \
19122       conftest$ac_exeext conftest.$ac_ext
19123 LIBS=$ac_check_lib_save_LIBS
19124 fi
19125 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_wrap" >&5
19126 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_wrap" >&6
19127 if test $ac_cv_lib_gssapi_krb5_gss_wrap = yes; then
19128   ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi_krb5"
19129 else
19130   ol_link_gssapi=no
19131 fi
19132
19133                 fi
19134         fi
19135
19136         ;;
19137 esac
19138
19139 WITH_GSSAPI=no
19140 if test $ol_link_gssapi = yes; then
19141
19142 cat >>confdefs.h <<\_ACEOF
19143 #define HAVE_GSSAPI 1
19144 _ACEOF
19145
19146         WITH_GSSAPI=yes
19147 elif test $ol_with_gssapi = auto ; then
19148         { echo "$as_me:$LINENO: WARNING: Could not locate GSSAPI package" >&5
19149 echo "$as_me: WARNING: Could not locate GSSAPI package" >&2;}
19150         { echo "$as_me:$LINENO: WARNING: GSSAPI authentication not supported!" >&5
19151 echo "$as_me: WARNING: GSSAPI authentication not supported!" >&2;}
19152 elif test $ol_with_gssapi = yes ; then
19153         { { echo "$as_me:$LINENO: error: GSSAPI detection failed" >&5
19154 echo "$as_me: error: GSSAPI detection failed" >&2;}
19155    { (exit 1); exit 1; }; }
19156 fi
19157
19158
19159 if test $ol_with_tls = yes ; then
19160         ol_with_tls=auto
19161 fi
19162
19163 ol_link_tls=no
19164 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19165
19166 for ac_header in openssl/ssl.h
19167 do
19168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19170   echo "$as_me:$LINENO: checking for $ac_header" >&5
19171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19173   echo $ECHO_N "(cached) $ECHO_C" >&6
19174 fi
19175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19177 else
19178   # Is the header compilable?
19179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
19188 #include <$ac_header>
19189 _ACEOF
19190 rm -f conftest.$ac_objext
19191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19192   (eval $ac_compile) 2>conftest.er1
19193   ac_status=$?
19194   grep -v '^ *+' conftest.er1 >conftest.err
19195   rm -f conftest.er1
19196   cat conftest.err >&5
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); } &&
19199          { ac_try='test -z "$ac_c_werror_flag"
19200                          || test ! -s conftest.err'
19201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202   (eval $ac_try) 2>&5
19203   ac_status=$?
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); }; } &&
19206          { ac_try='test -s conftest.$ac_objext'
19207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208   (eval $ac_try) 2>&5
19209   ac_status=$?
19210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211   (exit $ac_status); }; }; then
19212   ac_header_compiler=yes
19213 else
19214   echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19216
19217 ac_header_compiler=no
19218 fi
19219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19221 echo "${ECHO_T}$ac_header_compiler" >&6
19222
19223 # Is the header present?
19224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19226 cat >conftest.$ac_ext <<_ACEOF
19227 /* confdefs.h.  */
19228 _ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h.  */
19232 #include <$ac_header>
19233 _ACEOF
19234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19235   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19236   ac_status=$?
19237   grep -v '^ *+' conftest.er1 >conftest.err
19238   rm -f conftest.er1
19239   cat conftest.err >&5
19240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241   (exit $ac_status); } >/dev/null; then
19242   if test -s conftest.err; then
19243     ac_cpp_err=$ac_c_preproc_warn_flag
19244     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19245   else
19246     ac_cpp_err=
19247   fi
19248 else
19249   ac_cpp_err=yes
19250 fi
19251 if test -z "$ac_cpp_err"; then
19252   ac_header_preproc=yes
19253 else
19254   echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19256
19257   ac_header_preproc=no
19258 fi
19259 rm -f conftest.err conftest.$ac_ext
19260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19261 echo "${ECHO_T}$ac_header_preproc" >&6
19262
19263 # So?  What about this header?
19264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19265   yes:no: )
19266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19270     ac_header_preproc=yes
19271     ;;
19272   no:yes:* )
19273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19285     (
19286       cat <<\_ASBOX
19287 ## --------------------------------------------- ##
19288 ## Report this to <http://www.openldap.org/its/> ##
19289 ## --------------------------------------------- ##
19290 _ASBOX
19291     ) |
19292       sed "s/^/$as_me: WARNING:     /" >&2
19293     ;;
19294 esac
19295 echo "$as_me:$LINENO: checking for $ac_header" >&5
19296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19298   echo $ECHO_N "(cached) $ECHO_C" >&6
19299 else
19300   eval "$as_ac_Header=\$ac_header_preproc"
19301 fi
19302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19304
19305 fi
19306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19307   cat >>confdefs.h <<_ACEOF
19308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19309 _ACEOF
19310
19311 fi
19312
19313 done
19314
19315
19316         if test $ac_cv_header_openssl_ssl_h = yes ; then
19317                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19318 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19319 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19320   echo $ECHO_N "(cached) $ECHO_C" >&6
19321 else
19322   ac_check_lib_save_LIBS=$LIBS
19323 LIBS="-lssl -lcrypto $LIBS"
19324 cat >conftest.$ac_ext <<_ACEOF
19325 /* confdefs.h.  */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h.  */
19330
19331 /* Override any gcc2 internal prototype to avoid an error.  */
19332 #ifdef __cplusplus
19333 extern "C"
19334 #endif
19335 /* We use char because int might match the return type of a gcc2
19336    builtin and then its argument prototype would still apply.  */
19337 char SSL_library_init ();
19338 int
19339 main ()
19340 {
19341 SSL_library_init ();
19342   ;
19343   return 0;
19344 }
19345 _ACEOF
19346 rm -f conftest.$ac_objext conftest$ac_exeext
19347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19348   (eval $ac_link) 2>conftest.er1
19349   ac_status=$?
19350   grep -v '^ *+' conftest.er1 >conftest.err
19351   rm -f conftest.er1
19352   cat conftest.err >&5
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); } &&
19355          { ac_try='test -z "$ac_c_werror_flag"
19356                          || test ! -s conftest.err'
19357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358   (eval $ac_try) 2>&5
19359   ac_status=$?
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); }; } &&
19362          { ac_try='test -s conftest$ac_exeext'
19363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364   (eval $ac_try) 2>&5
19365   ac_status=$?
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); }; }; then
19368   ac_cv_lib_ssl_SSL_library_init=yes
19369 else
19370   echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19372
19373 ac_cv_lib_ssl_SSL_library_init=no
19374 fi
19375 rm -f conftest.err conftest.$ac_objext \
19376       conftest$ac_exeext conftest.$ac_ext
19377 LIBS=$ac_check_lib_save_LIBS
19378 fi
19379 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19380 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19381 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19382   have_openssl=yes
19383                         need_rsaref=no
19384 else
19385   have_openssl=no
19386 fi
19387
19388
19389                 if test $have_openssl = no ; then
19390                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19391 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19392 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19393   echo $ECHO_N "(cached) $ECHO_C" >&6
19394 else
19395   ac_check_lib_save_LIBS=$LIBS
19396 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19397 cat >conftest.$ac_ext <<_ACEOF
19398 /* confdefs.h.  */
19399 _ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h.  */
19403
19404 /* Override any gcc2 internal prototype to avoid an error.  */
19405 #ifdef __cplusplus
19406 extern "C"
19407 #endif
19408 /* We use char because int might match the return type of a gcc2
19409    builtin and then its argument prototype would still apply.  */
19410 char ssl3_accept ();
19411 int
19412 main ()
19413 {
19414 ssl3_accept ();
19415   ;
19416   return 0;
19417 }
19418 _ACEOF
19419 rm -f conftest.$ac_objext conftest$ac_exeext
19420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19421   (eval $ac_link) 2>conftest.er1
19422   ac_status=$?
19423   grep -v '^ *+' conftest.er1 >conftest.err
19424   rm -f conftest.er1
19425   cat conftest.err >&5
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); } &&
19428          { ac_try='test -z "$ac_c_werror_flag"
19429                          || test ! -s conftest.err'
19430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431   (eval $ac_try) 2>&5
19432   ac_status=$?
19433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434   (exit $ac_status); }; } &&
19435          { ac_try='test -s conftest$ac_exeext'
19436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437   (eval $ac_try) 2>&5
19438   ac_status=$?
19439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440   (exit $ac_status); }; }; then
19441   ac_cv_lib_ssl_ssl3_accept=yes
19442 else
19443   echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19445
19446 ac_cv_lib_ssl_ssl3_accept=no
19447 fi
19448 rm -f conftest.err conftest.$ac_objext \
19449       conftest$ac_exeext conftest.$ac_ext
19450 LIBS=$ac_check_lib_save_LIBS
19451 fi
19452 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19453 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19454 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19455   have_openssl=yes
19456                                 need_rsaref=yes
19457 else
19458   have_openssl=no
19459 fi
19460
19461                 fi
19462
19463                 if test $have_openssl = yes ; then
19464                         ol_with_tls=openssl
19465                         ol_link_tls=yes
19466
19467
19468 cat >>confdefs.h <<\_ACEOF
19469 #define HAVE_OPENSSL 1
19470 _ACEOF
19471
19472
19473                         if test $need_rsaref = yes; then
19474
19475 cat >>confdefs.h <<\_ACEOF
19476 #define HAVE_RSAREF 1
19477 _ACEOF
19478
19479
19480                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19481                         else
19482                                 TLS_LIBS="-lssl -lcrypto"
19483                         fi
19484
19485                         echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19486 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19487 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19488   echo $ECHO_N "(cached) $ECHO_C" >&6
19489 else
19490
19491                 cat >conftest.$ac_ext <<_ACEOF
19492 /* confdefs.h.  */
19493 _ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h.  */
19497
19498 #ifdef HAVE_OPENSSL_SSL_H
19499 #include <openssl/ssl.h>
19500 #endif
19501
19502 /* Require 0.9.7d+ */
19503 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19504         char *__ssl_compat = "0.9.7d";
19505 #endif
19506
19507 _ACEOF
19508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19509   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19510   ol_cv_ssl_crl_compat=yes
19511 else
19512   ol_cv_ssl_crl_compat=no
19513 fi
19514 rm -f conftest*
19515
19516 fi
19517 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19518 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19519
19520                         if test $ol_cv_ssl_crl_compat = yes ; then
19521
19522 cat >>confdefs.h <<\_ACEOF
19523 #define HAVE_OPENSSL_CRL 1
19524 _ACEOF
19525
19526                         fi
19527                 fi
19528         fi
19529 fi
19530
19531 if test $ol_link_tls = no ; then
19532         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19533
19534 for ac_header in gnutls/gnutls.h
19535 do
19536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19538   echo "$as_me:$LINENO: checking for $ac_header" >&5
19539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19541   echo $ECHO_N "(cached) $ECHO_C" >&6
19542 fi
19543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19545 else
19546   # Is the header compilable?
19547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19549 cat >conftest.$ac_ext <<_ACEOF
19550 /* confdefs.h.  */
19551 _ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h.  */
19555 $ac_includes_default
19556 #include <$ac_header>
19557 _ACEOF
19558 rm -f conftest.$ac_objext
19559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19560   (eval $ac_compile) 2>conftest.er1
19561   ac_status=$?
19562   grep -v '^ *+' conftest.er1 >conftest.err
19563   rm -f conftest.er1
19564   cat conftest.err >&5
19565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); } &&
19567          { ac_try='test -z "$ac_c_werror_flag"
19568                          || test ! -s conftest.err'
19569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570   (eval $ac_try) 2>&5
19571   ac_status=$?
19572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573   (exit $ac_status); }; } &&
19574          { ac_try='test -s conftest.$ac_objext'
19575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576   (eval $ac_try) 2>&5
19577   ac_status=$?
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); }; }; then
19580   ac_header_compiler=yes
19581 else
19582   echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19584
19585 ac_header_compiler=no
19586 fi
19587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19589 echo "${ECHO_T}$ac_header_compiler" >&6
19590
19591 # Is the header present?
19592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19594 cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h.  */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h.  */
19600 #include <$ac_header>
19601 _ACEOF
19602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19603   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19604   ac_status=$?
19605   grep -v '^ *+' conftest.er1 >conftest.err
19606   rm -f conftest.er1
19607   cat conftest.err >&5
19608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609   (exit $ac_status); } >/dev/null; then
19610   if test -s conftest.err; then
19611     ac_cpp_err=$ac_c_preproc_warn_flag
19612     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19613   else
19614     ac_cpp_err=
19615   fi
19616 else
19617   ac_cpp_err=yes
19618 fi
19619 if test -z "$ac_cpp_err"; then
19620   ac_header_preproc=yes
19621 else
19622   echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19624
19625   ac_header_preproc=no
19626 fi
19627 rm -f conftest.err conftest.$ac_ext
19628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19629 echo "${ECHO_T}$ac_header_preproc" >&6
19630
19631 # So?  What about this header?
19632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19633   yes:no: )
19634     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19638     ac_header_preproc=yes
19639     ;;
19640   no:yes:* )
19641     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19643     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19644 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19645     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19647     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19648 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19651     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19653     (
19654       cat <<\_ASBOX
19655 ## --------------------------------------------- ##
19656 ## Report this to <http://www.openldap.org/its/> ##
19657 ## --------------------------------------------- ##
19658 _ASBOX
19659     ) |
19660       sed "s/^/$as_me: WARNING:     /" >&2
19661     ;;
19662 esac
19663 echo "$as_me:$LINENO: checking for $ac_header" >&5
19664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19666   echo $ECHO_N "(cached) $ECHO_C" >&6
19667 else
19668   eval "$as_ac_Header=\$ac_header_preproc"
19669 fi
19670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19672
19673 fi
19674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19675   cat >>confdefs.h <<_ACEOF
19676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19677 _ACEOF
19678
19679 fi
19680
19681 done
19682
19683
19684                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19685                         echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19686 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
19687 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19688   echo $ECHO_N "(cached) $ECHO_C" >&6
19689 else
19690   ac_check_lib_save_LIBS=$LIBS
19691 LIBS="-lgnutls  $LIBS"
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
19699 /* Override any gcc2 internal prototype to avoid an error.  */
19700 #ifdef __cplusplus
19701 extern "C"
19702 #endif
19703 /* We use char because int might match the return type of a gcc2
19704    builtin and then its argument prototype would still apply.  */
19705 char gnutls_init ();
19706 int
19707 main ()
19708 {
19709 gnutls_init ();
19710   ;
19711   return 0;
19712 }
19713 _ACEOF
19714 rm -f conftest.$ac_objext conftest$ac_exeext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19716   (eval $ac_link) 2>conftest.er1
19717   ac_status=$?
19718   grep -v '^ *+' conftest.er1 >conftest.err
19719   rm -f conftest.er1
19720   cat conftest.err >&5
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); } &&
19723          { ac_try='test -z "$ac_c_werror_flag"
19724                          || test ! -s conftest.err'
19725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726   (eval $ac_try) 2>&5
19727   ac_status=$?
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); }; } &&
19730          { ac_try='test -s conftest$ac_exeext'
19731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732   (eval $ac_try) 2>&5
19733   ac_status=$?
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); }; }; then
19736   ac_cv_lib_gnutls_gnutls_init=yes
19737 else
19738   echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19740
19741 ac_cv_lib_gnutls_gnutls_init=no
19742 fi
19743 rm -f conftest.err conftest.$ac_objext \
19744       conftest$ac_exeext conftest.$ac_ext
19745 LIBS=$ac_check_lib_save_LIBS
19746 fi
19747 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19748 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
19749 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19750   have_gnutls=yes
19751 else
19752   have_gnutls=no
19753 fi
19754
19755
19756                         if test $have_gnutls = yes ; then
19757                                 ol_with_tls=gnutls
19758                                 ol_link_tls=yes
19759
19760                                 TLS_LIBS="-lgnutls"
19761
19762
19763 cat >>confdefs.h <<\_ACEOF
19764 #define HAVE_GNUTLS 1
19765 _ACEOF
19766
19767                         fi
19768                 fi
19769         fi
19770 fi
19771
19772 WITH_TLS=no
19773 if test $ol_link_tls = yes ; then
19774
19775 cat >>confdefs.h <<\_ACEOF
19776 #define HAVE_TLS 1
19777 _ACEOF
19778
19779         WITH_TLS=yes
19780 elif test $ol_with_tls = auto ; then
19781         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19782 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19783         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19784 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19785 elif test $ol_with_tls != no ; then
19786         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19787 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19788    { (exit 1); exit 1; }; }
19789 else
19790         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19791 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19792 fi
19793
19794 if test $ol_enable_lmpasswd != no; then
19795         if test $ol_link_tls != yes ; then
19796                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19797 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19798    { (exit 1); exit 1; }; }
19799         fi
19800
19801
19802 cat >>confdefs.h <<\_ACEOF
19803 #define SLAPD_LMHASH 1
19804 _ACEOF
19805
19806 fi
19807
19808 ol_link_threads=no
19809
19810 case $ol_with_threads in auto | yes | nt)
19811
19812
19813         echo "$as_me:$LINENO: checking for _beginthread" >&5
19814 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19815 if test "${ac_cv_func__beginthread+set}" = set; then
19816   echo $ECHO_N "(cached) $ECHO_C" >&6
19817 else
19818   cat >conftest.$ac_ext <<_ACEOF
19819 /* confdefs.h.  */
19820 _ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h.  */
19824 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19826 #define _beginthread innocuous__beginthread
19827
19828 /* System header to define __stub macros and hopefully few prototypes,
19829     which can conflict with char _beginthread (); below.
19830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19831     <limits.h> exists even on freestanding compilers.  */
19832
19833 #ifdef __STDC__
19834 # include <limits.h>
19835 #else
19836 # include <assert.h>
19837 #endif
19838
19839 #undef _beginthread
19840
19841 /* Override any gcc2 internal prototype to avoid an error.  */
19842 #ifdef __cplusplus
19843 extern "C"
19844 {
19845 #endif
19846 /* We use char because int might match the return type of a gcc2
19847    builtin and then its argument prototype would still apply.  */
19848 char _beginthread ();
19849 /* The GNU C library defines this for functions which it implements
19850     to always fail with ENOSYS.  Some functions are actually named
19851     something starting with __ and the normal name is an alias.  */
19852 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19853 choke me
19854 #else
19855 char (*f) () = _beginthread;
19856 #endif
19857 #ifdef __cplusplus
19858 }
19859 #endif
19860
19861 int
19862 main ()
19863 {
19864 return f != _beginthread;
19865   ;
19866   return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest.$ac_objext conftest$ac_exeext
19870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19871   (eval $ac_link) 2>conftest.er1
19872   ac_status=$?
19873   grep -v '^ *+' conftest.er1 >conftest.err
19874   rm -f conftest.er1
19875   cat conftest.err >&5
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); } &&
19878          { ac_try='test -z "$ac_c_werror_flag"
19879                          || test ! -s conftest.err'
19880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881   (eval $ac_try) 2>&5
19882   ac_status=$?
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); }; } &&
19885          { ac_try='test -s conftest$ac_exeext'
19886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887   (eval $ac_try) 2>&5
19888   ac_status=$?
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); }; }; then
19891   ac_cv_func__beginthread=yes
19892 else
19893   echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896 ac_cv_func__beginthread=no
19897 fi
19898 rm -f conftest.err conftest.$ac_objext \
19899       conftest$ac_exeext conftest.$ac_ext
19900 fi
19901 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19902 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19903
19904
19905         if test $ac_cv_func__beginthread = yes ; then
19906
19907 cat >>confdefs.h <<\_ACEOF
19908 #define HAVE_NT_THREADS 1
19909 _ACEOF
19910
19911                 ol_cv_nt_threads=yes
19912         fi
19913
19914
19915         if test "$ol_cv_nt_threads" = yes ; then
19916                 ol_link_threads=nt
19917                 ol_with_threads=found
19918                 ol_with_yielding_select=yes
19919
19920
19921 cat >>confdefs.h <<\_ACEOF
19922 #define HAVE_NT_SERVICE_MANAGER 1
19923 _ACEOF
19924
19925
19926 cat >>confdefs.h <<\_ACEOF
19927 #define HAVE_NT_EVENT_LOG 1
19928 _ACEOF
19929
19930         fi
19931
19932         if test $ol_with_threads = nt ; then
19933                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19934 echo "$as_me: error: could not locate NT Threads" >&2;}
19935    { (exit 1); exit 1; }; }
19936         fi
19937         ;;
19938 esac
19939
19940 case $ol_with_threads in auto | yes | posix)
19941
19942
19943 for ac_header in pthread.h
19944 do
19945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19947   echo "$as_me:$LINENO: checking for $ac_header" >&5
19948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19950   echo $ECHO_N "(cached) $ECHO_C" >&6
19951 fi
19952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19954 else
19955   # Is the header compilable?
19956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19958 cat >conftest.$ac_ext <<_ACEOF
19959 /* confdefs.h.  */
19960 _ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h.  */
19964 $ac_includes_default
19965 #include <$ac_header>
19966 _ACEOF
19967 rm -f conftest.$ac_objext
19968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19969   (eval $ac_compile) 2>conftest.er1
19970   ac_status=$?
19971   grep -v '^ *+' conftest.er1 >conftest.err
19972   rm -f conftest.er1
19973   cat conftest.err >&5
19974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975   (exit $ac_status); } &&
19976          { ac_try='test -z "$ac_c_werror_flag"
19977                          || test ! -s conftest.err'
19978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19979   (eval $ac_try) 2>&5
19980   ac_status=$?
19981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982   (exit $ac_status); }; } &&
19983          { ac_try='test -s conftest.$ac_objext'
19984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985   (eval $ac_try) 2>&5
19986   ac_status=$?
19987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988   (exit $ac_status); }; }; then
19989   ac_header_compiler=yes
19990 else
19991   echo "$as_me: failed program was:" >&5
19992 sed 's/^/| /' conftest.$ac_ext >&5
19993
19994 ac_header_compiler=no
19995 fi
19996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19998 echo "${ECHO_T}$ac_header_compiler" >&6
19999
20000 # Is the header present?
20001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20003 cat >conftest.$ac_ext <<_ACEOF
20004 /* confdefs.h.  */
20005 _ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h.  */
20009 #include <$ac_header>
20010 _ACEOF
20011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20012   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20013   ac_status=$?
20014   grep -v '^ *+' conftest.er1 >conftest.err
20015   rm -f conftest.er1
20016   cat conftest.err >&5
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); } >/dev/null; then
20019   if test -s conftest.err; then
20020     ac_cpp_err=$ac_c_preproc_warn_flag
20021     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20022   else
20023     ac_cpp_err=
20024   fi
20025 else
20026   ac_cpp_err=yes
20027 fi
20028 if test -z "$ac_cpp_err"; then
20029   ac_header_preproc=yes
20030 else
20031   echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.$ac_ext >&5
20033
20034   ac_header_preproc=no
20035 fi
20036 rm -f conftest.err conftest.$ac_ext
20037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20038 echo "${ECHO_T}$ac_header_preproc" >&6
20039
20040 # So?  What about this header?
20041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20042   yes:no: )
20043     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20047     ac_header_preproc=yes
20048     ;;
20049   no:yes:* )
20050     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20052     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20053 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20054     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20056     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20057 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20060     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20062     (
20063       cat <<\_ASBOX
20064 ## --------------------------------------------- ##
20065 ## Report this to <http://www.openldap.org/its/> ##
20066 ## --------------------------------------------- ##
20067 _ASBOX
20068     ) |
20069       sed "s/^/$as_me: WARNING:     /" >&2
20070     ;;
20071 esac
20072 echo "$as_me:$LINENO: checking for $ac_header" >&5
20073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20075   echo $ECHO_N "(cached) $ECHO_C" >&6
20076 else
20077   eval "$as_ac_Header=\$ac_header_preproc"
20078 fi
20079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20081
20082 fi
20083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20084   cat >>confdefs.h <<_ACEOF
20085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20086 _ACEOF
20087
20088 fi
20089
20090 done
20091
20092
20093         if test $ac_cv_header_pthread_h = yes ; then
20094                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20095 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20096 if test "${ol_cv_pthread_version+set}" = set; then
20097   echo $ECHO_N "(cached) $ECHO_C" >&6
20098 else
20099
20100         cat >conftest.$ac_ext <<_ACEOF
20101 /* confdefs.h.  */
20102 _ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h.  */
20106
20107 #               include <pthread.h>
20108
20109 int
20110 main ()
20111 {
20112
20113                 int i = PTHREAD_CREATE_JOINABLE;
20114
20115   ;
20116   return 0;
20117 }
20118 _ACEOF
20119 rm -f conftest.$ac_objext
20120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20121   (eval $ac_compile) 2>conftest.er1
20122   ac_status=$?
20123   grep -v '^ *+' conftest.er1 >conftest.err
20124   rm -f conftest.er1
20125   cat conftest.err >&5
20126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127   (exit $ac_status); } &&
20128          { ac_try='test -z "$ac_c_werror_flag"
20129                          || test ! -s conftest.err'
20130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131   (eval $ac_try) 2>&5
20132   ac_status=$?
20133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134   (exit $ac_status); }; } &&
20135          { ac_try='test -s conftest.$ac_objext'
20136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137   (eval $ac_try) 2>&5
20138   ac_status=$?
20139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140   (exit $ac_status); }; }; then
20141
20142         cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h.  */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h.  */
20148 #include <pthread.h>
20149
20150 _ACEOF
20151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20152   $EGREP "pthread_detach" >/dev/null 2>&1; then
20153   ol_cv_pthread_version=10
20154 else
20155   ol_cv_pthread_version=8
20156 fi
20157 rm -f conftest*
20158
20159 else
20160   echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20162
20163
20164         cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h.  */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h.  */
20170
20171 #               include <pthread.h>
20172 #               ifdef PTHREAD_CREATE_UNDETACHED
20173                 draft7
20174 #               endif
20175
20176 _ACEOF
20177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20178   $EGREP "draft7" >/dev/null 2>&1; then
20179   ol_cv_pthread_version=7
20180 else
20181
20182         cat >conftest.$ac_ext <<_ACEOF
20183 /* confdefs.h.  */
20184 _ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h.  */
20188 #include <pthread.h>
20189
20190 _ACEOF
20191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20192   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20193   ol_cv_pthread_version=6
20194 else
20195
20196         cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h.  */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h.  */
20202
20203 #               include <pthread.h>
20204 #ifdef          PTHREAD_MUTEX_INITIALIZER
20205                 draft5
20206 #endif
20207
20208 _ACEOF
20209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20210   $EGREP "draft5" >/dev/null 2>&1; then
20211   ol_cv_pthread_version=5
20212 else
20213   ol_cv_pthread_version=4
20214 fi
20215 rm -f conftest*
20216
20217 fi
20218 rm -f conftest*
20219
20220 fi
20221 rm -f conftest*
20222
20223 fi
20224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20225
20226 fi
20227 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20228 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20229
20230
20231                 if test $ol_cv_pthread_version != 0 ; then
20232
20233 cat >>confdefs.h <<_ACEOF
20234 #define HAVE_PTHREADS $ol_cv_pthread_version
20235 _ACEOF
20236
20237                 else
20238                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20239 echo "$as_me: error: unknown pthread version" >&2;}
20240    { (exit 1); exit 1; }; }
20241                 fi
20242
20243                 # consider threads found
20244                 ol_with_threads=found
20245
20246
20247         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20248 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20249 if test "${ol_cv_header_linux_threads+set}" = set; then
20250   echo $ECHO_N "(cached) $ECHO_C" >&6
20251 else
20252   cat >conftest.$ac_ext <<_ACEOF
20253 /* confdefs.h.  */
20254 _ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h.  */
20258 #include <pthread.h>
20259 _ACEOF
20260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20261   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20262   ol_cv_header_linux_threads=yes
20263 else
20264   ol_cv_header_linux_threads=no
20265 fi
20266 rm -f conftest*
20267
20268
20269 fi
20270 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20271 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20272         if test $ol_cv_header_linux_threads = yes; then
20273
20274 cat >>confdefs.h <<\_ACEOF
20275 #define HAVE_LINUX_THREADS 1
20276 _ACEOF
20277
20278         fi
20279
20280
20281         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20282 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20283 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20284   echo $ECHO_N "(cached) $ECHO_C" >&6
20285 else
20286   cat >conftest.$ac_ext <<_ACEOF
20287 /* confdefs.h.  */
20288 _ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h.  */
20292 #include <pthread.h>
20293 #ifdef _POSIX_THREAD_IS_GNU_PTH
20294         __gnu_pth__;
20295 #endif
20296
20297 _ACEOF
20298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20299   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20300   ol_cv_header_gnu_pth_pthread_h=yes
20301 else
20302   ol_cv_header_gnu_pth_pthread_h=no
20303 fi
20304 rm -f conftest*
20305
20306
20307 fi
20308 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20309 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20310
20311
20312                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20313
20314 for ac_header in sched.h
20315 do
20316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20318   echo "$as_me:$LINENO: checking for $ac_header" >&5
20319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20321   echo $ECHO_N "(cached) $ECHO_C" >&6
20322 fi
20323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20325 else
20326   # Is the header compilable?
20327 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20329 cat >conftest.$ac_ext <<_ACEOF
20330 /* confdefs.h.  */
20331 _ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h.  */
20335 $ac_includes_default
20336 #include <$ac_header>
20337 _ACEOF
20338 rm -f conftest.$ac_objext
20339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20340   (eval $ac_compile) 2>conftest.er1
20341   ac_status=$?
20342   grep -v '^ *+' conftest.er1 >conftest.err
20343   rm -f conftest.er1
20344   cat conftest.err >&5
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); } &&
20347          { ac_try='test -z "$ac_c_werror_flag"
20348                          || test ! -s conftest.err'
20349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20350   (eval $ac_try) 2>&5
20351   ac_status=$?
20352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353   (exit $ac_status); }; } &&
20354          { ac_try='test -s conftest.$ac_objext'
20355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356   (eval $ac_try) 2>&5
20357   ac_status=$?
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); }; }; then
20360   ac_header_compiler=yes
20361 else
20362   echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20364
20365 ac_header_compiler=no
20366 fi
20367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20369 echo "${ECHO_T}$ac_header_compiler" >&6
20370
20371 # Is the header present?
20372 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20374 cat >conftest.$ac_ext <<_ACEOF
20375 /* confdefs.h.  */
20376 _ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h.  */
20380 #include <$ac_header>
20381 _ACEOF
20382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20384   ac_status=$?
20385   grep -v '^ *+' conftest.er1 >conftest.err
20386   rm -f conftest.er1
20387   cat conftest.err >&5
20388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389   (exit $ac_status); } >/dev/null; then
20390   if test -s conftest.err; then
20391     ac_cpp_err=$ac_c_preproc_warn_flag
20392     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20393   else
20394     ac_cpp_err=
20395   fi
20396 else
20397   ac_cpp_err=yes
20398 fi
20399 if test -z "$ac_cpp_err"; then
20400   ac_header_preproc=yes
20401 else
20402   echo "$as_me: failed program was:" >&5
20403 sed 's/^/| /' conftest.$ac_ext >&5
20404
20405   ac_header_preproc=no
20406 fi
20407 rm -f conftest.err conftest.$ac_ext
20408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20409 echo "${ECHO_T}$ac_header_preproc" >&6
20410
20411 # So?  What about this header?
20412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20413   yes:no: )
20414     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20418     ac_header_preproc=yes
20419     ;;
20420   no:yes:* )
20421     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20423     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20424 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20425     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20427     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20428 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20431     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20433     (
20434       cat <<\_ASBOX
20435 ## --------------------------------------------- ##
20436 ## Report this to <http://www.openldap.org/its/> ##
20437 ## --------------------------------------------- ##
20438 _ASBOX
20439     ) |
20440       sed "s/^/$as_me: WARNING:     /" >&2
20441     ;;
20442 esac
20443 echo "$as_me:$LINENO: checking for $ac_header" >&5
20444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20446   echo $ECHO_N "(cached) $ECHO_C" >&6
20447 else
20448   eval "$as_ac_Header=\$ac_header_preproc"
20449 fi
20450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20452
20453 fi
20454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20455   cat >>confdefs.h <<_ACEOF
20456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20457 _ACEOF
20458
20459 fi
20460
20461 done
20462
20463                 fi
20464
20465
20466                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20467 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20468 if test "${ol_cv_pthread_create+set}" = set; then
20469   echo $ECHO_N "(cached) $ECHO_C" >&6
20470 else
20471
20472                         if test "$cross_compiling" = yes; then
20473   cat >conftest.$ac_ext <<_ACEOF
20474 /* confdefs.h.  */
20475 _ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h.  */
20479
20480 /* pthread test headers */
20481 #include <pthread.h>
20482 #if HAVE_PTHREADS < 7
20483 #include <errno.h>
20484 #endif
20485 #ifndef NULL
20486 #define NULL (void*)0
20487 #endif
20488
20489 static void *task(p)
20490         void *p;
20491 {
20492         return (void *) (p == NULL);
20493 }
20494
20495 int
20496 main ()
20497 {
20498
20499         /* pthread test function */
20500 #ifndef PTHREAD_CREATE_DETACHED
20501 #define PTHREAD_CREATE_DETACHED 1
20502 #endif
20503         pthread_t t;
20504         int status;
20505         int detach = PTHREAD_CREATE_DETACHED;
20506
20507 #if HAVE_PTHREADS > 4
20508         /* Final pthreads */
20509         pthread_attr_t attr;
20510
20511         status = pthread_attr_init(&attr);
20512         if( status ) return status;
20513
20514 #if HAVE_PTHREADS < 7
20515         status = pthread_attr_setdetachstate(&attr, &detach);
20516         if( status < 0 ) status = errno;
20517 #else
20518         status = pthread_attr_setdetachstate(&attr, detach);
20519 #endif
20520         if( status ) return status;
20521         status = pthread_create( &t, &attr, task, NULL );
20522 #if HAVE_PTHREADS < 7
20523         if( status < 0 ) status = errno;
20524 #endif
20525         if( status ) return status;
20526 #else
20527         /* Draft 4 pthreads */
20528         status = pthread_create( &t, pthread_attr_default, task, NULL );
20529         if( status ) return errno;
20530
20531         /* give thread a chance to complete */
20532         /* it should remain joinable and hence detachable */
20533         sleep( 1 );
20534
20535         status = pthread_detach( &t );
20536         if( status ) return errno;
20537 #endif
20538
20539 #ifdef HAVE_LINUX_THREADS
20540         pthread_kill_other_threads_np();
20541 #endif
20542
20543         return 0;
20544
20545   ;
20546   return 0;
20547 }
20548 _ACEOF
20549 rm -f conftest.$ac_objext conftest$ac_exeext
20550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20551   (eval $ac_link) 2>conftest.er1
20552   ac_status=$?
20553   grep -v '^ *+' conftest.er1 >conftest.err
20554   rm -f conftest.er1
20555   cat conftest.err >&5
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); } &&
20558          { ac_try='test -z "$ac_c_werror_flag"
20559                          || test ! -s conftest.err'
20560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20561   (eval $ac_try) 2>&5
20562   ac_status=$?
20563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564   (exit $ac_status); }; } &&
20565          { ac_try='test -s conftest$ac_exeext'
20566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567   (eval $ac_try) 2>&5
20568   ac_status=$?
20569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570   (exit $ac_status); }; }; then
20571   ol_cv_pthread_create=yes
20572 else
20573   echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20575
20576 ol_cv_pthread_create=no
20577 fi
20578 rm -f conftest.err conftest.$ac_objext \
20579       conftest$ac_exeext conftest.$ac_ext
20580 else
20581   cat >conftest.$ac_ext <<_ACEOF
20582 /* confdefs.h.  */
20583 _ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h.  */
20587
20588 /* pthread test headers */
20589 #include <pthread.h>
20590 #if HAVE_PTHREADS < 7
20591 #include <errno.h>
20592 #endif
20593 #ifndef NULL
20594 #define NULL (void*)0
20595 #endif
20596
20597 static void *task(p)
20598         void *p;
20599 {
20600         return (void *) (p == NULL);
20601 }
20602
20603
20604 int main(argc, argv)
20605         int argc;
20606         char **argv;
20607 {
20608
20609         /* pthread test function */
20610 #ifndef PTHREAD_CREATE_DETACHED
20611 #define PTHREAD_CREATE_DETACHED 1
20612 #endif
20613         pthread_t t;
20614         int status;
20615         int detach = PTHREAD_CREATE_DETACHED;
20616
20617 #if HAVE_PTHREADS > 4
20618         /* Final pthreads */
20619         pthread_attr_t attr;
20620
20621         status = pthread_attr_init(&attr);
20622         if( status ) return status;
20623
20624 #if HAVE_PTHREADS < 7
20625         status = pthread_attr_setdetachstate(&attr, &detach);
20626         if( status < 0 ) status = errno;
20627 #else
20628         status = pthread_attr_setdetachstate(&attr, detach);
20629 #endif
20630         if( status ) return status;
20631         status = pthread_create( &t, &attr, task, NULL );
20632 #if HAVE_PTHREADS < 7
20633         if( status < 0 ) status = errno;
20634 #endif
20635         if( status ) return status;
20636 #else
20637         /* Draft 4 pthreads */
20638         status = pthread_create( &t, pthread_attr_default, task, NULL );
20639         if( status ) return errno;
20640
20641         /* give thread a chance to complete */
20642         /* it should remain joinable and hence detachable */
20643         sleep( 1 );
20644
20645         status = pthread_detach( &t );
20646         if( status ) return errno;
20647 #endif
20648
20649 #ifdef HAVE_LINUX_THREADS
20650         pthread_kill_other_threads_np();
20651 #endif
20652
20653         return 0;
20654
20655 }
20656
20657 _ACEOF
20658 rm -f conftest$ac_exeext
20659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20660   (eval $ac_link) 2>&5
20661   ac_status=$?
20662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665   (eval $ac_try) 2>&5
20666   ac_status=$?
20667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668   (exit $ac_status); }; }; then
20669   ol_cv_pthread_create=yes
20670 else
20671   echo "$as_me: program exited with status $ac_status" >&5
20672 echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20674
20675 ( exit $ac_status )
20676 ol_cv_pthread_create=no
20677 fi
20678 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20679 fi
20680 fi
20681 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20682 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20683
20684                 if test $ol_cv_pthread_create != no ; then
20685                         ol_link_threads=posix
20686                         ol_link_pthreads=""
20687                 fi
20688
20689                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20690 if test "$ol_link_threads" = no ; then
20691         # try -kthread
20692         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20693 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20694 if test "${ol_cv_pthread_kthread+set}" = set; then
20695   echo $ECHO_N "(cached) $ECHO_C" >&6
20696 else
20697
20698                 # save the flags
20699                 ol_LIBS="$LIBS"
20700                 LIBS="-kthread $LIBS"
20701
20702                 if test "$cross_compiling" = yes; then
20703   cat >conftest.$ac_ext <<_ACEOF
20704 /* confdefs.h.  */
20705 _ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h.  */
20709
20710 /* pthread test headers */
20711 #include <pthread.h>
20712 #if HAVE_PTHREADS < 7
20713 #include <errno.h>
20714 #endif
20715 #ifndef NULL
20716 #define NULL (void*)0
20717 #endif
20718
20719 static void *task(p)
20720         void *p;
20721 {
20722         return (void *) (p == NULL);
20723 }
20724
20725 int
20726 main ()
20727 {
20728
20729         /* pthread test function */
20730 #ifndef PTHREAD_CREATE_DETACHED
20731 #define PTHREAD_CREATE_DETACHED 1
20732 #endif
20733         pthread_t t;
20734         int status;
20735         int detach = PTHREAD_CREATE_DETACHED;
20736
20737 #if HAVE_PTHREADS > 4
20738         /* Final pthreads */
20739         pthread_attr_t attr;
20740
20741         status = pthread_attr_init(&attr);
20742         if( status ) return status;
20743
20744 #if HAVE_PTHREADS < 7
20745         status = pthread_attr_setdetachstate(&attr, &detach);
20746         if( status < 0 ) status = errno;
20747 #else
20748         status = pthread_attr_setdetachstate(&attr, detach);
20749 #endif
20750         if( status ) return status;
20751         status = pthread_create( &t, &attr, task, NULL );
20752 #if HAVE_PTHREADS < 7
20753         if( status < 0 ) status = errno;
20754 #endif
20755         if( status ) return status;
20756 #else
20757         /* Draft 4 pthreads */
20758         status = pthread_create( &t, pthread_attr_default, task, NULL );
20759         if( status ) return errno;
20760
20761         /* give thread a chance to complete */
20762         /* it should remain joinable and hence detachable */
20763         sleep( 1 );
20764
20765         status = pthread_detach( &t );
20766         if( status ) return errno;
20767 #endif
20768
20769 #ifdef HAVE_LINUX_THREADS
20770         pthread_kill_other_threads_np();
20771 #endif
20772
20773         return 0;
20774
20775   ;
20776   return 0;
20777 }
20778 _ACEOF
20779 rm -f conftest.$ac_objext conftest$ac_exeext
20780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20781   (eval $ac_link) 2>conftest.er1
20782   ac_status=$?
20783   grep -v '^ *+' conftest.er1 >conftest.err
20784   rm -f conftest.er1
20785   cat conftest.err >&5
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); } &&
20788          { ac_try='test -z "$ac_c_werror_flag"
20789                          || test ! -s conftest.err'
20790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20791   (eval $ac_try) 2>&5
20792   ac_status=$?
20793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794   (exit $ac_status); }; } &&
20795          { ac_try='test -s conftest$ac_exeext'
20796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797   (eval $ac_try) 2>&5
20798   ac_status=$?
20799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); }; }; then
20801   ol_cv_pthread_kthread=yes
20802 else
20803   echo "$as_me: failed program was:" >&5
20804 sed 's/^/| /' conftest.$ac_ext >&5
20805
20806 ol_cv_pthread_kthread=no
20807 fi
20808 rm -f conftest.err conftest.$ac_objext \
20809       conftest$ac_exeext conftest.$ac_ext
20810 else
20811   cat >conftest.$ac_ext <<_ACEOF
20812 /* confdefs.h.  */
20813 _ACEOF
20814 cat confdefs.h >>conftest.$ac_ext
20815 cat >>conftest.$ac_ext <<_ACEOF
20816 /* end confdefs.h.  */
20817
20818 /* pthread test headers */
20819 #include <pthread.h>
20820 #if HAVE_PTHREADS < 7
20821 #include <errno.h>
20822 #endif
20823 #ifndef NULL
20824 #define NULL (void*)0
20825 #endif
20826
20827 static void *task(p)
20828         void *p;
20829 {
20830         return (void *) (p == NULL);
20831 }
20832
20833
20834 int main(argc, argv)
20835         int argc;
20836         char **argv;
20837 {
20838
20839         /* pthread test function */
20840 #ifndef PTHREAD_CREATE_DETACHED
20841 #define PTHREAD_CREATE_DETACHED 1
20842 #endif
20843         pthread_t t;
20844         int status;
20845         int detach = PTHREAD_CREATE_DETACHED;
20846
20847 #if HAVE_PTHREADS > 4
20848         /* Final pthreads */
20849         pthread_attr_t attr;
20850
20851         status = pthread_attr_init(&attr);
20852         if( status ) return status;
20853
20854 #if HAVE_PTHREADS < 7
20855         status = pthread_attr_setdetachstate(&attr, &detach);
20856         if( status < 0 ) status = errno;
20857 #else
20858         status = pthread_attr_setdetachstate(&attr, detach);
20859 #endif
20860         if( status ) return status;
20861         status = pthread_create( &t, &attr, task, NULL );
20862 #if HAVE_PTHREADS < 7
20863         if( status < 0 ) status = errno;
20864 #endif
20865         if( status ) return status;
20866 #else
20867         /* Draft 4 pthreads */
20868         status = pthread_create( &t, pthread_attr_default, task, NULL );
20869         if( status ) return errno;
20870
20871         /* give thread a chance to complete */
20872         /* it should remain joinable and hence detachable */
20873         sleep( 1 );
20874
20875         status = pthread_detach( &t );
20876         if( status ) return errno;
20877 #endif
20878
20879 #ifdef HAVE_LINUX_THREADS
20880         pthread_kill_other_threads_np();
20881 #endif
20882
20883         return 0;
20884
20885 }
20886
20887 _ACEOF
20888 rm -f conftest$ac_exeext
20889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20890   (eval $ac_link) 2>&5
20891   ac_status=$?
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895   (eval $ac_try) 2>&5
20896   ac_status=$?
20897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898   (exit $ac_status); }; }; then
20899   ol_cv_pthread_kthread=yes
20900 else
20901   echo "$as_me: program exited with status $ac_status" >&5
20902 echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20904
20905 ( exit $ac_status )
20906 ol_cv_pthread_kthread=no
20907 fi
20908 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20909 fi
20910
20911                 # restore the LIBS
20912                 LIBS="$ol_LIBS"
20913
20914 fi
20915 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20916 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20917
20918         if test $ol_cv_pthread_kthread = yes ; then
20919                 ol_link_pthreads="-kthread"
20920                 ol_link_threads=posix
20921         fi
20922 fi
20923
20924                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20925 if test "$ol_link_threads" = no ; then
20926         # try -pthread
20927         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20928 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20929 if test "${ol_cv_pthread_pthread+set}" = set; then
20930   echo $ECHO_N "(cached) $ECHO_C" >&6
20931 else
20932
20933                 # save the flags
20934                 ol_LIBS="$LIBS"
20935                 LIBS="-pthread $LIBS"
20936
20937                 if test "$cross_compiling" = yes; then
20938   cat >conftest.$ac_ext <<_ACEOF
20939 /* confdefs.h.  */
20940 _ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h.  */
20944
20945 /* pthread test headers */
20946 #include <pthread.h>
20947 #if HAVE_PTHREADS < 7
20948 #include <errno.h>
20949 #endif
20950 #ifndef NULL
20951 #define NULL (void*)0
20952 #endif
20953
20954 static void *task(p)
20955         void *p;
20956 {
20957         return (void *) (p == NULL);
20958 }
20959
20960 int
20961 main ()
20962 {
20963
20964         /* pthread test function */
20965 #ifndef PTHREAD_CREATE_DETACHED
20966 #define PTHREAD_CREATE_DETACHED 1
20967 #endif
20968         pthread_t t;
20969         int status;
20970         int detach = PTHREAD_CREATE_DETACHED;
20971
20972 #if HAVE_PTHREADS > 4
20973         /* Final pthreads */
20974         pthread_attr_t attr;
20975
20976         status = pthread_attr_init(&attr);
20977         if( status ) return status;
20978
20979 #if HAVE_PTHREADS < 7
20980         status = pthread_attr_setdetachstate(&attr, &detach);
20981         if( status < 0 ) status = errno;
20982 #else
20983         status = pthread_attr_setdetachstate(&attr, detach);
20984 #endif
20985         if( status ) return status;
20986         status = pthread_create( &t, &attr, task, NULL );
20987 #if HAVE_PTHREADS < 7
20988         if( status < 0 ) status = errno;
20989 #endif
20990         if( status ) return status;
20991 #else
20992         /* Draft 4 pthreads */
20993         status = pthread_create( &t, pthread_attr_default, task, NULL );
20994         if( status ) return errno;
20995
20996         /* give thread a chance to complete */
20997         /* it should remain joinable and hence detachable */
20998         sleep( 1 );
20999
21000         status = pthread_detach( &t );
21001         if( status ) return errno;
21002 #endif
21003
21004 #ifdef HAVE_LINUX_THREADS
21005         pthread_kill_other_threads_np();
21006 #endif
21007
21008         return 0;
21009
21010   ;
21011   return 0;
21012 }
21013 _ACEOF
21014 rm -f conftest.$ac_objext conftest$ac_exeext
21015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21016   (eval $ac_link) 2>conftest.er1
21017   ac_status=$?
21018   grep -v '^ *+' conftest.er1 >conftest.err
21019   rm -f conftest.er1
21020   cat conftest.err >&5
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); } &&
21023          { ac_try='test -z "$ac_c_werror_flag"
21024                          || test ! -s conftest.err'
21025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026   (eval $ac_try) 2>&5
21027   ac_status=$?
21028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029   (exit $ac_status); }; } &&
21030          { ac_try='test -s conftest$ac_exeext'
21031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032   (eval $ac_try) 2>&5
21033   ac_status=$?
21034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035   (exit $ac_status); }; }; then
21036   ol_cv_pthread_pthread=yes
21037 else
21038   echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21040
21041 ol_cv_pthread_pthread=no
21042 fi
21043 rm -f conftest.err conftest.$ac_objext \
21044       conftest$ac_exeext conftest.$ac_ext
21045 else
21046   cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h.  */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h.  */
21052
21053 /* pthread test headers */
21054 #include <pthread.h>
21055 #if HAVE_PTHREADS < 7
21056 #include <errno.h>
21057 #endif
21058 #ifndef NULL
21059 #define NULL (void*)0
21060 #endif
21061
21062 static void *task(p)
21063         void *p;
21064 {
21065         return (void *) (p == NULL);
21066 }
21067
21068
21069 int main(argc, argv)
21070         int argc;
21071         char **argv;
21072 {
21073
21074         /* pthread test function */
21075 #ifndef PTHREAD_CREATE_DETACHED
21076 #define PTHREAD_CREATE_DETACHED 1
21077 #endif
21078         pthread_t t;
21079         int status;
21080         int detach = PTHREAD_CREATE_DETACHED;
21081
21082 #if HAVE_PTHREADS > 4
21083         /* Final pthreads */
21084         pthread_attr_t attr;
21085
21086         status = pthread_attr_init(&attr);
21087         if( status ) return status;
21088
21089 #if HAVE_PTHREADS < 7
21090         status = pthread_attr_setdetachstate(&attr, &detach);
21091         if( status < 0 ) status = errno;
21092 #else
21093         status = pthread_attr_setdetachstate(&attr, detach);
21094 #endif
21095         if( status ) return status;
21096         status = pthread_create( &t, &attr, task, NULL );
21097 #if HAVE_PTHREADS < 7
21098         if( status < 0 ) status = errno;
21099 #endif
21100         if( status ) return status;
21101 #else
21102         /* Draft 4 pthreads */
21103         status = pthread_create( &t, pthread_attr_default, task, NULL );
21104         if( status ) return errno;
21105
21106         /* give thread a chance to complete */
21107         /* it should remain joinable and hence detachable */
21108         sleep( 1 );
21109
21110         status = pthread_detach( &t );
21111         if( status ) return errno;
21112 #endif
21113
21114 #ifdef HAVE_LINUX_THREADS
21115         pthread_kill_other_threads_np();
21116 #endif
21117
21118         return 0;
21119
21120 }
21121
21122 _ACEOF
21123 rm -f conftest$ac_exeext
21124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21125   (eval $ac_link) 2>&5
21126   ac_status=$?
21127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130   (eval $ac_try) 2>&5
21131   ac_status=$?
21132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133   (exit $ac_status); }; }; then
21134   ol_cv_pthread_pthread=yes
21135 else
21136   echo "$as_me: program exited with status $ac_status" >&5
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21139
21140 ( exit $ac_status )
21141 ol_cv_pthread_pthread=no
21142 fi
21143 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21144 fi
21145
21146                 # restore the LIBS
21147                 LIBS="$ol_LIBS"
21148
21149 fi
21150 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21151 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21152
21153         if test $ol_cv_pthread_pthread = yes ; then
21154                 ol_link_pthreads="-pthread"
21155                 ol_link_threads=posix
21156         fi
21157 fi
21158
21159                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21160 if test "$ol_link_threads" = no ; then
21161         # try -pthreads
21162         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21163 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21164 if test "${ol_cv_pthread_pthreads+set}" = set; then
21165   echo $ECHO_N "(cached) $ECHO_C" >&6
21166 else
21167
21168                 # save the flags
21169                 ol_LIBS="$LIBS"
21170                 LIBS="-pthreads $LIBS"
21171
21172                 if test "$cross_compiling" = yes; then
21173   cat >conftest.$ac_ext <<_ACEOF
21174 /* confdefs.h.  */
21175 _ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h.  */
21179
21180 /* pthread test headers */
21181 #include <pthread.h>
21182 #if HAVE_PTHREADS < 7
21183 #include <errno.h>
21184 #endif
21185 #ifndef NULL
21186 #define NULL (void*)0
21187 #endif
21188
21189 static void *task(p)
21190         void *p;
21191 {
21192         return (void *) (p == NULL);
21193 }
21194
21195 int
21196 main ()
21197 {
21198
21199         /* pthread test function */
21200 #ifndef PTHREAD_CREATE_DETACHED
21201 #define PTHREAD_CREATE_DETACHED 1
21202 #endif
21203         pthread_t t;
21204         int status;
21205         int detach = PTHREAD_CREATE_DETACHED;
21206
21207 #if HAVE_PTHREADS > 4
21208         /* Final pthreads */
21209         pthread_attr_t attr;
21210
21211         status = pthread_attr_init(&attr);
21212         if( status ) return status;
21213
21214 #if HAVE_PTHREADS < 7
21215         status = pthread_attr_setdetachstate(&attr, &detach);
21216         if( status < 0 ) status = errno;
21217 #else
21218         status = pthread_attr_setdetachstate(&attr, detach);
21219 #endif
21220         if( status ) return status;
21221         status = pthread_create( &t, &attr, task, NULL );
21222 #if HAVE_PTHREADS < 7
21223         if( status < 0 ) status = errno;
21224 #endif
21225         if( status ) return status;
21226 #else
21227         /* Draft 4 pthreads */
21228         status = pthread_create( &t, pthread_attr_default, task, NULL );
21229         if( status ) return errno;
21230
21231         /* give thread a chance to complete */
21232         /* it should remain joinable and hence detachable */
21233         sleep( 1 );
21234
21235         status = pthread_detach( &t );
21236         if( status ) return errno;
21237 #endif
21238
21239 #ifdef HAVE_LINUX_THREADS
21240         pthread_kill_other_threads_np();
21241 #endif
21242
21243         return 0;
21244
21245   ;
21246   return 0;
21247 }
21248 _ACEOF
21249 rm -f conftest.$ac_objext conftest$ac_exeext
21250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21251   (eval $ac_link) 2>conftest.er1
21252   ac_status=$?
21253   grep -v '^ *+' conftest.er1 >conftest.err
21254   rm -f conftest.er1
21255   cat conftest.err >&5
21256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); } &&
21258          { ac_try='test -z "$ac_c_werror_flag"
21259                          || test ! -s conftest.err'
21260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261   (eval $ac_try) 2>&5
21262   ac_status=$?
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); }; } &&
21265          { ac_try='test -s conftest$ac_exeext'
21266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267   (eval $ac_try) 2>&5
21268   ac_status=$?
21269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270   (exit $ac_status); }; }; then
21271   ol_cv_pthread_pthreads=yes
21272 else
21273   echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21275
21276 ol_cv_pthread_pthreads=no
21277 fi
21278 rm -f conftest.err conftest.$ac_objext \
21279       conftest$ac_exeext conftest.$ac_ext
21280 else
21281   cat >conftest.$ac_ext <<_ACEOF
21282 /* confdefs.h.  */
21283 _ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h.  */
21287
21288 /* pthread test headers */
21289 #include <pthread.h>
21290 #if HAVE_PTHREADS < 7
21291 #include <errno.h>
21292 #endif
21293 #ifndef NULL
21294 #define NULL (void*)0
21295 #endif
21296
21297 static void *task(p)
21298         void *p;
21299 {
21300         return (void *) (p == NULL);
21301 }
21302
21303
21304 int main(argc, argv)
21305         int argc;
21306         char **argv;
21307 {
21308
21309         /* pthread test function */
21310 #ifndef PTHREAD_CREATE_DETACHED
21311 #define PTHREAD_CREATE_DETACHED 1
21312 #endif
21313         pthread_t t;
21314         int status;
21315         int detach = PTHREAD_CREATE_DETACHED;
21316
21317 #if HAVE_PTHREADS > 4
21318         /* Final pthreads */
21319         pthread_attr_t attr;
21320
21321         status = pthread_attr_init(&attr);
21322         if( status ) return status;
21323
21324 #if HAVE_PTHREADS < 7
21325         status = pthread_attr_setdetachstate(&attr, &detach);
21326         if( status < 0 ) status = errno;
21327 #else
21328         status = pthread_attr_setdetachstate(&attr, detach);
21329 #endif
21330         if( status ) return status;
21331         status = pthread_create( &t, &attr, task, NULL );
21332 #if HAVE_PTHREADS < 7
21333         if( status < 0 ) status = errno;
21334 #endif
21335         if( status ) return status;
21336 #else
21337         /* Draft 4 pthreads */
21338         status = pthread_create( &t, pthread_attr_default, task, NULL );
21339         if( status ) return errno;
21340
21341         /* give thread a chance to complete */
21342         /* it should remain joinable and hence detachable */
21343         sleep( 1 );
21344
21345         status = pthread_detach( &t );
21346         if( status ) return errno;
21347 #endif
21348
21349 #ifdef HAVE_LINUX_THREADS
21350         pthread_kill_other_threads_np();
21351 #endif
21352
21353         return 0;
21354
21355 }
21356
21357 _ACEOF
21358 rm -f conftest$ac_exeext
21359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21360   (eval $ac_link) 2>&5
21361   ac_status=$?
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365   (eval $ac_try) 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; }; then
21369   ol_cv_pthread_pthreads=yes
21370 else
21371   echo "$as_me: program exited with status $ac_status" >&5
21372 echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21374
21375 ( exit $ac_status )
21376 ol_cv_pthread_pthreads=no
21377 fi
21378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21379 fi
21380
21381                 # restore the LIBS
21382                 LIBS="$ol_LIBS"
21383
21384 fi
21385 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21386 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21387
21388         if test $ol_cv_pthread_pthreads = yes ; then
21389                 ol_link_pthreads="-pthreads"
21390                 ol_link_threads=posix
21391         fi
21392 fi
21393
21394                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21395 if test "$ol_link_threads" = no ; then
21396         # try -mthreads
21397         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21398 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21399 if test "${ol_cv_pthread_mthreads+set}" = set; then
21400   echo $ECHO_N "(cached) $ECHO_C" >&6
21401 else
21402
21403                 # save the flags
21404                 ol_LIBS="$LIBS"
21405                 LIBS="-mthreads $LIBS"
21406
21407                 if test "$cross_compiling" = yes; then
21408   cat >conftest.$ac_ext <<_ACEOF
21409 /* confdefs.h.  */
21410 _ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h.  */
21414
21415 /* pthread test headers */
21416 #include <pthread.h>
21417 #if HAVE_PTHREADS < 7
21418 #include <errno.h>
21419 #endif
21420 #ifndef NULL
21421 #define NULL (void*)0
21422 #endif
21423
21424 static void *task(p)
21425         void *p;
21426 {
21427         return (void *) (p == NULL);
21428 }
21429
21430 int
21431 main ()
21432 {
21433
21434         /* pthread test function */
21435 #ifndef PTHREAD_CREATE_DETACHED
21436 #define PTHREAD_CREATE_DETACHED 1
21437 #endif
21438         pthread_t t;
21439         int status;
21440         int detach = PTHREAD_CREATE_DETACHED;
21441
21442 #if HAVE_PTHREADS > 4
21443         /* Final pthreads */
21444         pthread_attr_t attr;
21445
21446         status = pthread_attr_init(&attr);
21447         if( status ) return status;
21448
21449 #if HAVE_PTHREADS < 7
21450         status = pthread_attr_setdetachstate(&attr, &detach);
21451         if( status < 0 ) status = errno;
21452 #else
21453         status = pthread_attr_setdetachstate(&attr, detach);
21454 #endif
21455         if( status ) return status;
21456         status = pthread_create( &t, &attr, task, NULL );
21457 #if HAVE_PTHREADS < 7
21458         if( status < 0 ) status = errno;
21459 #endif
21460         if( status ) return status;
21461 #else
21462         /* Draft 4 pthreads */
21463         status = pthread_create( &t, pthread_attr_default, task, NULL );
21464         if( status ) return errno;
21465
21466         /* give thread a chance to complete */
21467         /* it should remain joinable and hence detachable */
21468         sleep( 1 );
21469
21470         status = pthread_detach( &t );
21471         if( status ) return errno;
21472 #endif
21473
21474 #ifdef HAVE_LINUX_THREADS
21475         pthread_kill_other_threads_np();
21476 #endif
21477
21478         return 0;
21479
21480   ;
21481   return 0;
21482 }
21483 _ACEOF
21484 rm -f conftest.$ac_objext conftest$ac_exeext
21485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21486   (eval $ac_link) 2>conftest.er1
21487   ac_status=$?
21488   grep -v '^ *+' conftest.er1 >conftest.err
21489   rm -f conftest.er1
21490   cat conftest.err >&5
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); } &&
21493          { ac_try='test -z "$ac_c_werror_flag"
21494                          || test ! -s conftest.err'
21495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496   (eval $ac_try) 2>&5
21497   ac_status=$?
21498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499   (exit $ac_status); }; } &&
21500          { ac_try='test -s conftest$ac_exeext'
21501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502   (eval $ac_try) 2>&5
21503   ac_status=$?
21504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505   (exit $ac_status); }; }; then
21506   ol_cv_pthread_mthreads=yes
21507 else
21508   echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21510
21511 ol_cv_pthread_mthreads=no
21512 fi
21513 rm -f conftest.err conftest.$ac_objext \
21514       conftest$ac_exeext conftest.$ac_ext
21515 else
21516   cat >conftest.$ac_ext <<_ACEOF
21517 /* confdefs.h.  */
21518 _ACEOF
21519 cat confdefs.h >>conftest.$ac_ext
21520 cat >>conftest.$ac_ext <<_ACEOF
21521 /* end confdefs.h.  */
21522
21523 /* pthread test headers */
21524 #include <pthread.h>
21525 #if HAVE_PTHREADS < 7
21526 #include <errno.h>
21527 #endif
21528 #ifndef NULL
21529 #define NULL (void*)0
21530 #endif
21531
21532 static void *task(p)
21533         void *p;
21534 {
21535         return (void *) (p == NULL);
21536 }
21537
21538
21539 int main(argc, argv)
21540         int argc;
21541         char **argv;
21542 {
21543
21544         /* pthread test function */
21545 #ifndef PTHREAD_CREATE_DETACHED
21546 #define PTHREAD_CREATE_DETACHED 1
21547 #endif
21548         pthread_t t;
21549         int status;
21550         int detach = PTHREAD_CREATE_DETACHED;
21551
21552 #if HAVE_PTHREADS > 4
21553         /* Final pthreads */
21554         pthread_attr_t attr;
21555
21556         status = pthread_attr_init(&attr);
21557         if( status ) return status;
21558
21559 #if HAVE_PTHREADS < 7
21560         status = pthread_attr_setdetachstate(&attr, &detach);
21561         if( status < 0 ) status = errno;
21562 #else
21563         status = pthread_attr_setdetachstate(&attr, detach);
21564 #endif
21565         if( status ) return status;
21566         status = pthread_create( &t, &attr, task, NULL );
21567 #if HAVE_PTHREADS < 7
21568         if( status < 0 ) status = errno;
21569 #endif
21570         if( status ) return status;
21571 #else
21572         /* Draft 4 pthreads */
21573         status = pthread_create( &t, pthread_attr_default, task, NULL );
21574         if( status ) return errno;
21575
21576         /* give thread a chance to complete */
21577         /* it should remain joinable and hence detachable */
21578         sleep( 1 );
21579
21580         status = pthread_detach( &t );
21581         if( status ) return errno;
21582 #endif
21583
21584 #ifdef HAVE_LINUX_THREADS
21585         pthread_kill_other_threads_np();
21586 #endif
21587
21588         return 0;
21589
21590 }
21591
21592 _ACEOF
21593 rm -f conftest$ac_exeext
21594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21595   (eval $ac_link) 2>&5
21596   ac_status=$?
21597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600   (eval $ac_try) 2>&5
21601   ac_status=$?
21602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); }; }; then
21604   ol_cv_pthread_mthreads=yes
21605 else
21606   echo "$as_me: program exited with status $ac_status" >&5
21607 echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21609
21610 ( exit $ac_status )
21611 ol_cv_pthread_mthreads=no
21612 fi
21613 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21614 fi
21615
21616                 # restore the LIBS
21617                 LIBS="$ol_LIBS"
21618
21619 fi
21620 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21621 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21622
21623         if test $ol_cv_pthread_mthreads = yes ; then
21624                 ol_link_pthreads="-mthreads"
21625                 ol_link_threads=posix
21626         fi
21627 fi
21628
21629                 # Pthread try link: -thread (ol_cv_pthread_thread)
21630 if test "$ol_link_threads" = no ; then
21631         # try -thread
21632         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21633 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21634 if test "${ol_cv_pthread_thread+set}" = set; then
21635   echo $ECHO_N "(cached) $ECHO_C" >&6
21636 else
21637
21638                 # save the flags
21639                 ol_LIBS="$LIBS"
21640                 LIBS="-thread $LIBS"
21641
21642                 if test "$cross_compiling" = yes; then
21643   cat >conftest.$ac_ext <<_ACEOF
21644 /* confdefs.h.  */
21645 _ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h.  */
21649
21650 /* pthread test headers */
21651 #include <pthread.h>
21652 #if HAVE_PTHREADS < 7
21653 #include <errno.h>
21654 #endif
21655 #ifndef NULL
21656 #define NULL (void*)0
21657 #endif
21658
21659 static void *task(p)
21660         void *p;
21661 {
21662         return (void *) (p == NULL);
21663 }
21664
21665 int
21666 main ()
21667 {
21668
21669         /* pthread test function */
21670 #ifndef PTHREAD_CREATE_DETACHED
21671 #define PTHREAD_CREATE_DETACHED 1
21672 #endif
21673         pthread_t t;
21674         int status;
21675         int detach = PTHREAD_CREATE_DETACHED;
21676
21677 #if HAVE_PTHREADS > 4
21678         /* Final pthreads */
21679         pthread_attr_t attr;
21680
21681         status = pthread_attr_init(&attr);
21682         if( status ) return status;
21683
21684 #if HAVE_PTHREADS < 7
21685         status = pthread_attr_setdetachstate(&attr, &detach);
21686         if( status < 0 ) status = errno;
21687 #else
21688         status = pthread_attr_setdetachstate(&attr, detach);
21689 #endif
21690         if( status ) return status;
21691         status = pthread_create( &t, &attr, task, NULL );
21692 #if HAVE_PTHREADS < 7
21693         if( status < 0 ) status = errno;
21694 #endif
21695         if( status ) return status;
21696 #else
21697         /* Draft 4 pthreads */
21698         status = pthread_create( &t, pthread_attr_default, task, NULL );
21699         if( status ) return errno;
21700
21701         /* give thread a chance to complete */
21702         /* it should remain joinable and hence detachable */
21703         sleep( 1 );
21704
21705         status = pthread_detach( &t );
21706         if( status ) return errno;
21707 #endif
21708
21709 #ifdef HAVE_LINUX_THREADS
21710         pthread_kill_other_threads_np();
21711 #endif
21712
21713         return 0;
21714
21715   ;
21716   return 0;
21717 }
21718 _ACEOF
21719 rm -f conftest.$ac_objext conftest$ac_exeext
21720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21721   (eval $ac_link) 2>conftest.er1
21722   ac_status=$?
21723   grep -v '^ *+' conftest.er1 >conftest.err
21724   rm -f conftest.er1
21725   cat conftest.err >&5
21726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727   (exit $ac_status); } &&
21728          { ac_try='test -z "$ac_c_werror_flag"
21729                          || test ! -s conftest.err'
21730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21731   (eval $ac_try) 2>&5
21732   ac_status=$?
21733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734   (exit $ac_status); }; } &&
21735          { ac_try='test -s conftest$ac_exeext'
21736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21737   (eval $ac_try) 2>&5
21738   ac_status=$?
21739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740   (exit $ac_status); }; }; then
21741   ol_cv_pthread_thread=yes
21742 else
21743   echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21745
21746 ol_cv_pthread_thread=no
21747 fi
21748 rm -f conftest.err conftest.$ac_objext \
21749       conftest$ac_exeext conftest.$ac_ext
21750 else
21751   cat >conftest.$ac_ext <<_ACEOF
21752 /* confdefs.h.  */
21753 _ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h.  */
21757
21758 /* pthread test headers */
21759 #include <pthread.h>
21760 #if HAVE_PTHREADS < 7
21761 #include <errno.h>
21762 #endif
21763 #ifndef NULL
21764 #define NULL (void*)0
21765 #endif
21766
21767 static void *task(p)
21768         void *p;
21769 {
21770         return (void *) (p == NULL);
21771 }
21772
21773
21774 int main(argc, argv)
21775         int argc;
21776         char **argv;
21777 {
21778
21779         /* pthread test function */
21780 #ifndef PTHREAD_CREATE_DETACHED
21781 #define PTHREAD_CREATE_DETACHED 1
21782 #endif
21783         pthread_t t;
21784         int status;
21785         int detach = PTHREAD_CREATE_DETACHED;
21786
21787 #if HAVE_PTHREADS > 4
21788         /* Final pthreads */
21789         pthread_attr_t attr;
21790
21791         status = pthread_attr_init(&attr);
21792         if( status ) return status;
21793
21794 #if HAVE_PTHREADS < 7
21795         status = pthread_attr_setdetachstate(&attr, &detach);
21796         if( status < 0 ) status = errno;
21797 #else
21798         status = pthread_attr_setdetachstate(&attr, detach);
21799 #endif
21800         if( status ) return status;
21801         status = pthread_create( &t, &attr, task, NULL );
21802 #if HAVE_PTHREADS < 7
21803         if( status < 0 ) status = errno;
21804 #endif
21805         if( status ) return status;
21806 #else
21807         /* Draft 4 pthreads */
21808         status = pthread_create( &t, pthread_attr_default, task, NULL );
21809         if( status ) return errno;
21810
21811         /* give thread a chance to complete */
21812         /* it should remain joinable and hence detachable */
21813         sleep( 1 );
21814
21815         status = pthread_detach( &t );
21816         if( status ) return errno;
21817 #endif
21818
21819 #ifdef HAVE_LINUX_THREADS
21820         pthread_kill_other_threads_np();
21821 #endif
21822
21823         return 0;
21824
21825 }
21826
21827 _ACEOF
21828 rm -f conftest$ac_exeext
21829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21830   (eval $ac_link) 2>&5
21831   ac_status=$?
21832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835   (eval $ac_try) 2>&5
21836   ac_status=$?
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); }; }; then
21839   ol_cv_pthread_thread=yes
21840 else
21841   echo "$as_me: program exited with status $ac_status" >&5
21842 echo "$as_me: failed program was:" >&5
21843 sed 's/^/| /' conftest.$ac_ext >&5
21844
21845 ( exit $ac_status )
21846 ol_cv_pthread_thread=no
21847 fi
21848 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21849 fi
21850
21851                 # restore the LIBS
21852                 LIBS="$ol_LIBS"
21853
21854 fi
21855 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21856 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21857
21858         if test $ol_cv_pthread_thread = yes ; then
21859                 ol_link_pthreads="-thread"
21860                 ol_link_threads=posix
21861         fi
21862 fi
21863
21864
21865                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21866 if test "$ol_link_threads" = no ; then
21867         # try -lpthread -lmach -lexc -lc_r
21868         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21869 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21870 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21871   echo $ECHO_N "(cached) $ECHO_C" >&6
21872 else
21873
21874                 # save the flags
21875                 ol_LIBS="$LIBS"
21876                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21877
21878                 if test "$cross_compiling" = yes; then
21879   cat >conftest.$ac_ext <<_ACEOF
21880 /* confdefs.h.  */
21881 _ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h.  */
21885
21886 /* pthread test headers */
21887 #include <pthread.h>
21888 #if HAVE_PTHREADS < 7
21889 #include <errno.h>
21890 #endif
21891 #ifndef NULL
21892 #define NULL (void*)0
21893 #endif
21894
21895 static void *task(p)
21896         void *p;
21897 {
21898         return (void *) (p == NULL);
21899 }
21900
21901 int
21902 main ()
21903 {
21904
21905         /* pthread test function */
21906 #ifndef PTHREAD_CREATE_DETACHED
21907 #define PTHREAD_CREATE_DETACHED 1
21908 #endif
21909         pthread_t t;
21910         int status;
21911         int detach = PTHREAD_CREATE_DETACHED;
21912
21913 #if HAVE_PTHREADS > 4
21914         /* Final pthreads */
21915         pthread_attr_t attr;
21916
21917         status = pthread_attr_init(&attr);
21918         if( status ) return status;
21919
21920 #if HAVE_PTHREADS < 7
21921         status = pthread_attr_setdetachstate(&attr, &detach);
21922         if( status < 0 ) status = errno;
21923 #else
21924         status = pthread_attr_setdetachstate(&attr, detach);
21925 #endif
21926         if( status ) return status;
21927         status = pthread_create( &t, &attr, task, NULL );
21928 #if HAVE_PTHREADS < 7
21929         if( status < 0 ) status = errno;
21930 #endif
21931         if( status ) return status;
21932 #else
21933         /* Draft 4 pthreads */
21934         status = pthread_create( &t, pthread_attr_default, task, NULL );
21935         if( status ) return errno;
21936
21937         /* give thread a chance to complete */
21938         /* it should remain joinable and hence detachable */
21939         sleep( 1 );
21940
21941         status = pthread_detach( &t );
21942         if( status ) return errno;
21943 #endif
21944
21945 #ifdef HAVE_LINUX_THREADS
21946         pthread_kill_other_threads_np();
21947 #endif
21948
21949         return 0;
21950
21951   ;
21952   return 0;
21953 }
21954 _ACEOF
21955 rm -f conftest.$ac_objext conftest$ac_exeext
21956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21957   (eval $ac_link) 2>conftest.er1
21958   ac_status=$?
21959   grep -v '^ *+' conftest.er1 >conftest.err
21960   rm -f conftest.er1
21961   cat conftest.err >&5
21962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); } &&
21964          { ac_try='test -z "$ac_c_werror_flag"
21965                          || test ! -s conftest.err'
21966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967   (eval $ac_try) 2>&5
21968   ac_status=$?
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); }; } &&
21971          { ac_try='test -s conftest$ac_exeext'
21972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973   (eval $ac_try) 2>&5
21974   ac_status=$?
21975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976   (exit $ac_status); }; }; then
21977   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21978 else
21979   echo "$as_me: failed program was:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21981
21982 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21983 fi
21984 rm -f conftest.err conftest.$ac_objext \
21985       conftest$ac_exeext conftest.$ac_ext
21986 else
21987   cat >conftest.$ac_ext <<_ACEOF
21988 /* confdefs.h.  */
21989 _ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h.  */
21993
21994 /* pthread test headers */
21995 #include <pthread.h>
21996 #if HAVE_PTHREADS < 7
21997 #include <errno.h>
21998 #endif
21999 #ifndef NULL
22000 #define NULL (void*)0
22001 #endif
22002
22003 static void *task(p)
22004         void *p;
22005 {
22006         return (void *) (p == NULL);
22007 }
22008
22009
22010 int main(argc, argv)
22011         int argc;
22012         char **argv;
22013 {
22014
22015         /* pthread test function */
22016 #ifndef PTHREAD_CREATE_DETACHED
22017 #define PTHREAD_CREATE_DETACHED 1
22018 #endif
22019         pthread_t t;
22020         int status;
22021         int detach = PTHREAD_CREATE_DETACHED;
22022
22023 #if HAVE_PTHREADS > 4
22024         /* Final pthreads */
22025         pthread_attr_t attr;
22026
22027         status = pthread_attr_init(&attr);
22028         if( status ) return status;
22029
22030 #if HAVE_PTHREADS < 7
22031         status = pthread_attr_setdetachstate(&attr, &detach);
22032         if( status < 0 ) status = errno;
22033 #else
22034         status = pthread_attr_setdetachstate(&attr, detach);
22035 #endif
22036         if( status ) return status;
22037         status = pthread_create( &t, &attr, task, NULL );
22038 #if HAVE_PTHREADS < 7
22039         if( status < 0 ) status = errno;
22040 #endif
22041         if( status ) return status;
22042 #else
22043         /* Draft 4 pthreads */
22044         status = pthread_create( &t, pthread_attr_default, task, NULL );
22045         if( status ) return errno;
22046
22047         /* give thread a chance to complete */
22048         /* it should remain joinable and hence detachable */
22049         sleep( 1 );
22050
22051         status = pthread_detach( &t );
22052         if( status ) return errno;
22053 #endif
22054
22055 #ifdef HAVE_LINUX_THREADS
22056         pthread_kill_other_threads_np();
22057 #endif
22058
22059         return 0;
22060
22061 }
22062
22063 _ACEOF
22064 rm -f conftest$ac_exeext
22065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22066   (eval $ac_link) 2>&5
22067   ac_status=$?
22068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22071   (eval $ac_try) 2>&5
22072   ac_status=$?
22073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074   (exit $ac_status); }; }; then
22075   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22076 else
22077   echo "$as_me: program exited with status $ac_status" >&5
22078 echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22080
22081 ( exit $ac_status )
22082 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22083 fi
22084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22085 fi
22086
22087                 # restore the LIBS
22088                 LIBS="$ol_LIBS"
22089
22090 fi
22091 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22092 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22093
22094         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22095                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22096                 ol_link_threads=posix
22097         fi
22098 fi
22099
22100                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22101 if test "$ol_link_threads" = no ; then
22102         # try -lpthread -lmach -lexc
22103         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22104 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22105 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22106   echo $ECHO_N "(cached) $ECHO_C" >&6
22107 else
22108
22109                 # save the flags
22110                 ol_LIBS="$LIBS"
22111                 LIBS="-lpthread -lmach -lexc $LIBS"
22112
22113                 if test "$cross_compiling" = yes; then
22114   cat >conftest.$ac_ext <<_ACEOF
22115 /* confdefs.h.  */
22116 _ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h.  */
22120
22121 /* pthread test headers */
22122 #include <pthread.h>
22123 #if HAVE_PTHREADS < 7
22124 #include <errno.h>
22125 #endif
22126 #ifndef NULL
22127 #define NULL (void*)0
22128 #endif
22129
22130 static void *task(p)
22131         void *p;
22132 {
22133         return (void *) (p == NULL);
22134 }
22135
22136 int
22137 main ()
22138 {
22139
22140         /* pthread test function */
22141 #ifndef PTHREAD_CREATE_DETACHED
22142 #define PTHREAD_CREATE_DETACHED 1
22143 #endif
22144         pthread_t t;
22145         int status;
22146         int detach = PTHREAD_CREATE_DETACHED;
22147
22148 #if HAVE_PTHREADS > 4
22149         /* Final pthreads */
22150         pthread_attr_t attr;
22151
22152         status = pthread_attr_init(&attr);
22153         if( status ) return status;
22154
22155 #if HAVE_PTHREADS < 7
22156         status = pthread_attr_setdetachstate(&attr, &detach);
22157         if( status < 0 ) status = errno;
22158 #else
22159         status = pthread_attr_setdetachstate(&attr, detach);
22160 #endif
22161         if( status ) return status;
22162         status = pthread_create( &t, &attr, task, NULL );
22163 #if HAVE_PTHREADS < 7
22164         if( status < 0 ) status = errno;
22165 #endif
22166         if( status ) return status;
22167 #else
22168         /* Draft 4 pthreads */
22169         status = pthread_create( &t, pthread_attr_default, task, NULL );
22170         if( status ) return errno;
22171
22172         /* give thread a chance to complete */
22173         /* it should remain joinable and hence detachable */
22174         sleep( 1 );
22175
22176         status = pthread_detach( &t );
22177         if( status ) return errno;
22178 #endif
22179
22180 #ifdef HAVE_LINUX_THREADS
22181         pthread_kill_other_threads_np();
22182 #endif
22183
22184         return 0;
22185
22186   ;
22187   return 0;
22188 }
22189 _ACEOF
22190 rm -f conftest.$ac_objext conftest$ac_exeext
22191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22192   (eval $ac_link) 2>conftest.er1
22193   ac_status=$?
22194   grep -v '^ *+' conftest.er1 >conftest.err
22195   rm -f conftest.er1
22196   cat conftest.err >&5
22197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198   (exit $ac_status); } &&
22199          { ac_try='test -z "$ac_c_werror_flag"
22200                          || test ! -s conftest.err'
22201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202   (eval $ac_try) 2>&5
22203   ac_status=$?
22204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205   (exit $ac_status); }; } &&
22206          { ac_try='test -s conftest$ac_exeext'
22207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22208   (eval $ac_try) 2>&5
22209   ac_status=$?
22210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211   (exit $ac_status); }; }; then
22212   ol_cv_pthread_lpthread_lmach_lexc=yes
22213 else
22214   echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22216
22217 ol_cv_pthread_lpthread_lmach_lexc=no
22218 fi
22219 rm -f conftest.err conftest.$ac_objext \
22220       conftest$ac_exeext conftest.$ac_ext
22221 else
22222   cat >conftest.$ac_ext <<_ACEOF
22223 /* confdefs.h.  */
22224 _ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h.  */
22228
22229 /* pthread test headers */
22230 #include <pthread.h>
22231 #if HAVE_PTHREADS < 7
22232 #include <errno.h>
22233 #endif
22234 #ifndef NULL
22235 #define NULL (void*)0
22236 #endif
22237
22238 static void *task(p)
22239         void *p;
22240 {
22241         return (void *) (p == NULL);
22242 }
22243
22244
22245 int main(argc, argv)
22246         int argc;
22247         char **argv;
22248 {
22249
22250         /* pthread test function */
22251 #ifndef PTHREAD_CREATE_DETACHED
22252 #define PTHREAD_CREATE_DETACHED 1
22253 #endif
22254         pthread_t t;
22255         int status;
22256         int detach = PTHREAD_CREATE_DETACHED;
22257
22258 #if HAVE_PTHREADS > 4
22259         /* Final pthreads */
22260         pthread_attr_t attr;
22261
22262         status = pthread_attr_init(&attr);
22263         if( status ) return status;
22264
22265 #if HAVE_PTHREADS < 7
22266         status = pthread_attr_setdetachstate(&attr, &detach);
22267         if( status < 0 ) status = errno;
22268 #else
22269         status = pthread_attr_setdetachstate(&attr, detach);
22270 #endif
22271         if( status ) return status;
22272         status = pthread_create( &t, &attr, task, NULL );
22273 #if HAVE_PTHREADS < 7
22274         if( status < 0 ) status = errno;
22275 #endif
22276         if( status ) return status;
22277 #else
22278         /* Draft 4 pthreads */
22279         status = pthread_create( &t, pthread_attr_default, task, NULL );
22280         if( status ) return errno;
22281
22282         /* give thread a chance to complete */
22283         /* it should remain joinable and hence detachable */
22284         sleep( 1 );
22285
22286         status = pthread_detach( &t );
22287         if( status ) return errno;
22288 #endif
22289
22290 #ifdef HAVE_LINUX_THREADS
22291         pthread_kill_other_threads_np();
22292 #endif
22293
22294         return 0;
22295
22296 }
22297
22298 _ACEOF
22299 rm -f conftest$ac_exeext
22300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22301   (eval $ac_link) 2>&5
22302   ac_status=$?
22303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306   (eval $ac_try) 2>&5
22307   ac_status=$?
22308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309   (exit $ac_status); }; }; then
22310   ol_cv_pthread_lpthread_lmach_lexc=yes
22311 else
22312   echo "$as_me: program exited with status $ac_status" >&5
22313 echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22315
22316 ( exit $ac_status )
22317 ol_cv_pthread_lpthread_lmach_lexc=no
22318 fi
22319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22320 fi
22321
22322                 # restore the LIBS
22323                 LIBS="$ol_LIBS"
22324
22325 fi
22326 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22327 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22328
22329         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22330                 ol_link_pthreads="-lpthread -lmach -lexc"
22331                 ol_link_threads=posix
22332         fi
22333 fi
22334
22335
22336                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22337 if test "$ol_link_threads" = no ; then
22338         # try -lpthread -Wl,-woff,85
22339         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22340 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22341 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22342   echo $ECHO_N "(cached) $ECHO_C" >&6
22343 else
22344
22345                 # save the flags
22346                 ol_LIBS="$LIBS"
22347                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22348
22349                 if test "$cross_compiling" = yes; then
22350   cat >conftest.$ac_ext <<_ACEOF
22351 /* confdefs.h.  */
22352 _ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h.  */
22356
22357 /* pthread test headers */
22358 #include <pthread.h>
22359 #if HAVE_PTHREADS < 7
22360 #include <errno.h>
22361 #endif
22362 #ifndef NULL
22363 #define NULL (void*)0
22364 #endif
22365
22366 static void *task(p)
22367         void *p;
22368 {
22369         return (void *) (p == NULL);
22370 }
22371
22372 int
22373 main ()
22374 {
22375
22376         /* pthread test function */
22377 #ifndef PTHREAD_CREATE_DETACHED
22378 #define PTHREAD_CREATE_DETACHED 1
22379 #endif
22380         pthread_t t;
22381         int status;
22382         int detach = PTHREAD_CREATE_DETACHED;
22383
22384 #if HAVE_PTHREADS > 4
22385         /* Final pthreads */
22386         pthread_attr_t attr;
22387
22388         status = pthread_attr_init(&attr);
22389         if( status ) return status;
22390
22391 #if HAVE_PTHREADS < 7
22392         status = pthread_attr_setdetachstate(&attr, &detach);
22393         if( status < 0 ) status = errno;
22394 #else
22395         status = pthread_attr_setdetachstate(&attr, detach);
22396 #endif
22397         if( status ) return status;
22398         status = pthread_create( &t, &attr, task, NULL );
22399 #if HAVE_PTHREADS < 7
22400         if( status < 0 ) status = errno;
22401 #endif
22402         if( status ) return status;
22403 #else
22404         /* Draft 4 pthreads */
22405         status = pthread_create( &t, pthread_attr_default, task, NULL );
22406         if( status ) return errno;
22407
22408         /* give thread a chance to complete */
22409         /* it should remain joinable and hence detachable */
22410         sleep( 1 );
22411
22412         status = pthread_detach( &t );
22413         if( status ) return errno;
22414 #endif
22415
22416 #ifdef HAVE_LINUX_THREADS
22417         pthread_kill_other_threads_np();
22418 #endif
22419
22420         return 0;
22421
22422   ;
22423   return 0;
22424 }
22425 _ACEOF
22426 rm -f conftest.$ac_objext conftest$ac_exeext
22427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22428   (eval $ac_link) 2>conftest.er1
22429   ac_status=$?
22430   grep -v '^ *+' conftest.er1 >conftest.err
22431   rm -f conftest.er1
22432   cat conftest.err >&5
22433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434   (exit $ac_status); } &&
22435          { ac_try='test -z "$ac_c_werror_flag"
22436                          || test ! -s conftest.err'
22437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22438   (eval $ac_try) 2>&5
22439   ac_status=$?
22440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441   (exit $ac_status); }; } &&
22442          { ac_try='test -s conftest$ac_exeext'
22443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444   (eval $ac_try) 2>&5
22445   ac_status=$?
22446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); }; }; then
22448   ol_cv_pthread_lib_lpthread_woff=yes
22449 else
22450   echo "$as_me: failed program was:" >&5
22451 sed 's/^/| /' conftest.$ac_ext >&5
22452
22453 ol_cv_pthread_lib_lpthread_woff=no
22454 fi
22455 rm -f conftest.err conftest.$ac_objext \
22456       conftest$ac_exeext conftest.$ac_ext
22457 else
22458   cat >conftest.$ac_ext <<_ACEOF
22459 /* confdefs.h.  */
22460 _ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h.  */
22464
22465 /* pthread test headers */
22466 #include <pthread.h>
22467 #if HAVE_PTHREADS < 7
22468 #include <errno.h>
22469 #endif
22470 #ifndef NULL
22471 #define NULL (void*)0
22472 #endif
22473
22474 static void *task(p)
22475         void *p;
22476 {
22477         return (void *) (p == NULL);
22478 }
22479
22480
22481 int main(argc, argv)
22482         int argc;
22483         char **argv;
22484 {
22485
22486         /* pthread test function */
22487 #ifndef PTHREAD_CREATE_DETACHED
22488 #define PTHREAD_CREATE_DETACHED 1
22489 #endif
22490         pthread_t t;
22491         int status;
22492         int detach = PTHREAD_CREATE_DETACHED;
22493
22494 #if HAVE_PTHREADS > 4
22495         /* Final pthreads */
22496         pthread_attr_t attr;
22497
22498         status = pthread_attr_init(&attr);
22499         if( status ) return status;
22500
22501 #if HAVE_PTHREADS < 7
22502         status = pthread_attr_setdetachstate(&attr, &detach);
22503         if( status < 0 ) status = errno;
22504 #else
22505         status = pthread_attr_setdetachstate(&attr, detach);
22506 #endif
22507         if( status ) return status;
22508         status = pthread_create( &t, &attr, task, NULL );
22509 #if HAVE_PTHREADS < 7
22510         if( status < 0 ) status = errno;
22511 #endif
22512         if( status ) return status;
22513 #else
22514         /* Draft 4 pthreads */
22515         status = pthread_create( &t, pthread_attr_default, task, NULL );
22516         if( status ) return errno;
22517
22518         /* give thread a chance to complete */
22519         /* it should remain joinable and hence detachable */
22520         sleep( 1 );
22521
22522         status = pthread_detach( &t );
22523         if( status ) return errno;
22524 #endif
22525
22526 #ifdef HAVE_LINUX_THREADS
22527         pthread_kill_other_threads_np();
22528 #endif
22529
22530         return 0;
22531
22532 }
22533
22534 _ACEOF
22535 rm -f conftest$ac_exeext
22536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22537   (eval $ac_link) 2>&5
22538   ac_status=$?
22539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542   (eval $ac_try) 2>&5
22543   ac_status=$?
22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545   (exit $ac_status); }; }; then
22546   ol_cv_pthread_lib_lpthread_woff=yes
22547 else
22548   echo "$as_me: program exited with status $ac_status" >&5
22549 echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.$ac_ext >&5
22551
22552 ( exit $ac_status )
22553 ol_cv_pthread_lib_lpthread_woff=no
22554 fi
22555 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22556 fi
22557
22558                 # restore the LIBS
22559                 LIBS="$ol_LIBS"
22560
22561 fi
22562 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22563 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22564
22565         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22566                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22567                 ol_link_threads=posix
22568         fi
22569 fi
22570
22571
22572                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22573 if test "$ol_link_threads" = no ; then
22574         # try -lpthread
22575         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22576 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22577 if test "${ol_cv_pthread_lpthread+set}" = set; then
22578   echo $ECHO_N "(cached) $ECHO_C" >&6
22579 else
22580
22581                 # save the flags
22582                 ol_LIBS="$LIBS"
22583                 LIBS="-lpthread $LIBS"
22584
22585                 if test "$cross_compiling" = yes; then
22586   cat >conftest.$ac_ext <<_ACEOF
22587 /* confdefs.h.  */
22588 _ACEOF
22589 cat confdefs.h >>conftest.$ac_ext
22590 cat >>conftest.$ac_ext <<_ACEOF
22591 /* end confdefs.h.  */
22592
22593 /* pthread test headers */
22594 #include <pthread.h>
22595 #if HAVE_PTHREADS < 7
22596 #include <errno.h>
22597 #endif
22598 #ifndef NULL
22599 #define NULL (void*)0
22600 #endif
22601
22602 static void *task(p)
22603         void *p;
22604 {
22605         return (void *) (p == NULL);
22606 }
22607
22608 int
22609 main ()
22610 {
22611
22612         /* pthread test function */
22613 #ifndef PTHREAD_CREATE_DETACHED
22614 #define PTHREAD_CREATE_DETACHED 1
22615 #endif
22616         pthread_t t;
22617         int status;
22618         int detach = PTHREAD_CREATE_DETACHED;
22619
22620 #if HAVE_PTHREADS > 4
22621         /* Final pthreads */
22622         pthread_attr_t attr;
22623
22624         status = pthread_attr_init(&attr);
22625         if( status ) return status;
22626
22627 #if HAVE_PTHREADS < 7
22628         status = pthread_attr_setdetachstate(&attr, &detach);
22629         if( status < 0 ) status = errno;
22630 #else
22631         status = pthread_attr_setdetachstate(&attr, detach);
22632 #endif
22633         if( status ) return status;
22634         status = pthread_create( &t, &attr, task, NULL );
22635 #if HAVE_PTHREADS < 7
22636         if( status < 0 ) status = errno;
22637 #endif
22638         if( status ) return status;
22639 #else
22640         /* Draft 4 pthreads */
22641         status = pthread_create( &t, pthread_attr_default, task, NULL );
22642         if( status ) return errno;
22643
22644         /* give thread a chance to complete */
22645         /* it should remain joinable and hence detachable */
22646         sleep( 1 );
22647
22648         status = pthread_detach( &t );
22649         if( status ) return errno;
22650 #endif
22651
22652 #ifdef HAVE_LINUX_THREADS
22653         pthread_kill_other_threads_np();
22654 #endif
22655
22656         return 0;
22657
22658   ;
22659   return 0;
22660 }
22661 _ACEOF
22662 rm -f conftest.$ac_objext conftest$ac_exeext
22663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22664   (eval $ac_link) 2>conftest.er1
22665   ac_status=$?
22666   grep -v '^ *+' conftest.er1 >conftest.err
22667   rm -f conftest.er1
22668   cat conftest.err >&5
22669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670   (exit $ac_status); } &&
22671          { ac_try='test -z "$ac_c_werror_flag"
22672                          || test ! -s conftest.err'
22673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674   (eval $ac_try) 2>&5
22675   ac_status=$?
22676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677   (exit $ac_status); }; } &&
22678          { ac_try='test -s conftest$ac_exeext'
22679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680   (eval $ac_try) 2>&5
22681   ac_status=$?
22682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683   (exit $ac_status); }; }; then
22684   ol_cv_pthread_lpthread=yes
22685 else
22686   echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22688
22689 ol_cv_pthread_lpthread=no
22690 fi
22691 rm -f conftest.err conftest.$ac_objext \
22692       conftest$ac_exeext conftest.$ac_ext
22693 else
22694   cat >conftest.$ac_ext <<_ACEOF
22695 /* confdefs.h.  */
22696 _ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h.  */
22700
22701 /* pthread test headers */
22702 #include <pthread.h>
22703 #if HAVE_PTHREADS < 7
22704 #include <errno.h>
22705 #endif
22706 #ifndef NULL
22707 #define NULL (void*)0
22708 #endif
22709
22710 static void *task(p)
22711         void *p;
22712 {
22713         return (void *) (p == NULL);
22714 }
22715
22716
22717 int main(argc, argv)
22718         int argc;
22719         char **argv;
22720 {
22721
22722         /* pthread test function */
22723 #ifndef PTHREAD_CREATE_DETACHED
22724 #define PTHREAD_CREATE_DETACHED 1
22725 #endif
22726         pthread_t t;
22727         int status;
22728         int detach = PTHREAD_CREATE_DETACHED;
22729
22730 #if HAVE_PTHREADS > 4
22731         /* Final pthreads */
22732         pthread_attr_t attr;
22733
22734         status = pthread_attr_init(&attr);
22735         if( status ) return status;
22736
22737 #if HAVE_PTHREADS < 7
22738         status = pthread_attr_setdetachstate(&attr, &detach);
22739         if( status < 0 ) status = errno;
22740 #else
22741         status = pthread_attr_setdetachstate(&attr, detach);
22742 #endif
22743         if( status ) return status;
22744         status = pthread_create( &t, &attr, task, NULL );
22745 #if HAVE_PTHREADS < 7
22746         if( status < 0 ) status = errno;
22747 #endif
22748         if( status ) return status;
22749 #else
22750         /* Draft 4 pthreads */
22751         status = pthread_create( &t, pthread_attr_default, task, NULL );
22752         if( status ) return errno;
22753
22754         /* give thread a chance to complete */
22755         /* it should remain joinable and hence detachable */
22756         sleep( 1 );
22757
22758         status = pthread_detach( &t );
22759         if( status ) return errno;
22760 #endif
22761
22762 #ifdef HAVE_LINUX_THREADS
22763         pthread_kill_other_threads_np();
22764 #endif
22765
22766         return 0;
22767
22768 }
22769
22770 _ACEOF
22771 rm -f conftest$ac_exeext
22772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22773   (eval $ac_link) 2>&5
22774   ac_status=$?
22775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22778   (eval $ac_try) 2>&5
22779   ac_status=$?
22780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781   (exit $ac_status); }; }; then
22782   ol_cv_pthread_lpthread=yes
22783 else
22784   echo "$as_me: program exited with status $ac_status" >&5
22785 echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22787
22788 ( exit $ac_status )
22789 ol_cv_pthread_lpthread=no
22790 fi
22791 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22792 fi
22793
22794                 # restore the LIBS
22795                 LIBS="$ol_LIBS"
22796
22797 fi
22798 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22799 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22800
22801         if test $ol_cv_pthread_lpthread = yes ; then
22802                 ol_link_pthreads="-lpthread"
22803                 ol_link_threads=posix
22804         fi
22805 fi
22806
22807                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22808 if test "$ol_link_threads" = no ; then
22809         # try -lc_r
22810         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22811 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22812 if test "${ol_cv_pthread_lc_r+set}" = set; then
22813   echo $ECHO_N "(cached) $ECHO_C" >&6
22814 else
22815
22816                 # save the flags
22817                 ol_LIBS="$LIBS"
22818                 LIBS="-lc_r $LIBS"
22819
22820                 if test "$cross_compiling" = yes; then
22821   cat >conftest.$ac_ext <<_ACEOF
22822 /* confdefs.h.  */
22823 _ACEOF
22824 cat confdefs.h >>conftest.$ac_ext
22825 cat >>conftest.$ac_ext <<_ACEOF
22826 /* end confdefs.h.  */
22827
22828 /* pthread test headers */
22829 #include <pthread.h>
22830 #if HAVE_PTHREADS < 7
22831 #include <errno.h>
22832 #endif
22833 #ifndef NULL
22834 #define NULL (void*)0
22835 #endif
22836
22837 static void *task(p)
22838         void *p;
22839 {
22840         return (void *) (p == NULL);
22841 }
22842
22843 int
22844 main ()
22845 {
22846
22847         /* pthread test function */
22848 #ifndef PTHREAD_CREATE_DETACHED
22849 #define PTHREAD_CREATE_DETACHED 1
22850 #endif
22851         pthread_t t;
22852         int status;
22853         int detach = PTHREAD_CREATE_DETACHED;
22854
22855 #if HAVE_PTHREADS > 4
22856         /* Final pthreads */
22857         pthread_attr_t attr;
22858
22859         status = pthread_attr_init(&attr);
22860         if( status ) return status;
22861
22862 #if HAVE_PTHREADS < 7
22863         status = pthread_attr_setdetachstate(&attr, &detach);
22864         if( status < 0 ) status = errno;
22865 #else
22866         status = pthread_attr_setdetachstate(&attr, detach);
22867 #endif
22868         if( status ) return status;
22869         status = pthread_create( &t, &attr, task, NULL );
22870 #if HAVE_PTHREADS < 7
22871         if( status < 0 ) status = errno;
22872 #endif
22873         if( status ) return status;
22874 #else
22875         /* Draft 4 pthreads */
22876         status = pthread_create( &t, pthread_attr_default, task, NULL );
22877         if( status ) return errno;
22878
22879         /* give thread a chance to complete */
22880         /* it should remain joinable and hence detachable */
22881         sleep( 1 );
22882
22883         status = pthread_detach( &t );
22884         if( status ) return errno;
22885 #endif
22886
22887 #ifdef HAVE_LINUX_THREADS
22888         pthread_kill_other_threads_np();
22889 #endif
22890
22891         return 0;
22892
22893   ;
22894   return 0;
22895 }
22896 _ACEOF
22897 rm -f conftest.$ac_objext conftest$ac_exeext
22898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22899   (eval $ac_link) 2>conftest.er1
22900   ac_status=$?
22901   grep -v '^ *+' conftest.er1 >conftest.err
22902   rm -f conftest.er1
22903   cat conftest.err >&5
22904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905   (exit $ac_status); } &&
22906          { ac_try='test -z "$ac_c_werror_flag"
22907                          || test ! -s conftest.err'
22908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909   (eval $ac_try) 2>&5
22910   ac_status=$?
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); }; } &&
22913          { ac_try='test -s conftest$ac_exeext'
22914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915   (eval $ac_try) 2>&5
22916   ac_status=$?
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); }; }; then
22919   ol_cv_pthread_lc_r=yes
22920 else
22921   echo "$as_me: failed program was:" >&5
22922 sed 's/^/| /' conftest.$ac_ext >&5
22923
22924 ol_cv_pthread_lc_r=no
22925 fi
22926 rm -f conftest.err conftest.$ac_objext \
22927       conftest$ac_exeext conftest.$ac_ext
22928 else
22929   cat >conftest.$ac_ext <<_ACEOF
22930 /* confdefs.h.  */
22931 _ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h.  */
22935
22936 /* pthread test headers */
22937 #include <pthread.h>
22938 #if HAVE_PTHREADS < 7
22939 #include <errno.h>
22940 #endif
22941 #ifndef NULL
22942 #define NULL (void*)0
22943 #endif
22944
22945 static void *task(p)
22946         void *p;
22947 {
22948         return (void *) (p == NULL);
22949 }
22950
22951
22952 int main(argc, argv)
22953         int argc;
22954         char **argv;
22955 {
22956
22957         /* pthread test function */
22958 #ifndef PTHREAD_CREATE_DETACHED
22959 #define PTHREAD_CREATE_DETACHED 1
22960 #endif
22961         pthread_t t;
22962         int status;
22963         int detach = PTHREAD_CREATE_DETACHED;
22964
22965 #if HAVE_PTHREADS > 4
22966         /* Final pthreads */
22967         pthread_attr_t attr;
22968
22969         status = pthread_attr_init(&attr);
22970         if( status ) return status;
22971
22972 #if HAVE_PTHREADS < 7
22973         status = pthread_attr_setdetachstate(&attr, &detach);
22974         if( status < 0 ) status = errno;
22975 #else
22976         status = pthread_attr_setdetachstate(&attr, detach);
22977 #endif
22978         if( status ) return status;
22979         status = pthread_create( &t, &attr, task, NULL );
22980 #if HAVE_PTHREADS < 7
22981         if( status < 0 ) status = errno;
22982 #endif
22983         if( status ) return status;
22984 #else
22985         /* Draft 4 pthreads */
22986         status = pthread_create( &t, pthread_attr_default, task, NULL );
22987         if( status ) return errno;
22988
22989         /* give thread a chance to complete */
22990         /* it should remain joinable and hence detachable */
22991         sleep( 1 );
22992
22993         status = pthread_detach( &t );
22994         if( status ) return errno;
22995 #endif
22996
22997 #ifdef HAVE_LINUX_THREADS
22998         pthread_kill_other_threads_np();
22999 #endif
23000
23001         return 0;
23002
23003 }
23004
23005 _ACEOF
23006 rm -f conftest$ac_exeext
23007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23008   (eval $ac_link) 2>&5
23009   ac_status=$?
23010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23013   (eval $ac_try) 2>&5
23014   ac_status=$?
23015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016   (exit $ac_status); }; }; then
23017   ol_cv_pthread_lc_r=yes
23018 else
23019   echo "$as_me: program exited with status $ac_status" >&5
23020 echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23022
23023 ( exit $ac_status )
23024 ol_cv_pthread_lc_r=no
23025 fi
23026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23027 fi
23028
23029                 # restore the LIBS
23030                 LIBS="$ol_LIBS"
23031
23032 fi
23033 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23034 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
23035
23036         if test $ol_cv_pthread_lc_r = yes ; then
23037                 ol_link_pthreads="-lc_r"
23038                 ol_link_threads=posix
23039         fi
23040 fi
23041
23042
23043                 # Pthread try link: -threads (ol_cv_pthread_threads)
23044 if test "$ol_link_threads" = no ; then
23045         # try -threads
23046         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23047 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23048 if test "${ol_cv_pthread_threads+set}" = set; then
23049   echo $ECHO_N "(cached) $ECHO_C" >&6
23050 else
23051
23052                 # save the flags
23053                 ol_LIBS="$LIBS"
23054                 LIBS="-threads $LIBS"
23055
23056                 if test "$cross_compiling" = yes; then
23057   cat >conftest.$ac_ext <<_ACEOF
23058 /* confdefs.h.  */
23059 _ACEOF
23060 cat confdefs.h >>conftest.$ac_ext
23061 cat >>conftest.$ac_ext <<_ACEOF
23062 /* end confdefs.h.  */
23063
23064 /* pthread test headers */
23065 #include <pthread.h>
23066 #if HAVE_PTHREADS < 7
23067 #include <errno.h>
23068 #endif
23069 #ifndef NULL
23070 #define NULL (void*)0
23071 #endif
23072
23073 static void *task(p)
23074         void *p;
23075 {
23076         return (void *) (p == NULL);
23077 }
23078
23079 int
23080 main ()
23081 {
23082
23083         /* pthread test function */
23084 #ifndef PTHREAD_CREATE_DETACHED
23085 #define PTHREAD_CREATE_DETACHED 1
23086 #endif
23087         pthread_t t;
23088         int status;
23089         int detach = PTHREAD_CREATE_DETACHED;
23090
23091 #if HAVE_PTHREADS > 4
23092         /* Final pthreads */
23093         pthread_attr_t attr;
23094
23095         status = pthread_attr_init(&attr);
23096         if( status ) return status;
23097
23098 #if HAVE_PTHREADS < 7
23099         status = pthread_attr_setdetachstate(&attr, &detach);
23100         if( status < 0 ) status = errno;
23101 #else
23102         status = pthread_attr_setdetachstate(&attr, detach);
23103 #endif
23104         if( status ) return status;
23105         status = pthread_create( &t, &attr, task, NULL );
23106 #if HAVE_PTHREADS < 7
23107         if( status < 0 ) status = errno;
23108 #endif
23109         if( status ) return status;
23110 #else
23111         /* Draft 4 pthreads */
23112         status = pthread_create( &t, pthread_attr_default, task, NULL );
23113         if( status ) return errno;
23114
23115         /* give thread a chance to complete */
23116         /* it should remain joinable and hence detachable */
23117         sleep( 1 );
23118
23119         status = pthread_detach( &t );
23120         if( status ) return errno;
23121 #endif
23122
23123 #ifdef HAVE_LINUX_THREADS
23124         pthread_kill_other_threads_np();
23125 #endif
23126
23127         return 0;
23128
23129   ;
23130   return 0;
23131 }
23132 _ACEOF
23133 rm -f conftest.$ac_objext conftest$ac_exeext
23134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23135   (eval $ac_link) 2>conftest.er1
23136   ac_status=$?
23137   grep -v '^ *+' conftest.er1 >conftest.err
23138   rm -f conftest.er1
23139   cat conftest.err >&5
23140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); } &&
23142          { ac_try='test -z "$ac_c_werror_flag"
23143                          || test ! -s conftest.err'
23144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145   (eval $ac_try) 2>&5
23146   ac_status=$?
23147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148   (exit $ac_status); }; } &&
23149          { ac_try='test -s conftest$ac_exeext'
23150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151   (eval $ac_try) 2>&5
23152   ac_status=$?
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); }; }; then
23155   ol_cv_pthread_threads=yes
23156 else
23157   echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23159
23160 ol_cv_pthread_threads=no
23161 fi
23162 rm -f conftest.err conftest.$ac_objext \
23163       conftest$ac_exeext conftest.$ac_ext
23164 else
23165   cat >conftest.$ac_ext <<_ACEOF
23166 /* confdefs.h.  */
23167 _ACEOF
23168 cat confdefs.h >>conftest.$ac_ext
23169 cat >>conftest.$ac_ext <<_ACEOF
23170 /* end confdefs.h.  */
23171
23172 /* pthread test headers */
23173 #include <pthread.h>
23174 #if HAVE_PTHREADS < 7
23175 #include <errno.h>
23176 #endif
23177 #ifndef NULL
23178 #define NULL (void*)0
23179 #endif
23180
23181 static void *task(p)
23182         void *p;
23183 {
23184         return (void *) (p == NULL);
23185 }
23186
23187
23188 int main(argc, argv)
23189         int argc;
23190         char **argv;
23191 {
23192
23193         /* pthread test function */
23194 #ifndef PTHREAD_CREATE_DETACHED
23195 #define PTHREAD_CREATE_DETACHED 1
23196 #endif
23197         pthread_t t;
23198         int status;
23199         int detach = PTHREAD_CREATE_DETACHED;
23200
23201 #if HAVE_PTHREADS > 4
23202         /* Final pthreads */
23203         pthread_attr_t attr;
23204
23205         status = pthread_attr_init(&attr);
23206         if( status ) return status;
23207
23208 #if HAVE_PTHREADS < 7
23209         status = pthread_attr_setdetachstate(&attr, &detach);
23210         if( status < 0 ) status = errno;
23211 #else
23212         status = pthread_attr_setdetachstate(&attr, detach);
23213 #endif
23214         if( status ) return status;
23215         status = pthread_create( &t, &attr, task, NULL );
23216 #if HAVE_PTHREADS < 7
23217         if( status < 0 ) status = errno;
23218 #endif
23219         if( status ) return status;
23220 #else
23221         /* Draft 4 pthreads */
23222         status = pthread_create( &t, pthread_attr_default, task, NULL );
23223         if( status ) return errno;
23224
23225         /* give thread a chance to complete */
23226         /* it should remain joinable and hence detachable */
23227         sleep( 1 );
23228
23229         status = pthread_detach( &t );
23230         if( status ) return errno;
23231 #endif
23232
23233 #ifdef HAVE_LINUX_THREADS
23234         pthread_kill_other_threads_np();
23235 #endif
23236
23237         return 0;
23238
23239 }
23240
23241 _ACEOF
23242 rm -f conftest$ac_exeext
23243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23244   (eval $ac_link) 2>&5
23245   ac_status=$?
23246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249   (eval $ac_try) 2>&5
23250   ac_status=$?
23251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252   (exit $ac_status); }; }; then
23253   ol_cv_pthread_threads=yes
23254 else
23255   echo "$as_me: program exited with status $ac_status" >&5
23256 echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.$ac_ext >&5
23258
23259 ( exit $ac_status )
23260 ol_cv_pthread_threads=no
23261 fi
23262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23263 fi
23264
23265                 # restore the LIBS
23266                 LIBS="$ol_LIBS"
23267
23268 fi
23269 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23270 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23271
23272         if test $ol_cv_pthread_threads = yes ; then
23273                 ol_link_pthreads="-threads"
23274                 ol_link_threads=posix
23275         fi
23276 fi
23277
23278
23279                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23280 if test "$ol_link_threads" = no ; then
23281         # try -lpthreads -lmach -lexc -lc_r
23282         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23283 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23284 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23285   echo $ECHO_N "(cached) $ECHO_C" >&6
23286 else
23287
23288                 # save the flags
23289                 ol_LIBS="$LIBS"
23290                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23291
23292                 if test "$cross_compiling" = yes; then
23293   cat >conftest.$ac_ext <<_ACEOF
23294 /* confdefs.h.  */
23295 _ACEOF
23296 cat confdefs.h >>conftest.$ac_ext
23297 cat >>conftest.$ac_ext <<_ACEOF
23298 /* end confdefs.h.  */
23299
23300 /* pthread test headers */
23301 #include <pthread.h>
23302 #if HAVE_PTHREADS < 7
23303 #include <errno.h>
23304 #endif
23305 #ifndef NULL
23306 #define NULL (void*)0
23307 #endif
23308
23309 static void *task(p)
23310         void *p;
23311 {
23312         return (void *) (p == NULL);
23313 }
23314
23315 int
23316 main ()
23317 {
23318
23319         /* pthread test function */
23320 #ifndef PTHREAD_CREATE_DETACHED
23321 #define PTHREAD_CREATE_DETACHED 1
23322 #endif
23323         pthread_t t;
23324         int status;
23325         int detach = PTHREAD_CREATE_DETACHED;
23326
23327 #if HAVE_PTHREADS > 4
23328         /* Final pthreads */
23329         pthread_attr_t attr;
23330
23331         status = pthread_attr_init(&attr);
23332         if( status ) return status;
23333
23334 #if HAVE_PTHREADS < 7
23335         status = pthread_attr_setdetachstate(&attr, &detach);
23336         if( status < 0 ) status = errno;
23337 #else
23338         status = pthread_attr_setdetachstate(&attr, detach);
23339 #endif
23340         if( status ) return status;
23341         status = pthread_create( &t, &attr, task, NULL );
23342 #if HAVE_PTHREADS < 7
23343         if( status < 0 ) status = errno;
23344 #endif
23345         if( status ) return status;
23346 #else
23347         /* Draft 4 pthreads */
23348         status = pthread_create( &t, pthread_attr_default, task, NULL );
23349         if( status ) return errno;
23350
23351         /* give thread a chance to complete */
23352         /* it should remain joinable and hence detachable */
23353         sleep( 1 );
23354
23355         status = pthread_detach( &t );
23356         if( status ) return errno;
23357 #endif
23358
23359 #ifdef HAVE_LINUX_THREADS
23360         pthread_kill_other_threads_np();
23361 #endif
23362
23363         return 0;
23364
23365   ;
23366   return 0;
23367 }
23368 _ACEOF
23369 rm -f conftest.$ac_objext conftest$ac_exeext
23370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23371   (eval $ac_link) 2>conftest.er1
23372   ac_status=$?
23373   grep -v '^ *+' conftest.er1 >conftest.err
23374   rm -f conftest.er1
23375   cat conftest.err >&5
23376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377   (exit $ac_status); } &&
23378          { ac_try='test -z "$ac_c_werror_flag"
23379                          || test ! -s conftest.err'
23380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381   (eval $ac_try) 2>&5
23382   ac_status=$?
23383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384   (exit $ac_status); }; } &&
23385          { ac_try='test -s conftest$ac_exeext'
23386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23387   (eval $ac_try) 2>&5
23388   ac_status=$?
23389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390   (exit $ac_status); }; }; then
23391   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23392 else
23393   echo "$as_me: failed program was:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23395
23396 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23397 fi
23398 rm -f conftest.err conftest.$ac_objext \
23399       conftest$ac_exeext conftest.$ac_ext
23400 else
23401   cat >conftest.$ac_ext <<_ACEOF
23402 /* confdefs.h.  */
23403 _ACEOF
23404 cat confdefs.h >>conftest.$ac_ext
23405 cat >>conftest.$ac_ext <<_ACEOF
23406 /* end confdefs.h.  */
23407
23408 /* pthread test headers */
23409 #include <pthread.h>
23410 #if HAVE_PTHREADS < 7
23411 #include <errno.h>
23412 #endif
23413 #ifndef NULL
23414 #define NULL (void*)0
23415 #endif
23416
23417 static void *task(p)
23418         void *p;
23419 {
23420         return (void *) (p == NULL);
23421 }
23422
23423
23424 int main(argc, argv)
23425         int argc;
23426         char **argv;
23427 {
23428
23429         /* pthread test function */
23430 #ifndef PTHREAD_CREATE_DETACHED
23431 #define PTHREAD_CREATE_DETACHED 1
23432 #endif
23433         pthread_t t;
23434         int status;
23435         int detach = PTHREAD_CREATE_DETACHED;
23436
23437 #if HAVE_PTHREADS > 4
23438         /* Final pthreads */
23439         pthread_attr_t attr;
23440
23441         status = pthread_attr_init(&attr);
23442         if( status ) return status;
23443
23444 #if HAVE_PTHREADS < 7
23445         status = pthread_attr_setdetachstate(&attr, &detach);
23446         if( status < 0 ) status = errno;
23447 #else
23448         status = pthread_attr_setdetachstate(&attr, detach);
23449 #endif
23450         if( status ) return status;
23451         status = pthread_create( &t, &attr, task, NULL );
23452 #if HAVE_PTHREADS < 7
23453         if( status < 0 ) status = errno;
23454 #endif
23455         if( status ) return status;
23456 #else
23457         /* Draft 4 pthreads */
23458         status = pthread_create( &t, pthread_attr_default, task, NULL );
23459         if( status ) return errno;
23460
23461         /* give thread a chance to complete */
23462         /* it should remain joinable and hence detachable */
23463         sleep( 1 );
23464
23465         status = pthread_detach( &t );
23466         if( status ) return errno;
23467 #endif
23468
23469 #ifdef HAVE_LINUX_THREADS
23470         pthread_kill_other_threads_np();
23471 #endif
23472
23473         return 0;
23474
23475 }
23476
23477 _ACEOF
23478 rm -f conftest$ac_exeext
23479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23480   (eval $ac_link) 2>&5
23481   ac_status=$?
23482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23485   (eval $ac_try) 2>&5
23486   ac_status=$?
23487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488   (exit $ac_status); }; }; then
23489   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23490 else
23491   echo "$as_me: program exited with status $ac_status" >&5
23492 echo "$as_me: failed program was:" >&5
23493 sed 's/^/| /' conftest.$ac_ext >&5
23494
23495 ( exit $ac_status )
23496 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23497 fi
23498 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23499 fi
23500
23501                 # restore the LIBS
23502                 LIBS="$ol_LIBS"
23503
23504 fi
23505 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23506 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23507
23508         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23509                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23510                 ol_link_threads=posix
23511         fi
23512 fi
23513
23514                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23515 if test "$ol_link_threads" = no ; then
23516         # try -lpthreads -lmach -lexc
23517         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23518 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23519 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23520   echo $ECHO_N "(cached) $ECHO_C" >&6
23521 else
23522
23523                 # save the flags
23524                 ol_LIBS="$LIBS"
23525                 LIBS="-lpthreads -lmach -lexc $LIBS"
23526
23527                 if test "$cross_compiling" = yes; then
23528   cat >conftest.$ac_ext <<_ACEOF
23529 /* confdefs.h.  */
23530 _ACEOF
23531 cat confdefs.h >>conftest.$ac_ext
23532 cat >>conftest.$ac_ext <<_ACEOF
23533 /* end confdefs.h.  */
23534
23535 /* pthread test headers */
23536 #include <pthread.h>
23537 #if HAVE_PTHREADS < 7
23538 #include <errno.h>
23539 #endif
23540 #ifndef NULL
23541 #define NULL (void*)0
23542 #endif
23543
23544 static void *task(p)
23545         void *p;
23546 {
23547         return (void *) (p == NULL);
23548 }
23549
23550 int
23551 main ()
23552 {
23553
23554         /* pthread test function */
23555 #ifndef PTHREAD_CREATE_DETACHED
23556 #define PTHREAD_CREATE_DETACHED 1
23557 #endif
23558         pthread_t t;
23559         int status;
23560         int detach = PTHREAD_CREATE_DETACHED;
23561
23562 #if HAVE_PTHREADS > 4
23563         /* Final pthreads */
23564         pthread_attr_t attr;
23565
23566         status = pthread_attr_init(&attr);
23567         if( status ) return status;
23568
23569 #if HAVE_PTHREADS < 7
23570         status = pthread_attr_setdetachstate(&attr, &detach);
23571         if( status < 0 ) status = errno;
23572 #else
23573         status = pthread_attr_setdetachstate(&attr, detach);
23574 #endif
23575         if( status ) return status;
23576         status = pthread_create( &t, &attr, task, NULL );
23577 #if HAVE_PTHREADS < 7
23578         if( status < 0 ) status = errno;
23579 #endif
23580         if( status ) return status;
23581 #else
23582         /* Draft 4 pthreads */
23583         status = pthread_create( &t, pthread_attr_default, task, NULL );
23584         if( status ) return errno;
23585
23586         /* give thread a chance to complete */
23587         /* it should remain joinable and hence detachable */
23588         sleep( 1 );
23589
23590         status = pthread_detach( &t );
23591         if( status ) return errno;
23592 #endif
23593
23594 #ifdef HAVE_LINUX_THREADS
23595         pthread_kill_other_threads_np();
23596 #endif
23597
23598         return 0;
23599
23600   ;
23601   return 0;
23602 }
23603 _ACEOF
23604 rm -f conftest.$ac_objext conftest$ac_exeext
23605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23606   (eval $ac_link) 2>conftest.er1
23607   ac_status=$?
23608   grep -v '^ *+' conftest.er1 >conftest.err
23609   rm -f conftest.er1
23610   cat conftest.err >&5
23611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612   (exit $ac_status); } &&
23613          { ac_try='test -z "$ac_c_werror_flag"
23614                          || test ! -s conftest.err'
23615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23616   (eval $ac_try) 2>&5
23617   ac_status=$?
23618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619   (exit $ac_status); }; } &&
23620          { ac_try='test -s conftest$ac_exeext'
23621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23622   (eval $ac_try) 2>&5
23623   ac_status=$?
23624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625   (exit $ac_status); }; }; then
23626   ol_cv_pthread_lpthreads_lmach_lexc=yes
23627 else
23628   echo "$as_me: failed program was:" >&5
23629 sed 's/^/| /' conftest.$ac_ext >&5
23630
23631 ol_cv_pthread_lpthreads_lmach_lexc=no
23632 fi
23633 rm -f conftest.err conftest.$ac_objext \
23634       conftest$ac_exeext conftest.$ac_ext
23635 else
23636   cat >conftest.$ac_ext <<_ACEOF
23637 /* confdefs.h.  */
23638 _ACEOF
23639 cat confdefs.h >>conftest.$ac_ext
23640 cat >>conftest.$ac_ext <<_ACEOF
23641 /* end confdefs.h.  */
23642
23643 /* pthread test headers */
23644 #include <pthread.h>
23645 #if HAVE_PTHREADS < 7
23646 #include <errno.h>
23647 #endif
23648 #ifndef NULL
23649 #define NULL (void*)0
23650 #endif
23651
23652 static void *task(p)
23653         void *p;
23654 {
23655         return (void *) (p == NULL);
23656 }
23657
23658
23659 int main(argc, argv)
23660         int argc;
23661         char **argv;
23662 {
23663
23664         /* pthread test function */
23665 #ifndef PTHREAD_CREATE_DETACHED
23666 #define PTHREAD_CREATE_DETACHED 1
23667 #endif
23668         pthread_t t;
23669         int status;
23670         int detach = PTHREAD_CREATE_DETACHED;
23671
23672 #if HAVE_PTHREADS > 4
23673         /* Final pthreads */
23674         pthread_attr_t attr;
23675
23676         status = pthread_attr_init(&attr);
23677         if( status ) return status;
23678
23679 #if HAVE_PTHREADS < 7
23680         status = pthread_attr_setdetachstate(&attr, &detach);
23681         if( status < 0 ) status = errno;
23682 #else
23683         status = pthread_attr_setdetachstate(&attr, detach);
23684 #endif
23685         if( status ) return status;
23686         status = pthread_create( &t, &attr, task, NULL );
23687 #if HAVE_PTHREADS < 7
23688         if( status < 0 ) status = errno;
23689 #endif
23690         if( status ) return status;
23691 #else
23692         /* Draft 4 pthreads */
23693         status = pthread_create( &t, pthread_attr_default, task, NULL );
23694         if( status ) return errno;
23695
23696         /* give thread a chance to complete */
23697         /* it should remain joinable and hence detachable */
23698         sleep( 1 );
23699
23700         status = pthread_detach( &t );
23701         if( status ) return errno;
23702 #endif
23703
23704 #ifdef HAVE_LINUX_THREADS
23705         pthread_kill_other_threads_np();
23706 #endif
23707
23708         return 0;
23709
23710 }
23711
23712 _ACEOF
23713 rm -f conftest$ac_exeext
23714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23715   (eval $ac_link) 2>&5
23716   ac_status=$?
23717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23720   (eval $ac_try) 2>&5
23721   ac_status=$?
23722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723   (exit $ac_status); }; }; then
23724   ol_cv_pthread_lpthreads_lmach_lexc=yes
23725 else
23726   echo "$as_me: program exited with status $ac_status" >&5
23727 echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23729
23730 ( exit $ac_status )
23731 ol_cv_pthread_lpthreads_lmach_lexc=no
23732 fi
23733 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23734 fi
23735
23736                 # restore the LIBS
23737                 LIBS="$ol_LIBS"
23738
23739 fi
23740 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23741 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23742
23743         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23744                 ol_link_pthreads="-lpthreads -lmach -lexc"
23745                 ol_link_threads=posix
23746         fi
23747 fi
23748
23749                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23750 if test "$ol_link_threads" = no ; then
23751         # try -lpthreads -lexc
23752         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23753 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23754 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23755   echo $ECHO_N "(cached) $ECHO_C" >&6
23756 else
23757
23758                 # save the flags
23759                 ol_LIBS="$LIBS"
23760                 LIBS="-lpthreads -lexc $LIBS"
23761
23762                 if test "$cross_compiling" = yes; then
23763   cat >conftest.$ac_ext <<_ACEOF
23764 /* confdefs.h.  */
23765 _ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h.  */
23769
23770 /* pthread test headers */
23771 #include <pthread.h>
23772 #if HAVE_PTHREADS < 7
23773 #include <errno.h>
23774 #endif
23775 #ifndef NULL
23776 #define NULL (void*)0
23777 #endif
23778
23779 static void *task(p)
23780         void *p;
23781 {
23782         return (void *) (p == NULL);
23783 }
23784
23785 int
23786 main ()
23787 {
23788
23789         /* pthread test function */
23790 #ifndef PTHREAD_CREATE_DETACHED
23791 #define PTHREAD_CREATE_DETACHED 1
23792 #endif
23793         pthread_t t;
23794         int status;
23795         int detach = PTHREAD_CREATE_DETACHED;
23796
23797 #if HAVE_PTHREADS > 4
23798         /* Final pthreads */
23799         pthread_attr_t attr;
23800
23801         status = pthread_attr_init(&attr);
23802         if( status ) return status;
23803
23804 #if HAVE_PTHREADS < 7
23805         status = pthread_attr_setdetachstate(&attr, &detach);
23806         if( status < 0 ) status = errno;
23807 #else
23808         status = pthread_attr_setdetachstate(&attr, detach);
23809 #endif
23810         if( status ) return status;
23811         status = pthread_create( &t, &attr, task, NULL );
23812 #if HAVE_PTHREADS < 7
23813         if( status < 0 ) status = errno;
23814 #endif
23815         if( status ) return status;
23816 #else
23817         /* Draft 4 pthreads */
23818         status = pthread_create( &t, pthread_attr_default, task, NULL );
23819         if( status ) return errno;
23820
23821         /* give thread a chance to complete */
23822         /* it should remain joinable and hence detachable */
23823         sleep( 1 );
23824
23825         status = pthread_detach( &t );
23826         if( status ) return errno;
23827 #endif
23828
23829 #ifdef HAVE_LINUX_THREADS
23830         pthread_kill_other_threads_np();
23831 #endif
23832
23833         return 0;
23834
23835   ;
23836   return 0;
23837 }
23838 _ACEOF
23839 rm -f conftest.$ac_objext conftest$ac_exeext
23840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23841   (eval $ac_link) 2>conftest.er1
23842   ac_status=$?
23843   grep -v '^ *+' conftest.er1 >conftest.err
23844   rm -f conftest.er1
23845   cat conftest.err >&5
23846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847   (exit $ac_status); } &&
23848          { ac_try='test -z "$ac_c_werror_flag"
23849                          || test ! -s conftest.err'
23850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851   (eval $ac_try) 2>&5
23852   ac_status=$?
23853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854   (exit $ac_status); }; } &&
23855          { ac_try='test -s conftest$ac_exeext'
23856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857   (eval $ac_try) 2>&5
23858   ac_status=$?
23859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860   (exit $ac_status); }; }; then
23861   ol_cv_pthread_lpthreads_lexc=yes
23862 else
23863   echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23865
23866 ol_cv_pthread_lpthreads_lexc=no
23867 fi
23868 rm -f conftest.err conftest.$ac_objext \
23869       conftest$ac_exeext conftest.$ac_ext
23870 else
23871   cat >conftest.$ac_ext <<_ACEOF
23872 /* confdefs.h.  */
23873 _ACEOF
23874 cat confdefs.h >>conftest.$ac_ext
23875 cat >>conftest.$ac_ext <<_ACEOF
23876 /* end confdefs.h.  */
23877
23878 /* pthread test headers */
23879 #include <pthread.h>
23880 #if HAVE_PTHREADS < 7
23881 #include <errno.h>
23882 #endif
23883 #ifndef NULL
23884 #define NULL (void*)0
23885 #endif
23886
23887 static void *task(p)
23888         void *p;
23889 {
23890         return (void *) (p == NULL);
23891 }
23892
23893
23894 int main(argc, argv)
23895         int argc;
23896         char **argv;
23897 {
23898
23899         /* pthread test function */
23900 #ifndef PTHREAD_CREATE_DETACHED
23901 #define PTHREAD_CREATE_DETACHED 1
23902 #endif
23903         pthread_t t;
23904         int status;
23905         int detach = PTHREAD_CREATE_DETACHED;
23906
23907 #if HAVE_PTHREADS > 4
23908         /* Final pthreads */
23909         pthread_attr_t attr;
23910
23911         status = pthread_attr_init(&attr);
23912         if( status ) return status;
23913
23914 #if HAVE_PTHREADS < 7
23915         status = pthread_attr_setdetachstate(&attr, &detach);
23916         if( status < 0 ) status = errno;
23917 #else
23918         status = pthread_attr_setdetachstate(&attr, detach);
23919 #endif
23920         if( status ) return status;
23921         status = pthread_create( &t, &attr, task, NULL );
23922 #if HAVE_PTHREADS < 7
23923         if( status < 0 ) status = errno;
23924 #endif
23925         if( status ) return status;
23926 #else
23927         /* Draft 4 pthreads */
23928         status = pthread_create( &t, pthread_attr_default, task, NULL );
23929         if( status ) return errno;
23930
23931         /* give thread a chance to complete */
23932         /* it should remain joinable and hence detachable */
23933         sleep( 1 );
23934
23935         status = pthread_detach( &t );
23936         if( status ) return errno;
23937 #endif
23938
23939 #ifdef HAVE_LINUX_THREADS
23940         pthread_kill_other_threads_np();
23941 #endif
23942
23943         return 0;
23944
23945 }
23946
23947 _ACEOF
23948 rm -f conftest$ac_exeext
23949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23950   (eval $ac_link) 2>&5
23951   ac_status=$?
23952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23955   (eval $ac_try) 2>&5
23956   ac_status=$?
23957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958   (exit $ac_status); }; }; then
23959   ol_cv_pthread_lpthreads_lexc=yes
23960 else
23961   echo "$as_me: program exited with status $ac_status" >&5
23962 echo "$as_me: failed program was:" >&5
23963 sed 's/^/| /' conftest.$ac_ext >&5
23964
23965 ( exit $ac_status )
23966 ol_cv_pthread_lpthreads_lexc=no
23967 fi
23968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23969 fi
23970
23971                 # restore the LIBS
23972                 LIBS="$ol_LIBS"
23973
23974 fi
23975 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23976 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23977
23978         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23979                 ol_link_pthreads="-lpthreads -lexc"
23980                 ol_link_threads=posix
23981         fi
23982 fi
23983
23984
23985                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23986 if test "$ol_link_threads" = no ; then
23987         # try -lpthreads
23988         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23989 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23990 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23991   echo $ECHO_N "(cached) $ECHO_C" >&6
23992 else
23993
23994                 # save the flags
23995                 ol_LIBS="$LIBS"
23996                 LIBS="-lpthreads $LIBS"
23997
23998                 if test "$cross_compiling" = yes; then
23999   cat >conftest.$ac_ext <<_ACEOF
24000 /* confdefs.h.  */
24001 _ACEOF
24002 cat confdefs.h >>conftest.$ac_ext
24003 cat >>conftest.$ac_ext <<_ACEOF
24004 /* end confdefs.h.  */
24005
24006 /* pthread test headers */
24007 #include <pthread.h>
24008 #if HAVE_PTHREADS < 7
24009 #include <errno.h>
24010 #endif
24011 #ifndef NULL
24012 #define NULL (void*)0
24013 #endif
24014
24015 static void *task(p)
24016         void *p;
24017 {
24018         return (void *) (p == NULL);
24019 }
24020
24021 int
24022 main ()
24023 {
24024
24025         /* pthread test function */
24026 #ifndef PTHREAD_CREATE_DETACHED
24027 #define PTHREAD_CREATE_DETACHED 1
24028 #endif
24029         pthread_t t;
24030         int status;
24031         int detach = PTHREAD_CREATE_DETACHED;
24032
24033 #if HAVE_PTHREADS > 4
24034         /* Final pthreads */
24035         pthread_attr_t attr;
24036
24037         status = pthread_attr_init(&attr);
24038         if( status ) return status;
24039
24040 #if HAVE_PTHREADS < 7
24041         status = pthread_attr_setdetachstate(&attr, &detach);
24042         if( status < 0 ) status = errno;
24043 #else
24044         status = pthread_attr_setdetachstate(&attr, detach);
24045 #endif
24046         if( status ) return status;
24047         status = pthread_create( &t, &attr, task, NULL );
24048 #if HAVE_PTHREADS < 7
24049         if( status < 0 ) status = errno;
24050 #endif
24051         if( status ) return status;
24052 #else
24053         /* Draft 4 pthreads */
24054         status = pthread_create( &t, pthread_attr_default, task, NULL );
24055         if( status ) return errno;
24056
24057         /* give thread a chance to complete */
24058         /* it should remain joinable and hence detachable */
24059         sleep( 1 );
24060
24061         status = pthread_detach( &t );
24062         if( status ) return errno;
24063 #endif
24064
24065 #ifdef HAVE_LINUX_THREADS
24066         pthread_kill_other_threads_np();
24067 #endif
24068
24069         return 0;
24070
24071   ;
24072   return 0;
24073 }
24074 _ACEOF
24075 rm -f conftest.$ac_objext conftest$ac_exeext
24076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24077   (eval $ac_link) 2>conftest.er1
24078   ac_status=$?
24079   grep -v '^ *+' conftest.er1 >conftest.err
24080   rm -f conftest.er1
24081   cat conftest.err >&5
24082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083   (exit $ac_status); } &&
24084          { ac_try='test -z "$ac_c_werror_flag"
24085                          || test ! -s conftest.err'
24086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24087   (eval $ac_try) 2>&5
24088   ac_status=$?
24089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090   (exit $ac_status); }; } &&
24091          { ac_try='test -s conftest$ac_exeext'
24092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093   (eval $ac_try) 2>&5
24094   ac_status=$?
24095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096   (exit $ac_status); }; }; then
24097   ol_cv_pthread_lib_lpthreads=yes
24098 else
24099   echo "$as_me: failed program was:" >&5
24100 sed 's/^/| /' conftest.$ac_ext >&5
24101
24102 ol_cv_pthread_lib_lpthreads=no
24103 fi
24104 rm -f conftest.err conftest.$ac_objext \
24105       conftest$ac_exeext conftest.$ac_ext
24106 else
24107   cat >conftest.$ac_ext <<_ACEOF
24108 /* confdefs.h.  */
24109 _ACEOF
24110 cat confdefs.h >>conftest.$ac_ext
24111 cat >>conftest.$ac_ext <<_ACEOF
24112 /* end confdefs.h.  */
24113
24114 /* pthread test headers */
24115 #include <pthread.h>
24116 #if HAVE_PTHREADS < 7
24117 #include <errno.h>
24118 #endif
24119 #ifndef NULL
24120 #define NULL (void*)0
24121 #endif
24122
24123 static void *task(p)
24124         void *p;
24125 {
24126         return (void *) (p == NULL);
24127 }
24128
24129
24130 int main(argc, argv)
24131         int argc;
24132         char **argv;
24133 {
24134
24135         /* pthread test function */
24136 #ifndef PTHREAD_CREATE_DETACHED
24137 #define PTHREAD_CREATE_DETACHED 1
24138 #endif
24139         pthread_t t;
24140         int status;
24141         int detach = PTHREAD_CREATE_DETACHED;
24142
24143 #if HAVE_PTHREADS > 4
24144         /* Final pthreads */
24145         pthread_attr_t attr;
24146
24147         status = pthread_attr_init(&attr);
24148         if( status ) return status;
24149
24150 #if HAVE_PTHREADS < 7
24151         status = pthread_attr_setdetachstate(&attr, &detach);
24152         if( status < 0 ) status = errno;
24153 #else
24154         status = pthread_attr_setdetachstate(&attr, detach);
24155 #endif
24156         if( status ) return status;
24157         status = pthread_create( &t, &attr, task, NULL );
24158 #if HAVE_PTHREADS < 7
24159         if( status < 0 ) status = errno;
24160 #endif
24161         if( status ) return status;
24162 #else
24163         /* Draft 4 pthreads */
24164         status = pthread_create( &t, pthread_attr_default, task, NULL );
24165         if( status ) return errno;
24166
24167         /* give thread a chance to complete */
24168         /* it should remain joinable and hence detachable */
24169         sleep( 1 );
24170
24171         status = pthread_detach( &t );
24172         if( status ) return errno;
24173 #endif
24174
24175 #ifdef HAVE_LINUX_THREADS
24176         pthread_kill_other_threads_np();
24177 #endif
24178
24179         return 0;
24180
24181 }
24182
24183 _ACEOF
24184 rm -f conftest$ac_exeext
24185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24186   (eval $ac_link) 2>&5
24187   ac_status=$?
24188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24191   (eval $ac_try) 2>&5
24192   ac_status=$?
24193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194   (exit $ac_status); }; }; then
24195   ol_cv_pthread_lib_lpthreads=yes
24196 else
24197   echo "$as_me: program exited with status $ac_status" >&5
24198 echo "$as_me: failed program was:" >&5
24199 sed 's/^/| /' conftest.$ac_ext >&5
24200
24201 ( exit $ac_status )
24202 ol_cv_pthread_lib_lpthreads=no
24203 fi
24204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24205 fi
24206
24207                 # restore the LIBS
24208                 LIBS="$ol_LIBS"
24209
24210 fi
24211 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24212 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24213
24214         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24215                 ol_link_pthreads="-lpthreads"
24216                 ol_link_threads=posix
24217         fi
24218 fi
24219
24220
24221                 if test $ol_link_threads != no ; then
24222                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24223
24224                                                 save_CPPFLAGS="$CPPFLAGS"
24225                         save_LIBS="$LIBS"
24226                         LIBS="$LTHREAD_LIBS $LIBS"
24227
24228
24229
24230
24231 for ac_func in sched_yield pthread_yield thr_yield
24232 do
24233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24234 echo "$as_me:$LINENO: checking for $ac_func" >&5
24235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24236 if eval "test \"\${$as_ac_var+set}\" = set"; then
24237   echo $ECHO_N "(cached) $ECHO_C" >&6
24238 else
24239   cat >conftest.$ac_ext <<_ACEOF
24240 /* confdefs.h.  */
24241 _ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h.  */
24245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24247 #define $ac_func innocuous_$ac_func
24248
24249 /* System header to define __stub macros and hopefully few prototypes,
24250     which can conflict with char $ac_func (); below.
24251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24252     <limits.h> exists even on freestanding compilers.  */
24253
24254 #ifdef __STDC__
24255 # include <limits.h>
24256 #else
24257 # include <assert.h>
24258 #endif
24259
24260 #undef $ac_func
24261
24262 /* Override any gcc2 internal prototype to avoid an error.  */
24263 #ifdef __cplusplus
24264 extern "C"
24265 {
24266 #endif
24267 /* We use char because int might match the return type of a gcc2
24268    builtin and then its argument prototype would still apply.  */
24269 char $ac_func ();
24270 /* The GNU C library defines this for functions which it implements
24271     to always fail with ENOSYS.  Some functions are actually named
24272     something starting with __ and the normal name is an alias.  */
24273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24274 choke me
24275 #else
24276 char (*f) () = $ac_func;
24277 #endif
24278 #ifdef __cplusplus
24279 }
24280 #endif
24281
24282 int
24283 main ()
24284 {
24285 return f != $ac_func;
24286   ;
24287   return 0;
24288 }
24289 _ACEOF
24290 rm -f conftest.$ac_objext conftest$ac_exeext
24291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24292   (eval $ac_link) 2>conftest.er1
24293   ac_status=$?
24294   grep -v '^ *+' conftest.er1 >conftest.err
24295   rm -f conftest.er1
24296   cat conftest.err >&5
24297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298   (exit $ac_status); } &&
24299          { ac_try='test -z "$ac_c_werror_flag"
24300                          || test ! -s conftest.err'
24301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24302   (eval $ac_try) 2>&5
24303   ac_status=$?
24304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305   (exit $ac_status); }; } &&
24306          { ac_try='test -s conftest$ac_exeext'
24307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308   (eval $ac_try) 2>&5
24309   ac_status=$?
24310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311   (exit $ac_status); }; }; then
24312   eval "$as_ac_var=yes"
24313 else
24314   echo "$as_me: failed program was:" >&5
24315 sed 's/^/| /' conftest.$ac_ext >&5
24316
24317 eval "$as_ac_var=no"
24318 fi
24319 rm -f conftest.err conftest.$ac_objext \
24320       conftest$ac_exeext conftest.$ac_ext
24321 fi
24322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24324 if test `eval echo '${'$as_ac_var'}'` = yes; then
24325   cat >>confdefs.h <<_ACEOF
24326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24327 _ACEOF
24328
24329 fi
24330 done
24331
24332
24333                         if test $ac_cv_func_sched_yield = no &&
24334                            test $ac_cv_func_pthread_yield = no &&
24335                            test $ac_cv_func_thr_yield = no ; then
24336                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24337 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24338 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24339   echo $ECHO_N "(cached) $ECHO_C" >&6
24340 else
24341   ac_check_lib_save_LIBS=$LIBS
24342 LIBS="-lrt  $LIBS"
24343 cat >conftest.$ac_ext <<_ACEOF
24344 /* confdefs.h.  */
24345 _ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h.  */
24349
24350 /* Override any gcc2 internal prototype to avoid an error.  */
24351 #ifdef __cplusplus
24352 extern "C"
24353 #endif
24354 /* We use char because int might match the return type of a gcc2
24355    builtin and then its argument prototype would still apply.  */
24356 char sched_yield ();
24357 int
24358 main ()
24359 {
24360 sched_yield ();
24361   ;
24362   return 0;
24363 }
24364 _ACEOF
24365 rm -f conftest.$ac_objext conftest$ac_exeext
24366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24367   (eval $ac_link) 2>conftest.er1
24368   ac_status=$?
24369   grep -v '^ *+' conftest.er1 >conftest.err
24370   rm -f conftest.er1
24371   cat conftest.err >&5
24372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373   (exit $ac_status); } &&
24374          { ac_try='test -z "$ac_c_werror_flag"
24375                          || test ! -s conftest.err'
24376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24377   (eval $ac_try) 2>&5
24378   ac_status=$?
24379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380   (exit $ac_status); }; } &&
24381          { ac_try='test -s conftest$ac_exeext'
24382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24383   (eval $ac_try) 2>&5
24384   ac_status=$?
24385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386   (exit $ac_status); }; }; then
24387   ac_cv_lib_rt_sched_yield=yes
24388 else
24389   echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24391
24392 ac_cv_lib_rt_sched_yield=no
24393 fi
24394 rm -f conftest.err conftest.$ac_objext \
24395       conftest$ac_exeext conftest.$ac_ext
24396 LIBS=$ac_check_lib_save_LIBS
24397 fi
24398 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24399 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24400 if test $ac_cv_lib_rt_sched_yield = yes; then
24401   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24402
24403 cat >>confdefs.h <<\_ACEOF
24404 #define HAVE_SCHED_YIELD 1
24405 _ACEOF
24406
24407                                         ac_cv_func_sched_yield=yes
24408 else
24409   ac_cv_func_sched_yield=no
24410 fi
24411
24412                         fi
24413                         if test $ac_cv_func_sched_yield = no &&
24414                            test $ac_cv_func_pthread_yield = no &&
24415                            test "$ac_cv_func_thr_yield" = no ; then
24416                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24417 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24418                         fi
24419
24420
24421 for ac_func in pthread_kill
24422 do
24423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24424 echo "$as_me:$LINENO: checking for $ac_func" >&5
24425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24426 if eval "test \"\${$as_ac_var+set}\" = set"; then
24427   echo $ECHO_N "(cached) $ECHO_C" >&6
24428 else
24429   cat >conftest.$ac_ext <<_ACEOF
24430 /* confdefs.h.  */
24431 _ACEOF
24432 cat confdefs.h >>conftest.$ac_ext
24433 cat >>conftest.$ac_ext <<_ACEOF
24434 /* end confdefs.h.  */
24435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24437 #define $ac_func innocuous_$ac_func
24438
24439 /* System header to define __stub macros and hopefully few prototypes,
24440     which can conflict with char $ac_func (); below.
24441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24442     <limits.h> exists even on freestanding compilers.  */
24443
24444 #ifdef __STDC__
24445 # include <limits.h>
24446 #else
24447 # include <assert.h>
24448 #endif
24449
24450 #undef $ac_func
24451
24452 /* Override any gcc2 internal prototype to avoid an error.  */
24453 #ifdef __cplusplus
24454 extern "C"
24455 {
24456 #endif
24457 /* We use char because int might match the return type of a gcc2
24458    builtin and then its argument prototype would still apply.  */
24459 char $ac_func ();
24460 /* The GNU C library defines this for functions which it implements
24461     to always fail with ENOSYS.  Some functions are actually named
24462     something starting with __ and the normal name is an alias.  */
24463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24464 choke me
24465 #else
24466 char (*f) () = $ac_func;
24467 #endif
24468 #ifdef __cplusplus
24469 }
24470 #endif
24471
24472 int
24473 main ()
24474 {
24475 return f != $ac_func;
24476   ;
24477   return 0;
24478 }
24479 _ACEOF
24480 rm -f conftest.$ac_objext conftest$ac_exeext
24481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24482   (eval $ac_link) 2>conftest.er1
24483   ac_status=$?
24484   grep -v '^ *+' conftest.er1 >conftest.err
24485   rm -f conftest.er1
24486   cat conftest.err >&5
24487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488   (exit $ac_status); } &&
24489          { ac_try='test -z "$ac_c_werror_flag"
24490                          || test ! -s conftest.err'
24491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24492   (eval $ac_try) 2>&5
24493   ac_status=$?
24494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495   (exit $ac_status); }; } &&
24496          { ac_try='test -s conftest$ac_exeext'
24497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24498   (eval $ac_try) 2>&5
24499   ac_status=$?
24500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501   (exit $ac_status); }; }; then
24502   eval "$as_ac_var=yes"
24503 else
24504   echo "$as_me: failed program was:" >&5
24505 sed 's/^/| /' conftest.$ac_ext >&5
24506
24507 eval "$as_ac_var=no"
24508 fi
24509 rm -f conftest.err conftest.$ac_objext \
24510       conftest$ac_exeext conftest.$ac_ext
24511 fi
24512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24514 if test `eval echo '${'$as_ac_var'}'` = yes; then
24515   cat >>confdefs.h <<_ACEOF
24516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24517 _ACEOF
24518
24519 fi
24520 done
24521
24522
24523                                                                         echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24524 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
24525 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24526   echo $ECHO_N "(cached) $ECHO_C" >&6
24527 else
24528
24529                                                                 cat >conftest.$ac_ext <<_ACEOF
24530 /* confdefs.h.  */
24531 _ACEOF
24532 cat confdefs.h >>conftest.$ac_ext
24533 cat >>conftest.$ac_ext <<_ACEOF
24534 /* end confdefs.h.  */
24535
24536 #include <pthread.h>
24537 pthread_rwlock_t rwlock;
24538
24539 int
24540 main ()
24541 {
24542 pthread_rwlock_destroy(&rwlock);
24543   ;
24544   return 0;
24545 }
24546 _ACEOF
24547 rm -f conftest.$ac_objext conftest$ac_exeext
24548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24549   (eval $ac_link) 2>conftest.er1
24550   ac_status=$?
24551   grep -v '^ *+' conftest.er1 >conftest.err
24552   rm -f conftest.er1
24553   cat conftest.err >&5
24554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555   (exit $ac_status); } &&
24556          { ac_try='test -z "$ac_c_werror_flag"
24557                          || test ! -s conftest.err'
24558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24559   (eval $ac_try) 2>&5
24560   ac_status=$?
24561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562   (exit $ac_status); }; } &&
24563          { ac_try='test -s conftest$ac_exeext'
24564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565   (eval $ac_try) 2>&5
24566   ac_status=$?
24567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568   (exit $ac_status); }; }; then
24569   ol_cv_func_pthread_rwlock_destroy=yes
24570 else
24571   echo "$as_me: failed program was:" >&5
24572 sed 's/^/| /' conftest.$ac_ext >&5
24573
24574 ol_cv_func_pthread_rwlock_destroy=no
24575 fi
24576 rm -f conftest.err conftest.$ac_objext \
24577       conftest$ac_exeext conftest.$ac_ext
24578
24579 fi
24580 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24581 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
24582                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24583
24584 cat >>confdefs.h <<\_ACEOF
24585 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24586 _ACEOF
24587
24588                         fi
24589
24590                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24591 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24592 if test "${ol_cv_func_pthread_detach+set}" = set; then
24593   echo $ECHO_N "(cached) $ECHO_C" >&6
24594 else
24595
24596                                                                 cat >conftest.$ac_ext <<_ACEOF
24597 /* confdefs.h.  */
24598 _ACEOF
24599 cat confdefs.h >>conftest.$ac_ext
24600 cat >>conftest.$ac_ext <<_ACEOF
24601 /* end confdefs.h.  */
24602
24603 #include <pthread.h>
24604 #ifndef NULL
24605 #define NULL (void*)0
24606 #endif
24607
24608 int
24609 main ()
24610 {
24611 pthread_detach(NULL);
24612   ;
24613   return 0;
24614 }
24615 _ACEOF
24616 rm -f conftest.$ac_objext conftest$ac_exeext
24617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24618   (eval $ac_link) 2>conftest.er1
24619   ac_status=$?
24620   grep -v '^ *+' conftest.er1 >conftest.err
24621   rm -f conftest.er1
24622   cat conftest.err >&5
24623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624   (exit $ac_status); } &&
24625          { ac_try='test -z "$ac_c_werror_flag"
24626                          || test ! -s conftest.err'
24627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24628   (eval $ac_try) 2>&5
24629   ac_status=$?
24630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631   (exit $ac_status); }; } &&
24632          { ac_try='test -s conftest$ac_exeext'
24633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24634   (eval $ac_try) 2>&5
24635   ac_status=$?
24636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637   (exit $ac_status); }; }; then
24638   ol_cv_func_pthread_detach=yes
24639 else
24640   echo "$as_me: failed program was:" >&5
24641 sed 's/^/| /' conftest.$ac_ext >&5
24642
24643 ol_cv_func_pthread_detach=no
24644 fi
24645 rm -f conftest.err conftest.$ac_objext \
24646       conftest$ac_exeext conftest.$ac_ext
24647
24648 fi
24649 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24650 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24651
24652                         if test $ol_cv_func_pthread_detach = no ; then
24653                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24654 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24655    { (exit 1); exit 1; }; }
24656                         fi
24657
24658
24659 cat >>confdefs.h <<\_ACEOF
24660 #define HAVE_PTHREAD_DETACH 1
24661 _ACEOF
24662
24663
24664
24665
24666
24667
24668 for ac_func in \
24669                                 pthread_setconcurrency \
24670                                 pthread_getconcurrency \
24671                                 thr_setconcurrency \
24672                                 thr_getconcurrency \
24673
24674 do
24675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24676 echo "$as_me:$LINENO: checking for $ac_func" >&5
24677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24678 if eval "test \"\${$as_ac_var+set}\" = set"; then
24679   echo $ECHO_N "(cached) $ECHO_C" >&6
24680 else
24681   cat >conftest.$ac_ext <<_ACEOF
24682 /* confdefs.h.  */
24683 _ACEOF
24684 cat confdefs.h >>conftest.$ac_ext
24685 cat >>conftest.$ac_ext <<_ACEOF
24686 /* end confdefs.h.  */
24687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24689 #define $ac_func innocuous_$ac_func
24690
24691 /* System header to define __stub macros and hopefully few prototypes,
24692     which can conflict with char $ac_func (); below.
24693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24694     <limits.h> exists even on freestanding compilers.  */
24695
24696 #ifdef __STDC__
24697 # include <limits.h>
24698 #else
24699 # include <assert.h>
24700 #endif
24701
24702 #undef $ac_func
24703
24704 /* Override any gcc2 internal prototype to avoid an error.  */
24705 #ifdef __cplusplus
24706 extern "C"
24707 {
24708 #endif
24709 /* We use char because int might match the return type of a gcc2
24710    builtin and then its argument prototype would still apply.  */
24711 char $ac_func ();
24712 /* The GNU C library defines this for functions which it implements
24713     to always fail with ENOSYS.  Some functions are actually named
24714     something starting with __ and the normal name is an alias.  */
24715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24716 choke me
24717 #else
24718 char (*f) () = $ac_func;
24719 #endif
24720 #ifdef __cplusplus
24721 }
24722 #endif
24723
24724 int
24725 main ()
24726 {
24727 return f != $ac_func;
24728   ;
24729   return 0;
24730 }
24731 _ACEOF
24732 rm -f conftest.$ac_objext conftest$ac_exeext
24733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24734   (eval $ac_link) 2>conftest.er1
24735   ac_status=$?
24736   grep -v '^ *+' conftest.er1 >conftest.err
24737   rm -f conftest.er1
24738   cat conftest.err >&5
24739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740   (exit $ac_status); } &&
24741          { ac_try='test -z "$ac_c_werror_flag"
24742                          || test ! -s conftest.err'
24743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24744   (eval $ac_try) 2>&5
24745   ac_status=$?
24746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747   (exit $ac_status); }; } &&
24748          { ac_try='test -s conftest$ac_exeext'
24749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24750   (eval $ac_try) 2>&5
24751   ac_status=$?
24752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753   (exit $ac_status); }; }; then
24754   eval "$as_ac_var=yes"
24755 else
24756   echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24758
24759 eval "$as_ac_var=no"
24760 fi
24761 rm -f conftest.err conftest.$ac_objext \
24762       conftest$ac_exeext conftest.$ac_ext
24763 fi
24764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24766 if test `eval echo '${'$as_ac_var'}'` = yes; then
24767   cat >>confdefs.h <<_ACEOF
24768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24769 _ACEOF
24770
24771 fi
24772 done
24773
24774
24775
24776
24777 for ac_func in pthread_kill_other_threads_np
24778 do
24779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24780 echo "$as_me:$LINENO: checking for $ac_func" >&5
24781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24782 if eval "test \"\${$as_ac_var+set}\" = set"; then
24783   echo $ECHO_N "(cached) $ECHO_C" >&6
24784 else
24785   cat >conftest.$ac_ext <<_ACEOF
24786 /* confdefs.h.  */
24787 _ACEOF
24788 cat confdefs.h >>conftest.$ac_ext
24789 cat >>conftest.$ac_ext <<_ACEOF
24790 /* end confdefs.h.  */
24791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24793 #define $ac_func innocuous_$ac_func
24794
24795 /* System header to define __stub macros and hopefully few prototypes,
24796     which can conflict with char $ac_func (); below.
24797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24798     <limits.h> exists even on freestanding compilers.  */
24799
24800 #ifdef __STDC__
24801 # include <limits.h>
24802 #else
24803 # include <assert.h>
24804 #endif
24805
24806 #undef $ac_func
24807
24808 /* Override any gcc2 internal prototype to avoid an error.  */
24809 #ifdef __cplusplus
24810 extern "C"
24811 {
24812 #endif
24813 /* We use char because int might match the return type of a gcc2
24814    builtin and then its argument prototype would still apply.  */
24815 char $ac_func ();
24816 /* The GNU C library defines this for functions which it implements
24817     to always fail with ENOSYS.  Some functions are actually named
24818     something starting with __ and the normal name is an alias.  */
24819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24820 choke me
24821 #else
24822 char (*f) () = $ac_func;
24823 #endif
24824 #ifdef __cplusplus
24825 }
24826 #endif
24827
24828 int
24829 main ()
24830 {
24831 return f != $ac_func;
24832   ;
24833   return 0;
24834 }
24835 _ACEOF
24836 rm -f conftest.$ac_objext conftest$ac_exeext
24837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24838   (eval $ac_link) 2>conftest.er1
24839   ac_status=$?
24840   grep -v '^ *+' conftest.er1 >conftest.err
24841   rm -f conftest.er1
24842   cat conftest.err >&5
24843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844   (exit $ac_status); } &&
24845          { ac_try='test -z "$ac_c_werror_flag"
24846                          || test ! -s conftest.err'
24847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24848   (eval $ac_try) 2>&5
24849   ac_status=$?
24850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851   (exit $ac_status); }; } &&
24852          { ac_try='test -s conftest$ac_exeext'
24853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24854   (eval $ac_try) 2>&5
24855   ac_status=$?
24856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857   (exit $ac_status); }; }; then
24858   eval "$as_ac_var=yes"
24859 else
24860   echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24862
24863 eval "$as_ac_var=no"
24864 fi
24865 rm -f conftest.err conftest.$ac_objext \
24866       conftest$ac_exeext conftest.$ac_ext
24867 fi
24868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24870 if test `eval echo '${'$as_ac_var'}'` = yes; then
24871   cat >>confdefs.h <<_ACEOF
24872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24873 _ACEOF
24874
24875 fi
24876 done
24877
24878         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24879 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24880 if test "${ol_cv_sys_linux_threads+set}" = set; then
24881   echo $ECHO_N "(cached) $ECHO_C" >&6
24882 else
24883   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24884 fi
24885 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24886 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24887
24888
24889
24890
24891         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24892 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24893 if test "${ol_cv_linux_threads+set}" = set; then
24894   echo $ECHO_N "(cached) $ECHO_C" >&6
24895 else
24896
24897                 if test $ol_cv_header_linux_threads = yes &&
24898                    test $ol_cv_sys_linux_threads = yes; then
24899                         ol_cv_linux_threads=yes
24900                 elif test $ol_cv_header_linux_threads = no &&
24901                      test $ol_cv_sys_linux_threads = no; then
24902                         ol_cv_linux_threads=no
24903                 else
24904                         ol_cv_linux_threads=error
24905                 fi
24906
24907 fi
24908 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24909 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24910
24911
24912                         if test $ol_cv_linux_threads = error; then
24913                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24914 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24915    { (exit 1); exit 1; }; };
24916                         fi
24917
24918                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24919 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24920 if test "${ol_cv_pthread_create_works+set}" = set; then
24921   echo $ECHO_N "(cached) $ECHO_C" >&6
24922 else
24923
24924                         if test "$cross_compiling" = yes; then
24925                                 ol_cv_pthread_create_works=yes
24926 else
24927   cat >conftest.$ac_ext <<_ACEOF
24928 /* confdefs.h.  */
24929 _ACEOF
24930 cat confdefs.h >>conftest.$ac_ext
24931 cat >>conftest.$ac_ext <<_ACEOF
24932 /* end confdefs.h.  */
24933
24934 /* pthread test headers */
24935 #include <pthread.h>
24936 #if HAVE_PTHREADS < 7
24937 #include <errno.h>
24938 #endif
24939 #ifndef NULL
24940 #define NULL (void*)0
24941 #endif
24942
24943 static void *task(p)
24944         void *p;
24945 {
24946         return (void *) (p == NULL);
24947 }
24948
24949
24950 int main(argc, argv)
24951         int argc;
24952         char **argv;
24953 {
24954
24955         /* pthread test function */
24956 #ifndef PTHREAD_CREATE_DETACHED
24957 #define PTHREAD_CREATE_DETACHED 1
24958 #endif
24959         pthread_t t;
24960         int status;
24961         int detach = PTHREAD_CREATE_DETACHED;
24962
24963 #if HAVE_PTHREADS > 4
24964         /* Final pthreads */
24965         pthread_attr_t attr;
24966
24967         status = pthread_attr_init(&attr);
24968         if( status ) return status;
24969
24970 #if HAVE_PTHREADS < 7
24971         status = pthread_attr_setdetachstate(&attr, &detach);
24972         if( status < 0 ) status = errno;
24973 #else
24974         status = pthread_attr_setdetachstate(&attr, detach);
24975 #endif
24976         if( status ) return status;
24977         status = pthread_create( &t, &attr, task, NULL );
24978 #if HAVE_PTHREADS < 7
24979         if( status < 0 ) status = errno;
24980 #endif
24981         if( status ) return status;
24982 #else
24983         /* Draft 4 pthreads */
24984         status = pthread_create( &t, pthread_attr_default, task, NULL );
24985         if( status ) return errno;
24986
24987         /* give thread a chance to complete */
24988         /* it should remain joinable and hence detachable */
24989         sleep( 1 );
24990
24991         status = pthread_detach( &t );
24992         if( status ) return errno;
24993 #endif
24994
24995 #ifdef HAVE_LINUX_THREADS
24996         pthread_kill_other_threads_np();
24997 #endif
24998
24999         return 0;
25000
25001 }
25002
25003 _ACEOF
25004 rm -f conftest$ac_exeext
25005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25006   (eval $ac_link) 2>&5
25007   ac_status=$?
25008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25011   (eval $ac_try) 2>&5
25012   ac_status=$?
25013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014   (exit $ac_status); }; }; then
25015   ol_cv_pthread_create_works=yes
25016 else
25017   echo "$as_me: program exited with status $ac_status" >&5
25018 echo "$as_me: failed program was:" >&5
25019 sed 's/^/| /' conftest.$ac_ext >&5
25020
25021 ( exit $ac_status )
25022 ol_cv_pthread_create_works=no
25023 fi
25024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25025 fi
25026 fi
25027 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25028 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
25029
25030                         if test $ol_cv_pthread_create_works = no ; then
25031                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25032 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25033    { (exit 1); exit 1; }; }
25034                         fi
25035
25036                         ol_replace_broken_yield=no
25037
25038                         if test $ol_replace_broken_yield = yes ; then
25039
25040 cat >>confdefs.h <<\_ACEOF
25041 #define REPLACE_BROKEN_YIELD 1
25042 _ACEOF
25043
25044                         fi
25045
25046                                                 if test $ol_with_yielding_select = auto ; then
25047                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25048 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
25049 if test "${ol_cv_pthread_select_yields+set}" = set; then
25050   echo $ECHO_N "(cached) $ECHO_C" >&6
25051 else
25052
25053                                 if test "$cross_compiling" = yes; then
25054   ol_cv_pthread_select_yields=cross
25055 else
25056   cat >conftest.$ac_ext <<_ACEOF
25057 /* confdefs.h.  */
25058 _ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h.  */
25062
25063 #include <sys/types.h>
25064 #include <sys/time.h>
25065 #include <unistd.h>
25066 #include <pthread.h>
25067 #ifndef NULL
25068 #define NULL (void*) 0
25069 #endif
25070
25071 static int fildes[2];
25072
25073 static void *task(p)
25074         void *p;
25075 {
25076         int i;
25077         struct timeval tv;
25078
25079         fd_set rfds;
25080
25081         tv.tv_sec=10;
25082         tv.tv_usec=0;
25083
25084         FD_ZERO(&rfds);
25085         FD_SET(fildes[0], &rfds);
25086
25087         /* we're not interested in any fds */
25088         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25089
25090         if(i < 0) {
25091                 perror("select");
25092                 exit(10);
25093         }
25094
25095         exit(0); /* if we exit here, the select blocked the whole process */
25096 }
25097
25098 int main(argc, argv)
25099         int argc;
25100         char **argv;
25101 {
25102         pthread_t t;
25103
25104         /* create a pipe to select */
25105         if(pipe(&fildes[0])) {
25106                 perror("select");
25107                 exit(1);
25108         }
25109
25110 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25111         (void) pthread_setconcurrency(2);
25112 #else
25113 #ifdef HAVE_THR_SETCONCURRENCY
25114         /* Set Solaris LWP concurrency to 2 */
25115         thr_setconcurrency(2);
25116 #endif
25117 #endif
25118
25119 #if HAVE_PTHREADS < 6
25120         pthread_create(&t, pthread_attr_default, task, NULL);
25121 #else
25122         pthread_create(&t, NULL, task, NULL);
25123 #endif
25124
25125         /* make sure task runs first */
25126 #ifdef HAVE_THR_YIELD
25127         thr_yield();
25128 #elif defined( HAVE_SCHED_YIELD )
25129         sched_yield();
25130 #elif defined( HAVE_PTHREAD_YIELD )
25131         pthread_yield();
25132 #endif
25133
25134         exit(2);
25135 }
25136 _ACEOF
25137 rm -f conftest$ac_exeext
25138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25139   (eval $ac_link) 2>&5
25140   ac_status=$?
25141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25144   (eval $ac_try) 2>&5
25145   ac_status=$?
25146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147   (exit $ac_status); }; }; then
25148   ol_cv_pthread_select_yields=no
25149 else
25150   echo "$as_me: program exited with status $ac_status" >&5
25151 echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.$ac_ext >&5
25153
25154 ( exit $ac_status )
25155 ol_cv_pthread_select_yields=yes
25156 fi
25157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25158 fi
25159 fi
25160 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25161 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25162
25163                                 if test $ol_cv_pthread_select_yields = cross ; then
25164                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25165 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25166    { (exit 1); exit 1; }; }
25167                                 fi
25168
25169                                 if test $ol_cv_pthread_select_yields = yes ; then
25170                                         ol_with_yielding_select=yes
25171                                 fi
25172                         fi
25173
25174                                                 CPPFLAGS="$save_CPPFLAGS"
25175                         LIBS="$save_LIBS"
25176                 else
25177                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25178 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25179    { (exit 1); exit 1; }; }
25180                 fi
25181         fi
25182
25183         if test $ol_with_threads = posix ; then
25184                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25185 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25186    { (exit 1); exit 1; }; }
25187         fi
25188         ;;
25189 esac
25190
25191 case $ol_with_threads in auto | yes | mach)
25192
25193
25194
25195 for ac_header in mach/cthreads.h cthreads.h
25196 do
25197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25199   echo "$as_me:$LINENO: checking for $ac_header" >&5
25200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25202   echo $ECHO_N "(cached) $ECHO_C" >&6
25203 fi
25204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25206 else
25207   # Is the header compilable?
25208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25210 cat >conftest.$ac_ext <<_ACEOF
25211 /* confdefs.h.  */
25212 _ACEOF
25213 cat confdefs.h >>conftest.$ac_ext
25214 cat >>conftest.$ac_ext <<_ACEOF
25215 /* end confdefs.h.  */
25216 $ac_includes_default
25217 #include <$ac_header>
25218 _ACEOF
25219 rm -f conftest.$ac_objext
25220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25221   (eval $ac_compile) 2>conftest.er1
25222   ac_status=$?
25223   grep -v '^ *+' conftest.er1 >conftest.err
25224   rm -f conftest.er1
25225   cat conftest.err >&5
25226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227   (exit $ac_status); } &&
25228          { ac_try='test -z "$ac_c_werror_flag"
25229                          || test ! -s conftest.err'
25230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25231   (eval $ac_try) 2>&5
25232   ac_status=$?
25233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234   (exit $ac_status); }; } &&
25235          { ac_try='test -s conftest.$ac_objext'
25236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25237   (eval $ac_try) 2>&5
25238   ac_status=$?
25239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240   (exit $ac_status); }; }; then
25241   ac_header_compiler=yes
25242 else
25243   echo "$as_me: failed program was:" >&5
25244 sed 's/^/| /' conftest.$ac_ext >&5
25245
25246 ac_header_compiler=no
25247 fi
25248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25250 echo "${ECHO_T}$ac_header_compiler" >&6
25251
25252 # Is the header present?
25253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25255 cat >conftest.$ac_ext <<_ACEOF
25256 /* confdefs.h.  */
25257 _ACEOF
25258 cat confdefs.h >>conftest.$ac_ext
25259 cat >>conftest.$ac_ext <<_ACEOF
25260 /* end confdefs.h.  */
25261 #include <$ac_header>
25262 _ACEOF
25263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25264   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25265   ac_status=$?
25266   grep -v '^ *+' conftest.er1 >conftest.err
25267   rm -f conftest.er1
25268   cat conftest.err >&5
25269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270   (exit $ac_status); } >/dev/null; then
25271   if test -s conftest.err; then
25272     ac_cpp_err=$ac_c_preproc_warn_flag
25273     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25274   else
25275     ac_cpp_err=
25276   fi
25277 else
25278   ac_cpp_err=yes
25279 fi
25280 if test -z "$ac_cpp_err"; then
25281   ac_header_preproc=yes
25282 else
25283   echo "$as_me: failed program was:" >&5
25284 sed 's/^/| /' conftest.$ac_ext >&5
25285
25286   ac_header_preproc=no
25287 fi
25288 rm -f conftest.err conftest.$ac_ext
25289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25290 echo "${ECHO_T}$ac_header_preproc" >&6
25291
25292 # So?  What about this header?
25293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25294   yes:no: )
25295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25299     ac_header_preproc=yes
25300     ;;
25301   no:yes:* )
25302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25304     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25305 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25306     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25308     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25309 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25312     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25314     (
25315       cat <<\_ASBOX
25316 ## --------------------------------------------- ##
25317 ## Report this to <http://www.openldap.org/its/> ##
25318 ## --------------------------------------------- ##
25319 _ASBOX
25320     ) |
25321       sed "s/^/$as_me: WARNING:     /" >&2
25322     ;;
25323 esac
25324 echo "$as_me:$LINENO: checking for $ac_header" >&5
25325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25327   echo $ECHO_N "(cached) $ECHO_C" >&6
25328 else
25329   eval "$as_ac_Header=\$ac_header_preproc"
25330 fi
25331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25333
25334 fi
25335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25336   cat >>confdefs.h <<_ACEOF
25337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25338 _ACEOF
25339
25340 fi
25341
25342 done
25343
25344         if test $ac_cv_header_mach_cthreads_h = yes ; then
25345                 ol_with_threads=found
25346
25347                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25348 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25349 if test "${ac_cv_func_cthread_fork+set}" = set; then
25350   echo $ECHO_N "(cached) $ECHO_C" >&6
25351 else
25352   cat >conftest.$ac_ext <<_ACEOF
25353 /* confdefs.h.  */
25354 _ACEOF
25355 cat confdefs.h >>conftest.$ac_ext
25356 cat >>conftest.$ac_ext <<_ACEOF
25357 /* end confdefs.h.  */
25358 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25360 #define cthread_fork innocuous_cthread_fork
25361
25362 /* System header to define __stub macros and hopefully few prototypes,
25363     which can conflict with char cthread_fork (); below.
25364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25365     <limits.h> exists even on freestanding compilers.  */
25366
25367 #ifdef __STDC__
25368 # include <limits.h>
25369 #else
25370 # include <assert.h>
25371 #endif
25372
25373 #undef cthread_fork
25374
25375 /* Override any gcc2 internal prototype to avoid an error.  */
25376 #ifdef __cplusplus
25377 extern "C"
25378 {
25379 #endif
25380 /* We use char because int might match the return type of a gcc2
25381    builtin and then its argument prototype would still apply.  */
25382 char cthread_fork ();
25383 /* The GNU C library defines this for functions which it implements
25384     to always fail with ENOSYS.  Some functions are actually named
25385     something starting with __ and the normal name is an alias.  */
25386 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25387 choke me
25388 #else
25389 char (*f) () = cthread_fork;
25390 #endif
25391 #ifdef __cplusplus
25392 }
25393 #endif
25394
25395 int
25396 main ()
25397 {
25398 return f != cthread_fork;
25399   ;
25400   return 0;
25401 }
25402 _ACEOF
25403 rm -f conftest.$ac_objext conftest$ac_exeext
25404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25405   (eval $ac_link) 2>conftest.er1
25406   ac_status=$?
25407   grep -v '^ *+' conftest.er1 >conftest.err
25408   rm -f conftest.er1
25409   cat conftest.err >&5
25410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411   (exit $ac_status); } &&
25412          { ac_try='test -z "$ac_c_werror_flag"
25413                          || test ! -s conftest.err'
25414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415   (eval $ac_try) 2>&5
25416   ac_status=$?
25417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418   (exit $ac_status); }; } &&
25419          { ac_try='test -s conftest$ac_exeext'
25420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25421   (eval $ac_try) 2>&5
25422   ac_status=$?
25423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424   (exit $ac_status); }; }; then
25425   ac_cv_func_cthread_fork=yes
25426 else
25427   echo "$as_me: failed program was:" >&5
25428 sed 's/^/| /' conftest.$ac_ext >&5
25429
25430 ac_cv_func_cthread_fork=no
25431 fi
25432 rm -f conftest.err conftest.$ac_objext \
25433       conftest$ac_exeext conftest.$ac_ext
25434 fi
25435 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25436 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25437 if test $ac_cv_func_cthread_fork = yes; then
25438   ol_link_threads=yes
25439 fi
25440
25441
25442                 if test $ol_link_threads = no ; then
25443                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25444 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25445 if test "${ol_cv_cthread_all_load+set}" = set; then
25446   echo $ECHO_N "(cached) $ECHO_C" >&6
25447 else
25448
25449                                                                 save_LIBS="$LIBS"
25450                                 LIBS="-all_load $LIBS"
25451                                 cat >conftest.$ac_ext <<_ACEOF
25452 /* confdefs.h.  */
25453 _ACEOF
25454 cat confdefs.h >>conftest.$ac_ext
25455 cat >>conftest.$ac_ext <<_ACEOF
25456 /* end confdefs.h.  */
25457 #include <mach/cthreads.h>
25458 int
25459 main ()
25460 {
25461
25462                                         cthread_fork((void *)0, (void *)0);
25463
25464   ;
25465   return 0;
25466 }
25467 _ACEOF
25468 rm -f conftest.$ac_objext conftest$ac_exeext
25469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25470   (eval $ac_link) 2>conftest.er1
25471   ac_status=$?
25472   grep -v '^ *+' conftest.er1 >conftest.err
25473   rm -f conftest.er1
25474   cat conftest.err >&5
25475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476   (exit $ac_status); } &&
25477          { ac_try='test -z "$ac_c_werror_flag"
25478                          || test ! -s conftest.err'
25479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480   (eval $ac_try) 2>&5
25481   ac_status=$?
25482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483   (exit $ac_status); }; } &&
25484          { ac_try='test -s conftest$ac_exeext'
25485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486   (eval $ac_try) 2>&5
25487   ac_status=$?
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); }; }; then
25490   ol_cv_cthread_all_load=yes
25491 else
25492   echo "$as_me: failed program was:" >&5
25493 sed 's/^/| /' conftest.$ac_ext >&5
25494
25495 ol_cv_cthread_all_load=no
25496 fi
25497 rm -f conftest.err conftest.$ac_objext \
25498       conftest$ac_exeext conftest.$ac_ext
25499                                                                 LIBS="$save_LIBS"
25500
25501 fi
25502 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25503 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25504
25505                         if test $ol_cv_cthread_all_load = yes ; then
25506                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25507                                 ol_link_threads=mach
25508                                 ol_with_threads=found
25509                         fi
25510                 fi
25511
25512         elif test $ac_cv_header_cthreads_h = yes ; then
25513
25514                 ol_with_threads=found
25515
25516                                 save_LIBS="$LIBS"
25517                 LIBS="$LIBS -lthreads"
25518                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25519 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25520 if test "${ac_cv_func_cthread_fork+set}" = set; then
25521   echo $ECHO_N "(cached) $ECHO_C" >&6
25522 else
25523   cat >conftest.$ac_ext <<_ACEOF
25524 /* confdefs.h.  */
25525 _ACEOF
25526 cat confdefs.h >>conftest.$ac_ext
25527 cat >>conftest.$ac_ext <<_ACEOF
25528 /* end confdefs.h.  */
25529 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25531 #define cthread_fork innocuous_cthread_fork
25532
25533 /* System header to define __stub macros and hopefully few prototypes,
25534     which can conflict with char cthread_fork (); below.
25535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25536     <limits.h> exists even on freestanding compilers.  */
25537
25538 #ifdef __STDC__
25539 # include <limits.h>
25540 #else
25541 # include <assert.h>
25542 #endif
25543
25544 #undef cthread_fork
25545
25546 /* Override any gcc2 internal prototype to avoid an error.  */
25547 #ifdef __cplusplus
25548 extern "C"
25549 {
25550 #endif
25551 /* We use char because int might match the return type of a gcc2
25552    builtin and then its argument prototype would still apply.  */
25553 char cthread_fork ();
25554 /* The GNU C library defines this for functions which it implements
25555     to always fail with ENOSYS.  Some functions are actually named
25556     something starting with __ and the normal name is an alias.  */
25557 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25558 choke me
25559 #else
25560 char (*f) () = cthread_fork;
25561 #endif
25562 #ifdef __cplusplus
25563 }
25564 #endif
25565
25566 int
25567 main ()
25568 {
25569 return f != cthread_fork;
25570   ;
25571   return 0;
25572 }
25573 _ACEOF
25574 rm -f conftest.$ac_objext conftest$ac_exeext
25575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25576   (eval $ac_link) 2>conftest.er1
25577   ac_status=$?
25578   grep -v '^ *+' conftest.er1 >conftest.err
25579   rm -f conftest.er1
25580   cat conftest.err >&5
25581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582   (exit $ac_status); } &&
25583          { ac_try='test -z "$ac_c_werror_flag"
25584                          || test ! -s conftest.err'
25585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25586   (eval $ac_try) 2>&5
25587   ac_status=$?
25588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589   (exit $ac_status); }; } &&
25590          { ac_try='test -s conftest$ac_exeext'
25591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25592   (eval $ac_try) 2>&5
25593   ac_status=$?
25594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595   (exit $ac_status); }; }; then
25596   ac_cv_func_cthread_fork=yes
25597 else
25598   echo "$as_me: failed program was:" >&5
25599 sed 's/^/| /' conftest.$ac_ext >&5
25600
25601 ac_cv_func_cthread_fork=no
25602 fi
25603 rm -f conftest.err conftest.$ac_objext \
25604       conftest$ac_exeext conftest.$ac_ext
25605 fi
25606 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25607 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25608 if test $ac_cv_func_cthread_fork = yes; then
25609   ol_link_threads=yes
25610 fi
25611
25612                 LIBS="$save_LIBS"
25613
25614                 if test $ol_link_threads = yes ; then
25615                         LTHREAD_LIBS="-lthreads"
25616                         ol_link_threads=mach
25617                         ol_with_threads=found
25618                 else
25619                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25620 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25621    { (exit 1); exit 1; }; }
25622                 fi
25623
25624         elif test $ol_with_threads = mach ; then
25625                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25626 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25627    { (exit 1); exit 1; }; }
25628         fi
25629
25630         if test $ol_link_threads = mach ; then
25631
25632 cat >>confdefs.h <<\_ACEOF
25633 #define HAVE_MACH_CTHREADS 1
25634 _ACEOF
25635
25636         elif test $ol_with_threads = found ; then
25637                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25638 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25639    { (exit 1); exit 1; }; }
25640         fi
25641         ;;
25642 esac
25643
25644 case $ol_with_threads in auto | yes | pth)
25645
25646
25647 for ac_header in pth.h
25648 do
25649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25651   echo "$as_me:$LINENO: checking for $ac_header" >&5
25652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25654   echo $ECHO_N "(cached) $ECHO_C" >&6
25655 fi
25656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25658 else
25659   # Is the header compilable?
25660 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25662 cat >conftest.$ac_ext <<_ACEOF
25663 /* confdefs.h.  */
25664 _ACEOF
25665 cat confdefs.h >>conftest.$ac_ext
25666 cat >>conftest.$ac_ext <<_ACEOF
25667 /* end confdefs.h.  */
25668 $ac_includes_default
25669 #include <$ac_header>
25670 _ACEOF
25671 rm -f conftest.$ac_objext
25672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25673   (eval $ac_compile) 2>conftest.er1
25674   ac_status=$?
25675   grep -v '^ *+' conftest.er1 >conftest.err
25676   rm -f conftest.er1
25677   cat conftest.err >&5
25678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679   (exit $ac_status); } &&
25680          { ac_try='test -z "$ac_c_werror_flag"
25681                          || test ! -s conftest.err'
25682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25683   (eval $ac_try) 2>&5
25684   ac_status=$?
25685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686   (exit $ac_status); }; } &&
25687          { ac_try='test -s conftest.$ac_objext'
25688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25689   (eval $ac_try) 2>&5
25690   ac_status=$?
25691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692   (exit $ac_status); }; }; then
25693   ac_header_compiler=yes
25694 else
25695   echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25697
25698 ac_header_compiler=no
25699 fi
25700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25702 echo "${ECHO_T}$ac_header_compiler" >&6
25703
25704 # Is the header present?
25705 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25707 cat >conftest.$ac_ext <<_ACEOF
25708 /* confdefs.h.  */
25709 _ACEOF
25710 cat confdefs.h >>conftest.$ac_ext
25711 cat >>conftest.$ac_ext <<_ACEOF
25712 /* end confdefs.h.  */
25713 #include <$ac_header>
25714 _ACEOF
25715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25716   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25717   ac_status=$?
25718   grep -v '^ *+' conftest.er1 >conftest.err
25719   rm -f conftest.er1
25720   cat conftest.err >&5
25721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722   (exit $ac_status); } >/dev/null; then
25723   if test -s conftest.err; then
25724     ac_cpp_err=$ac_c_preproc_warn_flag
25725     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25726   else
25727     ac_cpp_err=
25728   fi
25729 else
25730   ac_cpp_err=yes
25731 fi
25732 if test -z "$ac_cpp_err"; then
25733   ac_header_preproc=yes
25734 else
25735   echo "$as_me: failed program was:" >&5
25736 sed 's/^/| /' conftest.$ac_ext >&5
25737
25738   ac_header_preproc=no
25739 fi
25740 rm -f conftest.err conftest.$ac_ext
25741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25742 echo "${ECHO_T}$ac_header_preproc" >&6
25743
25744 # So?  What about this header?
25745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25746   yes:no: )
25747     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25751     ac_header_preproc=yes
25752     ;;
25753   no:yes:* )
25754     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25756     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25757 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25758     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25760     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25761 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25764     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25766     (
25767       cat <<\_ASBOX
25768 ## --------------------------------------------- ##
25769 ## Report this to <http://www.openldap.org/its/> ##
25770 ## --------------------------------------------- ##
25771 _ASBOX
25772     ) |
25773       sed "s/^/$as_me: WARNING:     /" >&2
25774     ;;
25775 esac
25776 echo "$as_me:$LINENO: checking for $ac_header" >&5
25777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25779   echo $ECHO_N "(cached) $ECHO_C" >&6
25780 else
25781   eval "$as_ac_Header=\$ac_header_preproc"
25782 fi
25783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25785
25786 fi
25787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25788   cat >>confdefs.h <<_ACEOF
25789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25790 _ACEOF
25791
25792 fi
25793
25794 done
25795
25796
25797         if test $ac_cv_header_pth_h = yes ; then
25798                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25799 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25800 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25801   echo $ECHO_N "(cached) $ECHO_C" >&6
25802 else
25803   ac_check_lib_save_LIBS=$LIBS
25804 LIBS="-lpth  $LIBS"
25805 cat >conftest.$ac_ext <<_ACEOF
25806 /* confdefs.h.  */
25807 _ACEOF
25808 cat confdefs.h >>conftest.$ac_ext
25809 cat >>conftest.$ac_ext <<_ACEOF
25810 /* end confdefs.h.  */
25811
25812 /* Override any gcc2 internal prototype to avoid an error.  */
25813 #ifdef __cplusplus
25814 extern "C"
25815 #endif
25816 /* We use char because int might match the return type of a gcc2
25817    builtin and then its argument prototype would still apply.  */
25818 char pth_version ();
25819 int
25820 main ()
25821 {
25822 pth_version ();
25823   ;
25824   return 0;
25825 }
25826 _ACEOF
25827 rm -f conftest.$ac_objext conftest$ac_exeext
25828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25829   (eval $ac_link) 2>conftest.er1
25830   ac_status=$?
25831   grep -v '^ *+' conftest.er1 >conftest.err
25832   rm -f conftest.er1
25833   cat conftest.err >&5
25834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835   (exit $ac_status); } &&
25836          { ac_try='test -z "$ac_c_werror_flag"
25837                          || test ! -s conftest.err'
25838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25839   (eval $ac_try) 2>&5
25840   ac_status=$?
25841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842   (exit $ac_status); }; } &&
25843          { ac_try='test -s conftest$ac_exeext'
25844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25845   (eval $ac_try) 2>&5
25846   ac_status=$?
25847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848   (exit $ac_status); }; }; then
25849   ac_cv_lib_pth_pth_version=yes
25850 else
25851   echo "$as_me: failed program was:" >&5
25852 sed 's/^/| /' conftest.$ac_ext >&5
25853
25854 ac_cv_lib_pth_pth_version=no
25855 fi
25856 rm -f conftest.err conftest.$ac_objext \
25857       conftest$ac_exeext conftest.$ac_ext
25858 LIBS=$ac_check_lib_save_LIBS
25859 fi
25860 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25861 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25862 if test $ac_cv_lib_pth_pth_version = yes; then
25863   have_pth=yes
25864 else
25865   have_pth=no
25866 fi
25867
25868
25869                 if test $have_pth = yes ; then
25870
25871 cat >>confdefs.h <<\_ACEOF
25872 #define HAVE_GNU_PTH 1
25873 _ACEOF
25874
25875                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25876                         ol_link_threads=pth
25877                         ol_with_threads=found
25878
25879                         if test $ol_with_yielding_select = auto ; then
25880                                 ol_with_yielding_select=yes
25881                         fi
25882                 fi
25883         fi
25884         ;;
25885 esac
25886
25887 case $ol_with_threads in auto | yes | lwp)
25888
25889
25890
25891 for ac_header in thread.h synch.h
25892 do
25893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25895   echo "$as_me:$LINENO: checking for $ac_header" >&5
25896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25898   echo $ECHO_N "(cached) $ECHO_C" >&6
25899 fi
25900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25902 else
25903   # Is the header compilable?
25904 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25906 cat >conftest.$ac_ext <<_ACEOF
25907 /* confdefs.h.  */
25908 _ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h.  */
25912 $ac_includes_default
25913 #include <$ac_header>
25914 _ACEOF
25915 rm -f conftest.$ac_objext
25916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25917   (eval $ac_compile) 2>conftest.er1
25918   ac_status=$?
25919   grep -v '^ *+' conftest.er1 >conftest.err
25920   rm -f conftest.er1
25921   cat conftest.err >&5
25922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923   (exit $ac_status); } &&
25924          { ac_try='test -z "$ac_c_werror_flag"
25925                          || test ! -s conftest.err'
25926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25927   (eval $ac_try) 2>&5
25928   ac_status=$?
25929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930   (exit $ac_status); }; } &&
25931          { ac_try='test -s conftest.$ac_objext'
25932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25933   (eval $ac_try) 2>&5
25934   ac_status=$?
25935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936   (exit $ac_status); }; }; then
25937   ac_header_compiler=yes
25938 else
25939   echo "$as_me: failed program was:" >&5
25940 sed 's/^/| /' conftest.$ac_ext >&5
25941
25942 ac_header_compiler=no
25943 fi
25944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25946 echo "${ECHO_T}$ac_header_compiler" >&6
25947
25948 # Is the header present?
25949 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25951 cat >conftest.$ac_ext <<_ACEOF
25952 /* confdefs.h.  */
25953 _ACEOF
25954 cat confdefs.h >>conftest.$ac_ext
25955 cat >>conftest.$ac_ext <<_ACEOF
25956 /* end confdefs.h.  */
25957 #include <$ac_header>
25958 _ACEOF
25959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25960   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25961   ac_status=$?
25962   grep -v '^ *+' conftest.er1 >conftest.err
25963   rm -f conftest.er1
25964   cat conftest.err >&5
25965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966   (exit $ac_status); } >/dev/null; then
25967   if test -s conftest.err; then
25968     ac_cpp_err=$ac_c_preproc_warn_flag
25969     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25970   else
25971     ac_cpp_err=
25972   fi
25973 else
25974   ac_cpp_err=yes
25975 fi
25976 if test -z "$ac_cpp_err"; then
25977   ac_header_preproc=yes
25978 else
25979   echo "$as_me: failed program was:" >&5
25980 sed 's/^/| /' conftest.$ac_ext >&5
25981
25982   ac_header_preproc=no
25983 fi
25984 rm -f conftest.err conftest.$ac_ext
25985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25986 echo "${ECHO_T}$ac_header_preproc" >&6
25987
25988 # So?  What about this header?
25989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25990   yes:no: )
25991     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25995     ac_header_preproc=yes
25996     ;;
25997   no:yes:* )
25998     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26000     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26001 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26002     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26004     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26005 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26006     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26008     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26010     (
26011       cat <<\_ASBOX
26012 ## --------------------------------------------- ##
26013 ## Report this to <http://www.openldap.org/its/> ##
26014 ## --------------------------------------------- ##
26015 _ASBOX
26016     ) |
26017       sed "s/^/$as_me: WARNING:     /" >&2
26018     ;;
26019 esac
26020 echo "$as_me:$LINENO: checking for $ac_header" >&5
26021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26023   echo $ECHO_N "(cached) $ECHO_C" >&6
26024 else
26025   eval "$as_ac_Header=\$ac_header_preproc"
26026 fi
26027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26029
26030 fi
26031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26032   cat >>confdefs.h <<_ACEOF
26033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26034 _ACEOF
26035
26036 fi
26037
26038 done
26039
26040         if test $ac_cv_header_thread_h = yes &&
26041            test $ac_cv_header_synch_h = yes ; then
26042                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26043 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
26044 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26045   echo $ECHO_N "(cached) $ECHO_C" >&6
26046 else
26047   ac_check_lib_save_LIBS=$LIBS
26048 LIBS="-lthread  $LIBS"
26049 cat >conftest.$ac_ext <<_ACEOF
26050 /* confdefs.h.  */
26051 _ACEOF
26052 cat confdefs.h >>conftest.$ac_ext
26053 cat >>conftest.$ac_ext <<_ACEOF
26054 /* end confdefs.h.  */
26055
26056 /* Override any gcc2 internal prototype to avoid an error.  */
26057 #ifdef __cplusplus
26058 extern "C"
26059 #endif
26060 /* We use char because int might match the return type of a gcc2
26061    builtin and then its argument prototype would still apply.  */
26062 char thr_create ();
26063 int
26064 main ()
26065 {
26066 thr_create ();
26067   ;
26068   return 0;
26069 }
26070 _ACEOF
26071 rm -f conftest.$ac_objext conftest$ac_exeext
26072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26073   (eval $ac_link) 2>conftest.er1
26074   ac_status=$?
26075   grep -v '^ *+' conftest.er1 >conftest.err
26076   rm -f conftest.er1
26077   cat conftest.err >&5
26078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079   (exit $ac_status); } &&
26080          { ac_try='test -z "$ac_c_werror_flag"
26081                          || test ! -s conftest.err'
26082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26083   (eval $ac_try) 2>&5
26084   ac_status=$?
26085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086   (exit $ac_status); }; } &&
26087          { ac_try='test -s conftest$ac_exeext'
26088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089   (eval $ac_try) 2>&5
26090   ac_status=$?
26091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092   (exit $ac_status); }; }; then
26093   ac_cv_lib_thread_thr_create=yes
26094 else
26095   echo "$as_me: failed program was:" >&5
26096 sed 's/^/| /' conftest.$ac_ext >&5
26097
26098 ac_cv_lib_thread_thr_create=no
26099 fi
26100 rm -f conftest.err conftest.$ac_objext \
26101       conftest$ac_exeext conftest.$ac_ext
26102 LIBS=$ac_check_lib_save_LIBS
26103 fi
26104 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26105 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26106 if test $ac_cv_lib_thread_thr_create = yes; then
26107   have_thr=yes
26108 else
26109   have_thr=no
26110 fi
26111
26112
26113                 if test $have_thr = yes ; then
26114
26115 cat >>confdefs.h <<\_ACEOF
26116 #define HAVE_THR 1
26117 _ACEOF
26118
26119                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26120                         ol_link_threads=thr
26121
26122                         if test $ol_with_yielding_select = auto ; then
26123                                 ol_with_yielding_select=yes
26124                         fi
26125
26126
26127
26128 for ac_func in \
26129                                 thr_setconcurrency \
26130                                 thr_getconcurrency \
26131
26132 do
26133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26134 echo "$as_me:$LINENO: checking for $ac_func" >&5
26135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26136 if eval "test \"\${$as_ac_var+set}\" = set"; then
26137   echo $ECHO_N "(cached) $ECHO_C" >&6
26138 else
26139   cat >conftest.$ac_ext <<_ACEOF
26140 /* confdefs.h.  */
26141 _ACEOF
26142 cat confdefs.h >>conftest.$ac_ext
26143 cat >>conftest.$ac_ext <<_ACEOF
26144 /* end confdefs.h.  */
26145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26147 #define $ac_func innocuous_$ac_func
26148
26149 /* System header to define __stub macros and hopefully few prototypes,
26150     which can conflict with char $ac_func (); below.
26151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26152     <limits.h> exists even on freestanding compilers.  */
26153
26154 #ifdef __STDC__
26155 # include <limits.h>
26156 #else
26157 # include <assert.h>
26158 #endif
26159
26160 #undef $ac_func
26161
26162 /* Override any gcc2 internal prototype to avoid an error.  */
26163 #ifdef __cplusplus
26164 extern "C"
26165 {
26166 #endif
26167 /* We use char because int might match the return type of a gcc2
26168    builtin and then its argument prototype would still apply.  */
26169 char $ac_func ();
26170 /* The GNU C library defines this for functions which it implements
26171     to always fail with ENOSYS.  Some functions are actually named
26172     something starting with __ and the normal name is an alias.  */
26173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26174 choke me
26175 #else
26176 char (*f) () = $ac_func;
26177 #endif
26178 #ifdef __cplusplus
26179 }
26180 #endif
26181
26182 int
26183 main ()
26184 {
26185 return f != $ac_func;
26186   ;
26187   return 0;
26188 }
26189 _ACEOF
26190 rm -f conftest.$ac_objext conftest$ac_exeext
26191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26192   (eval $ac_link) 2>conftest.er1
26193   ac_status=$?
26194   grep -v '^ *+' conftest.er1 >conftest.err
26195   rm -f conftest.er1
26196   cat conftest.err >&5
26197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198   (exit $ac_status); } &&
26199          { ac_try='test -z "$ac_c_werror_flag"
26200                          || test ! -s conftest.err'
26201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26202   (eval $ac_try) 2>&5
26203   ac_status=$?
26204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205   (exit $ac_status); }; } &&
26206          { ac_try='test -s conftest$ac_exeext'
26207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26208   (eval $ac_try) 2>&5
26209   ac_status=$?
26210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211   (exit $ac_status); }; }; then
26212   eval "$as_ac_var=yes"
26213 else
26214   echo "$as_me: failed program was:" >&5
26215 sed 's/^/| /' conftest.$ac_ext >&5
26216
26217 eval "$as_ac_var=no"
26218 fi
26219 rm -f conftest.err conftest.$ac_objext \
26220       conftest$ac_exeext conftest.$ac_ext
26221 fi
26222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26224 if test `eval echo '${'$as_ac_var'}'` = yes; then
26225   cat >>confdefs.h <<_ACEOF
26226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26227 _ACEOF
26228
26229 fi
26230 done
26231
26232                 fi
26233         fi
26234
26235
26236 for ac_header in lwp/lwp.h
26237 do
26238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26240   echo "$as_me:$LINENO: checking for $ac_header" >&5
26241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26243   echo $ECHO_N "(cached) $ECHO_C" >&6
26244 fi
26245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26247 else
26248   # Is the header compilable?
26249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26251 cat >conftest.$ac_ext <<_ACEOF
26252 /* confdefs.h.  */
26253 _ACEOF
26254 cat confdefs.h >>conftest.$ac_ext
26255 cat >>conftest.$ac_ext <<_ACEOF
26256 /* end confdefs.h.  */
26257 $ac_includes_default
26258 #include <$ac_header>
26259 _ACEOF
26260 rm -f conftest.$ac_objext
26261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26262   (eval $ac_compile) 2>conftest.er1
26263   ac_status=$?
26264   grep -v '^ *+' conftest.er1 >conftest.err
26265   rm -f conftest.er1
26266   cat conftest.err >&5
26267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268   (exit $ac_status); } &&
26269          { ac_try='test -z "$ac_c_werror_flag"
26270                          || test ! -s conftest.err'
26271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26272   (eval $ac_try) 2>&5
26273   ac_status=$?
26274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275   (exit $ac_status); }; } &&
26276          { ac_try='test -s conftest.$ac_objext'
26277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26278   (eval $ac_try) 2>&5
26279   ac_status=$?
26280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281   (exit $ac_status); }; }; then
26282   ac_header_compiler=yes
26283 else
26284   echo "$as_me: failed program was:" >&5
26285 sed 's/^/| /' conftest.$ac_ext >&5
26286
26287 ac_header_compiler=no
26288 fi
26289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26291 echo "${ECHO_T}$ac_header_compiler" >&6
26292
26293 # Is the header present?
26294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26296 cat >conftest.$ac_ext <<_ACEOF
26297 /* confdefs.h.  */
26298 _ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h.  */
26302 #include <$ac_header>
26303 _ACEOF
26304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26306   ac_status=$?
26307   grep -v '^ *+' conftest.er1 >conftest.err
26308   rm -f conftest.er1
26309   cat conftest.err >&5
26310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311   (exit $ac_status); } >/dev/null; then
26312   if test -s conftest.err; then
26313     ac_cpp_err=$ac_c_preproc_warn_flag
26314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26315   else
26316     ac_cpp_err=
26317   fi
26318 else
26319   ac_cpp_err=yes
26320 fi
26321 if test -z "$ac_cpp_err"; then
26322   ac_header_preproc=yes
26323 else
26324   echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.$ac_ext >&5
26326
26327   ac_header_preproc=no
26328 fi
26329 rm -f conftest.err conftest.$ac_ext
26330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26331 echo "${ECHO_T}$ac_header_preproc" >&6
26332
26333 # So?  What about this header?
26334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26335   yes:no: )
26336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26340     ac_header_preproc=yes
26341     ;;
26342   no:yes:* )
26343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26345     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26346 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26349     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26350 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26353     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26355     (
26356       cat <<\_ASBOX
26357 ## --------------------------------------------- ##
26358 ## Report this to <http://www.openldap.org/its/> ##
26359 ## --------------------------------------------- ##
26360 _ASBOX
26361     ) |
26362       sed "s/^/$as_me: WARNING:     /" >&2
26363     ;;
26364 esac
26365 echo "$as_me:$LINENO: checking for $ac_header" >&5
26366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26368   echo $ECHO_N "(cached) $ECHO_C" >&6
26369 else
26370   eval "$as_ac_Header=\$ac_header_preproc"
26371 fi
26372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26374
26375 fi
26376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26377   cat >>confdefs.h <<_ACEOF
26378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26379 _ACEOF
26380
26381 fi
26382
26383 done
26384
26385         if test $ac_cv_header_lwp_lwp_h = yes ; then
26386                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26387 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26388 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26389   echo $ECHO_N "(cached) $ECHO_C" >&6
26390 else
26391   ac_check_lib_save_LIBS=$LIBS
26392 LIBS="-llwp  $LIBS"
26393 cat >conftest.$ac_ext <<_ACEOF
26394 /* confdefs.h.  */
26395 _ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h.  */
26399
26400 /* Override any gcc2 internal prototype to avoid an error.  */
26401 #ifdef __cplusplus
26402 extern "C"
26403 #endif
26404 /* We use char because int might match the return type of a gcc2
26405    builtin and then its argument prototype would still apply.  */
26406 char lwp_create ();
26407 int
26408 main ()
26409 {
26410 lwp_create ();
26411   ;
26412   return 0;
26413 }
26414 _ACEOF
26415 rm -f conftest.$ac_objext conftest$ac_exeext
26416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26417   (eval $ac_link) 2>conftest.er1
26418   ac_status=$?
26419   grep -v '^ *+' conftest.er1 >conftest.err
26420   rm -f conftest.er1
26421   cat conftest.err >&5
26422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423   (exit $ac_status); } &&
26424          { ac_try='test -z "$ac_c_werror_flag"
26425                          || test ! -s conftest.err'
26426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427   (eval $ac_try) 2>&5
26428   ac_status=$?
26429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430   (exit $ac_status); }; } &&
26431          { ac_try='test -s conftest$ac_exeext'
26432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433   (eval $ac_try) 2>&5
26434   ac_status=$?
26435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436   (exit $ac_status); }; }; then
26437   ac_cv_lib_lwp_lwp_create=yes
26438 else
26439   echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26441
26442 ac_cv_lib_lwp_lwp_create=no
26443 fi
26444 rm -f conftest.err conftest.$ac_objext \
26445       conftest$ac_exeext conftest.$ac_ext
26446 LIBS=$ac_check_lib_save_LIBS
26447 fi
26448 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26449 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26450 if test $ac_cv_lib_lwp_lwp_create = yes; then
26451   have_lwp=yes
26452 else
26453   have_lwp=no
26454 fi
26455
26456
26457                 if test $have_lwp = yes ; then
26458
26459 cat >>confdefs.h <<\_ACEOF
26460 #define HAVE_LWP 1
26461 _ACEOF
26462
26463                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26464                         ol_link_threads=lwp
26465
26466                         if test $ol_with_yielding_select = auto ; then
26467                                 ol_with_yielding_select=no
26468                         fi
26469                 fi
26470         fi
26471         ;;
26472 esac
26473
26474 if test $ol_with_yielding_select = yes ; then
26475
26476 cat >>confdefs.h <<\_ACEOF
26477 #define HAVE_YIELDING_SELECT 1
26478 _ACEOF
26479
26480 fi
26481
26482 if test $ol_with_threads = manual ; then
26483                 ol_link_threads=yes
26484
26485         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26486 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26487
26488
26489
26490 for ac_header in pthread.h sched.h
26491 do
26492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26494   echo "$as_me:$LINENO: checking for $ac_header" >&5
26495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26497   echo $ECHO_N "(cached) $ECHO_C" >&6
26498 fi
26499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26501 else
26502   # Is the header compilable?
26503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26505 cat >conftest.$ac_ext <<_ACEOF
26506 /* confdefs.h.  */
26507 _ACEOF
26508 cat confdefs.h >>conftest.$ac_ext
26509 cat >>conftest.$ac_ext <<_ACEOF
26510 /* end confdefs.h.  */
26511 $ac_includes_default
26512 #include <$ac_header>
26513 _ACEOF
26514 rm -f conftest.$ac_objext
26515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26516   (eval $ac_compile) 2>conftest.er1
26517   ac_status=$?
26518   grep -v '^ *+' conftest.er1 >conftest.err
26519   rm -f conftest.er1
26520   cat conftest.err >&5
26521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522   (exit $ac_status); } &&
26523          { ac_try='test -z "$ac_c_werror_flag"
26524                          || test ! -s conftest.err'
26525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26526   (eval $ac_try) 2>&5
26527   ac_status=$?
26528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529   (exit $ac_status); }; } &&
26530          { ac_try='test -s conftest.$ac_objext'
26531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26532   (eval $ac_try) 2>&5
26533   ac_status=$?
26534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535   (exit $ac_status); }; }; then
26536   ac_header_compiler=yes
26537 else
26538   echo "$as_me: failed program was:" >&5
26539 sed 's/^/| /' conftest.$ac_ext >&5
26540
26541 ac_header_compiler=no
26542 fi
26543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26545 echo "${ECHO_T}$ac_header_compiler" >&6
26546
26547 # Is the header present?
26548 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26550 cat >conftest.$ac_ext <<_ACEOF
26551 /* confdefs.h.  */
26552 _ACEOF
26553 cat confdefs.h >>conftest.$ac_ext
26554 cat >>conftest.$ac_ext <<_ACEOF
26555 /* end confdefs.h.  */
26556 #include <$ac_header>
26557 _ACEOF
26558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26559   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26560   ac_status=$?
26561   grep -v '^ *+' conftest.er1 >conftest.err
26562   rm -f conftest.er1
26563   cat conftest.err >&5
26564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565   (exit $ac_status); } >/dev/null; then
26566   if test -s conftest.err; then
26567     ac_cpp_err=$ac_c_preproc_warn_flag
26568     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26569   else
26570     ac_cpp_err=
26571   fi
26572 else
26573   ac_cpp_err=yes
26574 fi
26575 if test -z "$ac_cpp_err"; then
26576   ac_header_preproc=yes
26577 else
26578   echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26580
26581   ac_header_preproc=no
26582 fi
26583 rm -f conftest.err conftest.$ac_ext
26584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26585 echo "${ECHO_T}$ac_header_preproc" >&6
26586
26587 # So?  What about this header?
26588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26589   yes:no: )
26590     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26594     ac_header_preproc=yes
26595     ;;
26596   no:yes:* )
26597     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26599     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26600 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26601     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26603     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26604 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26607     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26609     (
26610       cat <<\_ASBOX
26611 ## --------------------------------------------- ##
26612 ## Report this to <http://www.openldap.org/its/> ##
26613 ## --------------------------------------------- ##
26614 _ASBOX
26615     ) |
26616       sed "s/^/$as_me: WARNING:     /" >&2
26617     ;;
26618 esac
26619 echo "$as_me:$LINENO: checking for $ac_header" >&5
26620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26622   echo $ECHO_N "(cached) $ECHO_C" >&6
26623 else
26624   eval "$as_ac_Header=\$ac_header_preproc"
26625 fi
26626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26628
26629 fi
26630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26631   cat >>confdefs.h <<_ACEOF
26632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26633 _ACEOF
26634
26635 fi
26636
26637 done
26638
26639
26640
26641 for ac_func in sched_yield pthread_yield
26642 do
26643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26644 echo "$as_me:$LINENO: checking for $ac_func" >&5
26645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26646 if eval "test \"\${$as_ac_var+set}\" = set"; then
26647   echo $ECHO_N "(cached) $ECHO_C" >&6
26648 else
26649   cat >conftest.$ac_ext <<_ACEOF
26650 /* confdefs.h.  */
26651 _ACEOF
26652 cat confdefs.h >>conftest.$ac_ext
26653 cat >>conftest.$ac_ext <<_ACEOF
26654 /* end confdefs.h.  */
26655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26657 #define $ac_func innocuous_$ac_func
26658
26659 /* System header to define __stub macros and hopefully few prototypes,
26660     which can conflict with char $ac_func (); below.
26661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26662     <limits.h> exists even on freestanding compilers.  */
26663
26664 #ifdef __STDC__
26665 # include <limits.h>
26666 #else
26667 # include <assert.h>
26668 #endif
26669
26670 #undef $ac_func
26671
26672 /* Override any gcc2 internal prototype to avoid an error.  */
26673 #ifdef __cplusplus
26674 extern "C"
26675 {
26676 #endif
26677 /* We use char because int might match the return type of a gcc2
26678    builtin and then its argument prototype would still apply.  */
26679 char $ac_func ();
26680 /* The GNU C library defines this for functions which it implements
26681     to always fail with ENOSYS.  Some functions are actually named
26682     something starting with __ and the normal name is an alias.  */
26683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26684 choke me
26685 #else
26686 char (*f) () = $ac_func;
26687 #endif
26688 #ifdef __cplusplus
26689 }
26690 #endif
26691
26692 int
26693 main ()
26694 {
26695 return f != $ac_func;
26696   ;
26697   return 0;
26698 }
26699 _ACEOF
26700 rm -f conftest.$ac_objext conftest$ac_exeext
26701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26702   (eval $ac_link) 2>conftest.er1
26703   ac_status=$?
26704   grep -v '^ *+' conftest.er1 >conftest.err
26705   rm -f conftest.er1
26706   cat conftest.err >&5
26707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708   (exit $ac_status); } &&
26709          { ac_try='test -z "$ac_c_werror_flag"
26710                          || test ! -s conftest.err'
26711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26712   (eval $ac_try) 2>&5
26713   ac_status=$?
26714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); }; } &&
26716          { ac_try='test -s conftest$ac_exeext'
26717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26718   (eval $ac_try) 2>&5
26719   ac_status=$?
26720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721   (exit $ac_status); }; }; then
26722   eval "$as_ac_var=yes"
26723 else
26724   echo "$as_me: failed program was:" >&5
26725 sed 's/^/| /' conftest.$ac_ext >&5
26726
26727 eval "$as_ac_var=no"
26728 fi
26729 rm -f conftest.err conftest.$ac_objext \
26730       conftest$ac_exeext conftest.$ac_ext
26731 fi
26732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26734 if test `eval echo '${'$as_ac_var'}'` = yes; then
26735   cat >>confdefs.h <<_ACEOF
26736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26737 _ACEOF
26738
26739 fi
26740 done
26741
26742
26743         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26744 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26745 if test "${ol_cv_header_linux_threads+set}" = set; then
26746   echo $ECHO_N "(cached) $ECHO_C" >&6
26747 else
26748   cat >conftest.$ac_ext <<_ACEOF
26749 /* confdefs.h.  */
26750 _ACEOF
26751 cat confdefs.h >>conftest.$ac_ext
26752 cat >>conftest.$ac_ext <<_ACEOF
26753 /* end confdefs.h.  */
26754 #include <pthread.h>
26755 _ACEOF
26756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26757   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26758   ol_cv_header_linux_threads=yes
26759 else
26760   ol_cv_header_linux_threads=no
26761 fi
26762 rm -f conftest*
26763
26764
26765 fi
26766 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26767 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26768         if test $ol_cv_header_linux_threads = yes; then
26769
26770 cat >>confdefs.h <<\_ACEOF
26771 #define HAVE_LINUX_THREADS 1
26772 _ACEOF
26773
26774         fi
26775
26776
26777
26778 for ac_header in mach/cthreads.h
26779 do
26780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26782   echo "$as_me:$LINENO: checking for $ac_header" >&5
26783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26785   echo $ECHO_N "(cached) $ECHO_C" >&6
26786 fi
26787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26789 else
26790   # Is the header compilable?
26791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26793 cat >conftest.$ac_ext <<_ACEOF
26794 /* confdefs.h.  */
26795 _ACEOF
26796 cat confdefs.h >>conftest.$ac_ext
26797 cat >>conftest.$ac_ext <<_ACEOF
26798 /* end confdefs.h.  */
26799 $ac_includes_default
26800 #include <$ac_header>
26801 _ACEOF
26802 rm -f conftest.$ac_objext
26803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26804   (eval $ac_compile) 2>conftest.er1
26805   ac_status=$?
26806   grep -v '^ *+' conftest.er1 >conftest.err
26807   rm -f conftest.er1
26808   cat conftest.err >&5
26809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810   (exit $ac_status); } &&
26811          { ac_try='test -z "$ac_c_werror_flag"
26812                          || test ! -s conftest.err'
26813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26814   (eval $ac_try) 2>&5
26815   ac_status=$?
26816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817   (exit $ac_status); }; } &&
26818          { ac_try='test -s conftest.$ac_objext'
26819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820   (eval $ac_try) 2>&5
26821   ac_status=$?
26822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823   (exit $ac_status); }; }; then
26824   ac_header_compiler=yes
26825 else
26826   echo "$as_me: failed program was:" >&5
26827 sed 's/^/| /' conftest.$ac_ext >&5
26828
26829 ac_header_compiler=no
26830 fi
26831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26833 echo "${ECHO_T}$ac_header_compiler" >&6
26834
26835 # Is the header present?
26836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26838 cat >conftest.$ac_ext <<_ACEOF
26839 /* confdefs.h.  */
26840 _ACEOF
26841 cat confdefs.h >>conftest.$ac_ext
26842 cat >>conftest.$ac_ext <<_ACEOF
26843 /* end confdefs.h.  */
26844 #include <$ac_header>
26845 _ACEOF
26846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26847   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26848   ac_status=$?
26849   grep -v '^ *+' conftest.er1 >conftest.err
26850   rm -f conftest.er1
26851   cat conftest.err >&5
26852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853   (exit $ac_status); } >/dev/null; then
26854   if test -s conftest.err; then
26855     ac_cpp_err=$ac_c_preproc_warn_flag
26856     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26857   else
26858     ac_cpp_err=
26859   fi
26860 else
26861   ac_cpp_err=yes
26862 fi
26863 if test -z "$ac_cpp_err"; then
26864   ac_header_preproc=yes
26865 else
26866   echo "$as_me: failed program was:" >&5
26867 sed 's/^/| /' conftest.$ac_ext >&5
26868
26869   ac_header_preproc=no
26870 fi
26871 rm -f conftest.err conftest.$ac_ext
26872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26873 echo "${ECHO_T}$ac_header_preproc" >&6
26874
26875 # So?  What about this header?
26876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26877   yes:no: )
26878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26882     ac_header_preproc=yes
26883     ;;
26884   no:yes:* )
26885     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26887     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26888 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26889     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26891     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26892 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26895     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26897     (
26898       cat <<\_ASBOX
26899 ## --------------------------------------------- ##
26900 ## Report this to <http://www.openldap.org/its/> ##
26901 ## --------------------------------------------- ##
26902 _ASBOX
26903     ) |
26904       sed "s/^/$as_me: WARNING:     /" >&2
26905     ;;
26906 esac
26907 echo "$as_me:$LINENO: checking for $ac_header" >&5
26908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26910   echo $ECHO_N "(cached) $ECHO_C" >&6
26911 else
26912   eval "$as_ac_Header=\$ac_header_preproc"
26913 fi
26914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26916
26917 fi
26918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26919   cat >>confdefs.h <<_ACEOF
26920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26921 _ACEOF
26922
26923 fi
26924
26925 done
26926
26927
26928 for ac_header in lwp/lwp.h
26929 do
26930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26932   echo "$as_me:$LINENO: checking for $ac_header" >&5
26933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26935   echo $ECHO_N "(cached) $ECHO_C" >&6
26936 fi
26937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26939 else
26940   # Is the header compilable?
26941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26943 cat >conftest.$ac_ext <<_ACEOF
26944 /* confdefs.h.  */
26945 _ACEOF
26946 cat confdefs.h >>conftest.$ac_ext
26947 cat >>conftest.$ac_ext <<_ACEOF
26948 /* end confdefs.h.  */
26949 $ac_includes_default
26950 #include <$ac_header>
26951 _ACEOF
26952 rm -f conftest.$ac_objext
26953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26954   (eval $ac_compile) 2>conftest.er1
26955   ac_status=$?
26956   grep -v '^ *+' conftest.er1 >conftest.err
26957   rm -f conftest.er1
26958   cat conftest.err >&5
26959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960   (exit $ac_status); } &&
26961          { ac_try='test -z "$ac_c_werror_flag"
26962                          || test ! -s conftest.err'
26963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26964   (eval $ac_try) 2>&5
26965   ac_status=$?
26966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26967   (exit $ac_status); }; } &&
26968          { ac_try='test -s conftest.$ac_objext'
26969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26970   (eval $ac_try) 2>&5
26971   ac_status=$?
26972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973   (exit $ac_status); }; }; then
26974   ac_header_compiler=yes
26975 else
26976   echo "$as_me: failed program was:" >&5
26977 sed 's/^/| /' conftest.$ac_ext >&5
26978
26979 ac_header_compiler=no
26980 fi
26981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26983 echo "${ECHO_T}$ac_header_compiler" >&6
26984
26985 # Is the header present?
26986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26988 cat >conftest.$ac_ext <<_ACEOF
26989 /* confdefs.h.  */
26990 _ACEOF
26991 cat confdefs.h >>conftest.$ac_ext
26992 cat >>conftest.$ac_ext <<_ACEOF
26993 /* end confdefs.h.  */
26994 #include <$ac_header>
26995 _ACEOF
26996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26997   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26998   ac_status=$?
26999   grep -v '^ *+' conftest.er1 >conftest.err
27000   rm -f conftest.er1
27001   cat conftest.err >&5
27002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003   (exit $ac_status); } >/dev/null; then
27004   if test -s conftest.err; then
27005     ac_cpp_err=$ac_c_preproc_warn_flag
27006     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27007   else
27008     ac_cpp_err=
27009   fi
27010 else
27011   ac_cpp_err=yes
27012 fi
27013 if test -z "$ac_cpp_err"; then
27014   ac_header_preproc=yes
27015 else
27016   echo "$as_me: failed program was:" >&5
27017 sed 's/^/| /' conftest.$ac_ext >&5
27018
27019   ac_header_preproc=no
27020 fi
27021 rm -f conftest.err conftest.$ac_ext
27022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27023 echo "${ECHO_T}$ac_header_preproc" >&6
27024
27025 # So?  What about this header?
27026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27027   yes:no: )
27028     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27032     ac_header_preproc=yes
27033     ;;
27034   no:yes:* )
27035     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27037     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27038 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27039     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27041     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27042 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27045     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27047     (
27048       cat <<\_ASBOX
27049 ## --------------------------------------------- ##
27050 ## Report this to <http://www.openldap.org/its/> ##
27051 ## --------------------------------------------- ##
27052 _ASBOX
27053     ) |
27054       sed "s/^/$as_me: WARNING:     /" >&2
27055     ;;
27056 esac
27057 echo "$as_me:$LINENO: checking for $ac_header" >&5
27058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27060   echo $ECHO_N "(cached) $ECHO_C" >&6
27061 else
27062   eval "$as_ac_Header=\$ac_header_preproc"
27063 fi
27064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27066
27067 fi
27068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27069   cat >>confdefs.h <<_ACEOF
27070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27071 _ACEOF
27072
27073 fi
27074
27075 done
27076
27077
27078
27079 for ac_header in thread.h synch.h
27080 do
27081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27083   echo "$as_me:$LINENO: checking for $ac_header" >&5
27084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27086   echo $ECHO_N "(cached) $ECHO_C" >&6
27087 fi
27088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27090 else
27091   # Is the header compilable?
27092 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27094 cat >conftest.$ac_ext <<_ACEOF
27095 /* confdefs.h.  */
27096 _ACEOF
27097 cat confdefs.h >>conftest.$ac_ext
27098 cat >>conftest.$ac_ext <<_ACEOF
27099 /* end confdefs.h.  */
27100 $ac_includes_default
27101 #include <$ac_header>
27102 _ACEOF
27103 rm -f conftest.$ac_objext
27104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27105   (eval $ac_compile) 2>conftest.er1
27106   ac_status=$?
27107   grep -v '^ *+' conftest.er1 >conftest.err
27108   rm -f conftest.er1
27109   cat conftest.err >&5
27110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111   (exit $ac_status); } &&
27112          { ac_try='test -z "$ac_c_werror_flag"
27113                          || test ! -s conftest.err'
27114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27115   (eval $ac_try) 2>&5
27116   ac_status=$?
27117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118   (exit $ac_status); }; } &&
27119          { ac_try='test -s conftest.$ac_objext'
27120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27121   (eval $ac_try) 2>&5
27122   ac_status=$?
27123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124   (exit $ac_status); }; }; then
27125   ac_header_compiler=yes
27126 else
27127   echo "$as_me: failed program was:" >&5
27128 sed 's/^/| /' conftest.$ac_ext >&5
27129
27130 ac_header_compiler=no
27131 fi
27132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27134 echo "${ECHO_T}$ac_header_compiler" >&6
27135
27136 # Is the header present?
27137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27139 cat >conftest.$ac_ext <<_ACEOF
27140 /* confdefs.h.  */
27141 _ACEOF
27142 cat confdefs.h >>conftest.$ac_ext
27143 cat >>conftest.$ac_ext <<_ACEOF
27144 /* end confdefs.h.  */
27145 #include <$ac_header>
27146 _ACEOF
27147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27148   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27149   ac_status=$?
27150   grep -v '^ *+' conftest.er1 >conftest.err
27151   rm -f conftest.er1
27152   cat conftest.err >&5
27153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154   (exit $ac_status); } >/dev/null; then
27155   if test -s conftest.err; then
27156     ac_cpp_err=$ac_c_preproc_warn_flag
27157     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27158   else
27159     ac_cpp_err=
27160   fi
27161 else
27162   ac_cpp_err=yes
27163 fi
27164 if test -z "$ac_cpp_err"; then
27165   ac_header_preproc=yes
27166 else
27167   echo "$as_me: failed program was:" >&5
27168 sed 's/^/| /' conftest.$ac_ext >&5
27169
27170   ac_header_preproc=no
27171 fi
27172 rm -f conftest.err conftest.$ac_ext
27173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27174 echo "${ECHO_T}$ac_header_preproc" >&6
27175
27176 # So?  What about this header?
27177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27178   yes:no: )
27179     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27183     ac_header_preproc=yes
27184     ;;
27185   no:yes:* )
27186     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27188     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27189 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27190     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27192     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27193 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27196     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27198     (
27199       cat <<\_ASBOX
27200 ## --------------------------------------------- ##
27201 ## Report this to <http://www.openldap.org/its/> ##
27202 ## --------------------------------------------- ##
27203 _ASBOX
27204     ) |
27205       sed "s/^/$as_me: WARNING:     /" >&2
27206     ;;
27207 esac
27208 echo "$as_me:$LINENO: checking for $ac_header" >&5
27209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27211   echo $ECHO_N "(cached) $ECHO_C" >&6
27212 else
27213   eval "$as_ac_Header=\$ac_header_preproc"
27214 fi
27215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27217
27218 fi
27219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27220   cat >>confdefs.h <<_ACEOF
27221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27222 _ACEOF
27223
27224 fi
27225
27226 done
27227
27228 fi
27229
27230 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27231                         cat >>confdefs.h <<\_ACEOF
27232 #define REENTRANT 1
27233 _ACEOF
27234
27235         cat >>confdefs.h <<\_ACEOF
27236 #define _REENTRANT 1
27237 _ACEOF
27238
27239         cat >>confdefs.h <<\_ACEOF
27240 #define THREAD_SAFE 1
27241 _ACEOF
27242
27243         cat >>confdefs.h <<\_ACEOF
27244 #define _THREAD_SAFE 1
27245 _ACEOF
27246
27247         cat >>confdefs.h <<\_ACEOF
27248 #define THREADSAFE 1
27249 _ACEOF
27250
27251         cat >>confdefs.h <<\_ACEOF
27252 #define _THREADSAFE 1
27253 _ACEOF
27254
27255         cat >>confdefs.h <<\_ACEOF
27256 #define _SGI_MP_SOURCE 1
27257 _ACEOF
27258
27259
27260                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27261 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27262 if test "${ol_cv_errno_thread_specific+set}" = set; then
27263   echo $ECHO_N "(cached) $ECHO_C" >&6
27264 else
27265
27266                 cat >conftest.$ac_ext <<_ACEOF
27267 /* confdefs.h.  */
27268 _ACEOF
27269 cat confdefs.h >>conftest.$ac_ext
27270 cat >>conftest.$ac_ext <<_ACEOF
27271 /* end confdefs.h.  */
27272 #include <errno.h>
27273 int
27274 main ()
27275 {
27276 errno = 0;
27277   ;
27278   return 0;
27279 }
27280 _ACEOF
27281 rm -f conftest.$ac_objext conftest$ac_exeext
27282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27283   (eval $ac_link) 2>conftest.er1
27284   ac_status=$?
27285   grep -v '^ *+' conftest.er1 >conftest.err
27286   rm -f conftest.er1
27287   cat conftest.err >&5
27288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27289   (exit $ac_status); } &&
27290          { ac_try='test -z "$ac_c_werror_flag"
27291                          || test ! -s conftest.err'
27292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27293   (eval $ac_try) 2>&5
27294   ac_status=$?
27295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296   (exit $ac_status); }; } &&
27297          { ac_try='test -s conftest$ac_exeext'
27298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27299   (eval $ac_try) 2>&5
27300   ac_status=$?
27301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302   (exit $ac_status); }; }; then
27303   ol_cv_errno_thread_specific=yes
27304 else
27305   echo "$as_me: failed program was:" >&5
27306 sed 's/^/| /' conftest.$ac_ext >&5
27307
27308 ol_cv_errno_thread_specific=no
27309 fi
27310 rm -f conftest.err conftest.$ac_objext \
27311       conftest$ac_exeext conftest.$ac_ext
27312
27313 fi
27314 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27315 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27316
27317                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27318 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27319 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27320   echo $ECHO_N "(cached) $ECHO_C" >&6
27321 else
27322
27323                 cat >conftest.$ac_ext <<_ACEOF
27324 /* confdefs.h.  */
27325 _ACEOF
27326 cat confdefs.h >>conftest.$ac_ext
27327 cat >>conftest.$ac_ext <<_ACEOF
27328 /* end confdefs.h.  */
27329 #include <netdb.h>
27330 int
27331 main ()
27332 {
27333 h_errno = 0;
27334   ;
27335   return 0;
27336 }
27337 _ACEOF
27338 rm -f conftest.$ac_objext conftest$ac_exeext
27339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27340   (eval $ac_link) 2>conftest.er1
27341   ac_status=$?
27342   grep -v '^ *+' conftest.er1 >conftest.err
27343   rm -f conftest.er1
27344   cat conftest.err >&5
27345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346   (exit $ac_status); } &&
27347          { ac_try='test -z "$ac_c_werror_flag"
27348                          || test ! -s conftest.err'
27349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27350   (eval $ac_try) 2>&5
27351   ac_status=$?
27352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353   (exit $ac_status); }; } &&
27354          { ac_try='test -s conftest$ac_exeext'
27355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27356   (eval $ac_try) 2>&5
27357   ac_status=$?
27358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359   (exit $ac_status); }; }; then
27360   ol_cv_h_errno_thread_specific=yes
27361 else
27362   echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27364
27365 ol_cv_h_errno_thread_specific=no
27366 fi
27367 rm -f conftest.err conftest.$ac_objext \
27368       conftest$ac_exeext conftest.$ac_ext
27369
27370 fi
27371 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27372 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27373
27374         if test $ol_cv_errno_thread_specific != yes ||
27375            test $ol_cv_h_errno_thread_specific != yes ; then
27376                 LIBS="$LTHREAD_LIBS $LIBS"
27377                 LTHREAD_LIBS=""
27378         fi
27379
27380 fi
27381
27382 if test $ol_link_threads = no ; then
27383         if test $ol_with_threads = yes ; then
27384                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27385 echo "$as_me: error: no suitable thread support" >&2;}
27386    { (exit 1); exit 1; }; }
27387         fi
27388
27389         if test $ol_with_threads = auto ; then
27390                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27391 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27392                 ol_with_threads=no
27393         fi
27394
27395
27396 cat >>confdefs.h <<\_ACEOF
27397 #define NO_THREADS 1
27398 _ACEOF
27399
27400         LTHREAD_LIBS=""
27401         BUILD_THREAD=no
27402 else
27403         BUILD_THREAD=yes
27404 fi
27405
27406 if test $ol_link_threads != no ; then
27407
27408 cat >>confdefs.h <<\_ACEOF
27409 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27410 _ACEOF
27411
27412 fi
27413
27414
27415
27416
27417 for ac_func in \
27418         ctime_r                 \
27419         gethostbyname_r gethostbyaddr_r \
27420
27421 do
27422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27423 echo "$as_me:$LINENO: checking for $ac_func" >&5
27424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27425 if eval "test \"\${$as_ac_var+set}\" = set"; then
27426   echo $ECHO_N "(cached) $ECHO_C" >&6
27427 else
27428   cat >conftest.$ac_ext <<_ACEOF
27429 /* confdefs.h.  */
27430 _ACEOF
27431 cat confdefs.h >>conftest.$ac_ext
27432 cat >>conftest.$ac_ext <<_ACEOF
27433 /* end confdefs.h.  */
27434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27436 #define $ac_func innocuous_$ac_func
27437
27438 /* System header to define __stub macros and hopefully few prototypes,
27439     which can conflict with char $ac_func (); below.
27440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27441     <limits.h> exists even on freestanding compilers.  */
27442
27443 #ifdef __STDC__
27444 # include <limits.h>
27445 #else
27446 # include <assert.h>
27447 #endif
27448
27449 #undef $ac_func
27450
27451 /* Override any gcc2 internal prototype to avoid an error.  */
27452 #ifdef __cplusplus
27453 extern "C"
27454 {
27455 #endif
27456 /* We use char because int might match the return type of a gcc2
27457    builtin and then its argument prototype would still apply.  */
27458 char $ac_func ();
27459 /* The GNU C library defines this for functions which it implements
27460     to always fail with ENOSYS.  Some functions are actually named
27461     something starting with __ and the normal name is an alias.  */
27462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27463 choke me
27464 #else
27465 char (*f) () = $ac_func;
27466 #endif
27467 #ifdef __cplusplus
27468 }
27469 #endif
27470
27471 int
27472 main ()
27473 {
27474 return f != $ac_func;
27475   ;
27476   return 0;
27477 }
27478 _ACEOF
27479 rm -f conftest.$ac_objext conftest$ac_exeext
27480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27481   (eval $ac_link) 2>conftest.er1
27482   ac_status=$?
27483   grep -v '^ *+' conftest.er1 >conftest.err
27484   rm -f conftest.er1
27485   cat conftest.err >&5
27486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487   (exit $ac_status); } &&
27488          { ac_try='test -z "$ac_c_werror_flag"
27489                          || test ! -s conftest.err'
27490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27491   (eval $ac_try) 2>&5
27492   ac_status=$?
27493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494   (exit $ac_status); }; } &&
27495          { ac_try='test -s conftest$ac_exeext'
27496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27497   (eval $ac_try) 2>&5
27498   ac_status=$?
27499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500   (exit $ac_status); }; }; then
27501   eval "$as_ac_var=yes"
27502 else
27503   echo "$as_me: failed program was:" >&5
27504 sed 's/^/| /' conftest.$ac_ext >&5
27505
27506 eval "$as_ac_var=no"
27507 fi
27508 rm -f conftest.err conftest.$ac_objext \
27509       conftest$ac_exeext conftest.$ac_ext
27510 fi
27511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27513 if test `eval echo '${'$as_ac_var'}'` = yes; then
27514   cat >>confdefs.h <<_ACEOF
27515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27516 _ACEOF
27517
27518 fi
27519 done
27520
27521
27522 if test "$ac_cv_func_ctime_r" = no ; then
27523         ol_cv_func_ctime_r_nargs=0
27524 else
27525         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27526 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27527 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27528   echo $ECHO_N "(cached) $ECHO_C" >&6
27529 else
27530   cat >conftest.$ac_ext <<_ACEOF
27531 /* confdefs.h.  */
27532 _ACEOF
27533 cat confdefs.h >>conftest.$ac_ext
27534 cat >>conftest.$ac_ext <<_ACEOF
27535 /* end confdefs.h.  */
27536 #include <time.h>
27537 int
27538 main ()
27539 {
27540 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27541   ;
27542   return 0;
27543 }
27544 _ACEOF
27545 rm -f conftest.$ac_objext
27546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27547   (eval $ac_compile) 2>conftest.er1
27548   ac_status=$?
27549   grep -v '^ *+' conftest.er1 >conftest.err
27550   rm -f conftest.er1
27551   cat conftest.err >&5
27552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553   (exit $ac_status); } &&
27554          { ac_try='test -z "$ac_c_werror_flag"
27555                          || test ! -s conftest.err'
27556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27557   (eval $ac_try) 2>&5
27558   ac_status=$?
27559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560   (exit $ac_status); }; } &&
27561          { ac_try='test -s conftest.$ac_objext'
27562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27563   (eval $ac_try) 2>&5
27564   ac_status=$?
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); }; }; then
27567   ol_cv_func_ctime_r_nargs3=yes
27568 else
27569   echo "$as_me: failed program was:" >&5
27570 sed 's/^/| /' conftest.$ac_ext >&5
27571
27572 ol_cv_func_ctime_r_nargs3=no
27573 fi
27574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27575
27576         cat >conftest.$ac_ext <<_ACEOF
27577 /* confdefs.h.  */
27578 _ACEOF
27579 cat confdefs.h >>conftest.$ac_ext
27580 cat >>conftest.$ac_ext <<_ACEOF
27581 /* end confdefs.h.  */
27582 #include <time.h>
27583 int
27584 main ()
27585 {
27586 time_t ti; char *buffer; ctime_r(&ti,buffer);
27587   ;
27588   return 0;
27589 }
27590 _ACEOF
27591 rm -f conftest.$ac_objext
27592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27593   (eval $ac_compile) 2>conftest.er1
27594   ac_status=$?
27595   grep -v '^ *+' conftest.er1 >conftest.err
27596   rm -f conftest.er1
27597   cat conftest.err >&5
27598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599   (exit $ac_status); } &&
27600          { ac_try='test -z "$ac_c_werror_flag"
27601                          || test ! -s conftest.err'
27602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27603   (eval $ac_try) 2>&5
27604   ac_status=$?
27605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606   (exit $ac_status); }; } &&
27607          { ac_try='test -s conftest.$ac_objext'
27608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27609   (eval $ac_try) 2>&5
27610   ac_status=$?
27611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612   (exit $ac_status); }; }; then
27613   ol_cv_func_ctime_r_nargs2=yes
27614 else
27615   echo "$as_me: failed program was:" >&5
27616 sed 's/^/| /' conftest.$ac_ext >&5
27617
27618 ol_cv_func_ctime_r_nargs2=no
27619 fi
27620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27621
27622         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27623            test $ol_cv_func_ctime_r_nargs2 = no ; then
27624
27625                 ol_cv_func_ctime_r_nargs=3
27626
27627         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27628              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27629
27630                 ol_cv_func_ctime_r_nargs=2
27631
27632         else
27633                 ol_cv_func_ctime_r_nargs=0
27634         fi
27635
27636 fi
27637 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27638 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27639
27640   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27641
27642 cat >>confdefs.h <<_ACEOF
27643 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27644 _ACEOF
27645
27646   fi
27647
27648 fi
27649
27650 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27651         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27652 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27653 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27654   echo $ECHO_N "(cached) $ECHO_C" >&6
27655 else
27656   cat >conftest.$ac_ext <<_ACEOF
27657 /* confdefs.h.  */
27658 _ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h.  */
27662 #include <sys/types.h>
27663 #include <sys/socket.h>
27664 #include <netinet/in.h>
27665 #include <netdb.h>
27666 #define BUFSIZE (sizeof(struct hostent)+10)
27667 int
27668 main ()
27669 {
27670 struct hostent hent; char buffer[BUFSIZE];
27671                 int bufsize=BUFSIZE;int h_errno;
27672                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27673                         buffer, bufsize, &h_errno);
27674   ;
27675   return 0;
27676 }
27677 _ACEOF
27678 rm -f conftest.$ac_objext
27679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27680   (eval $ac_compile) 2>conftest.er1
27681   ac_status=$?
27682   grep -v '^ *+' conftest.er1 >conftest.err
27683   rm -f conftest.er1
27684   cat conftest.err >&5
27685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686   (exit $ac_status); } &&
27687          { ac_try='test -z "$ac_c_werror_flag"
27688                          || test ! -s conftest.err'
27689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27690   (eval $ac_try) 2>&5
27691   ac_status=$?
27692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693   (exit $ac_status); }; } &&
27694          { ac_try='test -s conftest.$ac_objext'
27695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27696   (eval $ac_try) 2>&5
27697   ac_status=$?
27698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699   (exit $ac_status); }; }; then
27700   ol_cv_func_gethostbyname_r_nargs5=yes
27701 else
27702   echo "$as_me: failed program was:" >&5
27703 sed 's/^/| /' conftest.$ac_ext >&5
27704
27705 ol_cv_func_gethostbyname_r_nargs5=no
27706 fi
27707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27708
27709         cat >conftest.$ac_ext <<_ACEOF
27710 /* confdefs.h.  */
27711 _ACEOF
27712 cat confdefs.h >>conftest.$ac_ext
27713 cat >>conftest.$ac_ext <<_ACEOF
27714 /* end confdefs.h.  */
27715 #include <sys/types.h>
27716 #include <sys/socket.h>
27717 #include <netinet/in.h>
27718 #include <netdb.h>
27719 #define BUFSIZE (sizeof(struct hostent)+10)
27720 int
27721 main ()
27722 {
27723 struct hostent hent;struct hostent *rhent;
27724                 char buffer[BUFSIZE];
27725                 int bufsize=BUFSIZE;int h_errno;
27726                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27727                         &rhent, &h_errno);
27728   ;
27729   return 0;
27730 }
27731 _ACEOF
27732 rm -f conftest.$ac_objext
27733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27734   (eval $ac_compile) 2>conftest.er1
27735   ac_status=$?
27736   grep -v '^ *+' conftest.er1 >conftest.err
27737   rm -f conftest.er1
27738   cat conftest.err >&5
27739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740   (exit $ac_status); } &&
27741          { ac_try='test -z "$ac_c_werror_flag"
27742                          || test ! -s conftest.err'
27743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27744   (eval $ac_try) 2>&5
27745   ac_status=$?
27746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747   (exit $ac_status); }; } &&
27748          { ac_try='test -s conftest.$ac_objext'
27749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27750   (eval $ac_try) 2>&5
27751   ac_status=$?
27752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753   (exit $ac_status); }; }; then
27754   ol_cv_func_gethostbyname_r_nargs6=yes
27755 else
27756   echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27758
27759 ol_cv_func_gethostbyname_r_nargs6=no
27760 fi
27761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27762
27763         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27764            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27765
27766                 ol_cv_func_gethostbyname_r_nargs=5
27767
27768         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27769              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27770
27771                 ol_cv_func_gethostbyname_r_nargs=6
27772
27773         else
27774                 ol_cv_func_gethostbyname_r_nargs=0
27775         fi
27776
27777 fi
27778 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27779 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27780   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27781
27782 cat >>confdefs.h <<_ACEOF
27783 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27784 _ACEOF
27785
27786   fi
27787
27788 else
27789         ol_cv_func_gethostbyname_r_nargs=0
27790 fi
27791
27792 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27793         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27794 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27795 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27796   echo $ECHO_N "(cached) $ECHO_C" >&6
27797 else
27798   cat >conftest.$ac_ext <<_ACEOF
27799 /* confdefs.h.  */
27800 _ACEOF
27801 cat confdefs.h >>conftest.$ac_ext
27802 cat >>conftest.$ac_ext <<_ACEOF
27803 /* end confdefs.h.  */
27804 #include <sys/types.h>
27805 #include <sys/socket.h>
27806 #include <netinet/in.h>
27807 #include <netdb.h>
27808 #define BUFSIZE (sizeof(struct hostent)+10)
27809 int
27810 main ()
27811 {
27812 struct hostent hent; char buffer[BUFSIZE];
27813             struct in_addr add;
27814             size_t alen=sizeof(struct in_addr);
27815             int bufsize=BUFSIZE;int h_errno;
27816                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27817                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27818   ;
27819   return 0;
27820 }
27821 _ACEOF
27822 rm -f conftest.$ac_objext
27823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27824   (eval $ac_compile) 2>conftest.er1
27825   ac_status=$?
27826   grep -v '^ *+' conftest.er1 >conftest.err
27827   rm -f conftest.er1
27828   cat conftest.err >&5
27829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27830   (exit $ac_status); } &&
27831          { ac_try='test -z "$ac_c_werror_flag"
27832                          || test ! -s conftest.err'
27833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27834   (eval $ac_try) 2>&5
27835   ac_status=$?
27836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837   (exit $ac_status); }; } &&
27838          { ac_try='test -s conftest.$ac_objext'
27839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840   (eval $ac_try) 2>&5
27841   ac_status=$?
27842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843   (exit $ac_status); }; }; then
27844   ol_cv_func_gethostbyaddr_r_nargs7=yes
27845 else
27846   echo "$as_me: failed program was:" >&5
27847 sed 's/^/| /' conftest.$ac_ext >&5
27848
27849 ol_cv_func_gethostbyaddr_r_nargs7=no
27850 fi
27851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27852
27853         cat >conftest.$ac_ext <<_ACEOF
27854 /* confdefs.h.  */
27855 _ACEOF
27856 cat confdefs.h >>conftest.$ac_ext
27857 cat >>conftest.$ac_ext <<_ACEOF
27858 /* end confdefs.h.  */
27859 #include <sys/types.h>
27860 #include <sys/socket.h>
27861 #include <netinet/in.h>
27862 #include <netdb.h>
27863 #define BUFSIZE (sizeof(struct hostent)+10)
27864 int
27865 main ()
27866 {
27867 struct hostent hent;
27868                 struct hostent *rhent; char buffer[BUFSIZE];
27869                 struct in_addr add;
27870                 size_t alen=sizeof(struct in_addr);
27871                 int bufsize=BUFSIZE;int h_errno;
27872                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27873                         alen, AF_INET, &hent, buffer, bufsize,
27874                         &rhent, &h_errno);
27875   ;
27876   return 0;
27877 }
27878 _ACEOF
27879 rm -f conftest.$ac_objext
27880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27881   (eval $ac_compile) 2>conftest.er1
27882   ac_status=$?
27883   grep -v '^ *+' conftest.er1 >conftest.err
27884   rm -f conftest.er1
27885   cat conftest.err >&5
27886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887   (exit $ac_status); } &&
27888          { ac_try='test -z "$ac_c_werror_flag"
27889                          || test ! -s conftest.err'
27890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27891   (eval $ac_try) 2>&5
27892   ac_status=$?
27893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894   (exit $ac_status); }; } &&
27895          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27901   ol_cv_func_gethostbyaddr_r_nargs8=yes
27902 else
27903   echo "$as_me: failed program was:" >&5
27904 sed 's/^/| /' conftest.$ac_ext >&5
27905
27906 ol_cv_func_gethostbyaddr_r_nargs8=no
27907 fi
27908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27909
27910         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27911            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27912
27913                 ol_cv_func_gethostbyaddr_r_nargs=7
27914
27915         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27916              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27917
27918                 ol_cv_func_gethostbyaddr_r_nargs=8
27919
27920         else
27921                 ol_cv_func_gethostbyaddr_r_nargs=0
27922         fi
27923
27924 fi
27925 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27926 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27927   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27928
27929 cat >>confdefs.h <<_ACEOF
27930 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27931 _ACEOF
27932
27933   fi
27934
27935 else
27936         ol_cv_func_gethostbyaddr_r_nargs=0
27937 fi
27938
27939 ol_link_bdb=no
27940
27941 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27942         ol_cv_berkeley_db=no
27943
27944 for ac_header in db.h
27945 do
27946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27948   echo "$as_me:$LINENO: checking for $ac_header" >&5
27949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27951   echo $ECHO_N "(cached) $ECHO_C" >&6
27952 fi
27953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27955 else
27956   # Is the header compilable?
27957 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27959 cat >conftest.$ac_ext <<_ACEOF
27960 /* confdefs.h.  */
27961 _ACEOF
27962 cat confdefs.h >>conftest.$ac_ext
27963 cat >>conftest.$ac_ext <<_ACEOF
27964 /* end confdefs.h.  */
27965 $ac_includes_default
27966 #include <$ac_header>
27967 _ACEOF
27968 rm -f conftest.$ac_objext
27969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27970   (eval $ac_compile) 2>conftest.er1
27971   ac_status=$?
27972   grep -v '^ *+' conftest.er1 >conftest.err
27973   rm -f conftest.er1
27974   cat conftest.err >&5
27975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976   (exit $ac_status); } &&
27977          { ac_try='test -z "$ac_c_werror_flag"
27978                          || test ! -s conftest.err'
27979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27980   (eval $ac_try) 2>&5
27981   ac_status=$?
27982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983   (exit $ac_status); }; } &&
27984          { ac_try='test -s conftest.$ac_objext'
27985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27986   (eval $ac_try) 2>&5
27987   ac_status=$?
27988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989   (exit $ac_status); }; }; then
27990   ac_header_compiler=yes
27991 else
27992   echo "$as_me: failed program was:" >&5
27993 sed 's/^/| /' conftest.$ac_ext >&5
27994
27995 ac_header_compiler=no
27996 fi
27997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27999 echo "${ECHO_T}$ac_header_compiler" >&6
28000
28001 # Is the header present?
28002 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28004 cat >conftest.$ac_ext <<_ACEOF
28005 /* confdefs.h.  */
28006 _ACEOF
28007 cat confdefs.h >>conftest.$ac_ext
28008 cat >>conftest.$ac_ext <<_ACEOF
28009 /* end confdefs.h.  */
28010 #include <$ac_header>
28011 _ACEOF
28012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28014   ac_status=$?
28015   grep -v '^ *+' conftest.er1 >conftest.err
28016   rm -f conftest.er1
28017   cat conftest.err >&5
28018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019   (exit $ac_status); } >/dev/null; then
28020   if test -s conftest.err; then
28021     ac_cpp_err=$ac_c_preproc_warn_flag
28022     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28023   else
28024     ac_cpp_err=
28025   fi
28026 else
28027   ac_cpp_err=yes
28028 fi
28029 if test -z "$ac_cpp_err"; then
28030   ac_header_preproc=yes
28031 else
28032   echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28034
28035   ac_header_preproc=no
28036 fi
28037 rm -f conftest.err conftest.$ac_ext
28038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28039 echo "${ECHO_T}$ac_header_preproc" >&6
28040
28041 # So?  What about this header?
28042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28043   yes:no: )
28044     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28047 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28048     ac_header_preproc=yes
28049     ;;
28050   no:yes:* )
28051     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28053     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28054 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28055     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28056 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28057     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28058 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28061     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28062 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28063     (
28064       cat <<\_ASBOX
28065 ## --------------------------------------------- ##
28066 ## Report this to <http://www.openldap.org/its/> ##
28067 ## --------------------------------------------- ##
28068 _ASBOX
28069     ) |
28070       sed "s/^/$as_me: WARNING:     /" >&2
28071     ;;
28072 esac
28073 echo "$as_me:$LINENO: checking for $ac_header" >&5
28074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28076   echo $ECHO_N "(cached) $ECHO_C" >&6
28077 else
28078   eval "$as_ac_Header=\$ac_header_preproc"
28079 fi
28080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28082
28083 fi
28084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28085   cat >>confdefs.h <<_ACEOF
28086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28087 _ACEOF
28088
28089 fi
28090
28091 done
28092
28093 if test $ac_cv_header_db_h = yes; then
28094         echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28095 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6
28096 if test "${ol_cv_bdb_major+set}" = set; then
28097   echo $ECHO_N "(cached) $ECHO_C" >&6
28098 else
28099
28100         cat >conftest.$ac_ext <<_ACEOF
28101
28102 #include <db.h>
28103 #ifndef DB_VERSION_MAJOR
28104 #       define DB_VERSION_MAJOR 1
28105 #endif
28106 __db_version DB_VERSION_MAJOR
28107
28108 _ACEOF
28109         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28110         ol_cv_bdb_major=${3}
28111
28112 fi
28113 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28114 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28115 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28116         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28117 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28118    { (exit 1); exit 1; }; } ;;
28119 esac
28120
28121 echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28122 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6
28123 if test "${ol_cv_bdb_minor+set}" = set; then
28124   echo $ECHO_N "(cached) $ECHO_C" >&6
28125 else
28126
28127         cat >conftest.$ac_ext <<_ACEOF
28128
28129 #include <db.h>
28130 #ifndef DB_VERSION_MINOR
28131 #       define DB_VERSION_MINOR 0
28132 #endif
28133 __db_version DB_VERSION_MINOR
28134
28135 _ACEOF
28136         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28137         ol_cv_bdb_minor=${3}
28138
28139 fi
28140 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28141 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28142 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28143         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28144 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28145    { (exit 1); exit 1; }; } ;;
28146 esac
28147
28148         echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28149 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6
28150 if test "${ol_cv_bdb_compat+set}" = set; then
28151   echo $ECHO_N "(cached) $ECHO_C" >&6
28152 else
28153
28154         cat >conftest.$ac_ext <<_ACEOF
28155 /* confdefs.h.  */
28156 _ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h.  */
28160
28161 #include <db.h>
28162
28163  /* this check could be improved */
28164 #ifndef DB_VERSION_MAJOR
28165 #       define DB_VERSION_MAJOR 1
28166 #endif
28167 #ifndef DB_VERSION_MINOR
28168 #       define DB_VERSION_MINOR 0
28169 #endif
28170
28171 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28172
28173 /* require 4.4 or later */
28174 #if DB_VERSION_MM >= 0x0404
28175         __db_version_compat
28176 #endif
28177
28178 _ACEOF
28179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28180   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28181   ol_cv_bdb_compat=yes
28182 else
28183   ol_cv_bdb_compat=no
28184 fi
28185 rm -f conftest*
28186
28187 fi
28188 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28189 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
28190
28191
28192         if test $ol_cv_bdb_compat != yes ; then
28193                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28194 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28195    { (exit 1); exit 1; }; }
28196         fi
28197
28198         ol_cv_lib_db=no
28199
28200 if test $ol_cv_bdb_major = 4 ; then
28201         if test $ol_cv_lib_db = no ; then
28202         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28203 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6
28204 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28205   echo $ECHO_N "(cached) $ECHO_C" >&6
28206 else
28207
28208         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28209         ol_LIBS=$LIBS
28210         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28211
28212         cat >conftest.$ac_ext <<_ACEOF
28213 /* confdefs.h.  */
28214 _ACEOF
28215 cat confdefs.h >>conftest.$ac_ext
28216 cat >>conftest.$ac_ext <<_ACEOF
28217 /* end confdefs.h.  */
28218
28219 #ifdef HAVE_DB_185_H
28220 # include <db_185.h>
28221 #else
28222 # include <db.h>
28223 #endif
28224
28225 #ifndef DB_VERSION_MAJOR
28226 # define DB_VERSION_MAJOR 1
28227 #endif
28228
28229 #ifndef NULL
28230 #define NULL ((void*)0)
28231 #endif
28232
28233 int
28234 main ()
28235 {
28236
28237 #if DB_VERSION_MAJOR > 2
28238         db_env_create( NULL, 0 );
28239 #elif DB_VERSION_MAJOR > 1
28240         db_appexit( NULL );
28241 #else
28242         (void) dbopen( NULL, 0, 0, 0, NULL);
28243 #endif
28244
28245   ;
28246   return 0;
28247 }
28248 _ACEOF
28249 rm -f conftest.$ac_objext conftest$ac_exeext
28250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28251   (eval $ac_link) 2>conftest.er1
28252   ac_status=$?
28253   grep -v '^ *+' conftest.er1 >conftest.err
28254   rm -f conftest.er1
28255   cat conftest.err >&5
28256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257   (exit $ac_status); } &&
28258          { ac_try='test -z "$ac_c_werror_flag"
28259                          || test ! -s conftest.err'
28260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261   (eval $ac_try) 2>&5
28262   ac_status=$?
28263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264   (exit $ac_status); }; } &&
28265          { ac_try='test -s conftest$ac_exeext'
28266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28267   (eval $ac_try) 2>&5
28268   ac_status=$?
28269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270   (exit $ac_status); }; }; then
28271   ol_cv_db_db_4_dot_m=yes
28272 else
28273   echo "$as_me: failed program was:" >&5
28274 sed 's/^/| /' conftest.$ac_ext >&5
28275
28276 ol_cv_db_db_4_dot_m=no
28277 fi
28278 rm -f conftest.err conftest.$ac_objext \
28279       conftest$ac_exeext conftest.$ac_ext
28280
28281         LIBS="$ol_LIBS"
28282
28283 fi
28284 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28285 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6
28286
28287         if test $ol_cv_db_db_4_dot_m = yes ; then
28288                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28289         fi
28290 fi
28291
28292         if test $ol_cv_lib_db = no ; then
28293         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28294 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6
28295 if test "${ol_cv_db_db4m+set}" = set; then
28296   echo $ECHO_N "(cached) $ECHO_C" >&6
28297 else
28298
28299         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28300         ol_LIBS=$LIBS
28301         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28302
28303         cat >conftest.$ac_ext <<_ACEOF
28304 /* confdefs.h.  */
28305 _ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h.  */
28309
28310 #ifdef HAVE_DB_185_H
28311 # include <db_185.h>
28312 #else
28313 # include <db.h>
28314 #endif
28315
28316 #ifndef DB_VERSION_MAJOR
28317 # define DB_VERSION_MAJOR 1
28318 #endif
28319
28320 #ifndef NULL
28321 #define NULL ((void*)0)
28322 #endif
28323
28324 int
28325 main ()
28326 {
28327
28328 #if DB_VERSION_MAJOR > 2
28329         db_env_create( NULL, 0 );
28330 #elif DB_VERSION_MAJOR > 1
28331         db_appexit( NULL );
28332 #else
28333         (void) dbopen( NULL, 0, 0, 0, NULL);
28334 #endif
28335
28336   ;
28337   return 0;
28338 }
28339 _ACEOF
28340 rm -f conftest.$ac_objext conftest$ac_exeext
28341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28342   (eval $ac_link) 2>conftest.er1
28343   ac_status=$?
28344   grep -v '^ *+' conftest.er1 >conftest.err
28345   rm -f conftest.er1
28346   cat conftest.err >&5
28347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348   (exit $ac_status); } &&
28349          { ac_try='test -z "$ac_c_werror_flag"
28350                          || test ! -s conftest.err'
28351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28352   (eval $ac_try) 2>&5
28353   ac_status=$?
28354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355   (exit $ac_status); }; } &&
28356          { ac_try='test -s 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_db_db4m=yes
28363 else
28364   echo "$as_me: failed program was:" >&5
28365 sed 's/^/| /' conftest.$ac_ext >&5
28366
28367 ol_cv_db_db4m=no
28368 fi
28369 rm -f conftest.err conftest.$ac_objext \
28370       conftest$ac_exeext conftest.$ac_ext
28371
28372         LIBS="$ol_LIBS"
28373
28374 fi
28375 echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28376 echo "${ECHO_T}$ol_cv_db_db4m" >&6
28377
28378         if test $ol_cv_db_db4m = yes ; then
28379                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28380         fi
28381 fi
28382
28383         if test $ol_cv_lib_db = no ; then
28384         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28385 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6
28386 if test "${ol_cv_db_db_4m+set}" = set; then
28387   echo $ECHO_N "(cached) $ECHO_C" >&6
28388 else
28389
28390         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28391         ol_LIBS=$LIBS
28392         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28393
28394         cat >conftest.$ac_ext <<_ACEOF
28395 /* confdefs.h.  */
28396 _ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h.  */
28400
28401 #ifdef HAVE_DB_185_H
28402 # include <db_185.h>
28403 #else
28404 # include <db.h>
28405 #endif
28406
28407 #ifndef DB_VERSION_MAJOR
28408 # define DB_VERSION_MAJOR 1
28409 #endif
28410
28411 #ifndef NULL
28412 #define NULL ((void*)0)
28413 #endif
28414
28415 int
28416 main ()
28417 {
28418
28419 #if DB_VERSION_MAJOR > 2
28420         db_env_create( NULL, 0 );
28421 #elif DB_VERSION_MAJOR > 1
28422         db_appexit( NULL );
28423 #else
28424         (void) dbopen( NULL, 0, 0, 0, NULL);
28425 #endif
28426
28427   ;
28428   return 0;
28429 }
28430 _ACEOF
28431 rm -f conftest.$ac_objext conftest$ac_exeext
28432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28433   (eval $ac_link) 2>conftest.er1
28434   ac_status=$?
28435   grep -v '^ *+' conftest.er1 >conftest.err
28436   rm -f conftest.er1
28437   cat conftest.err >&5
28438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439   (exit $ac_status); } &&
28440          { ac_try='test -z "$ac_c_werror_flag"
28441                          || test ! -s conftest.err'
28442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28443   (eval $ac_try) 2>&5
28444   ac_status=$?
28445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446   (exit $ac_status); }; } &&
28447          { ac_try='test -s conftest$ac_exeext'
28448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449   (eval $ac_try) 2>&5
28450   ac_status=$?
28451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452   (exit $ac_status); }; }; then
28453   ol_cv_db_db_4m=yes
28454 else
28455   echo "$as_me: failed program was:" >&5
28456 sed 's/^/| /' conftest.$ac_ext >&5
28457
28458 ol_cv_db_db_4m=no
28459 fi
28460 rm -f conftest.err conftest.$ac_objext \
28461       conftest$ac_exeext conftest.$ac_ext
28462
28463         LIBS="$ol_LIBS"
28464
28465 fi
28466 echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28467 echo "${ECHO_T}$ol_cv_db_db_4m" >&6
28468
28469         if test $ol_cv_db_db_4m = yes ; then
28470                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28471         fi
28472 fi
28473
28474         if test $ol_cv_lib_db = no ; then
28475         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28476 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6
28477 if test "${ol_cv_db_db_4_m+set}" = set; then
28478   echo $ECHO_N "(cached) $ECHO_C" >&6
28479 else
28480
28481         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28482         ol_LIBS=$LIBS
28483         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28484
28485         cat >conftest.$ac_ext <<_ACEOF
28486 /* confdefs.h.  */
28487 _ACEOF
28488 cat confdefs.h >>conftest.$ac_ext
28489 cat >>conftest.$ac_ext <<_ACEOF
28490 /* end confdefs.h.  */
28491
28492 #ifdef HAVE_DB_185_H
28493 # include <db_185.h>
28494 #else
28495 # include <db.h>
28496 #endif
28497
28498 #ifndef DB_VERSION_MAJOR
28499 # define DB_VERSION_MAJOR 1
28500 #endif
28501
28502 #ifndef NULL
28503 #define NULL ((void*)0)
28504 #endif
28505
28506 int
28507 main ()
28508 {
28509
28510 #if DB_VERSION_MAJOR > 2
28511         db_env_create( NULL, 0 );
28512 #elif DB_VERSION_MAJOR > 1
28513         db_appexit( NULL );
28514 #else
28515         (void) dbopen( NULL, 0, 0, 0, NULL);
28516 #endif
28517
28518   ;
28519   return 0;
28520 }
28521 _ACEOF
28522 rm -f conftest.$ac_objext conftest$ac_exeext
28523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28524   (eval $ac_link) 2>conftest.er1
28525   ac_status=$?
28526   grep -v '^ *+' conftest.er1 >conftest.err
28527   rm -f conftest.er1
28528   cat conftest.err >&5
28529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530   (exit $ac_status); } &&
28531          { ac_try='test -z "$ac_c_werror_flag"
28532                          || test ! -s conftest.err'
28533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28534   (eval $ac_try) 2>&5
28535   ac_status=$?
28536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537   (exit $ac_status); }; } &&
28538          { ac_try='test -s conftest$ac_exeext'
28539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28540   (eval $ac_try) 2>&5
28541   ac_status=$?
28542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543   (exit $ac_status); }; }; then
28544   ol_cv_db_db_4_m=yes
28545 else
28546   echo "$as_me: failed program was:" >&5
28547 sed 's/^/| /' conftest.$ac_ext >&5
28548
28549 ol_cv_db_db_4_m=no
28550 fi
28551 rm -f conftest.err conftest.$ac_objext \
28552       conftest$ac_exeext conftest.$ac_ext
28553
28554         LIBS="$ol_LIBS"
28555
28556 fi
28557 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28558 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6
28559
28560         if test $ol_cv_db_db_4_m = yes ; then
28561                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28562         fi
28563 fi
28564
28565         if test $ol_cv_lib_db = no ; then
28566         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28567 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28568 if test "${ol_cv_db_db_4+set}" = set; then
28569   echo $ECHO_N "(cached) $ECHO_C" >&6
28570 else
28571
28572         ol_DB_LIB=-ldb-4
28573         ol_LIBS=$LIBS
28574         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28575
28576         cat >conftest.$ac_ext <<_ACEOF
28577 /* confdefs.h.  */
28578 _ACEOF
28579 cat confdefs.h >>conftest.$ac_ext
28580 cat >>conftest.$ac_ext <<_ACEOF
28581 /* end confdefs.h.  */
28582
28583 #ifdef HAVE_DB_185_H
28584 # include <db_185.h>
28585 #else
28586 # include <db.h>
28587 #endif
28588
28589 #ifndef DB_VERSION_MAJOR
28590 # define DB_VERSION_MAJOR 1
28591 #endif
28592
28593 #ifndef NULL
28594 #define NULL ((void*)0)
28595 #endif
28596
28597 int
28598 main ()
28599 {
28600
28601 #if DB_VERSION_MAJOR > 2
28602         db_env_create( NULL, 0 );
28603 #elif DB_VERSION_MAJOR > 1
28604         db_appexit( NULL );
28605 #else
28606         (void) dbopen( NULL, 0, 0, 0, NULL);
28607 #endif
28608
28609   ;
28610   return 0;
28611 }
28612 _ACEOF
28613 rm -f conftest.$ac_objext conftest$ac_exeext
28614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28615   (eval $ac_link) 2>conftest.er1
28616   ac_status=$?
28617   grep -v '^ *+' conftest.er1 >conftest.err
28618   rm -f conftest.er1
28619   cat conftest.err >&5
28620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621   (exit $ac_status); } &&
28622          { ac_try='test -z "$ac_c_werror_flag"
28623                          || test ! -s conftest.err'
28624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28625   (eval $ac_try) 2>&5
28626   ac_status=$?
28627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628   (exit $ac_status); }; } &&
28629          { ac_try='test -s conftest$ac_exeext'
28630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28631   (eval $ac_try) 2>&5
28632   ac_status=$?
28633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634   (exit $ac_status); }; }; then
28635   ol_cv_db_db_4=yes
28636 else
28637   echo "$as_me: failed program was:" >&5
28638 sed 's/^/| /' conftest.$ac_ext >&5
28639
28640 ol_cv_db_db_4=no
28641 fi
28642 rm -f conftest.err conftest.$ac_objext \
28643       conftest$ac_exeext conftest.$ac_ext
28644
28645         LIBS="$ol_LIBS"
28646
28647 fi
28648 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28649 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28650
28651         if test $ol_cv_db_db_4 = yes ; then
28652                 ol_cv_lib_db=-ldb-4
28653         fi
28654 fi
28655
28656         if test $ol_cv_lib_db = no ; then
28657         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28658 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28659 if test "${ol_cv_db_db4+set}" = set; then
28660   echo $ECHO_N "(cached) $ECHO_C" >&6
28661 else
28662
28663         ol_DB_LIB=-ldb4
28664         ol_LIBS=$LIBS
28665         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28666
28667         cat >conftest.$ac_ext <<_ACEOF
28668 /* confdefs.h.  */
28669 _ACEOF
28670 cat confdefs.h >>conftest.$ac_ext
28671 cat >>conftest.$ac_ext <<_ACEOF
28672 /* end confdefs.h.  */
28673
28674 #ifdef HAVE_DB_185_H
28675 # include <db_185.h>
28676 #else
28677 # include <db.h>
28678 #endif
28679
28680 #ifndef DB_VERSION_MAJOR
28681 # define DB_VERSION_MAJOR 1
28682 #endif
28683
28684 #ifndef NULL
28685 #define NULL ((void*)0)
28686 #endif
28687
28688 int
28689 main ()
28690 {
28691
28692 #if DB_VERSION_MAJOR > 2
28693         db_env_create( NULL, 0 );
28694 #elif DB_VERSION_MAJOR > 1
28695         db_appexit( NULL );
28696 #else
28697         (void) dbopen( NULL, 0, 0, 0, NULL);
28698 #endif
28699
28700   ;
28701   return 0;
28702 }
28703 _ACEOF
28704 rm -f conftest.$ac_objext conftest$ac_exeext
28705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28706   (eval $ac_link) 2>conftest.er1
28707   ac_status=$?
28708   grep -v '^ *+' conftest.er1 >conftest.err
28709   rm -f conftest.er1
28710   cat conftest.err >&5
28711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712   (exit $ac_status); } &&
28713          { ac_try='test -z "$ac_c_werror_flag"
28714                          || test ! -s conftest.err'
28715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28716   (eval $ac_try) 2>&5
28717   ac_status=$?
28718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719   (exit $ac_status); }; } &&
28720          { ac_try='test -s conftest$ac_exeext'
28721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28722   (eval $ac_try) 2>&5
28723   ac_status=$?
28724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725   (exit $ac_status); }; }; then
28726   ol_cv_db_db4=yes
28727 else
28728   echo "$as_me: failed program was:" >&5
28729 sed 's/^/| /' conftest.$ac_ext >&5
28730
28731 ol_cv_db_db4=no
28732 fi
28733 rm -f conftest.err conftest.$ac_objext \
28734       conftest$ac_exeext conftest.$ac_ext
28735
28736         LIBS="$ol_LIBS"
28737
28738 fi
28739 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28740 echo "${ECHO_T}$ol_cv_db_db4" >&6
28741
28742         if test $ol_cv_db_db4 = yes ; then
28743                 ol_cv_lib_db=-ldb4
28744         fi
28745 fi
28746
28747         if test $ol_cv_lib_db = no ; then
28748         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28749 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
28750 if test "${ol_cv_db_db+set}" = set; then
28751   echo $ECHO_N "(cached) $ECHO_C" >&6
28752 else
28753
28754         ol_DB_LIB=-ldb
28755         ol_LIBS=$LIBS
28756         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28757
28758         cat >conftest.$ac_ext <<_ACEOF
28759 /* confdefs.h.  */
28760 _ACEOF
28761 cat confdefs.h >>conftest.$ac_ext
28762 cat >>conftest.$ac_ext <<_ACEOF
28763 /* end confdefs.h.  */
28764
28765 #ifdef HAVE_DB_185_H
28766 # include <db_185.h>
28767 #else
28768 # include <db.h>
28769 #endif
28770
28771 #ifndef DB_VERSION_MAJOR
28772 # define DB_VERSION_MAJOR 1
28773 #endif
28774
28775 #ifndef NULL
28776 #define NULL ((void*)0)
28777 #endif
28778
28779 int
28780 main ()
28781 {
28782
28783 #if DB_VERSION_MAJOR > 2
28784         db_env_create( NULL, 0 );
28785 #elif DB_VERSION_MAJOR > 1
28786         db_appexit( NULL );
28787 #else
28788         (void) dbopen( NULL, 0, 0, 0, NULL);
28789 #endif
28790
28791   ;
28792   return 0;
28793 }
28794 _ACEOF
28795 rm -f conftest.$ac_objext conftest$ac_exeext
28796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28797   (eval $ac_link) 2>conftest.er1
28798   ac_status=$?
28799   grep -v '^ *+' conftest.er1 >conftest.err
28800   rm -f conftest.er1
28801   cat conftest.err >&5
28802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803   (exit $ac_status); } &&
28804          { ac_try='test -z "$ac_c_werror_flag"
28805                          || test ! -s conftest.err'
28806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28807   (eval $ac_try) 2>&5
28808   ac_status=$?
28809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810   (exit $ac_status); }; } &&
28811          { ac_try='test -s conftest$ac_exeext'
28812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28813   (eval $ac_try) 2>&5
28814   ac_status=$?
28815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816   (exit $ac_status); }; }; then
28817   ol_cv_db_db=yes
28818 else
28819   echo "$as_me: failed program was:" >&5
28820 sed 's/^/| /' conftest.$ac_ext >&5
28821
28822 ol_cv_db_db=no
28823 fi
28824 rm -f conftest.err conftest.$ac_objext \
28825       conftest$ac_exeext conftest.$ac_ext
28826
28827         LIBS="$ol_LIBS"
28828
28829 fi
28830 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28831 echo "${ECHO_T}$ol_cv_db_db" >&6
28832
28833         if test $ol_cv_db_db = yes ; then
28834                 ol_cv_lib_db=-ldb
28835         fi
28836 fi
28837
28838 fi
28839 if test $ol_cv_lib_db = no ; then
28840         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28841 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
28842 if test "${ol_cv_db_none+set}" = set; then
28843   echo $ECHO_N "(cached) $ECHO_C" >&6
28844 else
28845
28846         ol_DB_LIB=
28847         ol_LIBS=$LIBS
28848         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28849
28850         cat >conftest.$ac_ext <<_ACEOF
28851 /* confdefs.h.  */
28852 _ACEOF
28853 cat confdefs.h >>conftest.$ac_ext
28854 cat >>conftest.$ac_ext <<_ACEOF
28855 /* end confdefs.h.  */
28856
28857 #ifdef HAVE_DB_185_H
28858 # include <db_185.h>
28859 #else
28860 # include <db.h>
28861 #endif
28862
28863 #ifndef DB_VERSION_MAJOR
28864 # define DB_VERSION_MAJOR 1
28865 #endif
28866
28867 #ifndef NULL
28868 #define NULL ((void*)0)
28869 #endif
28870
28871 int
28872 main ()
28873 {
28874
28875 #if DB_VERSION_MAJOR > 2
28876         db_env_create( NULL, 0 );
28877 #elif DB_VERSION_MAJOR > 1
28878         db_appexit( NULL );
28879 #else
28880         (void) dbopen( NULL, 0, 0, 0, NULL);
28881 #endif
28882
28883   ;
28884   return 0;
28885 }
28886 _ACEOF
28887 rm -f conftest.$ac_objext conftest$ac_exeext
28888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28889   (eval $ac_link) 2>conftest.er1
28890   ac_status=$?
28891   grep -v '^ *+' conftest.er1 >conftest.err
28892   rm -f conftest.er1
28893   cat conftest.err >&5
28894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895   (exit $ac_status); } &&
28896          { ac_try='test -z "$ac_c_werror_flag"
28897                          || test ! -s conftest.err'
28898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899   (eval $ac_try) 2>&5
28900   ac_status=$?
28901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902   (exit $ac_status); }; } &&
28903          { ac_try='test -s conftest$ac_exeext'
28904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905   (eval $ac_try) 2>&5
28906   ac_status=$?
28907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908   (exit $ac_status); }; }; then
28909   ol_cv_db_none=yes
28910 else
28911   echo "$as_me: failed program was:" >&5
28912 sed 's/^/| /' conftest.$ac_ext >&5
28913
28914 ol_cv_db_none=no
28915 fi
28916 rm -f conftest.err conftest.$ac_objext \
28917       conftest$ac_exeext conftest.$ac_ext
28918
28919         LIBS="$ol_LIBS"
28920
28921 fi
28922 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28923 echo "${ECHO_T}$ol_cv_db_none" >&6
28924
28925         if test $ol_cv_db_none = yes ; then
28926                 ol_cv_lib_db=yes
28927         fi
28928 fi
28929
28930
28931         if test "$ol_cv_lib_db" != no ; then
28932                 ol_cv_berkeley_db=yes
28933                 echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
28934 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6
28935 if test "${ol_cv_berkeley_db_version+set}" = set; then
28936   echo $ECHO_N "(cached) $ECHO_C" >&6
28937 else
28938
28939         ol_LIBS="$LIBS"
28940         LIBS="$LTHREAD_LIBS $LIBS"
28941         if test $ol_cv_lib_db != yes ; then
28942                 LIBS="$ol_cv_lib_db $LIBS"
28943         fi
28944
28945         if test "$cross_compiling" = yes; then
28946   ol_cv_berkeley_db_version=cross
28947 else
28948   cat >conftest.$ac_ext <<_ACEOF
28949 /* confdefs.h.  */
28950 _ACEOF
28951 cat confdefs.h >>conftest.$ac_ext
28952 cat >>conftest.$ac_ext <<_ACEOF
28953 /* end confdefs.h.  */
28954
28955 #ifdef HAVE_DB_185_H
28956         choke me;
28957 #else
28958 #include <db.h>
28959 #endif
28960 #ifndef DB_VERSION_MAJOR
28961 # define DB_VERSION_MAJOR 1
28962 #endif
28963 #ifndef NULL
28964 #define NULL ((void *)0)
28965 #endif
28966 main()
28967 {
28968 #if DB_VERSION_MAJOR > 1
28969         char *version;
28970         int major, minor, patch;
28971
28972         version = db_version( &major, &minor, &patch );
28973
28974         if( major != DB_VERSION_MAJOR ||
28975                 minor != DB_VERSION_MINOR ||
28976                 patch != DB_VERSION_PATCH )
28977         {
28978                 printf("Berkeley DB version mismatch\n"
28979                         "\theader: %s\n\tlibrary: %s\n",
28980                         DB_VERSION_STRING, version);
28981                 return 1;
28982         }
28983 #endif
28984
28985         return 0;
28986 }
28987 _ACEOF
28988 rm -f conftest$ac_exeext
28989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28990   (eval $ac_link) 2>&5
28991   ac_status=$?
28992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28995   (eval $ac_try) 2>&5
28996   ac_status=$?
28997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998   (exit $ac_status); }; }; then
28999   ol_cv_berkeley_db_version=yes
29000 else
29001   echo "$as_me: program exited with status $ac_status" >&5
29002 echo "$as_me: failed program was:" >&5
29003 sed 's/^/| /' conftest.$ac_ext >&5
29004
29005 ( exit $ac_status )
29006 ol_cv_berkeley_db_version=no
29007 fi
29008 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29009 fi
29010
29011         LIBS="$ol_LIBS"
29012
29013 fi
29014 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29015 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
29016
29017         if test $ol_cv_berkeley_db_version = no ; then
29018                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29019 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29020    { (exit 1); exit 1; }; }
29021         fi
29022
29023                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29024 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
29025 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29026   echo $ECHO_N "(cached) $ECHO_C" >&6
29027 else
29028
29029         ol_LIBS="$LIBS"
29030         LIBS="$LTHREAD_LIBS $LIBS"
29031         if test $ol_cv_lib_db != yes ; then
29032                 LIBS="$ol_cv_lib_db $LIBS"
29033         fi
29034
29035         if test "$cross_compiling" = yes; then
29036   ol_cv_berkeley_db_thread=cross
29037 else
29038   cat >conftest.$ac_ext <<_ACEOF
29039 /* confdefs.h.  */
29040 _ACEOF
29041 cat confdefs.h >>conftest.$ac_ext
29042 cat >>conftest.$ac_ext <<_ACEOF
29043 /* end confdefs.h.  */
29044
29045 #ifdef HAVE_DB_185_H
29046         choke me;
29047 #else
29048 #include <db.h>
29049 #endif
29050 #ifndef NULL
29051 #define NULL ((void *)0)
29052 #endif
29053 main()
29054 {
29055         int rc;
29056         u_int32_t flags = DB_CREATE |
29057 #ifdef DB_PRIVATE
29058                 DB_PRIVATE |
29059 #endif
29060                 DB_THREAD;
29061
29062 #if DB_VERSION_MAJOR > 2
29063         DB_ENV *env = NULL;
29064
29065         rc = db_env_create( &env, 0 );
29066
29067         flags |= DB_INIT_MPOOL;
29068 #ifdef DB_MPOOL_PRIVATE
29069         flags |= DB_MPOOL_PRIVATE;
29070 #endif
29071
29072         if( rc ) {
29073                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29074                 return rc;
29075         }
29076
29077 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29078         rc = (env->open)( env, NULL, flags, 0 );
29079 #else
29080         rc = (env->open)( env, NULL, NULL, flags, 0 );
29081 #endif
29082
29083         if ( rc == 0 ) {
29084                 rc = env->close( env, 0 );
29085         }
29086
29087         if( rc ) {
29088                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29089                 return rc;
29090         }
29091
29092 #else
29093         DB_ENV env;
29094         memset( &env, '\0', sizeof(env) );
29095
29096         rc = db_appinit( NULL, NULL, &env, flags );
29097
29098         if( rc == 0 ) {
29099                 db_appexit( &env );
29100         }
29101
29102         unlink("__db_mpool.share");
29103         unlink("__db_lock.share");
29104 #endif
29105
29106         return rc;
29107 }
29108 _ACEOF
29109 rm -f conftest$ac_exeext
29110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29111   (eval $ac_link) 2>&5
29112   ac_status=$?
29113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29116   (eval $ac_try) 2>&5
29117   ac_status=$?
29118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119   (exit $ac_status); }; }; then
29120   ol_cv_berkeley_db_thread=yes
29121 else
29122   echo "$as_me: program exited with status $ac_status" >&5
29123 echo "$as_me: failed program was:" >&5
29124 sed 's/^/| /' conftest.$ac_ext >&5
29125
29126 ( exit $ac_status )
29127 ol_cv_berkeley_db_thread=no
29128 fi
29129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29130 fi
29131
29132         LIBS="$ol_LIBS"
29133
29134 fi
29135 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29136 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
29137
29138         if test $ol_cv_berkeley_db_thread != no ; then
29139
29140 cat >>confdefs.h <<\_ACEOF
29141 #define HAVE_BERKELEY_DB_THREAD 1
29142 _ACEOF
29143
29144         fi
29145
29146         fi
29147 fi
29148
29149
29150         if test $ol_cv_berkeley_db = no ; then
29151                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29152 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29153    { (exit 1); exit 1; }; }
29154         fi
29155
29156
29157 cat >>confdefs.h <<\_ACEOF
29158 #define HAVE_BERKELEY_DB 1
29159 _ACEOF
29160
29161
29162                         if test $ol_cv_lib_db != yes ; then
29163                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29164         fi
29165
29166         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29167
29168         ol_link_bdb=yes
29169 fi
29170
29171
29172 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29173         BUILD_LIBS_DYNAMIC=shared
29174
29175 cat >>confdefs.h <<\_ACEOF
29176 #define LDAP_LIBS_DYNAMIC 1
29177 _ACEOF
29178
29179         LTSTATIC=""
29180 else
29181         BUILD_LIBS_DYNAMIC=static
29182         LTSTATIC="-static"
29183 fi
29184
29185 if test $ol_enable_wrappers != no ; then
29186
29187 for ac_header in tcpd.h
29188 do
29189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29191   echo "$as_me:$LINENO: checking for $ac_header" >&5
29192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29194   echo $ECHO_N "(cached) $ECHO_C" >&6
29195 fi
29196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29198 else
29199   # Is the header compilable?
29200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29202 cat >conftest.$ac_ext <<_ACEOF
29203 /* confdefs.h.  */
29204 _ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h.  */
29208 $ac_includes_default
29209 #include <$ac_header>
29210 _ACEOF
29211 rm -f conftest.$ac_objext
29212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29213   (eval $ac_compile) 2>conftest.er1
29214   ac_status=$?
29215   grep -v '^ *+' conftest.er1 >conftest.err
29216   rm -f conftest.er1
29217   cat conftest.err >&5
29218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219   (exit $ac_status); } &&
29220          { ac_try='test -z "$ac_c_werror_flag"
29221                          || test ! -s conftest.err'
29222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29223   (eval $ac_try) 2>&5
29224   ac_status=$?
29225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226   (exit $ac_status); }; } &&
29227          { ac_try='test -s conftest.$ac_objext'
29228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29229   (eval $ac_try) 2>&5
29230   ac_status=$?
29231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232   (exit $ac_status); }; }; then
29233   ac_header_compiler=yes
29234 else
29235   echo "$as_me: failed program was:" >&5
29236 sed 's/^/| /' conftest.$ac_ext >&5
29237
29238 ac_header_compiler=no
29239 fi
29240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29242 echo "${ECHO_T}$ac_header_compiler" >&6
29243
29244 # Is the header present?
29245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29247 cat >conftest.$ac_ext <<_ACEOF
29248 /* confdefs.h.  */
29249 _ACEOF
29250 cat confdefs.h >>conftest.$ac_ext
29251 cat >>conftest.$ac_ext <<_ACEOF
29252 /* end confdefs.h.  */
29253 #include <$ac_header>
29254 _ACEOF
29255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29256   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29257   ac_status=$?
29258   grep -v '^ *+' conftest.er1 >conftest.err
29259   rm -f conftest.er1
29260   cat conftest.err >&5
29261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262   (exit $ac_status); } >/dev/null; then
29263   if test -s conftest.err; then
29264     ac_cpp_err=$ac_c_preproc_warn_flag
29265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29266   else
29267     ac_cpp_err=
29268   fi
29269 else
29270   ac_cpp_err=yes
29271 fi
29272 if test -z "$ac_cpp_err"; then
29273   ac_header_preproc=yes
29274 else
29275   echo "$as_me: failed program was:" >&5
29276 sed 's/^/| /' conftest.$ac_ext >&5
29277
29278   ac_header_preproc=no
29279 fi
29280 rm -f conftest.err conftest.$ac_ext
29281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29282 echo "${ECHO_T}$ac_header_preproc" >&6
29283
29284 # So?  What about this header?
29285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29286   yes:no: )
29287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29291     ac_header_preproc=yes
29292     ;;
29293   no:yes:* )
29294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29296     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29297 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29298     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29300     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29301 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29304     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29306     (
29307       cat <<\_ASBOX
29308 ## --------------------------------------------- ##
29309 ## Report this to <http://www.openldap.org/its/> ##
29310 ## --------------------------------------------- ##
29311 _ASBOX
29312     ) |
29313       sed "s/^/$as_me: WARNING:     /" >&2
29314     ;;
29315 esac
29316 echo "$as_me:$LINENO: checking for $ac_header" >&5
29317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29319   echo $ECHO_N "(cached) $ECHO_C" >&6
29320 else
29321   eval "$as_ac_Header=\$ac_header_preproc"
29322 fi
29323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29325
29326 fi
29327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29328   cat >>confdefs.h <<_ACEOF
29329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29330 _ACEOF
29331
29332                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29333 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
29334                 save_LIBS="$LIBS"
29335                 LIBS="$LIBS -lwrap"
29336                 cat >conftest.$ac_ext <<_ACEOF
29337 /* confdefs.h.  */
29338 _ACEOF
29339 cat confdefs.h >>conftest.$ac_ext
29340 cat >>conftest.$ac_ext <<_ACEOF
29341 /* end confdefs.h.  */
29342
29343 #include <tcpd.h>
29344 int allow_severity = 0;
29345 int deny_severity  = 0;
29346
29347 struct request_info *req;
29348
29349 int
29350 main ()
29351 {
29352
29353 hosts_access(req)
29354
29355   ;
29356   return 0;
29357 }
29358 _ACEOF
29359 rm -f conftest.$ac_objext conftest$ac_exeext
29360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29361   (eval $ac_link) 2>conftest.er1
29362   ac_status=$?
29363   grep -v '^ *+' conftest.er1 >conftest.err
29364   rm -f conftest.er1
29365   cat conftest.err >&5
29366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367   (exit $ac_status); } &&
29368          { ac_try='test -z "$ac_c_werror_flag"
29369                          || test ! -s conftest.err'
29370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29371   (eval $ac_try) 2>&5
29372   ac_status=$?
29373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374   (exit $ac_status); }; } &&
29375          { ac_try='test -s conftest$ac_exeext'
29376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29377   (eval $ac_try) 2>&5
29378   ac_status=$?
29379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29380   (exit $ac_status); }; }; then
29381   echo "$as_me:$LINENO: result: -lwrap" >&5
29382 echo "${ECHO_T}-lwrap" >&6
29383                 have_wrappers=yes
29384                 LIBS="$save_LIBS"
29385 else
29386   echo "$as_me: failed program was:" >&5
29387 sed 's/^/| /' conftest.$ac_ext >&5
29388
29389
29390                                 LIBS="$LIBS -lnsl"
29391                 cat >conftest.$ac_ext <<_ACEOF
29392 /* confdefs.h.  */
29393 _ACEOF
29394 cat confdefs.h >>conftest.$ac_ext
29395 cat >>conftest.$ac_ext <<_ACEOF
29396 /* end confdefs.h.  */
29397
29398 #include <tcpd.h>
29399 int allow_severity = 0;
29400 int deny_severity  = 0;
29401
29402 struct request_info *req;
29403
29404 int
29405 main ()
29406 {
29407
29408 hosts_access(req)
29409
29410   ;
29411   return 0;
29412 }
29413 _ACEOF
29414 rm -f conftest.$ac_objext conftest$ac_exeext
29415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29416   (eval $ac_link) 2>conftest.er1
29417   ac_status=$?
29418   grep -v '^ *+' conftest.er1 >conftest.err
29419   rm -f conftest.er1
29420   cat conftest.err >&5
29421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422   (exit $ac_status); } &&
29423          { ac_try='test -z "$ac_c_werror_flag"
29424                          || test ! -s conftest.err'
29425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29426   (eval $ac_try) 2>&5
29427   ac_status=$?
29428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429   (exit $ac_status); }; } &&
29430          { ac_try='test -s conftest$ac_exeext'
29431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29432   (eval $ac_try) 2>&5
29433   ac_status=$?
29434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435   (exit $ac_status); }; }; then
29436   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29437 echo "${ECHO_T}-lwrap -lnsl" >&6
29438                 have_wrappers=yes
29439                 LIBS="$save_LIBS -lnsl"
29440 else
29441   echo "$as_me: failed program was:" >&5
29442 sed 's/^/| /' conftest.$ac_ext >&5
29443
29444
29445                 echo "$as_me:$LINENO: result: no" >&5
29446 echo "${ECHO_T}no" >&6
29447                 have_wrappers=no
29448                 LIBS=$save_LIBS
29449 fi
29450 rm -f conftest.err conftest.$ac_objext \
29451       conftest$ac_exeext conftest.$ac_ext
29452 fi
29453 rm -f conftest.err conftest.$ac_objext \
29454       conftest$ac_exeext conftest.$ac_ext
29455 else
29456   have_wrappers=no
29457 fi
29458
29459 done
29460
29461
29462         if test $have_wrappers = yes ; then
29463
29464 cat >>confdefs.h <<\_ACEOF
29465 #define HAVE_TCPD 1
29466 _ACEOF
29467
29468                 WRAP_LIBS="-lwrap"
29469         elif test $ol_enable_wrappers = yes ; then
29470                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29471 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29472    { (exit 1); exit 1; }; }
29473         else
29474                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29475 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29476                 WRAP_LIBS=""
29477         fi
29478 fi
29479
29480 if test $ol_enable_syslog != no ; then
29481         echo "$as_me:$LINENO: checking for openlog" >&5
29482 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
29483 if test "${ac_cv_func_openlog+set}" = set; then
29484   echo $ECHO_N "(cached) $ECHO_C" >&6
29485 else
29486   cat >conftest.$ac_ext <<_ACEOF
29487 /* confdefs.h.  */
29488 _ACEOF
29489 cat confdefs.h >>conftest.$ac_ext
29490 cat >>conftest.$ac_ext <<_ACEOF
29491 /* end confdefs.h.  */
29492 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29493    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29494 #define openlog innocuous_openlog
29495
29496 /* System header to define __stub macros and hopefully few prototypes,
29497     which can conflict with char openlog (); below.
29498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29499     <limits.h> exists even on freestanding compilers.  */
29500
29501 #ifdef __STDC__
29502 # include <limits.h>
29503 #else
29504 # include <assert.h>
29505 #endif
29506
29507 #undef openlog
29508
29509 /* Override any gcc2 internal prototype to avoid an error.  */
29510 #ifdef __cplusplus
29511 extern "C"
29512 {
29513 #endif
29514 /* We use char because int might match the return type of a gcc2
29515    builtin and then its argument prototype would still apply.  */
29516 char openlog ();
29517 /* The GNU C library defines this for functions which it implements
29518     to always fail with ENOSYS.  Some functions are actually named
29519     something starting with __ and the normal name is an alias.  */
29520 #if defined (__stub_openlog) || defined (__stub___openlog)
29521 choke me
29522 #else
29523 char (*f) () = openlog;
29524 #endif
29525 #ifdef __cplusplus
29526 }
29527 #endif
29528
29529 int
29530 main ()
29531 {
29532 return f != openlog;
29533   ;
29534   return 0;
29535 }
29536 _ACEOF
29537 rm -f conftest.$ac_objext conftest$ac_exeext
29538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29539   (eval $ac_link) 2>conftest.er1
29540   ac_status=$?
29541   grep -v '^ *+' conftest.er1 >conftest.err
29542   rm -f conftest.er1
29543   cat conftest.err >&5
29544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545   (exit $ac_status); } &&
29546          { ac_try='test -z "$ac_c_werror_flag"
29547                          || test ! -s conftest.err'
29548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29549   (eval $ac_try) 2>&5
29550   ac_status=$?
29551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552   (exit $ac_status); }; } &&
29553          { ac_try='test -s conftest$ac_exeext'
29554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29555   (eval $ac_try) 2>&5
29556   ac_status=$?
29557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558   (exit $ac_status); }; }; then
29559   ac_cv_func_openlog=yes
29560 else
29561   echo "$as_me: failed program was:" >&5
29562 sed 's/^/| /' conftest.$ac_ext >&5
29563
29564 ac_cv_func_openlog=no
29565 fi
29566 rm -f conftest.err conftest.$ac_objext \
29567       conftest$ac_exeext conftest.$ac_ext
29568 fi
29569 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29570 echo "${ECHO_T}$ac_cv_func_openlog" >&6
29571
29572         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29573                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29574 echo "$as_me: error: could not find syslog" >&2;}
29575    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29576         fi
29577         ol_enable_syslog=$ac_cv_func_openlog
29578 fi
29579
29580 ol_link_sql=no
29581 if test $ol_enable_sql != no ; then
29582
29583
29584 for ac_header in sql.h sqlext.h
29585 do
29586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29588   echo "$as_me:$LINENO: checking for $ac_header" >&5
29589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29591   echo $ECHO_N "(cached) $ECHO_C" >&6
29592 fi
29593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29595 else
29596   # Is the header compilable?
29597 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29599 cat >conftest.$ac_ext <<_ACEOF
29600 /* confdefs.h.  */
29601 _ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h.  */
29605 $ac_includes_default
29606 #include <$ac_header>
29607 _ACEOF
29608 rm -f conftest.$ac_objext
29609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29610   (eval $ac_compile) 2>conftest.er1
29611   ac_status=$?
29612   grep -v '^ *+' conftest.er1 >conftest.err
29613   rm -f conftest.er1
29614   cat conftest.err >&5
29615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616   (exit $ac_status); } &&
29617          { ac_try='test -z "$ac_c_werror_flag"
29618                          || test ! -s conftest.err'
29619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29620   (eval $ac_try) 2>&5
29621   ac_status=$?
29622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29623   (exit $ac_status); }; } &&
29624          { ac_try='test -s conftest.$ac_objext'
29625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29626   (eval $ac_try) 2>&5
29627   ac_status=$?
29628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629   (exit $ac_status); }; }; then
29630   ac_header_compiler=yes
29631 else
29632   echo "$as_me: failed program was:" >&5
29633 sed 's/^/| /' conftest.$ac_ext >&5
29634
29635 ac_header_compiler=no
29636 fi
29637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29639 echo "${ECHO_T}$ac_header_compiler" >&6
29640
29641 # Is the header present?
29642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29644 cat >conftest.$ac_ext <<_ACEOF
29645 /* confdefs.h.  */
29646 _ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h.  */
29650 #include <$ac_header>
29651 _ACEOF
29652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29654   ac_status=$?
29655   grep -v '^ *+' conftest.er1 >conftest.err
29656   rm -f conftest.er1
29657   cat conftest.err >&5
29658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659   (exit $ac_status); } >/dev/null; then
29660   if test -s conftest.err; then
29661     ac_cpp_err=$ac_c_preproc_warn_flag
29662     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29663   else
29664     ac_cpp_err=
29665   fi
29666 else
29667   ac_cpp_err=yes
29668 fi
29669 if test -z "$ac_cpp_err"; then
29670   ac_header_preproc=yes
29671 else
29672   echo "$as_me: failed program was:" >&5
29673 sed 's/^/| /' conftest.$ac_ext >&5
29674
29675   ac_header_preproc=no
29676 fi
29677 rm -f conftest.err conftest.$ac_ext
29678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29679 echo "${ECHO_T}$ac_header_preproc" >&6
29680
29681 # So?  What about this header?
29682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29683   yes:no: )
29684     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29686     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29688     ac_header_preproc=yes
29689     ;;
29690   no:yes:* )
29691     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29693     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29694 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29695     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29697     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29698 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29701     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29703     (
29704       cat <<\_ASBOX
29705 ## --------------------------------------------- ##
29706 ## Report this to <http://www.openldap.org/its/> ##
29707 ## --------------------------------------------- ##
29708 _ASBOX
29709     ) |
29710       sed "s/^/$as_me: WARNING:     /" >&2
29711     ;;
29712 esac
29713 echo "$as_me:$LINENO: checking for $ac_header" >&5
29714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29716   echo $ECHO_N "(cached) $ECHO_C" >&6
29717 else
29718   eval "$as_ac_Header=\$ac_header_preproc"
29719 fi
29720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29722
29723 fi
29724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29725   cat >>confdefs.h <<_ACEOF
29726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29727 _ACEOF
29728
29729 else
29730
29731                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29732 echo "$as_me: error: could not locate SQL headers" >&2;}
29733    { (exit 1); exit 1; }; }
29734
29735 fi
29736
29737 done
29738
29739
29740         sql_LIBS="$LIBS"
29741         LIBS="$LTHREAD_LIBS"
29742
29743         if test $ol_with_odbc = auto ; then
29744                 ol_with_odbc="iodbc unixodbc odbc32"
29745         fi
29746
29747         for odbc in $ol_with_odbc ; do
29748                 if test $ol_link_sql = no ; then
29749                         case $odbc in
29750                         iodbc)
29751                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29752 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
29753 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29754   echo $ECHO_N "(cached) $ECHO_C" >&6
29755 else
29756   ac_check_lib_save_LIBS=$LIBS
29757 LIBS="-liodbc  $LIBS"
29758 cat >conftest.$ac_ext <<_ACEOF
29759 /* confdefs.h.  */
29760 _ACEOF
29761 cat confdefs.h >>conftest.$ac_ext
29762 cat >>conftest.$ac_ext <<_ACEOF
29763 /* end confdefs.h.  */
29764
29765 /* Override any gcc2 internal prototype to avoid an error.  */
29766 #ifdef __cplusplus
29767 extern "C"
29768 #endif
29769 /* We use char because int might match the return type of a gcc2
29770    builtin and then its argument prototype would still apply.  */
29771 char SQLDriverConnect ();
29772 int
29773 main ()
29774 {
29775 SQLDriverConnect ();
29776   ;
29777   return 0;
29778 }
29779 _ACEOF
29780 rm -f conftest.$ac_objext conftest$ac_exeext
29781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29782   (eval $ac_link) 2>conftest.er1
29783   ac_status=$?
29784   grep -v '^ *+' conftest.er1 >conftest.err
29785   rm -f conftest.er1
29786   cat conftest.err >&5
29787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788   (exit $ac_status); } &&
29789          { ac_try='test -z "$ac_c_werror_flag"
29790                          || test ! -s conftest.err'
29791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29792   (eval $ac_try) 2>&5
29793   ac_status=$?
29794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795   (exit $ac_status); }; } &&
29796          { ac_try='test -s conftest$ac_exeext'
29797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29798   (eval $ac_try) 2>&5
29799   ac_status=$?
29800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801   (exit $ac_status); }; }; then
29802   ac_cv_lib_iodbc_SQLDriverConnect=yes
29803 else
29804   echo "$as_me: failed program was:" >&5
29805 sed 's/^/| /' conftest.$ac_ext >&5
29806
29807 ac_cv_lib_iodbc_SQLDriverConnect=no
29808 fi
29809 rm -f conftest.err conftest.$ac_objext \
29810       conftest$ac_exeext conftest.$ac_ext
29811 LIBS=$ac_check_lib_save_LIBS
29812 fi
29813 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29814 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
29815 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29816   have_iodbc=yes
29817 else
29818   have_iodbc=no
29819 fi
29820
29821                                 if test $have_iodbc = yes ; then
29822                                         ol_link_sql="-liodbc"
29823                                 fi
29824                                 ;;
29825
29826                         unixodbc)
29827                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29828 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
29829 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29830   echo $ECHO_N "(cached) $ECHO_C" >&6
29831 else
29832   ac_check_lib_save_LIBS=$LIBS
29833 LIBS="-lodbc  $LIBS"
29834 cat >conftest.$ac_ext <<_ACEOF
29835 /* confdefs.h.  */
29836 _ACEOF
29837 cat confdefs.h >>conftest.$ac_ext
29838 cat >>conftest.$ac_ext <<_ACEOF
29839 /* end confdefs.h.  */
29840
29841 /* Override any gcc2 internal prototype to avoid an error.  */
29842 #ifdef __cplusplus
29843 extern "C"
29844 #endif
29845 /* We use char because int might match the return type of a gcc2
29846    builtin and then its argument prototype would still apply.  */
29847 char SQLDriverConnect ();
29848 int
29849 main ()
29850 {
29851 SQLDriverConnect ();
29852   ;
29853   return 0;
29854 }
29855 _ACEOF
29856 rm -f conftest.$ac_objext conftest$ac_exeext
29857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29858   (eval $ac_link) 2>conftest.er1
29859   ac_status=$?
29860   grep -v '^ *+' conftest.er1 >conftest.err
29861   rm -f conftest.er1
29862   cat conftest.err >&5
29863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864   (exit $ac_status); } &&
29865          { ac_try='test -z "$ac_c_werror_flag"
29866                          || test ! -s conftest.err'
29867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29868   (eval $ac_try) 2>&5
29869   ac_status=$?
29870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871   (exit $ac_status); }; } &&
29872          { ac_try='test -s conftest$ac_exeext'
29873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29874   (eval $ac_try) 2>&5
29875   ac_status=$?
29876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877   (exit $ac_status); }; }; then
29878   ac_cv_lib_odbc_SQLDriverConnect=yes
29879 else
29880   echo "$as_me: failed program was:" >&5
29881 sed 's/^/| /' conftest.$ac_ext >&5
29882
29883 ac_cv_lib_odbc_SQLDriverConnect=no
29884 fi
29885 rm -f conftest.err conftest.$ac_objext \
29886       conftest$ac_exeext conftest.$ac_ext
29887 LIBS=$ac_check_lib_save_LIBS
29888 fi
29889 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
29890 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
29891 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
29892   have_odbc=yes
29893 else
29894   have_odbc=no
29895 fi
29896
29897                                 if test $have_odbc = yes ; then
29898                                         ol_link_sql="-lodbc"
29899                                 fi
29900                                 ;;
29901
29902                         odbc32)
29903                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
29904 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6
29905 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
29906   echo $ECHO_N "(cached) $ECHO_C" >&6
29907 else
29908   ac_check_lib_save_LIBS=$LIBS
29909 LIBS="-lodbc32  $LIBS"
29910 cat >conftest.$ac_ext <<_ACEOF
29911 /* confdefs.h.  */
29912 _ACEOF
29913 cat confdefs.h >>conftest.$ac_ext
29914 cat >>conftest.$ac_ext <<_ACEOF
29915 /* end confdefs.h.  */
29916
29917 /* Override any gcc2 internal prototype to avoid an error.  */
29918 #ifdef __cplusplus
29919 extern "C"
29920 #endif
29921 /* We use char because int might match the return type of a gcc2
29922    builtin and then its argument prototype would still apply.  */
29923 char SQLDriverConnect ();
29924 int
29925 main ()
29926 {
29927 SQLDriverConnect ();
29928   ;
29929   return 0;
29930 }
29931 _ACEOF
29932 rm -f conftest.$ac_objext conftest$ac_exeext
29933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29934   (eval $ac_link) 2>conftest.er1
29935   ac_status=$?
29936   grep -v '^ *+' conftest.er1 >conftest.err
29937   rm -f conftest.er1
29938   cat conftest.err >&5
29939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940   (exit $ac_status); } &&
29941          { ac_try='test -z "$ac_c_werror_flag"
29942                          || test ! -s conftest.err'
29943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29944   (eval $ac_try) 2>&5
29945   ac_status=$?
29946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947   (exit $ac_status); }; } &&
29948          { ac_try='test -s conftest$ac_exeext'
29949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29950   (eval $ac_try) 2>&5
29951   ac_status=$?
29952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953   (exit $ac_status); }; }; then
29954   ac_cv_lib_odbc32_SQLDriverConnect=yes
29955 else
29956   echo "$as_me: failed program was:" >&5
29957 sed 's/^/| /' conftest.$ac_ext >&5
29958
29959 ac_cv_lib_odbc32_SQLDriverConnect=no
29960 fi
29961 rm -f conftest.err conftest.$ac_objext \
29962       conftest$ac_exeext conftest.$ac_ext
29963 LIBS=$ac_check_lib_save_LIBS
29964 fi
29965 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
29966 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6
29967 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
29968   have_odbc32=yes
29969 else
29970   have_odbc32=no
29971 fi
29972
29973                                 if test $have_odbc32 = yes ; then
29974                                         ol_link_sql="-lodbc32"
29975                                 fi
29976                                 ;;
29977
29978                         *)
29979                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
29980 echo "$as_me: error: unknown ODBC library" >&2;}
29981    { (exit 1); exit 1; }; }
29982                                 ;;
29983                         esac
29984                 fi
29985         done
29986
29987         LIBS="$sql_LIBS"
29988
29989         if test $ol_link_sql != no ; then
29990                 SLAPD_SQL_LIBS="$ol_link_sql"
29991
29992         elif test $ol_enable_sql != auto ; then
29993                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
29994 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
29995    { (exit 1); exit 1; }; }
29996         fi
29997 fi
29998
29999 ol_link_ndb=no
30000 if test $ol_enable_ndb != no ; then
30001         # Extract the first word of "mysql_config", so it can be a program name with args.
30002 set dummy mysql_config; ac_word=$2
30003 echo "$as_me:$LINENO: checking for $ac_word" >&5
30004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30005 if test "${ac_cv_prog_MYSQL+set}" = set; then
30006   echo $ECHO_N "(cached) $ECHO_C" >&6
30007 else
30008   if test -n "$MYSQL"; then
30009   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30010 else
30011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30012 for as_dir in $PATH
30013 do
30014   IFS=$as_save_IFS
30015   test -z "$as_dir" && as_dir=.
30016   for ac_exec_ext in '' $ac_executable_extensions; do
30017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30018     ac_cv_prog_MYSQL="yes"
30019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30020     break 2
30021   fi
30022 done
30023 done
30024
30025 fi
30026 fi
30027 MYSQL=$ac_cv_prog_MYSQL
30028 if test -n "$MYSQL"; then
30029   echo "$as_me:$LINENO: result: $MYSQL" >&5
30030 echo "${ECHO_T}$MYSQL" >&6
30031 else
30032   echo "$as_me:$LINENO: result: no" >&5
30033 echo "${ECHO_T}no" >&6
30034 fi
30035
30036         if test "$MYSQL" != yes ; then
30037                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30038 echo "$as_me: error: could not locate mysql_config" >&2;}
30039    { (exit 1); exit 1; }; }
30040         fi
30041
30042         SQL_INC=`mysql_config --include`
30043         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30044
30045         save_CPPFLAGS="$CPPFLAGS"
30046         CPPFLAGS="$SLAPD_NDB_INCS"
30047         echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30048 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6
30049         cat >conftest.$ac_ext <<_ACEOF
30050 /* confdefs.h.  */
30051 _ACEOF
30052 cat confdefs.h >>conftest.$ac_ext
30053 cat >>conftest.$ac_ext <<_ACEOF
30054 /* end confdefs.h.  */
30055 #include <NdbApi.hpp>
30056 _ACEOF
30057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30058   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30059   ac_status=$?
30060   grep -v '^ *+' conftest.er1 >conftest.err
30061   rm -f conftest.er1
30062   cat conftest.err >&5
30063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064   (exit $ac_status); } >/dev/null; then
30065   if test -s conftest.err; then
30066     ac_cpp_err=$ac_c_preproc_warn_flag
30067     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30068   else
30069     ac_cpp_err=
30070   fi
30071 else
30072   ac_cpp_err=yes
30073 fi
30074 if test -z "$ac_cpp_err"; then
30075   echo "$as_me:$LINENO: result: yes" >&5
30076 echo "${ECHO_T}yes" >&6
30077 else
30078   echo "$as_me: failed program was:" >&5
30079 sed 's/^/| /' conftest.$ac_ext >&5
30080
30081   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30082 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30083    { (exit 1); exit 1; }; }
30084
30085 fi
30086 rm -f conftest.err conftest.$ac_ext
30087         CPPFLAGS="$save_CPPFLAGS"
30088
30089         SQL_LIB=`mysql_config --libs_r`
30090         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30091
30092         save_LDFLAGS="$LDFLAGS"
30093         save_LIBS="$LIBS"
30094         LDFLAGS="$SQL_LIB"
30095         echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30096 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6
30097 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30098   echo $ECHO_N "(cached) $ECHO_C" >&6
30099 else
30100   ac_check_lib_save_LIBS=$LIBS
30101 LIBS="-lndbclient -lstdc++ $LIBS"
30102 cat >conftest.$ac_ext <<_ACEOF
30103 /* confdefs.h.  */
30104 _ACEOF
30105 cat confdefs.h >>conftest.$ac_ext
30106 cat >>conftest.$ac_ext <<_ACEOF
30107 /* end confdefs.h.  */
30108
30109 /* Override any gcc2 internal prototype to avoid an error.  */
30110 #ifdef __cplusplus
30111 extern "C"
30112 #endif
30113 /* We use char because int might match the return type of a gcc2
30114    builtin and then its argument prototype would still apply.  */
30115 char ndb_init ();
30116 int
30117 main ()
30118 {
30119 ndb_init ();
30120   ;
30121   return 0;
30122 }
30123 _ACEOF
30124 rm -f conftest.$ac_objext conftest$ac_exeext
30125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30126   (eval $ac_link) 2>conftest.er1
30127   ac_status=$?
30128   grep -v '^ *+' conftest.er1 >conftest.err
30129   rm -f conftest.er1
30130   cat conftest.err >&5
30131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132   (exit $ac_status); } &&
30133          { ac_try='test -z "$ac_c_werror_flag"
30134                          || test ! -s conftest.err'
30135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30136   (eval $ac_try) 2>&5
30137   ac_status=$?
30138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139   (exit $ac_status); }; } &&
30140          { ac_try='test -s conftest$ac_exeext'
30141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30142   (eval $ac_try) 2>&5
30143   ac_status=$?
30144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145   (exit $ac_status); }; }; then
30146   ac_cv_lib_ndbclient_ndb_init=yes
30147 else
30148   echo "$as_me: failed program was:" >&5
30149 sed 's/^/| /' conftest.$ac_ext >&5
30150
30151 ac_cv_lib_ndbclient_ndb_init=no
30152 fi
30153 rm -f conftest.err conftest.$ac_objext \
30154       conftest$ac_exeext conftest.$ac_ext
30155 LIBS=$ac_check_lib_save_LIBS
30156 fi
30157 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30158 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6
30159 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30160   : ok
30161 else
30162
30163                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30164 echo "$as_me: error: could not locate ndbclient library" >&2;}
30165    { (exit 1); exit 1; }; }
30166
30167 fi
30168
30169         LIBS="$save_LIBS"
30170         LDFLAGS="$save_LDFLAGS"
30171
30172         if test "$ol_enable_ndb" = yes ; then
30173                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30174         fi
30175 fi
30176
30177 ol_icu=no
30178
30179 for ac_header in unicode/utypes.h
30180 do
30181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30183   echo "$as_me:$LINENO: checking for $ac_header" >&5
30184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30186   echo $ECHO_N "(cached) $ECHO_C" >&6
30187 fi
30188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30190 else
30191   # Is the header compilable?
30192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30194 cat >conftest.$ac_ext <<_ACEOF
30195 /* confdefs.h.  */
30196 _ACEOF
30197 cat confdefs.h >>conftest.$ac_ext
30198 cat >>conftest.$ac_ext <<_ACEOF
30199 /* end confdefs.h.  */
30200 $ac_includes_default
30201 #include <$ac_header>
30202 _ACEOF
30203 rm -f conftest.$ac_objext
30204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30205   (eval $ac_compile) 2>conftest.er1
30206   ac_status=$?
30207   grep -v '^ *+' conftest.er1 >conftest.err
30208   rm -f conftest.er1
30209   cat conftest.err >&5
30210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211   (exit $ac_status); } &&
30212          { ac_try='test -z "$ac_c_werror_flag"
30213                          || test ! -s conftest.err'
30214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30215   (eval $ac_try) 2>&5
30216   ac_status=$?
30217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218   (exit $ac_status); }; } &&
30219          { ac_try='test -s conftest.$ac_objext'
30220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30221   (eval $ac_try) 2>&5
30222   ac_status=$?
30223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30224   (exit $ac_status); }; }; then
30225   ac_header_compiler=yes
30226 else
30227   echo "$as_me: failed program was:" >&5
30228 sed 's/^/| /' conftest.$ac_ext >&5
30229
30230 ac_header_compiler=no
30231 fi
30232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30234 echo "${ECHO_T}$ac_header_compiler" >&6
30235
30236 # Is the header present?
30237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30239 cat >conftest.$ac_ext <<_ACEOF
30240 /* confdefs.h.  */
30241 _ACEOF
30242 cat confdefs.h >>conftest.$ac_ext
30243 cat >>conftest.$ac_ext <<_ACEOF
30244 /* end confdefs.h.  */
30245 #include <$ac_header>
30246 _ACEOF
30247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30248   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30249   ac_status=$?
30250   grep -v '^ *+' conftest.er1 >conftest.err
30251   rm -f conftest.er1
30252   cat conftest.err >&5
30253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254   (exit $ac_status); } >/dev/null; then
30255   if test -s conftest.err; then
30256     ac_cpp_err=$ac_c_preproc_warn_flag
30257     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30258   else
30259     ac_cpp_err=
30260   fi
30261 else
30262   ac_cpp_err=yes
30263 fi
30264 if test -z "$ac_cpp_err"; then
30265   ac_header_preproc=yes
30266 else
30267   echo "$as_me: failed program was:" >&5
30268 sed 's/^/| /' conftest.$ac_ext >&5
30269
30270   ac_header_preproc=no
30271 fi
30272 rm -f conftest.err conftest.$ac_ext
30273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30274 echo "${ECHO_T}$ac_header_preproc" >&6
30275
30276 # So?  What about this header?
30277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30278   yes:no: )
30279     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30282 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30283     ac_header_preproc=yes
30284     ;;
30285   no:yes:* )
30286     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30288     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30289 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30290     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30291 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30292     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30293 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30296     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30297 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30298     (
30299       cat <<\_ASBOX
30300 ## --------------------------------------------- ##
30301 ## Report this to <http://www.openldap.org/its/> ##
30302 ## --------------------------------------------- ##
30303 _ASBOX
30304     ) |
30305       sed "s/^/$as_me: WARNING:     /" >&2
30306     ;;
30307 esac
30308 echo "$as_me:$LINENO: checking for $ac_header" >&5
30309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30311   echo $ECHO_N "(cached) $ECHO_C" >&6
30312 else
30313   eval "$as_ac_Header=\$ac_header_preproc"
30314 fi
30315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30317
30318 fi
30319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30320   cat >>confdefs.h <<_ACEOF
30321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30322 _ACEOF
30323
30324 fi
30325
30326 done
30327
30328 if test $ac_cv_header_unicode_utypes_h = yes ; then
30329                 OL_ICULIBS="-licuuc -licudata"
30330
30331         echo "$as_me:$LINENO: checking for ICU libraries" >&5
30332 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
30333 if test "${ol_cv_lib_icu+set}" = set; then
30334   echo $ECHO_N "(cached) $ECHO_C" >&6
30335 else
30336
30337                 ol_LIBS="$LIBS"
30338                 LIBS="$OL_ICULIBS $LIBS"
30339                 cat >conftest.$ac_ext <<_ACEOF
30340 /* confdefs.h.  */
30341 _ACEOF
30342 cat confdefs.h >>conftest.$ac_ext
30343 cat >>conftest.$ac_ext <<_ACEOF
30344 /* end confdefs.h.  */
30345
30346 #include <unicode/utypes.h>
30347
30348 int
30349 main ()
30350 {
30351
30352 (void) u_errorName(0);
30353
30354   ;
30355   return 0;
30356 }
30357 _ACEOF
30358 rm -f conftest.$ac_objext conftest$ac_exeext
30359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30360   (eval $ac_link) 2>conftest.er1
30361   ac_status=$?
30362   grep -v '^ *+' conftest.er1 >conftest.err
30363   rm -f conftest.er1
30364   cat conftest.err >&5
30365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366   (exit $ac_status); } &&
30367          { ac_try='test -z "$ac_c_werror_flag"
30368                          || test ! -s conftest.err'
30369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30370   (eval $ac_try) 2>&5
30371   ac_status=$?
30372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373   (exit $ac_status); }; } &&
30374          { ac_try='test -s conftest$ac_exeext'
30375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30376   (eval $ac_try) 2>&5
30377   ac_status=$?
30378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379   (exit $ac_status); }; }; then
30380   ol_cv_lib_icu=yes
30381 else
30382   echo "$as_me: failed program was:" >&5
30383 sed 's/^/| /' conftest.$ac_ext >&5
30384
30385 ol_cv_lib_icu=no
30386 fi
30387 rm -f conftest.err conftest.$ac_objext \
30388       conftest$ac_exeext conftest.$ac_ext
30389                 LIBS="$ol_LIBS"
30390
30391 fi
30392 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30393 echo "${ECHO_T}$ol_cv_lib_icu" >&6
30394
30395         if test $ol_cv_lib_icu != no ; then
30396                 ol_icu="$OL_ICULIBS"
30397
30398 cat >>confdefs.h <<\_ACEOF
30399 #define HAVE_ICU 1
30400 _ACEOF
30401
30402         fi
30403 fi
30404
30405 if test "$ol_icu" = no ; then
30406         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30407 echo "$as_me: WARNING: ICU not available" >&2;}
30408 else
30409         ICU_LIBS="$ol_icu"
30410 fi
30411 WITH_SASL=no
30412 ol_link_sasl=no
30413 ol_link_spasswd=no
30414 if test $ol_with_cyrus_sasl != no ; then
30415
30416
30417 for ac_header in sasl/sasl.h sasl.h
30418 do
30419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30421   echo "$as_me:$LINENO: checking for $ac_header" >&5
30422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30424   echo $ECHO_N "(cached) $ECHO_C" >&6
30425 fi
30426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30428 else
30429   # Is the header compilable?
30430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30432 cat >conftest.$ac_ext <<_ACEOF
30433 /* confdefs.h.  */
30434 _ACEOF
30435 cat confdefs.h >>conftest.$ac_ext
30436 cat >>conftest.$ac_ext <<_ACEOF
30437 /* end confdefs.h.  */
30438 $ac_includes_default
30439 #include <$ac_header>
30440 _ACEOF
30441 rm -f conftest.$ac_objext
30442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30443   (eval $ac_compile) 2>conftest.er1
30444   ac_status=$?
30445   grep -v '^ *+' conftest.er1 >conftest.err
30446   rm -f conftest.er1
30447   cat conftest.err >&5
30448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449   (exit $ac_status); } &&
30450          { ac_try='test -z "$ac_c_werror_flag"
30451                          || test ! -s conftest.err'
30452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30453   (eval $ac_try) 2>&5
30454   ac_status=$?
30455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456   (exit $ac_status); }; } &&
30457          { ac_try='test -s conftest.$ac_objext'
30458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30459   (eval $ac_try) 2>&5
30460   ac_status=$?
30461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462   (exit $ac_status); }; }; then
30463   ac_header_compiler=yes
30464 else
30465   echo "$as_me: failed program was:" >&5
30466 sed 's/^/| /' conftest.$ac_ext >&5
30467
30468 ac_header_compiler=no
30469 fi
30470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30472 echo "${ECHO_T}$ac_header_compiler" >&6
30473
30474 # Is the header present?
30475 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30477 cat >conftest.$ac_ext <<_ACEOF
30478 /* confdefs.h.  */
30479 _ACEOF
30480 cat confdefs.h >>conftest.$ac_ext
30481 cat >>conftest.$ac_ext <<_ACEOF
30482 /* end confdefs.h.  */
30483 #include <$ac_header>
30484 _ACEOF
30485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30486   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30487   ac_status=$?
30488   grep -v '^ *+' conftest.er1 >conftest.err
30489   rm -f conftest.er1
30490   cat conftest.err >&5
30491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492   (exit $ac_status); } >/dev/null; then
30493   if test -s conftest.err; then
30494     ac_cpp_err=$ac_c_preproc_warn_flag
30495     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30496   else
30497     ac_cpp_err=
30498   fi
30499 else
30500   ac_cpp_err=yes
30501 fi
30502 if test -z "$ac_cpp_err"; then
30503   ac_header_preproc=yes
30504 else
30505   echo "$as_me: failed program was:" >&5
30506 sed 's/^/| /' conftest.$ac_ext >&5
30507
30508   ac_header_preproc=no
30509 fi
30510 rm -f conftest.err conftest.$ac_ext
30511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30512 echo "${ECHO_T}$ac_header_preproc" >&6
30513
30514 # So?  What about this header?
30515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30516   yes:no: )
30517     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30521     ac_header_preproc=yes
30522     ;;
30523   no:yes:* )
30524     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30526     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30527 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30528     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30530     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30531 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30534     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30536     (
30537       cat <<\_ASBOX
30538 ## --------------------------------------------- ##
30539 ## Report this to <http://www.openldap.org/its/> ##
30540 ## --------------------------------------------- ##
30541 _ASBOX
30542     ) |
30543       sed "s/^/$as_me: WARNING:     /" >&2
30544     ;;
30545 esac
30546 echo "$as_me:$LINENO: checking for $ac_header" >&5
30547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30549   echo $ECHO_N "(cached) $ECHO_C" >&6
30550 else
30551   eval "$as_ac_Header=\$ac_header_preproc"
30552 fi
30553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30555
30556 fi
30557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30558   cat >>confdefs.h <<_ACEOF
30559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30560 _ACEOF
30561
30562 fi
30563
30564 done
30565
30566
30567         if test $ac_cv_header_sasl_sasl_h = yes ||
30568            test $ac_cv_header_sasl_h = yes; then
30569                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30570 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
30571 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30572   echo $ECHO_N "(cached) $ECHO_C" >&6
30573 else
30574   ac_check_lib_save_LIBS=$LIBS
30575 LIBS="-lsasl2  $LIBS"
30576 cat >conftest.$ac_ext <<_ACEOF
30577 /* confdefs.h.  */
30578 _ACEOF
30579 cat confdefs.h >>conftest.$ac_ext
30580 cat >>conftest.$ac_ext <<_ACEOF
30581 /* end confdefs.h.  */
30582
30583 /* Override any gcc2 internal prototype to avoid an error.  */
30584 #ifdef __cplusplus
30585 extern "C"
30586 #endif
30587 /* We use char because int might match the return type of a gcc2
30588    builtin and then its argument prototype would still apply.  */
30589 char sasl_client_init ();
30590 int
30591 main ()
30592 {
30593 sasl_client_init ();
30594   ;
30595   return 0;
30596 }
30597 _ACEOF
30598 rm -f conftest.$ac_objext conftest$ac_exeext
30599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30600   (eval $ac_link) 2>conftest.er1
30601   ac_status=$?
30602   grep -v '^ *+' conftest.er1 >conftest.err
30603   rm -f conftest.er1
30604   cat conftest.err >&5
30605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606   (exit $ac_status); } &&
30607          { ac_try='test -z "$ac_c_werror_flag"
30608                          || test ! -s conftest.err'
30609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30610   (eval $ac_try) 2>&5
30611   ac_status=$?
30612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613   (exit $ac_status); }; } &&
30614          { ac_try='test -s conftest$ac_exeext'
30615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30616   (eval $ac_try) 2>&5
30617   ac_status=$?
30618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619   (exit $ac_status); }; }; then
30620   ac_cv_lib_sasl2_sasl_client_init=yes
30621 else
30622   echo "$as_me: failed program was:" >&5
30623 sed 's/^/| /' conftest.$ac_ext >&5
30624
30625 ac_cv_lib_sasl2_sasl_client_init=no
30626 fi
30627 rm -f conftest.err conftest.$ac_objext \
30628       conftest$ac_exeext conftest.$ac_ext
30629 LIBS=$ac_check_lib_save_LIBS
30630 fi
30631 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30632 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
30633 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30634   ol_link_sasl="-lsasl2"
30635 else
30636   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30637 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
30638 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30639   echo $ECHO_N "(cached) $ECHO_C" >&6
30640 else
30641   ac_check_lib_save_LIBS=$LIBS
30642 LIBS="-lsasl  $LIBS"
30643 cat >conftest.$ac_ext <<_ACEOF
30644 /* confdefs.h.  */
30645 _ACEOF
30646 cat confdefs.h >>conftest.$ac_ext
30647 cat >>conftest.$ac_ext <<_ACEOF
30648 /* end confdefs.h.  */
30649
30650 /* Override any gcc2 internal prototype to avoid an error.  */
30651 #ifdef __cplusplus
30652 extern "C"
30653 #endif
30654 /* We use char because int might match the return type of a gcc2
30655    builtin and then its argument prototype would still apply.  */
30656 char sasl_client_init ();
30657 int
30658 main ()
30659 {
30660 sasl_client_init ();
30661   ;
30662   return 0;
30663 }
30664 _ACEOF
30665 rm -f conftest.$ac_objext conftest$ac_exeext
30666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30667   (eval $ac_link) 2>conftest.er1
30668   ac_status=$?
30669   grep -v '^ *+' conftest.er1 >conftest.err
30670   rm -f conftest.er1
30671   cat conftest.err >&5
30672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673   (exit $ac_status); } &&
30674          { ac_try='test -z "$ac_c_werror_flag"
30675                          || test ! -s conftest.err'
30676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30677   (eval $ac_try) 2>&5
30678   ac_status=$?
30679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680   (exit $ac_status); }; } &&
30681          { ac_try='test -s conftest$ac_exeext'
30682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30683   (eval $ac_try) 2>&5
30684   ac_status=$?
30685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686   (exit $ac_status); }; }; then
30687   ac_cv_lib_sasl_sasl_client_init=yes
30688 else
30689   echo "$as_me: failed program was:" >&5
30690 sed 's/^/| /' conftest.$ac_ext >&5
30691
30692 ac_cv_lib_sasl_sasl_client_init=no
30693 fi
30694 rm -f conftest.err conftest.$ac_objext \
30695       conftest$ac_exeext conftest.$ac_ext
30696 LIBS=$ac_check_lib_save_LIBS
30697 fi
30698 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30699 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
30700 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30701   ol_link_sasl="-lsasl"
30702 fi
30703
30704 fi
30705
30706         fi
30707
30708         if test $ol_link_sasl = no ; then
30709                 if test $ol_with_cyrus_sasl != auto ; then
30710                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30711 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30712    { (exit 1); exit 1; }; }
30713                 else
30714                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30715 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30716                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30717 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30718                         if test $ol_link_tls = no ; then
30719                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30720 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30721                         fi
30722                 fi
30723         else
30724                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30725 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
30726 if test "${ol_cv_sasl_compat+set}" = set; then
30727   echo $ECHO_N "(cached) $ECHO_C" >&6
30728 else
30729
30730         cat >conftest.$ac_ext <<_ACEOF
30731 /* confdefs.h.  */
30732 _ACEOF
30733 cat confdefs.h >>conftest.$ac_ext
30734 cat >>conftest.$ac_ext <<_ACEOF
30735 /* end confdefs.h.  */
30736
30737 #ifdef HAVE_SASL_SASL_H
30738 #include <sasl/sasl.h>
30739 #else
30740 #include <sasl.h>
30741 #endif
30742
30743 /* Require 2.1.15+ */
30744 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
30745         char *__sasl_compat = "2.2+ or better okay (we guess)";
30746 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
30747         && SASL_VERSION_STEP >=15
30748         char *__sasl_compat = "2.1.15+ or better okay";
30749 #endif
30750
30751 _ACEOF
30752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30753   $EGREP "__sasl_compat" >/dev/null 2>&1; then
30754   ol_cv_sasl_compat=yes
30755 else
30756   ol_cv_sasl_compat=no
30757 fi
30758 rm -f conftest*
30759
30760 fi
30761 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30762 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
30763
30764                 if test $ol_cv_sasl_compat = no ; then
30765                         ol_link_sasl=no
30766                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30767 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30768    { (exit 1); exit 1; }; }
30769                 fi
30770
30771
30772 cat >>confdefs.h <<\_ACEOF
30773 #define HAVE_CYRUS_SASL 1
30774 _ACEOF
30775
30776                 SASL_LIBS="$ol_link_sasl"
30777                 if test $ol_enable_spasswd != no ; then
30778                         ol_link_spasswd=yes
30779                 fi
30780
30781                 ac_save_LIBS="$LIBS"
30782                 LIBS="$LIBS $ol_link_sasl"
30783                 echo "$as_me:$LINENO: checking for sasl_version" >&5
30784 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
30785 if test "${ac_cv_func_sasl_version+set}" = set; then
30786   echo $ECHO_N "(cached) $ECHO_C" >&6
30787 else
30788   cat >conftest.$ac_ext <<_ACEOF
30789 /* confdefs.h.  */
30790 _ACEOF
30791 cat confdefs.h >>conftest.$ac_ext
30792 cat >>conftest.$ac_ext <<_ACEOF
30793 /* end confdefs.h.  */
30794 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30796 #define sasl_version innocuous_sasl_version
30797
30798 /* System header to define __stub macros and hopefully few prototypes,
30799     which can conflict with char sasl_version (); below.
30800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30801     <limits.h> exists even on freestanding compilers.  */
30802
30803 #ifdef __STDC__
30804 # include <limits.h>
30805 #else
30806 # include <assert.h>
30807 #endif
30808
30809 #undef sasl_version
30810
30811 /* Override any gcc2 internal prototype to avoid an error.  */
30812 #ifdef __cplusplus
30813 extern "C"
30814 {
30815 #endif
30816 /* We use char because int might match the return type of a gcc2
30817    builtin and then its argument prototype would still apply.  */
30818 char sasl_version ();
30819 /* The GNU C library defines this for functions which it implements
30820     to always fail with ENOSYS.  Some functions are actually named
30821     something starting with __ and the normal name is an alias.  */
30822 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
30823 choke me
30824 #else
30825 char (*f) () = sasl_version;
30826 #endif
30827 #ifdef __cplusplus
30828 }
30829 #endif
30830
30831 int
30832 main ()
30833 {
30834 return f != sasl_version;
30835   ;
30836   return 0;
30837 }
30838 _ACEOF
30839 rm -f conftest.$ac_objext conftest$ac_exeext
30840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30841   (eval $ac_link) 2>conftest.er1
30842   ac_status=$?
30843   grep -v '^ *+' conftest.er1 >conftest.err
30844   rm -f conftest.er1
30845   cat conftest.err >&5
30846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847   (exit $ac_status); } &&
30848          { ac_try='test -z "$ac_c_werror_flag"
30849                          || test ! -s conftest.err'
30850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30851   (eval $ac_try) 2>&5
30852   ac_status=$?
30853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854   (exit $ac_status); }; } &&
30855          { ac_try='test -s conftest$ac_exeext'
30856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30857   (eval $ac_try) 2>&5
30858   ac_status=$?
30859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860   (exit $ac_status); }; }; then
30861   ac_cv_func_sasl_version=yes
30862 else
30863   echo "$as_me: failed program was:" >&5
30864 sed 's/^/| /' conftest.$ac_ext >&5
30865
30866 ac_cv_func_sasl_version=no
30867 fi
30868 rm -f conftest.err conftest.$ac_objext \
30869       conftest$ac_exeext conftest.$ac_ext
30870 fi
30871 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30872 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
30873 if test $ac_cv_func_sasl_version = yes; then
30874
30875 cat >>confdefs.h <<\_ACEOF
30876 #define HAVE_SASL_VERSION 1
30877 _ACEOF
30878
30879 fi
30880
30881                 LIBS="$ac_save_LIBS"
30882
30883                 WITH_SASL=yes
30884         fi
30885
30886 else
30887         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30888 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30889         if test $ol_link_tls = no ; then
30890                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30891 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30892         fi
30893 fi
30894
30895 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30896         dev=no
30897         if test -r /dev/urandom ; then
30898                 dev="/dev/urandom";
30899         elif test -r /idev/urandom ; then
30900                 dev="/idev/urandom";
30901         elif test -r /dev/srandom ; then
30902                 dev="/dev/srandom";
30903         elif test -r /dev/random ; then
30904                 dev="/dev/random";
30905         elif test -r /idev/random ; then
30906                 dev="/idev/random";
30907         fi
30908
30909         if test $dev != no ; then
30910
30911 cat >>confdefs.h <<_ACEOF
30912 #define URANDOM_DEVICE "$dev"
30913 _ACEOF
30914
30915         fi
30916 fi
30917
30918 ol_link_fetch=no
30919 if test $ol_with_fetch != no ; then
30920         ol_LIBS=$LIBS
30921 LIBS="-lfetch -lcom_err $LIBS"
30922 echo "$as_me:$LINENO: checking fetch(3) library" >&5
30923 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
30924 if test "${ol_cv_lib_fetch+set}" = set; then
30925   echo $ECHO_N "(cached) $ECHO_C" >&6
30926 else
30927
30928         cat >conftest.$ac_ext <<_ACEOF
30929 /* confdefs.h.  */
30930 _ACEOF
30931 cat confdefs.h >>conftest.$ac_ext
30932 cat >>conftest.$ac_ext <<_ACEOF
30933 /* end confdefs.h.  */
30934
30935 #include <sys/param.h>
30936 #include <stdio.h>
30937 #include <fetch.h>
30938 int
30939 main ()
30940 {
30941 struct url *u = fetchParseURL("file:///");
30942   ;
30943   return 0;
30944 }
30945 _ACEOF
30946 rm -f conftest.$ac_objext conftest$ac_exeext
30947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30948   (eval $ac_link) 2>conftest.er1
30949   ac_status=$?
30950   grep -v '^ *+' conftest.er1 >conftest.err
30951   rm -f conftest.er1
30952   cat conftest.err >&5
30953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954   (exit $ac_status); } &&
30955          { ac_try='test -z "$ac_c_werror_flag"
30956                          || test ! -s conftest.err'
30957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30958   (eval $ac_try) 2>&5
30959   ac_status=$?
30960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961   (exit $ac_status); }; } &&
30962          { ac_try='test -s conftest$ac_exeext'
30963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30964   (eval $ac_try) 2>&5
30965   ac_status=$?
30966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967   (exit $ac_status); }; }; then
30968   ol_cv_lib_fetch=yes
30969 else
30970   echo "$as_me: failed program was:" >&5
30971 sed 's/^/| /' conftest.$ac_ext >&5
30972
30973 ol_cv_lib_fetch=no
30974 fi
30975 rm -f conftest.err conftest.$ac_objext \
30976       conftest$ac_exeext conftest.$ac_ext
30977 fi
30978 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
30979 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
30980 LIBS=$ol_LIBS
30981 if test $ol_cv_lib_fetch != no ; then
30982         ol_link_fetch="-lfetch -lcom_err"
30983
30984 cat >>confdefs.h <<\_ACEOF
30985 #define HAVE_FETCH 1
30986 _ACEOF
30987
30988 fi
30989
30990
30991         if test $ol_cv_lib_fetch != no ; then
30992                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
30993                 ol_link_fetch=freebsd
30994
30995         elif test $ol_with_fetch != auto ; then
30996                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
30997 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
30998    { (exit 1); exit 1; }; }
30999         fi
31000 fi
31001
31002 if test $ol_enable_crypt != no ; then
31003         save_LIBS="$LIBS"
31004         LIBS="$TLS_LIBS $LIBS"
31005
31006         echo "$as_me:$LINENO: checking for crypt" >&5
31007 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
31008 if test "${ac_cv_func_crypt+set}" = set; then
31009   echo $ECHO_N "(cached) $ECHO_C" >&6
31010 else
31011   cat >conftest.$ac_ext <<_ACEOF
31012 /* confdefs.h.  */
31013 _ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h.  */
31017 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31019 #define crypt innocuous_crypt
31020
31021 /* System header to define __stub macros and hopefully few prototypes,
31022     which can conflict with char crypt (); below.
31023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31024     <limits.h> exists even on freestanding compilers.  */
31025
31026 #ifdef __STDC__
31027 # include <limits.h>
31028 #else
31029 # include <assert.h>
31030 #endif
31031
31032 #undef crypt
31033
31034 /* Override any gcc2 internal prototype to avoid an error.  */
31035 #ifdef __cplusplus
31036 extern "C"
31037 {
31038 #endif
31039 /* We use char because int might match the return type of a gcc2
31040    builtin and then its argument prototype would still apply.  */
31041 char crypt ();
31042 /* The GNU C library defines this for functions which it implements
31043     to always fail with ENOSYS.  Some functions are actually named
31044     something starting with __ and the normal name is an alias.  */
31045 #if defined (__stub_crypt) || defined (__stub___crypt)
31046 choke me
31047 #else
31048 char (*f) () = crypt;
31049 #endif
31050 #ifdef __cplusplus
31051 }
31052 #endif
31053
31054 int
31055 main ()
31056 {
31057 return f != crypt;
31058   ;
31059   return 0;
31060 }
31061 _ACEOF
31062 rm -f conftest.$ac_objext conftest$ac_exeext
31063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31064   (eval $ac_link) 2>conftest.er1
31065   ac_status=$?
31066   grep -v '^ *+' conftest.er1 >conftest.err
31067   rm -f conftest.er1
31068   cat conftest.err >&5
31069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070   (exit $ac_status); } &&
31071          { ac_try='test -z "$ac_c_werror_flag"
31072                          || test ! -s conftest.err'
31073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31074   (eval $ac_try) 2>&5
31075   ac_status=$?
31076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31077   (exit $ac_status); }; } &&
31078          { ac_try='test -s conftest$ac_exeext'
31079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31080   (eval $ac_try) 2>&5
31081   ac_status=$?
31082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31083   (exit $ac_status); }; }; then
31084   ac_cv_func_crypt=yes
31085 else
31086   echo "$as_me: failed program was:" >&5
31087 sed 's/^/| /' conftest.$ac_ext >&5
31088
31089 ac_cv_func_crypt=no
31090 fi
31091 rm -f conftest.err conftest.$ac_objext \
31092       conftest$ac_exeext conftest.$ac_ext
31093 fi
31094 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31095 echo "${ECHO_T}$ac_cv_func_crypt" >&6
31096 if test $ac_cv_func_crypt = yes; then
31097   have_crypt=yes
31098 else
31099
31100                 LIBS="$save_LIBS"
31101                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31102 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
31103 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31104   echo $ECHO_N "(cached) $ECHO_C" >&6
31105 else
31106   ac_check_lib_save_LIBS=$LIBS
31107 LIBS="-lcrypt  $LIBS"
31108 cat >conftest.$ac_ext <<_ACEOF
31109 /* confdefs.h.  */
31110 _ACEOF
31111 cat confdefs.h >>conftest.$ac_ext
31112 cat >>conftest.$ac_ext <<_ACEOF
31113 /* end confdefs.h.  */
31114
31115 /* Override any gcc2 internal prototype to avoid an error.  */
31116 #ifdef __cplusplus
31117 extern "C"
31118 #endif
31119 /* We use char because int might match the return type of a gcc2
31120    builtin and then its argument prototype would still apply.  */
31121 char crypt ();
31122 int
31123 main ()
31124 {
31125 crypt ();
31126   ;
31127   return 0;
31128 }
31129 _ACEOF
31130 rm -f conftest.$ac_objext conftest$ac_exeext
31131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31132   (eval $ac_link) 2>conftest.er1
31133   ac_status=$?
31134   grep -v '^ *+' conftest.er1 >conftest.err
31135   rm -f conftest.er1
31136   cat conftest.err >&5
31137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31138   (exit $ac_status); } &&
31139          { ac_try='test -z "$ac_c_werror_flag"
31140                          || test ! -s conftest.err'
31141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31142   (eval $ac_try) 2>&5
31143   ac_status=$?
31144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145   (exit $ac_status); }; } &&
31146          { ac_try='test -s conftest$ac_exeext'
31147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31148   (eval $ac_try) 2>&5
31149   ac_status=$?
31150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151   (exit $ac_status); }; }; then
31152   ac_cv_lib_crypt_crypt=yes
31153 else
31154   echo "$as_me: failed program was:" >&5
31155 sed 's/^/| /' conftest.$ac_ext >&5
31156
31157 ac_cv_lib_crypt_crypt=no
31158 fi
31159 rm -f conftest.err conftest.$ac_objext \
31160       conftest$ac_exeext conftest.$ac_ext
31161 LIBS=$ac_check_lib_save_LIBS
31162 fi
31163 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31164 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
31165 if test $ac_cv_lib_crypt_crypt = yes; then
31166   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31167                         have_crypt=yes
31168 else
31169   have_crypt=no
31170 fi
31171
31172 fi
31173
31174
31175         LIBS="$save_LIBS"
31176
31177         if test $have_crypt = yes ; then
31178
31179 cat >>confdefs.h <<\_ACEOF
31180 #define HAVE_CRYPT 1
31181 _ACEOF
31182
31183         else
31184                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31185 echo "$as_me: WARNING: could not find crypt" >&2;}
31186                 if test $ol_enable_crypt = yes ; then
31187                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31188 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31189    { (exit 1); exit 1; }; }
31190                 fi
31191
31192                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31193 echo "$as_me: WARNING: disabling crypt support" >&2;}
31194                 ol_enable_crypt=no
31195         fi
31196 fi
31197
31198 if test $ol_enable_proctitle != no ; then
31199         echo "$as_me:$LINENO: checking for setproctitle" >&5
31200 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
31201 if test "${ac_cv_func_setproctitle+set}" = set; then
31202   echo $ECHO_N "(cached) $ECHO_C" >&6
31203 else
31204   cat >conftest.$ac_ext <<_ACEOF
31205 /* confdefs.h.  */
31206 _ACEOF
31207 cat confdefs.h >>conftest.$ac_ext
31208 cat >>conftest.$ac_ext <<_ACEOF
31209 /* end confdefs.h.  */
31210 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31212 #define setproctitle innocuous_setproctitle
31213
31214 /* System header to define __stub macros and hopefully few prototypes,
31215     which can conflict with char setproctitle (); below.
31216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31217     <limits.h> exists even on freestanding compilers.  */
31218
31219 #ifdef __STDC__
31220 # include <limits.h>
31221 #else
31222 # include <assert.h>
31223 #endif
31224
31225 #undef setproctitle
31226
31227 /* Override any gcc2 internal prototype to avoid an error.  */
31228 #ifdef __cplusplus
31229 extern "C"
31230 {
31231 #endif
31232 /* We use char because int might match the return type of a gcc2
31233    builtin and then its argument prototype would still apply.  */
31234 char setproctitle ();
31235 /* The GNU C library defines this for functions which it implements
31236     to always fail with ENOSYS.  Some functions are actually named
31237     something starting with __ and the normal name is an alias.  */
31238 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
31239 choke me
31240 #else
31241 char (*f) () = setproctitle;
31242 #endif
31243 #ifdef __cplusplus
31244 }
31245 #endif
31246
31247 int
31248 main ()
31249 {
31250 return f != setproctitle;
31251   ;
31252   return 0;
31253 }
31254 _ACEOF
31255 rm -f conftest.$ac_objext conftest$ac_exeext
31256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31257   (eval $ac_link) 2>conftest.er1
31258   ac_status=$?
31259   grep -v '^ *+' conftest.er1 >conftest.err
31260   rm -f conftest.er1
31261   cat conftest.err >&5
31262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263   (exit $ac_status); } &&
31264          { ac_try='test -z "$ac_c_werror_flag"
31265                          || test ! -s conftest.err'
31266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31267   (eval $ac_try) 2>&5
31268   ac_status=$?
31269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270   (exit $ac_status); }; } &&
31271          { ac_try='test -s conftest$ac_exeext'
31272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31273   (eval $ac_try) 2>&5
31274   ac_status=$?
31275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276   (exit $ac_status); }; }; then
31277   ac_cv_func_setproctitle=yes
31278 else
31279   echo "$as_me: failed program was:" >&5
31280 sed 's/^/| /' conftest.$ac_ext >&5
31281
31282 ac_cv_func_setproctitle=no
31283 fi
31284 rm -f conftest.err conftest.$ac_objext \
31285       conftest$ac_exeext conftest.$ac_ext
31286 fi
31287 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31288 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
31289 if test $ac_cv_func_setproctitle = yes; then
31290   have_setproctitle=yes
31291 else
31292
31293                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31294 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
31295 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31296   echo $ECHO_N "(cached) $ECHO_C" >&6
31297 else
31298   ac_check_lib_save_LIBS=$LIBS
31299 LIBS="-lutil  $LIBS"
31300 cat >conftest.$ac_ext <<_ACEOF
31301 /* confdefs.h.  */
31302 _ACEOF
31303 cat confdefs.h >>conftest.$ac_ext
31304 cat >>conftest.$ac_ext <<_ACEOF
31305 /* end confdefs.h.  */
31306
31307 /* Override any gcc2 internal prototype to avoid an error.  */
31308 #ifdef __cplusplus
31309 extern "C"
31310 #endif
31311 /* We use char because int might match the return type of a gcc2
31312    builtin and then its argument prototype would still apply.  */
31313 char setproctitle ();
31314 int
31315 main ()
31316 {
31317 setproctitle ();
31318   ;
31319   return 0;
31320 }
31321 _ACEOF
31322 rm -f conftest.$ac_objext conftest$ac_exeext
31323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31324   (eval $ac_link) 2>conftest.er1
31325   ac_status=$?
31326   grep -v '^ *+' conftest.er1 >conftest.err
31327   rm -f conftest.er1
31328   cat conftest.err >&5
31329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330   (exit $ac_status); } &&
31331          { ac_try='test -z "$ac_c_werror_flag"
31332                          || test ! -s conftest.err'
31333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31334   (eval $ac_try) 2>&5
31335   ac_status=$?
31336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337   (exit $ac_status); }; } &&
31338          { ac_try='test -s conftest$ac_exeext'
31339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31340   (eval $ac_try) 2>&5
31341   ac_status=$?
31342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343   (exit $ac_status); }; }; then
31344   ac_cv_lib_util_setproctitle=yes
31345 else
31346   echo "$as_me: failed program was:" >&5
31347 sed 's/^/| /' conftest.$ac_ext >&5
31348
31349 ac_cv_lib_util_setproctitle=no
31350 fi
31351 rm -f conftest.err conftest.$ac_objext \
31352       conftest$ac_exeext conftest.$ac_ext
31353 LIBS=$ac_check_lib_save_LIBS
31354 fi
31355 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31356 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
31357 if test $ac_cv_lib_util_setproctitle = yes; then
31358   have_setproctitle=yes
31359                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31360 else
31361   have_setproctitle=no
31362                         case $LIBOBJS in
31363     "setproctitle.$ac_objext"   | \
31364   *" setproctitle.$ac_objext"   | \
31365     "setproctitle.$ac_objext "* | \
31366   *" setproctitle.$ac_objext "* ) ;;
31367   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
31368 esac
31369
31370                         LIBSRCS="$LIBSRCS setproctitle.c"
31371 fi
31372
31373 fi
31374
31375
31376         if test $have_setproctitle = yes ; then
31377
31378 cat >>confdefs.h <<\_ACEOF
31379 #define HAVE_SETPROCTITLE 1
31380 _ACEOF
31381
31382         fi
31383 fi
31384
31385 if test $ol_enable_slp != no ; then
31386
31387 for ac_header in slp.h
31388 do
31389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31391   echo "$as_me:$LINENO: checking for $ac_header" >&5
31392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31394   echo $ECHO_N "(cached) $ECHO_C" >&6
31395 fi
31396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31398 else
31399   # Is the header compilable?
31400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31402 cat >conftest.$ac_ext <<_ACEOF
31403 /* confdefs.h.  */
31404 _ACEOF
31405 cat confdefs.h >>conftest.$ac_ext
31406 cat >>conftest.$ac_ext <<_ACEOF
31407 /* end confdefs.h.  */
31408 $ac_includes_default
31409 #include <$ac_header>
31410 _ACEOF
31411 rm -f conftest.$ac_objext
31412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31413   (eval $ac_compile) 2>conftest.er1
31414   ac_status=$?
31415   grep -v '^ *+' conftest.er1 >conftest.err
31416   rm -f conftest.er1
31417   cat conftest.err >&5
31418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31419   (exit $ac_status); } &&
31420          { ac_try='test -z "$ac_c_werror_flag"
31421                          || test ! -s conftest.err'
31422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31423   (eval $ac_try) 2>&5
31424   ac_status=$?
31425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31426   (exit $ac_status); }; } &&
31427          { ac_try='test -s conftest.$ac_objext'
31428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31429   (eval $ac_try) 2>&5
31430   ac_status=$?
31431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31432   (exit $ac_status); }; }; then
31433   ac_header_compiler=yes
31434 else
31435   echo "$as_me: failed program was:" >&5
31436 sed 's/^/| /' conftest.$ac_ext >&5
31437
31438 ac_header_compiler=no
31439 fi
31440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31442 echo "${ECHO_T}$ac_header_compiler" >&6
31443
31444 # Is the header present?
31445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31447 cat >conftest.$ac_ext <<_ACEOF
31448 /* confdefs.h.  */
31449 _ACEOF
31450 cat confdefs.h >>conftest.$ac_ext
31451 cat >>conftest.$ac_ext <<_ACEOF
31452 /* end confdefs.h.  */
31453 #include <$ac_header>
31454 _ACEOF
31455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31456   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31457   ac_status=$?
31458   grep -v '^ *+' conftest.er1 >conftest.err
31459   rm -f conftest.er1
31460   cat conftest.err >&5
31461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462   (exit $ac_status); } >/dev/null; then
31463   if test -s conftest.err; then
31464     ac_cpp_err=$ac_c_preproc_warn_flag
31465     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31466   else
31467     ac_cpp_err=
31468   fi
31469 else
31470   ac_cpp_err=yes
31471 fi
31472 if test -z "$ac_cpp_err"; then
31473   ac_header_preproc=yes
31474 else
31475   echo "$as_me: failed program was:" >&5
31476 sed 's/^/| /' conftest.$ac_ext >&5
31477
31478   ac_header_preproc=no
31479 fi
31480 rm -f conftest.err conftest.$ac_ext
31481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31482 echo "${ECHO_T}$ac_header_preproc" >&6
31483
31484 # So?  What about this header?
31485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31486   yes:no: )
31487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31491     ac_header_preproc=yes
31492     ;;
31493   no:yes:* )
31494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31506     (
31507       cat <<\_ASBOX
31508 ## --------------------------------------------- ##
31509 ## Report this to <http://www.openldap.org/its/> ##
31510 ## --------------------------------------------- ##
31511 _ASBOX
31512     ) |
31513       sed "s/^/$as_me: WARNING:     /" >&2
31514     ;;
31515 esac
31516 echo "$as_me:$LINENO: checking for $ac_header" >&5
31517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31519   echo $ECHO_N "(cached) $ECHO_C" >&6
31520 else
31521   eval "$as_ac_Header=\$ac_header_preproc"
31522 fi
31523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31525
31526 fi
31527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31528   cat >>confdefs.h <<_ACEOF
31529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31530 _ACEOF
31531
31532 fi
31533
31534 done
31535
31536
31537         if test $ac_cv_header_slp_h = yes ; then
31538                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31539 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
31540 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31541   echo $ECHO_N "(cached) $ECHO_C" >&6
31542 else
31543   ac_check_lib_save_LIBS=$LIBS
31544 LIBS="-lslp  $LIBS"
31545 cat >conftest.$ac_ext <<_ACEOF
31546 /* confdefs.h.  */
31547 _ACEOF
31548 cat confdefs.h >>conftest.$ac_ext
31549 cat >>conftest.$ac_ext <<_ACEOF
31550 /* end confdefs.h.  */
31551
31552 /* Override any gcc2 internal prototype to avoid an error.  */
31553 #ifdef __cplusplus
31554 extern "C"
31555 #endif
31556 /* We use char because int might match the return type of a gcc2
31557    builtin and then its argument prototype would still apply.  */
31558 char SLPOpen ();
31559 int
31560 main ()
31561 {
31562 SLPOpen ();
31563   ;
31564   return 0;
31565 }
31566 _ACEOF
31567 rm -f conftest.$ac_objext conftest$ac_exeext
31568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31569   (eval $ac_link) 2>conftest.er1
31570   ac_status=$?
31571   grep -v '^ *+' conftest.er1 >conftest.err
31572   rm -f conftest.er1
31573   cat conftest.err >&5
31574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575   (exit $ac_status); } &&
31576          { ac_try='test -z "$ac_c_werror_flag"
31577                          || test ! -s conftest.err'
31578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31579   (eval $ac_try) 2>&5
31580   ac_status=$?
31581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582   (exit $ac_status); }; } &&
31583          { ac_try='test -s conftest$ac_exeext'
31584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31585   (eval $ac_try) 2>&5
31586   ac_status=$?
31587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588   (exit $ac_status); }; }; then
31589   ac_cv_lib_slp_SLPOpen=yes
31590 else
31591   echo "$as_me: failed program was:" >&5
31592 sed 's/^/| /' conftest.$ac_ext >&5
31593
31594 ac_cv_lib_slp_SLPOpen=no
31595 fi
31596 rm -f conftest.err conftest.$ac_objext \
31597       conftest$ac_exeext conftest.$ac_ext
31598 LIBS=$ac_check_lib_save_LIBS
31599 fi
31600 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31601 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
31602 if test $ac_cv_lib_slp_SLPOpen = yes; then
31603   have_slp=yes
31604 else
31605   have_slp=no
31606 fi
31607
31608                 if test $have_slp = yes ; then
31609
31610 cat >>confdefs.h <<\_ACEOF
31611 #define HAVE_SLP 1
31612 _ACEOF
31613
31614                         SLAPD_SLP_LIBS=-lslp
31615                 fi
31616
31617         elif test $ol_enable_slp = yes ; then
31618                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31619 echo "$as_me: error: SLP not found" >&2;}
31620    { (exit 1); exit 1; }; }
31621         fi
31622 fi
31623
31624
31625 echo "$as_me:$LINENO: checking for mode_t" >&5
31626 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31627 if test "${ac_cv_type_mode_t+set}" = set; then
31628   echo $ECHO_N "(cached) $ECHO_C" >&6
31629 else
31630   cat >conftest.$ac_ext <<_ACEOF
31631 /* confdefs.h.  */
31632 _ACEOF
31633 cat confdefs.h >>conftest.$ac_ext
31634 cat >>conftest.$ac_ext <<_ACEOF
31635 /* end confdefs.h.  */
31636 $ac_includes_default
31637 int
31638 main ()
31639 {
31640 if ((mode_t *) 0)
31641   return 0;
31642 if (sizeof (mode_t))
31643   return 0;
31644   ;
31645   return 0;
31646 }
31647 _ACEOF
31648 rm -f conftest.$ac_objext
31649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31650   (eval $ac_compile) 2>conftest.er1
31651   ac_status=$?
31652   grep -v '^ *+' conftest.er1 >conftest.err
31653   rm -f conftest.er1
31654   cat conftest.err >&5
31655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656   (exit $ac_status); } &&
31657          { ac_try='test -z "$ac_c_werror_flag"
31658                          || test ! -s conftest.err'
31659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31660   (eval $ac_try) 2>&5
31661   ac_status=$?
31662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663   (exit $ac_status); }; } &&
31664          { ac_try='test -s conftest.$ac_objext'
31665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31666   (eval $ac_try) 2>&5
31667   ac_status=$?
31668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669   (exit $ac_status); }; }; then
31670   ac_cv_type_mode_t=yes
31671 else
31672   echo "$as_me: failed program was:" >&5
31673 sed 's/^/| /' conftest.$ac_ext >&5
31674
31675 ac_cv_type_mode_t=no
31676 fi
31677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31678 fi
31679 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31680 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31681 if test $ac_cv_type_mode_t = yes; then
31682   :
31683 else
31684
31685 cat >>confdefs.h <<_ACEOF
31686 #define mode_t int
31687 _ACEOF
31688
31689 fi
31690
31691 echo "$as_me:$LINENO: checking for off_t" >&5
31692 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31693 if test "${ac_cv_type_off_t+set}" = set; then
31694   echo $ECHO_N "(cached) $ECHO_C" >&6
31695 else
31696   cat >conftest.$ac_ext <<_ACEOF
31697 /* confdefs.h.  */
31698 _ACEOF
31699 cat confdefs.h >>conftest.$ac_ext
31700 cat >>conftest.$ac_ext <<_ACEOF
31701 /* end confdefs.h.  */
31702 $ac_includes_default
31703 int
31704 main ()
31705 {
31706 if ((off_t *) 0)
31707   return 0;
31708 if (sizeof (off_t))
31709   return 0;
31710   ;
31711   return 0;
31712 }
31713 _ACEOF
31714 rm -f conftest.$ac_objext
31715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31716   (eval $ac_compile) 2>conftest.er1
31717   ac_status=$?
31718   grep -v '^ *+' conftest.er1 >conftest.err
31719   rm -f conftest.er1
31720   cat conftest.err >&5
31721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722   (exit $ac_status); } &&
31723          { ac_try='test -z "$ac_c_werror_flag"
31724                          || test ! -s conftest.err'
31725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31726   (eval $ac_try) 2>&5
31727   ac_status=$?
31728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729   (exit $ac_status); }; } &&
31730          { ac_try='test -s conftest.$ac_objext'
31731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31732   (eval $ac_try) 2>&5
31733   ac_status=$?
31734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735   (exit $ac_status); }; }; then
31736   ac_cv_type_off_t=yes
31737 else
31738   echo "$as_me: failed program was:" >&5
31739 sed 's/^/| /' conftest.$ac_ext >&5
31740
31741 ac_cv_type_off_t=no
31742 fi
31743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31744 fi
31745 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31746 echo "${ECHO_T}$ac_cv_type_off_t" >&6
31747 if test $ac_cv_type_off_t = yes; then
31748   :
31749 else
31750
31751 cat >>confdefs.h <<_ACEOF
31752 #define off_t long
31753 _ACEOF
31754
31755 fi
31756
31757 echo "$as_me:$LINENO: checking for pid_t" >&5
31758 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31759 if test "${ac_cv_type_pid_t+set}" = set; then
31760   echo $ECHO_N "(cached) $ECHO_C" >&6
31761 else
31762   cat >conftest.$ac_ext <<_ACEOF
31763 /* confdefs.h.  */
31764 _ACEOF
31765 cat confdefs.h >>conftest.$ac_ext
31766 cat >>conftest.$ac_ext <<_ACEOF
31767 /* end confdefs.h.  */
31768 $ac_includes_default
31769 int
31770 main ()
31771 {
31772 if ((pid_t *) 0)
31773   return 0;
31774 if (sizeof (pid_t))
31775   return 0;
31776   ;
31777   return 0;
31778 }
31779 _ACEOF
31780 rm -f conftest.$ac_objext
31781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31782   (eval $ac_compile) 2>conftest.er1
31783   ac_status=$?
31784   grep -v '^ *+' conftest.er1 >conftest.err
31785   rm -f conftest.er1
31786   cat conftest.err >&5
31787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788   (exit $ac_status); } &&
31789          { ac_try='test -z "$ac_c_werror_flag"
31790                          || test ! -s conftest.err'
31791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31792   (eval $ac_try) 2>&5
31793   ac_status=$?
31794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795   (exit $ac_status); }; } &&
31796          { ac_try='test -s conftest.$ac_objext'
31797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31798   (eval $ac_try) 2>&5
31799   ac_status=$?
31800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801   (exit $ac_status); }; }; then
31802   ac_cv_type_pid_t=yes
31803 else
31804   echo "$as_me: failed program was:" >&5
31805 sed 's/^/| /' conftest.$ac_ext >&5
31806
31807 ac_cv_type_pid_t=no
31808 fi
31809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31810 fi
31811 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31812 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31813 if test $ac_cv_type_pid_t = yes; then
31814   :
31815 else
31816
31817 cat >>confdefs.h <<_ACEOF
31818 #define pid_t int
31819 _ACEOF
31820
31821 fi
31822
31823 echo "$as_me:$LINENO: checking for ssize_t" >&5
31824 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
31825 if test "${ac_cv_type_ssize_t+set}" = set; then
31826   echo $ECHO_N "(cached) $ECHO_C" >&6
31827 else
31828   cat >conftest.$ac_ext <<_ACEOF
31829 /* confdefs.h.  */
31830 _ACEOF
31831 cat confdefs.h >>conftest.$ac_ext
31832 cat >>conftest.$ac_ext <<_ACEOF
31833 /* end confdefs.h.  */
31834 $ac_includes_default
31835 int
31836 main ()
31837 {
31838 if ((ssize_t *) 0)
31839   return 0;
31840 if (sizeof (ssize_t))
31841   return 0;
31842   ;
31843   return 0;
31844 }
31845 _ACEOF
31846 rm -f conftest.$ac_objext
31847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31848   (eval $ac_compile) 2>conftest.er1
31849   ac_status=$?
31850   grep -v '^ *+' conftest.er1 >conftest.err
31851   rm -f conftest.er1
31852   cat conftest.err >&5
31853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854   (exit $ac_status); } &&
31855          { ac_try='test -z "$ac_c_werror_flag"
31856                          || test ! -s conftest.err'
31857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31858   (eval $ac_try) 2>&5
31859   ac_status=$?
31860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861   (exit $ac_status); }; } &&
31862          { ac_try='test -s conftest.$ac_objext'
31863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31864   (eval $ac_try) 2>&5
31865   ac_status=$?
31866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867   (exit $ac_status); }; }; then
31868   ac_cv_type_ssize_t=yes
31869 else
31870   echo "$as_me: failed program was:" >&5
31871 sed 's/^/| /' conftest.$ac_ext >&5
31872
31873 ac_cv_type_ssize_t=no
31874 fi
31875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31876 fi
31877 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31878 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
31879 if test $ac_cv_type_ssize_t = yes; then
31880   :
31881 else
31882
31883 cat >>confdefs.h <<_ACEOF
31884 #define ssize_t signed int
31885 _ACEOF
31886
31887 fi
31888
31889 echo "$as_me:$LINENO: checking for caddr_t" >&5
31890 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
31891 if test "${ac_cv_type_caddr_t+set}" = set; then
31892   echo $ECHO_N "(cached) $ECHO_C" >&6
31893 else
31894   cat >conftest.$ac_ext <<_ACEOF
31895 /* confdefs.h.  */
31896 _ACEOF
31897 cat confdefs.h >>conftest.$ac_ext
31898 cat >>conftest.$ac_ext <<_ACEOF
31899 /* end confdefs.h.  */
31900 $ac_includes_default
31901 int
31902 main ()
31903 {
31904 if ((caddr_t *) 0)
31905   return 0;
31906 if (sizeof (caddr_t))
31907   return 0;
31908   ;
31909   return 0;
31910 }
31911 _ACEOF
31912 rm -f conftest.$ac_objext
31913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31914   (eval $ac_compile) 2>conftest.er1
31915   ac_status=$?
31916   grep -v '^ *+' conftest.er1 >conftest.err
31917   rm -f conftest.er1
31918   cat conftest.err >&5
31919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920   (exit $ac_status); } &&
31921          { ac_try='test -z "$ac_c_werror_flag"
31922                          || test ! -s conftest.err'
31923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31924   (eval $ac_try) 2>&5
31925   ac_status=$?
31926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927   (exit $ac_status); }; } &&
31928          { ac_try='test -s conftest.$ac_objext'
31929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31930   (eval $ac_try) 2>&5
31931   ac_status=$?
31932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933   (exit $ac_status); }; }; then
31934   ac_cv_type_caddr_t=yes
31935 else
31936   echo "$as_me: failed program was:" >&5
31937 sed 's/^/| /' conftest.$ac_ext >&5
31938
31939 ac_cv_type_caddr_t=no
31940 fi
31941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31942 fi
31943 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31944 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
31945 if test $ac_cv_type_caddr_t = yes; then
31946   :
31947 else
31948
31949 cat >>confdefs.h <<_ACEOF
31950 #define caddr_t char *
31951 _ACEOF
31952
31953 fi
31954
31955 echo "$as_me:$LINENO: checking for size_t" >&5
31956 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31957 if test "${ac_cv_type_size_t+set}" = set; then
31958   echo $ECHO_N "(cached) $ECHO_C" >&6
31959 else
31960   cat >conftest.$ac_ext <<_ACEOF
31961 /* confdefs.h.  */
31962 _ACEOF
31963 cat confdefs.h >>conftest.$ac_ext
31964 cat >>conftest.$ac_ext <<_ACEOF
31965 /* end confdefs.h.  */
31966 $ac_includes_default
31967 int
31968 main ()
31969 {
31970 if ((size_t *) 0)
31971   return 0;
31972 if (sizeof (size_t))
31973   return 0;
31974   ;
31975   return 0;
31976 }
31977 _ACEOF
31978 rm -f conftest.$ac_objext
31979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31980   (eval $ac_compile) 2>conftest.er1
31981   ac_status=$?
31982   grep -v '^ *+' conftest.er1 >conftest.err
31983   rm -f conftest.er1
31984   cat conftest.err >&5
31985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986   (exit $ac_status); } &&
31987          { ac_try='test -z "$ac_c_werror_flag"
31988                          || test ! -s conftest.err'
31989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31990   (eval $ac_try) 2>&5
31991   ac_status=$?
31992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993   (exit $ac_status); }; } &&
31994          { ac_try='test -s conftest.$ac_objext'
31995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31996   (eval $ac_try) 2>&5
31997   ac_status=$?
31998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999   (exit $ac_status); }; }; then
32000   ac_cv_type_size_t=yes
32001 else
32002   echo "$as_me: failed program was:" >&5
32003 sed 's/^/| /' conftest.$ac_ext >&5
32004
32005 ac_cv_type_size_t=no
32006 fi
32007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32008 fi
32009 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32010 echo "${ECHO_T}$ac_cv_type_size_t" >&6
32011 if test $ac_cv_type_size_t = yes; then
32012   :
32013 else
32014
32015 cat >>confdefs.h <<_ACEOF
32016 #define size_t unsigned
32017 _ACEOF
32018
32019 fi
32020
32021
32022 echo "$as_me:$LINENO: checking for long long" >&5
32023 echo $ECHO_N "checking for long long... $ECHO_C" >&6
32024 if test "${ac_cv_type_long_long+set}" = set; then
32025   echo $ECHO_N "(cached) $ECHO_C" >&6
32026 else
32027   cat >conftest.$ac_ext <<_ACEOF
32028 /* confdefs.h.  */
32029 _ACEOF
32030 cat confdefs.h >>conftest.$ac_ext
32031 cat >>conftest.$ac_ext <<_ACEOF
32032 /* end confdefs.h.  */
32033 $ac_includes_default
32034 int
32035 main ()
32036 {
32037 if ((long long *) 0)
32038   return 0;
32039 if (sizeof (long long))
32040   return 0;
32041   ;
32042   return 0;
32043 }
32044 _ACEOF
32045 rm -f conftest.$ac_objext
32046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32047   (eval $ac_compile) 2>conftest.er1
32048   ac_status=$?
32049   grep -v '^ *+' conftest.er1 >conftest.err
32050   rm -f conftest.er1
32051   cat conftest.err >&5
32052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053   (exit $ac_status); } &&
32054          { ac_try='test -z "$ac_c_werror_flag"
32055                          || test ! -s conftest.err'
32056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32057   (eval $ac_try) 2>&5
32058   ac_status=$?
32059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060   (exit $ac_status); }; } &&
32061          { ac_try='test -s conftest.$ac_objext'
32062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32063   (eval $ac_try) 2>&5
32064   ac_status=$?
32065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066   (exit $ac_status); }; }; then
32067   ac_cv_type_long_long=yes
32068 else
32069   echo "$as_me: failed program was:" >&5
32070 sed 's/^/| /' conftest.$ac_ext >&5
32071
32072 ac_cv_type_long_long=no
32073 fi
32074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32075 fi
32076 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32077 echo "${ECHO_T}$ac_cv_type_long_long" >&6
32078 if test $ac_cv_type_long_long = yes; then
32079
32080 cat >>confdefs.h <<_ACEOF
32081 #define HAVE_LONG_LONG 1
32082 _ACEOF
32083
32084
32085 fi
32086
32087 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32088 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
32089 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32090   echo $ECHO_N "(cached) $ECHO_C" >&6
32091 else
32092   cat >conftest.$ac_ext <<_ACEOF
32093 /* confdefs.h.  */
32094 _ACEOF
32095 cat confdefs.h >>conftest.$ac_ext
32096 cat >>conftest.$ac_ext <<_ACEOF
32097 /* end confdefs.h.  */
32098 $ac_includes_default
32099 int
32100 main ()
32101 {
32102 if ((ptrdiff_t *) 0)
32103   return 0;
32104 if (sizeof (ptrdiff_t))
32105   return 0;
32106   ;
32107   return 0;
32108 }
32109 _ACEOF
32110 rm -f conftest.$ac_objext
32111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32112   (eval $ac_compile) 2>conftest.er1
32113   ac_status=$?
32114   grep -v '^ *+' conftest.er1 >conftest.err
32115   rm -f conftest.er1
32116   cat conftest.err >&5
32117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118   (exit $ac_status); } &&
32119          { ac_try='test -z "$ac_c_werror_flag"
32120                          || test ! -s conftest.err'
32121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32122   (eval $ac_try) 2>&5
32123   ac_status=$?
32124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125   (exit $ac_status); }; } &&
32126          { ac_try='test -s conftest.$ac_objext'
32127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32128   (eval $ac_try) 2>&5
32129   ac_status=$?
32130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131   (exit $ac_status); }; }; then
32132   ac_cv_type_ptrdiff_t=yes
32133 else
32134   echo "$as_me: failed program was:" >&5
32135 sed 's/^/| /' conftest.$ac_ext >&5
32136
32137 ac_cv_type_ptrdiff_t=no
32138 fi
32139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32140 fi
32141 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32142 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
32143 if test $ac_cv_type_ptrdiff_t = yes; then
32144
32145 cat >>confdefs.h <<_ACEOF
32146 #define HAVE_PTRDIFF_T 1
32147 _ACEOF
32148
32149
32150 fi
32151
32152
32153
32154 echo "$as_me:$LINENO: checking for socklen_t" >&5
32155 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
32156 if test "${ac_cv_type_socklen_t+set}" = set; then
32157   echo $ECHO_N "(cached) $ECHO_C" >&6
32158 else
32159   cat >conftest.$ac_ext <<_ACEOF
32160 /* confdefs.h.  */
32161 _ACEOF
32162 cat confdefs.h >>conftest.$ac_ext
32163 cat >>conftest.$ac_ext <<_ACEOF
32164 /* end confdefs.h.  */
32165 $ac_includes_default
32166 #ifdef HAVE_SYS_SOCKET_H
32167 #include <sys/socket.h>
32168 #endif
32169
32170 int
32171 main ()
32172 {
32173 if ((socklen_t *) 0)
32174   return 0;
32175 if (sizeof (socklen_t))
32176   return 0;
32177   ;
32178   return 0;
32179 }
32180 _ACEOF
32181 rm -f conftest.$ac_objext
32182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32183   (eval $ac_compile) 2>conftest.er1
32184   ac_status=$?
32185   grep -v '^ *+' conftest.er1 >conftest.err
32186   rm -f conftest.er1
32187   cat conftest.err >&5
32188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189   (exit $ac_status); } &&
32190          { ac_try='test -z "$ac_c_werror_flag"
32191                          || test ! -s conftest.err'
32192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32193   (eval $ac_try) 2>&5
32194   ac_status=$?
32195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196   (exit $ac_status); }; } &&
32197          { ac_try='test -s conftest.$ac_objext'
32198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32199   (eval $ac_try) 2>&5
32200   ac_status=$?
32201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202   (exit $ac_status); }; }; then
32203   ac_cv_type_socklen_t=yes
32204 else
32205   echo "$as_me: failed program was:" >&5
32206 sed 's/^/| /' conftest.$ac_ext >&5
32207
32208 ac_cv_type_socklen_t=no
32209 fi
32210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32211 fi
32212 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32213 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
32214
32215
32216 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32217 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
32218 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32219   echo $ECHO_N "(cached) $ECHO_C" >&6
32220 else
32221
32222         set socklen_t int unsigned "unsigned long" long size_t
32223         test "$ac_cv_type_socklen_t" = yes || shift
32224         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32225         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32226                 cat >conftest.$ac_ext <<_ACEOF
32227 /* confdefs.h.  */
32228 _ACEOF
32229 cat confdefs.h >>conftest.$ac_ext
32230 cat >>conftest.$ac_ext <<_ACEOF
32231 /* end confdefs.h.  */
32232 $ac_includes_default
32233 #ifdef HAVE_SYS_SOCKET_H
32234 #include <sys/socket.h>
32235 #endif
32236 extern int accept(int s, $addrtype *ap, $lentype *lp);
32237
32238 int
32239 main ()
32240 {
32241
32242 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32243
32244   ;
32245   return 0;
32246 }
32247 _ACEOF
32248 rm -f conftest.$ac_objext
32249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32250   (eval $ac_compile) 2>conftest.er1
32251   ac_status=$?
32252   grep -v '^ *+' conftest.er1 >conftest.err
32253   rm -f conftest.er1
32254   cat conftest.err >&5
32255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32256   (exit $ac_status); } &&
32257          { ac_try='test -z "$ac_c_werror_flag"
32258                          || test ! -s conftest.err'
32259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32260   (eval $ac_try) 2>&5
32261   ac_status=$?
32262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263   (exit $ac_status); }; } &&
32264          { ac_try='test -s conftest.$ac_objext'
32265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32266   (eval $ac_try) 2>&5
32267   ac_status=$?
32268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269   (exit $ac_status); }; }; then
32270   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32271 else
32272   echo "$as_me: failed program was:" >&5
32273 sed 's/^/| /' conftest.$ac_ext >&5
32274
32275 fi
32276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32277         done ; done
32278 fi
32279
32280 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32281 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
32282
32283 cat >>confdefs.h <<_ACEOF
32284 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32285 _ACEOF
32286
32287
32288 if test "$ac_cv_type_socklen_t" != yes; then
32289
32290 cat >>confdefs.h <<_ACEOF
32291 #define socklen_t $ol_cv_type_ber_socklen_t
32292 _ACEOF
32293
32294 fi
32295
32296
32297 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32298 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
32299 if test "${ac_cv_type_signal+set}" = set; then
32300   echo $ECHO_N "(cached) $ECHO_C" >&6
32301 else
32302   cat >conftest.$ac_ext <<_ACEOF
32303 /* confdefs.h.  */
32304 _ACEOF
32305 cat confdefs.h >>conftest.$ac_ext
32306 cat >>conftest.$ac_ext <<_ACEOF
32307 /* end confdefs.h.  */
32308 #include <sys/types.h>
32309 #include <signal.h>
32310 #ifdef signal
32311 # undef signal
32312 #endif
32313 #ifdef __cplusplus
32314 extern "C" void (*signal (int, void (*)(int)))(int);
32315 #else
32316 void (*signal ()) ();
32317 #endif
32318
32319 int
32320 main ()
32321 {
32322 int i;
32323   ;
32324   return 0;
32325 }
32326 _ACEOF
32327 rm -f conftest.$ac_objext
32328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32329   (eval $ac_compile) 2>conftest.er1
32330   ac_status=$?
32331   grep -v '^ *+' conftest.er1 >conftest.err
32332   rm -f conftest.er1
32333   cat conftest.err >&5
32334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335   (exit $ac_status); } &&
32336          { ac_try='test -z "$ac_c_werror_flag"
32337                          || test ! -s conftest.err'
32338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32339   (eval $ac_try) 2>&5
32340   ac_status=$?
32341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32342   (exit $ac_status); }; } &&
32343          { ac_try='test -s conftest.$ac_objext'
32344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32345   (eval $ac_try) 2>&5
32346   ac_status=$?
32347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348   (exit $ac_status); }; }; then
32349   ac_cv_type_signal=void
32350 else
32351   echo "$as_me: failed program was:" >&5
32352 sed 's/^/| /' conftest.$ac_ext >&5
32353
32354 ac_cv_type_signal=int
32355 fi
32356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32357 fi
32358 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32359 echo "${ECHO_T}$ac_cv_type_signal" >&6
32360
32361 cat >>confdefs.h <<_ACEOF
32362 #define RETSIGTYPE $ac_cv_type_signal
32363 _ACEOF
32364
32365
32366
32367 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32368 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
32369 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32370   echo $ECHO_N "(cached) $ECHO_C" >&6
32371 else
32372   cat >conftest.$ac_ext <<_ACEOF
32373 /* confdefs.h.  */
32374 _ACEOF
32375 cat confdefs.h >>conftest.$ac_ext
32376 cat >>conftest.$ac_ext <<_ACEOF
32377 /* end confdefs.h.  */
32378 $ac_includes_default
32379 #include <signal.h>
32380
32381
32382 int
32383 main ()
32384 {
32385 if ((sig_atomic_t *) 0)
32386   return 0;
32387 if (sizeof (sig_atomic_t))
32388   return 0;
32389   ;
32390   return 0;
32391 }
32392 _ACEOF
32393 rm -f conftest.$ac_objext
32394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32395   (eval $ac_compile) 2>conftest.er1
32396   ac_status=$?
32397   grep -v '^ *+' conftest.er1 >conftest.err
32398   rm -f conftest.er1
32399   cat conftest.err >&5
32400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401   (exit $ac_status); } &&
32402          { ac_try='test -z "$ac_c_werror_flag"
32403                          || test ! -s conftest.err'
32404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32405   (eval $ac_try) 2>&5
32406   ac_status=$?
32407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32408   (exit $ac_status); }; } &&
32409          { ac_try='test -s conftest.$ac_objext'
32410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32411   (eval $ac_try) 2>&5
32412   ac_status=$?
32413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414   (exit $ac_status); }; }; then
32415   ac_cv_type_sig_atomic_t=yes
32416 else
32417   echo "$as_me: failed program was:" >&5
32418 sed 's/^/| /' conftest.$ac_ext >&5
32419
32420 ac_cv_type_sig_atomic_t=no
32421 fi
32422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32423 fi
32424 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32425 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
32426 if test $ac_cv_type_sig_atomic_t = yes; then
32427   :
32428 else
32429
32430 cat >>confdefs.h <<_ACEOF
32431 #define sig_atomic_t int
32432 _ACEOF
32433
32434 fi
32435
32436
32437 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32438 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32439 if test "${ac_cv_type_uid_t+set}" = set; then
32440   echo $ECHO_N "(cached) $ECHO_C" >&6
32441 else
32442   cat >conftest.$ac_ext <<_ACEOF
32443 /* confdefs.h.  */
32444 _ACEOF
32445 cat confdefs.h >>conftest.$ac_ext
32446 cat >>conftest.$ac_ext <<_ACEOF
32447 /* end confdefs.h.  */
32448 #include <sys/types.h>
32449
32450 _ACEOF
32451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32452   $EGREP "uid_t" >/dev/null 2>&1; then
32453   ac_cv_type_uid_t=yes
32454 else
32455   ac_cv_type_uid_t=no
32456 fi
32457 rm -f conftest*
32458
32459 fi
32460 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32461 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32462 if test $ac_cv_type_uid_t = no; then
32463
32464 cat >>confdefs.h <<\_ACEOF
32465 #define uid_t int
32466 _ACEOF
32467
32468
32469 cat >>confdefs.h <<\_ACEOF
32470 #define gid_t int
32471 _ACEOF
32472
32473 fi
32474
32475
32476 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32477 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
32478 if test "${ac_cv_header_time+set}" = set; then
32479   echo $ECHO_N "(cached) $ECHO_C" >&6
32480 else
32481   cat >conftest.$ac_ext <<_ACEOF
32482 /* confdefs.h.  */
32483 _ACEOF
32484 cat confdefs.h >>conftest.$ac_ext
32485 cat >>conftest.$ac_ext <<_ACEOF
32486 /* end confdefs.h.  */
32487 #include <sys/types.h>
32488 #include <sys/time.h>
32489 #include <time.h>
32490
32491 int
32492 main ()
32493 {
32494 if ((struct tm *) 0)
32495 return 0;
32496   ;
32497   return 0;
32498 }
32499 _ACEOF
32500 rm -f conftest.$ac_objext
32501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32502   (eval $ac_compile) 2>conftest.er1
32503   ac_status=$?
32504   grep -v '^ *+' conftest.er1 >conftest.err
32505   rm -f conftest.er1
32506   cat conftest.err >&5
32507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508   (exit $ac_status); } &&
32509          { ac_try='test -z "$ac_c_werror_flag"
32510                          || test ! -s conftest.err'
32511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32512   (eval $ac_try) 2>&5
32513   ac_status=$?
32514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515   (exit $ac_status); }; } &&
32516          { ac_try='test -s conftest.$ac_objext'
32517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32518   (eval $ac_try) 2>&5
32519   ac_status=$?
32520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521   (exit $ac_status); }; }; then
32522   ac_cv_header_time=yes
32523 else
32524   echo "$as_me: failed program was:" >&5
32525 sed 's/^/| /' conftest.$ac_ext >&5
32526
32527 ac_cv_header_time=no
32528 fi
32529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32530 fi
32531 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32532 echo "${ECHO_T}$ac_cv_header_time" >&6
32533 if test $ac_cv_header_time = yes; then
32534
32535 cat >>confdefs.h <<\_ACEOF
32536 #define TIME_WITH_SYS_TIME 1
32537 _ACEOF
32538
32539 fi
32540
32541 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32542 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
32543 if test "${ac_cv_struct_tm+set}" = set; then
32544   echo $ECHO_N "(cached) $ECHO_C" >&6
32545 else
32546   cat >conftest.$ac_ext <<_ACEOF
32547 /* confdefs.h.  */
32548 _ACEOF
32549 cat confdefs.h >>conftest.$ac_ext
32550 cat >>conftest.$ac_ext <<_ACEOF
32551 /* end confdefs.h.  */
32552 #include <sys/types.h>
32553 #include <time.h>
32554
32555 int
32556 main ()
32557 {
32558 struct tm *tp; tp->tm_sec;
32559   ;
32560   return 0;
32561 }
32562 _ACEOF
32563 rm -f conftest.$ac_objext
32564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32565   (eval $ac_compile) 2>conftest.er1
32566   ac_status=$?
32567   grep -v '^ *+' conftest.er1 >conftest.err
32568   rm -f conftest.er1
32569   cat conftest.err >&5
32570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32571   (exit $ac_status); } &&
32572          { ac_try='test -z "$ac_c_werror_flag"
32573                          || test ! -s conftest.err'
32574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32575   (eval $ac_try) 2>&5
32576   ac_status=$?
32577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578   (exit $ac_status); }; } &&
32579          { ac_try='test -s conftest.$ac_objext'
32580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32581   (eval $ac_try) 2>&5
32582   ac_status=$?
32583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584   (exit $ac_status); }; }; then
32585   ac_cv_struct_tm=time.h
32586 else
32587   echo "$as_me: failed program was:" >&5
32588 sed 's/^/| /' conftest.$ac_ext >&5
32589
32590 ac_cv_struct_tm=sys/time.h
32591 fi
32592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32593 fi
32594 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32595 echo "${ECHO_T}$ac_cv_struct_tm" >&6
32596 if test $ac_cv_struct_tm = sys/time.h; then
32597
32598 cat >>confdefs.h <<\_ACEOF
32599 #define TM_IN_SYS_TIME 1
32600 _ACEOF
32601
32602 fi
32603
32604 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32605 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
32606 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32607   echo $ECHO_N "(cached) $ECHO_C" >&6
32608 else
32609   cat >conftest.$ac_ext <<_ACEOF
32610 /* confdefs.h.  */
32611 _ACEOF
32612 cat confdefs.h >>conftest.$ac_ext
32613 cat >>conftest.$ac_ext <<_ACEOF
32614 /* end confdefs.h.  */
32615 $ac_includes_default
32616 int
32617 main ()
32618 {
32619 static struct stat ac_aggr;
32620 if (ac_aggr.st_blksize)
32621 return 0;
32622   ;
32623   return 0;
32624 }
32625 _ACEOF
32626 rm -f conftest.$ac_objext
32627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32628   (eval $ac_compile) 2>conftest.er1
32629   ac_status=$?
32630   grep -v '^ *+' conftest.er1 >conftest.err
32631   rm -f conftest.er1
32632   cat conftest.err >&5
32633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634   (exit $ac_status); } &&
32635          { ac_try='test -z "$ac_c_werror_flag"
32636                          || test ! -s conftest.err'
32637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32638   (eval $ac_try) 2>&5
32639   ac_status=$?
32640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641   (exit $ac_status); }; } &&
32642          { ac_try='test -s conftest.$ac_objext'
32643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32644   (eval $ac_try) 2>&5
32645   ac_status=$?
32646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32647   (exit $ac_status); }; }; then
32648   ac_cv_member_struct_stat_st_blksize=yes
32649 else
32650   echo "$as_me: failed program was:" >&5
32651 sed 's/^/| /' conftest.$ac_ext >&5
32652
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 $ac_includes_default
32660 int
32661 main ()
32662 {
32663 static struct stat ac_aggr;
32664 if (sizeof ac_aggr.st_blksize)
32665 return 0;
32666   ;
32667   return 0;
32668 }
32669 _ACEOF
32670 rm -f conftest.$ac_objext
32671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32672   (eval $ac_compile) 2>conftest.er1
32673   ac_status=$?
32674   grep -v '^ *+' conftest.er1 >conftest.err
32675   rm -f conftest.er1
32676   cat conftest.err >&5
32677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32678   (exit $ac_status); } &&
32679          { ac_try='test -z "$ac_c_werror_flag"
32680                          || test ! -s conftest.err'
32681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32682   (eval $ac_try) 2>&5
32683   ac_status=$?
32684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685   (exit $ac_status); }; } &&
32686          { ac_try='test -s conftest.$ac_objext'
32687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32688   (eval $ac_try) 2>&5
32689   ac_status=$?
32690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691   (exit $ac_status); }; }; then
32692   ac_cv_member_struct_stat_st_blksize=yes
32693 else
32694   echo "$as_me: failed program was:" >&5
32695 sed 's/^/| /' conftest.$ac_ext >&5
32696
32697 ac_cv_member_struct_stat_st_blksize=no
32698 fi
32699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32700 fi
32701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32702 fi
32703 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32704 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
32705 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32706
32707 cat >>confdefs.h <<_ACEOF
32708 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32709 _ACEOF
32710
32711
32712 fi
32713
32714 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32715 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
32716 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32717   echo $ECHO_N "(cached) $ECHO_C" >&6
32718 else
32719   cat >conftest.$ac_ext <<_ACEOF
32720 /* confdefs.h.  */
32721 _ACEOF
32722 cat confdefs.h >>conftest.$ac_ext
32723 cat >>conftest.$ac_ext <<_ACEOF
32724 /* end confdefs.h.  */
32725 $ac_includes_default
32726 #include <pwd.h>
32727
32728 int
32729 main ()
32730 {
32731 static struct passwd ac_aggr;
32732 if (ac_aggr.pw_gecos)
32733 return 0;
32734   ;
32735   return 0;
32736 }
32737 _ACEOF
32738 rm -f conftest.$ac_objext
32739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32740   (eval $ac_compile) 2>conftest.er1
32741   ac_status=$?
32742   grep -v '^ *+' conftest.er1 >conftest.err
32743   rm -f conftest.er1
32744   cat conftest.err >&5
32745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746   (exit $ac_status); } &&
32747          { ac_try='test -z "$ac_c_werror_flag"
32748                          || test ! -s conftest.err'
32749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32750   (eval $ac_try) 2>&5
32751   ac_status=$?
32752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753   (exit $ac_status); }; } &&
32754          { ac_try='test -s conftest.$ac_objext'
32755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32756   (eval $ac_try) 2>&5
32757   ac_status=$?
32758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759   (exit $ac_status); }; }; then
32760   ac_cv_member_struct_passwd_pw_gecos=yes
32761 else
32762   echo "$as_me: failed program was:" >&5
32763 sed 's/^/| /' conftest.$ac_ext >&5
32764
32765 cat >conftest.$ac_ext <<_ACEOF
32766 /* confdefs.h.  */
32767 _ACEOF
32768 cat confdefs.h >>conftest.$ac_ext
32769 cat >>conftest.$ac_ext <<_ACEOF
32770 /* end confdefs.h.  */
32771 $ac_includes_default
32772 #include <pwd.h>
32773
32774 int
32775 main ()
32776 {
32777 static struct passwd ac_aggr;
32778 if (sizeof ac_aggr.pw_gecos)
32779 return 0;
32780   ;
32781   return 0;
32782 }
32783 _ACEOF
32784 rm -f conftest.$ac_objext
32785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32786   (eval $ac_compile) 2>conftest.er1
32787   ac_status=$?
32788   grep -v '^ *+' conftest.er1 >conftest.err
32789   rm -f conftest.er1
32790   cat conftest.err >&5
32791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792   (exit $ac_status); } &&
32793          { ac_try='test -z "$ac_c_werror_flag"
32794                          || test ! -s conftest.err'
32795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32796   (eval $ac_try) 2>&5
32797   ac_status=$?
32798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799   (exit $ac_status); }; } &&
32800          { ac_try='test -s conftest.$ac_objext'
32801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32802   (eval $ac_try) 2>&5
32803   ac_status=$?
32804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805   (exit $ac_status); }; }; then
32806   ac_cv_member_struct_passwd_pw_gecos=yes
32807 else
32808   echo "$as_me: failed program was:" >&5
32809 sed 's/^/| /' conftest.$ac_ext >&5
32810
32811 ac_cv_member_struct_passwd_pw_gecos=no
32812 fi
32813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32814 fi
32815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32816 fi
32817 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32818 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
32819 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32820
32821 cat >>confdefs.h <<_ACEOF
32822 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32823 _ACEOF
32824
32825
32826 fi
32827
32828 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32829 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
32830 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32831   echo $ECHO_N "(cached) $ECHO_C" >&6
32832 else
32833   cat >conftest.$ac_ext <<_ACEOF
32834 /* confdefs.h.  */
32835 _ACEOF
32836 cat confdefs.h >>conftest.$ac_ext
32837 cat >>conftest.$ac_ext <<_ACEOF
32838 /* end confdefs.h.  */
32839 $ac_includes_default
32840 #include <pwd.h>
32841
32842 int
32843 main ()
32844 {
32845 static struct passwd ac_aggr;
32846 if (ac_aggr.pw_passwd)
32847 return 0;
32848   ;
32849   return 0;
32850 }
32851 _ACEOF
32852 rm -f conftest.$ac_objext
32853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32854   (eval $ac_compile) 2>conftest.er1
32855   ac_status=$?
32856   grep -v '^ *+' conftest.er1 >conftest.err
32857   rm -f conftest.er1
32858   cat conftest.err >&5
32859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32860   (exit $ac_status); } &&
32861          { ac_try='test -z "$ac_c_werror_flag"
32862                          || test ! -s conftest.err'
32863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32864   (eval $ac_try) 2>&5
32865   ac_status=$?
32866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867   (exit $ac_status); }; } &&
32868          { ac_try='test -s conftest.$ac_objext'
32869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32870   (eval $ac_try) 2>&5
32871   ac_status=$?
32872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873   (exit $ac_status); }; }; then
32874   ac_cv_member_struct_passwd_pw_passwd=yes
32875 else
32876   echo "$as_me: failed program was:" >&5
32877 sed 's/^/| /' conftest.$ac_ext >&5
32878
32879 cat >conftest.$ac_ext <<_ACEOF
32880 /* confdefs.h.  */
32881 _ACEOF
32882 cat confdefs.h >>conftest.$ac_ext
32883 cat >>conftest.$ac_ext <<_ACEOF
32884 /* end confdefs.h.  */
32885 $ac_includes_default
32886 #include <pwd.h>
32887
32888 int
32889 main ()
32890 {
32891 static struct passwd ac_aggr;
32892 if (sizeof ac_aggr.pw_passwd)
32893 return 0;
32894   ;
32895   return 0;
32896 }
32897 _ACEOF
32898 rm -f conftest.$ac_objext
32899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32900   (eval $ac_compile) 2>conftest.er1
32901   ac_status=$?
32902   grep -v '^ *+' conftest.er1 >conftest.err
32903   rm -f conftest.er1
32904   cat conftest.err >&5
32905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906   (exit $ac_status); } &&
32907          { ac_try='test -z "$ac_c_werror_flag"
32908                          || test ! -s conftest.err'
32909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32910   (eval $ac_try) 2>&5
32911   ac_status=$?
32912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913   (exit $ac_status); }; } &&
32914          { ac_try='test -s conftest.$ac_objext'
32915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32916   (eval $ac_try) 2>&5
32917   ac_status=$?
32918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919   (exit $ac_status); }; }; then
32920   ac_cv_member_struct_passwd_pw_passwd=yes
32921 else
32922   echo "$as_me: failed program was:" >&5
32923 sed 's/^/| /' conftest.$ac_ext >&5
32924
32925 ac_cv_member_struct_passwd_pw_passwd=no
32926 fi
32927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32928 fi
32929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32930 fi
32931 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32932 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
32933 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32934
32935 cat >>confdefs.h <<_ACEOF
32936 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32937 _ACEOF
32938
32939
32940 fi
32941
32942
32943 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32944 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
32945 if test "${ol_cv_c_upper_lower+set}" = set; then
32946   echo $ECHO_N "(cached) $ECHO_C" >&6
32947 else
32948
32949         if test "$cross_compiling" = yes; then
32950   ol_cv_c_upper_lower=safe
32951 else
32952   cat >conftest.$ac_ext <<_ACEOF
32953 /* confdefs.h.  */
32954 _ACEOF
32955 cat confdefs.h >>conftest.$ac_ext
32956 cat >>conftest.$ac_ext <<_ACEOF
32957 /* end confdefs.h.  */
32958
32959 #include <ctype.h>
32960 main()
32961 {
32962         if ('C' == toupper('C'))
32963                 exit(0);
32964         else
32965                 exit(1);
32966 }
32967 _ACEOF
32968 rm -f conftest$ac_exeext
32969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32970   (eval $ac_link) 2>&5
32971   ac_status=$?
32972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32975   (eval $ac_try) 2>&5
32976   ac_status=$?
32977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978   (exit $ac_status); }; }; then
32979   ol_cv_c_upper_lower=no
32980 else
32981   echo "$as_me: program exited with status $ac_status" >&5
32982 echo "$as_me: failed program was:" >&5
32983 sed 's/^/| /' conftest.$ac_ext >&5
32984
32985 ( exit $ac_status )
32986 ol_cv_c_upper_lower=yes
32987 fi
32988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32989 fi
32990 fi
32991 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32992 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
32993 if test $ol_cv_c_upper_lower != no ; then
32994
32995 cat >>confdefs.h <<\_ACEOF
32996 #define C_UPPER_LOWER 1
32997 _ACEOF
32998
32999 fi
33000
33001 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33002 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
33003 if test "${ac_cv_c_const+set}" = set; then
33004   echo $ECHO_N "(cached) $ECHO_C" >&6
33005 else
33006   cat >conftest.$ac_ext <<_ACEOF
33007 /* confdefs.h.  */
33008 _ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h.  */
33012
33013 int
33014 main ()
33015 {
33016 /* FIXME: Include the comments suggested by Paul. */
33017 #ifndef __cplusplus
33018   /* Ultrix mips cc rejects this.  */
33019   typedef int charset[2];
33020   const charset x;
33021   /* SunOS 4.1.1 cc rejects this.  */
33022   char const *const *ccp;
33023   char **p;
33024   /* NEC SVR4.0.2 mips cc rejects this.  */
33025   struct point {int x, y;};
33026   static struct point const zero = {0,0};
33027   /* AIX XL C 1.02.0.0 rejects this.
33028      It does not let you subtract one const X* pointer from another in
33029      an arm of an if-expression whose if-part is not a constant
33030      expression */
33031   const char *g = "string";
33032   ccp = &g + (g ? g-g : 0);
33033   /* HPUX 7.0 cc rejects these. */
33034   ++ccp;
33035   p = (char**) ccp;
33036   ccp = (char const *const *) p;
33037   { /* SCO 3.2v4 cc rejects this.  */
33038     char *t;
33039     char const *s = 0 ? (char *) 0 : (char const *) 0;
33040
33041     *t++ = 0;
33042   }
33043   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33044     int x[] = {25, 17};
33045     const int *foo = &x[0];
33046     ++foo;
33047   }
33048   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33049     typedef const int *iptr;
33050     iptr p = 0;
33051     ++p;
33052   }
33053   { /* AIX XL C 1.02.0.0 rejects this saying
33054        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33055     struct s { int j; const int *ap[3]; };
33056     struct s *b; b->j = 5;
33057   }
33058   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33059     const int foo = 10;
33060   }
33061 #endif
33062
33063   ;
33064   return 0;
33065 }
33066 _ACEOF
33067 rm -f conftest.$ac_objext
33068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33069   (eval $ac_compile) 2>conftest.er1
33070   ac_status=$?
33071   grep -v '^ *+' conftest.er1 >conftest.err
33072   rm -f conftest.er1
33073   cat conftest.err >&5
33074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075   (exit $ac_status); } &&
33076          { ac_try='test -z "$ac_c_werror_flag"
33077                          || test ! -s conftest.err'
33078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33079   (eval $ac_try) 2>&5
33080   ac_status=$?
33081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33082   (exit $ac_status); }; } &&
33083          { ac_try='test -s conftest.$ac_objext'
33084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33085   (eval $ac_try) 2>&5
33086   ac_status=$?
33087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088   (exit $ac_status); }; }; then
33089   ac_cv_c_const=yes
33090 else
33091   echo "$as_me: failed program was:" >&5
33092 sed 's/^/| /' conftest.$ac_ext >&5
33093
33094 ac_cv_c_const=no
33095 fi
33096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33097 fi
33098 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33099 echo "${ECHO_T}$ac_cv_c_const" >&6
33100 if test $ac_cv_c_const = no; then
33101
33102 cat >>confdefs.h <<\_ACEOF
33103 #define const
33104 _ACEOF
33105
33106 fi
33107
33108 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33109 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
33110 if test "${ol_cv_c_volatile+set}" = set; then
33111   echo $ECHO_N "(cached) $ECHO_C" >&6
33112 else
33113   cat >conftest.$ac_ext <<_ACEOF
33114 /* confdefs.h.  */
33115 _ACEOF
33116 cat confdefs.h >>conftest.$ac_ext
33117 cat >>conftest.$ac_ext <<_ACEOF
33118 /* end confdefs.h.  */
33119 int x, y, z;
33120 int
33121 main ()
33122 {
33123 volatile int a; int * volatile b = x ? &y : &z;
33124       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33125       *b = 0;
33126   ;
33127   return 0;
33128 }
33129 _ACEOF
33130 rm -f conftest.$ac_objext
33131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33132   (eval $ac_compile) 2>conftest.er1
33133   ac_status=$?
33134   grep -v '^ *+' conftest.er1 >conftest.err
33135   rm -f conftest.er1
33136   cat conftest.err >&5
33137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138   (exit $ac_status); } &&
33139          { ac_try='test -z "$ac_c_werror_flag"
33140                          || test ! -s conftest.err'
33141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33142   (eval $ac_try) 2>&5
33143   ac_status=$?
33144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145   (exit $ac_status); }; } &&
33146          { ac_try='test -s conftest.$ac_objext'
33147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33148   (eval $ac_try) 2>&5
33149   ac_status=$?
33150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151   (exit $ac_status); }; }; then
33152   ol_cv_c_volatile=yes
33153 else
33154   echo "$as_me: failed program was:" >&5
33155 sed 's/^/| /' conftest.$ac_ext >&5
33156
33157 ol_cv_c_volatile=no
33158 fi
33159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33160 fi
33161 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33162 echo "${ECHO_T}$ol_cv_c_volatile" >&6
33163   if test $ol_cv_c_volatile = yes; then
33164     :
33165   else
33166
33167 cat >>confdefs.h <<\_ACEOF
33168 #define volatile
33169 _ACEOF
33170
33171   fi
33172
33173
33174 if test $cross_compiling = yes ; then
33175         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33176 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33177
33178 cat >>confdefs.h <<\_ACEOF
33179 #define CROSS_COMPILING 1
33180 _ACEOF
33181
33182 else
33183         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33184 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
33185 if test "${ac_cv_c_bigendian+set}" = set; then
33186   echo $ECHO_N "(cached) $ECHO_C" >&6
33187 else
33188   # See if sys/param.h defines the BYTE_ORDER macro.
33189 cat >conftest.$ac_ext <<_ACEOF
33190 /* confdefs.h.  */
33191 _ACEOF
33192 cat confdefs.h >>conftest.$ac_ext
33193 cat >>conftest.$ac_ext <<_ACEOF
33194 /* end confdefs.h.  */
33195 #include <sys/types.h>
33196 #include <sys/param.h>
33197
33198 int
33199 main ()
33200 {
33201 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
33202  bogus endian macros
33203 #endif
33204
33205   ;
33206   return 0;
33207 }
33208 _ACEOF
33209 rm -f conftest.$ac_objext
33210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33211   (eval $ac_compile) 2>conftest.er1
33212   ac_status=$?
33213   grep -v '^ *+' conftest.er1 >conftest.err
33214   rm -f conftest.er1
33215   cat conftest.err >&5
33216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217   (exit $ac_status); } &&
33218          { ac_try='test -z "$ac_c_werror_flag"
33219                          || test ! -s conftest.err'
33220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33221   (eval $ac_try) 2>&5
33222   ac_status=$?
33223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33224   (exit $ac_status); }; } &&
33225          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
33231   # It does; now see whether it defined to BIG_ENDIAN or not.
33232 cat >conftest.$ac_ext <<_ACEOF
33233 /* confdefs.h.  */
33234 _ACEOF
33235 cat confdefs.h >>conftest.$ac_ext
33236 cat >>conftest.$ac_ext <<_ACEOF
33237 /* end confdefs.h.  */
33238 #include <sys/types.h>
33239 #include <sys/param.h>
33240
33241 int
33242 main ()
33243 {
33244 #if BYTE_ORDER != BIG_ENDIAN
33245  not big endian
33246 #endif
33247
33248   ;
33249   return 0;
33250 }
33251 _ACEOF
33252 rm -f conftest.$ac_objext
33253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33254   (eval $ac_compile) 2>conftest.er1
33255   ac_status=$?
33256   grep -v '^ *+' conftest.er1 >conftest.err
33257   rm -f conftest.er1
33258   cat conftest.err >&5
33259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260   (exit $ac_status); } &&
33261          { ac_try='test -z "$ac_c_werror_flag"
33262                          || test ! -s conftest.err'
33263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33264   (eval $ac_try) 2>&5
33265   ac_status=$?
33266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267   (exit $ac_status); }; } &&
33268          { ac_try='test -s conftest.$ac_objext'
33269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33270   (eval $ac_try) 2>&5
33271   ac_status=$?
33272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273   (exit $ac_status); }; }; then
33274   ac_cv_c_bigendian=yes
33275 else
33276   echo "$as_me: failed program was:" >&5
33277 sed 's/^/| /' conftest.$ac_ext >&5
33278
33279 ac_cv_c_bigendian=no
33280 fi
33281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33282 else
33283   echo "$as_me: failed program was:" >&5
33284 sed 's/^/| /' conftest.$ac_ext >&5
33285
33286 # It does not; compile a test program.
33287 if test "$cross_compiling" = yes; then
33288   # try to guess the endianness by grepping values into an object file
33289   ac_cv_c_bigendian=unknown
33290   cat >conftest.$ac_ext <<_ACEOF
33291 /* confdefs.h.  */
33292 _ACEOF
33293 cat confdefs.h >>conftest.$ac_ext
33294 cat >>conftest.$ac_ext <<_ACEOF
33295 /* end confdefs.h.  */
33296 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33297 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33298 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33299 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33300 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33301 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33302 int
33303 main ()
33304 {
33305  _ascii (); _ebcdic ();
33306   ;
33307   return 0;
33308 }
33309 _ACEOF
33310 rm -f conftest.$ac_objext
33311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33312   (eval $ac_compile) 2>conftest.er1
33313   ac_status=$?
33314   grep -v '^ *+' conftest.er1 >conftest.err
33315   rm -f conftest.er1
33316   cat conftest.err >&5
33317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318   (exit $ac_status); } &&
33319          { ac_try='test -z "$ac_c_werror_flag"
33320                          || test ! -s conftest.err'
33321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33322   (eval $ac_try) 2>&5
33323   ac_status=$?
33324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325   (exit $ac_status); }; } &&
33326          { ac_try='test -s conftest.$ac_objext'
33327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33328   (eval $ac_try) 2>&5
33329   ac_status=$?
33330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331   (exit $ac_status); }; }; then
33332   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33333   ac_cv_c_bigendian=yes
33334 fi
33335 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33336   if test "$ac_cv_c_bigendian" = unknown; then
33337     ac_cv_c_bigendian=no
33338   else
33339     # finding both strings is unlikely to happen, but who knows?
33340     ac_cv_c_bigendian=unknown
33341   fi
33342 fi
33343 else
33344   echo "$as_me: failed program was:" >&5
33345 sed 's/^/| /' conftest.$ac_ext >&5
33346
33347 fi
33348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33349 else
33350   cat >conftest.$ac_ext <<_ACEOF
33351 /* confdefs.h.  */
33352 _ACEOF
33353 cat confdefs.h >>conftest.$ac_ext
33354 cat >>conftest.$ac_ext <<_ACEOF
33355 /* end confdefs.h.  */
33356 int
33357 main ()
33358 {
33359   /* Are we little or big endian?  From Harbison&Steele.  */
33360   union
33361   {
33362     long l;
33363     char c[sizeof (long)];
33364   } u;
33365   u.l = 1;
33366   exit (u.c[sizeof (long) - 1] == 1);
33367 }
33368 _ACEOF
33369 rm -f conftest$ac_exeext
33370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33371   (eval $ac_link) 2>&5
33372   ac_status=$?
33373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33374   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33376   (eval $ac_try) 2>&5
33377   ac_status=$?
33378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379   (exit $ac_status); }; }; then
33380   ac_cv_c_bigendian=no
33381 else
33382   echo "$as_me: program exited with status $ac_status" >&5
33383 echo "$as_me: failed program was:" >&5
33384 sed 's/^/| /' conftest.$ac_ext >&5
33385
33386 ( exit $ac_status )
33387 ac_cv_c_bigendian=yes
33388 fi
33389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33390 fi
33391 fi
33392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33393 fi
33394 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33395 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
33396 case $ac_cv_c_bigendian in
33397   yes)
33398
33399 cat >>confdefs.h <<\_ACEOF
33400 #define WORDS_BIGENDIAN 1
33401 _ACEOF
33402  ;;
33403   no)
33404      ;;
33405   *)
33406     { { echo "$as_me:$LINENO: error: unknown endianness
33407 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33408 echo "$as_me: error: unknown endianness
33409 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33410    { (exit 1); exit 1; }; } ;;
33411 esac
33412
33413 fi
33414
33415 echo "$as_me:$LINENO: checking for short" >&5
33416 echo $ECHO_N "checking for short... $ECHO_C" >&6
33417 if test "${ac_cv_type_short+set}" = set; then
33418   echo $ECHO_N "(cached) $ECHO_C" >&6
33419 else
33420   cat >conftest.$ac_ext <<_ACEOF
33421 /* confdefs.h.  */
33422 _ACEOF
33423 cat confdefs.h >>conftest.$ac_ext
33424 cat >>conftest.$ac_ext <<_ACEOF
33425 /* end confdefs.h.  */
33426 $ac_includes_default
33427 int
33428 main ()
33429 {
33430 if ((short *) 0)
33431   return 0;
33432 if (sizeof (short))
33433   return 0;
33434   ;
33435   return 0;
33436 }
33437 _ACEOF
33438 rm -f conftest.$ac_objext
33439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33440   (eval $ac_compile) 2>conftest.er1
33441   ac_status=$?
33442   grep -v '^ *+' conftest.er1 >conftest.err
33443   rm -f conftest.er1
33444   cat conftest.err >&5
33445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446   (exit $ac_status); } &&
33447          { ac_try='test -z "$ac_c_werror_flag"
33448                          || test ! -s conftest.err'
33449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33450   (eval $ac_try) 2>&5
33451   ac_status=$?
33452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453   (exit $ac_status); }; } &&
33454          { ac_try='test -s conftest.$ac_objext'
33455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33456   (eval $ac_try) 2>&5
33457   ac_status=$?
33458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459   (exit $ac_status); }; }; then
33460   ac_cv_type_short=yes
33461 else
33462   echo "$as_me: failed program was:" >&5
33463 sed 's/^/| /' conftest.$ac_ext >&5
33464
33465 ac_cv_type_short=no
33466 fi
33467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33468 fi
33469 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33470 echo "${ECHO_T}$ac_cv_type_short" >&6
33471
33472 echo "$as_me:$LINENO: checking size of short" >&5
33473 echo $ECHO_N "checking size of short... $ECHO_C" >&6
33474 if test "${ac_cv_sizeof_short+set}" = set; then
33475   echo $ECHO_N "(cached) $ECHO_C" >&6
33476 else
33477   if test "$ac_cv_type_short" = yes; then
33478   # The cast to unsigned long works around a bug in the HP C Compiler
33479   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33480   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33481   # This bug is HP SR number 8606223364.
33482   if test "$cross_compiling" = yes; then
33483   # Depending upon the size, compute the lo and hi bounds.
33484 cat >conftest.$ac_ext <<_ACEOF
33485 /* confdefs.h.  */
33486 _ACEOF
33487 cat confdefs.h >>conftest.$ac_ext
33488 cat >>conftest.$ac_ext <<_ACEOF
33489 /* end confdefs.h.  */
33490 $ac_includes_default
33491 int
33492 main ()
33493 {
33494 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
33495 test_array [0] = 0
33496
33497   ;
33498   return 0;
33499 }
33500 _ACEOF
33501 rm -f conftest.$ac_objext
33502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33503   (eval $ac_compile) 2>conftest.er1
33504   ac_status=$?
33505   grep -v '^ *+' conftest.er1 >conftest.err
33506   rm -f conftest.er1
33507   cat conftest.err >&5
33508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33509   (exit $ac_status); } &&
33510          { ac_try='test -z "$ac_c_werror_flag"
33511                          || test ! -s conftest.err'
33512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33513   (eval $ac_try) 2>&5
33514   ac_status=$?
33515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33516   (exit $ac_status); }; } &&
33517          { ac_try='test -s conftest.$ac_objext'
33518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33519   (eval $ac_try) 2>&5
33520   ac_status=$?
33521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522   (exit $ac_status); }; }; then
33523   ac_lo=0 ac_mid=0
33524   while :; do
33525     cat >conftest.$ac_ext <<_ACEOF
33526 /* confdefs.h.  */
33527 _ACEOF
33528 cat confdefs.h >>conftest.$ac_ext
33529 cat >>conftest.$ac_ext <<_ACEOF
33530 /* end confdefs.h.  */
33531 $ac_includes_default
33532 int
33533 main ()
33534 {
33535 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33536 test_array [0] = 0
33537
33538   ;
33539   return 0;
33540 }
33541 _ACEOF
33542 rm -f conftest.$ac_objext
33543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33544   (eval $ac_compile) 2>conftest.er1
33545   ac_status=$?
33546   grep -v '^ *+' conftest.er1 >conftest.err
33547   rm -f conftest.er1
33548   cat conftest.err >&5
33549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33550   (exit $ac_status); } &&
33551          { ac_try='test -z "$ac_c_werror_flag"
33552                          || test ! -s conftest.err'
33553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33554   (eval $ac_try) 2>&5
33555   ac_status=$?
33556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33557   (exit $ac_status); }; } &&
33558          { ac_try='test -s conftest.$ac_objext'
33559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33560   (eval $ac_try) 2>&5
33561   ac_status=$?
33562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33563   (exit $ac_status); }; }; then
33564   ac_hi=$ac_mid; break
33565 else
33566   echo "$as_me: failed program was:" >&5
33567 sed 's/^/| /' conftest.$ac_ext >&5
33568
33569 ac_lo=`expr $ac_mid + 1`
33570                     if test $ac_lo -le $ac_mid; then
33571                       ac_lo= ac_hi=
33572                       break
33573                     fi
33574                     ac_mid=`expr 2 '*' $ac_mid + 1`
33575 fi
33576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33577   done
33578 else
33579   echo "$as_me: failed program was:" >&5
33580 sed 's/^/| /' conftest.$ac_ext >&5
33581
33582 cat >conftest.$ac_ext <<_ACEOF
33583 /* confdefs.h.  */
33584 _ACEOF
33585 cat confdefs.h >>conftest.$ac_ext
33586 cat >>conftest.$ac_ext <<_ACEOF
33587 /* end confdefs.h.  */
33588 $ac_includes_default
33589 int
33590 main ()
33591 {
33592 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
33593 test_array [0] = 0
33594
33595   ;
33596   return 0;
33597 }
33598 _ACEOF
33599 rm -f conftest.$ac_objext
33600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33601   (eval $ac_compile) 2>conftest.er1
33602   ac_status=$?
33603   grep -v '^ *+' conftest.er1 >conftest.err
33604   rm -f conftest.er1
33605   cat conftest.err >&5
33606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607   (exit $ac_status); } &&
33608          { ac_try='test -z "$ac_c_werror_flag"
33609                          || test ! -s conftest.err'
33610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33611   (eval $ac_try) 2>&5
33612   ac_status=$?
33613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614   (exit $ac_status); }; } &&
33615          { ac_try='test -s conftest.$ac_objext'
33616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33617   (eval $ac_try) 2>&5
33618   ac_status=$?
33619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620   (exit $ac_status); }; }; then
33621   ac_hi=-1 ac_mid=-1
33622   while :; do
33623     cat >conftest.$ac_ext <<_ACEOF
33624 /* confdefs.h.  */
33625 _ACEOF
33626 cat confdefs.h >>conftest.$ac_ext
33627 cat >>conftest.$ac_ext <<_ACEOF
33628 /* end confdefs.h.  */
33629 $ac_includes_default
33630 int
33631 main ()
33632 {
33633 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
33634 test_array [0] = 0
33635
33636   ;
33637   return 0;
33638 }
33639 _ACEOF
33640 rm -f conftest.$ac_objext
33641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33642   (eval $ac_compile) 2>conftest.er1
33643   ac_status=$?
33644   grep -v '^ *+' conftest.er1 >conftest.err
33645   rm -f conftest.er1
33646   cat conftest.err >&5
33647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648   (exit $ac_status); } &&
33649          { ac_try='test -z "$ac_c_werror_flag"
33650                          || test ! -s conftest.err'
33651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33652   (eval $ac_try) 2>&5
33653   ac_status=$?
33654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655   (exit $ac_status); }; } &&
33656          { ac_try='test -s conftest.$ac_objext'
33657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33658   (eval $ac_try) 2>&5
33659   ac_status=$?
33660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661   (exit $ac_status); }; }; then
33662   ac_lo=$ac_mid; break
33663 else
33664   echo "$as_me: failed program was:" >&5
33665 sed 's/^/| /' conftest.$ac_ext >&5
33666
33667 ac_hi=`expr '(' $ac_mid ')' - 1`
33668                        if test $ac_mid -le $ac_hi; then
33669                          ac_lo= ac_hi=
33670                          break
33671                        fi
33672                        ac_mid=`expr 2 '*' $ac_mid`
33673 fi
33674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33675   done
33676 else
33677   echo "$as_me: failed program was:" >&5
33678 sed 's/^/| /' conftest.$ac_ext >&5
33679
33680 ac_lo= ac_hi=
33681 fi
33682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33683 fi
33684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33685 # Binary search between lo and hi bounds.
33686 while test "x$ac_lo" != "x$ac_hi"; do
33687   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33688   cat >conftest.$ac_ext <<_ACEOF
33689 /* confdefs.h.  */
33690 _ACEOF
33691 cat confdefs.h >>conftest.$ac_ext
33692 cat >>conftest.$ac_ext <<_ACEOF
33693 /* end confdefs.h.  */
33694 $ac_includes_default
33695 int
33696 main ()
33697 {
33698 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33699 test_array [0] = 0
33700
33701   ;
33702   return 0;
33703 }
33704 _ACEOF
33705 rm -f conftest.$ac_objext
33706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33707   (eval $ac_compile) 2>conftest.er1
33708   ac_status=$?
33709   grep -v '^ *+' conftest.er1 >conftest.err
33710   rm -f conftest.er1
33711   cat conftest.err >&5
33712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713   (exit $ac_status); } &&
33714          { ac_try='test -z "$ac_c_werror_flag"
33715                          || test ! -s conftest.err'
33716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33717   (eval $ac_try) 2>&5
33718   ac_status=$?
33719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720   (exit $ac_status); }; } &&
33721          { ac_try='test -s conftest.$ac_objext'
33722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33723   (eval $ac_try) 2>&5
33724   ac_status=$?
33725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726   (exit $ac_status); }; }; then
33727   ac_hi=$ac_mid
33728 else
33729   echo "$as_me: failed program was:" >&5
33730 sed 's/^/| /' conftest.$ac_ext >&5
33731
33732 ac_lo=`expr '(' $ac_mid ')' + 1`
33733 fi
33734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33735 done
33736 case $ac_lo in
33737 ?*) ac_cv_sizeof_short=$ac_lo;;
33738 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
33739 See \`config.log' for more details." >&5
33740 echo "$as_me: error: cannot compute sizeof (short), 77
33741 See \`config.log' for more details." >&2;}
33742    { (exit 1); exit 1; }; } ;;
33743 esac
33744 else
33745   if test "$cross_compiling" = yes; then
33746   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33747 See \`config.log' for more details." >&5
33748 echo "$as_me: error: cannot run test program while cross compiling
33749 See \`config.log' for more details." >&2;}
33750    { (exit 1); exit 1; }; }
33751 else
33752   cat >conftest.$ac_ext <<_ACEOF
33753 /* confdefs.h.  */
33754 _ACEOF
33755 cat confdefs.h >>conftest.$ac_ext
33756 cat >>conftest.$ac_ext <<_ACEOF
33757 /* end confdefs.h.  */
33758 $ac_includes_default
33759 long longval () { return (long) (sizeof (short)); }
33760 unsigned long ulongval () { return (long) (sizeof (short)); }
33761 #include <stdio.h>
33762 #include <stdlib.h>
33763 int
33764 main ()
33765 {
33766
33767   FILE *f = fopen ("conftest.val", "w");
33768   if (! f)
33769     exit (1);
33770   if (((long) (sizeof (short))) < 0)
33771     {
33772       long i = longval ();
33773       if (i != ((long) (sizeof (short))))
33774         exit (1);
33775       fprintf (f, "%ld\n", i);
33776     }
33777   else
33778     {
33779       unsigned long i = ulongval ();
33780       if (i != ((long) (sizeof (short))))
33781         exit (1);
33782       fprintf (f, "%lu\n", i);
33783     }
33784   exit (ferror (f) || fclose (f) != 0);
33785
33786   ;
33787   return 0;
33788 }
33789 _ACEOF
33790 rm -f conftest$ac_exeext
33791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33792   (eval $ac_link) 2>&5
33793   ac_status=$?
33794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33797   (eval $ac_try) 2>&5
33798   ac_status=$?
33799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800   (exit $ac_status); }; }; then
33801   ac_cv_sizeof_short=`cat conftest.val`
33802 else
33803   echo "$as_me: program exited with status $ac_status" >&5
33804 echo "$as_me: failed program was:" >&5
33805 sed 's/^/| /' conftest.$ac_ext >&5
33806
33807 ( exit $ac_status )
33808 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
33809 See \`config.log' for more details." >&5
33810 echo "$as_me: error: cannot compute sizeof (short), 77
33811 See \`config.log' for more details." >&2;}
33812    { (exit 1); exit 1; }; }
33813 fi
33814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33815 fi
33816 fi
33817 rm -f conftest.val
33818 else
33819   ac_cv_sizeof_short=0
33820 fi
33821 fi
33822 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33823 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
33824 cat >>confdefs.h <<_ACEOF
33825 #define SIZEOF_SHORT $ac_cv_sizeof_short
33826 _ACEOF
33827
33828
33829 echo "$as_me:$LINENO: checking for int" >&5
33830 echo $ECHO_N "checking for int... $ECHO_C" >&6
33831 if test "${ac_cv_type_int+set}" = set; then
33832   echo $ECHO_N "(cached) $ECHO_C" >&6
33833 else
33834   cat >conftest.$ac_ext <<_ACEOF
33835 /* confdefs.h.  */
33836 _ACEOF
33837 cat confdefs.h >>conftest.$ac_ext
33838 cat >>conftest.$ac_ext <<_ACEOF
33839 /* end confdefs.h.  */
33840 $ac_includes_default
33841 int
33842 main ()
33843 {
33844 if ((int *) 0)
33845   return 0;
33846 if (sizeof (int))
33847   return 0;
33848   ;
33849   return 0;
33850 }
33851 _ACEOF
33852 rm -f conftest.$ac_objext
33853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33854   (eval $ac_compile) 2>conftest.er1
33855   ac_status=$?
33856   grep -v '^ *+' conftest.er1 >conftest.err
33857   rm -f conftest.er1
33858   cat conftest.err >&5
33859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860   (exit $ac_status); } &&
33861          { ac_try='test -z "$ac_c_werror_flag"
33862                          || test ! -s conftest.err'
33863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33864   (eval $ac_try) 2>&5
33865   ac_status=$?
33866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33867   (exit $ac_status); }; } &&
33868          { ac_try='test -s conftest.$ac_objext'
33869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33870   (eval $ac_try) 2>&5
33871   ac_status=$?
33872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33873   (exit $ac_status); }; }; then
33874   ac_cv_type_int=yes
33875 else
33876   echo "$as_me: failed program was:" >&5
33877 sed 's/^/| /' conftest.$ac_ext >&5
33878
33879 ac_cv_type_int=no
33880 fi
33881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33882 fi
33883 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33884 echo "${ECHO_T}$ac_cv_type_int" >&6
33885
33886 echo "$as_me:$LINENO: checking size of int" >&5
33887 echo $ECHO_N "checking size of int... $ECHO_C" >&6
33888 if test "${ac_cv_sizeof_int+set}" = set; then
33889   echo $ECHO_N "(cached) $ECHO_C" >&6
33890 else
33891   if test "$ac_cv_type_int" = yes; then
33892   # The cast to unsigned long works around a bug in the HP C Compiler
33893   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33894   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33895   # This bug is HP SR number 8606223364.
33896   if test "$cross_compiling" = yes; then
33897   # Depending upon the size, compute the lo and hi bounds.
33898 cat >conftest.$ac_ext <<_ACEOF
33899 /* confdefs.h.  */
33900 _ACEOF
33901 cat confdefs.h >>conftest.$ac_ext
33902 cat >>conftest.$ac_ext <<_ACEOF
33903 /* end confdefs.h.  */
33904 $ac_includes_default
33905 int
33906 main ()
33907 {
33908 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
33909 test_array [0] = 0
33910
33911   ;
33912   return 0;
33913 }
33914 _ACEOF
33915 rm -f conftest.$ac_objext
33916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33917   (eval $ac_compile) 2>conftest.er1
33918   ac_status=$?
33919   grep -v '^ *+' conftest.er1 >conftest.err
33920   rm -f conftest.er1
33921   cat conftest.err >&5
33922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923   (exit $ac_status); } &&
33924          { ac_try='test -z "$ac_c_werror_flag"
33925                          || test ! -s conftest.err'
33926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33927   (eval $ac_try) 2>&5
33928   ac_status=$?
33929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930   (exit $ac_status); }; } &&
33931          { ac_try='test -s conftest.$ac_objext'
33932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33933   (eval $ac_try) 2>&5
33934   ac_status=$?
33935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936   (exit $ac_status); }; }; then
33937   ac_lo=0 ac_mid=0
33938   while :; do
33939     cat >conftest.$ac_ext <<_ACEOF
33940 /* confdefs.h.  */
33941 _ACEOF
33942 cat confdefs.h >>conftest.$ac_ext
33943 cat >>conftest.$ac_ext <<_ACEOF
33944 /* end confdefs.h.  */
33945 $ac_includes_default
33946 int
33947 main ()
33948 {
33949 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
33950 test_array [0] = 0
33951
33952   ;
33953   return 0;
33954 }
33955 _ACEOF
33956 rm -f conftest.$ac_objext
33957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33958   (eval $ac_compile) 2>conftest.er1
33959   ac_status=$?
33960   grep -v '^ *+' conftest.er1 >conftest.err
33961   rm -f conftest.er1
33962   cat conftest.err >&5
33963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964   (exit $ac_status); } &&
33965          { ac_try='test -z "$ac_c_werror_flag"
33966                          || test ! -s conftest.err'
33967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33968   (eval $ac_try) 2>&5
33969   ac_status=$?
33970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971   (exit $ac_status); }; } &&
33972          { ac_try='test -s conftest.$ac_objext'
33973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33974   (eval $ac_try) 2>&5
33975   ac_status=$?
33976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33977   (exit $ac_status); }; }; then
33978   ac_hi=$ac_mid; break
33979 else
33980   echo "$as_me: failed program was:" >&5
33981 sed 's/^/| /' conftest.$ac_ext >&5
33982
33983 ac_lo=`expr $ac_mid + 1`
33984                     if test $ac_lo -le $ac_mid; then
33985                       ac_lo= ac_hi=
33986                       break
33987                     fi
33988                     ac_mid=`expr 2 '*' $ac_mid + 1`
33989 fi
33990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33991   done
33992 else
33993   echo "$as_me: failed program was:" >&5
33994 sed 's/^/| /' conftest.$ac_ext >&5
33995
33996 cat >conftest.$ac_ext <<_ACEOF
33997 /* confdefs.h.  */
33998 _ACEOF
33999 cat confdefs.h >>conftest.$ac_ext
34000 cat >>conftest.$ac_ext <<_ACEOF
34001 /* end confdefs.h.  */
34002 $ac_includes_default
34003 int
34004 main ()
34005 {
34006 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
34007 test_array [0] = 0
34008
34009   ;
34010   return 0;
34011 }
34012 _ACEOF
34013 rm -f conftest.$ac_objext
34014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34015   (eval $ac_compile) 2>conftest.er1
34016   ac_status=$?
34017   grep -v '^ *+' conftest.er1 >conftest.err
34018   rm -f conftest.er1
34019   cat conftest.err >&5
34020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021   (exit $ac_status); } &&
34022          { ac_try='test -z "$ac_c_werror_flag"
34023                          || test ! -s conftest.err'
34024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34025   (eval $ac_try) 2>&5
34026   ac_status=$?
34027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34028   (exit $ac_status); }; } &&
34029          { ac_try='test -s conftest.$ac_objext'
34030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34031   (eval $ac_try) 2>&5
34032   ac_status=$?
34033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034   (exit $ac_status); }; }; then
34035   ac_hi=-1 ac_mid=-1
34036   while :; do
34037     cat >conftest.$ac_ext <<_ACEOF
34038 /* confdefs.h.  */
34039 _ACEOF
34040 cat confdefs.h >>conftest.$ac_ext
34041 cat >>conftest.$ac_ext <<_ACEOF
34042 /* end confdefs.h.  */
34043 $ac_includes_default
34044 int
34045 main ()
34046 {
34047 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
34048 test_array [0] = 0
34049
34050   ;
34051   return 0;
34052 }
34053 _ACEOF
34054 rm -f conftest.$ac_objext
34055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34056   (eval $ac_compile) 2>conftest.er1
34057   ac_status=$?
34058   grep -v '^ *+' conftest.er1 >conftest.err
34059   rm -f conftest.er1
34060   cat conftest.err >&5
34061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34062   (exit $ac_status); } &&
34063          { ac_try='test -z "$ac_c_werror_flag"
34064                          || test ! -s conftest.err'
34065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34066   (eval $ac_try) 2>&5
34067   ac_status=$?
34068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069   (exit $ac_status); }; } &&
34070          { ac_try='test -s conftest.$ac_objext'
34071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34072   (eval $ac_try) 2>&5
34073   ac_status=$?
34074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075   (exit $ac_status); }; }; then
34076   ac_lo=$ac_mid; break
34077 else
34078   echo "$as_me: failed program was:" >&5
34079 sed 's/^/| /' conftest.$ac_ext >&5
34080
34081 ac_hi=`expr '(' $ac_mid ')' - 1`
34082                        if test $ac_mid -le $ac_hi; then
34083                          ac_lo= ac_hi=
34084                          break
34085                        fi
34086                        ac_mid=`expr 2 '*' $ac_mid`
34087 fi
34088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34089   done
34090 else
34091   echo "$as_me: failed program was:" >&5
34092 sed 's/^/| /' conftest.$ac_ext >&5
34093
34094 ac_lo= ac_hi=
34095 fi
34096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34097 fi
34098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34099 # Binary search between lo and hi bounds.
34100 while test "x$ac_lo" != "x$ac_hi"; do
34101   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34102   cat >conftest.$ac_ext <<_ACEOF
34103 /* confdefs.h.  */
34104 _ACEOF
34105 cat confdefs.h >>conftest.$ac_ext
34106 cat >>conftest.$ac_ext <<_ACEOF
34107 /* end confdefs.h.  */
34108 $ac_includes_default
34109 int
34110 main ()
34111 {
34112 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
34113 test_array [0] = 0
34114
34115   ;
34116   return 0;
34117 }
34118 _ACEOF
34119 rm -f conftest.$ac_objext
34120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34121   (eval $ac_compile) 2>conftest.er1
34122   ac_status=$?
34123   grep -v '^ *+' conftest.er1 >conftest.err
34124   rm -f conftest.er1
34125   cat conftest.err >&5
34126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34127   (exit $ac_status); } &&
34128          { ac_try='test -z "$ac_c_werror_flag"
34129                          || test ! -s conftest.err'
34130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34131   (eval $ac_try) 2>&5
34132   ac_status=$?
34133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134   (exit $ac_status); }; } &&
34135          { ac_try='test -s conftest.$ac_objext'
34136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34137   (eval $ac_try) 2>&5
34138   ac_status=$?
34139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140   (exit $ac_status); }; }; then
34141   ac_hi=$ac_mid
34142 else
34143   echo "$as_me: failed program was:" >&5
34144 sed 's/^/| /' conftest.$ac_ext >&5
34145
34146 ac_lo=`expr '(' $ac_mid ')' + 1`
34147 fi
34148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34149 done
34150 case $ac_lo in
34151 ?*) ac_cv_sizeof_int=$ac_lo;;
34152 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34153 See \`config.log' for more details." >&5
34154 echo "$as_me: error: cannot compute sizeof (int), 77
34155 See \`config.log' for more details." >&2;}
34156    { (exit 1); exit 1; }; } ;;
34157 esac
34158 else
34159   if test "$cross_compiling" = yes; then
34160   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34161 See \`config.log' for more details." >&5
34162 echo "$as_me: error: cannot run test program while cross compiling
34163 See \`config.log' for more details." >&2;}
34164    { (exit 1); exit 1; }; }
34165 else
34166   cat >conftest.$ac_ext <<_ACEOF
34167 /* confdefs.h.  */
34168 _ACEOF
34169 cat confdefs.h >>conftest.$ac_ext
34170 cat >>conftest.$ac_ext <<_ACEOF
34171 /* end confdefs.h.  */
34172 $ac_includes_default
34173 long longval () { return (long) (sizeof (int)); }
34174 unsigned long ulongval () { return (long) (sizeof (int)); }
34175 #include <stdio.h>
34176 #include <stdlib.h>
34177 int
34178 main ()
34179 {
34180
34181   FILE *f = fopen ("conftest.val", "w");
34182   if (! f)
34183     exit (1);
34184   if (((long) (sizeof (int))) < 0)
34185     {
34186       long i = longval ();
34187       if (i != ((long) (sizeof (int))))
34188         exit (1);
34189       fprintf (f, "%ld\n", i);
34190     }
34191   else
34192     {
34193       unsigned long i = ulongval ();
34194       if (i != ((long) (sizeof (int))))
34195         exit (1);
34196       fprintf (f, "%lu\n", i);
34197     }
34198   exit (ferror (f) || fclose (f) != 0);
34199
34200   ;
34201   return 0;
34202 }
34203 _ACEOF
34204 rm -f conftest$ac_exeext
34205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34206   (eval $ac_link) 2>&5
34207   ac_status=$?
34208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34209   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34211   (eval $ac_try) 2>&5
34212   ac_status=$?
34213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214   (exit $ac_status); }; }; then
34215   ac_cv_sizeof_int=`cat conftest.val`
34216 else
34217   echo "$as_me: program exited with status $ac_status" >&5
34218 echo "$as_me: failed program was:" >&5
34219 sed 's/^/| /' conftest.$ac_ext >&5
34220
34221 ( exit $ac_status )
34222 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34223 See \`config.log' for more details." >&5
34224 echo "$as_me: error: cannot compute sizeof (int), 77
34225 See \`config.log' for more details." >&2;}
34226    { (exit 1); exit 1; }; }
34227 fi
34228 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34229 fi
34230 fi
34231 rm -f conftest.val
34232 else
34233   ac_cv_sizeof_int=0
34234 fi
34235 fi
34236 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34237 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
34238 cat >>confdefs.h <<_ACEOF
34239 #define SIZEOF_INT $ac_cv_sizeof_int
34240 _ACEOF
34241
34242
34243 echo "$as_me:$LINENO: checking for long" >&5
34244 echo $ECHO_N "checking for long... $ECHO_C" >&6
34245 if test "${ac_cv_type_long+set}" = set; then
34246   echo $ECHO_N "(cached) $ECHO_C" >&6
34247 else
34248   cat >conftest.$ac_ext <<_ACEOF
34249 /* confdefs.h.  */
34250 _ACEOF
34251 cat confdefs.h >>conftest.$ac_ext
34252 cat >>conftest.$ac_ext <<_ACEOF
34253 /* end confdefs.h.  */
34254 $ac_includes_default
34255 int
34256 main ()
34257 {
34258 if ((long *) 0)
34259   return 0;
34260 if (sizeof (long))
34261   return 0;
34262   ;
34263   return 0;
34264 }
34265 _ACEOF
34266 rm -f conftest.$ac_objext
34267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34268   (eval $ac_compile) 2>conftest.er1
34269   ac_status=$?
34270   grep -v '^ *+' conftest.er1 >conftest.err
34271   rm -f conftest.er1
34272   cat conftest.err >&5
34273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34274   (exit $ac_status); } &&
34275          { ac_try='test -z "$ac_c_werror_flag"
34276                          || test ! -s conftest.err'
34277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34278   (eval $ac_try) 2>&5
34279   ac_status=$?
34280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34281   (exit $ac_status); }; } &&
34282          { ac_try='test -s conftest.$ac_objext'
34283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34284   (eval $ac_try) 2>&5
34285   ac_status=$?
34286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287   (exit $ac_status); }; }; then
34288   ac_cv_type_long=yes
34289 else
34290   echo "$as_me: failed program was:" >&5
34291 sed 's/^/| /' conftest.$ac_ext >&5
34292
34293 ac_cv_type_long=no
34294 fi
34295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34296 fi
34297 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34298 echo "${ECHO_T}$ac_cv_type_long" >&6
34299
34300 echo "$as_me:$LINENO: checking size of long" >&5
34301 echo $ECHO_N "checking size of long... $ECHO_C" >&6
34302 if test "${ac_cv_sizeof_long+set}" = set; then
34303   echo $ECHO_N "(cached) $ECHO_C" >&6
34304 else
34305   if test "$ac_cv_type_long" = yes; then
34306   # The cast to unsigned long works around a bug in the HP C Compiler
34307   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34308   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34309   # This bug is HP SR number 8606223364.
34310   if test "$cross_compiling" = yes; then
34311   # Depending upon the size, compute the lo and hi bounds.
34312 cat >conftest.$ac_ext <<_ACEOF
34313 /* confdefs.h.  */
34314 _ACEOF
34315 cat confdefs.h >>conftest.$ac_ext
34316 cat >>conftest.$ac_ext <<_ACEOF
34317 /* end confdefs.h.  */
34318 $ac_includes_default
34319 int
34320 main ()
34321 {
34322 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
34323 test_array [0] = 0
34324
34325   ;
34326   return 0;
34327 }
34328 _ACEOF
34329 rm -f conftest.$ac_objext
34330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34331   (eval $ac_compile) 2>conftest.er1
34332   ac_status=$?
34333   grep -v '^ *+' conftest.er1 >conftest.err
34334   rm -f conftest.er1
34335   cat conftest.err >&5
34336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337   (exit $ac_status); } &&
34338          { ac_try='test -z "$ac_c_werror_flag"
34339                          || test ! -s conftest.err'
34340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34341   (eval $ac_try) 2>&5
34342   ac_status=$?
34343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34344   (exit $ac_status); }; } &&
34345          { ac_try='test -s conftest.$ac_objext'
34346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34347   (eval $ac_try) 2>&5
34348   ac_status=$?
34349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34350   (exit $ac_status); }; }; then
34351   ac_lo=0 ac_mid=0
34352   while :; do
34353     cat >conftest.$ac_ext <<_ACEOF
34354 /* confdefs.h.  */
34355 _ACEOF
34356 cat confdefs.h >>conftest.$ac_ext
34357 cat >>conftest.$ac_ext <<_ACEOF
34358 /* end confdefs.h.  */
34359 $ac_includes_default
34360 int
34361 main ()
34362 {
34363 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34364 test_array [0] = 0
34365
34366   ;
34367   return 0;
34368 }
34369 _ACEOF
34370 rm -f conftest.$ac_objext
34371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34372   (eval $ac_compile) 2>conftest.er1
34373   ac_status=$?
34374   grep -v '^ *+' conftest.er1 >conftest.err
34375   rm -f conftest.er1
34376   cat conftest.err >&5
34377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378   (exit $ac_status); } &&
34379          { ac_try='test -z "$ac_c_werror_flag"
34380                          || test ! -s conftest.err'
34381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34382   (eval $ac_try) 2>&5
34383   ac_status=$?
34384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34385   (exit $ac_status); }; } &&
34386          { ac_try='test -s conftest.$ac_objext'
34387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34388   (eval $ac_try) 2>&5
34389   ac_status=$?
34390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34391   (exit $ac_status); }; }; then
34392   ac_hi=$ac_mid; break
34393 else
34394   echo "$as_me: failed program was:" >&5
34395 sed 's/^/| /' conftest.$ac_ext >&5
34396
34397 ac_lo=`expr $ac_mid + 1`
34398                     if test $ac_lo -le $ac_mid; then
34399                       ac_lo= ac_hi=
34400                       break
34401                     fi
34402                     ac_mid=`expr 2 '*' $ac_mid + 1`
34403 fi
34404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34405   done
34406 else
34407   echo "$as_me: failed program was:" >&5
34408 sed 's/^/| /' conftest.$ac_ext >&5
34409
34410 cat >conftest.$ac_ext <<_ACEOF
34411 /* confdefs.h.  */
34412 _ACEOF
34413 cat confdefs.h >>conftest.$ac_ext
34414 cat >>conftest.$ac_ext <<_ACEOF
34415 /* end confdefs.h.  */
34416 $ac_includes_default
34417 int
34418 main ()
34419 {
34420 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
34421 test_array [0] = 0
34422
34423   ;
34424   return 0;
34425 }
34426 _ACEOF
34427 rm -f conftest.$ac_objext
34428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34429   (eval $ac_compile) 2>conftest.er1
34430   ac_status=$?
34431   grep -v '^ *+' conftest.er1 >conftest.err
34432   rm -f conftest.er1
34433   cat conftest.err >&5
34434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34435   (exit $ac_status); } &&
34436          { ac_try='test -z "$ac_c_werror_flag"
34437                          || test ! -s conftest.err'
34438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34439   (eval $ac_try) 2>&5
34440   ac_status=$?
34441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442   (exit $ac_status); }; } &&
34443          { ac_try='test -s conftest.$ac_objext'
34444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34445   (eval $ac_try) 2>&5
34446   ac_status=$?
34447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448   (exit $ac_status); }; }; then
34449   ac_hi=-1 ac_mid=-1
34450   while :; do
34451     cat >conftest.$ac_ext <<_ACEOF
34452 /* confdefs.h.  */
34453 _ACEOF
34454 cat confdefs.h >>conftest.$ac_ext
34455 cat >>conftest.$ac_ext <<_ACEOF
34456 /* end confdefs.h.  */
34457 $ac_includes_default
34458 int
34459 main ()
34460 {
34461 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
34462 test_array [0] = 0
34463
34464   ;
34465   return 0;
34466 }
34467 _ACEOF
34468 rm -f conftest.$ac_objext
34469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34470   (eval $ac_compile) 2>conftest.er1
34471   ac_status=$?
34472   grep -v '^ *+' conftest.er1 >conftest.err
34473   rm -f conftest.er1
34474   cat conftest.err >&5
34475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34476   (exit $ac_status); } &&
34477          { ac_try='test -z "$ac_c_werror_flag"
34478                          || test ! -s conftest.err'
34479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34480   (eval $ac_try) 2>&5
34481   ac_status=$?
34482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34483   (exit $ac_status); }; } &&
34484          { ac_try='test -s conftest.$ac_objext'
34485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34486   (eval $ac_try) 2>&5
34487   ac_status=$?
34488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34489   (exit $ac_status); }; }; then
34490   ac_lo=$ac_mid; break
34491 else
34492   echo "$as_me: failed program was:" >&5
34493 sed 's/^/| /' conftest.$ac_ext >&5
34494
34495 ac_hi=`expr '(' $ac_mid ')' - 1`
34496                        if test $ac_mid -le $ac_hi; then
34497                          ac_lo= ac_hi=
34498                          break
34499                        fi
34500                        ac_mid=`expr 2 '*' $ac_mid`
34501 fi
34502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34503   done
34504 else
34505   echo "$as_me: failed program was:" >&5
34506 sed 's/^/| /' conftest.$ac_ext >&5
34507
34508 ac_lo= ac_hi=
34509 fi
34510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34511 fi
34512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34513 # Binary search between lo and hi bounds.
34514 while test "x$ac_lo" != "x$ac_hi"; do
34515   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34516   cat >conftest.$ac_ext <<_ACEOF
34517 /* confdefs.h.  */
34518 _ACEOF
34519 cat confdefs.h >>conftest.$ac_ext
34520 cat >>conftest.$ac_ext <<_ACEOF
34521 /* end confdefs.h.  */
34522 $ac_includes_default
34523 int
34524 main ()
34525 {
34526 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34527 test_array [0] = 0
34528
34529   ;
34530   return 0;
34531 }
34532 _ACEOF
34533 rm -f conftest.$ac_objext
34534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34535   (eval $ac_compile) 2>conftest.er1
34536   ac_status=$?
34537   grep -v '^ *+' conftest.er1 >conftest.err
34538   rm -f conftest.er1
34539   cat conftest.err >&5
34540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34541   (exit $ac_status); } &&
34542          { ac_try='test -z "$ac_c_werror_flag"
34543                          || test ! -s conftest.err'
34544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34545   (eval $ac_try) 2>&5
34546   ac_status=$?
34547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548   (exit $ac_status); }; } &&
34549          { ac_try='test -s conftest.$ac_objext'
34550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34551   (eval $ac_try) 2>&5
34552   ac_status=$?
34553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554   (exit $ac_status); }; }; then
34555   ac_hi=$ac_mid
34556 else
34557   echo "$as_me: failed program was:" >&5
34558 sed 's/^/| /' conftest.$ac_ext >&5
34559
34560 ac_lo=`expr '(' $ac_mid ')' + 1`
34561 fi
34562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34563 done
34564 case $ac_lo in
34565 ?*) ac_cv_sizeof_long=$ac_lo;;
34566 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
34567 See \`config.log' for more details." >&5
34568 echo "$as_me: error: cannot compute sizeof (long), 77
34569 See \`config.log' for more details." >&2;}
34570    { (exit 1); exit 1; }; } ;;
34571 esac
34572 else
34573   if test "$cross_compiling" = yes; then
34574   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34575 See \`config.log' for more details." >&5
34576 echo "$as_me: error: cannot run test program while cross compiling
34577 See \`config.log' for more details." >&2;}
34578    { (exit 1); exit 1; }; }
34579 else
34580   cat >conftest.$ac_ext <<_ACEOF
34581 /* confdefs.h.  */
34582 _ACEOF
34583 cat confdefs.h >>conftest.$ac_ext
34584 cat >>conftest.$ac_ext <<_ACEOF
34585 /* end confdefs.h.  */
34586 $ac_includes_default
34587 long longval () { return (long) (sizeof (long)); }
34588 unsigned long ulongval () { return (long) (sizeof (long)); }
34589 #include <stdio.h>
34590 #include <stdlib.h>
34591 int
34592 main ()
34593 {
34594
34595   FILE *f = fopen ("conftest.val", "w");
34596   if (! f)
34597     exit (1);
34598   if (((long) (sizeof (long))) < 0)
34599     {
34600       long i = longval ();
34601       if (i != ((long) (sizeof (long))))
34602         exit (1);
34603       fprintf (f, "%ld\n", i);
34604     }
34605   else
34606     {
34607       unsigned long i = ulongval ();
34608       if (i != ((long) (sizeof (long))))
34609         exit (1);
34610       fprintf (f, "%lu\n", i);
34611     }
34612   exit (ferror (f) || fclose (f) != 0);
34613
34614   ;
34615   return 0;
34616 }
34617 _ACEOF
34618 rm -f conftest$ac_exeext
34619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34620   (eval $ac_link) 2>&5
34621   ac_status=$?
34622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34625   (eval $ac_try) 2>&5
34626   ac_status=$?
34627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34628   (exit $ac_status); }; }; then
34629   ac_cv_sizeof_long=`cat conftest.val`
34630 else
34631   echo "$as_me: program exited with status $ac_status" >&5
34632 echo "$as_me: failed program was:" >&5
34633 sed 's/^/| /' conftest.$ac_ext >&5
34634
34635 ( exit $ac_status )
34636 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
34637 See \`config.log' for more details." >&5
34638 echo "$as_me: error: cannot compute sizeof (long), 77
34639 See \`config.log' for more details." >&2;}
34640    { (exit 1); exit 1; }; }
34641 fi
34642 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34643 fi
34644 fi
34645 rm -f conftest.val
34646 else
34647   ac_cv_sizeof_long=0
34648 fi
34649 fi
34650 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34651 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
34652 cat >>confdefs.h <<_ACEOF
34653 #define SIZEOF_LONG $ac_cv_sizeof_long
34654 _ACEOF
34655
34656
34657 echo "$as_me:$LINENO: checking for long long" >&5
34658 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34659 if test "${ac_cv_type_long_long+set}" = set; then
34660   echo $ECHO_N "(cached) $ECHO_C" >&6
34661 else
34662   cat >conftest.$ac_ext <<_ACEOF
34663 /* confdefs.h.  */
34664 _ACEOF
34665 cat confdefs.h >>conftest.$ac_ext
34666 cat >>conftest.$ac_ext <<_ACEOF
34667 /* end confdefs.h.  */
34668 $ac_includes_default
34669 int
34670 main ()
34671 {
34672 if ((long long *) 0)
34673   return 0;
34674 if (sizeof (long long))
34675   return 0;
34676   ;
34677   return 0;
34678 }
34679 _ACEOF
34680 rm -f conftest.$ac_objext
34681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34682   (eval $ac_compile) 2>conftest.er1
34683   ac_status=$?
34684   grep -v '^ *+' conftest.er1 >conftest.err
34685   rm -f conftest.er1
34686   cat conftest.err >&5
34687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688   (exit $ac_status); } &&
34689          { ac_try='test -z "$ac_c_werror_flag"
34690                          || test ! -s conftest.err'
34691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34692   (eval $ac_try) 2>&5
34693   ac_status=$?
34694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695   (exit $ac_status); }; } &&
34696          { ac_try='test -s conftest.$ac_objext'
34697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34698   (eval $ac_try) 2>&5
34699   ac_status=$?
34700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34701   (exit $ac_status); }; }; then
34702   ac_cv_type_long_long=yes
34703 else
34704   echo "$as_me: failed program was:" >&5
34705 sed 's/^/| /' conftest.$ac_ext >&5
34706
34707 ac_cv_type_long_long=no
34708 fi
34709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34710 fi
34711 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34712 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34713
34714 echo "$as_me:$LINENO: checking size of long long" >&5
34715 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
34716 if test "${ac_cv_sizeof_long_long+set}" = set; then
34717   echo $ECHO_N "(cached) $ECHO_C" >&6
34718 else
34719   if test "$ac_cv_type_long_long" = yes; then
34720   # The cast to unsigned long works around a bug in the HP C Compiler
34721   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34722   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34723   # This bug is HP SR number 8606223364.
34724   if test "$cross_compiling" = yes; then
34725   # Depending upon the size, compute the lo and hi bounds.
34726 cat >conftest.$ac_ext <<_ACEOF
34727 /* confdefs.h.  */
34728 _ACEOF
34729 cat confdefs.h >>conftest.$ac_ext
34730 cat >>conftest.$ac_ext <<_ACEOF
34731 /* end confdefs.h.  */
34732 $ac_includes_default
34733 int
34734 main ()
34735 {
34736 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
34737 test_array [0] = 0
34738
34739   ;
34740   return 0;
34741 }
34742 _ACEOF
34743 rm -f conftest.$ac_objext
34744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34745   (eval $ac_compile) 2>conftest.er1
34746   ac_status=$?
34747   grep -v '^ *+' conftest.er1 >conftest.err
34748   rm -f conftest.er1
34749   cat conftest.err >&5
34750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751   (exit $ac_status); } &&
34752          { ac_try='test -z "$ac_c_werror_flag"
34753                          || test ! -s conftest.err'
34754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34755   (eval $ac_try) 2>&5
34756   ac_status=$?
34757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758   (exit $ac_status); }; } &&
34759          { ac_try='test -s conftest.$ac_objext'
34760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34761   (eval $ac_try) 2>&5
34762   ac_status=$?
34763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764   (exit $ac_status); }; }; then
34765   ac_lo=0 ac_mid=0
34766   while :; do
34767     cat >conftest.$ac_ext <<_ACEOF
34768 /* confdefs.h.  */
34769 _ACEOF
34770 cat confdefs.h >>conftest.$ac_ext
34771 cat >>conftest.$ac_ext <<_ACEOF
34772 /* end confdefs.h.  */
34773 $ac_includes_default
34774 int
34775 main ()
34776 {
34777 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
34778 test_array [0] = 0
34779
34780   ;
34781   return 0;
34782 }
34783 _ACEOF
34784 rm -f conftest.$ac_objext
34785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34786   (eval $ac_compile) 2>conftest.er1
34787   ac_status=$?
34788   grep -v '^ *+' conftest.er1 >conftest.err
34789   rm -f conftest.er1
34790   cat conftest.err >&5
34791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34792   (exit $ac_status); } &&
34793          { ac_try='test -z "$ac_c_werror_flag"
34794                          || test ! -s conftest.err'
34795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34796   (eval $ac_try) 2>&5
34797   ac_status=$?
34798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799   (exit $ac_status); }; } &&
34800          { ac_try='test -s conftest.$ac_objext'
34801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34802   (eval $ac_try) 2>&5
34803   ac_status=$?
34804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34805   (exit $ac_status); }; }; then
34806   ac_hi=$ac_mid; break
34807 else
34808   echo "$as_me: failed program was:" >&5
34809 sed 's/^/| /' conftest.$ac_ext >&5
34810
34811 ac_lo=`expr $ac_mid + 1`
34812                     if test $ac_lo -le $ac_mid; then
34813                       ac_lo= ac_hi=
34814                       break
34815                     fi
34816                     ac_mid=`expr 2 '*' $ac_mid + 1`
34817 fi
34818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34819   done
34820 else
34821   echo "$as_me: failed program was:" >&5
34822 sed 's/^/| /' conftest.$ac_ext >&5
34823
34824 cat >conftest.$ac_ext <<_ACEOF
34825 /* confdefs.h.  */
34826 _ACEOF
34827 cat confdefs.h >>conftest.$ac_ext
34828 cat >>conftest.$ac_ext <<_ACEOF
34829 /* end confdefs.h.  */
34830 $ac_includes_default
34831 int
34832 main ()
34833 {
34834 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
34835 test_array [0] = 0
34836
34837   ;
34838   return 0;
34839 }
34840 _ACEOF
34841 rm -f conftest.$ac_objext
34842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34843   (eval $ac_compile) 2>conftest.er1
34844   ac_status=$?
34845   grep -v '^ *+' conftest.er1 >conftest.err
34846   rm -f conftest.er1
34847   cat conftest.err >&5
34848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849   (exit $ac_status); } &&
34850          { ac_try='test -z "$ac_c_werror_flag"
34851                          || test ! -s conftest.err'
34852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34853   (eval $ac_try) 2>&5
34854   ac_status=$?
34855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34856   (exit $ac_status); }; } &&
34857          { ac_try='test -s conftest.$ac_objext'
34858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34859   (eval $ac_try) 2>&5
34860   ac_status=$?
34861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862   (exit $ac_status); }; }; then
34863   ac_hi=-1 ac_mid=-1
34864   while :; do
34865     cat >conftest.$ac_ext <<_ACEOF
34866 /* confdefs.h.  */
34867 _ACEOF
34868 cat confdefs.h >>conftest.$ac_ext
34869 cat >>conftest.$ac_ext <<_ACEOF
34870 /* end confdefs.h.  */
34871 $ac_includes_default
34872 int
34873 main ()
34874 {
34875 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
34876 test_array [0] = 0
34877
34878   ;
34879   return 0;
34880 }
34881 _ACEOF
34882 rm -f conftest.$ac_objext
34883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34884   (eval $ac_compile) 2>conftest.er1
34885   ac_status=$?
34886   grep -v '^ *+' conftest.er1 >conftest.err
34887   rm -f conftest.er1
34888   cat conftest.err >&5
34889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34890   (exit $ac_status); } &&
34891          { ac_try='test -z "$ac_c_werror_flag"
34892                          || test ! -s conftest.err'
34893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34894   (eval $ac_try) 2>&5
34895   ac_status=$?
34896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897   (exit $ac_status); }; } &&
34898          { ac_try='test -s conftest.$ac_objext'
34899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34900   (eval $ac_try) 2>&5
34901   ac_status=$?
34902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903   (exit $ac_status); }; }; then
34904   ac_lo=$ac_mid; break
34905 else
34906   echo "$as_me: failed program was:" >&5
34907 sed 's/^/| /' conftest.$ac_ext >&5
34908
34909 ac_hi=`expr '(' $ac_mid ')' - 1`
34910                        if test $ac_mid -le $ac_hi; then
34911                          ac_lo= ac_hi=
34912                          break
34913                        fi
34914                        ac_mid=`expr 2 '*' $ac_mid`
34915 fi
34916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34917   done
34918 else
34919   echo "$as_me: failed program was:" >&5
34920 sed 's/^/| /' conftest.$ac_ext >&5
34921
34922 ac_lo= ac_hi=
34923 fi
34924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34925 fi
34926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34927 # Binary search between lo and hi bounds.
34928 while test "x$ac_lo" != "x$ac_hi"; do
34929   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34930   cat >conftest.$ac_ext <<_ACEOF
34931 /* confdefs.h.  */
34932 _ACEOF
34933 cat confdefs.h >>conftest.$ac_ext
34934 cat >>conftest.$ac_ext <<_ACEOF
34935 /* end confdefs.h.  */
34936 $ac_includes_default
34937 int
34938 main ()
34939 {
34940 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
34941 test_array [0] = 0
34942
34943   ;
34944   return 0;
34945 }
34946 _ACEOF
34947 rm -f conftest.$ac_objext
34948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34949   (eval $ac_compile) 2>conftest.er1
34950   ac_status=$?
34951   grep -v '^ *+' conftest.er1 >conftest.err
34952   rm -f conftest.er1
34953   cat conftest.err >&5
34954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34955   (exit $ac_status); } &&
34956          { ac_try='test -z "$ac_c_werror_flag"
34957                          || test ! -s conftest.err'
34958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34959   (eval $ac_try) 2>&5
34960   ac_status=$?
34961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962   (exit $ac_status); }; } &&
34963          { ac_try='test -s conftest.$ac_objext'
34964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34965   (eval $ac_try) 2>&5
34966   ac_status=$?
34967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968   (exit $ac_status); }; }; then
34969   ac_hi=$ac_mid
34970 else
34971   echo "$as_me: failed program was:" >&5
34972 sed 's/^/| /' conftest.$ac_ext >&5
34973
34974 ac_lo=`expr '(' $ac_mid ')' + 1`
34975 fi
34976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34977 done
34978 case $ac_lo in
34979 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34980 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
34981 See \`config.log' for more details." >&5
34982 echo "$as_me: error: cannot compute sizeof (long long), 77
34983 See \`config.log' for more details." >&2;}
34984    { (exit 1); exit 1; }; } ;;
34985 esac
34986 else
34987   if test "$cross_compiling" = yes; then
34988   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34989 See \`config.log' for more details." >&5
34990 echo "$as_me: error: cannot run test program while cross compiling
34991 See \`config.log' for more details." >&2;}
34992    { (exit 1); exit 1; }; }
34993 else
34994   cat >conftest.$ac_ext <<_ACEOF
34995 /* confdefs.h.  */
34996 _ACEOF
34997 cat confdefs.h >>conftest.$ac_ext
34998 cat >>conftest.$ac_ext <<_ACEOF
34999 /* end confdefs.h.  */
35000 $ac_includes_default
35001 long longval () { return (long) (sizeof (long long)); }
35002 unsigned long ulongval () { return (long) (sizeof (long long)); }
35003 #include <stdio.h>
35004 #include <stdlib.h>
35005 int
35006 main ()
35007 {
35008
35009   FILE *f = fopen ("conftest.val", "w");
35010   if (! f)
35011     exit (1);
35012   if (((long) (sizeof (long long))) < 0)
35013     {
35014       long i = longval ();
35015       if (i != ((long) (sizeof (long long))))
35016         exit (1);
35017       fprintf (f, "%ld\n", i);
35018     }
35019   else
35020     {
35021       unsigned long i = ulongval ();
35022       if (i != ((long) (sizeof (long long))))
35023         exit (1);
35024       fprintf (f, "%lu\n", i);
35025     }
35026   exit (ferror (f) || fclose (f) != 0);
35027
35028   ;
35029   return 0;
35030 }
35031 _ACEOF
35032 rm -f conftest$ac_exeext
35033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35034   (eval $ac_link) 2>&5
35035   ac_status=$?
35036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35037   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35039   (eval $ac_try) 2>&5
35040   ac_status=$?
35041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042   (exit $ac_status); }; }; then
35043   ac_cv_sizeof_long_long=`cat conftest.val`
35044 else
35045   echo "$as_me: program exited with status $ac_status" >&5
35046 echo "$as_me: failed program was:" >&5
35047 sed 's/^/| /' conftest.$ac_ext >&5
35048
35049 ( exit $ac_status )
35050 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
35051 See \`config.log' for more details." >&5
35052 echo "$as_me: error: cannot compute sizeof (long long), 77
35053 See \`config.log' for more details." >&2;}
35054    { (exit 1); exit 1; }; }
35055 fi
35056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35057 fi
35058 fi
35059 rm -f conftest.val
35060 else
35061   ac_cv_sizeof_long_long=0
35062 fi
35063 fi
35064 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35065 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
35066 cat >>confdefs.h <<_ACEOF
35067 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35068 _ACEOF
35069
35070
35071 echo "$as_me:$LINENO: checking for wchar_t" >&5
35072 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
35073 if test "${ac_cv_type_wchar_t+set}" = set; then
35074   echo $ECHO_N "(cached) $ECHO_C" >&6
35075 else
35076   cat >conftest.$ac_ext <<_ACEOF
35077 /* confdefs.h.  */
35078 _ACEOF
35079 cat confdefs.h >>conftest.$ac_ext
35080 cat >>conftest.$ac_ext <<_ACEOF
35081 /* end confdefs.h.  */
35082 $ac_includes_default
35083 int
35084 main ()
35085 {
35086 if ((wchar_t *) 0)
35087   return 0;
35088 if (sizeof (wchar_t))
35089   return 0;
35090   ;
35091   return 0;
35092 }
35093 _ACEOF
35094 rm -f conftest.$ac_objext
35095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35096   (eval $ac_compile) 2>conftest.er1
35097   ac_status=$?
35098   grep -v '^ *+' conftest.er1 >conftest.err
35099   rm -f conftest.er1
35100   cat conftest.err >&5
35101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35102   (exit $ac_status); } &&
35103          { ac_try='test -z "$ac_c_werror_flag"
35104                          || test ! -s conftest.err'
35105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35106   (eval $ac_try) 2>&5
35107   ac_status=$?
35108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35109   (exit $ac_status); }; } &&
35110          { ac_try='test -s conftest.$ac_objext'
35111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35112   (eval $ac_try) 2>&5
35113   ac_status=$?
35114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115   (exit $ac_status); }; }; then
35116   ac_cv_type_wchar_t=yes
35117 else
35118   echo "$as_me: failed program was:" >&5
35119 sed 's/^/| /' conftest.$ac_ext >&5
35120
35121 ac_cv_type_wchar_t=no
35122 fi
35123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35124 fi
35125 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35126 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
35127
35128 echo "$as_me:$LINENO: checking size of wchar_t" >&5
35129 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
35130 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35131   echo $ECHO_N "(cached) $ECHO_C" >&6
35132 else
35133   if test "$ac_cv_type_wchar_t" = yes; then
35134   # The cast to unsigned long works around a bug in the HP C Compiler
35135   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35136   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35137   # This bug is HP SR number 8606223364.
35138   if test "$cross_compiling" = yes; then
35139   # Depending upon the size, compute the lo and hi bounds.
35140 cat >conftest.$ac_ext <<_ACEOF
35141 /* confdefs.h.  */
35142 _ACEOF
35143 cat confdefs.h >>conftest.$ac_ext
35144 cat >>conftest.$ac_ext <<_ACEOF
35145 /* end confdefs.h.  */
35146 $ac_includes_default
35147 int
35148 main ()
35149 {
35150 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
35151 test_array [0] = 0
35152
35153   ;
35154   return 0;
35155 }
35156 _ACEOF
35157 rm -f conftest.$ac_objext
35158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35159   (eval $ac_compile) 2>conftest.er1
35160   ac_status=$?
35161   grep -v '^ *+' conftest.er1 >conftest.err
35162   rm -f conftest.er1
35163   cat conftest.err >&5
35164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165   (exit $ac_status); } &&
35166          { ac_try='test -z "$ac_c_werror_flag"
35167                          || test ! -s conftest.err'
35168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35169   (eval $ac_try) 2>&5
35170   ac_status=$?
35171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172   (exit $ac_status); }; } &&
35173          { ac_try='test -s conftest.$ac_objext'
35174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35175   (eval $ac_try) 2>&5
35176   ac_status=$?
35177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178   (exit $ac_status); }; }; then
35179   ac_lo=0 ac_mid=0
35180   while :; do
35181     cat >conftest.$ac_ext <<_ACEOF
35182 /* confdefs.h.  */
35183 _ACEOF
35184 cat confdefs.h >>conftest.$ac_ext
35185 cat >>conftest.$ac_ext <<_ACEOF
35186 /* end confdefs.h.  */
35187 $ac_includes_default
35188 int
35189 main ()
35190 {
35191 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35192 test_array [0] = 0
35193
35194   ;
35195   return 0;
35196 }
35197 _ACEOF
35198 rm -f conftest.$ac_objext
35199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35200   (eval $ac_compile) 2>conftest.er1
35201   ac_status=$?
35202   grep -v '^ *+' conftest.er1 >conftest.err
35203   rm -f conftest.er1
35204   cat conftest.err >&5
35205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206   (exit $ac_status); } &&
35207          { ac_try='test -z "$ac_c_werror_flag"
35208                          || test ! -s conftest.err'
35209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35210   (eval $ac_try) 2>&5
35211   ac_status=$?
35212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213   (exit $ac_status); }; } &&
35214          { ac_try='test -s conftest.$ac_objext'
35215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35216   (eval $ac_try) 2>&5
35217   ac_status=$?
35218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219   (exit $ac_status); }; }; then
35220   ac_hi=$ac_mid; break
35221 else
35222   echo "$as_me: failed program was:" >&5
35223 sed 's/^/| /' conftest.$ac_ext >&5
35224
35225 ac_lo=`expr $ac_mid + 1`
35226                     if test $ac_lo -le $ac_mid; then
35227                       ac_lo= ac_hi=
35228                       break
35229                     fi
35230                     ac_mid=`expr 2 '*' $ac_mid + 1`
35231 fi
35232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35233   done
35234 else
35235   echo "$as_me: failed program was:" >&5
35236 sed 's/^/| /' conftest.$ac_ext >&5
35237
35238 cat >conftest.$ac_ext <<_ACEOF
35239 /* confdefs.h.  */
35240 _ACEOF
35241 cat confdefs.h >>conftest.$ac_ext
35242 cat >>conftest.$ac_ext <<_ACEOF
35243 /* end confdefs.h.  */
35244 $ac_includes_default
35245 int
35246 main ()
35247 {
35248 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
35249 test_array [0] = 0
35250
35251   ;
35252   return 0;
35253 }
35254 _ACEOF
35255 rm -f conftest.$ac_objext
35256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35257   (eval $ac_compile) 2>conftest.er1
35258   ac_status=$?
35259   grep -v '^ *+' conftest.er1 >conftest.err
35260   rm -f conftest.er1
35261   cat conftest.err >&5
35262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35263   (exit $ac_status); } &&
35264          { ac_try='test -z "$ac_c_werror_flag"
35265                          || test ! -s conftest.err'
35266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35267   (eval $ac_try) 2>&5
35268   ac_status=$?
35269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35270   (exit $ac_status); }; } &&
35271          { ac_try='test -s conftest.$ac_objext'
35272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35273   (eval $ac_try) 2>&5
35274   ac_status=$?
35275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35276   (exit $ac_status); }; }; then
35277   ac_hi=-1 ac_mid=-1
35278   while :; do
35279     cat >conftest.$ac_ext <<_ACEOF
35280 /* confdefs.h.  */
35281 _ACEOF
35282 cat confdefs.h >>conftest.$ac_ext
35283 cat >>conftest.$ac_ext <<_ACEOF
35284 /* end confdefs.h.  */
35285 $ac_includes_default
35286 int
35287 main ()
35288 {
35289 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
35290 test_array [0] = 0
35291
35292   ;
35293   return 0;
35294 }
35295 _ACEOF
35296 rm -f conftest.$ac_objext
35297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35298   (eval $ac_compile) 2>conftest.er1
35299   ac_status=$?
35300   grep -v '^ *+' conftest.er1 >conftest.err
35301   rm -f conftest.er1
35302   cat conftest.err >&5
35303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35304   (exit $ac_status); } &&
35305          { ac_try='test -z "$ac_c_werror_flag"
35306                          || test ! -s conftest.err'
35307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35308   (eval $ac_try) 2>&5
35309   ac_status=$?
35310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35311   (exit $ac_status); }; } &&
35312          { ac_try='test -s conftest.$ac_objext'
35313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35314   (eval $ac_try) 2>&5
35315   ac_status=$?
35316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317   (exit $ac_status); }; }; then
35318   ac_lo=$ac_mid; break
35319 else
35320   echo "$as_me: failed program was:" >&5
35321 sed 's/^/| /' conftest.$ac_ext >&5
35322
35323 ac_hi=`expr '(' $ac_mid ')' - 1`
35324                        if test $ac_mid -le $ac_hi; then
35325                          ac_lo= ac_hi=
35326                          break
35327                        fi
35328                        ac_mid=`expr 2 '*' $ac_mid`
35329 fi
35330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35331   done
35332 else
35333   echo "$as_me: failed program was:" >&5
35334 sed 's/^/| /' conftest.$ac_ext >&5
35335
35336 ac_lo= ac_hi=
35337 fi
35338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35339 fi
35340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35341 # Binary search between lo and hi bounds.
35342 while test "x$ac_lo" != "x$ac_hi"; do
35343   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35344   cat >conftest.$ac_ext <<_ACEOF
35345 /* confdefs.h.  */
35346 _ACEOF
35347 cat confdefs.h >>conftest.$ac_ext
35348 cat >>conftest.$ac_ext <<_ACEOF
35349 /* end confdefs.h.  */
35350 $ac_includes_default
35351 int
35352 main ()
35353 {
35354 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35355 test_array [0] = 0
35356
35357   ;
35358   return 0;
35359 }
35360 _ACEOF
35361 rm -f conftest.$ac_objext
35362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35363   (eval $ac_compile) 2>conftest.er1
35364   ac_status=$?
35365   grep -v '^ *+' conftest.er1 >conftest.err
35366   rm -f conftest.er1
35367   cat conftest.err >&5
35368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35369   (exit $ac_status); } &&
35370          { ac_try='test -z "$ac_c_werror_flag"
35371                          || test ! -s conftest.err'
35372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35373   (eval $ac_try) 2>&5
35374   ac_status=$?
35375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35376   (exit $ac_status); }; } &&
35377          { ac_try='test -s conftest.$ac_objext'
35378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35379   (eval $ac_try) 2>&5
35380   ac_status=$?
35381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35382   (exit $ac_status); }; }; then
35383   ac_hi=$ac_mid
35384 else
35385   echo "$as_me: failed program was:" >&5
35386 sed 's/^/| /' conftest.$ac_ext >&5
35387
35388 ac_lo=`expr '(' $ac_mid ')' + 1`
35389 fi
35390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35391 done
35392 case $ac_lo in
35393 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35394 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35395 See \`config.log' for more details." >&5
35396 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35397 See \`config.log' for more details." >&2;}
35398    { (exit 1); exit 1; }; } ;;
35399 esac
35400 else
35401   if test "$cross_compiling" = yes; then
35402   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35403 See \`config.log' for more details." >&5
35404 echo "$as_me: error: cannot run test program while cross compiling
35405 See \`config.log' for more details." >&2;}
35406    { (exit 1); exit 1; }; }
35407 else
35408   cat >conftest.$ac_ext <<_ACEOF
35409 /* confdefs.h.  */
35410 _ACEOF
35411 cat confdefs.h >>conftest.$ac_ext
35412 cat >>conftest.$ac_ext <<_ACEOF
35413 /* end confdefs.h.  */
35414 $ac_includes_default
35415 long longval () { return (long) (sizeof (wchar_t)); }
35416 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
35417 #include <stdio.h>
35418 #include <stdlib.h>
35419 int
35420 main ()
35421 {
35422
35423   FILE *f = fopen ("conftest.val", "w");
35424   if (! f)
35425     exit (1);
35426   if (((long) (sizeof (wchar_t))) < 0)
35427     {
35428       long i = longval ();
35429       if (i != ((long) (sizeof (wchar_t))))
35430         exit (1);
35431       fprintf (f, "%ld\n", i);
35432     }
35433   else
35434     {
35435       unsigned long i = ulongval ();
35436       if (i != ((long) (sizeof (wchar_t))))
35437         exit (1);
35438       fprintf (f, "%lu\n", i);
35439     }
35440   exit (ferror (f) || fclose (f) != 0);
35441
35442   ;
35443   return 0;
35444 }
35445 _ACEOF
35446 rm -f conftest$ac_exeext
35447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35448   (eval $ac_link) 2>&5
35449   ac_status=$?
35450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35453   (eval $ac_try) 2>&5
35454   ac_status=$?
35455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35456   (exit $ac_status); }; }; then
35457   ac_cv_sizeof_wchar_t=`cat conftest.val`
35458 else
35459   echo "$as_me: program exited with status $ac_status" >&5
35460 echo "$as_me: failed program was:" >&5
35461 sed 's/^/| /' conftest.$ac_ext >&5
35462
35463 ( exit $ac_status )
35464 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35465 See \`config.log' for more details." >&5
35466 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35467 See \`config.log' for more details." >&2;}
35468    { (exit 1); exit 1; }; }
35469 fi
35470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35471 fi
35472 fi
35473 rm -f conftest.val
35474 else
35475   ac_cv_sizeof_wchar_t=0
35476 fi
35477 fi
35478 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35479 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
35480 cat >>confdefs.h <<_ACEOF
35481 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35482 _ACEOF
35483
35484
35485
35486 if test "$ac_cv_sizeof_int" -lt 4 ; then
35487         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35488 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35489
35490
35491 cat >>confdefs.h <<\_ACEOF
35492 #define LBER_INT_T long
35493 _ACEOF
35494
35495 else
35496
35497 cat >>confdefs.h <<\_ACEOF
35498 #define LBER_INT_T int
35499 _ACEOF
35500
35501 fi
35502
35503
35504 cat >>confdefs.h <<\_ACEOF
35505 #define LBER_LEN_T long
35506 _ACEOF
35507
35508
35509 cat >>confdefs.h <<\_ACEOF
35510 #define LBER_SOCKET_T int
35511 _ACEOF
35512
35513
35514 cat >>confdefs.h <<\_ACEOF
35515 #define LBER_TAG_T long
35516 _ACEOF
35517
35518
35519 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35520         if test $ac_cv_sizeof_long_long -gt 4 ; then
35521                 ol_with_mp=longlong
35522
35523 cat >>confdefs.h <<\_ACEOF
35524 #define USE_MP_LONG_LONG 1
35525 _ACEOF
35526
35527         elif test $ol_with_mp = longlong ; then
35528                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35529 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35530    { (exit 1); exit 1; }; }
35531         fi
35532 fi
35533 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35534         if test $ac_cv_sizeof_long -gt 4 ; then
35535                 ol_with_mp=long
35536
35537 cat >>confdefs.h <<\_ACEOF
35538 #define USE_MP_LONG 1
35539 _ACEOF
35540
35541         elif test $ol_with_mp = long ; then
35542                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35543 echo "$as_me: error: long unusable for multiple precision" >&2;}
35544    { (exit 1); exit 1; }; }
35545         fi
35546 fi
35547 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35548
35549 for ac_header in openssl/bn.h
35550 do
35551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35553   echo "$as_me:$LINENO: checking for $ac_header" >&5
35554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35556   echo $ECHO_N "(cached) $ECHO_C" >&6
35557 fi
35558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35560 else
35561   # Is the header compilable?
35562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35564 cat >conftest.$ac_ext <<_ACEOF
35565 /* confdefs.h.  */
35566 _ACEOF
35567 cat confdefs.h >>conftest.$ac_ext
35568 cat >>conftest.$ac_ext <<_ACEOF
35569 /* end confdefs.h.  */
35570 $ac_includes_default
35571 #include <$ac_header>
35572 _ACEOF
35573 rm -f conftest.$ac_objext
35574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35575   (eval $ac_compile) 2>conftest.er1
35576   ac_status=$?
35577   grep -v '^ *+' conftest.er1 >conftest.err
35578   rm -f conftest.er1
35579   cat conftest.err >&5
35580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581   (exit $ac_status); } &&
35582          { ac_try='test -z "$ac_c_werror_flag"
35583                          || test ! -s conftest.err'
35584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35585   (eval $ac_try) 2>&5
35586   ac_status=$?
35587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588   (exit $ac_status); }; } &&
35589          { ac_try='test -s conftest.$ac_objext'
35590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35591   (eval $ac_try) 2>&5
35592   ac_status=$?
35593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35594   (exit $ac_status); }; }; then
35595   ac_header_compiler=yes
35596 else
35597   echo "$as_me: failed program was:" >&5
35598 sed 's/^/| /' conftest.$ac_ext >&5
35599
35600 ac_header_compiler=no
35601 fi
35602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35604 echo "${ECHO_T}$ac_header_compiler" >&6
35605
35606 # Is the header present?
35607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35609 cat >conftest.$ac_ext <<_ACEOF
35610 /* confdefs.h.  */
35611 _ACEOF
35612 cat confdefs.h >>conftest.$ac_ext
35613 cat >>conftest.$ac_ext <<_ACEOF
35614 /* end confdefs.h.  */
35615 #include <$ac_header>
35616 _ACEOF
35617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35619   ac_status=$?
35620   grep -v '^ *+' conftest.er1 >conftest.err
35621   rm -f conftest.er1
35622   cat conftest.err >&5
35623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624   (exit $ac_status); } >/dev/null; then
35625   if test -s conftest.err; then
35626     ac_cpp_err=$ac_c_preproc_warn_flag
35627     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35628   else
35629     ac_cpp_err=
35630   fi
35631 else
35632   ac_cpp_err=yes
35633 fi
35634 if test -z "$ac_cpp_err"; then
35635   ac_header_preproc=yes
35636 else
35637   echo "$as_me: failed program was:" >&5
35638 sed 's/^/| /' conftest.$ac_ext >&5
35639
35640   ac_header_preproc=no
35641 fi
35642 rm -f conftest.err conftest.$ac_ext
35643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35644 echo "${ECHO_T}$ac_header_preproc" >&6
35645
35646 # So?  What about this header?
35647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35648   yes:no: )
35649     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35653     ac_header_preproc=yes
35654     ;;
35655   no:yes:* )
35656     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35658     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35659 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35660     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35662     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35663 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35666     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35668     (
35669       cat <<\_ASBOX
35670 ## --------------------------------------------- ##
35671 ## Report this to <http://www.openldap.org/its/> ##
35672 ## --------------------------------------------- ##
35673 _ASBOX
35674     ) |
35675       sed "s/^/$as_me: WARNING:     /" >&2
35676     ;;
35677 esac
35678 echo "$as_me:$LINENO: checking for $ac_header" >&5
35679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35681   echo $ECHO_N "(cached) $ECHO_C" >&6
35682 else
35683   eval "$as_ac_Header=\$ac_header_preproc"
35684 fi
35685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35687
35688 fi
35689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35690   cat >>confdefs.h <<_ACEOF
35691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35692 _ACEOF
35693
35694 fi
35695
35696 done
35697
35698
35699 for ac_header in openssl/crypto.h
35700 do
35701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35703   echo "$as_me:$LINENO: checking for $ac_header" >&5
35704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35706   echo $ECHO_N "(cached) $ECHO_C" >&6
35707 fi
35708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35710 else
35711   # Is the header compilable?
35712 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35714 cat >conftest.$ac_ext <<_ACEOF
35715 /* confdefs.h.  */
35716 _ACEOF
35717 cat confdefs.h >>conftest.$ac_ext
35718 cat >>conftest.$ac_ext <<_ACEOF
35719 /* end confdefs.h.  */
35720 $ac_includes_default
35721 #include <$ac_header>
35722 _ACEOF
35723 rm -f conftest.$ac_objext
35724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35725   (eval $ac_compile) 2>conftest.er1
35726   ac_status=$?
35727   grep -v '^ *+' conftest.er1 >conftest.err
35728   rm -f conftest.er1
35729   cat conftest.err >&5
35730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35731   (exit $ac_status); } &&
35732          { ac_try='test -z "$ac_c_werror_flag"
35733                          || test ! -s conftest.err'
35734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35735   (eval $ac_try) 2>&5
35736   ac_status=$?
35737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35738   (exit $ac_status); }; } &&
35739          { ac_try='test -s conftest.$ac_objext'
35740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35741   (eval $ac_try) 2>&5
35742   ac_status=$?
35743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744   (exit $ac_status); }; }; then
35745   ac_header_compiler=yes
35746 else
35747   echo "$as_me: failed program was:" >&5
35748 sed 's/^/| /' conftest.$ac_ext >&5
35749
35750 ac_header_compiler=no
35751 fi
35752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35754 echo "${ECHO_T}$ac_header_compiler" >&6
35755
35756 # Is the header present?
35757 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35759 cat >conftest.$ac_ext <<_ACEOF
35760 /* confdefs.h.  */
35761 _ACEOF
35762 cat confdefs.h >>conftest.$ac_ext
35763 cat >>conftest.$ac_ext <<_ACEOF
35764 /* end confdefs.h.  */
35765 #include <$ac_header>
35766 _ACEOF
35767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35768   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35769   ac_status=$?
35770   grep -v '^ *+' conftest.er1 >conftest.err
35771   rm -f conftest.er1
35772   cat conftest.err >&5
35773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35774   (exit $ac_status); } >/dev/null; then
35775   if test -s conftest.err; then
35776     ac_cpp_err=$ac_c_preproc_warn_flag
35777     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35778   else
35779     ac_cpp_err=
35780   fi
35781 else
35782   ac_cpp_err=yes
35783 fi
35784 if test -z "$ac_cpp_err"; then
35785   ac_header_preproc=yes
35786 else
35787   echo "$as_me: failed program was:" >&5
35788 sed 's/^/| /' conftest.$ac_ext >&5
35789
35790   ac_header_preproc=no
35791 fi
35792 rm -f conftest.err conftest.$ac_ext
35793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35794 echo "${ECHO_T}$ac_header_preproc" >&6
35795
35796 # So?  What about this header?
35797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35798   yes:no: )
35799     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35803     ac_header_preproc=yes
35804     ;;
35805   no:yes:* )
35806     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35808     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35809 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35810     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35812     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35813 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35816     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35818     (
35819       cat <<\_ASBOX
35820 ## --------------------------------------------- ##
35821 ## Report this to <http://www.openldap.org/its/> ##
35822 ## --------------------------------------------- ##
35823 _ASBOX
35824     ) |
35825       sed "s/^/$as_me: WARNING:     /" >&2
35826     ;;
35827 esac
35828 echo "$as_me:$LINENO: checking for $ac_header" >&5
35829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35831   echo $ECHO_N "(cached) $ECHO_C" >&6
35832 else
35833   eval "$as_ac_Header=\$ac_header_preproc"
35834 fi
35835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35837
35838 fi
35839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35840   cat >>confdefs.h <<_ACEOF
35841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35842 _ACEOF
35843
35844 fi
35845
35846 done
35847
35848         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35849                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35850                 test "$ol_with_tls" = "found" ; then
35851                 ol_with_mp=bignum
35852
35853 cat >>confdefs.h <<\_ACEOF
35854 #define USE_MP_BIGNUM 1
35855 _ACEOF
35856
35857         elif test $ol_with_mp = bignum ; then
35858                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35859 echo "$as_me: error: bignum not available" >&2;}
35860    { (exit 1); exit 1; }; }
35861         fi
35862 fi
35863 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35864
35865 for ac_header in gmp.h
35866 do
35867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35869   echo "$as_me:$LINENO: checking for $ac_header" >&5
35870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35872   echo $ECHO_N "(cached) $ECHO_C" >&6
35873 fi
35874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35876 else
35877   # Is the header compilable?
35878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35880 cat >conftest.$ac_ext <<_ACEOF
35881 /* confdefs.h.  */
35882 _ACEOF
35883 cat confdefs.h >>conftest.$ac_ext
35884 cat >>conftest.$ac_ext <<_ACEOF
35885 /* end confdefs.h.  */
35886 $ac_includes_default
35887 #include <$ac_header>
35888 _ACEOF
35889 rm -f conftest.$ac_objext
35890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35891   (eval $ac_compile) 2>conftest.er1
35892   ac_status=$?
35893   grep -v '^ *+' conftest.er1 >conftest.err
35894   rm -f conftest.er1
35895   cat conftest.err >&5
35896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35897   (exit $ac_status); } &&
35898          { ac_try='test -z "$ac_c_werror_flag"
35899                          || test ! -s conftest.err'
35900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35901   (eval $ac_try) 2>&5
35902   ac_status=$?
35903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35904   (exit $ac_status); }; } &&
35905          { ac_try='test -s conftest.$ac_objext'
35906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35907   (eval $ac_try) 2>&5
35908   ac_status=$?
35909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910   (exit $ac_status); }; }; then
35911   ac_header_compiler=yes
35912 else
35913   echo "$as_me: failed program was:" >&5
35914 sed 's/^/| /' conftest.$ac_ext >&5
35915
35916 ac_header_compiler=no
35917 fi
35918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35920 echo "${ECHO_T}$ac_header_compiler" >&6
35921
35922 # Is the header present?
35923 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35925 cat >conftest.$ac_ext <<_ACEOF
35926 /* confdefs.h.  */
35927 _ACEOF
35928 cat confdefs.h >>conftest.$ac_ext
35929 cat >>conftest.$ac_ext <<_ACEOF
35930 /* end confdefs.h.  */
35931 #include <$ac_header>
35932 _ACEOF
35933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35935   ac_status=$?
35936   grep -v '^ *+' conftest.er1 >conftest.err
35937   rm -f conftest.er1
35938   cat conftest.err >&5
35939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35940   (exit $ac_status); } >/dev/null; then
35941   if test -s conftest.err; then
35942     ac_cpp_err=$ac_c_preproc_warn_flag
35943     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35944   else
35945     ac_cpp_err=
35946   fi
35947 else
35948   ac_cpp_err=yes
35949 fi
35950 if test -z "$ac_cpp_err"; then
35951   ac_header_preproc=yes
35952 else
35953   echo "$as_me: failed program was:" >&5
35954 sed 's/^/| /' conftest.$ac_ext >&5
35955
35956   ac_header_preproc=no
35957 fi
35958 rm -f conftest.err conftest.$ac_ext
35959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35960 echo "${ECHO_T}$ac_header_preproc" >&6
35961
35962 # So?  What about this header?
35963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35964   yes:no: )
35965     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35969     ac_header_preproc=yes
35970     ;;
35971   no:yes:* )
35972     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35974     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35975 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35976     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35978     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35979 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35982     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35984     (
35985       cat <<\_ASBOX
35986 ## --------------------------------------------- ##
35987 ## Report this to <http://www.openldap.org/its/> ##
35988 ## --------------------------------------------- ##
35989 _ASBOX
35990     ) |
35991       sed "s/^/$as_me: WARNING:     /" >&2
35992     ;;
35993 esac
35994 echo "$as_me:$LINENO: checking for $ac_header" >&5
35995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35997   echo $ECHO_N "(cached) $ECHO_C" >&6
35998 else
35999   eval "$as_ac_Header=\$ac_header_preproc"
36000 fi
36001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36003
36004 fi
36005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36006   cat >>confdefs.h <<_ACEOF
36007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36008 _ACEOF
36009
36010 fi
36011
36012 done
36013
36014
36015 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36016 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36017 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36018   echo $ECHO_N "(cached) $ECHO_C" >&6
36019 else
36020   ac_check_lib_save_LIBS=$LIBS
36021 LIBS="-lgmp  $LIBS"
36022 cat >conftest.$ac_ext <<_ACEOF
36023 /* confdefs.h.  */
36024 _ACEOF
36025 cat confdefs.h >>conftest.$ac_ext
36026 cat >>conftest.$ac_ext <<_ACEOF
36027 /* end confdefs.h.  */
36028
36029 /* Override any gcc2 internal prototype to avoid an error.  */
36030 #ifdef __cplusplus
36031 extern "C"
36032 #endif
36033 /* We use char because int might match the return type of a gcc2
36034    builtin and then its argument prototype would still apply.  */
36035 char __gmpz_add_ui ();
36036 int
36037 main ()
36038 {
36039 __gmpz_add_ui ();
36040   ;
36041   return 0;
36042 }
36043 _ACEOF
36044 rm -f conftest.$ac_objext conftest$ac_exeext
36045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36046   (eval $ac_link) 2>conftest.er1
36047   ac_status=$?
36048   grep -v '^ *+' conftest.er1 >conftest.err
36049   rm -f conftest.er1
36050   cat conftest.err >&5
36051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36052   (exit $ac_status); } &&
36053          { ac_try='test -z "$ac_c_werror_flag"
36054                          || test ! -s conftest.err'
36055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36056   (eval $ac_try) 2>&5
36057   ac_status=$?
36058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36059   (exit $ac_status); }; } &&
36060          { ac_try='test -s conftest$ac_exeext'
36061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36062   (eval $ac_try) 2>&5
36063   ac_status=$?
36064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065   (exit $ac_status); }; }; then
36066   ac_cv_lib_gmp___gmpz_add_ui=yes
36067 else
36068   echo "$as_me: failed program was:" >&5
36069 sed 's/^/| /' conftest.$ac_ext >&5
36070
36071 ac_cv_lib_gmp___gmpz_add_ui=no
36072 fi
36073 rm -f conftest.err conftest.$ac_objext \
36074       conftest$ac_exeext conftest.$ac_ext
36075 LIBS=$ac_check_lib_save_LIBS
36076 fi
36077 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36078 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36079 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36080   cat >>confdefs.h <<_ACEOF
36081 #define HAVE_LIBGMP 1
36082 _ACEOF
36083
36084   LIBS="-lgmp $LIBS"
36085
36086 fi
36087
36088         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36089
36090 cat >>confdefs.h <<\_ACEOF
36091 #define USE_MP_GMP 1
36092 _ACEOF
36093
36094                 ol_with_mp=gmp
36095         elif test $ol_with_mp = gmp ; then
36096                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36097 echo "$as_me: error: gmp not available" >&2;}
36098    { (exit 1); exit 1; }; }
36099         fi
36100 fi
36101 if test $ol_with_mp = auto ; then
36102         ol_with_mp=no
36103 fi
36104
36105 echo "$as_me:$LINENO: checking for working memcmp" >&5
36106 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
36107 if test "${ac_cv_func_memcmp_working+set}" = set; then
36108   echo $ECHO_N "(cached) $ECHO_C" >&6
36109 else
36110   if test "$cross_compiling" = yes; then
36111   ac_cv_func_memcmp_working=no
36112 else
36113   cat >conftest.$ac_ext <<_ACEOF
36114 /* confdefs.h.  */
36115 _ACEOF
36116 cat confdefs.h >>conftest.$ac_ext
36117 cat >>conftest.$ac_ext <<_ACEOF
36118 /* end confdefs.h.  */
36119 $ac_includes_default
36120 int
36121 main ()
36122 {
36123
36124   /* Some versions of memcmp are not 8-bit clean.  */
36125   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
36126   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36127     exit (1);
36128
36129   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36130      or more and with at least one buffer not starting on a 4-byte boundary.
36131      William Lewis provided this test program.   */
36132   {
36133     char foo[21];
36134     char bar[21];
36135     int i;
36136     for (i = 0; i < 4; i++)
36137       {
36138         char *a = foo + i;
36139         char *b = bar + i;
36140         strcpy (a, "--------01111111");
36141         strcpy (b, "--------10000000");
36142         if (memcmp (a, b, 16) >= 0)
36143           exit (1);
36144       }
36145     exit (0);
36146   }
36147
36148   ;
36149   return 0;
36150 }
36151 _ACEOF
36152 rm -f conftest$ac_exeext
36153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36154   (eval $ac_link) 2>&5
36155   ac_status=$?
36156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36159   (eval $ac_try) 2>&5
36160   ac_status=$?
36161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36162   (exit $ac_status); }; }; then
36163   ac_cv_func_memcmp_working=yes
36164 else
36165   echo "$as_me: program exited with status $ac_status" >&5
36166 echo "$as_me: failed program was:" >&5
36167 sed 's/^/| /' conftest.$ac_ext >&5
36168
36169 ( exit $ac_status )
36170 ac_cv_func_memcmp_working=no
36171 fi
36172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36173 fi
36174 fi
36175 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36176 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
36177 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
36178     "memcmp.$ac_objext"   | \
36179   *" memcmp.$ac_objext"   | \
36180     "memcmp.$ac_objext "* | \
36181   *" memcmp.$ac_objext "* ) ;;
36182   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
36183 esac
36184
36185
36186
36187 if test $ac_cv_func_memcmp_working = no ; then
36188
36189 cat >>confdefs.h <<\_ACEOF
36190 #define NEED_MEMCMP_REPLACEMENT 1
36191 _ACEOF
36192
36193 fi
36194
36195
36196 for ac_func in strftime
36197 do
36198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36199 echo "$as_me:$LINENO: checking for $ac_func" >&5
36200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36201 if eval "test \"\${$as_ac_var+set}\" = set"; then
36202   echo $ECHO_N "(cached) $ECHO_C" >&6
36203 else
36204   cat >conftest.$ac_ext <<_ACEOF
36205 /* confdefs.h.  */
36206 _ACEOF
36207 cat confdefs.h >>conftest.$ac_ext
36208 cat >>conftest.$ac_ext <<_ACEOF
36209 /* end confdefs.h.  */
36210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36212 #define $ac_func innocuous_$ac_func
36213
36214 /* System header to define __stub macros and hopefully few prototypes,
36215     which can conflict with char $ac_func (); below.
36216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36217     <limits.h> exists even on freestanding compilers.  */
36218
36219 #ifdef __STDC__
36220 # include <limits.h>
36221 #else
36222 # include <assert.h>
36223 #endif
36224
36225 #undef $ac_func
36226
36227 /* Override any gcc2 internal prototype to avoid an error.  */
36228 #ifdef __cplusplus
36229 extern "C"
36230 {
36231 #endif
36232 /* We use char because int might match the return type of a gcc2
36233    builtin and then its argument prototype would still apply.  */
36234 char $ac_func ();
36235 /* The GNU C library defines this for functions which it implements
36236     to always fail with ENOSYS.  Some functions are actually named
36237     something starting with __ and the normal name is an alias.  */
36238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36239 choke me
36240 #else
36241 char (*f) () = $ac_func;
36242 #endif
36243 #ifdef __cplusplus
36244 }
36245 #endif
36246
36247 int
36248 main ()
36249 {
36250 return f != $ac_func;
36251   ;
36252   return 0;
36253 }
36254 _ACEOF
36255 rm -f conftest.$ac_objext conftest$ac_exeext
36256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36257   (eval $ac_link) 2>conftest.er1
36258   ac_status=$?
36259   grep -v '^ *+' conftest.er1 >conftest.err
36260   rm -f conftest.er1
36261   cat conftest.err >&5
36262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36263   (exit $ac_status); } &&
36264          { ac_try='test -z "$ac_c_werror_flag"
36265                          || test ! -s conftest.err'
36266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36267   (eval $ac_try) 2>&5
36268   ac_status=$?
36269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36270   (exit $ac_status); }; } &&
36271          { ac_try='test -s conftest$ac_exeext'
36272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36273   (eval $ac_try) 2>&5
36274   ac_status=$?
36275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276   (exit $ac_status); }; }; then
36277   eval "$as_ac_var=yes"
36278 else
36279   echo "$as_me: failed program was:" >&5
36280 sed 's/^/| /' conftest.$ac_ext >&5
36281
36282 eval "$as_ac_var=no"
36283 fi
36284 rm -f conftest.err conftest.$ac_objext \
36285       conftest$ac_exeext conftest.$ac_ext
36286 fi
36287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36289 if test `eval echo '${'$as_ac_var'}'` = yes; then
36290   cat >>confdefs.h <<_ACEOF
36291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36292 _ACEOF
36293
36294 else
36295   # strftime is in -lintl on SCO UNIX.
36296 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36297 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
36298 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36299   echo $ECHO_N "(cached) $ECHO_C" >&6
36300 else
36301   ac_check_lib_save_LIBS=$LIBS
36302 LIBS="-lintl  $LIBS"
36303 cat >conftest.$ac_ext <<_ACEOF
36304 /* confdefs.h.  */
36305 _ACEOF
36306 cat confdefs.h >>conftest.$ac_ext
36307 cat >>conftest.$ac_ext <<_ACEOF
36308 /* end confdefs.h.  */
36309
36310 /* Override any gcc2 internal prototype to avoid an error.  */
36311 #ifdef __cplusplus
36312 extern "C"
36313 #endif
36314 /* We use char because int might match the return type of a gcc2
36315    builtin and then its argument prototype would still apply.  */
36316 char strftime ();
36317 int
36318 main ()
36319 {
36320 strftime ();
36321   ;
36322   return 0;
36323 }
36324 _ACEOF
36325 rm -f conftest.$ac_objext conftest$ac_exeext
36326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36327   (eval $ac_link) 2>conftest.er1
36328   ac_status=$?
36329   grep -v '^ *+' conftest.er1 >conftest.err
36330   rm -f conftest.er1
36331   cat conftest.err >&5
36332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333   (exit $ac_status); } &&
36334          { ac_try='test -z "$ac_c_werror_flag"
36335                          || test ! -s conftest.err'
36336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36337   (eval $ac_try) 2>&5
36338   ac_status=$?
36339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36340   (exit $ac_status); }; } &&
36341          { ac_try='test -s conftest$ac_exeext'
36342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36343   (eval $ac_try) 2>&5
36344   ac_status=$?
36345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36346   (exit $ac_status); }; }; then
36347   ac_cv_lib_intl_strftime=yes
36348 else
36349   echo "$as_me: failed program was:" >&5
36350 sed 's/^/| /' conftest.$ac_ext >&5
36351
36352 ac_cv_lib_intl_strftime=no
36353 fi
36354 rm -f conftest.err conftest.$ac_objext \
36355       conftest$ac_exeext conftest.$ac_ext
36356 LIBS=$ac_check_lib_save_LIBS
36357 fi
36358 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36359 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
36360 if test $ac_cv_lib_intl_strftime = yes; then
36361   cat >>confdefs.h <<\_ACEOF
36362 #define HAVE_STRFTIME 1
36363 _ACEOF
36364
36365 LIBS="-lintl $LIBS"
36366 fi
36367
36368 fi
36369 done
36370
36371
36372 echo "$as_me:$LINENO: checking for inet_aton()" >&5
36373 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
36374 if test "${ol_cv_func_inet_aton+set}" = set; then
36375   echo $ECHO_N "(cached) $ECHO_C" >&6
36376 else
36377   cat >conftest.$ac_ext <<_ACEOF
36378 /* confdefs.h.  */
36379 _ACEOF
36380 cat confdefs.h >>conftest.$ac_ext
36381 cat >>conftest.$ac_ext <<_ACEOF
36382 /* end confdefs.h.  */
36383
36384 #ifdef HAVE_SYS_TYPES_H
36385 #       include <sys/types.h>
36386 #endif
36387 #ifdef HAVE_SYS_SOCKET_H
36388 #       include <sys/socket.h>
36389 #       ifdef HAVE_SYS_SELECT_H
36390 #               include <sys/select.h>
36391 #       endif
36392 #       include <netinet/in.h>
36393 #       ifdef HAVE_ARPA_INET_H
36394 #               include <arpa/inet.h>
36395 #       endif
36396 #endif
36397
36398 int
36399 main ()
36400 {
36401 struct in_addr in;
36402 int rc = inet_aton( "255.255.255.255", &in );
36403   ;
36404   return 0;
36405 }
36406 _ACEOF
36407 rm -f conftest.$ac_objext conftest$ac_exeext
36408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36409   (eval $ac_link) 2>conftest.er1
36410   ac_status=$?
36411   grep -v '^ *+' conftest.er1 >conftest.err
36412   rm -f conftest.er1
36413   cat conftest.err >&5
36414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415   (exit $ac_status); } &&
36416          { ac_try='test -z "$ac_c_werror_flag"
36417                          || test ! -s conftest.err'
36418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36419   (eval $ac_try) 2>&5
36420   ac_status=$?
36421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422   (exit $ac_status); }; } &&
36423          { ac_try='test -s conftest$ac_exeext'
36424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36425   (eval $ac_try) 2>&5
36426   ac_status=$?
36427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428   (exit $ac_status); }; }; then
36429   ol_cv_func_inet_aton=yes
36430 else
36431   echo "$as_me: failed program was:" >&5
36432 sed 's/^/| /' conftest.$ac_ext >&5
36433
36434 ol_cv_func_inet_aton=no
36435 fi
36436 rm -f conftest.err conftest.$ac_objext \
36437       conftest$ac_exeext conftest.$ac_ext
36438 fi
36439 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36440 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
36441   if test $ol_cv_func_inet_aton != no; then
36442
36443 cat >>confdefs.h <<\_ACEOF
36444 #define HAVE_INET_ATON 1
36445 _ACEOF
36446
36447   fi
36448
36449
36450 echo "$as_me:$LINENO: checking for _spawnlp" >&5
36451 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
36452 if test "${ac_cv_func__spawnlp+set}" = set; then
36453   echo $ECHO_N "(cached) $ECHO_C" >&6
36454 else
36455   cat >conftest.$ac_ext <<_ACEOF
36456 /* confdefs.h.  */
36457 _ACEOF
36458 cat confdefs.h >>conftest.$ac_ext
36459 cat >>conftest.$ac_ext <<_ACEOF
36460 /* end confdefs.h.  */
36461 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36463 #define _spawnlp innocuous__spawnlp
36464
36465 /* System header to define __stub macros and hopefully few prototypes,
36466     which can conflict with char _spawnlp (); below.
36467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36468     <limits.h> exists even on freestanding compilers.  */
36469
36470 #ifdef __STDC__
36471 # include <limits.h>
36472 #else
36473 # include <assert.h>
36474 #endif
36475
36476 #undef _spawnlp
36477
36478 /* Override any gcc2 internal prototype to avoid an error.  */
36479 #ifdef __cplusplus
36480 extern "C"
36481 {
36482 #endif
36483 /* We use char because int might match the return type of a gcc2
36484    builtin and then its argument prototype would still apply.  */
36485 char _spawnlp ();
36486 /* The GNU C library defines this for functions which it implements
36487     to always fail with ENOSYS.  Some functions are actually named
36488     something starting with __ and the normal name is an alias.  */
36489 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
36490 choke me
36491 #else
36492 char (*f) () = _spawnlp;
36493 #endif
36494 #ifdef __cplusplus
36495 }
36496 #endif
36497
36498 int
36499 main ()
36500 {
36501 return f != _spawnlp;
36502   ;
36503   return 0;
36504 }
36505 _ACEOF
36506 rm -f conftest.$ac_objext conftest$ac_exeext
36507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36508   (eval $ac_link) 2>conftest.er1
36509   ac_status=$?
36510   grep -v '^ *+' conftest.er1 >conftest.err
36511   rm -f conftest.er1
36512   cat conftest.err >&5
36513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36514   (exit $ac_status); } &&
36515          { ac_try='test -z "$ac_c_werror_flag"
36516                          || test ! -s conftest.err'
36517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36518   (eval $ac_try) 2>&5
36519   ac_status=$?
36520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36521   (exit $ac_status); }; } &&
36522          { ac_try='test -s conftest$ac_exeext'
36523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36524   (eval $ac_try) 2>&5
36525   ac_status=$?
36526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527   (exit $ac_status); }; }; then
36528   ac_cv_func__spawnlp=yes
36529 else
36530   echo "$as_me: failed program was:" >&5
36531 sed 's/^/| /' conftest.$ac_ext >&5
36532
36533 ac_cv_func__spawnlp=no
36534 fi
36535 rm -f conftest.err conftest.$ac_objext \
36536       conftest$ac_exeext conftest.$ac_ext
36537 fi
36538 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36539 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
36540 if test $ac_cv_func__spawnlp = yes; then
36541
36542 cat >>confdefs.h <<\_ACEOF
36543 #define HAVE_SPAWNLP 1
36544 _ACEOF
36545
36546 fi
36547
36548
36549 echo "$as_me:$LINENO: checking for _snprintf" >&5
36550 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
36551 if test "${ac_cv_func__snprintf+set}" = set; then
36552   echo $ECHO_N "(cached) $ECHO_C" >&6
36553 else
36554   cat >conftest.$ac_ext <<_ACEOF
36555 /* confdefs.h.  */
36556 _ACEOF
36557 cat confdefs.h >>conftest.$ac_ext
36558 cat >>conftest.$ac_ext <<_ACEOF
36559 /* end confdefs.h.  */
36560 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36562 #define _snprintf innocuous__snprintf
36563
36564 /* System header to define __stub macros and hopefully few prototypes,
36565     which can conflict with char _snprintf (); below.
36566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36567     <limits.h> exists even on freestanding compilers.  */
36568
36569 #ifdef __STDC__
36570 # include <limits.h>
36571 #else
36572 # include <assert.h>
36573 #endif
36574
36575 #undef _snprintf
36576
36577 /* Override any gcc2 internal prototype to avoid an error.  */
36578 #ifdef __cplusplus
36579 extern "C"
36580 {
36581 #endif
36582 /* We use char because int might match the return type of a gcc2
36583    builtin and then its argument prototype would still apply.  */
36584 char _snprintf ();
36585 /* The GNU C library defines this for functions which it implements
36586     to always fail with ENOSYS.  Some functions are actually named
36587     something starting with __ and the normal name is an alias.  */
36588 #if defined (__stub__snprintf) || defined (__stub____snprintf)
36589 choke me
36590 #else
36591 char (*f) () = _snprintf;
36592 #endif
36593 #ifdef __cplusplus
36594 }
36595 #endif
36596
36597 int
36598 main ()
36599 {
36600 return f != _snprintf;
36601   ;
36602   return 0;
36603 }
36604 _ACEOF
36605 rm -f conftest.$ac_objext conftest$ac_exeext
36606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36607   (eval $ac_link) 2>conftest.er1
36608   ac_status=$?
36609   grep -v '^ *+' conftest.er1 >conftest.err
36610   rm -f conftest.er1
36611   cat conftest.err >&5
36612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36613   (exit $ac_status); } &&
36614          { ac_try='test -z "$ac_c_werror_flag"
36615                          || test ! -s conftest.err'
36616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36617   (eval $ac_try) 2>&5
36618   ac_status=$?
36619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36620   (exit $ac_status); }; } &&
36621          { ac_try='test -s conftest$ac_exeext'
36622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36623   (eval $ac_try) 2>&5
36624   ac_status=$?
36625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36626   (exit $ac_status); }; }; then
36627   ac_cv_func__snprintf=yes
36628 else
36629   echo "$as_me: failed program was:" >&5
36630 sed 's/^/| /' conftest.$ac_ext >&5
36631
36632 ac_cv_func__snprintf=no
36633 fi
36634 rm -f conftest.err conftest.$ac_objext \
36635       conftest$ac_exeext conftest.$ac_ext
36636 fi
36637 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36638 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
36639 if test $ac_cv_func__snprintf = yes; then
36640   ac_cv_func_snprintf=yes
36641
36642 cat >>confdefs.h <<\_ACEOF
36643 #define snprintf _snprintf
36644 _ACEOF
36645
36646
36647 fi
36648
36649
36650 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
36651 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
36652 if test "${ac_cv_func__vsnprintf+set}" = set; then
36653   echo $ECHO_N "(cached) $ECHO_C" >&6
36654 else
36655   cat >conftest.$ac_ext <<_ACEOF
36656 /* confdefs.h.  */
36657 _ACEOF
36658 cat confdefs.h >>conftest.$ac_ext
36659 cat >>conftest.$ac_ext <<_ACEOF
36660 /* end confdefs.h.  */
36661 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
36662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36663 #define _vsnprintf innocuous__vsnprintf
36664
36665 /* System header to define __stub macros and hopefully few prototypes,
36666     which can conflict with char _vsnprintf (); below.
36667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36668     <limits.h> exists even on freestanding compilers.  */
36669
36670 #ifdef __STDC__
36671 # include <limits.h>
36672 #else
36673 # include <assert.h>
36674 #endif
36675
36676 #undef _vsnprintf
36677
36678 /* Override any gcc2 internal prototype to avoid an error.  */
36679 #ifdef __cplusplus
36680 extern "C"
36681 {
36682 #endif
36683 /* We use char because int might match the return type of a gcc2
36684    builtin and then its argument prototype would still apply.  */
36685 char _vsnprintf ();
36686 /* The GNU C library defines this for functions which it implements
36687     to always fail with ENOSYS.  Some functions are actually named
36688     something starting with __ and the normal name is an alias.  */
36689 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
36690 choke me
36691 #else
36692 char (*f) () = _vsnprintf;
36693 #endif
36694 #ifdef __cplusplus
36695 }
36696 #endif
36697
36698 int
36699 main ()
36700 {
36701 return f != _vsnprintf;
36702   ;
36703   return 0;
36704 }
36705 _ACEOF
36706 rm -f conftest.$ac_objext conftest$ac_exeext
36707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36708   (eval $ac_link) 2>conftest.er1
36709   ac_status=$?
36710   grep -v '^ *+' conftest.er1 >conftest.err
36711   rm -f conftest.er1
36712   cat conftest.err >&5
36713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36714   (exit $ac_status); } &&
36715          { ac_try='test -z "$ac_c_werror_flag"
36716                          || test ! -s conftest.err'
36717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36718   (eval $ac_try) 2>&5
36719   ac_status=$?
36720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36721   (exit $ac_status); }; } &&
36722          { ac_try='test -s conftest$ac_exeext'
36723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36724   (eval $ac_try) 2>&5
36725   ac_status=$?
36726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727   (exit $ac_status); }; }; then
36728   ac_cv_func__vsnprintf=yes
36729 else
36730   echo "$as_me: failed program was:" >&5
36731 sed 's/^/| /' conftest.$ac_ext >&5
36732
36733 ac_cv_func__vsnprintf=no
36734 fi
36735 rm -f conftest.err conftest.$ac_objext \
36736       conftest$ac_exeext conftest.$ac_ext
36737 fi
36738 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
36739 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
36740 if test $ac_cv_func__vsnprintf = yes; then
36741   ac_cv_func_vsnprintf=yes
36742
36743 cat >>confdefs.h <<\_ACEOF
36744 #define vsnprintf _vsnprintf
36745 _ACEOF
36746
36747
36748 fi
36749
36750
36751
36752 for ac_func in vprintf
36753 do
36754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36755 echo "$as_me:$LINENO: checking for $ac_func" >&5
36756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36757 if eval "test \"\${$as_ac_var+set}\" = set"; then
36758   echo $ECHO_N "(cached) $ECHO_C" >&6
36759 else
36760   cat >conftest.$ac_ext <<_ACEOF
36761 /* confdefs.h.  */
36762 _ACEOF
36763 cat confdefs.h >>conftest.$ac_ext
36764 cat >>conftest.$ac_ext <<_ACEOF
36765 /* end confdefs.h.  */
36766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36768 #define $ac_func innocuous_$ac_func
36769
36770 /* System header to define __stub macros and hopefully few prototypes,
36771     which can conflict with char $ac_func (); below.
36772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36773     <limits.h> exists even on freestanding compilers.  */
36774
36775 #ifdef __STDC__
36776 # include <limits.h>
36777 #else
36778 # include <assert.h>
36779 #endif
36780
36781 #undef $ac_func
36782
36783 /* Override any gcc2 internal prototype to avoid an error.  */
36784 #ifdef __cplusplus
36785 extern "C"
36786 {
36787 #endif
36788 /* We use char because int might match the return type of a gcc2
36789    builtin and then its argument prototype would still apply.  */
36790 char $ac_func ();
36791 /* The GNU C library defines this for functions which it implements
36792     to always fail with ENOSYS.  Some functions are actually named
36793     something starting with __ and the normal name is an alias.  */
36794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36795 choke me
36796 #else
36797 char (*f) () = $ac_func;
36798 #endif
36799 #ifdef __cplusplus
36800 }
36801 #endif
36802
36803 int
36804 main ()
36805 {
36806 return f != $ac_func;
36807   ;
36808   return 0;
36809 }
36810 _ACEOF
36811 rm -f conftest.$ac_objext conftest$ac_exeext
36812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36813   (eval $ac_link) 2>conftest.er1
36814   ac_status=$?
36815   grep -v '^ *+' conftest.er1 >conftest.err
36816   rm -f conftest.er1
36817   cat conftest.err >&5
36818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819   (exit $ac_status); } &&
36820          { ac_try='test -z "$ac_c_werror_flag"
36821                          || test ! -s conftest.err'
36822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36823   (eval $ac_try) 2>&5
36824   ac_status=$?
36825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826   (exit $ac_status); }; } &&
36827          { ac_try='test -s conftest$ac_exeext'
36828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36829   (eval $ac_try) 2>&5
36830   ac_status=$?
36831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36832   (exit $ac_status); }; }; then
36833   eval "$as_ac_var=yes"
36834 else
36835   echo "$as_me: failed program was:" >&5
36836 sed 's/^/| /' conftest.$ac_ext >&5
36837
36838 eval "$as_ac_var=no"
36839 fi
36840 rm -f conftest.err conftest.$ac_objext \
36841       conftest$ac_exeext conftest.$ac_ext
36842 fi
36843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36845 if test `eval echo '${'$as_ac_var'}'` = yes; then
36846   cat >>confdefs.h <<_ACEOF
36847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36848 _ACEOF
36849
36850 echo "$as_me:$LINENO: checking for _doprnt" >&5
36851 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
36852 if test "${ac_cv_func__doprnt+set}" = set; then
36853   echo $ECHO_N "(cached) $ECHO_C" >&6
36854 else
36855   cat >conftest.$ac_ext <<_ACEOF
36856 /* confdefs.h.  */
36857 _ACEOF
36858 cat confdefs.h >>conftest.$ac_ext
36859 cat >>conftest.$ac_ext <<_ACEOF
36860 /* end confdefs.h.  */
36861 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36863 #define _doprnt innocuous__doprnt
36864
36865 /* System header to define __stub macros and hopefully few prototypes,
36866     which can conflict with char _doprnt (); below.
36867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36868     <limits.h> exists even on freestanding compilers.  */
36869
36870 #ifdef __STDC__
36871 # include <limits.h>
36872 #else
36873 # include <assert.h>
36874 #endif
36875
36876 #undef _doprnt
36877
36878 /* Override any gcc2 internal prototype to avoid an error.  */
36879 #ifdef __cplusplus
36880 extern "C"
36881 {
36882 #endif
36883 /* We use char because int might match the return type of a gcc2
36884    builtin and then its argument prototype would still apply.  */
36885 char _doprnt ();
36886 /* The GNU C library defines this for functions which it implements
36887     to always fail with ENOSYS.  Some functions are actually named
36888     something starting with __ and the normal name is an alias.  */
36889 #if defined (__stub__doprnt) || defined (__stub____doprnt)
36890 choke me
36891 #else
36892 char (*f) () = _doprnt;
36893 #endif
36894 #ifdef __cplusplus
36895 }
36896 #endif
36897
36898 int
36899 main ()
36900 {
36901 return f != _doprnt;
36902   ;
36903   return 0;
36904 }
36905 _ACEOF
36906 rm -f conftest.$ac_objext conftest$ac_exeext
36907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36908   (eval $ac_link) 2>conftest.er1
36909   ac_status=$?
36910   grep -v '^ *+' conftest.er1 >conftest.err
36911   rm -f conftest.er1
36912   cat conftest.err >&5
36913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36914   (exit $ac_status); } &&
36915          { ac_try='test -z "$ac_c_werror_flag"
36916                          || test ! -s conftest.err'
36917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36918   (eval $ac_try) 2>&5
36919   ac_status=$?
36920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36921   (exit $ac_status); }; } &&
36922          { ac_try='test -s conftest$ac_exeext'
36923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36924   (eval $ac_try) 2>&5
36925   ac_status=$?
36926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36927   (exit $ac_status); }; }; then
36928   ac_cv_func__doprnt=yes
36929 else
36930   echo "$as_me: failed program was:" >&5
36931 sed 's/^/| /' conftest.$ac_ext >&5
36932
36933 ac_cv_func__doprnt=no
36934 fi
36935 rm -f conftest.err conftest.$ac_objext \
36936       conftest$ac_exeext conftest.$ac_ext
36937 fi
36938 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36939 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
36940 if test $ac_cv_func__doprnt = yes; then
36941
36942 cat >>confdefs.h <<\_ACEOF
36943 #define HAVE_DOPRNT 1
36944 _ACEOF
36945
36946 fi
36947
36948 fi
36949 done
36950
36951
36952
36953 if test $ac_cv_func_vprintf = yes ; then
36954
36955
36956 for ac_func in snprintf vsnprintf
36957 do
36958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36959 echo "$as_me:$LINENO: checking for $ac_func" >&5
36960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36961 if eval "test \"\${$as_ac_var+set}\" = set"; then
36962   echo $ECHO_N "(cached) $ECHO_C" >&6
36963 else
36964   cat >conftest.$ac_ext <<_ACEOF
36965 /* confdefs.h.  */
36966 _ACEOF
36967 cat confdefs.h >>conftest.$ac_ext
36968 cat >>conftest.$ac_ext <<_ACEOF
36969 /* end confdefs.h.  */
36970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36972 #define $ac_func innocuous_$ac_func
36973
36974 /* System header to define __stub macros and hopefully few prototypes,
36975     which can conflict with char $ac_func (); below.
36976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36977     <limits.h> exists even on freestanding compilers.  */
36978
36979 #ifdef __STDC__
36980 # include <limits.h>
36981 #else
36982 # include <assert.h>
36983 #endif
36984
36985 #undef $ac_func
36986
36987 /* Override any gcc2 internal prototype to avoid an error.  */
36988 #ifdef __cplusplus
36989 extern "C"
36990 {
36991 #endif
36992 /* We use char because int might match the return type of a gcc2
36993    builtin and then its argument prototype would still apply.  */
36994 char $ac_func ();
36995 /* The GNU C library defines this for functions which it implements
36996     to always fail with ENOSYS.  Some functions are actually named
36997     something starting with __ and the normal name is an alias.  */
36998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36999 choke me
37000 #else
37001 char (*f) () = $ac_func;
37002 #endif
37003 #ifdef __cplusplus
37004 }
37005 #endif
37006
37007 int
37008 main ()
37009 {
37010 return f != $ac_func;
37011   ;
37012   return 0;
37013 }
37014 _ACEOF
37015 rm -f conftest.$ac_objext conftest$ac_exeext
37016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37017   (eval $ac_link) 2>conftest.er1
37018   ac_status=$?
37019   grep -v '^ *+' conftest.er1 >conftest.err
37020   rm -f conftest.er1
37021   cat conftest.err >&5
37022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37023   (exit $ac_status); } &&
37024          { ac_try='test -z "$ac_c_werror_flag"
37025                          || test ! -s conftest.err'
37026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37027   (eval $ac_try) 2>&5
37028   ac_status=$?
37029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37030   (exit $ac_status); }; } &&
37031          { ac_try='test -s conftest$ac_exeext'
37032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37033   (eval $ac_try) 2>&5
37034   ac_status=$?
37035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37036   (exit $ac_status); }; }; then
37037   eval "$as_ac_var=yes"
37038 else
37039   echo "$as_me: failed program was:" >&5
37040 sed 's/^/| /' conftest.$ac_ext >&5
37041
37042 eval "$as_ac_var=no"
37043 fi
37044 rm -f conftest.err conftest.$ac_objext \
37045       conftest$ac_exeext conftest.$ac_ext
37046 fi
37047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37049 if test `eval echo '${'$as_ac_var'}'` = yes; then
37050   cat >>confdefs.h <<_ACEOF
37051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37052 _ACEOF
37053
37054 fi
37055 done
37056
37057 fi
37058
37059
37060
37061
37062
37063
37064
37065
37066
37067
37068
37069
37070
37071
37072
37073
37074
37075
37076
37077
37078
37079
37080
37081
37082
37083
37084
37085
37086
37087
37088
37089
37090
37091
37092
37093
37094
37095
37096
37097
37098
37099
37100
37101
37102
37103
37104
37105
37106
37107
37108
37109
37110
37111
37112
37113
37114
37115 for ac_func in \
37116         bcopy                   \
37117         closesocket             \
37118         chroot                  \
37119         endgrent                \
37120         endpwent                \
37121         fcntl                   \
37122         flock                   \
37123         fstat                   \
37124         getdtablesize           \
37125         geteuid                 \
37126         getgrgid                \
37127         gethostname             \
37128         getpass                 \
37129         getpassphrase           \
37130         getpwuid                \
37131         getpwnam                \
37132         getspnam                \
37133         gettimeofday            \
37134         initgroups              \
37135         inet_ntoa_b             \
37136         ioctl                   \
37137         lockf                   \
37138         memcpy                  \
37139         memmove                 \
37140         memrchr                 \
37141         mkstemp                 \
37142         mktemp                  \
37143         pipe                    \
37144         read                    \
37145         recv                    \
37146         recvfrom                \
37147         setpwfile               \
37148         setgid                  \
37149         setegid                 \
37150         setsid                  \
37151         setuid                  \
37152         seteuid                 \
37153         signal                  \
37154         strdup                  \
37155         strpbrk                 \
37156         strrchr                 \
37157         strsep                  \
37158         strstr                  \
37159         strtol                  \
37160         strtoul                 \
37161         strtoq                  \
37162         strtouq                 \
37163         strtoll                 \
37164         strspn                  \
37165         sysconf                 \
37166         waitpid                 \
37167         wait4                   \
37168         write                   \
37169         send                    \
37170         sendmsg                 \
37171         sendto                  \
37172
37173 do
37174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37175 echo "$as_me:$LINENO: checking for $ac_func" >&5
37176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37177 if eval "test \"\${$as_ac_var+set}\" = set"; then
37178   echo $ECHO_N "(cached) $ECHO_C" >&6
37179 else
37180   cat >conftest.$ac_ext <<_ACEOF
37181 /* confdefs.h.  */
37182 _ACEOF
37183 cat confdefs.h >>conftest.$ac_ext
37184 cat >>conftest.$ac_ext <<_ACEOF
37185 /* end confdefs.h.  */
37186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37188 #define $ac_func innocuous_$ac_func
37189
37190 /* System header to define __stub macros and hopefully few prototypes,
37191     which can conflict with char $ac_func (); below.
37192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37193     <limits.h> exists even on freestanding compilers.  */
37194
37195 #ifdef __STDC__
37196 # include <limits.h>
37197 #else
37198 # include <assert.h>
37199 #endif
37200
37201 #undef $ac_func
37202
37203 /* Override any gcc2 internal prototype to avoid an error.  */
37204 #ifdef __cplusplus
37205 extern "C"
37206 {
37207 #endif
37208 /* We use char because int might match the return type of a gcc2
37209    builtin and then its argument prototype would still apply.  */
37210 char $ac_func ();
37211 /* The GNU C library defines this for functions which it implements
37212     to always fail with ENOSYS.  Some functions are actually named
37213     something starting with __ and the normal name is an alias.  */
37214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37215 choke me
37216 #else
37217 char (*f) () = $ac_func;
37218 #endif
37219 #ifdef __cplusplus
37220 }
37221 #endif
37222
37223 int
37224 main ()
37225 {
37226 return f != $ac_func;
37227   ;
37228   return 0;
37229 }
37230 _ACEOF
37231 rm -f conftest.$ac_objext conftest$ac_exeext
37232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37233   (eval $ac_link) 2>conftest.er1
37234   ac_status=$?
37235   grep -v '^ *+' conftest.er1 >conftest.err
37236   rm -f conftest.er1
37237   cat conftest.err >&5
37238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37239   (exit $ac_status); } &&
37240          { ac_try='test -z "$ac_c_werror_flag"
37241                          || test ! -s conftest.err'
37242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37243   (eval $ac_try) 2>&5
37244   ac_status=$?
37245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37246   (exit $ac_status); }; } &&
37247          { ac_try='test -s conftest$ac_exeext'
37248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37249   (eval $ac_try) 2>&5
37250   ac_status=$?
37251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37252   (exit $ac_status); }; }; then
37253   eval "$as_ac_var=yes"
37254 else
37255   echo "$as_me: failed program was:" >&5
37256 sed 's/^/| /' conftest.$ac_ext >&5
37257
37258 eval "$as_ac_var=no"
37259 fi
37260 rm -f conftest.err conftest.$ac_objext \
37261       conftest$ac_exeext conftest.$ac_ext
37262 fi
37263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37265 if test `eval echo '${'$as_ac_var'}'` = yes; then
37266   cat >>confdefs.h <<_ACEOF
37267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37268 _ACEOF
37269
37270 fi
37271 done
37272
37273
37274
37275
37276 for ac_func in getopt getpeereid
37277 do
37278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37279 echo "$as_me:$LINENO: checking for $ac_func" >&5
37280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37281 if eval "test \"\${$as_ac_var+set}\" = set"; then
37282   echo $ECHO_N "(cached) $ECHO_C" >&6
37283 else
37284   cat >conftest.$ac_ext <<_ACEOF
37285 /* confdefs.h.  */
37286 _ACEOF
37287 cat confdefs.h >>conftest.$ac_ext
37288 cat >>conftest.$ac_ext <<_ACEOF
37289 /* end confdefs.h.  */
37290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37292 #define $ac_func innocuous_$ac_func
37293
37294 /* System header to define __stub macros and hopefully few prototypes,
37295     which can conflict with char $ac_func (); below.
37296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37297     <limits.h> exists even on freestanding compilers.  */
37298
37299 #ifdef __STDC__
37300 # include <limits.h>
37301 #else
37302 # include <assert.h>
37303 #endif
37304
37305 #undef $ac_func
37306
37307 /* Override any gcc2 internal prototype to avoid an error.  */
37308 #ifdef __cplusplus
37309 extern "C"
37310 {
37311 #endif
37312 /* We use char because int might match the return type of a gcc2
37313    builtin and then its argument prototype would still apply.  */
37314 char $ac_func ();
37315 /* The GNU C library defines this for functions which it implements
37316     to always fail with ENOSYS.  Some functions are actually named
37317     something starting with __ and the normal name is an alias.  */
37318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37319 choke me
37320 #else
37321 char (*f) () = $ac_func;
37322 #endif
37323 #ifdef __cplusplus
37324 }
37325 #endif
37326
37327 int
37328 main ()
37329 {
37330 return f != $ac_func;
37331   ;
37332   return 0;
37333 }
37334 _ACEOF
37335 rm -f conftest.$ac_objext conftest$ac_exeext
37336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37337   (eval $ac_link) 2>conftest.er1
37338   ac_status=$?
37339   grep -v '^ *+' conftest.er1 >conftest.err
37340   rm -f conftest.er1
37341   cat conftest.err >&5
37342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343   (exit $ac_status); } &&
37344          { ac_try='test -z "$ac_c_werror_flag"
37345                          || test ! -s conftest.err'
37346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37347   (eval $ac_try) 2>&5
37348   ac_status=$?
37349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37350   (exit $ac_status); }; } &&
37351          { ac_try='test -s conftest$ac_exeext'
37352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37353   (eval $ac_try) 2>&5
37354   ac_status=$?
37355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37356   (exit $ac_status); }; }; then
37357   eval "$as_ac_var=yes"
37358 else
37359   echo "$as_me: failed program was:" >&5
37360 sed 's/^/| /' conftest.$ac_ext >&5
37361
37362 eval "$as_ac_var=no"
37363 fi
37364 rm -f conftest.err conftest.$ac_objext \
37365       conftest$ac_exeext conftest.$ac_ext
37366 fi
37367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37369 if test `eval echo '${'$as_ac_var'}'` = yes; then
37370   cat >>confdefs.h <<_ACEOF
37371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37372 _ACEOF
37373
37374 else
37375   case $LIBOBJS in
37376     "$ac_func.$ac_objext"   | \
37377   *" $ac_func.$ac_objext"   | \
37378     "$ac_func.$ac_objext "* | \
37379   *" $ac_func.$ac_objext "* ) ;;
37380   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
37381 esac
37382
37383 fi
37384 done
37385
37386
37387
37388 if test "$ac_cv_func_getopt" != yes; then
37389         LIBSRCS="$LIBSRCS getopt.c"
37390 fi
37391
37392 if test "$ac_cv_func_getpeereid" != yes; then
37393
37394 for ac_func in getpeerucred
37395 do
37396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37397 echo "$as_me:$LINENO: checking for $ac_func" >&5
37398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37399 if eval "test \"\${$as_ac_var+set}\" = set"; then
37400   echo $ECHO_N "(cached) $ECHO_C" >&6
37401 else
37402   cat >conftest.$ac_ext <<_ACEOF
37403 /* confdefs.h.  */
37404 _ACEOF
37405 cat confdefs.h >>conftest.$ac_ext
37406 cat >>conftest.$ac_ext <<_ACEOF
37407 /* end confdefs.h.  */
37408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37409    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37410 #define $ac_func innocuous_$ac_func
37411
37412 /* System header to define __stub macros and hopefully few prototypes,
37413     which can conflict with char $ac_func (); below.
37414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37415     <limits.h> exists even on freestanding compilers.  */
37416
37417 #ifdef __STDC__
37418 # include <limits.h>
37419 #else
37420 # include <assert.h>
37421 #endif
37422
37423 #undef $ac_func
37424
37425 /* Override any gcc2 internal prototype to avoid an error.  */
37426 #ifdef __cplusplus
37427 extern "C"
37428 {
37429 #endif
37430 /* We use char because int might match the return type of a gcc2
37431    builtin and then its argument prototype would still apply.  */
37432 char $ac_func ();
37433 /* The GNU C library defines this for functions which it implements
37434     to always fail with ENOSYS.  Some functions are actually named
37435     something starting with __ and the normal name is an alias.  */
37436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37437 choke me
37438 #else
37439 char (*f) () = $ac_func;
37440 #endif
37441 #ifdef __cplusplus
37442 }
37443 #endif
37444
37445 int
37446 main ()
37447 {
37448 return f != $ac_func;
37449   ;
37450   return 0;
37451 }
37452 _ACEOF
37453 rm -f conftest.$ac_objext conftest$ac_exeext
37454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37455   (eval $ac_link) 2>conftest.er1
37456   ac_status=$?
37457   grep -v '^ *+' conftest.er1 >conftest.err
37458   rm -f conftest.er1
37459   cat conftest.err >&5
37460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37461   (exit $ac_status); } &&
37462          { ac_try='test -z "$ac_c_werror_flag"
37463                          || test ! -s conftest.err'
37464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37465   (eval $ac_try) 2>&5
37466   ac_status=$?
37467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37468   (exit $ac_status); }; } &&
37469          { ac_try='test -s conftest$ac_exeext'
37470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37471   (eval $ac_try) 2>&5
37472   ac_status=$?
37473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37474   (exit $ac_status); }; }; then
37475   eval "$as_ac_var=yes"
37476 else
37477   echo "$as_me: failed program was:" >&5
37478 sed 's/^/| /' conftest.$ac_ext >&5
37479
37480 eval "$as_ac_var=no"
37481 fi
37482 rm -f conftest.err conftest.$ac_objext \
37483       conftest$ac_exeext conftest.$ac_ext
37484 fi
37485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37487 if test `eval echo '${'$as_ac_var'}'` = yes; then
37488   cat >>confdefs.h <<_ACEOF
37489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37490 _ACEOF
37491
37492 fi
37493 done
37494
37495         if test "$ac_cv_func_getpeerucred" != yes ; then
37496                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37497 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
37498 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37499   echo $ECHO_N "(cached) $ECHO_C" >&6
37500 else
37501   cat >conftest.$ac_ext <<_ACEOF
37502 /* confdefs.h.  */
37503 _ACEOF
37504 cat confdefs.h >>conftest.$ac_ext
37505 cat >>conftest.$ac_ext <<_ACEOF
37506 /* end confdefs.h.  */
37507 $ac_includes_default
37508 #ifdef HAVE_SYS_SOCKET_H
37509 #include <sys/socket.h>
37510 #endif
37511
37512 int
37513 main ()
37514 {
37515 static struct msghdr ac_aggr;
37516 if (ac_aggr.msg_accrightslen)
37517 return 0;
37518   ;
37519   return 0;
37520 }
37521 _ACEOF
37522 rm -f conftest.$ac_objext
37523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37524   (eval $ac_compile) 2>conftest.er1
37525   ac_status=$?
37526   grep -v '^ *+' conftest.er1 >conftest.err
37527   rm -f conftest.er1
37528   cat conftest.err >&5
37529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37530   (exit $ac_status); } &&
37531          { ac_try='test -z "$ac_c_werror_flag"
37532                          || test ! -s conftest.err'
37533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37534   (eval $ac_try) 2>&5
37535   ac_status=$?
37536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37537   (exit $ac_status); }; } &&
37538          { ac_try='test -s conftest.$ac_objext'
37539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37540   (eval $ac_try) 2>&5
37541   ac_status=$?
37542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37543   (exit $ac_status); }; }; then
37544   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37545 else
37546   echo "$as_me: failed program was:" >&5
37547 sed 's/^/| /' conftest.$ac_ext >&5
37548
37549 cat >conftest.$ac_ext <<_ACEOF
37550 /* confdefs.h.  */
37551 _ACEOF
37552 cat confdefs.h >>conftest.$ac_ext
37553 cat >>conftest.$ac_ext <<_ACEOF
37554 /* end confdefs.h.  */
37555 $ac_includes_default
37556 #ifdef HAVE_SYS_SOCKET_H
37557 #include <sys/socket.h>
37558 #endif
37559
37560 int
37561 main ()
37562 {
37563 static struct msghdr ac_aggr;
37564 if (sizeof ac_aggr.msg_accrightslen)
37565 return 0;
37566   ;
37567   return 0;
37568 }
37569 _ACEOF
37570 rm -f conftest.$ac_objext
37571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37572   (eval $ac_compile) 2>conftest.er1
37573   ac_status=$?
37574   grep -v '^ *+' conftest.er1 >conftest.err
37575   rm -f conftest.er1
37576   cat conftest.err >&5
37577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37578   (exit $ac_status); } &&
37579          { ac_try='test -z "$ac_c_werror_flag"
37580                          || test ! -s conftest.err'
37581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37582   (eval $ac_try) 2>&5
37583   ac_status=$?
37584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37585   (exit $ac_status); }; } &&
37586          { ac_try='test -s conftest.$ac_objext'
37587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37588   (eval $ac_try) 2>&5
37589   ac_status=$?
37590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591   (exit $ac_status); }; }; then
37592   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37593 else
37594   echo "$as_me: failed program was:" >&5
37595 sed 's/^/| /' conftest.$ac_ext >&5
37596
37597 ac_cv_member_struct_msghdr_msg_accrightslen=no
37598 fi
37599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37600 fi
37601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37602 fi
37603 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37604 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
37605 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37606
37607 cat >>confdefs.h <<_ACEOF
37608 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37609 _ACEOF
37610
37611
37612 fi
37613
37614                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37615                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37616 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
37617 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37618   echo $ECHO_N "(cached) $ECHO_C" >&6
37619 else
37620   cat >conftest.$ac_ext <<_ACEOF
37621 /* confdefs.h.  */
37622 _ACEOF
37623 cat confdefs.h >>conftest.$ac_ext
37624 cat >>conftest.$ac_ext <<_ACEOF
37625 /* end confdefs.h.  */
37626 $ac_includes_default
37627 #ifdef HAVE_SYS_SOCKET_H
37628 #include <sys/socket.h>
37629 #endif
37630
37631 int
37632 main ()
37633 {
37634 static struct msghdr ac_aggr;
37635 if (ac_aggr.msg_control)
37636 return 0;
37637   ;
37638   return 0;
37639 }
37640 _ACEOF
37641 rm -f conftest.$ac_objext
37642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37643   (eval $ac_compile) 2>conftest.er1
37644   ac_status=$?
37645   grep -v '^ *+' conftest.er1 >conftest.err
37646   rm -f conftest.er1
37647   cat conftest.err >&5
37648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37649   (exit $ac_status); } &&
37650          { ac_try='test -z "$ac_c_werror_flag"
37651                          || test ! -s conftest.err'
37652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37653   (eval $ac_try) 2>&5
37654   ac_status=$?
37655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656   (exit $ac_status); }; } &&
37657          { ac_try='test -s conftest.$ac_objext'
37658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37659   (eval $ac_try) 2>&5
37660   ac_status=$?
37661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37662   (exit $ac_status); }; }; then
37663   ac_cv_member_struct_msghdr_msg_control=yes
37664 else
37665   echo "$as_me: failed program was:" >&5
37666 sed 's/^/| /' conftest.$ac_ext >&5
37667
37668 cat >conftest.$ac_ext <<_ACEOF
37669 /* confdefs.h.  */
37670 _ACEOF
37671 cat confdefs.h >>conftest.$ac_ext
37672 cat >>conftest.$ac_ext <<_ACEOF
37673 /* end confdefs.h.  */
37674 $ac_includes_default
37675 #ifdef HAVE_SYS_SOCKET_H
37676 #include <sys/socket.h>
37677 #endif
37678
37679 int
37680 main ()
37681 {
37682 static struct msghdr ac_aggr;
37683 if (sizeof ac_aggr.msg_control)
37684 return 0;
37685   ;
37686   return 0;
37687 }
37688 _ACEOF
37689 rm -f conftest.$ac_objext
37690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37691   (eval $ac_compile) 2>conftest.er1
37692   ac_status=$?
37693   grep -v '^ *+' conftest.er1 >conftest.err
37694   rm -f conftest.er1
37695   cat conftest.err >&5
37696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37697   (exit $ac_status); } &&
37698          { ac_try='test -z "$ac_c_werror_flag"
37699                          || test ! -s conftest.err'
37700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37701   (eval $ac_try) 2>&5
37702   ac_status=$?
37703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37704   (exit $ac_status); }; } &&
37705          { ac_try='test -s conftest.$ac_objext'
37706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37707   (eval $ac_try) 2>&5
37708   ac_status=$?
37709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710   (exit $ac_status); }; }; then
37711   ac_cv_member_struct_msghdr_msg_control=yes
37712 else
37713   echo "$as_me: failed program was:" >&5
37714 sed 's/^/| /' conftest.$ac_ext >&5
37715
37716 ac_cv_member_struct_msghdr_msg_control=no
37717 fi
37718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37719 fi
37720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37721 fi
37722 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37723 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
37724 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37725
37726 cat >>confdefs.h <<_ACEOF
37727 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37728 _ACEOF
37729
37730
37731 fi
37732
37733                 fi
37734                 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37735 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
37736 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37737   echo $ECHO_N "(cached) $ECHO_C" >&6
37738 else
37739   cat >conftest.$ac_ext <<_ACEOF
37740 /* confdefs.h.  */
37741 _ACEOF
37742 cat confdefs.h >>conftest.$ac_ext
37743 cat >>conftest.$ac_ext <<_ACEOF
37744 /* end confdefs.h.  */
37745 $ac_includes_default
37746 int
37747 main ()
37748 {
37749 static struct stat ac_aggr;
37750 if (ac_aggr.st_fstype)
37751 return 0;
37752   ;
37753   return 0;
37754 }
37755 _ACEOF
37756 rm -f conftest.$ac_objext
37757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37758   (eval $ac_compile) 2>conftest.er1
37759   ac_status=$?
37760   grep -v '^ *+' conftest.er1 >conftest.err
37761   rm -f conftest.er1
37762   cat conftest.err >&5
37763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37764   (exit $ac_status); } &&
37765          { ac_try='test -z "$ac_c_werror_flag"
37766                          || test ! -s conftest.err'
37767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37768   (eval $ac_try) 2>&5
37769   ac_status=$?
37770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37771   (exit $ac_status); }; } &&
37772          { ac_try='test -s conftest.$ac_objext'
37773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37774   (eval $ac_try) 2>&5
37775   ac_status=$?
37776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37777   (exit $ac_status); }; }; then
37778   ac_cv_member_struct_stat_st_fstype=yes
37779 else
37780   echo "$as_me: failed program was:" >&5
37781 sed 's/^/| /' conftest.$ac_ext >&5
37782
37783 cat >conftest.$ac_ext <<_ACEOF
37784 /* confdefs.h.  */
37785 _ACEOF
37786 cat confdefs.h >>conftest.$ac_ext
37787 cat >>conftest.$ac_ext <<_ACEOF
37788 /* end confdefs.h.  */
37789 $ac_includes_default
37790 int
37791 main ()
37792 {
37793 static struct stat ac_aggr;
37794 if (sizeof ac_aggr.st_fstype)
37795 return 0;
37796   ;
37797   return 0;
37798 }
37799 _ACEOF
37800 rm -f conftest.$ac_objext
37801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37802   (eval $ac_compile) 2>conftest.er1
37803   ac_status=$?
37804   grep -v '^ *+' conftest.er1 >conftest.err
37805   rm -f conftest.er1
37806   cat conftest.err >&5
37807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37808   (exit $ac_status); } &&
37809          { ac_try='test -z "$ac_c_werror_flag"
37810                          || test ! -s conftest.err'
37811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37812   (eval $ac_try) 2>&5
37813   ac_status=$?
37814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37815   (exit $ac_status); }; } &&
37816          { ac_try='test -s conftest.$ac_objext'
37817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37818   (eval $ac_try) 2>&5
37819   ac_status=$?
37820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821   (exit $ac_status); }; }; then
37822   ac_cv_member_struct_stat_st_fstype=yes
37823 else
37824   echo "$as_me: failed program was:" >&5
37825 sed 's/^/| /' conftest.$ac_ext >&5
37826
37827 ac_cv_member_struct_stat_st_fstype=no
37828 fi
37829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37830 fi
37831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37832 fi
37833 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37834 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
37835 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37836
37837 cat >>confdefs.h <<_ACEOF
37838 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37839 _ACEOF
37840
37841
37842 fi
37843 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37844 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
37845 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37846   echo $ECHO_N "(cached) $ECHO_C" >&6
37847 else
37848   cat >conftest.$ac_ext <<_ACEOF
37849 /* confdefs.h.  */
37850 _ACEOF
37851 cat confdefs.h >>conftest.$ac_ext
37852 cat >>conftest.$ac_ext <<_ACEOF
37853 /* end confdefs.h.  */
37854 $ac_includes_default
37855 int
37856 main ()
37857 {
37858 static struct stat ac_aggr;
37859 if (ac_aggr.st_vfstype)
37860 return 0;
37861   ;
37862   return 0;
37863 }
37864 _ACEOF
37865 rm -f conftest.$ac_objext
37866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37867   (eval $ac_compile) 2>conftest.er1
37868   ac_status=$?
37869   grep -v '^ *+' conftest.er1 >conftest.err
37870   rm -f conftest.er1
37871   cat conftest.err >&5
37872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37873   (exit $ac_status); } &&
37874          { ac_try='test -z "$ac_c_werror_flag"
37875                          || test ! -s conftest.err'
37876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37877   (eval $ac_try) 2>&5
37878   ac_status=$?
37879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37880   (exit $ac_status); }; } &&
37881          { ac_try='test -s conftest.$ac_objext'
37882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37883   (eval $ac_try) 2>&5
37884   ac_status=$?
37885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886   (exit $ac_status); }; }; then
37887   ac_cv_member_struct_stat_st_vfstype=yes
37888 else
37889   echo "$as_me: failed program was:" >&5
37890 sed 's/^/| /' conftest.$ac_ext >&5
37891
37892 cat >conftest.$ac_ext <<_ACEOF
37893 /* confdefs.h.  */
37894 _ACEOF
37895 cat confdefs.h >>conftest.$ac_ext
37896 cat >>conftest.$ac_ext <<_ACEOF
37897 /* end confdefs.h.  */
37898 $ac_includes_default
37899 int
37900 main ()
37901 {
37902 static struct stat ac_aggr;
37903 if (sizeof ac_aggr.st_vfstype)
37904 return 0;
37905   ;
37906   return 0;
37907 }
37908 _ACEOF
37909 rm -f conftest.$ac_objext
37910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37911   (eval $ac_compile) 2>conftest.er1
37912   ac_status=$?
37913   grep -v '^ *+' conftest.er1 >conftest.err
37914   rm -f conftest.er1
37915   cat conftest.err >&5
37916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37917   (exit $ac_status); } &&
37918          { ac_try='test -z "$ac_c_werror_flag"
37919                          || test ! -s conftest.err'
37920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37921   (eval $ac_try) 2>&5
37922   ac_status=$?
37923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37924   (exit $ac_status); }; } &&
37925          { ac_try='test -s conftest.$ac_objext'
37926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37927   (eval $ac_try) 2>&5
37928   ac_status=$?
37929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37930   (exit $ac_status); }; }; then
37931   ac_cv_member_struct_stat_st_vfstype=yes
37932 else
37933   echo "$as_me: failed program was:" >&5
37934 sed 's/^/| /' conftest.$ac_ext >&5
37935
37936 ac_cv_member_struct_stat_st_vfstype=no
37937 fi
37938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37939 fi
37940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37941 fi
37942 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37943 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
37944 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37945
37946 cat >>confdefs.h <<_ACEOF
37947 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37948 _ACEOF
37949
37950
37951 fi
37952
37953                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37954                         cat >conftest.$ac_ext <<_ACEOF
37955 struct stat st; char *ptr=st.st_fstype;
37956 _ACEOF
37957 rm -f conftest.$ac_objext
37958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37959   (eval $ac_compile) 2>conftest.er1
37960   ac_status=$?
37961   grep -v '^ *+' conftest.er1 >conftest.err
37962   rm -f conftest.er1
37963   cat conftest.err >&5
37964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37965   (exit $ac_status); } &&
37966          { ac_try='test -z "$ac_c_werror_flag"
37967                          || test ! -s conftest.err'
37968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37969   (eval $ac_try) 2>&5
37970   ac_status=$?
37971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37972   (exit $ac_status); }; } &&
37973          { ac_try='test -s conftest.$ac_objext'
37974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37975   (eval $ac_try) 2>&5
37976   ac_status=$?
37977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37978   (exit $ac_status); }; }; then
37979
37980 cat >>confdefs.h <<\_ACEOF
37981 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37982 _ACEOF
37983
37984 else
37985   echo "$as_me: failed program was:" >&5
37986 sed 's/^/| /' conftest.$ac_ext >&5
37987
37988
37989 cat >>confdefs.h <<\_ACEOF
37990 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37991 _ACEOF
37992
37993 fi
37994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37995                 fi
37996         fi
37997         LIBSRCS="$LIBSRCS getpeereid.c"
37998 fi
37999
38000 if test "$ac_cv_func_snprintf" != yes ||
38001    test "$ac_cv_func_vsnprintf" != yes; then
38002         if test "$ac_cv_func_snprintf" != yes; then
38003
38004 cat >>confdefs.h <<\_ACEOF
38005 #define snprintf ber_pvt_snprintf
38006 _ACEOF
38007
38008         fi
38009         if test "$ac_cv_func_vsnprintf" != yes; then
38010
38011 cat >>confdefs.h <<\_ACEOF
38012 #define vsnprintf ber_pvt_vsnprintf
38013 _ACEOF
38014
38015         fi
38016 fi
38017
38018
38019 if test "$ol_enable_slapi" != no ; then
38020
38021 for ac_header in ltdl.h
38022 do
38023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38025   echo "$as_me:$LINENO: checking for $ac_header" >&5
38026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38028   echo $ECHO_N "(cached) $ECHO_C" >&6
38029 fi
38030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38032 else
38033   # Is the header compilable?
38034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38036 cat >conftest.$ac_ext <<_ACEOF
38037 /* confdefs.h.  */
38038 _ACEOF
38039 cat confdefs.h >>conftest.$ac_ext
38040 cat >>conftest.$ac_ext <<_ACEOF
38041 /* end confdefs.h.  */
38042 $ac_includes_default
38043 #include <$ac_header>
38044 _ACEOF
38045 rm -f conftest.$ac_objext
38046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38047   (eval $ac_compile) 2>conftest.er1
38048   ac_status=$?
38049   grep -v '^ *+' conftest.er1 >conftest.err
38050   rm -f conftest.er1
38051   cat conftest.err >&5
38052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38053   (exit $ac_status); } &&
38054          { ac_try='test -z "$ac_c_werror_flag"
38055                          || test ! -s conftest.err'
38056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38057   (eval $ac_try) 2>&5
38058   ac_status=$?
38059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38060   (exit $ac_status); }; } &&
38061          { ac_try='test -s conftest.$ac_objext'
38062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38063   (eval $ac_try) 2>&5
38064   ac_status=$?
38065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38066   (exit $ac_status); }; }; then
38067   ac_header_compiler=yes
38068 else
38069   echo "$as_me: failed program was:" >&5
38070 sed 's/^/| /' conftest.$ac_ext >&5
38071
38072 ac_header_compiler=no
38073 fi
38074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38076 echo "${ECHO_T}$ac_header_compiler" >&6
38077
38078 # Is the header present?
38079 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38081 cat >conftest.$ac_ext <<_ACEOF
38082 /* confdefs.h.  */
38083 _ACEOF
38084 cat confdefs.h >>conftest.$ac_ext
38085 cat >>conftest.$ac_ext <<_ACEOF
38086 /* end confdefs.h.  */
38087 #include <$ac_header>
38088 _ACEOF
38089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38090   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38091   ac_status=$?
38092   grep -v '^ *+' conftest.er1 >conftest.err
38093   rm -f conftest.er1
38094   cat conftest.err >&5
38095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38096   (exit $ac_status); } >/dev/null; then
38097   if test -s conftest.err; then
38098     ac_cpp_err=$ac_c_preproc_warn_flag
38099     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38100   else
38101     ac_cpp_err=
38102   fi
38103 else
38104   ac_cpp_err=yes
38105 fi
38106 if test -z "$ac_cpp_err"; then
38107   ac_header_preproc=yes
38108 else
38109   echo "$as_me: failed program was:" >&5
38110 sed 's/^/| /' conftest.$ac_ext >&5
38111
38112   ac_header_preproc=no
38113 fi
38114 rm -f conftest.err conftest.$ac_ext
38115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38116 echo "${ECHO_T}$ac_header_preproc" >&6
38117
38118 # So?  What about this header?
38119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38120   yes:no: )
38121     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38125     ac_header_preproc=yes
38126     ;;
38127   no:yes:* )
38128     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38130     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38131 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38132     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38134     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38135 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38136     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38138     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38140     (
38141       cat <<\_ASBOX
38142 ## --------------------------------------------- ##
38143 ## Report this to <http://www.openldap.org/its/> ##
38144 ## --------------------------------------------- ##
38145 _ASBOX
38146     ) |
38147       sed "s/^/$as_me: WARNING:     /" >&2
38148     ;;
38149 esac
38150 echo "$as_me:$LINENO: checking for $ac_header" >&5
38151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38153   echo $ECHO_N "(cached) $ECHO_C" >&6
38154 else
38155   eval "$as_ac_Header=\$ac_header_preproc"
38156 fi
38157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38159
38160 fi
38161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38162   cat >>confdefs.h <<_ACEOF
38163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38164 _ACEOF
38165
38166 fi
38167
38168 done
38169
38170
38171         if test $ac_cv_header_ltdl_h != yes ; then
38172                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38173 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38174    { (exit 1); exit 1; }; }
38175         fi
38176         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38177 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
38178 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38179   echo $ECHO_N "(cached) $ECHO_C" >&6
38180 else
38181   ac_check_lib_save_LIBS=$LIBS
38182 LIBS="-lltdl  $LIBS"
38183 cat >conftest.$ac_ext <<_ACEOF
38184 /* confdefs.h.  */
38185 _ACEOF
38186 cat confdefs.h >>conftest.$ac_ext
38187 cat >>conftest.$ac_ext <<_ACEOF
38188 /* end confdefs.h.  */
38189
38190 /* Override any gcc2 internal prototype to avoid an error.  */
38191 #ifdef __cplusplus
38192 extern "C"
38193 #endif
38194 /* We use char because int might match the return type of a gcc2
38195    builtin and then its argument prototype would still apply.  */
38196 char lt_dlinit ();
38197 int
38198 main ()
38199 {
38200 lt_dlinit ();
38201   ;
38202   return 0;
38203 }
38204 _ACEOF
38205 rm -f conftest.$ac_objext conftest$ac_exeext
38206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38207   (eval $ac_link) 2>conftest.er1
38208   ac_status=$?
38209   grep -v '^ *+' conftest.er1 >conftest.err
38210   rm -f conftest.er1
38211   cat conftest.err >&5
38212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213   (exit $ac_status); } &&
38214          { ac_try='test -z "$ac_c_werror_flag"
38215                          || test ! -s conftest.err'
38216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38217   (eval $ac_try) 2>&5
38218   ac_status=$?
38219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38220   (exit $ac_status); }; } &&
38221          { ac_try='test -s conftest$ac_exeext'
38222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38223   (eval $ac_try) 2>&5
38224   ac_status=$?
38225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38226   (exit $ac_status); }; }; then
38227   ac_cv_lib_ltdl_lt_dlinit=yes
38228 else
38229   echo "$as_me: failed program was:" >&5
38230 sed 's/^/| /' conftest.$ac_ext >&5
38231
38232 ac_cv_lib_ltdl_lt_dlinit=no
38233 fi
38234 rm -f conftest.err conftest.$ac_objext \
38235       conftest$ac_exeext conftest.$ac_ext
38236 LIBS=$ac_check_lib_save_LIBS
38237 fi
38238 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38239 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
38240 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38241
38242                 SLAPI_LIBS=-lltdl
38243                 LIBSLAPI=libslapi.a
38244                 LIBSLAPITOOLS=../libslapi.a
38245
38246 cat >>confdefs.h <<\_ACEOF
38247 #define HAVE_LIBLTDL 1
38248 _ACEOF
38249
38250
38251 else
38252   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38253 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38254    { (exit 1); exit 1; }; }
38255 fi
38256
38257
38258
38259 cat >>confdefs.h <<\_ACEOF
38260 #define LDAP_SLAPI 1
38261 _ACEOF
38262
38263 fi
38264
38265 if test "$ol_enable_debug" != no ; then
38266         if test "$ol_enable_debug" = traditional; then
38267
38268 cat >>confdefs.h <<\_ACEOF
38269 #define OLD_DEBUG 1
38270 _ACEOF
38271
38272         fi
38273
38274 cat >>confdefs.h <<\_ACEOF
38275 #define LDAP_DEBUG 1
38276 _ACEOF
38277
38278 fi
38279 if test "$ol_enable_syslog" = yes ; then
38280
38281 cat >>confdefs.h <<\_ACEOF
38282 #define LDAP_SYSLOG 1
38283 _ACEOF
38284
38285 fi
38286 if test "$ol_enable_proctitle" != no ; then
38287
38288 cat >>confdefs.h <<\_ACEOF
38289 #define LDAP_PROCTITLE 1
38290 _ACEOF
38291
38292 fi
38293 if test "$ol_enable_referrals" != no ; then
38294
38295 cat >>confdefs.h <<\_ACEOF
38296 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38297 _ACEOF
38298
38299 fi
38300 if test "$ol_enable_local" != no; then
38301
38302 cat >>confdefs.h <<\_ACEOF
38303 #define LDAP_PF_LOCAL 1
38304 _ACEOF
38305
38306 fi
38307 if test "$ol_link_ipv6" != no; then
38308
38309 cat >>confdefs.h <<\_ACEOF
38310 #define LDAP_PF_INET6 1
38311 _ACEOF
38312
38313 fi
38314 if test "$ol_enable_cleartext" != no ; then
38315
38316 cat >>confdefs.h <<\_ACEOF
38317 #define SLAPD_CLEARTEXT 1
38318 _ACEOF
38319
38320 fi
38321 if test "$ol_enable_crypt" != no ; then
38322
38323 cat >>confdefs.h <<\_ACEOF
38324 #define SLAPD_CRYPT 1
38325 _ACEOF
38326
38327 fi
38328 if test "$ol_link_spasswd" != no ; then
38329
38330 cat >>confdefs.h <<\_ACEOF
38331 #define SLAPD_SPASSWD 1
38332 _ACEOF
38333
38334 fi
38335 if test "$ol_enable_rlookups" != no ; then
38336
38337 cat >>confdefs.h <<\_ACEOF
38338 #define SLAPD_RLOOKUPS 1
38339 _ACEOF
38340
38341 fi
38342 if test "$ol_enable_aci" != no ; then
38343         if test $ol_enable_dynacl = no ; then
38344                 ol_enable_dynacl=yes
38345                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38346 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38347         fi
38348         if test "$ol_enable_aci" = mod ; then
38349                 MFLAG=SLAPD_MOD_DYNAMIC
38350                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38351 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38352    { (exit 1); exit 1; }; }
38353         else
38354                 MFLAG=SLAPD_MOD_STATIC
38355         fi
38356         WITH_ACI_ENABLED=$ol_enable_aci
38357
38358 cat >>confdefs.h <<_ACEOF
38359 #define SLAPD_ACI_ENABLED $MFLAG
38360 _ACEOF
38361
38362 else
38363         WITH_ACI_ENABLED=no
38364 fi
38365 if test "$ol_enable_dynacl" != no ; then
38366
38367 cat >>confdefs.h <<\_ACEOF
38368 #define SLAP_DYNACL 1
38369 _ACEOF
38370
38371 fi
38372
38373 if test "$ol_link_modules" != no ; then
38374
38375 cat >>confdefs.h <<\_ACEOF
38376 #define SLAPD_MODULES 1
38377 _ACEOF
38378
38379         BUILD_SLAPD=yes
38380         SLAPD_MODULES_LDFLAGS="-dlopen self"
38381 fi
38382
38383
38384 cat >>confdefs.h <<\_ACEOF
38385 #define SLAPD_MOD_STATIC 1
38386 _ACEOF
38387
38388
38389 cat >>confdefs.h <<\_ACEOF
38390 #define SLAPD_MOD_DYNAMIC 2
38391 _ACEOF
38392
38393
38394 if test "$ol_enable_monitor" != no ; then
38395         BUILD_SLAPD=yes
38396         BUILD_MONITOR=$ol_enable_monitor
38397         if test "$ol_enable_monitor" = mod ; then
38398                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38399                 MFLAG=SLAPD_MOD_DYNAMIC
38400         else
38401                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38402                 MFLAG=SLAPD_MOD_STATIC
38403         fi
38404
38405 cat >>confdefs.h <<_ACEOF
38406 #define SLAPD_MONITOR $MFLAG
38407 _ACEOF
38408
38409 fi
38410
38411 if test "$ol_enable_bdb" != no ; then
38412         BUILD_SLAPD=yes
38413         BUILD_BDB=$ol_enable_bdb
38414         if test "$ol_enable_bdb" = mod ; then
38415                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38416                 MFLAG=SLAPD_MOD_DYNAMIC
38417         else
38418                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38419                 MFLAG=SLAPD_MOD_STATIC
38420         fi
38421
38422 cat >>confdefs.h <<_ACEOF
38423 #define SLAPD_BDB $MFLAG
38424 _ACEOF
38425
38426 fi
38427
38428 if test "$ol_enable_dnssrv" != no ; then
38429         BUILD_SLAPD=yes
38430         BUILD_DNSSRV=$ol_enable_dnssrv
38431         if test "$ol_enable_dnssrv" = mod ; then
38432                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38433                 MFLAG=SLAPD_MOD_DYNAMIC
38434         else
38435                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38436                 MFLAG=SLAPD_MOD_STATIC
38437         fi
38438
38439 cat >>confdefs.h <<_ACEOF
38440 #define SLAPD_DNSSRV $MFLAG
38441 _ACEOF
38442
38443 fi
38444
38445 if test "$ol_enable_hdb" != no ; then
38446         BUILD_SLAPD=yes
38447         BUILD_HDB=$ol_enable_hdb
38448         if test "$ol_enable_hdb" = mod ; then
38449                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38450                 MFLAG=SLAPD_MOD_DYNAMIC
38451         else
38452                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38453                 MFLAG=SLAPD_MOD_STATIC
38454         fi
38455
38456 cat >>confdefs.h <<_ACEOF
38457 #define SLAPD_HDB $MFLAG
38458 _ACEOF
38459
38460 fi
38461
38462 if test "$ol_enable_ldap" != no ; then
38463         BUILD_SLAPD=yes
38464         BUILD_LDAP=$ol_enable_ldap
38465         if test "$ol_enable_ldap" = mod ; then
38466                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38467                 MFLAG=SLAPD_MOD_DYNAMIC
38468         else
38469                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38470                 MFLAG=SLAPD_MOD_STATIC
38471         fi
38472
38473 cat >>confdefs.h <<_ACEOF
38474 #define SLAPD_LDAP $MFLAG
38475 _ACEOF
38476
38477 fi
38478
38479 if test "$ol_enable_meta" != no ; then
38480         BUILD_SLAPD=yes
38481         BUILD_META=$ol_enable_meta
38482         BUILD_REWRITE=yes
38483         if test "$ol_enable_meta" = mod ; then
38484                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38485                 MFLAG=SLAPD_MOD_DYNAMIC
38486         else
38487                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38488                 MFLAG=SLAPD_MOD_STATIC
38489         fi
38490
38491 cat >>confdefs.h <<_ACEOF
38492 #define SLAPD_META $MFLAG
38493 _ACEOF
38494
38495 fi
38496
38497 if test "$ol_enable_ndb" != no ; then
38498         BUILD_SLAPD=yes
38499         BUILD_NDB=$ol_enable_ndb
38500         if test "$ol_enable_ndb" = mod ; then
38501                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38502                 MFLAG=SLAPD_MOD_DYNAMIC
38503         else
38504                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38505                 MFLAG=SLAPD_MOD_STATIC
38506         fi
38507
38508 cat >>confdefs.h <<_ACEOF
38509 #define SLAPD_NDB $MFLAG
38510 _ACEOF
38511
38512 fi
38513
38514 if test "$ol_enable_null" != no ; then
38515         BUILD_SLAPD=yes
38516         BUILD_NULL=$ol_enable_null
38517         if test "$ol_enable_null" = mod ; then
38518                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38519                 MFLAG=SLAPD_MOD_DYNAMIC
38520         else
38521                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38522                 MFLAG=SLAPD_MOD_STATIC
38523         fi
38524
38525 cat >>confdefs.h <<_ACEOF
38526 #define SLAPD_NULL $MFLAG
38527 _ACEOF
38528
38529 fi
38530
38531 if test "$ol_enable_passwd" != no ; then
38532         BUILD_SLAPD=yes
38533         BUILD_PASSWD=$ol_enable_passwd
38534         if test "$ol_enable_passwd" = mod ; then
38535                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38536                 MFLAG=SLAPD_MOD_DYNAMIC
38537         else
38538                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38539                 MFLAG=SLAPD_MOD_STATIC
38540         fi
38541
38542 cat >>confdefs.h <<_ACEOF
38543 #define SLAPD_PASSWD $MFLAG
38544 _ACEOF
38545
38546 fi
38547
38548 if test "$ol_link_perl" != no ; then
38549         BUILD_SLAPD=yes
38550         BUILD_PERL=$ol_enable_perl
38551         if test "$ol_enable_perl" = mod ; then
38552                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38553                 MFLAG=SLAPD_MOD_DYNAMIC
38554         else
38555                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38556                 MFLAG=SLAPD_MOD_STATIC
38557         fi
38558
38559 cat >>confdefs.h <<_ACEOF
38560 #define SLAPD_PERL $MFLAG
38561 _ACEOF
38562
38563 fi
38564
38565 if test "$ol_enable_relay" != no ; then
38566         BUILD_SLAPD=yes
38567         BUILD_RELAY=$ol_enable_relay
38568         if test "$ol_enable_relay" = mod ; then
38569                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38570                 MFLAG=SLAPD_MOD_DYNAMIC
38571         else
38572                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38573                 MFLAG=SLAPD_MOD_STATIC
38574         fi
38575
38576 cat >>confdefs.h <<_ACEOF
38577 #define SLAPD_RELAY $MFLAG
38578 _ACEOF
38579
38580 fi
38581
38582 if test "$ol_enable_shell" != no ; then
38583         if test "$ol_link_threads" != no ; then
38584                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38585 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38586         fi
38587         BUILD_SLAPD=yes
38588         BUILD_SHELL=$ol_enable_shell
38589         if test "$ol_enable_shell" = mod ; then
38590                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38591                 MFLAG=SLAPD_MOD_DYNAMIC
38592         else
38593                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38594                 MFLAG=SLAPD_MOD_STATIC
38595         fi
38596
38597 cat >>confdefs.h <<_ACEOF
38598 #define SLAPD_SHELL $MFLAG
38599 _ACEOF
38600
38601 fi
38602
38603 if test "$ol_enable_sock" != no ; then
38604         BUILD_SLAPD=yes
38605         BUILD_SOCK=$ol_enable_sock
38606         if test "$ol_enable_sock" = mod ; then
38607                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38608                 MFLAG=SLAPD_MOD_DYNAMIC
38609         else
38610                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38611                 MFLAG=SLAPD_MOD_STATIC
38612         fi
38613
38614 cat >>confdefs.h <<_ACEOF
38615 #define SLAPD_SOCK $MFLAG
38616 _ACEOF
38617
38618 fi
38619
38620 if test "$ol_link_sql" != no ; then
38621         BUILD_SLAPD=yes
38622         BUILD_SQL=$ol_enable_sql
38623         if test "$ol_enable_sql" = mod; then
38624                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38625                 MFLAG=SLAPD_MOD_DYNAMIC
38626         else
38627                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38628                 MFLAG=SLAPD_MOD_STATIC
38629         fi
38630
38631 cat >>confdefs.h <<_ACEOF
38632 #define SLAPD_SQL $MFLAG
38633 _ACEOF
38634
38635 fi
38636
38637 if test "$ol_enable_accesslog" != no ; then
38638         BUILD_ACCESSLOG=$ol_enable_accesslog
38639         if test "$ol_enable_accesslog" = mod ; then
38640                 MFLAG=SLAPD_MOD_DYNAMIC
38641                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38642         else
38643                 MFLAG=SLAPD_MOD_STATIC
38644                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38645         fi
38646
38647 cat >>confdefs.h <<_ACEOF
38648 #define SLAPD_OVER_ACCESSLOG $MFLAG
38649 _ACEOF
38650
38651 fi
38652
38653 if test "$ol_enable_auditlog" != no ; then
38654         BUILD_AUDITLOG=$ol_enable_auditlog
38655         if test "$ol_enable_auditlog" = mod ; then
38656                 MFLAG=SLAPD_MOD_DYNAMIC
38657                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38658         else
38659                 MFLAG=SLAPD_MOD_STATIC
38660                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38661         fi
38662
38663 cat >>confdefs.h <<_ACEOF
38664 #define SLAPD_OVER_AUDITLOG $MFLAG
38665 _ACEOF
38666
38667 fi
38668
38669 if test "$ol_enable_collect" != no ; then
38670         BUILD_COLLECT=$ol_enable_collect
38671         if test "$ol_enable_collect" = mod ; then
38672                 MFLAG=SLAPD_MOD_DYNAMIC
38673                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38674         else
38675                 MFLAG=SLAPD_MOD_STATIC
38676                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38677         fi
38678
38679 cat >>confdefs.h <<_ACEOF
38680 #define SLAPD_OVER_COLLECT $MFLAG
38681 _ACEOF
38682
38683 fi
38684
38685 if test "$ol_enable_constraint" != no ; then
38686         BUILD_CONSTRAINT=$ol_enable_constraint
38687         if test "$ol_enable_constraint" = mod ; then
38688                 MFLAG=SLAPD_MOD_DYNAMIC
38689                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38690         else
38691                 MFLAG=SLAPD_MOD_STATIC
38692                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38693         fi
38694
38695 cat >>confdefs.h <<_ACEOF
38696 #define SLAPD_OVER_CONSTRAINT $MFLAG
38697 _ACEOF
38698
38699 fi
38700
38701 if test "$ol_enable_dds" != no ; then
38702         BUILD_DDS=$ol_enable_dds
38703         if test "$ol_enable_dds" = mod ; then
38704                 MFLAG=SLAPD_MOD_DYNAMIC
38705                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38706         else
38707                 MFLAG=SLAPD_MOD_STATIC
38708                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38709         fi
38710
38711 cat >>confdefs.h <<_ACEOF
38712 #define SLAPD_OVER_DDS $MFLAG
38713 _ACEOF
38714
38715 fi
38716
38717 if test "$ol_enable_deref" != no ; then
38718         BUILD_DDS=$ol_enable_deref
38719         if test "$ol_enable_deref" = mod ; then
38720                 MFLAG=SLAPD_MOD_DYNAMIC
38721                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38722         else
38723                 MFLAG=SLAPD_MOD_STATIC
38724                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38725         fi
38726
38727 cat >>confdefs.h <<_ACEOF
38728 #define SLAPD_OVER_DEREF $MFLAG
38729 _ACEOF
38730
38731 fi
38732
38733 if test "$ol_enable_dyngroup" != no ; then
38734         BUILD_DYNGROUP=$ol_enable_dyngroup
38735         if test "$ol_enable_dyngroup" = mod ; then
38736                 MFLAG=SLAPD_MOD_DYNAMIC
38737                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38738         else
38739                 MFLAG=SLAPD_MOD_STATIC
38740                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38741         fi
38742
38743 cat >>confdefs.h <<_ACEOF
38744 #define SLAPD_OVER_DYNGROUP $MFLAG
38745 _ACEOF
38746
38747 fi
38748
38749 if test "$ol_enable_dynlist" != no ; then
38750         BUILD_DYNLIST=$ol_enable_dynlist
38751         if test "$ol_enable_dynlist" = mod ; then
38752                 MFLAG=SLAPD_MOD_DYNAMIC
38753                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38754         else
38755                 MFLAG=SLAPD_MOD_STATIC
38756                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38757         fi
38758
38759 cat >>confdefs.h <<_ACEOF
38760 #define SLAPD_OVER_DYNLIST $MFLAG
38761 _ACEOF
38762
38763 fi
38764
38765 if test "$ol_enable_memberof" != no ; then
38766         BUILD_MEMBEROF=$ol_enable_memberof
38767         if test "$ol_enable_memberof" = mod ; then
38768                 MFLAG=SLAPD_MOD_DYNAMIC
38769                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38770         else
38771                 MFLAG=SLAPD_MOD_STATIC
38772                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38773         fi
38774
38775 cat >>confdefs.h <<_ACEOF
38776 #define SLAPD_OVER_MEMBEROF $MFLAG
38777 _ACEOF
38778
38779 fi
38780
38781 if test "$ol_enable_ppolicy" != no ; then
38782         BUILD_PPOLICY=$ol_enable_ppolicy
38783         if test "$ol_enable_ppolicy" = mod ; then
38784                 MFLAG=SLAPD_MOD_DYNAMIC
38785                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38786         else
38787                 MFLAG=SLAPD_MOD_STATIC
38788                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38789         fi
38790
38791 cat >>confdefs.h <<_ACEOF
38792 #define SLAPD_OVER_PPOLICY $MFLAG
38793 _ACEOF
38794
38795 fi
38796
38797 if test "$ol_enable_proxycache" != no ; then
38798         BUILD_PROXYCACHE=$ol_enable_proxycache
38799         if test "$ol_enable_proxycache" = mod ; then
38800                 MFLAG=SLAPD_MOD_DYNAMIC
38801                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38802         else
38803                 MFLAG=SLAPD_MOD_STATIC
38804                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38805         fi
38806
38807 cat >>confdefs.h <<_ACEOF
38808 #define SLAPD_OVER_PROXYCACHE $MFLAG
38809 _ACEOF
38810
38811 fi
38812
38813 if test "$ol_enable_refint" != no ; then
38814         BUILD_REFINT=$ol_enable_refint
38815         if test "$ol_enable_refint" = mod ; then
38816                 MFLAG=SLAPD_MOD_DYNAMIC
38817                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38818         else
38819                 MFLAG=SLAPD_MOD_STATIC
38820                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38821         fi
38822
38823 cat >>confdefs.h <<_ACEOF
38824 #define SLAPD_OVER_REFINT $MFLAG
38825 _ACEOF
38826
38827 fi
38828
38829 if test "$ol_enable_retcode" != no ; then
38830         BUILD_RETCODE=$ol_enable_retcode
38831         if test "$ol_enable_retcode" = mod ; then
38832                 MFLAG=SLAPD_MOD_DYNAMIC
38833                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38834         else
38835                 MFLAG=SLAPD_MOD_STATIC
38836                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38837         fi
38838
38839 cat >>confdefs.h <<_ACEOF
38840 #define SLAPD_OVER_RETCODE $MFLAG
38841 _ACEOF
38842
38843 fi
38844
38845 if test "$ol_enable_rwm" != no ; then
38846         BUILD_REWRITE=yes
38847         BUILD_RWM=$ol_enable_rwm
38848         if test "$ol_enable_rwm" = mod ; then
38849                 MFLAG=SLAPD_MOD_DYNAMIC
38850                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38851         else
38852                 MFLAG=SLAPD_MOD_STATIC
38853                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38854         fi
38855
38856 cat >>confdefs.h <<_ACEOF
38857 #define SLAPD_OVER_RWM $MFLAG
38858 _ACEOF
38859
38860 fi
38861
38862 if test "$ol_enable_seqmod" != no ; then
38863         BUILD_SEQMOD=$ol_enable_seqmod
38864         if test "$ol_enable_seqmod" = mod ; then
38865                 MFLAG=SLAPD_MOD_DYNAMIC
38866                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38867         else
38868                 MFLAG=SLAPD_MOD_STATIC
38869                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38870         fi
38871
38872 cat >>confdefs.h <<_ACEOF
38873 #define SLAPD_OVER_SEQMOD $MFLAG
38874 _ACEOF
38875
38876 fi
38877
38878 if test "$ol_enable_syncprov" != no ; then
38879         BUILD_SYNCPROV=$ol_enable_syncprov
38880         if test "$ol_enable_syncprov" = mod ; then
38881                 MFLAG=SLAPD_MOD_DYNAMIC
38882                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38883         else
38884                 MFLAG=SLAPD_MOD_STATIC
38885                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38886         fi
38887
38888 cat >>confdefs.h <<_ACEOF
38889 #define SLAPD_OVER_SYNCPROV $MFLAG
38890 _ACEOF
38891
38892 fi
38893
38894 if test "$ol_enable_translucent" != no ; then
38895         BUILD_TRANSLUCENT=$ol_enable_translucent
38896         if test "$ol_enable_translucent" = mod ; then
38897                 MFLAG=SLAPD_MOD_DYNAMIC
38898                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38899         else
38900                 MFLAG=SLAPD_MOD_STATIC
38901                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38902         fi
38903
38904 cat >>confdefs.h <<_ACEOF
38905 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38906 _ACEOF
38907
38908 fi
38909
38910 if test "$ol_enable_unique" != no ; then
38911         BUILD_UNIQUE=$ol_enable_unique
38912         if test "$ol_enable_unique" = mod ; then
38913                 MFLAG=SLAPD_MOD_DYNAMIC
38914                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38915         else
38916                 MFLAG=SLAPD_MOD_STATIC
38917                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38918         fi
38919
38920 cat >>confdefs.h <<_ACEOF
38921 #define SLAPD_OVER_UNIQUE $MFLAG
38922 _ACEOF
38923
38924 fi
38925
38926 if test "$ol_enable_valsort" != no ; then
38927         BUILD_VALSORT=$ol_enable_valsort
38928         if test "$ol_enable_valsort" = mod ; then
38929                 MFLAG=SLAPD_MOD_DYNAMIC
38930                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38931         else
38932                 MFLAG=SLAPD_MOD_STATIC
38933                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38934         fi
38935
38936 cat >>confdefs.h <<_ACEOF
38937 #define SLAPD_OVER_VALSORT $MFLAG
38938 _ACEOF
38939
38940 fi
38941
38942 if test "$ol_enable_rewrite" != no ; then
38943
38944 cat >>confdefs.h <<\_ACEOF
38945 #define ENABLE_REWRITE 1
38946 _ACEOF
38947
38948         BUILD_REWRITE=yes
38949 fi
38950
38951 if test "$ol_enable_slapi" != no ; then
38952
38953 cat >>confdefs.h <<\_ACEOF
38954 #define ENABLE_SLAPI 1
38955 _ACEOF
38956
38957         BUILD_SLAPI=yes
38958         SLAPD_SLAPI_DEPEND=libslapi.a
38959 fi
38960
38961
38962
38963 if test "$ac_cv_mingw32" = yes ; then
38964         PLAT=NT
38965         SLAPD_MODULES_LDFLAGS=
38966 else
38967         PLAT=UNIX
38968 fi
38969
38970
38971
38972
38973
38974
38975
38976
38977
38978
38979
38980
38981
38982
38983
38984
38985
38986
38987
38988
38989
38990
38991
38992
38993
38994
38995
38996
38997
38998
38999
39000
39001
39002
39003
39004
39005
39006
39007
39008
39009
39010
39011
39012
39013
39014
39015
39016
39017
39018
39019
39020
39021
39022
39023
39024
39025
39026
39027
39028
39029
39030
39031
39032
39033
39034
39035
39036
39037
39038
39039
39040
39041
39042
39043
39044
39045
39046
39047
39048
39049
39050
39051
39052
39053
39054
39055
39056
39057
39058
39059 # Check whether --with-xxinstall or --without-xxinstall was given.
39060 if test "${with_xxinstall+set}" = set; then
39061   withval="$with_xxinstall"
39062
39063 fi;
39064
39065
39066                                                                                                                                                                                                                                                                                                                                                                                                                 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"
39067
39068
39069           ac_config_commands="$ac_config_commands default"
39070
39071
39072
39073 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39074 # Let make expand exec_prefix.
39075 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39076
39077 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39078 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39079 # trailing colons and then remove the whole line if VPATH becomes empty
39080 # (actually we leave an empty line to preserve line numbers).
39081 if test "x$srcdir" = x.; then
39082   ac_vpsub='/^[  ]*VPATH[        ]*=/{
39083 s/:*\$(srcdir):*/:/;
39084 s/:*\${srcdir}:*/:/;
39085 s/:*@srcdir@:*/:/;
39086 s/^\([^=]*=[     ]*\):*/\1/;
39087 s/:*$//;
39088 s/^[^=]*=[       ]*$//;
39089 }'
39090 fi
39091
39092 DEFS=-DHAVE_CONFIG_H
39093
39094 ac_libobjs=
39095 ac_ltlibobjs=
39096 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39097   # 1. Remove the extension, and $U if already installed.
39098   ac_i=`echo "$ac_i" |
39099          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39100   # 2. Add them.
39101   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39102   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39103 done
39104 LIBOBJS=$ac_libobjs
39105
39106 LTLIBOBJS=$ac_ltlibobjs
39107
39108
39109 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39110   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39111 Usually this means the macro was only invoked conditionally." >&5
39112 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39113 Usually this means the macro was only invoked conditionally." >&2;}
39114    { (exit 1); exit 1; }; }
39115 fi
39116 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39117   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39118 Usually this means the macro was only invoked conditionally." >&5
39119 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39120 Usually this means the macro was only invoked conditionally." >&2;}
39121    { (exit 1); exit 1; }; }
39122 fi
39123 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39124   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39125 Usually this means the macro was only invoked conditionally." >&5
39126 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39127 Usually this means the macro was only invoked conditionally." >&2;}
39128    { (exit 1); exit 1; }; }
39129 fi
39130
39131 : ${CONFIG_STATUS=./config.status}
39132 ac_clean_files_save=$ac_clean_files
39133 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39134 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39135 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39136 cat >$CONFIG_STATUS <<_ACEOF
39137 #! $SHELL
39138 # Generated by $as_me.
39139 # Run this file to recreate the current configuration.
39140 # Compiler output produced by configure, useful for debugging
39141 # configure, is in config.log if it exists.
39142
39143 debug=false
39144 ac_cs_recheck=false
39145 ac_cs_silent=false
39146 SHELL=\${CONFIG_SHELL-$SHELL}
39147 _ACEOF
39148
39149 cat >>$CONFIG_STATUS <<\_ACEOF
39150 ## --------------------- ##
39151 ## M4sh Initialization.  ##
39152 ## --------------------- ##
39153
39154 # Be Bourne compatible
39155 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39156   emulate sh
39157   NULLCMD=:
39158   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39159   # is contrary to our usage.  Disable this feature.
39160   alias -g '${1+"$@"}'='"$@"'
39161 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39162   set -o posix
39163 fi
39164 DUALCASE=1; export DUALCASE # for MKS sh
39165
39166 # Support unset when possible.
39167 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39168   as_unset=unset
39169 else
39170   as_unset=false
39171 fi
39172
39173
39174 # Work around bugs in pre-3.0 UWIN ksh.
39175 $as_unset ENV MAIL MAILPATH
39176 PS1='$ '
39177 PS2='> '
39178 PS4='+ '
39179
39180 # NLS nuisances.
39181 for as_var in \
39182   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39183   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39184   LC_TELEPHONE LC_TIME
39185 do
39186   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39187     eval $as_var=C; export $as_var
39188   else
39189     $as_unset $as_var
39190   fi
39191 done
39192
39193 # Required to use basename.
39194 if expr a : '\(a\)' >/dev/null 2>&1; then
39195   as_expr=expr
39196 else
39197   as_expr=false
39198 fi
39199
39200 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39201   as_basename=basename
39202 else
39203   as_basename=false
39204 fi
39205
39206
39207 # Name of the executable.
39208 as_me=`$as_basename "$0" ||
39209 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39210          X"$0" : 'X\(//\)$' \| \
39211          X"$0" : 'X\(/\)$' \| \
39212          .     : '\(.\)' 2>/dev/null ||
39213 echo X/"$0" |
39214     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39215           /^X\/\(\/\/\)$/{ s//\1/; q; }
39216           /^X\/\(\/\).*/{ s//\1/; q; }
39217           s/.*/./; q'`
39218
39219
39220 # PATH needs CR, and LINENO needs CR and PATH.
39221 # Avoid depending upon Character Ranges.
39222 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39223 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39224 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39225 as_cr_digits='0123456789'
39226 as_cr_alnum=$as_cr_Letters$as_cr_digits
39227
39228 # The user is always right.
39229 if test "${PATH_SEPARATOR+set}" != set; then
39230   echo "#! /bin/sh" >conf$$.sh
39231   echo  "exit 0"   >>conf$$.sh
39232   chmod +x conf$$.sh
39233   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39234     PATH_SEPARATOR=';'
39235   else
39236     PATH_SEPARATOR=:
39237   fi
39238   rm -f conf$$.sh
39239 fi
39240
39241
39242   as_lineno_1=$LINENO
39243   as_lineno_2=$LINENO
39244   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39245   test "x$as_lineno_1" != "x$as_lineno_2" &&
39246   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
39247   # Find who we are.  Look in the path if we contain no path at all
39248   # relative or not.
39249   case $0 in
39250     *[\\/]* ) as_myself=$0 ;;
39251     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39252 for as_dir in $PATH
39253 do
39254   IFS=$as_save_IFS
39255   test -z "$as_dir" && as_dir=.
39256   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39257 done
39258
39259        ;;
39260   esac
39261   # We did not find ourselves, most probably we were run as `sh COMMAND'
39262   # in which case we are not to be found in the path.
39263   if test "x$as_myself" = x; then
39264     as_myself=$0
39265   fi
39266   if test ! -f "$as_myself"; then
39267     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39268 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39269    { (exit 1); exit 1; }; }
39270   fi
39271   case $CONFIG_SHELL in
39272   '')
39273     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39274 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39275 do
39276   IFS=$as_save_IFS
39277   test -z "$as_dir" && as_dir=.
39278   for as_base in sh bash ksh sh5; do
39279          case $as_dir in
39280          /*)
39281            if ("$as_dir/$as_base" -c '
39282   as_lineno_1=$LINENO
39283   as_lineno_2=$LINENO
39284   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39285   test "x$as_lineno_1" != "x$as_lineno_2" &&
39286   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
39287              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39288              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39289              CONFIG_SHELL=$as_dir/$as_base
39290              export CONFIG_SHELL
39291              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39292            fi;;
39293          esac
39294        done
39295 done
39296 ;;
39297   esac
39298
39299   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39300   # uniformly replaced by the line number.  The first 'sed' inserts a
39301   # line-number line before each line; the second 'sed' does the real
39302   # work.  The second script uses 'N' to pair each line-number line
39303   # with the numbered line, and appends trailing '-' during
39304   # substitution so that $LINENO is not a special case at line end.
39305   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39306   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
39307   sed '=' <$as_myself |
39308     sed '
39309       N
39310       s,$,-,
39311       : loop
39312       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39313       t loop
39314       s,-$,,
39315       s,^['$as_cr_digits']*\n,,
39316     ' >$as_me.lineno &&
39317   chmod +x $as_me.lineno ||
39318     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39319 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39320    { (exit 1); exit 1; }; }
39321
39322   # Don't try to exec as it changes $[0], causing all sort of problems
39323   # (the dirname of $[0] is not the place where we might find the
39324   # original and so on.  Autoconf is especially sensible to this).
39325   . ./$as_me.lineno
39326   # Exit status is that of the last command.
39327   exit
39328 }
39329
39330
39331 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39332   *c*,-n*) ECHO_N= ECHO_C='
39333 ' ECHO_T='      ' ;;
39334   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39335   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
39336 esac
39337
39338 if expr a : '\(a\)' >/dev/null 2>&1; then
39339   as_expr=expr
39340 else
39341   as_expr=false
39342 fi
39343
39344 rm -f conf$$ conf$$.exe conf$$.file
39345 echo >conf$$.file
39346 if ln -s conf$$.file conf$$ 2>/dev/null; then
39347   # We could just check for DJGPP; but this test a) works b) is more generic
39348   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39349   if test -f conf$$.exe; then
39350     # Don't use ln at all; we don't have any links
39351     as_ln_s='cp -p'
39352   else
39353     as_ln_s='ln -s'
39354   fi
39355 elif ln conf$$.file conf$$ 2>/dev/null; then
39356   as_ln_s=ln
39357 else
39358   as_ln_s='cp -p'
39359 fi
39360 rm -f conf$$ conf$$.exe conf$$.file
39361
39362 if mkdir -p . 2>/dev/null; then
39363   as_mkdir_p=:
39364 else
39365   test -d ./-p && rmdir ./-p
39366   as_mkdir_p=false
39367 fi
39368
39369 as_executable_p="test -f"
39370
39371 # Sed expression to map a string onto a valid CPP name.
39372 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39373
39374 # Sed expression to map a string onto a valid variable name.
39375 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39376
39377
39378 # IFS
39379 # We need space, tab and new line, in precisely that order.
39380 as_nl='
39381 '
39382 IFS="   $as_nl"
39383
39384 # CDPATH.
39385 $as_unset CDPATH
39386
39387 exec 6>&1
39388
39389 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39390 # report actual input values of CONFIG_FILES etc. instead of their
39391 # values after options handling.  Logging --version etc. is OK.
39392 exec 5>>config.log
39393 {
39394   echo
39395   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39396 ## Running $as_me. ##
39397 _ASBOX
39398 } >&5
39399 cat >&5 <<_CSEOF
39400
39401 This file was extended by $as_me, which was
39402 generated by GNU Autoconf 2.59.  Invocation command line was
39403
39404   CONFIG_FILES    = $CONFIG_FILES
39405   CONFIG_HEADERS  = $CONFIG_HEADERS
39406   CONFIG_LINKS    = $CONFIG_LINKS
39407   CONFIG_COMMANDS = $CONFIG_COMMANDS
39408   $ $0 $@
39409
39410 _CSEOF
39411 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39412 echo >&5
39413 _ACEOF
39414
39415 # Files that config.status was made for.
39416 if test -n "$ac_config_files"; then
39417   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39418 fi
39419
39420 if test -n "$ac_config_headers"; then
39421   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39422 fi
39423
39424 if test -n "$ac_config_links"; then
39425   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39426 fi
39427
39428 if test -n "$ac_config_commands"; then
39429   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39430 fi
39431
39432 cat >>$CONFIG_STATUS <<\_ACEOF
39433
39434 ac_cs_usage="\
39435 \`$as_me' instantiates files from templates according to the
39436 current configuration.
39437
39438 Usage: $0 [OPTIONS] [FILE]...
39439
39440   -h, --help       print this help, then exit
39441   -V, --version    print version number, then exit
39442   -q, --quiet      do not print progress messages
39443   -d, --debug      don't remove temporary files
39444       --recheck    update $as_me by reconfiguring in the same conditions
39445   --file=FILE[:TEMPLATE]
39446                    instantiate the configuration file FILE
39447   --header=FILE[:TEMPLATE]
39448                    instantiate the configuration header FILE
39449
39450 Configuration files:
39451 $config_files
39452
39453 Configuration headers:
39454 $config_headers
39455
39456 Configuration commands:
39457 $config_commands
39458
39459 Report bugs to <bug-autoconf@gnu.org>."
39460 _ACEOF
39461
39462 cat >>$CONFIG_STATUS <<_ACEOF
39463 ac_cs_version="\\
39464 config.status
39465 configured by $0, generated by GNU Autoconf 2.59,
39466   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39467
39468 Copyright (C) 2003 Free Software Foundation, Inc.
39469 This config.status script is free software; the Free Software Foundation
39470 gives unlimited permission to copy, distribute and modify it."
39471 srcdir=$srcdir
39472 INSTALL="$INSTALL"
39473 _ACEOF
39474
39475 cat >>$CONFIG_STATUS <<\_ACEOF
39476 # If no file are specified by the user, then we need to provide default
39477 # value.  By we need to know if files were specified by the user.
39478 ac_need_defaults=:
39479 while test $# != 0
39480 do
39481   case $1 in
39482   --*=*)
39483     ac_option=`expr "x$1" : 'x\([^=]*\)='`
39484     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39485     ac_shift=:
39486     ;;
39487   -*)
39488     ac_option=$1
39489     ac_optarg=$2
39490     ac_shift=shift
39491     ;;
39492   *) # This is not an option, so the user has probably given explicit
39493      # arguments.
39494      ac_option=$1
39495      ac_need_defaults=false;;
39496   esac
39497
39498   case $ac_option in
39499   # Handling of the options.
39500 _ACEOF
39501 cat >>$CONFIG_STATUS <<\_ACEOF
39502   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39503     ac_cs_recheck=: ;;
39504   --version | --vers* | -V )
39505     echo "$ac_cs_version"; exit 0 ;;
39506   --he | --h)
39507     # Conflict between --help and --header
39508     { { echo "$as_me:$LINENO: error: ambiguous option: $1
39509 Try \`$0 --help' for more information." >&5
39510 echo "$as_me: error: ambiguous option: $1
39511 Try \`$0 --help' for more information." >&2;}
39512    { (exit 1); exit 1; }; };;
39513   --help | --hel | -h )
39514     echo "$ac_cs_usage"; exit 0 ;;
39515   --debug | --d* | -d )
39516     debug=: ;;
39517   --file | --fil | --fi | --f )
39518     $ac_shift
39519     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39520     ac_need_defaults=false;;
39521   --header | --heade | --head | --hea )
39522     $ac_shift
39523     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39524     ac_need_defaults=false;;
39525   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39526   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39527     ac_cs_silent=: ;;
39528
39529   # This is an error.
39530   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39531 Try \`$0 --help' for more information." >&5
39532 echo "$as_me: error: unrecognized option: $1
39533 Try \`$0 --help' for more information." >&2;}
39534    { (exit 1); exit 1; }; } ;;
39535
39536   *) ac_config_targets="$ac_config_targets $1" ;;
39537
39538   esac
39539   shift
39540 done
39541
39542 ac_configure_extra_args=
39543
39544 if $ac_cs_silent; then
39545   exec 6>/dev/null
39546   ac_configure_extra_args="$ac_configure_extra_args --silent"
39547 fi
39548
39549 _ACEOF
39550 cat >>$CONFIG_STATUS <<_ACEOF
39551 if \$ac_cs_recheck; then
39552   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39553   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39554 fi
39555
39556 _ACEOF
39557
39558 cat >>$CONFIG_STATUS <<_ACEOF
39559 #
39560 # INIT-COMMANDS section.
39561 #
39562
39563 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39564
39565 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39566 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39567
39568
39569 _ACEOF
39570
39571
39572
39573 cat >>$CONFIG_STATUS <<\_ACEOF
39574 for ac_config_target in $ac_config_targets
39575 do
39576   case "$ac_config_target" in
39577   # Handling of arguments.
39578   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39579   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39580   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39581   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39582   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39583   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39584   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39585   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39586   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39587   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39588   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39589   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39590   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39591   "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" ;;
39592   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39593   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39594   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39595   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39596   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39597   "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" ;;
39598   "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" ;;
39599   "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" ;;
39600   "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" ;;
39601   "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" ;;
39602   "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" ;;
39603   "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" ;;
39604   "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" ;;
39605   "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" ;;
39606   "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" ;;
39607   "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" ;;
39608   "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" ;;
39609   "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" ;;
39610   "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" ;;
39611   "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" ;;
39612   "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" ;;
39613   "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" ;;
39614   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39615   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39616   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39617   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39618   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39619   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39620   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39621   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39622   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39623   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39624 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39625    { (exit 1); exit 1; }; };;
39626   esac
39627 done
39628
39629 # If the user did not use the arguments to specify the items to instantiate,
39630 # then the envvar interface is used.  Set only those that are not.
39631 # We use the long form for the default assignment because of an extremely
39632 # bizarre bug on SunOS 4.1.3.
39633 if $ac_need_defaults; then
39634   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39635   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39636   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39637 fi
39638
39639 # Have a temporary directory for convenience.  Make it in the build tree
39640 # simply because there is no reason to put it here, and in addition,
39641 # creating and moving files from /tmp can sometimes cause problems.
39642 # Create a temporary directory, and hook for its removal unless debugging.
39643 $debug ||
39644 {
39645   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39646   trap '{ (exit 1); exit 1; }' 1 2 13 15
39647 }
39648
39649 # Create a (secure) tmp directory for tmp files.
39650
39651 {
39652   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39653   test -n "$tmp" && test -d "$tmp"
39654 }  ||
39655 {
39656   tmp=./confstat$$-$RANDOM
39657   (umask 077 && mkdir $tmp)
39658 } ||
39659 {
39660    echo "$me: cannot create a temporary directory in ." >&2
39661    { (exit 1); exit 1; }
39662 }
39663
39664 _ACEOF
39665
39666 cat >>$CONFIG_STATUS <<_ACEOF
39667
39668 #
39669 # CONFIG_FILES section.
39670 #
39671
39672 # No need to generate the scripts if there are no CONFIG_FILES.
39673 # This happens for instance when ./config.status config.h
39674 if test -n "\$CONFIG_FILES"; then
39675   # Protect against being on the right side of a sed subst in config.status.
39676   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39677    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39678 s,@SHELL@,$SHELL,;t t
39679 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39680 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39681 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39682 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39683 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39684 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39685 s,@exec_prefix@,$exec_prefix,;t t
39686 s,@prefix@,$prefix,;t t
39687 s,@program_transform_name@,$program_transform_name,;t t
39688 s,@bindir@,$bindir,;t t
39689 s,@sbindir@,$sbindir,;t t
39690 s,@libexecdir@,$libexecdir,;t t
39691 s,@datadir@,$datadir,;t t
39692 s,@sysconfdir@,$sysconfdir,;t t
39693 s,@sharedstatedir@,$sharedstatedir,;t t
39694 s,@localstatedir@,$localstatedir,;t t
39695 s,@libdir@,$libdir,;t t
39696 s,@includedir@,$includedir,;t t
39697 s,@oldincludedir@,$oldincludedir,;t t
39698 s,@infodir@,$infodir,;t t
39699 s,@mandir@,$mandir,;t t
39700 s,@build_alias@,$build_alias,;t t
39701 s,@host_alias@,$host_alias,;t t
39702 s,@target_alias@,$target_alias,;t t
39703 s,@DEFS@,$DEFS,;t t
39704 s,@ECHO_C@,$ECHO_C,;t t
39705 s,@ECHO_N@,$ECHO_N,;t t
39706 s,@ECHO_T@,$ECHO_T,;t t
39707 s,@LIBS@,$LIBS,;t t
39708 s,@build@,$build,;t t
39709 s,@build_cpu@,$build_cpu,;t t
39710 s,@build_vendor@,$build_vendor,;t t
39711 s,@build_os@,$build_os,;t t
39712 s,@host@,$host,;t t
39713 s,@host_cpu@,$host_cpu,;t t
39714 s,@host_vendor@,$host_vendor,;t t
39715 s,@host_os@,$host_os,;t t
39716 s,@target@,$target,;t t
39717 s,@target_cpu@,$target_cpu,;t t
39718 s,@target_vendor@,$target_vendor,;t t
39719 s,@target_os@,$target_os,;t t
39720 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39721 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39722 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39723 s,@CYGPATH_W@,$CYGPATH_W,;t t
39724 s,@PACKAGE@,$PACKAGE,;t t
39725 s,@VERSION@,$VERSION,;t t
39726 s,@ACLOCAL@,$ACLOCAL,;t t
39727 s,@AUTOCONF@,$AUTOCONF,;t t
39728 s,@AUTOMAKE@,$AUTOMAKE,;t t
39729 s,@AUTOHEADER@,$AUTOHEADER,;t t
39730 s,@MAKEINFO@,$MAKEINFO,;t t
39731 s,@install_sh@,$install_sh,;t t
39732 s,@STRIP@,$STRIP,;t t
39733 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39734 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
39735 s,@mkdir_p@,$mkdir_p,;t t
39736 s,@AWK@,$AWK,;t t
39737 s,@SET_MAKE@,$SET_MAKE,;t t
39738 s,@am__leading_dot@,$am__leading_dot,;t t
39739 s,@AMTAR@,$AMTAR,;t t
39740 s,@am__tar@,$am__tar,;t t
39741 s,@am__untar@,$am__untar,;t t
39742 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
39743 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
39744 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
39745 s,@top_builddir@,$top_builddir,;t t
39746 s,@ldap_subdir@,$ldap_subdir,;t t
39747 s,@CC@,$CC,;t t
39748 s,@AR@,$AR,;t t
39749 s,@CFLAGS@,$CFLAGS,;t t
39750 s,@LDFLAGS@,$LDFLAGS,;t t
39751 s,@CPPFLAGS@,$CPPFLAGS,;t t
39752 s,@ac_ct_CC@,$ac_ct_CC,;t t
39753 s,@EXEEXT@,$EXEEXT,;t t
39754 s,@OBJEXT@,$OBJEXT,;t t
39755 s,@DEPDIR@,$DEPDIR,;t t
39756 s,@am__include@,$am__include,;t t
39757 s,@am__quote@,$am__quote,;t t
39758 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
39759 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
39760 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
39761 s,@CCDEPMODE@,$CCDEPMODE,;t t
39762 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
39763 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
39764 s,@EGREP@,$EGREP,;t t
39765 s,@LN_S@,$LN_S,;t t
39766 s,@ECHO@,$ECHO,;t t
39767 s,@ac_ct_AR@,$ac_ct_AR,;t t
39768 s,@RANLIB@,$RANLIB,;t t
39769 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39770 s,@DLLTOOL@,$DLLTOOL,;t t
39771 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
39772 s,@AS@,$AS,;t t
39773 s,@ac_ct_AS@,$ac_ct_AS,;t t
39774 s,@OBJDUMP@,$OBJDUMP,;t t
39775 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
39776 s,@CPP@,$CPP,;t t
39777 s,@LIBTOOL@,$LIBTOOL,;t t
39778 s,@PERLBIN@,$PERLBIN,;t t
39779 s,@OL_MKDEP@,$OL_MKDEP,;t t
39780 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
39781 s,@LTSTATIC@,$LTSTATIC,;t t
39782 s,@MYSQL@,$MYSQL,;t t
39783 s,@LIBOBJS@,$LIBOBJS,;t t
39784 s,@LIBSRCS@,$LIBSRCS,;t t
39785 s,@PLAT@,$PLAT,;t t
39786 s,@WITH_SASL@,$WITH_SASL,;t t
39787 s,@WITH_TLS@,$WITH_TLS,;t t
39788 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
39789 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
39790 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
39791 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
39792 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
39793 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
39794 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
39795 s,@BUILD_BDB@,$BUILD_BDB,;t t
39796 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
39797 s,@BUILD_HDB@,$BUILD_HDB,;t t
39798 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
39799 s,@BUILD_META@,$BUILD_META,;t t
39800 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
39801 s,@BUILD_NDB@,$BUILD_NDB,;t t
39802 s,@BUILD_NULL@,$BUILD_NULL,;t t
39803 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
39804 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
39805 s,@BUILD_PERL@,$BUILD_PERL,;t t
39806 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
39807 s,@BUILD_SOCK@,$BUILD_SOCK,;t t
39808 s,@BUILD_SQL@,$BUILD_SQL,;t t
39809 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
39810 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
39811 s,@BUILD_COLLECT@,$BUILD_COLLECT,;t t
39812 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
39813 s,@BUILD_DDS@,$BUILD_DDS,;t t
39814 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
39815 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
39816 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
39817 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
39818 s,@BUILD_MEMBEROF@,$BUILD_MEMBEROF,;t t
39819 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
39820 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
39821 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
39822 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
39823 s,@BUILD_RWM@,$BUILD_RWM,;t t
39824 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
39825 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
39826 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
39827 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
39828 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
39829 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
39830 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
39831 s,@BDB_LIBS@,$BDB_LIBS,;t t
39832 s,@SLAPD_NDB_LIBS@,$SLAPD_NDB_LIBS,;t t
39833 s,@SLAPD_NDB_INCS@,$SLAPD_NDB_INCS,;t t
39834 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
39835 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
39836 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
39837 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
39838 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
39839 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
39840 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
39841 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
39842 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
39843 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
39844 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
39845 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
39846 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
39847 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
39848 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
39849 s,@SASL_LIBS@,$SASL_LIBS,;t t
39850 s,@GSSAPI_LIBS@,$GSSAPI_LIBS,;t t
39851 s,@TLS_LIBS@,$TLS_LIBS,;t t
39852 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
39853 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
39854 s,@LIBSLAPI@,$LIBSLAPI,;t t
39855 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
39856 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
39857 s,@ICU_LIBS@,$ICU_LIBS,;t t
39858 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
39859 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
39860 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
39861 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
39862 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
39863 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
39864 CEOF
39865
39866 _ACEOF
39867
39868   cat >>$CONFIG_STATUS <<\_ACEOF
39869   # Split the substitutions into bite-sized pieces for seds with
39870   # small command number limits, like on Digital OSF/1 and HP-UX.
39871   ac_max_sed_lines=48
39872   ac_sed_frag=1 # Number of current file.
39873   ac_beg=1 # First line for current file.
39874   ac_end=$ac_max_sed_lines # Line after last line for current file.
39875   ac_more_lines=:
39876   ac_sed_cmds=
39877   while $ac_more_lines; do
39878     if test $ac_beg -gt 1; then
39879       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39880     else
39881       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39882     fi
39883     if test ! -s $tmp/subs.frag; then
39884       ac_more_lines=false
39885     else
39886       # The purpose of the label and of the branching condition is to
39887       # speed up the sed processing (if there are no `@' at all, there
39888       # is no need to browse any of the substitutions).
39889       # These are the two extra sed commands mentioned above.
39890       (echo ':t
39891   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39892       if test -z "$ac_sed_cmds"; then
39893         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
39894       else
39895         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
39896       fi
39897       ac_sed_frag=`expr $ac_sed_frag + 1`
39898       ac_beg=$ac_end
39899       ac_end=`expr $ac_end + $ac_max_sed_lines`
39900     fi
39901   done
39902   if test -z "$ac_sed_cmds"; then
39903     ac_sed_cmds=cat
39904   fi
39905 fi # test -n "$CONFIG_FILES"
39906
39907 _ACEOF
39908 cat >>$CONFIG_STATUS <<\_ACEOF
39909 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
39910   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39911   case $ac_file in
39912   - | *:- | *:-:* ) # input from stdin
39913         cat >$tmp/stdin
39914         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39915         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39916   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39917         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39918   * )   ac_file_in=$ac_file.in ;;
39919   esac
39920
39921   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39922   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39923 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39924          X"$ac_file" : 'X\(//\)[^/]' \| \
39925          X"$ac_file" : 'X\(//\)$' \| \
39926          X"$ac_file" : 'X\(/\)' \| \
39927          .     : '\(.\)' 2>/dev/null ||
39928 echo X"$ac_file" |
39929     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39930           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39931           /^X\(\/\/\)$/{ s//\1/; q; }
39932           /^X\(\/\).*/{ s//\1/; q; }
39933           s/.*/./; q'`
39934   { if $as_mkdir_p; then
39935     mkdir -p "$ac_dir"
39936   else
39937     as_dir="$ac_dir"
39938     as_dirs=
39939     while test ! -d "$as_dir"; do
39940       as_dirs="$as_dir $as_dirs"
39941       as_dir=`(dirname "$as_dir") 2>/dev/null ||
39942 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39943          X"$as_dir" : 'X\(//\)[^/]' \| \
39944          X"$as_dir" : 'X\(//\)$' \| \
39945          X"$as_dir" : 'X\(/\)' \| \
39946          .     : '\(.\)' 2>/dev/null ||
39947 echo X"$as_dir" |
39948     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39949           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39950           /^X\(\/\/\)$/{ s//\1/; q; }
39951           /^X\(\/\).*/{ s//\1/; q; }
39952           s/.*/./; q'`
39953     done
39954     test ! -n "$as_dirs" || mkdir $as_dirs
39955   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39956 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39957    { (exit 1); exit 1; }; }; }
39958
39959   ac_builddir=.
39960
39961 if test "$ac_dir" != .; then
39962   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39963   # A "../" for each directory in $ac_dir_suffix.
39964   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39965 else
39966   ac_dir_suffix= ac_top_builddir=
39967 fi
39968
39969 case $srcdir in
39970   .)  # No --srcdir option.  We are building in place.
39971     ac_srcdir=.
39972     if test -z "$ac_top_builddir"; then
39973        ac_top_srcdir=.
39974     else
39975        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39976     fi ;;
39977   [\\/]* | ?:[\\/]* )  # Absolute path.
39978     ac_srcdir=$srcdir$ac_dir_suffix;
39979     ac_top_srcdir=$srcdir ;;
39980   *) # Relative path.
39981     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39982     ac_top_srcdir=$ac_top_builddir$srcdir ;;
39983 esac
39984
39985 # Do not use `cd foo && pwd` to compute absolute paths, because
39986 # the directories may not exist.
39987 case `pwd` in
39988 .) ac_abs_builddir="$ac_dir";;
39989 *)
39990   case "$ac_dir" in
39991   .) ac_abs_builddir=`pwd`;;
39992   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39993   *) ac_abs_builddir=`pwd`/"$ac_dir";;
39994   esac;;
39995 esac
39996 case $ac_abs_builddir in
39997 .) ac_abs_top_builddir=${ac_top_builddir}.;;
39998 *)
39999   case ${ac_top_builddir}. in
40000   .) ac_abs_top_builddir=$ac_abs_builddir;;
40001   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40002   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40003   esac;;
40004 esac
40005 case $ac_abs_builddir in
40006 .) ac_abs_srcdir=$ac_srcdir;;
40007 *)
40008   case $ac_srcdir in
40009   .) ac_abs_srcdir=$ac_abs_builddir;;
40010   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40011   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40012   esac;;
40013 esac
40014 case $ac_abs_builddir in
40015 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40016 *)
40017   case $ac_top_srcdir in
40018   .) ac_abs_top_srcdir=$ac_abs_builddir;;
40019   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40020   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40021   esac;;
40022 esac
40023
40024
40025   case $INSTALL in
40026   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40027   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40028   esac
40029
40030   if test x"$ac_file" != x-; then
40031     { echo "$as_me:$LINENO: creating $ac_file" >&5
40032 echo "$as_me: creating $ac_file" >&6;}
40033     rm -f "$ac_file"
40034   fi
40035   # Let's still pretend it is `configure' which instantiates (i.e., don't
40036   # use $as_me), people would be surprised to read:
40037   #    /* config.h.  Generated by config.status.  */
40038   if test x"$ac_file" = x-; then
40039     configure_input=
40040   else
40041     configure_input="$ac_file.  "
40042   fi
40043   configure_input=$configure_input"Generated from `echo $ac_file_in |
40044                                      sed 's,.*/,,'` by configure."
40045
40046   # First look for the input files in the build tree, otherwise in the
40047   # src tree.
40048   ac_file_inputs=`IFS=:
40049     for f in $ac_file_in; do
40050       case $f in
40051       -) echo $tmp/stdin ;;
40052       [\\/$]*)
40053          # Absolute (can't be DOS-style, as IFS=:)
40054          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40055 echo "$as_me: error: cannot find input file: $f" >&2;}
40056    { (exit 1); exit 1; }; }
40057          echo "$f";;
40058       *) # Relative
40059          if test -f "$f"; then
40060            # Build tree
40061            echo "$f"
40062          elif test -f "$srcdir/$f"; then
40063            # Source tree
40064            echo "$srcdir/$f"
40065          else
40066            # /dev/null tree
40067            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40068 echo "$as_me: error: cannot find input file: $f" >&2;}
40069    { (exit 1); exit 1; }; }
40070          fi;;
40071       esac
40072     done` || { (exit 1); exit 1; }
40073 _ACEOF
40074 cat >>$CONFIG_STATUS <<_ACEOF
40075   sed "$ac_vpsub
40076 $extrasub
40077 _ACEOF
40078 cat >>$CONFIG_STATUS <<\_ACEOF
40079 :t
40080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40081 s,@configure_input@,$configure_input,;t t
40082 s,@srcdir@,$ac_srcdir,;t t
40083 s,@abs_srcdir@,$ac_abs_srcdir,;t t
40084 s,@top_srcdir@,$ac_top_srcdir,;t t
40085 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40086 s,@builddir@,$ac_builddir,;t t
40087 s,@abs_builddir@,$ac_abs_builddir,;t t
40088 s,@top_builddir@,$ac_top_builddir,;t t
40089 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40090 s,@INSTALL@,$ac_INSTALL,;t t
40091 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40092   rm -f $tmp/stdin
40093   if test x"$ac_file" != x-; then
40094     mv $tmp/out $ac_file
40095   else
40096     cat $tmp/out
40097     rm -f $tmp/out
40098   fi
40099
40100 done
40101 _ACEOF
40102 cat >>$CONFIG_STATUS <<\_ACEOF
40103
40104 #
40105 # CONFIG_HEADER section.
40106 #
40107
40108 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40109 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40110 #
40111 # ac_d sets the value in "#define NAME VALUE" lines.
40112 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
40113 ac_dB='[         ].*$,\1#\2'
40114 ac_dC=' '
40115 ac_dD=',;t'
40116 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40117 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
40118 ac_uB='$,\1#\2define\3'
40119 ac_uC=' '
40120 ac_uD=',;t'
40121
40122 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40123   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40124   case $ac_file in
40125   - | *:- | *:-:* ) # input from stdin
40126         cat >$tmp/stdin
40127         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40128         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40129   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40130         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40131   * )   ac_file_in=$ac_file.in ;;
40132   esac
40133
40134   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40135 echo "$as_me: creating $ac_file" >&6;}
40136
40137   # First look for the input files in the build tree, otherwise in the
40138   # src tree.
40139   ac_file_inputs=`IFS=:
40140     for f in $ac_file_in; do
40141       case $f in
40142       -) echo $tmp/stdin ;;
40143       [\\/$]*)
40144          # Absolute (can't be DOS-style, as IFS=:)
40145          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40146 echo "$as_me: error: cannot find input file: $f" >&2;}
40147    { (exit 1); exit 1; }; }
40148          # Do quote $f, to prevent DOS paths from being IFS'd.
40149          echo "$f";;
40150       *) # Relative
40151          if test -f "$f"; then
40152            # Build tree
40153            echo "$f"
40154          elif test -f "$srcdir/$f"; then
40155            # Source tree
40156            echo "$srcdir/$f"
40157          else
40158            # /dev/null tree
40159            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40160 echo "$as_me: error: cannot find input file: $f" >&2;}
40161    { (exit 1); exit 1; }; }
40162          fi;;
40163       esac
40164     done` || { (exit 1); exit 1; }
40165   # Remove the trailing spaces.
40166   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
40167
40168 _ACEOF
40169
40170 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40171 # `conftest.undefs', that substitutes the proper values into
40172 # config.h.in to produce config.h.  The first handles `#define'
40173 # templates, and the second `#undef' templates.
40174 # And first: Protect against being on the right side of a sed subst in
40175 # config.status.  Protect against being in an unquoted here document
40176 # in config.status.
40177 rm -f conftest.defines conftest.undefs
40178 # Using a here document instead of a string reduces the quoting nightmare.
40179 # Putting comments in sed scripts is not portable.
40180 #
40181 # `end' is used to avoid that the second main sed command (meant for
40182 # 0-ary CPP macros) applies to n-ary macro definitions.
40183 # See the Autoconf documentation for `clear'.
40184 cat >confdef2sed.sed <<\_ACEOF
40185 s/[\\&,]/\\&/g
40186 s,[\\$`],\\&,g
40187 t clear
40188 : clear
40189 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40190 t end
40191 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40192 : end
40193 _ACEOF
40194 # If some macros were called several times there might be several times
40195 # the same #defines, which is useless.  Nevertheless, we may not want to
40196 # sort them, since we want the *last* AC-DEFINE to be honored.
40197 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40198 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40199 rm -f confdef2sed.sed
40200
40201 # This sed command replaces #undef with comments.  This is necessary, for
40202 # example, in the case of _POSIX_SOURCE, which is predefined and required
40203 # on some systems where configure will not decide to define it.
40204 cat >>conftest.undefs <<\_ACEOF
40205 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40206 _ACEOF
40207
40208 # Break up conftest.defines because some shells have a limit on the size
40209 # of here documents, and old seds have small limits too (100 cmds).
40210 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40211 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40212 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40213 echo '  :' >>$CONFIG_STATUS
40214 rm -f conftest.tail
40215 while grep . conftest.defines >/dev/null
40216 do
40217   # Write a limited-size here document to $tmp/defines.sed.
40218   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40219   # Speed up: don't consider the non `#define' lines.
40220   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
40221   # Work around the forget-to-reset-the-flag bug.
40222   echo 't clr' >>$CONFIG_STATUS
40223   echo ': clr' >>$CONFIG_STATUS
40224   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40225   echo 'CEOF
40226   sed -f $tmp/defines.sed $tmp/in >$tmp/out
40227   rm -f $tmp/in
40228   mv $tmp/out $tmp/in
40229 ' >>$CONFIG_STATUS
40230   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40231   rm -f conftest.defines
40232   mv conftest.tail conftest.defines
40233 done
40234 rm -f conftest.defines
40235 echo '  fi # grep' >>$CONFIG_STATUS
40236 echo >>$CONFIG_STATUS
40237
40238 # Break up conftest.undefs because some shells have a limit on the size
40239 # of here documents, and old seds have small limits too (100 cmds).
40240 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
40241 rm -f conftest.tail
40242 while grep . conftest.undefs >/dev/null
40243 do
40244   # Write a limited-size here document to $tmp/undefs.sed.
40245   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40246   # Speed up: don't consider the non `#undef'
40247   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
40248   # Work around the forget-to-reset-the-flag bug.
40249   echo 't clr' >>$CONFIG_STATUS
40250   echo ': clr' >>$CONFIG_STATUS
40251   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40252   echo 'CEOF
40253   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40254   rm -f $tmp/in
40255   mv $tmp/out $tmp/in
40256 ' >>$CONFIG_STATUS
40257   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40258   rm -f conftest.undefs
40259   mv conftest.tail conftest.undefs
40260 done
40261 rm -f conftest.undefs
40262
40263 cat >>$CONFIG_STATUS <<\_ACEOF
40264   # Let's still pretend it is `configure' which instantiates (i.e., don't
40265   # use $as_me), people would be surprised to read:
40266   #    /* config.h.  Generated by config.status.  */
40267   if test x"$ac_file" = x-; then
40268     echo "/* Generated by configure.  */" >$tmp/config.h
40269   else
40270     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
40271   fi
40272   cat $tmp/in >>$tmp/config.h
40273   rm -f $tmp/in
40274   if test x"$ac_file" != x-; then
40275     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40276       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40277 echo "$as_me: $ac_file is unchanged" >&6;}
40278     else
40279       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40280 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40281          X"$ac_file" : 'X\(//\)[^/]' \| \
40282          X"$ac_file" : 'X\(//\)$' \| \
40283          X"$ac_file" : 'X\(/\)' \| \
40284          .     : '\(.\)' 2>/dev/null ||
40285 echo X"$ac_file" |
40286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40287           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40288           /^X\(\/\/\)$/{ s//\1/; q; }
40289           /^X\(\/\).*/{ s//\1/; q; }
40290           s/.*/./; q'`
40291       { if $as_mkdir_p; then
40292     mkdir -p "$ac_dir"
40293   else
40294     as_dir="$ac_dir"
40295     as_dirs=
40296     while test ! -d "$as_dir"; do
40297       as_dirs="$as_dir $as_dirs"
40298       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40300          X"$as_dir" : 'X\(//\)[^/]' \| \
40301          X"$as_dir" : 'X\(//\)$' \| \
40302          X"$as_dir" : 'X\(/\)' \| \
40303          .     : '\(.\)' 2>/dev/null ||
40304 echo X"$as_dir" |
40305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40306           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40307           /^X\(\/\/\)$/{ s//\1/; q; }
40308           /^X\(\/\).*/{ s//\1/; q; }
40309           s/.*/./; q'`
40310     done
40311     test ! -n "$as_dirs" || mkdir $as_dirs
40312   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40313 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40314    { (exit 1); exit 1; }; }; }
40315
40316       rm -f $ac_file
40317       mv $tmp/config.h $ac_file
40318     fi
40319   else
40320     cat $tmp/config.h
40321     rm -f $tmp/config.h
40322   fi
40323 # Compute $ac_file's index in $config_headers.
40324 _am_stamp_count=1
40325 for _am_header in $config_headers :; do
40326   case $_am_header in
40327     $ac_file | $ac_file:* )
40328       break ;;
40329     * )
40330       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40331   esac
40332 done
40333 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40334 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40335          X$ac_file : 'X\(//\)[^/]' \| \
40336          X$ac_file : 'X\(//\)$' \| \
40337          X$ac_file : 'X\(/\)' \| \
40338          .     : '\(.\)' 2>/dev/null ||
40339 echo X$ac_file |
40340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40341           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40342           /^X\(\/\/\)$/{ s//\1/; q; }
40343           /^X\(\/\).*/{ s//\1/; q; }
40344           s/.*/./; q'`/stamp-h$_am_stamp_count
40345 done
40346 _ACEOF
40347 cat >>$CONFIG_STATUS <<\_ACEOF
40348
40349 #
40350 # CONFIG_COMMANDS section.
40351 #
40352 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40353   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40354   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40355   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40356 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40357          X"$ac_dest" : 'X\(//\)[^/]' \| \
40358          X"$ac_dest" : 'X\(//\)$' \| \
40359          X"$ac_dest" : 'X\(/\)' \| \
40360          .     : '\(.\)' 2>/dev/null ||
40361 echo X"$ac_dest" |
40362     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40363           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40364           /^X\(\/\/\)$/{ s//\1/; q; }
40365           /^X\(\/\).*/{ s//\1/; q; }
40366           s/.*/./; q'`
40367   { if $as_mkdir_p; then
40368     mkdir -p "$ac_dir"
40369   else
40370     as_dir="$ac_dir"
40371     as_dirs=
40372     while test ! -d "$as_dir"; do
40373       as_dirs="$as_dir $as_dirs"
40374       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40376          X"$as_dir" : 'X\(//\)[^/]' \| \
40377          X"$as_dir" : 'X\(//\)$' \| \
40378          X"$as_dir" : 'X\(/\)' \| \
40379          .     : '\(.\)' 2>/dev/null ||
40380 echo X"$as_dir" |
40381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40382           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40383           /^X\(\/\/\)$/{ s//\1/; q; }
40384           /^X\(\/\).*/{ s//\1/; q; }
40385           s/.*/./; q'`
40386     done
40387     test ! -n "$as_dirs" || mkdir $as_dirs
40388   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40389 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40390    { (exit 1); exit 1; }; }; }
40391
40392   ac_builddir=.
40393
40394 if test "$ac_dir" != .; then
40395   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40396   # A "../" for each directory in $ac_dir_suffix.
40397   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40398 else
40399   ac_dir_suffix= ac_top_builddir=
40400 fi
40401
40402 case $srcdir in
40403   .)  # No --srcdir option.  We are building in place.
40404     ac_srcdir=.
40405     if test -z "$ac_top_builddir"; then
40406        ac_top_srcdir=.
40407     else
40408        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40409     fi ;;
40410   [\\/]* | ?:[\\/]* )  # Absolute path.
40411     ac_srcdir=$srcdir$ac_dir_suffix;
40412     ac_top_srcdir=$srcdir ;;
40413   *) # Relative path.
40414     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40415     ac_top_srcdir=$ac_top_builddir$srcdir ;;
40416 esac
40417
40418 # Do not use `cd foo && pwd` to compute absolute paths, because
40419 # the directories may not exist.
40420 case `pwd` in
40421 .) ac_abs_builddir="$ac_dir";;
40422 *)
40423   case "$ac_dir" in
40424   .) ac_abs_builddir=`pwd`;;
40425   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40426   *) ac_abs_builddir=`pwd`/"$ac_dir";;
40427   esac;;
40428 esac
40429 case $ac_abs_builddir in
40430 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40431 *)
40432   case ${ac_top_builddir}. in
40433   .) ac_abs_top_builddir=$ac_abs_builddir;;
40434   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40435   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40436   esac;;
40437 esac
40438 case $ac_abs_builddir in
40439 .) ac_abs_srcdir=$ac_srcdir;;
40440 *)
40441   case $ac_srcdir in
40442   .) ac_abs_srcdir=$ac_abs_builddir;;
40443   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40444   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40445   esac;;
40446 esac
40447 case $ac_abs_builddir in
40448 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40449 *)
40450   case $ac_top_srcdir in
40451   .) ac_abs_top_srcdir=$ac_abs_builddir;;
40452   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40453   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40454   esac;;
40455 esac
40456
40457
40458   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40459 echo "$as_me: executing $ac_dest commands" >&6;}
40460   case $ac_dest in
40461     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40462   # Strip MF so we end up with the name of the file.
40463   mf=`echo "$mf" | sed -e 's/:.*$//'`
40464   # Check whether this is an Automake generated Makefile or not.
40465   # We used to match only the files named `Makefile.in', but
40466   # some people rename them; so instead we look at the file content.
40467   # Grep'ing the first line is not enough: some people post-process
40468   # each Makefile.in and add a new line on top of each file to say so.
40469   # So let's grep whole file.
40470   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40471     dirpart=`(dirname "$mf") 2>/dev/null ||
40472 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40473          X"$mf" : 'X\(//\)[^/]' \| \
40474          X"$mf" : 'X\(//\)$' \| \
40475          X"$mf" : 'X\(/\)' \| \
40476          .     : '\(.\)' 2>/dev/null ||
40477 echo X"$mf" |
40478     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40479           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40480           /^X\(\/\/\)$/{ s//\1/; q; }
40481           /^X\(\/\).*/{ s//\1/; q; }
40482           s/.*/./; q'`
40483   else
40484     continue
40485   fi
40486   # Extract the definition of DEPDIR, am__include, and am__quote
40487   # from the Makefile without running `make'.
40488   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40489   test -z "$DEPDIR" && continue
40490   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40491   test -z "am__include" && continue
40492   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40493   # When using ansi2knr, U may be empty or an underscore; expand it
40494   U=`sed -n 's/^U = //p' < "$mf"`
40495   # Find all dependency output files, they are included files with
40496   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40497   # simplest approach to changing $(DEPDIR) to its actual value in the
40498   # expansion.
40499   for file in `sed -n "
40500     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40501        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40502     # Make sure the directory exists.
40503     test -f "$dirpart/$file" && continue
40504     fdir=`(dirname "$file") 2>/dev/null ||
40505 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40506          X"$file" : 'X\(//\)[^/]' \| \
40507          X"$file" : 'X\(//\)$' \| \
40508          X"$file" : 'X\(/\)' \| \
40509          .     : '\(.\)' 2>/dev/null ||
40510 echo X"$file" |
40511     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40512           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40513           /^X\(\/\/\)$/{ s//\1/; q; }
40514           /^X\(\/\).*/{ s//\1/; q; }
40515           s/.*/./; q'`
40516     { if $as_mkdir_p; then
40517     mkdir -p $dirpart/$fdir
40518   else
40519     as_dir=$dirpart/$fdir
40520     as_dirs=
40521     while test ! -d "$as_dir"; do
40522       as_dirs="$as_dir $as_dirs"
40523       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40525          X"$as_dir" : 'X\(//\)[^/]' \| \
40526          X"$as_dir" : 'X\(//\)$' \| \
40527          X"$as_dir" : 'X\(/\)' \| \
40528          .     : '\(.\)' 2>/dev/null ||
40529 echo X"$as_dir" |
40530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40531           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40532           /^X\(\/\/\)$/{ s//\1/; q; }
40533           /^X\(\/\).*/{ s//\1/; q; }
40534           s/.*/./; q'`
40535     done
40536     test ! -n "$as_dirs" || mkdir $as_dirs
40537   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
40538 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
40539    { (exit 1); exit 1; }; }; }
40540
40541     # echo "creating $dirpart/$file"
40542     echo '# dummy' > "$dirpart/$file"
40543   done
40544 done
40545  ;;
40546     default )
40547 chmod +x tests/run
40548 date > stamp-h
40549 BACKENDSC="servers/slapd/backends.c"
40550 echo "Making $BACKENDSC"
40551 rm -f $BACKENDSC
40552 cat > $BACKENDSC << ENDX
40553 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40554  *
40555  * Copyright 1998-2008 The OpenLDAP Foundation.
40556  * All rights reserved.
40557  *
40558  * Redistribution and use in source and binary forms, with or without
40559  * modification, are permitted only as authorized by the OpenLDAP
40560  * Public License.
40561  *
40562  * A copy of this license is available in the file LICENSE in the
40563  * top-level directory of the distribution or, alternatively, at
40564  * <http://www.OpenLDAP.org/license.html>.
40565  */
40566 /* This file is automatically generated by configure; please do not edit. */
40567
40568 #include "portable.h"
40569 #include "slap.h"
40570
40571 ENDX
40572 if test "${STATIC_BACKENDS}"; then
40573         for b in config ${STATIC_BACKENDS}; do
40574                 bb=`echo "${b}" | sed -e 's/back-//'`
40575                 cat >> $BACKENDSC << ENDX
40576 extern BI_init ${bb}_back_initialize;
40577 ENDX
40578         done
40579
40580         cat >> $BACKENDSC << ENDX
40581
40582 BackendInfo slap_binfo[] = {
40583 ENDX
40584
40585         for b in config ${STATIC_BACKENDS}; do
40586                 bb=`echo "${b}" | sed -e 's/back-//'`
40587                 echo "    Add ${bb} ..."
40588                 cat >> $BACKENDSC << ENDX
40589         { "${bb}", ${bb}_back_initialize },
40590 ENDX
40591         done
40592
40593         cat >> $BACKENDSC << ENDX
40594         { NULL, NULL },
40595 };
40596
40597 /* end of generated file */
40598 ENDX
40599 fi
40600 OVERLAYSC="servers/slapd/overlays/statover.c"
40601 echo "Making $OVERLAYSC"
40602 rm -f $OVERLAYSC
40603 cat > $OVERLAYSC << ENDX
40604 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40605  *
40606  * Copyright 1998-2008 The OpenLDAP Foundation.
40607  * All rights reserved.
40608  *
40609  * Redistribution and use in source and binary forms, with or without
40610  * modification, are permitted only as authorized by the OpenLDAP
40611  * Public License.
40612  *
40613  * A copy of this license is available in the file LICENSE in the
40614  * top-level directory of the distribution or, alternatively, at
40615  * <http://www.OpenLDAP.org/license.html>.
40616  */
40617 /* This file is automatically generated by configure; please do not edit. */
40618
40619 #include "portable.h"
40620 #include "slap.h"
40621
40622 ENDX
40623 if test "${STATIC_OVERLAYS}"; then
40624         for o in ${STATIC_OVERLAYS}; do
40625                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40626                 cat >> $OVERLAYSC << ENDX
40627 extern OV_init ${oo}_initialize;
40628 ENDX
40629         done
40630 fi
40631
40632 cat >> $OVERLAYSC << ENDX
40633
40634 OverlayInit slap_oinfo[] = {
40635 ENDX
40636
40637 if test "${STATIC_OVERLAYS}"; then
40638         for o in ${STATIC_OVERLAYS}; do
40639                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40640                 echo "    Add ${oo} ..."
40641                 cat >> $OVERLAYSC << ENDX
40642         { "${oo}", ${oo}_initialize },
40643 ENDX
40644         done
40645 fi
40646
40647         cat >> $OVERLAYSC << ENDX
40648         { NULL, NULL },
40649 };
40650
40651 /* end of generated file */
40652 ENDX
40653
40654 if test "${ol_cv_mkdep}" = no; then
40655         echo '(Do not "make depend"; we do not know how to build dependencies)'
40656 else
40657         echo 'Please run "make depend" to build dependencies'
40658 fi
40659  ;;
40660   esac
40661 done
40662 _ACEOF
40663
40664 cat >>$CONFIG_STATUS <<\_ACEOF
40665
40666 { (exit 0); exit 0; }
40667 _ACEOF
40668 chmod +x $CONFIG_STATUS
40669 ac_clean_files=$ac_clean_files_save
40670
40671
40672 # configure is writing to config.log, and then calls config.status.
40673 # config.status does its own redirection, appending to config.log.
40674 # Unfortunately, on DOS this fails, as config.log is still kept open
40675 # by configure, so config.status won't be able to write to it; its
40676 # output is simply discarded.  So we exec the FD to /dev/null,
40677 # effectively closing config.log, so it can be properly (re)opened and
40678 # appended to by config.status.  When coming back to configure, we
40679 # need to make the FD available again.
40680 if test "$no_create" != yes; then
40681   ac_cs_success=:
40682   ac_config_status_args=
40683   test "$silent" = yes &&
40684     ac_config_status_args="$ac_config_status_args --quiet"
40685   exec 5>/dev/null
40686   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40687   exec 5>>config.log
40688   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40689   # would make configure fail if this is the last instruction.
40690   $ac_cs_success || { (exit 1); exit 1; }
40691 fi
40692