]> git.sur5r.net Git - openldap/blob - configure
ITS#6102,ITS#6078
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.22 2009/01/26 21:54:23 quanah Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293        echo_test_string=`eval $cmd` &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC MYSQL LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_META BUILD_MONITOR BUILD_NDB BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SOCK BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_COLLECT BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_MEMBEROF BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT LDAP_LIBS SLAPD_LIBS BDB_LIBS SLAPD_NDB_LIBS SLAPD_NDB_INCS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS GSSAPI_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929
930 #
931 # Report the --help message.
932 #
933 if test "$ac_init_help" = "long"; then
934   # Omit some internal or obsolete options to make the list less imposing.
935   # This message is too long to be a string in the A/UX 3.1 sh.
936   cat <<_ACEOF
937 \`configure' configures this package to adapt to many kinds of systems.
938
939 Usage: $0 [OPTION]... [VAR=VALUE]...
940
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE.  See below for descriptions of some of the useful variables.
943
944 Defaults for the options are specified in brackets.
945
946 Configuration:
947   -h, --help              display this help and exit
948       --help=short        display options specific to this package
949       --help=recursive    display the short help of all the included packages
950   -V, --version           display version information and exit
951   -q, --quiet, --silent   do not print \`checking...' messages
952       --cache-file=FILE   cache test results in FILE [disabled]
953   -C, --config-cache      alias for \`--cache-file=config.cache'
954   -n, --no-create         do not create output files
955       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
956
957 _ACEOF
958
959   cat <<_ACEOF
960 Installation directories:
961   --prefix=PREFIX         install architecture-independent files in PREFIX
962                           [$ac_default_prefix]
963   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
964                           [PREFIX]
965
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
970
971 For better control, use the options below.
972
973 Fine tuning of the installation directories:
974   --bindir=DIR           user executables [EPREFIX/bin]
975   --sbindir=DIR          system admin executables [EPREFIX/sbin]
976   --libexecdir=DIR       program executables [EPREFIX/libexec]
977   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
978   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
979   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
980   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
981   --libdir=DIR           object code libraries [EPREFIX/lib]
982   --includedir=DIR       C header files [PREFIX/include]
983   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
984   --infodir=DIR          info documentation [PREFIX/info]
985   --mandir=DIR           man documentation [PREFIX/man]
986 _ACEOF
987
988   cat <<\_ACEOF
989
990 Program names:
991   --program-prefix=PREFIX            prepend PREFIX to installed program names
992   --program-suffix=SUFFIX            append SUFFIX to installed program names
993   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
994
995 System types:
996   --build=BUILD     configure for building on BUILD [guessed]
997   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
998   --target=TARGET   configure for building compilers for TARGET [HOST]
999 _ACEOF
1000 fi
1001
1002 if test -n "$ac_init_help"; then
1003
1004   cat <<\_ACEOF
1005
1006 Optional Features:
1007   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1008   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1009   --enable-debug          enable debugging no|yes|traditional [yes]
1010   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1011   --enable-syslog         enable syslog support [auto]
1012   --enable-proctitle      enable proctitle support [yes]
1013   --enable-ipv6           enable IPv6 support [auto]
1014   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1015
1016 SLAPD (Standalone LDAP Daemon) Options:
1017   --enable-slapd          enable building slapd [yes]
1018     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1019     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1020     --enable-cleartext    enable cleartext passwords [yes]
1021     --enable-crypt        enable crypt(3) passwords [no]
1022     --enable-lmpasswd     enable LAN Manager passwords [no]
1023     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1024     --enable-modules      enable dynamic module support [no]
1025     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1026     --enable-rlookups     enable reverse lookups of client hostnames [no]
1027     --enable-slapi        enable SLAPI support (experimental) [no]
1028     --enable-slp          enable SLPv2 support [no]
1029     --enable-wrappers     enable tcp wrapper support [no]
1030
1031 SLAPD Backend Options:
1032     --enable-backends     enable all available backends no|yes|mod
1033     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1034     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1035     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1036     --enable-ldap         enable ldap backend no|yes|mod [no]
1037     --enable-meta         enable metadirectory backend no|yes|mod [no]
1038     --enable-monitor      enable monitor backend no|yes|mod [yes]
1039     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1040     --enable-null         enable null backend no|yes|mod [no]
1041     --enable-passwd       enable passwd backend no|yes|mod [no]
1042     --enable-perl         enable perl backend no|yes|mod [no]
1043     --enable-relay        enable relay backend no|yes|mod [yes]
1044     --enable-shell        enable shell backend no|yes|mod [no]
1045     --enable-sock         enable sock backend no|yes|mod [no]
1046     --enable-sql          enable sql backend no|yes|mod [no]
1047
1048 SLAPD Overlay Options:
1049     --enable-overlays     enable all available overlays no|yes|mod
1050     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1051     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1052     --enable-collect      Collect overlay no|yes|mod [no]
1053     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1054     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1055     --enable-deref        Dereference overlay no|yes|mod [no]
1056     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1057     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1058     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1059     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1060     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1061     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1062     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1063     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1064     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1065     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1066     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1067     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1068     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1069
1070 Library Generation & Linking Options
1071   --enable-static[=PKGS]
1072                           build static libraries [default=yes]
1073   --enable-shared[=PKGS]
1074                           build shared libraries [default=yes]
1075   --enable-fast-install[=PKGS]
1076                           optimize for fast installation [default=yes]
1077   --disable-dependency-tracking  speeds up one-time build
1078   --enable-dependency-tracking   do not reject slow dependency extractors
1079   --disable-libtool-lock  avoid locking (might break parallel builds)
1080
1081 Optional Packages:
1082   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1083   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1084   --with-subdir=DIR       change default subdirectory used for installs
1085   --with-cyrus-sasl       with Cyrus SASL support [auto]
1086   --with-fetch            with fetch(3) URL support [auto]
1087   --with-gssapi           with GSSAPI support [auto]
1088   --with-threads          with threads [auto]
1089   --with-tls              with TLS/SSL support auto|openssl|gnutls [auto]
1090   --with-yielding-select  with implicitly yielding select [auto]
1091   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1092   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1093   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1094   --with-pic              try to use only PIC/non-PIC objects [default=use
1095                           both]
1096   --with-tags[=TAGS]
1097                           include additional configurations [automatic]
1098
1099 See INSTALL file for further details.
1100
1101 Some influential environment variables:
1102   CC          C compiler command
1103   CFLAGS      C compiler flags
1104   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1105               nonstandard directory <lib dir>
1106   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1107               headers in a nonstandard directory <include dir>
1108   CPP         C preprocessor
1109
1110 Use these variables to override the choices made by `configure' or to help
1111 it to find libraries and programs with nonstandard names/locations.
1112
1113 _ACEOF
1114 fi
1115
1116 if test "$ac_init_help" = "recursive"; then
1117   # If there are subdirs, report their specific --help.
1118   ac_popdir=`pwd`
1119   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1120     test -d $ac_dir || continue
1121     ac_builddir=.
1122
1123 if test "$ac_dir" != .; then
1124   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1125   # A "../" for each directory in $ac_dir_suffix.
1126   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1127 else
1128   ac_dir_suffix= ac_top_builddir=
1129 fi
1130
1131 case $srcdir in
1132   .)  # No --srcdir option.  We are building in place.
1133     ac_srcdir=.
1134     if test -z "$ac_top_builddir"; then
1135        ac_top_srcdir=.
1136     else
1137        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1138     fi ;;
1139   [\\/]* | ?:[\\/]* )  # Absolute path.
1140     ac_srcdir=$srcdir$ac_dir_suffix;
1141     ac_top_srcdir=$srcdir ;;
1142   *) # Relative path.
1143     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1144     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1145 esac
1146
1147 # Do not use `cd foo && pwd` to compute absolute paths, because
1148 # the directories may not exist.
1149 case `pwd` in
1150 .) ac_abs_builddir="$ac_dir";;
1151 *)
1152   case "$ac_dir" in
1153   .) ac_abs_builddir=`pwd`;;
1154   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1155   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1156   esac;;
1157 esac
1158 case $ac_abs_builddir in
1159 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 *)
1161   case ${ac_top_builddir}. in
1162   .) ac_abs_top_builddir=$ac_abs_builddir;;
1163   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1164   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1165   esac;;
1166 esac
1167 case $ac_abs_builddir in
1168 .) ac_abs_srcdir=$ac_srcdir;;
1169 *)
1170   case $ac_srcdir in
1171   .) ac_abs_srcdir=$ac_abs_builddir;;
1172   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1173   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1174   esac;;
1175 esac
1176 case $ac_abs_builddir in
1177 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 *)
1179   case $ac_top_srcdir in
1180   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1181   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1182   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1183   esac;;
1184 esac
1185
1186     cd $ac_dir
1187     # Check for guested configure; otherwise get Cygnus style configure.
1188     if test -f $ac_srcdir/configure.gnu; then
1189       echo
1190       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1191     elif test -f $ac_srcdir/configure; then
1192       echo
1193       $SHELL $ac_srcdir/configure  --help=recursive
1194     elif test -f $ac_srcdir/configure.ac ||
1195            test -f $ac_srcdir/configure.in; then
1196       echo
1197       $ac_configure --help
1198     else
1199       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1200     fi
1201     cd $ac_popdir
1202   done
1203 fi
1204
1205 test -n "$ac_init_help" && exit 0
1206 if $ac_init_version; then
1207   cat <<\_ACEOF
1208
1209 Copyright (C) 2003 Free Software Foundation, Inc.
1210 This configure script is free software; the Free Software Foundation
1211 gives unlimited permission to copy, distribute and modify it.
1212
1213 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1214 Restrictions apply, see COPYRIGHT and LICENSE files.
1215 _ACEOF
1216   exit 0
1217 fi
1218 exec 5>config.log
1219 cat >&5 <<_ACEOF
1220 This file contains any messages produced by compilers while
1221 running configure, to aid debugging if configure makes a mistake.
1222
1223 It was created by $as_me, which was
1224 generated by GNU Autoconf 2.59.  Invocation command line was
1225
1226   $ $0 $@
1227
1228 _ACEOF
1229 {
1230 cat <<_ASUNAME
1231 ## --------- ##
1232 ## Platform. ##
1233 ## --------- ##
1234
1235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1236 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1237 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1238 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1239 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1240
1241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1242 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1243
1244 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1245 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1247 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1248 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1249 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1250 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1251
1252 _ASUNAME
1253
1254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1255 for as_dir in $PATH
1256 do
1257   IFS=$as_save_IFS
1258   test -z "$as_dir" && as_dir=.
1259   echo "PATH: $as_dir"
1260 done
1261
1262 } >&5
1263
1264 cat >&5 <<_ACEOF
1265
1266
1267 ## ----------- ##
1268 ## Core tests. ##
1269 ## ----------- ##
1270
1271 _ACEOF
1272
1273
1274 # Keep a trace of the command line.
1275 # Strip out --no-create and --no-recursion so they do not pile up.
1276 # Strip out --silent because we don't want to record it for future runs.
1277 # Also quote any args containing shell meta-characters.
1278 # Make two passes to allow for proper duplicate-argument suppression.
1279 ac_configure_args=
1280 ac_configure_args0=
1281 ac_configure_args1=
1282 ac_sep=
1283 ac_must_keep_next=false
1284 for ac_pass in 1 2
1285 do
1286   for ac_arg
1287   do
1288     case $ac_arg in
1289     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1290     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291     | -silent | --silent | --silen | --sile | --sil)
1292       continue ;;
1293     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1295     esac
1296     case $ac_pass in
1297     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1298     2)
1299       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1300       if test $ac_must_keep_next = true; then
1301         ac_must_keep_next=false # Got value, back to normal.
1302       else
1303         case $ac_arg in
1304           *=* | --config-cache | -C | -disable-* | --disable-* \
1305           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1306           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1307           | -with-* | --with-* | -without-* | --without-* | --x)
1308             case "$ac_configure_args0 " in
1309               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1310             esac
1311             ;;
1312           -* ) ac_must_keep_next=true ;;
1313         esac
1314       fi
1315       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1316       # Get rid of the leading space.
1317       ac_sep=" "
1318       ;;
1319     esac
1320   done
1321 done
1322 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1323 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1324
1325 # When interrupted or exit'd, cleanup temporary files, and complete
1326 # config.log.  We remove comments because anyway the quotes in there
1327 # would cause problems or look ugly.
1328 # WARNING: Be sure not to use single quotes in there, as some shells,
1329 # such as our DU 5.0 friend, will then `close' the trap.
1330 trap 'exit_status=$?
1331   # Save into config.log some information that might help in debugging.
1332   {
1333     echo
1334
1335     cat <<\_ASBOX
1336 ## ---------------- ##
1337 ## Cache variables. ##
1338 ## ---------------- ##
1339 _ASBOX
1340     echo
1341     # The following way of writing the cache mishandles newlines in values,
1342 {
1343   (set) 2>&1 |
1344     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1345     *ac_space=\ *)
1346       sed -n \
1347         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1348           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1349       ;;
1350     *)
1351       sed -n \
1352         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1353       ;;
1354     esac;
1355 }
1356     echo
1357
1358     cat <<\_ASBOX
1359 ## ----------------- ##
1360 ## Output variables. ##
1361 ## ----------------- ##
1362 _ASBOX
1363     echo
1364     for ac_var in $ac_subst_vars
1365     do
1366       eval ac_val=$`echo $ac_var`
1367       echo "$ac_var='"'"'$ac_val'"'"'"
1368     done | sort
1369     echo
1370
1371     if test -n "$ac_subst_files"; then
1372       cat <<\_ASBOX
1373 ## ------------- ##
1374 ## Output files. ##
1375 ## ------------- ##
1376 _ASBOX
1377       echo
1378       for ac_var in $ac_subst_files
1379       do
1380         eval ac_val=$`echo $ac_var`
1381         echo "$ac_var='"'"'$ac_val'"'"'"
1382       done | sort
1383       echo
1384     fi
1385
1386     if test -s confdefs.h; then
1387       cat <<\_ASBOX
1388 ## ----------- ##
1389 ## confdefs.h. ##
1390 ## ----------- ##
1391 _ASBOX
1392       echo
1393       sed "/^$/d" confdefs.h | sort
1394       echo
1395     fi
1396     test "$ac_signal" != 0 &&
1397       echo "$as_me: caught signal $ac_signal"
1398     echo "$as_me: exit $exit_status"
1399   } >&5
1400   rm -f core *.core &&
1401   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1402     exit $exit_status
1403      ' 0
1404 for ac_signal in 1 2 13 15; do
1405   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1406 done
1407 ac_signal=0
1408
1409 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1410 rm -rf conftest* confdefs.h
1411 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1412 echo >confdefs.h
1413
1414 # Predefined preprocessor variables.
1415
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_NAME "$PACKAGE_NAME"
1418 _ACEOF
1419
1420
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1423 _ACEOF
1424
1425
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1428 _ACEOF
1429
1430
1431 cat >>confdefs.h <<_ACEOF
1432 #define PACKAGE_STRING "$PACKAGE_STRING"
1433 _ACEOF
1434
1435
1436 cat >>confdefs.h <<_ACEOF
1437 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1438 _ACEOF
1439
1440
1441 # Let the site file select an alternate cache file if it wants to.
1442 # Prefer explicitly selected file to automatically selected ones.
1443 if test -z "$CONFIG_SITE"; then
1444   if test "x$prefix" != xNONE; then
1445     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1446   else
1447     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1448   fi
1449 fi
1450 for ac_site_file in $CONFIG_SITE; do
1451   if test -r "$ac_site_file"; then
1452     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1453 echo "$as_me: loading site script $ac_site_file" >&6;}
1454     sed 's/^/| /' "$ac_site_file" >&5
1455     . "$ac_site_file"
1456   fi
1457 done
1458
1459
1460 # Check that the precious variables saved in the cache have kept the same
1461 # value.
1462 ac_cache_corrupted=false
1463 for ac_var in `(set) 2>&1 |
1464                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1465   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466   eval ac_new_set=\$ac_env_${ac_var}_set
1467   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468   eval ac_new_val="\$ac_env_${ac_var}_value"
1469   case $ac_old_set,$ac_new_set in
1470     set,)
1471       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473       ac_cache_corrupted=: ;;
1474     ,set)
1475       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477       ac_cache_corrupted=: ;;
1478     ,);;
1479     *)
1480       if test "x$ac_old_val" != "x$ac_new_val"; then
1481         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1482 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1483         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1484 echo "$as_me:   former value:  $ac_old_val" >&2;}
1485         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1486 echo "$as_me:   current value: $ac_new_val" >&2;}
1487         ac_cache_corrupted=:
1488       fi;;
1489   esac
1490   # Pass precious variables to config.status.
1491   if test "$ac_new_set" = set; then
1492     case $ac_new_val in
1493     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495     *) ac_arg=$ac_var=$ac_new_val ;;
1496     esac
1497     case " $ac_configure_args " in
1498       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1499       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500     esac
1501   fi
1502 done
1503 if $ac_cache_corrupted; then
1504   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508    { (exit 1); exit 1; }; }
1509 fi
1510
1511 ac_ext=c
1512 ac_cpp='$CPP $CPPFLAGS'
1513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561 ac_aux_dir=
1562 for ac_dir in build $srcdir/build; do
1563   if test -f $ac_dir/install-sh; then
1564     ac_aux_dir=$ac_dir
1565     ac_install_sh="$ac_aux_dir/install-sh -c"
1566     break
1567   elif test -f $ac_dir/install.sh; then
1568     ac_aux_dir=$ac_dir
1569     ac_install_sh="$ac_aux_dir/install.sh -c"
1570     break
1571   elif test -f $ac_dir/shtool; then
1572     ac_aux_dir=$ac_dir
1573     ac_install_sh="$ac_aux_dir/shtool install -c"
1574     break
1575   fi
1576 done
1577 if test -z "$ac_aux_dir"; then
1578   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1579 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1580    { (exit 1); exit 1; }; }
1581 fi
1582 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1583 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1584 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1585
1586 eval `$ac_aux_dir/version.sh`
1587 if test -z "$OL_STRING"; then
1588         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1589 echo "$as_me: error: could not determine version" >&2;}
1590    { (exit 1); exit 1; }; }
1591 fi
1592
1593 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1594         ac_cv_shtool="$ac_aux_dir/shtool"
1595 else
1596         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1597 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1598    { (exit 1); exit 1; }; }
1599 fi
1600
1601 SHTOOL="$ac_cv_shtool"
1602
1603 TB="" TN=""
1604 if test -t 1; then
1605         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1606         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1607 fi
1608
1609 OPENLDAP_CVS=""
1610 if test -d $ac_aux_dir/CVS; then
1611         OPENLDAP_CVS="(from CVS sources) "
1612 fi
1613
1614 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1615
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620    { (exit 1); exit 1; }; }
1621
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629   ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633    { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637    { (exit 1); exit 1; }; }
1638
1639 fi
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1642 build=$ac_cv_build
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651   echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653   ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655   ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659    { (exit 1); exit 1; }; }
1660
1661 fi
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1664 host=$ac_cv_host
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668
1669
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673   echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675   ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677   ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681    { (exit 1); exit 1; }; }
1682
1683 fi
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690
1691
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695   test "$program_prefix$program_suffix$program_transform_name" = \
1696     NONENONEs,x,x, &&
1697   program_prefix=${target_alias}-
1698
1699 am__api_version="1.9"
1700 # Find a good install program.  We prefer a C program (faster),
1701 # so one script is as good as another.  But avoid the broken or
1702 # incompatible versions:
1703 # SysV /etc/install, /usr/sbin/install
1704 # SunOS /usr/etc/install
1705 # IRIX /sbin/install
1706 # AIX /bin/install
1707 # AmigaOS /C/install, which installs bootblocks on floppy discs
1708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1711 # OS/2's system install, which has a completely different semantic
1712 # ./install, which can be erroneously created by make from ./install.sh.
1713 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1714 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1715 if test -z "$INSTALL"; then
1716 if test "${ac_cv_path_install+set}" = set; then
1717   echo $ECHO_N "(cached) $ECHO_C" >&6
1718 else
1719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1721 do
1722   IFS=$as_save_IFS
1723   test -z "$as_dir" && as_dir=.
1724   # Account for people who put trailing slashes in PATH elements.
1725 case $as_dir/ in
1726   ./ | .// | /cC/* | \
1727   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1728   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1729   /usr/ucb/* ) ;;
1730   *)
1731     # OSF1 and SCO ODT 3.0 have their own names for install.
1732     # Don't use installbsd from OSF since it installs stuff as root
1733     # by default.
1734     for ac_prog in ginstall scoinst install; do
1735       for ac_exec_ext in '' $ac_executable_extensions; do
1736         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1737           if test $ac_prog = install &&
1738             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739             # AIX install.  It has an incompatible calling convention.
1740             :
1741           elif test $ac_prog = install &&
1742             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1743             # program-specific install script used by HP pwplus--don't use.
1744             :
1745           else
1746             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1747             break 3
1748           fi
1749         fi
1750       done
1751     done
1752     ;;
1753 esac
1754 done
1755
1756
1757 fi
1758   if test "${ac_cv_path_install+set}" = set; then
1759     INSTALL=$ac_cv_path_install
1760   else
1761     # As a last resort, use the slow shell script.  We don't cache a
1762     # path for INSTALL within a source directory, because that will
1763     # break other packages using the cache if that directory is
1764     # removed, or if the path is relative.
1765     INSTALL=$ac_install_sh
1766   fi
1767 fi
1768 echo "$as_me:$LINENO: result: $INSTALL" >&5
1769 echo "${ECHO_T}$INSTALL" >&6
1770
1771 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1772 # It thinks the first close brace ends the variable substitution.
1773 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1774
1775 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1776
1777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1778
1779 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1780 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1781 # Just in case
1782 sleep 1
1783 echo timestamp > conftest.file
1784 # Do `set' in a subshell so we don't clobber the current shell's
1785 # arguments.  Must try -L first in case configure is actually a
1786 # symlink; some systems play weird games with the mod time of symlinks
1787 # (eg FreeBSD returns the mod time of the symlink's containing
1788 # directory).
1789 if (
1790    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1791    if test "$*" = "X"; then
1792       # -L didn't work.
1793       set X `ls -t $srcdir/configure conftest.file`
1794    fi
1795    rm -f conftest.file
1796    if test "$*" != "X $srcdir/configure conftest.file" \
1797       && test "$*" != "X conftest.file $srcdir/configure"; then
1798
1799       # If neither matched, then we have a broken ls.  This can happen
1800       # if, for instance, CONFIG_SHELL is bash and it inherits a
1801       # broken ls alias from the environment.  This has actually
1802       # happened.  Such a system could not be considered "sane".
1803       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1804 alias in your environment" >&5
1805 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1806 alias in your environment" >&2;}
1807    { (exit 1); exit 1; }; }
1808    fi
1809
1810    test "$2" = conftest.file
1811    )
1812 then
1813    # Ok.
1814    :
1815 else
1816    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1817 Check your system clock" >&5
1818 echo "$as_me: error: newly created file is older than distributed files!
1819 Check your system clock" >&2;}
1820    { (exit 1); exit 1; }; }
1821 fi
1822 echo "$as_me:$LINENO: result: yes" >&5
1823 echo "${ECHO_T}yes" >&6
1824 test "$program_prefix" != NONE &&
1825   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1826 # Use a double $ so make ignores it.
1827 test "$program_suffix" != NONE &&
1828   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1829 # Double any \ or $.  echo might interpret backslashes.
1830 # By default was `s,x,x', remove it if useless.
1831 cat <<\_ACEOF >conftest.sed
1832 s/[\\$]/&&/g;s/;s,x,x,$//
1833 _ACEOF
1834 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1835 rm conftest.sed
1836
1837 # expand $ac_aux_dir to an absolute path
1838 am_aux_dir=`cd $ac_aux_dir && pwd`
1839
1840 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1841 # Use eval to expand $SHELL
1842 if eval "$MISSING --run true"; then
1843   am_missing_run="$MISSING --run "
1844 else
1845   am_missing_run=
1846   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1847 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1848 fi
1849
1850 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1851   # We used to keeping the `.' as first argument, in order to
1852   # allow $(mkdir_p) to be used without argument.  As in
1853   #   $(mkdir_p) $(somedir)
1854   # where $(somedir) is conditionally defined.  However this is wrong
1855   # for two reasons:
1856   #  1. if the package is installed by a user who cannot write `.'
1857   #     make install will fail,
1858   #  2. the above comment should most certainly read
1859   #     $(mkdir_p) $(DESTDIR)$(somedir)
1860   #     so it does not work when $(somedir) is undefined and
1861   #     $(DESTDIR) is not.
1862   #  To support the latter case, we have to write
1863   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1864   #  so the `.' trick is pointless.
1865   mkdir_p='mkdir -p --'
1866 else
1867   # On NextStep and OpenStep, the `mkdir' command does not
1868   # recognize any option.  It will interpret all options as
1869   # directories to create, and then abort because `.' already
1870   # exists.
1871   for d in ./-p ./--version;
1872   do
1873     test -d $d && rmdir $d
1874   done
1875   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1876   if test -f "$ac_aux_dir/mkinstalldirs"; then
1877     mkdir_p='$(mkinstalldirs)'
1878   else
1879     mkdir_p='$(install_sh) -d'
1880   fi
1881 fi
1882
1883 for ac_prog in gawk mawk nawk awk
1884 do
1885   # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy $ac_prog; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_AWK+set}" = set; then
1890   echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892   if test -n "$AWK"; then
1893   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1894 else
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898   IFS=$as_save_IFS
1899   test -z "$as_dir" && as_dir=.
1900   for ac_exec_ext in '' $ac_executable_extensions; do
1901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902     ac_cv_prog_AWK="$ac_prog"
1903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904     break 2
1905   fi
1906 done
1907 done
1908
1909 fi
1910 fi
1911 AWK=$ac_cv_prog_AWK
1912 if test -n "$AWK"; then
1913   echo "$as_me:$LINENO: result: $AWK" >&5
1914 echo "${ECHO_T}$AWK" >&6
1915 else
1916   echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920   test -n "$AWK" && break
1921 done
1922
1923 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1924 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1925 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1926 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   cat >conftest.make <<\_ACEOF
1930 all:
1931         @echo 'ac_maketemp="$(MAKE)"'
1932 _ACEOF
1933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1934 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1935 if test -n "$ac_maketemp"; then
1936   eval ac_cv_prog_make_${ac_make}_set=yes
1937 else
1938   eval ac_cv_prog_make_${ac_make}_set=no
1939 fi
1940 rm -f conftest.make
1941 fi
1942 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1943   echo "$as_me:$LINENO: result: yes" >&5
1944 echo "${ECHO_T}yes" >&6
1945   SET_MAKE=
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949   SET_MAKE="MAKE=${MAKE-make}"
1950 fi
1951
1952 rm -rf .tst 2>/dev/null
1953 mkdir .tst 2>/dev/null
1954 if test -d .tst; then
1955   am__leading_dot=.
1956 else
1957   am__leading_dot=_
1958 fi
1959 rmdir .tst 2>/dev/null
1960
1961 # test to see if srcdir already configured
1962 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1963    test -f $srcdir/config.status; then
1964   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1965 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1966    { (exit 1); exit 1; }; }
1967 fi
1968
1969 # test whether we have cygpath
1970 if test -z "$CYGPATH_W"; then
1971   if (cygpath --version) >/dev/null 2>/dev/null; then
1972     CYGPATH_W='cygpath -w'
1973   else
1974     CYGPATH_W=echo
1975   fi
1976 fi
1977
1978
1979 # Define the identity of the package.
1980  PACKAGE=$OL_PACKAGE
1981  VERSION=$OL_VERSION
1982
1983
1984 # Some tools Automake needs.
1985
1986 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1987
1988
1989 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1990
1991
1992 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1993
1994
1995 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1996
1997
1998 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1999
2000 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2001
2002 # Installed binaries are usually stripped using `strip' when the user
2003 # run `make install-strip'.  However `strip' might not be the right
2004 # tool to use in cross-compilation environments, therefore Automake
2005 # will honor the `STRIP' environment variable to overrule this program.
2006 if test "$cross_compiling" != no; then
2007   if test -n "$ac_tool_prefix"; then
2008   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}strip; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_STRIP+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   if test -n "$STRIP"; then
2016   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021   IFS=$as_save_IFS
2022   test -z "$as_dir" && as_dir=.
2023   for ac_exec_ext in '' $ac_executable_extensions; do
2024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027     break 2
2028   fi
2029 done
2030 done
2031
2032 fi
2033 fi
2034 STRIP=$ac_cv_prog_STRIP
2035 if test -n "$STRIP"; then
2036   echo "$as_me:$LINENO: result: $STRIP" >&5
2037 echo "${ECHO_T}$STRIP" >&6
2038 else
2039   echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2041 fi
2042
2043 fi
2044 if test -z "$ac_cv_prog_STRIP"; then
2045   ac_ct_STRIP=$STRIP
2046   # Extract the first word of "strip", so it can be a program name with args.
2047 set dummy strip; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2051   echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053   if test -n "$ac_ct_STRIP"; then
2054   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059   IFS=$as_save_IFS
2060   test -z "$as_dir" && as_dir=.
2061   for ac_exec_ext in '' $ac_executable_extensions; do
2062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063     ac_cv_prog_ac_ct_STRIP="strip"
2064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065     break 2
2066   fi
2067 done
2068 done
2069
2070   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2071 fi
2072 fi
2073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2074 if test -n "$ac_ct_STRIP"; then
2075   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2076 echo "${ECHO_T}$ac_ct_STRIP" >&6
2077 else
2078   echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2080 fi
2081
2082   STRIP=$ac_ct_STRIP
2083 else
2084   STRIP="$ac_cv_prog_STRIP"
2085 fi
2086
2087 fi
2088 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2089
2090 # We need awk for the "check" target.  The system "awk" is bad on
2091 # some platforms.
2092 # Always define AMTAR for backward compatibility.
2093
2094 AMTAR=${AMTAR-"${am_missing_run}tar"}
2095
2096 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2097
2098
2099
2100
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define OPENLDAP_PACKAGE "$PACKAGE"
2104 _ACEOF
2105
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define OPENLDAP_VERSION "$VERSION"
2109 _ACEOF
2110
2111
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define LDAP_VENDOR_VERSION $OL_API_INC
2115 _ACEOF
2116
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2120 _ACEOF
2121
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2125 _ACEOF
2126
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2130 _ACEOF
2131
2132
2133 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2134
2135 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2136
2137 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2138
2139
2140
2141
2142
2143
2144
2145           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2146
2147           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2148
2149           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2150
2151
2152 echo "$as_me:$LINENO: checking configure arguments" >&5
2153 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2154
2155
2156 top_builddir=`pwd`
2157
2158 ldap_subdir="/openldap"
2159
2160
2161 # Check whether --with-subdir or --without-subdir was given.
2162 if test "${with_subdir+set}" = set; then
2163   withval="$with_subdir"
2164   case "$withval" in
2165         no) ldap_subdir=""
2166                 ;;
2167         yes)
2168                 ;;
2169         /*|\\*)
2170                 ldap_subdir="$withval"
2171                 ;;
2172         *)
2173                 ldap_subdir="/$withval"
2174                 ;;
2175 esac
2176
2177 fi;
2178
2179 # OpenLDAP --enable-debug
2180
2181         # Check whether --enable-debug or --disable-debug was given.
2182 if test "${enable_debug+set}" = set; then
2183   enableval="$enable_debug"
2184
2185         ol_arg=invalid
2186         for ol_val in no yes traditional ; do
2187                 if test "$enableval" = "$ol_val" ; then
2188                         ol_arg="$ol_val"
2189                 fi
2190         done
2191         if test "$ol_arg" = "invalid" ; then
2192                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2193 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2194    { (exit 1); exit 1; }; }
2195         fi
2196         ol_enable_debug="$ol_arg"
2197
2198 else
2199         ol_enable_debug=yes
2200 fi;
2201 # end --enable-debug
2202 # OpenLDAP --enable-dynamic
2203
2204         # Check whether --enable-dynamic or --disable-dynamic was given.
2205 if test "${enable_dynamic+set}" = set; then
2206   enableval="$enable_dynamic"
2207
2208         ol_arg=invalid
2209         for ol_val in auto yes no ; do
2210                 if test "$enableval" = "$ol_val" ; then
2211                         ol_arg="$ol_val"
2212                 fi
2213         done
2214         if test "$ol_arg" = "invalid" ; then
2215                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2216 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2217    { (exit 1); exit 1; }; }
2218         fi
2219         ol_enable_dynamic="$ol_arg"
2220
2221 else
2222         ol_enable_dynamic=no
2223 fi;
2224 # end --enable-dynamic
2225 # OpenLDAP --enable-syslog
2226
2227         # Check whether --enable-syslog or --disable-syslog was given.
2228 if test "${enable_syslog+set}" = set; then
2229   enableval="$enable_syslog"
2230
2231         ol_arg=invalid
2232         for ol_val in auto yes no ; do
2233                 if test "$enableval" = "$ol_val" ; then
2234                         ol_arg="$ol_val"
2235                 fi
2236         done
2237         if test "$ol_arg" = "invalid" ; then
2238                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2239 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2240    { (exit 1); exit 1; }; }
2241         fi
2242         ol_enable_syslog="$ol_arg"
2243
2244 else
2245         ol_enable_syslog=auto
2246 fi;
2247 # end --enable-syslog
2248 # OpenLDAP --enable-proctitle
2249
2250         # Check whether --enable-proctitle or --disable-proctitle was given.
2251 if test "${enable_proctitle+set}" = set; then
2252   enableval="$enable_proctitle"
2253
2254         ol_arg=invalid
2255         for ol_val in auto yes no ; do
2256                 if test "$enableval" = "$ol_val" ; then
2257                         ol_arg="$ol_val"
2258                 fi
2259         done
2260         if test "$ol_arg" = "invalid" ; then
2261                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2262 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2263    { (exit 1); exit 1; }; }
2264         fi
2265         ol_enable_proctitle="$ol_arg"
2266
2267 else
2268         ol_enable_proctitle=yes
2269 fi;
2270 # end --enable-proctitle
2271 ol_enable_referrals=${ol_enable_referrals-no}
2272 # OpenLDAP --enable-ipv6
2273
2274         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2275 if test "${enable_ipv6+set}" = set; then
2276   enableval="$enable_ipv6"
2277
2278         ol_arg=invalid
2279         for ol_val in auto yes no ; do
2280                 if test "$enableval" = "$ol_val" ; then
2281                         ol_arg="$ol_val"
2282                 fi
2283         done
2284         if test "$ol_arg" = "invalid" ; then
2285                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2286 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2287    { (exit 1); exit 1; }; }
2288         fi
2289         ol_enable_ipv6="$ol_arg"
2290
2291 else
2292         ol_enable_ipv6=auto
2293 fi;
2294 # end --enable-ipv6
2295 # OpenLDAP --enable-local
2296
2297         # Check whether --enable-local or --disable-local was given.
2298 if test "${enable_local+set}" = set; then
2299   enableval="$enable_local"
2300
2301         ol_arg=invalid
2302         for ol_val in auto yes no ; do
2303                 if test "$enableval" = "$ol_val" ; then
2304                         ol_arg="$ol_val"
2305                 fi
2306         done
2307         if test "$ol_arg" = "invalid" ; then
2308                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2309 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2310    { (exit 1); exit 1; }; }
2311         fi
2312         ol_enable_local="$ol_arg"
2313
2314 else
2315         ol_enable_local=auto
2316 fi;
2317 # end --enable-local
2318
2319 # OpenLDAP --with-cyrus_sasl
2320
2321 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2322 if test "${with_cyrus_sasl+set}" = set; then
2323   withval="$with_cyrus_sasl"
2324
2325         ol_arg=invalid
2326         for ol_val in auto yes no  ; do
2327                 if test "$withval" = "$ol_val" ; then
2328                         ol_arg="$ol_val"
2329                 fi
2330         done
2331         if test "$ol_arg" = "invalid" ; then
2332                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2333 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2334    { (exit 1); exit 1; }; }
2335         fi
2336         ol_with_cyrus_sasl="$ol_arg"
2337
2338 else
2339         ol_with_cyrus_sasl="auto"
2340 fi; # end --with-cyrus_sasl
2341
2342 # OpenLDAP --with-fetch
2343
2344 # Check whether --with-fetch or --without-fetch was given.
2345 if test "${with_fetch+set}" = set; then
2346   withval="$with_fetch"
2347
2348         ol_arg=invalid
2349         for ol_val in auto yes no  ; do
2350                 if test "$withval" = "$ol_val" ; then
2351                         ol_arg="$ol_val"
2352                 fi
2353         done
2354         if test "$ol_arg" = "invalid" ; then
2355                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2356 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2357    { (exit 1); exit 1; }; }
2358         fi
2359         ol_with_fetch="$ol_arg"
2360
2361 else
2362         ol_with_fetch="auto"
2363 fi; # end --with-fetch
2364
2365 # OpenLDAP --with-gssapi
2366
2367 # Check whether --with-gssapi or --without-gssapi was given.
2368 if test "${with_gssapi+set}" = set; then
2369   withval="$with_gssapi"
2370
2371         ol_arg=invalid
2372         for ol_val in auto yes no  ; do
2373                 if test "$withval" = "$ol_val" ; then
2374                         ol_arg="$ol_val"
2375                 fi
2376         done
2377         if test "$ol_arg" = "invalid" ; then
2378                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-gssapi" >&5
2379 echo "$as_me: error: bad value $withval for --with-gssapi" >&2;}
2380    { (exit 1); exit 1; }; }
2381         fi
2382         ol_with_gssapi="$ol_arg"
2383
2384 else
2385         ol_with_gssapi="auto"
2386 fi; # end --with-gssapi
2387
2388 # OpenLDAP --with-threads
2389
2390 # Check whether --with-threads or --without-threads was given.
2391 if test "${with_threads+set}" = set; then
2392   withval="$with_threads"
2393
2394         ol_arg=invalid
2395         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2396                 if test "$withval" = "$ol_val" ; then
2397                         ol_arg="$ol_val"
2398                 fi
2399         done
2400         if test "$ol_arg" = "invalid" ; then
2401                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2402 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2403    { (exit 1); exit 1; }; }
2404         fi
2405         ol_with_threads="$ol_arg"
2406
2407 else
2408         ol_with_threads="auto"
2409 fi; # end --with-threads
2410
2411 # OpenLDAP --with-tls
2412
2413 # Check whether --with-tls or --without-tls was given.
2414 if test "${with_tls+set}" = set; then
2415   withval="$with_tls"
2416
2417         ol_arg=invalid
2418         for ol_val in auto openssl gnutls yes no  ; do
2419                 if test "$withval" = "$ol_val" ; then
2420                         ol_arg="$ol_val"
2421                 fi
2422         done
2423         if test "$ol_arg" = "invalid" ; then
2424                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2425 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2426    { (exit 1); exit 1; }; }
2427         fi
2428         ol_with_tls="$ol_arg"
2429
2430 else
2431         ol_with_tls="auto"
2432 fi; # end --with-tls
2433
2434 # OpenLDAP --with-yielding_select
2435
2436 # Check whether --with-yielding_select or --without-yielding_select was given.
2437 if test "${with_yielding_select+set}" = set; then
2438   withval="$with_yielding_select"
2439
2440         ol_arg=invalid
2441         for ol_val in auto yes no manual  ; do
2442                 if test "$withval" = "$ol_val" ; then
2443                         ol_arg="$ol_val"
2444                 fi
2445         done
2446         if test "$ol_arg" = "invalid" ; then
2447                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2448 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2449    { (exit 1); exit 1; }; }
2450         fi
2451         ol_with_yielding_select="$ol_arg"
2452
2453 else
2454         ol_with_yielding_select="auto"
2455 fi; # end --with-yielding_select
2456
2457 # OpenLDAP --with-mp
2458
2459 # Check whether --with-mp or --without-mp was given.
2460 if test "${with_mp+set}" = set; then
2461   withval="$with_mp"
2462
2463         ol_arg=invalid
2464         for ol_val in auto longlong long bignum gmp yes no ; do
2465                 if test "$withval" = "$ol_val" ; then
2466                         ol_arg="$ol_val"
2467                 fi
2468         done
2469         if test "$ol_arg" = "invalid" ; then
2470                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2471 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2472    { (exit 1); exit 1; }; }
2473         fi
2474         ol_with_mp="$ol_arg"
2475
2476 else
2477         ol_with_mp="auto"
2478 fi; # end --with-mp
2479
2480 # OpenLDAP --with-odbc
2481
2482 # Check whether --with-odbc or --without-odbc was given.
2483 if test "${with_odbc+set}" = set; then
2484   withval="$with_odbc"
2485
2486         ol_arg=invalid
2487         for ol_val in auto iodbc unixodbc odbc32  ; do
2488                 if test "$withval" = "$ol_val" ; then
2489                         ol_arg="$ol_val"
2490                 fi
2491         done
2492         if test "$ol_arg" = "invalid" ; then
2493                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2494 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2495    { (exit 1); exit 1; }; }
2496         fi
2497         ol_with_odbc="$ol_arg"
2498
2499 else
2500         ol_with_odbc="auto"
2501 fi; # end --with-odbc
2502
2503
2504
2505 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2506 if test "${enable_xxslapdoptions+set}" = set; then
2507   enableval="$enable_xxslapdoptions"
2508
2509 fi;
2510 # OpenLDAP --enable-slapd
2511
2512         # Check whether --enable-slapd or --disable-slapd was given.
2513 if test "${enable_slapd+set}" = set; then
2514   enableval="$enable_slapd"
2515
2516         ol_arg=invalid
2517         for ol_val in auto yes no ; do
2518                 if test "$enableval" = "$ol_val" ; then
2519                         ol_arg="$ol_val"
2520                 fi
2521         done
2522         if test "$ol_arg" = "invalid" ; then
2523                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2524 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2525    { (exit 1); exit 1; }; }
2526         fi
2527         ol_enable_slapd="$ol_arg"
2528
2529 else
2530         ol_enable_slapd=yes
2531 fi;
2532 # end --enable-slapd
2533 # OpenLDAP --enable-dynacl
2534
2535         # Check whether --enable-dynacl or --disable-dynacl was given.
2536 if test "${enable_dynacl+set}" = set; then
2537   enableval="$enable_dynacl"
2538
2539         ol_arg=invalid
2540         for ol_val in auto yes no ; do
2541                 if test "$enableval" = "$ol_val" ; then
2542                         ol_arg="$ol_val"
2543                 fi
2544         done
2545         if test "$ol_arg" = "invalid" ; then
2546                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2547 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2548    { (exit 1); exit 1; }; }
2549         fi
2550         ol_enable_dynacl="$ol_arg"
2551
2552 else
2553         ol_enable_dynacl=no
2554 fi;
2555 # end --enable-dynacl
2556 # OpenLDAP --enable-aci
2557
2558         # Check whether --enable-aci or --disable-aci was given.
2559 if test "${enable_aci+set}" = set; then
2560   enableval="$enable_aci"
2561
2562         ol_arg=invalid
2563         for ol_val in no yes mod ; do
2564                 if test "$enableval" = "$ol_val" ; then
2565                         ol_arg="$ol_val"
2566                 fi
2567         done
2568         if test "$ol_arg" = "invalid" ; then
2569                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2570 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2571    { (exit 1); exit 1; }; }
2572         fi
2573         ol_enable_aci="$ol_arg"
2574
2575 else
2576         ol_enable_aci=no
2577 fi;
2578 # end --enable-aci
2579 # OpenLDAP --enable-cleartext
2580
2581         # Check whether --enable-cleartext or --disable-cleartext was given.
2582 if test "${enable_cleartext+set}" = set; then
2583   enableval="$enable_cleartext"
2584
2585         ol_arg=invalid
2586         for ol_val in auto yes no ; do
2587                 if test "$enableval" = "$ol_val" ; then
2588                         ol_arg="$ol_val"
2589                 fi
2590         done
2591         if test "$ol_arg" = "invalid" ; then
2592                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2593 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2594    { (exit 1); exit 1; }; }
2595         fi
2596         ol_enable_cleartext="$ol_arg"
2597
2598 else
2599         ol_enable_cleartext=yes
2600 fi;
2601 # end --enable-cleartext
2602 # OpenLDAP --enable-crypt
2603
2604         # Check whether --enable-crypt or --disable-crypt was given.
2605 if test "${enable_crypt+set}" = set; then
2606   enableval="$enable_crypt"
2607
2608         ol_arg=invalid
2609         for ol_val in auto yes no ; do
2610                 if test "$enableval" = "$ol_val" ; then
2611                         ol_arg="$ol_val"
2612                 fi
2613         done
2614         if test "$ol_arg" = "invalid" ; then
2615                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2616 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2617    { (exit 1); exit 1; }; }
2618         fi
2619         ol_enable_crypt="$ol_arg"
2620
2621 else
2622         ol_enable_crypt=no
2623 fi;
2624 # end --enable-crypt
2625 # OpenLDAP --enable-lmpasswd
2626
2627         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2628 if test "${enable_lmpasswd+set}" = set; then
2629   enableval="$enable_lmpasswd"
2630
2631         ol_arg=invalid
2632         for ol_val in auto yes no ; do
2633                 if test "$enableval" = "$ol_val" ; then
2634                         ol_arg="$ol_val"
2635                 fi
2636         done
2637         if test "$ol_arg" = "invalid" ; then
2638                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2639 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2640    { (exit 1); exit 1; }; }
2641         fi
2642         ol_enable_lmpasswd="$ol_arg"
2643
2644 else
2645         ol_enable_lmpasswd=no
2646 fi;
2647 # end --enable-lmpasswd
2648 # OpenLDAP --enable-spasswd
2649
2650         # Check whether --enable-spasswd or --disable-spasswd was given.
2651 if test "${enable_spasswd+set}" = set; then
2652   enableval="$enable_spasswd"
2653
2654         ol_arg=invalid
2655         for ol_val in auto yes no ; do
2656                 if test "$enableval" = "$ol_val" ; then
2657                         ol_arg="$ol_val"
2658                 fi
2659         done
2660         if test "$ol_arg" = "invalid" ; then
2661                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2662 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2663    { (exit 1); exit 1; }; }
2664         fi
2665         ol_enable_spasswd="$ol_arg"
2666
2667 else
2668         ol_enable_spasswd=no
2669 fi;
2670 # end --enable-spasswd
2671 # OpenLDAP --enable-modules
2672
2673         # Check whether --enable-modules or --disable-modules was given.
2674 if test "${enable_modules+set}" = set; then
2675   enableval="$enable_modules"
2676
2677         ol_arg=invalid
2678         for ol_val in auto yes no ; do
2679                 if test "$enableval" = "$ol_val" ; then
2680                         ol_arg="$ol_val"
2681                 fi
2682         done
2683         if test "$ol_arg" = "invalid" ; then
2684                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2685 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2686    { (exit 1); exit 1; }; }
2687         fi
2688         ol_enable_modules="$ol_arg"
2689
2690 else
2691         ol_enable_modules=no
2692 fi;
2693 # end --enable-modules
2694 # OpenLDAP --enable-rewrite
2695
2696         # Check whether --enable-rewrite or --disable-rewrite was given.
2697 if test "${enable_rewrite+set}" = set; then
2698   enableval="$enable_rewrite"
2699
2700         ol_arg=invalid
2701         for ol_val in auto yes no ; do
2702                 if test "$enableval" = "$ol_val" ; then
2703                         ol_arg="$ol_val"
2704                 fi
2705         done
2706         if test "$ol_arg" = "invalid" ; then
2707                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2708 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2709    { (exit 1); exit 1; }; }
2710         fi
2711         ol_enable_rewrite="$ol_arg"
2712
2713 else
2714         ol_enable_rewrite=auto
2715 fi;
2716 # end --enable-rewrite
2717 # OpenLDAP --enable-rlookups
2718
2719         # Check whether --enable-rlookups or --disable-rlookups was given.
2720 if test "${enable_rlookups+set}" = set; then
2721   enableval="$enable_rlookups"
2722
2723         ol_arg=invalid
2724         for ol_val in auto yes no ; do
2725                 if test "$enableval" = "$ol_val" ; then
2726                         ol_arg="$ol_val"
2727                 fi
2728         done
2729         if test "$ol_arg" = "invalid" ; then
2730                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2731 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2732    { (exit 1); exit 1; }; }
2733         fi
2734         ol_enable_rlookups="$ol_arg"
2735
2736 else
2737         ol_enable_rlookups=no
2738 fi;
2739 # end --enable-rlookups
2740 # OpenLDAP --enable-slapi
2741
2742         # Check whether --enable-slapi or --disable-slapi was given.
2743 if test "${enable_slapi+set}" = set; then
2744   enableval="$enable_slapi"
2745
2746         ol_arg=invalid
2747         for ol_val in auto yes no ; do
2748                 if test "$enableval" = "$ol_val" ; then
2749                         ol_arg="$ol_val"
2750                 fi
2751         done
2752         if test "$ol_arg" = "invalid" ; then
2753                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2754 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2755    { (exit 1); exit 1; }; }
2756         fi
2757         ol_enable_slapi="$ol_arg"
2758
2759 else
2760         ol_enable_slapi=no
2761 fi;
2762 # end --enable-slapi
2763 # OpenLDAP --enable-slp
2764
2765         # Check whether --enable-slp or --disable-slp was given.
2766 if test "${enable_slp+set}" = set; then
2767   enableval="$enable_slp"
2768
2769         ol_arg=invalid
2770         for ol_val in auto yes no ; do
2771                 if test "$enableval" = "$ol_val" ; then
2772                         ol_arg="$ol_val"
2773                 fi
2774         done
2775         if test "$ol_arg" = "invalid" ; then
2776                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2777 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2778    { (exit 1); exit 1; }; }
2779         fi
2780         ol_enable_slp="$ol_arg"
2781
2782 else
2783         ol_enable_slp=no
2784 fi;
2785 # end --enable-slp
2786 # OpenLDAP --enable-wrappers
2787
2788         # Check whether --enable-wrappers or --disable-wrappers was given.
2789 if test "${enable_wrappers+set}" = set; then
2790   enableval="$enable_wrappers"
2791
2792         ol_arg=invalid
2793         for ol_val in auto yes no ; do
2794                 if test "$enableval" = "$ol_val" ; then
2795                         ol_arg="$ol_val"
2796                 fi
2797         done
2798         if test "$ol_arg" = "invalid" ; then
2799                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2800 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2801    { (exit 1); exit 1; }; }
2802         fi
2803         ol_enable_wrappers="$ol_arg"
2804
2805 else
2806         ol_enable_wrappers=no
2807 fi;
2808 # end --enable-wrappers
2809
2810 Backends="bdb \
2811         dnssrv \
2812         hdb \
2813         ldap \
2814         meta \
2815         monitor \
2816         ndb \
2817         null \
2818         passwd \
2819         perl \
2820         relay \
2821         shell \
2822         sock \
2823         sql"
2824
2825 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2826 if test "${enable_xxslapbackends+set}" = set; then
2827   enableval="$enable_xxslapbackends"
2828
2829 fi;
2830
2831 # OpenLDAP --enable-backends
2832
2833         # Check whether --enable-backends or --disable-backends was given.
2834 if test "${enable_backends+set}" = set; then
2835   enableval="$enable_backends"
2836
2837         ol_arg=invalid
2838         for ol_val in no yes mod ; do
2839                 if test "$enableval" = "$ol_val" ; then
2840                         ol_arg="$ol_val"
2841                 fi
2842         done
2843         if test "$ol_arg" = "invalid" ; then
2844                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2845 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2846    { (exit 1); exit 1; }; }
2847         fi
2848         ol_enable_backends="$ol_arg"
2849
2850 fi;
2851 # end --enable-backends
2852 # OpenLDAP --enable-bdb
2853
2854         # Check whether --enable-bdb or --disable-bdb was given.
2855 if test "${enable_bdb+set}" = set; then
2856   enableval="$enable_bdb"
2857
2858         ol_arg=invalid
2859         for ol_val in no yes mod ; do
2860                 if test "$enableval" = "$ol_val" ; then
2861                         ol_arg="$ol_val"
2862                 fi
2863         done
2864         if test "$ol_arg" = "invalid" ; then
2865                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2866 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2867    { (exit 1); exit 1; }; }
2868         fi
2869         ol_enable_bdb="$ol_arg"
2870
2871 else
2872         ol_enable_bdb=${ol_enable_backends:-yes}
2873 fi;
2874 # end --enable-bdb
2875 # OpenLDAP --enable-dnssrv
2876
2877         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2878 if test "${enable_dnssrv+set}" = set; then
2879   enableval="$enable_dnssrv"
2880
2881         ol_arg=invalid
2882         for ol_val in no yes mod ; do
2883                 if test "$enableval" = "$ol_val" ; then
2884                         ol_arg="$ol_val"
2885                 fi
2886         done
2887         if test "$ol_arg" = "invalid" ; then
2888                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2889 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2890    { (exit 1); exit 1; }; }
2891         fi
2892         ol_enable_dnssrv="$ol_arg"
2893
2894 else
2895         ol_enable_dnssrv=${ol_enable_backends:-no}
2896 fi;
2897 # end --enable-dnssrv
2898 # OpenLDAP --enable-hdb
2899
2900         # Check whether --enable-hdb or --disable-hdb was given.
2901 if test "${enable_hdb+set}" = set; then
2902   enableval="$enable_hdb"
2903
2904         ol_arg=invalid
2905         for ol_val in no yes mod ; do
2906                 if test "$enableval" = "$ol_val" ; then
2907                         ol_arg="$ol_val"
2908                 fi
2909         done
2910         if test "$ol_arg" = "invalid" ; then
2911                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2912 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2913    { (exit 1); exit 1; }; }
2914         fi
2915         ol_enable_hdb="$ol_arg"
2916
2917 else
2918         ol_enable_hdb=${ol_enable_backends:-yes}
2919 fi;
2920 # end --enable-hdb
2921 # OpenLDAP --enable-ldap
2922
2923         # Check whether --enable-ldap or --disable-ldap was given.
2924 if test "${enable_ldap+set}" = set; then
2925   enableval="$enable_ldap"
2926
2927         ol_arg=invalid
2928         for ol_val in no yes mod ; do
2929                 if test "$enableval" = "$ol_val" ; then
2930                         ol_arg="$ol_val"
2931                 fi
2932         done
2933         if test "$ol_arg" = "invalid" ; then
2934                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2935 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2936    { (exit 1); exit 1; }; }
2937         fi
2938         ol_enable_ldap="$ol_arg"
2939
2940 else
2941         ol_enable_ldap=${ol_enable_backends:-no}
2942 fi;
2943 # end --enable-ldap
2944 # OpenLDAP --enable-meta
2945
2946         # Check whether --enable-meta or --disable-meta was given.
2947 if test "${enable_meta+set}" = set; then
2948   enableval="$enable_meta"
2949
2950         ol_arg=invalid
2951         for ol_val in no yes mod ; do
2952                 if test "$enableval" = "$ol_val" ; then
2953                         ol_arg="$ol_val"
2954                 fi
2955         done
2956         if test "$ol_arg" = "invalid" ; then
2957                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2958 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2959    { (exit 1); exit 1; }; }
2960         fi
2961         ol_enable_meta="$ol_arg"
2962
2963 else
2964         ol_enable_meta=${ol_enable_backends:-no}
2965 fi;
2966 # end --enable-meta
2967 # OpenLDAP --enable-monitor
2968
2969         # Check whether --enable-monitor or --disable-monitor was given.
2970 if test "${enable_monitor+set}" = set; then
2971   enableval="$enable_monitor"
2972
2973         ol_arg=invalid
2974         for ol_val in no yes mod ; do
2975                 if test "$enableval" = "$ol_val" ; then
2976                         ol_arg="$ol_val"
2977                 fi
2978         done
2979         if test "$ol_arg" = "invalid" ; then
2980                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2981 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2982    { (exit 1); exit 1; }; }
2983         fi
2984         ol_enable_monitor="$ol_arg"
2985
2986 else
2987         ol_enable_monitor=${ol_enable_backends:-yes}
2988 fi;
2989 # end --enable-monitor
2990 # OpenLDAP --enable-ndb
2991
2992         # Check whether --enable-ndb or --disable-ndb was given.
2993 if test "${enable_ndb+set}" = set; then
2994   enableval="$enable_ndb"
2995
2996         ol_arg=invalid
2997         for ol_val in no yes mod ; do
2998                 if test "$enableval" = "$ol_val" ; then
2999                         ol_arg="$ol_val"
3000                 fi
3001         done
3002         if test "$ol_arg" = "invalid" ; then
3003                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3004 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3005    { (exit 1); exit 1; }; }
3006         fi
3007         ol_enable_ndb="$ol_arg"
3008
3009 else
3010         ol_enable_ndb=${ol_enable_backends:-no}
3011 fi;
3012 # end --enable-ndb
3013 # OpenLDAP --enable-null
3014
3015         # Check whether --enable-null or --disable-null was given.
3016 if test "${enable_null+set}" = set; then
3017   enableval="$enable_null"
3018
3019         ol_arg=invalid
3020         for ol_val in no yes mod ; do
3021                 if test "$enableval" = "$ol_val" ; then
3022                         ol_arg="$ol_val"
3023                 fi
3024         done
3025         if test "$ol_arg" = "invalid" ; then
3026                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3027 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3028    { (exit 1); exit 1; }; }
3029         fi
3030         ol_enable_null="$ol_arg"
3031
3032 else
3033         ol_enable_null=${ol_enable_backends:-no}
3034 fi;
3035 # end --enable-null
3036 # OpenLDAP --enable-passwd
3037
3038         # Check whether --enable-passwd or --disable-passwd was given.
3039 if test "${enable_passwd+set}" = set; then
3040   enableval="$enable_passwd"
3041
3042         ol_arg=invalid
3043         for ol_val in no yes mod ; do
3044                 if test "$enableval" = "$ol_val" ; then
3045                         ol_arg="$ol_val"
3046                 fi
3047         done
3048         if test "$ol_arg" = "invalid" ; then
3049                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3050 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3051    { (exit 1); exit 1; }; }
3052         fi
3053         ol_enable_passwd="$ol_arg"
3054
3055 else
3056         ol_enable_passwd=${ol_enable_backends:-no}
3057 fi;
3058 # end --enable-passwd
3059 # OpenLDAP --enable-perl
3060
3061         # Check whether --enable-perl or --disable-perl was given.
3062 if test "${enable_perl+set}" = set; then
3063   enableval="$enable_perl"
3064
3065         ol_arg=invalid
3066         for ol_val in no yes mod ; do
3067                 if test "$enableval" = "$ol_val" ; then
3068                         ol_arg="$ol_val"
3069                 fi
3070         done
3071         if test "$ol_arg" = "invalid" ; then
3072                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3073 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3074    { (exit 1); exit 1; }; }
3075         fi
3076         ol_enable_perl="$ol_arg"
3077
3078 else
3079         ol_enable_perl=${ol_enable_backends:-no}
3080 fi;
3081 # end --enable-perl
3082 # OpenLDAP --enable-relay
3083
3084         # Check whether --enable-relay or --disable-relay was given.
3085 if test "${enable_relay+set}" = set; then
3086   enableval="$enable_relay"
3087
3088         ol_arg=invalid
3089         for ol_val in no yes mod ; do
3090                 if test "$enableval" = "$ol_val" ; then
3091                         ol_arg="$ol_val"
3092                 fi
3093         done
3094         if test "$ol_arg" = "invalid" ; then
3095                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3096 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3097    { (exit 1); exit 1; }; }
3098         fi
3099         ol_enable_relay="$ol_arg"
3100
3101 else
3102         ol_enable_relay=${ol_enable_backends:-yes}
3103 fi;
3104 # end --enable-relay
3105 # OpenLDAP --enable-shell
3106
3107         # Check whether --enable-shell or --disable-shell was given.
3108 if test "${enable_shell+set}" = set; then
3109   enableval="$enable_shell"
3110
3111         ol_arg=invalid
3112         for ol_val in no yes mod ; do
3113                 if test "$enableval" = "$ol_val" ; then
3114                         ol_arg="$ol_val"
3115                 fi
3116         done
3117         if test "$ol_arg" = "invalid" ; then
3118                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3119 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3120    { (exit 1); exit 1; }; }
3121         fi
3122         ol_enable_shell="$ol_arg"
3123
3124 else
3125         ol_enable_shell=${ol_enable_backends:-no}
3126 fi;
3127 # end --enable-shell
3128 # OpenLDAP --enable-sock
3129
3130         # Check whether --enable-sock or --disable-sock was given.
3131 if test "${enable_sock+set}" = set; then
3132   enableval="$enable_sock"
3133
3134         ol_arg=invalid
3135         for ol_val in no yes mod ; do
3136                 if test "$enableval" = "$ol_val" ; then
3137                         ol_arg="$ol_val"
3138                 fi
3139         done
3140         if test "$ol_arg" = "invalid" ; then
3141                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3142 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3143    { (exit 1); exit 1; }; }
3144         fi
3145         ol_enable_sock="$ol_arg"
3146
3147 else
3148         ol_enable_sock=${ol_enable_backends:-no}
3149 fi;
3150 # end --enable-sock
3151 # OpenLDAP --enable-sql
3152
3153         # Check whether --enable-sql or --disable-sql was given.
3154 if test "${enable_sql+set}" = set; then
3155   enableval="$enable_sql"
3156
3157         ol_arg=invalid
3158         for ol_val in no yes mod ; do
3159                 if test "$enableval" = "$ol_val" ; then
3160                         ol_arg="$ol_val"
3161                 fi
3162         done
3163         if test "$ol_arg" = "invalid" ; then
3164                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3165 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3166    { (exit 1); exit 1; }; }
3167         fi
3168         ol_enable_sql="$ol_arg"
3169
3170 else
3171         ol_enable_sql=${ol_enable_backends:-no}
3172 fi;
3173 # end --enable-sql
3174
3175 Overlays="accesslog \
3176         auditlog \
3177         collect \
3178         constraint \
3179         dds \
3180         deref \
3181         dyngroup \
3182         dynlist \
3183         memberof \
3184         ppolicy \
3185         proxycache \
3186         refint \
3187         retcode \
3188         rwm \
3189         seqmod \
3190         syncprov \
3191         translucent \
3192         unique \
3193         valsort"
3194
3195 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3196 if test "${enable_xxslapoverlays+set}" = set; then
3197   enableval="$enable_xxslapoverlays"
3198
3199 fi;
3200
3201 # OpenLDAP --enable-overlays
3202
3203         # Check whether --enable-overlays or --disable-overlays was given.
3204 if test "${enable_overlays+set}" = set; then
3205   enableval="$enable_overlays"
3206
3207         ol_arg=invalid
3208         for ol_val in no yes mod ; do
3209                 if test "$enableval" = "$ol_val" ; then
3210                         ol_arg="$ol_val"
3211                 fi
3212         done
3213         if test "$ol_arg" = "invalid" ; then
3214                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3215 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3216    { (exit 1); exit 1; }; }
3217         fi
3218         ol_enable_overlays="$ol_arg"
3219
3220 fi;
3221 # end --enable-overlays
3222 # OpenLDAP --enable-accesslog
3223
3224         # Check whether --enable-accesslog or --disable-accesslog was given.
3225 if test "${enable_accesslog+set}" = set; then
3226   enableval="$enable_accesslog"
3227
3228         ol_arg=invalid
3229         for ol_val in no yes mod ; do
3230                 if test "$enableval" = "$ol_val" ; then
3231                         ol_arg="$ol_val"
3232                 fi
3233         done
3234         if test "$ol_arg" = "invalid" ; then
3235                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3236 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3237    { (exit 1); exit 1; }; }
3238         fi
3239         ol_enable_accesslog="$ol_arg"
3240
3241 else
3242         ol_enable_accesslog=${ol_enable_overlays:-no}
3243 fi;
3244 # end --enable-accesslog
3245
3246 # OpenLDAP --enable-auditlog
3247
3248         # Check whether --enable-auditlog or --disable-auditlog was given.
3249 if test "${enable_auditlog+set}" = set; then
3250   enableval="$enable_auditlog"
3251
3252         ol_arg=invalid
3253         for ol_val in no yes mod ; do
3254                 if test "$enableval" = "$ol_val" ; then
3255                         ol_arg="$ol_val"
3256                 fi
3257         done
3258         if test "$ol_arg" = "invalid" ; then
3259                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3260 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3261    { (exit 1); exit 1; }; }
3262         fi
3263         ol_enable_auditlog="$ol_arg"
3264
3265 else
3266         ol_enable_auditlog=${ol_enable_overlays:-no}
3267 fi;
3268 # end --enable-auditlog
3269
3270 # OpenLDAP --enable-collect
3271
3272         # Check whether --enable-collect or --disable-collect was given.
3273 if test "${enable_collect+set}" = set; then
3274   enableval="$enable_collect"
3275
3276         ol_arg=invalid
3277         for ol_val in no yes mod ; do
3278                 if test "$enableval" = "$ol_val" ; then
3279                         ol_arg="$ol_val"
3280                 fi
3281         done
3282         if test "$ol_arg" = "invalid" ; then
3283                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3284 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3285    { (exit 1); exit 1; }; }
3286         fi
3287         ol_enable_collect="$ol_arg"
3288
3289 else
3290         ol_enable_collect=${ol_enable_overlays:-no}
3291 fi;
3292 # end --enable-collect
3293
3294 # OpenLDAP --enable-constraint
3295
3296         # Check whether --enable-constraint or --disable-constraint was given.
3297 if test "${enable_constraint+set}" = set; then
3298   enableval="$enable_constraint"
3299
3300         ol_arg=invalid
3301         for ol_val in no yes mod ; do
3302                 if test "$enableval" = "$ol_val" ; then
3303                         ol_arg="$ol_val"
3304                 fi
3305         done
3306         if test "$ol_arg" = "invalid" ; then
3307                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3308 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3309    { (exit 1); exit 1; }; }
3310         fi
3311         ol_enable_constraint="$ol_arg"
3312
3313 else
3314         ol_enable_constraint=${ol_enable_overlays:-no}
3315 fi;
3316 # end --enable-constraint
3317
3318 # OpenLDAP --enable-dds
3319
3320         # Check whether --enable-dds or --disable-dds was given.
3321 if test "${enable_dds+set}" = set; then
3322   enableval="$enable_dds"
3323
3324         ol_arg=invalid
3325         for ol_val in no yes mod ; do
3326                 if test "$enableval" = "$ol_val" ; then
3327                         ol_arg="$ol_val"
3328                 fi
3329         done
3330         if test "$ol_arg" = "invalid" ; then
3331                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3332 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3333    { (exit 1); exit 1; }; }
3334         fi
3335         ol_enable_dds="$ol_arg"
3336
3337 else
3338         ol_enable_dds=${ol_enable_overlays:-no}
3339 fi;
3340 # end --enable-dds
3341
3342 # OpenLDAP --enable-deref
3343
3344         # Check whether --enable-deref or --disable-deref was given.
3345 if test "${enable_deref+set}" = set; then
3346   enableval="$enable_deref"
3347
3348         ol_arg=invalid
3349         for ol_val in no yes mod ; do
3350                 if test "$enableval" = "$ol_val" ; then
3351                         ol_arg="$ol_val"
3352                 fi
3353         done
3354         if test "$ol_arg" = "invalid" ; then
3355                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3356 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3357    { (exit 1); exit 1; }; }
3358         fi
3359         ol_enable_deref="$ol_arg"
3360
3361 else
3362         ol_enable_deref=${ol_enable_overlays:-no}
3363 fi;
3364 # end --enable-deref
3365
3366 # OpenLDAP --enable-dyngroup
3367
3368         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3369 if test "${enable_dyngroup+set}" = set; then
3370   enableval="$enable_dyngroup"
3371
3372         ol_arg=invalid
3373         for ol_val in no yes mod ; do
3374                 if test "$enableval" = "$ol_val" ; then
3375                         ol_arg="$ol_val"
3376                 fi
3377         done
3378         if test "$ol_arg" = "invalid" ; then
3379                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3380 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3381    { (exit 1); exit 1; }; }
3382         fi
3383         ol_enable_dyngroup="$ol_arg"
3384
3385 else
3386         ol_enable_dyngroup=${ol_enable_overlays:-no}
3387 fi;
3388 # end --enable-dyngroup
3389
3390 # OpenLDAP --enable-dynlist
3391
3392         # Check whether --enable-dynlist or --disable-dynlist was given.
3393 if test "${enable_dynlist+set}" = set; then
3394   enableval="$enable_dynlist"
3395
3396         ol_arg=invalid
3397         for ol_val in no yes mod ; do
3398                 if test "$enableval" = "$ol_val" ; then
3399                         ol_arg="$ol_val"
3400                 fi
3401         done
3402         if test "$ol_arg" = "invalid" ; then
3403                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3404 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3405    { (exit 1); exit 1; }; }
3406         fi
3407         ol_enable_dynlist="$ol_arg"
3408
3409 else
3410         ol_enable_dynlist=${ol_enable_overlays:-no}
3411 fi;
3412 # end --enable-dynlist
3413
3414 # OpenLDAP --enable-memberof
3415
3416         # Check whether --enable-memberof or --disable-memberof was given.
3417 if test "${enable_memberof+set}" = set; then
3418   enableval="$enable_memberof"
3419
3420         ol_arg=invalid
3421         for ol_val in no yes mod ; do
3422                 if test "$enableval" = "$ol_val" ; then
3423                         ol_arg="$ol_val"
3424                 fi
3425         done
3426         if test "$ol_arg" = "invalid" ; then
3427                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3428 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3429    { (exit 1); exit 1; }; }
3430         fi
3431         ol_enable_memberof="$ol_arg"
3432
3433 else
3434         ol_enable_memberof=${ol_enable_overlays:-no}
3435 fi;
3436 # end --enable-memberof
3437
3438 # OpenLDAP --enable-ppolicy
3439
3440         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3441 if test "${enable_ppolicy+set}" = set; then
3442   enableval="$enable_ppolicy"
3443
3444         ol_arg=invalid
3445         for ol_val in no yes mod ; do
3446                 if test "$enableval" = "$ol_val" ; then
3447                         ol_arg="$ol_val"
3448                 fi
3449         done
3450         if test "$ol_arg" = "invalid" ; then
3451                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3452 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3453    { (exit 1); exit 1; }; }
3454         fi
3455         ol_enable_ppolicy="$ol_arg"
3456
3457 else
3458         ol_enable_ppolicy=${ol_enable_overlays:-no}
3459 fi;
3460 # end --enable-ppolicy
3461
3462 # OpenLDAP --enable-proxycache
3463
3464         # Check whether --enable-proxycache or --disable-proxycache was given.
3465 if test "${enable_proxycache+set}" = set; then
3466   enableval="$enable_proxycache"
3467
3468         ol_arg=invalid
3469         for ol_val in no yes mod ; do
3470                 if test "$enableval" = "$ol_val" ; then
3471                         ol_arg="$ol_val"
3472                 fi
3473         done
3474         if test "$ol_arg" = "invalid" ; then
3475                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3476 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3477    { (exit 1); exit 1; }; }
3478         fi
3479         ol_enable_proxycache="$ol_arg"
3480
3481 else
3482         ol_enable_proxycache=${ol_enable_overlays:-no}
3483 fi;
3484 # end --enable-proxycache
3485
3486 # OpenLDAP --enable-refint
3487
3488         # Check whether --enable-refint or --disable-refint was given.
3489 if test "${enable_refint+set}" = set; then
3490   enableval="$enable_refint"
3491
3492         ol_arg=invalid
3493         for ol_val in no yes mod ; do
3494                 if test "$enableval" = "$ol_val" ; then
3495                         ol_arg="$ol_val"
3496                 fi
3497         done
3498         if test "$ol_arg" = "invalid" ; then
3499                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3500 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3501    { (exit 1); exit 1; }; }
3502         fi
3503         ol_enable_refint="$ol_arg"
3504
3505 else
3506         ol_enable_refint=${ol_enable_overlays:-no}
3507 fi;
3508 # end --enable-refint
3509
3510 # OpenLDAP --enable-retcode
3511
3512         # Check whether --enable-retcode or --disable-retcode was given.
3513 if test "${enable_retcode+set}" = set; then
3514   enableval="$enable_retcode"
3515
3516         ol_arg=invalid
3517         for ol_val in no yes mod ; do
3518                 if test "$enableval" = "$ol_val" ; then
3519                         ol_arg="$ol_val"
3520                 fi
3521         done
3522         if test "$ol_arg" = "invalid" ; then
3523                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3524 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3525    { (exit 1); exit 1; }; }
3526         fi
3527         ol_enable_retcode="$ol_arg"
3528
3529 else
3530         ol_enable_retcode=${ol_enable_overlays:-no}
3531 fi;
3532 # end --enable-retcode
3533
3534 # OpenLDAP --enable-rwm
3535
3536         # Check whether --enable-rwm or --disable-rwm was given.
3537 if test "${enable_rwm+set}" = set; then
3538   enableval="$enable_rwm"
3539
3540         ol_arg=invalid
3541         for ol_val in no yes mod ; do
3542                 if test "$enableval" = "$ol_val" ; then
3543                         ol_arg="$ol_val"
3544                 fi
3545         done
3546         if test "$ol_arg" = "invalid" ; then
3547                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3548 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3549    { (exit 1); exit 1; }; }
3550         fi
3551         ol_enable_rwm="$ol_arg"
3552
3553 else
3554         ol_enable_rwm=${ol_enable_overlays:-no}
3555 fi;
3556 # end --enable-rwm
3557
3558 # OpenLDAP --enable-seqmod
3559
3560         # Check whether --enable-seqmod or --disable-seqmod was given.
3561 if test "${enable_seqmod+set}" = set; then
3562   enableval="$enable_seqmod"
3563
3564         ol_arg=invalid
3565         for ol_val in no yes mod ; do
3566                 if test "$enableval" = "$ol_val" ; then
3567                         ol_arg="$ol_val"
3568                 fi
3569         done
3570         if test "$ol_arg" = "invalid" ; then
3571                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3572 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3573    { (exit 1); exit 1; }; }
3574         fi
3575         ol_enable_seqmod="$ol_arg"
3576
3577 else
3578         ol_enable_seqmod=${ol_enable_overlays:-yes}
3579 fi;
3580 # end --enable-seqmod
3581
3582 # OpenLDAP --enable-syncprov
3583
3584         # Check whether --enable-syncprov or --disable-syncprov was given.
3585 if test "${enable_syncprov+set}" = set; then
3586   enableval="$enable_syncprov"
3587
3588         ol_arg=invalid
3589         for ol_val in no yes mod ; do
3590                 if test "$enableval" = "$ol_val" ; then
3591                         ol_arg="$ol_val"
3592                 fi
3593         done
3594         if test "$ol_arg" = "invalid" ; then
3595                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3596 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3597    { (exit 1); exit 1; }; }
3598         fi
3599         ol_enable_syncprov="$ol_arg"
3600
3601 else
3602         ol_enable_syncprov=${ol_enable_overlays:-yes}
3603 fi;
3604 # end --enable-syncprov
3605
3606 # OpenLDAP --enable-translucent
3607
3608         # Check whether --enable-translucent or --disable-translucent was given.
3609 if test "${enable_translucent+set}" = set; then
3610   enableval="$enable_translucent"
3611
3612         ol_arg=invalid
3613         for ol_val in no yes mod ; do
3614                 if test "$enableval" = "$ol_val" ; then
3615                         ol_arg="$ol_val"
3616                 fi
3617         done
3618         if test "$ol_arg" = "invalid" ; then
3619                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3620 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3621    { (exit 1); exit 1; }; }
3622         fi
3623         ol_enable_translucent="$ol_arg"
3624
3625 else
3626         ol_enable_translucent=${ol_enable_overlays:-no}
3627 fi;
3628 # end --enable-translucent
3629
3630 # OpenLDAP --enable-unique
3631
3632         # Check whether --enable-unique or --disable-unique was given.
3633 if test "${enable_unique+set}" = set; then
3634   enableval="$enable_unique"
3635
3636         ol_arg=invalid
3637         for ol_val in no yes mod ; do
3638                 if test "$enableval" = "$ol_val" ; then
3639                         ol_arg="$ol_val"
3640                 fi
3641         done
3642         if test "$ol_arg" = "invalid" ; then
3643                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3644 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3645    { (exit 1); exit 1; }; }
3646         fi
3647         ol_enable_unique="$ol_arg"
3648
3649 else
3650         ol_enable_unique=${ol_enable_overlays:-no}
3651 fi;
3652 # end --enable-unique
3653
3654 # OpenLDAP --enable-valsort
3655
3656         # Check whether --enable-valsort or --disable-valsort was given.
3657 if test "${enable_valsort+set}" = set; then
3658   enableval="$enable_valsort"
3659
3660         ol_arg=invalid
3661         for ol_val in no yes mod ; do
3662                 if test "$enableval" = "$ol_val" ; then
3663                         ol_arg="$ol_val"
3664                 fi
3665         done
3666         if test "$ol_arg" = "invalid" ; then
3667                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3668 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3669    { (exit 1); exit 1; }; }
3670         fi
3671         ol_enable_valsort="$ol_arg"
3672
3673 else
3674         ol_enable_valsort=${ol_enable_overlays:-no}
3675 fi;
3676 # end --enable-valsort
3677
3678
3679 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3680 if test "${enable_xxliboptions+set}" = set; then
3681   enableval="$enable_xxliboptions"
3682
3683 fi;
3684 # Check whether --enable-static or --disable-static was given.
3685 if test "${enable_static+set}" = set; then
3686   enableval="$enable_static"
3687   p=${PACKAGE-default}
3688     case $enableval in
3689     yes) enable_static=yes ;;
3690     no) enable_static=no ;;
3691     *)
3692      enable_static=no
3693       # Look at the argument we got.  We use all the common list separators.
3694       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3695       for pkg in $enableval; do
3696         IFS="$lt_save_ifs"
3697         if test "X$pkg" = "X$p"; then
3698           enable_static=yes
3699         fi
3700       done
3701       IFS="$lt_save_ifs"
3702       ;;
3703     esac
3704 else
3705   enable_static=yes
3706 fi;
3707
3708 # Check whether --enable-shared or --disable-shared was given.
3709 if test "${enable_shared+set}" = set; then
3710   enableval="$enable_shared"
3711   p=${PACKAGE-default}
3712     case $enableval in
3713     yes) enable_shared=yes ;;
3714     no) enable_shared=no ;;
3715     *)
3716       enable_shared=no
3717       # Look at the argument we got.  We use all the common list separators.
3718       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3719       for pkg in $enableval; do
3720         IFS="$lt_save_ifs"
3721         if test "X$pkg" = "X$p"; then
3722           enable_shared=yes
3723         fi
3724       done
3725       IFS="$lt_save_ifs"
3726       ;;
3727     esac
3728 else
3729   enable_shared=yes
3730 fi;
3731
3732
3733
3734 # validate options
3735 if test $ol_enable_slapd = no ; then
3736                 if test $ol_enable_slapi = yes ; then
3737                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3738 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3739         fi
3740         case "$ol_enable_backends" in yes | mod)
3741                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3742 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3743         esac
3744         for i in $Backends; do
3745                 eval "ol_tmp=\$ol_enable_$i"
3746                 if test $ol_tmp != no ; then
3747                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3748 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3749                         eval "ol_enable_$i=no"
3750                 fi
3751         done
3752         if test $ol_enable_modules = yes ; then
3753                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3754 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3755         fi
3756         if test $ol_enable_wrappers = yes ; then
3757                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3758 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3759         fi
3760         if test $ol_enable_rlookups = yes ; then
3761                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3762 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3763         fi
3764         if test $ol_enable_dynacl = yes ; then
3765                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3766 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3767         fi
3768         if test $ol_enable_aci != no ; then
3769                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3770 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3771         fi
3772         if test $ol_enable_rewrite = yes ; then
3773                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3774 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3775         fi
3776                 case "$ol_enable_overlays" in yes | mod)
3777                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3778 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3779         esac
3780         for i in $Overlays; do
3781                 eval "ol_tmp=\$ol_enable_$i"
3782                 if test $ol_tmp != no ; then
3783                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3784 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3785                         eval "ol_enable_$i=no"
3786                 fi
3787         done
3788
3789         # force settings to no
3790         ol_enable_slapi=no
3791
3792         ol_enable_backends=
3793         ol_enable_overlays=
3794         ol_enable_modules=no
3795         ol_enable_rlookups=no
3796         ol_enable_dynacl=no
3797         ol_enable_aci=no
3798         ol_enable_wrappers=no
3799
3800         ol_enable_rewrite=no
3801
3802 elif test $ol_enable_modules != yes &&
3803         test $ol_enable_bdb = no &&
3804         test $ol_enable_dnssrv = no &&
3805         test $ol_enable_hdb = no &&
3806         test $ol_enable_ldap = no &&
3807         test $ol_enable_meta = no &&
3808         test $ol_enable_monitor = no &&
3809         test $ol_enable_ndb = no &&
3810         test $ol_enable_null = no &&
3811         test $ol_enable_passwd = no &&
3812         test $ol_enable_perl = no &&
3813         test $ol_enable_relay = no &&
3814         test $ol_enable_shell = no &&
3815         test $ol_enable_sock = no &&
3816         test $ol_enable_sql = no ; then
3817
3818         if test $ol_enable_slapd = yes ; then
3819                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3820 echo "$as_me: error: slapd requires a backend" >&2;}
3821    { (exit 1); exit 1; }; }
3822         else
3823                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3824 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3825                 ol_enable_slapd=no
3826         fi
3827 fi
3828
3829 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3830         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3831 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3832    { (exit 1); exit 1; }; }
3833 fi
3834
3835 if test $ol_enable_lmpasswd = yes ; then
3836         if test $ol_with_tls = no ; then
3837                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3838 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3839    { (exit 1); exit 1; }; }
3840         fi
3841 fi
3842
3843 if test $ol_enable_spasswd = yes ; then
3844         if test $ol_with_cyrus_sasl = no ; then
3845                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3846 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3847    { (exit 1); exit 1; }; }
3848         fi
3849         ol_with_cyrus_sasl=yes
3850 fi
3851
3852 echo "$as_me:$LINENO: result: done" >&5
3853 echo "${ECHO_T}done" >&6
3854
3855 LDAP_LIBS=
3856 BDB_LIBS=
3857 SLAPD_NDB_LIBS=
3858 SLAPD_NDB_INCS=
3859 LTHREAD_LIBS=
3860 LUTIL_LIBS=
3861
3862 SLAPD_LIBS=
3863
3864 BUILD_SLAPD=no
3865
3866 BUILD_THREAD=no
3867
3868 BUILD_SLAPI=no
3869 SLAPD_SLAPI_DEPEND=
3870
3871 BUILD_BDB=no
3872 BUILD_DNSSRV=no
3873 BUILD_HDB=no
3874 BUILD_LDAP=no
3875 BUILD_META=no
3876 BUILD_MONITOR=no
3877 BUILD_NDB=no
3878 BUILD_NULL=no
3879 BUILD_PASSWD=no
3880 BUILD_PERL=no
3881 BUILD_RELAY=no
3882 BUILD_SHELL=no
3883 BUILD_SOCK=no
3884 BUILD_SQL=no
3885
3886 BUILD_ACCESSLOG=no
3887 BUILD_AUDITLOG=no
3888 BUILD_CONSTRAINT=no
3889 BUILD_DDS=no
3890 BUILD_DENYOP=no
3891 BUILD_DYNGROUP=no
3892 BUILD_DYNLIST=no
3893 BUILD_LASTMOD=no
3894 BUILD_MEMBEROF=no
3895 BUILD_PPOLICY=no
3896 BUILD_PROXYCACHE=no
3897 BUILD_REFINT=no
3898 BUILD_RETCODE=no
3899 BUILD_RWM=no
3900 BUILD_SEQMOD=no
3901 BUILD_SYNCPROV=no
3902 BUILD_TRANSLUCENT=no
3903 BUILD_UNIQUE=no
3904 BUILD_VALSORT=no
3905
3906 SLAPD_STATIC_OVERLAYS=
3907 SLAPD_DYNAMIC_OVERLAYS=
3908
3909 SLAPD_MODULES_LDFLAGS=
3910 SLAPD_MODULES_CPPFLAGS=
3911
3912 SLAPD_STATIC_BACKENDS=back-ldif
3913 SLAPD_DYNAMIC_BACKENDS=
3914
3915 SLAPD_PERL_LDFLAGS=
3916 MOD_PERL_LDFLAGS=
3917 PERL_CPPFLAGS=
3918
3919 SLAPD_SQL_LDFLAGS=
3920 SLAPD_SQL_LIBS=
3921 SLAPD_SQL_INCLUDES=
3922
3923 KRB4_LIBS=
3924 KRB5_LIBS=
3925 SASL_LIBS=
3926 GSSAPI_LIBS=
3927 TLS_LIBS=
3928 MODULES_LIBS=
3929 SLAPI_LIBS=
3930 LIBSLAPI=
3931 LIBSLAPITOOLS=
3932 AUTH_LIBS=
3933 ICU_LIBS=
3934
3935 SLAPD_SLP_LIBS=
3936 SLAPD_GMP_LIBS=
3937
3938
3939
3940 cat >>confdefs.h <<\_ACEOF
3941 #define HAVE_MKVERSION 1
3942 _ACEOF
3943
3944
3945
3946
3947 ol_aix_threads=no
3948 case "$target" in
3949 *-*-aix*)       if test -z "$CC" ; then
3950                 case "$ol_with_threads" in
3951                 auto | yes |  posix) ol_aix_threads=yes ;;
3952                 esac
3953         fi
3954 ;;
3955 esac
3956
3957 if test $ol_aix_threads = yes ; then
3958         if test -z "${CC}" ; then
3959                 for ac_prog in cc_r xlc_r cc
3960 do
3961   # Extract the first word of "$ac_prog", so it can be a program name with args.
3962 set dummy $ac_prog; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_CC+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   if test -n "$CC"; then
3969   ac_cv_prog_CC="$CC" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974   IFS=$as_save_IFS
3975   test -z "$as_dir" && as_dir=.
3976   for ac_exec_ext in '' $ac_executable_extensions; do
3977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978     ac_cv_prog_CC="$ac_prog"
3979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980     break 2
3981   fi
3982 done
3983 done
3984
3985 fi
3986 fi
3987 CC=$ac_cv_prog_CC
3988 if test -n "$CC"; then
3989   echo "$as_me:$LINENO: result: $CC" >&5
3990 echo "${ECHO_T}$CC" >&6
3991 else
3992   echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3994 fi
3995
3996   test -n "$CC" && break
3997 done
3998
3999
4000                 if test "$CC" = cc ; then
4001                                                 if test $ol_with_threads != auto ; then
4002                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4003 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4004    { (exit 1); exit 1; }; }
4005                         else
4006                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4007 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4008                         fi
4009                         ol_with_threads=no
4010                 fi
4011         fi
4012
4013         case ${CC} in cc_r | xlc_r)
4014                 ol_with_threads=posix
4015                 ol_cv_pthread_create=yes
4016                 ;;
4017         esac
4018 fi
4019
4020 if test -z "${CC}"; then
4021         for ac_prog in cc gcc
4022 do
4023   # Extract the first word of "$ac_prog", so it can be a program name with args.
4024 set dummy $ac_prog; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_CC+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   if test -n "$CC"; then
4031   ac_cv_prog_CC="$CC" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4035 do
4036   IFS=$as_save_IFS
4037   test -z "$as_dir" && as_dir=.
4038   for ac_exec_ext in '' $ac_executable_extensions; do
4039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040     ac_cv_prog_CC="$ac_prog"
4041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042     break 2
4043   fi
4044 done
4045 done
4046
4047 fi
4048 fi
4049 CC=$ac_cv_prog_CC
4050 if test -n "$CC"; then
4051   echo "$as_me:$LINENO: result: $CC" >&5
4052 echo "${ECHO_T}$CC" >&6
4053 else
4054   echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4056 fi
4057
4058   test -n "$CC" && break
4059 done
4060 test -n "$CC" || CC="missing"
4061
4062
4063         if test "${CC}" = "missing" ; then
4064                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4065 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4066    { (exit 1); exit 1; }; }
4067         fi
4068 fi
4069
4070 if test -z "${AR}"; then
4071         for ac_prog in ar gar
4072 do
4073   # Extract the first word of "$ac_prog", so it can be a program name with args.
4074 set dummy $ac_prog; ac_word=$2
4075 echo "$as_me:$LINENO: checking for $ac_word" >&5
4076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4077 if test "${ac_cv_prog_AR+set}" = set; then
4078   echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080   if test -n "$AR"; then
4081   ac_cv_prog_AR="$AR" # Let the user override the test.
4082 else
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH
4085 do
4086   IFS=$as_save_IFS
4087   test -z "$as_dir" && as_dir=.
4088   for ac_exec_ext in '' $ac_executable_extensions; do
4089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4090     ac_cv_prog_AR="$ac_prog"
4091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4092     break 2
4093   fi
4094 done
4095 done
4096
4097 fi
4098 fi
4099 AR=$ac_cv_prog_AR
4100 if test -n "$AR"; then
4101   echo "$as_me:$LINENO: result: $AR" >&5
4102 echo "${ECHO_T}$AR" >&6
4103 else
4104   echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4106 fi
4107
4108   test -n "$AR" && break
4109 done
4110 test -n "$AR" || AR="missing"
4111
4112
4113         if test "${AR}" = "missing" ; then
4114                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4115 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4116    { (exit 1); exit 1; }; }
4117         fi
4118 fi
4119
4120
4121
4122
4123
4124 # Check whether --enable-fast-install or --disable-fast-install was given.
4125 if test "${enable_fast_install+set}" = set; then
4126   enableval="$enable_fast_install"
4127   p=${PACKAGE-default}
4128     case $enableval in
4129     yes) enable_fast_install=yes ;;
4130     no) enable_fast_install=no ;;
4131     *)
4132       enable_fast_install=no
4133       # Look at the argument we got.  We use all the common list separators.
4134       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4135       for pkg in $enableval; do
4136         IFS="$lt_save_ifs"
4137         if test "X$pkg" = "X$p"; then
4138           enable_fast_install=yes
4139         fi
4140       done
4141       IFS="$lt_save_ifs"
4142       ;;
4143     esac
4144 else
4145   enable_fast_install=yes
4146 fi;
4147
4148 DEPDIR="${am__leading_dot}deps"
4149
4150           ac_config_commands="$ac_config_commands depfiles"
4151
4152
4153 am_make=${MAKE-make}
4154 cat > confinc << 'END'
4155 am__doit:
4156         @echo done
4157 .PHONY: am__doit
4158 END
4159 # If we don't find an include directive, just comment out the code.
4160 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4161 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4162 am__include="#"
4163 am__quote=
4164 _am_result=none
4165 # First try GNU make style include.
4166 echo "include confinc" > confmf
4167 # We grep out `Entering directory' and `Leaving directory'
4168 # messages which can occur if `w' ends up in MAKEFLAGS.
4169 # In particular we don't look at `^make:' because GNU make might
4170 # be invoked under some other name (usually "gmake"), in which
4171 # case it prints its new name instead of `make'.
4172 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4173    am__include=include
4174    am__quote=
4175    _am_result=GNU
4176 fi
4177 # Now try BSD make style include.
4178 if test "$am__include" = "#"; then
4179    echo '.include "confinc"' > confmf
4180    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4181       am__include=.include
4182       am__quote="\""
4183       _am_result=BSD
4184    fi
4185 fi
4186
4187
4188 echo "$as_me:$LINENO: result: $_am_result" >&5
4189 echo "${ECHO_T}$_am_result" >&6
4190 rm -f confinc confmf
4191
4192 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4193 if test "${enable_dependency_tracking+set}" = set; then
4194   enableval="$enable_dependency_tracking"
4195
4196 fi;
4197 if test "x$enable_dependency_tracking" != xno; then
4198   am_depcomp="$ac_aux_dir/depcomp"
4199   AMDEPBACKSLASH='\'
4200 fi
4201
4202
4203 if test "x$enable_dependency_tracking" != xno; then
4204   AMDEP_TRUE=
4205   AMDEP_FALSE='#'
4206 else
4207   AMDEP_TRUE='#'
4208   AMDEP_FALSE=
4209 fi
4210
4211
4212
4213 ac_ext=c
4214 ac_cpp='$CPP $CPPFLAGS'
4215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4218 if test -n "$ac_tool_prefix"; then
4219   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4221 echo "$as_me:$LINENO: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4223 if test "${ac_cv_prog_CC+set}" = set; then
4224   echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226   if test -n "$CC"; then
4227   ac_cv_prog_CC="$CC" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232   IFS=$as_save_IFS
4233   test -z "$as_dir" && as_dir=.
4234   for ac_exec_ext in '' $ac_executable_extensions; do
4235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4238     break 2
4239   fi
4240 done
4241 done
4242
4243 fi
4244 fi
4245 CC=$ac_cv_prog_CC
4246 if test -n "$CC"; then
4247   echo "$as_me:$LINENO: result: $CC" >&5
4248 echo "${ECHO_T}$CC" >&6
4249 else
4250   echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4252 fi
4253
4254 fi
4255 if test -z "$ac_cv_prog_CC"; then
4256   ac_ct_CC=$CC
4257   # Extract the first word of "gcc", so it can be a program name with args.
4258 set dummy gcc; ac_word=$2
4259 echo "$as_me:$LINENO: checking for $ac_word" >&5
4260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4261 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264   if test -n "$ac_ct_CC"; then
4265   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4266 else
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270   IFS=$as_save_IFS
4271   test -z "$as_dir" && as_dir=.
4272   for ac_exec_ext in '' $ac_executable_extensions; do
4273   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274     ac_cv_prog_ac_ct_CC="gcc"
4275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4276     break 2
4277   fi
4278 done
4279 done
4280
4281 fi
4282 fi
4283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4284 if test -n "$ac_ct_CC"; then
4285   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4286 echo "${ECHO_T}$ac_ct_CC" >&6
4287 else
4288   echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6
4290 fi
4291
4292   CC=$ac_ct_CC
4293 else
4294   CC="$ac_cv_prog_CC"
4295 fi
4296
4297 if test -z "$CC"; then
4298   if test -n "$ac_tool_prefix"; then
4299   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4300 set dummy ${ac_tool_prefix}cc; ac_word=$2
4301 echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4303 if test "${ac_cv_prog_CC+set}" = set; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   if test -n "$CC"; then
4307   ac_cv_prog_CC="$CC" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4311 do
4312   IFS=$as_save_IFS
4313   test -z "$as_dir" && as_dir=.
4314   for ac_exec_ext in '' $ac_executable_extensions; do
4315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316     ac_cv_prog_CC="${ac_tool_prefix}cc"
4317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318     break 2
4319   fi
4320 done
4321 done
4322
4323 fi
4324 fi
4325 CC=$ac_cv_prog_CC
4326 if test -n "$CC"; then
4327   echo "$as_me:$LINENO: result: $CC" >&5
4328 echo "${ECHO_T}$CC" >&6
4329 else
4330   echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6
4332 fi
4333
4334 fi
4335 if test -z "$ac_cv_prog_CC"; then
4336   ac_ct_CC=$CC
4337   # Extract the first word of "cc", so it can be a program name with args.
4338 set dummy cc; ac_word=$2
4339 echo "$as_me:$LINENO: checking for $ac_word" >&5
4340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4342   echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344   if test -n "$ac_ct_CC"; then
4345   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4349 do
4350   IFS=$as_save_IFS
4351   test -z "$as_dir" && as_dir=.
4352   for ac_exec_ext in '' $ac_executable_extensions; do
4353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354     ac_cv_prog_ac_ct_CC="cc"
4355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356     break 2
4357   fi
4358 done
4359 done
4360
4361 fi
4362 fi
4363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4364 if test -n "$ac_ct_CC"; then
4365   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4366 echo "${ECHO_T}$ac_ct_CC" >&6
4367 else
4368   echo "$as_me:$LINENO: result: no" >&5
4369 echo "${ECHO_T}no" >&6
4370 fi
4371
4372   CC=$ac_ct_CC
4373 else
4374   CC="$ac_cv_prog_CC"
4375 fi
4376
4377 fi
4378 if test -z "$CC"; then
4379   # Extract the first word of "cc", so it can be a program name with args.
4380 set dummy cc; ac_word=$2
4381 echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4383 if test "${ac_cv_prog_CC+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   if test -n "$CC"; then
4387   ac_cv_prog_CC="$CC" # Let the user override the test.
4388 else
4389   ac_prog_rejected=no
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4392 do
4393   IFS=$as_save_IFS
4394   test -z "$as_dir" && as_dir=.
4395   for ac_exec_ext in '' $ac_executable_extensions; do
4396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4398        ac_prog_rejected=yes
4399        continue
4400      fi
4401     ac_cv_prog_CC="cc"
4402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403     break 2
4404   fi
4405 done
4406 done
4407
4408 if test $ac_prog_rejected = yes; then
4409   # We found a bogon in the path, so make sure we never use it.
4410   set dummy $ac_cv_prog_CC
4411   shift
4412   if test $# != 0; then
4413     # We chose a different compiler from the bogus one.
4414     # However, it has the same basename, so the bogon will be chosen
4415     # first if we set CC to just the basename; use the full file name.
4416     shift
4417     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4418   fi
4419 fi
4420 fi
4421 fi
4422 CC=$ac_cv_prog_CC
4423 if test -n "$CC"; then
4424   echo "$as_me:$LINENO: result: $CC" >&5
4425 echo "${ECHO_T}$CC" >&6
4426 else
4427   echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6
4429 fi
4430
4431 fi
4432 if test -z "$CC"; then
4433   if test -n "$ac_tool_prefix"; then
4434   for ac_prog in cl
4435   do
4436     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4438 echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440 if test "${ac_cv_prog_CC+set}" = set; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   if test -n "$CC"; then
4444   ac_cv_prog_CC="$CC" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449   IFS=$as_save_IFS
4450   test -z "$as_dir" && as_dir=.
4451   for ac_exec_ext in '' $ac_executable_extensions; do
4452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455     break 2
4456   fi
4457 done
4458 done
4459
4460 fi
4461 fi
4462 CC=$ac_cv_prog_CC
4463 if test -n "$CC"; then
4464   echo "$as_me:$LINENO: result: $CC" >&5
4465 echo "${ECHO_T}$CC" >&6
4466 else
4467   echo "$as_me:$LINENO: result: no" >&5
4468 echo "${ECHO_T}no" >&6
4469 fi
4470
4471     test -n "$CC" && break
4472   done
4473 fi
4474 if test -z "$CC"; then
4475   ac_ct_CC=$CC
4476   for ac_prog in cl
4477 do
4478   # Extract the first word of "$ac_prog", so it can be a program name with args.
4479 set dummy $ac_prog; ac_word=$2
4480 echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4483   echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485   if test -n "$ac_ct_CC"; then
4486   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4487 else
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4490 do
4491   IFS=$as_save_IFS
4492   test -z "$as_dir" && as_dir=.
4493   for ac_exec_ext in '' $ac_executable_extensions; do
4494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4495     ac_cv_prog_ac_ct_CC="$ac_prog"
4496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497     break 2
4498   fi
4499 done
4500 done
4501
4502 fi
4503 fi
4504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4505 if test -n "$ac_ct_CC"; then
4506   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4507 echo "${ECHO_T}$ac_ct_CC" >&6
4508 else
4509   echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6
4511 fi
4512
4513   test -n "$ac_ct_CC" && break
4514 done
4515
4516   CC=$ac_ct_CC
4517 fi
4518
4519 fi
4520
4521
4522 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4523 See \`config.log' for more details." >&5
4524 echo "$as_me: error: no acceptable C compiler found in \$PATH
4525 See \`config.log' for more details." >&2;}
4526    { (exit 1); exit 1; }; }
4527
4528 # Provide some information about the compiler.
4529 echo "$as_me:$LINENO:" \
4530      "checking for C compiler version" >&5
4531 ac_compiler=`set X $ac_compile; echo $2`
4532 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4533   (eval $ac_compiler --version </dev/null >&5) 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); }
4537 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4538   (eval $ac_compiler -v </dev/null >&5) 2>&5
4539   ac_status=$?
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); }
4542 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4543   (eval $ac_compiler -V </dev/null >&5) 2>&5
4544   ac_status=$?
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); }
4547
4548 cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h.  */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h.  */
4554
4555 int
4556 main ()
4557 {
4558
4559   ;
4560   return 0;
4561 }
4562 _ACEOF
4563 ac_clean_files_save=$ac_clean_files
4564 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4565 # Try to create an executable without -o first, disregard a.out.
4566 # It will help us diagnose broken compilers, and finding out an intuition
4567 # of exeext.
4568 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4569 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4570 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4571 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4572   (eval $ac_link_default) 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); }; then
4576   # Find the output, starting from the most likely.  This scheme is
4577 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4578 # resort.
4579
4580 # Be careful to initialize this variable, since it used to be cached.
4581 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4582 ac_cv_exeext=
4583 # b.out is created by i960 compilers.
4584 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4585 do
4586   test -f "$ac_file" || continue
4587   case $ac_file in
4588     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4589         ;;
4590     conftest.$ac_ext )
4591         # This is the source file.
4592         ;;
4593     [ab].out )
4594         # We found the default executable, but exeext='' is most
4595         # certainly right.
4596         break;;
4597     *.* )
4598         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4599         # FIXME: I believe we export ac_cv_exeext for Libtool,
4600         # but it would be cool to find out if it's true.  Does anybody
4601         # maintain Libtool? --akim.
4602         export ac_cv_exeext
4603         break;;
4604     * )
4605         break;;
4606   esac
4607 done
4608 else
4609   echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4613 See \`config.log' for more details." >&5
4614 echo "$as_me: error: C compiler cannot create executables
4615 See \`config.log' for more details." >&2;}
4616    { (exit 77); exit 77; }; }
4617 fi
4618
4619 ac_exeext=$ac_cv_exeext
4620 echo "$as_me:$LINENO: result: $ac_file" >&5
4621 echo "${ECHO_T}$ac_file" >&6
4622
4623 # Check the compiler produces executables we can run.  If not, either
4624 # the compiler is broken, or we cross compile.
4625 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4626 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4627 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4628 # If not cross compiling, check that we can run a simple program.
4629 if test "$cross_compiling" != yes; then
4630   if { ac_try='./$ac_file'
4631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632   (eval $ac_try) 2>&5
4633   ac_status=$?
4634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); }; }; then
4636     cross_compiling=no
4637   else
4638     if test "$cross_compiling" = maybe; then
4639         cross_compiling=yes
4640     else
4641         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4642 If you meant to cross compile, use \`--host'.
4643 See \`config.log' for more details." >&5
4644 echo "$as_me: error: cannot run C compiled programs.
4645 If you meant to cross compile, use \`--host'.
4646 See \`config.log' for more details." >&2;}
4647    { (exit 1); exit 1; }; }
4648     fi
4649   fi
4650 fi
4651 echo "$as_me:$LINENO: result: yes" >&5
4652 echo "${ECHO_T}yes" >&6
4653
4654 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4655 ac_clean_files=$ac_clean_files_save
4656 # Check the compiler produces executables we can run.  If not, either
4657 # the compiler is broken, or we cross compile.
4658 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4659 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4660 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4661 echo "${ECHO_T}$cross_compiling" >&6
4662
4663 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4664 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666   (eval $ac_link) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; then
4670   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4671 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4672 # work properly (i.e., refer to `conftest.exe'), while it won't with
4673 # `rm'.
4674 for ac_file in conftest.exe conftest conftest.*; do
4675   test -f "$ac_file" || continue
4676   case $ac_file in
4677     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4678     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4679           export ac_cv_exeext
4680           break;;
4681     * ) break;;
4682   esac
4683 done
4684 else
4685   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4686 See \`config.log' for more details." >&5
4687 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4688 See \`config.log' for more details." >&2;}
4689    { (exit 1); exit 1; }; }
4690 fi
4691
4692 rm -f conftest$ac_cv_exeext
4693 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4694 echo "${ECHO_T}$ac_cv_exeext" >&6
4695
4696 rm -f conftest.$ac_ext
4697 EXEEXT=$ac_cv_exeext
4698 ac_exeext=$EXEEXT
4699 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4700 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4701 if test "${ac_cv_objext+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h.  */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h.  */
4710
4711 int
4712 main ()
4713 {
4714
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.o conftest.obj
4720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721   (eval $ac_compile) 2>&5
4722   ac_status=$?
4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724   (exit $ac_status); }; then
4725   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4726   case $ac_file in
4727     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4728     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4729        break;;
4730   esac
4731 done
4732 else
4733   echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4735
4736 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4737 See \`config.log' for more details." >&5
4738 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4739 See \`config.log' for more details." >&2;}
4740    { (exit 1); exit 1; }; }
4741 fi
4742
4743 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4744 fi
4745 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4746 echo "${ECHO_T}$ac_cv_objext" >&6
4747 OBJEXT=$ac_cv_objext
4748 ac_objext=$OBJEXT
4749 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4750 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4751 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4752   echo $ECHO_N "(cached) $ECHO_C" >&6
4753 else
4754   cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h.  */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h.  */
4760
4761 int
4762 main ()
4763 {
4764 #ifndef __GNUC__
4765        choke me
4766 #endif
4767
4768   ;
4769   return 0;
4770 }
4771 _ACEOF
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774   (eval $ac_compile) 2>conftest.er1
4775   ac_status=$?
4776   grep -v '^ *+' conftest.er1 >conftest.err
4777   rm -f conftest.er1
4778   cat conftest.err >&5
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); } &&
4781          { ac_try='test -z "$ac_c_werror_flag"
4782                          || test ! -s conftest.err'
4783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784   (eval $ac_try) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); }; } &&
4788          { ac_try='test -s conftest.$ac_objext'
4789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790   (eval $ac_try) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; }; then
4794   ac_compiler_gnu=yes
4795 else
4796   echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799 ac_compiler_gnu=no
4800 fi
4801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4802 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4803
4804 fi
4805 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4806 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4807 GCC=`test $ac_compiler_gnu = yes && echo yes`
4808 ac_test_CFLAGS=${CFLAGS+set}
4809 ac_save_CFLAGS=$CFLAGS
4810 CFLAGS="-g"
4811 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4812 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4813 if test "${ac_cv_prog_cc_g+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h.  */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h.  */
4822
4823 int
4824 main ()
4825 {
4826
4827   ;
4828   return 0;
4829 }
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833   (eval $ac_compile) 2>conftest.er1
4834   ac_status=$?
4835   grep -v '^ *+' conftest.er1 >conftest.err
4836   rm -f conftest.er1
4837   cat conftest.err >&5
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); } &&
4840          { ac_try='test -z "$ac_c_werror_flag"
4841                          || test ! -s conftest.err'
4842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843   (eval $ac_try) 2>&5
4844   ac_status=$?
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); }; } &&
4847          { ac_try='test -s conftest.$ac_objext'
4848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849   (eval $ac_try) 2>&5
4850   ac_status=$?
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); }; }; then
4853   ac_cv_prog_cc_g=yes
4854 else
4855   echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4857
4858 ac_cv_prog_cc_g=no
4859 fi
4860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4861 fi
4862 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4863 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4864 if test "$ac_test_CFLAGS" = set; then
4865   CFLAGS=$ac_save_CFLAGS
4866 elif test $ac_cv_prog_cc_g = yes; then
4867   if test "$GCC" = yes; then
4868     CFLAGS="-g -O2"
4869   else
4870     CFLAGS="-g"
4871   fi
4872 else
4873   if test "$GCC" = yes; then
4874     CFLAGS="-O2"
4875   else
4876     CFLAGS=
4877   fi
4878 fi
4879 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4880 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4881 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4882   echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884   ac_cv_prog_cc_stdc=no
4885 ac_save_CC=$CC
4886 cat >conftest.$ac_ext <<_ACEOF
4887 /* confdefs.h.  */
4888 _ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h.  */
4892 #include <stdarg.h>
4893 #include <stdio.h>
4894 #include <sys/types.h>
4895 #include <sys/stat.h>
4896 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4897 struct buf { int x; };
4898 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4899 static char *e (p, i)
4900      char **p;
4901      int i;
4902 {
4903   return p[i];
4904 }
4905 static char *f (char * (*g) (char **, int), char **p, ...)
4906 {
4907   char *s;
4908   va_list v;
4909   va_start (v,p);
4910   s = g (p, va_arg (v,int));
4911   va_end (v);
4912   return s;
4913 }
4914
4915 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4916    function prototypes and stuff, but not '\xHH' hex character constants.
4917    These don't provoke an error unfortunately, instead are silently treated
4918    as 'x'.  The following induces an error, until -std1 is added to get
4919    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4920    array size at least.  It's necessary to write '\x00'==0 to get something
4921    that's true only with -std1.  */
4922 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4923
4924 int test (int i, double x);
4925 struct s1 {int (*f) (int a);};
4926 struct s2 {int (*f) (double a);};
4927 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4928 int argc;
4929 char **argv;
4930 int
4931 main ()
4932 {
4933 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4934   ;
4935   return 0;
4936 }
4937 _ACEOF
4938 # Don't try gcc -ansi; that turns off useful extensions and
4939 # breaks some systems' header files.
4940 # AIX                   -qlanglvl=ansi
4941 # Ultrix and OSF/1      -std1
4942 # HP-UX 10.20 and later -Ae
4943 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4944 # SVR4                  -Xc -D__EXTENSIONS__
4945 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4946 do
4947   CC="$ac_save_CC $ac_arg"
4948   rm -f conftest.$ac_objext
4949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4950   (eval $ac_compile) 2>conftest.er1
4951   ac_status=$?
4952   grep -v '^ *+' conftest.er1 >conftest.err
4953   rm -f conftest.er1
4954   cat conftest.err >&5
4955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956   (exit $ac_status); } &&
4957          { ac_try='test -z "$ac_c_werror_flag"
4958                          || test ! -s conftest.err'
4959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960   (eval $ac_try) 2>&5
4961   ac_status=$?
4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963   (exit $ac_status); }; } &&
4964          { ac_try='test -s conftest.$ac_objext'
4965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966   (eval $ac_try) 2>&5
4967   ac_status=$?
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); }; }; then
4970   ac_cv_prog_cc_stdc=$ac_arg
4971 break
4972 else
4973   echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 fi
4977 rm -f conftest.err conftest.$ac_objext
4978 done
4979 rm -f conftest.$ac_ext conftest.$ac_objext
4980 CC=$ac_save_CC
4981
4982 fi
4983
4984 case "x$ac_cv_prog_cc_stdc" in
4985   x|xno)
4986     echo "$as_me:$LINENO: result: none needed" >&5
4987 echo "${ECHO_T}none needed" >&6 ;;
4988   *)
4989     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4990 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4991     CC="$CC $ac_cv_prog_cc_stdc" ;;
4992 esac
4993
4994 # Some people use a C++ compiler to compile C.  Since we use `exit',
4995 # in C++ we need to declare it.  In case someone uses the same compiler
4996 # for both compiling C and C++ we need to have the C++ compiler decide
4997 # the declaration of exit, since it's the most demanding environment.
4998 cat >conftest.$ac_ext <<_ACEOF
4999 #ifndef __cplusplus
5000   choke me
5001 #endif
5002 _ACEOF
5003 rm -f conftest.$ac_objext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005   (eval $ac_compile) 2>conftest.er1
5006   ac_status=$?
5007   grep -v '^ *+' conftest.er1 >conftest.err
5008   rm -f conftest.er1
5009   cat conftest.err >&5
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); } &&
5012          { ac_try='test -z "$ac_c_werror_flag"
5013                          || test ! -s conftest.err'
5014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015   (eval $ac_try) 2>&5
5016   ac_status=$?
5017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018   (exit $ac_status); }; } &&
5019          { ac_try='test -s conftest.$ac_objext'
5020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021   (eval $ac_try) 2>&5
5022   ac_status=$?
5023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024   (exit $ac_status); }; }; then
5025   for ac_declaration in \
5026    '' \
5027    'extern "C" void std::exit (int) throw (); using std::exit;' \
5028    'extern "C" void std::exit (int); using std::exit;' \
5029    'extern "C" void exit (int) throw ();' \
5030    'extern "C" void exit (int);' \
5031    'void exit (int);'
5032 do
5033   cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 $ac_declaration
5040 #include <stdlib.h>
5041 int
5042 main ()
5043 {
5044 exit (42);
5045   ;
5046   return 0;
5047 }
5048 _ACEOF
5049 rm -f conftest.$ac_objext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051   (eval $ac_compile) 2>conftest.er1
5052   ac_status=$?
5053   grep -v '^ *+' conftest.er1 >conftest.err
5054   rm -f conftest.er1
5055   cat conftest.err >&5
5056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057   (exit $ac_status); } &&
5058          { ac_try='test -z "$ac_c_werror_flag"
5059                          || test ! -s conftest.err'
5060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061   (eval $ac_try) 2>&5
5062   ac_status=$?
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); }; } &&
5065          { ac_try='test -s conftest.$ac_objext'
5066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067   (eval $ac_try) 2>&5
5068   ac_status=$?
5069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070   (exit $ac_status); }; }; then
5071   :
5072 else
5073   echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5075
5076 continue
5077 fi
5078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5079   cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h.  */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h.  */
5085 $ac_declaration
5086 int
5087 main ()
5088 {
5089 exit (42);
5090   ;
5091   return 0;
5092 }
5093 _ACEOF
5094 rm -f conftest.$ac_objext
5095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096   (eval $ac_compile) 2>conftest.er1
5097   ac_status=$?
5098   grep -v '^ *+' conftest.er1 >conftest.err
5099   rm -f conftest.er1
5100   cat conftest.err >&5
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); } &&
5103          { ac_try='test -z "$ac_c_werror_flag"
5104                          || test ! -s conftest.err'
5105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106   (eval $ac_try) 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); }; } &&
5110          { ac_try='test -s conftest.$ac_objext'
5111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112   (eval $ac_try) 2>&5
5113   ac_status=$?
5114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115   (exit $ac_status); }; }; then
5116   break
5117 else
5118   echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5120
5121 fi
5122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5123 done
5124 rm -f conftest*
5125 if test -n "$ac_declaration"; then
5126   echo '#ifdef __cplusplus' >>confdefs.h
5127   echo $ac_declaration      >>confdefs.h
5128   echo '#endif'             >>confdefs.h
5129 fi
5130
5131 else
5132   echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 fi
5136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5137 ac_ext=c
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142
5143 depcc="$CC"   am_compiler_list=
5144
5145 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5146 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5147 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5148   echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5151   # We make a subdir and do the tests there.  Otherwise we can end up
5152   # making bogus files that we don't know about and never remove.  For
5153   # instance it was reported that on HP-UX the gcc test will end up
5154   # making a dummy file named `D' -- because `-MD' means `put the output
5155   # in D'.
5156   mkdir conftest.dir
5157   # Copy depcomp to subdir because otherwise we won't find it if we're
5158   # using a relative directory.
5159   cp "$am_depcomp" conftest.dir
5160   cd conftest.dir
5161   # We will build objects and dependencies in a subdirectory because
5162   # it helps to detect inapplicable dependency modes.  For instance
5163   # both Tru64's cc and ICC support -MD to output dependencies as a
5164   # side effect of compilation, but ICC will put the dependencies in
5165   # the current directory while Tru64 will put them in the object
5166   # directory.
5167   mkdir sub
5168
5169   am_cv_CC_dependencies_compiler_type=none
5170   if test "$am_compiler_list" = ""; then
5171      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5172   fi
5173   for depmode in $am_compiler_list; do
5174     # Setup a source with many dependencies, because some compilers
5175     # like to wrap large dependency lists on column 80 (with \), and
5176     # we should not choose a depcomp mode which is confused by this.
5177     #
5178     # We need to recreate these files for each test, as the compiler may
5179     # overwrite some of them when testing with obscure command lines.
5180     # This happens at least with the AIX C compiler.
5181     : > sub/conftest.c
5182     for i in 1 2 3 4 5 6; do
5183       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5184       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5185       # Solaris 8's {/usr,}/bin/sh.
5186       touch sub/conftst$i.h
5187     done
5188     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5189
5190     case $depmode in
5191     nosideeffect)
5192       # after this tag, mechanisms are not by side-effect, so they'll
5193       # only be used when explicitly requested
5194       if test "x$enable_dependency_tracking" = xyes; then
5195         continue
5196       else
5197         break
5198       fi
5199       ;;
5200     none) break ;;
5201     esac
5202     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5203     # mode.  It turns out that the SunPro C++ compiler does not properly
5204     # handle `-M -o', and we need to detect this.
5205     if depmode=$depmode \
5206        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5207        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5208        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5209          >/dev/null 2>conftest.err &&
5210        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5211        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5212        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5213       # icc doesn't choke on unknown options, it will just issue warnings
5214       # or remarks (even with -Werror).  So we grep stderr for any message
5215       # that says an option was ignored or not supported.
5216       # When given -MP, icc 7.0 and 7.1 complain thusly:
5217       #   icc: Command line warning: ignoring option '-M'; no argument required
5218       # The diagnosis changed in icc 8.0:
5219       #   icc: Command line remark: option '-MP' not supported
5220       if (grep 'ignoring option' conftest.err ||
5221           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5222         am_cv_CC_dependencies_compiler_type=$depmode
5223         break
5224       fi
5225     fi
5226   done
5227
5228   cd ..
5229   rm -rf conftest.dir
5230 else
5231   am_cv_CC_dependencies_compiler_type=none
5232 fi
5233
5234 fi
5235 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5236 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5237 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5238
5239
5240
5241 if
5242   test "x$enable_dependency_tracking" != xno \
5243   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5244   am__fastdepCC_TRUE=
5245   am__fastdepCC_FALSE='#'
5246 else
5247   am__fastdepCC_TRUE='#'
5248   am__fastdepCC_FALSE=
5249 fi
5250
5251
5252 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5253 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5254 if test "${lt_cv_path_SED+set}" = set; then
5255   echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257   # Loop through the user's path and test for sed and gsed.
5258 # Then use that list of sed's as ones to test for truncation.
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264   for lt_ac_prog in sed gsed; do
5265     for ac_exec_ext in '' $ac_executable_extensions; do
5266       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5267         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5268       fi
5269     done
5270   done
5271 done
5272 lt_ac_max=0
5273 lt_ac_count=0
5274 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5275 # along with /bin/sed that truncates output.
5276 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5277   test ! -f $lt_ac_sed && continue
5278   cat /dev/null > conftest.in
5279   lt_ac_count=0
5280   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5281   # Check for GNU sed and select it if it is found.
5282   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5283     lt_cv_path_SED=$lt_ac_sed
5284     break
5285   fi
5286   while true; do
5287     cat conftest.in conftest.in >conftest.tmp
5288     mv conftest.tmp conftest.in
5289     cp conftest.in conftest.nl
5290     echo >>conftest.nl
5291     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5292     cmp -s conftest.out conftest.nl || break
5293     # 10000 chars as input seems more than enough
5294     test $lt_ac_count -gt 10 && break
5295     lt_ac_count=`expr $lt_ac_count + 1`
5296     if test $lt_ac_count -gt $lt_ac_max; then
5297       lt_ac_max=$lt_ac_count
5298       lt_cv_path_SED=$lt_ac_sed
5299     fi
5300   done
5301 done
5302
5303 fi
5304
5305 SED=$lt_cv_path_SED
5306 echo "$as_me:$LINENO: result: $SED" >&5
5307 echo "${ECHO_T}$SED" >&6
5308
5309 echo "$as_me:$LINENO: checking for egrep" >&5
5310 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5311 if test "${ac_cv_prog_egrep+set}" = set; then
5312   echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5315     then ac_cv_prog_egrep='grep -E'
5316     else ac_cv_prog_egrep='egrep'
5317     fi
5318 fi
5319 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5320 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5321  EGREP=$ac_cv_prog_egrep
5322
5323
5324
5325 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5326 if test "${with_gnu_ld+set}" = set; then
5327   withval="$with_gnu_ld"
5328   test "$withval" = no || with_gnu_ld=yes
5329 else
5330   with_gnu_ld=no
5331 fi;
5332 ac_prog=ld
5333 if test "$GCC" = yes; then
5334   # Check if gcc -print-prog-name=ld gives a path.
5335   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5336 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5337   case $host in
5338   *-*-mingw*)
5339     # gcc leaves a trailing carriage return which upsets mingw
5340     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5341   *)
5342     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5343   esac
5344   case $ac_prog in
5345     # Accept absolute paths.
5346     [\\/]* | ?:[\\/]*)
5347       re_direlt='/[^/][^/]*/\.\./'
5348       # Canonicalize the pathname of ld
5349       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5350       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5351         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5352       done
5353       test -z "$LD" && LD="$ac_prog"
5354       ;;
5355   "")
5356     # If it fails, then pretend we aren't using GCC.
5357     ac_prog=ld
5358     ;;
5359   *)
5360     # If it is relative, then search for the first ld in PATH.
5361     with_gnu_ld=unknown
5362     ;;
5363   esac
5364 elif test "$with_gnu_ld" = yes; then
5365   echo "$as_me:$LINENO: checking for GNU ld" >&5
5366 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5367 else
5368   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5369 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5370 fi
5371 if test "${lt_cv_path_LD+set}" = set; then
5372   echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374   if test -z "$LD"; then
5375   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5376   for ac_dir in $PATH; do
5377     IFS="$lt_save_ifs"
5378     test -z "$ac_dir" && ac_dir=.
5379     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5380       lt_cv_path_LD="$ac_dir/$ac_prog"
5381       # Check to see if the program is GNU ld.  I'd rather use --version,
5382       # but apparently some variants of GNU ld only accept -v.
5383       # Break only if it was the GNU/non-GNU ld that we prefer.
5384       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5385       *GNU* | *'with BFD'*)
5386         test "$with_gnu_ld" != no && break
5387         ;;
5388       *)
5389         test "$with_gnu_ld" != yes && break
5390         ;;
5391       esac
5392     fi
5393   done
5394   IFS="$lt_save_ifs"
5395 else
5396   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5397 fi
5398 fi
5399
5400 LD="$lt_cv_path_LD"
5401 if test -n "$LD"; then
5402   echo "$as_me:$LINENO: result: $LD" >&5
5403 echo "${ECHO_T}$LD" >&6
5404 else
5405   echo "$as_me:$LINENO: result: no" >&5
5406 echo "${ECHO_T}no" >&6
5407 fi
5408 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5409 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5410    { (exit 1); exit 1; }; }
5411 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5412 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5413 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5414   echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5417 case `$LD -v 2>&1 </dev/null` in
5418 *GNU* | *'with BFD'*)
5419   lt_cv_prog_gnu_ld=yes
5420   ;;
5421 *)
5422   lt_cv_prog_gnu_ld=no
5423   ;;
5424 esac
5425 fi
5426 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5427 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5428 with_gnu_ld=$lt_cv_prog_gnu_ld
5429
5430
5431 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5432 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5433 if test "${lt_cv_ld_reload_flag+set}" = set; then
5434   echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436   lt_cv_ld_reload_flag='-r'
5437 fi
5438 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5439 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5440 reload_flag=$lt_cv_ld_reload_flag
5441 case $reload_flag in
5442 "" | " "*) ;;
5443 *) reload_flag=" $reload_flag" ;;
5444 esac
5445 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5446 case $host_os in
5447   darwin*)
5448     if test "$GCC" = yes; then
5449       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5450     else
5451       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5452     fi
5453     ;;
5454 esac
5455
5456 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5457 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5458 if test "${lt_cv_path_NM+set}" = set; then
5459   echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461   if test -n "$NM"; then
5462   # Let the user override the test.
5463   lt_cv_path_NM="$NM"
5464 else
5465   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5466   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5467     IFS="$lt_save_ifs"
5468     test -z "$ac_dir" && ac_dir=.
5469     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5470     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5471       # Check to see if the nm accepts a BSD-compat flag.
5472       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5473       #   nm: unknown option "B" ignored
5474       # Tru64's nm complains that /dev/null is an invalid object file
5475       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5476       */dev/null* | *'Invalid file or object type'*)
5477         lt_cv_path_NM="$tmp_nm -B"
5478         break
5479         ;;
5480       *)
5481         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5482         */dev/null*)
5483           lt_cv_path_NM="$tmp_nm -p"
5484           break
5485           ;;
5486         *)
5487           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5488           continue # so that we can try to find one that supports BSD flags
5489           ;;
5490         esac
5491       esac
5492     fi
5493   done
5494   IFS="$lt_save_ifs"
5495   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5496 fi
5497 fi
5498 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5499 echo "${ECHO_T}$lt_cv_path_NM" >&6
5500 NM="$lt_cv_path_NM"
5501
5502 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5503 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5504 LN_S=$as_ln_s
5505 if test "$LN_S" = "ln -s"; then
5506   echo "$as_me:$LINENO: result: yes" >&5
5507 echo "${ECHO_T}yes" >&6
5508 else
5509   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5510 echo "${ECHO_T}no, using $LN_S" >&6
5511 fi
5512
5513 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5514 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5515 if test "${lt_cv_deplibs_check_method+set}" = set; then
5516   echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518   lt_cv_file_magic_cmd='$MAGIC_CMD'
5519 lt_cv_file_magic_test_file=
5520 lt_cv_deplibs_check_method='unknown'
5521 # Need to set the preceding variable on all platforms that support
5522 # interlibrary dependencies.
5523 # 'none' -- dependencies not supported.
5524 # `unknown' -- same as none, but documents that we really don't know.
5525 # 'pass_all' -- all dependencies passed with no checks.
5526 # 'test_compile' -- check by making test program.
5527 # 'file_magic [[regex]]' -- check by looking for files in library path
5528 # which responds to the $file_magic_cmd with a given extended regex.
5529 # If you have `file' or equivalent on your system and you're not sure
5530 # whether `pass_all' will *always* work, you probably want this one.
5531
5532 case $host_os in
5533 aix4* | aix5*)
5534   lt_cv_deplibs_check_method=pass_all
5535   ;;
5536
5537 beos*)
5538   lt_cv_deplibs_check_method=pass_all
5539   ;;
5540
5541 bsdi[45]*)
5542   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5543   lt_cv_file_magic_cmd='/usr/bin/file -L'
5544   lt_cv_file_magic_test_file=/shlib/libc.so
5545   ;;
5546
5547 cygwin*)
5548   # func_win32_libid is a shell function defined in ltmain.sh
5549   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5550   lt_cv_file_magic_cmd='func_win32_libid'
5551   ;;
5552
5553 mingw* | pw32*)
5554   # Base MSYS/MinGW do not provide the 'file' command needed by
5555   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5556   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5557   lt_cv_file_magic_cmd='$OBJDUMP -f'
5558   ;;
5559
5560 darwin* | rhapsody*)
5561   lt_cv_deplibs_check_method=pass_all
5562   ;;
5563
5564 freebsd* | kfreebsd*-gnu | dragonfly*)
5565   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5566     case $host_cpu in
5567     i*86 )
5568       # Not sure whether the presence of OpenBSD here was a mistake.
5569       # Let's accept both of them until this is cleared up.
5570       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5571       lt_cv_file_magic_cmd=/usr/bin/file
5572       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5573       ;;
5574     esac
5575   else
5576     lt_cv_deplibs_check_method=pass_all
5577   fi
5578   ;;
5579
5580 gnu*)
5581   lt_cv_deplibs_check_method=pass_all
5582   ;;
5583
5584 hpux10.20* | hpux11*)
5585   lt_cv_file_magic_cmd=/usr/bin/file
5586   case $host_cpu in
5587   ia64*)
5588     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5589     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5590     ;;
5591   hppa*64*)
5592     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5593     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5594     ;;
5595   *)
5596     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5597     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5598     ;;
5599   esac
5600   ;;
5601
5602 irix5* | irix6* | nonstopux*)
5603   case $LD in
5604   *-32|*"-32 ") libmagic=32-bit;;
5605   *-n32|*"-n32 ") libmagic=N32;;
5606   *-64|*"-64 ") libmagic=64-bit;;
5607   *) libmagic=never-match;;
5608   esac
5609   lt_cv_deplibs_check_method=pass_all
5610   ;;
5611
5612 # This must be Linux ELF.
5613 linux*)
5614   lt_cv_deplibs_check_method=pass_all
5615   ;;
5616
5617 netbsd*)
5618   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5619     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5620   else
5621     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5622   fi
5623   ;;
5624
5625 newos6*)
5626   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5627   lt_cv_file_magic_cmd=/usr/bin/file
5628   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5629   ;;
5630
5631 nto-qnx*)
5632   lt_cv_deplibs_check_method=unknown
5633   ;;
5634
5635 openbsd*)
5636   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5637     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5638   else
5639     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5640   fi
5641   ;;
5642
5643 osf3* | osf4* | osf5*)
5644   lt_cv_deplibs_check_method=pass_all
5645   ;;
5646
5647 sco3.2v5*)
5648   lt_cv_deplibs_check_method=pass_all
5649   ;;
5650
5651 solaris*)
5652   lt_cv_deplibs_check_method=pass_all
5653   ;;
5654
5655 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5656   case $host_vendor in
5657   motorola)
5658     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5659     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5660     ;;
5661   ncr)
5662     lt_cv_deplibs_check_method=pass_all
5663     ;;
5664   sequent)
5665     lt_cv_file_magic_cmd='/bin/file'
5666     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5667     ;;
5668   sni)
5669     lt_cv_file_magic_cmd='/bin/file'
5670     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5671     lt_cv_file_magic_test_file=/lib/libc.so
5672     ;;
5673   siemens)
5674     lt_cv_deplibs_check_method=pass_all
5675     ;;
5676   esac
5677   ;;
5678
5679 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5680   lt_cv_deplibs_check_method=pass_all
5681   ;;
5682 esac
5683
5684 fi
5685 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5686 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5687 file_magic_cmd=$lt_cv_file_magic_cmd
5688 deplibs_check_method=$lt_cv_deplibs_check_method
5689 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5690
5691
5692
5693
5694 # If no C compiler was specified, use CC.
5695 LTCC=${LTCC-"$CC"}
5696
5697 # Allow CC to be a program name with arguments.
5698 compiler=$CC
5699
5700
5701 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5702 if test "${enable_libtool_lock+set}" = set; then
5703   enableval="$enable_libtool_lock"
5704
5705 fi;
5706 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5707
5708 # Some flags need to be propagated to the compiler or linker for good
5709 # libtool support.
5710 case $host in
5711 ia64-*-hpux*)
5712   # Find out which ABI we are using.
5713   echo 'int i;' > conftest.$ac_ext
5714   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715   (eval $ac_compile) 2>&5
5716   ac_status=$?
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); }; then
5719     case `/usr/bin/file conftest.$ac_objext` in
5720     *ELF-32*)
5721       HPUX_IA64_MODE="32"
5722       ;;
5723     *ELF-64*)
5724       HPUX_IA64_MODE="64"
5725       ;;
5726     esac
5727   fi
5728   rm -rf conftest*
5729   ;;
5730 *-*-irix6*)
5731   # Find out which ABI we are using.
5732   echo '#line 5732 "configure"' > conftest.$ac_ext
5733   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5734   (eval $ac_compile) 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); }; then
5738    if test "$lt_cv_prog_gnu_ld" = yes; then
5739     case `/usr/bin/file conftest.$ac_objext` in
5740     *32-bit*)
5741       LD="${LD-ld} -melf32bsmip"
5742       ;;
5743     *N32*)
5744       LD="${LD-ld} -melf32bmipn32"
5745       ;;
5746     *64-bit*)
5747       LD="${LD-ld} -melf64bmip"
5748       ;;
5749     esac
5750    else
5751     case `/usr/bin/file conftest.$ac_objext` in
5752     *32-bit*)
5753       LD="${LD-ld} -32"
5754       ;;
5755     *N32*)
5756       LD="${LD-ld} -n32"
5757       ;;
5758     *64-bit*)
5759       LD="${LD-ld} -64"
5760       ;;
5761     esac
5762    fi
5763   fi
5764   rm -rf conftest*
5765   ;;
5766
5767 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5768   # Find out which ABI we are using.
5769   echo 'int i;' > conftest.$ac_ext
5770   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771   (eval $ac_compile) 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); }; then
5775     case `/usr/bin/file conftest.o` in
5776     *32-bit*)
5777       case $host in
5778         x86_64-*linux*)
5779           LD="${LD-ld} -m elf_i386"
5780           ;;
5781         ppc64-*linux*|powerpc64-*linux*)
5782           LD="${LD-ld} -m elf32ppclinux"
5783           ;;
5784         s390x-*linux*)
5785           LD="${LD-ld} -m elf_s390"
5786           ;;
5787         sparc64-*linux*)
5788           LD="${LD-ld} -m elf32_sparc"
5789           ;;
5790       esac
5791       ;;
5792     *64-bit*)
5793       case $host in
5794         x86_64-*linux*)
5795           LD="${LD-ld} -m elf_x86_64"
5796           ;;
5797         ppc*-*linux*|powerpc*-*linux*)
5798           LD="${LD-ld} -m elf64ppc"
5799           ;;
5800         s390*-*linux*)
5801           LD="${LD-ld} -m elf64_s390"
5802           ;;
5803         sparc*-*linux*)
5804           LD="${LD-ld} -m elf64_sparc"
5805           ;;
5806       esac
5807       ;;
5808     esac
5809   fi
5810   rm -rf conftest*
5811   ;;
5812
5813 *-*-sco3.2v5*)
5814   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5815   SAVE_CFLAGS="$CFLAGS"
5816   CFLAGS="$CFLAGS -belf"
5817   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5818 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5819 if test "${lt_cv_cc_needs_belf+set}" = set; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   ac_ext=c
5823 ac_cpp='$CPP $CPPFLAGS'
5824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5827
5828      cat >conftest.$ac_ext <<_ACEOF
5829 /* confdefs.h.  */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h.  */
5834
5835 int
5836 main ()
5837 {
5838
5839   ;
5840   return 0;
5841 }
5842 _ACEOF
5843 rm -f conftest.$ac_objext conftest$ac_exeext
5844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5845   (eval $ac_link) 2>conftest.er1
5846   ac_status=$?
5847   grep -v '^ *+' conftest.er1 >conftest.err
5848   rm -f conftest.er1
5849   cat conftest.err >&5
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); } &&
5852          { ac_try='test -z "$ac_c_werror_flag"
5853                          || test ! -s conftest.err'
5854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855   (eval $ac_try) 2>&5
5856   ac_status=$?
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); }; } &&
5859          { ac_try='test -s conftest$ac_exeext'
5860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861   (eval $ac_try) 2>&5
5862   ac_status=$?
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); }; }; then
5865   lt_cv_cc_needs_belf=yes
5866 else
5867   echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5869
5870 lt_cv_cc_needs_belf=no
5871 fi
5872 rm -f conftest.err conftest.$ac_objext \
5873       conftest$ac_exeext conftest.$ac_ext
5874      ac_ext=c
5875 ac_cpp='$CPP $CPPFLAGS'
5876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5879
5880 fi
5881 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5882 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5883   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5884     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5885     CFLAGS="$SAVE_CFLAGS"
5886   fi
5887   ;;
5888 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5889   if test -n "$ac_tool_prefix"; then
5890   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5891 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5892 echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5894 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5895   echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897   if test -n "$DLLTOOL"; then
5898   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5899 else
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903   IFS=$as_save_IFS
5904   test -z "$as_dir" && as_dir=.
5905   for ac_exec_ext in '' $ac_executable_extensions; do
5906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909     break 2
5910   fi
5911 done
5912 done
5913
5914 fi
5915 fi
5916 DLLTOOL=$ac_cv_prog_DLLTOOL
5917 if test -n "$DLLTOOL"; then
5918   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5919 echo "${ECHO_T}$DLLTOOL" >&6
5920 else
5921   echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6
5923 fi
5924
5925 fi
5926 if test -z "$ac_cv_prog_DLLTOOL"; then
5927   ac_ct_DLLTOOL=$DLLTOOL
5928   # Extract the first word of "dlltool", so it can be a program name with args.
5929 set dummy dlltool; ac_word=$2
5930 echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5932 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5933   echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935   if test -n "$ac_ct_DLLTOOL"; then
5936   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5937 else
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH
5940 do
5941   IFS=$as_save_IFS
5942   test -z "$as_dir" && as_dir=.
5943   for ac_exec_ext in '' $ac_executable_extensions; do
5944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5947     break 2
5948   fi
5949 done
5950 done
5951
5952   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5953 fi
5954 fi
5955 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5956 if test -n "$ac_ct_DLLTOOL"; then
5957   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5958 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5959 else
5960   echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6
5962 fi
5963
5964   DLLTOOL=$ac_ct_DLLTOOL
5965 else
5966   DLLTOOL="$ac_cv_prog_DLLTOOL"
5967 fi
5968
5969   if test -n "$ac_tool_prefix"; then
5970   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5971 set dummy ${ac_tool_prefix}as; ac_word=$2
5972 echo "$as_me:$LINENO: checking for $ac_word" >&5
5973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5974 if test "${ac_cv_prog_AS+set}" = set; then
5975   echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977   if test -n "$AS"; then
5978   ac_cv_prog_AS="$AS" # Let the user override the test.
5979 else
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5982 do
5983   IFS=$as_save_IFS
5984   test -z "$as_dir" && as_dir=.
5985   for ac_exec_ext in '' $ac_executable_extensions; do
5986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5987     ac_cv_prog_AS="${ac_tool_prefix}as"
5988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989     break 2
5990   fi
5991 done
5992 done
5993
5994 fi
5995 fi
5996 AS=$ac_cv_prog_AS
5997 if test -n "$AS"; then
5998   echo "$as_me:$LINENO: result: $AS" >&5
5999 echo "${ECHO_T}$AS" >&6
6000 else
6001   echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6
6003 fi
6004
6005 fi
6006 if test -z "$ac_cv_prog_AS"; then
6007   ac_ct_AS=$AS
6008   # Extract the first word of "as", so it can be a program name with args.
6009 set dummy as; ac_word=$2
6010 echo "$as_me:$LINENO: checking for $ac_word" >&5
6011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6012 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6013   echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015   if test -n "$ac_ct_AS"; then
6016   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6020 do
6021   IFS=$as_save_IFS
6022   test -z "$as_dir" && as_dir=.
6023   for ac_exec_ext in '' $ac_executable_extensions; do
6024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025     ac_cv_prog_ac_ct_AS="as"
6026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027     break 2
6028   fi
6029 done
6030 done
6031
6032   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6033 fi
6034 fi
6035 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6036 if test -n "$ac_ct_AS"; then
6037   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6038 echo "${ECHO_T}$ac_ct_AS" >&6
6039 else
6040   echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6
6042 fi
6043
6044   AS=$ac_ct_AS
6045 else
6046   AS="$ac_cv_prog_AS"
6047 fi
6048
6049   if test -n "$ac_tool_prefix"; then
6050   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6051 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6052 echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6054 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   if test -n "$OBJDUMP"; then
6058   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063   IFS=$as_save_IFS
6064   test -z "$as_dir" && as_dir=.
6065   for ac_exec_ext in '' $ac_executable_extensions; do
6066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069     break 2
6070   fi
6071 done
6072 done
6073
6074 fi
6075 fi
6076 OBJDUMP=$ac_cv_prog_OBJDUMP
6077 if test -n "$OBJDUMP"; then
6078   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6079 echo "${ECHO_T}$OBJDUMP" >&6
6080 else
6081   echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6
6083 fi
6084
6085 fi
6086 if test -z "$ac_cv_prog_OBJDUMP"; then
6087   ac_ct_OBJDUMP=$OBJDUMP
6088   # Extract the first word of "objdump", so it can be a program name with args.
6089 set dummy objdump; ac_word=$2
6090 echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6092 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6093   echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095   if test -n "$ac_ct_OBJDUMP"; then
6096   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101   IFS=$as_save_IFS
6102   test -z "$as_dir" && as_dir=.
6103   for ac_exec_ext in '' $ac_executable_extensions; do
6104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107     break 2
6108   fi
6109 done
6110 done
6111
6112   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6113 fi
6114 fi
6115 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6116 if test -n "$ac_ct_OBJDUMP"; then
6117   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6118 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6119 else
6120   echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6
6122 fi
6123
6124   OBJDUMP=$ac_ct_OBJDUMP
6125 else
6126   OBJDUMP="$ac_cv_prog_OBJDUMP"
6127 fi
6128
6129   ;;
6130
6131 esac
6132
6133 need_locks="$enable_libtool_lock"
6134
6135
6136 ac_ext=c
6137 ac_cpp='$CPP $CPPFLAGS'
6138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6142 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6143 # On Suns, sometimes $CPP names a directory.
6144 if test -n "$CPP" && test -d "$CPP"; then
6145   CPP=
6146 fi
6147 if test -z "$CPP"; then
6148   if test "${ac_cv_prog_CPP+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151       # Double quotes because CPP needs to be expanded
6152     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6153     do
6154       ac_preproc_ok=false
6155 for ac_c_preproc_warn_flag in '' yes
6156 do
6157   # Use a header file that comes with gcc, so configuring glibc
6158   # with a fresh cross-compiler works.
6159   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6160   # <limits.h> exists even on freestanding compilers.
6161   # On the NeXT, cc -E runs the code through the compiler's parser,
6162   # not just through cpp. "Syntax error" is here to catch this case.
6163   cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h.  */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h.  */
6169 #ifdef __STDC__
6170 # include <limits.h>
6171 #else
6172 # include <assert.h>
6173 #endif
6174                      Syntax error
6175 _ACEOF
6176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6177   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6178   ac_status=$?
6179   grep -v '^ *+' conftest.er1 >conftest.err
6180   rm -f conftest.er1
6181   cat conftest.err >&5
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); } >/dev/null; then
6184   if test -s conftest.err; then
6185     ac_cpp_err=$ac_c_preproc_warn_flag
6186     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6187   else
6188     ac_cpp_err=
6189   fi
6190 else
6191   ac_cpp_err=yes
6192 fi
6193 if test -z "$ac_cpp_err"; then
6194   :
6195 else
6196   echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6198
6199   # Broken: fails on valid input.
6200 continue
6201 fi
6202 rm -f conftest.err conftest.$ac_ext
6203
6204   # OK, works on sane cases.  Now check whether non-existent headers
6205   # can be detected and how.
6206   cat >conftest.$ac_ext <<_ACEOF
6207 /* confdefs.h.  */
6208 _ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h.  */
6212 #include <ac_nonexistent.h>
6213 _ACEOF
6214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6215   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6216   ac_status=$?
6217   grep -v '^ *+' conftest.er1 >conftest.err
6218   rm -f conftest.er1
6219   cat conftest.err >&5
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); } >/dev/null; then
6222   if test -s conftest.err; then
6223     ac_cpp_err=$ac_c_preproc_warn_flag
6224     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6225   else
6226     ac_cpp_err=
6227   fi
6228 else
6229   ac_cpp_err=yes
6230 fi
6231 if test -z "$ac_cpp_err"; then
6232   # Broken: success on invalid input.
6233 continue
6234 else
6235   echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6237
6238   # Passes both tests.
6239 ac_preproc_ok=:
6240 break
6241 fi
6242 rm -f conftest.err conftest.$ac_ext
6243
6244 done
6245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6246 rm -f conftest.err conftest.$ac_ext
6247 if $ac_preproc_ok; then
6248   break
6249 fi
6250
6251     done
6252     ac_cv_prog_CPP=$CPP
6253
6254 fi
6255   CPP=$ac_cv_prog_CPP
6256 else
6257   ac_cv_prog_CPP=$CPP
6258 fi
6259 echo "$as_me:$LINENO: result: $CPP" >&5
6260 echo "${ECHO_T}$CPP" >&6
6261 ac_preproc_ok=false
6262 for ac_c_preproc_warn_flag in '' yes
6263 do
6264   # Use a header file that comes with gcc, so configuring glibc
6265   # with a fresh cross-compiler works.
6266   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6267   # <limits.h> exists even on freestanding compilers.
6268   # On the NeXT, cc -E runs the code through the compiler's parser,
6269   # not just through cpp. "Syntax error" is here to catch this case.
6270   cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h.  */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h.  */
6276 #ifdef __STDC__
6277 # include <limits.h>
6278 #else
6279 # include <assert.h>
6280 #endif
6281                      Syntax error
6282 _ACEOF
6283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6284   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6285   ac_status=$?
6286   grep -v '^ *+' conftest.er1 >conftest.err
6287   rm -f conftest.er1
6288   cat conftest.err >&5
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); } >/dev/null; then
6291   if test -s conftest.err; then
6292     ac_cpp_err=$ac_c_preproc_warn_flag
6293     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6294   else
6295     ac_cpp_err=
6296   fi
6297 else
6298   ac_cpp_err=yes
6299 fi
6300 if test -z "$ac_cpp_err"; then
6301   :
6302 else
6303   echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6305
6306   # Broken: fails on valid input.
6307 continue
6308 fi
6309 rm -f conftest.err conftest.$ac_ext
6310
6311   # OK, works on sane cases.  Now check whether non-existent headers
6312   # can be detected and how.
6313   cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h.  */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h.  */
6319 #include <ac_nonexistent.h>
6320 _ACEOF
6321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6323   ac_status=$?
6324   grep -v '^ *+' conftest.er1 >conftest.err
6325   rm -f conftest.er1
6326   cat conftest.err >&5
6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); } >/dev/null; then
6329   if test -s conftest.err; then
6330     ac_cpp_err=$ac_c_preproc_warn_flag
6331     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6332   else
6333     ac_cpp_err=
6334   fi
6335 else
6336   ac_cpp_err=yes
6337 fi
6338 if test -z "$ac_cpp_err"; then
6339   # Broken: success on invalid input.
6340 continue
6341 else
6342   echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6344
6345   # Passes both tests.
6346 ac_preproc_ok=:
6347 break
6348 fi
6349 rm -f conftest.err conftest.$ac_ext
6350
6351 done
6352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6353 rm -f conftest.err conftest.$ac_ext
6354 if $ac_preproc_ok; then
6355   :
6356 else
6357   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6358 See \`config.log' for more details." >&5
6359 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6360 See \`config.log' for more details." >&2;}
6361    { (exit 1); exit 1; }; }
6362 fi
6363
6364 ac_ext=c
6365 ac_cpp='$CPP $CPPFLAGS'
6366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6369
6370
6371 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6372 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6373 if test "${ac_cv_header_stdc+set}" = set; then
6374   echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376   cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h.  */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h.  */
6382 #include <stdlib.h>
6383 #include <stdarg.h>
6384 #include <string.h>
6385 #include <float.h>
6386
6387 int
6388 main ()
6389 {
6390
6391   ;
6392   return 0;
6393 }
6394 _ACEOF
6395 rm -f conftest.$ac_objext
6396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397   (eval $ac_compile) 2>conftest.er1
6398   ac_status=$?
6399   grep -v '^ *+' conftest.er1 >conftest.err
6400   rm -f conftest.er1
6401   cat conftest.err >&5
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); } &&
6404          { ac_try='test -z "$ac_c_werror_flag"
6405                          || test ! -s conftest.err'
6406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407   (eval $ac_try) 2>&5
6408   ac_status=$?
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); }; } &&
6411          { ac_try='test -s conftest.$ac_objext'
6412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413   (eval $ac_try) 2>&5
6414   ac_status=$?
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); }; }; then
6417   ac_cv_header_stdc=yes
6418 else
6419   echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6421
6422 ac_cv_header_stdc=no
6423 fi
6424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6425
6426 if test $ac_cv_header_stdc = yes; then
6427   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6428   cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h.  */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h.  */
6434 #include <string.h>
6435
6436 _ACEOF
6437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6438   $EGREP "memchr" >/dev/null 2>&1; then
6439   :
6440 else
6441   ac_cv_header_stdc=no
6442 fi
6443 rm -f conftest*
6444
6445 fi
6446
6447 if test $ac_cv_header_stdc = yes; then
6448   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6449   cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h.  */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h.  */
6455 #include <stdlib.h>
6456
6457 _ACEOF
6458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6459   $EGREP "free" >/dev/null 2>&1; then
6460   :
6461 else
6462   ac_cv_header_stdc=no
6463 fi
6464 rm -f conftest*
6465
6466 fi
6467
6468 if test $ac_cv_header_stdc = yes; then
6469   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6470   if test "$cross_compiling" = yes; then
6471   :
6472 else
6473   cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h.  */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h.  */
6479 #include <ctype.h>
6480 #if ((' ' & 0x0FF) == 0x020)
6481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6483 #else
6484 # define ISLOWER(c) \
6485                    (('a' <= (c) && (c) <= 'i') \
6486                      || ('j' <= (c) && (c) <= 'r') \
6487                      || ('s' <= (c) && (c) <= 'z'))
6488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6489 #endif
6490
6491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6492 int
6493 main ()
6494 {
6495   int i;
6496   for (i = 0; i < 256; i++)
6497     if (XOR (islower (i), ISLOWER (i))
6498         || toupper (i) != TOUPPER (i))
6499       exit(2);
6500   exit (0);
6501 }
6502 _ACEOF
6503 rm -f conftest$ac_exeext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505   (eval $ac_link) 2>&5
6506   ac_status=$?
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510   (eval $ac_try) 2>&5
6511   ac_status=$?
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); }; }; then
6514   :
6515 else
6516   echo "$as_me: program exited with status $ac_status" >&5
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6519
6520 ( exit $ac_status )
6521 ac_cv_header_stdc=no
6522 fi
6523 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6524 fi
6525 fi
6526 fi
6527 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6528 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6529 if test $ac_cv_header_stdc = yes; then
6530
6531 cat >>confdefs.h <<\_ACEOF
6532 #define STDC_HEADERS 1
6533 _ACEOF
6534
6535 fi
6536
6537 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6548                   inttypes.h stdint.h unistd.h
6549 do
6550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6551 echo "$as_me:$LINENO: checking for $ac_header" >&5
6552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6554   echo $ECHO_N "(cached) $ECHO_C" >&6
6555 else
6556   cat >conftest.$ac_ext <<_ACEOF
6557 /* confdefs.h.  */
6558 _ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h.  */
6562 $ac_includes_default
6563
6564 #include <$ac_header>
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568   (eval $ac_compile) 2>conftest.er1
6569   ac_status=$?
6570   grep -v '^ *+' conftest.er1 >conftest.err
6571   rm -f conftest.er1
6572   cat conftest.err >&5
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); } &&
6575          { ac_try='test -z "$ac_c_werror_flag"
6576                          || test ! -s conftest.err'
6577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578   (eval $ac_try) 2>&5
6579   ac_status=$?
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); }; } &&
6582          { ac_try='test -s conftest.$ac_objext'
6583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584   (eval $ac_try) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); }; }; then
6588   eval "$as_ac_Header=yes"
6589 else
6590   echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 eval "$as_ac_Header=no"
6594 fi
6595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6596 fi
6597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6600   cat >>confdefs.h <<_ACEOF
6601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6602 _ACEOF
6603
6604 fi
6605
6606 done
6607
6608
6609
6610 for ac_header in dlfcn.h
6611 do
6612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6614   echo "$as_me:$LINENO: checking for $ac_header" >&5
6615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 fi
6619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6621 else
6622   # Is the header compilable?
6623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h.  */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h.  */
6631 $ac_includes_default
6632 #include <$ac_header>
6633 _ACEOF
6634 rm -f conftest.$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636   (eval $ac_compile) 2>conftest.er1
6637   ac_status=$?
6638   grep -v '^ *+' conftest.er1 >conftest.err
6639   rm -f conftest.er1
6640   cat conftest.err >&5
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); } &&
6643          { ac_try='test -z "$ac_c_werror_flag"
6644                          || test ! -s conftest.err'
6645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646   (eval $ac_try) 2>&5
6647   ac_status=$?
6648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649   (exit $ac_status); }; } &&
6650          { ac_try='test -s conftest.$ac_objext'
6651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652   (eval $ac_try) 2>&5
6653   ac_status=$?
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); }; }; then
6656   ac_header_compiler=yes
6657 else
6658   echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6660
6661 ac_header_compiler=no
6662 fi
6663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6665 echo "${ECHO_T}$ac_header_compiler" >&6
6666
6667 # Is the header present?
6668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6670 cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h.  */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h.  */
6676 #include <$ac_header>
6677 _ACEOF
6678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6679   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6680   ac_status=$?
6681   grep -v '^ *+' conftest.er1 >conftest.err
6682   rm -f conftest.er1
6683   cat conftest.err >&5
6684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); } >/dev/null; then
6686   if test -s conftest.err; then
6687     ac_cpp_err=$ac_c_preproc_warn_flag
6688     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6689   else
6690     ac_cpp_err=
6691   fi
6692 else
6693   ac_cpp_err=yes
6694 fi
6695 if test -z "$ac_cpp_err"; then
6696   ac_header_preproc=yes
6697 else
6698   echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6700
6701   ac_header_preproc=no
6702 fi
6703 rm -f conftest.err conftest.$ac_ext
6704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6705 echo "${ECHO_T}$ac_header_preproc" >&6
6706
6707 # So?  What about this header?
6708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6709   yes:no: )
6710     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6714     ac_header_preproc=yes
6715     ;;
6716   no:yes:* )
6717     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6719     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6720 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6721     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6723     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6724 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6727     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6729     (
6730       cat <<\_ASBOX
6731 ## --------------------------------------------- ##
6732 ## Report this to <http://www.openldap.org/its/> ##
6733 ## --------------------------------------------- ##
6734 _ASBOX
6735     ) |
6736       sed "s/^/$as_me: WARNING:     /" >&2
6737     ;;
6738 esac
6739 echo "$as_me:$LINENO: checking for $ac_header" >&5
6740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6742   echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744   eval "$as_ac_Header=\$ac_header_preproc"
6745 fi
6746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6748
6749 fi
6750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6751   cat >>confdefs.h <<_ACEOF
6752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6753 _ACEOF
6754
6755 fi
6756
6757 done
6758
6759
6760 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6761
6762 # find the maximum length of command line arguments
6763 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6764 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6765 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6766   echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768     i=0
6769   teststring="ABCD"
6770
6771   case $build_os in
6772   msdosdjgpp*)
6773     # On DJGPP, this test can blow up pretty badly due to problems in libc
6774     # (any single argument exceeding 2000 bytes causes a buffer overrun
6775     # during glob expansion).  Even if it were fixed, the result of this
6776     # check would be larger than it should be.
6777     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6778     ;;
6779
6780   gnu*)
6781     # Under GNU Hurd, this test is not required because there is
6782     # no limit to the length of command line arguments.
6783     # Libtool will interpret -1 as no limit whatsoever
6784     lt_cv_sys_max_cmd_len=-1;
6785     ;;
6786
6787   cygwin* | mingw*)
6788     # On Win9x/ME, this test blows up -- it succeeds, but takes
6789     # about 5 minutes as the teststring grows exponentially.
6790     # Worse, since 9x/ME are not pre-emptively multitasking,
6791     # you end up with a "frozen" computer, even though with patience
6792     # the test eventually succeeds (with a max line length of 256k).
6793     # Instead, let's just punt: use the minimum linelength reported by
6794     # all of the supported platforms: 8192 (on NT/2K/XP).
6795     lt_cv_sys_max_cmd_len=8192;
6796     ;;
6797
6798   amigaos*)
6799     # On AmigaOS with pdksh, this test takes hours, literally.
6800     # So we just punt and use a minimum line length of 8192.
6801     lt_cv_sys_max_cmd_len=8192;
6802     ;;
6803
6804   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6805     # This has been around since 386BSD, at least.  Likely further.
6806     if test -x /sbin/sysctl; then
6807       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6808     elif test -x /usr/sbin/sysctl; then
6809       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6810     else
6811       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6812     fi
6813     # And add a safety zone
6814     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6815     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6816     ;;
6817   osf*)
6818     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6819     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6820     # nice to cause kernel panics so lets avoid the loop below.
6821     # First set a reasonable default.
6822     lt_cv_sys_max_cmd_len=16384
6823     #
6824     if test -x /sbin/sysconfig; then
6825       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6826         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6827       esac
6828     fi
6829     ;;
6830   *)
6831     # If test is not a shell built-in, we'll probably end up computing a
6832     # maximum length that is only half of the actual maximum length, but
6833     # we can't tell.
6834     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6835     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6836                = "XX$teststring") >/dev/null 2>&1 &&
6837             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6838             lt_cv_sys_max_cmd_len=$new_result &&
6839             test $i != 17 # 1/2 MB should be enough
6840     do
6841       i=`expr $i + 1`
6842       teststring=$teststring$teststring
6843     done
6844     teststring=
6845     # Add a significant safety factor because C++ compilers can tack on massive
6846     # amounts of additional arguments before passing them to the linker.
6847     # It appears as though 1/2 is a usable value.
6848     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6849     ;;
6850   esac
6851
6852 fi
6853
6854 if test -n $lt_cv_sys_max_cmd_len ; then
6855   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6856 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6857 else
6858   echo "$as_me:$LINENO: result: none" >&5
6859 echo "${ECHO_T}none" >&6
6860 fi
6861
6862
6863
6864
6865 # Check for command to grab the raw symbol name followed by C symbol from nm.
6866 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6867 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6868 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6869   echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871
6872 # These are sane defaults that work on at least a few old systems.
6873 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6874
6875 # Character class describing NM global symbol codes.
6876 symcode='[BCDEGRST]'
6877
6878 # Regexp to match symbols that can be accessed directly from C.
6879 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6880
6881 # Transform an extracted symbol line into a proper C declaration
6882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6883
6884 # Transform an extracted symbol line into symbol name and symbol address
6885 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6886
6887 # Define system-specific variables.
6888 case $host_os in
6889 aix*)
6890   symcode='[BCDT]'
6891   ;;
6892 cygwin* | mingw* | pw32*)
6893   symcode='[ABCDGISTW]'
6894   ;;
6895 hpux*) # Its linker distinguishes data from code symbols
6896   if test "$host_cpu" = ia64; then
6897     symcode='[ABCDEGRST]'
6898   fi
6899   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6900   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6901   ;;
6902 linux*)
6903   if test "$host_cpu" = ia64; then
6904     symcode='[ABCDGIRSTW]'
6905     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6906     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6907   fi
6908   ;;
6909 irix* | nonstopux*)
6910   symcode='[BCDEGRST]'
6911   ;;
6912 osf*)
6913   symcode='[BCDEGQRST]'
6914   ;;
6915 solaris* | sysv5*)
6916   symcode='[BDRT]'
6917   ;;
6918 sysv4)
6919   symcode='[DFNSTU]'
6920   ;;
6921 esac
6922
6923 # Handle CRLF in mingw tool chain
6924 opt_cr=
6925 case $build_os in
6926 mingw*)
6927   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6928   ;;
6929 esac
6930
6931 # If we're using GNU nm, then use its standard symbol codes.
6932 case `$NM -V 2>&1` in
6933 *GNU* | *'with BFD'*)
6934   symcode='[ABCDGIRSTW]' ;;
6935 esac
6936
6937 # Try without a prefix undercore, then with it.
6938 for ac_symprfx in "" "_"; do
6939
6940   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6941   symxfrm="\\1 $ac_symprfx\\2 \\2"
6942
6943   # Write the raw and C identifiers.
6944   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6945
6946   # Check to see that the pipe works correctly.
6947   pipe_works=no
6948
6949   rm -f conftest*
6950   cat > conftest.$ac_ext <<EOF
6951 #ifdef __cplusplus
6952 extern "C" {
6953 #endif
6954 char nm_test_var;
6955 void nm_test_func(){}
6956 #ifdef __cplusplus
6957 }
6958 #endif
6959 int main(){nm_test_var='a';nm_test_func();return(0);}
6960 EOF
6961
6962   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963   (eval $ac_compile) 2>&5
6964   ac_status=$?
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); }; then
6967     # Now try to grab the symbols.
6968     nlist=conftest.nm
6969     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6970   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6971   ac_status=$?
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); } && test -s "$nlist"; then
6974       # Try sorting and uniquifying the output.
6975       if sort "$nlist" | uniq > "$nlist"T; then
6976         mv -f "$nlist"T "$nlist"
6977       else
6978         rm -f "$nlist"T
6979       fi
6980
6981       # Make sure that we snagged all the symbols we need.
6982       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6983         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6984           cat <<EOF > conftest.$ac_ext
6985 #ifdef __cplusplus
6986 extern "C" {
6987 #endif
6988
6989 EOF
6990           # Now generate the symbol file.
6991           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6992
6993           cat <<EOF >> conftest.$ac_ext
6994 #if defined (__STDC__) && __STDC__
6995 # define lt_ptr_t void *
6996 #else
6997 # define lt_ptr_t char *
6998 # define const
6999 #endif
7000
7001 /* The mapping between symbol names and symbols. */
7002 const struct {
7003   const char *name;
7004   lt_ptr_t address;
7005 }
7006 lt_preloaded_symbols[] =
7007 {
7008 EOF
7009           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7010           cat <<\EOF >> conftest.$ac_ext
7011   {0, (lt_ptr_t) 0}
7012 };
7013
7014 #ifdef __cplusplus
7015 }
7016 #endif
7017 EOF
7018           # Now try linking the two files.
7019           mv conftest.$ac_objext conftstm.$ac_objext
7020           lt_save_LIBS="$LIBS"
7021           lt_save_CFLAGS="$CFLAGS"
7022           LIBS="conftstm.$ac_objext"
7023           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7024           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7025   (eval $ac_link) 2>&5
7026   ac_status=$?
7027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7029             pipe_works=yes
7030           fi
7031           LIBS="$lt_save_LIBS"
7032           CFLAGS="$lt_save_CFLAGS"
7033         else
7034           echo "cannot find nm_test_func in $nlist" >&5
7035         fi
7036       else
7037         echo "cannot find nm_test_var in $nlist" >&5
7038       fi
7039     else
7040       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7041     fi
7042   else
7043     echo "$progname: failed program was:" >&5
7044     cat conftest.$ac_ext >&5
7045   fi
7046   rm -f conftest* conftst*
7047
7048   # Do not use the global_symbol_pipe unless it works.
7049   if test "$pipe_works" = yes; then
7050     break
7051   else
7052     lt_cv_sys_global_symbol_pipe=
7053   fi
7054 done
7055
7056 fi
7057
7058 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7059   lt_cv_sys_global_symbol_to_cdecl=
7060 fi
7061 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7062   echo "$as_me:$LINENO: result: failed" >&5
7063 echo "${ECHO_T}failed" >&6
7064 else
7065   echo "$as_me:$LINENO: result: ok" >&5
7066 echo "${ECHO_T}ok" >&6
7067 fi
7068
7069 echo "$as_me:$LINENO: checking for objdir" >&5
7070 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7071 if test "${lt_cv_objdir+set}" = set; then
7072   echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074   rm -f .libs 2>/dev/null
7075 mkdir .libs 2>/dev/null
7076 if test -d .libs; then
7077   lt_cv_objdir=.libs
7078 else
7079   # MS-DOS does not allow filenames that begin with a dot.
7080   lt_cv_objdir=_libs
7081 fi
7082 rmdir .libs 2>/dev/null
7083 fi
7084 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7085 echo "${ECHO_T}$lt_cv_objdir" >&6
7086 objdir=$lt_cv_objdir
7087
7088
7089
7090
7091
7092 case $host_os in
7093 aix3*)
7094   # AIX sometimes has problems with the GCC collect2 program.  For some
7095   # reason, if we set the COLLECT_NAMES environment variable, the problems
7096   # vanish in a puff of smoke.
7097   if test "X${COLLECT_NAMES+set}" != Xset; then
7098     COLLECT_NAMES=
7099     export COLLECT_NAMES
7100   fi
7101   ;;
7102 esac
7103
7104 # Sed substitution that helps us do robust quoting.  It backslashifies
7105 # metacharacters that are still active within double-quoted strings.
7106 Xsed='sed -e 1s/^X//'
7107 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7108
7109 # Same as above, but do not quote variable references.
7110 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7111
7112 # Sed substitution to delay expansion of an escaped shell variable in a
7113 # double_quote_subst'ed string.
7114 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7115
7116 # Sed substitution to avoid accidental globbing in evaled expressions
7117 no_glob_subst='s/\*/\\\*/g'
7118
7119 # Constants:
7120 rm="rm -f"
7121
7122 # Global variables:
7123 default_ofile=libtool
7124 can_build_shared=yes
7125
7126 # All known linkers require a `.a' archive for static linking (except MSVC,
7127 # which needs '.lib').
7128 libext=a
7129 ltmain="$ac_aux_dir/ltmain.sh"
7130 ofile="$default_ofile"
7131 with_gnu_ld="$lt_cv_prog_gnu_ld"
7132
7133 if test -n "$ac_tool_prefix"; then
7134   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}ar; ac_word=$2
7136 echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7138 if test "${ac_cv_prog_AR+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   if test -n "$AR"; then
7142   ac_cv_prog_AR="$AR" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149   for ac_exec_ext in '' $ac_executable_extensions; do
7150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151     ac_cv_prog_AR="${ac_tool_prefix}ar"
7152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156 done
7157
7158 fi
7159 fi
7160 AR=$ac_cv_prog_AR
7161 if test -n "$AR"; then
7162   echo "$as_me:$LINENO: result: $AR" >&5
7163 echo "${ECHO_T}$AR" >&6
7164 else
7165   echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6
7167 fi
7168
7169 fi
7170 if test -z "$ac_cv_prog_AR"; then
7171   ac_ct_AR=$AR
7172   # Extract the first word of "ar", so it can be a program name with args.
7173 set dummy ar; ac_word=$2
7174 echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7176 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179   if test -n "$ac_ct_AR"; then
7180   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7181 else
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7184 do
7185   IFS=$as_save_IFS
7186   test -z "$as_dir" && as_dir=.
7187   for ac_exec_ext in '' $ac_executable_extensions; do
7188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189     ac_cv_prog_ac_ct_AR="ar"
7190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191     break 2
7192   fi
7193 done
7194 done
7195
7196   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7197 fi
7198 fi
7199 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7200 if test -n "$ac_ct_AR"; then
7201   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7202 echo "${ECHO_T}$ac_ct_AR" >&6
7203 else
7204   echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6
7206 fi
7207
7208   AR=$ac_ct_AR
7209 else
7210   AR="$ac_cv_prog_AR"
7211 fi
7212
7213 if test -n "$ac_tool_prefix"; then
7214   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7215 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7216 echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7218 if test "${ac_cv_prog_RANLIB+set}" = set; then
7219   echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221   if test -n "$RANLIB"; then
7222   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7223 else
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227   IFS=$as_save_IFS
7228   test -z "$as_dir" && as_dir=.
7229   for ac_exec_ext in '' $ac_executable_extensions; do
7230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233     break 2
7234   fi
7235 done
7236 done
7237
7238 fi
7239 fi
7240 RANLIB=$ac_cv_prog_RANLIB
7241 if test -n "$RANLIB"; then
7242   echo "$as_me:$LINENO: result: $RANLIB" >&5
7243 echo "${ECHO_T}$RANLIB" >&6
7244 else
7245   echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6
7247 fi
7248
7249 fi
7250 if test -z "$ac_cv_prog_RANLIB"; then
7251   ac_ct_RANLIB=$RANLIB
7252   # Extract the first word of "ranlib", so it can be a program name with args.
7253 set dummy ranlib; ac_word=$2
7254 echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7256 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259   if test -n "$ac_ct_RANLIB"; then
7260   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7261 else
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7264 do
7265   IFS=$as_save_IFS
7266   test -z "$as_dir" && as_dir=.
7267   for ac_exec_ext in '' $ac_executable_extensions; do
7268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269     ac_cv_prog_ac_ct_RANLIB="ranlib"
7270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271     break 2
7272   fi
7273 done
7274 done
7275
7276   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7277 fi
7278 fi
7279 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7280 if test -n "$ac_ct_RANLIB"; then
7281   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7282 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7283 else
7284   echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6
7286 fi
7287
7288   RANLIB=$ac_ct_RANLIB
7289 else
7290   RANLIB="$ac_cv_prog_RANLIB"
7291 fi
7292
7293 if test -n "$ac_tool_prefix"; then
7294   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}strip; ac_word=$2
7296 echo "$as_me:$LINENO: checking for $ac_word" >&5
7297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7298 if test "${ac_cv_prog_STRIP+set}" = set; then
7299   echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301   if test -n "$STRIP"; then
7302   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309   for ac_exec_ext in '' $ac_executable_extensions; do
7310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316 done
7317
7318 fi
7319 fi
7320 STRIP=$ac_cv_prog_STRIP
7321 if test -n "$STRIP"; then
7322   echo "$as_me:$LINENO: result: $STRIP" >&5
7323 echo "${ECHO_T}$STRIP" >&6
7324 else
7325   echo "$as_me:$LINENO: result: no" >&5
7326 echo "${ECHO_T}no" >&6
7327 fi
7328
7329 fi
7330 if test -z "$ac_cv_prog_STRIP"; then
7331   ac_ct_STRIP=$STRIP
7332   # Extract the first word of "strip", so it can be a program name with args.
7333 set dummy strip; ac_word=$2
7334 echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7336 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339   if test -n "$ac_ct_STRIP"; then
7340   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345   IFS=$as_save_IFS
7346   test -z "$as_dir" && as_dir=.
7347   for ac_exec_ext in '' $ac_executable_extensions; do
7348   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349     ac_cv_prog_ac_ct_STRIP="strip"
7350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351     break 2
7352   fi
7353 done
7354 done
7355
7356   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7357 fi
7358 fi
7359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7360 if test -n "$ac_ct_STRIP"; then
7361   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7362 echo "${ECHO_T}$ac_ct_STRIP" >&6
7363 else
7364   echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7366 fi
7367
7368   STRIP=$ac_ct_STRIP
7369 else
7370   STRIP="$ac_cv_prog_STRIP"
7371 fi
7372
7373
7374 old_CC="$CC"
7375 old_CFLAGS="$CFLAGS"
7376
7377 # Set sane defaults for various variables
7378 test -z "$AR" && AR=ar
7379 test -z "$AR_FLAGS" && AR_FLAGS=cru
7380 test -z "$AS" && AS=as
7381 test -z "$CC" && CC=cc
7382 test -z "$LTCC" && LTCC=$CC
7383 test -z "$DLLTOOL" && DLLTOOL=dlltool
7384 test -z "$LD" && LD=ld
7385 test -z "$LN_S" && LN_S="ln -s"
7386 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7387 test -z "$NM" && NM=nm
7388 test -z "$SED" && SED=sed
7389 test -z "$OBJDUMP" && OBJDUMP=objdump
7390 test -z "$RANLIB" && RANLIB=:
7391 test -z "$STRIP" && STRIP=:
7392 test -z "$ac_objext" && ac_objext=o
7393
7394 # Determine commands to create old-style static archives.
7395 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7396 old_postinstall_cmds='chmod 644 $oldlib'
7397 old_postuninstall_cmds=
7398
7399 if test -n "$RANLIB"; then
7400   case $host_os in
7401   openbsd*)
7402     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7403     ;;
7404   *)
7405     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7406     ;;
7407   esac
7408   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7409 fi
7410
7411 for cc_temp in $compiler""; do
7412   case $cc_temp in
7413     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7414     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7415     \-*) ;;
7416     *) break;;
7417   esac
7418 done
7419 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7420
7421
7422 # Only perform the check for file, if the check method requires it
7423 case $deplibs_check_method in
7424 file_magic*)
7425   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7426     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7427 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7428 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7429   echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431   case $MAGIC_CMD in
7432 [\\/*] |  ?:[\\/]*)
7433   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7434   ;;
7435 *)
7436   lt_save_MAGIC_CMD="$MAGIC_CMD"
7437   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7438   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7439   for ac_dir in $ac_dummy; do
7440     IFS="$lt_save_ifs"
7441     test -z "$ac_dir" && ac_dir=.
7442     if test -f $ac_dir/${ac_tool_prefix}file; then
7443       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7444       if test -n "$file_magic_test_file"; then
7445         case $deplibs_check_method in
7446         "file_magic "*)
7447           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7448           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7449           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7450             $EGREP "$file_magic_regex" > /dev/null; then
7451             :
7452           else
7453             cat <<EOF 1>&2
7454
7455 *** Warning: the command libtool uses to detect shared libraries,
7456 *** $file_magic_cmd, produces output that libtool cannot recognize.
7457 *** The result is that libtool may fail to recognize shared libraries
7458 *** as such.  This will affect the creation of libtool libraries that
7459 *** depend on shared libraries, but programs linked with such libtool
7460 *** libraries will work regardless of this problem.  Nevertheless, you
7461 *** may want to report the problem to your system manager and/or to
7462 *** bug-libtool@gnu.org
7463
7464 EOF
7465           fi ;;
7466         esac
7467       fi
7468       break
7469     fi
7470   done
7471   IFS="$lt_save_ifs"
7472   MAGIC_CMD="$lt_save_MAGIC_CMD"
7473   ;;
7474 esac
7475 fi
7476
7477 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7478 if test -n "$MAGIC_CMD"; then
7479   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7480 echo "${ECHO_T}$MAGIC_CMD" >&6
7481 else
7482   echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6
7484 fi
7485
7486 if test -z "$lt_cv_path_MAGIC_CMD"; then
7487   if test -n "$ac_tool_prefix"; then
7488     echo "$as_me:$LINENO: checking for file" >&5
7489 echo $ECHO_N "checking for file... $ECHO_C" >&6
7490 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   case $MAGIC_CMD in
7494 [\\/*] |  ?:[\\/]*)
7495   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7496   ;;
7497 *)
7498   lt_save_MAGIC_CMD="$MAGIC_CMD"
7499   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7500   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7501   for ac_dir in $ac_dummy; do
7502     IFS="$lt_save_ifs"
7503     test -z "$ac_dir" && ac_dir=.
7504     if test -f $ac_dir/file; then
7505       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7506       if test -n "$file_magic_test_file"; then
7507         case $deplibs_check_method in
7508         "file_magic "*)
7509           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7510           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7511           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7512             $EGREP "$file_magic_regex" > /dev/null; then
7513             :
7514           else
7515             cat <<EOF 1>&2
7516
7517 *** Warning: the command libtool uses to detect shared libraries,
7518 *** $file_magic_cmd, produces output that libtool cannot recognize.
7519 *** The result is that libtool may fail to recognize shared libraries
7520 *** as such.  This will affect the creation of libtool libraries that
7521 *** depend on shared libraries, but programs linked with such libtool
7522 *** libraries will work regardless of this problem.  Nevertheless, you
7523 *** may want to report the problem to your system manager and/or to
7524 *** bug-libtool@gnu.org
7525
7526 EOF
7527           fi ;;
7528         esac
7529       fi
7530       break
7531     fi
7532   done
7533   IFS="$lt_save_ifs"
7534   MAGIC_CMD="$lt_save_MAGIC_CMD"
7535   ;;
7536 esac
7537 fi
7538
7539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7540 if test -n "$MAGIC_CMD"; then
7541   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7542 echo "${ECHO_T}$MAGIC_CMD" >&6
7543 else
7544   echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6
7546 fi
7547
7548   else
7549     MAGIC_CMD=:
7550   fi
7551 fi
7552
7553   fi
7554   ;;
7555 esac
7556
7557 enable_dlopen=yes
7558 enable_win32_dll=yes
7559
7560 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7561 if test "${enable_libtool_lock+set}" = set; then
7562   enableval="$enable_libtool_lock"
7563
7564 fi;
7565 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7566
7567
7568 # Check whether --with-pic or --without-pic was given.
7569 if test "${with_pic+set}" = set; then
7570   withval="$with_pic"
7571   pic_mode="$withval"
7572 else
7573   pic_mode=default
7574 fi;
7575 test -z "$pic_mode" && pic_mode=default
7576
7577 # Use C for the default configuration in the libtool script
7578 tagname=
7579 lt_save_CC="$CC"
7580 ac_ext=c
7581 ac_cpp='$CPP $CPPFLAGS'
7582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7585
7586
7587 # Source file extension for C test sources.
7588 ac_ext=c
7589
7590 # Object file extension for compiled C test sources.
7591 objext=o
7592 objext=$objext
7593
7594 # Code to be used in simple compile tests
7595 lt_simple_compile_test_code="int some_variable = 0;\n"
7596
7597 # Code to be used in simple link tests
7598 lt_simple_link_test_code='int main(){return(0);}\n'
7599
7600
7601 # If no C compiler was specified, use CC.
7602 LTCC=${LTCC-"$CC"}
7603
7604 # Allow CC to be a program name with arguments.
7605 compiler=$CC
7606
7607
7608 # save warnings/boilerplate of simple test code
7609 ac_outfile=conftest.$ac_objext
7610 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7611 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7612 _lt_compiler_boilerplate=`cat conftest.err`
7613 $rm conftest*
7614
7615 ac_outfile=conftest.$ac_objext
7616 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7617 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7618 _lt_linker_boilerplate=`cat conftest.err`
7619 $rm conftest*
7620
7621
7622 #
7623 # Check for any special shared library compilation flags.
7624 #
7625 lt_prog_cc_shlib=
7626 if test "$GCC" = no; then
7627   case $host_os in
7628   sco3.2v5*)
7629     lt_prog_cc_shlib='-belf'
7630     ;;
7631   esac
7632 fi
7633 if test -n "$lt_prog_cc_shlib"; then
7634   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7635 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7636   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7637   else
7638     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7639 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7640     lt_cv_prog_cc_can_build_shared=no
7641   fi
7642 fi
7643
7644
7645 #
7646 # Check to make sure the static flag actually works.
7647 #
7648 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7649 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7650 if test "${lt_prog_compiler_static_works+set}" = set; then
7651   echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653   lt_prog_compiler_static_works=no
7654    save_LDFLAGS="$LDFLAGS"
7655    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7656    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7657    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7658      # The linker can only warn and ignore the option if not recognized
7659      # So say no if there are warnings
7660      if test -s conftest.err; then
7661        # Append any errors to the config.log.
7662        cat conftest.err 1>&5
7663        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7664        $SED '/^$/d' conftest.err >conftest.er2
7665        if diff conftest.exp conftest.er2 >/dev/null; then
7666          lt_prog_compiler_static_works=yes
7667        fi
7668      else
7669        lt_prog_compiler_static_works=yes
7670      fi
7671    fi
7672    $rm conftest*
7673    LDFLAGS="$save_LDFLAGS"
7674
7675 fi
7676 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7677 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7678
7679 if test x"$lt_prog_compiler_static_works" = xyes; then
7680     :
7681 else
7682     lt_prog_compiler_static=
7683 fi
7684
7685
7686
7687
7688 lt_prog_compiler_no_builtin_flag=
7689
7690 if test "$GCC" = yes; then
7691   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7692
7693
7694 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7695 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7696 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   lt_cv_prog_compiler_rtti_exceptions=no
7700   ac_outfile=conftest.$ac_objext
7701    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7702    lt_compiler_flag="-fno-rtti -fno-exceptions"
7703    # Insert the option either (1) after the last *FLAGS variable, or
7704    # (2) before a word containing "conftest.", or (3) at the end.
7705    # Note that $ac_compile itself does not contain backslashes and begins
7706    # with a dollar sign (not a hyphen), so the echo should work correctly.
7707    # The option is referenced via a variable to avoid confusing sed.
7708    lt_compile=`echo "$ac_compile" | $SED \
7709    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7710    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7711    -e 's:$: $lt_compiler_flag:'`
7712    (eval echo "\"\$as_me:7712: $lt_compile\"" >&5)
7713    (eval "$lt_compile" 2>conftest.err)
7714    ac_status=$?
7715    cat conftest.err >&5
7716    echo "$as_me:7716: \$? = $ac_status" >&5
7717    if (exit $ac_status) && test -s "$ac_outfile"; then
7718      # The compiler can only warn and ignore the option if not recognized
7719      # So say no if there are warnings other than the usual output.
7720      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7721      $SED '/^$/d' conftest.err >conftest.er2
7722      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7723        lt_cv_prog_compiler_rtti_exceptions=yes
7724      fi
7725    fi
7726    $rm conftest*
7727
7728 fi
7729 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7730 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7731
7732 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7733     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7734 else
7735     :
7736 fi
7737
7738 fi
7739
7740 lt_prog_compiler_wl=
7741 lt_prog_compiler_pic=
7742 lt_prog_compiler_static=
7743
7744 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7745 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7746
7747   if test "$GCC" = yes; then
7748     lt_prog_compiler_wl='-Wl,'
7749     lt_prog_compiler_static='-static'
7750
7751     case $host_os in
7752       aix*)
7753       # All AIX code is PIC.
7754       if test "$host_cpu" = ia64; then
7755         # AIX 5 now supports IA64 processor
7756         lt_prog_compiler_static='-Bstatic'
7757       fi
7758       ;;
7759
7760     amigaos*)
7761       # FIXME: we need at least 68020 code to build shared libraries, but
7762       # adding the `-m68020' flag to GCC prevents building anything better,
7763       # like `-m68040'.
7764       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7765       ;;
7766
7767     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7768       # PIC is the default for these OSes.
7769       ;;
7770
7771     mingw* | pw32* | os2*)
7772       # This hack is so that the source file can tell whether it is being
7773       # built for inclusion in a dll (and should export symbols for example).
7774       lt_prog_compiler_pic='-DDLL_EXPORT'
7775       ;;
7776
7777     darwin* | rhapsody*)
7778       # PIC is the default on this platform
7779       # Common symbols not allowed in MH_DYLIB files
7780       lt_prog_compiler_pic='-fno-common'
7781       ;;
7782
7783     msdosdjgpp*)
7784       # Just because we use GCC doesn't mean we suddenly get shared libraries
7785       # on systems that don't support them.
7786       lt_prog_compiler_can_build_shared=no
7787       enable_shared=no
7788       ;;
7789
7790     sysv4*MP*)
7791       if test -d /usr/nec; then
7792         lt_prog_compiler_pic=-Kconform_pic
7793       fi
7794       ;;
7795
7796     hpux*)
7797       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7798       # not for PA HP-UX.
7799       case $host_cpu in
7800       hppa*64*|ia64*)
7801         # +Z the default
7802         ;;
7803       *)
7804         lt_prog_compiler_pic='-fPIC'
7805         ;;
7806       esac
7807       ;;
7808
7809     *)
7810       lt_prog_compiler_pic='-fPIC'
7811       ;;
7812     esac
7813   else
7814     # PORTME Check for flag to pass linker flags through the system compiler.
7815     case $host_os in
7816     aix*)
7817       lt_prog_compiler_wl='-Wl,'
7818       if test "$host_cpu" = ia64; then
7819         # AIX 5 now supports IA64 processor
7820         lt_prog_compiler_static='-Bstatic'
7821       else
7822         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7823       fi
7824       ;;
7825       darwin*)
7826         # PIC is the default on this platform
7827         # Common symbols not allowed in MH_DYLIB files
7828        case $cc_basename in
7829          xlc*)
7830          lt_prog_compiler_pic='-qnocommon'
7831          lt_prog_compiler_wl='-Wl,'
7832          ;;
7833        esac
7834        ;;
7835
7836     mingw* | pw32* | os2*)
7837       # This hack is so that the source file can tell whether it is being
7838       # built for inclusion in a dll (and should export symbols for example).
7839       lt_prog_compiler_pic='-DDLL_EXPORT'
7840       ;;
7841
7842     hpux9* | hpux10* | hpux11*)
7843       lt_prog_compiler_wl='-Wl,'
7844       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7845       # not for PA HP-UX.
7846       case $host_cpu in
7847       hppa*64*|ia64*)
7848         # +Z the default
7849         ;;
7850       *)
7851         lt_prog_compiler_pic='+Z'
7852         ;;
7853       esac
7854       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7855       lt_prog_compiler_static='${wl}-a ${wl}archive'
7856       ;;
7857
7858     irix5* | irix6* | nonstopux*)
7859       lt_prog_compiler_wl='-Wl,'
7860       # PIC (with -KPIC) is the default.
7861       lt_prog_compiler_static='-non_shared'
7862       ;;
7863
7864     newsos6)
7865       lt_prog_compiler_pic='-KPIC'
7866       lt_prog_compiler_static='-Bstatic'
7867       ;;
7868
7869     linux*)
7870       case $cc_basename in
7871       icc* | ecc*)
7872         lt_prog_compiler_wl='-Wl,'
7873         lt_prog_compiler_pic='-KPIC'
7874         lt_prog_compiler_static='-static'
7875         ;;
7876       pgcc* | pgf77* | pgf90* | pgf95*)
7877         # Portland Group compilers (*not* the Pentium gcc compiler,
7878         # which looks to be a dead project)
7879         lt_prog_compiler_wl='-Wl,'
7880         lt_prog_compiler_pic='-fpic'
7881         lt_prog_compiler_static='-Bstatic'
7882         ;;
7883       ccc*)
7884         lt_prog_compiler_wl='-Wl,'
7885         # All Alpha code is PIC.
7886         lt_prog_compiler_static='-non_shared'
7887         ;;
7888       esac
7889       ;;
7890
7891     osf3* | osf4* | osf5*)
7892       lt_prog_compiler_wl='-Wl,'
7893       # All OSF/1 code is PIC.
7894       lt_prog_compiler_static='-non_shared'
7895       ;;
7896
7897     sco3.2v5*)
7898       lt_prog_compiler_pic='-Kpic'
7899       lt_prog_compiler_static='-dn'
7900       ;;
7901
7902     solaris*)
7903       lt_prog_compiler_pic='-KPIC'
7904       lt_prog_compiler_static='-Bstatic'
7905       case $cc_basename in
7906       f77* | f90* | f95*)
7907         lt_prog_compiler_wl='-Qoption ld ';;
7908       *)
7909         lt_prog_compiler_wl='-Wl,';;
7910       esac
7911       ;;
7912
7913     sunos4*)
7914       lt_prog_compiler_wl='-Qoption ld '
7915       lt_prog_compiler_pic='-PIC'
7916       lt_prog_compiler_static='-Bstatic'
7917       ;;
7918
7919     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7920       lt_prog_compiler_wl='-Wl,'
7921       lt_prog_compiler_pic='-KPIC'
7922       lt_prog_compiler_static='-Bstatic'
7923       ;;
7924
7925     sysv4*MP*)
7926       if test -d /usr/nec ;then
7927         lt_prog_compiler_pic='-Kconform_pic'
7928         lt_prog_compiler_static='-Bstatic'
7929       fi
7930       ;;
7931
7932     unicos*)
7933       lt_prog_compiler_wl='-Wl,'
7934       lt_prog_compiler_can_build_shared=no
7935       ;;
7936
7937     uts4*)
7938       lt_prog_compiler_pic='-pic'
7939       lt_prog_compiler_static='-Bstatic'
7940       ;;
7941
7942     *)
7943       lt_prog_compiler_can_build_shared=no
7944       ;;
7945     esac
7946   fi
7947
7948 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7949 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7950
7951 #
7952 # Check to make sure the PIC flag actually works.
7953 #
7954 if test -n "$lt_prog_compiler_pic"; then
7955
7956 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7957 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7958 if test "${lt_prog_compiler_pic_works+set}" = set; then
7959   echo $ECHO_N "(cached) $ECHO_C" >&6
7960 else
7961   lt_prog_compiler_pic_works=no
7962   ac_outfile=conftest.$ac_objext
7963    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7964    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7965    # Insert the option either (1) after the last *FLAGS variable, or
7966    # (2) before a word containing "conftest.", or (3) at the end.
7967    # Note that $ac_compile itself does not contain backslashes and begins
7968    # with a dollar sign (not a hyphen), so the echo should work correctly.
7969    # The option is referenced via a variable to avoid confusing sed.
7970    lt_compile=`echo "$ac_compile" | $SED \
7971    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7972    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7973    -e 's:$: $lt_compiler_flag:'`
7974    (eval echo "\"\$as_me:7974: $lt_compile\"" >&5)
7975    (eval "$lt_compile" 2>conftest.err)
7976    ac_status=$?
7977    cat conftest.err >&5
7978    echo "$as_me:7978: \$? = $ac_status" >&5
7979    if (exit $ac_status) && test -s "$ac_outfile"; then
7980      # The compiler can only warn and ignore the option if not recognized
7981      # So say no if there are warnings other than the usual output.
7982      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7983      $SED '/^$/d' conftest.err >conftest.er2
7984      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7985        lt_prog_compiler_pic_works=yes
7986      fi
7987    fi
7988    $rm conftest*
7989
7990 fi
7991 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7992 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7993
7994 if test x"$lt_prog_compiler_pic_works" = xyes; then
7995     case $lt_prog_compiler_pic in
7996      "" | " "*) ;;
7997      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7998      esac
7999 else
8000     lt_prog_compiler_pic=
8001      lt_prog_compiler_can_build_shared=no
8002 fi
8003
8004 fi
8005 case $host_os in
8006   # For platforms which do not support PIC, -DPIC is meaningless:
8007   *djgpp*)
8008     lt_prog_compiler_pic=
8009     ;;
8010   *)
8011     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8012     ;;
8013 esac
8014
8015 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8016 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8017 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8018   echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020   lt_cv_prog_compiler_c_o=no
8021    $rm -r conftest 2>/dev/null
8022    mkdir conftest
8023    cd conftest
8024    mkdir out
8025    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8026
8027    lt_compiler_flag="-o out/conftest2.$ac_objext"
8028    # Insert the option either (1) after the last *FLAGS variable, or
8029    # (2) before a word containing "conftest.", or (3) at the end.
8030    # Note that $ac_compile itself does not contain backslashes and begins
8031    # with a dollar sign (not a hyphen), so the echo should work correctly.
8032    lt_compile=`echo "$ac_compile" | $SED \
8033    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8034    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8035    -e 's:$: $lt_compiler_flag:'`
8036    (eval echo "\"\$as_me:8036: $lt_compile\"" >&5)
8037    (eval "$lt_compile" 2>out/conftest.err)
8038    ac_status=$?
8039    cat out/conftest.err >&5
8040    echo "$as_me:8040: \$? = $ac_status" >&5
8041    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8042    then
8043      # The compiler can only warn and ignore the option if not recognized
8044      # So say no if there are warnings
8045      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8046      $SED '/^$/d' out/conftest.err >out/conftest.er2
8047      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8048        lt_cv_prog_compiler_c_o=yes
8049      fi
8050    fi
8051    chmod u+w . 2>&5
8052    $rm conftest*
8053    # SGI C++ compiler will create directory out/ii_files/ for
8054    # template instantiation
8055    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8056    $rm out/* && rmdir out
8057    cd ..
8058    rmdir conftest
8059    $rm conftest*
8060
8061 fi
8062 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8063 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8064
8065
8066 hard_links="nottested"
8067 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8068   # do not overwrite the value of need_locks provided by the user
8069   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8070 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8071   hard_links=yes
8072   $rm conftest*
8073   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8074   touch conftest.a
8075   ln conftest.a conftest.b 2>&5 || hard_links=no
8076   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8077   echo "$as_me:$LINENO: result: $hard_links" >&5
8078 echo "${ECHO_T}$hard_links" >&6
8079   if test "$hard_links" = no; then
8080     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8081 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8082     need_locks=warn
8083   fi
8084 else
8085   need_locks=no
8086 fi
8087
8088 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8089 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8090
8091   runpath_var=
8092   allow_undefined_flag=
8093   enable_shared_with_static_runtimes=no
8094   archive_cmds=
8095   archive_expsym_cmds=
8096   old_archive_From_new_cmds=
8097   old_archive_from_expsyms_cmds=
8098   export_dynamic_flag_spec=
8099   whole_archive_flag_spec=
8100   thread_safe_flag_spec=
8101   hardcode_libdir_flag_spec=
8102   hardcode_libdir_flag_spec_ld=
8103   hardcode_libdir_separator=
8104   hardcode_direct=no
8105   hardcode_minus_L=no
8106   hardcode_shlibpath_var=unsupported
8107   link_all_deplibs=unknown
8108   hardcode_automatic=no
8109   module_cmds=
8110   module_expsym_cmds=
8111   always_export_symbols=no
8112   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8113   # include_expsyms should be a list of space-separated symbols to be *always*
8114   # included in the symbol list
8115   include_expsyms=
8116   # exclude_expsyms can be an extended regexp of symbols to exclude
8117   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8118   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8119   # as well as any symbol that contains `d'.
8120   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8121   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8122   # platforms (ab)use it in PIC code, but their linkers get confused if
8123   # the symbol is explicitly referenced.  Since portable code cannot
8124   # rely on this symbol name, it's probably fine to never include it in
8125   # preloaded symbol tables.
8126   extract_expsyms_cmds=
8127   # Just being paranoid about ensuring that cc_basename is set.
8128   for cc_temp in $compiler""; do
8129   case $cc_temp in
8130     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8131     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8132     \-*) ;;
8133     *) break;;
8134   esac
8135 done
8136 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8137
8138   case $host_os in
8139   cygwin* | mingw* | pw32*)
8140     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8141     # When not using gcc, we currently assume that we are using
8142     # Microsoft Visual C++.
8143     if test "$GCC" != yes; then
8144       with_gnu_ld=no
8145     fi
8146     ;;
8147   openbsd*)
8148     with_gnu_ld=no
8149     ;;
8150   esac
8151
8152   ld_shlibs=yes
8153   if test "$with_gnu_ld" = yes; then
8154     # If archive_cmds runs LD, not CC, wlarc should be empty
8155     wlarc='${wl}'
8156
8157     # Set some defaults for GNU ld with shared library support. These
8158     # are reset later if shared libraries are not supported. Putting them
8159     # here allows them to be overridden if necessary.
8160     runpath_var=LD_RUN_PATH
8161     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8162     export_dynamic_flag_spec='${wl}--export-dynamic'
8163     # ancient GNU ld didn't support --whole-archive et. al.
8164     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8165         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8166       else
8167         whole_archive_flag_spec=
8168     fi
8169     supports_anon_versioning=no
8170     case `$LD -v 2>/dev/null` in
8171       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8172       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8173       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8174       *\ 2.11.*) ;; # other 2.11 versions
8175       *) supports_anon_versioning=yes ;;
8176     esac
8177
8178     # See if GNU ld supports shared libraries.
8179     case $host_os in
8180     aix3* | aix4* | aix5*)
8181       # On AIX/PPC, the GNU linker is very broken
8182       if test "$host_cpu" != ia64; then
8183         ld_shlibs=no
8184         cat <<EOF 1>&2
8185
8186 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8187 *** to be unable to reliably create shared libraries on AIX.
8188 *** Therefore, libtool is disabling shared libraries support.  If you
8189 *** really care for shared libraries, you may want to modify your PATH
8190 *** so that a non-GNU linker is found, and then restart.
8191
8192 EOF
8193       fi
8194       ;;
8195
8196     amigaos*)
8197       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8198       hardcode_libdir_flag_spec='-L$libdir'
8199       hardcode_minus_L=yes
8200
8201       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8202       # that the semantics of dynamic libraries on AmigaOS, at least up
8203       # to version 4, is to share data among multiple programs linked
8204       # with the same dynamic library.  Since this doesn't match the
8205       # behavior of shared libraries on other platforms, we can't use
8206       # them.
8207       ld_shlibs=no
8208       ;;
8209
8210     beos*)
8211       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8212         allow_undefined_flag=unsupported
8213         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8214         # support --undefined.  This deserves some investigation.  FIXME
8215         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8216       else
8217         ld_shlibs=no
8218       fi
8219       ;;
8220
8221     cygwin* | mingw* | pw32*)
8222       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8223       # as there is no search path for DLLs.
8224       hardcode_libdir_flag_spec='-L$libdir'
8225       allow_undefined_flag=unsupported
8226       always_export_symbols=no
8227       enable_shared_with_static_runtimes=yes
8228       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8229
8230       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8231         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8232         # If the export-symbols file already is a .def file (1st line
8233         # is EXPORTS), use it as is; otherwise, prepend...
8234         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8235           cp $export_symbols $output_objdir/$soname.def;
8236         else
8237           echo EXPORTS > $output_objdir/$soname.def;
8238           cat $export_symbols >> $output_objdir/$soname.def;
8239         fi~
8240         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8241       else
8242         ld_shlibs=no
8243       fi
8244       ;;
8245
8246     linux*)
8247       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8248         tmp_addflag=
8249         case $cc_basename,$host_cpu in
8250         pgcc*)                          # Portland Group C compiler
8251           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8252           tmp_addflag=' $pic_flag'
8253           ;;
8254         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8255           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8256           tmp_addflag=' $pic_flag -Mnomain' ;;
8257         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8258           tmp_addflag=' -i_dynamic' ;;
8259         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8260           tmp_addflag=' -i_dynamic -nofor_main' ;;
8261         ifc* | ifort*)                  # Intel Fortran compiler
8262           tmp_addflag=' -nofor_main' ;;
8263         esac
8264         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265
8266         if test $supports_anon_versioning = yes; then
8267           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8268   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8269   $echo "local: *; };" >> $output_objdir/$libname.ver~
8270           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8271         fi
8272       else
8273         ld_shlibs=no
8274       fi
8275       ;;
8276
8277     netbsd*)
8278       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8279         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8280         wlarc=
8281       else
8282         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8284       fi
8285       ;;
8286
8287     solaris* | sysv5*)
8288       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8289         ld_shlibs=no
8290         cat <<EOF 1>&2
8291
8292 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8293 *** create shared libraries on Solaris systems.  Therefore, libtool
8294 *** is disabling shared libraries support.  We urge you to upgrade GNU
8295 *** binutils to release 2.9.1 or newer.  Another option is to modify
8296 *** your PATH or compiler configuration so that the native linker is
8297 *** used, and then restart.
8298
8299 EOF
8300       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8301         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8302         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8303       else
8304         ld_shlibs=no
8305       fi
8306       ;;
8307
8308     sunos4*)
8309       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8310       wlarc=
8311       hardcode_direct=yes
8312       hardcode_shlibpath_var=no
8313       ;;
8314
8315     *)
8316       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8317         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8318         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8319       else
8320         ld_shlibs=no
8321       fi
8322       ;;
8323     esac
8324
8325     if test "$ld_shlibs" = no; then
8326       runpath_var=
8327       hardcode_libdir_flag_spec=
8328       export_dynamic_flag_spec=
8329       whole_archive_flag_spec=
8330     fi
8331   else
8332     # PORTME fill in a description of your system's linker (not GNU ld)
8333     case $host_os in
8334     aix3*)
8335       allow_undefined_flag=unsupported
8336       always_export_symbols=yes
8337       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8338       # Note: this linker hardcodes the directories in LIBPATH if there
8339       # are no directories specified by -L.
8340       hardcode_minus_L=yes
8341       if test "$GCC" = yes && test -z "$link_static_flag"; then
8342         # Neither direct hardcoding nor static linking is supported with a
8343         # broken collect2.
8344         hardcode_direct=unsupported
8345       fi
8346       ;;
8347
8348     aix4* | aix5*)
8349       if test "$host_cpu" = ia64; then
8350         # On IA64, the linker does run time linking by default, so we don't
8351         # have to do anything special.
8352         aix_use_runtimelinking=no
8353         exp_sym_flag='-Bexport'
8354         no_entry_flag=""
8355       else
8356         # If we're using GNU nm, then we don't want the "-C" option.
8357         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8358         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8359           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8360         else
8361           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8362         fi
8363         aix_use_runtimelinking=no
8364
8365         # Test if we are trying to use run time linking or normal
8366         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8367         # need to do runtime linking.
8368         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8369           for ld_flag in $LDFLAGS; do
8370           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8371             aix_use_runtimelinking=yes
8372             break
8373           fi
8374           done
8375         esac
8376
8377         exp_sym_flag='-bexport'
8378         no_entry_flag='-bnoentry'
8379       fi
8380
8381       # When large executables or shared objects are built, AIX ld can
8382       # have problems creating the table of contents.  If linking a library
8383       # or program results in "error TOC overflow" add -mminimal-toc to
8384       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8385       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8386
8387       archive_cmds=''
8388       hardcode_direct=yes
8389       hardcode_libdir_separator=':'
8390       link_all_deplibs=yes
8391
8392       if test "$GCC" = yes; then
8393         case $host_os in aix4.[012]|aix4.[012].*)
8394         # We only want to do this on AIX 4.2 and lower, the check
8395         # below for broken collect2 doesn't work under 4.3+
8396           collect2name=`${CC} -print-prog-name=collect2`
8397           if test -f "$collect2name" && \
8398            strings "$collect2name" | grep resolve_lib_name >/dev/null
8399           then
8400           # We have reworked collect2
8401           hardcode_direct=yes
8402           else
8403           # We have old collect2
8404           hardcode_direct=unsupported
8405           # It fails to find uninstalled libraries when the uninstalled
8406           # path is not listed in the libpath.  Setting hardcode_minus_L
8407           # to unsupported forces relinking
8408           hardcode_minus_L=yes
8409           hardcode_libdir_flag_spec='-L$libdir'
8410           hardcode_libdir_separator=
8411           fi
8412         esac
8413         shared_flag='-shared'
8414         if test "$aix_use_runtimelinking" = yes; then
8415           shared_flag="$shared_flag "'${wl}-G'
8416         fi
8417       else
8418         # not using gcc
8419         if test "$host_cpu" = ia64; then
8420         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8421         # chokes on -Wl,-G. The following line is correct:
8422           shared_flag='-G'
8423         else
8424         if test "$aix_use_runtimelinking" = yes; then
8425             shared_flag='${wl}-G'
8426           else
8427             shared_flag='${wl}-bM:SRE'
8428         fi
8429         fi
8430       fi
8431
8432       # It seems that -bexpall does not export symbols beginning with
8433       # underscore (_), so it is better to generate a list of symbols to export.
8434       always_export_symbols=yes
8435       if test "$aix_use_runtimelinking" = yes; then
8436         # Warning - without using the other runtime loading flags (-brtl),
8437         # -berok will link without error, but may produce a broken library.
8438         allow_undefined_flag='-berok'
8439        # Determine the default libpath from the value encoded in an empty executable.
8440        cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h.  */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h.  */
8446
8447 int
8448 main ()
8449 {
8450
8451   ;
8452   return 0;
8453 }
8454 _ACEOF
8455 rm -f conftest.$ac_objext conftest$ac_exeext
8456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8457   (eval $ac_link) 2>conftest.er1
8458   ac_status=$?
8459   grep -v '^ *+' conftest.er1 >conftest.err
8460   rm -f conftest.er1
8461   cat conftest.err >&5
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); } &&
8464          { ac_try='test -z "$ac_c_werror_flag"
8465                          || test ! -s conftest.err'
8466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467   (eval $ac_try) 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }; } &&
8471          { ac_try='test -s conftest$ac_exeext'
8472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473   (eval $ac_try) 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); }; }; then
8477
8478 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8479 }'`
8480 # Check for a 64-bit object if we didn't find anything.
8481 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8482 }'`; fi
8483 else
8484   echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8486
8487 fi
8488 rm -f conftest.err conftest.$ac_objext \
8489       conftest$ac_exeext conftest.$ac_ext
8490 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8491
8492        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8493         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8494        else
8495         if test "$host_cpu" = ia64; then
8496           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8497           allow_undefined_flag="-z nodefs"
8498           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8499         else
8500          # Determine the default libpath from the value encoded in an empty executable.
8501          cat >conftest.$ac_ext <<_ACEOF
8502 /* confdefs.h.  */
8503 _ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h.  */
8507
8508 int
8509 main ()
8510 {
8511
8512   ;
8513   return 0;
8514 }
8515 _ACEOF
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518   (eval $ac_link) 2>conftest.er1
8519   ac_status=$?
8520   grep -v '^ *+' conftest.er1 >conftest.err
8521   rm -f conftest.er1
8522   cat conftest.err >&5
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } &&
8525          { ac_try='test -z "$ac_c_werror_flag"
8526                          || test ! -s conftest.err'
8527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528   (eval $ac_try) 2>&5
8529   ac_status=$?
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); }; } &&
8532          { ac_try='test -s conftest$ac_exeext'
8533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534   (eval $ac_try) 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); }; }; then
8538
8539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8540 }'`
8541 # Check for a 64-bit object if we didn't find anything.
8542 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8543 }'`; fi
8544 else
8545   echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548 fi
8549 rm -f conftest.err conftest.$ac_objext \
8550       conftest$ac_exeext conftest.$ac_ext
8551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8552
8553          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8554           # Warning - without using the other run time loading flags,
8555           # -berok will link without error, but may produce a broken library.
8556           no_undefined_flag=' ${wl}-bernotok'
8557           allow_undefined_flag=' ${wl}-berok'
8558           # -bexpall does not export symbols beginning with underscore (_)
8559           always_export_symbols=yes
8560           # Exported symbols can be pulled into shared objects from archives
8561           whole_archive_flag_spec=' '
8562           archive_cmds_need_lc=yes
8563           # This is similar to how AIX traditionally builds its shared libraries.
8564           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8565         fi
8566       fi
8567       ;;
8568
8569     amigaos*)
8570       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8571       hardcode_libdir_flag_spec='-L$libdir'
8572       hardcode_minus_L=yes
8573       # see comment about different semantics on the GNU ld section
8574       ld_shlibs=no
8575       ;;
8576
8577     bsdi[45]*)
8578       export_dynamic_flag_spec=-rdynamic
8579       ;;
8580
8581     cygwin* | mingw* | pw32*)
8582       # When not using gcc, we currently assume that we are using
8583       # Microsoft Visual C++.
8584       # hardcode_libdir_flag_spec is actually meaningless, as there is
8585       # no search path for DLLs.
8586       hardcode_libdir_flag_spec=' '
8587       allow_undefined_flag=unsupported
8588       # Tell ltmain to make .lib files, not .a files.
8589       libext=lib
8590       # Tell ltmain to make .dll files, not .so files.
8591       shrext_cmds=".dll"
8592       # FIXME: Setting linknames here is a bad hack.
8593       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8594       # The linker will automatically build a .lib file if we build a DLL.
8595       old_archive_From_new_cmds='true'
8596       # FIXME: Should let the user specify the lib program.
8597       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8598       fix_srcfile_path='`cygpath -w "$srcfile"`'
8599       enable_shared_with_static_runtimes=yes
8600       ;;
8601
8602     darwin* | rhapsody*)
8603       case $host_os in
8604         rhapsody* | darwin1.[012])
8605          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8606          ;;
8607        *) # Darwin 1.3 on
8608          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8609            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8610          else
8611            case ${MACOSX_DEPLOYMENT_TARGET} in
8612              10.[012])
8613                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8614                ;;
8615              10.*)
8616                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8617                ;;
8618            esac
8619          fi
8620          ;;
8621       esac
8622       archive_cmds_need_lc=no
8623       hardcode_direct=no
8624       hardcode_automatic=yes
8625       hardcode_shlibpath_var=unsupported
8626       whole_archive_flag_spec=''
8627       link_all_deplibs=yes
8628     if test "$GCC" = yes ; then
8629         output_verbose_link_cmd='echo'
8630         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8631       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8632       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8633       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8634       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8635     else
8636       case $cc_basename in
8637         xlc*)
8638          output_verbose_link_cmd='echo'
8639          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8640          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8641           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8642          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8643           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8644           ;;
8645        *)
8646          ld_shlibs=no
8647           ;;
8648       esac
8649     fi
8650       ;;
8651
8652     dgux*)
8653       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8654       hardcode_libdir_flag_spec='-L$libdir'
8655       hardcode_shlibpath_var=no
8656       ;;
8657
8658     freebsd1*)
8659       ld_shlibs=no
8660       ;;
8661
8662     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8663     # support.  Future versions do this automatically, but an explicit c++rt0.o
8664     # does not break anything, and helps significantly (at the cost of a little
8665     # extra space).
8666     freebsd2.2*)
8667       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8668       hardcode_libdir_flag_spec='-R$libdir'
8669       hardcode_direct=yes
8670       hardcode_shlibpath_var=no
8671       ;;
8672
8673     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8674     freebsd2*)
8675       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8676       hardcode_direct=yes
8677       hardcode_minus_L=yes
8678       hardcode_shlibpath_var=no
8679       ;;
8680
8681     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8682     freebsd* | kfreebsd*-gnu | dragonfly*)
8683       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8684       hardcode_libdir_flag_spec='-R$libdir'
8685       hardcode_direct=yes
8686       hardcode_shlibpath_var=no
8687       ;;
8688
8689     hpux9*)
8690       if test "$GCC" = yes; then
8691         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8692       else
8693         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8694       fi
8695       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8696       hardcode_libdir_separator=:
8697       hardcode_direct=yes
8698
8699       # hardcode_minus_L: Not really in the search PATH,
8700       # but as the default location of the library.
8701       hardcode_minus_L=yes
8702       export_dynamic_flag_spec='${wl}-E'
8703       ;;
8704
8705     hpux10* | hpux11*)
8706       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8707         case $host_cpu in
8708         hppa*64*|ia64*)
8709           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8710           ;;
8711         *)
8712           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8713           ;;
8714         esac
8715       else
8716         case $host_cpu in
8717         hppa*64*|ia64*)
8718           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8719           ;;
8720         *)
8721           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8722           ;;
8723         esac
8724       fi
8725       if test "$with_gnu_ld" = no; then
8726         case $host_cpu in
8727         hppa*64*)
8728           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8729           hardcode_libdir_flag_spec_ld='+b $libdir'
8730           hardcode_libdir_separator=:
8731           hardcode_direct=no
8732           hardcode_shlibpath_var=no
8733           ;;
8734         ia64*)
8735           hardcode_libdir_flag_spec='-L$libdir'
8736           hardcode_direct=no
8737           hardcode_shlibpath_var=no
8738
8739           # hardcode_minus_L: Not really in the search PATH,
8740           # but as the default location of the library.
8741           hardcode_minus_L=yes
8742           ;;
8743         *)
8744           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8745           hardcode_libdir_separator=:
8746           hardcode_direct=yes
8747           export_dynamic_flag_spec='${wl}-E'
8748
8749           # hardcode_minus_L: Not really in the search PATH,
8750           # but as the default location of the library.
8751           hardcode_minus_L=yes
8752           ;;
8753         esac
8754       fi
8755       ;;
8756
8757     irix5* | irix6* | nonstopux*)
8758       if test "$GCC" = yes; then
8759         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8760       else
8761         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8762         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8763       fi
8764       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8765       hardcode_libdir_separator=:
8766       link_all_deplibs=yes
8767       ;;
8768
8769     netbsd*)
8770       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8771         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8772       else
8773         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8774       fi
8775       hardcode_libdir_flag_spec='-R$libdir'
8776       hardcode_direct=yes
8777       hardcode_shlibpath_var=no
8778       ;;
8779
8780     newsos6)
8781       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782       hardcode_direct=yes
8783       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8784       hardcode_libdir_separator=:
8785       hardcode_shlibpath_var=no
8786       ;;
8787
8788     openbsd*)
8789       hardcode_direct=yes
8790       hardcode_shlibpath_var=no
8791       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8792         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8793         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8794         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8795         export_dynamic_flag_spec='${wl}-E'
8796       else
8797        case $host_os in
8798          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8799            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8800            hardcode_libdir_flag_spec='-R$libdir'
8801            ;;
8802          *)
8803            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8804            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8805            ;;
8806        esac
8807       fi
8808       ;;
8809
8810     os2*)
8811       hardcode_libdir_flag_spec='-L$libdir'
8812       hardcode_minus_L=yes
8813       allow_undefined_flag=unsupported
8814       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8815       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8816       ;;
8817
8818     osf3*)
8819       if test "$GCC" = yes; then
8820         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8821         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8822       else
8823         allow_undefined_flag=' -expect_unresolved \*'
8824         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8825       fi
8826       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8827       hardcode_libdir_separator=:
8828       ;;
8829
8830     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8831       if test "$GCC" = yes; then
8832         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8833         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8834         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835       else
8836         allow_undefined_flag=' -expect_unresolved \*'
8837         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8838         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8839         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8840
8841         # Both c and cxx compiler support -rpath directly
8842         hardcode_libdir_flag_spec='-rpath $libdir'
8843       fi
8844       hardcode_libdir_separator=:
8845       ;;
8846
8847     sco3.2v5*)
8848       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849       hardcode_shlibpath_var=no
8850       export_dynamic_flag_spec='${wl}-Bexport'
8851       runpath_var=LD_RUN_PATH
8852       hardcode_runpath_var=yes
8853       ;;
8854
8855     solaris*)
8856       no_undefined_flag=' -z text'
8857       if test "$GCC" = yes; then
8858         wlarc='${wl}'
8859         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8861           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8862       else
8863         wlarc=''
8864         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8866         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8867       fi
8868       hardcode_libdir_flag_spec='-R$libdir'
8869       hardcode_shlibpath_var=no
8870       case $host_os in
8871       solaris2.[0-5] | solaris2.[0-5].*) ;;
8872       *)
8873         # The compiler driver will combine linker options so we
8874         # cannot just pass the convience library names through
8875         # without $wl, iff we do not link with $LD.
8876         # Luckily, gcc supports the same syntax we need for Sun Studio.
8877         # Supported since Solaris 2.6 (maybe 2.5.1?)
8878         case $wlarc in
8879         '')
8880           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8881         *)
8882           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8883         esac ;;
8884       esac
8885       link_all_deplibs=yes
8886       ;;
8887
8888     sunos4*)
8889       if test "x$host_vendor" = xsequent; then
8890         # Use $CC to link under sequent, because it throws in some extra .o
8891         # files that make .init and .fini sections work.
8892         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8893       else
8894         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8895       fi
8896       hardcode_libdir_flag_spec='-L$libdir'
8897       hardcode_direct=yes
8898       hardcode_minus_L=yes
8899       hardcode_shlibpath_var=no
8900       ;;
8901
8902     sysv4)
8903       case $host_vendor in
8904         sni)
8905           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906           hardcode_direct=yes # is this really true???
8907         ;;
8908         siemens)
8909           ## LD is ld it makes a PLAMLIB
8910           ## CC just makes a GrossModule.
8911           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8912           reload_cmds='$CC -r -o $output$reload_objs'
8913           hardcode_direct=no
8914         ;;
8915         motorola)
8916           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8918         ;;
8919       esac
8920       runpath_var='LD_RUN_PATH'
8921       hardcode_shlibpath_var=no
8922       ;;
8923
8924     sysv4.3*)
8925       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8926       hardcode_shlibpath_var=no
8927       export_dynamic_flag_spec='-Bexport'
8928       ;;
8929
8930     sysv4*MP*)
8931       if test -d /usr/nec; then
8932         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933         hardcode_shlibpath_var=no
8934         runpath_var=LD_RUN_PATH
8935         hardcode_runpath_var=yes
8936         ld_shlibs=yes
8937       fi
8938       ;;
8939
8940     sysv4.2uw2*)
8941       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8942       hardcode_direct=yes
8943       hardcode_minus_L=no
8944       hardcode_shlibpath_var=no
8945       hardcode_runpath_var=yes
8946       runpath_var=LD_RUN_PATH
8947       ;;
8948
8949    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8950       no_undefined_flag='${wl}-z ${wl}text'
8951       if test "$GCC" = yes; then
8952         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8953       else
8954         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8955       fi
8956       runpath_var='LD_RUN_PATH'
8957       hardcode_shlibpath_var=no
8958       ;;
8959
8960     sysv5*)
8961       no_undefined_flag=' -z text'
8962       # $CC -shared without GNU ld will not create a library from C++
8963       # object files and a static libstdc++, better avoid it by now
8964       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8965       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8966                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8967       hardcode_libdir_flag_spec=
8968       hardcode_shlibpath_var=no
8969       runpath_var='LD_RUN_PATH'
8970       ;;
8971
8972     uts4*)
8973       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8974       hardcode_libdir_flag_spec='-L$libdir'
8975       hardcode_shlibpath_var=no
8976       ;;
8977
8978     *)
8979       ld_shlibs=no
8980       ;;
8981     esac
8982   fi
8983
8984 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8985 echo "${ECHO_T}$ld_shlibs" >&6
8986 test "$ld_shlibs" = no && can_build_shared=no
8987
8988 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8989 if test "$GCC" = yes; then
8990   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8991 fi
8992
8993 #
8994 # Do we need to explicitly link libc?
8995 #
8996 case "x$archive_cmds_need_lc" in
8997 x|xyes)
8998   # Assume -lc should be added
8999   archive_cmds_need_lc=yes
9000
9001   if test "$enable_shared" = yes && test "$GCC" = yes; then
9002     case $archive_cmds in
9003     *'~'*)
9004       # FIXME: we may have to deal with multi-command sequences.
9005       ;;
9006     '$CC '*)
9007       # Test whether the compiler implicitly links with -lc since on some
9008       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9009       # to ld, don't add -lc before -lgcc.
9010       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9011 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9012       $rm conftest*
9013       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9014
9015       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016   (eval $ac_compile) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); } 2>conftest.err; then
9020         soname=conftest
9021         lib=conftest
9022         libobjs=conftest.$ac_objext
9023         deplibs=
9024         wl=$lt_prog_compiler_wl
9025         compiler_flags=-v
9026         linker_flags=-v
9027         verstring=
9028         output_objdir=.
9029         libname=conftest
9030         lt_save_allow_undefined_flag=$allow_undefined_flag
9031         allow_undefined_flag=
9032         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9033   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9034   ac_status=$?
9035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   (exit $ac_status); }
9037         then
9038           archive_cmds_need_lc=no
9039         else
9040           archive_cmds_need_lc=yes
9041         fi
9042         allow_undefined_flag=$lt_save_allow_undefined_flag
9043       else
9044         cat conftest.err 1>&5
9045       fi
9046       $rm conftest*
9047       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9048 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9049       ;;
9050     esac
9051   fi
9052   ;;
9053 esac
9054
9055 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9056 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9057 library_names_spec=
9058 libname_spec='lib$name'
9059 soname_spec=
9060 shrext_cmds=".so"
9061 postinstall_cmds=
9062 postuninstall_cmds=
9063 finish_cmds=
9064 finish_eval=
9065 shlibpath_var=
9066 shlibpath_overrides_runpath=unknown
9067 version_type=none
9068 dynamic_linker="$host_os ld.so"
9069 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9070 if test "$GCC" = yes; then
9071   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9072   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9073     # if the path contains ";" then we assume it to be the separator
9074     # otherwise default to the standard path separator (i.e. ":") - it is
9075     # assumed that no part of a normal pathname contains ";" but that should
9076     # okay in the real world where ";" in dirpaths is itself problematic.
9077     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9078   else
9079     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9080   fi
9081 else
9082   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9083 fi
9084 need_lib_prefix=unknown
9085 hardcode_into_libs=no
9086
9087 # when you set need_version to no, make sure it does not cause -set_version
9088 # flags to be left without arguments
9089 need_version=unknown
9090
9091 case $host_os in
9092 aix3*)
9093   version_type=linux
9094   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9095   shlibpath_var=LIBPATH
9096
9097   # AIX 3 has no versioning support, so we append a major version to the name.
9098   soname_spec='${libname}${release}${shared_ext}$major'
9099   ;;
9100
9101 aix4* | aix5*)
9102   version_type=linux
9103   need_lib_prefix=no
9104   need_version=no
9105   hardcode_into_libs=yes
9106   if test "$host_cpu" = ia64; then
9107     # AIX 5 supports IA64
9108     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9109     shlibpath_var=LD_LIBRARY_PATH
9110   else
9111     # With GCC up to 2.95.x, collect2 would create an import file
9112     # for dependence libraries.  The import file would start with
9113     # the line `#! .'.  This would cause the generated library to
9114     # depend on `.', always an invalid library.  This was fixed in
9115     # development snapshots of GCC prior to 3.0.
9116     case $host_os in
9117       aix4 | aix4.[01] | aix4.[01].*)
9118       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9119            echo ' yes '
9120            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9121         :
9122       else
9123         can_build_shared=no
9124       fi
9125       ;;
9126     esac
9127     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9128     # soname into executable. Probably we can add versioning support to
9129     # collect2, so additional links can be useful in future.
9130     if test "$aix_use_runtimelinking" = yes; then
9131       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9132       # instead of lib<name>.a to let people know that these are not
9133       # typical AIX shared libraries.
9134       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135     else
9136       # We preserve .a as extension for shared libraries through AIX4.2
9137       # and later when we are not doing run time linking.
9138       library_names_spec='${libname}${release}.a $libname.a'
9139       soname_spec='${libname}${release}${shared_ext}$major'
9140     fi
9141     shlibpath_var=LIBPATH
9142   fi
9143   ;;
9144
9145 amigaos*)
9146   library_names_spec='$libname.ixlibrary $libname.a'
9147   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9148   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9149   ;;
9150
9151 beos*)
9152   library_names_spec='${libname}${shared_ext}'
9153   dynamic_linker="$host_os ld.so"
9154   shlibpath_var=LIBRARY_PATH
9155   ;;
9156
9157 bsdi[45]*)
9158   version_type=linux
9159   need_version=no
9160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161   soname_spec='${libname}${release}${shared_ext}$major'
9162   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9163   shlibpath_var=LD_LIBRARY_PATH
9164   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9165   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9166   # the default ld.so.conf also contains /usr/contrib/lib and
9167   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9168   # libtool to hard-code these into programs
9169   ;;
9170
9171 cygwin* | mingw* | pw32*)
9172   version_type=windows
9173   shrext_cmds=".dll"
9174   need_version=no
9175   need_lib_prefix=no
9176
9177   case $GCC,$host_os in
9178   yes,cygwin* | yes,mingw* | yes,pw32*)
9179     library_names_spec='$libname.dll.a'
9180     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9181     postinstall_cmds='base_file=`basename \${file}`~
9182       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9183       dldir=$destdir/`dirname \$dlpath`~
9184       test -d \$dldir || mkdir -p \$dldir~
9185       $install_prog $dir/$dlname \$dldir/$dlname~
9186       chmod a+x \$dldir/$dlname'
9187     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9188       dlpath=$dir/\$dldll~
9189        $rm \$dlpath'
9190     shlibpath_overrides_runpath=yes
9191
9192     case $host_os in
9193     cygwin*)
9194       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9195       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9196       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9197       ;;
9198     mingw*)
9199       # MinGW DLLs use traditional 'lib' prefix
9200       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9201       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9202       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9203         # It is most probably a Windows format PATH printed by
9204         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9205         # path with ; separators, and with drive letters. We can handle the
9206         # drive letters (cygwin fileutils understands them), so leave them,
9207         # especially as we might pass files found there to a mingw objdump,
9208         # which wouldn't understand a cygwinified path. Ahh.
9209         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9210       else
9211         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9212       fi
9213       ;;
9214     pw32*)
9215       # pw32 DLLs use 'pw' prefix rather than 'lib'
9216       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9217       ;;
9218     esac
9219     ;;
9220
9221   *)
9222     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9223     ;;
9224   esac
9225   dynamic_linker='Win32 ld.exe'
9226   # FIXME: first we should search . and the directory the executable is in
9227   shlibpath_var=PATH
9228   ;;
9229
9230 darwin* | rhapsody*)
9231   dynamic_linker="$host_os dyld"
9232   version_type=darwin
9233   need_lib_prefix=no
9234   need_version=no
9235   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9236   soname_spec='${libname}${release}${major}$shared_ext'
9237   shlibpath_overrides_runpath=yes
9238   shlibpath_var=DYLD_LIBRARY_PATH
9239   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9240   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9241   if test "$GCC" = yes; then
9242     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9243   else
9244     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9245   fi
9246   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9247   ;;
9248
9249 dgux*)
9250   version_type=linux
9251   need_lib_prefix=no
9252   need_version=no
9253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9254   soname_spec='${libname}${release}${shared_ext}$major'
9255   shlibpath_var=LD_LIBRARY_PATH
9256   ;;
9257
9258 freebsd1*)
9259   dynamic_linker=no
9260   ;;
9261
9262 kfreebsd*-gnu)
9263   version_type=linux
9264   need_lib_prefix=no
9265   need_version=no
9266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9267   soname_spec='${libname}${release}${shared_ext}$major'
9268   shlibpath_var=LD_LIBRARY_PATH
9269   shlibpath_overrides_runpath=no
9270   hardcode_into_libs=yes
9271   dynamic_linker='GNU ld.so'
9272   ;;
9273
9274 freebsd* | dragonfly*)
9275   # DragonFly does not have aout.  When/if they implement a new
9276   # versioning mechanism, adjust this.
9277   if test -x /usr/bin/objformat; then
9278     objformat=`/usr/bin/objformat`
9279   else
9280     case $host_os in
9281     freebsd[123]*) objformat=aout ;;
9282     *) objformat=elf ;;
9283     esac
9284   fi
9285   version_type=freebsd-$objformat
9286   case $version_type in
9287     freebsd-elf*)
9288       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9289       need_version=no
9290       need_lib_prefix=no
9291       ;;
9292     freebsd-*)
9293       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9294       need_version=yes
9295       ;;
9296   esac
9297   shlibpath_var=LD_LIBRARY_PATH
9298   case $host_os in
9299   freebsd2*)
9300     shlibpath_overrides_runpath=yes
9301     ;;
9302   freebsd3.[01]* | freebsdelf3.[01]*)
9303     shlibpath_overrides_runpath=yes
9304     hardcode_into_libs=yes
9305     ;;
9306   *) # from 3.2 on
9307     shlibpath_overrides_runpath=no
9308     hardcode_into_libs=yes
9309     ;;
9310   esac
9311   ;;
9312
9313 gnu*)
9314   version_type=linux
9315   need_lib_prefix=no
9316   need_version=no
9317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9318   soname_spec='${libname}${release}${shared_ext}$major'
9319   shlibpath_var=LD_LIBRARY_PATH
9320   hardcode_into_libs=yes
9321   ;;
9322
9323 hpux9* | hpux10* | hpux11*)
9324   # Give a soname corresponding to the major version so that dld.sl refuses to
9325   # link against other versions.
9326   version_type=sunos
9327   need_lib_prefix=no
9328   need_version=no
9329   case $host_cpu in
9330   ia64*)
9331     shrext_cmds='.so'
9332     hardcode_into_libs=yes
9333     dynamic_linker="$host_os dld.so"
9334     shlibpath_var=LD_LIBRARY_PATH
9335     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9336     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337     soname_spec='${libname}${release}${shared_ext}$major'
9338     if test "X$HPUX_IA64_MODE" = X32; then
9339       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9340     else
9341       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9342     fi
9343     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9344     ;;
9345    hppa*64*)
9346      shrext_cmds='.sl'
9347      hardcode_into_libs=yes
9348      dynamic_linker="$host_os dld.sl"
9349      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9350      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9351      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352      soname_spec='${libname}${release}${shared_ext}$major'
9353      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9354      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9355      ;;
9356    *)
9357     shrext_cmds='.sl'
9358     dynamic_linker="$host_os dld.sl"
9359     shlibpath_var=SHLIB_PATH
9360     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362     soname_spec='${libname}${release}${shared_ext}$major'
9363     ;;
9364   esac
9365   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9366   postinstall_cmds='chmod 555 $lib'
9367   ;;
9368
9369 irix5* | irix6* | nonstopux*)
9370   case $host_os in
9371     nonstopux*) version_type=nonstopux ;;
9372     *)
9373         if test "$lt_cv_prog_gnu_ld" = yes; then
9374                 version_type=linux
9375         else
9376                 version_type=irix
9377         fi ;;
9378   esac
9379   need_lib_prefix=no
9380   need_version=no
9381   soname_spec='${libname}${release}${shared_ext}$major'
9382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9383   case $host_os in
9384   irix5* | nonstopux*)
9385     libsuff= shlibsuff=
9386     ;;
9387   *)
9388     case $LD in # libtool.m4 will add one of these switches to LD
9389     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9390       libsuff= shlibsuff= libmagic=32-bit;;
9391     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9392       libsuff=32 shlibsuff=N32 libmagic=N32;;
9393     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9394       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9395     *) libsuff= shlibsuff= libmagic=never-match;;
9396     esac
9397     ;;
9398   esac
9399   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9400   shlibpath_overrides_runpath=no
9401   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9402   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9403   hardcode_into_libs=yes
9404   ;;
9405
9406 # No shared lib support for Linux oldld, aout, or coff.
9407 linux*oldld* | linux*aout* | linux*coff*)
9408   dynamic_linker=no
9409   ;;
9410
9411 # This must be Linux ELF.
9412 linux*)
9413   version_type=linux
9414   need_lib_prefix=no
9415   need_version=no
9416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417   soname_spec='${libname}${release}${shared_ext}$major'
9418   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9419   shlibpath_var=LD_LIBRARY_PATH
9420   shlibpath_overrides_runpath=no
9421   # This implies no fast_install, which is unacceptable.
9422   # Some rework will be needed to allow for fast_install
9423   # before this can be enabled.
9424   hardcode_into_libs=yes
9425
9426   # Append ld.so.conf contents to the search path
9427   if test -f /etc/ld.so.conf; then
9428     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9429     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9430   fi
9431
9432   # We used to test for /lib/ld.so.1 and disable shared libraries on
9433   # powerpc, because MkLinux only supported shared libraries with the
9434   # GNU dynamic linker.  Since this was broken with cross compilers,
9435   # most powerpc-linux boxes support dynamic linking these days and
9436   # people can always --disable-shared, the test was removed, and we
9437   # assume the GNU/Linux dynamic linker is in use.
9438   dynamic_linker='GNU/Linux ld.so'
9439   ;;
9440
9441 knetbsd*-gnu)
9442   version_type=linux
9443   need_lib_prefix=no
9444   need_version=no
9445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9446   soname_spec='${libname}${release}${shared_ext}$major'
9447   shlibpath_var=LD_LIBRARY_PATH
9448   shlibpath_overrides_runpath=no
9449   hardcode_into_libs=yes
9450   dynamic_linker='GNU ld.so'
9451   ;;
9452
9453 netbsd*)
9454   version_type=sunos
9455   need_lib_prefix=no
9456   need_version=no
9457   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9459     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9460     dynamic_linker='NetBSD (a.out) ld.so'
9461   else
9462     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9463     soname_spec='${libname}${release}${shared_ext}$major'
9464     dynamic_linker='NetBSD ld.elf_so'
9465   fi
9466   shlibpath_var=LD_LIBRARY_PATH
9467   shlibpath_overrides_runpath=yes
9468   hardcode_into_libs=yes
9469   ;;
9470
9471 newsos6)
9472   version_type=linux
9473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474   shlibpath_var=LD_LIBRARY_PATH
9475   shlibpath_overrides_runpath=yes
9476   ;;
9477
9478 nto-qnx*)
9479   version_type=linux
9480   need_lib_prefix=no
9481   need_version=no
9482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483   soname_spec='${libname}${release}${shared_ext}$major'
9484   shlibpath_var=LD_LIBRARY_PATH
9485   shlibpath_overrides_runpath=yes
9486   ;;
9487
9488 openbsd*)
9489   version_type=sunos
9490   need_lib_prefix=no
9491   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9492   case $host_os in
9493     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9494     *)                         need_version=no  ;;
9495   esac
9496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9497   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9498   shlibpath_var=LD_LIBRARY_PATH
9499   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9500     case $host_os in
9501       openbsd2.[89] | openbsd2.[89].*)
9502         shlibpath_overrides_runpath=no
9503         ;;
9504       *)
9505         shlibpath_overrides_runpath=yes
9506         ;;
9507       esac
9508   else
9509     shlibpath_overrides_runpath=yes
9510   fi
9511   ;;
9512
9513 os2*)
9514   libname_spec='$name'
9515   shrext_cmds=".dll"
9516   need_lib_prefix=no
9517   library_names_spec='$libname${shared_ext} $libname.a'
9518   dynamic_linker='OS/2 ld.exe'
9519   shlibpath_var=LIBPATH
9520   ;;
9521
9522 osf3* | osf4* | osf5*)
9523   version_type=osf
9524   need_lib_prefix=no
9525   need_version=no
9526   soname_spec='${libname}${release}${shared_ext}$major'
9527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528   shlibpath_var=LD_LIBRARY_PATH
9529   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9530   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9531   ;;
9532
9533 sco3.2v5*)
9534   version_type=osf
9535   soname_spec='${libname}${release}${shared_ext}$major'
9536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537   shlibpath_var=LD_LIBRARY_PATH
9538   ;;
9539
9540 solaris*)
9541   version_type=linux
9542   need_lib_prefix=no
9543   need_version=no
9544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545   soname_spec='${libname}${release}${shared_ext}$major'
9546   shlibpath_var=LD_LIBRARY_PATH
9547   shlibpath_overrides_runpath=yes
9548   hardcode_into_libs=yes
9549   # ldd complains unless libraries are executable
9550   postinstall_cmds='chmod +x $lib'
9551   ;;
9552
9553 sunos4*)
9554   version_type=sunos
9555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9556   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9557   shlibpath_var=LD_LIBRARY_PATH
9558   shlibpath_overrides_runpath=yes
9559   if test "$with_gnu_ld" = yes; then
9560     need_lib_prefix=no
9561   fi
9562   need_version=yes
9563   ;;
9564
9565 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9566   version_type=linux
9567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568   soname_spec='${libname}${release}${shared_ext}$major'
9569   shlibpath_var=LD_LIBRARY_PATH
9570   case $host_vendor in
9571     sni)
9572       shlibpath_overrides_runpath=no
9573       need_lib_prefix=no
9574       export_dynamic_flag_spec='${wl}-Blargedynsym'
9575       runpath_var=LD_RUN_PATH
9576       ;;
9577     siemens)
9578       need_lib_prefix=no
9579       ;;
9580     motorola)
9581       need_lib_prefix=no
9582       need_version=no
9583       shlibpath_overrides_runpath=no
9584       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9585       ;;
9586   esac
9587   ;;
9588
9589 sysv4*MP*)
9590   if test -d /usr/nec ;then
9591     version_type=linux
9592     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9593     soname_spec='$libname${shared_ext}.$major'
9594     shlibpath_var=LD_LIBRARY_PATH
9595   fi
9596   ;;
9597
9598 uts4*)
9599   version_type=linux
9600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601   soname_spec='${libname}${release}${shared_ext}$major'
9602   shlibpath_var=LD_LIBRARY_PATH
9603   ;;
9604
9605 *)
9606   dynamic_linker=no
9607   ;;
9608 esac
9609 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9610 echo "${ECHO_T}$dynamic_linker" >&6
9611 test "$dynamic_linker" = no && can_build_shared=no
9612
9613 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9614 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9615 hardcode_action=
9616 if test -n "$hardcode_libdir_flag_spec" || \
9617    test -n "$runpath_var" || \
9618    test "X$hardcode_automatic" = "Xyes" ; then
9619
9620   # We can hardcode non-existant directories.
9621   if test "$hardcode_direct" != no &&
9622      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9623      # have to relink, otherwise we might link with an installed library
9624      # when we should be linking with a yet-to-be-installed one
9625      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9626      test "$hardcode_minus_L" != no; then
9627     # Linking always hardcodes the temporary library directory.
9628     hardcode_action=relink
9629   else
9630     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9631     hardcode_action=immediate
9632   fi
9633 else
9634   # We cannot hardcode anything, or else we can only hardcode existing
9635   # directories.
9636   hardcode_action=unsupported
9637 fi
9638 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9639 echo "${ECHO_T}$hardcode_action" >&6
9640
9641 if test "$hardcode_action" = relink; then
9642   # Fast installation is not supported
9643   enable_fast_install=no
9644 elif test "$shlibpath_overrides_runpath" = yes ||
9645      test "$enable_shared" = no; then
9646   # Fast installation is not necessary
9647   enable_fast_install=needless
9648 fi
9649
9650 striplib=
9651 old_striplib=
9652 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9653 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9654 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9655   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9656   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9657   echo "$as_me:$LINENO: result: yes" >&5
9658 echo "${ECHO_T}yes" >&6
9659 else
9660 # FIXME - insert some real tests, host_os isn't really good enough
9661   case $host_os in
9662    darwin*)
9663        if test -n "$STRIP" ; then
9664          striplib="$STRIP -x"
9665          echo "$as_me:$LINENO: result: yes" >&5
9666 echo "${ECHO_T}yes" >&6
9667        else
9668   echo "$as_me:$LINENO: result: no" >&5
9669 echo "${ECHO_T}no" >&6
9670 fi
9671        ;;
9672    *)
9673   echo "$as_me:$LINENO: result: no" >&5
9674 echo "${ECHO_T}no" >&6
9675     ;;
9676   esac
9677 fi
9678
9679 if test "x$enable_dlopen" != xyes; then
9680   enable_dlopen=unknown
9681   enable_dlopen_self=unknown
9682   enable_dlopen_self_static=unknown
9683 else
9684   lt_cv_dlopen=no
9685   lt_cv_dlopen_libs=
9686
9687   case $host_os in
9688   beos*)
9689     lt_cv_dlopen="load_add_on"
9690     lt_cv_dlopen_libs=
9691     lt_cv_dlopen_self=yes
9692     ;;
9693
9694   mingw* | pw32*)
9695     lt_cv_dlopen="LoadLibrary"
9696     lt_cv_dlopen_libs=
9697    ;;
9698
9699   cygwin*)
9700     lt_cv_dlopen="dlopen"
9701     lt_cv_dlopen_libs=
9702    ;;
9703
9704   darwin*)
9705   # if libdl is installed we need to link against it
9706     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9707 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9708 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9709   echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711   ac_check_lib_save_LIBS=$LIBS
9712 LIBS="-ldl  $LIBS"
9713 cat >conftest.$ac_ext <<_ACEOF
9714 /* confdefs.h.  */
9715 _ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h.  */
9719
9720 /* Override any gcc2 internal prototype to avoid an error.  */
9721 #ifdef __cplusplus
9722 extern "C"
9723 #endif
9724 /* We use char because int might match the return type of a gcc2
9725    builtin and then its argument prototype would still apply.  */
9726 char dlopen ();
9727 int
9728 main ()
9729 {
9730 dlopen ();
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737   (eval $ac_link) 2>conftest.er1
9738   ac_status=$?
9739   grep -v '^ *+' conftest.er1 >conftest.err
9740   rm -f conftest.er1
9741   cat conftest.err >&5
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); } &&
9744          { ac_try='test -z "$ac_c_werror_flag"
9745                          || test ! -s conftest.err'
9746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747   (eval $ac_try) 2>&5
9748   ac_status=$?
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); }; } &&
9751          { ac_try='test -s conftest$ac_exeext'
9752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753   (eval $ac_try) 2>&5
9754   ac_status=$?
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); }; }; then
9757   ac_cv_lib_dl_dlopen=yes
9758 else
9759   echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9761
9762 ac_cv_lib_dl_dlopen=no
9763 fi
9764 rm -f conftest.err conftest.$ac_objext \
9765       conftest$ac_exeext conftest.$ac_ext
9766 LIBS=$ac_check_lib_save_LIBS
9767 fi
9768 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9769 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9770 if test $ac_cv_lib_dl_dlopen = yes; then
9771   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9772 else
9773
9774     lt_cv_dlopen="dyld"
9775     lt_cv_dlopen_libs=
9776     lt_cv_dlopen_self=yes
9777
9778 fi
9779
9780    ;;
9781
9782   *)
9783     echo "$as_me:$LINENO: checking for shl_load" >&5
9784 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9785 if test "${ac_cv_func_shl_load+set}" = set; then
9786   echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788   cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h.  */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h.  */
9794 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9796 #define shl_load innocuous_shl_load
9797
9798 /* System header to define __stub macros and hopefully few prototypes,
9799     which can conflict with char shl_load (); below.
9800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801     <limits.h> exists even on freestanding compilers.  */
9802
9803 #ifdef __STDC__
9804 # include <limits.h>
9805 #else
9806 # include <assert.h>
9807 #endif
9808
9809 #undef shl_load
9810
9811 /* Override any gcc2 internal prototype to avoid an error.  */
9812 #ifdef __cplusplus
9813 extern "C"
9814 {
9815 #endif
9816 /* We use char because int might match the return type of a gcc2
9817    builtin and then its argument prototype would still apply.  */
9818 char shl_load ();
9819 /* The GNU C library defines this for functions which it implements
9820     to always fail with ENOSYS.  Some functions are actually named
9821     something starting with __ and the normal name is an alias.  */
9822 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9823 choke me
9824 #else
9825 char (*f) () = shl_load;
9826 #endif
9827 #ifdef __cplusplus
9828 }
9829 #endif
9830
9831 int
9832 main ()
9833 {
9834 return f != shl_load;
9835   ;
9836   return 0;
9837 }
9838 _ACEOF
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841   (eval $ac_link) 2>conftest.er1
9842   ac_status=$?
9843   grep -v '^ *+' conftest.er1 >conftest.err
9844   rm -f conftest.er1
9845   cat conftest.err >&5
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); } &&
9848          { ac_try='test -z "$ac_c_werror_flag"
9849                          || test ! -s conftest.err'
9850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851   (eval $ac_try) 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); }; } &&
9855          { ac_try='test -s conftest$ac_exeext'
9856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857   (eval $ac_try) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); }; }; then
9861   ac_cv_func_shl_load=yes
9862 else
9863   echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 ac_cv_func_shl_load=no
9867 fi
9868 rm -f conftest.err conftest.$ac_objext \
9869       conftest$ac_exeext conftest.$ac_ext
9870 fi
9871 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9872 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9873 if test $ac_cv_func_shl_load = yes; then
9874   lt_cv_dlopen="shl_load"
9875 else
9876   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9877 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9878 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9879   echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881   ac_check_lib_save_LIBS=$LIBS
9882 LIBS="-ldld  $LIBS"
9883 cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h.  */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h.  */
9889
9890 /* Override any gcc2 internal prototype to avoid an error.  */
9891 #ifdef __cplusplus
9892 extern "C"
9893 #endif
9894 /* We use char because int might match the return type of a gcc2
9895    builtin and then its argument prototype would still apply.  */
9896 char shl_load ();
9897 int
9898 main ()
9899 {
9900 shl_load ();
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907   (eval $ac_link) 2>conftest.er1
9908   ac_status=$?
9909   grep -v '^ *+' conftest.er1 >conftest.err
9910   rm -f conftest.er1
9911   cat conftest.err >&5
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -z "$ac_c_werror_flag"
9915                          || test ! -s conftest.err'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; } &&
9921          { ac_try='test -s conftest$ac_exeext'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   ac_cv_lib_dld_shl_load=yes
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932 ac_cv_lib_dld_shl_load=no
9933 fi
9934 rm -f conftest.err conftest.$ac_objext \
9935       conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9937 fi
9938 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9939 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9940 if test $ac_cv_lib_dld_shl_load = yes; then
9941   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9942 else
9943   echo "$as_me:$LINENO: checking for dlopen" >&5
9944 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9945 if test "${ac_cv_func_dlopen+set}" = set; then
9946   echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948   cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h.  */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h.  */
9954 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9956 #define dlopen innocuous_dlopen
9957
9958 /* System header to define __stub macros and hopefully few prototypes,
9959     which can conflict with char dlopen (); below.
9960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9961     <limits.h> exists even on freestanding compilers.  */
9962
9963 #ifdef __STDC__
9964 # include <limits.h>
9965 #else
9966 # include <assert.h>
9967 #endif
9968
9969 #undef dlopen
9970
9971 /* Override any gcc2 internal prototype to avoid an error.  */
9972 #ifdef __cplusplus
9973 extern "C"
9974 {
9975 #endif
9976 /* We use char because int might match the return type of a gcc2
9977    builtin and then its argument prototype would still apply.  */
9978 char dlopen ();
9979 /* The GNU C library defines this for functions which it implements
9980     to always fail with ENOSYS.  Some functions are actually named
9981     something starting with __ and the normal name is an alias.  */
9982 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9983 choke me
9984 #else
9985 char (*f) () = dlopen;
9986 #endif
9987 #ifdef __cplusplus
9988 }
9989 #endif
9990
9991 int
9992 main ()
9993 {
9994 return f != dlopen;
9995   ;
9996   return 0;
9997 }
9998 _ACEOF
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001   (eval $ac_link) 2>conftest.er1
10002   ac_status=$?
10003   grep -v '^ *+' conftest.er1 >conftest.err
10004   rm -f conftest.er1
10005   cat conftest.err >&5
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); } &&
10008          { ac_try='test -z "$ac_c_werror_flag"
10009                          || test ! -s conftest.err'
10010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011   (eval $ac_try) 2>&5
10012   ac_status=$?
10013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014   (exit $ac_status); }; } &&
10015          { ac_try='test -s conftest$ac_exeext'
10016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017   (eval $ac_try) 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }; }; then
10021   ac_cv_func_dlopen=yes
10022 else
10023   echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10025
10026 ac_cv_func_dlopen=no
10027 fi
10028 rm -f conftest.err conftest.$ac_objext \
10029       conftest$ac_exeext conftest.$ac_ext
10030 fi
10031 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10032 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10033 if test $ac_cv_func_dlopen = yes; then
10034   lt_cv_dlopen="dlopen"
10035 else
10036   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10037 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10038 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10039   echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041   ac_check_lib_save_LIBS=$LIBS
10042 LIBS="-ldl  $LIBS"
10043 cat >conftest.$ac_ext <<_ACEOF
10044 /* confdefs.h.  */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h.  */
10049
10050 /* Override any gcc2 internal prototype to avoid an error.  */
10051 #ifdef __cplusplus
10052 extern "C"
10053 #endif
10054 /* We use char because int might match the return type of a gcc2
10055    builtin and then its argument prototype would still apply.  */
10056 char dlopen ();
10057 int
10058 main ()
10059 {
10060 dlopen ();
10061   ;
10062   return 0;
10063 }
10064 _ACEOF
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067   (eval $ac_link) 2>conftest.er1
10068   ac_status=$?
10069   grep -v '^ *+' conftest.er1 >conftest.err
10070   rm -f conftest.er1
10071   cat conftest.err >&5
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); } &&
10074          { ac_try='test -z "$ac_c_werror_flag"
10075                          || test ! -s conftest.err'
10076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077   (eval $ac_try) 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; } &&
10081          { ac_try='test -s conftest$ac_exeext'
10082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083   (eval $ac_try) 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); }; }; then
10087   ac_cv_lib_dl_dlopen=yes
10088 else
10089   echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10091
10092 ac_cv_lib_dl_dlopen=no
10093 fi
10094 rm -f conftest.err conftest.$ac_objext \
10095       conftest$ac_exeext conftest.$ac_ext
10096 LIBS=$ac_check_lib_save_LIBS
10097 fi
10098 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10099 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10100 if test $ac_cv_lib_dl_dlopen = yes; then
10101   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10102 else
10103   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10104 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10105 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10106   echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108   ac_check_lib_save_LIBS=$LIBS
10109 LIBS="-lsvld  $LIBS"
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h.  */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h.  */
10116
10117 /* Override any gcc2 internal prototype to avoid an error.  */
10118 #ifdef __cplusplus
10119 extern "C"
10120 #endif
10121 /* We use char because int might match the return type of a gcc2
10122    builtin and then its argument prototype would still apply.  */
10123 char dlopen ();
10124 int
10125 main ()
10126 {
10127 dlopen ();
10128   ;
10129   return 0;
10130 }
10131 _ACEOF
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134   (eval $ac_link) 2>conftest.er1
10135   ac_status=$?
10136   grep -v '^ *+' conftest.er1 >conftest.err
10137   rm -f conftest.er1
10138   cat conftest.err >&5
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); } &&
10141          { ac_try='test -z "$ac_c_werror_flag"
10142                          || test ! -s conftest.err'
10143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144   (eval $ac_try) 2>&5
10145   ac_status=$?
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); }; } &&
10148          { ac_try='test -s conftest$ac_exeext'
10149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150   (eval $ac_try) 2>&5
10151   ac_status=$?
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); }; }; then
10154   ac_cv_lib_svld_dlopen=yes
10155 else
10156   echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 ac_cv_lib_svld_dlopen=no
10160 fi
10161 rm -f conftest.err conftest.$ac_objext \
10162       conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10164 fi
10165 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10166 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10167 if test $ac_cv_lib_svld_dlopen = yes; then
10168   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10169 else
10170   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10171 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10172 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10173   echo $ECHO_N "(cached) $ECHO_C" >&6
10174 else
10175   ac_check_lib_save_LIBS=$LIBS
10176 LIBS="-ldld  $LIBS"
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h.  */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h.  */
10183
10184 /* Override any gcc2 internal prototype to avoid an error.  */
10185 #ifdef __cplusplus
10186 extern "C"
10187 #endif
10188 /* We use char because int might match the return type of a gcc2
10189    builtin and then its argument prototype would still apply.  */
10190 char dld_link ();
10191 int
10192 main ()
10193 {
10194 dld_link ();
10195   ;
10196   return 0;
10197 }
10198 _ACEOF
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201   (eval $ac_link) 2>conftest.er1
10202   ac_status=$?
10203   grep -v '^ *+' conftest.er1 >conftest.err
10204   rm -f conftest.er1
10205   cat conftest.err >&5
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); } &&
10208          { ac_try='test -z "$ac_c_werror_flag"
10209                          || test ! -s conftest.err'
10210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211   (eval $ac_try) 2>&5
10212   ac_status=$?
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); }; } &&
10215          { ac_try='test -s conftest$ac_exeext'
10216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217   (eval $ac_try) 2>&5
10218   ac_status=$?
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); }; }; then
10221   ac_cv_lib_dld_dld_link=yes
10222 else
10223   echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226 ac_cv_lib_dld_dld_link=no
10227 fi
10228 rm -f conftest.err conftest.$ac_objext \
10229       conftest$ac_exeext conftest.$ac_ext
10230 LIBS=$ac_check_lib_save_LIBS
10231 fi
10232 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10233 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10234 if test $ac_cv_lib_dld_dld_link = yes; then
10235   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10236 fi
10237
10238
10239 fi
10240
10241
10242 fi
10243
10244
10245 fi
10246
10247
10248 fi
10249
10250
10251 fi
10252
10253     ;;
10254   esac
10255
10256   if test "x$lt_cv_dlopen" != xno; then
10257     enable_dlopen=yes
10258   else
10259     enable_dlopen=no
10260   fi
10261
10262   case $lt_cv_dlopen in
10263   dlopen)
10264     save_CPPFLAGS="$CPPFLAGS"
10265     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10266
10267     save_LDFLAGS="$LDFLAGS"
10268     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10269
10270     save_LIBS="$LIBS"
10271     LIBS="$lt_cv_dlopen_libs $LIBS"
10272
10273     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10274 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10275 if test "${lt_cv_dlopen_self+set}" = set; then
10276   echo $ECHO_N "(cached) $ECHO_C" >&6
10277 else
10278           if test "$cross_compiling" = yes; then :
10279   lt_cv_dlopen_self=cross
10280 else
10281   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10282   lt_status=$lt_dlunknown
10283   cat > conftest.$ac_ext <<EOF
10284 #line 10284 "configure"
10285 #include "confdefs.h"
10286
10287 #if HAVE_DLFCN_H
10288 #include <dlfcn.h>
10289 #endif
10290
10291 #include <stdio.h>
10292
10293 #ifdef RTLD_GLOBAL
10294 #  define LT_DLGLOBAL           RTLD_GLOBAL
10295 #else
10296 #  ifdef DL_GLOBAL
10297 #    define LT_DLGLOBAL         DL_GLOBAL
10298 #  else
10299 #    define LT_DLGLOBAL         0
10300 #  endif
10301 #endif
10302
10303 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10304    find out it does not work in some platform. */
10305 #ifndef LT_DLLAZY_OR_NOW
10306 #  ifdef RTLD_LAZY
10307 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10308 #  else
10309 #    ifdef DL_LAZY
10310 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10311 #    else
10312 #      ifdef RTLD_NOW
10313 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10314 #      else
10315 #        ifdef DL_NOW
10316 #          define LT_DLLAZY_OR_NOW      DL_NOW
10317 #        else
10318 #          define LT_DLLAZY_OR_NOW      0
10319 #        endif
10320 #      endif
10321 #    endif
10322 #  endif
10323 #endif
10324
10325 #ifdef __cplusplus
10326 extern "C" void exit (int);
10327 #endif
10328
10329 void fnord() { int i=42;}
10330 int main ()
10331 {
10332   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10333   int status = $lt_dlunknown;
10334
10335   if (self)
10336     {
10337       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10338       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10339       /* dlclose (self); */
10340     }
10341
10342     exit (status);
10343 }
10344 EOF
10345   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10346   (eval $ac_link) 2>&5
10347   ac_status=$?
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10350     (./conftest; exit; ) >&5 2>/dev/null
10351     lt_status=$?
10352     case x$lt_status in
10353       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10354       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10355       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10356     esac
10357   else :
10358     # compilation failed
10359     lt_cv_dlopen_self=no
10360   fi
10361 fi
10362 rm -fr conftest*
10363
10364
10365 fi
10366 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10367 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10368
10369     if test "x$lt_cv_dlopen_self" = xyes; then
10370       LDFLAGS="$LDFLAGS $link_static_flag"
10371       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10372 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10373 if test "${lt_cv_dlopen_self_static+set}" = set; then
10374   echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376           if test "$cross_compiling" = yes; then :
10377   lt_cv_dlopen_self_static=cross
10378 else
10379   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10380   lt_status=$lt_dlunknown
10381   cat > conftest.$ac_ext <<EOF
10382 #line 10382 "configure"
10383 #include "confdefs.h"
10384
10385 #if HAVE_DLFCN_H
10386 #include <dlfcn.h>
10387 #endif
10388
10389 #include <stdio.h>
10390
10391 #ifdef RTLD_GLOBAL
10392 #  define LT_DLGLOBAL           RTLD_GLOBAL
10393 #else
10394 #  ifdef DL_GLOBAL
10395 #    define LT_DLGLOBAL         DL_GLOBAL
10396 #  else
10397 #    define LT_DLGLOBAL         0
10398 #  endif
10399 #endif
10400
10401 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10402    find out it does not work in some platform. */
10403 #ifndef LT_DLLAZY_OR_NOW
10404 #  ifdef RTLD_LAZY
10405 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10406 #  else
10407 #    ifdef DL_LAZY
10408 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10409 #    else
10410 #      ifdef RTLD_NOW
10411 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10412 #      else
10413 #        ifdef DL_NOW
10414 #          define LT_DLLAZY_OR_NOW      DL_NOW
10415 #        else
10416 #          define LT_DLLAZY_OR_NOW      0
10417 #        endif
10418 #      endif
10419 #    endif
10420 #  endif
10421 #endif
10422
10423 #ifdef __cplusplus
10424 extern "C" void exit (int);
10425 #endif
10426
10427 void fnord() { int i=42;}
10428 int main ()
10429 {
10430   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10431   int status = $lt_dlunknown;
10432
10433   if (self)
10434     {
10435       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10436       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10437       /* dlclose (self); */
10438     }
10439
10440     exit (status);
10441 }
10442 EOF
10443   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444   (eval $ac_link) 2>&5
10445   ac_status=$?
10446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10448     (./conftest; exit; ) >&5 2>/dev/null
10449     lt_status=$?
10450     case x$lt_status in
10451       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10452       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10453       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10454     esac
10455   else :
10456     # compilation failed
10457     lt_cv_dlopen_self_static=no
10458   fi
10459 fi
10460 rm -fr conftest*
10461
10462
10463 fi
10464 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10465 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10466     fi
10467
10468     CPPFLAGS="$save_CPPFLAGS"
10469     LDFLAGS="$save_LDFLAGS"
10470     LIBS="$save_LIBS"
10471     ;;
10472   esac
10473
10474   case $lt_cv_dlopen_self in
10475   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10476   *) enable_dlopen_self=unknown ;;
10477   esac
10478
10479   case $lt_cv_dlopen_self_static in
10480   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10481   *) enable_dlopen_self_static=unknown ;;
10482   esac
10483 fi
10484
10485
10486 # Report which librarie types wil actually be built
10487 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10488 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10489 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10490 echo "${ECHO_T}$can_build_shared" >&6
10491
10492 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10493 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10494 test "$can_build_shared" = "no" && enable_shared=no
10495
10496 # On AIX, shared libraries and static libraries use the same namespace, and
10497 # are all built from PIC.
10498 case $host_os in
10499 aix3*)
10500   test "$enable_shared" = yes && enable_static=no
10501   if test -n "$RANLIB"; then
10502     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10503     postinstall_cmds='$RANLIB $lib'
10504   fi
10505   ;;
10506
10507 aix4* | aix5*)
10508   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10509     test "$enable_shared" = yes && enable_static=no
10510   fi
10511     ;;
10512 esac
10513 echo "$as_me:$LINENO: result: $enable_shared" >&5
10514 echo "${ECHO_T}$enable_shared" >&6
10515
10516 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10517 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10518 # Make sure either enable_shared or enable_static is yes.
10519 test "$enable_shared" = yes || enable_static=yes
10520 echo "$as_me:$LINENO: result: $enable_static" >&5
10521 echo "${ECHO_T}$enable_static" >&6
10522
10523 # The else clause should only fire when bootstrapping the
10524 # libtool distribution, otherwise you forgot to ship ltmain.sh
10525 # with your package, and you will get complaints that there are
10526 # no rules to generate ltmain.sh.
10527 if test -f "$ltmain"; then
10528   # See if we are running on zsh, and set the options which allow our commands through
10529   # without removal of \ escapes.
10530   if test -n "${ZSH_VERSION+set}" ; then
10531     setopt NO_GLOB_SUBST
10532   fi
10533   # Now quote all the things that may contain metacharacters while being
10534   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10535   # variables and quote the copies for generation of the libtool script.
10536   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10537     SED SHELL STRIP \
10538     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10539     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10540     deplibs_check_method reload_flag reload_cmds need_locks \
10541     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10542     lt_cv_sys_global_symbol_to_c_name_address \
10543     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10544     old_postinstall_cmds old_postuninstall_cmds \
10545     compiler \
10546     CC \
10547     LD \
10548     lt_prog_compiler_wl \
10549     lt_prog_compiler_pic \
10550     lt_prog_compiler_static \
10551     lt_prog_compiler_no_builtin_flag \
10552     export_dynamic_flag_spec \
10553     thread_safe_flag_spec \
10554     whole_archive_flag_spec \
10555     enable_shared_with_static_runtimes \
10556     old_archive_cmds \
10557     old_archive_from_new_cmds \
10558     predep_objects \
10559     postdep_objects \
10560     predeps \
10561     postdeps \
10562     compiler_lib_search_path \
10563     archive_cmds \
10564     archive_expsym_cmds \
10565     postinstall_cmds \
10566     postuninstall_cmds \
10567     old_archive_from_expsyms_cmds \
10568     allow_undefined_flag \
10569     no_undefined_flag \
10570     export_symbols_cmds \
10571     hardcode_libdir_flag_spec \
10572     hardcode_libdir_flag_spec_ld \
10573     hardcode_libdir_separator \
10574     hardcode_automatic \
10575     module_cmds \
10576     module_expsym_cmds \
10577     lt_cv_prog_compiler_c_o \
10578     exclude_expsyms \
10579     include_expsyms; do
10580
10581     case $var in
10582     old_archive_cmds | \
10583     old_archive_from_new_cmds | \
10584     archive_cmds | \
10585     archive_expsym_cmds | \
10586     module_cmds | \
10587     module_expsym_cmds | \
10588     old_archive_from_expsyms_cmds | \
10589     export_symbols_cmds | \
10590     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10591     postinstall_cmds | postuninstall_cmds | \
10592     old_postinstall_cmds | old_postuninstall_cmds | \
10593     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10594       # Double-quote double-evaled strings.
10595       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10596       ;;
10597     *)
10598       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10599       ;;
10600     esac
10601   done
10602
10603   case $lt_echo in
10604   *'\$0 --fallback-echo"')
10605     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10606     ;;
10607   esac
10608
10609 cfgfile="${ofile}T"
10610   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10611   $rm -f "$cfgfile"
10612   { echo "$as_me:$LINENO: creating $ofile" >&5
10613 echo "$as_me: creating $ofile" >&6;}
10614
10615   cat <<__EOF__ >> "$cfgfile"
10616 #! $SHELL
10617
10618 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10619 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10620 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10621 #
10622 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10623 # Free Software Foundation, Inc.
10624 #
10625 # This file is part of GNU Libtool:
10626 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10627 #
10628 # This program is free software; you can redistribute it and/or modify
10629 # it under the terms of the GNU General Public License as published by
10630 # the Free Software Foundation; either version 2 of the License, or
10631 # (at your option) any later version.
10632 #
10633 # This program is distributed in the hope that it will be useful, but
10634 # WITHOUT ANY WARRANTY; without even the implied warranty of
10635 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10636 # General Public License for more details.
10637 #
10638 # You should have received a copy of the GNU General Public License
10639 # along with this program; if not, write to the Free Software
10640 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10641 #
10642 # As a special exception to the GNU General Public License, if you
10643 # distribute this file as part of a program that contains a
10644 # configuration script generated by Autoconf, you may include it under
10645 # the same distribution terms that you use for the rest of that program.
10646
10647 # A sed program that does not truncate output.
10648 SED=$lt_SED
10649
10650 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10651 Xsed="$SED -e 1s/^X//"
10652
10653 # The HP-UX ksh and POSIX shell print the target directory to stdout
10654 # if CDPATH is set.
10655 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10656
10657 # The names of the tagged configurations supported by this script.
10658 available_tags=
10659
10660 # ### BEGIN LIBTOOL CONFIG
10661
10662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10663
10664 # Shell to use when invoking shell scripts.
10665 SHELL=$lt_SHELL
10666
10667 # Whether or not to build shared libraries.
10668 build_libtool_libs=$enable_shared
10669
10670 # Whether or not to build static libraries.
10671 build_old_libs=$enable_static
10672
10673 # Whether or not to add -lc for building shared libraries.
10674 build_libtool_need_lc=$archive_cmds_need_lc
10675
10676 # Whether or not to disallow shared libs when runtime libs are static
10677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10678
10679 # Whether or not to optimize for fast installation.
10680 fast_install=$enable_fast_install
10681
10682 # The host system.
10683 host_alias=$host_alias
10684 host=$host
10685 host_os=$host_os
10686
10687 # The build system.
10688 build_alias=$build_alias
10689 build=$build
10690 build_os=$build_os
10691
10692 # An echo program that does not interpret backslashes.
10693 echo=$lt_echo
10694
10695 # The archiver.
10696 AR=$lt_AR
10697 AR_FLAGS=$lt_AR_FLAGS
10698
10699 # A C compiler.
10700 LTCC=$lt_LTCC
10701
10702 # A language-specific compiler.
10703 CC=$lt_compiler
10704
10705 # Is the compiler the GNU C compiler?
10706 with_gcc=$GCC
10707
10708 # An ERE matcher.
10709 EGREP=$lt_EGREP
10710
10711 # The linker used to build libraries.
10712 LD=$lt_LD
10713
10714 # Whether we need hard or soft links.
10715 LN_S=$lt_LN_S
10716
10717 # A BSD-compatible nm program.
10718 NM=$lt_NM
10719
10720 # A symbol stripping program
10721 STRIP=$lt_STRIP
10722
10723 # Used to examine libraries when file_magic_cmd begins "file"
10724 MAGIC_CMD=$MAGIC_CMD
10725
10726 # Used on cygwin: DLL creation program.
10727 DLLTOOL="$DLLTOOL"
10728
10729 # Used on cygwin: object dumper.
10730 OBJDUMP="$OBJDUMP"
10731
10732 # Used on cygwin: assembler.
10733 AS="$AS"
10734
10735 # The name of the directory that contains temporary libtool files.
10736 objdir=$objdir
10737
10738 # How to create reloadable object files.
10739 reload_flag=$lt_reload_flag
10740 reload_cmds=$lt_reload_cmds
10741
10742 # How to pass a linker flag through the compiler.
10743 wl=$lt_lt_prog_compiler_wl
10744
10745 # Object file suffix (normally "o").
10746 objext="$ac_objext"
10747
10748 # Old archive suffix (normally "a").
10749 libext="$libext"
10750
10751 # Shared library suffix (normally ".so").
10752 shrext_cmds='$shrext_cmds'
10753
10754 # Executable file suffix (normally "").
10755 exeext="$exeext"
10756
10757 # Additional compiler flags for building library objects.
10758 pic_flag=$lt_lt_prog_compiler_pic
10759 pic_mode=$pic_mode
10760
10761 # What is the maximum length of a command?
10762 max_cmd_len=$lt_cv_sys_max_cmd_len
10763
10764 # Does compiler simultaneously support -c and -o options?
10765 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10766
10767 # Must we lock files when doing compilation?
10768 need_locks=$lt_need_locks
10769
10770 # Do we need the lib prefix for modules?
10771 need_lib_prefix=$need_lib_prefix
10772
10773 # Do we need a version for libraries?
10774 need_version=$need_version
10775
10776 # Whether dlopen is supported.
10777 dlopen_support=$enable_dlopen
10778
10779 # Whether dlopen of programs is supported.
10780 dlopen_self=$enable_dlopen_self
10781
10782 # Whether dlopen of statically linked programs is supported.
10783 dlopen_self_static=$enable_dlopen_self_static
10784
10785 # Compiler flag to prevent dynamic linking.
10786 link_static_flag=$lt_lt_prog_compiler_static
10787
10788 # Compiler flag to turn off builtin functions.
10789 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10790
10791 # Compiler flag to allow reflexive dlopens.
10792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10793
10794 # Compiler flag to generate shared objects directly from archives.
10795 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10796
10797 # Compiler flag to generate thread-safe objects.
10798 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10799
10800 # Library versioning type.
10801 version_type=$version_type
10802
10803 # Format of library name prefix.
10804 libname_spec=$lt_libname_spec
10805
10806 # List of archive names.  First name is the real one, the rest are links.
10807 # The last name is the one that the linker finds with -lNAME.
10808 library_names_spec=$lt_library_names_spec
10809
10810 # The coded name of the library, if different from the real name.
10811 soname_spec=$lt_soname_spec
10812
10813 # Commands used to build and install an old-style archive.
10814 RANLIB=$lt_RANLIB
10815 old_archive_cmds=$lt_old_archive_cmds
10816 old_postinstall_cmds=$lt_old_postinstall_cmds
10817 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10818
10819 # Create an old-style archive from a shared archive.
10820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10821
10822 # Create a temporary old-style archive to link instead of a shared archive.
10823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10824
10825 # Commands used to build and install a shared archive.
10826 archive_cmds=$lt_archive_cmds
10827 archive_expsym_cmds=$lt_archive_expsym_cmds
10828 postinstall_cmds=$lt_postinstall_cmds
10829 postuninstall_cmds=$lt_postuninstall_cmds
10830
10831 # Commands used to build a loadable module (assumed same as above if empty)
10832 module_cmds=$lt_module_cmds
10833 module_expsym_cmds=$lt_module_expsym_cmds
10834
10835 # Commands to strip libraries.
10836 old_striplib=$lt_old_striplib
10837 striplib=$lt_striplib
10838
10839 # Dependencies to place before the objects being linked to create a
10840 # shared library.
10841 predep_objects=$lt_predep_objects
10842
10843 # Dependencies to place after the objects being linked to create a
10844 # shared library.
10845 postdep_objects=$lt_postdep_objects
10846
10847 # Dependencies to place before the objects being linked to create a
10848 # shared library.
10849 predeps=$lt_predeps
10850
10851 # Dependencies to place after the objects being linked to create a
10852 # shared library.
10853 postdeps=$lt_postdeps
10854
10855 # The library search path used internally by the compiler when linking
10856 # a shared library.
10857 compiler_lib_search_path=$lt_compiler_lib_search_path
10858
10859 # Method to check whether dependent libraries are shared objects.
10860 deplibs_check_method=$lt_deplibs_check_method
10861
10862 # Command to use when deplibs_check_method == file_magic.
10863 file_magic_cmd=$lt_file_magic_cmd
10864
10865 # Flag that allows shared libraries with undefined symbols to be built.
10866 allow_undefined_flag=$lt_allow_undefined_flag
10867
10868 # Flag that forces no undefined symbols.
10869 no_undefined_flag=$lt_no_undefined_flag
10870
10871 # Commands used to finish a libtool library installation in a directory.
10872 finish_cmds=$lt_finish_cmds
10873
10874 # Same as above, but a single script fragment to be evaled but not shown.
10875 finish_eval=$lt_finish_eval
10876
10877 # Take the output of nm and produce a listing of raw symbols and C names.
10878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10879
10880 # Transform the output of nm in a proper C declaration
10881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10882
10883 # Transform the output of nm in a C name address pair
10884 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10885
10886 # This is the shared library runtime path variable.
10887 runpath_var=$runpath_var
10888
10889 # This is the shared library path variable.
10890 shlibpath_var=$shlibpath_var
10891
10892 # Is shlibpath searched before the hard-coded library search path?
10893 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10894
10895 # How to hardcode a shared library path into an executable.
10896 hardcode_action=$hardcode_action
10897
10898 # Whether we should hardcode library paths into libraries.
10899 hardcode_into_libs=$hardcode_into_libs
10900
10901 # Flag to hardcode \$libdir into a binary during linking.
10902 # This must work even if \$libdir does not exist.
10903 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10904
10905 # If ld is used when linking, flag to hardcode \$libdir into
10906 # a binary during linking. This must work even if \$libdir does
10907 # not exist.
10908 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10909
10910 # Whether we need a single -rpath flag with a separated argument.
10911 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10912
10913 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10914 # resulting binary.
10915 hardcode_direct=$hardcode_direct
10916
10917 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10918 # resulting binary.
10919 hardcode_minus_L=$hardcode_minus_L
10920
10921 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10922 # the resulting binary.
10923 hardcode_shlibpath_var=$hardcode_shlibpath_var
10924
10925 # Set to yes if building a shared library automatically hardcodes DIR into the library
10926 # and all subsequent libraries and executables linked against it.
10927 hardcode_automatic=$hardcode_automatic
10928
10929 # Variables whose values should be saved in libtool wrapper scripts and
10930 # restored at relink time.
10931 variables_saved_for_relink="$variables_saved_for_relink"
10932
10933 # Whether libtool must link a program against all its dependency libraries.
10934 link_all_deplibs=$link_all_deplibs
10935
10936 # Compile-time system search path for libraries
10937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10938
10939 # Run-time system search path for libraries
10940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10941
10942 # Fix the shell variable \$srcfile for the compiler.
10943 fix_srcfile_path="$fix_srcfile_path"
10944
10945 # Set to yes if exported symbols are required.
10946 always_export_symbols=$always_export_symbols
10947
10948 # The commands to list exported symbols.
10949 export_symbols_cmds=$lt_export_symbols_cmds
10950
10951 # The commands to extract the exported symbol list from a shared archive.
10952 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10953
10954 # Symbols that should not be listed in the preloaded symbols.
10955 exclude_expsyms=$lt_exclude_expsyms
10956
10957 # Symbols that must always be exported.
10958 include_expsyms=$lt_include_expsyms
10959
10960 # ### END LIBTOOL CONFIG
10961
10962 __EOF__
10963
10964
10965   case $host_os in
10966   aix3*)
10967     cat <<\EOF >> "$cfgfile"
10968
10969 # AIX sometimes has problems with the GCC collect2 program.  For some
10970 # reason, if we set the COLLECT_NAMES environment variable, the problems
10971 # vanish in a puff of smoke.
10972 if test "X${COLLECT_NAMES+set}" != Xset; then
10973   COLLECT_NAMES=
10974   export COLLECT_NAMES
10975 fi
10976 EOF
10977     ;;
10978   esac
10979
10980   # We use sed instead of cat because bash on DJGPP gets confused if
10981   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10982   # text mode, it properly converts lines to CR/LF.  This bash problem
10983   # is reportedly fixed, but why not run on old versions too?
10984   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10985
10986   mv -f "$cfgfile" "$ofile" || \
10987     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10988   chmod +x "$ofile"
10989
10990 else
10991   # If there is no Makefile yet, we rely on a make rule to execute
10992   # `config.status --recheck' to rerun these tests and create the
10993   # libtool script then.
10994   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10995   if test -f "$ltmain_in"; then
10996     test -f Makefile && make "$ltmain"
10997   fi
10998 fi
10999
11000
11001 ac_ext=c
11002 ac_cpp='$CPP $CPPFLAGS'
11003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11006
11007 CC="$lt_save_CC"
11008
11009
11010 # Check whether --with-tags or --without-tags was given.
11011 if test "${with_tags+set}" = set; then
11012   withval="$with_tags"
11013   tagnames="$withval"
11014 fi;
11015
11016 if test -f "$ltmain" && test -n "$tagnames"; then
11017   if test ! -f "${ofile}"; then
11018     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11019 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11020   fi
11021
11022   if test -z "$LTCC"; then
11023     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11024     if test -z "$LTCC"; then
11025       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11026 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11027     else
11028       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11029 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11030     fi
11031   fi
11032
11033   # Extract list of available tagged configurations in $ofile.
11034   # Note that this assumes the entire list is on one line.
11035   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11036
11037   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11038   for tagname in $tagnames; do
11039     IFS="$lt_save_ifs"
11040     # Check whether tagname contains only valid characters
11041     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11042     "") ;;
11043     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11044 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11045    { (exit 1); exit 1; }; }
11046         ;;
11047     esac
11048
11049     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11050     then
11051       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11052 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11053    { (exit 1); exit 1; }; }
11054     fi
11055
11056     # Update the list of available tags.
11057     if test -n "$tagname"; then
11058       echo appending configuration tag \"$tagname\" to $ofile
11059
11060       case $tagname in
11061       CXX)
11062         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11063             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11064             (test "X$CXX" != "Xg++"))) ; then
11065           :
11066         else
11067           tagname=""
11068         fi
11069         ;;
11070
11071       F77)
11072         if test -n "$F77" && test "X$F77" != "Xno"; then
11073           :
11074         else
11075           tagname=""
11076         fi
11077         ;;
11078
11079       GCJ)
11080         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11081           :
11082         else
11083           tagname=""
11084         fi
11085         ;;
11086
11087       RC)
11088
11089
11090
11091 # Source file extension for RC test sources.
11092 ac_ext=rc
11093
11094 # Object file extension for compiled RC test sources.
11095 objext=o
11096 objext_RC=$objext
11097
11098 # Code to be used in simple compile tests
11099 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11100
11101 # Code to be used in simple link tests
11102 lt_simple_link_test_code="$lt_simple_compile_test_code"
11103
11104 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11105
11106 # If no C compiler was specified, use CC.
11107 LTCC=${LTCC-"$CC"}
11108
11109 # Allow CC to be a program name with arguments.
11110 compiler=$CC
11111
11112
11113 # save warnings/boilerplate of simple test code
11114 ac_outfile=conftest.$ac_objext
11115 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11116 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11117 _lt_compiler_boilerplate=`cat conftest.err`
11118 $rm conftest*
11119
11120 ac_outfile=conftest.$ac_objext
11121 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11122 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11123 _lt_linker_boilerplate=`cat conftest.err`
11124 $rm conftest*
11125
11126
11127 # Allow CC to be a program name with arguments.
11128 lt_save_CC="$CC"
11129 CC=${RC-"windres"}
11130 compiler=$CC
11131 compiler_RC=$CC
11132 for cc_temp in $compiler""; do
11133   case $cc_temp in
11134     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11135     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11136     \-*) ;;
11137     *) break;;
11138   esac
11139 done
11140 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11141
11142 lt_cv_prog_compiler_c_o_RC=yes
11143
11144 # The else clause should only fire when bootstrapping the
11145 # libtool distribution, otherwise you forgot to ship ltmain.sh
11146 # with your package, and you will get complaints that there are
11147 # no rules to generate ltmain.sh.
11148 if test -f "$ltmain"; then
11149   # See if we are running on zsh, and set the options which allow our commands through
11150   # without removal of \ escapes.
11151   if test -n "${ZSH_VERSION+set}" ; then
11152     setopt NO_GLOB_SUBST
11153   fi
11154   # Now quote all the things that may contain metacharacters while being
11155   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11156   # variables and quote the copies for generation of the libtool script.
11157   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11158     SED SHELL STRIP \
11159     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11160     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11161     deplibs_check_method reload_flag reload_cmds need_locks \
11162     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11163     lt_cv_sys_global_symbol_to_c_name_address \
11164     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11165     old_postinstall_cmds old_postuninstall_cmds \
11166     compiler_RC \
11167     CC_RC \
11168     LD_RC \
11169     lt_prog_compiler_wl_RC \
11170     lt_prog_compiler_pic_RC \
11171     lt_prog_compiler_static_RC \
11172     lt_prog_compiler_no_builtin_flag_RC \
11173     export_dynamic_flag_spec_RC \
11174     thread_safe_flag_spec_RC \
11175     whole_archive_flag_spec_RC \
11176     enable_shared_with_static_runtimes_RC \
11177     old_archive_cmds_RC \
11178     old_archive_from_new_cmds_RC \
11179     predep_objects_RC \
11180     postdep_objects_RC \
11181     predeps_RC \
11182     postdeps_RC \
11183     compiler_lib_search_path_RC \
11184     archive_cmds_RC \
11185     archive_expsym_cmds_RC \
11186     postinstall_cmds_RC \
11187     postuninstall_cmds_RC \
11188     old_archive_from_expsyms_cmds_RC \
11189     allow_undefined_flag_RC \
11190     no_undefined_flag_RC \
11191     export_symbols_cmds_RC \
11192     hardcode_libdir_flag_spec_RC \
11193     hardcode_libdir_flag_spec_ld_RC \
11194     hardcode_libdir_separator_RC \
11195     hardcode_automatic_RC \
11196     module_cmds_RC \
11197     module_expsym_cmds_RC \
11198     lt_cv_prog_compiler_c_o_RC \
11199     exclude_expsyms_RC \
11200     include_expsyms_RC; do
11201
11202     case $var in
11203     old_archive_cmds_RC | \
11204     old_archive_from_new_cmds_RC | \
11205     archive_cmds_RC | \
11206     archive_expsym_cmds_RC | \
11207     module_cmds_RC | \
11208     module_expsym_cmds_RC | \
11209     old_archive_from_expsyms_cmds_RC | \
11210     export_symbols_cmds_RC | \
11211     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11212     postinstall_cmds | postuninstall_cmds | \
11213     old_postinstall_cmds | old_postuninstall_cmds | \
11214     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11215       # Double-quote double-evaled strings.
11216       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11217       ;;
11218     *)
11219       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11220       ;;
11221     esac
11222   done
11223
11224   case $lt_echo in
11225   *'\$0 --fallback-echo"')
11226     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11227     ;;
11228   esac
11229
11230 cfgfile="$ofile"
11231
11232   cat <<__EOF__ >> "$cfgfile"
11233 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11234
11235 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11236
11237 # Shell to use when invoking shell scripts.
11238 SHELL=$lt_SHELL
11239
11240 # Whether or not to build shared libraries.
11241 build_libtool_libs=$enable_shared
11242
11243 # Whether or not to build static libraries.
11244 build_old_libs=$enable_static
11245
11246 # Whether or not to add -lc for building shared libraries.
11247 build_libtool_need_lc=$archive_cmds_need_lc_RC
11248
11249 # Whether or not to disallow shared libs when runtime libs are static
11250 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11251
11252 # Whether or not to optimize for fast installation.
11253 fast_install=$enable_fast_install
11254
11255 # The host system.
11256 host_alias=$host_alias
11257 host=$host
11258 host_os=$host_os
11259
11260 # The build system.
11261 build_alias=$build_alias
11262 build=$build
11263 build_os=$build_os
11264
11265 # An echo program that does not interpret backslashes.
11266 echo=$lt_echo
11267
11268 # The archiver.
11269 AR=$lt_AR
11270 AR_FLAGS=$lt_AR_FLAGS
11271
11272 # A C compiler.
11273 LTCC=$lt_LTCC
11274
11275 # A language-specific compiler.
11276 CC=$lt_compiler_RC
11277
11278 # Is the compiler the GNU C compiler?
11279 with_gcc=$GCC_RC
11280
11281 # An ERE matcher.
11282 EGREP=$lt_EGREP
11283
11284 # The linker used to build libraries.
11285 LD=$lt_LD_RC
11286
11287 # Whether we need hard or soft links.
11288 LN_S=$lt_LN_S
11289
11290 # A BSD-compatible nm program.
11291 NM=$lt_NM
11292
11293 # A symbol stripping program
11294 STRIP=$lt_STRIP
11295
11296 # Used to examine libraries when file_magic_cmd begins "file"
11297 MAGIC_CMD=$MAGIC_CMD
11298
11299 # Used on cygwin: DLL creation program.
11300 DLLTOOL="$DLLTOOL"
11301
11302 # Used on cygwin: object dumper.
11303 OBJDUMP="$OBJDUMP"
11304
11305 # Used on cygwin: assembler.
11306 AS="$AS"
11307
11308 # The name of the directory that contains temporary libtool files.
11309 objdir=$objdir
11310
11311 # How to create reloadable object files.
11312 reload_flag=$lt_reload_flag
11313 reload_cmds=$lt_reload_cmds
11314
11315 # How to pass a linker flag through the compiler.
11316 wl=$lt_lt_prog_compiler_wl_RC
11317
11318 # Object file suffix (normally "o").
11319 objext="$ac_objext"
11320
11321 # Old archive suffix (normally "a").
11322 libext="$libext"
11323
11324 # Shared library suffix (normally ".so").
11325 shrext_cmds='$shrext_cmds'
11326
11327 # Executable file suffix (normally "").
11328 exeext="$exeext"
11329
11330 # Additional compiler flags for building library objects.
11331 pic_flag=$lt_lt_prog_compiler_pic_RC
11332 pic_mode=$pic_mode
11333
11334 # What is the maximum length of a command?
11335 max_cmd_len=$lt_cv_sys_max_cmd_len
11336
11337 # Does compiler simultaneously support -c and -o options?
11338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11339
11340 # Must we lock files when doing compilation?
11341 need_locks=$lt_need_locks
11342
11343 # Do we need the lib prefix for modules?
11344 need_lib_prefix=$need_lib_prefix
11345
11346 # Do we need a version for libraries?
11347 need_version=$need_version
11348
11349 # Whether dlopen is supported.
11350 dlopen_support=$enable_dlopen
11351
11352 # Whether dlopen of programs is supported.
11353 dlopen_self=$enable_dlopen_self
11354
11355 # Whether dlopen of statically linked programs is supported.
11356 dlopen_self_static=$enable_dlopen_self_static
11357
11358 # Compiler flag to prevent dynamic linking.
11359 link_static_flag=$lt_lt_prog_compiler_static_RC
11360
11361 # Compiler flag to turn off builtin functions.
11362 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11363
11364 # Compiler flag to allow reflexive dlopens.
11365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11366
11367 # Compiler flag to generate shared objects directly from archives.
11368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11369
11370 # Compiler flag to generate thread-safe objects.
11371 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11372
11373 # Library versioning type.
11374 version_type=$version_type
11375
11376 # Format of library name prefix.
11377 libname_spec=$lt_libname_spec
11378
11379 # List of archive names.  First name is the real one, the rest are links.
11380 # The last name is the one that the linker finds with -lNAME.
11381 library_names_spec=$lt_library_names_spec
11382
11383 # The coded name of the library, if different from the real name.
11384 soname_spec=$lt_soname_spec
11385
11386 # Commands used to build and install an old-style archive.
11387 RANLIB=$lt_RANLIB
11388 old_archive_cmds=$lt_old_archive_cmds_RC
11389 old_postinstall_cmds=$lt_old_postinstall_cmds
11390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11391
11392 # Create an old-style archive from a shared archive.
11393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11394
11395 # Create a temporary old-style archive to link instead of a shared archive.
11396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11397
11398 # Commands used to build and install a shared archive.
11399 archive_cmds=$lt_archive_cmds_RC
11400 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11401 postinstall_cmds=$lt_postinstall_cmds
11402 postuninstall_cmds=$lt_postuninstall_cmds
11403
11404 # Commands used to build a loadable module (assumed same as above if empty)
11405 module_cmds=$lt_module_cmds_RC
11406 module_expsym_cmds=$lt_module_expsym_cmds_RC
11407
11408 # Commands to strip libraries.
11409 old_striplib=$lt_old_striplib
11410 striplib=$lt_striplib
11411
11412 # Dependencies to place before the objects being linked to create a
11413 # shared library.
11414 predep_objects=$lt_predep_objects_RC
11415
11416 # Dependencies to place after the objects being linked to create a
11417 # shared library.
11418 postdep_objects=$lt_postdep_objects_RC
11419
11420 # Dependencies to place before the objects being linked to create a
11421 # shared library.
11422 predeps=$lt_predeps_RC
11423
11424 # Dependencies to place after the objects being linked to create a
11425 # shared library.
11426 postdeps=$lt_postdeps_RC
11427
11428 # The library search path used internally by the compiler when linking
11429 # a shared library.
11430 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11431
11432 # Method to check whether dependent libraries are shared objects.
11433 deplibs_check_method=$lt_deplibs_check_method
11434
11435 # Command to use when deplibs_check_method == file_magic.
11436 file_magic_cmd=$lt_file_magic_cmd
11437
11438 # Flag that allows shared libraries with undefined symbols to be built.
11439 allow_undefined_flag=$lt_allow_undefined_flag_RC
11440
11441 # Flag that forces no undefined symbols.
11442 no_undefined_flag=$lt_no_undefined_flag_RC
11443
11444 # Commands used to finish a libtool library installation in a directory.
11445 finish_cmds=$lt_finish_cmds
11446
11447 # Same as above, but a single script fragment to be evaled but not shown.
11448 finish_eval=$lt_finish_eval
11449
11450 # Take the output of nm and produce a listing of raw symbols and C names.
11451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11452
11453 # Transform the output of nm in a proper C declaration
11454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11455
11456 # Transform the output of nm in a C name address pair
11457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11458
11459 # This is the shared library runtime path variable.
11460 runpath_var=$runpath_var
11461
11462 # This is the shared library path variable.
11463 shlibpath_var=$shlibpath_var
11464
11465 # Is shlibpath searched before the hard-coded library search path?
11466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11467
11468 # How to hardcode a shared library path into an executable.
11469 hardcode_action=$hardcode_action_RC
11470
11471 # Whether we should hardcode library paths into libraries.
11472 hardcode_into_libs=$hardcode_into_libs
11473
11474 # Flag to hardcode \$libdir into a binary during linking.
11475 # This must work even if \$libdir does not exist.
11476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11477
11478 # If ld is used when linking, flag to hardcode \$libdir into
11479 # a binary during linking. This must work even if \$libdir does
11480 # not exist.
11481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11482
11483 # Whether we need a single -rpath flag with a separated argument.
11484 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11485
11486 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11487 # resulting binary.
11488 hardcode_direct=$hardcode_direct_RC
11489
11490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11491 # resulting binary.
11492 hardcode_minus_L=$hardcode_minus_L_RC
11493
11494 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11495 # the resulting binary.
11496 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11497
11498 # Set to yes if building a shared library automatically hardcodes DIR into the library
11499 # and all subsequent libraries and executables linked against it.
11500 hardcode_automatic=$hardcode_automatic_RC
11501
11502 # Variables whose values should be saved in libtool wrapper scripts and
11503 # restored at relink time.
11504 variables_saved_for_relink="$variables_saved_for_relink"
11505
11506 # Whether libtool must link a program against all its dependency libraries.
11507 link_all_deplibs=$link_all_deplibs_RC
11508
11509 # Compile-time system search path for libraries
11510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11511
11512 # Run-time system search path for libraries
11513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11514
11515 # Fix the shell variable \$srcfile for the compiler.
11516 fix_srcfile_path="$fix_srcfile_path_RC"
11517
11518 # Set to yes if exported symbols are required.
11519 always_export_symbols=$always_export_symbols_RC
11520
11521 # The commands to list exported symbols.
11522 export_symbols_cmds=$lt_export_symbols_cmds_RC
11523
11524 # The commands to extract the exported symbol list from a shared archive.
11525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11526
11527 # Symbols that should not be listed in the preloaded symbols.
11528 exclude_expsyms=$lt_exclude_expsyms_RC
11529
11530 # Symbols that must always be exported.
11531 include_expsyms=$lt_include_expsyms_RC
11532
11533 # ### END LIBTOOL TAG CONFIG: $tagname
11534
11535 __EOF__
11536
11537
11538 else
11539   # If there is no Makefile yet, we rely on a make rule to execute
11540   # `config.status --recheck' to rerun these tests and create the
11541   # libtool script then.
11542   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11543   if test -f "$ltmain_in"; then
11544     test -f Makefile && make "$ltmain"
11545   fi
11546 fi
11547
11548
11549 ac_ext=c
11550 ac_cpp='$CPP $CPPFLAGS'
11551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11554
11555 CC="$lt_save_CC"
11556
11557         ;;
11558
11559       *)
11560         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11561 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11562    { (exit 1); exit 1; }; }
11563         ;;
11564       esac
11565
11566       # Append the new tag name to the list of available tags.
11567       if test -n "$tagname" ; then
11568       available_tags="$available_tags $tagname"
11569     fi
11570     fi
11571   done
11572   IFS="$lt_save_ifs"
11573
11574   # Now substitute the updated list of available tags.
11575   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11576     mv "${ofile}T" "$ofile"
11577     chmod +x "$ofile"
11578   else
11579     rm -f "${ofile}T"
11580     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11581 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11582    { (exit 1); exit 1; }; }
11583   fi
11584 fi
11585
11586
11587
11588 # This can be used to rebuild libtool when needed
11589 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11590
11591 # Always use our own libtool.
11592 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11593
11594 # Prevent multiple expansion
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605 ol_link_perl=no
11606 if test $ol_enable_perl != no ; then
11607         # Extract the first word of "perl", so it can be a program name with args.
11608 set dummy perl; ac_word=$2
11609 echo "$as_me:$LINENO: checking for $ac_word" >&5
11610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11611 if test "${ac_cv_path_PERLBIN+set}" = set; then
11612   echo $ECHO_N "(cached) $ECHO_C" >&6
11613 else
11614   case $PERLBIN in
11615   [\\/]* | ?:[\\/]*)
11616   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11617   ;;
11618   *)
11619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in $PATH
11621 do
11622   IFS=$as_save_IFS
11623   test -z "$as_dir" && as_dir=.
11624   for ac_exec_ext in '' $ac_executable_extensions; do
11625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11626     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11628     break 2
11629   fi
11630 done
11631 done
11632
11633   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11634   ;;
11635 esac
11636 fi
11637 PERLBIN=$ac_cv_path_PERLBIN
11638
11639 if test -n "$PERLBIN"; then
11640   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11641 echo "${ECHO_T}$PERLBIN" >&6
11642 else
11643   echo "$as_me:$LINENO: result: no" >&5
11644 echo "${ECHO_T}no" >&6
11645 fi
11646
11647
11648         if test "no$PERLBIN" = "no" ; then
11649                 if test $ol_enable_perl = yes ; then
11650                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11651 echo "$as_me: error: could not locate perl" >&2;}
11652    { (exit 1); exit 1; }; }
11653                 fi
11654
11655         else
11656                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11657                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11658
11659                 if test x"$ol_enable_perl" = "xyes" ; then
11660                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11661                 else
11662                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11663                 fi
11664                                 ol_link_perl=yes
11665         fi
11666 fi
11667
11668 ac_ext=c
11669 ac_cpp='$CPP $CPPFLAGS'
11670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11673 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11674 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11675 # On Suns, sometimes $CPP names a directory.
11676 if test -n "$CPP" && test -d "$CPP"; then
11677   CPP=
11678 fi
11679 if test -z "$CPP"; then
11680   if test "${ac_cv_prog_CPP+set}" = set; then
11681   echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683       # Double quotes because CPP needs to be expanded
11684     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11685     do
11686       ac_preproc_ok=false
11687 for ac_c_preproc_warn_flag in '' yes
11688 do
11689   # Use a header file that comes with gcc, so configuring glibc
11690   # with a fresh cross-compiler works.
11691   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11692   # <limits.h> exists even on freestanding compilers.
11693   # On the NeXT, cc -E runs the code through the compiler's parser,
11694   # not just through cpp. "Syntax error" is here to catch this case.
11695   cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h.  */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h.  */
11701 #ifdef __STDC__
11702 # include <limits.h>
11703 #else
11704 # include <assert.h>
11705 #endif
11706                      Syntax error
11707 _ACEOF
11708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11709   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11710   ac_status=$?
11711   grep -v '^ *+' conftest.er1 >conftest.err
11712   rm -f conftest.er1
11713   cat conftest.err >&5
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); } >/dev/null; then
11716   if test -s conftest.err; then
11717     ac_cpp_err=$ac_c_preproc_warn_flag
11718     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11719   else
11720     ac_cpp_err=
11721   fi
11722 else
11723   ac_cpp_err=yes
11724 fi
11725 if test -z "$ac_cpp_err"; then
11726   :
11727 else
11728   echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11730
11731   # Broken: fails on valid input.
11732 continue
11733 fi
11734 rm -f conftest.err conftest.$ac_ext
11735
11736   # OK, works on sane cases.  Now check whether non-existent headers
11737   # can be detected and how.
11738   cat >conftest.$ac_ext <<_ACEOF
11739 /* confdefs.h.  */
11740 _ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h.  */
11744 #include <ac_nonexistent.h>
11745 _ACEOF
11746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11747   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11748   ac_status=$?
11749   grep -v '^ *+' conftest.er1 >conftest.err
11750   rm -f conftest.er1
11751   cat conftest.err >&5
11752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753   (exit $ac_status); } >/dev/null; then
11754   if test -s conftest.err; then
11755     ac_cpp_err=$ac_c_preproc_warn_flag
11756     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11757   else
11758     ac_cpp_err=
11759   fi
11760 else
11761   ac_cpp_err=yes
11762 fi
11763 if test -z "$ac_cpp_err"; then
11764   # Broken: success on invalid input.
11765 continue
11766 else
11767   echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11769
11770   # Passes both tests.
11771 ac_preproc_ok=:
11772 break
11773 fi
11774 rm -f conftest.err conftest.$ac_ext
11775
11776 done
11777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11778 rm -f conftest.err conftest.$ac_ext
11779 if $ac_preproc_ok; then
11780   break
11781 fi
11782
11783     done
11784     ac_cv_prog_CPP=$CPP
11785
11786 fi
11787   CPP=$ac_cv_prog_CPP
11788 else
11789   ac_cv_prog_CPP=$CPP
11790 fi
11791 echo "$as_me:$LINENO: result: $CPP" >&5
11792 echo "${ECHO_T}$CPP" >&6
11793 ac_preproc_ok=false
11794 for ac_c_preproc_warn_flag in '' yes
11795 do
11796   # Use a header file that comes with gcc, so configuring glibc
11797   # with a fresh cross-compiler works.
11798   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11799   # <limits.h> exists even on freestanding compilers.
11800   # On the NeXT, cc -E runs the code through the compiler's parser,
11801   # not just through cpp. "Syntax error" is here to catch this case.
11802   cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h.  */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h.  */
11808 #ifdef __STDC__
11809 # include <limits.h>
11810 #else
11811 # include <assert.h>
11812 #endif
11813                      Syntax error
11814 _ACEOF
11815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11817   ac_status=$?
11818   grep -v '^ *+' conftest.er1 >conftest.err
11819   rm -f conftest.er1
11820   cat conftest.err >&5
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); } >/dev/null; then
11823   if test -s conftest.err; then
11824     ac_cpp_err=$ac_c_preproc_warn_flag
11825     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11826   else
11827     ac_cpp_err=
11828   fi
11829 else
11830   ac_cpp_err=yes
11831 fi
11832 if test -z "$ac_cpp_err"; then
11833   :
11834 else
11835   echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838   # Broken: fails on valid input.
11839 continue
11840 fi
11841 rm -f conftest.err conftest.$ac_ext
11842
11843   # OK, works on sane cases.  Now check whether non-existent headers
11844   # can be detected and how.
11845   cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h.  */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h.  */
11851 #include <ac_nonexistent.h>
11852 _ACEOF
11853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11854   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11855   ac_status=$?
11856   grep -v '^ *+' conftest.er1 >conftest.err
11857   rm -f conftest.er1
11858   cat conftest.err >&5
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); } >/dev/null; then
11861   if test -s conftest.err; then
11862     ac_cpp_err=$ac_c_preproc_warn_flag
11863     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11864   else
11865     ac_cpp_err=
11866   fi
11867 else
11868   ac_cpp_err=yes
11869 fi
11870 if test -z "$ac_cpp_err"; then
11871   # Broken: success on invalid input.
11872 continue
11873 else
11874   echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11876
11877   # Passes both tests.
11878 ac_preproc_ok=:
11879 break
11880 fi
11881 rm -f conftest.err conftest.$ac_ext
11882
11883 done
11884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11885 rm -f conftest.err conftest.$ac_ext
11886 if $ac_preproc_ok; then
11887   :
11888 else
11889   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11890 See \`config.log' for more details." >&5
11891 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11892 See \`config.log' for more details." >&2;}
11893    { (exit 1); exit 1; }; }
11894 fi
11895
11896 ac_ext=c
11897 ac_cpp='$CPP $CPPFLAGS'
11898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11901
11902 echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
11903 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6
11904 if test "${ol_cv_msvc+set}" = set; then
11905   echo $ECHO_N "(cached) $ECHO_C" >&6
11906 else
11907   cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h.  */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h.  */
11913
11914 #ifndef _MSC_VER
11915 #include <__FOO__/generate_error.h>
11916 #endif
11917
11918 _ACEOF
11919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11921   ac_status=$?
11922   grep -v '^ *+' conftest.er1 >conftest.err
11923   rm -f conftest.er1
11924   cat conftest.err >&5
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); } >/dev/null; then
11927   if test -s conftest.err; then
11928     ac_cpp_err=$ac_c_preproc_warn_flag
11929     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11930   else
11931     ac_cpp_err=
11932   fi
11933 else
11934   ac_cpp_err=yes
11935 fi
11936 if test -z "$ac_cpp_err"; then
11937   ol_cv_msvc=yes
11938 else
11939   echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11941
11942   ol_cv_msvc=no
11943 fi
11944 rm -f conftest.err conftest.$ac_ext
11945 fi
11946 echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
11947 echo "${ECHO_T}$ol_cv_msvc" >&6
11948
11949 case $host_os in
11950   *mingw32* ) ac_cv_mingw32=yes ;;
11951   *cygwin* ) ac_cv_cygwin=yes ;;
11952   *interix* ) ac_cv_interix=yes ;;
11953 esac
11954
11955
11956
11957
11958 cat >>confdefs.h <<_ACEOF
11959 #define EXEEXT "${EXEEXT}"
11960 _ACEOF
11961
11962
11963 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11964 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11965 if test "${ac_cv_lib_be_be_app+set}" = set; then
11966   echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968   ac_check_lib_save_LIBS=$LIBS
11969 LIBS="-lbe -lroot -lnet $LIBS"
11970 cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h.  */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h.  */
11976
11977 /* Override any gcc2 internal prototype to avoid an error.  */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 /* We use char because int might match the return type of a gcc2
11982    builtin and then its argument prototype would still apply.  */
11983 char be_app ();
11984 int
11985 main ()
11986 {
11987 be_app ();
11988   ;
11989   return 0;
11990 }
11991 _ACEOF
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994   (eval $ac_link) 2>conftest.er1
11995   ac_status=$?
11996   grep -v '^ *+' conftest.er1 >conftest.err
11997   rm -f conftest.er1
11998   cat conftest.err >&5
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } &&
12001          { ac_try='test -z "$ac_c_werror_flag"
12002                          || test ! -s conftest.err'
12003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004   (eval $ac_try) 2>&5
12005   ac_status=$?
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); }; } &&
12008          { ac_try='test -s conftest$ac_exeext'
12009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010   (eval $ac_try) 2>&5
12011   ac_status=$?
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); }; }; then
12014   ac_cv_lib_be_be_app=yes
12015 else
12016   echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12018
12019 ac_cv_lib_be_be_app=no
12020 fi
12021 rm -f conftest.err conftest.$ac_objext \
12022       conftest$ac_exeext conftest.$ac_ext
12023 LIBS=$ac_check_lib_save_LIBS
12024 fi
12025 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12026 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
12027 if test $ac_cv_lib_be_be_app = yes; then
12028   LIBS="$LIBS -lbe -lroot -lnet"
12029 else
12030   :
12031 fi
12032
12033
12034 ac_ext=c
12035 ac_cpp='$CPP $CPPFLAGS'
12036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12039 if test -n "$ac_tool_prefix"; then
12040   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12041 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12042 echo "$as_me:$LINENO: checking for $ac_word" >&5
12043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12044 if test "${ac_cv_prog_CC+set}" = set; then
12045   echo $ECHO_N "(cached) $ECHO_C" >&6
12046 else
12047   if test -n "$CC"; then
12048   ac_cv_prog_CC="$CC" # Let the user override the test.
12049 else
12050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051 for as_dir in $PATH
12052 do
12053   IFS=$as_save_IFS
12054   test -z "$as_dir" && as_dir=.
12055   for ac_exec_ext in '' $ac_executable_extensions; do
12056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12057     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12059     break 2
12060   fi
12061 done
12062 done
12063
12064 fi
12065 fi
12066 CC=$ac_cv_prog_CC
12067 if test -n "$CC"; then
12068   echo "$as_me:$LINENO: result: $CC" >&5
12069 echo "${ECHO_T}$CC" >&6
12070 else
12071   echo "$as_me:$LINENO: result: no" >&5
12072 echo "${ECHO_T}no" >&6
12073 fi
12074
12075 fi
12076 if test -z "$ac_cv_prog_CC"; then
12077   ac_ct_CC=$CC
12078   # Extract the first word of "gcc", so it can be a program name with args.
12079 set dummy gcc; ac_word=$2
12080 echo "$as_me:$LINENO: checking for $ac_word" >&5
12081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12083   echo $ECHO_N "(cached) $ECHO_C" >&6
12084 else
12085   if test -n "$ac_ct_CC"; then
12086   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12087 else
12088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089 for as_dir in $PATH
12090 do
12091   IFS=$as_save_IFS
12092   test -z "$as_dir" && as_dir=.
12093   for ac_exec_ext in '' $ac_executable_extensions; do
12094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12095     ac_cv_prog_ac_ct_CC="gcc"
12096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12097     break 2
12098   fi
12099 done
12100 done
12101
12102 fi
12103 fi
12104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12105 if test -n "$ac_ct_CC"; then
12106   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12107 echo "${ECHO_T}$ac_ct_CC" >&6
12108 else
12109   echo "$as_me:$LINENO: result: no" >&5
12110 echo "${ECHO_T}no" >&6
12111 fi
12112
12113   CC=$ac_ct_CC
12114 else
12115   CC="$ac_cv_prog_CC"
12116 fi
12117
12118 if test -z "$CC"; then
12119   if test -n "$ac_tool_prefix"; then
12120   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12121 set dummy ${ac_tool_prefix}cc; ac_word=$2
12122 echo "$as_me:$LINENO: checking for $ac_word" >&5
12123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12124 if test "${ac_cv_prog_CC+set}" = set; then
12125   echo $ECHO_N "(cached) $ECHO_C" >&6
12126 else
12127   if test -n "$CC"; then
12128   ac_cv_prog_CC="$CC" # Let the user override the test.
12129 else
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131 for as_dir in $PATH
12132 do
12133   IFS=$as_save_IFS
12134   test -z "$as_dir" && as_dir=.
12135   for ac_exec_ext in '' $ac_executable_extensions; do
12136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12137     ac_cv_prog_CC="${ac_tool_prefix}cc"
12138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12139     break 2
12140   fi
12141 done
12142 done
12143
12144 fi
12145 fi
12146 CC=$ac_cv_prog_CC
12147 if test -n "$CC"; then
12148   echo "$as_me:$LINENO: result: $CC" >&5
12149 echo "${ECHO_T}$CC" >&6
12150 else
12151   echo "$as_me:$LINENO: result: no" >&5
12152 echo "${ECHO_T}no" >&6
12153 fi
12154
12155 fi
12156 if test -z "$ac_cv_prog_CC"; then
12157   ac_ct_CC=$CC
12158   # Extract the first word of "cc", so it can be a program name with args.
12159 set dummy cc; ac_word=$2
12160 echo "$as_me:$LINENO: checking for $ac_word" >&5
12161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165   if test -n "$ac_ct_CC"; then
12166   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12167 else
12168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in $PATH
12170 do
12171   IFS=$as_save_IFS
12172   test -z "$as_dir" && as_dir=.
12173   for ac_exec_ext in '' $ac_executable_extensions; do
12174   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12175     ac_cv_prog_ac_ct_CC="cc"
12176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12177     break 2
12178   fi
12179 done
12180 done
12181
12182 fi
12183 fi
12184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12185 if test -n "$ac_ct_CC"; then
12186   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12187 echo "${ECHO_T}$ac_ct_CC" >&6
12188 else
12189   echo "$as_me:$LINENO: result: no" >&5
12190 echo "${ECHO_T}no" >&6
12191 fi
12192
12193   CC=$ac_ct_CC
12194 else
12195   CC="$ac_cv_prog_CC"
12196 fi
12197
12198 fi
12199 if test -z "$CC"; then
12200   # Extract the first word of "cc", so it can be a program name with args.
12201 set dummy cc; ac_word=$2
12202 echo "$as_me:$LINENO: checking for $ac_word" >&5
12203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12204 if test "${ac_cv_prog_CC+set}" = set; then
12205   echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207   if test -n "$CC"; then
12208   ac_cv_prog_CC="$CC" # Let the user override the test.
12209 else
12210   ac_prog_rejected=no
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12213 do
12214   IFS=$as_save_IFS
12215   test -z "$as_dir" && as_dir=.
12216   for ac_exec_ext in '' $ac_executable_extensions; do
12217   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12219        ac_prog_rejected=yes
12220        continue
12221      fi
12222     ac_cv_prog_CC="cc"
12223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12224     break 2
12225   fi
12226 done
12227 done
12228
12229 if test $ac_prog_rejected = yes; then
12230   # We found a bogon in the path, so make sure we never use it.
12231   set dummy $ac_cv_prog_CC
12232   shift
12233   if test $# != 0; then
12234     # We chose a different compiler from the bogus one.
12235     # However, it has the same basename, so the bogon will be chosen
12236     # first if we set CC to just the basename; use the full file name.
12237     shift
12238     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12239   fi
12240 fi
12241 fi
12242 fi
12243 CC=$ac_cv_prog_CC
12244 if test -n "$CC"; then
12245   echo "$as_me:$LINENO: result: $CC" >&5
12246 echo "${ECHO_T}$CC" >&6
12247 else
12248   echo "$as_me:$LINENO: result: no" >&5
12249 echo "${ECHO_T}no" >&6
12250 fi
12251
12252 fi
12253 if test -z "$CC"; then
12254   if test -n "$ac_tool_prefix"; then
12255   for ac_prog in cl
12256   do
12257     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12259 echo "$as_me:$LINENO: checking for $ac_word" >&5
12260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12261 if test "${ac_cv_prog_CC+set}" = set; then
12262   echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264   if test -n "$CC"; then
12265   ac_cv_prog_CC="$CC" # Let the user override the test.
12266 else
12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268 for as_dir in $PATH
12269 do
12270   IFS=$as_save_IFS
12271   test -z "$as_dir" && as_dir=.
12272   for ac_exec_ext in '' $ac_executable_extensions; do
12273   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12274     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12276     break 2
12277   fi
12278 done
12279 done
12280
12281 fi
12282 fi
12283 CC=$ac_cv_prog_CC
12284 if test -n "$CC"; then
12285   echo "$as_me:$LINENO: result: $CC" >&5
12286 echo "${ECHO_T}$CC" >&6
12287 else
12288   echo "$as_me:$LINENO: result: no" >&5
12289 echo "${ECHO_T}no" >&6
12290 fi
12291
12292     test -n "$CC" && break
12293   done
12294 fi
12295 if test -z "$CC"; then
12296   ac_ct_CC=$CC
12297   for ac_prog in cl
12298 do
12299   # Extract the first word of "$ac_prog", so it can be a program name with args.
12300 set dummy $ac_prog; ac_word=$2
12301 echo "$as_me:$LINENO: checking for $ac_word" >&5
12302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12304   echo $ECHO_N "(cached) $ECHO_C" >&6
12305 else
12306   if test -n "$ac_ct_CC"; then
12307   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12308 else
12309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310 for as_dir in $PATH
12311 do
12312   IFS=$as_save_IFS
12313   test -z "$as_dir" && as_dir=.
12314   for ac_exec_ext in '' $ac_executable_extensions; do
12315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12316     ac_cv_prog_ac_ct_CC="$ac_prog"
12317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12318     break 2
12319   fi
12320 done
12321 done
12322
12323 fi
12324 fi
12325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12326 if test -n "$ac_ct_CC"; then
12327   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12328 echo "${ECHO_T}$ac_ct_CC" >&6
12329 else
12330   echo "$as_me:$LINENO: result: no" >&5
12331 echo "${ECHO_T}no" >&6
12332 fi
12333
12334   test -n "$ac_ct_CC" && break
12335 done
12336
12337   CC=$ac_ct_CC
12338 fi
12339
12340 fi
12341
12342
12343 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12344 See \`config.log' for more details." >&5
12345 echo "$as_me: error: no acceptable C compiler found in \$PATH
12346 See \`config.log' for more details." >&2;}
12347    { (exit 1); exit 1; }; }
12348
12349 # Provide some information about the compiler.
12350 echo "$as_me:$LINENO:" \
12351      "checking for C compiler version" >&5
12352 ac_compiler=`set X $ac_compile; echo $2`
12353 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12354   (eval $ac_compiler --version </dev/null >&5) 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); }
12358 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12359   (eval $ac_compiler -v </dev/null >&5) 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }
12363 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12364   (eval $ac_compiler -V </dev/null >&5) 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); }
12368
12369 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12370 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12371 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12372   echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374   cat >conftest.$ac_ext <<_ACEOF
12375 /* confdefs.h.  */
12376 _ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h.  */
12380
12381 int
12382 main ()
12383 {
12384 #ifndef __GNUC__
12385        choke me
12386 #endif
12387
12388   ;
12389   return 0;
12390 }
12391 _ACEOF
12392 rm -f conftest.$ac_objext
12393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12394   (eval $ac_compile) 2>conftest.er1
12395   ac_status=$?
12396   grep -v '^ *+' conftest.er1 >conftest.err
12397   rm -f conftest.er1
12398   cat conftest.err >&5
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); } &&
12401          { ac_try='test -z "$ac_c_werror_flag"
12402                          || test ! -s conftest.err'
12403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404   (eval $ac_try) 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); }; } &&
12408          { ac_try='test -s conftest.$ac_objext'
12409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410   (eval $ac_try) 2>&5
12411   ac_status=$?
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); }; }; then
12414   ac_compiler_gnu=yes
12415 else
12416   echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 ac_compiler_gnu=no
12420 fi
12421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12423
12424 fi
12425 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12426 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12427 GCC=`test $ac_compiler_gnu = yes && echo yes`
12428 ac_test_CFLAGS=${CFLAGS+set}
12429 ac_save_CFLAGS=$CFLAGS
12430 CFLAGS="-g"
12431 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12432 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12433 if test "${ac_cv_prog_cc_g+set}" = set; then
12434   echo $ECHO_N "(cached) $ECHO_C" >&6
12435 else
12436   cat >conftest.$ac_ext <<_ACEOF
12437 /* confdefs.h.  */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h.  */
12442
12443 int
12444 main ()
12445 {
12446
12447   ;
12448   return 0;
12449 }
12450 _ACEOF
12451 rm -f conftest.$ac_objext
12452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12453   (eval $ac_compile) 2>conftest.er1
12454   ac_status=$?
12455   grep -v '^ *+' conftest.er1 >conftest.err
12456   rm -f conftest.er1
12457   cat conftest.err >&5
12458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); } &&
12460          { ac_try='test -z "$ac_c_werror_flag"
12461                          || test ! -s conftest.err'
12462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463   (eval $ac_try) 2>&5
12464   ac_status=$?
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); }; } &&
12467          { ac_try='test -s conftest.$ac_objext'
12468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469   (eval $ac_try) 2>&5
12470   ac_status=$?
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); }; }; then
12473   ac_cv_prog_cc_g=yes
12474 else
12475   echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12477
12478 ac_cv_prog_cc_g=no
12479 fi
12480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12481 fi
12482 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12483 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12484 if test "$ac_test_CFLAGS" = set; then
12485   CFLAGS=$ac_save_CFLAGS
12486 elif test $ac_cv_prog_cc_g = yes; then
12487   if test "$GCC" = yes; then
12488     CFLAGS="-g -O2"
12489   else
12490     CFLAGS="-g"
12491   fi
12492 else
12493   if test "$GCC" = yes; then
12494     CFLAGS="-O2"
12495   else
12496     CFLAGS=
12497   fi
12498 fi
12499 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12500 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12501 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12502   echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504   ac_cv_prog_cc_stdc=no
12505 ac_save_CC=$CC
12506 cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h.  */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h.  */
12512 #include <stdarg.h>
12513 #include <stdio.h>
12514 #include <sys/types.h>
12515 #include <sys/stat.h>
12516 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12517 struct buf { int x; };
12518 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12519 static char *e (p, i)
12520      char **p;
12521      int i;
12522 {
12523   return p[i];
12524 }
12525 static char *f (char * (*g) (char **, int), char **p, ...)
12526 {
12527   char *s;
12528   va_list v;
12529   va_start (v,p);
12530   s = g (p, va_arg (v,int));
12531   va_end (v);
12532   return s;
12533 }
12534
12535 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12536    function prototypes and stuff, but not '\xHH' hex character constants.
12537    These don't provoke an error unfortunately, instead are silently treated
12538    as 'x'.  The following induces an error, until -std1 is added to get
12539    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12540    array size at least.  It's necessary to write '\x00'==0 to get something
12541    that's true only with -std1.  */
12542 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12543
12544 int test (int i, double x);
12545 struct s1 {int (*f) (int a);};
12546 struct s2 {int (*f) (double a);};
12547 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12548 int argc;
12549 char **argv;
12550 int
12551 main ()
12552 {
12553 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12554   ;
12555   return 0;
12556 }
12557 _ACEOF
12558 # Don't try gcc -ansi; that turns off useful extensions and
12559 # breaks some systems' header files.
12560 # AIX                   -qlanglvl=ansi
12561 # Ultrix and OSF/1      -std1
12562 # HP-UX 10.20 and later -Ae
12563 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12564 # SVR4                  -Xc -D__EXTENSIONS__
12565 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12566 do
12567   CC="$ac_save_CC $ac_arg"
12568   rm -f conftest.$ac_objext
12569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12570   (eval $ac_compile) 2>conftest.er1
12571   ac_status=$?
12572   grep -v '^ *+' conftest.er1 >conftest.err
12573   rm -f conftest.er1
12574   cat conftest.err >&5
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); } &&
12577          { ac_try='test -z "$ac_c_werror_flag"
12578                          || test ! -s conftest.err'
12579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580   (eval $ac_try) 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); }; } &&
12584          { ac_try='test -s conftest.$ac_objext'
12585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586   (eval $ac_try) 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); }; }; then
12590   ac_cv_prog_cc_stdc=$ac_arg
12591 break
12592 else
12593   echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 fi
12597 rm -f conftest.err conftest.$ac_objext
12598 done
12599 rm -f conftest.$ac_ext conftest.$ac_objext
12600 CC=$ac_save_CC
12601
12602 fi
12603
12604 case "x$ac_cv_prog_cc_stdc" in
12605   x|xno)
12606     echo "$as_me:$LINENO: result: none needed" >&5
12607 echo "${ECHO_T}none needed" >&6 ;;
12608   *)
12609     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12610 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12611     CC="$CC $ac_cv_prog_cc_stdc" ;;
12612 esac
12613
12614 # Some people use a C++ compiler to compile C.  Since we use `exit',
12615 # in C++ we need to declare it.  In case someone uses the same compiler
12616 # for both compiling C and C++ we need to have the C++ compiler decide
12617 # the declaration of exit, since it's the most demanding environment.
12618 cat >conftest.$ac_ext <<_ACEOF
12619 #ifndef __cplusplus
12620   choke me
12621 #endif
12622 _ACEOF
12623 rm -f conftest.$ac_objext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12625   (eval $ac_compile) 2>conftest.er1
12626   ac_status=$?
12627   grep -v '^ *+' conftest.er1 >conftest.err
12628   rm -f conftest.er1
12629   cat conftest.err >&5
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); } &&
12632          { ac_try='test -z "$ac_c_werror_flag"
12633                          || test ! -s conftest.err'
12634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635   (eval $ac_try) 2>&5
12636   ac_status=$?
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); }; } &&
12639          { ac_try='test -s conftest.$ac_objext'
12640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641   (eval $ac_try) 2>&5
12642   ac_status=$?
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); }; }; then
12645   for ac_declaration in \
12646    '' \
12647    'extern "C" void std::exit (int) throw (); using std::exit;' \
12648    'extern "C" void std::exit (int); using std::exit;' \
12649    'extern "C" void exit (int) throw ();' \
12650    'extern "C" void exit (int);' \
12651    'void exit (int);'
12652 do
12653   cat >conftest.$ac_ext <<_ACEOF
12654 /* confdefs.h.  */
12655 _ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h.  */
12659 $ac_declaration
12660 #include <stdlib.h>
12661 int
12662 main ()
12663 {
12664 exit (42);
12665   ;
12666   return 0;
12667 }
12668 _ACEOF
12669 rm -f conftest.$ac_objext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671   (eval $ac_compile) 2>conftest.er1
12672   ac_status=$?
12673   grep -v '^ *+' conftest.er1 >conftest.err
12674   rm -f conftest.er1
12675   cat conftest.err >&5
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); } &&
12678          { ac_try='test -z "$ac_c_werror_flag"
12679                          || test ! -s conftest.err'
12680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681   (eval $ac_try) 2>&5
12682   ac_status=$?
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); }; } &&
12685          { ac_try='test -s conftest.$ac_objext'
12686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687   (eval $ac_try) 2>&5
12688   ac_status=$?
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); }; }; then
12691   :
12692 else
12693   echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12695
12696 continue
12697 fi
12698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12699   cat >conftest.$ac_ext <<_ACEOF
12700 /* confdefs.h.  */
12701 _ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h.  */
12705 $ac_declaration
12706 int
12707 main ()
12708 {
12709 exit (42);
12710   ;
12711   return 0;
12712 }
12713 _ACEOF
12714 rm -f conftest.$ac_objext
12715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12716   (eval $ac_compile) 2>conftest.er1
12717   ac_status=$?
12718   grep -v '^ *+' conftest.er1 >conftest.err
12719   rm -f conftest.er1
12720   cat conftest.err >&5
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); } &&
12723          { ac_try='test -z "$ac_c_werror_flag"
12724                          || test ! -s conftest.err'
12725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726   (eval $ac_try) 2>&5
12727   ac_status=$?
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); }; } &&
12730          { ac_try='test -s conftest.$ac_objext'
12731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732   (eval $ac_try) 2>&5
12733   ac_status=$?
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); }; }; then
12736   break
12737 else
12738   echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12740
12741 fi
12742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12743 done
12744 rm -f conftest*
12745 if test -n "$ac_declaration"; then
12746   echo '#ifdef __cplusplus' >>confdefs.h
12747   echo $ac_declaration      >>confdefs.h
12748   echo '#endif'             >>confdefs.h
12749 fi
12750
12751 else
12752   echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755 fi
12756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12757 ac_ext=c
12758 ac_cpp='$CPP $CPPFLAGS'
12759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12762
12763 depcc="$CC"   am_compiler_list=
12764
12765 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12766 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12767 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12768   echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12771   # We make a subdir and do the tests there.  Otherwise we can end up
12772   # making bogus files that we don't know about and never remove.  For
12773   # instance it was reported that on HP-UX the gcc test will end up
12774   # making a dummy file named `D' -- because `-MD' means `put the output
12775   # in D'.
12776   mkdir conftest.dir
12777   # Copy depcomp to subdir because otherwise we won't find it if we're
12778   # using a relative directory.
12779   cp "$am_depcomp" conftest.dir
12780   cd conftest.dir
12781   # We will build objects and dependencies in a subdirectory because
12782   # it helps to detect inapplicable dependency modes.  For instance
12783   # both Tru64's cc and ICC support -MD to output dependencies as a
12784   # side effect of compilation, but ICC will put the dependencies in
12785   # the current directory while Tru64 will put them in the object
12786   # directory.
12787   mkdir sub
12788
12789   am_cv_CC_dependencies_compiler_type=none
12790   if test "$am_compiler_list" = ""; then
12791      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12792   fi
12793   for depmode in $am_compiler_list; do
12794     # Setup a source with many dependencies, because some compilers
12795     # like to wrap large dependency lists on column 80 (with \), and
12796     # we should not choose a depcomp mode which is confused by this.
12797     #
12798     # We need to recreate these files for each test, as the compiler may
12799     # overwrite some of them when testing with obscure command lines.
12800     # This happens at least with the AIX C compiler.
12801     : > sub/conftest.c
12802     for i in 1 2 3 4 5 6; do
12803       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12804       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12805       # Solaris 8's {/usr,}/bin/sh.
12806       touch sub/conftst$i.h
12807     done
12808     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12809
12810     case $depmode in
12811     nosideeffect)
12812       # after this tag, mechanisms are not by side-effect, so they'll
12813       # only be used when explicitly requested
12814       if test "x$enable_dependency_tracking" = xyes; then
12815         continue
12816       else
12817         break
12818       fi
12819       ;;
12820     none) break ;;
12821     esac
12822     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12823     # mode.  It turns out that the SunPro C++ compiler does not properly
12824     # handle `-M -o', and we need to detect this.
12825     if depmode=$depmode \
12826        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12827        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12828        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12829          >/dev/null 2>conftest.err &&
12830        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12831        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12832        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12833       # icc doesn't choke on unknown options, it will just issue warnings
12834       # or remarks (even with -Werror).  So we grep stderr for any message
12835       # that says an option was ignored or not supported.
12836       # When given -MP, icc 7.0 and 7.1 complain thusly:
12837       #   icc: Command line warning: ignoring option '-M'; no argument required
12838       # The diagnosis changed in icc 8.0:
12839       #   icc: Command line remark: option '-MP' not supported
12840       if (grep 'ignoring option' conftest.err ||
12841           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12842         am_cv_CC_dependencies_compiler_type=$depmode
12843         break
12844       fi
12845     fi
12846   done
12847
12848   cd ..
12849   rm -rf conftest.dir
12850 else
12851   am_cv_CC_dependencies_compiler_type=none
12852 fi
12853
12854 fi
12855 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12856 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12857 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12858
12859
12860
12861 if
12862   test "x$enable_dependency_tracking" != xno \
12863   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12864   am__fastdepCC_TRUE=
12865   am__fastdepCC_FALSE='#'
12866 else
12867   am__fastdepCC_TRUE='#'
12868   am__fastdepCC_FALSE=
12869 fi
12870
12871
12872 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12873         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12874 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12875    { (exit 1); exit 1; }; }
12876 fi
12877
12878 # test for make depend flag
12879 OL_MKDEP=
12880 OL_MKDEP_FLAGS=
12881 if test -z "${MKDEP}"; then
12882         OL_MKDEP="${CC-cc}"
12883         if test -z "${MKDEP_FLAGS}"; then
12884                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12885 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12886 if test "${ol_cv_mkdep+set}" = set; then
12887   echo $ECHO_N "(cached) $ECHO_C" >&6
12888 else
12889
12890                         ol_cv_mkdep=no
12891                         for flag in "-M" "-xM"; do
12892                                 cat > conftest.c <<EOF
12893  noCode;
12894 EOF
12895                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897   (eval $ac_try) 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; } \
12901                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12902                                 then
12903                                         if test ! -f conftest."${ac_object}" ; then
12904                                                 ol_cv_mkdep=$flag
12905                                                 OL_MKDEP_FLAGS="$flag"
12906                                                 break
12907                                         fi
12908                                 fi
12909                         done
12910                         rm -f conftest*
12911
12912 fi
12913 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12914 echo "${ECHO_T}$ol_cv_mkdep" >&6
12915                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
12916         else
12917                 cc_cv_mkdep=yes
12918                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12919         fi
12920 else
12921         cc_cv_mkdep=yes
12922         OL_MKDEP="${MKDEP}"
12923         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12924 fi
12925
12926
12927
12928 if test "${ol_cv_mkdep}" = no ; then
12929         # this will soon become an error
12930         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12931 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12932 fi
12933
12934 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12935 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12936 if test "${ac_cv_lib_s_afopen+set}" = set; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939   ac_check_lib_save_LIBS=$LIBS
12940 LIBS="-ls  $LIBS"
12941 cat >conftest.$ac_ext <<_ACEOF
12942 /* confdefs.h.  */
12943 _ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h.  */
12947
12948 /* Override any gcc2 internal prototype to avoid an error.  */
12949 #ifdef __cplusplus
12950 extern "C"
12951 #endif
12952 /* We use char because int might match the return type of a gcc2
12953    builtin and then its argument prototype would still apply.  */
12954 char afopen ();
12955 int
12956 main ()
12957 {
12958 afopen ();
12959   ;
12960   return 0;
12961 }
12962 _ACEOF
12963 rm -f conftest.$ac_objext conftest$ac_exeext
12964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12965   (eval $ac_link) 2>conftest.er1
12966   ac_status=$?
12967   grep -v '^ *+' conftest.er1 >conftest.err
12968   rm -f conftest.er1
12969   cat conftest.err >&5
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); } &&
12972          { ac_try='test -z "$ac_c_werror_flag"
12973                          || test ! -s conftest.err'
12974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975   (eval $ac_try) 2>&5
12976   ac_status=$?
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); }; } &&
12979          { ac_try='test -s conftest$ac_exeext'
12980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981   (eval $ac_try) 2>&5
12982   ac_status=$?
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); }; }; then
12985   ac_cv_lib_s_afopen=yes
12986 else
12987   echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12989
12990 ac_cv_lib_s_afopen=no
12991 fi
12992 rm -f conftest.err conftest.$ac_objext \
12993       conftest$ac_exeext conftest.$ac_ext
12994 LIBS=$ac_check_lib_save_LIBS
12995 fi
12996 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12997 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12998 if test $ac_cv_lib_s_afopen = yes; then
12999
13000         AUTH_LIBS=-ls
13001
13002 cat >>confdefs.h <<\_ACEOF
13003 #define HAVE_AIX_SECURITY 1
13004 _ACEOF
13005
13006
13007 fi
13008
13009
13010 case "$target" in
13011 *-ibm-openedition)
13012         ac_cv_func_getopt=no
13013
13014 cat >>confdefs.h <<\_ACEOF
13015 #define BOTH_STRINGS_H 1
13016 _ACEOF
13017
13018         ;;
13019 esac
13020
13021 ol_link_modules=no
13022 WITH_MODULES_ENABLED=no
13023 if test $ol_enable_modules != no ; then
13024
13025 for ac_header in ltdl.h
13026 do
13027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13029   echo "$as_me:$LINENO: checking for $ac_header" >&5
13030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13032   echo $ECHO_N "(cached) $ECHO_C" >&6
13033 fi
13034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13036 else
13037   # Is the header compilable?
13038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13040 cat >conftest.$ac_ext <<_ACEOF
13041 /* confdefs.h.  */
13042 _ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h.  */
13046 $ac_includes_default
13047 #include <$ac_header>
13048 _ACEOF
13049 rm -f conftest.$ac_objext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051   (eval $ac_compile) 2>conftest.er1
13052   ac_status=$?
13053   grep -v '^ *+' conftest.er1 >conftest.err
13054   rm -f conftest.er1
13055   cat conftest.err >&5
13056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); } &&
13058          { ac_try='test -z "$ac_c_werror_flag"
13059                          || test ! -s conftest.err'
13060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061   (eval $ac_try) 2>&5
13062   ac_status=$?
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); }; } &&
13065          { ac_try='test -s conftest.$ac_objext'
13066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067   (eval $ac_try) 2>&5
13068   ac_status=$?
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); }; }; then
13071   ac_header_compiler=yes
13072 else
13073   echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13075
13076 ac_header_compiler=no
13077 fi
13078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13080 echo "${ECHO_T}$ac_header_compiler" >&6
13081
13082 # Is the header present?
13083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13085 cat >conftest.$ac_ext <<_ACEOF
13086 /* confdefs.h.  */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h.  */
13091 #include <$ac_header>
13092 _ACEOF
13093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13095   ac_status=$?
13096   grep -v '^ *+' conftest.er1 >conftest.err
13097   rm -f conftest.er1
13098   cat conftest.err >&5
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); } >/dev/null; then
13101   if test -s conftest.err; then
13102     ac_cpp_err=$ac_c_preproc_warn_flag
13103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13104   else
13105     ac_cpp_err=
13106   fi
13107 else
13108   ac_cpp_err=yes
13109 fi
13110 if test -z "$ac_cpp_err"; then
13111   ac_header_preproc=yes
13112 else
13113   echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13115
13116   ac_header_preproc=no
13117 fi
13118 rm -f conftest.err conftest.$ac_ext
13119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13120 echo "${ECHO_T}$ac_header_preproc" >&6
13121
13122 # So?  What about this header?
13123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13124   yes:no: )
13125     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13129     ac_header_preproc=yes
13130     ;;
13131   no:yes:* )
13132     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13134     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13135 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13136     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13138     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13139 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13142     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13144     (
13145       cat <<\_ASBOX
13146 ## --------------------------------------------- ##
13147 ## Report this to <http://www.openldap.org/its/> ##
13148 ## --------------------------------------------- ##
13149 _ASBOX
13150     ) |
13151       sed "s/^/$as_me: WARNING:     /" >&2
13152     ;;
13153 esac
13154 echo "$as_me:$LINENO: checking for $ac_header" >&5
13155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13157   echo $ECHO_N "(cached) $ECHO_C" >&6
13158 else
13159   eval "$as_ac_Header=\$ac_header_preproc"
13160 fi
13161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13163
13164 fi
13165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13166   cat >>confdefs.h <<_ACEOF
13167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13168 _ACEOF
13169
13170 fi
13171
13172 done
13173
13174
13175         if test $ac_cv_header_ltdl_h = no ; then
13176                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13177 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13178    { (exit 1); exit 1; }; }
13179         fi
13180
13181         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13182 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13183 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13184   echo $ECHO_N "(cached) $ECHO_C" >&6
13185 else
13186   ac_check_lib_save_LIBS=$LIBS
13187 LIBS="-lltdl  $LIBS"
13188 cat >conftest.$ac_ext <<_ACEOF
13189 /* confdefs.h.  */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h.  */
13194
13195 /* Override any gcc2 internal prototype to avoid an error.  */
13196 #ifdef __cplusplus
13197 extern "C"
13198 #endif
13199 /* We use char because int might match the return type of a gcc2
13200    builtin and then its argument prototype would still apply.  */
13201 char lt_dlinit ();
13202 int
13203 main ()
13204 {
13205 lt_dlinit ();
13206   ;
13207   return 0;
13208 }
13209 _ACEOF
13210 rm -f conftest.$ac_objext conftest$ac_exeext
13211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13212   (eval $ac_link) 2>conftest.er1
13213   ac_status=$?
13214   grep -v '^ *+' conftest.er1 >conftest.err
13215   rm -f conftest.er1
13216   cat conftest.err >&5
13217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218   (exit $ac_status); } &&
13219          { ac_try='test -z "$ac_c_werror_flag"
13220                          || test ! -s conftest.err'
13221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222   (eval $ac_try) 2>&5
13223   ac_status=$?
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); }; } &&
13226          { ac_try='test -s conftest$ac_exeext'
13227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228   (eval $ac_try) 2>&5
13229   ac_status=$?
13230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231   (exit $ac_status); }; }; then
13232   ac_cv_lib_ltdl_lt_dlinit=yes
13233 else
13234   echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13236
13237 ac_cv_lib_ltdl_lt_dlinit=no
13238 fi
13239 rm -f conftest.err conftest.$ac_objext \
13240       conftest$ac_exeext conftest.$ac_ext
13241 LIBS=$ac_check_lib_save_LIBS
13242 fi
13243 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13244 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13245 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13246
13247                 MODULES_LIBS=-lltdl
13248
13249 cat >>confdefs.h <<\_ACEOF
13250 #define HAVE_LIBLTDL 1
13251 _ACEOF
13252
13253
13254 fi
13255
13256
13257         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13258                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13259 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13260    { (exit 1); exit 1; }; }
13261         fi
13262         ol_link_modules=yes
13263         WITH_MODULES_ENABLED=yes
13264
13265 else
13266         for i in $Backends; do
13267                 eval "ol_tmp=\$ol_enable_$i"
13268                 if test $ol_tmp = mod ; then
13269                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13270 echo "$as_me: WARNING: building static $i backend" >&2;}
13271                         eval "ol_enable_$i=yes"
13272                 fi
13273         done
13274         for i in $Overlays; do
13275                 eval "ol_tmp=\$ol_enable_$i"
13276                 if test $ol_tmp = mod ; then
13277                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13278 echo "$as_me: WARNING: building static $i overlay" >&2;}
13279                         eval "ol_enable_$i=yes"
13280                 fi
13281         done
13282 fi
13283
13284 # test for EBCDIC
13285 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13286 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13287 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13288   echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290
13291         cat >conftest.$ac_ext <<_ACEOF
13292 /* confdefs.h.  */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h.  */
13297
13298 #if !('M' == 0xd4)
13299 #include <__ASCII__/generate_error.h>
13300 #endif
13301
13302 _ACEOF
13303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13305   ac_status=$?
13306   grep -v '^ *+' conftest.er1 >conftest.err
13307   rm -f conftest.er1
13308   cat conftest.err >&5
13309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310   (exit $ac_status); } >/dev/null; then
13311   if test -s conftest.err; then
13312     ac_cpp_err=$ac_c_preproc_warn_flag
13313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13314   else
13315     ac_cpp_err=
13316   fi
13317 else
13318   ac_cpp_err=yes
13319 fi
13320 if test -z "$ac_cpp_err"; then
13321   ol_cv_cpp_ebcdic=yes
13322 else
13323   echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326   ol_cv_cpp_ebcdic=no
13327 fi
13328 rm -f conftest.err conftest.$ac_ext
13329 fi
13330 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13331 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13332 if test $ol_cv_cpp_ebcdic = yes ; then
13333
13334 cat >>confdefs.h <<\_ACEOF
13335 #define HAVE_EBCDIC 1
13336 _ACEOF
13337
13338 fi
13339
13340 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13341 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13342 if test "${ol_cv_header_stdc+set}" = set; then
13343   echo $ECHO_N "(cached) $ECHO_C" >&6
13344 else
13345   cat >conftest.$ac_ext <<_ACEOF
13346 /* confdefs.h.  */
13347 _ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h.  */
13351 #include <stdlib.h>
13352 #include <stdarg.h>
13353 #include <string.h>
13354 #include <float.h>
13355 _ACEOF
13356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13357   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13358   ac_status=$?
13359   grep -v '^ *+' conftest.er1 >conftest.err
13360   rm -f conftest.er1
13361   cat conftest.err >&5
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); } >/dev/null; then
13364   if test -s conftest.err; then
13365     ac_cpp_err=$ac_c_preproc_warn_flag
13366     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13367   else
13368     ac_cpp_err=
13369   fi
13370 else
13371   ac_cpp_err=yes
13372 fi
13373 if test -z "$ac_cpp_err"; then
13374   ol_cv_header_stdc=yes
13375 else
13376   echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13378
13379   ol_cv_header_stdc=no
13380 fi
13381 rm -f conftest.err conftest.$ac_ext
13382
13383 if test $ol_cv_header_stdc = yes; then
13384   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13385 cat >conftest.$ac_ext <<_ACEOF
13386 /* confdefs.h.  */
13387 _ACEOF
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h.  */
13391 #include <string.h>
13392
13393 _ACEOF
13394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13395   $EGREP "memchr" >/dev/null 2>&1; then
13396   :
13397 else
13398   ol_cv_header_stdc=no
13399 fi
13400 rm -f conftest*
13401
13402 fi
13403
13404 if test $ol_cv_header_stdc = yes; then
13405   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13406 cat >conftest.$ac_ext <<_ACEOF
13407 /* confdefs.h.  */
13408 _ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h.  */
13412 #include <stdlib.h>
13413
13414 _ACEOF
13415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13416   $EGREP "free" >/dev/null 2>&1; then
13417   :
13418 else
13419   ol_cv_header_stdc=no
13420 fi
13421 rm -f conftest*
13422
13423 fi
13424
13425 if test $ol_cv_header_stdc = yes; then
13426   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13427 if test "$cross_compiling" = yes; then
13428   :
13429 else
13430   cat >conftest.$ac_ext <<_ACEOF
13431 /* confdefs.h.  */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h.  */
13436 #include <ctype.h>
13437 #ifndef HAVE_EBCDIC
13438 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13439 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13440 #else
13441 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13442                 || ('j' <= (c) && (c) <= 'r') \
13443                 || ('s' <= (c) && (c) <= 'z'))
13444 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13445 #endif
13446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13447 int main () { int i; for (i = 0; i < 256; i++)
13448 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13449 exit (0); }
13450
13451 _ACEOF
13452 rm -f conftest$ac_exeext
13453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13454   (eval $ac_link) 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459   (eval $ac_try) 2>&5
13460   ac_status=$?
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); }; }; then
13463   :
13464 else
13465   echo "$as_me: program exited with status $ac_status" >&5
13466 echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13468
13469 ( exit $ac_status )
13470 ol_cv_header_stdc=no
13471 fi
13472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13473 fi
13474 fi
13475 fi
13476 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13477 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13478 if test $ol_cv_header_stdc = yes; then
13479   cat >>confdefs.h <<\_ACEOF
13480 #define STDC_HEADERS 1
13481 _ACEOF
13482
13483 fi
13484 ac_cv_header_stdc=disable
13485
13486
13487 if test $ol_cv_header_stdc != yes; then
13488         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13489 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13490 fi
13491
13492
13493
13494
13495
13496
13497 ac_header_dirent=no
13498 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13499   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13500 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13501 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13503   echo $ECHO_N "(cached) $ECHO_C" >&6
13504 else
13505   cat >conftest.$ac_ext <<_ACEOF
13506 /* confdefs.h.  */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h.  */
13511 #include <sys/types.h>
13512 #include <$ac_hdr>
13513
13514 int
13515 main ()
13516 {
13517 if ((DIR *) 0)
13518 return 0;
13519   ;
13520   return 0;
13521 }
13522 _ACEOF
13523 rm -f conftest.$ac_objext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13525   (eval $ac_compile) 2>conftest.er1
13526   ac_status=$?
13527   grep -v '^ *+' conftest.er1 >conftest.err
13528   rm -f conftest.er1
13529   cat conftest.err >&5
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); } &&
13532          { ac_try='test -z "$ac_c_werror_flag"
13533                          || test ! -s conftest.err'
13534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535   (eval $ac_try) 2>&5
13536   ac_status=$?
13537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   (exit $ac_status); }; } &&
13539          { ac_try='test -s conftest.$ac_objext'
13540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541   (eval $ac_try) 2>&5
13542   ac_status=$?
13543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544   (exit $ac_status); }; }; then
13545   eval "$as_ac_Header=yes"
13546 else
13547   echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13549
13550 eval "$as_ac_Header=no"
13551 fi
13552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13553 fi
13554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13557   cat >>confdefs.h <<_ACEOF
13558 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13559 _ACEOF
13560
13561 ac_header_dirent=$ac_hdr; break
13562 fi
13563
13564 done
13565 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13566 if test $ac_header_dirent = dirent.h; then
13567   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13568 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13569 if test "${ac_cv_search_opendir+set}" = set; then
13570   echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13572   ac_func_search_save_LIBS=$LIBS
13573 ac_cv_search_opendir=no
13574 cat >conftest.$ac_ext <<_ACEOF
13575 /* confdefs.h.  */
13576 _ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h.  */
13580
13581 /* Override any gcc2 internal prototype to avoid an error.  */
13582 #ifdef __cplusplus
13583 extern "C"
13584 #endif
13585 /* We use char because int might match the return type of a gcc2
13586    builtin and then its argument prototype would still apply.  */
13587 char opendir ();
13588 int
13589 main ()
13590 {
13591 opendir ();
13592   ;
13593   return 0;
13594 }
13595 _ACEOF
13596 rm -f conftest.$ac_objext conftest$ac_exeext
13597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13598   (eval $ac_link) 2>conftest.er1
13599   ac_status=$?
13600   grep -v '^ *+' conftest.er1 >conftest.err
13601   rm -f conftest.er1
13602   cat conftest.err >&5
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); } &&
13605          { ac_try='test -z "$ac_c_werror_flag"
13606                          || test ! -s conftest.err'
13607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608   (eval $ac_try) 2>&5
13609   ac_status=$?
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); }; } &&
13612          { ac_try='test -s conftest$ac_exeext'
13613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614   (eval $ac_try) 2>&5
13615   ac_status=$?
13616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); }; }; then
13618   ac_cv_search_opendir="none required"
13619 else
13620   echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13622
13623 fi
13624 rm -f conftest.err conftest.$ac_objext \
13625       conftest$ac_exeext conftest.$ac_ext
13626 if test "$ac_cv_search_opendir" = no; then
13627   for ac_lib in dir; do
13628     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13629     cat >conftest.$ac_ext <<_ACEOF
13630 /* confdefs.h.  */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h.  */
13635
13636 /* Override any gcc2 internal prototype to avoid an error.  */
13637 #ifdef __cplusplus
13638 extern "C"
13639 #endif
13640 /* We use char because int might match the return type of a gcc2
13641    builtin and then its argument prototype would still apply.  */
13642 char opendir ();
13643 int
13644 main ()
13645 {
13646 opendir ();
13647   ;
13648   return 0;
13649 }
13650 _ACEOF
13651 rm -f conftest.$ac_objext conftest$ac_exeext
13652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13653   (eval $ac_link) 2>conftest.er1
13654   ac_status=$?
13655   grep -v '^ *+' conftest.er1 >conftest.err
13656   rm -f conftest.er1
13657   cat conftest.err >&5
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); } &&
13660          { ac_try='test -z "$ac_c_werror_flag"
13661                          || test ! -s conftest.err'
13662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663   (eval $ac_try) 2>&5
13664   ac_status=$?
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); }; } &&
13667          { ac_try='test -s conftest$ac_exeext'
13668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669   (eval $ac_try) 2>&5
13670   ac_status=$?
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); }; }; then
13673   ac_cv_search_opendir="-l$ac_lib"
13674 break
13675 else
13676   echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13678
13679 fi
13680 rm -f conftest.err conftest.$ac_objext \
13681       conftest$ac_exeext conftest.$ac_ext
13682   done
13683 fi
13684 LIBS=$ac_func_search_save_LIBS
13685 fi
13686 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13687 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13688 if test "$ac_cv_search_opendir" != no; then
13689   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13690
13691 fi
13692
13693 else
13694   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13695 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13696 if test "${ac_cv_search_opendir+set}" = set; then
13697   echo $ECHO_N "(cached) $ECHO_C" >&6
13698 else
13699   ac_func_search_save_LIBS=$LIBS
13700 ac_cv_search_opendir=no
13701 cat >conftest.$ac_ext <<_ACEOF
13702 /* confdefs.h.  */
13703 _ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h.  */
13707
13708 /* Override any gcc2 internal prototype to avoid an error.  */
13709 #ifdef __cplusplus
13710 extern "C"
13711 #endif
13712 /* We use char because int might match the return type of a gcc2
13713    builtin and then its argument prototype would still apply.  */
13714 char opendir ();
13715 int
13716 main ()
13717 {
13718 opendir ();
13719   ;
13720   return 0;
13721 }
13722 _ACEOF
13723 rm -f conftest.$ac_objext conftest$ac_exeext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13725   (eval $ac_link) 2>conftest.er1
13726   ac_status=$?
13727   grep -v '^ *+' conftest.er1 >conftest.err
13728   rm -f conftest.er1
13729   cat conftest.err >&5
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); } &&
13732          { ac_try='test -z "$ac_c_werror_flag"
13733                          || test ! -s conftest.err'
13734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735   (eval $ac_try) 2>&5
13736   ac_status=$?
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); }; } &&
13739          { ac_try='test -s conftest$ac_exeext'
13740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741   (eval $ac_try) 2>&5
13742   ac_status=$?
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); }; }; then
13745   ac_cv_search_opendir="none required"
13746 else
13747   echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13749
13750 fi
13751 rm -f conftest.err conftest.$ac_objext \
13752       conftest$ac_exeext conftest.$ac_ext
13753 if test "$ac_cv_search_opendir" = no; then
13754   for ac_lib in x; do
13755     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13756     cat >conftest.$ac_ext <<_ACEOF
13757 /* confdefs.h.  */
13758 _ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h.  */
13762
13763 /* Override any gcc2 internal prototype to avoid an error.  */
13764 #ifdef __cplusplus
13765 extern "C"
13766 #endif
13767 /* We use char because int might match the return type of a gcc2
13768    builtin and then its argument prototype would still apply.  */
13769 char opendir ();
13770 int
13771 main ()
13772 {
13773 opendir ();
13774   ;
13775   return 0;
13776 }
13777 _ACEOF
13778 rm -f conftest.$ac_objext conftest$ac_exeext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13780   (eval $ac_link) 2>conftest.er1
13781   ac_status=$?
13782   grep -v '^ *+' conftest.er1 >conftest.err
13783   rm -f conftest.er1
13784   cat conftest.err >&5
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); } &&
13787          { ac_try='test -z "$ac_c_werror_flag"
13788                          || test ! -s conftest.err'
13789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790   (eval $ac_try) 2>&5
13791   ac_status=$?
13792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); }; } &&
13794          { ac_try='test -s conftest$ac_exeext'
13795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796   (eval $ac_try) 2>&5
13797   ac_status=$?
13798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); }; }; then
13800   ac_cv_search_opendir="-l$ac_lib"
13801 break
13802 else
13803   echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13805
13806 fi
13807 rm -f conftest.err conftest.$ac_objext \
13808       conftest$ac_exeext conftest.$ac_ext
13809   done
13810 fi
13811 LIBS=$ac_func_search_save_LIBS
13812 fi
13813 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13814 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13815 if test "$ac_cv_search_opendir" != no; then
13816   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13817
13818 fi
13819
13820 fi
13821
13822 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13823 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13824 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13825   echo $ECHO_N "(cached) $ECHO_C" >&6
13826 else
13827   cat >conftest.$ac_ext <<_ACEOF
13828 /* confdefs.h.  */
13829 _ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h.  */
13833 #include <sys/types.h>
13834 #include <sys/wait.h>
13835 #ifndef WEXITSTATUS
13836 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13837 #endif
13838 #ifndef WIFEXITED
13839 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13840 #endif
13841
13842 int
13843 main ()
13844 {
13845   int s;
13846   wait (&s);
13847   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13848   ;
13849   return 0;
13850 }
13851 _ACEOF
13852 rm -f conftest.$ac_objext
13853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13854   (eval $ac_compile) 2>conftest.er1
13855   ac_status=$?
13856   grep -v '^ *+' conftest.er1 >conftest.err
13857   rm -f conftest.er1
13858   cat conftest.err >&5
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); } &&
13861          { ac_try='test -z "$ac_c_werror_flag"
13862                          || test ! -s conftest.err'
13863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864   (eval $ac_try) 2>&5
13865   ac_status=$?
13866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); }; } &&
13868          { ac_try='test -s conftest.$ac_objext'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; }; then
13874   ac_cv_header_sys_wait_h=yes
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879 ac_cv_header_sys_wait_h=no
13880 fi
13881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13882 fi
13883 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13884 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13885 if test $ac_cv_header_sys_wait_h = yes; then
13886
13887 cat >>confdefs.h <<\_ACEOF
13888 #define HAVE_SYS_WAIT_H 1
13889 _ACEOF
13890
13891 fi
13892
13893 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13894 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13895 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13896   echo $ECHO_N "(cached) $ECHO_C" >&6
13897 else
13898   cat >conftest.$ac_ext <<_ACEOF
13899 /* confdefs.h.  */
13900 _ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h.  */
13904 #include <sys/types.h>
13905 #include <termios.h>
13906 #ifdef TIOCGWINSZ
13907   yes
13908 #endif
13909
13910 _ACEOF
13911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13912   $EGREP "yes" >/dev/null 2>&1; then
13913   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13914 else
13915   ac_cv_sys_tiocgwinsz_in_termios_h=no
13916 fi
13917 rm -f conftest*
13918
13919 fi
13920 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13921 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13922
13923 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13924   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13925 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13926 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13927   echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929   cat >conftest.$ac_ext <<_ACEOF
13930 /* confdefs.h.  */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h.  */
13935 #include <sys/types.h>
13936 #include <sys/ioctl.h>
13937 #ifdef TIOCGWINSZ
13938   yes
13939 #endif
13940
13941 _ACEOF
13942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13943   $EGREP "yes" >/dev/null 2>&1; then
13944   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13945 else
13946   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13947 fi
13948 rm -f conftest*
13949
13950 fi
13951 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13952 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13953
13954   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13955
13956 cat >>confdefs.h <<\_ACEOF
13957 #define GWINSZ_IN_SYS_IOCTL 1
13958 _ACEOF
13959
13960   fi
13961 fi
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011 for ac_header in \
14012         arpa/inet.h             \
14013         arpa/nameser.h  \
14014         assert.h                \
14015         bits/types.h    \
14016         conio.h                 \
14017         crypt.h                 \
14018         direct.h                \
14019         errno.h                 \
14020         fcntl.h                 \
14021         filio.h                 \
14022         getopt.h                \
14023         grp.h                   \
14024         io.h                    \
14025         libutil.h               \
14026         limits.h                \
14027         locale.h                \
14028         malloc.h                \
14029         memory.h                \
14030         psap.h                  \
14031         pwd.h                   \
14032         process.h               \
14033         sgtty.h                 \
14034         shadow.h                \
14035         stddef.h                \
14036         string.h                \
14037         strings.h               \
14038         sysexits.h              \
14039         sys/file.h              \
14040         sys/filio.h             \
14041         sys/fstyp.h             \
14042         sys/errno.h             \
14043         sys/ioctl.h             \
14044         sys/param.h             \
14045         sys/privgrp.h   \
14046         sys/resource.h  \
14047         sys/select.h    \
14048         sys/socket.h    \
14049         sys/stat.h              \
14050         sys/syslog.h    \
14051         sys/time.h              \
14052         sys/types.h             \
14053         sys/uio.h               \
14054         sys/vmount.h    \
14055         syslog.h                \
14056         termios.h               \
14057         unistd.h                \
14058         utime.h                 \
14059
14060 do
14061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14063   echo "$as_me:$LINENO: checking for $ac_header" >&5
14064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14066   echo $ECHO_N "(cached) $ECHO_C" >&6
14067 fi
14068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14070 else
14071   # Is the header compilable?
14072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14074 cat >conftest.$ac_ext <<_ACEOF
14075 /* confdefs.h.  */
14076 _ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h.  */
14080 $ac_includes_default
14081 #include <$ac_header>
14082 _ACEOF
14083 rm -f conftest.$ac_objext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14085   (eval $ac_compile) 2>conftest.er1
14086   ac_status=$?
14087   grep -v '^ *+' conftest.er1 >conftest.err
14088   rm -f conftest.er1
14089   cat conftest.err >&5
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); } &&
14092          { ac_try='test -z "$ac_c_werror_flag"
14093                          || test ! -s conftest.err'
14094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095   (eval $ac_try) 2>&5
14096   ac_status=$?
14097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098   (exit $ac_status); }; } &&
14099          { ac_try='test -s conftest.$ac_objext'
14100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101   (eval $ac_try) 2>&5
14102   ac_status=$?
14103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104   (exit $ac_status); }; }; then
14105   ac_header_compiler=yes
14106 else
14107   echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14109
14110 ac_header_compiler=no
14111 fi
14112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14114 echo "${ECHO_T}$ac_header_compiler" >&6
14115
14116 # Is the header present?
14117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14119 cat >conftest.$ac_ext <<_ACEOF
14120 /* confdefs.h.  */
14121 _ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h.  */
14125 #include <$ac_header>
14126 _ACEOF
14127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14129   ac_status=$?
14130   grep -v '^ *+' conftest.er1 >conftest.err
14131   rm -f conftest.er1
14132   cat conftest.err >&5
14133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); } >/dev/null; then
14135   if test -s conftest.err; then
14136     ac_cpp_err=$ac_c_preproc_warn_flag
14137     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14138   else
14139     ac_cpp_err=
14140   fi
14141 else
14142   ac_cpp_err=yes
14143 fi
14144 if test -z "$ac_cpp_err"; then
14145   ac_header_preproc=yes
14146 else
14147   echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14149
14150   ac_header_preproc=no
14151 fi
14152 rm -f conftest.err conftest.$ac_ext
14153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14154 echo "${ECHO_T}$ac_header_preproc" >&6
14155
14156 # So?  What about this header?
14157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14158   yes:no: )
14159     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14163     ac_header_preproc=yes
14164     ;;
14165   no:yes:* )
14166     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14168     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14169 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14170     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14172     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14173 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14176     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14178     (
14179       cat <<\_ASBOX
14180 ## --------------------------------------------- ##
14181 ## Report this to <http://www.openldap.org/its/> ##
14182 ## --------------------------------------------- ##
14183 _ASBOX
14184     ) |
14185       sed "s/^/$as_me: WARNING:     /" >&2
14186     ;;
14187 esac
14188 echo "$as_me:$LINENO: checking for $ac_header" >&5
14189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14191   echo $ECHO_N "(cached) $ECHO_C" >&6
14192 else
14193   eval "$as_ac_Header=\$ac_header_preproc"
14194 fi
14195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14197
14198 fi
14199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14200   cat >>confdefs.h <<_ACEOF
14201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14202 _ACEOF
14203
14204 fi
14205
14206 done
14207
14208
14209 if test "$ac_cv_mingw32" = yes \
14210         -o "$ac_cv_interix" = yes \
14211         -o "$ol_cv_msvc" = yes
14212 then
14213
14214
14215 for ac_header in winsock.h winsock2.h
14216 do
14217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219   echo "$as_me:$LINENO: checking for $ac_header" >&5
14220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14222   echo $ECHO_N "(cached) $ECHO_C" >&6
14223 fi
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14226 else
14227   # Is the header compilable?
14228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14230 cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h.  */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h.  */
14236 $ac_includes_default
14237 #include <$ac_header>
14238 _ACEOF
14239 rm -f conftest.$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241   (eval $ac_compile) 2>conftest.er1
14242   ac_status=$?
14243   grep -v '^ *+' conftest.er1 >conftest.err
14244   rm -f conftest.er1
14245   cat conftest.err >&5
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); } &&
14248          { ac_try='test -z "$ac_c_werror_flag"
14249                          || test ! -s conftest.err'
14250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251   (eval $ac_try) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }; } &&
14255          { ac_try='test -s conftest.$ac_objext'
14256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257   (eval $ac_try) 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; }; then
14261   ac_header_compiler=yes
14262 else
14263   echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266 ac_header_compiler=no
14267 fi
14268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14270 echo "${ECHO_T}$ac_header_compiler" >&6
14271
14272 # Is the header present?
14273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14275 cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h.  */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h.  */
14281 #include <$ac_header>
14282 _ACEOF
14283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14284   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14285   ac_status=$?
14286   grep -v '^ *+' conftest.er1 >conftest.err
14287   rm -f conftest.er1
14288   cat conftest.err >&5
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); } >/dev/null; then
14291   if test -s conftest.err; then
14292     ac_cpp_err=$ac_c_preproc_warn_flag
14293     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14294   else
14295     ac_cpp_err=
14296   fi
14297 else
14298   ac_cpp_err=yes
14299 fi
14300 if test -z "$ac_cpp_err"; then
14301   ac_header_preproc=yes
14302 else
14303   echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14305
14306   ac_header_preproc=no
14307 fi
14308 rm -f conftest.err conftest.$ac_ext
14309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14310 echo "${ECHO_T}$ac_header_preproc" >&6
14311
14312 # So?  What about this header?
14313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14314   yes:no: )
14315     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14319     ac_header_preproc=yes
14320     ;;
14321   no:yes:* )
14322     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14324     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14325 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14326     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14328     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14329 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14332     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14334     (
14335       cat <<\_ASBOX
14336 ## --------------------------------------------- ##
14337 ## Report this to <http://www.openldap.org/its/> ##
14338 ## --------------------------------------------- ##
14339 _ASBOX
14340     ) |
14341       sed "s/^/$as_me: WARNING:     /" >&2
14342     ;;
14343 esac
14344 echo "$as_me:$LINENO: checking for $ac_header" >&5
14345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   eval "$as_ac_Header=\$ac_header_preproc"
14350 fi
14351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14353
14354 fi
14355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14356   cat >>confdefs.h <<_ACEOF
14357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14358 _ACEOF
14359
14360 fi
14361
14362 done
14363
14364 fi
14365
14366
14367 for ac_header in resolv.h
14368 do
14369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14370 echo "$as_me:$LINENO: checking for $ac_header" >&5
14371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14373   echo $ECHO_N "(cached) $ECHO_C" >&6
14374 else
14375   cat >conftest.$ac_ext <<_ACEOF
14376 /* confdefs.h.  */
14377 _ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h.  */
14381 $ac_includes_default
14382 #include <netinet/in.h>
14383
14384
14385 #include <$ac_header>
14386 _ACEOF
14387 rm -f conftest.$ac_objext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14389   (eval $ac_compile) 2>conftest.er1
14390   ac_status=$?
14391   grep -v '^ *+' conftest.er1 >conftest.err
14392   rm -f conftest.er1
14393   cat conftest.err >&5
14394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); } &&
14396          { ac_try='test -z "$ac_c_werror_flag"
14397                          || test ! -s conftest.err'
14398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399   (eval $ac_try) 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); }; } &&
14403          { ac_try='test -s conftest.$ac_objext'
14404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405   (eval $ac_try) 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; }; then
14409   eval "$as_ac_Header=yes"
14410 else
14411   echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414 eval "$as_ac_Header=no"
14415 fi
14416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14417 fi
14418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14421   cat >>confdefs.h <<_ACEOF
14422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14423 _ACEOF
14424
14425 fi
14426
14427 done
14428
14429
14430
14431 for ac_header in netinet/tcp.h
14432 do
14433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14434 echo "$as_me:$LINENO: checking for $ac_header" >&5
14435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14437   echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439   cat >conftest.$ac_ext <<_ACEOF
14440 /* confdefs.h.  */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h.  */
14445 $ac_includes_default
14446 #include <netinet/in.h>
14447
14448
14449 #include <$ac_header>
14450 _ACEOF
14451 rm -f conftest.$ac_objext
14452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14453   (eval $ac_compile) 2>conftest.er1
14454   ac_status=$?
14455   grep -v '^ *+' conftest.er1 >conftest.err
14456   rm -f conftest.er1
14457   cat conftest.err >&5
14458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459   (exit $ac_status); } &&
14460          { ac_try='test -z "$ac_c_werror_flag"
14461                          || test ! -s conftest.err'
14462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463   (eval $ac_try) 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); }; } &&
14467          { ac_try='test -s conftest.$ac_objext'
14468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469   (eval $ac_try) 2>&5
14470   ac_status=$?
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); }; }; then
14473   eval "$as_ac_Header=yes"
14474 else
14475   echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14477
14478 eval "$as_ac_Header=no"
14479 fi
14480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14481 fi
14482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14485   cat >>confdefs.h <<_ACEOF
14486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14487 _ACEOF
14488
14489 fi
14490
14491 done
14492
14493
14494
14495 for ac_header in sys/ucred.h
14496 do
14497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14498 echo "$as_me:$LINENO: checking for $ac_header" >&5
14499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14501   echo $ECHO_N "(cached) $ECHO_C" >&6
14502 else
14503   cat >conftest.$ac_ext <<_ACEOF
14504 /* confdefs.h.  */
14505 _ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h.  */
14509 $ac_includes_default
14510 #ifdef HAVE_SYS_PARAM_H
14511 #include <sys/param.h>
14512 #endif
14513
14514
14515 #include <$ac_header>
14516 _ACEOF
14517 rm -f conftest.$ac_objext
14518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14519   (eval $ac_compile) 2>conftest.er1
14520   ac_status=$?
14521   grep -v '^ *+' conftest.er1 >conftest.err
14522   rm -f conftest.er1
14523   cat conftest.err >&5
14524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); } &&
14526          { ac_try='test -z "$ac_c_werror_flag"
14527                          || test ! -s conftest.err'
14528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529   (eval $ac_try) 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); }; } &&
14533          { ac_try='test -s conftest.$ac_objext'
14534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535   (eval $ac_try) 2>&5
14536   ac_status=$?
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); }; }; then
14539   eval "$as_ac_Header=yes"
14540 else
14541   echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14543
14544 eval "$as_ac_Header=no"
14545 fi
14546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14547 fi
14548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14551   cat >>confdefs.h <<_ACEOF
14552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14553 _ACEOF
14554
14555 fi
14556
14557 done
14558
14559
14560
14561
14562
14563 for ac_func in sigaction sigset
14564 do
14565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14566 echo "$as_me:$LINENO: checking for $ac_func" >&5
14567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14568 if eval "test \"\${$as_ac_var+set}\" = set"; then
14569   echo $ECHO_N "(cached) $ECHO_C" >&6
14570 else
14571   cat >conftest.$ac_ext <<_ACEOF
14572 /* confdefs.h.  */
14573 _ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h.  */
14577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14579 #define $ac_func innocuous_$ac_func
14580
14581 /* System header to define __stub macros and hopefully few prototypes,
14582     which can conflict with char $ac_func (); below.
14583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14584     <limits.h> exists even on freestanding compilers.  */
14585
14586 #ifdef __STDC__
14587 # include <limits.h>
14588 #else
14589 # include <assert.h>
14590 #endif
14591
14592 #undef $ac_func
14593
14594 /* Override any gcc2 internal prototype to avoid an error.  */
14595 #ifdef __cplusplus
14596 extern "C"
14597 {
14598 #endif
14599 /* We use char because int might match the return type of a gcc2
14600    builtin and then its argument prototype would still apply.  */
14601 char $ac_func ();
14602 /* The GNU C library defines this for functions which it implements
14603     to always fail with ENOSYS.  Some functions are actually named
14604     something starting with __ and the normal name is an alias.  */
14605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14606 choke me
14607 #else
14608 char (*f) () = $ac_func;
14609 #endif
14610 #ifdef __cplusplus
14611 }
14612 #endif
14613
14614 int
14615 main ()
14616 {
14617 return f != $ac_func;
14618   ;
14619   return 0;
14620 }
14621 _ACEOF
14622 rm -f conftest.$ac_objext conftest$ac_exeext
14623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14624   (eval $ac_link) 2>conftest.er1
14625   ac_status=$?
14626   grep -v '^ *+' conftest.er1 >conftest.err
14627   rm -f conftest.er1
14628   cat conftest.err >&5
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); } &&
14631          { ac_try='test -z "$ac_c_werror_flag"
14632                          || test ! -s conftest.err'
14633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634   (eval $ac_try) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); }; } &&
14638          { ac_try='test -s conftest$ac_exeext'
14639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640   (eval $ac_try) 2>&5
14641   ac_status=$?
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); }; }; then
14644   eval "$as_ac_var=yes"
14645 else
14646   echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14648
14649 eval "$as_ac_var=no"
14650 fi
14651 rm -f conftest.err conftest.$ac_objext \
14652       conftest$ac_exeext conftest.$ac_ext
14653 fi
14654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14656 if test `eval echo '${'$as_ac_var'}'` = yes; then
14657   cat >>confdefs.h <<_ACEOF
14658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14659 _ACEOF
14660
14661 fi
14662 done
14663
14664
14665 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14666
14667 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14668 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14669 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14670   echo $ECHO_N "(cached) $ECHO_C" >&6
14671 else
14672   ac_check_lib_save_LIBS=$LIBS
14673 LIBS="-lV3  $LIBS"
14674 cat >conftest.$ac_ext <<_ACEOF
14675 /* confdefs.h.  */
14676 _ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h.  */
14680
14681 /* Override any gcc2 internal prototype to avoid an error.  */
14682 #ifdef __cplusplus
14683 extern "C"
14684 #endif
14685 /* We use char because int might match the return type of a gcc2
14686    builtin and then its argument prototype would still apply.  */
14687 char sigset ();
14688 int
14689 main ()
14690 {
14691 sigset ();
14692   ;
14693   return 0;
14694 }
14695 _ACEOF
14696 rm -f conftest.$ac_objext conftest$ac_exeext
14697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14698   (eval $ac_link) 2>conftest.er1
14699   ac_status=$?
14700   grep -v '^ *+' conftest.er1 >conftest.err
14701   rm -f conftest.er1
14702   cat conftest.err >&5
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); } &&
14705          { ac_try='test -z "$ac_c_werror_flag"
14706                          || test ! -s conftest.err'
14707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708   (eval $ac_try) 2>&5
14709   ac_status=$?
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); }; } &&
14712          { ac_try='test -s conftest$ac_exeext'
14713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714   (eval $ac_try) 2>&5
14715   ac_status=$?
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); }; }; then
14718   ac_cv_lib_V3_sigset=yes
14719 else
14720   echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14722
14723 ac_cv_lib_V3_sigset=no
14724 fi
14725 rm -f conftest.err conftest.$ac_objext \
14726       conftest$ac_exeext conftest.$ac_ext
14727 LIBS=$ac_check_lib_save_LIBS
14728 fi
14729 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14730 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14731 if test $ac_cv_lib_V3_sigset = yes; then
14732   cat >>confdefs.h <<_ACEOF
14733 #define HAVE_LIBV3 1
14734 _ACEOF
14735
14736   LIBS="-lV3 $LIBS"
14737
14738 fi
14739
14740 fi
14741
14742 if test $ol_cv_msvc = yes ; then
14743    ol_cv_winsock=yes
14744 fi
14745
14746 if test "$ac_cv_header_winsock_h" = yes; then
14747         echo "$as_me:$LINENO: checking for winsock" >&5
14748 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14749 if test "${ol_cv_winsock+set}" = set; then
14750   echo $ECHO_N "(cached) $ECHO_C" >&6
14751 else
14752
14753         save_LIBS="$LIBS"
14754         for curlib in none ws2_32 wsock32; do
14755                 if test $curlib != none ; then
14756                 LIBS="$save_LIBS -l$curlib"
14757                 fi
14758                 cat >conftest.$ac_ext <<_ACEOF
14759 /* confdefs.h.  */
14760 _ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h.  */
14764 #include <winsock.h>
14765
14766 int
14767 main ()
14768 {
14769
14770                         socket(0,0,0);
14771                         select(0,NULL,NULL,NULL,NULL);
14772                         closesocket(0);
14773                         gethostname(NULL,0);
14774
14775   ;
14776   return 0;
14777 }
14778 _ACEOF
14779 rm -f conftest.$ac_objext conftest$ac_exeext
14780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14781   (eval $ac_link) 2>conftest.er1
14782   ac_status=$?
14783   grep -v '^ *+' conftest.er1 >conftest.err
14784   rm -f conftest.er1
14785   cat conftest.err >&5
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); } &&
14788          { ac_try='test -z "$ac_c_werror_flag"
14789                          || test ! -s conftest.err'
14790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791   (eval $ac_try) 2>&5
14792   ac_status=$?
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); }; } &&
14795          { ac_try='test -s conftest$ac_exeext'
14796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797   (eval $ac_try) 2>&5
14798   ac_status=$?
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); }; }; then
14801   ol_cv_winsock=$curlib
14802 else
14803   echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14805
14806 ol_cv_winsock=no
14807 fi
14808 rm -f conftest.err conftest.$ac_objext \
14809       conftest$ac_exeext conftest.$ac_ext
14810
14811                 test "$ol_cv_winsock" != no && break
14812         done
14813         LIBS="$save_LIBS"
14814
14815 fi
14816 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14817 echo "${ECHO_T}$ol_cv_winsock" >&6
14818
14819         if test $ol_cv_winsock != no ; then
14820
14821 cat >>confdefs.h <<\_ACEOF
14822 #define HAVE_WINSOCK 1
14823 _ACEOF
14824
14825         ac_cv_func_socket=yes
14826         ac_cv_func_select=yes
14827         ac_cv_func_closesocket=yes
14828         ac_cv_func_gethostname=yes
14829
14830                 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
14831                 LIBS="$LIBS -l$ol_cv_winsock"
14832                 fi
14833
14834         if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
14835
14836 cat >>confdefs.h <<\_ACEOF
14837 #define HAVE_WINSOCK2 1
14838 _ACEOF
14839
14840         fi
14841         fi
14842 fi
14843
14844
14845 echo "$as_me:$LINENO: checking for socket" >&5
14846 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14847 if test "${ac_cv_func_socket+set}" = set; then
14848   echo $ECHO_N "(cached) $ECHO_C" >&6
14849 else
14850   cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h.  */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h.  */
14856 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14858 #define socket innocuous_socket
14859
14860 /* System header to define __stub macros and hopefully few prototypes,
14861     which can conflict with char socket (); below.
14862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14863     <limits.h> exists even on freestanding compilers.  */
14864
14865 #ifdef __STDC__
14866 # include <limits.h>
14867 #else
14868 # include <assert.h>
14869 #endif
14870
14871 #undef socket
14872
14873 /* Override any gcc2 internal prototype to avoid an error.  */
14874 #ifdef __cplusplus
14875 extern "C"
14876 {
14877 #endif
14878 /* We use char because int might match the return type of a gcc2
14879    builtin and then its argument prototype would still apply.  */
14880 char socket ();
14881 /* The GNU C library defines this for functions which it implements
14882     to always fail with ENOSYS.  Some functions are actually named
14883     something starting with __ and the normal name is an alias.  */
14884 #if defined (__stub_socket) || defined (__stub___socket)
14885 choke me
14886 #else
14887 char (*f) () = socket;
14888 #endif
14889 #ifdef __cplusplus
14890 }
14891 #endif
14892
14893 int
14894 main ()
14895 {
14896 return f != socket;
14897   ;
14898   return 0;
14899 }
14900 _ACEOF
14901 rm -f conftest.$ac_objext conftest$ac_exeext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14903   (eval $ac_link) 2>conftest.er1
14904   ac_status=$?
14905   grep -v '^ *+' conftest.er1 >conftest.err
14906   rm -f conftest.er1
14907   cat conftest.err >&5
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); } &&
14910          { ac_try='test -z "$ac_c_werror_flag"
14911                          || test ! -s conftest.err'
14912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913   (eval $ac_try) 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); }; } &&
14917          { ac_try='test -s conftest$ac_exeext'
14918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919   (eval $ac_try) 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); }; }; then
14923   ac_cv_func_socket=yes
14924 else
14925   echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14927
14928 ac_cv_func_socket=no
14929 fi
14930 rm -f conftest.err conftest.$ac_objext \
14931       conftest$ac_exeext conftest.$ac_ext
14932 fi
14933 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14934 echo "${ECHO_T}$ac_cv_func_socket" >&6
14935 if test $ac_cv_func_socket = yes; then
14936   :
14937 else
14938
14939
14940 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14941 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14942 if test "${ac_cv_lib_socket_main+set}" = set; then
14943   echo $ECHO_N "(cached) $ECHO_C" >&6
14944 else
14945   ac_check_lib_save_LIBS=$LIBS
14946 LIBS="-lsocket  $LIBS"
14947 cat >conftest.$ac_ext <<_ACEOF
14948 /* confdefs.h.  */
14949 _ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h.  */
14953
14954
14955 int
14956 main ()
14957 {
14958 main ();
14959   ;
14960   return 0;
14961 }
14962 _ACEOF
14963 rm -f conftest.$ac_objext conftest$ac_exeext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14965   (eval $ac_link) 2>conftest.er1
14966   ac_status=$?
14967   grep -v '^ *+' conftest.er1 >conftest.err
14968   rm -f conftest.er1
14969   cat conftest.err >&5
14970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971   (exit $ac_status); } &&
14972          { ac_try='test -z "$ac_c_werror_flag"
14973                          || test ! -s conftest.err'
14974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975   (eval $ac_try) 2>&5
14976   ac_status=$?
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); }; } &&
14979          { ac_try='test -s conftest$ac_exeext'
14980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981   (eval $ac_try) 2>&5
14982   ac_status=$?
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); }; }; then
14985   ac_cv_lib_socket_main=yes
14986 else
14987   echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14989
14990 ac_cv_lib_socket_main=no
14991 fi
14992 rm -f conftest.err conftest.$ac_objext \
14993       conftest$ac_exeext conftest.$ac_ext
14994 LIBS=$ac_check_lib_save_LIBS
14995 fi
14996 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14997 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14998 if test $ac_cv_lib_socket_main = yes; then
14999   cat >>confdefs.h <<_ACEOF
15000 #define HAVE_LIBSOCKET 1
15001 _ACEOF
15002
15003   LIBS="-lsocket $LIBS"
15004
15005 fi
15006
15007
15008 echo "$as_me:$LINENO: checking for main in -lnet" >&5
15009 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
15010 if test "${ac_cv_lib_net_main+set}" = set; then
15011   echo $ECHO_N "(cached) $ECHO_C" >&6
15012 else
15013   ac_check_lib_save_LIBS=$LIBS
15014 LIBS="-lnet  $LIBS"
15015 cat >conftest.$ac_ext <<_ACEOF
15016 /* confdefs.h.  */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h.  */
15021
15022
15023 int
15024 main ()
15025 {
15026 main ();
15027   ;
15028   return 0;
15029 }
15030 _ACEOF
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15033   (eval $ac_link) 2>conftest.er1
15034   ac_status=$?
15035   grep -v '^ *+' conftest.er1 >conftest.err
15036   rm -f conftest.er1
15037   cat conftest.err >&5
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); } &&
15040          { ac_try='test -z "$ac_c_werror_flag"
15041                          || test ! -s conftest.err'
15042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043   (eval $ac_try) 2>&5
15044   ac_status=$?
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); }; } &&
15047          { ac_try='test -s conftest$ac_exeext'
15048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049   (eval $ac_try) 2>&5
15050   ac_status=$?
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); }; }; then
15053   ac_cv_lib_net_main=yes
15054 else
15055   echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15057
15058 ac_cv_lib_net_main=no
15059 fi
15060 rm -f conftest.err conftest.$ac_objext \
15061       conftest$ac_exeext conftest.$ac_ext
15062 LIBS=$ac_check_lib_save_LIBS
15063 fi
15064 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15065 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
15066 if test $ac_cv_lib_net_main = yes; then
15067   cat >>confdefs.h <<_ACEOF
15068 #define HAVE_LIBNET 1
15069 _ACEOF
15070
15071   LIBS="-lnet $LIBS"
15072
15073 fi
15074
15075
15076 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15077 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
15078 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15079   echo $ECHO_N "(cached) $ECHO_C" >&6
15080 else
15081   ac_check_lib_save_LIBS=$LIBS
15082 LIBS="-lnsl_s  $LIBS"
15083 cat >conftest.$ac_ext <<_ACEOF
15084 /* confdefs.h.  */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h.  */
15089
15090
15091 int
15092 main ()
15093 {
15094 main ();
15095   ;
15096   return 0;
15097 }
15098 _ACEOF
15099 rm -f conftest.$ac_objext conftest$ac_exeext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15101   (eval $ac_link) 2>conftest.er1
15102   ac_status=$?
15103   grep -v '^ *+' conftest.er1 >conftest.err
15104   rm -f conftest.er1
15105   cat conftest.err >&5
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); } &&
15108          { ac_try='test -z "$ac_c_werror_flag"
15109                          || test ! -s conftest.err'
15110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111   (eval $ac_try) 2>&5
15112   ac_status=$?
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); }; } &&
15115          { ac_try='test -s conftest$ac_exeext'
15116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117   (eval $ac_try) 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); }; }; then
15121   ac_cv_lib_nsl_s_main=yes
15122 else
15123   echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15125
15126 ac_cv_lib_nsl_s_main=no
15127 fi
15128 rm -f conftest.err conftest.$ac_objext \
15129       conftest$ac_exeext conftest.$ac_ext
15130 LIBS=$ac_check_lib_save_LIBS
15131 fi
15132 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15133 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
15134 if test $ac_cv_lib_nsl_s_main = yes; then
15135   cat >>confdefs.h <<_ACEOF
15136 #define HAVE_LIBNSL_S 1
15137 _ACEOF
15138
15139   LIBS="-lnsl_s $LIBS"
15140
15141 fi
15142
15143
15144 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15145 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15146 if test "${ac_cv_lib_nsl_main+set}" = set; then
15147   echo $ECHO_N "(cached) $ECHO_C" >&6
15148 else
15149   ac_check_lib_save_LIBS=$LIBS
15150 LIBS="-lnsl  $LIBS"
15151 cat >conftest.$ac_ext <<_ACEOF
15152 /* confdefs.h.  */
15153 _ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h.  */
15157
15158
15159 int
15160 main ()
15161 {
15162 main ();
15163   ;
15164   return 0;
15165 }
15166 _ACEOF
15167 rm -f conftest.$ac_objext conftest$ac_exeext
15168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15169   (eval $ac_link) 2>conftest.er1
15170   ac_status=$?
15171   grep -v '^ *+' conftest.er1 >conftest.err
15172   rm -f conftest.er1
15173   cat conftest.err >&5
15174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175   (exit $ac_status); } &&
15176          { ac_try='test -z "$ac_c_werror_flag"
15177                          || test ! -s conftest.err'
15178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179   (eval $ac_try) 2>&5
15180   ac_status=$?
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); }; } &&
15183          { ac_try='test -s conftest$ac_exeext'
15184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185   (eval $ac_try) 2>&5
15186   ac_status=$?
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); }; }; then
15189   ac_cv_lib_nsl_main=yes
15190 else
15191   echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15193
15194 ac_cv_lib_nsl_main=no
15195 fi
15196 rm -f conftest.err conftest.$ac_objext \
15197       conftest$ac_exeext conftest.$ac_ext
15198 LIBS=$ac_check_lib_save_LIBS
15199 fi
15200 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15201 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15202 if test $ac_cv_lib_nsl_main = yes; then
15203   cat >>confdefs.h <<_ACEOF
15204 #define HAVE_LIBNSL 1
15205 _ACEOF
15206
15207   LIBS="-lnsl $LIBS"
15208
15209 fi
15210
15211
15212 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15213 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15214 if test "${ac_cv_lib_inet_socket+set}" = set; then
15215   echo $ECHO_N "(cached) $ECHO_C" >&6
15216 else
15217   ac_check_lib_save_LIBS=$LIBS
15218 LIBS="-linet  $LIBS"
15219 cat >conftest.$ac_ext <<_ACEOF
15220 /* confdefs.h.  */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h.  */
15225
15226 /* Override any gcc2 internal prototype to avoid an error.  */
15227 #ifdef __cplusplus
15228 extern "C"
15229 #endif
15230 /* We use char because int might match the return type of a gcc2
15231    builtin and then its argument prototype would still apply.  */
15232 char socket ();
15233 int
15234 main ()
15235 {
15236 socket ();
15237   ;
15238   return 0;
15239 }
15240 _ACEOF
15241 rm -f conftest.$ac_objext conftest$ac_exeext
15242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15243   (eval $ac_link) 2>conftest.er1
15244   ac_status=$?
15245   grep -v '^ *+' conftest.er1 >conftest.err
15246   rm -f conftest.er1
15247   cat conftest.err >&5
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); } &&
15250          { ac_try='test -z "$ac_c_werror_flag"
15251                          || test ! -s conftest.err'
15252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253   (eval $ac_try) 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); }; } &&
15257          { ac_try='test -s conftest$ac_exeext'
15258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259   (eval $ac_try) 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); }; }; then
15263   ac_cv_lib_inet_socket=yes
15264 else
15265   echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15267
15268 ac_cv_lib_inet_socket=no
15269 fi
15270 rm -f conftest.err conftest.$ac_objext \
15271       conftest$ac_exeext conftest.$ac_ext
15272 LIBS=$ac_check_lib_save_LIBS
15273 fi
15274 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15275 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15276 if test $ac_cv_lib_inet_socket = yes; then
15277   cat >>confdefs.h <<_ACEOF
15278 #define HAVE_LIBINET 1
15279 _ACEOF
15280
15281   LIBS="-linet $LIBS"
15282
15283 fi
15284
15285
15286 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15287 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15288 if test "${ac_cv_lib_gen_main+set}" = set; then
15289   echo $ECHO_N "(cached) $ECHO_C" >&6
15290 else
15291   ac_check_lib_save_LIBS=$LIBS
15292 LIBS="-lgen  $LIBS"
15293 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h.  */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h.  */
15299
15300
15301 int
15302 main ()
15303 {
15304 main ();
15305   ;
15306   return 0;
15307 }
15308 _ACEOF
15309 rm -f conftest.$ac_objext conftest$ac_exeext
15310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15311   (eval $ac_link) 2>conftest.er1
15312   ac_status=$?
15313   grep -v '^ *+' conftest.er1 >conftest.err
15314   rm -f conftest.er1
15315   cat conftest.err >&5
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); } &&
15318          { ac_try='test -z "$ac_c_werror_flag"
15319                          || test ! -s conftest.err'
15320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321   (eval $ac_try) 2>&5
15322   ac_status=$?
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); }; } &&
15325          { ac_try='test -s conftest$ac_exeext'
15326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327   (eval $ac_try) 2>&5
15328   ac_status=$?
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); }; }; then
15331   ac_cv_lib_gen_main=yes
15332 else
15333   echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15335
15336 ac_cv_lib_gen_main=no
15337 fi
15338 rm -f conftest.err conftest.$ac_objext \
15339       conftest$ac_exeext conftest.$ac_ext
15340 LIBS=$ac_check_lib_save_LIBS
15341 fi
15342 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15343 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15344 if test $ac_cv_lib_gen_main = yes; then
15345   cat >>confdefs.h <<_ACEOF
15346 #define HAVE_LIBGEN 1
15347 _ACEOF
15348
15349   LIBS="-lgen $LIBS"
15350
15351 fi
15352
15353
15354 fi
15355
15356
15357 echo "$as_me:$LINENO: checking for select" >&5
15358 echo $ECHO_N "checking for select... $ECHO_C" >&6
15359 if test "${ac_cv_func_select+set}" = set; then
15360   echo $ECHO_N "(cached) $ECHO_C" >&6
15361 else
15362   cat >conftest.$ac_ext <<_ACEOF
15363 /* confdefs.h.  */
15364 _ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h.  */
15368 /* Define select to an innocuous variant, in case <limits.h> declares select.
15369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15370 #define select innocuous_select
15371
15372 /* System header to define __stub macros and hopefully few prototypes,
15373     which can conflict with char select (); below.
15374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15375     <limits.h> exists even on freestanding compilers.  */
15376
15377 #ifdef __STDC__
15378 # include <limits.h>
15379 #else
15380 # include <assert.h>
15381 #endif
15382
15383 #undef select
15384
15385 /* Override any gcc2 internal prototype to avoid an error.  */
15386 #ifdef __cplusplus
15387 extern "C"
15388 {
15389 #endif
15390 /* We use char because int might match the return type of a gcc2
15391    builtin and then its argument prototype would still apply.  */
15392 char select ();
15393 /* The GNU C library defines this for functions which it implements
15394     to always fail with ENOSYS.  Some functions are actually named
15395     something starting with __ and the normal name is an alias.  */
15396 #if defined (__stub_select) || defined (__stub___select)
15397 choke me
15398 #else
15399 char (*f) () = select;
15400 #endif
15401 #ifdef __cplusplus
15402 }
15403 #endif
15404
15405 int
15406 main ()
15407 {
15408 return f != select;
15409   ;
15410   return 0;
15411 }
15412 _ACEOF
15413 rm -f conftest.$ac_objext conftest$ac_exeext
15414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15415   (eval $ac_link) 2>conftest.er1
15416   ac_status=$?
15417   grep -v '^ *+' conftest.er1 >conftest.err
15418   rm -f conftest.er1
15419   cat conftest.err >&5
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); } &&
15422          { ac_try='test -z "$ac_c_werror_flag"
15423                          || test ! -s conftest.err'
15424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425   (eval $ac_try) 2>&5
15426   ac_status=$?
15427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428   (exit $ac_status); }; } &&
15429          { ac_try='test -s conftest$ac_exeext'
15430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431   (eval $ac_try) 2>&5
15432   ac_status=$?
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); }; }; then
15435   ac_cv_func_select=yes
15436 else
15437   echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15439
15440 ac_cv_func_select=no
15441 fi
15442 rm -f conftest.err conftest.$ac_objext \
15443       conftest$ac_exeext conftest.$ac_ext
15444 fi
15445 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15446 echo "${ECHO_T}$ac_cv_func_select" >&6
15447 if test $ac_cv_func_select = yes; then
15448   :
15449 else
15450   { { echo "$as_me:$LINENO: error: select() required." >&5
15451 echo "$as_me: error: select() required." >&2;}
15452    { (exit 1); exit 1; }; }
15453 fi
15454
15455
15456 if test "${ac_cv_header_winsock_h}" != yes; then
15457
15458
15459 for ac_header in sys/select.h sys/socket.h
15460 do
15461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15463   echo "$as_me:$LINENO: checking for $ac_header" >&5
15464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15466   echo $ECHO_N "(cached) $ECHO_C" >&6
15467 fi
15468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15470 else
15471   # Is the header compilable?
15472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15474 cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h.  */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h.  */
15480 $ac_includes_default
15481 #include <$ac_header>
15482 _ACEOF
15483 rm -f conftest.$ac_objext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15485   (eval $ac_compile) 2>conftest.er1
15486   ac_status=$?
15487   grep -v '^ *+' conftest.er1 >conftest.err
15488   rm -f conftest.er1
15489   cat conftest.err >&5
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); } &&
15492          { ac_try='test -z "$ac_c_werror_flag"
15493                          || test ! -s conftest.err'
15494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495   (eval $ac_try) 2>&5
15496   ac_status=$?
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); }; } &&
15499          { ac_try='test -s conftest.$ac_objext'
15500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501   (eval $ac_try) 2>&5
15502   ac_status=$?
15503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); }; }; then
15505   ac_header_compiler=yes
15506 else
15507   echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15509
15510 ac_header_compiler=no
15511 fi
15512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15514 echo "${ECHO_T}$ac_header_compiler" >&6
15515
15516 # Is the header present?
15517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15519 cat >conftest.$ac_ext <<_ACEOF
15520 /* confdefs.h.  */
15521 _ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h.  */
15525 #include <$ac_header>
15526 _ACEOF
15527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15529   ac_status=$?
15530   grep -v '^ *+' conftest.er1 >conftest.err
15531   rm -f conftest.er1
15532   cat conftest.err >&5
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); } >/dev/null; then
15535   if test -s conftest.err; then
15536     ac_cpp_err=$ac_c_preproc_warn_flag
15537     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15538   else
15539     ac_cpp_err=
15540   fi
15541 else
15542   ac_cpp_err=yes
15543 fi
15544 if test -z "$ac_cpp_err"; then
15545   ac_header_preproc=yes
15546 else
15547   echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15549
15550   ac_header_preproc=no
15551 fi
15552 rm -f conftest.err conftest.$ac_ext
15553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15554 echo "${ECHO_T}$ac_header_preproc" >&6
15555
15556 # So?  What about this header?
15557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15558   yes:no: )
15559     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15561     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15563     ac_header_preproc=yes
15564     ;;
15565   no:yes:* )
15566     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15568     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15569 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15570     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15572     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15573 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15576     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15578     (
15579       cat <<\_ASBOX
15580 ## --------------------------------------------- ##
15581 ## Report this to <http://www.openldap.org/its/> ##
15582 ## --------------------------------------------- ##
15583 _ASBOX
15584     ) |
15585       sed "s/^/$as_me: WARNING:     /" >&2
15586     ;;
15587 esac
15588 echo "$as_me:$LINENO: checking for $ac_header" >&5
15589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15591   echo $ECHO_N "(cached) $ECHO_C" >&6
15592 else
15593   eval "$as_ac_Header=\$ac_header_preproc"
15594 fi
15595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15597
15598 fi
15599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15600   cat >>confdefs.h <<_ACEOF
15601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15602 _ACEOF
15603
15604 fi
15605
15606 done
15607
15608 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15609 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15610 if test "${ac_cv_func_select_args+set}" = set; then
15611   echo $ECHO_N "(cached) $ECHO_C" >&6
15612 else
15613   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15614  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15615   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15616    cat >conftest.$ac_ext <<_ACEOF
15617 /* confdefs.h.  */
15618 _ACEOF
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h.  */
15622 $ac_includes_default
15623 #if HAVE_SYS_SELECT_H
15624 # include <sys/select.h>
15625 #endif
15626 #if HAVE_SYS_SOCKET_H
15627 # include <sys/socket.h>
15628 #endif
15629
15630 int
15631 main ()
15632 {
15633 extern int select ($ac_arg1,
15634                                             $ac_arg234, $ac_arg234, $ac_arg234,
15635                                             $ac_arg5);
15636   ;
15637   return 0;
15638 }
15639 _ACEOF
15640 rm -f conftest.$ac_objext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15642   (eval $ac_compile) 2>conftest.er1
15643   ac_status=$?
15644   grep -v '^ *+' conftest.er1 >conftest.err
15645   rm -f conftest.er1
15646   cat conftest.err >&5
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); } &&
15649          { ac_try='test -z "$ac_c_werror_flag"
15650                          || test ! -s conftest.err'
15651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652   (eval $ac_try) 2>&5
15653   ac_status=$?
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); }; } &&
15656          { ac_try='test -s conftest.$ac_objext'
15657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658   (eval $ac_try) 2>&5
15659   ac_status=$?
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); }; }; then
15662   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15663 else
15664   echo "$as_me: failed program was:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15666
15667 fi
15668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15669   done
15670  done
15671 done
15672 # Provide a safe default value.
15673 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15674
15675 fi
15676 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15677 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15678 ac_save_IFS=$IFS; IFS=','
15679 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15680 IFS=$ac_save_IFS
15681 shift
15682
15683 cat >>confdefs.h <<_ACEOF
15684 #define SELECT_TYPE_ARG1 $1
15685 _ACEOF
15686
15687
15688 cat >>confdefs.h <<_ACEOF
15689 #define SELECT_TYPE_ARG234 ($2)
15690 _ACEOF
15691
15692
15693 cat >>confdefs.h <<_ACEOF
15694 #define SELECT_TYPE_ARG5 ($3)
15695 _ACEOF
15696
15697 rm -f conftest*
15698
15699 fi
15700
15701
15702
15703 for ac_func in poll
15704 do
15705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15706 echo "$as_me:$LINENO: checking for $ac_func" >&5
15707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15708 if eval "test \"\${$as_ac_var+set}\" = set"; then
15709   echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711   cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h.  */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h.  */
15717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15719 #define $ac_func innocuous_$ac_func
15720
15721 /* System header to define __stub macros and hopefully few prototypes,
15722     which can conflict with char $ac_func (); below.
15723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15724     <limits.h> exists even on freestanding compilers.  */
15725
15726 #ifdef __STDC__
15727 # include <limits.h>
15728 #else
15729 # include <assert.h>
15730 #endif
15731
15732 #undef $ac_func
15733
15734 /* Override any gcc2 internal prototype to avoid an error.  */
15735 #ifdef __cplusplus
15736 extern "C"
15737 {
15738 #endif
15739 /* We use char because int might match the return type of a gcc2
15740    builtin and then its argument prototype would still apply.  */
15741 char $ac_func ();
15742 /* The GNU C library defines this for functions which it implements
15743     to always fail with ENOSYS.  Some functions are actually named
15744     something starting with __ and the normal name is an alias.  */
15745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15746 choke me
15747 #else
15748 char (*f) () = $ac_func;
15749 #endif
15750 #ifdef __cplusplus
15751 }
15752 #endif
15753
15754 int
15755 main ()
15756 {
15757 return f != $ac_func;
15758   ;
15759   return 0;
15760 }
15761 _ACEOF
15762 rm -f conftest.$ac_objext conftest$ac_exeext
15763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15764   (eval $ac_link) 2>conftest.er1
15765   ac_status=$?
15766   grep -v '^ *+' conftest.er1 >conftest.err
15767   rm -f conftest.er1
15768   cat conftest.err >&5
15769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770   (exit $ac_status); } &&
15771          { ac_try='test -z "$ac_c_werror_flag"
15772                          || test ! -s conftest.err'
15773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774   (eval $ac_try) 2>&5
15775   ac_status=$?
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); }; } &&
15778          { ac_try='test -s conftest$ac_exeext'
15779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780   (eval $ac_try) 2>&5
15781   ac_status=$?
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); }; }; then
15784   eval "$as_ac_var=yes"
15785 else
15786   echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15788
15789 eval "$as_ac_var=no"
15790 fi
15791 rm -f conftest.err conftest.$ac_objext \
15792       conftest$ac_exeext conftest.$ac_ext
15793 fi
15794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15796 if test `eval echo '${'$as_ac_var'}'` = yes; then
15797   cat >>confdefs.h <<_ACEOF
15798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15799 _ACEOF
15800
15801 fi
15802 done
15803
15804 if test $ac_cv_func_poll = yes; then
15805
15806
15807 for ac_header in poll.h sys/poll.h
15808 do
15809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15811   echo "$as_me:$LINENO: checking for $ac_header" >&5
15812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15814   echo $ECHO_N "(cached) $ECHO_C" >&6
15815 fi
15816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15818 else
15819   # Is the header compilable?
15820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15822 cat >conftest.$ac_ext <<_ACEOF
15823 /* confdefs.h.  */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h.  */
15828 $ac_includes_default
15829 #include <$ac_header>
15830 _ACEOF
15831 rm -f conftest.$ac_objext
15832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15833   (eval $ac_compile) 2>conftest.er1
15834   ac_status=$?
15835   grep -v '^ *+' conftest.er1 >conftest.err
15836   rm -f conftest.er1
15837   cat conftest.err >&5
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); } &&
15840          { ac_try='test -z "$ac_c_werror_flag"
15841                          || test ! -s conftest.err'
15842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843   (eval $ac_try) 2>&5
15844   ac_status=$?
15845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846   (exit $ac_status); }; } &&
15847          { ac_try='test -s conftest.$ac_objext'
15848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849   (eval $ac_try) 2>&5
15850   ac_status=$?
15851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); }; }; then
15853   ac_header_compiler=yes
15854 else
15855   echo "$as_me: failed program was:" >&5
15856 sed 's/^/| /' conftest.$ac_ext >&5
15857
15858 ac_header_compiler=no
15859 fi
15860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15862 echo "${ECHO_T}$ac_header_compiler" >&6
15863
15864 # Is the header present?
15865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15867 cat >conftest.$ac_ext <<_ACEOF
15868 /* confdefs.h.  */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h.  */
15873 #include <$ac_header>
15874 _ACEOF
15875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15876   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15877   ac_status=$?
15878   grep -v '^ *+' conftest.er1 >conftest.err
15879   rm -f conftest.er1
15880   cat conftest.err >&5
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); } >/dev/null; then
15883   if test -s conftest.err; then
15884     ac_cpp_err=$ac_c_preproc_warn_flag
15885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15886   else
15887     ac_cpp_err=
15888   fi
15889 else
15890   ac_cpp_err=yes
15891 fi
15892 if test -z "$ac_cpp_err"; then
15893   ac_header_preproc=yes
15894 else
15895   echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15897
15898   ac_header_preproc=no
15899 fi
15900 rm -f conftest.err conftest.$ac_ext
15901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15902 echo "${ECHO_T}$ac_header_preproc" >&6
15903
15904 # So?  What about this header?
15905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15906   yes:no: )
15907     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15911     ac_header_preproc=yes
15912     ;;
15913   no:yes:* )
15914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15916     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15917 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15918     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15920     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15921 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15924     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15926     (
15927       cat <<\_ASBOX
15928 ## --------------------------------------------- ##
15929 ## Report this to <http://www.openldap.org/its/> ##
15930 ## --------------------------------------------- ##
15931 _ASBOX
15932     ) |
15933       sed "s/^/$as_me: WARNING:     /" >&2
15934     ;;
15935 esac
15936 echo "$as_me:$LINENO: checking for $ac_header" >&5
15937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15939   echo $ECHO_N "(cached) $ECHO_C" >&6
15940 else
15941   eval "$as_ac_Header=\$ac_header_preproc"
15942 fi
15943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15945
15946 fi
15947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15948   cat >>confdefs.h <<_ACEOF
15949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15950 _ACEOF
15951
15952 fi
15953
15954 done
15955
15956 fi
15957
15958
15959 for ac_header in sys/epoll.h
15960 do
15961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15963   echo "$as_me:$LINENO: checking for $ac_header" >&5
15964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15966   echo $ECHO_N "(cached) $ECHO_C" >&6
15967 fi
15968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15970 else
15971   # Is the header compilable?
15972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15974 cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h.  */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h.  */
15980 $ac_includes_default
15981 #include <$ac_header>
15982 _ACEOF
15983 rm -f conftest.$ac_objext
15984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985   (eval $ac_compile) 2>conftest.er1
15986   ac_status=$?
15987   grep -v '^ *+' conftest.er1 >conftest.err
15988   rm -f conftest.er1
15989   cat conftest.err >&5
15990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991   (exit $ac_status); } &&
15992          { ac_try='test -z "$ac_c_werror_flag"
15993                          || test ! -s conftest.err'
15994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995   (eval $ac_try) 2>&5
15996   ac_status=$?
15997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998   (exit $ac_status); }; } &&
15999          { ac_try='test -s conftest.$ac_objext'
16000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001   (eval $ac_try) 2>&5
16002   ac_status=$?
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); }; }; then
16005   ac_header_compiler=yes
16006 else
16007   echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16009
16010 ac_header_compiler=no
16011 fi
16012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16014 echo "${ECHO_T}$ac_header_compiler" >&6
16015
16016 # Is the header present?
16017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16019 cat >conftest.$ac_ext <<_ACEOF
16020 /* confdefs.h.  */
16021 _ACEOF
16022 cat confdefs.h >>conftest.$ac_ext
16023 cat >>conftest.$ac_ext <<_ACEOF
16024 /* end confdefs.h.  */
16025 #include <$ac_header>
16026 _ACEOF
16027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16029   ac_status=$?
16030   grep -v '^ *+' conftest.er1 >conftest.err
16031   rm -f conftest.er1
16032   cat conftest.err >&5
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); } >/dev/null; then
16035   if test -s conftest.err; then
16036     ac_cpp_err=$ac_c_preproc_warn_flag
16037     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16038   else
16039     ac_cpp_err=
16040   fi
16041 else
16042   ac_cpp_err=yes
16043 fi
16044 if test -z "$ac_cpp_err"; then
16045   ac_header_preproc=yes
16046 else
16047   echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16049
16050   ac_header_preproc=no
16051 fi
16052 rm -f conftest.err conftest.$ac_ext
16053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16054 echo "${ECHO_T}$ac_header_preproc" >&6
16055
16056 # So?  What about this header?
16057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16058   yes:no: )
16059     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16063     ac_header_preproc=yes
16064     ;;
16065   no:yes:* )
16066     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16068     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16069 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16070     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16072     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16073 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16076     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16078     (
16079       cat <<\_ASBOX
16080 ## --------------------------------------------- ##
16081 ## Report this to <http://www.openldap.org/its/> ##
16082 ## --------------------------------------------- ##
16083 _ASBOX
16084     ) |
16085       sed "s/^/$as_me: WARNING:     /" >&2
16086     ;;
16087 esac
16088 echo "$as_me:$LINENO: checking for $ac_header" >&5
16089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16091   echo $ECHO_N "(cached) $ECHO_C" >&6
16092 else
16093   eval "$as_ac_Header=\$ac_header_preproc"
16094 fi
16095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16097
16098 fi
16099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16100   cat >>confdefs.h <<_ACEOF
16101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16102 _ACEOF
16103
16104 fi
16105
16106 done
16107
16108 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16109         echo "$as_me:$LINENO: checking for epoll system call" >&5
16110 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
16111         if test "$cross_compiling" = yes; then
16112   echo "$as_me:$LINENO: result: no" >&5
16113 echo "${ECHO_T}no" >&6
16114 else
16115   cat >conftest.$ac_ext <<_ACEOF
16116 /* confdefs.h.  */
16117 _ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h.  */
16121 int main(int argc, char **argv)
16122 {
16123         int epfd = epoll_create(256);
16124         exit (epfd == -1 ? 1 : 0);
16125 }
16126 _ACEOF
16127 rm -f conftest$ac_exeext
16128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16129   (eval $ac_link) 2>&5
16130   ac_status=$?
16131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134   (eval $ac_try) 2>&5
16135   ac_status=$?
16136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137   (exit $ac_status); }; }; then
16138   echo "$as_me:$LINENO: result: yes" >&5
16139 echo "${ECHO_T}yes" >&6
16140
16141 cat >>confdefs.h <<\_ACEOF
16142 #define HAVE_EPOLL 1
16143 _ACEOF
16144
16145 else
16146   echo "$as_me: program exited with status $ac_status" >&5
16147 echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16149
16150 ( exit $ac_status )
16151 echo "$as_me:$LINENO: result: no" >&5
16152 echo "${ECHO_T}no" >&6
16153 fi
16154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16155 fi
16156 fi
16157
16158
16159 for ac_header in sys/devpoll.h
16160 do
16161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16163   echo "$as_me:$LINENO: checking for $ac_header" >&5
16164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16166   echo $ECHO_N "(cached) $ECHO_C" >&6
16167 fi
16168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16170 else
16171   # Is the header compilable?
16172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16174 cat >conftest.$ac_ext <<_ACEOF
16175 /* confdefs.h.  */
16176 _ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h.  */
16180 $ac_includes_default
16181 #include <$ac_header>
16182 _ACEOF
16183 rm -f conftest.$ac_objext
16184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16185   (eval $ac_compile) 2>conftest.er1
16186   ac_status=$?
16187   grep -v '^ *+' conftest.er1 >conftest.err
16188   rm -f conftest.er1
16189   cat conftest.err >&5
16190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191   (exit $ac_status); } &&
16192          { ac_try='test -z "$ac_c_werror_flag"
16193                          || test ! -s conftest.err'
16194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195   (eval $ac_try) 2>&5
16196   ac_status=$?
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); }; } &&
16199          { ac_try='test -s conftest.$ac_objext'
16200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201   (eval $ac_try) 2>&5
16202   ac_status=$?
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); }; }; then
16205   ac_header_compiler=yes
16206 else
16207   echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16209
16210 ac_header_compiler=no
16211 fi
16212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16214 echo "${ECHO_T}$ac_header_compiler" >&6
16215
16216 # Is the header present?
16217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16219 cat >conftest.$ac_ext <<_ACEOF
16220 /* confdefs.h.  */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h.  */
16225 #include <$ac_header>
16226 _ACEOF
16227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16229   ac_status=$?
16230   grep -v '^ *+' conftest.er1 >conftest.err
16231   rm -f conftest.er1
16232   cat conftest.err >&5
16233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234   (exit $ac_status); } >/dev/null; then
16235   if test -s conftest.err; then
16236     ac_cpp_err=$ac_c_preproc_warn_flag
16237     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16238   else
16239     ac_cpp_err=
16240   fi
16241 else
16242   ac_cpp_err=yes
16243 fi
16244 if test -z "$ac_cpp_err"; then
16245   ac_header_preproc=yes
16246 else
16247   echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16249
16250   ac_header_preproc=no
16251 fi
16252 rm -f conftest.err conftest.$ac_ext
16253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16254 echo "${ECHO_T}$ac_header_preproc" >&6
16255
16256 # So?  What about this header?
16257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16258   yes:no: )
16259     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16263     ac_header_preproc=yes
16264     ;;
16265   no:yes:* )
16266     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16268     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16269 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16270     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16272     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16273 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16276     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16278     (
16279       cat <<\_ASBOX
16280 ## --------------------------------------------- ##
16281 ## Report this to <http://www.openldap.org/its/> ##
16282 ## --------------------------------------------- ##
16283 _ASBOX
16284     ) |
16285       sed "s/^/$as_me: WARNING:     /" >&2
16286     ;;
16287 esac
16288 echo "$as_me:$LINENO: checking for $ac_header" >&5
16289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16291   echo $ECHO_N "(cached) $ECHO_C" >&6
16292 else
16293   eval "$as_ac_Header=\$ac_header_preproc"
16294 fi
16295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16297
16298 fi
16299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16300   cat >>confdefs.h <<_ACEOF
16301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16302 _ACEOF
16303
16304 fi
16305
16306 done
16307
16308 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16309                 -a "${ac_cv_header_poll_h}" = yes ; \
16310 then
16311         echo "$as_me:$LINENO: checking for /dev/poll" >&5
16312 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16313         if test "$cross_compiling" = yes; then
16314   echo "$as_me:$LINENO: result: no" >&5
16315 echo "${ECHO_T}no" >&6
16316 else
16317   cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h.  */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h.  */
16323 int main(int argc, char **argv)
16324 {
16325         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16326         exit (devpollfd == -1 ? 1 : 0);
16327 }
16328 _ACEOF
16329 rm -f conftest$ac_exeext
16330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16331   (eval $ac_link) 2>&5
16332   ac_status=$?
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336   (eval $ac_try) 2>&5
16337   ac_status=$?
16338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339   (exit $ac_status); }; }; then
16340   echo "$as_me:$LINENO: result: yes" >&5
16341 echo "${ECHO_T}yes" >&6
16342
16343 cat >>confdefs.h <<\_ACEOF
16344 #define HAVE_DEVPOLL 1
16345 _ACEOF
16346
16347 else
16348   echo "$as_me: program exited with status $ac_status" >&5
16349 echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16351
16352 ( exit $ac_status )
16353 echo "$as_me:$LINENO: result: no" >&5
16354 echo "${ECHO_T}no" >&6
16355 fi
16356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16357 fi
16358 fi
16359
16360 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16361 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16362 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16363   echo $ECHO_N "(cached) $ECHO_C" >&6
16364 else
16365
16366         cat >conftest.$ac_ext <<_ACEOF
16367 /* confdefs.h.  */
16368 _ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h.  */
16372
16373 #include <stdio.h>
16374 #include <sys/types.h>
16375 #include <errno.h>
16376 #ifdef _WIN32
16377 #include <stdlib.h>
16378 #endif
16379 int
16380 main ()
16381 {
16382 char *c = (char *) *sys_errlist
16383   ;
16384   return 0;
16385 }
16386 _ACEOF
16387 rm -f conftest.$ac_objext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16389   (eval $ac_compile) 2>conftest.er1
16390   ac_status=$?
16391   grep -v '^ *+' conftest.er1 >conftest.err
16392   rm -f conftest.er1
16393   cat conftest.err >&5
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); } &&
16396          { ac_try='test -z "$ac_c_werror_flag"
16397                          || test ! -s conftest.err'
16398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399   (eval $ac_try) 2>&5
16400   ac_status=$?
16401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402   (exit $ac_status); }; } &&
16403          { ac_try='test -s conftest.$ac_objext'
16404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405   (eval $ac_try) 2>&5
16406   ac_status=$?
16407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408   (exit $ac_status); }; }; then
16409   ol_cv_dcl_sys_errlist=yes
16410         ol_cv_have_sys_errlist=yes
16411 else
16412   echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 ol_cv_dcl_sys_errlist=no
16416 fi
16417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16418 fi
16419 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16420 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16421 #
16422 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16423 if test $ol_cv_dcl_sys_errlist = no ; then
16424
16425 cat >>confdefs.h <<\_ACEOF
16426 #define DECL_SYS_ERRLIST 1
16427 _ACEOF
16428
16429
16430         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16431 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16432 if test "${ol_cv_have_sys_errlist+set}" = set; then
16433   echo $ECHO_N "(cached) $ECHO_C" >&6
16434 else
16435
16436                 cat >conftest.$ac_ext <<_ACEOF
16437 /* confdefs.h.  */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h.  */
16442 #include <errno.h>
16443 int
16444 main ()
16445 {
16446 char *c = (char *) *sys_errlist
16447   ;
16448   return 0;
16449 }
16450 _ACEOF
16451 rm -f conftest.$ac_objext conftest$ac_exeext
16452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16453   (eval $ac_link) 2>conftest.er1
16454   ac_status=$?
16455   grep -v '^ *+' conftest.er1 >conftest.err
16456   rm -f conftest.er1
16457   cat conftest.err >&5
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); } &&
16460          { ac_try='test -z "$ac_c_werror_flag"
16461                          || test ! -s conftest.err'
16462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463   (eval $ac_try) 2>&5
16464   ac_status=$?
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); }; } &&
16467          { ac_try='test -s conftest$ac_exeext'
16468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469   (eval $ac_try) 2>&5
16470   ac_status=$?
16471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472   (exit $ac_status); }; }; then
16473   ol_cv_have_sys_errlist=yes
16474 else
16475   echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16477
16478 ol_cv_have_sys_errlist=no
16479 fi
16480 rm -f conftest.err conftest.$ac_objext \
16481       conftest$ac_exeext conftest.$ac_ext
16482 fi
16483 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16484 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16485 fi
16486 if test $ol_cv_have_sys_errlist = yes ; then
16487
16488 cat >>confdefs.h <<\_ACEOF
16489 #define HAVE_SYS_ERRLIST 1
16490 _ACEOF
16491
16492 fi
16493
16494
16495 for ac_func in strerror strerror_r
16496 do
16497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16498 echo "$as_me:$LINENO: checking for $ac_func" >&5
16499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16500 if eval "test \"\${$as_ac_var+set}\" = set"; then
16501   echo $ECHO_N "(cached) $ECHO_C" >&6
16502 else
16503   cat >conftest.$ac_ext <<_ACEOF
16504 /* confdefs.h.  */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h.  */
16509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16511 #define $ac_func innocuous_$ac_func
16512
16513 /* System header to define __stub macros and hopefully few prototypes,
16514     which can conflict with char $ac_func (); below.
16515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16516     <limits.h> exists even on freestanding compilers.  */
16517
16518 #ifdef __STDC__
16519 # include <limits.h>
16520 #else
16521 # include <assert.h>
16522 #endif
16523
16524 #undef $ac_func
16525
16526 /* Override any gcc2 internal prototype to avoid an error.  */
16527 #ifdef __cplusplus
16528 extern "C"
16529 {
16530 #endif
16531 /* We use char because int might match the return type of a gcc2
16532    builtin and then its argument prototype would still apply.  */
16533 char $ac_func ();
16534 /* The GNU C library defines this for functions which it implements
16535     to always fail with ENOSYS.  Some functions are actually named
16536     something starting with __ and the normal name is an alias.  */
16537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16538 choke me
16539 #else
16540 char (*f) () = $ac_func;
16541 #endif
16542 #ifdef __cplusplus
16543 }
16544 #endif
16545
16546 int
16547 main ()
16548 {
16549 return f != $ac_func;
16550   ;
16551   return 0;
16552 }
16553 _ACEOF
16554 rm -f conftest.$ac_objext conftest$ac_exeext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16556   (eval $ac_link) 2>conftest.er1
16557   ac_status=$?
16558   grep -v '^ *+' conftest.er1 >conftest.err
16559   rm -f conftest.er1
16560   cat conftest.err >&5
16561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562   (exit $ac_status); } &&
16563          { ac_try='test -z "$ac_c_werror_flag"
16564                          || test ! -s conftest.err'
16565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566   (eval $ac_try) 2>&5
16567   ac_status=$?
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); }; } &&
16570          { ac_try='test -s conftest$ac_exeext'
16571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572   (eval $ac_try) 2>&5
16573   ac_status=$?
16574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575   (exit $ac_status); }; }; then
16576   eval "$as_ac_var=yes"
16577 else
16578   echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16580
16581 eval "$as_ac_var=no"
16582 fi
16583 rm -f conftest.err conftest.$ac_objext \
16584       conftest$ac_exeext conftest.$ac_ext
16585 fi
16586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16588 if test `eval echo '${'$as_ac_var'}'` = yes; then
16589   cat >>confdefs.h <<_ACEOF
16590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16591 _ACEOF
16592
16593 fi
16594 done
16595
16596 ol_cv_func_strerror_r=no
16597 if test "${ac_cv_func_strerror_r}" = yes ; then
16598         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16599 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16600 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16601   echo $ECHO_N "(cached) $ECHO_C" >&6
16602 else
16603
16604         cat >conftest.$ac_ext <<_ACEOF
16605 /* confdefs.h.  */
16606 _ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h.  */
16610 #include <string.h>
16611 _ACEOF
16612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16613   $EGREP "strerror_r" >/dev/null 2>&1; then
16614   ol_decl_strerror_r=yes
16615 else
16616   ol_decl_strerror_r=no
16617 fi
16618 rm -f conftest*
16619
16620         if test $ol_decl_strerror_r = yes ; then
16621                 cat >conftest.$ac_ext <<_ACEOF
16622 /* confdefs.h.  */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h.  */
16627 #include <string.h>
16628 int
16629 main ()
16630 {
16631    /* from autoconf 2.59 */
16632                                 char buf[100];
16633                                 char x = *strerror_r (0, buf, sizeof buf);
16634                                 char *p = strerror_r (0, buf, sizeof buf);
16635
16636   ;
16637   return 0;
16638 }
16639 _ACEOF
16640 rm -f conftest.$ac_objext
16641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16642   (eval $ac_compile) 2>conftest.er1
16643   ac_status=$?
16644   grep -v '^ *+' conftest.er1 >conftest.err
16645   rm -f conftest.er1
16646   cat conftest.err >&5
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); } &&
16649          { ac_try='test -z "$ac_c_werror_flag"
16650                          || test ! -s conftest.err'
16651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652   (eval $ac_try) 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); }; } &&
16656          { ac_try='test -s conftest.$ac_objext'
16657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658   (eval $ac_try) 2>&5
16659   ac_status=$?
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); }; }; then
16662   ol_cv_nonposix_strerror_r=yes
16663 else
16664   echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16666
16667 ol_cv_nonposix_strerror_r=no
16668 fi
16669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16670         else
16671                 if test "$cross_compiling" = yes; then
16672   ol_cv_nonposix_strerror=no
16673 else
16674   cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h.  */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h.  */
16680
16681                         main() {
16682                                 char buf[100];
16683                                 buf[0] = 0;
16684                                 strerror_r( 1, buf, sizeof buf );
16685                                 exit( buf[0] == 0 );
16686                         }
16687
16688 _ACEOF
16689 rm -f conftest$ac_exeext
16690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16691   (eval $ac_link) 2>&5
16692   ac_status=$?
16693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696   (eval $ac_try) 2>&5
16697   ac_status=$?
16698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699   (exit $ac_status); }; }; then
16700   ol_cv_nonposix_strerror_r=yes
16701 else
16702   echo "$as_me: program exited with status $ac_status" >&5
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16705
16706 ( exit $ac_status )
16707 ol_cv_nonposix_strerror=no
16708 fi
16709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16710 fi
16711         fi
16712
16713 fi
16714 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16715 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16716 if test $ol_cv_nonposix_strerror_r = yes ; then
16717
16718 cat >>confdefs.h <<\_ACEOF
16719 #define HAVE_NONPOSIX_STRERROR_R 1
16720 _ACEOF
16721
16722 fi
16723
16724 elif test "${ac_cv_func_strerror}" = no ; then
16725         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16726 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16727 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16728   echo $ECHO_N "(cached) $ECHO_C" >&6
16729 else
16730
16731         cat >conftest.$ac_ext <<_ACEOF
16732 /* confdefs.h.  */
16733 _ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h.  */
16737
16738 #include <stdio.h>
16739 #include <sys/types.h>
16740 #include <errno.h>
16741 #ifdef _WIN32
16742 #include <stdlib.h>
16743 #endif
16744 int
16745 main ()
16746 {
16747 char *c = (char *) *sys_errlist
16748   ;
16749   return 0;
16750 }
16751 _ACEOF
16752 rm -f conftest.$ac_objext
16753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16754   (eval $ac_compile) 2>conftest.er1
16755   ac_status=$?
16756   grep -v '^ *+' conftest.er1 >conftest.err
16757   rm -f conftest.er1
16758   cat conftest.err >&5
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); } &&
16761          { ac_try='test -z "$ac_c_werror_flag"
16762                          || test ! -s conftest.err'
16763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764   (eval $ac_try) 2>&5
16765   ac_status=$?
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); }; } &&
16768          { ac_try='test -s conftest.$ac_objext'
16769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770   (eval $ac_try) 2>&5
16771   ac_status=$?
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); }; }; then
16774   ol_cv_dcl_sys_errlist=yes
16775         ol_cv_have_sys_errlist=yes
16776 else
16777   echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16779
16780 ol_cv_dcl_sys_errlist=no
16781 fi
16782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16783 fi
16784 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16785 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16786 #
16787 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16788 if test $ol_cv_dcl_sys_errlist = no ; then
16789
16790 cat >>confdefs.h <<\_ACEOF
16791 #define DECL_SYS_ERRLIST 1
16792 _ACEOF
16793
16794
16795         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16796 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16797 if test "${ol_cv_have_sys_errlist+set}" = set; then
16798   echo $ECHO_N "(cached) $ECHO_C" >&6
16799 else
16800
16801                 cat >conftest.$ac_ext <<_ACEOF
16802 /* confdefs.h.  */
16803 _ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h.  */
16807 #include <errno.h>
16808 int
16809 main ()
16810 {
16811 char *c = (char *) *sys_errlist
16812   ;
16813   return 0;
16814 }
16815 _ACEOF
16816 rm -f conftest.$ac_objext conftest$ac_exeext
16817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16818   (eval $ac_link) 2>conftest.er1
16819   ac_status=$?
16820   grep -v '^ *+' conftest.er1 >conftest.err
16821   rm -f conftest.er1
16822   cat conftest.err >&5
16823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824   (exit $ac_status); } &&
16825          { ac_try='test -z "$ac_c_werror_flag"
16826                          || test ! -s conftest.err'
16827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828   (eval $ac_try) 2>&5
16829   ac_status=$?
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); }; } &&
16832          { ac_try='test -s conftest$ac_exeext'
16833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834   (eval $ac_try) 2>&5
16835   ac_status=$?
16836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837   (exit $ac_status); }; }; then
16838   ol_cv_have_sys_errlist=yes
16839 else
16840   echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16842
16843 ol_cv_have_sys_errlist=no
16844 fi
16845 rm -f conftest.err conftest.$ac_objext \
16846       conftest$ac_exeext conftest.$ac_ext
16847 fi
16848 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16849 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16850 fi
16851 if test $ol_cv_have_sys_errlist = yes ; then
16852
16853 cat >>confdefs.h <<\_ACEOF
16854 #define HAVE_SYS_ERRLIST 1
16855 _ACEOF
16856
16857 fi
16858
16859 fi
16860
16861
16862
16863 for ac_header in regex.h
16864 do
16865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16866 echo "$as_me:$LINENO: checking for $ac_header" >&5
16867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16869   echo $ECHO_N "(cached) $ECHO_C" >&6
16870 else
16871   cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h.  */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h.  */
16877 $ac_includes_default
16878 #ifdef HAVE_SYS_TYPES_H
16879 #include <sys/types.h>
16880 #endif
16881
16882
16883 #include <$ac_header>
16884 _ACEOF
16885 rm -f conftest.$ac_objext
16886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16887   (eval $ac_compile) 2>conftest.er1
16888   ac_status=$?
16889   grep -v '^ *+' conftest.er1 >conftest.err
16890   rm -f conftest.er1
16891   cat conftest.err >&5
16892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893   (exit $ac_status); } &&
16894          { ac_try='test -z "$ac_c_werror_flag"
16895                          || test ! -s conftest.err'
16896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897   (eval $ac_try) 2>&5
16898   ac_status=$?
16899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900   (exit $ac_status); }; } &&
16901          { ac_try='test -s conftest.$ac_objext'
16902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903   (eval $ac_try) 2>&5
16904   ac_status=$?
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); }; }; then
16907   eval "$as_ac_Header=yes"
16908 else
16909   echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16911
16912 eval "$as_ac_Header=no"
16913 fi
16914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16915 fi
16916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16919   cat >>confdefs.h <<_ACEOF
16920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16921 _ACEOF
16922
16923 fi
16924
16925 done
16926
16927
16928 if test "$ac_cv_header_regex_h" != yes ; then
16929         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16930 echo "$as_me: error: POSIX regex.h required." >&2;}
16931    { (exit 1); exit 1; }; }
16932 fi
16933 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16934 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16935 if test "${ac_cv_search_regfree+set}" = set; then
16936   echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938   ac_func_search_save_LIBS=$LIBS
16939 ac_cv_search_regfree=no
16940 cat >conftest.$ac_ext <<_ACEOF
16941 /* confdefs.h.  */
16942 _ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h.  */
16946
16947 /* Override any gcc2 internal prototype to avoid an error.  */
16948 #ifdef __cplusplus
16949 extern "C"
16950 #endif
16951 /* We use char because int might match the return type of a gcc2
16952    builtin and then its argument prototype would still apply.  */
16953 char regfree ();
16954 int
16955 main ()
16956 {
16957 regfree ();
16958   ;
16959   return 0;
16960 }
16961 _ACEOF
16962 rm -f conftest.$ac_objext conftest$ac_exeext
16963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16964   (eval $ac_link) 2>conftest.er1
16965   ac_status=$?
16966   grep -v '^ *+' conftest.er1 >conftest.err
16967   rm -f conftest.er1
16968   cat conftest.err >&5
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); } &&
16971          { ac_try='test -z "$ac_c_werror_flag"
16972                          || test ! -s conftest.err'
16973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974   (eval $ac_try) 2>&5
16975   ac_status=$?
16976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977   (exit $ac_status); }; } &&
16978          { ac_try='test -s conftest$ac_exeext'
16979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980   (eval $ac_try) 2>&5
16981   ac_status=$?
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); }; }; then
16984   ac_cv_search_regfree="none required"
16985 else
16986   echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16988
16989 fi
16990 rm -f conftest.err conftest.$ac_objext \
16991       conftest$ac_exeext conftest.$ac_ext
16992 if test "$ac_cv_search_regfree" = no; then
16993   for ac_lib in regex gnuregex; do
16994     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16995     cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h.  */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h.  */
17001
17002 /* Override any gcc2 internal prototype to avoid an error.  */
17003 #ifdef __cplusplus
17004 extern "C"
17005 #endif
17006 /* We use char because int might match the return type of a gcc2
17007    builtin and then its argument prototype would still apply.  */
17008 char regfree ();
17009 int
17010 main ()
17011 {
17012 regfree ();
17013   ;
17014   return 0;
17015 }
17016 _ACEOF
17017 rm -f conftest.$ac_objext conftest$ac_exeext
17018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17019   (eval $ac_link) 2>conftest.er1
17020   ac_status=$?
17021   grep -v '^ *+' conftest.er1 >conftest.err
17022   rm -f conftest.er1
17023   cat conftest.err >&5
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); } &&
17026          { ac_try='test -z "$ac_c_werror_flag"
17027                          || test ! -s conftest.err'
17028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029   (eval $ac_try) 2>&5
17030   ac_status=$?
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); }; } &&
17033          { ac_try='test -s conftest$ac_exeext'
17034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035   (eval $ac_try) 2>&5
17036   ac_status=$?
17037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); }; }; then
17039   ac_cv_search_regfree="-l$ac_lib"
17040 break
17041 else
17042   echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045 fi
17046 rm -f conftest.err conftest.$ac_objext \
17047       conftest$ac_exeext conftest.$ac_ext
17048   done
17049 fi
17050 LIBS=$ac_func_search_save_LIBS
17051 fi
17052 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17053 echo "${ECHO_T}$ac_cv_search_regfree" >&6
17054 if test "$ac_cv_search_regfree" != no; then
17055   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
17056   :
17057 else
17058   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17059 echo "$as_me: error: POSIX regex required." >&2;}
17060    { (exit 1); exit 1; }; }
17061 fi
17062
17063
17064
17065 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17066 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
17067 if test "${ol_cv_c_posix_regex+set}" = set; then
17068   echo $ECHO_N "(cached) $ECHO_C" >&6
17069 else
17070
17071         if test "$cross_compiling" = yes; then
17072   ol_cv_c_posix_regex=cross
17073 else
17074   cat >conftest.$ac_ext <<_ACEOF
17075 /* confdefs.h.  */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h.  */
17080
17081 #include <sys/types.h>
17082 #include <regex.h>
17083 static char *pattern, *string;
17084 main()
17085 {
17086         int rc;
17087         regex_t re;
17088
17089         pattern = "^A";
17090
17091         if(regcomp(&re, pattern, 0)) {
17092                 return -1;
17093         }
17094
17095         string = "ALL MATCH";
17096
17097         rc = regexec(&re, string, 0, (void*)0, 0);
17098
17099         regfree(&re);
17100
17101         return rc;
17102 }
17103 _ACEOF
17104 rm -f conftest$ac_exeext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106   (eval $ac_link) 2>&5
17107   ac_status=$?
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17111   (eval $ac_try) 2>&5
17112   ac_status=$?
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); }; }; then
17115   ol_cv_c_posix_regex=yes
17116 else
17117   echo "$as_me: program exited with status $ac_status" >&5
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17120
17121 ( exit $ac_status )
17122 ol_cv_c_posix_regex=no
17123 fi
17124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17125 fi
17126 fi
17127 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17128 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
17129
17130 if test "$ol_cv_c_posix_regex" = no ; then
17131         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17132 echo "$as_me: error: broken POSIX regex!" >&2;}
17133    { (exit 1); exit 1; }; }
17134 fi
17135
17136
17137 have_uuid=no
17138
17139 for ac_header in sys/uuid.h
17140 do
17141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17143   echo "$as_me:$LINENO: checking for $ac_header" >&5
17144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17146   echo $ECHO_N "(cached) $ECHO_C" >&6
17147 fi
17148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17150 else
17151   # Is the header compilable?
17152 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17154 cat >conftest.$ac_ext <<_ACEOF
17155 /* confdefs.h.  */
17156 _ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h.  */
17160 $ac_includes_default
17161 #include <$ac_header>
17162 _ACEOF
17163 rm -f conftest.$ac_objext
17164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17165   (eval $ac_compile) 2>conftest.er1
17166   ac_status=$?
17167   grep -v '^ *+' conftest.er1 >conftest.err
17168   rm -f conftest.er1
17169   cat conftest.err >&5
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); } &&
17172          { ac_try='test -z "$ac_c_werror_flag"
17173                          || test ! -s conftest.err'
17174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175   (eval $ac_try) 2>&5
17176   ac_status=$?
17177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178   (exit $ac_status); }; } &&
17179          { ac_try='test -s conftest.$ac_objext'
17180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181   (eval $ac_try) 2>&5
17182   ac_status=$?
17183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184   (exit $ac_status); }; }; then
17185   ac_header_compiler=yes
17186 else
17187   echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17189
17190 ac_header_compiler=no
17191 fi
17192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17194 echo "${ECHO_T}$ac_header_compiler" >&6
17195
17196 # Is the header present?
17197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17199 cat >conftest.$ac_ext <<_ACEOF
17200 /* confdefs.h.  */
17201 _ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h.  */
17205 #include <$ac_header>
17206 _ACEOF
17207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17209   ac_status=$?
17210   grep -v '^ *+' conftest.er1 >conftest.err
17211   rm -f conftest.er1
17212   cat conftest.err >&5
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); } >/dev/null; then
17215   if test -s conftest.err; then
17216     ac_cpp_err=$ac_c_preproc_warn_flag
17217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17218   else
17219     ac_cpp_err=
17220   fi
17221 else
17222   ac_cpp_err=yes
17223 fi
17224 if test -z "$ac_cpp_err"; then
17225   ac_header_preproc=yes
17226 else
17227   echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17229
17230   ac_header_preproc=no
17231 fi
17232 rm -f conftest.err conftest.$ac_ext
17233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17234 echo "${ECHO_T}$ac_header_preproc" >&6
17235
17236 # So?  What about this header?
17237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17238   yes:no: )
17239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17243     ac_header_preproc=yes
17244     ;;
17245   no:yes:* )
17246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17248     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17249 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17250     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17252     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17253 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17256     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17258     (
17259       cat <<\_ASBOX
17260 ## --------------------------------------------- ##
17261 ## Report this to <http://www.openldap.org/its/> ##
17262 ## --------------------------------------------- ##
17263 _ASBOX
17264     ) |
17265       sed "s/^/$as_me: WARNING:     /" >&2
17266     ;;
17267 esac
17268 echo "$as_me:$LINENO: checking for $ac_header" >&5
17269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17271   echo $ECHO_N "(cached) $ECHO_C" >&6
17272 else
17273   eval "$as_ac_Header=\$ac_header_preproc"
17274 fi
17275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17277
17278 fi
17279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17280   cat >>confdefs.h <<_ACEOF
17281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17282 _ACEOF
17283
17284 fi
17285
17286 done
17287
17288 if test $ac_cv_header_sys_uuid_h = yes ; then
17289         save_LIBS="$LIBS"
17290         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17291 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17292 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17293   echo $ECHO_N "(cached) $ECHO_C" >&6
17294 else
17295   ac_func_search_save_LIBS=$LIBS
17296 ac_cv_search_uuid_to_str=no
17297 cat >conftest.$ac_ext <<_ACEOF
17298 /* confdefs.h.  */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h.  */
17303
17304 /* Override any gcc2 internal prototype to avoid an error.  */
17305 #ifdef __cplusplus
17306 extern "C"
17307 #endif
17308 /* We use char because int might match the return type of a gcc2
17309    builtin and then its argument prototype would still apply.  */
17310 char uuid_to_str ();
17311 int
17312 main ()
17313 {
17314 uuid_to_str ();
17315   ;
17316   return 0;
17317 }
17318 _ACEOF
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17321   (eval $ac_link) 2>conftest.er1
17322   ac_status=$?
17323   grep -v '^ *+' conftest.er1 >conftest.err
17324   rm -f conftest.er1
17325   cat conftest.err >&5
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); } &&
17328          { ac_try='test -z "$ac_c_werror_flag"
17329                          || test ! -s conftest.err'
17330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331   (eval $ac_try) 2>&5
17332   ac_status=$?
17333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); }; } &&
17335          { ac_try='test -s conftest$ac_exeext'
17336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337   (eval $ac_try) 2>&5
17338   ac_status=$?
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); }; }; then
17341   ac_cv_search_uuid_to_str="none required"
17342 else
17343   echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17345
17346 fi
17347 rm -f conftest.err conftest.$ac_objext \
17348       conftest$ac_exeext conftest.$ac_ext
17349 if test "$ac_cv_search_uuid_to_str" = no; then
17350   for ac_lib in uuid; do
17351     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17352     cat >conftest.$ac_ext <<_ACEOF
17353 /* confdefs.h.  */
17354 _ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h.  */
17358
17359 /* Override any gcc2 internal prototype to avoid an error.  */
17360 #ifdef __cplusplus
17361 extern "C"
17362 #endif
17363 /* We use char because int might match the return type of a gcc2
17364    builtin and then its argument prototype would still apply.  */
17365 char uuid_to_str ();
17366 int
17367 main ()
17368 {
17369 uuid_to_str ();
17370   ;
17371   return 0;
17372 }
17373 _ACEOF
17374 rm -f conftest.$ac_objext conftest$ac_exeext
17375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17376   (eval $ac_link) 2>conftest.er1
17377   ac_status=$?
17378   grep -v '^ *+' conftest.er1 >conftest.err
17379   rm -f conftest.er1
17380   cat conftest.err >&5
17381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382   (exit $ac_status); } &&
17383          { ac_try='test -z "$ac_c_werror_flag"
17384                          || test ! -s conftest.err'
17385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386   (eval $ac_try) 2>&5
17387   ac_status=$?
17388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389   (exit $ac_status); }; } &&
17390          { ac_try='test -s conftest$ac_exeext'
17391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392   (eval $ac_try) 2>&5
17393   ac_status=$?
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); }; }; then
17396   ac_cv_search_uuid_to_str="-l$ac_lib"
17397 break
17398 else
17399   echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17401
17402 fi
17403 rm -f conftest.err conftest.$ac_objext \
17404       conftest$ac_exeext conftest.$ac_ext
17405   done
17406 fi
17407 LIBS=$ac_func_search_save_LIBS
17408 fi
17409 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17410 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17411 if test "$ac_cv_search_uuid_to_str" != no; then
17412   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17413   have_uuid=yes
17414 else
17415   :
17416 fi
17417
17418         echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17419 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6
17420 if test "${ac_cv_search_uuid_create+set}" = set; then
17421   echo $ECHO_N "(cached) $ECHO_C" >&6
17422 else
17423   ac_func_search_save_LIBS=$LIBS
17424 ac_cv_search_uuid_create=no
17425 cat >conftest.$ac_ext <<_ACEOF
17426 /* confdefs.h.  */
17427 _ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h.  */
17431
17432 /* Override any gcc2 internal prototype to avoid an error.  */
17433 #ifdef __cplusplus
17434 extern "C"
17435 #endif
17436 /* We use char because int might match the return type of a gcc2
17437    builtin and then its argument prototype would still apply.  */
17438 char uuid_create ();
17439 int
17440 main ()
17441 {
17442 uuid_create ();
17443   ;
17444   return 0;
17445 }
17446 _ACEOF
17447 rm -f conftest.$ac_objext conftest$ac_exeext
17448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17449   (eval $ac_link) 2>conftest.er1
17450   ac_status=$?
17451   grep -v '^ *+' conftest.er1 >conftest.err
17452   rm -f conftest.er1
17453   cat conftest.err >&5
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); } &&
17456          { ac_try='test -z "$ac_c_werror_flag"
17457                          || test ! -s conftest.err'
17458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459   (eval $ac_try) 2>&5
17460   ac_status=$?
17461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); }; } &&
17463          { ac_try='test -s conftest$ac_exeext'
17464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465   (eval $ac_try) 2>&5
17466   ac_status=$?
17467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); }; }; then
17469   ac_cv_search_uuid_create="none required"
17470 else
17471   echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17473
17474 fi
17475 rm -f conftest.err conftest.$ac_objext \
17476       conftest$ac_exeext conftest.$ac_ext
17477 if test "$ac_cv_search_uuid_create" = no; then
17478   for ac_lib in uuid; do
17479     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17480     cat >conftest.$ac_ext <<_ACEOF
17481 /* confdefs.h.  */
17482 _ACEOF
17483 cat confdefs.h >>conftest.$ac_ext
17484 cat >>conftest.$ac_ext <<_ACEOF
17485 /* end confdefs.h.  */
17486
17487 /* Override any gcc2 internal prototype to avoid an error.  */
17488 #ifdef __cplusplus
17489 extern "C"
17490 #endif
17491 /* We use char because int might match the return type of a gcc2
17492    builtin and then its argument prototype would still apply.  */
17493 char uuid_create ();
17494 int
17495 main ()
17496 {
17497 uuid_create ();
17498   ;
17499   return 0;
17500 }
17501 _ACEOF
17502 rm -f conftest.$ac_objext conftest$ac_exeext
17503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17504   (eval $ac_link) 2>conftest.er1
17505   ac_status=$?
17506   grep -v '^ *+' conftest.er1 >conftest.err
17507   rm -f conftest.er1
17508   cat conftest.err >&5
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); } &&
17511          { ac_try='test -z "$ac_c_werror_flag"
17512                          || test ! -s conftest.err'
17513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514   (eval $ac_try) 2>&5
17515   ac_status=$?
17516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517   (exit $ac_status); }; } &&
17518          { ac_try='test -s conftest$ac_exeext'
17519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520   (eval $ac_try) 2>&5
17521   ac_status=$?
17522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523   (exit $ac_status); }; }; then
17524   ac_cv_search_uuid_create="-l$ac_lib"
17525 break
17526 else
17527   echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17529
17530 fi
17531 rm -f conftest.err conftest.$ac_objext \
17532       conftest$ac_exeext conftest.$ac_ext
17533   done
17534 fi
17535 LIBS=$ac_func_search_save_LIBS
17536 fi
17537 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17538 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6
17539 if test "$ac_cv_search_uuid_create" != no; then
17540   test "$ac_cv_search_uuid_create" = "none required" || LIBS="$ac_cv_search_uuid_create $LIBS"
17541   :
17542 else
17543   have_uuid=no
17544 fi
17545
17546         LIBS="$save_LIBS"
17547
17548         if test $have_uuid = yes ; then
17549
17550 cat >>confdefs.h <<\_ACEOF
17551 #define HAVE_UUID_TO_STR 1
17552 _ACEOF
17553
17554
17555                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17556                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17557         fi
17558 fi
17559
17560 if test $have_uuid = no ; then
17561
17562 for ac_header in uuid/uuid.h
17563 do
17564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17566   echo "$as_me:$LINENO: checking for $ac_header" >&5
17567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17569   echo $ECHO_N "(cached) $ECHO_C" >&6
17570 fi
17571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17573 else
17574   # Is the header compilable?
17575 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17577 cat >conftest.$ac_ext <<_ACEOF
17578 /* confdefs.h.  */
17579 _ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h.  */
17583 $ac_includes_default
17584 #include <$ac_header>
17585 _ACEOF
17586 rm -f conftest.$ac_objext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17588   (eval $ac_compile) 2>conftest.er1
17589   ac_status=$?
17590   grep -v '^ *+' conftest.er1 >conftest.err
17591   rm -f conftest.er1
17592   cat conftest.err >&5
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); } &&
17595          { ac_try='test -z "$ac_c_werror_flag"
17596                          || test ! -s conftest.err'
17597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598   (eval $ac_try) 2>&5
17599   ac_status=$?
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); }; } &&
17602          { ac_try='test -s conftest.$ac_objext'
17603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604   (eval $ac_try) 2>&5
17605   ac_status=$?
17606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); }; }; then
17608   ac_header_compiler=yes
17609 else
17610   echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17612
17613 ac_header_compiler=no
17614 fi
17615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17617 echo "${ECHO_T}$ac_header_compiler" >&6
17618
17619 # Is the header present?
17620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17622 cat >conftest.$ac_ext <<_ACEOF
17623 /* confdefs.h.  */
17624 _ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h.  */
17628 #include <$ac_header>
17629 _ACEOF
17630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17631   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17632   ac_status=$?
17633   grep -v '^ *+' conftest.er1 >conftest.err
17634   rm -f conftest.er1
17635   cat conftest.err >&5
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); } >/dev/null; then
17638   if test -s conftest.err; then
17639     ac_cpp_err=$ac_c_preproc_warn_flag
17640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17641   else
17642     ac_cpp_err=
17643   fi
17644 else
17645   ac_cpp_err=yes
17646 fi
17647 if test -z "$ac_cpp_err"; then
17648   ac_header_preproc=yes
17649 else
17650   echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17652
17653   ac_header_preproc=no
17654 fi
17655 rm -f conftest.err conftest.$ac_ext
17656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17657 echo "${ECHO_T}$ac_header_preproc" >&6
17658
17659 # So?  What about this header?
17660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17661   yes:no: )
17662     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17666     ac_header_preproc=yes
17667     ;;
17668   no:yes:* )
17669     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17671     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17672 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17673     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17675     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17676 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17679     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17681     (
17682       cat <<\_ASBOX
17683 ## --------------------------------------------- ##
17684 ## Report this to <http://www.openldap.org/its/> ##
17685 ## --------------------------------------------- ##
17686 _ASBOX
17687     ) |
17688       sed "s/^/$as_me: WARNING:     /" >&2
17689     ;;
17690 esac
17691 echo "$as_me:$LINENO: checking for $ac_header" >&5
17692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17694   echo $ECHO_N "(cached) $ECHO_C" >&6
17695 else
17696   eval "$as_ac_Header=\$ac_header_preproc"
17697 fi
17698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17700
17701 fi
17702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17703   cat >>confdefs.h <<_ACEOF
17704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17705 _ACEOF
17706
17707 fi
17708
17709 done
17710
17711         if test $ac_cv_header_uuid_uuid_h = yes ; then
17712                 save_LIBS="$LIBS"
17713                 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17714 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17715 if test "${ac_cv_search_uuid_generate+set}" = set; then
17716   echo $ECHO_N "(cached) $ECHO_C" >&6
17717 else
17718   ac_func_search_save_LIBS=$LIBS
17719 ac_cv_search_uuid_generate=no
17720 cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h.  */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h.  */
17726
17727 /* Override any gcc2 internal prototype to avoid an error.  */
17728 #ifdef __cplusplus
17729 extern "C"
17730 #endif
17731 /* We use char because int might match the return type of a gcc2
17732    builtin and then its argument prototype would still apply.  */
17733 char uuid_generate ();
17734 int
17735 main ()
17736 {
17737 uuid_generate ();
17738   ;
17739   return 0;
17740 }
17741 _ACEOF
17742 rm -f conftest.$ac_objext conftest$ac_exeext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17744   (eval $ac_link) 2>conftest.er1
17745   ac_status=$?
17746   grep -v '^ *+' conftest.er1 >conftest.err
17747   rm -f conftest.er1
17748   cat conftest.err >&5
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); } &&
17751          { ac_try='test -z "$ac_c_werror_flag"
17752                          || test ! -s conftest.err'
17753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754   (eval $ac_try) 2>&5
17755   ac_status=$?
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); }; } &&
17758          { ac_try='test -s conftest$ac_exeext'
17759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760   (eval $ac_try) 2>&5
17761   ac_status=$?
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); }; }; then
17764   ac_cv_search_uuid_generate="none required"
17765 else
17766   echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17768
17769 fi
17770 rm -f conftest.err conftest.$ac_objext \
17771       conftest$ac_exeext conftest.$ac_ext
17772 if test "$ac_cv_search_uuid_generate" = no; then
17773   for ac_lib in uuid; do
17774     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17775     cat >conftest.$ac_ext <<_ACEOF
17776 /* confdefs.h.  */
17777 _ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h.  */
17781
17782 /* Override any gcc2 internal prototype to avoid an error.  */
17783 #ifdef __cplusplus
17784 extern "C"
17785 #endif
17786 /* We use char because int might match the return type of a gcc2
17787    builtin and then its argument prototype would still apply.  */
17788 char uuid_generate ();
17789 int
17790 main ()
17791 {
17792 uuid_generate ();
17793   ;
17794   return 0;
17795 }
17796 _ACEOF
17797 rm -f conftest.$ac_objext conftest$ac_exeext
17798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17799   (eval $ac_link) 2>conftest.er1
17800   ac_status=$?
17801   grep -v '^ *+' conftest.er1 >conftest.err
17802   rm -f conftest.er1
17803   cat conftest.err >&5
17804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805   (exit $ac_status); } &&
17806          { ac_try='test -z "$ac_c_werror_flag"
17807                          || test ! -s conftest.err'
17808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809   (eval $ac_try) 2>&5
17810   ac_status=$?
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); }; } &&
17813          { ac_try='test -s conftest$ac_exeext'
17814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815   (eval $ac_try) 2>&5
17816   ac_status=$?
17817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818   (exit $ac_status); }; }; then
17819   ac_cv_search_uuid_generate="-l$ac_lib"
17820 break
17821 else
17822   echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17824
17825 fi
17826 rm -f conftest.err conftest.$ac_objext \
17827       conftest$ac_exeext conftest.$ac_ext
17828   done
17829 fi
17830 LIBS=$ac_func_search_save_LIBS
17831 fi
17832 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17833 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17834 if test "$ac_cv_search_uuid_generate" != no; then
17835   test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17836   have_uuid=yes
17837 else
17838   :
17839 fi
17840
17841                 echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
17842 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6
17843 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
17844   echo $ECHO_N "(cached) $ECHO_C" >&6
17845 else
17846   ac_func_search_save_LIBS=$LIBS
17847 ac_cv_search_uuid_unparse_lower=no
17848 cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h.  */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h.  */
17854
17855 /* Override any gcc2 internal prototype to avoid an error.  */
17856 #ifdef __cplusplus
17857 extern "C"
17858 #endif
17859 /* We use char because int might match the return type of a gcc2
17860    builtin and then its argument prototype would still apply.  */
17861 char uuid_unparse_lower ();
17862 int
17863 main ()
17864 {
17865 uuid_unparse_lower ();
17866   ;
17867   return 0;
17868 }
17869 _ACEOF
17870 rm -f conftest.$ac_objext conftest$ac_exeext
17871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17872   (eval $ac_link) 2>conftest.er1
17873   ac_status=$?
17874   grep -v '^ *+' conftest.er1 >conftest.err
17875   rm -f conftest.er1
17876   cat conftest.err >&5
17877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); } &&
17879          { ac_try='test -z "$ac_c_werror_flag"
17880                          || test ! -s conftest.err'
17881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882   (eval $ac_try) 2>&5
17883   ac_status=$?
17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885   (exit $ac_status); }; } &&
17886          { ac_try='test -s conftest$ac_exeext'
17887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888   (eval $ac_try) 2>&5
17889   ac_status=$?
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); }; }; then
17892   ac_cv_search_uuid_unparse_lower="none required"
17893 else
17894   echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17896
17897 fi
17898 rm -f conftest.err conftest.$ac_objext \
17899       conftest$ac_exeext conftest.$ac_ext
17900 if test "$ac_cv_search_uuid_unparse_lower" = no; then
17901   for ac_lib in uuid; do
17902     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17903     cat >conftest.$ac_ext <<_ACEOF
17904 /* confdefs.h.  */
17905 _ACEOF
17906 cat confdefs.h >>conftest.$ac_ext
17907 cat >>conftest.$ac_ext <<_ACEOF
17908 /* end confdefs.h.  */
17909
17910 /* Override any gcc2 internal prototype to avoid an error.  */
17911 #ifdef __cplusplus
17912 extern "C"
17913 #endif
17914 /* We use char because int might match the return type of a gcc2
17915    builtin and then its argument prototype would still apply.  */
17916 char uuid_unparse_lower ();
17917 int
17918 main ()
17919 {
17920 uuid_unparse_lower ();
17921   ;
17922   return 0;
17923 }
17924 _ACEOF
17925 rm -f conftest.$ac_objext conftest$ac_exeext
17926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17927   (eval $ac_link) 2>conftest.er1
17928   ac_status=$?
17929   grep -v '^ *+' conftest.er1 >conftest.err
17930   rm -f conftest.er1
17931   cat conftest.err >&5
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); } &&
17934          { ac_try='test -z "$ac_c_werror_flag"
17935                          || test ! -s conftest.err'
17936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937   (eval $ac_try) 2>&5
17938   ac_status=$?
17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); }; } &&
17941          { ac_try='test -s conftest$ac_exeext'
17942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943   (eval $ac_try) 2>&5
17944   ac_status=$?
17945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946   (exit $ac_status); }; }; then
17947   ac_cv_search_uuid_unparse_lower="-l$ac_lib"
17948 break
17949 else
17950   echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17952
17953 fi
17954 rm -f conftest.err conftest.$ac_objext \
17955       conftest$ac_exeext conftest.$ac_ext
17956   done
17957 fi
17958 LIBS=$ac_func_search_save_LIBS
17959 fi
17960 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
17961 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6
17962 if test "$ac_cv_search_uuid_unparse_lower" != no; then
17963   test "$ac_cv_search_uuid_unparse_lower" = "none required" || LIBS="$ac_cv_search_uuid_unparse_lower $LIBS"
17964   :
17965 else
17966   have_uuid=no
17967 fi
17968
17969                 LIBS="$save_LIBS"
17970
17971                 if test $have_uuid = yes ; then
17972
17973 cat >>confdefs.h <<\_ACEOF
17974 #define HAVE_UUID_GENERATE 1
17975 _ACEOF
17976
17977
17978                         test "$ac_cv_search_uuid_generate" = "none required" || \
17979                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17980                 fi
17981         fi
17982 fi
17983
17984 if test $have_uuid = no ; then
17985         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17986 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17987         save_LIBS="$LIBS"
17988         LIBS="$LIBS -lrpcrt4"
17989         cat >conftest.$ac_ext <<_ACEOF
17990 /* confdefs.h.  */
17991 _ACEOF
17992 cat confdefs.h >>conftest.$ac_ext
17993 cat >>conftest.$ac_ext <<_ACEOF
17994 /* end confdefs.h.  */
17995
17996                 int __stdcall UuidCreate(void *);
17997                 int __stdcall UuidToStringA(void *,void **);
17998
17999 int
18000 main ()
18001 {
18002
18003                 UuidCreate(0);
18004                 UuidToStringA(0,0);
18005
18006   ;
18007   return 0;
18008 }
18009 _ACEOF
18010 rm -f conftest.$ac_objext conftest$ac_exeext
18011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18012   (eval $ac_link) 2>conftest.er1
18013   ac_status=$?
18014   grep -v '^ *+' conftest.er1 >conftest.err
18015   rm -f conftest.er1
18016   cat conftest.err >&5
18017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018   (exit $ac_status); } &&
18019          { ac_try='test -z "$ac_c_werror_flag"
18020                          || test ! -s conftest.err'
18021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022   (eval $ac_try) 2>&5
18023   ac_status=$?
18024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025   (exit $ac_status); }; } &&
18026          { ac_try='test -s conftest$ac_exeext'
18027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028   (eval $ac_try) 2>&5
18029   ac_status=$?
18030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031   (exit $ac_status); }; }; then
18032   need_rpcrt=yes
18033 else
18034   echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18036
18037 need_rpcrt=no
18038 fi
18039 rm -f conftest.err conftest.$ac_objext \
18040       conftest$ac_exeext conftest.$ac_ext
18041         if test $need_rpcrt = yes; then
18042                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18043         fi
18044         LIBS="$save_LIBS"
18045         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18046 echo "${ECHO_T}$need_rpcrt" >&6
18047 fi
18048
18049 ol_cv_lib_resolver=no
18050 if test $ol_cv_lib_resolver = no ; then
18051         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18052 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
18053 if test "${ol_cv_resolver_none+set}" = set; then
18054   echo $ECHO_N "(cached) $ECHO_C" >&6
18055 else
18056
18057         ol_RESOLVER_LIB=
18058         ol_LIBS=$LIBS
18059         LIBS="$ol_RESOLVER_LIB $LIBS"
18060
18061         cat >conftest.$ac_ext <<_ACEOF
18062 /* confdefs.h.  */
18063 _ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h.  */
18067
18068 #ifdef HAVE_SYS_TYPES_H
18069 #       include <sys/types.h>
18070 #endif
18071 #include <netinet/in.h>
18072 #ifdef HAVE_ARPA_NAMESER_H
18073 #       include <arpa/nameser.h>
18074 #endif
18075 #ifdef HAVE_RESOLV_H
18076 #       include <resolv.h>
18077 #endif
18078
18079 int
18080 main ()
18081 {
18082 {
18083         int len, status;
18084         char *request = NULL;
18085         unsigned char reply[64*1024];
18086         unsigned char host[64*1024];
18087         unsigned char *p;
18088
18089 #ifdef NS_HFIXEDSZ
18090         /* Bind 8/9 interface */
18091         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18092 #else
18093         /* Bind 4 interface */
18094 # ifndef T_SRV
18095 #  define T_SRV 33
18096 # endif
18097         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18098 #endif
18099         p = reply;
18100 #ifdef NS_HFIXEDSZ
18101         /* Bind 8/9 interface */
18102         p += NS_HFIXEDSZ;
18103 #elif defined(HFIXEDSZ)
18104         /* Bind 4 interface w/ HFIXEDSZ */
18105         p += HFIXEDSZ;
18106 #else
18107         /* Bind 4 interface w/o HFIXEDSZ */
18108         p += sizeof(HEADER);
18109 #endif
18110         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18111 }
18112   ;
18113   return 0;
18114 }
18115 _ACEOF
18116 rm -f conftest.$ac_objext conftest$ac_exeext
18117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18118   (eval $ac_link) 2>conftest.er1
18119   ac_status=$?
18120   grep -v '^ *+' conftest.er1 >conftest.err
18121   rm -f conftest.er1
18122   cat conftest.err >&5
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); } &&
18125          { ac_try='test -z "$ac_c_werror_flag"
18126                          || test ! -s conftest.err'
18127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128   (eval $ac_try) 2>&5
18129   ac_status=$?
18130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131   (exit $ac_status); }; } &&
18132          { ac_try='test -s conftest$ac_exeext'
18133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134   (eval $ac_try) 2>&5
18135   ac_status=$?
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); }; }; then
18138   ol_cv_resolver_none=yes
18139 else
18140   echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143 ol_cv_resolver_none=no
18144 fi
18145 rm -f conftest.err conftest.$ac_objext \
18146       conftest$ac_exeext conftest.$ac_ext
18147
18148         LIBS="$ol_LIBS"
18149
18150 fi
18151 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18152 echo "${ECHO_T}$ol_cv_resolver_none" >&6
18153
18154         if test $ol_cv_resolver_none = yes ; then
18155                 ol_cv_lib_resolver=yes
18156         fi
18157 fi
18158
18159 if test $ol_cv_lib_resolver = no ; then
18160         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18161 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
18162 if test "${ol_cv_resolver_resolv+set}" = set; then
18163   echo $ECHO_N "(cached) $ECHO_C" >&6
18164 else
18165
18166         ol_RESOLVER_LIB=-lresolv
18167         ol_LIBS=$LIBS
18168         LIBS="$ol_RESOLVER_LIB $LIBS"
18169
18170         cat >conftest.$ac_ext <<_ACEOF
18171 /* confdefs.h.  */
18172 _ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h.  */
18176
18177 #ifdef HAVE_SYS_TYPES_H
18178 #       include <sys/types.h>
18179 #endif
18180 #include <netinet/in.h>
18181 #ifdef HAVE_ARPA_NAMESER_H
18182 #       include <arpa/nameser.h>
18183 #endif
18184 #ifdef HAVE_RESOLV_H
18185 #       include <resolv.h>
18186 #endif
18187
18188 int
18189 main ()
18190 {
18191 {
18192         int len, status;
18193         char *request = NULL;
18194         unsigned char reply[64*1024];
18195         unsigned char host[64*1024];
18196         unsigned char *p;
18197
18198 #ifdef NS_HFIXEDSZ
18199         /* Bind 8/9 interface */
18200         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18201 #else
18202         /* Bind 4 interface */
18203 # ifndef T_SRV
18204 #  define T_SRV 33
18205 # endif
18206         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18207 #endif
18208         p = reply;
18209 #ifdef NS_HFIXEDSZ
18210         /* Bind 8/9 interface */
18211         p += NS_HFIXEDSZ;
18212 #elif defined(HFIXEDSZ)
18213         /* Bind 4 interface w/ HFIXEDSZ */
18214         p += HFIXEDSZ;
18215 #else
18216         /* Bind 4 interface w/o HFIXEDSZ */
18217         p += sizeof(HEADER);
18218 #endif
18219         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18220 }
18221   ;
18222   return 0;
18223 }
18224 _ACEOF
18225 rm -f conftest.$ac_objext conftest$ac_exeext
18226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18227   (eval $ac_link) 2>conftest.er1
18228   ac_status=$?
18229   grep -v '^ *+' conftest.er1 >conftest.err
18230   rm -f conftest.er1
18231   cat conftest.err >&5
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); } &&
18234          { ac_try='test -z "$ac_c_werror_flag"
18235                          || test ! -s conftest.err'
18236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237   (eval $ac_try) 2>&5
18238   ac_status=$?
18239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240   (exit $ac_status); }; } &&
18241          { ac_try='test -s conftest$ac_exeext'
18242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243   (eval $ac_try) 2>&5
18244   ac_status=$?
18245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246   (exit $ac_status); }; }; then
18247   ol_cv_resolver_resolv=yes
18248 else
18249   echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252 ol_cv_resolver_resolv=no
18253 fi
18254 rm -f conftest.err conftest.$ac_objext \
18255       conftest$ac_exeext conftest.$ac_ext
18256
18257         LIBS="$ol_LIBS"
18258
18259 fi
18260 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18261 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
18262
18263         if test $ol_cv_resolver_resolv = yes ; then
18264                 ol_cv_lib_resolver=-lresolv
18265         fi
18266 fi
18267
18268 if test $ol_cv_lib_resolver = no ; then
18269         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18270 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
18271 if test "${ol_cv_resolver_bind+set}" = set; then
18272   echo $ECHO_N "(cached) $ECHO_C" >&6
18273 else
18274
18275         ol_RESOLVER_LIB=-lbind
18276         ol_LIBS=$LIBS
18277         LIBS="$ol_RESOLVER_LIB $LIBS"
18278
18279         cat >conftest.$ac_ext <<_ACEOF
18280 /* confdefs.h.  */
18281 _ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h.  */
18285
18286 #ifdef HAVE_SYS_TYPES_H
18287 #       include <sys/types.h>
18288 #endif
18289 #include <netinet/in.h>
18290 #ifdef HAVE_ARPA_NAMESER_H
18291 #       include <arpa/nameser.h>
18292 #endif
18293 #ifdef HAVE_RESOLV_H
18294 #       include <resolv.h>
18295 #endif
18296
18297 int
18298 main ()
18299 {
18300 {
18301         int len, status;
18302         char *request = NULL;
18303         unsigned char reply[64*1024];
18304         unsigned char host[64*1024];
18305         unsigned char *p;
18306
18307 #ifdef NS_HFIXEDSZ
18308         /* Bind 8/9 interface */
18309         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18310 #else
18311         /* Bind 4 interface */
18312 # ifndef T_SRV
18313 #  define T_SRV 33
18314 # endif
18315         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18316 #endif
18317         p = reply;
18318 #ifdef NS_HFIXEDSZ
18319         /* Bind 8/9 interface */
18320         p += NS_HFIXEDSZ;
18321 #elif defined(HFIXEDSZ)
18322         /* Bind 4 interface w/ HFIXEDSZ */
18323         p += HFIXEDSZ;
18324 #else
18325         /* Bind 4 interface w/o HFIXEDSZ */
18326         p += sizeof(HEADER);
18327 #endif
18328         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18329 }
18330   ;
18331   return 0;
18332 }
18333 _ACEOF
18334 rm -f conftest.$ac_objext conftest$ac_exeext
18335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18336   (eval $ac_link) 2>conftest.er1
18337   ac_status=$?
18338   grep -v '^ *+' conftest.er1 >conftest.err
18339   rm -f conftest.er1
18340   cat conftest.err >&5
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); } &&
18343          { ac_try='test -z "$ac_c_werror_flag"
18344                          || test ! -s conftest.err'
18345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346   (eval $ac_try) 2>&5
18347   ac_status=$?
18348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349   (exit $ac_status); }; } &&
18350          { ac_try='test -s conftest$ac_exeext'
18351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18352   (eval $ac_try) 2>&5
18353   ac_status=$?
18354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355   (exit $ac_status); }; }; then
18356   ol_cv_resolver_bind=yes
18357 else
18358   echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18360
18361 ol_cv_resolver_bind=no
18362 fi
18363 rm -f conftest.err conftest.$ac_objext \
18364       conftest$ac_exeext conftest.$ac_ext
18365
18366         LIBS="$ol_LIBS"
18367
18368 fi
18369 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18370 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
18371
18372         if test $ol_cv_resolver_bind = yes ; then
18373                 ol_cv_lib_resolver=-lbind
18374         fi
18375 fi
18376
18377
18378
18379 ol_link_dnssrv=no
18380 if test "$ol_cv_lib_resolver" != no ; then
18381
18382 cat >>confdefs.h <<\_ACEOF
18383 #define HAVE_RES_QUERY 1
18384 _ACEOF
18385
18386
18387         if test "$ol_enable_dnssrv" != no ; then
18388                 ol_link_dnssrv=yes
18389         fi
18390
18391         if test "$ol_cv_lib_resolver" != yes ; then
18392                 LIBS="$ol_cv_lib_resolver $LIBS"
18393         fi
18394 fi
18395
18396 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18397         if test "$ol_link_dnssrv" = no ; then
18398                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18399 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18400    { (exit 1); exit 1; }; }
18401         fi
18402 else
18403         ol_enable_dnssrv=no
18404 fi
18405
18406
18407 for ac_func in hstrerror
18408 do
18409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18410 echo "$as_me:$LINENO: checking for $ac_func" >&5
18411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18412 if eval "test \"\${$as_ac_var+set}\" = set"; then
18413   echo $ECHO_N "(cached) $ECHO_C" >&6
18414 else
18415   cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h.  */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h.  */
18421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18423 #define $ac_func innocuous_$ac_func
18424
18425 /* System header to define __stub macros and hopefully few prototypes,
18426     which can conflict with char $ac_func (); below.
18427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18428     <limits.h> exists even on freestanding compilers.  */
18429
18430 #ifdef __STDC__
18431 # include <limits.h>
18432 #else
18433 # include <assert.h>
18434 #endif
18435
18436 #undef $ac_func
18437
18438 /* Override any gcc2 internal prototype to avoid an error.  */
18439 #ifdef __cplusplus
18440 extern "C"
18441 {
18442 #endif
18443 /* We use char because int might match the return type of a gcc2
18444    builtin and then its argument prototype would still apply.  */
18445 char $ac_func ();
18446 /* The GNU C library defines this for functions which it implements
18447     to always fail with ENOSYS.  Some functions are actually named
18448     something starting with __ and the normal name is an alias.  */
18449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18450 choke me
18451 #else
18452 char (*f) () = $ac_func;
18453 #endif
18454 #ifdef __cplusplus
18455 }
18456 #endif
18457
18458 int
18459 main ()
18460 {
18461 return f != $ac_func;
18462   ;
18463   return 0;
18464 }
18465 _ACEOF
18466 rm -f conftest.$ac_objext conftest$ac_exeext
18467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18468   (eval $ac_link) 2>conftest.er1
18469   ac_status=$?
18470   grep -v '^ *+' conftest.er1 >conftest.err
18471   rm -f conftest.er1
18472   cat conftest.err >&5
18473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474   (exit $ac_status); } &&
18475          { ac_try='test -z "$ac_c_werror_flag"
18476                          || test ! -s conftest.err'
18477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478   (eval $ac_try) 2>&5
18479   ac_status=$?
18480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481   (exit $ac_status); }; } &&
18482          { ac_try='test -s conftest$ac_exeext'
18483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484   (eval $ac_try) 2>&5
18485   ac_status=$?
18486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487   (exit $ac_status); }; }; then
18488   eval "$as_ac_var=yes"
18489 else
18490   echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18492
18493 eval "$as_ac_var=no"
18494 fi
18495 rm -f conftest.err conftest.$ac_objext \
18496       conftest$ac_exeext conftest.$ac_ext
18497 fi
18498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18500 if test `eval echo '${'$as_ac_var'}'` = yes; then
18501   cat >>confdefs.h <<_ACEOF
18502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18503 _ACEOF
18504
18505 fi
18506 done
18507
18508
18509
18510
18511
18512
18513 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18514 do
18515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18516 echo "$as_me:$LINENO: checking for $ac_func" >&5
18517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18518 if eval "test \"\${$as_ac_var+set}\" = set"; then
18519   echo $ECHO_N "(cached) $ECHO_C" >&6
18520 else
18521   cat >conftest.$ac_ext <<_ACEOF
18522 /* confdefs.h.  */
18523 _ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h.  */
18527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18529 #define $ac_func innocuous_$ac_func
18530
18531 /* System header to define __stub macros and hopefully few prototypes,
18532     which can conflict with char $ac_func (); below.
18533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18534     <limits.h> exists even on freestanding compilers.  */
18535
18536 #ifdef __STDC__
18537 # include <limits.h>
18538 #else
18539 # include <assert.h>
18540 #endif
18541
18542 #undef $ac_func
18543
18544 /* Override any gcc2 internal prototype to avoid an error.  */
18545 #ifdef __cplusplus
18546 extern "C"
18547 {
18548 #endif
18549 /* We use char because int might match the return type of a gcc2
18550    builtin and then its argument prototype would still apply.  */
18551 char $ac_func ();
18552 /* The GNU C library defines this for functions which it implements
18553     to always fail with ENOSYS.  Some functions are actually named
18554     something starting with __ and the normal name is an alias.  */
18555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18556 choke me
18557 #else
18558 char (*f) () = $ac_func;
18559 #endif
18560 #ifdef __cplusplus
18561 }
18562 #endif
18563
18564 int
18565 main ()
18566 {
18567 return f != $ac_func;
18568   ;
18569   return 0;
18570 }
18571 _ACEOF
18572 rm -f conftest.$ac_objext conftest$ac_exeext
18573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18574   (eval $ac_link) 2>conftest.er1
18575   ac_status=$?
18576   grep -v '^ *+' conftest.er1 >conftest.err
18577   rm -f conftest.er1
18578   cat conftest.err >&5
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); } &&
18581          { ac_try='test -z "$ac_c_werror_flag"
18582                          || test ! -s conftest.err'
18583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584   (eval $ac_try) 2>&5
18585   ac_status=$?
18586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587   (exit $ac_status); }; } &&
18588          { ac_try='test -s conftest$ac_exeext'
18589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590   (eval $ac_try) 2>&5
18591   ac_status=$?
18592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593   (exit $ac_status); }; }; then
18594   eval "$as_ac_var=yes"
18595 else
18596   echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18598
18599 eval "$as_ac_var=no"
18600 fi
18601 rm -f conftest.err conftest.$ac_objext \
18602       conftest$ac_exeext conftest.$ac_ext
18603 fi
18604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18606 if test `eval echo '${'$as_ac_var'}'` = yes; then
18607   cat >>confdefs.h <<_ACEOF
18608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18609 _ACEOF
18610
18611 fi
18612 done
18613
18614
18615 ol_link_ipv6=no
18616 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18617         if test $ol_enable_ipv6 = yes ; then
18618                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18619 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18620    { (exit 1); exit 1; }; }
18621         fi
18622 elif test $ol_enable_ipv6 != no ; then
18623         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18624 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18625 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18626   echo $ECHO_N "(cached) $ECHO_C" >&6
18627 else
18628
18629                 cat >conftest.$ac_ext <<_ACEOF
18630 /* confdefs.h.  */
18631 _ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h.  */
18635
18636 #                       include <netinet/in.h>
18637 #                       ifdef INET6_ADDRSTRLEN
18638                                 __has_inet6_addrstrlen__;
18639 #                       endif
18640
18641 _ACEOF
18642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18643   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18644   ol_cv_inet6_addrstrlen=yes
18645 else
18646   ol_cv_inet6_addrstrlen=no
18647 fi
18648 rm -f conftest*
18649
18650 fi
18651 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18652 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18653
18654
18655         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18656 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18657 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18658   echo $ECHO_N "(cached) $ECHO_C" >&6
18659 else
18660
18661                 cat >conftest.$ac_ext <<_ACEOF
18662 /* confdefs.h.  */
18663 _ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h.  */
18667
18668 #include <sys/types.h>
18669 #include <sys/socket.h>
18670
18671 int
18672 main ()
18673 {
18674
18675                         struct sockaddr_storage ss;
18676
18677   ;
18678   return 0;
18679 }
18680 _ACEOF
18681 rm -f conftest.$ac_objext
18682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18683   (eval $ac_compile) 2>conftest.er1
18684   ac_status=$?
18685   grep -v '^ *+' conftest.er1 >conftest.err
18686   rm -f conftest.er1
18687   cat conftest.err >&5
18688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689   (exit $ac_status); } &&
18690          { ac_try='test -z "$ac_c_werror_flag"
18691                          || test ! -s conftest.err'
18692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693   (eval $ac_try) 2>&5
18694   ac_status=$?
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); }; } &&
18697          { ac_try='test -s conftest.$ac_objext'
18698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699   (eval $ac_try) 2>&5
18700   ac_status=$?
18701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702   (exit $ac_status); }; }; then
18703   ol_cv_struct_sockaddr_storage=yes
18704 else
18705   echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18707
18708 ol_cv_struct_sockaddr_storage=no
18709 fi
18710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18711 fi
18712 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18713 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18714
18715         if test $ol_cv_inet6_addrstrlen = yes &&
18716            test $ol_cv_struct_sockaddr_storage = yes ; then
18717                 ol_link_ipv6=yes
18718         elif test $ol_enable_ipv6 = yes &&
18719              test $ol_cv_inet6_addrstrlen = no ; then
18720                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18721 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18722    { (exit 1); exit 1; }; }
18723         elif test $ol_enable_ipv6 = yes &&
18724              test $ol_cv_struct_sockaddr_storage = no ; then
18725                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18726 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18727    { (exit 1); exit 1; }; }
18728         fi
18729 fi
18730
18731 if test $ol_enable_local != no ; then
18732
18733 for ac_header in sys/un.h
18734 do
18735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18737   echo "$as_me:$LINENO: checking for $ac_header" >&5
18738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18740   echo $ECHO_N "(cached) $ECHO_C" >&6
18741 fi
18742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18744 else
18745   # Is the header compilable?
18746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18748 cat >conftest.$ac_ext <<_ACEOF
18749 /* confdefs.h.  */
18750 _ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h.  */
18754 $ac_includes_default
18755 #include <$ac_header>
18756 _ACEOF
18757 rm -f conftest.$ac_objext
18758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18759   (eval $ac_compile) 2>conftest.er1
18760   ac_status=$?
18761   grep -v '^ *+' conftest.er1 >conftest.err
18762   rm -f conftest.er1
18763   cat conftest.err >&5
18764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765   (exit $ac_status); } &&
18766          { ac_try='test -z "$ac_c_werror_flag"
18767                          || test ! -s conftest.err'
18768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769   (eval $ac_try) 2>&5
18770   ac_status=$?
18771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772   (exit $ac_status); }; } &&
18773          { ac_try='test -s conftest.$ac_objext'
18774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775   (eval $ac_try) 2>&5
18776   ac_status=$?
18777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778   (exit $ac_status); }; }; then
18779   ac_header_compiler=yes
18780 else
18781   echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18783
18784 ac_header_compiler=no
18785 fi
18786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18788 echo "${ECHO_T}$ac_header_compiler" >&6
18789
18790 # Is the header present?
18791 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18793 cat >conftest.$ac_ext <<_ACEOF
18794 /* confdefs.h.  */
18795 _ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h.  */
18799 #include <$ac_header>
18800 _ACEOF
18801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18802   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18803   ac_status=$?
18804   grep -v '^ *+' conftest.er1 >conftest.err
18805   rm -f conftest.er1
18806   cat conftest.err >&5
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); } >/dev/null; then
18809   if test -s conftest.err; then
18810     ac_cpp_err=$ac_c_preproc_warn_flag
18811     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18812   else
18813     ac_cpp_err=
18814   fi
18815 else
18816   ac_cpp_err=yes
18817 fi
18818 if test -z "$ac_cpp_err"; then
18819   ac_header_preproc=yes
18820 else
18821   echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18823
18824   ac_header_preproc=no
18825 fi
18826 rm -f conftest.err conftest.$ac_ext
18827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18828 echo "${ECHO_T}$ac_header_preproc" >&6
18829
18830 # So?  What about this header?
18831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18832   yes:no: )
18833     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18837     ac_header_preproc=yes
18838     ;;
18839   no:yes:* )
18840     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18842     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18843 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18844     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18846     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18847 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18850     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18852     (
18853       cat <<\_ASBOX
18854 ## --------------------------------------------- ##
18855 ## Report this to <http://www.openldap.org/its/> ##
18856 ## --------------------------------------------- ##
18857 _ASBOX
18858     ) |
18859       sed "s/^/$as_me: WARNING:     /" >&2
18860     ;;
18861 esac
18862 echo "$as_me:$LINENO: checking for $ac_header" >&5
18863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18865   echo $ECHO_N "(cached) $ECHO_C" >&6
18866 else
18867   eval "$as_ac_Header=\$ac_header_preproc"
18868 fi
18869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18871
18872 fi
18873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18874   cat >>confdefs.h <<_ACEOF
18875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18876 _ACEOF
18877
18878 fi
18879
18880 done
18881
18882
18883         if test $ol_enable_local = auto ; then
18884                 ol_enable_local=$ac_cv_header_sys_un_h
18885         elif test $ac_cv_header_sys_un_h = no ; then
18886                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18887 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18888    { (exit 1); exit 1; }; }
18889         fi
18890 fi
18891
18892 ol_link_gssapi=no
18893
18894 case $ol_with_gssapi in yes | auto)
18895
18896         ol_header_gssapi=no
18897
18898 for ac_header in gssapi/gssapi.h
18899 do
18900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18902   echo "$as_me:$LINENO: checking for $ac_header" >&5
18903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18905   echo $ECHO_N "(cached) $ECHO_C" >&6
18906 fi
18907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18909 else
18910   # Is the header compilable?
18911 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18913 cat >conftest.$ac_ext <<_ACEOF
18914 /* confdefs.h.  */
18915 _ACEOF
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h.  */
18919 $ac_includes_default
18920 #include <$ac_header>
18921 _ACEOF
18922 rm -f conftest.$ac_objext
18923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18924   (eval $ac_compile) 2>conftest.er1
18925   ac_status=$?
18926   grep -v '^ *+' conftest.er1 >conftest.err
18927   rm -f conftest.er1
18928   cat conftest.err >&5
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); } &&
18931          { ac_try='test -z "$ac_c_werror_flag"
18932                          || test ! -s conftest.err'
18933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934   (eval $ac_try) 2>&5
18935   ac_status=$?
18936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937   (exit $ac_status); }; } &&
18938          { ac_try='test -s conftest.$ac_objext'
18939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940   (eval $ac_try) 2>&5
18941   ac_status=$?
18942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943   (exit $ac_status); }; }; then
18944   ac_header_compiler=yes
18945 else
18946   echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.$ac_ext >&5
18948
18949 ac_header_compiler=no
18950 fi
18951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18953 echo "${ECHO_T}$ac_header_compiler" >&6
18954
18955 # Is the header present?
18956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18958 cat >conftest.$ac_ext <<_ACEOF
18959 /* confdefs.h.  */
18960 _ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h.  */
18964 #include <$ac_header>
18965 _ACEOF
18966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18967   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18968   ac_status=$?
18969   grep -v '^ *+' conftest.er1 >conftest.err
18970   rm -f conftest.er1
18971   cat conftest.err >&5
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); } >/dev/null; then
18974   if test -s conftest.err; then
18975     ac_cpp_err=$ac_c_preproc_warn_flag
18976     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18977   else
18978     ac_cpp_err=
18979   fi
18980 else
18981   ac_cpp_err=yes
18982 fi
18983 if test -z "$ac_cpp_err"; then
18984   ac_header_preproc=yes
18985 else
18986   echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18988
18989   ac_header_preproc=no
18990 fi
18991 rm -f conftest.err conftest.$ac_ext
18992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18993 echo "${ECHO_T}$ac_header_preproc" >&6
18994
18995 # So?  What about this header?
18996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18997   yes:no: )
18998     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19002     ac_header_preproc=yes
19003     ;;
19004   no:yes:* )
19005     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19007     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19008 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19009     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19011     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19012 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19015     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19017     (
19018       cat <<\_ASBOX
19019 ## --------------------------------------------- ##
19020 ## Report this to <http://www.openldap.org/its/> ##
19021 ## --------------------------------------------- ##
19022 _ASBOX
19023     ) |
19024       sed "s/^/$as_me: WARNING:     /" >&2
19025     ;;
19026 esac
19027 echo "$as_me:$LINENO: checking for $ac_header" >&5
19028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19030   echo $ECHO_N "(cached) $ECHO_C" >&6
19031 else
19032   eval "$as_ac_Header=\$ac_header_preproc"
19033 fi
19034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19036
19037 fi
19038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19039   cat >>confdefs.h <<_ACEOF
19040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19041 _ACEOF
19042
19043 fi
19044
19045 done
19046
19047         if test $ac_cv_header_gssapi_gssapi_h = yes ; then
19048                 ol_header_gssapi=yes
19049         else
19050
19051 for ac_header in gssapi.h
19052 do
19053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19055   echo "$as_me:$LINENO: checking for $ac_header" >&5
19056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19058   echo $ECHO_N "(cached) $ECHO_C" >&6
19059 fi
19060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19062 else
19063   # Is the header compilable?
19064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19066 cat >conftest.$ac_ext <<_ACEOF
19067 /* confdefs.h.  */
19068 _ACEOF
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h.  */
19072 $ac_includes_default
19073 #include <$ac_header>
19074 _ACEOF
19075 rm -f conftest.$ac_objext
19076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19077   (eval $ac_compile) 2>conftest.er1
19078   ac_status=$?
19079   grep -v '^ *+' conftest.er1 >conftest.err
19080   rm -f conftest.er1
19081   cat conftest.err >&5
19082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083   (exit $ac_status); } &&
19084          { ac_try='test -z "$ac_c_werror_flag"
19085                          || test ! -s conftest.err'
19086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087   (eval $ac_try) 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; } &&
19091          { ac_try='test -s conftest.$ac_objext'
19092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093   (eval $ac_try) 2>&5
19094   ac_status=$?
19095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096   (exit $ac_status); }; }; then
19097   ac_header_compiler=yes
19098 else
19099   echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19101
19102 ac_header_compiler=no
19103 fi
19104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19106 echo "${ECHO_T}$ac_header_compiler" >&6
19107
19108 # Is the header present?
19109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19111 cat >conftest.$ac_ext <<_ACEOF
19112 /* confdefs.h.  */
19113 _ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h.  */
19117 #include <$ac_header>
19118 _ACEOF
19119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19121   ac_status=$?
19122   grep -v '^ *+' conftest.er1 >conftest.err
19123   rm -f conftest.er1
19124   cat conftest.err >&5
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); } >/dev/null; then
19127   if test -s conftest.err; then
19128     ac_cpp_err=$ac_c_preproc_warn_flag
19129     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19130   else
19131     ac_cpp_err=
19132   fi
19133 else
19134   ac_cpp_err=yes
19135 fi
19136 if test -z "$ac_cpp_err"; then
19137   ac_header_preproc=yes
19138 else
19139   echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19141
19142   ac_header_preproc=no
19143 fi
19144 rm -f conftest.err conftest.$ac_ext
19145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19146 echo "${ECHO_T}$ac_header_preproc" >&6
19147
19148 # So?  What about this header?
19149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19150   yes:no: )
19151     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19155     ac_header_preproc=yes
19156     ;;
19157   no:yes:* )
19158     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19160     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19161 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19162     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19164     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19165 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19168     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19170     (
19171       cat <<\_ASBOX
19172 ## --------------------------------------------- ##
19173 ## Report this to <http://www.openldap.org/its/> ##
19174 ## --------------------------------------------- ##
19175 _ASBOX
19176     ) |
19177       sed "s/^/$as_me: WARNING:     /" >&2
19178     ;;
19179 esac
19180 echo "$as_me:$LINENO: checking for $ac_header" >&5
19181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19183   echo $ECHO_N "(cached) $ECHO_C" >&6
19184 else
19185   eval "$as_ac_Header=\$ac_header_preproc"
19186 fi
19187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19189
19190 fi
19191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19192   cat >>confdefs.h <<_ACEOF
19193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19194 _ACEOF
19195
19196 fi
19197
19198 done
19199
19200                 if test $ac_cv_header_gssapi_h = yes ; then
19201                         ol_header_gssapi=yes
19202                 fi
19203
19204                                                                 saveLIBS="$LIBS"
19205                 LIBS="$LIBS $GSSAPI_LIBS"
19206
19207 for ac_func in gss_oid_to_str
19208 do
19209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19210 echo "$as_me:$LINENO: checking for $ac_func" >&5
19211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19212 if eval "test \"\${$as_ac_var+set}\" = set"; then
19213   echo $ECHO_N "(cached) $ECHO_C" >&6
19214 else
19215   cat >conftest.$ac_ext <<_ACEOF
19216 /* confdefs.h.  */
19217 _ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h.  */
19221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19223 #define $ac_func innocuous_$ac_func
19224
19225 /* System header to define __stub macros and hopefully few prototypes,
19226     which can conflict with char $ac_func (); below.
19227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19228     <limits.h> exists even on freestanding compilers.  */
19229
19230 #ifdef __STDC__
19231 # include <limits.h>
19232 #else
19233 # include <assert.h>
19234 #endif
19235
19236 #undef $ac_func
19237
19238 /* Override any gcc2 internal prototype to avoid an error.  */
19239 #ifdef __cplusplus
19240 extern "C"
19241 {
19242 #endif
19243 /* We use char because int might match the return type of a gcc2
19244    builtin and then its argument prototype would still apply.  */
19245 char $ac_func ();
19246 /* The GNU C library defines this for functions which it implements
19247     to always fail with ENOSYS.  Some functions are actually named
19248     something starting with __ and the normal name is an alias.  */
19249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19250 choke me
19251 #else
19252 char (*f) () = $ac_func;
19253 #endif
19254 #ifdef __cplusplus
19255 }
19256 #endif
19257
19258 int
19259 main ()
19260 {
19261 return f != $ac_func;
19262   ;
19263   return 0;
19264 }
19265 _ACEOF
19266 rm -f conftest.$ac_objext conftest$ac_exeext
19267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19268   (eval $ac_link) 2>conftest.er1
19269   ac_status=$?
19270   grep -v '^ *+' conftest.er1 >conftest.err
19271   rm -f conftest.er1
19272   cat conftest.err >&5
19273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274   (exit $ac_status); } &&
19275          { ac_try='test -z "$ac_c_werror_flag"
19276                          || test ! -s conftest.err'
19277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278   (eval $ac_try) 2>&5
19279   ac_status=$?
19280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281   (exit $ac_status); }; } &&
19282          { ac_try='test -s conftest$ac_exeext'
19283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284   (eval $ac_try) 2>&5
19285   ac_status=$?
19286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287   (exit $ac_status); }; }; then
19288   eval "$as_ac_var=yes"
19289 else
19290   echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19292
19293 eval "$as_ac_var=no"
19294 fi
19295 rm -f conftest.err conftest.$ac_objext \
19296       conftest$ac_exeext conftest.$ac_ext
19297 fi
19298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19300 if test `eval echo '${'$as_ac_var'}'` = yes; then
19301   cat >>confdefs.h <<_ACEOF
19302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19303 _ACEOF
19304
19305 fi
19306 done
19307
19308                 LIBS="$saveLIBS"
19309         fi
19310
19311         if test $ol_header_gssapi = yes ; then
19312                                                 echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi" >&5
19313 echo $ECHO_N "checking for gss_wrap in -lgssapi... $ECHO_C" >&6
19314 if test "${ac_cv_lib_gssapi_gss_wrap+set}" = set; then
19315   echo $ECHO_N "(cached) $ECHO_C" >&6
19316 else
19317   ac_check_lib_save_LIBS=$LIBS
19318 LIBS="-lgssapi  $LIBS"
19319 cat >conftest.$ac_ext <<_ACEOF
19320 /* confdefs.h.  */
19321 _ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h.  */
19325
19326 /* Override any gcc2 internal prototype to avoid an error.  */
19327 #ifdef __cplusplus
19328 extern "C"
19329 #endif
19330 /* We use char because int might match the return type of a gcc2
19331    builtin and then its argument prototype would still apply.  */
19332 char gss_wrap ();
19333 int
19334 main ()
19335 {
19336 gss_wrap ();
19337   ;
19338   return 0;
19339 }
19340 _ACEOF
19341 rm -f conftest.$ac_objext conftest$ac_exeext
19342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19343   (eval $ac_link) 2>conftest.er1
19344   ac_status=$?
19345   grep -v '^ *+' conftest.er1 >conftest.err
19346   rm -f conftest.er1
19347   cat conftest.err >&5
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); } &&
19350          { ac_try='test -z "$ac_c_werror_flag"
19351                          || test ! -s conftest.err'
19352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353   (eval $ac_try) 2>&5
19354   ac_status=$?
19355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356   (exit $ac_status); }; } &&
19357          { ac_try='test -s conftest$ac_exeext'
19358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359   (eval $ac_try) 2>&5
19360   ac_status=$?
19361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362   (exit $ac_status); }; }; then
19363   ac_cv_lib_gssapi_gss_wrap=yes
19364 else
19365   echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19367
19368 ac_cv_lib_gssapi_gss_wrap=no
19369 fi
19370 rm -f conftest.err conftest.$ac_objext \
19371       conftest$ac_exeext conftest.$ac_ext
19372 LIBS=$ac_check_lib_save_LIBS
19373 fi
19374 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_wrap" >&5
19375 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_wrap" >&6
19376 if test $ac_cv_lib_gssapi_gss_wrap = yes; then
19377   ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi"
19378 else
19379   ol_link_gssapi=no
19380 fi
19381
19382                 if test $ol_link_gssapi != yes ; then
19383                         echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi_krb5" >&5
19384 echo $ECHO_N "checking for gss_wrap in -lgssapi_krb5... $ECHO_C" >&6
19385 if test "${ac_cv_lib_gssapi_krb5_gss_wrap+set}" = set; then
19386   echo $ECHO_N "(cached) $ECHO_C" >&6
19387 else
19388   ac_check_lib_save_LIBS=$LIBS
19389 LIBS="-lgssapi_krb5  $LIBS"
19390 cat >conftest.$ac_ext <<_ACEOF
19391 /* confdefs.h.  */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h.  */
19396
19397 /* Override any gcc2 internal prototype to avoid an error.  */
19398 #ifdef __cplusplus
19399 extern "C"
19400 #endif
19401 /* We use char because int might match the return type of a gcc2
19402    builtin and then its argument prototype would still apply.  */
19403 char gss_wrap ();
19404 int
19405 main ()
19406 {
19407 gss_wrap ();
19408   ;
19409   return 0;
19410 }
19411 _ACEOF
19412 rm -f conftest.$ac_objext conftest$ac_exeext
19413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19414   (eval $ac_link) 2>conftest.er1
19415   ac_status=$?
19416   grep -v '^ *+' conftest.er1 >conftest.err
19417   rm -f conftest.er1
19418   cat conftest.err >&5
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); } &&
19421          { ac_try='test -z "$ac_c_werror_flag"
19422                          || test ! -s conftest.err'
19423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424   (eval $ac_try) 2>&5
19425   ac_status=$?
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); }; } &&
19428          { ac_try='test -s conftest$ac_exeext'
19429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430   (eval $ac_try) 2>&5
19431   ac_status=$?
19432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433   (exit $ac_status); }; }; then
19434   ac_cv_lib_gssapi_krb5_gss_wrap=yes
19435 else
19436   echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.$ac_ext >&5
19438
19439 ac_cv_lib_gssapi_krb5_gss_wrap=no
19440 fi
19441 rm -f conftest.err conftest.$ac_objext \
19442       conftest$ac_exeext conftest.$ac_ext
19443 LIBS=$ac_check_lib_save_LIBS
19444 fi
19445 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_wrap" >&5
19446 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_wrap" >&6
19447 if test $ac_cv_lib_gssapi_krb5_gss_wrap = yes; then
19448   ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi_krb5"
19449 else
19450   ol_link_gssapi=no
19451 fi
19452
19453                 fi
19454                 if test $ol_link_gssapi != yes ; then
19455                         echo "$as_me:$LINENO: checking for gss_wrap in -lgss" >&5
19456 echo $ECHO_N "checking for gss_wrap in -lgss... $ECHO_C" >&6
19457 if test "${ac_cv_lib_gss_gss_wrap+set}" = set; then
19458   echo $ECHO_N "(cached) $ECHO_C" >&6
19459 else
19460   ac_check_lib_save_LIBS=$LIBS
19461 LIBS="-lgss  $LIBS"
19462 cat >conftest.$ac_ext <<_ACEOF
19463 /* confdefs.h.  */
19464 _ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h.  */
19468
19469 /* Override any gcc2 internal prototype to avoid an error.  */
19470 #ifdef __cplusplus
19471 extern "C"
19472 #endif
19473 /* We use char because int might match the return type of a gcc2
19474    builtin and then its argument prototype would still apply.  */
19475 char gss_wrap ();
19476 int
19477 main ()
19478 {
19479 gss_wrap ();
19480   ;
19481   return 0;
19482 }
19483 _ACEOF
19484 rm -f conftest.$ac_objext conftest$ac_exeext
19485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19486   (eval $ac_link) 2>conftest.er1
19487   ac_status=$?
19488   grep -v '^ *+' conftest.er1 >conftest.err
19489   rm -f conftest.er1
19490   cat conftest.err >&5
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); } &&
19493          { ac_try='test -z "$ac_c_werror_flag"
19494                          || test ! -s conftest.err'
19495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496   (eval $ac_try) 2>&5
19497   ac_status=$?
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); }; } &&
19500          { ac_try='test -s conftest$ac_exeext'
19501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502   (eval $ac_try) 2>&5
19503   ac_status=$?
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); }; }; then
19506   ac_cv_lib_gss_gss_wrap=yes
19507 else
19508   echo "$as_me: failed program was:" >&5
19509 sed 's/^/| /' conftest.$ac_ext >&5
19510
19511 ac_cv_lib_gss_gss_wrap=no
19512 fi
19513 rm -f conftest.err conftest.$ac_objext \
19514       conftest$ac_exeext conftest.$ac_ext
19515 LIBS=$ac_check_lib_save_LIBS
19516 fi
19517 echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_wrap" >&5
19518 echo "${ECHO_T}$ac_cv_lib_gss_gss_wrap" >&6
19519 if test $ac_cv_lib_gss_gss_wrap = yes; then
19520   ol_link_gssapi=yes;GSSAPI_LIBS="-lgss"
19521 else
19522   ol_link_gssapi=no
19523 fi
19524
19525                 fi
19526         fi
19527
19528         ;;
19529 esac
19530
19531 WITH_GSSAPI=no
19532 if test $ol_link_gssapi = yes; then
19533
19534 cat >>confdefs.h <<\_ACEOF
19535 #define HAVE_GSSAPI 1
19536 _ACEOF
19537
19538         WITH_GSSAPI=yes
19539 elif test $ol_with_gssapi = auto ; then
19540         { echo "$as_me:$LINENO: WARNING: Could not locate GSSAPI package" >&5
19541 echo "$as_me: WARNING: Could not locate GSSAPI package" >&2;}
19542         { echo "$as_me:$LINENO: WARNING: GSSAPI authentication not supported!" >&5
19543 echo "$as_me: WARNING: GSSAPI authentication not supported!" >&2;}
19544 elif test $ol_with_gssapi = yes ; then
19545         { { echo "$as_me:$LINENO: error: GSSAPI detection failed" >&5
19546 echo "$as_me: error: GSSAPI detection failed" >&2;}
19547    { (exit 1); exit 1; }; }
19548 fi
19549
19550
19551 if test $ol_with_tls = yes ; then
19552         ol_with_tls=auto
19553 fi
19554
19555 ol_link_tls=no
19556 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19557
19558 for ac_header in openssl/ssl.h
19559 do
19560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19562   echo "$as_me:$LINENO: checking for $ac_header" >&5
19563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19565   echo $ECHO_N "(cached) $ECHO_C" >&6
19566 fi
19567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19569 else
19570   # Is the header compilable?
19571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19573 cat >conftest.$ac_ext <<_ACEOF
19574 /* confdefs.h.  */
19575 _ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h.  */
19579 $ac_includes_default
19580 #include <$ac_header>
19581 _ACEOF
19582 rm -f conftest.$ac_objext
19583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19584   (eval $ac_compile) 2>conftest.er1
19585   ac_status=$?
19586   grep -v '^ *+' conftest.er1 >conftest.err
19587   rm -f conftest.er1
19588   cat conftest.err >&5
19589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); } &&
19591          { ac_try='test -z "$ac_c_werror_flag"
19592                          || test ! -s conftest.err'
19593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594   (eval $ac_try) 2>&5
19595   ac_status=$?
19596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597   (exit $ac_status); }; } &&
19598          { ac_try='test -s conftest.$ac_objext'
19599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600   (eval $ac_try) 2>&5
19601   ac_status=$?
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); }; }; then
19604   ac_header_compiler=yes
19605 else
19606   echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19608
19609 ac_header_compiler=no
19610 fi
19611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19613 echo "${ECHO_T}$ac_header_compiler" >&6
19614
19615 # Is the header present?
19616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19618 cat >conftest.$ac_ext <<_ACEOF
19619 /* confdefs.h.  */
19620 _ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h.  */
19624 #include <$ac_header>
19625 _ACEOF
19626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19628   ac_status=$?
19629   grep -v '^ *+' conftest.er1 >conftest.err
19630   rm -f conftest.er1
19631   cat conftest.err >&5
19632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); } >/dev/null; then
19634   if test -s conftest.err; then
19635     ac_cpp_err=$ac_c_preproc_warn_flag
19636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19637   else
19638     ac_cpp_err=
19639   fi
19640 else
19641   ac_cpp_err=yes
19642 fi
19643 if test -z "$ac_cpp_err"; then
19644   ac_header_preproc=yes
19645 else
19646   echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19648
19649   ac_header_preproc=no
19650 fi
19651 rm -f conftest.err conftest.$ac_ext
19652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19653 echo "${ECHO_T}$ac_header_preproc" >&6
19654
19655 # So?  What about this header?
19656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19657   yes:no: )
19658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19662     ac_header_preproc=yes
19663     ;;
19664   no:yes:* )
19665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19677     (
19678       cat <<\_ASBOX
19679 ## --------------------------------------------- ##
19680 ## Report this to <http://www.openldap.org/its/> ##
19681 ## --------------------------------------------- ##
19682 _ASBOX
19683     ) |
19684       sed "s/^/$as_me: WARNING:     /" >&2
19685     ;;
19686 esac
19687 echo "$as_me:$LINENO: checking for $ac_header" >&5
19688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19690   echo $ECHO_N "(cached) $ECHO_C" >&6
19691 else
19692   eval "$as_ac_Header=\$ac_header_preproc"
19693 fi
19694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19696
19697 fi
19698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19699   cat >>confdefs.h <<_ACEOF
19700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19701 _ACEOF
19702
19703 fi
19704
19705 done
19706
19707
19708         if test $ac_cv_header_openssl_ssl_h = yes ; then
19709                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19710 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19711 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19712   echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714   ac_check_lib_save_LIBS=$LIBS
19715 LIBS="-lssl -lcrypto $LIBS"
19716 cat >conftest.$ac_ext <<_ACEOF
19717 /* confdefs.h.  */
19718 _ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h.  */
19722
19723 /* Override any gcc2 internal prototype to avoid an error.  */
19724 #ifdef __cplusplus
19725 extern "C"
19726 #endif
19727 /* We use char because int might match the return type of a gcc2
19728    builtin and then its argument prototype would still apply.  */
19729 char SSL_library_init ();
19730 int
19731 main ()
19732 {
19733 SSL_library_init ();
19734   ;
19735   return 0;
19736 }
19737 _ACEOF
19738 rm -f conftest.$ac_objext conftest$ac_exeext
19739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19740   (eval $ac_link) 2>conftest.er1
19741   ac_status=$?
19742   grep -v '^ *+' conftest.er1 >conftest.err
19743   rm -f conftest.er1
19744   cat conftest.err >&5
19745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746   (exit $ac_status); } &&
19747          { ac_try='test -z "$ac_c_werror_flag"
19748                          || test ! -s conftest.err'
19749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750   (eval $ac_try) 2>&5
19751   ac_status=$?
19752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753   (exit $ac_status); }; } &&
19754          { ac_try='test -s conftest$ac_exeext'
19755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756   (eval $ac_try) 2>&5
19757   ac_status=$?
19758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759   (exit $ac_status); }; }; then
19760   ac_cv_lib_ssl_SSL_library_init=yes
19761 else
19762   echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19764
19765 ac_cv_lib_ssl_SSL_library_init=no
19766 fi
19767 rm -f conftest.err conftest.$ac_objext \
19768       conftest$ac_exeext conftest.$ac_ext
19769 LIBS=$ac_check_lib_save_LIBS
19770 fi
19771 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19772 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19773 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19774   have_openssl=yes
19775                         need_rsaref=no
19776 else
19777   have_openssl=no
19778 fi
19779
19780
19781                 if test $have_openssl = no ; then
19782                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19783 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19784 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19785   echo $ECHO_N "(cached) $ECHO_C" >&6
19786 else
19787   ac_check_lib_save_LIBS=$LIBS
19788 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19789 cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h.  */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h.  */
19795
19796 /* Override any gcc2 internal prototype to avoid an error.  */
19797 #ifdef __cplusplus
19798 extern "C"
19799 #endif
19800 /* We use char because int might match the return type of a gcc2
19801    builtin and then its argument prototype would still apply.  */
19802 char ssl3_accept ();
19803 int
19804 main ()
19805 {
19806 ssl3_accept ();
19807   ;
19808   return 0;
19809 }
19810 _ACEOF
19811 rm -f conftest.$ac_objext conftest$ac_exeext
19812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19813   (eval $ac_link) 2>conftest.er1
19814   ac_status=$?
19815   grep -v '^ *+' conftest.er1 >conftest.err
19816   rm -f conftest.er1
19817   cat conftest.err >&5
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); } &&
19820          { ac_try='test -z "$ac_c_werror_flag"
19821                          || test ! -s conftest.err'
19822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823   (eval $ac_try) 2>&5
19824   ac_status=$?
19825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826   (exit $ac_status); }; } &&
19827          { ac_try='test -s conftest$ac_exeext'
19828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829   (eval $ac_try) 2>&5
19830   ac_status=$?
19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832   (exit $ac_status); }; }; then
19833   ac_cv_lib_ssl_ssl3_accept=yes
19834 else
19835   echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19837
19838 ac_cv_lib_ssl_ssl3_accept=no
19839 fi
19840 rm -f conftest.err conftest.$ac_objext \
19841       conftest$ac_exeext conftest.$ac_ext
19842 LIBS=$ac_check_lib_save_LIBS
19843 fi
19844 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19845 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19846 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19847   have_openssl=yes
19848                                 need_rsaref=yes
19849 else
19850   have_openssl=no
19851 fi
19852
19853                 fi
19854
19855                 if test $have_openssl = yes ; then
19856                         ol_with_tls=openssl
19857                         ol_link_tls=yes
19858
19859
19860 cat >>confdefs.h <<\_ACEOF
19861 #define HAVE_OPENSSL 1
19862 _ACEOF
19863
19864
19865                         if test $need_rsaref = yes; then
19866
19867 cat >>confdefs.h <<\_ACEOF
19868 #define HAVE_RSAREF 1
19869 _ACEOF
19870
19871
19872                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19873                         else
19874                                 TLS_LIBS="-lssl -lcrypto"
19875                         fi
19876
19877                         echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19878 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19879 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19880   echo $ECHO_N "(cached) $ECHO_C" >&6
19881 else
19882
19883                 cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h.  */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h.  */
19889
19890 #ifdef HAVE_OPENSSL_SSL_H
19891 #include <openssl/ssl.h>
19892 #endif
19893
19894 /* Require 0.9.7d+ */
19895 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19896         char *__ssl_compat = "0.9.7d";
19897 #endif
19898
19899 _ACEOF
19900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19901   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19902   ol_cv_ssl_crl_compat=yes
19903 else
19904   ol_cv_ssl_crl_compat=no
19905 fi
19906 rm -f conftest*
19907
19908 fi
19909 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19910 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19911
19912                         if test $ol_cv_ssl_crl_compat = yes ; then
19913
19914 cat >>confdefs.h <<\_ACEOF
19915 #define HAVE_OPENSSL_CRL 1
19916 _ACEOF
19917
19918                         fi
19919                 fi
19920         fi
19921 fi
19922
19923 if test $ol_link_tls = no ; then
19924         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19925
19926 for ac_header in gnutls/gnutls.h
19927 do
19928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19930   echo "$as_me:$LINENO: checking for $ac_header" >&5
19931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19933   echo $ECHO_N "(cached) $ECHO_C" >&6
19934 fi
19935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19937 else
19938   # Is the header compilable?
19939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19941 cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h.  */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h.  */
19947 $ac_includes_default
19948 #include <$ac_header>
19949 _ACEOF
19950 rm -f conftest.$ac_objext
19951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19952   (eval $ac_compile) 2>conftest.er1
19953   ac_status=$?
19954   grep -v '^ *+' conftest.er1 >conftest.err
19955   rm -f conftest.er1
19956   cat conftest.err >&5
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); } &&
19959          { ac_try='test -z "$ac_c_werror_flag"
19960                          || test ! -s conftest.err'
19961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962   (eval $ac_try) 2>&5
19963   ac_status=$?
19964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965   (exit $ac_status); }; } &&
19966          { ac_try='test -s conftest.$ac_objext'
19967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968   (eval $ac_try) 2>&5
19969   ac_status=$?
19970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971   (exit $ac_status); }; }; then
19972   ac_header_compiler=yes
19973 else
19974   echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19976
19977 ac_header_compiler=no
19978 fi
19979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19981 echo "${ECHO_T}$ac_header_compiler" >&6
19982
19983 # Is the header present?
19984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h.  */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h.  */
19992 #include <$ac_header>
19993 _ACEOF
19994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19996   ac_status=$?
19997   grep -v '^ *+' conftest.er1 >conftest.err
19998   rm -f conftest.er1
19999   cat conftest.err >&5
20000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001   (exit $ac_status); } >/dev/null; then
20002   if test -s conftest.err; then
20003     ac_cpp_err=$ac_c_preproc_warn_flag
20004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20005   else
20006     ac_cpp_err=
20007   fi
20008 else
20009   ac_cpp_err=yes
20010 fi
20011 if test -z "$ac_cpp_err"; then
20012   ac_header_preproc=yes
20013 else
20014   echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20016
20017   ac_header_preproc=no
20018 fi
20019 rm -f conftest.err conftest.$ac_ext
20020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20021 echo "${ECHO_T}$ac_header_preproc" >&6
20022
20023 # So?  What about this header?
20024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20025   yes:no: )
20026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20030     ac_header_preproc=yes
20031     ;;
20032   no:yes:* )
20033     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20035     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20036 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20037     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20039     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20040 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20043     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20045     (
20046       cat <<\_ASBOX
20047 ## --------------------------------------------- ##
20048 ## Report this to <http://www.openldap.org/its/> ##
20049 ## --------------------------------------------- ##
20050 _ASBOX
20051     ) |
20052       sed "s/^/$as_me: WARNING:     /" >&2
20053     ;;
20054 esac
20055 echo "$as_me:$LINENO: checking for $ac_header" >&5
20056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20058   echo $ECHO_N "(cached) $ECHO_C" >&6
20059 else
20060   eval "$as_ac_Header=\$ac_header_preproc"
20061 fi
20062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20064
20065 fi
20066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20067   cat >>confdefs.h <<_ACEOF
20068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20069 _ACEOF
20070
20071 fi
20072
20073 done
20074
20075
20076                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
20077                         echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
20078 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
20079 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
20080   echo $ECHO_N "(cached) $ECHO_C" >&6
20081 else
20082   ac_check_lib_save_LIBS=$LIBS
20083 LIBS="-lgnutls  $LIBS"
20084 cat >conftest.$ac_ext <<_ACEOF
20085 /* confdefs.h.  */
20086 _ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h.  */
20090
20091 /* Override any gcc2 internal prototype to avoid an error.  */
20092 #ifdef __cplusplus
20093 extern "C"
20094 #endif
20095 /* We use char because int might match the return type of a gcc2
20096    builtin and then its argument prototype would still apply.  */
20097 char gnutls_init ();
20098 int
20099 main ()
20100 {
20101 gnutls_init ();
20102   ;
20103   return 0;
20104 }
20105 _ACEOF
20106 rm -f conftest.$ac_objext conftest$ac_exeext
20107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20108   (eval $ac_link) 2>conftest.er1
20109   ac_status=$?
20110   grep -v '^ *+' conftest.er1 >conftest.err
20111   rm -f conftest.er1
20112   cat conftest.err >&5
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); } &&
20115          { ac_try='test -z "$ac_c_werror_flag"
20116                          || test ! -s conftest.err'
20117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118   (eval $ac_try) 2>&5
20119   ac_status=$?
20120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121   (exit $ac_status); }; } &&
20122          { ac_try='test -s conftest$ac_exeext'
20123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124   (eval $ac_try) 2>&5
20125   ac_status=$?
20126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127   (exit $ac_status); }; }; then
20128   ac_cv_lib_gnutls_gnutls_init=yes
20129 else
20130   echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20132
20133 ac_cv_lib_gnutls_gnutls_init=no
20134 fi
20135 rm -f conftest.err conftest.$ac_objext \
20136       conftest$ac_exeext conftest.$ac_ext
20137 LIBS=$ac_check_lib_save_LIBS
20138 fi
20139 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
20140 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
20141 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
20142   have_gnutls=yes
20143 else
20144   have_gnutls=no
20145 fi
20146
20147
20148                         if test $have_gnutls = yes ; then
20149                                 ol_with_tls=gnutls
20150                                 ol_link_tls=yes
20151
20152                                 TLS_LIBS="-lgnutls"
20153
20154
20155 cat >>confdefs.h <<\_ACEOF
20156 #define HAVE_GNUTLS 1
20157 _ACEOF
20158
20159                         fi
20160                 fi
20161         fi
20162 fi
20163
20164 WITH_TLS=no
20165 if test $ol_link_tls = yes ; then
20166
20167 cat >>confdefs.h <<\_ACEOF
20168 #define HAVE_TLS 1
20169 _ACEOF
20170
20171         WITH_TLS=yes
20172 elif test $ol_with_tls = auto ; then
20173         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20174 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20175         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20176 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20177 elif test $ol_with_tls != no ; then
20178         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20179 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20180    { (exit 1); exit 1; }; }
20181 else
20182         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20183 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20184 fi
20185
20186 if test $ol_enable_lmpasswd != no; then
20187         if test $ol_link_tls != yes ; then
20188                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20189 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20190    { (exit 1); exit 1; }; }
20191         fi
20192
20193
20194 cat >>confdefs.h <<\_ACEOF
20195 #define SLAPD_LMHASH 1
20196 _ACEOF
20197
20198 fi
20199
20200 ol_link_threads=no
20201
20202 case $ol_with_threads in auto | yes | nt)
20203
20204
20205         echo "$as_me:$LINENO: checking for _beginthread" >&5
20206 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
20207 if test "${ac_cv_func__beginthread+set}" = set; then
20208   echo $ECHO_N "(cached) $ECHO_C" >&6
20209 else
20210   cat >conftest.$ac_ext <<_ACEOF
20211 /* confdefs.h.  */
20212 _ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h.  */
20216 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20218 #define _beginthread innocuous__beginthread
20219
20220 /* System header to define __stub macros and hopefully few prototypes,
20221     which can conflict with char _beginthread (); below.
20222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20223     <limits.h> exists even on freestanding compilers.  */
20224
20225 #ifdef __STDC__
20226 # include <limits.h>
20227 #else
20228 # include <assert.h>
20229 #endif
20230
20231 #undef _beginthread
20232
20233 /* Override any gcc2 internal prototype to avoid an error.  */
20234 #ifdef __cplusplus
20235 extern "C"
20236 {
20237 #endif
20238 /* We use char because int might match the return type of a gcc2
20239    builtin and then its argument prototype would still apply.  */
20240 char _beginthread ();
20241 /* The GNU C library defines this for functions which it implements
20242     to always fail with ENOSYS.  Some functions are actually named
20243     something starting with __ and the normal name is an alias.  */
20244 #if defined (__stub__beginthread) || defined (__stub____beginthread)
20245 choke me
20246 #else
20247 char (*f) () = _beginthread;
20248 #endif
20249 #ifdef __cplusplus
20250 }
20251 #endif
20252
20253 int
20254 main ()
20255 {
20256 return f != _beginthread;
20257   ;
20258   return 0;
20259 }
20260 _ACEOF
20261 rm -f conftest.$ac_objext conftest$ac_exeext
20262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20263   (eval $ac_link) 2>conftest.er1
20264   ac_status=$?
20265   grep -v '^ *+' conftest.er1 >conftest.err
20266   rm -f conftest.er1
20267   cat conftest.err >&5
20268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); } &&
20270          { ac_try='test -z "$ac_c_werror_flag"
20271                          || test ! -s conftest.err'
20272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273   (eval $ac_try) 2>&5
20274   ac_status=$?
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); }; } &&
20277          { ac_try='test -s conftest$ac_exeext'
20278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279   (eval $ac_try) 2>&5
20280   ac_status=$?
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); }; }; then
20283   ac_cv_func__beginthread=yes
20284 else
20285   echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20287
20288 ac_cv_func__beginthread=no
20289 fi
20290 rm -f conftest.err conftest.$ac_objext \
20291       conftest$ac_exeext conftest.$ac_ext
20292 fi
20293 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20294 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
20295
20296
20297         if test $ac_cv_func__beginthread = yes ; then
20298
20299 cat >>confdefs.h <<\_ACEOF
20300 #define HAVE_NT_THREADS 1
20301 _ACEOF
20302
20303                 ol_cv_nt_threads=yes
20304         fi
20305
20306
20307         if test "$ol_cv_nt_threads" = yes ; then
20308                 ol_link_threads=nt
20309                 ol_with_threads=found
20310                 ol_with_yielding_select=yes
20311
20312
20313 cat >>confdefs.h <<\_ACEOF
20314 #define HAVE_NT_SERVICE_MANAGER 1
20315 _ACEOF
20316
20317
20318 cat >>confdefs.h <<\_ACEOF
20319 #define HAVE_NT_EVENT_LOG 1
20320 _ACEOF
20321
20322         fi
20323
20324         if test $ol_with_threads = nt ; then
20325                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20326 echo "$as_me: error: could not locate NT Threads" >&2;}
20327    { (exit 1); exit 1; }; }
20328         fi
20329         ;;
20330 esac
20331
20332 case $ol_with_threads in auto | yes | posix)
20333
20334
20335 for ac_header in pthread.h
20336 do
20337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20339   echo "$as_me:$LINENO: checking for $ac_header" >&5
20340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20342   echo $ECHO_N "(cached) $ECHO_C" >&6
20343 fi
20344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20346 else
20347   # Is the header compilable?
20348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20350 cat >conftest.$ac_ext <<_ACEOF
20351 /* confdefs.h.  */
20352 _ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h.  */
20356 $ac_includes_default
20357 #include <$ac_header>
20358 _ACEOF
20359 rm -f conftest.$ac_objext
20360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20361   (eval $ac_compile) 2>conftest.er1
20362   ac_status=$?
20363   grep -v '^ *+' conftest.er1 >conftest.err
20364   rm -f conftest.er1
20365   cat conftest.err >&5
20366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367   (exit $ac_status); } &&
20368          { ac_try='test -z "$ac_c_werror_flag"
20369                          || test ! -s conftest.err'
20370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371   (eval $ac_try) 2>&5
20372   ac_status=$?
20373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374   (exit $ac_status); }; } &&
20375          { ac_try='test -s conftest.$ac_objext'
20376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377   (eval $ac_try) 2>&5
20378   ac_status=$?
20379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380   (exit $ac_status); }; }; then
20381   ac_header_compiler=yes
20382 else
20383   echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20385
20386 ac_header_compiler=no
20387 fi
20388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20390 echo "${ECHO_T}$ac_header_compiler" >&6
20391
20392 # Is the header present?
20393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20395 cat >conftest.$ac_ext <<_ACEOF
20396 /* confdefs.h.  */
20397 _ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h.  */
20401 #include <$ac_header>
20402 _ACEOF
20403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20405   ac_status=$?
20406   grep -v '^ *+' conftest.er1 >conftest.err
20407   rm -f conftest.er1
20408   cat conftest.err >&5
20409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); } >/dev/null; then
20411   if test -s conftest.err; then
20412     ac_cpp_err=$ac_c_preproc_warn_flag
20413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20414   else
20415     ac_cpp_err=
20416   fi
20417 else
20418   ac_cpp_err=yes
20419 fi
20420 if test -z "$ac_cpp_err"; then
20421   ac_header_preproc=yes
20422 else
20423   echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20425
20426   ac_header_preproc=no
20427 fi
20428 rm -f conftest.err conftest.$ac_ext
20429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20430 echo "${ECHO_T}$ac_header_preproc" >&6
20431
20432 # So?  What about this header?
20433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20434   yes:no: )
20435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20439     ac_header_preproc=yes
20440     ;;
20441   no:yes:* )
20442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20454     (
20455       cat <<\_ASBOX
20456 ## --------------------------------------------- ##
20457 ## Report this to <http://www.openldap.org/its/> ##
20458 ## --------------------------------------------- ##
20459 _ASBOX
20460     ) |
20461       sed "s/^/$as_me: WARNING:     /" >&2
20462     ;;
20463 esac
20464 echo "$as_me:$LINENO: checking for $ac_header" >&5
20465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20467   echo $ECHO_N "(cached) $ECHO_C" >&6
20468 else
20469   eval "$as_ac_Header=\$ac_header_preproc"
20470 fi
20471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20473
20474 fi
20475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20476   cat >>confdefs.h <<_ACEOF
20477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20478 _ACEOF
20479
20480 fi
20481
20482 done
20483
20484
20485         if test $ac_cv_header_pthread_h = yes ; then
20486                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20487 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20488 if test "${ol_cv_pthread_version+set}" = set; then
20489   echo $ECHO_N "(cached) $ECHO_C" >&6
20490 else
20491
20492         cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498
20499 #               include <pthread.h>
20500
20501 int
20502 main ()
20503 {
20504
20505                 int i = PTHREAD_CREATE_JOINABLE;
20506
20507   ;
20508   return 0;
20509 }
20510 _ACEOF
20511 rm -f conftest.$ac_objext
20512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20513   (eval $ac_compile) 2>conftest.er1
20514   ac_status=$?
20515   grep -v '^ *+' conftest.er1 >conftest.err
20516   rm -f conftest.er1
20517   cat conftest.err >&5
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); } &&
20520          { ac_try='test -z "$ac_c_werror_flag"
20521                          || test ! -s conftest.err'
20522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523   (eval $ac_try) 2>&5
20524   ac_status=$?
20525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526   (exit $ac_status); }; } &&
20527          { ac_try='test -s conftest.$ac_objext'
20528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20529   (eval $ac_try) 2>&5
20530   ac_status=$?
20531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532   (exit $ac_status); }; }; then
20533
20534         cat >conftest.$ac_ext <<_ACEOF
20535 /* confdefs.h.  */
20536 _ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h.  */
20540 #include <pthread.h>
20541
20542 _ACEOF
20543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20544   $EGREP "pthread_detach" >/dev/null 2>&1; then
20545   ol_cv_pthread_version=10
20546 else
20547   ol_cv_pthread_version=8
20548 fi
20549 rm -f conftest*
20550
20551 else
20552   echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20554
20555
20556         cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h.  */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h.  */
20562
20563 #               include <pthread.h>
20564 #               ifdef PTHREAD_CREATE_UNDETACHED
20565                 draft7
20566 #               endif
20567
20568 _ACEOF
20569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20570   $EGREP "draft7" >/dev/null 2>&1; then
20571   ol_cv_pthread_version=7
20572 else
20573
20574         cat >conftest.$ac_ext <<_ACEOF
20575 /* confdefs.h.  */
20576 _ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h.  */
20580 #include <pthread.h>
20581
20582 _ACEOF
20583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20584   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20585   ol_cv_pthread_version=6
20586 else
20587
20588         cat >conftest.$ac_ext <<_ACEOF
20589 /* confdefs.h.  */
20590 _ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h.  */
20594
20595 #               include <pthread.h>
20596 #ifdef          PTHREAD_MUTEX_INITIALIZER
20597                 draft5
20598 #endif
20599
20600 _ACEOF
20601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20602   $EGREP "draft5" >/dev/null 2>&1; then
20603   ol_cv_pthread_version=5
20604 else
20605   ol_cv_pthread_version=4
20606 fi
20607 rm -f conftest*
20608
20609 fi
20610 rm -f conftest*
20611
20612 fi
20613 rm -f conftest*
20614
20615 fi
20616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20617
20618 fi
20619 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20620 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20621
20622
20623                 if test $ol_cv_pthread_version != 0 ; then
20624
20625 cat >>confdefs.h <<_ACEOF
20626 #define HAVE_PTHREADS $ol_cv_pthread_version
20627 _ACEOF
20628
20629                 else
20630                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20631 echo "$as_me: error: unknown pthread version" >&2;}
20632    { (exit 1); exit 1; }; }
20633                 fi
20634
20635                 # consider threads found
20636                 ol_with_threads=found
20637
20638
20639         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20640 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20641 if test "${ol_cv_header_linux_threads+set}" = set; then
20642   echo $ECHO_N "(cached) $ECHO_C" >&6
20643 else
20644   cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h.  */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h.  */
20650 #include <pthread.h>
20651 _ACEOF
20652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20653   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20654   ol_cv_header_linux_threads=yes
20655 else
20656   ol_cv_header_linux_threads=no
20657 fi
20658 rm -f conftest*
20659
20660
20661 fi
20662 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20663 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20664         if test $ol_cv_header_linux_threads = yes; then
20665
20666 cat >>confdefs.h <<\_ACEOF
20667 #define HAVE_LINUX_THREADS 1
20668 _ACEOF
20669
20670         fi
20671
20672
20673         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20674 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20675 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20676   echo $ECHO_N "(cached) $ECHO_C" >&6
20677 else
20678   cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h.  */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h.  */
20684 #include <pthread.h>
20685 #ifdef _POSIX_THREAD_IS_GNU_PTH
20686         __gnu_pth__;
20687 #endif
20688
20689 _ACEOF
20690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20691   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20692   ol_cv_header_gnu_pth_pthread_h=yes
20693 else
20694   ol_cv_header_gnu_pth_pthread_h=no
20695 fi
20696 rm -f conftest*
20697
20698
20699 fi
20700 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20701 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20702
20703
20704                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20705
20706 for ac_header in sched.h
20707 do
20708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20710   echo "$as_me:$LINENO: checking for $ac_header" >&5
20711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20713   echo $ECHO_N "(cached) $ECHO_C" >&6
20714 fi
20715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20717 else
20718   # Is the header compilable?
20719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20721 cat >conftest.$ac_ext <<_ACEOF
20722 /* confdefs.h.  */
20723 _ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h.  */
20727 $ac_includes_default
20728 #include <$ac_header>
20729 _ACEOF
20730 rm -f conftest.$ac_objext
20731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20732   (eval $ac_compile) 2>conftest.er1
20733   ac_status=$?
20734   grep -v '^ *+' conftest.er1 >conftest.err
20735   rm -f conftest.er1
20736   cat conftest.err >&5
20737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738   (exit $ac_status); } &&
20739          { ac_try='test -z "$ac_c_werror_flag"
20740                          || test ! -s conftest.err'
20741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742   (eval $ac_try) 2>&5
20743   ac_status=$?
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); }; } &&
20746          { ac_try='test -s conftest.$ac_objext'
20747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748   (eval $ac_try) 2>&5
20749   ac_status=$?
20750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751   (exit $ac_status); }; }; then
20752   ac_header_compiler=yes
20753 else
20754   echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20756
20757 ac_header_compiler=no
20758 fi
20759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20761 echo "${ECHO_T}$ac_header_compiler" >&6
20762
20763 # Is the header present?
20764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20766 cat >conftest.$ac_ext <<_ACEOF
20767 /* confdefs.h.  */
20768 _ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h.  */
20772 #include <$ac_header>
20773 _ACEOF
20774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20775   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20776   ac_status=$?
20777   grep -v '^ *+' conftest.er1 >conftest.err
20778   rm -f conftest.er1
20779   cat conftest.err >&5
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); } >/dev/null; then
20782   if test -s conftest.err; then
20783     ac_cpp_err=$ac_c_preproc_warn_flag
20784     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20785   else
20786     ac_cpp_err=
20787   fi
20788 else
20789   ac_cpp_err=yes
20790 fi
20791 if test -z "$ac_cpp_err"; then
20792   ac_header_preproc=yes
20793 else
20794   echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20796
20797   ac_header_preproc=no
20798 fi
20799 rm -f conftest.err conftest.$ac_ext
20800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20801 echo "${ECHO_T}$ac_header_preproc" >&6
20802
20803 # So?  What about this header?
20804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20805   yes:no: )
20806     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20810     ac_header_preproc=yes
20811     ;;
20812   no:yes:* )
20813     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20815     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20816 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20817     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20819     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20820 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20823     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20825     (
20826       cat <<\_ASBOX
20827 ## --------------------------------------------- ##
20828 ## Report this to <http://www.openldap.org/its/> ##
20829 ## --------------------------------------------- ##
20830 _ASBOX
20831     ) |
20832       sed "s/^/$as_me: WARNING:     /" >&2
20833     ;;
20834 esac
20835 echo "$as_me:$LINENO: checking for $ac_header" >&5
20836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20838   echo $ECHO_N "(cached) $ECHO_C" >&6
20839 else
20840   eval "$as_ac_Header=\$ac_header_preproc"
20841 fi
20842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20844
20845 fi
20846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20847   cat >>confdefs.h <<_ACEOF
20848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20849 _ACEOF
20850
20851 fi
20852
20853 done
20854
20855                 fi
20856
20857
20858                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20859 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20860 if test "${ol_cv_pthread_create+set}" = set; then
20861   echo $ECHO_N "(cached) $ECHO_C" >&6
20862 else
20863
20864                         if test "$cross_compiling" = yes; then
20865   cat >conftest.$ac_ext <<_ACEOF
20866 /* confdefs.h.  */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h.  */
20871
20872 /* pthread test headers */
20873 #include <pthread.h>
20874 #if HAVE_PTHREADS < 7
20875 #include <errno.h>
20876 #endif
20877 #ifndef NULL
20878 #define NULL (void*)0
20879 #endif
20880
20881 static void *task(p)
20882         void *p;
20883 {
20884         return (void *) (p == NULL);
20885 }
20886
20887 int
20888 main ()
20889 {
20890
20891         /* pthread test function */
20892 #ifndef PTHREAD_CREATE_DETACHED
20893 #define PTHREAD_CREATE_DETACHED 1
20894 #endif
20895         pthread_t t;
20896         int status;
20897         int detach = PTHREAD_CREATE_DETACHED;
20898
20899 #if HAVE_PTHREADS > 4
20900         /* Final pthreads */
20901         pthread_attr_t attr;
20902
20903         status = pthread_attr_init(&attr);
20904         if( status ) return status;
20905
20906 #if HAVE_PTHREADS < 7
20907         status = pthread_attr_setdetachstate(&attr, &detach);
20908         if( status < 0 ) status = errno;
20909 #else
20910         status = pthread_attr_setdetachstate(&attr, detach);
20911 #endif
20912         if( status ) return status;
20913         status = pthread_create( &t, &attr, task, NULL );
20914 #if HAVE_PTHREADS < 7
20915         if( status < 0 ) status = errno;
20916 #endif
20917         if( status ) return status;
20918 #else
20919         /* Draft 4 pthreads */
20920         status = pthread_create( &t, pthread_attr_default, task, NULL );
20921         if( status ) return errno;
20922
20923         /* give thread a chance to complete */
20924         /* it should remain joinable and hence detachable */
20925         sleep( 1 );
20926
20927         status = pthread_detach( &t );
20928         if( status ) return errno;
20929 #endif
20930
20931 #ifdef HAVE_LINUX_THREADS
20932         pthread_kill_other_threads_np();
20933 #endif
20934
20935         return 0;
20936
20937   ;
20938   return 0;
20939 }
20940 _ACEOF
20941 rm -f conftest.$ac_objext conftest$ac_exeext
20942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20943   (eval $ac_link) 2>conftest.er1
20944   ac_status=$?
20945   grep -v '^ *+' conftest.er1 >conftest.err
20946   rm -f conftest.er1
20947   cat conftest.err >&5
20948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949   (exit $ac_status); } &&
20950          { ac_try='test -z "$ac_c_werror_flag"
20951                          || test ! -s conftest.err'
20952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953   (eval $ac_try) 2>&5
20954   ac_status=$?
20955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956   (exit $ac_status); }; } &&
20957          { ac_try='test -s conftest$ac_exeext'
20958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959   (eval $ac_try) 2>&5
20960   ac_status=$?
20961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); }; }; then
20963   ol_cv_pthread_create=yes
20964 else
20965   echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20967
20968 ol_cv_pthread_create=no
20969 fi
20970 rm -f conftest.err conftest.$ac_objext \
20971       conftest$ac_exeext conftest.$ac_ext
20972 else
20973   cat >conftest.$ac_ext <<_ACEOF
20974 /* confdefs.h.  */
20975 _ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h.  */
20979
20980 /* pthread test headers */
20981 #include <pthread.h>
20982 #if HAVE_PTHREADS < 7
20983 #include <errno.h>
20984 #endif
20985 #ifndef NULL
20986 #define NULL (void*)0
20987 #endif
20988
20989 static void *task(p)
20990         void *p;
20991 {
20992         return (void *) (p == NULL);
20993 }
20994
20995
20996 int main(argc, argv)
20997         int argc;
20998         char **argv;
20999 {
21000
21001         /* pthread test function */
21002 #ifndef PTHREAD_CREATE_DETACHED
21003 #define PTHREAD_CREATE_DETACHED 1
21004 #endif
21005         pthread_t t;
21006         int status;
21007         int detach = PTHREAD_CREATE_DETACHED;
21008
21009 #if HAVE_PTHREADS > 4
21010         /* Final pthreads */
21011         pthread_attr_t attr;
21012
21013         status = pthread_attr_init(&attr);
21014         if( status ) return status;
21015
21016 #if HAVE_PTHREADS < 7
21017         status = pthread_attr_setdetachstate(&attr, &detach);
21018         if( status < 0 ) status = errno;
21019 #else
21020         status = pthread_attr_setdetachstate(&attr, detach);
21021 #endif
21022         if( status ) return status;
21023         status = pthread_create( &t, &attr, task, NULL );
21024 #if HAVE_PTHREADS < 7
21025         if( status < 0 ) status = errno;
21026 #endif
21027         if( status ) return status;
21028 #else
21029         /* Draft 4 pthreads */
21030         status = pthread_create( &t, pthread_attr_default, task, NULL );
21031         if( status ) return errno;
21032
21033         /* give thread a chance to complete */
21034         /* it should remain joinable and hence detachable */
21035         sleep( 1 );
21036
21037         status = pthread_detach( &t );
21038         if( status ) return errno;
21039 #endif
21040
21041 #ifdef HAVE_LINUX_THREADS
21042         pthread_kill_other_threads_np();
21043 #endif
21044
21045         return 0;
21046
21047 }
21048
21049 _ACEOF
21050 rm -f conftest$ac_exeext
21051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21052   (eval $ac_link) 2>&5
21053   ac_status=$?
21054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057   (eval $ac_try) 2>&5
21058   ac_status=$?
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); }; }; then
21061   ol_cv_pthread_create=yes
21062 else
21063   echo "$as_me: program exited with status $ac_status" >&5
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21066
21067 ( exit $ac_status )
21068 ol_cv_pthread_create=no
21069 fi
21070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21071 fi
21072 fi
21073 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
21074 echo "${ECHO_T}$ol_cv_pthread_create" >&6
21075
21076                 if test $ol_cv_pthread_create != no ; then
21077                         ol_link_threads=posix
21078                         ol_link_pthreads=""
21079                 fi
21080
21081                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
21082 if test "$ol_link_threads" = no ; then
21083         # try -kthread
21084         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
21085 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
21086 if test "${ol_cv_pthread_kthread+set}" = set; then
21087   echo $ECHO_N "(cached) $ECHO_C" >&6
21088 else
21089
21090                 # save the flags
21091                 ol_LIBS="$LIBS"
21092                 LIBS="-kthread $LIBS"
21093
21094                 if test "$cross_compiling" = yes; then
21095   cat >conftest.$ac_ext <<_ACEOF
21096 /* confdefs.h.  */
21097 _ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h.  */
21101
21102 /* pthread test headers */
21103 #include <pthread.h>
21104 #if HAVE_PTHREADS < 7
21105 #include <errno.h>
21106 #endif
21107 #ifndef NULL
21108 #define NULL (void*)0
21109 #endif
21110
21111 static void *task(p)
21112         void *p;
21113 {
21114         return (void *) (p == NULL);
21115 }
21116
21117 int
21118 main ()
21119 {
21120
21121         /* pthread test function */
21122 #ifndef PTHREAD_CREATE_DETACHED
21123 #define PTHREAD_CREATE_DETACHED 1
21124 #endif
21125         pthread_t t;
21126         int status;
21127         int detach = PTHREAD_CREATE_DETACHED;
21128
21129 #if HAVE_PTHREADS > 4
21130         /* Final pthreads */
21131         pthread_attr_t attr;
21132
21133         status = pthread_attr_init(&attr);
21134         if( status ) return status;
21135
21136 #if HAVE_PTHREADS < 7
21137         status = pthread_attr_setdetachstate(&attr, &detach);
21138         if( status < 0 ) status = errno;
21139 #else
21140         status = pthread_attr_setdetachstate(&attr, detach);
21141 #endif
21142         if( status ) return status;
21143         status = pthread_create( &t, &attr, task, NULL );
21144 #if HAVE_PTHREADS < 7
21145         if( status < 0 ) status = errno;
21146 #endif
21147         if( status ) return status;
21148 #else
21149         /* Draft 4 pthreads */
21150         status = pthread_create( &t, pthread_attr_default, task, NULL );
21151         if( status ) return errno;
21152
21153         /* give thread a chance to complete */
21154         /* it should remain joinable and hence detachable */
21155         sleep( 1 );
21156
21157         status = pthread_detach( &t );
21158         if( status ) return errno;
21159 #endif
21160
21161 #ifdef HAVE_LINUX_THREADS
21162         pthread_kill_other_threads_np();
21163 #endif
21164
21165         return 0;
21166
21167   ;
21168   return 0;
21169 }
21170 _ACEOF
21171 rm -f conftest.$ac_objext conftest$ac_exeext
21172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21173   (eval $ac_link) 2>conftest.er1
21174   ac_status=$?
21175   grep -v '^ *+' conftest.er1 >conftest.err
21176   rm -f conftest.er1
21177   cat conftest.err >&5
21178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179   (exit $ac_status); } &&
21180          { ac_try='test -z "$ac_c_werror_flag"
21181                          || test ! -s conftest.err'
21182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21183   (eval $ac_try) 2>&5
21184   ac_status=$?
21185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186   (exit $ac_status); }; } &&
21187          { ac_try='test -s conftest$ac_exeext'
21188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189   (eval $ac_try) 2>&5
21190   ac_status=$?
21191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192   (exit $ac_status); }; }; then
21193   ol_cv_pthread_kthread=yes
21194 else
21195   echo "$as_me: failed program was:" >&5
21196 sed 's/^/| /' conftest.$ac_ext >&5
21197
21198 ol_cv_pthread_kthread=no
21199 fi
21200 rm -f conftest.err conftest.$ac_objext \
21201       conftest$ac_exeext conftest.$ac_ext
21202 else
21203   cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h.  */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h.  */
21209
21210 /* pthread test headers */
21211 #include <pthread.h>
21212 #if HAVE_PTHREADS < 7
21213 #include <errno.h>
21214 #endif
21215 #ifndef NULL
21216 #define NULL (void*)0
21217 #endif
21218
21219 static void *task(p)
21220         void *p;
21221 {
21222         return (void *) (p == NULL);
21223 }
21224
21225
21226 int main(argc, argv)
21227         int argc;
21228         char **argv;
21229 {
21230
21231         /* pthread test function */
21232 #ifndef PTHREAD_CREATE_DETACHED
21233 #define PTHREAD_CREATE_DETACHED 1
21234 #endif
21235         pthread_t t;
21236         int status;
21237         int detach = PTHREAD_CREATE_DETACHED;
21238
21239 #if HAVE_PTHREADS > 4
21240         /* Final pthreads */
21241         pthread_attr_t attr;
21242
21243         status = pthread_attr_init(&attr);
21244         if( status ) return status;
21245
21246 #if HAVE_PTHREADS < 7
21247         status = pthread_attr_setdetachstate(&attr, &detach);
21248         if( status < 0 ) status = errno;
21249 #else
21250         status = pthread_attr_setdetachstate(&attr, detach);
21251 #endif
21252         if( status ) return status;
21253         status = pthread_create( &t, &attr, task, NULL );
21254 #if HAVE_PTHREADS < 7
21255         if( status < 0 ) status = errno;
21256 #endif
21257         if( status ) return status;
21258 #else
21259         /* Draft 4 pthreads */
21260         status = pthread_create( &t, pthread_attr_default, task, NULL );
21261         if( status ) return errno;
21262
21263         /* give thread a chance to complete */
21264         /* it should remain joinable and hence detachable */
21265         sleep( 1 );
21266
21267         status = pthread_detach( &t );
21268         if( status ) return errno;
21269 #endif
21270
21271 #ifdef HAVE_LINUX_THREADS
21272         pthread_kill_other_threads_np();
21273 #endif
21274
21275         return 0;
21276
21277 }
21278
21279 _ACEOF
21280 rm -f conftest$ac_exeext
21281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21282   (eval $ac_link) 2>&5
21283   ac_status=$?
21284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287   (eval $ac_try) 2>&5
21288   ac_status=$?
21289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290   (exit $ac_status); }; }; then
21291   ol_cv_pthread_kthread=yes
21292 else
21293   echo "$as_me: program exited with status $ac_status" >&5
21294 echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21296
21297 ( exit $ac_status )
21298 ol_cv_pthread_kthread=no
21299 fi
21300 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21301 fi
21302
21303                 # restore the LIBS
21304                 LIBS="$ol_LIBS"
21305
21306 fi
21307 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21308 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
21309
21310         if test $ol_cv_pthread_kthread = yes ; then
21311                 ol_link_pthreads="-kthread"
21312                 ol_link_threads=posix
21313         fi
21314 fi
21315
21316                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21317 if test "$ol_link_threads" = no ; then
21318         # try -pthread
21319         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21320 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
21321 if test "${ol_cv_pthread_pthread+set}" = set; then
21322   echo $ECHO_N "(cached) $ECHO_C" >&6
21323 else
21324
21325                 # save the flags
21326                 ol_LIBS="$LIBS"
21327                 LIBS="-pthread $LIBS"
21328
21329                 if test "$cross_compiling" = yes; then
21330   cat >conftest.$ac_ext <<_ACEOF
21331 /* confdefs.h.  */
21332 _ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h.  */
21336
21337 /* pthread test headers */
21338 #include <pthread.h>
21339 #if HAVE_PTHREADS < 7
21340 #include <errno.h>
21341 #endif
21342 #ifndef NULL
21343 #define NULL (void*)0
21344 #endif
21345
21346 static void *task(p)
21347         void *p;
21348 {
21349         return (void *) (p == NULL);
21350 }
21351
21352 int
21353 main ()
21354 {
21355
21356         /* pthread test function */
21357 #ifndef PTHREAD_CREATE_DETACHED
21358 #define PTHREAD_CREATE_DETACHED 1
21359 #endif
21360         pthread_t t;
21361         int status;
21362         int detach = PTHREAD_CREATE_DETACHED;
21363
21364 #if HAVE_PTHREADS > 4
21365         /* Final pthreads */
21366         pthread_attr_t attr;
21367
21368         status = pthread_attr_init(&attr);
21369         if( status ) return status;
21370
21371 #if HAVE_PTHREADS < 7
21372         status = pthread_attr_setdetachstate(&attr, &detach);
21373         if( status < 0 ) status = errno;
21374 #else
21375         status = pthread_attr_setdetachstate(&attr, detach);
21376 #endif
21377         if( status ) return status;
21378         status = pthread_create( &t, &attr, task, NULL );
21379 #if HAVE_PTHREADS < 7
21380         if( status < 0 ) status = errno;
21381 #endif
21382         if( status ) return status;
21383 #else
21384         /* Draft 4 pthreads */
21385         status = pthread_create( &t, pthread_attr_default, task, NULL );
21386         if( status ) return errno;
21387
21388         /* give thread a chance to complete */
21389         /* it should remain joinable and hence detachable */
21390         sleep( 1 );
21391
21392         status = pthread_detach( &t );
21393         if( status ) return errno;
21394 #endif
21395
21396 #ifdef HAVE_LINUX_THREADS
21397         pthread_kill_other_threads_np();
21398 #endif
21399
21400         return 0;
21401
21402   ;
21403   return 0;
21404 }
21405 _ACEOF
21406 rm -f conftest.$ac_objext conftest$ac_exeext
21407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21408   (eval $ac_link) 2>conftest.er1
21409   ac_status=$?
21410   grep -v '^ *+' conftest.er1 >conftest.err
21411   rm -f conftest.er1
21412   cat conftest.err >&5
21413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414   (exit $ac_status); } &&
21415          { ac_try='test -z "$ac_c_werror_flag"
21416                          || test ! -s conftest.err'
21417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418   (eval $ac_try) 2>&5
21419   ac_status=$?
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   (exit $ac_status); }; } &&
21422          { ac_try='test -s conftest$ac_exeext'
21423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21424   (eval $ac_try) 2>&5
21425   ac_status=$?
21426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427   (exit $ac_status); }; }; then
21428   ol_cv_pthread_pthread=yes
21429 else
21430   echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21432
21433 ol_cv_pthread_pthread=no
21434 fi
21435 rm -f conftest.err conftest.$ac_objext \
21436       conftest$ac_exeext conftest.$ac_ext
21437 else
21438   cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h.  */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h.  */
21444
21445 /* pthread test headers */
21446 #include <pthread.h>
21447 #if HAVE_PTHREADS < 7
21448 #include <errno.h>
21449 #endif
21450 #ifndef NULL
21451 #define NULL (void*)0
21452 #endif
21453
21454 static void *task(p)
21455         void *p;
21456 {
21457         return (void *) (p == NULL);
21458 }
21459
21460
21461 int main(argc, argv)
21462         int argc;
21463         char **argv;
21464 {
21465
21466         /* pthread test function */
21467 #ifndef PTHREAD_CREATE_DETACHED
21468 #define PTHREAD_CREATE_DETACHED 1
21469 #endif
21470         pthread_t t;
21471         int status;
21472         int detach = PTHREAD_CREATE_DETACHED;
21473
21474 #if HAVE_PTHREADS > 4
21475         /* Final pthreads */
21476         pthread_attr_t attr;
21477
21478         status = pthread_attr_init(&attr);
21479         if( status ) return status;
21480
21481 #if HAVE_PTHREADS < 7
21482         status = pthread_attr_setdetachstate(&attr, &detach);
21483         if( status < 0 ) status = errno;
21484 #else
21485         status = pthread_attr_setdetachstate(&attr, detach);
21486 #endif
21487         if( status ) return status;
21488         status = pthread_create( &t, &attr, task, NULL );
21489 #if HAVE_PTHREADS < 7
21490         if( status < 0 ) status = errno;
21491 #endif
21492         if( status ) return status;
21493 #else
21494         /* Draft 4 pthreads */
21495         status = pthread_create( &t, pthread_attr_default, task, NULL );
21496         if( status ) return errno;
21497
21498         /* give thread a chance to complete */
21499         /* it should remain joinable and hence detachable */
21500         sleep( 1 );
21501
21502         status = pthread_detach( &t );
21503         if( status ) return errno;
21504 #endif
21505
21506 #ifdef HAVE_LINUX_THREADS
21507         pthread_kill_other_threads_np();
21508 #endif
21509
21510         return 0;
21511
21512 }
21513
21514 _ACEOF
21515 rm -f conftest$ac_exeext
21516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21517   (eval $ac_link) 2>&5
21518   ac_status=$?
21519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522   (eval $ac_try) 2>&5
21523   ac_status=$?
21524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525   (exit $ac_status); }; }; then
21526   ol_cv_pthread_pthread=yes
21527 else
21528   echo "$as_me: program exited with status $ac_status" >&5
21529 echo "$as_me: failed program was:" >&5
21530 sed 's/^/| /' conftest.$ac_ext >&5
21531
21532 ( exit $ac_status )
21533 ol_cv_pthread_pthread=no
21534 fi
21535 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21536 fi
21537
21538                 # restore the LIBS
21539                 LIBS="$ol_LIBS"
21540
21541 fi
21542 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21543 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21544
21545         if test $ol_cv_pthread_pthread = yes ; then
21546                 ol_link_pthreads="-pthread"
21547                 ol_link_threads=posix
21548         fi
21549 fi
21550
21551                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21552 if test "$ol_link_threads" = no ; then
21553         # try -pthreads
21554         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21555 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21556 if test "${ol_cv_pthread_pthreads+set}" = set; then
21557   echo $ECHO_N "(cached) $ECHO_C" >&6
21558 else
21559
21560                 # save the flags
21561                 ol_LIBS="$LIBS"
21562                 LIBS="-pthreads $LIBS"
21563
21564                 if test "$cross_compiling" = yes; then
21565   cat >conftest.$ac_ext <<_ACEOF
21566 /* confdefs.h.  */
21567 _ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h.  */
21571
21572 /* pthread test headers */
21573 #include <pthread.h>
21574 #if HAVE_PTHREADS < 7
21575 #include <errno.h>
21576 #endif
21577 #ifndef NULL
21578 #define NULL (void*)0
21579 #endif
21580
21581 static void *task(p)
21582         void *p;
21583 {
21584         return (void *) (p == NULL);
21585 }
21586
21587 int
21588 main ()
21589 {
21590
21591         /* pthread test function */
21592 #ifndef PTHREAD_CREATE_DETACHED
21593 #define PTHREAD_CREATE_DETACHED 1
21594 #endif
21595         pthread_t t;
21596         int status;
21597         int detach = PTHREAD_CREATE_DETACHED;
21598
21599 #if HAVE_PTHREADS > 4
21600         /* Final pthreads */
21601         pthread_attr_t attr;
21602
21603         status = pthread_attr_init(&attr);
21604         if( status ) return status;
21605
21606 #if HAVE_PTHREADS < 7
21607         status = pthread_attr_setdetachstate(&attr, &detach);
21608         if( status < 0 ) status = errno;
21609 #else
21610         status = pthread_attr_setdetachstate(&attr, detach);
21611 #endif
21612         if( status ) return status;
21613         status = pthread_create( &t, &attr, task, NULL );
21614 #if HAVE_PTHREADS < 7
21615         if( status < 0 ) status = errno;
21616 #endif
21617         if( status ) return status;
21618 #else
21619         /* Draft 4 pthreads */
21620         status = pthread_create( &t, pthread_attr_default, task, NULL );
21621         if( status ) return errno;
21622
21623         /* give thread a chance to complete */
21624         /* it should remain joinable and hence detachable */
21625         sleep( 1 );
21626
21627         status = pthread_detach( &t );
21628         if( status ) return errno;
21629 #endif
21630
21631 #ifdef HAVE_LINUX_THREADS
21632         pthread_kill_other_threads_np();
21633 #endif
21634
21635         return 0;
21636
21637   ;
21638   return 0;
21639 }
21640 _ACEOF
21641 rm -f conftest.$ac_objext conftest$ac_exeext
21642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21643   (eval $ac_link) 2>conftest.er1
21644   ac_status=$?
21645   grep -v '^ *+' conftest.er1 >conftest.err
21646   rm -f conftest.er1
21647   cat conftest.err >&5
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); } &&
21650          { ac_try='test -z "$ac_c_werror_flag"
21651                          || test ! -s conftest.err'
21652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653   (eval $ac_try) 2>&5
21654   ac_status=$?
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); }; } &&
21657          { ac_try='test -s conftest$ac_exeext'
21658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659   (eval $ac_try) 2>&5
21660   ac_status=$?
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); }; }; then
21663   ol_cv_pthread_pthreads=yes
21664 else
21665   echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21667
21668 ol_cv_pthread_pthreads=no
21669 fi
21670 rm -f conftest.err conftest.$ac_objext \
21671       conftest$ac_exeext conftest.$ac_ext
21672 else
21673   cat >conftest.$ac_ext <<_ACEOF
21674 /* confdefs.h.  */
21675 _ACEOF
21676 cat confdefs.h >>conftest.$ac_ext
21677 cat >>conftest.$ac_ext <<_ACEOF
21678 /* end confdefs.h.  */
21679
21680 /* pthread test headers */
21681 #include <pthread.h>
21682 #if HAVE_PTHREADS < 7
21683 #include <errno.h>
21684 #endif
21685 #ifndef NULL
21686 #define NULL (void*)0
21687 #endif
21688
21689 static void *task(p)
21690         void *p;
21691 {
21692         return (void *) (p == NULL);
21693 }
21694
21695
21696 int main(argc, argv)
21697         int argc;
21698         char **argv;
21699 {
21700
21701         /* pthread test function */
21702 #ifndef PTHREAD_CREATE_DETACHED
21703 #define PTHREAD_CREATE_DETACHED 1
21704 #endif
21705         pthread_t t;
21706         int status;
21707         int detach = PTHREAD_CREATE_DETACHED;
21708
21709 #if HAVE_PTHREADS > 4
21710         /* Final pthreads */
21711         pthread_attr_t attr;
21712
21713         status = pthread_attr_init(&attr);
21714         if( status ) return status;
21715
21716 #if HAVE_PTHREADS < 7
21717         status = pthread_attr_setdetachstate(&attr, &detach);
21718         if( status < 0 ) status = errno;
21719 #else
21720         status = pthread_attr_setdetachstate(&attr, detach);
21721 #endif
21722         if( status ) return status;
21723         status = pthread_create( &t, &attr, task, NULL );
21724 #if HAVE_PTHREADS < 7
21725         if( status < 0 ) status = errno;
21726 #endif
21727         if( status ) return status;
21728 #else
21729         /* Draft 4 pthreads */
21730         status = pthread_create( &t, pthread_attr_default, task, NULL );
21731         if( status ) return errno;
21732
21733         /* give thread a chance to complete */
21734         /* it should remain joinable and hence detachable */
21735         sleep( 1 );
21736
21737         status = pthread_detach( &t );
21738         if( status ) return errno;
21739 #endif
21740
21741 #ifdef HAVE_LINUX_THREADS
21742         pthread_kill_other_threads_np();
21743 #endif
21744
21745         return 0;
21746
21747 }
21748
21749 _ACEOF
21750 rm -f conftest$ac_exeext
21751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21752   (eval $ac_link) 2>&5
21753   ac_status=$?
21754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757   (eval $ac_try) 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); }; }; then
21761   ol_cv_pthread_pthreads=yes
21762 else
21763   echo "$as_me: program exited with status $ac_status" >&5
21764 echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21766
21767 ( exit $ac_status )
21768 ol_cv_pthread_pthreads=no
21769 fi
21770 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21771 fi
21772
21773                 # restore the LIBS
21774                 LIBS="$ol_LIBS"
21775
21776 fi
21777 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21778 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21779
21780         if test $ol_cv_pthread_pthreads = yes ; then
21781                 ol_link_pthreads="-pthreads"
21782                 ol_link_threads=posix
21783         fi
21784 fi
21785
21786                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21787 if test "$ol_link_threads" = no ; then
21788         # try -mthreads
21789         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21790 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21791 if test "${ol_cv_pthread_mthreads+set}" = set; then
21792   echo $ECHO_N "(cached) $ECHO_C" >&6
21793 else
21794
21795                 # save the flags
21796                 ol_LIBS="$LIBS"
21797                 LIBS="-mthreads $LIBS"
21798
21799                 if test "$cross_compiling" = yes; then
21800   cat >conftest.$ac_ext <<_ACEOF
21801 /* confdefs.h.  */
21802 _ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h.  */
21806
21807 /* pthread test headers */
21808 #include <pthread.h>
21809 #if HAVE_PTHREADS < 7
21810 #include <errno.h>
21811 #endif
21812 #ifndef NULL
21813 #define NULL (void*)0
21814 #endif
21815
21816 static void *task(p)
21817         void *p;
21818 {
21819         return (void *) (p == NULL);
21820 }
21821
21822 int
21823 main ()
21824 {
21825
21826         /* pthread test function */
21827 #ifndef PTHREAD_CREATE_DETACHED
21828 #define PTHREAD_CREATE_DETACHED 1
21829 #endif
21830         pthread_t t;
21831         int status;
21832         int detach = PTHREAD_CREATE_DETACHED;
21833
21834 #if HAVE_PTHREADS > 4
21835         /* Final pthreads */
21836         pthread_attr_t attr;
21837
21838         status = pthread_attr_init(&attr);
21839         if( status ) return status;
21840
21841 #if HAVE_PTHREADS < 7
21842         status = pthread_attr_setdetachstate(&attr, &detach);
21843         if( status < 0 ) status = errno;
21844 #else
21845         status = pthread_attr_setdetachstate(&attr, detach);
21846 #endif
21847         if( status ) return status;
21848         status = pthread_create( &t, &attr, task, NULL );
21849 #if HAVE_PTHREADS < 7
21850         if( status < 0 ) status = errno;
21851 #endif
21852         if( status ) return status;
21853 #else
21854         /* Draft 4 pthreads */
21855         status = pthread_create( &t, pthread_attr_default, task, NULL );
21856         if( status ) return errno;
21857
21858         /* give thread a chance to complete */
21859         /* it should remain joinable and hence detachable */
21860         sleep( 1 );
21861
21862         status = pthread_detach( &t );
21863         if( status ) return errno;
21864 #endif
21865
21866 #ifdef HAVE_LINUX_THREADS
21867         pthread_kill_other_threads_np();
21868 #endif
21869
21870         return 0;
21871
21872   ;
21873   return 0;
21874 }
21875 _ACEOF
21876 rm -f conftest.$ac_objext conftest$ac_exeext
21877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21878   (eval $ac_link) 2>conftest.er1
21879   ac_status=$?
21880   grep -v '^ *+' conftest.er1 >conftest.err
21881   rm -f conftest.er1
21882   cat conftest.err >&5
21883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884   (exit $ac_status); } &&
21885          { ac_try='test -z "$ac_c_werror_flag"
21886                          || test ! -s conftest.err'
21887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888   (eval $ac_try) 2>&5
21889   ac_status=$?
21890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891   (exit $ac_status); }; } &&
21892          { ac_try='test -s conftest$ac_exeext'
21893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894   (eval $ac_try) 2>&5
21895   ac_status=$?
21896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); }; }; then
21898   ol_cv_pthread_mthreads=yes
21899 else
21900   echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21902
21903 ol_cv_pthread_mthreads=no
21904 fi
21905 rm -f conftest.err conftest.$ac_objext \
21906       conftest$ac_exeext conftest.$ac_ext
21907 else
21908   cat >conftest.$ac_ext <<_ACEOF
21909 /* confdefs.h.  */
21910 _ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h.  */
21914
21915 /* pthread test headers */
21916 #include <pthread.h>
21917 #if HAVE_PTHREADS < 7
21918 #include <errno.h>
21919 #endif
21920 #ifndef NULL
21921 #define NULL (void*)0
21922 #endif
21923
21924 static void *task(p)
21925         void *p;
21926 {
21927         return (void *) (p == NULL);
21928 }
21929
21930
21931 int main(argc, argv)
21932         int argc;
21933         char **argv;
21934 {
21935
21936         /* pthread test function */
21937 #ifndef PTHREAD_CREATE_DETACHED
21938 #define PTHREAD_CREATE_DETACHED 1
21939 #endif
21940         pthread_t t;
21941         int status;
21942         int detach = PTHREAD_CREATE_DETACHED;
21943
21944 #if HAVE_PTHREADS > 4
21945         /* Final pthreads */
21946         pthread_attr_t attr;
21947
21948         status = pthread_attr_init(&attr);
21949         if( status ) return status;
21950
21951 #if HAVE_PTHREADS < 7
21952         status = pthread_attr_setdetachstate(&attr, &detach);
21953         if( status < 0 ) status = errno;
21954 #else
21955         status = pthread_attr_setdetachstate(&attr, detach);
21956 #endif
21957         if( status ) return status;
21958         status = pthread_create( &t, &attr, task, NULL );
21959 #if HAVE_PTHREADS < 7
21960         if( status < 0 ) status = errno;
21961 #endif
21962         if( status ) return status;
21963 #else
21964         /* Draft 4 pthreads */
21965         status = pthread_create( &t, pthread_attr_default, task, NULL );
21966         if( status ) return errno;
21967
21968         /* give thread a chance to complete */
21969         /* it should remain joinable and hence detachable */
21970         sleep( 1 );
21971
21972         status = pthread_detach( &t );
21973         if( status ) return errno;
21974 #endif
21975
21976 #ifdef HAVE_LINUX_THREADS
21977         pthread_kill_other_threads_np();
21978 #endif
21979
21980         return 0;
21981
21982 }
21983
21984 _ACEOF
21985 rm -f conftest$ac_exeext
21986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21987   (eval $ac_link) 2>&5
21988   ac_status=$?
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992   (eval $ac_try) 2>&5
21993   ac_status=$?
21994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995   (exit $ac_status); }; }; then
21996   ol_cv_pthread_mthreads=yes
21997 else
21998   echo "$as_me: program exited with status $ac_status" >&5
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22001
22002 ( exit $ac_status )
22003 ol_cv_pthread_mthreads=no
22004 fi
22005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22006 fi
22007
22008                 # restore the LIBS
22009                 LIBS="$ol_LIBS"
22010
22011 fi
22012 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
22013 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
22014
22015         if test $ol_cv_pthread_mthreads = yes ; then
22016                 ol_link_pthreads="-mthreads"
22017                 ol_link_threads=posix
22018         fi
22019 fi
22020
22021                 # Pthread try link: -thread (ol_cv_pthread_thread)
22022 if test "$ol_link_threads" = no ; then
22023         # try -thread
22024         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
22025 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
22026 if test "${ol_cv_pthread_thread+set}" = set; then
22027   echo $ECHO_N "(cached) $ECHO_C" >&6
22028 else
22029
22030                 # save the flags
22031                 ol_LIBS="$LIBS"
22032                 LIBS="-thread $LIBS"
22033
22034                 if test "$cross_compiling" = yes; then
22035   cat >conftest.$ac_ext <<_ACEOF
22036 /* confdefs.h.  */
22037 _ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h.  */
22041
22042 /* pthread test headers */
22043 #include <pthread.h>
22044 #if HAVE_PTHREADS < 7
22045 #include <errno.h>
22046 #endif
22047 #ifndef NULL
22048 #define NULL (void*)0
22049 #endif
22050
22051 static void *task(p)
22052         void *p;
22053 {
22054         return (void *) (p == NULL);
22055 }
22056
22057 int
22058 main ()
22059 {
22060
22061         /* pthread test function */
22062 #ifndef PTHREAD_CREATE_DETACHED
22063 #define PTHREAD_CREATE_DETACHED 1
22064 #endif
22065         pthread_t t;
22066         int status;
22067         int detach = PTHREAD_CREATE_DETACHED;
22068
22069 #if HAVE_PTHREADS > 4
22070         /* Final pthreads */
22071         pthread_attr_t attr;
22072
22073         status = pthread_attr_init(&attr);
22074         if( status ) return status;
22075
22076 #if HAVE_PTHREADS < 7
22077         status = pthread_attr_setdetachstate(&attr, &detach);
22078         if( status < 0 ) status = errno;
22079 #else
22080         status = pthread_attr_setdetachstate(&attr, detach);
22081 #endif
22082         if( status ) return status;
22083         status = pthread_create( &t, &attr, task, NULL );
22084 #if HAVE_PTHREADS < 7
22085         if( status < 0 ) status = errno;
22086 #endif
22087         if( status ) return status;
22088 #else
22089         /* Draft 4 pthreads */
22090         status = pthread_create( &t, pthread_attr_default, task, NULL );
22091         if( status ) return errno;
22092
22093         /* give thread a chance to complete */
22094         /* it should remain joinable and hence detachable */
22095         sleep( 1 );
22096
22097         status = pthread_detach( &t );
22098         if( status ) return errno;
22099 #endif
22100
22101 #ifdef HAVE_LINUX_THREADS
22102         pthread_kill_other_threads_np();
22103 #endif
22104
22105         return 0;
22106
22107   ;
22108   return 0;
22109 }
22110 _ACEOF
22111 rm -f conftest.$ac_objext conftest$ac_exeext
22112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22113   (eval $ac_link) 2>conftest.er1
22114   ac_status=$?
22115   grep -v '^ *+' conftest.er1 >conftest.err
22116   rm -f conftest.er1
22117   cat conftest.err >&5
22118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119   (exit $ac_status); } &&
22120          { ac_try='test -z "$ac_c_werror_flag"
22121                          || test ! -s conftest.err'
22122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123   (eval $ac_try) 2>&5
22124   ac_status=$?
22125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126   (exit $ac_status); }; } &&
22127          { ac_try='test -s conftest$ac_exeext'
22128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22129   (eval $ac_try) 2>&5
22130   ac_status=$?
22131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132   (exit $ac_status); }; }; then
22133   ol_cv_pthread_thread=yes
22134 else
22135   echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22137
22138 ol_cv_pthread_thread=no
22139 fi
22140 rm -f conftest.err conftest.$ac_objext \
22141       conftest$ac_exeext conftest.$ac_ext
22142 else
22143   cat >conftest.$ac_ext <<_ACEOF
22144 /* confdefs.h.  */
22145 _ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h.  */
22149
22150 /* pthread test headers */
22151 #include <pthread.h>
22152 #if HAVE_PTHREADS < 7
22153 #include <errno.h>
22154 #endif
22155 #ifndef NULL
22156 #define NULL (void*)0
22157 #endif
22158
22159 static void *task(p)
22160         void *p;
22161 {
22162         return (void *) (p == NULL);
22163 }
22164
22165
22166 int main(argc, argv)
22167         int argc;
22168         char **argv;
22169 {
22170
22171         /* pthread test function */
22172 #ifndef PTHREAD_CREATE_DETACHED
22173 #define PTHREAD_CREATE_DETACHED 1
22174 #endif
22175         pthread_t t;
22176         int status;
22177         int detach = PTHREAD_CREATE_DETACHED;
22178
22179 #if HAVE_PTHREADS > 4
22180         /* Final pthreads */
22181         pthread_attr_t attr;
22182
22183         status = pthread_attr_init(&attr);
22184         if( status ) return status;
22185
22186 #if HAVE_PTHREADS < 7
22187         status = pthread_attr_setdetachstate(&attr, &detach);
22188         if( status < 0 ) status = errno;
22189 #else
22190         status = pthread_attr_setdetachstate(&attr, detach);
22191 #endif
22192         if( status ) return status;
22193         status = pthread_create( &t, &attr, task, NULL );
22194 #if HAVE_PTHREADS < 7
22195         if( status < 0 ) status = errno;
22196 #endif
22197         if( status ) return status;
22198 #else
22199         /* Draft 4 pthreads */
22200         status = pthread_create( &t, pthread_attr_default, task, NULL );
22201         if( status ) return errno;
22202
22203         /* give thread a chance to complete */
22204         /* it should remain joinable and hence detachable */
22205         sleep( 1 );
22206
22207         status = pthread_detach( &t );
22208         if( status ) return errno;
22209 #endif
22210
22211 #ifdef HAVE_LINUX_THREADS
22212         pthread_kill_other_threads_np();
22213 #endif
22214
22215         return 0;
22216
22217 }
22218
22219 _ACEOF
22220 rm -f conftest$ac_exeext
22221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22222   (eval $ac_link) 2>&5
22223   ac_status=$?
22224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227   (eval $ac_try) 2>&5
22228   ac_status=$?
22229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230   (exit $ac_status); }; }; then
22231   ol_cv_pthread_thread=yes
22232 else
22233   echo "$as_me: program exited with status $ac_status" >&5
22234 echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22236
22237 ( exit $ac_status )
22238 ol_cv_pthread_thread=no
22239 fi
22240 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22241 fi
22242
22243                 # restore the LIBS
22244                 LIBS="$ol_LIBS"
22245
22246 fi
22247 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22248 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
22249
22250         if test $ol_cv_pthread_thread = yes ; then
22251                 ol_link_pthreads="-thread"
22252                 ol_link_threads=posix
22253         fi
22254 fi
22255
22256
22257                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22258 if test "$ol_link_threads" = no ; then
22259         # try -lpthread -lmach -lexc -lc_r
22260         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22261 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
22262 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22263   echo $ECHO_N "(cached) $ECHO_C" >&6
22264 else
22265
22266                 # save the flags
22267                 ol_LIBS="$LIBS"
22268                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22269
22270                 if test "$cross_compiling" = yes; then
22271   cat >conftest.$ac_ext <<_ACEOF
22272 /* confdefs.h.  */
22273 _ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h.  */
22277
22278 /* pthread test headers */
22279 #include <pthread.h>
22280 #if HAVE_PTHREADS < 7
22281 #include <errno.h>
22282 #endif
22283 #ifndef NULL
22284 #define NULL (void*)0
22285 #endif
22286
22287 static void *task(p)
22288         void *p;
22289 {
22290         return (void *) (p == NULL);
22291 }
22292
22293 int
22294 main ()
22295 {
22296
22297         /* pthread test function */
22298 #ifndef PTHREAD_CREATE_DETACHED
22299 #define PTHREAD_CREATE_DETACHED 1
22300 #endif
22301         pthread_t t;
22302         int status;
22303         int detach = PTHREAD_CREATE_DETACHED;
22304
22305 #if HAVE_PTHREADS > 4
22306         /* Final pthreads */
22307         pthread_attr_t attr;
22308
22309         status = pthread_attr_init(&attr);
22310         if( status ) return status;
22311
22312 #if HAVE_PTHREADS < 7
22313         status = pthread_attr_setdetachstate(&attr, &detach);
22314         if( status < 0 ) status = errno;
22315 #else
22316         status = pthread_attr_setdetachstate(&attr, detach);
22317 #endif
22318         if( status ) return status;
22319         status = pthread_create( &t, &attr, task, NULL );
22320 #if HAVE_PTHREADS < 7
22321         if( status < 0 ) status = errno;
22322 #endif
22323         if( status ) return status;
22324 #else
22325         /* Draft 4 pthreads */
22326         status = pthread_create( &t, pthread_attr_default, task, NULL );
22327         if( status ) return errno;
22328
22329         /* give thread a chance to complete */
22330         /* it should remain joinable and hence detachable */
22331         sleep( 1 );
22332
22333         status = pthread_detach( &t );
22334         if( status ) return errno;
22335 #endif
22336
22337 #ifdef HAVE_LINUX_THREADS
22338         pthread_kill_other_threads_np();
22339 #endif
22340
22341         return 0;
22342
22343   ;
22344   return 0;
22345 }
22346 _ACEOF
22347 rm -f conftest.$ac_objext conftest$ac_exeext
22348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22349   (eval $ac_link) 2>conftest.er1
22350   ac_status=$?
22351   grep -v '^ *+' conftest.er1 >conftest.err
22352   rm -f conftest.er1
22353   cat conftest.err >&5
22354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355   (exit $ac_status); } &&
22356          { ac_try='test -z "$ac_c_werror_flag"
22357                          || test ! -s conftest.err'
22358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359   (eval $ac_try) 2>&5
22360   ac_status=$?
22361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362   (exit $ac_status); }; } &&
22363          { ac_try='test -s conftest$ac_exeext'
22364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365   (eval $ac_try) 2>&5
22366   ac_status=$?
22367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368   (exit $ac_status); }; }; then
22369   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22370 else
22371   echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22373
22374 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22375 fi
22376 rm -f conftest.err conftest.$ac_objext \
22377       conftest$ac_exeext conftest.$ac_ext
22378 else
22379   cat >conftest.$ac_ext <<_ACEOF
22380 /* confdefs.h.  */
22381 _ACEOF
22382 cat confdefs.h >>conftest.$ac_ext
22383 cat >>conftest.$ac_ext <<_ACEOF
22384 /* end confdefs.h.  */
22385
22386 /* pthread test headers */
22387 #include <pthread.h>
22388 #if HAVE_PTHREADS < 7
22389 #include <errno.h>
22390 #endif
22391 #ifndef NULL
22392 #define NULL (void*)0
22393 #endif
22394
22395 static void *task(p)
22396         void *p;
22397 {
22398         return (void *) (p == NULL);
22399 }
22400
22401
22402 int main(argc, argv)
22403         int argc;
22404         char **argv;
22405 {
22406
22407         /* pthread test function */
22408 #ifndef PTHREAD_CREATE_DETACHED
22409 #define PTHREAD_CREATE_DETACHED 1
22410 #endif
22411         pthread_t t;
22412         int status;
22413         int detach = PTHREAD_CREATE_DETACHED;
22414
22415 #if HAVE_PTHREADS > 4
22416         /* Final pthreads */
22417         pthread_attr_t attr;
22418
22419         status = pthread_attr_init(&attr);
22420         if( status ) return status;
22421
22422 #if HAVE_PTHREADS < 7
22423         status = pthread_attr_setdetachstate(&attr, &detach);
22424         if( status < 0 ) status = errno;
22425 #else
22426         status = pthread_attr_setdetachstate(&attr, detach);
22427 #endif
22428         if( status ) return status;
22429         status = pthread_create( &t, &attr, task, NULL );
22430 #if HAVE_PTHREADS < 7
22431         if( status < 0 ) status = errno;
22432 #endif
22433         if( status ) return status;
22434 #else
22435         /* Draft 4 pthreads */
22436         status = pthread_create( &t, pthread_attr_default, task, NULL );
22437         if( status ) return errno;
22438
22439         /* give thread a chance to complete */
22440         /* it should remain joinable and hence detachable */
22441         sleep( 1 );
22442
22443         status = pthread_detach( &t );
22444         if( status ) return errno;
22445 #endif
22446
22447 #ifdef HAVE_LINUX_THREADS
22448         pthread_kill_other_threads_np();
22449 #endif
22450
22451         return 0;
22452
22453 }
22454
22455 _ACEOF
22456 rm -f conftest$ac_exeext
22457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22458   (eval $ac_link) 2>&5
22459   ac_status=$?
22460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463   (eval $ac_try) 2>&5
22464   ac_status=$?
22465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466   (exit $ac_status); }; }; then
22467   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22468 else
22469   echo "$as_me: program exited with status $ac_status" >&5
22470 echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22472
22473 ( exit $ac_status )
22474 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22475 fi
22476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22477 fi
22478
22479                 # restore the LIBS
22480                 LIBS="$ol_LIBS"
22481
22482 fi
22483 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22484 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22485
22486         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22487                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22488                 ol_link_threads=posix
22489         fi
22490 fi
22491
22492                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22493 if test "$ol_link_threads" = no ; then
22494         # try -lpthread -lmach -lexc
22495         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22496 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22497 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22498   echo $ECHO_N "(cached) $ECHO_C" >&6
22499 else
22500
22501                 # save the flags
22502                 ol_LIBS="$LIBS"
22503                 LIBS="-lpthread -lmach -lexc $LIBS"
22504
22505                 if test "$cross_compiling" = yes; then
22506   cat >conftest.$ac_ext <<_ACEOF
22507 /* confdefs.h.  */
22508 _ACEOF
22509 cat confdefs.h >>conftest.$ac_ext
22510 cat >>conftest.$ac_ext <<_ACEOF
22511 /* end confdefs.h.  */
22512
22513 /* pthread test headers */
22514 #include <pthread.h>
22515 #if HAVE_PTHREADS < 7
22516 #include <errno.h>
22517 #endif
22518 #ifndef NULL
22519 #define NULL (void*)0
22520 #endif
22521
22522 static void *task(p)
22523         void *p;
22524 {
22525         return (void *) (p == NULL);
22526 }
22527
22528 int
22529 main ()
22530 {
22531
22532         /* pthread test function */
22533 #ifndef PTHREAD_CREATE_DETACHED
22534 #define PTHREAD_CREATE_DETACHED 1
22535 #endif
22536         pthread_t t;
22537         int status;
22538         int detach = PTHREAD_CREATE_DETACHED;
22539
22540 #if HAVE_PTHREADS > 4
22541         /* Final pthreads */
22542         pthread_attr_t attr;
22543
22544         status = pthread_attr_init(&attr);
22545         if( status ) return status;
22546
22547 #if HAVE_PTHREADS < 7
22548         status = pthread_attr_setdetachstate(&attr, &detach);
22549         if( status < 0 ) status = errno;
22550 #else
22551         status = pthread_attr_setdetachstate(&attr, detach);
22552 #endif
22553         if( status ) return status;
22554         status = pthread_create( &t, &attr, task, NULL );
22555 #if HAVE_PTHREADS < 7
22556         if( status < 0 ) status = errno;
22557 #endif
22558         if( status ) return status;
22559 #else
22560         /* Draft 4 pthreads */
22561         status = pthread_create( &t, pthread_attr_default, task, NULL );
22562         if( status ) return errno;
22563
22564         /* give thread a chance to complete */
22565         /* it should remain joinable and hence detachable */
22566         sleep( 1 );
22567
22568         status = pthread_detach( &t );
22569         if( status ) return errno;
22570 #endif
22571
22572 #ifdef HAVE_LINUX_THREADS
22573         pthread_kill_other_threads_np();
22574 #endif
22575
22576         return 0;
22577
22578   ;
22579   return 0;
22580 }
22581 _ACEOF
22582 rm -f conftest.$ac_objext conftest$ac_exeext
22583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22584   (eval $ac_link) 2>conftest.er1
22585   ac_status=$?
22586   grep -v '^ *+' conftest.er1 >conftest.err
22587   rm -f conftest.er1
22588   cat conftest.err >&5
22589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590   (exit $ac_status); } &&
22591          { ac_try='test -z "$ac_c_werror_flag"
22592                          || test ! -s conftest.err'
22593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22594   (eval $ac_try) 2>&5
22595   ac_status=$?
22596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597   (exit $ac_status); }; } &&
22598          { ac_try='test -s conftest$ac_exeext'
22599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22600   (eval $ac_try) 2>&5
22601   ac_status=$?
22602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603   (exit $ac_status); }; }; then
22604   ol_cv_pthread_lpthread_lmach_lexc=yes
22605 else
22606   echo "$as_me: failed program was:" >&5
22607 sed 's/^/| /' conftest.$ac_ext >&5
22608
22609 ol_cv_pthread_lpthread_lmach_lexc=no
22610 fi
22611 rm -f conftest.err conftest.$ac_objext \
22612       conftest$ac_exeext conftest.$ac_ext
22613 else
22614   cat >conftest.$ac_ext <<_ACEOF
22615 /* confdefs.h.  */
22616 _ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h.  */
22620
22621 /* pthread test headers */
22622 #include <pthread.h>
22623 #if HAVE_PTHREADS < 7
22624 #include <errno.h>
22625 #endif
22626 #ifndef NULL
22627 #define NULL (void*)0
22628 #endif
22629
22630 static void *task(p)
22631         void *p;
22632 {
22633         return (void *) (p == NULL);
22634 }
22635
22636
22637 int main(argc, argv)
22638         int argc;
22639         char **argv;
22640 {
22641
22642         /* pthread test function */
22643 #ifndef PTHREAD_CREATE_DETACHED
22644 #define PTHREAD_CREATE_DETACHED 1
22645 #endif
22646         pthread_t t;
22647         int status;
22648         int detach = PTHREAD_CREATE_DETACHED;
22649
22650 #if HAVE_PTHREADS > 4
22651         /* Final pthreads */
22652         pthread_attr_t attr;
22653
22654         status = pthread_attr_init(&attr);
22655         if( status ) return status;
22656
22657 #if HAVE_PTHREADS < 7
22658         status = pthread_attr_setdetachstate(&attr, &detach);
22659         if( status < 0 ) status = errno;
22660 #else
22661         status = pthread_attr_setdetachstate(&attr, detach);
22662 #endif
22663         if( status ) return status;
22664         status = pthread_create( &t, &attr, task, NULL );
22665 #if HAVE_PTHREADS < 7
22666         if( status < 0 ) status = errno;
22667 #endif
22668         if( status ) return status;
22669 #else
22670         /* Draft 4 pthreads */
22671         status = pthread_create( &t, pthread_attr_default, task, NULL );
22672         if( status ) return errno;
22673
22674         /* give thread a chance to complete */
22675         /* it should remain joinable and hence detachable */
22676         sleep( 1 );
22677
22678         status = pthread_detach( &t );
22679         if( status ) return errno;
22680 #endif
22681
22682 #ifdef HAVE_LINUX_THREADS
22683         pthread_kill_other_threads_np();
22684 #endif
22685
22686         return 0;
22687
22688 }
22689
22690 _ACEOF
22691 rm -f conftest$ac_exeext
22692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22693   (eval $ac_link) 2>&5
22694   ac_status=$?
22695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22698   (eval $ac_try) 2>&5
22699   ac_status=$?
22700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701   (exit $ac_status); }; }; then
22702   ol_cv_pthread_lpthread_lmach_lexc=yes
22703 else
22704   echo "$as_me: program exited with status $ac_status" >&5
22705 echo "$as_me: failed program was:" >&5
22706 sed 's/^/| /' conftest.$ac_ext >&5
22707
22708 ( exit $ac_status )
22709 ol_cv_pthread_lpthread_lmach_lexc=no
22710 fi
22711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22712 fi
22713
22714                 # restore the LIBS
22715                 LIBS="$ol_LIBS"
22716
22717 fi
22718 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22719 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22720
22721         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22722                 ol_link_pthreads="-lpthread -lmach -lexc"
22723                 ol_link_threads=posix
22724         fi
22725 fi
22726
22727
22728                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22729 if test "$ol_link_threads" = no ; then
22730         # try -lpthread -Wl,-woff,85
22731         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22732 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22733 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22734   echo $ECHO_N "(cached) $ECHO_C" >&6
22735 else
22736
22737                 # save the flags
22738                 ol_LIBS="$LIBS"
22739                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22740
22741                 if test "$cross_compiling" = yes; then
22742   cat >conftest.$ac_ext <<_ACEOF
22743 /* confdefs.h.  */
22744 _ACEOF
22745 cat confdefs.h >>conftest.$ac_ext
22746 cat >>conftest.$ac_ext <<_ACEOF
22747 /* end confdefs.h.  */
22748
22749 /* pthread test headers */
22750 #include <pthread.h>
22751 #if HAVE_PTHREADS < 7
22752 #include <errno.h>
22753 #endif
22754 #ifndef NULL
22755 #define NULL (void*)0
22756 #endif
22757
22758 static void *task(p)
22759         void *p;
22760 {
22761         return (void *) (p == NULL);
22762 }
22763
22764 int
22765 main ()
22766 {
22767
22768         /* pthread test function */
22769 #ifndef PTHREAD_CREATE_DETACHED
22770 #define PTHREAD_CREATE_DETACHED 1
22771 #endif
22772         pthread_t t;
22773         int status;
22774         int detach = PTHREAD_CREATE_DETACHED;
22775
22776 #if HAVE_PTHREADS > 4
22777         /* Final pthreads */
22778         pthread_attr_t attr;
22779
22780         status = pthread_attr_init(&attr);
22781         if( status ) return status;
22782
22783 #if HAVE_PTHREADS < 7
22784         status = pthread_attr_setdetachstate(&attr, &detach);
22785         if( status < 0 ) status = errno;
22786 #else
22787         status = pthread_attr_setdetachstate(&attr, detach);
22788 #endif
22789         if( status ) return status;
22790         status = pthread_create( &t, &attr, task, NULL );
22791 #if HAVE_PTHREADS < 7
22792         if( status < 0 ) status = errno;
22793 #endif
22794         if( status ) return status;
22795 #else
22796         /* Draft 4 pthreads */
22797         status = pthread_create( &t, pthread_attr_default, task, NULL );
22798         if( status ) return errno;
22799
22800         /* give thread a chance to complete */
22801         /* it should remain joinable and hence detachable */
22802         sleep( 1 );
22803
22804         status = pthread_detach( &t );
22805         if( status ) return errno;
22806 #endif
22807
22808 #ifdef HAVE_LINUX_THREADS
22809         pthread_kill_other_threads_np();
22810 #endif
22811
22812         return 0;
22813
22814   ;
22815   return 0;
22816 }
22817 _ACEOF
22818 rm -f conftest.$ac_objext conftest$ac_exeext
22819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22820   (eval $ac_link) 2>conftest.er1
22821   ac_status=$?
22822   grep -v '^ *+' conftest.er1 >conftest.err
22823   rm -f conftest.er1
22824   cat conftest.err >&5
22825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826   (exit $ac_status); } &&
22827          { ac_try='test -z "$ac_c_werror_flag"
22828                          || test ! -s conftest.err'
22829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830   (eval $ac_try) 2>&5
22831   ac_status=$?
22832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833   (exit $ac_status); }; } &&
22834          { ac_try='test -s conftest$ac_exeext'
22835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836   (eval $ac_try) 2>&5
22837   ac_status=$?
22838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839   (exit $ac_status); }; }; then
22840   ol_cv_pthread_lib_lpthread_woff=yes
22841 else
22842   echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22844
22845 ol_cv_pthread_lib_lpthread_woff=no
22846 fi
22847 rm -f conftest.err conftest.$ac_objext \
22848       conftest$ac_exeext conftest.$ac_ext
22849 else
22850   cat >conftest.$ac_ext <<_ACEOF
22851 /* confdefs.h.  */
22852 _ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h.  */
22856
22857 /* pthread test headers */
22858 #include <pthread.h>
22859 #if HAVE_PTHREADS < 7
22860 #include <errno.h>
22861 #endif
22862 #ifndef NULL
22863 #define NULL (void*)0
22864 #endif
22865
22866 static void *task(p)
22867         void *p;
22868 {
22869         return (void *) (p == NULL);
22870 }
22871
22872
22873 int main(argc, argv)
22874         int argc;
22875         char **argv;
22876 {
22877
22878         /* pthread test function */
22879 #ifndef PTHREAD_CREATE_DETACHED
22880 #define PTHREAD_CREATE_DETACHED 1
22881 #endif
22882         pthread_t t;
22883         int status;
22884         int detach = PTHREAD_CREATE_DETACHED;
22885
22886 #if HAVE_PTHREADS > 4
22887         /* Final pthreads */
22888         pthread_attr_t attr;
22889
22890         status = pthread_attr_init(&attr);
22891         if( status ) return status;
22892
22893 #if HAVE_PTHREADS < 7
22894         status = pthread_attr_setdetachstate(&attr, &detach);
22895         if( status < 0 ) status = errno;
22896 #else
22897         status = pthread_attr_setdetachstate(&attr, detach);
22898 #endif
22899         if( status ) return status;
22900         status = pthread_create( &t, &attr, task, NULL );
22901 #if HAVE_PTHREADS < 7
22902         if( status < 0 ) status = errno;
22903 #endif
22904         if( status ) return status;
22905 #else
22906         /* Draft 4 pthreads */
22907         status = pthread_create( &t, pthread_attr_default, task, NULL );
22908         if( status ) return errno;
22909
22910         /* give thread a chance to complete */
22911         /* it should remain joinable and hence detachable */
22912         sleep( 1 );
22913
22914         status = pthread_detach( &t );
22915         if( status ) return errno;
22916 #endif
22917
22918 #ifdef HAVE_LINUX_THREADS
22919         pthread_kill_other_threads_np();
22920 #endif
22921
22922         return 0;
22923
22924 }
22925
22926 _ACEOF
22927 rm -f conftest$ac_exeext
22928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22929   (eval $ac_link) 2>&5
22930   ac_status=$?
22931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934   (eval $ac_try) 2>&5
22935   ac_status=$?
22936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937   (exit $ac_status); }; }; then
22938   ol_cv_pthread_lib_lpthread_woff=yes
22939 else
22940   echo "$as_me: program exited with status $ac_status" >&5
22941 echo "$as_me: failed program was:" >&5
22942 sed 's/^/| /' conftest.$ac_ext >&5
22943
22944 ( exit $ac_status )
22945 ol_cv_pthread_lib_lpthread_woff=no
22946 fi
22947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22948 fi
22949
22950                 # restore the LIBS
22951                 LIBS="$ol_LIBS"
22952
22953 fi
22954 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22955 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22956
22957         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22958                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22959                 ol_link_threads=posix
22960         fi
22961 fi
22962
22963
22964                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22965 if test "$ol_link_threads" = no ; then
22966         # try -lpthread
22967         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22968 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22969 if test "${ol_cv_pthread_lpthread+set}" = set; then
22970   echo $ECHO_N "(cached) $ECHO_C" >&6
22971 else
22972
22973                 # save the flags
22974                 ol_LIBS="$LIBS"
22975                 LIBS="-lpthread $LIBS"
22976
22977                 if test "$cross_compiling" = yes; then
22978   cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h.  */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h.  */
22984
22985 /* pthread test headers */
22986 #include <pthread.h>
22987 #if HAVE_PTHREADS < 7
22988 #include <errno.h>
22989 #endif
22990 #ifndef NULL
22991 #define NULL (void*)0
22992 #endif
22993
22994 static void *task(p)
22995         void *p;
22996 {
22997         return (void *) (p == NULL);
22998 }
22999
23000 int
23001 main ()
23002 {
23003
23004         /* pthread test function */
23005 #ifndef PTHREAD_CREATE_DETACHED
23006 #define PTHREAD_CREATE_DETACHED 1
23007 #endif
23008         pthread_t t;
23009         int status;
23010         int detach = PTHREAD_CREATE_DETACHED;
23011
23012 #if HAVE_PTHREADS > 4
23013         /* Final pthreads */
23014         pthread_attr_t attr;
23015
23016         status = pthread_attr_init(&attr);
23017         if( status ) return status;
23018
23019 #if HAVE_PTHREADS < 7
23020         status = pthread_attr_setdetachstate(&attr, &detach);
23021         if( status < 0 ) status = errno;
23022 #else
23023         status = pthread_attr_setdetachstate(&attr, detach);
23024 #endif
23025         if( status ) return status;
23026         status = pthread_create( &t, &attr, task, NULL );
23027 #if HAVE_PTHREADS < 7
23028         if( status < 0 ) status = errno;
23029 #endif
23030         if( status ) return status;
23031 #else
23032         /* Draft 4 pthreads */
23033         status = pthread_create( &t, pthread_attr_default, task, NULL );
23034         if( status ) return errno;
23035
23036         /* give thread a chance to complete */
23037         /* it should remain joinable and hence detachable */
23038         sleep( 1 );
23039
23040         status = pthread_detach( &t );
23041         if( status ) return errno;
23042 #endif
23043
23044 #ifdef HAVE_LINUX_THREADS
23045         pthread_kill_other_threads_np();
23046 #endif
23047
23048         return 0;
23049
23050   ;
23051   return 0;
23052 }
23053 _ACEOF
23054 rm -f conftest.$ac_objext conftest$ac_exeext
23055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23056   (eval $ac_link) 2>conftest.er1
23057   ac_status=$?
23058   grep -v '^ *+' conftest.er1 >conftest.err
23059   rm -f conftest.er1
23060   cat conftest.err >&5
23061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062   (exit $ac_status); } &&
23063          { ac_try='test -z "$ac_c_werror_flag"
23064                          || test ! -s conftest.err'
23065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23066   (eval $ac_try) 2>&5
23067   ac_status=$?
23068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069   (exit $ac_status); }; } &&
23070          { ac_try='test -s conftest$ac_exeext'
23071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23072   (eval $ac_try) 2>&5
23073   ac_status=$?
23074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075   (exit $ac_status); }; }; then
23076   ol_cv_pthread_lpthread=yes
23077 else
23078   echo "$as_me: failed program was:" >&5
23079 sed 's/^/| /' conftest.$ac_ext >&5
23080
23081 ol_cv_pthread_lpthread=no
23082 fi
23083 rm -f conftest.err conftest.$ac_objext \
23084       conftest$ac_exeext conftest.$ac_ext
23085 else
23086   cat >conftest.$ac_ext <<_ACEOF
23087 /* confdefs.h.  */
23088 _ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h.  */
23092
23093 /* pthread test headers */
23094 #include <pthread.h>
23095 #if HAVE_PTHREADS < 7
23096 #include <errno.h>
23097 #endif
23098 #ifndef NULL
23099 #define NULL (void*)0
23100 #endif
23101
23102 static void *task(p)
23103         void *p;
23104 {
23105         return (void *) (p == NULL);
23106 }
23107
23108
23109 int main(argc, argv)
23110         int argc;
23111         char **argv;
23112 {
23113
23114         /* pthread test function */
23115 #ifndef PTHREAD_CREATE_DETACHED
23116 #define PTHREAD_CREATE_DETACHED 1
23117 #endif
23118         pthread_t t;
23119         int status;
23120         int detach = PTHREAD_CREATE_DETACHED;
23121
23122 #if HAVE_PTHREADS > 4
23123         /* Final pthreads */
23124         pthread_attr_t attr;
23125
23126         status = pthread_attr_init(&attr);
23127         if( status ) return status;
23128
23129 #if HAVE_PTHREADS < 7
23130         status = pthread_attr_setdetachstate(&attr, &detach);
23131         if( status < 0 ) status = errno;
23132 #else
23133         status = pthread_attr_setdetachstate(&attr, detach);
23134 #endif
23135         if( status ) return status;
23136         status = pthread_create( &t, &attr, task, NULL );
23137 #if HAVE_PTHREADS < 7
23138         if( status < 0 ) status = errno;
23139 #endif
23140         if( status ) return status;
23141 #else
23142         /* Draft 4 pthreads */
23143         status = pthread_create( &t, pthread_attr_default, task, NULL );
23144         if( status ) return errno;
23145
23146         /* give thread a chance to complete */
23147         /* it should remain joinable and hence detachable */
23148         sleep( 1 );
23149
23150         status = pthread_detach( &t );
23151         if( status ) return errno;
23152 #endif
23153
23154 #ifdef HAVE_LINUX_THREADS
23155         pthread_kill_other_threads_np();
23156 #endif
23157
23158         return 0;
23159
23160 }
23161
23162 _ACEOF
23163 rm -f conftest$ac_exeext
23164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23165   (eval $ac_link) 2>&5
23166   ac_status=$?
23167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23170   (eval $ac_try) 2>&5
23171   ac_status=$?
23172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173   (exit $ac_status); }; }; then
23174   ol_cv_pthread_lpthread=yes
23175 else
23176   echo "$as_me: program exited with status $ac_status" >&5
23177 echo "$as_me: failed program was:" >&5
23178 sed 's/^/| /' conftest.$ac_ext >&5
23179
23180 ( exit $ac_status )
23181 ol_cv_pthread_lpthread=no
23182 fi
23183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23184 fi
23185
23186                 # restore the LIBS
23187                 LIBS="$ol_LIBS"
23188
23189 fi
23190 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23191 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
23192
23193         if test $ol_cv_pthread_lpthread = yes ; then
23194                 ol_link_pthreads="-lpthread"
23195                 ol_link_threads=posix
23196         fi
23197 fi
23198
23199                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23200 if test "$ol_link_threads" = no ; then
23201         # try -lc_r
23202         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23203 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
23204 if test "${ol_cv_pthread_lc_r+set}" = set; then
23205   echo $ECHO_N "(cached) $ECHO_C" >&6
23206 else
23207
23208                 # save the flags
23209                 ol_LIBS="$LIBS"
23210                 LIBS="-lc_r $LIBS"
23211
23212                 if test "$cross_compiling" = yes; then
23213   cat >conftest.$ac_ext <<_ACEOF
23214 /* confdefs.h.  */
23215 _ACEOF
23216 cat confdefs.h >>conftest.$ac_ext
23217 cat >>conftest.$ac_ext <<_ACEOF
23218 /* end confdefs.h.  */
23219
23220 /* pthread test headers */
23221 #include <pthread.h>
23222 #if HAVE_PTHREADS < 7
23223 #include <errno.h>
23224 #endif
23225 #ifndef NULL
23226 #define NULL (void*)0
23227 #endif
23228
23229 static void *task(p)
23230         void *p;
23231 {
23232         return (void *) (p == NULL);
23233 }
23234
23235 int
23236 main ()
23237 {
23238
23239         /* pthread test function */
23240 #ifndef PTHREAD_CREATE_DETACHED
23241 #define PTHREAD_CREATE_DETACHED 1
23242 #endif
23243         pthread_t t;
23244         int status;
23245         int detach = PTHREAD_CREATE_DETACHED;
23246
23247 #if HAVE_PTHREADS > 4
23248         /* Final pthreads */
23249         pthread_attr_t attr;
23250
23251         status = pthread_attr_init(&attr);
23252         if( status ) return status;
23253
23254 #if HAVE_PTHREADS < 7
23255         status = pthread_attr_setdetachstate(&attr, &detach);
23256         if( status < 0 ) status = errno;
23257 #else
23258         status = pthread_attr_setdetachstate(&attr, detach);
23259 #endif
23260         if( status ) return status;
23261         status = pthread_create( &t, &attr, task, NULL );
23262 #if HAVE_PTHREADS < 7
23263         if( status < 0 ) status = errno;
23264 #endif
23265         if( status ) return status;
23266 #else
23267         /* Draft 4 pthreads */
23268         status = pthread_create( &t, pthread_attr_default, task, NULL );
23269         if( status ) return errno;
23270
23271         /* give thread a chance to complete */
23272         /* it should remain joinable and hence detachable */
23273         sleep( 1 );
23274
23275         status = pthread_detach( &t );
23276         if( status ) return errno;
23277 #endif
23278
23279 #ifdef HAVE_LINUX_THREADS
23280         pthread_kill_other_threads_np();
23281 #endif
23282
23283         return 0;
23284
23285   ;
23286   return 0;
23287 }
23288 _ACEOF
23289 rm -f conftest.$ac_objext conftest$ac_exeext
23290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23291   (eval $ac_link) 2>conftest.er1
23292   ac_status=$?
23293   grep -v '^ *+' conftest.er1 >conftest.err
23294   rm -f conftest.er1
23295   cat conftest.err >&5
23296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297   (exit $ac_status); } &&
23298          { ac_try='test -z "$ac_c_werror_flag"
23299                          || test ! -s conftest.err'
23300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301   (eval $ac_try) 2>&5
23302   ac_status=$?
23303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304   (exit $ac_status); }; } &&
23305          { ac_try='test -s conftest$ac_exeext'
23306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23307   (eval $ac_try) 2>&5
23308   ac_status=$?
23309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310   (exit $ac_status); }; }; then
23311   ol_cv_pthread_lc_r=yes
23312 else
23313   echo "$as_me: failed program was:" >&5
23314 sed 's/^/| /' conftest.$ac_ext >&5
23315
23316 ol_cv_pthread_lc_r=no
23317 fi
23318 rm -f conftest.err conftest.$ac_objext \
23319       conftest$ac_exeext conftest.$ac_ext
23320 else
23321   cat >conftest.$ac_ext <<_ACEOF
23322 /* confdefs.h.  */
23323 _ACEOF
23324 cat confdefs.h >>conftest.$ac_ext
23325 cat >>conftest.$ac_ext <<_ACEOF
23326 /* end confdefs.h.  */
23327
23328 /* pthread test headers */
23329 #include <pthread.h>
23330 #if HAVE_PTHREADS < 7
23331 #include <errno.h>
23332 #endif
23333 #ifndef NULL
23334 #define NULL (void*)0
23335 #endif
23336
23337 static void *task(p)
23338         void *p;
23339 {
23340         return (void *) (p == NULL);
23341 }
23342
23343
23344 int main(argc, argv)
23345         int argc;
23346         char **argv;
23347 {
23348
23349         /* pthread test function */
23350 #ifndef PTHREAD_CREATE_DETACHED
23351 #define PTHREAD_CREATE_DETACHED 1
23352 #endif
23353         pthread_t t;
23354         int status;
23355         int detach = PTHREAD_CREATE_DETACHED;
23356
23357 #if HAVE_PTHREADS > 4
23358         /* Final pthreads */
23359         pthread_attr_t attr;
23360
23361         status = pthread_attr_init(&attr);
23362         if( status ) return status;
23363
23364 #if HAVE_PTHREADS < 7
23365         status = pthread_attr_setdetachstate(&attr, &detach);
23366         if( status < 0 ) status = errno;
23367 #else
23368         status = pthread_attr_setdetachstate(&attr, detach);
23369 #endif
23370         if( status ) return status;
23371         status = pthread_create( &t, &attr, task, NULL );
23372 #if HAVE_PTHREADS < 7
23373         if( status < 0 ) status = errno;
23374 #endif
23375         if( status ) return status;
23376 #else
23377         /* Draft 4 pthreads */
23378         status = pthread_create( &t, pthread_attr_default, task, NULL );
23379         if( status ) return errno;
23380
23381         /* give thread a chance to complete */
23382         /* it should remain joinable and hence detachable */
23383         sleep( 1 );
23384
23385         status = pthread_detach( &t );
23386         if( status ) return errno;
23387 #endif
23388
23389 #ifdef HAVE_LINUX_THREADS
23390         pthread_kill_other_threads_np();
23391 #endif
23392
23393         return 0;
23394
23395 }
23396
23397 _ACEOF
23398 rm -f conftest$ac_exeext
23399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23400   (eval $ac_link) 2>&5
23401   ac_status=$?
23402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23405   (eval $ac_try) 2>&5
23406   ac_status=$?
23407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408   (exit $ac_status); }; }; then
23409   ol_cv_pthread_lc_r=yes
23410 else
23411   echo "$as_me: program exited with status $ac_status" >&5
23412 echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23414
23415 ( exit $ac_status )
23416 ol_cv_pthread_lc_r=no
23417 fi
23418 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23419 fi
23420
23421                 # restore the LIBS
23422                 LIBS="$ol_LIBS"
23423
23424 fi
23425 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23426 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
23427
23428         if test $ol_cv_pthread_lc_r = yes ; then
23429                 ol_link_pthreads="-lc_r"
23430                 ol_link_threads=posix
23431         fi
23432 fi
23433
23434
23435                 # Pthread try link: -threads (ol_cv_pthread_threads)
23436 if test "$ol_link_threads" = no ; then
23437         # try -threads
23438         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23439 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23440 if test "${ol_cv_pthread_threads+set}" = set; then
23441   echo $ECHO_N "(cached) $ECHO_C" >&6
23442 else
23443
23444                 # save the flags
23445                 ol_LIBS="$LIBS"
23446                 LIBS="-threads $LIBS"
23447
23448                 if test "$cross_compiling" = yes; then
23449   cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h.  */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h.  */
23455
23456 /* pthread test headers */
23457 #include <pthread.h>
23458 #if HAVE_PTHREADS < 7
23459 #include <errno.h>
23460 #endif
23461 #ifndef NULL
23462 #define NULL (void*)0
23463 #endif
23464
23465 static void *task(p)
23466         void *p;
23467 {
23468         return (void *) (p == NULL);
23469 }
23470
23471 int
23472 main ()
23473 {
23474
23475         /* pthread test function */
23476 #ifndef PTHREAD_CREATE_DETACHED
23477 #define PTHREAD_CREATE_DETACHED 1
23478 #endif
23479         pthread_t t;
23480         int status;
23481         int detach = PTHREAD_CREATE_DETACHED;
23482
23483 #if HAVE_PTHREADS > 4
23484         /* Final pthreads */
23485         pthread_attr_t attr;
23486
23487         status = pthread_attr_init(&attr);
23488         if( status ) return status;
23489
23490 #if HAVE_PTHREADS < 7
23491         status = pthread_attr_setdetachstate(&attr, &detach);
23492         if( status < 0 ) status = errno;
23493 #else
23494         status = pthread_attr_setdetachstate(&attr, detach);
23495 #endif
23496         if( status ) return status;
23497         status = pthread_create( &t, &attr, task, NULL );
23498 #if HAVE_PTHREADS < 7
23499         if( status < 0 ) status = errno;
23500 #endif
23501         if( status ) return status;
23502 #else
23503         /* Draft 4 pthreads */
23504         status = pthread_create( &t, pthread_attr_default, task, NULL );
23505         if( status ) return errno;
23506
23507         /* give thread a chance to complete */
23508         /* it should remain joinable and hence detachable */
23509         sleep( 1 );
23510
23511         status = pthread_detach( &t );
23512         if( status ) return errno;
23513 #endif
23514
23515 #ifdef HAVE_LINUX_THREADS
23516         pthread_kill_other_threads_np();
23517 #endif
23518
23519         return 0;
23520
23521   ;
23522   return 0;
23523 }
23524 _ACEOF
23525 rm -f conftest.$ac_objext conftest$ac_exeext
23526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23527   (eval $ac_link) 2>conftest.er1
23528   ac_status=$?
23529   grep -v '^ *+' conftest.er1 >conftest.err
23530   rm -f conftest.er1
23531   cat conftest.err >&5
23532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533   (exit $ac_status); } &&
23534          { ac_try='test -z "$ac_c_werror_flag"
23535                          || test ! -s conftest.err'
23536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23537   (eval $ac_try) 2>&5
23538   ac_status=$?
23539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540   (exit $ac_status); }; } &&
23541          { ac_try='test -s conftest$ac_exeext'
23542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23543   (eval $ac_try) 2>&5
23544   ac_status=$?
23545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546   (exit $ac_status); }; }; then
23547   ol_cv_pthread_threads=yes
23548 else
23549   echo "$as_me: failed program was:" >&5
23550 sed 's/^/| /' conftest.$ac_ext >&5
23551
23552 ol_cv_pthread_threads=no
23553 fi
23554 rm -f conftest.err conftest.$ac_objext \
23555       conftest$ac_exeext conftest.$ac_ext
23556 else
23557   cat >conftest.$ac_ext <<_ACEOF
23558 /* confdefs.h.  */
23559 _ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h.  */
23563
23564 /* pthread test headers */
23565 #include <pthread.h>
23566 #if HAVE_PTHREADS < 7
23567 #include <errno.h>
23568 #endif
23569 #ifndef NULL
23570 #define NULL (void*)0
23571 #endif
23572
23573 static void *task(p)
23574         void *p;
23575 {
23576         return (void *) (p == NULL);
23577 }
23578
23579
23580 int main(argc, argv)
23581         int argc;
23582         char **argv;
23583 {
23584
23585         /* pthread test function */
23586 #ifndef PTHREAD_CREATE_DETACHED
23587 #define PTHREAD_CREATE_DETACHED 1
23588 #endif
23589         pthread_t t;
23590         int status;
23591         int detach = PTHREAD_CREATE_DETACHED;
23592
23593 #if HAVE_PTHREADS > 4
23594         /* Final pthreads */
23595         pthread_attr_t attr;
23596
23597         status = pthread_attr_init(&attr);
23598         if( status ) return status;
23599
23600 #if HAVE_PTHREADS < 7
23601         status = pthread_attr_setdetachstate(&attr, &detach);
23602         if( status < 0 ) status = errno;
23603 #else
23604         status = pthread_attr_setdetachstate(&attr, detach);
23605 #endif
23606         if( status ) return status;
23607         status = pthread_create( &t, &attr, task, NULL );
23608 #if HAVE_PTHREADS < 7
23609         if( status < 0 ) status = errno;
23610 #endif
23611         if( status ) return status;
23612 #else
23613         /* Draft 4 pthreads */
23614         status = pthread_create( &t, pthread_attr_default, task, NULL );
23615         if( status ) return errno;
23616
23617         /* give thread a chance to complete */
23618         /* it should remain joinable and hence detachable */
23619         sleep( 1 );
23620
23621         status = pthread_detach( &t );
23622         if( status ) return errno;
23623 #endif
23624
23625 #ifdef HAVE_LINUX_THREADS
23626         pthread_kill_other_threads_np();
23627 #endif
23628
23629         return 0;
23630
23631 }
23632
23633 _ACEOF
23634 rm -f conftest$ac_exeext
23635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23636   (eval $ac_link) 2>&5
23637   ac_status=$?
23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23641   (eval $ac_try) 2>&5
23642   ac_status=$?
23643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644   (exit $ac_status); }; }; then
23645   ol_cv_pthread_threads=yes
23646 else
23647   echo "$as_me: program exited with status $ac_status" >&5
23648 echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23650
23651 ( exit $ac_status )
23652 ol_cv_pthread_threads=no
23653 fi
23654 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23655 fi
23656
23657                 # restore the LIBS
23658                 LIBS="$ol_LIBS"
23659
23660 fi
23661 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23662 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23663
23664         if test $ol_cv_pthread_threads = yes ; then
23665                 ol_link_pthreads="-threads"
23666                 ol_link_threads=posix
23667         fi
23668 fi
23669
23670
23671                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23672 if test "$ol_link_threads" = no ; then
23673         # try -lpthreads -lmach -lexc -lc_r
23674         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23675 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23676 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23677   echo $ECHO_N "(cached) $ECHO_C" >&6
23678 else
23679
23680                 # save the flags
23681                 ol_LIBS="$LIBS"
23682                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23683
23684                 if test "$cross_compiling" = yes; then
23685   cat >conftest.$ac_ext <<_ACEOF
23686 /* confdefs.h.  */
23687 _ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h.  */
23691
23692 /* pthread test headers */
23693 #include <pthread.h>
23694 #if HAVE_PTHREADS < 7
23695 #include <errno.h>
23696 #endif
23697 #ifndef NULL
23698 #define NULL (void*)0
23699 #endif
23700
23701 static void *task(p)
23702         void *p;
23703 {
23704         return (void *) (p == NULL);
23705 }
23706
23707 int
23708 main ()
23709 {
23710
23711         /* pthread test function */
23712 #ifndef PTHREAD_CREATE_DETACHED
23713 #define PTHREAD_CREATE_DETACHED 1
23714 #endif
23715         pthread_t t;
23716         int status;
23717         int detach = PTHREAD_CREATE_DETACHED;
23718
23719 #if HAVE_PTHREADS > 4
23720         /* Final pthreads */
23721         pthread_attr_t attr;
23722
23723         status = pthread_attr_init(&attr);
23724         if( status ) return status;
23725
23726 #if HAVE_PTHREADS < 7
23727         status = pthread_attr_setdetachstate(&attr, &detach);
23728         if( status < 0 ) status = errno;
23729 #else
23730         status = pthread_attr_setdetachstate(&attr, detach);
23731 #endif
23732         if( status ) return status;
23733         status = pthread_create( &t, &attr, task, NULL );
23734 #if HAVE_PTHREADS < 7
23735         if( status < 0 ) status = errno;
23736 #endif
23737         if( status ) return status;
23738 #else
23739         /* Draft 4 pthreads */
23740         status = pthread_create( &t, pthread_attr_default, task, NULL );
23741         if( status ) return errno;
23742
23743         /* give thread a chance to complete */
23744         /* it should remain joinable and hence detachable */
23745         sleep( 1 );
23746
23747         status = pthread_detach( &t );
23748         if( status ) return errno;
23749 #endif
23750
23751 #ifdef HAVE_LINUX_THREADS
23752         pthread_kill_other_threads_np();
23753 #endif
23754
23755         return 0;
23756
23757   ;
23758   return 0;
23759 }
23760 _ACEOF
23761 rm -f conftest.$ac_objext conftest$ac_exeext
23762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23763   (eval $ac_link) 2>conftest.er1
23764   ac_status=$?
23765   grep -v '^ *+' conftest.er1 >conftest.err
23766   rm -f conftest.er1
23767   cat conftest.err >&5
23768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769   (exit $ac_status); } &&
23770          { ac_try='test -z "$ac_c_werror_flag"
23771                          || test ! -s conftest.err'
23772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23773   (eval $ac_try) 2>&5
23774   ac_status=$?
23775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776   (exit $ac_status); }; } &&
23777          { ac_try='test -s conftest$ac_exeext'
23778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23779   (eval $ac_try) 2>&5
23780   ac_status=$?
23781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782   (exit $ac_status); }; }; then
23783   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23784 else
23785   echo "$as_me: failed program was:" >&5
23786 sed 's/^/| /' conftest.$ac_ext >&5
23787
23788 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23789 fi
23790 rm -f conftest.err conftest.$ac_objext \
23791       conftest$ac_exeext conftest.$ac_ext
23792 else
23793   cat >conftest.$ac_ext <<_ACEOF
23794 /* confdefs.h.  */
23795 _ACEOF
23796 cat confdefs.h >>conftest.$ac_ext
23797 cat >>conftest.$ac_ext <<_ACEOF
23798 /* end confdefs.h.  */
23799
23800 /* pthread test headers */
23801 #include <pthread.h>
23802 #if HAVE_PTHREADS < 7
23803 #include <errno.h>
23804 #endif
23805 #ifndef NULL
23806 #define NULL (void*)0
23807 #endif
23808
23809 static void *task(p)
23810         void *p;
23811 {
23812         return (void *) (p == NULL);
23813 }
23814
23815
23816 int main(argc, argv)
23817         int argc;
23818         char **argv;
23819 {
23820
23821         /* pthread test function */
23822 #ifndef PTHREAD_CREATE_DETACHED
23823 #define PTHREAD_CREATE_DETACHED 1
23824 #endif
23825         pthread_t t;
23826         int status;
23827         int detach = PTHREAD_CREATE_DETACHED;
23828
23829 #if HAVE_PTHREADS > 4
23830         /* Final pthreads */
23831         pthread_attr_t attr;
23832
23833         status = pthread_attr_init(&attr);
23834         if( status ) return status;
23835
23836 #if HAVE_PTHREADS < 7
23837         status = pthread_attr_setdetachstate(&attr, &detach);
23838         if( status < 0 ) status = errno;
23839 #else
23840         status = pthread_attr_setdetachstate(&attr, detach);
23841 #endif
23842         if( status ) return status;
23843         status = pthread_create( &t, &attr, task, NULL );
23844 #if HAVE_PTHREADS < 7
23845         if( status < 0 ) status = errno;
23846 #endif
23847         if( status ) return status;
23848 #else
23849         /* Draft 4 pthreads */
23850         status = pthread_create( &t, pthread_attr_default, task, NULL );
23851         if( status ) return errno;
23852
23853         /* give thread a chance to complete */
23854         /* it should remain joinable and hence detachable */
23855         sleep( 1 );
23856
23857         status = pthread_detach( &t );
23858         if( status ) return errno;
23859 #endif
23860
23861 #ifdef HAVE_LINUX_THREADS
23862         pthread_kill_other_threads_np();
23863 #endif
23864
23865         return 0;
23866
23867 }
23868
23869 _ACEOF
23870 rm -f conftest$ac_exeext
23871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23872   (eval $ac_link) 2>&5
23873   ac_status=$?
23874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23877   (eval $ac_try) 2>&5
23878   ac_status=$?
23879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880   (exit $ac_status); }; }; then
23881   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23882 else
23883   echo "$as_me: program exited with status $ac_status" >&5
23884 echo "$as_me: failed program was:" >&5
23885 sed 's/^/| /' conftest.$ac_ext >&5
23886
23887 ( exit $ac_status )
23888 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23889 fi
23890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23891 fi
23892
23893                 # restore the LIBS
23894                 LIBS="$ol_LIBS"
23895
23896 fi
23897 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23898 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23899
23900         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23901                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23902                 ol_link_threads=posix
23903         fi
23904 fi
23905
23906                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23907 if test "$ol_link_threads" = no ; then
23908         # try -lpthreads -lmach -lexc
23909         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23910 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23911 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23912   echo $ECHO_N "(cached) $ECHO_C" >&6
23913 else
23914
23915                 # save the flags
23916                 ol_LIBS="$LIBS"
23917                 LIBS="-lpthreads -lmach -lexc $LIBS"
23918
23919                 if test "$cross_compiling" = yes; then
23920   cat >conftest.$ac_ext <<_ACEOF
23921 /* confdefs.h.  */
23922 _ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h.  */
23926
23927 /* pthread test headers */
23928 #include <pthread.h>
23929 #if HAVE_PTHREADS < 7
23930 #include <errno.h>
23931 #endif
23932 #ifndef NULL
23933 #define NULL (void*)0
23934 #endif
23935
23936 static void *task(p)
23937         void *p;
23938 {
23939         return (void *) (p == NULL);
23940 }
23941
23942 int
23943 main ()
23944 {
23945
23946         /* pthread test function */
23947 #ifndef PTHREAD_CREATE_DETACHED
23948 #define PTHREAD_CREATE_DETACHED 1
23949 #endif
23950         pthread_t t;
23951         int status;
23952         int detach = PTHREAD_CREATE_DETACHED;
23953
23954 #if HAVE_PTHREADS > 4
23955         /* Final pthreads */
23956         pthread_attr_t attr;
23957
23958         status = pthread_attr_init(&attr);
23959         if( status ) return status;
23960
23961 #if HAVE_PTHREADS < 7
23962         status = pthread_attr_setdetachstate(&attr, &detach);
23963         if( status < 0 ) status = errno;
23964 #else
23965         status = pthread_attr_setdetachstate(&attr, detach);
23966 #endif
23967         if( status ) return status;
23968         status = pthread_create( &t, &attr, task, NULL );
23969 #if HAVE_PTHREADS < 7
23970         if( status < 0 ) status = errno;
23971 #endif
23972         if( status ) return status;
23973 #else
23974         /* Draft 4 pthreads */
23975         status = pthread_create( &t, pthread_attr_default, task, NULL );
23976         if( status ) return errno;
23977
23978         /* give thread a chance to complete */
23979         /* it should remain joinable and hence detachable */
23980         sleep( 1 );
23981
23982         status = pthread_detach( &t );
23983         if( status ) return errno;
23984 #endif
23985
23986 #ifdef HAVE_LINUX_THREADS
23987         pthread_kill_other_threads_np();
23988 #endif
23989
23990         return 0;
23991
23992   ;
23993   return 0;
23994 }
23995 _ACEOF
23996 rm -f conftest.$ac_objext conftest$ac_exeext
23997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23998   (eval $ac_link) 2>conftest.er1
23999   ac_status=$?
24000   grep -v '^ *+' conftest.er1 >conftest.err
24001   rm -f conftest.er1
24002   cat conftest.err >&5
24003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004   (exit $ac_status); } &&
24005          { ac_try='test -z "$ac_c_werror_flag"
24006                          || test ! -s conftest.err'
24007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008   (eval $ac_try) 2>&5
24009   ac_status=$?
24010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011   (exit $ac_status); }; } &&
24012          { ac_try='test -s conftest$ac_exeext'
24013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014   (eval $ac_try) 2>&5
24015   ac_status=$?
24016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017   (exit $ac_status); }; }; then
24018   ol_cv_pthread_lpthreads_lmach_lexc=yes
24019 else
24020   echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24022
24023 ol_cv_pthread_lpthreads_lmach_lexc=no
24024 fi
24025 rm -f conftest.err conftest.$ac_objext \
24026       conftest$ac_exeext conftest.$ac_ext
24027 else
24028   cat >conftest.$ac_ext <<_ACEOF
24029 /* confdefs.h.  */
24030 _ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h.  */
24034
24035 /* pthread test headers */
24036 #include <pthread.h>
24037 #if HAVE_PTHREADS < 7
24038 #include <errno.h>
24039 #endif
24040 #ifndef NULL
24041 #define NULL (void*)0
24042 #endif
24043
24044 static void *task(p)
24045         void *p;
24046 {
24047         return (void *) (p == NULL);
24048 }
24049
24050
24051 int main(argc, argv)
24052         int argc;
24053         char **argv;
24054 {
24055
24056         /* pthread test function */
24057 #ifndef PTHREAD_CREATE_DETACHED
24058 #define PTHREAD_CREATE_DETACHED 1
24059 #endif
24060         pthread_t t;
24061         int status;
24062         int detach = PTHREAD_CREATE_DETACHED;
24063
24064 #if HAVE_PTHREADS > 4
24065         /* Final pthreads */
24066         pthread_attr_t attr;
24067
24068         status = pthread_attr_init(&attr);
24069         if( status ) return status;
24070
24071 #if HAVE_PTHREADS < 7
24072         status = pthread_attr_setdetachstate(&attr, &detach);
24073         if( status < 0 ) status = errno;
24074 #else
24075         status = pthread_attr_setdetachstate(&attr, detach);
24076 #endif
24077         if( status ) return status;
24078         status = pthread_create( &t, &attr, task, NULL );
24079 #if HAVE_PTHREADS < 7
24080         if( status < 0 ) status = errno;
24081 #endif
24082         if( status ) return status;
24083 #else
24084         /* Draft 4 pthreads */
24085         status = pthread_create( &t, pthread_attr_default, task, NULL );
24086         if( status ) return errno;
24087
24088         /* give thread a chance to complete */
24089         /* it should remain joinable and hence detachable */
24090         sleep( 1 );
24091
24092         status = pthread_detach( &t );
24093         if( status ) return errno;
24094 #endif
24095
24096 #ifdef HAVE_LINUX_THREADS
24097         pthread_kill_other_threads_np();
24098 #endif
24099
24100         return 0;
24101
24102 }
24103
24104 _ACEOF
24105 rm -f conftest$ac_exeext
24106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24107   (eval $ac_link) 2>&5
24108   ac_status=$?
24109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24112   (eval $ac_try) 2>&5
24113   ac_status=$?
24114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115   (exit $ac_status); }; }; then
24116   ol_cv_pthread_lpthreads_lmach_lexc=yes
24117 else
24118   echo "$as_me: program exited with status $ac_status" >&5
24119 echo "$as_me: failed program was:" >&5
24120 sed 's/^/| /' conftest.$ac_ext >&5
24121
24122 ( exit $ac_status )
24123 ol_cv_pthread_lpthreads_lmach_lexc=no
24124 fi
24125 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24126 fi
24127
24128                 # restore the LIBS
24129                 LIBS="$ol_LIBS"
24130
24131 fi
24132 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24133 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
24134
24135         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24136                 ol_link_pthreads="-lpthreads -lmach -lexc"
24137                 ol_link_threads=posix
24138         fi
24139 fi
24140
24141                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24142 if test "$ol_link_threads" = no ; then
24143         # try -lpthreads -lexc
24144         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24145 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
24146 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24147   echo $ECHO_N "(cached) $ECHO_C" >&6
24148 else
24149
24150                 # save the flags
24151                 ol_LIBS="$LIBS"
24152                 LIBS="-lpthreads -lexc $LIBS"
24153
24154                 if test "$cross_compiling" = yes; then
24155   cat >conftest.$ac_ext <<_ACEOF
24156 /* confdefs.h.  */
24157 _ACEOF
24158 cat confdefs.h >>conftest.$ac_ext
24159 cat >>conftest.$ac_ext <<_ACEOF
24160 /* end confdefs.h.  */
24161
24162 /* pthread test headers */
24163 #include <pthread.h>
24164 #if HAVE_PTHREADS < 7
24165 #include <errno.h>
24166 #endif
24167 #ifndef NULL
24168 #define NULL (void*)0
24169 #endif
24170
24171 static void *task(p)
24172         void *p;
24173 {
24174         return (void *) (p == NULL);
24175 }
24176
24177 int
24178 main ()
24179 {
24180
24181         /* pthread test function */
24182 #ifndef PTHREAD_CREATE_DETACHED
24183 #define PTHREAD_CREATE_DETACHED 1
24184 #endif
24185         pthread_t t;
24186         int status;
24187         int detach = PTHREAD_CREATE_DETACHED;
24188
24189 #if HAVE_PTHREADS > 4
24190         /* Final pthreads */
24191         pthread_attr_t attr;
24192
24193         status = pthread_attr_init(&attr);
24194         if( status ) return status;
24195
24196 #if HAVE_PTHREADS < 7
24197         status = pthread_attr_setdetachstate(&attr, &detach);
24198         if( status < 0 ) status = errno;
24199 #else
24200         status = pthread_attr_setdetachstate(&attr, detach);
24201 #endif
24202         if( status ) return status;
24203         status = pthread_create( &t, &attr, task, NULL );
24204 #if HAVE_PTHREADS < 7
24205         if( status < 0 ) status = errno;
24206 #endif
24207         if( status ) return status;
24208 #else
24209         /* Draft 4 pthreads */
24210         status = pthread_create( &t, pthread_attr_default, task, NULL );
24211         if( status ) return errno;
24212
24213         /* give thread a chance to complete */
24214         /* it should remain joinable and hence detachable */
24215         sleep( 1 );
24216
24217         status = pthread_detach( &t );
24218         if( status ) return errno;
24219 #endif
24220
24221 #ifdef HAVE_LINUX_THREADS
24222         pthread_kill_other_threads_np();
24223 #endif
24224
24225         return 0;
24226
24227   ;
24228   return 0;
24229 }
24230 _ACEOF
24231 rm -f conftest.$ac_objext conftest$ac_exeext
24232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24233   (eval $ac_link) 2>conftest.er1
24234   ac_status=$?
24235   grep -v '^ *+' conftest.er1 >conftest.err
24236   rm -f conftest.er1
24237   cat conftest.err >&5
24238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239   (exit $ac_status); } &&
24240          { ac_try='test -z "$ac_c_werror_flag"
24241                          || test ! -s conftest.err'
24242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243   (eval $ac_try) 2>&5
24244   ac_status=$?
24245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246   (exit $ac_status); }; } &&
24247          { ac_try='test -s conftest$ac_exeext'
24248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249   (eval $ac_try) 2>&5
24250   ac_status=$?
24251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252   (exit $ac_status); }; }; then
24253   ol_cv_pthread_lpthreads_lexc=yes
24254 else
24255   echo "$as_me: failed program was:" >&5
24256 sed 's/^/| /' conftest.$ac_ext >&5
24257
24258 ol_cv_pthread_lpthreads_lexc=no
24259 fi
24260 rm -f conftest.err conftest.$ac_objext \
24261       conftest$ac_exeext conftest.$ac_ext
24262 else
24263   cat >conftest.$ac_ext <<_ACEOF
24264 /* confdefs.h.  */
24265 _ACEOF
24266 cat confdefs.h >>conftest.$ac_ext
24267 cat >>conftest.$ac_ext <<_ACEOF
24268 /* end confdefs.h.  */
24269
24270 /* pthread test headers */
24271 #include <pthread.h>
24272 #if HAVE_PTHREADS < 7
24273 #include <errno.h>
24274 #endif
24275 #ifndef NULL
24276 #define NULL (void*)0
24277 #endif
24278
24279 static void *task(p)
24280         void *p;
24281 {
24282         return (void *) (p == NULL);
24283 }
24284
24285
24286 int main(argc, argv)
24287         int argc;
24288         char **argv;
24289 {
24290
24291         /* pthread test function */
24292 #ifndef PTHREAD_CREATE_DETACHED
24293 #define PTHREAD_CREATE_DETACHED 1
24294 #endif
24295         pthread_t t;
24296         int status;
24297         int detach = PTHREAD_CREATE_DETACHED;
24298
24299 #if HAVE_PTHREADS > 4
24300         /* Final pthreads */
24301         pthread_attr_t attr;
24302
24303         status = pthread_attr_init(&attr);
24304         if( status ) return status;
24305
24306 #if HAVE_PTHREADS < 7
24307         status = pthread_attr_setdetachstate(&attr, &detach);
24308         if( status < 0 ) status = errno;
24309 #else
24310         status = pthread_attr_setdetachstate(&attr, detach);
24311 #endif
24312         if( status ) return status;
24313         status = pthread_create( &t, &attr, task, NULL );
24314 #if HAVE_PTHREADS < 7
24315         if( status < 0 ) status = errno;
24316 #endif
24317         if( status ) return status;
24318 #else
24319         /* Draft 4 pthreads */
24320         status = pthread_create( &t, pthread_attr_default, task, NULL );
24321         if( status ) return errno;
24322
24323         /* give thread a chance to complete */
24324         /* it should remain joinable and hence detachable */
24325         sleep( 1 );
24326
24327         status = pthread_detach( &t );
24328         if( status ) return errno;
24329 #endif
24330
24331 #ifdef HAVE_LINUX_THREADS
24332         pthread_kill_other_threads_np();
24333 #endif
24334
24335         return 0;
24336
24337 }
24338
24339 _ACEOF
24340 rm -f conftest$ac_exeext
24341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24342   (eval $ac_link) 2>&5
24343   ac_status=$?
24344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24347   (eval $ac_try) 2>&5
24348   ac_status=$?
24349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350   (exit $ac_status); }; }; then
24351   ol_cv_pthread_lpthreads_lexc=yes
24352 else
24353   echo "$as_me: program exited with status $ac_status" >&5
24354 echo "$as_me: failed program was:" >&5
24355 sed 's/^/| /' conftest.$ac_ext >&5
24356
24357 ( exit $ac_status )
24358 ol_cv_pthread_lpthreads_lexc=no
24359 fi
24360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24361 fi
24362
24363                 # restore the LIBS
24364                 LIBS="$ol_LIBS"
24365
24366 fi
24367 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24368 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
24369
24370         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24371                 ol_link_pthreads="-lpthreads -lexc"
24372                 ol_link_threads=posix
24373         fi
24374 fi
24375
24376
24377                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24378 if test "$ol_link_threads" = no ; then
24379         # try -lpthreads
24380         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24381 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
24382 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24383   echo $ECHO_N "(cached) $ECHO_C" >&6
24384 else
24385
24386                 # save the flags
24387                 ol_LIBS="$LIBS"
24388                 LIBS="-lpthreads $LIBS"
24389
24390                 if test "$cross_compiling" = yes; then
24391   cat >conftest.$ac_ext <<_ACEOF
24392 /* confdefs.h.  */
24393 _ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h.  */
24397
24398 /* pthread test headers */
24399 #include <pthread.h>
24400 #if HAVE_PTHREADS < 7
24401 #include <errno.h>
24402 #endif
24403 #ifndef NULL
24404 #define NULL (void*)0
24405 #endif
24406
24407 static void *task(p)
24408         void *p;
24409 {
24410         return (void *) (p == NULL);
24411 }
24412
24413 int
24414 main ()
24415 {
24416
24417         /* pthread test function */
24418 #ifndef PTHREAD_CREATE_DETACHED
24419 #define PTHREAD_CREATE_DETACHED 1
24420 #endif
24421         pthread_t t;
24422         int status;
24423         int detach = PTHREAD_CREATE_DETACHED;
24424
24425 #if HAVE_PTHREADS > 4
24426         /* Final pthreads */
24427         pthread_attr_t attr;
24428
24429         status = pthread_attr_init(&attr);
24430         if( status ) return status;
24431
24432 #if HAVE_PTHREADS < 7
24433         status = pthread_attr_setdetachstate(&attr, &detach);
24434         if( status < 0 ) status = errno;
24435 #else
24436         status = pthread_attr_setdetachstate(&attr, detach);
24437 #endif
24438         if( status ) return status;
24439         status = pthread_create( &t, &attr, task, NULL );
24440 #if HAVE_PTHREADS < 7
24441         if( status < 0 ) status = errno;
24442 #endif
24443         if( status ) return status;
24444 #else
24445         /* Draft 4 pthreads */
24446         status = pthread_create( &t, pthread_attr_default, task, NULL );
24447         if( status ) return errno;
24448
24449         /* give thread a chance to complete */
24450         /* it should remain joinable and hence detachable */
24451         sleep( 1 );
24452
24453         status = pthread_detach( &t );
24454         if( status ) return errno;
24455 #endif
24456
24457 #ifdef HAVE_LINUX_THREADS
24458         pthread_kill_other_threads_np();
24459 #endif
24460
24461         return 0;
24462
24463   ;
24464   return 0;
24465 }
24466 _ACEOF
24467 rm -f conftest.$ac_objext conftest$ac_exeext
24468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24469   (eval $ac_link) 2>conftest.er1
24470   ac_status=$?
24471   grep -v '^ *+' conftest.er1 >conftest.err
24472   rm -f conftest.er1
24473   cat conftest.err >&5
24474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475   (exit $ac_status); } &&
24476          { ac_try='test -z "$ac_c_werror_flag"
24477                          || test ! -s conftest.err'
24478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479   (eval $ac_try) 2>&5
24480   ac_status=$?
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); }; } &&
24483          { ac_try='test -s conftest$ac_exeext'
24484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485   (eval $ac_try) 2>&5
24486   ac_status=$?
24487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488   (exit $ac_status); }; }; then
24489   ol_cv_pthread_lib_lpthreads=yes
24490 else
24491   echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24493
24494 ol_cv_pthread_lib_lpthreads=no
24495 fi
24496 rm -f conftest.err conftest.$ac_objext \
24497       conftest$ac_exeext conftest.$ac_ext
24498 else
24499   cat >conftest.$ac_ext <<_ACEOF
24500 /* confdefs.h.  */
24501 _ACEOF
24502 cat confdefs.h >>conftest.$ac_ext
24503 cat >>conftest.$ac_ext <<_ACEOF
24504 /* end confdefs.h.  */
24505
24506 /* pthread test headers */
24507 #include <pthread.h>
24508 #if HAVE_PTHREADS < 7
24509 #include <errno.h>
24510 #endif
24511 #ifndef NULL
24512 #define NULL (void*)0
24513 #endif
24514
24515 static void *task(p)
24516         void *p;
24517 {
24518         return (void *) (p == NULL);
24519 }
24520
24521
24522 int main(argc, argv)
24523         int argc;
24524         char **argv;
24525 {
24526
24527         /* pthread test function */
24528 #ifndef PTHREAD_CREATE_DETACHED
24529 #define PTHREAD_CREATE_DETACHED 1
24530 #endif
24531         pthread_t t;
24532         int status;
24533         int detach = PTHREAD_CREATE_DETACHED;
24534
24535 #if HAVE_PTHREADS > 4
24536         /* Final pthreads */
24537         pthread_attr_t attr;
24538
24539         status = pthread_attr_init(&attr);
24540         if( status ) return status;
24541
24542 #if HAVE_PTHREADS < 7
24543         status = pthread_attr_setdetachstate(&attr, &detach);
24544         if( status < 0 ) status = errno;
24545 #else
24546         status = pthread_attr_setdetachstate(&attr, detach);
24547 #endif
24548         if( status ) return status;
24549         status = pthread_create( &t, &attr, task, NULL );
24550 #if HAVE_PTHREADS < 7
24551         if( status < 0 ) status = errno;
24552 #endif
24553         if( status ) return status;
24554 #else
24555         /* Draft 4 pthreads */
24556         status = pthread_create( &t, pthread_attr_default, task, NULL );
24557         if( status ) return errno;
24558
24559         /* give thread a chance to complete */
24560         /* it should remain joinable and hence detachable */
24561         sleep( 1 );
24562
24563         status = pthread_detach( &t );
24564         if( status ) return errno;
24565 #endif
24566
24567 #ifdef HAVE_LINUX_THREADS
24568         pthread_kill_other_threads_np();
24569 #endif
24570
24571         return 0;
24572
24573 }
24574
24575 _ACEOF
24576 rm -f conftest$ac_exeext
24577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24578   (eval $ac_link) 2>&5
24579   ac_status=$?
24580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24583   (eval $ac_try) 2>&5
24584   ac_status=$?
24585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586   (exit $ac_status); }; }; then
24587   ol_cv_pthread_lib_lpthreads=yes
24588 else
24589   echo "$as_me: program exited with status $ac_status" >&5
24590 echo "$as_me: failed program was:" >&5
24591 sed 's/^/| /' conftest.$ac_ext >&5
24592
24593 ( exit $ac_status )
24594 ol_cv_pthread_lib_lpthreads=no
24595 fi
24596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24597 fi
24598
24599                 # restore the LIBS
24600                 LIBS="$ol_LIBS"
24601
24602 fi
24603 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24604 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24605
24606         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24607                 ol_link_pthreads="-lpthreads"
24608                 ol_link_threads=posix
24609         fi
24610 fi
24611
24612
24613                 if test $ol_link_threads != no ; then
24614                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24615
24616                                                 save_CPPFLAGS="$CPPFLAGS"
24617                         save_LIBS="$LIBS"
24618                         LIBS="$LTHREAD_LIBS $LIBS"
24619
24620
24621
24622
24623 for ac_func in sched_yield pthread_yield thr_yield
24624 do
24625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24626 echo "$as_me:$LINENO: checking for $ac_func" >&5
24627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24628 if eval "test \"\${$as_ac_var+set}\" = set"; then
24629   echo $ECHO_N "(cached) $ECHO_C" >&6
24630 else
24631   cat >conftest.$ac_ext <<_ACEOF
24632 /* confdefs.h.  */
24633 _ACEOF
24634 cat confdefs.h >>conftest.$ac_ext
24635 cat >>conftest.$ac_ext <<_ACEOF
24636 /* end confdefs.h.  */
24637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24639 #define $ac_func innocuous_$ac_func
24640
24641 /* System header to define __stub macros and hopefully few prototypes,
24642     which can conflict with char $ac_func (); below.
24643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24644     <limits.h> exists even on freestanding compilers.  */
24645
24646 #ifdef __STDC__
24647 # include <limits.h>
24648 #else
24649 # include <assert.h>
24650 #endif
24651
24652 #undef $ac_func
24653
24654 /* Override any gcc2 internal prototype to avoid an error.  */
24655 #ifdef __cplusplus
24656 extern "C"
24657 {
24658 #endif
24659 /* We use char because int might match the return type of a gcc2
24660    builtin and then its argument prototype would still apply.  */
24661 char $ac_func ();
24662 /* The GNU C library defines this for functions which it implements
24663     to always fail with ENOSYS.  Some functions are actually named
24664     something starting with __ and the normal name is an alias.  */
24665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24666 choke me
24667 #else
24668 char (*f) () = $ac_func;
24669 #endif
24670 #ifdef __cplusplus
24671 }
24672 #endif
24673
24674 int
24675 main ()
24676 {
24677 return f != $ac_func;
24678   ;
24679   return 0;
24680 }
24681 _ACEOF
24682 rm -f conftest.$ac_objext conftest$ac_exeext
24683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24684   (eval $ac_link) 2>conftest.er1
24685   ac_status=$?
24686   grep -v '^ *+' conftest.er1 >conftest.err
24687   rm -f conftest.er1
24688   cat conftest.err >&5
24689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690   (exit $ac_status); } &&
24691          { ac_try='test -z "$ac_c_werror_flag"
24692                          || test ! -s conftest.err'
24693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24694   (eval $ac_try) 2>&5
24695   ac_status=$?
24696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697   (exit $ac_status); }; } &&
24698          { ac_try='test -s conftest$ac_exeext'
24699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24700   (eval $ac_try) 2>&5
24701   ac_status=$?
24702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703   (exit $ac_status); }; }; then
24704   eval "$as_ac_var=yes"
24705 else
24706   echo "$as_me: failed program was:" >&5
24707 sed 's/^/| /' conftest.$ac_ext >&5
24708
24709 eval "$as_ac_var=no"
24710 fi
24711 rm -f conftest.err conftest.$ac_objext \
24712       conftest$ac_exeext conftest.$ac_ext
24713 fi
24714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24716 if test `eval echo '${'$as_ac_var'}'` = yes; then
24717   cat >>confdefs.h <<_ACEOF
24718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24719 _ACEOF
24720
24721 fi
24722 done
24723
24724
24725                         if test $ac_cv_func_sched_yield = no &&
24726                            test $ac_cv_func_pthread_yield = no &&
24727                            test $ac_cv_func_thr_yield = no ; then
24728                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24729 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24730 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24731   echo $ECHO_N "(cached) $ECHO_C" >&6
24732 else
24733   ac_check_lib_save_LIBS=$LIBS
24734 LIBS="-lrt  $LIBS"
24735 cat >conftest.$ac_ext <<_ACEOF
24736 /* confdefs.h.  */
24737 _ACEOF
24738 cat confdefs.h >>conftest.$ac_ext
24739 cat >>conftest.$ac_ext <<_ACEOF
24740 /* end confdefs.h.  */
24741
24742 /* Override any gcc2 internal prototype to avoid an error.  */
24743 #ifdef __cplusplus
24744 extern "C"
24745 #endif
24746 /* We use char because int might match the return type of a gcc2
24747    builtin and then its argument prototype would still apply.  */
24748 char sched_yield ();
24749 int
24750 main ()
24751 {
24752 sched_yield ();
24753   ;
24754   return 0;
24755 }
24756 _ACEOF
24757 rm -f conftest.$ac_objext conftest$ac_exeext
24758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24759   (eval $ac_link) 2>conftest.er1
24760   ac_status=$?
24761   grep -v '^ *+' conftest.er1 >conftest.err
24762   rm -f conftest.er1
24763   cat conftest.err >&5
24764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765   (exit $ac_status); } &&
24766          { ac_try='test -z "$ac_c_werror_flag"
24767                          || test ! -s conftest.err'
24768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24769   (eval $ac_try) 2>&5
24770   ac_status=$?
24771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772   (exit $ac_status); }; } &&
24773          { ac_try='test -s conftest$ac_exeext'
24774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24775   (eval $ac_try) 2>&5
24776   ac_status=$?
24777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778   (exit $ac_status); }; }; then
24779   ac_cv_lib_rt_sched_yield=yes
24780 else
24781   echo "$as_me: failed program was:" >&5
24782 sed 's/^/| /' conftest.$ac_ext >&5
24783
24784 ac_cv_lib_rt_sched_yield=no
24785 fi
24786 rm -f conftest.err conftest.$ac_objext \
24787       conftest$ac_exeext conftest.$ac_ext
24788 LIBS=$ac_check_lib_save_LIBS
24789 fi
24790 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24791 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24792 if test $ac_cv_lib_rt_sched_yield = yes; then
24793   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24794
24795 cat >>confdefs.h <<\_ACEOF
24796 #define HAVE_SCHED_YIELD 1
24797 _ACEOF
24798
24799                                         ac_cv_func_sched_yield=yes
24800 else
24801   ac_cv_func_sched_yield=no
24802 fi
24803
24804                         fi
24805                         if test $ac_cv_func_sched_yield = no &&
24806                            test $ac_cv_func_pthread_yield = no &&
24807                            test "$ac_cv_func_thr_yield" = no ; then
24808                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24809 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24810                         fi
24811
24812
24813 for ac_func in pthread_kill
24814 do
24815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24816 echo "$as_me:$LINENO: checking for $ac_func" >&5
24817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24818 if eval "test \"\${$as_ac_var+set}\" = set"; then
24819   echo $ECHO_N "(cached) $ECHO_C" >&6
24820 else
24821   cat >conftest.$ac_ext <<_ACEOF
24822 /* confdefs.h.  */
24823 _ACEOF
24824 cat confdefs.h >>conftest.$ac_ext
24825 cat >>conftest.$ac_ext <<_ACEOF
24826 /* end confdefs.h.  */
24827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24829 #define $ac_func innocuous_$ac_func
24830
24831 /* System header to define __stub macros and hopefully few prototypes,
24832     which can conflict with char $ac_func (); below.
24833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24834     <limits.h> exists even on freestanding compilers.  */
24835
24836 #ifdef __STDC__
24837 # include <limits.h>
24838 #else
24839 # include <assert.h>
24840 #endif
24841
24842 #undef $ac_func
24843
24844 /* Override any gcc2 internal prototype to avoid an error.  */
24845 #ifdef __cplusplus
24846 extern "C"
24847 {
24848 #endif
24849 /* We use char because int might match the return type of a gcc2
24850    builtin and then its argument prototype would still apply.  */
24851 char $ac_func ();
24852 /* The GNU C library defines this for functions which it implements
24853     to always fail with ENOSYS.  Some functions are actually named
24854     something starting with __ and the normal name is an alias.  */
24855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24856 choke me
24857 #else
24858 char (*f) () = $ac_func;
24859 #endif
24860 #ifdef __cplusplus
24861 }
24862 #endif
24863
24864 int
24865 main ()
24866 {
24867 return f != $ac_func;
24868   ;
24869   return 0;
24870 }
24871 _ACEOF
24872 rm -f conftest.$ac_objext conftest$ac_exeext
24873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24874   (eval $ac_link) 2>conftest.er1
24875   ac_status=$?
24876   grep -v '^ *+' conftest.er1 >conftest.err
24877   rm -f conftest.er1
24878   cat conftest.err >&5
24879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880   (exit $ac_status); } &&
24881          { ac_try='test -z "$ac_c_werror_flag"
24882                          || test ! -s conftest.err'
24883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884   (eval $ac_try) 2>&5
24885   ac_status=$?
24886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887   (exit $ac_status); }; } &&
24888          { ac_try='test -s conftest$ac_exeext'
24889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24890   (eval $ac_try) 2>&5
24891   ac_status=$?
24892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893   (exit $ac_status); }; }; then
24894   eval "$as_ac_var=yes"
24895 else
24896   echo "$as_me: failed program was:" >&5
24897 sed 's/^/| /' conftest.$ac_ext >&5
24898
24899 eval "$as_ac_var=no"
24900 fi
24901 rm -f conftest.err conftest.$ac_objext \
24902       conftest$ac_exeext conftest.$ac_ext
24903 fi
24904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24906 if test `eval echo '${'$as_ac_var'}'` = yes; then
24907   cat >>confdefs.h <<_ACEOF
24908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24909 _ACEOF
24910
24911 fi
24912 done
24913
24914
24915                                                                         echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24916 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
24917 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24918   echo $ECHO_N "(cached) $ECHO_C" >&6
24919 else
24920
24921                                                                 cat >conftest.$ac_ext <<_ACEOF
24922 /* confdefs.h.  */
24923 _ACEOF
24924 cat confdefs.h >>conftest.$ac_ext
24925 cat >>conftest.$ac_ext <<_ACEOF
24926 /* end confdefs.h.  */
24927
24928 #include <pthread.h>
24929 pthread_rwlock_t rwlock;
24930
24931 int
24932 main ()
24933 {
24934 pthread_rwlock_destroy(&rwlock);
24935   ;
24936   return 0;
24937 }
24938 _ACEOF
24939 rm -f conftest.$ac_objext conftest$ac_exeext
24940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24941   (eval $ac_link) 2>conftest.er1
24942   ac_status=$?
24943   grep -v '^ *+' conftest.er1 >conftest.err
24944   rm -f conftest.er1
24945   cat conftest.err >&5
24946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947   (exit $ac_status); } &&
24948          { ac_try='test -z "$ac_c_werror_flag"
24949                          || test ! -s conftest.err'
24950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951   (eval $ac_try) 2>&5
24952   ac_status=$?
24953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954   (exit $ac_status); }; } &&
24955          { ac_try='test -s conftest$ac_exeext'
24956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957   (eval $ac_try) 2>&5
24958   ac_status=$?
24959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960   (exit $ac_status); }; }; then
24961   ol_cv_func_pthread_rwlock_destroy=yes
24962 else
24963   echo "$as_me: failed program was:" >&5
24964 sed 's/^/| /' conftest.$ac_ext >&5
24965
24966 ol_cv_func_pthread_rwlock_destroy=no
24967 fi
24968 rm -f conftest.err conftest.$ac_objext \
24969       conftest$ac_exeext conftest.$ac_ext
24970
24971 fi
24972 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24973 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
24974                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24975
24976 cat >>confdefs.h <<\_ACEOF
24977 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24978 _ACEOF
24979
24980                         fi
24981
24982                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24983 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24984 if test "${ol_cv_func_pthread_detach+set}" = set; then
24985   echo $ECHO_N "(cached) $ECHO_C" >&6
24986 else
24987
24988                                                                 cat >conftest.$ac_ext <<_ACEOF
24989 /* confdefs.h.  */
24990 _ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h.  */
24994
24995 #include <pthread.h>
24996 #ifndef NULL
24997 #define NULL (void*)0
24998 #endif
24999
25000 int
25001 main ()
25002 {
25003 pthread_detach(NULL);
25004   ;
25005   return 0;
25006 }
25007 _ACEOF
25008 rm -f conftest.$ac_objext conftest$ac_exeext
25009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25010   (eval $ac_link) 2>conftest.er1
25011   ac_status=$?
25012   grep -v '^ *+' conftest.er1 >conftest.err
25013   rm -f conftest.er1
25014   cat conftest.err >&5
25015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016   (exit $ac_status); } &&
25017          { ac_try='test -z "$ac_c_werror_flag"
25018                          || test ! -s conftest.err'
25019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020   (eval $ac_try) 2>&5
25021   ac_status=$?
25022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023   (exit $ac_status); }; } &&
25024          { ac_try='test -s conftest$ac_exeext'
25025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026   (eval $ac_try) 2>&5
25027   ac_status=$?
25028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029   (exit $ac_status); }; }; then
25030   ol_cv_func_pthread_detach=yes
25031 else
25032   echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25034
25035 ol_cv_func_pthread_detach=no
25036 fi
25037 rm -f conftest.err conftest.$ac_objext \
25038       conftest$ac_exeext conftest.$ac_ext
25039
25040 fi
25041 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
25042 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
25043
25044                         if test $ol_cv_func_pthread_detach = no ; then
25045                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
25046 echo "$as_me: error: could not locate pthread_detach()" >&2;}
25047    { (exit 1); exit 1; }; }
25048                         fi
25049
25050
25051 cat >>confdefs.h <<\_ACEOF
25052 #define HAVE_PTHREAD_DETACH 1
25053 _ACEOF
25054
25055
25056
25057
25058
25059
25060 for ac_func in \
25061                                 pthread_setconcurrency \
25062                                 pthread_getconcurrency \
25063                                 thr_setconcurrency \
25064                                 thr_getconcurrency \
25065
25066 do
25067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25068 echo "$as_me:$LINENO: checking for $ac_func" >&5
25069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25070 if eval "test \"\${$as_ac_var+set}\" = set"; then
25071   echo $ECHO_N "(cached) $ECHO_C" >&6
25072 else
25073   cat >conftest.$ac_ext <<_ACEOF
25074 /* confdefs.h.  */
25075 _ACEOF
25076 cat confdefs.h >>conftest.$ac_ext
25077 cat >>conftest.$ac_ext <<_ACEOF
25078 /* end confdefs.h.  */
25079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25081 #define $ac_func innocuous_$ac_func
25082
25083 /* System header to define __stub macros and hopefully few prototypes,
25084     which can conflict with char $ac_func (); below.
25085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25086     <limits.h> exists even on freestanding compilers.  */
25087
25088 #ifdef __STDC__
25089 # include <limits.h>
25090 #else
25091 # include <assert.h>
25092 #endif
25093
25094 #undef $ac_func
25095
25096 /* Override any gcc2 internal prototype to avoid an error.  */
25097 #ifdef __cplusplus
25098 extern "C"
25099 {
25100 #endif
25101 /* We use char because int might match the return type of a gcc2
25102    builtin and then its argument prototype would still apply.  */
25103 char $ac_func ();
25104 /* The GNU C library defines this for functions which it implements
25105     to always fail with ENOSYS.  Some functions are actually named
25106     something starting with __ and the normal name is an alias.  */
25107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25108 choke me
25109 #else
25110 char (*f) () = $ac_func;
25111 #endif
25112 #ifdef __cplusplus
25113 }
25114 #endif
25115
25116 int
25117 main ()
25118 {
25119 return f != $ac_func;
25120   ;
25121   return 0;
25122 }
25123 _ACEOF
25124 rm -f conftest.$ac_objext conftest$ac_exeext
25125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25126   (eval $ac_link) 2>conftest.er1
25127   ac_status=$?
25128   grep -v '^ *+' conftest.er1 >conftest.err
25129   rm -f conftest.er1
25130   cat conftest.err >&5
25131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132   (exit $ac_status); } &&
25133          { ac_try='test -z "$ac_c_werror_flag"
25134                          || test ! -s conftest.err'
25135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25136   (eval $ac_try) 2>&5
25137   ac_status=$?
25138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139   (exit $ac_status); }; } &&
25140          { ac_try='test -s conftest$ac_exeext'
25141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142   (eval $ac_try) 2>&5
25143   ac_status=$?
25144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145   (exit $ac_status); }; }; then
25146   eval "$as_ac_var=yes"
25147 else
25148   echo "$as_me: failed program was:" >&5
25149 sed 's/^/| /' conftest.$ac_ext >&5
25150
25151 eval "$as_ac_var=no"
25152 fi
25153 rm -f conftest.err conftest.$ac_objext \
25154       conftest$ac_exeext conftest.$ac_ext
25155 fi
25156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25158 if test `eval echo '${'$as_ac_var'}'` = yes; then
25159   cat >>confdefs.h <<_ACEOF
25160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25161 _ACEOF
25162
25163 fi
25164 done
25165
25166
25167
25168
25169 for ac_func in pthread_kill_other_threads_np
25170 do
25171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25172 echo "$as_me:$LINENO: checking for $ac_func" >&5
25173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25174 if eval "test \"\${$as_ac_var+set}\" = set"; then
25175   echo $ECHO_N "(cached) $ECHO_C" >&6
25176 else
25177   cat >conftest.$ac_ext <<_ACEOF
25178 /* confdefs.h.  */
25179 _ACEOF
25180 cat confdefs.h >>conftest.$ac_ext
25181 cat >>conftest.$ac_ext <<_ACEOF
25182 /* end confdefs.h.  */
25183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25185 #define $ac_func innocuous_$ac_func
25186
25187 /* System header to define __stub macros and hopefully few prototypes,
25188     which can conflict with char $ac_func (); below.
25189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25190     <limits.h> exists even on freestanding compilers.  */
25191
25192 #ifdef __STDC__
25193 # include <limits.h>
25194 #else
25195 # include <assert.h>
25196 #endif
25197
25198 #undef $ac_func
25199
25200 /* Override any gcc2 internal prototype to avoid an error.  */
25201 #ifdef __cplusplus
25202 extern "C"
25203 {
25204 #endif
25205 /* We use char because int might match the return type of a gcc2
25206    builtin and then its argument prototype would still apply.  */
25207 char $ac_func ();
25208 /* The GNU C library defines this for functions which it implements
25209     to always fail with ENOSYS.  Some functions are actually named
25210     something starting with __ and the normal name is an alias.  */
25211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25212 choke me
25213 #else
25214 char (*f) () = $ac_func;
25215 #endif
25216 #ifdef __cplusplus
25217 }
25218 #endif
25219
25220 int
25221 main ()
25222 {
25223 return f != $ac_func;
25224   ;
25225   return 0;
25226 }
25227 _ACEOF
25228 rm -f conftest.$ac_objext conftest$ac_exeext
25229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25230   (eval $ac_link) 2>conftest.er1
25231   ac_status=$?
25232   grep -v '^ *+' conftest.er1 >conftest.err
25233   rm -f conftest.er1
25234   cat conftest.err >&5
25235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236   (exit $ac_status); } &&
25237          { ac_try='test -z "$ac_c_werror_flag"
25238                          || test ! -s conftest.err'
25239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25240   (eval $ac_try) 2>&5
25241   ac_status=$?
25242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243   (exit $ac_status); }; } &&
25244          { ac_try='test -s conftest$ac_exeext'
25245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25246   (eval $ac_try) 2>&5
25247   ac_status=$?
25248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249   (exit $ac_status); }; }; then
25250   eval "$as_ac_var=yes"
25251 else
25252   echo "$as_me: failed program was:" >&5
25253 sed 's/^/| /' conftest.$ac_ext >&5
25254
25255 eval "$as_ac_var=no"
25256 fi
25257 rm -f conftest.err conftest.$ac_objext \
25258       conftest$ac_exeext conftest.$ac_ext
25259 fi
25260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25262 if test `eval echo '${'$as_ac_var'}'` = yes; then
25263   cat >>confdefs.h <<_ACEOF
25264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25265 _ACEOF
25266
25267 fi
25268 done
25269
25270         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25271 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
25272 if test "${ol_cv_sys_linux_threads+set}" = set; then
25273   echo $ECHO_N "(cached) $ECHO_C" >&6
25274 else
25275   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25276 fi
25277 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25278 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
25279
25280
25281
25282
25283         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25284 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
25285 if test "${ol_cv_linux_threads+set}" = set; then
25286   echo $ECHO_N "(cached) $ECHO_C" >&6
25287 else
25288
25289                 if test $ol_cv_header_linux_threads = yes &&
25290                    test $ol_cv_sys_linux_threads = yes; then
25291                         ol_cv_linux_threads=yes
25292                 elif test $ol_cv_header_linux_threads = no &&
25293                      test $ol_cv_sys_linux_threads = no; then
25294                         ol_cv_linux_threads=no
25295                 else
25296                         ol_cv_linux_threads=error
25297                 fi
25298
25299 fi
25300 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25301 echo "${ECHO_T}$ol_cv_linux_threads" >&6
25302
25303
25304                         if test $ol_cv_linux_threads = error; then
25305                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25306 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25307    { (exit 1); exit 1; }; };
25308                         fi
25309
25310                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25311 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
25312 if test "${ol_cv_pthread_create_works+set}" = set; then
25313   echo $ECHO_N "(cached) $ECHO_C" >&6
25314 else
25315
25316                         if test "$cross_compiling" = yes; then
25317                                 ol_cv_pthread_create_works=yes
25318 else
25319   cat >conftest.$ac_ext <<_ACEOF
25320 /* confdefs.h.  */
25321 _ACEOF
25322 cat confdefs.h >>conftest.$ac_ext
25323 cat >>conftest.$ac_ext <<_ACEOF
25324 /* end confdefs.h.  */
25325
25326 /* pthread test headers */
25327 #include <pthread.h>
25328 #if HAVE_PTHREADS < 7
25329 #include <errno.h>
25330 #endif
25331 #ifndef NULL
25332 #define NULL (void*)0
25333 #endif
25334
25335 static void *task(p)
25336         void *p;
25337 {
25338         return (void *) (p == NULL);
25339 }
25340
25341
25342 int main(argc, argv)
25343         int argc;
25344         char **argv;
25345 {
25346
25347         /* pthread test function */
25348 #ifndef PTHREAD_CREATE_DETACHED
25349 #define PTHREAD_CREATE_DETACHED 1
25350 #endif
25351         pthread_t t;
25352         int status;
25353         int detach = PTHREAD_CREATE_DETACHED;
25354
25355 #if HAVE_PTHREADS > 4
25356         /* Final pthreads */
25357         pthread_attr_t attr;
25358
25359         status = pthread_attr_init(&attr);
25360         if( status ) return status;
25361
25362 #if HAVE_PTHREADS < 7
25363         status = pthread_attr_setdetachstate(&attr, &detach);
25364         if( status < 0 ) status = errno;
25365 #else
25366         status = pthread_attr_setdetachstate(&attr, detach);
25367 #endif
25368         if( status ) return status;
25369         status = pthread_create( &t, &attr, task, NULL );
25370 #if HAVE_PTHREADS < 7
25371         if( status < 0 ) status = errno;
25372 #endif
25373         if( status ) return status;
25374 #else
25375         /* Draft 4 pthreads */
25376         status = pthread_create( &t, pthread_attr_default, task, NULL );
25377         if( status ) return errno;
25378
25379         /* give thread a chance to complete */
25380         /* it should remain joinable and hence detachable */
25381         sleep( 1 );
25382
25383         status = pthread_detach( &t );
25384         if( status ) return errno;
25385 #endif
25386
25387 #ifdef HAVE_LINUX_THREADS
25388         pthread_kill_other_threads_np();
25389 #endif
25390
25391         return 0;
25392
25393 }
25394
25395 _ACEOF
25396 rm -f conftest$ac_exeext
25397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25398   (eval $ac_link) 2>&5
25399   ac_status=$?
25400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25403   (eval $ac_try) 2>&5
25404   ac_status=$?
25405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406   (exit $ac_status); }; }; then
25407   ol_cv_pthread_create_works=yes
25408 else
25409   echo "$as_me: program exited with status $ac_status" >&5
25410 echo "$as_me: failed program was:" >&5
25411 sed 's/^/| /' conftest.$ac_ext >&5
25412
25413 ( exit $ac_status )
25414 ol_cv_pthread_create_works=no
25415 fi
25416 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25417 fi
25418 fi
25419 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25420 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
25421
25422                         if test $ol_cv_pthread_create_works = no ; then
25423                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25424 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25425    { (exit 1); exit 1; }; }
25426                         fi
25427
25428                         ol_replace_broken_yield=no
25429
25430                         if test $ol_replace_broken_yield = yes ; then
25431
25432 cat >>confdefs.h <<\_ACEOF
25433 #define REPLACE_BROKEN_YIELD 1
25434 _ACEOF
25435
25436                         fi
25437
25438                                                 if test $ol_with_yielding_select = auto ; then
25439                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25440 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
25441 if test "${ol_cv_pthread_select_yields+set}" = set; then
25442   echo $ECHO_N "(cached) $ECHO_C" >&6
25443 else
25444
25445                                 if test "$cross_compiling" = yes; then
25446   ol_cv_pthread_select_yields=cross
25447 else
25448   cat >conftest.$ac_ext <<_ACEOF
25449 /* confdefs.h.  */
25450 _ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h.  */
25454
25455 #include <sys/types.h>
25456 #include <sys/time.h>
25457 #include <unistd.h>
25458 #include <pthread.h>
25459 #ifndef NULL
25460 #define NULL (void*) 0
25461 #endif
25462
25463 static int fildes[2];
25464
25465 static void *task(p)
25466         void *p;
25467 {
25468         int i;
25469         struct timeval tv;
25470
25471         fd_set rfds;
25472
25473         tv.tv_sec=10;
25474         tv.tv_usec=0;
25475
25476         FD_ZERO(&rfds);
25477         FD_SET(fildes[0], &rfds);
25478
25479         /* we're not interested in any fds */
25480         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25481
25482         if(i < 0) {
25483                 perror("select");
25484                 exit(10);
25485         }
25486
25487         exit(0); /* if we exit here, the select blocked the whole process */
25488 }
25489
25490 int main(argc, argv)
25491         int argc;
25492         char **argv;
25493 {
25494         pthread_t t;
25495
25496         /* create a pipe to select */
25497         if(pipe(&fildes[0])) {
25498                 perror("select");
25499                 exit(1);
25500         }
25501
25502 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25503         (void) pthread_setconcurrency(2);
25504 #else
25505 #ifdef HAVE_THR_SETCONCURRENCY
25506         /* Set Solaris LWP concurrency to 2 */
25507         thr_setconcurrency(2);
25508 #endif
25509 #endif
25510
25511 #if HAVE_PTHREADS < 6
25512         pthread_create(&t, pthread_attr_default, task, NULL);
25513 #else
25514         pthread_create(&t, NULL, task, NULL);
25515 #endif
25516
25517         /* make sure task runs first */
25518 #ifdef HAVE_THR_YIELD
25519         thr_yield();
25520 #elif defined( HAVE_SCHED_YIELD )
25521         sched_yield();
25522 #elif defined( HAVE_PTHREAD_YIELD )
25523         pthread_yield();
25524 #endif
25525
25526         exit(2);
25527 }
25528 _ACEOF
25529 rm -f conftest$ac_exeext
25530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25531   (eval $ac_link) 2>&5
25532   ac_status=$?
25533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536   (eval $ac_try) 2>&5
25537   ac_status=$?
25538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539   (exit $ac_status); }; }; then
25540   ol_cv_pthread_select_yields=no
25541 else
25542   echo "$as_me: program exited with status $ac_status" >&5
25543 echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25545
25546 ( exit $ac_status )
25547 ol_cv_pthread_select_yields=yes
25548 fi
25549 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25550 fi
25551 fi
25552 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25553 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25554
25555                                 if test $ol_cv_pthread_select_yields = cross ; then
25556                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25557 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25558    { (exit 1); exit 1; }; }
25559                                 fi
25560
25561                                 if test $ol_cv_pthread_select_yields = yes ; then
25562                                         ol_with_yielding_select=yes
25563                                 fi
25564                         fi
25565
25566                                                 CPPFLAGS="$save_CPPFLAGS"
25567                         LIBS="$save_LIBS"
25568                 else
25569                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25570 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25571    { (exit 1); exit 1; }; }
25572                 fi
25573         fi
25574
25575         if test $ol_with_threads = posix ; then
25576                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25577 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25578    { (exit 1); exit 1; }; }
25579         fi
25580         ;;
25581 esac
25582
25583 case $ol_with_threads in auto | yes | mach)
25584
25585
25586
25587 for ac_header in mach/cthreads.h cthreads.h
25588 do
25589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25591   echo "$as_me:$LINENO: checking for $ac_header" >&5
25592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25594   echo $ECHO_N "(cached) $ECHO_C" >&6
25595 fi
25596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25598 else
25599   # Is the header compilable?
25600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25602 cat >conftest.$ac_ext <<_ACEOF
25603 /* confdefs.h.  */
25604 _ACEOF
25605 cat confdefs.h >>conftest.$ac_ext
25606 cat >>conftest.$ac_ext <<_ACEOF
25607 /* end confdefs.h.  */
25608 $ac_includes_default
25609 #include <$ac_header>
25610 _ACEOF
25611 rm -f conftest.$ac_objext
25612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25613   (eval $ac_compile) 2>conftest.er1
25614   ac_status=$?
25615   grep -v '^ *+' conftest.er1 >conftest.err
25616   rm -f conftest.er1
25617   cat conftest.err >&5
25618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619   (exit $ac_status); } &&
25620          { ac_try='test -z "$ac_c_werror_flag"
25621                          || test ! -s conftest.err'
25622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25623   (eval $ac_try) 2>&5
25624   ac_status=$?
25625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626   (exit $ac_status); }; } &&
25627          { ac_try='test -s conftest.$ac_objext'
25628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25629   (eval $ac_try) 2>&5
25630   ac_status=$?
25631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632   (exit $ac_status); }; }; then
25633   ac_header_compiler=yes
25634 else
25635   echo "$as_me: failed program was:" >&5
25636 sed 's/^/| /' conftest.$ac_ext >&5
25637
25638 ac_header_compiler=no
25639 fi
25640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25642 echo "${ECHO_T}$ac_header_compiler" >&6
25643
25644 # Is the header present?
25645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25647 cat >conftest.$ac_ext <<_ACEOF
25648 /* confdefs.h.  */
25649 _ACEOF
25650 cat confdefs.h >>conftest.$ac_ext
25651 cat >>conftest.$ac_ext <<_ACEOF
25652 /* end confdefs.h.  */
25653 #include <$ac_header>
25654 _ACEOF
25655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25657   ac_status=$?
25658   grep -v '^ *+' conftest.er1 >conftest.err
25659   rm -f conftest.er1
25660   cat conftest.err >&5
25661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662   (exit $ac_status); } >/dev/null; then
25663   if test -s conftest.err; then
25664     ac_cpp_err=$ac_c_preproc_warn_flag
25665     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25666   else
25667     ac_cpp_err=
25668   fi
25669 else
25670   ac_cpp_err=yes
25671 fi
25672 if test -z "$ac_cpp_err"; then
25673   ac_header_preproc=yes
25674 else
25675   echo "$as_me: failed program was:" >&5
25676 sed 's/^/| /' conftest.$ac_ext >&5
25677
25678   ac_header_preproc=no
25679 fi
25680 rm -f conftest.err conftest.$ac_ext
25681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25682 echo "${ECHO_T}$ac_header_preproc" >&6
25683
25684 # So?  What about this header?
25685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25686   yes:no: )
25687     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25691     ac_header_preproc=yes
25692     ;;
25693   no:yes:* )
25694     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25696     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25697 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25698     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25700     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25701 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25704     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25706     (
25707       cat <<\_ASBOX
25708 ## --------------------------------------------- ##
25709 ## Report this to <http://www.openldap.org/its/> ##
25710 ## --------------------------------------------- ##
25711 _ASBOX
25712     ) |
25713       sed "s/^/$as_me: WARNING:     /" >&2
25714     ;;
25715 esac
25716 echo "$as_me:$LINENO: checking for $ac_header" >&5
25717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25719   echo $ECHO_N "(cached) $ECHO_C" >&6
25720 else
25721   eval "$as_ac_Header=\$ac_header_preproc"
25722 fi
25723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25725
25726 fi
25727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25728   cat >>confdefs.h <<_ACEOF
25729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25730 _ACEOF
25731
25732 fi
25733
25734 done
25735
25736         if test $ac_cv_header_mach_cthreads_h = yes ; then
25737                 ol_with_threads=found
25738
25739                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25740 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25741 if test "${ac_cv_func_cthread_fork+set}" = set; then
25742   echo $ECHO_N "(cached) $ECHO_C" >&6
25743 else
25744   cat >conftest.$ac_ext <<_ACEOF
25745 /* confdefs.h.  */
25746 _ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h.  */
25750 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25752 #define cthread_fork innocuous_cthread_fork
25753
25754 /* System header to define __stub macros and hopefully few prototypes,
25755     which can conflict with char cthread_fork (); below.
25756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25757     <limits.h> exists even on freestanding compilers.  */
25758
25759 #ifdef __STDC__
25760 # include <limits.h>
25761 #else
25762 # include <assert.h>
25763 #endif
25764
25765 #undef cthread_fork
25766
25767 /* Override any gcc2 internal prototype to avoid an error.  */
25768 #ifdef __cplusplus
25769 extern "C"
25770 {
25771 #endif
25772 /* We use char because int might match the return type of a gcc2
25773    builtin and then its argument prototype would still apply.  */
25774 char cthread_fork ();
25775 /* The GNU C library defines this for functions which it implements
25776     to always fail with ENOSYS.  Some functions are actually named
25777     something starting with __ and the normal name is an alias.  */
25778 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25779 choke me
25780 #else
25781 char (*f) () = cthread_fork;
25782 #endif
25783 #ifdef __cplusplus
25784 }
25785 #endif
25786
25787 int
25788 main ()
25789 {
25790 return f != cthread_fork;
25791   ;
25792   return 0;
25793 }
25794 _ACEOF
25795 rm -f conftest.$ac_objext conftest$ac_exeext
25796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25797   (eval $ac_link) 2>conftest.er1
25798   ac_status=$?
25799   grep -v '^ *+' conftest.er1 >conftest.err
25800   rm -f conftest.er1
25801   cat conftest.err >&5
25802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803   (exit $ac_status); } &&
25804          { ac_try='test -z "$ac_c_werror_flag"
25805                          || test ! -s conftest.err'
25806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25807   (eval $ac_try) 2>&5
25808   ac_status=$?
25809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810   (exit $ac_status); }; } &&
25811          { ac_try='test -s conftest$ac_exeext'
25812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25813   (eval $ac_try) 2>&5
25814   ac_status=$?
25815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816   (exit $ac_status); }; }; then
25817   ac_cv_func_cthread_fork=yes
25818 else
25819   echo "$as_me: failed program was:" >&5
25820 sed 's/^/| /' conftest.$ac_ext >&5
25821
25822 ac_cv_func_cthread_fork=no
25823 fi
25824 rm -f conftest.err conftest.$ac_objext \
25825       conftest$ac_exeext conftest.$ac_ext
25826 fi
25827 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25828 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25829 if test $ac_cv_func_cthread_fork = yes; then
25830   ol_link_threads=yes
25831 fi
25832
25833
25834                 if test $ol_link_threads = no ; then
25835                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25836 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25837 if test "${ol_cv_cthread_all_load+set}" = set; then
25838   echo $ECHO_N "(cached) $ECHO_C" >&6
25839 else
25840
25841                                                                 save_LIBS="$LIBS"
25842                                 LIBS="-all_load $LIBS"
25843                                 cat >conftest.$ac_ext <<_ACEOF
25844 /* confdefs.h.  */
25845 _ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h.  */
25849 #include <mach/cthreads.h>
25850 int
25851 main ()
25852 {
25853
25854                                         cthread_fork((void *)0, (void *)0);
25855
25856   ;
25857   return 0;
25858 }
25859 _ACEOF
25860 rm -f conftest.$ac_objext conftest$ac_exeext
25861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25862   (eval $ac_link) 2>conftest.er1
25863   ac_status=$?
25864   grep -v '^ *+' conftest.er1 >conftest.err
25865   rm -f conftest.er1
25866   cat conftest.err >&5
25867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868   (exit $ac_status); } &&
25869          { ac_try='test -z "$ac_c_werror_flag"
25870                          || test ! -s conftest.err'
25871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872   (eval $ac_try) 2>&5
25873   ac_status=$?
25874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875   (exit $ac_status); }; } &&
25876          { ac_try='test -s conftest$ac_exeext'
25877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25878   (eval $ac_try) 2>&5
25879   ac_status=$?
25880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881   (exit $ac_status); }; }; then
25882   ol_cv_cthread_all_load=yes
25883 else
25884   echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25886
25887 ol_cv_cthread_all_load=no
25888 fi
25889 rm -f conftest.err conftest.$ac_objext \
25890       conftest$ac_exeext conftest.$ac_ext
25891                                                                 LIBS="$save_LIBS"
25892
25893 fi
25894 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25895 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25896
25897                         if test $ol_cv_cthread_all_load = yes ; then
25898                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25899                                 ol_link_threads=mach
25900                                 ol_with_threads=found
25901                         fi
25902                 fi
25903
25904         elif test $ac_cv_header_cthreads_h = yes ; then
25905
25906                 ol_with_threads=found
25907
25908                                 save_LIBS="$LIBS"
25909                 LIBS="$LIBS -lthreads"
25910                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25911 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25912 if test "${ac_cv_func_cthread_fork+set}" = set; then
25913   echo $ECHO_N "(cached) $ECHO_C" >&6
25914 else
25915   cat >conftest.$ac_ext <<_ACEOF
25916 /* confdefs.h.  */
25917 _ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h.  */
25921 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25923 #define cthread_fork innocuous_cthread_fork
25924
25925 /* System header to define __stub macros and hopefully few prototypes,
25926     which can conflict with char cthread_fork (); below.
25927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25928     <limits.h> exists even on freestanding compilers.  */
25929
25930 #ifdef __STDC__
25931 # include <limits.h>
25932 #else
25933 # include <assert.h>
25934 #endif
25935
25936 #undef cthread_fork
25937
25938 /* Override any gcc2 internal prototype to avoid an error.  */
25939 #ifdef __cplusplus
25940 extern "C"
25941 {
25942 #endif
25943 /* We use char because int might match the return type of a gcc2
25944    builtin and then its argument prototype would still apply.  */
25945 char cthread_fork ();
25946 /* The GNU C library defines this for functions which it implements
25947     to always fail with ENOSYS.  Some functions are actually named
25948     something starting with __ and the normal name is an alias.  */
25949 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25950 choke me
25951 #else
25952 char (*f) () = cthread_fork;
25953 #endif
25954 #ifdef __cplusplus
25955 }
25956 #endif
25957
25958 int
25959 main ()
25960 {
25961 return f != cthread_fork;
25962   ;
25963   return 0;
25964 }
25965 _ACEOF
25966 rm -f conftest.$ac_objext conftest$ac_exeext
25967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25968   (eval $ac_link) 2>conftest.er1
25969   ac_status=$?
25970   grep -v '^ *+' conftest.er1 >conftest.err
25971   rm -f conftest.er1
25972   cat conftest.err >&5
25973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974   (exit $ac_status); } &&
25975          { ac_try='test -z "$ac_c_werror_flag"
25976                          || test ! -s conftest.err'
25977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25978   (eval $ac_try) 2>&5
25979   ac_status=$?
25980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981   (exit $ac_status); }; } &&
25982          { ac_try='test -s conftest$ac_exeext'
25983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25984   (eval $ac_try) 2>&5
25985   ac_status=$?
25986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987   (exit $ac_status); }; }; then
25988   ac_cv_func_cthread_fork=yes
25989 else
25990   echo "$as_me: failed program was:" >&5
25991 sed 's/^/| /' conftest.$ac_ext >&5
25992
25993 ac_cv_func_cthread_fork=no
25994 fi
25995 rm -f conftest.err conftest.$ac_objext \
25996       conftest$ac_exeext conftest.$ac_ext
25997 fi
25998 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25999 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
26000 if test $ac_cv_func_cthread_fork = yes; then
26001   ol_link_threads=yes
26002 fi
26003
26004                 LIBS="$save_LIBS"
26005
26006                 if test $ol_link_threads = yes ; then
26007                         LTHREAD_LIBS="-lthreads"
26008                         ol_link_threads=mach
26009                         ol_with_threads=found
26010                 else
26011                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26012 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26013    { (exit 1); exit 1; }; }
26014                 fi
26015
26016         elif test $ol_with_threads = mach ; then
26017                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
26018 echo "$as_me: error: could not locate Mach CThreads" >&2;}
26019    { (exit 1); exit 1; }; }
26020         fi
26021
26022         if test $ol_link_threads = mach ; then
26023
26024 cat >>confdefs.h <<\_ACEOF
26025 #define HAVE_MACH_CTHREADS 1
26026 _ACEOF
26027
26028         elif test $ol_with_threads = found ; then
26029                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26030 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26031    { (exit 1); exit 1; }; }
26032         fi
26033         ;;
26034 esac
26035
26036 case $ol_with_threads in auto | yes | pth)
26037
26038
26039 for ac_header in pth.h
26040 do
26041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26043   echo "$as_me:$LINENO: checking for $ac_header" >&5
26044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26046   echo $ECHO_N "(cached) $ECHO_C" >&6
26047 fi
26048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26050 else
26051   # Is the header compilable?
26052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26054 cat >conftest.$ac_ext <<_ACEOF
26055 /* confdefs.h.  */
26056 _ACEOF
26057 cat confdefs.h >>conftest.$ac_ext
26058 cat >>conftest.$ac_ext <<_ACEOF
26059 /* end confdefs.h.  */
26060 $ac_includes_default
26061 #include <$ac_header>
26062 _ACEOF
26063 rm -f conftest.$ac_objext
26064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26065   (eval $ac_compile) 2>conftest.er1
26066   ac_status=$?
26067   grep -v '^ *+' conftest.er1 >conftest.err
26068   rm -f conftest.er1
26069   cat conftest.err >&5
26070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071   (exit $ac_status); } &&
26072          { ac_try='test -z "$ac_c_werror_flag"
26073                          || test ! -s conftest.err'
26074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26075   (eval $ac_try) 2>&5
26076   ac_status=$?
26077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078   (exit $ac_status); }; } &&
26079          { ac_try='test -s conftest.$ac_objext'
26080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26081   (eval $ac_try) 2>&5
26082   ac_status=$?
26083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084   (exit $ac_status); }; }; then
26085   ac_header_compiler=yes
26086 else
26087   echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26089
26090 ac_header_compiler=no
26091 fi
26092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26094 echo "${ECHO_T}$ac_header_compiler" >&6
26095
26096 # Is the header present?
26097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26099 cat >conftest.$ac_ext <<_ACEOF
26100 /* confdefs.h.  */
26101 _ACEOF
26102 cat confdefs.h >>conftest.$ac_ext
26103 cat >>conftest.$ac_ext <<_ACEOF
26104 /* end confdefs.h.  */
26105 #include <$ac_header>
26106 _ACEOF
26107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26109   ac_status=$?
26110   grep -v '^ *+' conftest.er1 >conftest.err
26111   rm -f conftest.er1
26112   cat conftest.err >&5
26113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114   (exit $ac_status); } >/dev/null; then
26115   if test -s conftest.err; then
26116     ac_cpp_err=$ac_c_preproc_warn_flag
26117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26118   else
26119     ac_cpp_err=
26120   fi
26121 else
26122   ac_cpp_err=yes
26123 fi
26124 if test -z "$ac_cpp_err"; then
26125   ac_header_preproc=yes
26126 else
26127   echo "$as_me: failed program was:" >&5
26128 sed 's/^/| /' conftest.$ac_ext >&5
26129
26130   ac_header_preproc=no
26131 fi
26132 rm -f conftest.err conftest.$ac_ext
26133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26134 echo "${ECHO_T}$ac_header_preproc" >&6
26135
26136 # So?  What about this header?
26137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26138   yes:no: )
26139     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26143     ac_header_preproc=yes
26144     ;;
26145   no:yes:* )
26146     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26148     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26149 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26150     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26152     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26153 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26156     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26158     (
26159       cat <<\_ASBOX
26160 ## --------------------------------------------- ##
26161 ## Report this to <http://www.openldap.org/its/> ##
26162 ## --------------------------------------------- ##
26163 _ASBOX
26164     ) |
26165       sed "s/^/$as_me: WARNING:     /" >&2
26166     ;;
26167 esac
26168 echo "$as_me:$LINENO: checking for $ac_header" >&5
26169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26171   echo $ECHO_N "(cached) $ECHO_C" >&6
26172 else
26173   eval "$as_ac_Header=\$ac_header_preproc"
26174 fi
26175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26177
26178 fi
26179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26180   cat >>confdefs.h <<_ACEOF
26181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26182 _ACEOF
26183
26184 fi
26185
26186 done
26187
26188
26189         if test $ac_cv_header_pth_h = yes ; then
26190                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26191 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
26192 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26193   echo $ECHO_N "(cached) $ECHO_C" >&6
26194 else
26195   ac_check_lib_save_LIBS=$LIBS
26196 LIBS="-lpth  $LIBS"
26197 cat >conftest.$ac_ext <<_ACEOF
26198 /* confdefs.h.  */
26199 _ACEOF
26200 cat confdefs.h >>conftest.$ac_ext
26201 cat >>conftest.$ac_ext <<_ACEOF
26202 /* end confdefs.h.  */
26203
26204 /* Override any gcc2 internal prototype to avoid an error.  */
26205 #ifdef __cplusplus
26206 extern "C"
26207 #endif
26208 /* We use char because int might match the return type of a gcc2
26209    builtin and then its argument prototype would still apply.  */
26210 char pth_version ();
26211 int
26212 main ()
26213 {
26214 pth_version ();
26215   ;
26216   return 0;
26217 }
26218 _ACEOF
26219 rm -f conftest.$ac_objext conftest$ac_exeext
26220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26221   (eval $ac_link) 2>conftest.er1
26222   ac_status=$?
26223   grep -v '^ *+' conftest.er1 >conftest.err
26224   rm -f conftest.er1
26225   cat conftest.err >&5
26226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227   (exit $ac_status); } &&
26228          { ac_try='test -z "$ac_c_werror_flag"
26229                          || test ! -s conftest.err'
26230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26231   (eval $ac_try) 2>&5
26232   ac_status=$?
26233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234   (exit $ac_status); }; } &&
26235          { ac_try='test -s conftest$ac_exeext'
26236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26237   (eval $ac_try) 2>&5
26238   ac_status=$?
26239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26240   (exit $ac_status); }; }; then
26241   ac_cv_lib_pth_pth_version=yes
26242 else
26243   echo "$as_me: failed program was:" >&5
26244 sed 's/^/| /' conftest.$ac_ext >&5
26245
26246 ac_cv_lib_pth_pth_version=no
26247 fi
26248 rm -f conftest.err conftest.$ac_objext \
26249       conftest$ac_exeext conftest.$ac_ext
26250 LIBS=$ac_check_lib_save_LIBS
26251 fi
26252 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26253 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
26254 if test $ac_cv_lib_pth_pth_version = yes; then
26255   have_pth=yes
26256 else
26257   have_pth=no
26258 fi
26259
26260
26261                 if test $have_pth = yes ; then
26262
26263 cat >>confdefs.h <<\_ACEOF
26264 #define HAVE_GNU_PTH 1
26265 _ACEOF
26266
26267                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26268                         ol_link_threads=pth
26269                         ol_with_threads=found
26270
26271                         if test $ol_with_yielding_select = auto ; then
26272                                 ol_with_yielding_select=yes
26273                         fi
26274                 fi
26275         fi
26276         ;;
26277 esac
26278
26279 case $ol_with_threads in auto | yes | lwp)
26280
26281
26282
26283 for ac_header in thread.h synch.h
26284 do
26285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26287   echo "$as_me:$LINENO: checking for $ac_header" >&5
26288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26290   echo $ECHO_N "(cached) $ECHO_C" >&6
26291 fi
26292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26294 else
26295   # Is the header compilable?
26296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26298 cat >conftest.$ac_ext <<_ACEOF
26299 /* confdefs.h.  */
26300 _ACEOF
26301 cat confdefs.h >>conftest.$ac_ext
26302 cat >>conftest.$ac_ext <<_ACEOF
26303 /* end confdefs.h.  */
26304 $ac_includes_default
26305 #include <$ac_header>
26306 _ACEOF
26307 rm -f conftest.$ac_objext
26308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26309   (eval $ac_compile) 2>conftest.er1
26310   ac_status=$?
26311   grep -v '^ *+' conftest.er1 >conftest.err
26312   rm -f conftest.er1
26313   cat conftest.err >&5
26314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315   (exit $ac_status); } &&
26316          { ac_try='test -z "$ac_c_werror_flag"
26317                          || test ! -s conftest.err'
26318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319   (eval $ac_try) 2>&5
26320   ac_status=$?
26321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322   (exit $ac_status); }; } &&
26323          { ac_try='test -s conftest.$ac_objext'
26324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325   (eval $ac_try) 2>&5
26326   ac_status=$?
26327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); }; }; then
26329   ac_header_compiler=yes
26330 else
26331   echo "$as_me: failed program was:" >&5
26332 sed 's/^/| /' conftest.$ac_ext >&5
26333
26334 ac_header_compiler=no
26335 fi
26336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26338 echo "${ECHO_T}$ac_header_compiler" >&6
26339
26340 # Is the header present?
26341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26343 cat >conftest.$ac_ext <<_ACEOF
26344 /* confdefs.h.  */
26345 _ACEOF
26346 cat confdefs.h >>conftest.$ac_ext
26347 cat >>conftest.$ac_ext <<_ACEOF
26348 /* end confdefs.h.  */
26349 #include <$ac_header>
26350 _ACEOF
26351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26352   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26353   ac_status=$?
26354   grep -v '^ *+' conftest.er1 >conftest.err
26355   rm -f conftest.er1
26356   cat conftest.err >&5
26357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358   (exit $ac_status); } >/dev/null; then
26359   if test -s conftest.err; then
26360     ac_cpp_err=$ac_c_preproc_warn_flag
26361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26362   else
26363     ac_cpp_err=
26364   fi
26365 else
26366   ac_cpp_err=yes
26367 fi
26368 if test -z "$ac_cpp_err"; then
26369   ac_header_preproc=yes
26370 else
26371   echo "$as_me: failed program was:" >&5
26372 sed 's/^/| /' conftest.$ac_ext >&5
26373
26374   ac_header_preproc=no
26375 fi
26376 rm -f conftest.err conftest.$ac_ext
26377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26378 echo "${ECHO_T}$ac_header_preproc" >&6
26379
26380 # So?  What about this header?
26381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26382   yes:no: )
26383     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26387     ac_header_preproc=yes
26388     ;;
26389   no:yes:* )
26390     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26392     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26393 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26394     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26396     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26397 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26400     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26402     (
26403       cat <<\_ASBOX
26404 ## --------------------------------------------- ##
26405 ## Report this to <http://www.openldap.org/its/> ##
26406 ## --------------------------------------------- ##
26407 _ASBOX
26408     ) |
26409       sed "s/^/$as_me: WARNING:     /" >&2
26410     ;;
26411 esac
26412 echo "$as_me:$LINENO: checking for $ac_header" >&5
26413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26415   echo $ECHO_N "(cached) $ECHO_C" >&6
26416 else
26417   eval "$as_ac_Header=\$ac_header_preproc"
26418 fi
26419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26421
26422 fi
26423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26424   cat >>confdefs.h <<_ACEOF
26425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26426 _ACEOF
26427
26428 fi
26429
26430 done
26431
26432         if test $ac_cv_header_thread_h = yes &&
26433            test $ac_cv_header_synch_h = yes ; then
26434                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26435 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
26436 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26437   echo $ECHO_N "(cached) $ECHO_C" >&6
26438 else
26439   ac_check_lib_save_LIBS=$LIBS
26440 LIBS="-lthread  $LIBS"
26441 cat >conftest.$ac_ext <<_ACEOF
26442 /* confdefs.h.  */
26443 _ACEOF
26444 cat confdefs.h >>conftest.$ac_ext
26445 cat >>conftest.$ac_ext <<_ACEOF
26446 /* end confdefs.h.  */
26447
26448 /* Override any gcc2 internal prototype to avoid an error.  */
26449 #ifdef __cplusplus
26450 extern "C"
26451 #endif
26452 /* We use char because int might match the return type of a gcc2
26453    builtin and then its argument prototype would still apply.  */
26454 char thr_create ();
26455 int
26456 main ()
26457 {
26458 thr_create ();
26459   ;
26460   return 0;
26461 }
26462 _ACEOF
26463 rm -f conftest.$ac_objext conftest$ac_exeext
26464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26465   (eval $ac_link) 2>conftest.er1
26466   ac_status=$?
26467   grep -v '^ *+' conftest.er1 >conftest.err
26468   rm -f conftest.er1
26469   cat conftest.err >&5
26470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471   (exit $ac_status); } &&
26472          { ac_try='test -z "$ac_c_werror_flag"
26473                          || test ! -s conftest.err'
26474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475   (eval $ac_try) 2>&5
26476   ac_status=$?
26477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478   (exit $ac_status); }; } &&
26479          { ac_try='test -s conftest$ac_exeext'
26480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481   (eval $ac_try) 2>&5
26482   ac_status=$?
26483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484   (exit $ac_status); }; }; then
26485   ac_cv_lib_thread_thr_create=yes
26486 else
26487   echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26489
26490 ac_cv_lib_thread_thr_create=no
26491 fi
26492 rm -f conftest.err conftest.$ac_objext \
26493       conftest$ac_exeext conftest.$ac_ext
26494 LIBS=$ac_check_lib_save_LIBS
26495 fi
26496 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26497 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26498 if test $ac_cv_lib_thread_thr_create = yes; then
26499   have_thr=yes
26500 else
26501   have_thr=no
26502 fi
26503
26504
26505                 if test $have_thr = yes ; then
26506
26507 cat >>confdefs.h <<\_ACEOF
26508 #define HAVE_THR 1
26509 _ACEOF
26510
26511                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26512                         ol_link_threads=thr
26513
26514                         if test $ol_with_yielding_select = auto ; then
26515                                 ol_with_yielding_select=yes
26516                         fi
26517
26518
26519
26520 for ac_func in \
26521                                 thr_setconcurrency \
26522                                 thr_getconcurrency \
26523
26524 do
26525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26526 echo "$as_me:$LINENO: checking for $ac_func" >&5
26527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26528 if eval "test \"\${$as_ac_var+set}\" = set"; then
26529   echo $ECHO_N "(cached) $ECHO_C" >&6
26530 else
26531   cat >conftest.$ac_ext <<_ACEOF
26532 /* confdefs.h.  */
26533 _ACEOF
26534 cat confdefs.h >>conftest.$ac_ext
26535 cat >>conftest.$ac_ext <<_ACEOF
26536 /* end confdefs.h.  */
26537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26539 #define $ac_func innocuous_$ac_func
26540
26541 /* System header to define __stub macros and hopefully few prototypes,
26542     which can conflict with char $ac_func (); below.
26543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26544     <limits.h> exists even on freestanding compilers.  */
26545
26546 #ifdef __STDC__
26547 # include <limits.h>
26548 #else
26549 # include <assert.h>
26550 #endif
26551
26552 #undef $ac_func
26553
26554 /* Override any gcc2 internal prototype to avoid an error.  */
26555 #ifdef __cplusplus
26556 extern "C"
26557 {
26558 #endif
26559 /* We use char because int might match the return type of a gcc2
26560    builtin and then its argument prototype would still apply.  */
26561 char $ac_func ();
26562 /* The GNU C library defines this for functions which it implements
26563     to always fail with ENOSYS.  Some functions are actually named
26564     something starting with __ and the normal name is an alias.  */
26565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26566 choke me
26567 #else
26568 char (*f) () = $ac_func;
26569 #endif
26570 #ifdef __cplusplus
26571 }
26572 #endif
26573
26574 int
26575 main ()
26576 {
26577 return f != $ac_func;
26578   ;
26579   return 0;
26580 }
26581 _ACEOF
26582 rm -f conftest.$ac_objext conftest$ac_exeext
26583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26584   (eval $ac_link) 2>conftest.er1
26585   ac_status=$?
26586   grep -v '^ *+' conftest.er1 >conftest.err
26587   rm -f conftest.er1
26588   cat conftest.err >&5
26589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590   (exit $ac_status); } &&
26591          { ac_try='test -z "$ac_c_werror_flag"
26592                          || test ! -s conftest.err'
26593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26594   (eval $ac_try) 2>&5
26595   ac_status=$?
26596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597   (exit $ac_status); }; } &&
26598          { ac_try='test -s conftest$ac_exeext'
26599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26600   (eval $ac_try) 2>&5
26601   ac_status=$?
26602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603   (exit $ac_status); }; }; then
26604   eval "$as_ac_var=yes"
26605 else
26606   echo "$as_me: failed program was:" >&5
26607 sed 's/^/| /' conftest.$ac_ext >&5
26608
26609 eval "$as_ac_var=no"
26610 fi
26611 rm -f conftest.err conftest.$ac_objext \
26612       conftest$ac_exeext conftest.$ac_ext
26613 fi
26614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26616 if test `eval echo '${'$as_ac_var'}'` = yes; then
26617   cat >>confdefs.h <<_ACEOF
26618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26619 _ACEOF
26620
26621 fi
26622 done
26623
26624                 fi
26625         fi
26626
26627
26628 for ac_header in lwp/lwp.h
26629 do
26630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26632   echo "$as_me:$LINENO: checking for $ac_header" >&5
26633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26635   echo $ECHO_N "(cached) $ECHO_C" >&6
26636 fi
26637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26639 else
26640   # Is the header compilable?
26641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26643 cat >conftest.$ac_ext <<_ACEOF
26644 /* confdefs.h.  */
26645 _ACEOF
26646 cat confdefs.h >>conftest.$ac_ext
26647 cat >>conftest.$ac_ext <<_ACEOF
26648 /* end confdefs.h.  */
26649 $ac_includes_default
26650 #include <$ac_header>
26651 _ACEOF
26652 rm -f conftest.$ac_objext
26653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26654   (eval $ac_compile) 2>conftest.er1
26655   ac_status=$?
26656   grep -v '^ *+' conftest.er1 >conftest.err
26657   rm -f conftest.er1
26658   cat conftest.err >&5
26659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660   (exit $ac_status); } &&
26661          { ac_try='test -z "$ac_c_werror_flag"
26662                          || test ! -s conftest.err'
26663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26664   (eval $ac_try) 2>&5
26665   ac_status=$?
26666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667   (exit $ac_status); }; } &&
26668          { ac_try='test -s conftest.$ac_objext'
26669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26670   (eval $ac_try) 2>&5
26671   ac_status=$?
26672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673   (exit $ac_status); }; }; then
26674   ac_header_compiler=yes
26675 else
26676   echo "$as_me: failed program was:" >&5
26677 sed 's/^/| /' conftest.$ac_ext >&5
26678
26679 ac_header_compiler=no
26680 fi
26681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26683 echo "${ECHO_T}$ac_header_compiler" >&6
26684
26685 # Is the header present?
26686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26688 cat >conftest.$ac_ext <<_ACEOF
26689 /* confdefs.h.  */
26690 _ACEOF
26691 cat confdefs.h >>conftest.$ac_ext
26692 cat >>conftest.$ac_ext <<_ACEOF
26693 /* end confdefs.h.  */
26694 #include <$ac_header>
26695 _ACEOF
26696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26698   ac_status=$?
26699   grep -v '^ *+' conftest.er1 >conftest.err
26700   rm -f conftest.er1
26701   cat conftest.err >&5
26702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703   (exit $ac_status); } >/dev/null; then
26704   if test -s conftest.err; then
26705     ac_cpp_err=$ac_c_preproc_warn_flag
26706     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26707   else
26708     ac_cpp_err=
26709   fi
26710 else
26711   ac_cpp_err=yes
26712 fi
26713 if test -z "$ac_cpp_err"; then
26714   ac_header_preproc=yes
26715 else
26716   echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26718
26719   ac_header_preproc=no
26720 fi
26721 rm -f conftest.err conftest.$ac_ext
26722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26723 echo "${ECHO_T}$ac_header_preproc" >&6
26724
26725 # So?  What about this header?
26726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26727   yes:no: )
26728     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26732     ac_header_preproc=yes
26733     ;;
26734   no:yes:* )
26735     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26737     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26738 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26739     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26741     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26742 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26745     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26747     (
26748       cat <<\_ASBOX
26749 ## --------------------------------------------- ##
26750 ## Report this to <http://www.openldap.org/its/> ##
26751 ## --------------------------------------------- ##
26752 _ASBOX
26753     ) |
26754       sed "s/^/$as_me: WARNING:     /" >&2
26755     ;;
26756 esac
26757 echo "$as_me:$LINENO: checking for $ac_header" >&5
26758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26760   echo $ECHO_N "(cached) $ECHO_C" >&6
26761 else
26762   eval "$as_ac_Header=\$ac_header_preproc"
26763 fi
26764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26766
26767 fi
26768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26769   cat >>confdefs.h <<_ACEOF
26770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26771 _ACEOF
26772
26773 fi
26774
26775 done
26776
26777         if test $ac_cv_header_lwp_lwp_h = yes ; then
26778                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26779 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26780 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26781   echo $ECHO_N "(cached) $ECHO_C" >&6
26782 else
26783   ac_check_lib_save_LIBS=$LIBS
26784 LIBS="-llwp  $LIBS"
26785 cat >conftest.$ac_ext <<_ACEOF
26786 /* confdefs.h.  */
26787 _ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h.  */
26791
26792 /* Override any gcc2 internal prototype to avoid an error.  */
26793 #ifdef __cplusplus
26794 extern "C"
26795 #endif
26796 /* We use char because int might match the return type of a gcc2
26797    builtin and then its argument prototype would still apply.  */
26798 char lwp_create ();
26799 int
26800 main ()
26801 {
26802 lwp_create ();
26803   ;
26804   return 0;
26805 }
26806 _ACEOF
26807 rm -f conftest.$ac_objext conftest$ac_exeext
26808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26809   (eval $ac_link) 2>conftest.er1
26810   ac_status=$?
26811   grep -v '^ *+' conftest.er1 >conftest.err
26812   rm -f conftest.er1
26813   cat conftest.err >&5
26814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815   (exit $ac_status); } &&
26816          { ac_try='test -z "$ac_c_werror_flag"
26817                          || test ! -s conftest.err'
26818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26819   (eval $ac_try) 2>&5
26820   ac_status=$?
26821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822   (exit $ac_status); }; } &&
26823          { ac_try='test -s conftest$ac_exeext'
26824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26825   (eval $ac_try) 2>&5
26826   ac_status=$?
26827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828   (exit $ac_status); }; }; then
26829   ac_cv_lib_lwp_lwp_create=yes
26830 else
26831   echo "$as_me: failed program was:" >&5
26832 sed 's/^/| /' conftest.$ac_ext >&5
26833
26834 ac_cv_lib_lwp_lwp_create=no
26835 fi
26836 rm -f conftest.err conftest.$ac_objext \
26837       conftest$ac_exeext conftest.$ac_ext
26838 LIBS=$ac_check_lib_save_LIBS
26839 fi
26840 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26841 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26842 if test $ac_cv_lib_lwp_lwp_create = yes; then
26843   have_lwp=yes
26844 else
26845   have_lwp=no
26846 fi
26847
26848
26849                 if test $have_lwp = yes ; then
26850
26851 cat >>confdefs.h <<\_ACEOF
26852 #define HAVE_LWP 1
26853 _ACEOF
26854
26855                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26856                         ol_link_threads=lwp
26857
26858                         if test $ol_with_yielding_select = auto ; then
26859                                 ol_with_yielding_select=no
26860                         fi
26861                 fi
26862         fi
26863         ;;
26864 esac
26865
26866 if test $ol_with_yielding_select = yes ; then
26867
26868 cat >>confdefs.h <<\_ACEOF
26869 #define HAVE_YIELDING_SELECT 1
26870 _ACEOF
26871
26872 fi
26873
26874 if test $ol_with_threads = manual ; then
26875                 ol_link_threads=yes
26876
26877         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26878 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26879
26880
26881
26882 for ac_header in pthread.h sched.h
26883 do
26884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26886   echo "$as_me:$LINENO: checking for $ac_header" >&5
26887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26889   echo $ECHO_N "(cached) $ECHO_C" >&6
26890 fi
26891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26893 else
26894   # Is the header compilable?
26895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26897 cat >conftest.$ac_ext <<_ACEOF
26898 /* confdefs.h.  */
26899 _ACEOF
26900 cat confdefs.h >>conftest.$ac_ext
26901 cat >>conftest.$ac_ext <<_ACEOF
26902 /* end confdefs.h.  */
26903 $ac_includes_default
26904 #include <$ac_header>
26905 _ACEOF
26906 rm -f conftest.$ac_objext
26907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26908   (eval $ac_compile) 2>conftest.er1
26909   ac_status=$?
26910   grep -v '^ *+' conftest.er1 >conftest.err
26911   rm -f conftest.er1
26912   cat conftest.err >&5
26913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914   (exit $ac_status); } &&
26915          { ac_try='test -z "$ac_c_werror_flag"
26916                          || test ! -s conftest.err'
26917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26918   (eval $ac_try) 2>&5
26919   ac_status=$?
26920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921   (exit $ac_status); }; } &&
26922          { ac_try='test -s conftest.$ac_objext'
26923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26924   (eval $ac_try) 2>&5
26925   ac_status=$?
26926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927   (exit $ac_status); }; }; then
26928   ac_header_compiler=yes
26929 else
26930   echo "$as_me: failed program was:" >&5
26931 sed 's/^/| /' conftest.$ac_ext >&5
26932
26933 ac_header_compiler=no
26934 fi
26935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26937 echo "${ECHO_T}$ac_header_compiler" >&6
26938
26939 # Is the header present?
26940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26942 cat >conftest.$ac_ext <<_ACEOF
26943 /* confdefs.h.  */
26944 _ACEOF
26945 cat confdefs.h >>conftest.$ac_ext
26946 cat >>conftest.$ac_ext <<_ACEOF
26947 /* end confdefs.h.  */
26948 #include <$ac_header>
26949 _ACEOF
26950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26952   ac_status=$?
26953   grep -v '^ *+' conftest.er1 >conftest.err
26954   rm -f conftest.er1
26955   cat conftest.err >&5
26956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957   (exit $ac_status); } >/dev/null; then
26958   if test -s conftest.err; then
26959     ac_cpp_err=$ac_c_preproc_warn_flag
26960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26961   else
26962     ac_cpp_err=
26963   fi
26964 else
26965   ac_cpp_err=yes
26966 fi
26967 if test -z "$ac_cpp_err"; then
26968   ac_header_preproc=yes
26969 else
26970   echo "$as_me: failed program was:" >&5
26971 sed 's/^/| /' conftest.$ac_ext >&5
26972
26973   ac_header_preproc=no
26974 fi
26975 rm -f conftest.err conftest.$ac_ext
26976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26977 echo "${ECHO_T}$ac_header_preproc" >&6
26978
26979 # So?  What about this header?
26980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26981   yes:no: )
26982     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26986     ac_header_preproc=yes
26987     ;;
26988   no:yes:* )
26989     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26991     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26992 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26993     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26995     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26996 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26999     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27001     (
27002       cat <<\_ASBOX
27003 ## --------------------------------------------- ##
27004 ## Report this to <http://www.openldap.org/its/> ##
27005 ## --------------------------------------------- ##
27006 _ASBOX
27007     ) |
27008       sed "s/^/$as_me: WARNING:     /" >&2
27009     ;;
27010 esac
27011 echo "$as_me:$LINENO: checking for $ac_header" >&5
27012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27014   echo $ECHO_N "(cached) $ECHO_C" >&6
27015 else
27016   eval "$as_ac_Header=\$ac_header_preproc"
27017 fi
27018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27020
27021 fi
27022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27023   cat >>confdefs.h <<_ACEOF
27024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27025 _ACEOF
27026
27027 fi
27028
27029 done
27030
27031
27032
27033 for ac_func in sched_yield pthread_yield
27034 do
27035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27036 echo "$as_me:$LINENO: checking for $ac_func" >&5
27037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27038 if eval "test \"\${$as_ac_var+set}\" = set"; then
27039   echo $ECHO_N "(cached) $ECHO_C" >&6
27040 else
27041   cat >conftest.$ac_ext <<_ACEOF
27042 /* confdefs.h.  */
27043 _ACEOF
27044 cat confdefs.h >>conftest.$ac_ext
27045 cat >>conftest.$ac_ext <<_ACEOF
27046 /* end confdefs.h.  */
27047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27049 #define $ac_func innocuous_$ac_func
27050
27051 /* System header to define __stub macros and hopefully few prototypes,
27052     which can conflict with char $ac_func (); below.
27053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27054     <limits.h> exists even on freestanding compilers.  */
27055
27056 #ifdef __STDC__
27057 # include <limits.h>
27058 #else
27059 # include <assert.h>
27060 #endif
27061
27062 #undef $ac_func
27063
27064 /* Override any gcc2 internal prototype to avoid an error.  */
27065 #ifdef __cplusplus
27066 extern "C"
27067 {
27068 #endif
27069 /* We use char because int might match the return type of a gcc2
27070    builtin and then its argument prototype would still apply.  */
27071 char $ac_func ();
27072 /* The GNU C library defines this for functions which it implements
27073     to always fail with ENOSYS.  Some functions are actually named
27074     something starting with __ and the normal name is an alias.  */
27075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27076 choke me
27077 #else
27078 char (*f) () = $ac_func;
27079 #endif
27080 #ifdef __cplusplus
27081 }
27082 #endif
27083
27084 int
27085 main ()
27086 {
27087 return f != $ac_func;
27088   ;
27089   return 0;
27090 }
27091 _ACEOF
27092 rm -f conftest.$ac_objext conftest$ac_exeext
27093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27094   (eval $ac_link) 2>conftest.er1
27095   ac_status=$?
27096   grep -v '^ *+' conftest.er1 >conftest.err
27097   rm -f conftest.er1
27098   cat conftest.err >&5
27099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100   (exit $ac_status); } &&
27101          { ac_try='test -z "$ac_c_werror_flag"
27102                          || test ! -s conftest.err'
27103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27104   (eval $ac_try) 2>&5
27105   ac_status=$?
27106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107   (exit $ac_status); }; } &&
27108          { ac_try='test -s conftest$ac_exeext'
27109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27110   (eval $ac_try) 2>&5
27111   ac_status=$?
27112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113   (exit $ac_status); }; }; then
27114   eval "$as_ac_var=yes"
27115 else
27116   echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27118
27119 eval "$as_ac_var=no"
27120 fi
27121 rm -f conftest.err conftest.$ac_objext \
27122       conftest$ac_exeext conftest.$ac_ext
27123 fi
27124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27126 if test `eval echo '${'$as_ac_var'}'` = yes; then
27127   cat >>confdefs.h <<_ACEOF
27128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27129 _ACEOF
27130
27131 fi
27132 done
27133
27134
27135         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
27136 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
27137 if test "${ol_cv_header_linux_threads+set}" = set; then
27138   echo $ECHO_N "(cached) $ECHO_C" >&6
27139 else
27140   cat >conftest.$ac_ext <<_ACEOF
27141 /* confdefs.h.  */
27142 _ACEOF
27143 cat confdefs.h >>conftest.$ac_ext
27144 cat >>conftest.$ac_ext <<_ACEOF
27145 /* end confdefs.h.  */
27146 #include <pthread.h>
27147 _ACEOF
27148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27149   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
27150   ol_cv_header_linux_threads=yes
27151 else
27152   ol_cv_header_linux_threads=no
27153 fi
27154 rm -f conftest*
27155
27156
27157 fi
27158 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
27159 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
27160         if test $ol_cv_header_linux_threads = yes; then
27161
27162 cat >>confdefs.h <<\_ACEOF
27163 #define HAVE_LINUX_THREADS 1
27164 _ACEOF
27165
27166         fi
27167
27168
27169
27170 for ac_header in mach/cthreads.h
27171 do
27172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27174   echo "$as_me:$LINENO: checking for $ac_header" >&5
27175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27177   echo $ECHO_N "(cached) $ECHO_C" >&6
27178 fi
27179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27181 else
27182   # Is the header compilable?
27183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27185 cat >conftest.$ac_ext <<_ACEOF
27186 /* confdefs.h.  */
27187 _ACEOF
27188 cat confdefs.h >>conftest.$ac_ext
27189 cat >>conftest.$ac_ext <<_ACEOF
27190 /* end confdefs.h.  */
27191 $ac_includes_default
27192 #include <$ac_header>
27193 _ACEOF
27194 rm -f conftest.$ac_objext
27195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27196   (eval $ac_compile) 2>conftest.er1
27197   ac_status=$?
27198   grep -v '^ *+' conftest.er1 >conftest.err
27199   rm -f conftest.er1
27200   cat conftest.err >&5
27201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202   (exit $ac_status); } &&
27203          { ac_try='test -z "$ac_c_werror_flag"
27204                          || test ! -s conftest.err'
27205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27206   (eval $ac_try) 2>&5
27207   ac_status=$?
27208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209   (exit $ac_status); }; } &&
27210          { ac_try='test -s conftest.$ac_objext'
27211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27212   (eval $ac_try) 2>&5
27213   ac_status=$?
27214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215   (exit $ac_status); }; }; then
27216   ac_header_compiler=yes
27217 else
27218   echo "$as_me: failed program was:" >&5
27219 sed 's/^/| /' conftest.$ac_ext >&5
27220
27221 ac_header_compiler=no
27222 fi
27223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27225 echo "${ECHO_T}$ac_header_compiler" >&6
27226
27227 # Is the header present?
27228 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27230 cat >conftest.$ac_ext <<_ACEOF
27231 /* confdefs.h.  */
27232 _ACEOF
27233 cat confdefs.h >>conftest.$ac_ext
27234 cat >>conftest.$ac_ext <<_ACEOF
27235 /* end confdefs.h.  */
27236 #include <$ac_header>
27237 _ACEOF
27238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27240   ac_status=$?
27241   grep -v '^ *+' conftest.er1 >conftest.err
27242   rm -f conftest.er1
27243   cat conftest.err >&5
27244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245   (exit $ac_status); } >/dev/null; then
27246   if test -s conftest.err; then
27247     ac_cpp_err=$ac_c_preproc_warn_flag
27248     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27249   else
27250     ac_cpp_err=
27251   fi
27252 else
27253   ac_cpp_err=yes
27254 fi
27255 if test -z "$ac_cpp_err"; then
27256   ac_header_preproc=yes
27257 else
27258   echo "$as_me: failed program was:" >&5
27259 sed 's/^/| /' conftest.$ac_ext >&5
27260
27261   ac_header_preproc=no
27262 fi
27263 rm -f conftest.err conftest.$ac_ext
27264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27265 echo "${ECHO_T}$ac_header_preproc" >&6
27266
27267 # So?  What about this header?
27268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27269   yes:no: )
27270     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27274     ac_header_preproc=yes
27275     ;;
27276   no:yes:* )
27277     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27279     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27280 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27281     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27283     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27284 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27287     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27289     (
27290       cat <<\_ASBOX
27291 ## --------------------------------------------- ##
27292 ## Report this to <http://www.openldap.org/its/> ##
27293 ## --------------------------------------------- ##
27294 _ASBOX
27295     ) |
27296       sed "s/^/$as_me: WARNING:     /" >&2
27297     ;;
27298 esac
27299 echo "$as_me:$LINENO: checking for $ac_header" >&5
27300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27302   echo $ECHO_N "(cached) $ECHO_C" >&6
27303 else
27304   eval "$as_ac_Header=\$ac_header_preproc"
27305 fi
27306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27308
27309 fi
27310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27311   cat >>confdefs.h <<_ACEOF
27312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27313 _ACEOF
27314
27315 fi
27316
27317 done
27318
27319
27320 for ac_header in lwp/lwp.h
27321 do
27322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27324   echo "$as_me:$LINENO: checking for $ac_header" >&5
27325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27327   echo $ECHO_N "(cached) $ECHO_C" >&6
27328 fi
27329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27331 else
27332   # Is the header compilable?
27333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27335 cat >conftest.$ac_ext <<_ACEOF
27336 /* confdefs.h.  */
27337 _ACEOF
27338 cat confdefs.h >>conftest.$ac_ext
27339 cat >>conftest.$ac_ext <<_ACEOF
27340 /* end confdefs.h.  */
27341 $ac_includes_default
27342 #include <$ac_header>
27343 _ACEOF
27344 rm -f conftest.$ac_objext
27345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27346   (eval $ac_compile) 2>conftest.er1
27347   ac_status=$?
27348   grep -v '^ *+' conftest.er1 >conftest.err
27349   rm -f conftest.er1
27350   cat conftest.err >&5
27351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352   (exit $ac_status); } &&
27353          { ac_try='test -z "$ac_c_werror_flag"
27354                          || test ! -s conftest.err'
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); }; } &&
27360          { ac_try='test -s conftest.$ac_objext'
27361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27362   (eval $ac_try) 2>&5
27363   ac_status=$?
27364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365   (exit $ac_status); }; }; then
27366   ac_header_compiler=yes
27367 else
27368   echo "$as_me: failed program was:" >&5
27369 sed 's/^/| /' conftest.$ac_ext >&5
27370
27371 ac_header_compiler=no
27372 fi
27373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27375 echo "${ECHO_T}$ac_header_compiler" >&6
27376
27377 # Is the header present?
27378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27380 cat >conftest.$ac_ext <<_ACEOF
27381 /* confdefs.h.  */
27382 _ACEOF
27383 cat confdefs.h >>conftest.$ac_ext
27384 cat >>conftest.$ac_ext <<_ACEOF
27385 /* end confdefs.h.  */
27386 #include <$ac_header>
27387 _ACEOF
27388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27390   ac_status=$?
27391   grep -v '^ *+' conftest.er1 >conftest.err
27392   rm -f conftest.er1
27393   cat conftest.err >&5
27394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395   (exit $ac_status); } >/dev/null; then
27396   if test -s conftest.err; then
27397     ac_cpp_err=$ac_c_preproc_warn_flag
27398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27399   else
27400     ac_cpp_err=
27401   fi
27402 else
27403   ac_cpp_err=yes
27404 fi
27405 if test -z "$ac_cpp_err"; then
27406   ac_header_preproc=yes
27407 else
27408   echo "$as_me: failed program was:" >&5
27409 sed 's/^/| /' conftest.$ac_ext >&5
27410
27411   ac_header_preproc=no
27412 fi
27413 rm -f conftest.err conftest.$ac_ext
27414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27415 echo "${ECHO_T}$ac_header_preproc" >&6
27416
27417 # So?  What about this header?
27418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27419   yes:no: )
27420     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27424     ac_header_preproc=yes
27425     ;;
27426   no:yes:* )
27427     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27429     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27430 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27431     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27433     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27434 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27437     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27439     (
27440       cat <<\_ASBOX
27441 ## --------------------------------------------- ##
27442 ## Report this to <http://www.openldap.org/its/> ##
27443 ## --------------------------------------------- ##
27444 _ASBOX
27445     ) |
27446       sed "s/^/$as_me: WARNING:     /" >&2
27447     ;;
27448 esac
27449 echo "$as_me:$LINENO: checking for $ac_header" >&5
27450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27452   echo $ECHO_N "(cached) $ECHO_C" >&6
27453 else
27454   eval "$as_ac_Header=\$ac_header_preproc"
27455 fi
27456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27458
27459 fi
27460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27461   cat >>confdefs.h <<_ACEOF
27462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27463 _ACEOF
27464
27465 fi
27466
27467 done
27468
27469
27470
27471 for ac_header in thread.h synch.h
27472 do
27473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27475   echo "$as_me:$LINENO: checking for $ac_header" >&5
27476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27478   echo $ECHO_N "(cached) $ECHO_C" >&6
27479 fi
27480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27482 else
27483   # Is the header compilable?
27484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27486 cat >conftest.$ac_ext <<_ACEOF
27487 /* confdefs.h.  */
27488 _ACEOF
27489 cat confdefs.h >>conftest.$ac_ext
27490 cat >>conftest.$ac_ext <<_ACEOF
27491 /* end confdefs.h.  */
27492 $ac_includes_default
27493 #include <$ac_header>
27494 _ACEOF
27495 rm -f conftest.$ac_objext
27496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27497   (eval $ac_compile) 2>conftest.er1
27498   ac_status=$?
27499   grep -v '^ *+' conftest.er1 >conftest.err
27500   rm -f conftest.er1
27501   cat conftest.err >&5
27502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503   (exit $ac_status); } &&
27504          { ac_try='test -z "$ac_c_werror_flag"
27505                          || test ! -s conftest.err'
27506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507   (eval $ac_try) 2>&5
27508   ac_status=$?
27509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510   (exit $ac_status); }; } &&
27511          { ac_try='test -s conftest.$ac_objext'
27512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513   (eval $ac_try) 2>&5
27514   ac_status=$?
27515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516   (exit $ac_status); }; }; then
27517   ac_header_compiler=yes
27518 else
27519   echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27521
27522 ac_header_compiler=no
27523 fi
27524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27526 echo "${ECHO_T}$ac_header_compiler" >&6
27527
27528 # Is the header present?
27529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27531 cat >conftest.$ac_ext <<_ACEOF
27532 /* confdefs.h.  */
27533 _ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h.  */
27537 #include <$ac_header>
27538 _ACEOF
27539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27540   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27541   ac_status=$?
27542   grep -v '^ *+' conftest.er1 >conftest.err
27543   rm -f conftest.er1
27544   cat conftest.err >&5
27545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546   (exit $ac_status); } >/dev/null; then
27547   if test -s conftest.err; then
27548     ac_cpp_err=$ac_c_preproc_warn_flag
27549     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27550   else
27551     ac_cpp_err=
27552   fi
27553 else
27554   ac_cpp_err=yes
27555 fi
27556 if test -z "$ac_cpp_err"; then
27557   ac_header_preproc=yes
27558 else
27559   echo "$as_me: failed program was:" >&5
27560 sed 's/^/| /' conftest.$ac_ext >&5
27561
27562   ac_header_preproc=no
27563 fi
27564 rm -f conftest.err conftest.$ac_ext
27565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27566 echo "${ECHO_T}$ac_header_preproc" >&6
27567
27568 # So?  What about this header?
27569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27570   yes:no: )
27571     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27575     ac_header_preproc=yes
27576     ;;
27577   no:yes:* )
27578     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27580     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27581 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27582     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27584     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27585 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27588     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27590     (
27591       cat <<\_ASBOX
27592 ## --------------------------------------------- ##
27593 ## Report this to <http://www.openldap.org/its/> ##
27594 ## --------------------------------------------- ##
27595 _ASBOX
27596     ) |
27597       sed "s/^/$as_me: WARNING:     /" >&2
27598     ;;
27599 esac
27600 echo "$as_me:$LINENO: checking for $ac_header" >&5
27601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27603   echo $ECHO_N "(cached) $ECHO_C" >&6
27604 else
27605   eval "$as_ac_Header=\$ac_header_preproc"
27606 fi
27607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27609
27610 fi
27611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27612   cat >>confdefs.h <<_ACEOF
27613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27614 _ACEOF
27615
27616 fi
27617
27618 done
27619
27620 fi
27621
27622 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27623                         cat >>confdefs.h <<\_ACEOF
27624 #define REENTRANT 1
27625 _ACEOF
27626
27627         cat >>confdefs.h <<\_ACEOF
27628 #define _REENTRANT 1
27629 _ACEOF
27630
27631         cat >>confdefs.h <<\_ACEOF
27632 #define THREAD_SAFE 1
27633 _ACEOF
27634
27635         cat >>confdefs.h <<\_ACEOF
27636 #define _THREAD_SAFE 1
27637 _ACEOF
27638
27639         cat >>confdefs.h <<\_ACEOF
27640 #define THREADSAFE 1
27641 _ACEOF
27642
27643         cat >>confdefs.h <<\_ACEOF
27644 #define _THREADSAFE 1
27645 _ACEOF
27646
27647         cat >>confdefs.h <<\_ACEOF
27648 #define _SGI_MP_SOURCE 1
27649 _ACEOF
27650
27651
27652                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27653 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27654 if test "${ol_cv_errno_thread_specific+set}" = set; then
27655   echo $ECHO_N "(cached) $ECHO_C" >&6
27656 else
27657
27658                 cat >conftest.$ac_ext <<_ACEOF
27659 /* confdefs.h.  */
27660 _ACEOF
27661 cat confdefs.h >>conftest.$ac_ext
27662 cat >>conftest.$ac_ext <<_ACEOF
27663 /* end confdefs.h.  */
27664 #include <errno.h>
27665 int
27666 main ()
27667 {
27668 errno = 0;
27669   ;
27670   return 0;
27671 }
27672 _ACEOF
27673 rm -f conftest.$ac_objext conftest$ac_exeext
27674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27675   (eval $ac_link) 2>conftest.er1
27676   ac_status=$?
27677   grep -v '^ *+' conftest.er1 >conftest.err
27678   rm -f conftest.er1
27679   cat conftest.err >&5
27680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681   (exit $ac_status); } &&
27682          { ac_try='test -z "$ac_c_werror_flag"
27683                          || test ! -s conftest.err'
27684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27685   (eval $ac_try) 2>&5
27686   ac_status=$?
27687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688   (exit $ac_status); }; } &&
27689          { ac_try='test -s conftest$ac_exeext'
27690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27691   (eval $ac_try) 2>&5
27692   ac_status=$?
27693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694   (exit $ac_status); }; }; then
27695   ol_cv_errno_thread_specific=yes
27696 else
27697   echo "$as_me: failed program was:" >&5
27698 sed 's/^/| /' conftest.$ac_ext >&5
27699
27700 ol_cv_errno_thread_specific=no
27701 fi
27702 rm -f conftest.err conftest.$ac_objext \
27703       conftest$ac_exeext conftest.$ac_ext
27704
27705 fi
27706 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27707 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27708
27709                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27710 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27711 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27712   echo $ECHO_N "(cached) $ECHO_C" >&6
27713 else
27714
27715                 cat >conftest.$ac_ext <<_ACEOF
27716 /* confdefs.h.  */
27717 _ACEOF
27718 cat confdefs.h >>conftest.$ac_ext
27719 cat >>conftest.$ac_ext <<_ACEOF
27720 /* end confdefs.h.  */
27721 #include <netdb.h>
27722 int
27723 main ()
27724 {
27725 h_errno = 0;
27726   ;
27727   return 0;
27728 }
27729 _ACEOF
27730 rm -f conftest.$ac_objext conftest$ac_exeext
27731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27732   (eval $ac_link) 2>conftest.er1
27733   ac_status=$?
27734   grep -v '^ *+' conftest.er1 >conftest.err
27735   rm -f conftest.er1
27736   cat conftest.err >&5
27737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738   (exit $ac_status); } &&
27739          { ac_try='test -z "$ac_c_werror_flag"
27740                          || test ! -s conftest.err'
27741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27742   (eval $ac_try) 2>&5
27743   ac_status=$?
27744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745   (exit $ac_status); }; } &&
27746          { ac_try='test -s conftest$ac_exeext'
27747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27748   (eval $ac_try) 2>&5
27749   ac_status=$?
27750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751   (exit $ac_status); }; }; then
27752   ol_cv_h_errno_thread_specific=yes
27753 else
27754   echo "$as_me: failed program was:" >&5
27755 sed 's/^/| /' conftest.$ac_ext >&5
27756
27757 ol_cv_h_errno_thread_specific=no
27758 fi
27759 rm -f conftest.err conftest.$ac_objext \
27760       conftest$ac_exeext conftest.$ac_ext
27761
27762 fi
27763 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27764 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27765
27766         if test $ol_cv_errno_thread_specific != yes ||
27767            test $ol_cv_h_errno_thread_specific != yes ; then
27768                 LIBS="$LTHREAD_LIBS $LIBS"
27769                 LTHREAD_LIBS=""
27770         fi
27771
27772 fi
27773
27774 if test $ol_link_threads = no ; then
27775         if test $ol_with_threads = yes ; then
27776                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27777 echo "$as_me: error: no suitable thread support" >&2;}
27778    { (exit 1); exit 1; }; }
27779         fi
27780
27781         if test $ol_with_threads = auto ; then
27782                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27783 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27784                 ol_with_threads=no
27785         fi
27786
27787
27788 cat >>confdefs.h <<\_ACEOF
27789 #define NO_THREADS 1
27790 _ACEOF
27791
27792         LTHREAD_LIBS=""
27793         BUILD_THREAD=no
27794 else
27795         BUILD_THREAD=yes
27796 fi
27797
27798 if test $ol_link_threads != no ; then
27799
27800 cat >>confdefs.h <<\_ACEOF
27801 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27802 _ACEOF
27803
27804 fi
27805
27806
27807
27808
27809 for ac_func in \
27810         ctime_r                 \
27811         gethostbyname_r gethostbyaddr_r \
27812
27813 do
27814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27815 echo "$as_me:$LINENO: checking for $ac_func" >&5
27816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27817 if eval "test \"\${$as_ac_var+set}\" = set"; then
27818   echo $ECHO_N "(cached) $ECHO_C" >&6
27819 else
27820   cat >conftest.$ac_ext <<_ACEOF
27821 /* confdefs.h.  */
27822 _ACEOF
27823 cat confdefs.h >>conftest.$ac_ext
27824 cat >>conftest.$ac_ext <<_ACEOF
27825 /* end confdefs.h.  */
27826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27828 #define $ac_func innocuous_$ac_func
27829
27830 /* System header to define __stub macros and hopefully few prototypes,
27831     which can conflict with char $ac_func (); below.
27832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27833     <limits.h> exists even on freestanding compilers.  */
27834
27835 #ifdef __STDC__
27836 # include <limits.h>
27837 #else
27838 # include <assert.h>
27839 #endif
27840
27841 #undef $ac_func
27842
27843 /* Override any gcc2 internal prototype to avoid an error.  */
27844 #ifdef __cplusplus
27845 extern "C"
27846 {
27847 #endif
27848 /* We use char because int might match the return type of a gcc2
27849    builtin and then its argument prototype would still apply.  */
27850 char $ac_func ();
27851 /* The GNU C library defines this for functions which it implements
27852     to always fail with ENOSYS.  Some functions are actually named
27853     something starting with __ and the normal name is an alias.  */
27854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27855 choke me
27856 #else
27857 char (*f) () = $ac_func;
27858 #endif
27859 #ifdef __cplusplus
27860 }
27861 #endif
27862
27863 int
27864 main ()
27865 {
27866 return f != $ac_func;
27867   ;
27868   return 0;
27869 }
27870 _ACEOF
27871 rm -f conftest.$ac_objext conftest$ac_exeext
27872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27873   (eval $ac_link) 2>conftest.er1
27874   ac_status=$?
27875   grep -v '^ *+' conftest.er1 >conftest.err
27876   rm -f conftest.er1
27877   cat conftest.err >&5
27878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879   (exit $ac_status); } &&
27880          { ac_try='test -z "$ac_c_werror_flag"
27881                          || test ! -s conftest.err'
27882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27883   (eval $ac_try) 2>&5
27884   ac_status=$?
27885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886   (exit $ac_status); }; } &&
27887          { ac_try='test -s conftest$ac_exeext'
27888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27889   (eval $ac_try) 2>&5
27890   ac_status=$?
27891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892   (exit $ac_status); }; }; then
27893   eval "$as_ac_var=yes"
27894 else
27895   echo "$as_me: failed program was:" >&5
27896 sed 's/^/| /' conftest.$ac_ext >&5
27897
27898 eval "$as_ac_var=no"
27899 fi
27900 rm -f conftest.err conftest.$ac_objext \
27901       conftest$ac_exeext conftest.$ac_ext
27902 fi
27903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27905 if test `eval echo '${'$as_ac_var'}'` = yes; then
27906   cat >>confdefs.h <<_ACEOF
27907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27908 _ACEOF
27909
27910 fi
27911 done
27912
27913
27914 if test "$ac_cv_func_ctime_r" = no ; then
27915         ol_cv_func_ctime_r_nargs=0
27916 else
27917         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27918 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27919 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27920   echo $ECHO_N "(cached) $ECHO_C" >&6
27921 else
27922   cat >conftest.$ac_ext <<_ACEOF
27923 /* confdefs.h.  */
27924 _ACEOF
27925 cat confdefs.h >>conftest.$ac_ext
27926 cat >>conftest.$ac_ext <<_ACEOF
27927 /* end confdefs.h.  */
27928 #include <time.h>
27929 int
27930 main ()
27931 {
27932 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27933   ;
27934   return 0;
27935 }
27936 _ACEOF
27937 rm -f conftest.$ac_objext
27938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27939   (eval $ac_compile) 2>conftest.er1
27940   ac_status=$?
27941   grep -v '^ *+' conftest.er1 >conftest.err
27942   rm -f conftest.er1
27943   cat conftest.err >&5
27944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945   (exit $ac_status); } &&
27946          { ac_try='test -z "$ac_c_werror_flag"
27947                          || test ! -s conftest.err'
27948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27949   (eval $ac_try) 2>&5
27950   ac_status=$?
27951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952   (exit $ac_status); }; } &&
27953          { ac_try='test -s conftest.$ac_objext'
27954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27955   (eval $ac_try) 2>&5
27956   ac_status=$?
27957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958   (exit $ac_status); }; }; then
27959   ol_cv_func_ctime_r_nargs3=yes
27960 else
27961   echo "$as_me: failed program was:" >&5
27962 sed 's/^/| /' conftest.$ac_ext >&5
27963
27964 ol_cv_func_ctime_r_nargs3=no
27965 fi
27966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27967
27968         cat >conftest.$ac_ext <<_ACEOF
27969 /* confdefs.h.  */
27970 _ACEOF
27971 cat confdefs.h >>conftest.$ac_ext
27972 cat >>conftest.$ac_ext <<_ACEOF
27973 /* end confdefs.h.  */
27974 #include <time.h>
27975 int
27976 main ()
27977 {
27978 time_t ti; char *buffer; ctime_r(&ti,buffer);
27979   ;
27980   return 0;
27981 }
27982 _ACEOF
27983 rm -f conftest.$ac_objext
27984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27985   (eval $ac_compile) 2>conftest.er1
27986   ac_status=$?
27987   grep -v '^ *+' conftest.er1 >conftest.err
27988   rm -f conftest.er1
27989   cat conftest.err >&5
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); } &&
27992          { ac_try='test -z "$ac_c_werror_flag"
27993                          || test ! -s conftest.err'
27994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995   (eval $ac_try) 2>&5
27996   ac_status=$?
27997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998   (exit $ac_status); }; } &&
27999          { ac_try='test -s conftest.$ac_objext'
28000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28001   (eval $ac_try) 2>&5
28002   ac_status=$?
28003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004   (exit $ac_status); }; }; then
28005   ol_cv_func_ctime_r_nargs2=yes
28006 else
28007   echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.$ac_ext >&5
28009
28010 ol_cv_func_ctime_r_nargs2=no
28011 fi
28012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28013
28014         if test $ol_cv_func_ctime_r_nargs3 = yes &&
28015            test $ol_cv_func_ctime_r_nargs2 = no ; then
28016
28017                 ol_cv_func_ctime_r_nargs=3
28018
28019         elif test $ol_cv_func_ctime_r_nargs3 = no &&
28020              test $ol_cv_func_ctime_r_nargs2 = yes ; then
28021
28022                 ol_cv_func_ctime_r_nargs=2
28023
28024         else
28025                 ol_cv_func_ctime_r_nargs=0
28026         fi
28027
28028 fi
28029 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
28030 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
28031
28032   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
28033
28034 cat >>confdefs.h <<_ACEOF
28035 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
28036 _ACEOF
28037
28038   fi
28039
28040 fi
28041
28042 if test "$ac_cv_func_gethostbyname_r" = yes ; then
28043         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
28044 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
28045 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
28046   echo $ECHO_N "(cached) $ECHO_C" >&6
28047 else
28048   cat >conftest.$ac_ext <<_ACEOF
28049 /* confdefs.h.  */
28050 _ACEOF
28051 cat confdefs.h >>conftest.$ac_ext
28052 cat >>conftest.$ac_ext <<_ACEOF
28053 /* end confdefs.h.  */
28054 #include <sys/types.h>
28055 #include <sys/socket.h>
28056 #include <netinet/in.h>
28057 #include <netdb.h>
28058 #define BUFSIZE (sizeof(struct hostent)+10)
28059 int
28060 main ()
28061 {
28062 struct hostent hent; char buffer[BUFSIZE];
28063                 int bufsize=BUFSIZE;int h_errno;
28064                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
28065                         buffer, bufsize, &h_errno);
28066   ;
28067   return 0;
28068 }
28069 _ACEOF
28070 rm -f conftest.$ac_objext
28071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28072   (eval $ac_compile) 2>conftest.er1
28073   ac_status=$?
28074   grep -v '^ *+' conftest.er1 >conftest.err
28075   rm -f conftest.er1
28076   cat conftest.err >&5
28077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078   (exit $ac_status); } &&
28079          { ac_try='test -z "$ac_c_werror_flag"
28080                          || test ! -s conftest.err'
28081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28082   (eval $ac_try) 2>&5
28083   ac_status=$?
28084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085   (exit $ac_status); }; } &&
28086          { ac_try='test -s conftest.$ac_objext'
28087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28088   (eval $ac_try) 2>&5
28089   ac_status=$?
28090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091   (exit $ac_status); }; }; then
28092   ol_cv_func_gethostbyname_r_nargs5=yes
28093 else
28094   echo "$as_me: failed program was:" >&5
28095 sed 's/^/| /' conftest.$ac_ext >&5
28096
28097 ol_cv_func_gethostbyname_r_nargs5=no
28098 fi
28099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28100
28101         cat >conftest.$ac_ext <<_ACEOF
28102 /* confdefs.h.  */
28103 _ACEOF
28104 cat confdefs.h >>conftest.$ac_ext
28105 cat >>conftest.$ac_ext <<_ACEOF
28106 /* end confdefs.h.  */
28107 #include <sys/types.h>
28108 #include <sys/socket.h>
28109 #include <netinet/in.h>
28110 #include <netdb.h>
28111 #define BUFSIZE (sizeof(struct hostent)+10)
28112 int
28113 main ()
28114 {
28115 struct hostent hent;struct hostent *rhent;
28116                 char buffer[BUFSIZE];
28117                 int bufsize=BUFSIZE;int h_errno;
28118                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
28119                         &rhent, &h_errno);
28120   ;
28121   return 0;
28122 }
28123 _ACEOF
28124 rm -f conftest.$ac_objext
28125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28126   (eval $ac_compile) 2>conftest.er1
28127   ac_status=$?
28128   grep -v '^ *+' conftest.er1 >conftest.err
28129   rm -f conftest.er1
28130   cat conftest.err >&5
28131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132   (exit $ac_status); } &&
28133          { ac_try='test -z "$ac_c_werror_flag"
28134                          || test ! -s conftest.err'
28135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136   (eval $ac_try) 2>&5
28137   ac_status=$?
28138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139   (exit $ac_status); }; } &&
28140          { ac_try='test -s conftest.$ac_objext'
28141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28142   (eval $ac_try) 2>&5
28143   ac_status=$?
28144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145   (exit $ac_status); }; }; then
28146   ol_cv_func_gethostbyname_r_nargs6=yes
28147 else
28148   echo "$as_me: failed program was:" >&5
28149 sed 's/^/| /' conftest.$ac_ext >&5
28150
28151 ol_cv_func_gethostbyname_r_nargs6=no
28152 fi
28153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28154
28155         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
28156            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
28157
28158                 ol_cv_func_gethostbyname_r_nargs=5
28159
28160         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
28161              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
28162
28163                 ol_cv_func_gethostbyname_r_nargs=6
28164
28165         else
28166                 ol_cv_func_gethostbyname_r_nargs=0
28167         fi
28168
28169 fi
28170 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
28171 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
28172   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
28173
28174 cat >>confdefs.h <<_ACEOF
28175 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
28176 _ACEOF
28177
28178   fi
28179
28180 else
28181         ol_cv_func_gethostbyname_r_nargs=0
28182 fi
28183
28184 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
28185         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
28186 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
28187 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
28188   echo $ECHO_N "(cached) $ECHO_C" >&6
28189 else
28190   cat >conftest.$ac_ext <<_ACEOF
28191 /* confdefs.h.  */
28192 _ACEOF
28193 cat confdefs.h >>conftest.$ac_ext
28194 cat >>conftest.$ac_ext <<_ACEOF
28195 /* end confdefs.h.  */
28196 #include <sys/types.h>
28197 #include <sys/socket.h>
28198 #include <netinet/in.h>
28199 #include <netdb.h>
28200 #define BUFSIZE (sizeof(struct hostent)+10)
28201 int
28202 main ()
28203 {
28204 struct hostent hent; char buffer[BUFSIZE];
28205             struct in_addr add;
28206             size_t alen=sizeof(struct in_addr);
28207             int bufsize=BUFSIZE;int h_errno;
28208                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28209                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
28210   ;
28211   return 0;
28212 }
28213 _ACEOF
28214 rm -f conftest.$ac_objext
28215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28216   (eval $ac_compile) 2>conftest.er1
28217   ac_status=$?
28218   grep -v '^ *+' conftest.er1 >conftest.err
28219   rm -f conftest.er1
28220   cat conftest.err >&5
28221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222   (exit $ac_status); } &&
28223          { ac_try='test -z "$ac_c_werror_flag"
28224                          || test ! -s conftest.err'
28225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28226   (eval $ac_try) 2>&5
28227   ac_status=$?
28228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229   (exit $ac_status); }; } &&
28230          { ac_try='test -s conftest.$ac_objext'
28231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28232   (eval $ac_try) 2>&5
28233   ac_status=$?
28234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235   (exit $ac_status); }; }; then
28236   ol_cv_func_gethostbyaddr_r_nargs7=yes
28237 else
28238   echo "$as_me: failed program was:" >&5
28239 sed 's/^/| /' conftest.$ac_ext >&5
28240
28241 ol_cv_func_gethostbyaddr_r_nargs7=no
28242 fi
28243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28244
28245         cat >conftest.$ac_ext <<_ACEOF
28246 /* confdefs.h.  */
28247 _ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h.  */
28251 #include <sys/types.h>
28252 #include <sys/socket.h>
28253 #include <netinet/in.h>
28254 #include <netdb.h>
28255 #define BUFSIZE (sizeof(struct hostent)+10)
28256 int
28257 main ()
28258 {
28259 struct hostent hent;
28260                 struct hostent *rhent; char buffer[BUFSIZE];
28261                 struct in_addr add;
28262                 size_t alen=sizeof(struct in_addr);
28263                 int bufsize=BUFSIZE;int h_errno;
28264                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28265                         alen, AF_INET, &hent, buffer, bufsize,
28266                         &rhent, &h_errno);
28267   ;
28268   return 0;
28269 }
28270 _ACEOF
28271 rm -f conftest.$ac_objext
28272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28273   (eval $ac_compile) 2>conftest.er1
28274   ac_status=$?
28275   grep -v '^ *+' conftest.er1 >conftest.err
28276   rm -f conftest.er1
28277   cat conftest.err >&5
28278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279   (exit $ac_status); } &&
28280          { ac_try='test -z "$ac_c_werror_flag"
28281                          || test ! -s conftest.err'
28282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28283   (eval $ac_try) 2>&5
28284   ac_status=$?
28285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286   (exit $ac_status); }; } &&
28287          { ac_try='test -s conftest.$ac_objext'
28288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28289   (eval $ac_try) 2>&5
28290   ac_status=$?
28291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292   (exit $ac_status); }; }; then
28293   ol_cv_func_gethostbyaddr_r_nargs8=yes
28294 else
28295   echo "$as_me: failed program was:" >&5
28296 sed 's/^/| /' conftest.$ac_ext >&5
28297
28298 ol_cv_func_gethostbyaddr_r_nargs8=no
28299 fi
28300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28301
28302         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
28303            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
28304
28305                 ol_cv_func_gethostbyaddr_r_nargs=7
28306
28307         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
28308              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
28309
28310                 ol_cv_func_gethostbyaddr_r_nargs=8
28311
28312         else
28313                 ol_cv_func_gethostbyaddr_r_nargs=0
28314         fi
28315
28316 fi
28317 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
28318 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
28319   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
28320
28321 cat >>confdefs.h <<_ACEOF
28322 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
28323 _ACEOF
28324
28325   fi
28326
28327 else
28328         ol_cv_func_gethostbyaddr_r_nargs=0
28329 fi
28330
28331 ol_link_bdb=no
28332
28333 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
28334         ol_cv_berkeley_db=no
28335
28336 for ac_header in db.h
28337 do
28338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28340   echo "$as_me:$LINENO: checking for $ac_header" >&5
28341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28343   echo $ECHO_N "(cached) $ECHO_C" >&6
28344 fi
28345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28347 else
28348   # Is the header compilable?
28349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28351 cat >conftest.$ac_ext <<_ACEOF
28352 /* confdefs.h.  */
28353 _ACEOF
28354 cat confdefs.h >>conftest.$ac_ext
28355 cat >>conftest.$ac_ext <<_ACEOF
28356 /* end confdefs.h.  */
28357 $ac_includes_default
28358 #include <$ac_header>
28359 _ACEOF
28360 rm -f conftest.$ac_objext
28361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28362   (eval $ac_compile) 2>conftest.er1
28363   ac_status=$?
28364   grep -v '^ *+' conftest.er1 >conftest.err
28365   rm -f conftest.er1
28366   cat conftest.err >&5
28367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368   (exit $ac_status); } &&
28369          { ac_try='test -z "$ac_c_werror_flag"
28370                          || test ! -s conftest.err'
28371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28372   (eval $ac_try) 2>&5
28373   ac_status=$?
28374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375   (exit $ac_status); }; } &&
28376          { ac_try='test -s conftest.$ac_objext'
28377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28378   (eval $ac_try) 2>&5
28379   ac_status=$?
28380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381   (exit $ac_status); }; }; then
28382   ac_header_compiler=yes
28383 else
28384   echo "$as_me: failed program was:" >&5
28385 sed 's/^/| /' conftest.$ac_ext >&5
28386
28387 ac_header_compiler=no
28388 fi
28389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28391 echo "${ECHO_T}$ac_header_compiler" >&6
28392
28393 # Is the header present?
28394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28396 cat >conftest.$ac_ext <<_ACEOF
28397 /* confdefs.h.  */
28398 _ACEOF
28399 cat confdefs.h >>conftest.$ac_ext
28400 cat >>conftest.$ac_ext <<_ACEOF
28401 /* end confdefs.h.  */
28402 #include <$ac_header>
28403 _ACEOF
28404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28405   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28406   ac_status=$?
28407   grep -v '^ *+' conftest.er1 >conftest.err
28408   rm -f conftest.er1
28409   cat conftest.err >&5
28410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); } >/dev/null; then
28412   if test -s conftest.err; then
28413     ac_cpp_err=$ac_c_preproc_warn_flag
28414     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28415   else
28416     ac_cpp_err=
28417   fi
28418 else
28419   ac_cpp_err=yes
28420 fi
28421 if test -z "$ac_cpp_err"; then
28422   ac_header_preproc=yes
28423 else
28424   echo "$as_me: failed program was:" >&5
28425 sed 's/^/| /' conftest.$ac_ext >&5
28426
28427   ac_header_preproc=no
28428 fi
28429 rm -f conftest.err conftest.$ac_ext
28430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28431 echo "${ECHO_T}$ac_header_preproc" >&6
28432
28433 # So?  What about this header?
28434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28435   yes:no: )
28436     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28440     ac_header_preproc=yes
28441     ;;
28442   no:yes:* )
28443     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28445     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28446 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28447     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28449     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28450 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28453     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28455     (
28456       cat <<\_ASBOX
28457 ## --------------------------------------------- ##
28458 ## Report this to <http://www.openldap.org/its/> ##
28459 ## --------------------------------------------- ##
28460 _ASBOX
28461     ) |
28462       sed "s/^/$as_me: WARNING:     /" >&2
28463     ;;
28464 esac
28465 echo "$as_me:$LINENO: checking for $ac_header" >&5
28466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28468   echo $ECHO_N "(cached) $ECHO_C" >&6
28469 else
28470   eval "$as_ac_Header=\$ac_header_preproc"
28471 fi
28472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28474
28475 fi
28476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28477   cat >>confdefs.h <<_ACEOF
28478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28479 _ACEOF
28480
28481 fi
28482
28483 done
28484
28485 if test $ac_cv_header_db_h = yes; then
28486         echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28487 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6
28488 if test "${ol_cv_bdb_major+set}" = set; then
28489   echo $ECHO_N "(cached) $ECHO_C" >&6
28490 else
28491
28492         cat >conftest.$ac_ext <<_ACEOF
28493
28494 #include <db.h>
28495 #ifndef DB_VERSION_MAJOR
28496 #       define DB_VERSION_MAJOR 1
28497 #endif
28498 __db_version DB_VERSION_MAJOR
28499
28500 _ACEOF
28501         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28502         ol_cv_bdb_major=${3}
28503
28504 fi
28505 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28506 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28507 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28508         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28509 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28510    { (exit 1); exit 1; }; } ;;
28511 esac
28512
28513 echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28514 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6
28515 if test "${ol_cv_bdb_minor+set}" = set; then
28516   echo $ECHO_N "(cached) $ECHO_C" >&6
28517 else
28518
28519         cat >conftest.$ac_ext <<_ACEOF
28520
28521 #include <db.h>
28522 #ifndef DB_VERSION_MINOR
28523 #       define DB_VERSION_MINOR 0
28524 #endif
28525 __db_version DB_VERSION_MINOR
28526
28527 _ACEOF
28528         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28529         ol_cv_bdb_minor=${3}
28530
28531 fi
28532 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28533 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28534 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28535         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28536 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28537    { (exit 1); exit 1; }; } ;;
28538 esac
28539
28540         echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28541 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6
28542 if test "${ol_cv_bdb_compat+set}" = set; then
28543   echo $ECHO_N "(cached) $ECHO_C" >&6
28544 else
28545
28546         cat >conftest.$ac_ext <<_ACEOF
28547 /* confdefs.h.  */
28548 _ACEOF
28549 cat confdefs.h >>conftest.$ac_ext
28550 cat >>conftest.$ac_ext <<_ACEOF
28551 /* end confdefs.h.  */
28552
28553 #include <db.h>
28554
28555  /* this check could be improved */
28556 #ifndef DB_VERSION_MAJOR
28557 #       define DB_VERSION_MAJOR 1
28558 #endif
28559 #ifndef DB_VERSION_MINOR
28560 #       define DB_VERSION_MINOR 0
28561 #endif
28562
28563 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28564
28565 /* require 4.4 or later */
28566 #if DB_VERSION_MM >= 0x0404
28567         __db_version_compat
28568 #endif
28569
28570 _ACEOF
28571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28572   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28573   ol_cv_bdb_compat=yes
28574 else
28575   ol_cv_bdb_compat=no
28576 fi
28577 rm -f conftest*
28578
28579 fi
28580 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28581 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
28582
28583
28584         if test $ol_cv_bdb_compat != yes ; then
28585                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28586 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28587    { (exit 1); exit 1; }; }
28588         fi
28589
28590         ol_cv_lib_db=no
28591
28592 if test $ol_cv_bdb_major = 4 ; then
28593         if test $ol_cv_lib_db = no ; then
28594         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28595 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6
28596 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28597   echo $ECHO_N "(cached) $ECHO_C" >&6
28598 else
28599
28600         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28601         ol_LIBS=$LIBS
28602         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28603
28604         cat >conftest.$ac_ext <<_ACEOF
28605 /* confdefs.h.  */
28606 _ACEOF
28607 cat confdefs.h >>conftest.$ac_ext
28608 cat >>conftest.$ac_ext <<_ACEOF
28609 /* end confdefs.h.  */
28610
28611 #ifdef HAVE_DB_185_H
28612 # include <db_185.h>
28613 #else
28614 # include <db.h>
28615 #endif
28616
28617 #ifndef DB_VERSION_MAJOR
28618 # define DB_VERSION_MAJOR 1
28619 #endif
28620
28621 #ifndef NULL
28622 #define NULL ((void*)0)
28623 #endif
28624
28625 int
28626 main ()
28627 {
28628
28629 #if DB_VERSION_MAJOR > 2
28630         db_env_create( NULL, 0 );
28631 #elif DB_VERSION_MAJOR > 1
28632         db_appexit( NULL );
28633 #else
28634         (void) dbopen( NULL, 0, 0, 0, NULL);
28635 #endif
28636
28637   ;
28638   return 0;
28639 }
28640 _ACEOF
28641 rm -f conftest.$ac_objext conftest$ac_exeext
28642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28643   (eval $ac_link) 2>conftest.er1
28644   ac_status=$?
28645   grep -v '^ *+' conftest.er1 >conftest.err
28646   rm -f conftest.er1
28647   cat conftest.err >&5
28648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649   (exit $ac_status); } &&
28650          { ac_try='test -z "$ac_c_werror_flag"
28651                          || test ! -s conftest.err'
28652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28653   (eval $ac_try) 2>&5
28654   ac_status=$?
28655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656   (exit $ac_status); }; } &&
28657          { ac_try='test -s conftest$ac_exeext'
28658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28659   (eval $ac_try) 2>&5
28660   ac_status=$?
28661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662   (exit $ac_status); }; }; then
28663   ol_cv_db_db_4_dot_m=yes
28664 else
28665   echo "$as_me: failed program was:" >&5
28666 sed 's/^/| /' conftest.$ac_ext >&5
28667
28668 ol_cv_db_db_4_dot_m=no
28669 fi
28670 rm -f conftest.err conftest.$ac_objext \
28671       conftest$ac_exeext conftest.$ac_ext
28672
28673         LIBS="$ol_LIBS"
28674
28675 fi
28676 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28677 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6
28678
28679         if test $ol_cv_db_db_4_dot_m = yes ; then
28680                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28681         fi
28682 fi
28683
28684         if test $ol_cv_lib_db = no ; then
28685         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28686 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6
28687 if test "${ol_cv_db_db4m+set}" = set; then
28688   echo $ECHO_N "(cached) $ECHO_C" >&6
28689 else
28690
28691         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28692         ol_LIBS=$LIBS
28693         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28694
28695         cat >conftest.$ac_ext <<_ACEOF
28696 /* confdefs.h.  */
28697 _ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h.  */
28701
28702 #ifdef HAVE_DB_185_H
28703 # include <db_185.h>
28704 #else
28705 # include <db.h>
28706 #endif
28707
28708 #ifndef DB_VERSION_MAJOR
28709 # define DB_VERSION_MAJOR 1
28710 #endif
28711
28712 #ifndef NULL
28713 #define NULL ((void*)0)
28714 #endif
28715
28716 int
28717 main ()
28718 {
28719
28720 #if DB_VERSION_MAJOR > 2
28721         db_env_create( NULL, 0 );
28722 #elif DB_VERSION_MAJOR > 1
28723         db_appexit( NULL );
28724 #else
28725         (void) dbopen( NULL, 0, 0, 0, NULL);
28726 #endif
28727
28728   ;
28729   return 0;
28730 }
28731 _ACEOF
28732 rm -f conftest.$ac_objext conftest$ac_exeext
28733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28734   (eval $ac_link) 2>conftest.er1
28735   ac_status=$?
28736   grep -v '^ *+' conftest.er1 >conftest.err
28737   rm -f conftest.er1
28738   cat conftest.err >&5
28739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740   (exit $ac_status); } &&
28741          { ac_try='test -z "$ac_c_werror_flag"
28742                          || test ! -s conftest.err'
28743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744   (eval $ac_try) 2>&5
28745   ac_status=$?
28746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747   (exit $ac_status); }; } &&
28748          { ac_try='test -s conftest$ac_exeext'
28749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28750   (eval $ac_try) 2>&5
28751   ac_status=$?
28752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753   (exit $ac_status); }; }; then
28754   ol_cv_db_db4m=yes
28755 else
28756   echo "$as_me: failed program was:" >&5
28757 sed 's/^/| /' conftest.$ac_ext >&5
28758
28759 ol_cv_db_db4m=no
28760 fi
28761 rm -f conftest.err conftest.$ac_objext \
28762       conftest$ac_exeext conftest.$ac_ext
28763
28764         LIBS="$ol_LIBS"
28765
28766 fi
28767 echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28768 echo "${ECHO_T}$ol_cv_db_db4m" >&6
28769
28770         if test $ol_cv_db_db4m = yes ; then
28771                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28772         fi
28773 fi
28774
28775         if test $ol_cv_lib_db = no ; then
28776         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28777 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6
28778 if test "${ol_cv_db_db_4m+set}" = set; then
28779   echo $ECHO_N "(cached) $ECHO_C" >&6
28780 else
28781
28782         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28783         ol_LIBS=$LIBS
28784         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28785
28786         cat >conftest.$ac_ext <<_ACEOF
28787 /* confdefs.h.  */
28788 _ACEOF
28789 cat confdefs.h >>conftest.$ac_ext
28790 cat >>conftest.$ac_ext <<_ACEOF
28791 /* end confdefs.h.  */
28792
28793 #ifdef HAVE_DB_185_H
28794 # include <db_185.h>
28795 #else
28796 # include <db.h>
28797 #endif
28798
28799 #ifndef DB_VERSION_MAJOR
28800 # define DB_VERSION_MAJOR 1
28801 #endif
28802
28803 #ifndef NULL
28804 #define NULL ((void*)0)
28805 #endif
28806
28807 int
28808 main ()
28809 {
28810
28811 #if DB_VERSION_MAJOR > 2
28812         db_env_create( NULL, 0 );
28813 #elif DB_VERSION_MAJOR > 1
28814         db_appexit( NULL );
28815 #else
28816         (void) dbopen( NULL, 0, 0, 0, NULL);
28817 #endif
28818
28819   ;
28820   return 0;
28821 }
28822 _ACEOF
28823 rm -f conftest.$ac_objext conftest$ac_exeext
28824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28825   (eval $ac_link) 2>conftest.er1
28826   ac_status=$?
28827   grep -v '^ *+' conftest.er1 >conftest.err
28828   rm -f conftest.er1
28829   cat conftest.err >&5
28830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831   (exit $ac_status); } &&
28832          { ac_try='test -z "$ac_c_werror_flag"
28833                          || test ! -s conftest.err'
28834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28835   (eval $ac_try) 2>&5
28836   ac_status=$?
28837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838   (exit $ac_status); }; } &&
28839          { ac_try='test -s conftest$ac_exeext'
28840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28841   (eval $ac_try) 2>&5
28842   ac_status=$?
28843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844   (exit $ac_status); }; }; then
28845   ol_cv_db_db_4m=yes
28846 else
28847   echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28849
28850 ol_cv_db_db_4m=no
28851 fi
28852 rm -f conftest.err conftest.$ac_objext \
28853       conftest$ac_exeext conftest.$ac_ext
28854
28855         LIBS="$ol_LIBS"
28856
28857 fi
28858 echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28859 echo "${ECHO_T}$ol_cv_db_db_4m" >&6
28860
28861         if test $ol_cv_db_db_4m = yes ; then
28862                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28863         fi
28864 fi
28865
28866         if test $ol_cv_lib_db = no ; then
28867         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28868 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6
28869 if test "${ol_cv_db_db_4_m+set}" = set; then
28870   echo $ECHO_N "(cached) $ECHO_C" >&6
28871 else
28872
28873         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28874         ol_LIBS=$LIBS
28875         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28876
28877         cat >conftest.$ac_ext <<_ACEOF
28878 /* confdefs.h.  */
28879 _ACEOF
28880 cat confdefs.h >>conftest.$ac_ext
28881 cat >>conftest.$ac_ext <<_ACEOF
28882 /* end confdefs.h.  */
28883
28884 #ifdef HAVE_DB_185_H
28885 # include <db_185.h>
28886 #else
28887 # include <db.h>
28888 #endif
28889
28890 #ifndef DB_VERSION_MAJOR
28891 # define DB_VERSION_MAJOR 1
28892 #endif
28893
28894 #ifndef NULL
28895 #define NULL ((void*)0)
28896 #endif
28897
28898 int
28899 main ()
28900 {
28901
28902 #if DB_VERSION_MAJOR > 2
28903         db_env_create( NULL, 0 );
28904 #elif DB_VERSION_MAJOR > 1
28905         db_appexit( NULL );
28906 #else
28907         (void) dbopen( NULL, 0, 0, 0, NULL);
28908 #endif
28909
28910   ;
28911   return 0;
28912 }
28913 _ACEOF
28914 rm -f conftest.$ac_objext conftest$ac_exeext
28915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28916   (eval $ac_link) 2>conftest.er1
28917   ac_status=$?
28918   grep -v '^ *+' conftest.er1 >conftest.err
28919   rm -f conftest.er1
28920   cat conftest.err >&5
28921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922   (exit $ac_status); } &&
28923          { ac_try='test -z "$ac_c_werror_flag"
28924                          || test ! -s conftest.err'
28925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28926   (eval $ac_try) 2>&5
28927   ac_status=$?
28928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929   (exit $ac_status); }; } &&
28930          { ac_try='test -s conftest$ac_exeext'
28931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28932   (eval $ac_try) 2>&5
28933   ac_status=$?
28934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935   (exit $ac_status); }; }; then
28936   ol_cv_db_db_4_m=yes
28937 else
28938   echo "$as_me: failed program was:" >&5
28939 sed 's/^/| /' conftest.$ac_ext >&5
28940
28941 ol_cv_db_db_4_m=no
28942 fi
28943 rm -f conftest.err conftest.$ac_objext \
28944       conftest$ac_exeext conftest.$ac_ext
28945
28946         LIBS="$ol_LIBS"
28947
28948 fi
28949 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28950 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6
28951
28952         if test $ol_cv_db_db_4_m = yes ; then
28953                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28954         fi
28955 fi
28956
28957         if test $ol_cv_lib_db = no ; then
28958         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28959 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28960 if test "${ol_cv_db_db_4+set}" = set; then
28961   echo $ECHO_N "(cached) $ECHO_C" >&6
28962 else
28963
28964         ol_DB_LIB=-ldb-4
28965         ol_LIBS=$LIBS
28966         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28967
28968         cat >conftest.$ac_ext <<_ACEOF
28969 /* confdefs.h.  */
28970 _ACEOF
28971 cat confdefs.h >>conftest.$ac_ext
28972 cat >>conftest.$ac_ext <<_ACEOF
28973 /* end confdefs.h.  */
28974
28975 #ifdef HAVE_DB_185_H
28976 # include <db_185.h>
28977 #else
28978 # include <db.h>
28979 #endif
28980
28981 #ifndef DB_VERSION_MAJOR
28982 # define DB_VERSION_MAJOR 1
28983 #endif
28984
28985 #ifndef NULL
28986 #define NULL ((void*)0)
28987 #endif
28988
28989 int
28990 main ()
28991 {
28992
28993 #if DB_VERSION_MAJOR > 2
28994         db_env_create( NULL, 0 );
28995 #elif DB_VERSION_MAJOR > 1
28996         db_appexit( NULL );
28997 #else
28998         (void) dbopen( NULL, 0, 0, 0, NULL);
28999 #endif
29000
29001   ;
29002   return 0;
29003 }
29004 _ACEOF
29005 rm -f conftest.$ac_objext conftest$ac_exeext
29006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29007   (eval $ac_link) 2>conftest.er1
29008   ac_status=$?
29009   grep -v '^ *+' conftest.er1 >conftest.err
29010   rm -f conftest.er1
29011   cat conftest.err >&5
29012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013   (exit $ac_status); } &&
29014          { ac_try='test -z "$ac_c_werror_flag"
29015                          || test ! -s conftest.err'
29016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29017   (eval $ac_try) 2>&5
29018   ac_status=$?
29019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020   (exit $ac_status); }; } &&
29021          { ac_try='test -s conftest$ac_exeext'
29022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29023   (eval $ac_try) 2>&5
29024   ac_status=$?
29025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026   (exit $ac_status); }; }; then
29027   ol_cv_db_db_4=yes
29028 else
29029   echo "$as_me: failed program was:" >&5
29030 sed 's/^/| /' conftest.$ac_ext >&5
29031
29032 ol_cv_db_db_4=no
29033 fi
29034 rm -f conftest.err conftest.$ac_objext \
29035       conftest$ac_exeext conftest.$ac_ext
29036
29037         LIBS="$ol_LIBS"
29038
29039 fi
29040 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29041 echo "${ECHO_T}$ol_cv_db_db_4" >&6
29042
29043         if test $ol_cv_db_db_4 = yes ; then
29044                 ol_cv_lib_db=-ldb-4
29045         fi
29046 fi
29047
29048         if test $ol_cv_lib_db = no ; then
29049         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29050 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
29051 if test "${ol_cv_db_db4+set}" = set; then
29052   echo $ECHO_N "(cached) $ECHO_C" >&6
29053 else
29054
29055         ol_DB_LIB=-ldb4
29056         ol_LIBS=$LIBS
29057         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29058
29059         cat >conftest.$ac_ext <<_ACEOF
29060 /* confdefs.h.  */
29061 _ACEOF
29062 cat confdefs.h >>conftest.$ac_ext
29063 cat >>conftest.$ac_ext <<_ACEOF
29064 /* end confdefs.h.  */
29065
29066 #ifdef HAVE_DB_185_H
29067 # include <db_185.h>
29068 #else
29069 # include <db.h>
29070 #endif
29071
29072 #ifndef DB_VERSION_MAJOR
29073 # define DB_VERSION_MAJOR 1
29074 #endif
29075
29076 #ifndef NULL
29077 #define NULL ((void*)0)
29078 #endif
29079
29080 int
29081 main ()
29082 {
29083
29084 #if DB_VERSION_MAJOR > 2
29085         db_env_create( NULL, 0 );
29086 #elif DB_VERSION_MAJOR > 1
29087         db_appexit( NULL );
29088 #else
29089         (void) dbopen( NULL, 0, 0, 0, NULL);
29090 #endif
29091
29092   ;
29093   return 0;
29094 }
29095 _ACEOF
29096 rm -f conftest.$ac_objext conftest$ac_exeext
29097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29098   (eval $ac_link) 2>conftest.er1
29099   ac_status=$?
29100   grep -v '^ *+' conftest.er1 >conftest.err
29101   rm -f conftest.er1
29102   cat conftest.err >&5
29103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104   (exit $ac_status); } &&
29105          { ac_try='test -z "$ac_c_werror_flag"
29106                          || test ! -s conftest.err'
29107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108   (eval $ac_try) 2>&5
29109   ac_status=$?
29110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111   (exit $ac_status); }; } &&
29112          { ac_try='test -s conftest$ac_exeext'
29113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114   (eval $ac_try) 2>&5
29115   ac_status=$?
29116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117   (exit $ac_status); }; }; then
29118   ol_cv_db_db4=yes
29119 else
29120   echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29122
29123 ol_cv_db_db4=no
29124 fi
29125 rm -f conftest.err conftest.$ac_objext \
29126       conftest$ac_exeext conftest.$ac_ext
29127
29128         LIBS="$ol_LIBS"
29129
29130 fi
29131 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29132 echo "${ECHO_T}$ol_cv_db_db4" >&6
29133
29134         if test $ol_cv_db_db4 = yes ; then
29135                 ol_cv_lib_db=-ldb4
29136         fi
29137 fi
29138
29139         if test $ol_cv_lib_db = no ; then
29140         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29141 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29142 if test "${ol_cv_db_db+set}" = set; then
29143   echo $ECHO_N "(cached) $ECHO_C" >&6
29144 else
29145
29146         ol_DB_LIB=-ldb
29147         ol_LIBS=$LIBS
29148         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29149
29150         cat >conftest.$ac_ext <<_ACEOF
29151 /* confdefs.h.  */
29152 _ACEOF
29153 cat confdefs.h >>conftest.$ac_ext
29154 cat >>conftest.$ac_ext <<_ACEOF
29155 /* end confdefs.h.  */
29156
29157 #ifdef HAVE_DB_185_H
29158 # include <db_185.h>
29159 #else
29160 # include <db.h>
29161 #endif
29162
29163 #ifndef DB_VERSION_MAJOR
29164 # define DB_VERSION_MAJOR 1
29165 #endif
29166
29167 #ifndef NULL
29168 #define NULL ((void*)0)
29169 #endif
29170
29171 int
29172 main ()
29173 {
29174
29175 #if DB_VERSION_MAJOR > 2
29176         db_env_create( NULL, 0 );
29177 #elif DB_VERSION_MAJOR > 1
29178         db_appexit( NULL );
29179 #else
29180         (void) dbopen( NULL, 0, 0, 0, NULL);
29181 #endif
29182
29183   ;
29184   return 0;
29185 }
29186 _ACEOF
29187 rm -f conftest.$ac_objext conftest$ac_exeext
29188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29189   (eval $ac_link) 2>conftest.er1
29190   ac_status=$?
29191   grep -v '^ *+' conftest.er1 >conftest.err
29192   rm -f conftest.er1
29193   cat conftest.err >&5
29194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195   (exit $ac_status); } &&
29196          { ac_try='test -z "$ac_c_werror_flag"
29197                          || test ! -s conftest.err'
29198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29199   (eval $ac_try) 2>&5
29200   ac_status=$?
29201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202   (exit $ac_status); }; } &&
29203          { ac_try='test -s conftest$ac_exeext'
29204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29205   (eval $ac_try) 2>&5
29206   ac_status=$?
29207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208   (exit $ac_status); }; }; then
29209   ol_cv_db_db=yes
29210 else
29211   echo "$as_me: failed program was:" >&5
29212 sed 's/^/| /' conftest.$ac_ext >&5
29213
29214 ol_cv_db_db=no
29215 fi
29216 rm -f conftest.err conftest.$ac_objext \
29217       conftest$ac_exeext conftest.$ac_ext
29218
29219         LIBS="$ol_LIBS"
29220
29221 fi
29222 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29223 echo "${ECHO_T}$ol_cv_db_db" >&6
29224
29225         if test $ol_cv_db_db = yes ; then
29226                 ol_cv_lib_db=-ldb
29227         fi
29228 fi
29229
29230 fi
29231 if test $ol_cv_lib_db = no ; then
29232         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29233 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
29234 if test "${ol_cv_db_none+set}" = set; then
29235   echo $ECHO_N "(cached) $ECHO_C" >&6
29236 else
29237
29238         ol_DB_LIB=
29239         ol_LIBS=$LIBS
29240         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29241
29242         cat >conftest.$ac_ext <<_ACEOF
29243 /* confdefs.h.  */
29244 _ACEOF
29245 cat confdefs.h >>conftest.$ac_ext
29246 cat >>conftest.$ac_ext <<_ACEOF
29247 /* end confdefs.h.  */
29248
29249 #ifdef HAVE_DB_185_H
29250 # include <db_185.h>
29251 #else
29252 # include <db.h>
29253 #endif
29254
29255 #ifndef DB_VERSION_MAJOR
29256 # define DB_VERSION_MAJOR 1
29257 #endif
29258
29259 #ifndef NULL
29260 #define NULL ((void*)0)
29261 #endif
29262
29263 int
29264 main ()
29265 {
29266
29267 #if DB_VERSION_MAJOR > 2
29268         db_env_create( NULL, 0 );
29269 #elif DB_VERSION_MAJOR > 1
29270         db_appexit( NULL );
29271 #else
29272         (void) dbopen( NULL, 0, 0, 0, NULL);
29273 #endif
29274
29275   ;
29276   return 0;
29277 }
29278 _ACEOF
29279 rm -f conftest.$ac_objext conftest$ac_exeext
29280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29281   (eval $ac_link) 2>conftest.er1
29282   ac_status=$?
29283   grep -v '^ *+' conftest.er1 >conftest.err
29284   rm -f conftest.er1
29285   cat conftest.err >&5
29286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287   (exit $ac_status); } &&
29288          { ac_try='test -z "$ac_c_werror_flag"
29289                          || test ! -s conftest.err'
29290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29291   (eval $ac_try) 2>&5
29292   ac_status=$?
29293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294   (exit $ac_status); }; } &&
29295          { ac_try='test -s conftest$ac_exeext'
29296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29297   (eval $ac_try) 2>&5
29298   ac_status=$?
29299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300   (exit $ac_status); }; }; then
29301   ol_cv_db_none=yes
29302 else
29303   echo "$as_me: failed program was:" >&5
29304 sed 's/^/| /' conftest.$ac_ext >&5
29305
29306 ol_cv_db_none=no
29307 fi
29308 rm -f conftest.err conftest.$ac_objext \
29309       conftest$ac_exeext conftest.$ac_ext
29310
29311         LIBS="$ol_LIBS"
29312
29313 fi
29314 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29315 echo "${ECHO_T}$ol_cv_db_none" >&6
29316
29317         if test $ol_cv_db_none = yes ; then
29318                 ol_cv_lib_db=yes
29319         fi
29320 fi
29321
29322
29323         if test "$ol_cv_lib_db" != no ; then
29324                 ol_cv_berkeley_db=yes
29325                 echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29326 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6
29327 if test "${ol_cv_berkeley_db_version+set}" = set; then
29328   echo $ECHO_N "(cached) $ECHO_C" >&6
29329 else
29330
29331         ol_LIBS="$LIBS"
29332         LIBS="$LTHREAD_LIBS $LIBS"
29333         if test $ol_cv_lib_db != yes ; then
29334                 LIBS="$ol_cv_lib_db $LIBS"
29335         fi
29336
29337         if test "$cross_compiling" = yes; then
29338   ol_cv_berkeley_db_version=cross
29339 else
29340   cat >conftest.$ac_ext <<_ACEOF
29341 /* confdefs.h.  */
29342 _ACEOF
29343 cat confdefs.h >>conftest.$ac_ext
29344 cat >>conftest.$ac_ext <<_ACEOF
29345 /* end confdefs.h.  */
29346
29347 #ifdef HAVE_DB_185_H
29348         choke me;
29349 #else
29350 #include <db.h>
29351 #endif
29352 #ifndef DB_VERSION_MAJOR
29353 # define DB_VERSION_MAJOR 1
29354 #endif
29355 #ifndef NULL
29356 #define NULL ((void *)0)
29357 #endif
29358 main()
29359 {
29360 #if DB_VERSION_MAJOR > 1
29361         char *version;
29362         int major, minor, patch;
29363
29364         version = db_version( &major, &minor, &patch );
29365
29366         if( major != DB_VERSION_MAJOR ||
29367                 minor != DB_VERSION_MINOR ||
29368                 patch != DB_VERSION_PATCH )
29369         {
29370                 printf("Berkeley DB version mismatch\n"
29371                         "\theader: %s\n\tlibrary: %s\n",
29372                         DB_VERSION_STRING, version);
29373                 return 1;
29374         }
29375 #endif
29376
29377         return 0;
29378 }
29379 _ACEOF
29380 rm -f conftest$ac_exeext
29381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29382   (eval $ac_link) 2>&5
29383   ac_status=$?
29384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387   (eval $ac_try) 2>&5
29388   ac_status=$?
29389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390   (exit $ac_status); }; }; then
29391   ol_cv_berkeley_db_version=yes
29392 else
29393   echo "$as_me: program exited with status $ac_status" >&5
29394 echo "$as_me: failed program was:" >&5
29395 sed 's/^/| /' conftest.$ac_ext >&5
29396
29397 ( exit $ac_status )
29398 ol_cv_berkeley_db_version=no
29399 fi
29400 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29401 fi
29402
29403         LIBS="$ol_LIBS"
29404
29405 fi
29406 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29407 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
29408
29409         if test $ol_cv_berkeley_db_version = no ; then
29410                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29411 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29412    { (exit 1); exit 1; }; }
29413         fi
29414
29415                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29416 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
29417 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29418   echo $ECHO_N "(cached) $ECHO_C" >&6
29419 else
29420
29421         ol_LIBS="$LIBS"
29422         LIBS="$LTHREAD_LIBS $LIBS"
29423         if test $ol_cv_lib_db != yes ; then
29424                 LIBS="$ol_cv_lib_db $LIBS"
29425         fi
29426
29427         if test "$cross_compiling" = yes; then
29428   ol_cv_berkeley_db_thread=cross
29429 else
29430   cat >conftest.$ac_ext <<_ACEOF
29431 /* confdefs.h.  */
29432 _ACEOF
29433 cat confdefs.h >>conftest.$ac_ext
29434 cat >>conftest.$ac_ext <<_ACEOF
29435 /* end confdefs.h.  */
29436
29437 #ifdef HAVE_DB_185_H
29438         choke me;
29439 #else
29440 #include <db.h>
29441 #endif
29442 #ifndef NULL
29443 #define NULL ((void *)0)
29444 #endif
29445 main()
29446 {
29447         int rc;
29448         u_int32_t flags = DB_CREATE |
29449 #ifdef DB_PRIVATE
29450                 DB_PRIVATE |
29451 #endif
29452                 DB_THREAD;
29453
29454 #if DB_VERSION_MAJOR > 2
29455         DB_ENV *env = NULL;
29456
29457         rc = db_env_create( &env, 0 );
29458
29459         flags |= DB_INIT_MPOOL;
29460 #ifdef DB_MPOOL_PRIVATE
29461         flags |= DB_MPOOL_PRIVATE;
29462 #endif
29463
29464         if( rc ) {
29465                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29466                 return rc;
29467         }
29468
29469 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29470         rc = (env->open)( env, NULL, flags, 0 );
29471 #else
29472         rc = (env->open)( env, NULL, NULL, flags, 0 );
29473 #endif
29474
29475         if ( rc == 0 ) {
29476                 rc = env->close( env, 0 );
29477         }
29478
29479         if( rc ) {
29480                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29481                 return rc;
29482         }
29483
29484 #else
29485         DB_ENV env;
29486         memset( &env, '\0', sizeof(env) );
29487
29488         rc = db_appinit( NULL, NULL, &env, flags );
29489
29490         if( rc == 0 ) {
29491                 db_appexit( &env );
29492         }
29493
29494         unlink("__db_mpool.share");
29495         unlink("__db_lock.share");
29496 #endif
29497
29498         return rc;
29499 }
29500 _ACEOF
29501 rm -f conftest$ac_exeext
29502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29503   (eval $ac_link) 2>&5
29504   ac_status=$?
29505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29508   (eval $ac_try) 2>&5
29509   ac_status=$?
29510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511   (exit $ac_status); }; }; then
29512   ol_cv_berkeley_db_thread=yes
29513 else
29514   echo "$as_me: program exited with status $ac_status" >&5
29515 echo "$as_me: failed program was:" >&5
29516 sed 's/^/| /' conftest.$ac_ext >&5
29517
29518 ( exit $ac_status )
29519 ol_cv_berkeley_db_thread=no
29520 fi
29521 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29522 fi
29523
29524         LIBS="$ol_LIBS"
29525
29526 fi
29527 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29528 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
29529
29530         if test $ol_cv_berkeley_db_thread != no ; then
29531
29532 cat >>confdefs.h <<\_ACEOF
29533 #define HAVE_BERKELEY_DB_THREAD 1
29534 _ACEOF
29535
29536         fi
29537
29538         fi
29539 fi
29540
29541
29542         if test $ol_cv_berkeley_db = no ; then
29543                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29544 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29545    { (exit 1); exit 1; }; }
29546         fi
29547
29548
29549 cat >>confdefs.h <<\_ACEOF
29550 #define HAVE_BERKELEY_DB 1
29551 _ACEOF
29552
29553
29554                         if test $ol_cv_lib_db != yes ; then
29555                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29556         fi
29557
29558         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29559
29560         ol_link_bdb=yes
29561 fi
29562
29563
29564 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29565         BUILD_LIBS_DYNAMIC=shared
29566
29567 cat >>confdefs.h <<\_ACEOF
29568 #define LDAP_LIBS_DYNAMIC 1
29569 _ACEOF
29570
29571         LTSTATIC=""
29572 else
29573         BUILD_LIBS_DYNAMIC=static
29574         LTSTATIC="-static"
29575 fi
29576
29577 if test $ol_enable_wrappers != no ; then
29578
29579 for ac_header in tcpd.h
29580 do
29581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29583   echo "$as_me:$LINENO: checking for $ac_header" >&5
29584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29586   echo $ECHO_N "(cached) $ECHO_C" >&6
29587 fi
29588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29590 else
29591   # Is the header compilable?
29592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29594 cat >conftest.$ac_ext <<_ACEOF
29595 /* confdefs.h.  */
29596 _ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h.  */
29600 $ac_includes_default
29601 #include <$ac_header>
29602 _ACEOF
29603 rm -f conftest.$ac_objext
29604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29605   (eval $ac_compile) 2>conftest.er1
29606   ac_status=$?
29607   grep -v '^ *+' conftest.er1 >conftest.err
29608   rm -f conftest.er1
29609   cat conftest.err >&5
29610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611   (exit $ac_status); } &&
29612          { ac_try='test -z "$ac_c_werror_flag"
29613                          || test ! -s conftest.err'
29614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29615   (eval $ac_try) 2>&5
29616   ac_status=$?
29617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618   (exit $ac_status); }; } &&
29619          { ac_try='test -s conftest.$ac_objext'
29620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621   (eval $ac_try) 2>&5
29622   ac_status=$?
29623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624   (exit $ac_status); }; }; then
29625   ac_header_compiler=yes
29626 else
29627   echo "$as_me: failed program was:" >&5
29628 sed 's/^/| /' conftest.$ac_ext >&5
29629
29630 ac_header_compiler=no
29631 fi
29632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29634 echo "${ECHO_T}$ac_header_compiler" >&6
29635
29636 # Is the header present?
29637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29639 cat >conftest.$ac_ext <<_ACEOF
29640 /* confdefs.h.  */
29641 _ACEOF
29642 cat confdefs.h >>conftest.$ac_ext
29643 cat >>conftest.$ac_ext <<_ACEOF
29644 /* end confdefs.h.  */
29645 #include <$ac_header>
29646 _ACEOF
29647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29648   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29649   ac_status=$?
29650   grep -v '^ *+' conftest.er1 >conftest.err
29651   rm -f conftest.er1
29652   cat conftest.err >&5
29653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654   (exit $ac_status); } >/dev/null; then
29655   if test -s conftest.err; then
29656     ac_cpp_err=$ac_c_preproc_warn_flag
29657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29658   else
29659     ac_cpp_err=
29660   fi
29661 else
29662   ac_cpp_err=yes
29663 fi
29664 if test -z "$ac_cpp_err"; then
29665   ac_header_preproc=yes
29666 else
29667   echo "$as_me: failed program was:" >&5
29668 sed 's/^/| /' conftest.$ac_ext >&5
29669
29670   ac_header_preproc=no
29671 fi
29672 rm -f conftest.err conftest.$ac_ext
29673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29674 echo "${ECHO_T}$ac_header_preproc" >&6
29675
29676 # So?  What about this header?
29677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29678   yes:no: )
29679     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29683     ac_header_preproc=yes
29684     ;;
29685   no:yes:* )
29686     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29688     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29689 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29690     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29692     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29693 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29696     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29698     (
29699       cat <<\_ASBOX
29700 ## --------------------------------------------- ##
29701 ## Report this to <http://www.openldap.org/its/> ##
29702 ## --------------------------------------------- ##
29703 _ASBOX
29704     ) |
29705       sed "s/^/$as_me: WARNING:     /" >&2
29706     ;;
29707 esac
29708 echo "$as_me:$LINENO: checking for $ac_header" >&5
29709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29711   echo $ECHO_N "(cached) $ECHO_C" >&6
29712 else
29713   eval "$as_ac_Header=\$ac_header_preproc"
29714 fi
29715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29717
29718 fi
29719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29720   cat >>confdefs.h <<_ACEOF
29721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29722 _ACEOF
29723
29724                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29725 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
29726                 save_LIBS="$LIBS"
29727                 LIBS="$LIBS -lwrap"
29728                 cat >conftest.$ac_ext <<_ACEOF
29729 /* confdefs.h.  */
29730 _ACEOF
29731 cat confdefs.h >>conftest.$ac_ext
29732 cat >>conftest.$ac_ext <<_ACEOF
29733 /* end confdefs.h.  */
29734
29735 #include <tcpd.h>
29736 int allow_severity = 0;
29737 int deny_severity  = 0;
29738
29739 struct request_info *req;
29740
29741 int
29742 main ()
29743 {
29744
29745 hosts_access(req)
29746
29747   ;
29748   return 0;
29749 }
29750 _ACEOF
29751 rm -f conftest.$ac_objext conftest$ac_exeext
29752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29753   (eval $ac_link) 2>conftest.er1
29754   ac_status=$?
29755   grep -v '^ *+' conftest.er1 >conftest.err
29756   rm -f conftest.er1
29757   cat conftest.err >&5
29758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759   (exit $ac_status); } &&
29760          { ac_try='test -z "$ac_c_werror_flag"
29761                          || test ! -s conftest.err'
29762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763   (eval $ac_try) 2>&5
29764   ac_status=$?
29765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766   (exit $ac_status); }; } &&
29767          { ac_try='test -s conftest$ac_exeext'
29768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29769   (eval $ac_try) 2>&5
29770   ac_status=$?
29771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772   (exit $ac_status); }; }; then
29773   echo "$as_me:$LINENO: result: -lwrap" >&5
29774 echo "${ECHO_T}-lwrap" >&6
29775                 have_wrappers=yes
29776                 LIBS="$save_LIBS"
29777 else
29778   echo "$as_me: failed program was:" >&5
29779 sed 's/^/| /' conftest.$ac_ext >&5
29780
29781
29782                                 LIBS="$LIBS -lnsl"
29783                 cat >conftest.$ac_ext <<_ACEOF
29784 /* confdefs.h.  */
29785 _ACEOF
29786 cat confdefs.h >>conftest.$ac_ext
29787 cat >>conftest.$ac_ext <<_ACEOF
29788 /* end confdefs.h.  */
29789
29790 #include <tcpd.h>
29791 int allow_severity = 0;
29792 int deny_severity  = 0;
29793
29794 struct request_info *req;
29795
29796 int
29797 main ()
29798 {
29799
29800 hosts_access(req)
29801
29802   ;
29803   return 0;
29804 }
29805 _ACEOF
29806 rm -f conftest.$ac_objext conftest$ac_exeext
29807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29808   (eval $ac_link) 2>conftest.er1
29809   ac_status=$?
29810   grep -v '^ *+' conftest.er1 >conftest.err
29811   rm -f conftest.er1
29812   cat conftest.err >&5
29813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814   (exit $ac_status); } &&
29815          { ac_try='test -z "$ac_c_werror_flag"
29816                          || test ! -s conftest.err'
29817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29818   (eval $ac_try) 2>&5
29819   ac_status=$?
29820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821   (exit $ac_status); }; } &&
29822          { ac_try='test -s conftest$ac_exeext'
29823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29824   (eval $ac_try) 2>&5
29825   ac_status=$?
29826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827   (exit $ac_status); }; }; then
29828   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29829 echo "${ECHO_T}-lwrap -lnsl" >&6
29830                 have_wrappers=yes
29831                 LIBS="$save_LIBS -lnsl"
29832 else
29833   echo "$as_me: failed program was:" >&5
29834 sed 's/^/| /' conftest.$ac_ext >&5
29835
29836
29837                 echo "$as_me:$LINENO: result: no" >&5
29838 echo "${ECHO_T}no" >&6
29839                 have_wrappers=no
29840                 LIBS=$save_LIBS
29841 fi
29842 rm -f conftest.err conftest.$ac_objext \
29843       conftest$ac_exeext conftest.$ac_ext
29844 fi
29845 rm -f conftest.err conftest.$ac_objext \
29846       conftest$ac_exeext conftest.$ac_ext
29847 else
29848   have_wrappers=no
29849 fi
29850
29851 done
29852
29853
29854         if test $have_wrappers = yes ; then
29855
29856 cat >>confdefs.h <<\_ACEOF
29857 #define HAVE_TCPD 1
29858 _ACEOF
29859
29860                 WRAP_LIBS="-lwrap"
29861         elif test $ol_enable_wrappers = yes ; then
29862                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29863 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29864    { (exit 1); exit 1; }; }
29865         else
29866                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29867 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29868                 WRAP_LIBS=""
29869         fi
29870 fi
29871
29872 if test $ol_enable_syslog != no ; then
29873         echo "$as_me:$LINENO: checking for openlog" >&5
29874 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
29875 if test "${ac_cv_func_openlog+set}" = set; then
29876   echo $ECHO_N "(cached) $ECHO_C" >&6
29877 else
29878   cat >conftest.$ac_ext <<_ACEOF
29879 /* confdefs.h.  */
29880 _ACEOF
29881 cat confdefs.h >>conftest.$ac_ext
29882 cat >>conftest.$ac_ext <<_ACEOF
29883 /* end confdefs.h.  */
29884 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29886 #define openlog innocuous_openlog
29887
29888 /* System header to define __stub macros and hopefully few prototypes,
29889     which can conflict with char openlog (); below.
29890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29891     <limits.h> exists even on freestanding compilers.  */
29892
29893 #ifdef __STDC__
29894 # include <limits.h>
29895 #else
29896 # include <assert.h>
29897 #endif
29898
29899 #undef openlog
29900
29901 /* Override any gcc2 internal prototype to avoid an error.  */
29902 #ifdef __cplusplus
29903 extern "C"
29904 {
29905 #endif
29906 /* We use char because int might match the return type of a gcc2
29907    builtin and then its argument prototype would still apply.  */
29908 char openlog ();
29909 /* The GNU C library defines this for functions which it implements
29910     to always fail with ENOSYS.  Some functions are actually named
29911     something starting with __ and the normal name is an alias.  */
29912 #if defined (__stub_openlog) || defined (__stub___openlog)
29913 choke me
29914 #else
29915 char (*f) () = openlog;
29916 #endif
29917 #ifdef __cplusplus
29918 }
29919 #endif
29920
29921 int
29922 main ()
29923 {
29924 return f != openlog;
29925   ;
29926   return 0;
29927 }
29928 _ACEOF
29929 rm -f conftest.$ac_objext conftest$ac_exeext
29930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29931   (eval $ac_link) 2>conftest.er1
29932   ac_status=$?
29933   grep -v '^ *+' conftest.er1 >conftest.err
29934   rm -f conftest.er1
29935   cat conftest.err >&5
29936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937   (exit $ac_status); } &&
29938          { ac_try='test -z "$ac_c_werror_flag"
29939                          || test ! -s conftest.err'
29940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941   (eval $ac_try) 2>&5
29942   ac_status=$?
29943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944   (exit $ac_status); }; } &&
29945          { ac_try='test -s conftest$ac_exeext'
29946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29947   (eval $ac_try) 2>&5
29948   ac_status=$?
29949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950   (exit $ac_status); }; }; then
29951   ac_cv_func_openlog=yes
29952 else
29953   echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29955
29956 ac_cv_func_openlog=no
29957 fi
29958 rm -f conftest.err conftest.$ac_objext \
29959       conftest$ac_exeext conftest.$ac_ext
29960 fi
29961 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29962 echo "${ECHO_T}$ac_cv_func_openlog" >&6
29963
29964         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29965                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29966 echo "$as_me: error: could not find syslog" >&2;}
29967    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29968         fi
29969         ol_enable_syslog=$ac_cv_func_openlog
29970 fi
29971
29972 ol_link_sql=no
29973 if test $ol_enable_sql != no ; then
29974
29975
29976 for ac_header in sql.h sqlext.h
29977 do
29978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29980   echo "$as_me:$LINENO: checking for $ac_header" >&5
29981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29983   echo $ECHO_N "(cached) $ECHO_C" >&6
29984 fi
29985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29987 else
29988   # Is the header compilable?
29989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29991 cat >conftest.$ac_ext <<_ACEOF
29992 /* confdefs.h.  */
29993 _ACEOF
29994 cat confdefs.h >>conftest.$ac_ext
29995 cat >>conftest.$ac_ext <<_ACEOF
29996 /* end confdefs.h.  */
29997 $ac_includes_default
29998 #include <$ac_header>
29999 _ACEOF
30000 rm -f conftest.$ac_objext
30001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30002   (eval $ac_compile) 2>conftest.er1
30003   ac_status=$?
30004   grep -v '^ *+' conftest.er1 >conftest.err
30005   rm -f conftest.er1
30006   cat conftest.err >&5
30007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008   (exit $ac_status); } &&
30009          { ac_try='test -z "$ac_c_werror_flag"
30010                          || test ! -s conftest.err'
30011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30012   (eval $ac_try) 2>&5
30013   ac_status=$?
30014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015   (exit $ac_status); }; } &&
30016          { ac_try='test -s conftest.$ac_objext'
30017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30018   (eval $ac_try) 2>&5
30019   ac_status=$?
30020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021   (exit $ac_status); }; }; then
30022   ac_header_compiler=yes
30023 else
30024   echo "$as_me: failed program was:" >&5
30025 sed 's/^/| /' conftest.$ac_ext >&5
30026
30027 ac_header_compiler=no
30028 fi
30029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30031 echo "${ECHO_T}$ac_header_compiler" >&6
30032
30033 # Is the header present?
30034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30036 cat >conftest.$ac_ext <<_ACEOF
30037 /* confdefs.h.  */
30038 _ACEOF
30039 cat confdefs.h >>conftest.$ac_ext
30040 cat >>conftest.$ac_ext <<_ACEOF
30041 /* end confdefs.h.  */
30042 #include <$ac_header>
30043 _ACEOF
30044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30046   ac_status=$?
30047   grep -v '^ *+' conftest.er1 >conftest.err
30048   rm -f conftest.er1
30049   cat conftest.err >&5
30050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051   (exit $ac_status); } >/dev/null; then
30052   if test -s conftest.err; then
30053     ac_cpp_err=$ac_c_preproc_warn_flag
30054     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30055   else
30056     ac_cpp_err=
30057   fi
30058 else
30059   ac_cpp_err=yes
30060 fi
30061 if test -z "$ac_cpp_err"; then
30062   ac_header_preproc=yes
30063 else
30064   echo "$as_me: failed program was:" >&5
30065 sed 's/^/| /' conftest.$ac_ext >&5
30066
30067   ac_header_preproc=no
30068 fi
30069 rm -f conftest.err conftest.$ac_ext
30070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30071 echo "${ECHO_T}$ac_header_preproc" >&6
30072
30073 # So?  What about this header?
30074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30075   yes:no: )
30076     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30080     ac_header_preproc=yes
30081     ;;
30082   no:yes:* )
30083     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30085     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30086 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30087     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30089     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30090 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30093     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30095     (
30096       cat <<\_ASBOX
30097 ## --------------------------------------------- ##
30098 ## Report this to <http://www.openldap.org/its/> ##
30099 ## --------------------------------------------- ##
30100 _ASBOX
30101     ) |
30102       sed "s/^/$as_me: WARNING:     /" >&2
30103     ;;
30104 esac
30105 echo "$as_me:$LINENO: checking for $ac_header" >&5
30106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30108   echo $ECHO_N "(cached) $ECHO_C" >&6
30109 else
30110   eval "$as_ac_Header=\$ac_header_preproc"
30111 fi
30112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30114
30115 fi
30116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30117   cat >>confdefs.h <<_ACEOF
30118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30119 _ACEOF
30120
30121 else
30122
30123                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
30124 echo "$as_me: error: could not locate SQL headers" >&2;}
30125    { (exit 1); exit 1; }; }
30126
30127 fi
30128
30129 done
30130
30131
30132         sql_LIBS="$LIBS"
30133         LIBS="$LTHREAD_LIBS"
30134
30135         if test $ol_with_odbc = auto ; then
30136                 ol_with_odbc="iodbc unixodbc odbc32"
30137         fi
30138
30139         for odbc in $ol_with_odbc ; do
30140                 if test $ol_link_sql = no ; then
30141                         case $odbc in
30142                         iodbc)
30143                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
30144 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
30145 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
30146   echo $ECHO_N "(cached) $ECHO_C" >&6
30147 else
30148   ac_check_lib_save_LIBS=$LIBS
30149 LIBS="-liodbc  $LIBS"
30150 cat >conftest.$ac_ext <<_ACEOF
30151 /* confdefs.h.  */
30152 _ACEOF
30153 cat confdefs.h >>conftest.$ac_ext
30154 cat >>conftest.$ac_ext <<_ACEOF
30155 /* end confdefs.h.  */
30156
30157 /* Override any gcc2 internal prototype to avoid an error.  */
30158 #ifdef __cplusplus
30159 extern "C"
30160 #endif
30161 /* We use char because int might match the return type of a gcc2
30162    builtin and then its argument prototype would still apply.  */
30163 char SQLDriverConnect ();
30164 int
30165 main ()
30166 {
30167 SQLDriverConnect ();
30168   ;
30169   return 0;
30170 }
30171 _ACEOF
30172 rm -f conftest.$ac_objext conftest$ac_exeext
30173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30174   (eval $ac_link) 2>conftest.er1
30175   ac_status=$?
30176   grep -v '^ *+' conftest.er1 >conftest.err
30177   rm -f conftest.er1
30178   cat conftest.err >&5
30179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180   (exit $ac_status); } &&
30181          { ac_try='test -z "$ac_c_werror_flag"
30182                          || test ! -s conftest.err'
30183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30184   (eval $ac_try) 2>&5
30185   ac_status=$?
30186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30187   (exit $ac_status); }; } &&
30188          { ac_try='test -s conftest$ac_exeext'
30189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30190   (eval $ac_try) 2>&5
30191   ac_status=$?
30192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193   (exit $ac_status); }; }; then
30194   ac_cv_lib_iodbc_SQLDriverConnect=yes
30195 else
30196   echo "$as_me: failed program was:" >&5
30197 sed 's/^/| /' conftest.$ac_ext >&5
30198
30199 ac_cv_lib_iodbc_SQLDriverConnect=no
30200 fi
30201 rm -f conftest.err conftest.$ac_objext \
30202       conftest$ac_exeext conftest.$ac_ext
30203 LIBS=$ac_check_lib_save_LIBS
30204 fi
30205 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
30206 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
30207 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
30208   have_iodbc=yes
30209 else
30210   have_iodbc=no
30211 fi
30212
30213                                 if test $have_iodbc = yes ; then
30214                                         ol_link_sql="-liodbc"
30215                                 fi
30216                                 ;;
30217
30218                         unixodbc)
30219                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
30220 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
30221 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
30222   echo $ECHO_N "(cached) $ECHO_C" >&6
30223 else
30224   ac_check_lib_save_LIBS=$LIBS
30225 LIBS="-lodbc  $LIBS"
30226 cat >conftest.$ac_ext <<_ACEOF
30227 /* confdefs.h.  */
30228 _ACEOF
30229 cat confdefs.h >>conftest.$ac_ext
30230 cat >>conftest.$ac_ext <<_ACEOF
30231 /* end confdefs.h.  */
30232
30233 /* Override any gcc2 internal prototype to avoid an error.  */
30234 #ifdef __cplusplus
30235 extern "C"
30236 #endif
30237 /* We use char because int might match the return type of a gcc2
30238    builtin and then its argument prototype would still apply.  */
30239 char SQLDriverConnect ();
30240 int
30241 main ()
30242 {
30243 SQLDriverConnect ();
30244   ;
30245   return 0;
30246 }
30247 _ACEOF
30248 rm -f conftest.$ac_objext conftest$ac_exeext
30249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30250   (eval $ac_link) 2>conftest.er1
30251   ac_status=$?
30252   grep -v '^ *+' conftest.er1 >conftest.err
30253   rm -f conftest.er1
30254   cat conftest.err >&5
30255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256   (exit $ac_status); } &&
30257          { ac_try='test -z "$ac_c_werror_flag"
30258                          || test ! -s conftest.err'
30259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30260   (eval $ac_try) 2>&5
30261   ac_status=$?
30262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263   (exit $ac_status); }; } &&
30264          { ac_try='test -s conftest$ac_exeext'
30265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30266   (eval $ac_try) 2>&5
30267   ac_status=$?
30268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269   (exit $ac_status); }; }; then
30270   ac_cv_lib_odbc_SQLDriverConnect=yes
30271 else
30272   echo "$as_me: failed program was:" >&5
30273 sed 's/^/| /' conftest.$ac_ext >&5
30274
30275 ac_cv_lib_odbc_SQLDriverConnect=no
30276 fi
30277 rm -f conftest.err conftest.$ac_objext \
30278       conftest$ac_exeext conftest.$ac_ext
30279 LIBS=$ac_check_lib_save_LIBS
30280 fi
30281 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30282 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
30283 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30284   have_odbc=yes
30285 else
30286   have_odbc=no
30287 fi
30288
30289                                 if test $have_odbc = yes ; then
30290                                         ol_link_sql="-lodbc"
30291                                 fi
30292                                 ;;
30293
30294                         odbc32)
30295                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30296 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6
30297 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30298   echo $ECHO_N "(cached) $ECHO_C" >&6
30299 else
30300   ac_check_lib_save_LIBS=$LIBS
30301 LIBS="-lodbc32  $LIBS"
30302 cat >conftest.$ac_ext <<_ACEOF
30303 /* confdefs.h.  */
30304 _ACEOF
30305 cat confdefs.h >>conftest.$ac_ext
30306 cat >>conftest.$ac_ext <<_ACEOF
30307 /* end confdefs.h.  */
30308
30309 /* Override any gcc2 internal prototype to avoid an error.  */
30310 #ifdef __cplusplus
30311 extern "C"
30312 #endif
30313 /* We use char because int might match the return type of a gcc2
30314    builtin and then its argument prototype would still apply.  */
30315 char SQLDriverConnect ();
30316 int
30317 main ()
30318 {
30319 SQLDriverConnect ();
30320   ;
30321   return 0;
30322 }
30323 _ACEOF
30324 rm -f conftest.$ac_objext conftest$ac_exeext
30325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30326   (eval $ac_link) 2>conftest.er1
30327   ac_status=$?
30328   grep -v '^ *+' conftest.er1 >conftest.err
30329   rm -f conftest.er1
30330   cat conftest.err >&5
30331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332   (exit $ac_status); } &&
30333          { ac_try='test -z "$ac_c_werror_flag"
30334                          || test ! -s conftest.err'
30335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30336   (eval $ac_try) 2>&5
30337   ac_status=$?
30338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30339   (exit $ac_status); }; } &&
30340          { ac_try='test -s conftest$ac_exeext'
30341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30342   (eval $ac_try) 2>&5
30343   ac_status=$?
30344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345   (exit $ac_status); }; }; then
30346   ac_cv_lib_odbc32_SQLDriverConnect=yes
30347 else
30348   echo "$as_me: failed program was:" >&5
30349 sed 's/^/| /' conftest.$ac_ext >&5
30350
30351 ac_cv_lib_odbc32_SQLDriverConnect=no
30352 fi
30353 rm -f conftest.err conftest.$ac_objext \
30354       conftest$ac_exeext conftest.$ac_ext
30355 LIBS=$ac_check_lib_save_LIBS
30356 fi
30357 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30358 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6
30359 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30360   have_odbc32=yes
30361 else
30362   have_odbc32=no
30363 fi
30364
30365                                 if test $have_odbc32 = yes ; then
30366                                         ol_link_sql="-lodbc32"
30367                                 fi
30368                                 ;;
30369
30370                         *)
30371                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30372 echo "$as_me: error: unknown ODBC library" >&2;}
30373    { (exit 1); exit 1; }; }
30374                                 ;;
30375                         esac
30376                 fi
30377         done
30378
30379         LIBS="$sql_LIBS"
30380
30381         if test $ol_link_sql != no ; then
30382                 SLAPD_SQL_LIBS="$ol_link_sql"
30383
30384         elif test $ol_enable_sql != auto ; then
30385                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30386 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30387    { (exit 1); exit 1; }; }
30388         fi
30389 fi
30390
30391 ol_link_ndb=no
30392 if test $ol_enable_ndb != no ; then
30393         # Extract the first word of "mysql_config", so it can be a program name with args.
30394 set dummy mysql_config; ac_word=$2
30395 echo "$as_me:$LINENO: checking for $ac_word" >&5
30396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30397 if test "${ac_cv_prog_MYSQL+set}" = set; then
30398   echo $ECHO_N "(cached) $ECHO_C" >&6
30399 else
30400   if test -n "$MYSQL"; then
30401   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30402 else
30403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30404 for as_dir in $PATH
30405 do
30406   IFS=$as_save_IFS
30407   test -z "$as_dir" && as_dir=.
30408   for ac_exec_ext in '' $ac_executable_extensions; do
30409   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30410     ac_cv_prog_MYSQL="yes"
30411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30412     break 2
30413   fi
30414 done
30415 done
30416
30417 fi
30418 fi
30419 MYSQL=$ac_cv_prog_MYSQL
30420 if test -n "$MYSQL"; then
30421   echo "$as_me:$LINENO: result: $MYSQL" >&5
30422 echo "${ECHO_T}$MYSQL" >&6
30423 else
30424   echo "$as_me:$LINENO: result: no" >&5
30425 echo "${ECHO_T}no" >&6
30426 fi
30427
30428         if test "$MYSQL" != yes ; then
30429                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30430 echo "$as_me: error: could not locate mysql_config" >&2;}
30431    { (exit 1); exit 1; }; }
30432         fi
30433
30434         SQL_INC=`mysql_config --include`
30435         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30436
30437         save_CPPFLAGS="$CPPFLAGS"
30438         CPPFLAGS="$SLAPD_NDB_INCS"
30439         echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30440 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6
30441         cat >conftest.$ac_ext <<_ACEOF
30442 /* confdefs.h.  */
30443 _ACEOF
30444 cat confdefs.h >>conftest.$ac_ext
30445 cat >>conftest.$ac_ext <<_ACEOF
30446 /* end confdefs.h.  */
30447 #include <NdbApi.hpp>
30448 _ACEOF
30449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30451   ac_status=$?
30452   grep -v '^ *+' conftest.er1 >conftest.err
30453   rm -f conftest.er1
30454   cat conftest.err >&5
30455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456   (exit $ac_status); } >/dev/null; then
30457   if test -s conftest.err; then
30458     ac_cpp_err=$ac_c_preproc_warn_flag
30459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30460   else
30461     ac_cpp_err=
30462   fi
30463 else
30464   ac_cpp_err=yes
30465 fi
30466 if test -z "$ac_cpp_err"; then
30467   echo "$as_me:$LINENO: result: yes" >&5
30468 echo "${ECHO_T}yes" >&6
30469 else
30470   echo "$as_me: failed program was:" >&5
30471 sed 's/^/| /' conftest.$ac_ext >&5
30472
30473   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30474 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30475    { (exit 1); exit 1; }; }
30476
30477 fi
30478 rm -f conftest.err conftest.$ac_ext
30479         CPPFLAGS="$save_CPPFLAGS"
30480
30481         SQL_LIB=`mysql_config --libs_r`
30482         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30483
30484         save_LDFLAGS="$LDFLAGS"
30485         save_LIBS="$LIBS"
30486         LDFLAGS="$SQL_LIB"
30487         echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30488 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6
30489 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30490   echo $ECHO_N "(cached) $ECHO_C" >&6
30491 else
30492   ac_check_lib_save_LIBS=$LIBS
30493 LIBS="-lndbclient -lstdc++ $LIBS"
30494 cat >conftest.$ac_ext <<_ACEOF
30495 /* confdefs.h.  */
30496 _ACEOF
30497 cat confdefs.h >>conftest.$ac_ext
30498 cat >>conftest.$ac_ext <<_ACEOF
30499 /* end confdefs.h.  */
30500
30501 /* Override any gcc2 internal prototype to avoid an error.  */
30502 #ifdef __cplusplus
30503 extern "C"
30504 #endif
30505 /* We use char because int might match the return type of a gcc2
30506    builtin and then its argument prototype would still apply.  */
30507 char ndb_init ();
30508 int
30509 main ()
30510 {
30511 ndb_init ();
30512   ;
30513   return 0;
30514 }
30515 _ACEOF
30516 rm -f conftest.$ac_objext conftest$ac_exeext
30517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30518   (eval $ac_link) 2>conftest.er1
30519   ac_status=$?
30520   grep -v '^ *+' conftest.er1 >conftest.err
30521   rm -f conftest.er1
30522   cat conftest.err >&5
30523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524   (exit $ac_status); } &&
30525          { ac_try='test -z "$ac_c_werror_flag"
30526                          || test ! -s conftest.err'
30527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30528   (eval $ac_try) 2>&5
30529   ac_status=$?
30530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531   (exit $ac_status); }; } &&
30532          { ac_try='test -s conftest$ac_exeext'
30533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30534   (eval $ac_try) 2>&5
30535   ac_status=$?
30536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537   (exit $ac_status); }; }; then
30538   ac_cv_lib_ndbclient_ndb_init=yes
30539 else
30540   echo "$as_me: failed program was:" >&5
30541 sed 's/^/| /' conftest.$ac_ext >&5
30542
30543 ac_cv_lib_ndbclient_ndb_init=no
30544 fi
30545 rm -f conftest.err conftest.$ac_objext \
30546       conftest$ac_exeext conftest.$ac_ext
30547 LIBS=$ac_check_lib_save_LIBS
30548 fi
30549 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30550 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6
30551 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30552   : ok
30553 else
30554
30555                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30556 echo "$as_me: error: could not locate ndbclient library" >&2;}
30557    { (exit 1); exit 1; }; }
30558
30559 fi
30560
30561         LIBS="$save_LIBS"
30562         LDFLAGS="$save_LDFLAGS"
30563
30564         if test "$ol_enable_ndb" = yes ; then
30565                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30566         fi
30567 fi
30568
30569 ol_icu=no
30570
30571 for ac_header in unicode/utypes.h
30572 do
30573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30575   echo "$as_me:$LINENO: checking for $ac_header" >&5
30576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30578   echo $ECHO_N "(cached) $ECHO_C" >&6
30579 fi
30580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30582 else
30583   # Is the header compilable?
30584 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30586 cat >conftest.$ac_ext <<_ACEOF
30587 /* confdefs.h.  */
30588 _ACEOF
30589 cat confdefs.h >>conftest.$ac_ext
30590 cat >>conftest.$ac_ext <<_ACEOF
30591 /* end confdefs.h.  */
30592 $ac_includes_default
30593 #include <$ac_header>
30594 _ACEOF
30595 rm -f conftest.$ac_objext
30596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30597   (eval $ac_compile) 2>conftest.er1
30598   ac_status=$?
30599   grep -v '^ *+' conftest.er1 >conftest.err
30600   rm -f conftest.er1
30601   cat conftest.err >&5
30602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30603   (exit $ac_status); } &&
30604          { ac_try='test -z "$ac_c_werror_flag"
30605                          || test ! -s conftest.err'
30606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30607   (eval $ac_try) 2>&5
30608   ac_status=$?
30609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610   (exit $ac_status); }; } &&
30611          { ac_try='test -s conftest.$ac_objext'
30612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30613   (eval $ac_try) 2>&5
30614   ac_status=$?
30615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616   (exit $ac_status); }; }; then
30617   ac_header_compiler=yes
30618 else
30619   echo "$as_me: failed program was:" >&5
30620 sed 's/^/| /' conftest.$ac_ext >&5
30621
30622 ac_header_compiler=no
30623 fi
30624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30626 echo "${ECHO_T}$ac_header_compiler" >&6
30627
30628 # Is the header present?
30629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30631 cat >conftest.$ac_ext <<_ACEOF
30632 /* confdefs.h.  */
30633 _ACEOF
30634 cat confdefs.h >>conftest.$ac_ext
30635 cat >>conftest.$ac_ext <<_ACEOF
30636 /* end confdefs.h.  */
30637 #include <$ac_header>
30638 _ACEOF
30639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30640   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30641   ac_status=$?
30642   grep -v '^ *+' conftest.er1 >conftest.err
30643   rm -f conftest.er1
30644   cat conftest.err >&5
30645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646   (exit $ac_status); } >/dev/null; then
30647   if test -s conftest.err; then
30648     ac_cpp_err=$ac_c_preproc_warn_flag
30649     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30650   else
30651     ac_cpp_err=
30652   fi
30653 else
30654   ac_cpp_err=yes
30655 fi
30656 if test -z "$ac_cpp_err"; then
30657   ac_header_preproc=yes
30658 else
30659   echo "$as_me: failed program was:" >&5
30660 sed 's/^/| /' conftest.$ac_ext >&5
30661
30662   ac_header_preproc=no
30663 fi
30664 rm -f conftest.err conftest.$ac_ext
30665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30666 echo "${ECHO_T}$ac_header_preproc" >&6
30667
30668 # So?  What about this header?
30669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30670   yes:no: )
30671     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30675     ac_header_preproc=yes
30676     ;;
30677   no:yes:* )
30678     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30680     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30681 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30682     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30684     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30685 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30686     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30688     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30690     (
30691       cat <<\_ASBOX
30692 ## --------------------------------------------- ##
30693 ## Report this to <http://www.openldap.org/its/> ##
30694 ## --------------------------------------------- ##
30695 _ASBOX
30696     ) |
30697       sed "s/^/$as_me: WARNING:     /" >&2
30698     ;;
30699 esac
30700 echo "$as_me:$LINENO: checking for $ac_header" >&5
30701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30703   echo $ECHO_N "(cached) $ECHO_C" >&6
30704 else
30705   eval "$as_ac_Header=\$ac_header_preproc"
30706 fi
30707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30709
30710 fi
30711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30712   cat >>confdefs.h <<_ACEOF
30713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30714 _ACEOF
30715
30716 fi
30717
30718 done
30719
30720 if test $ac_cv_header_unicode_utypes_h = yes ; then
30721                 OL_ICULIBS="-licuuc -licudata"
30722
30723         echo "$as_me:$LINENO: checking for ICU libraries" >&5
30724 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
30725 if test "${ol_cv_lib_icu+set}" = set; then
30726   echo $ECHO_N "(cached) $ECHO_C" >&6
30727 else
30728
30729                 ol_LIBS="$LIBS"
30730                 LIBS="$OL_ICULIBS $LIBS"
30731                 cat >conftest.$ac_ext <<_ACEOF
30732 /* confdefs.h.  */
30733 _ACEOF
30734 cat confdefs.h >>conftest.$ac_ext
30735 cat >>conftest.$ac_ext <<_ACEOF
30736 /* end confdefs.h.  */
30737
30738 #include <unicode/utypes.h>
30739
30740 int
30741 main ()
30742 {
30743
30744 (void) u_errorName(0);
30745
30746   ;
30747   return 0;
30748 }
30749 _ACEOF
30750 rm -f conftest.$ac_objext conftest$ac_exeext
30751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30752   (eval $ac_link) 2>conftest.er1
30753   ac_status=$?
30754   grep -v '^ *+' conftest.er1 >conftest.err
30755   rm -f conftest.er1
30756   cat conftest.err >&5
30757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758   (exit $ac_status); } &&
30759          { ac_try='test -z "$ac_c_werror_flag"
30760                          || test ! -s conftest.err'
30761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30762   (eval $ac_try) 2>&5
30763   ac_status=$?
30764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765   (exit $ac_status); }; } &&
30766          { ac_try='test -s conftest$ac_exeext'
30767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30768   (eval $ac_try) 2>&5
30769   ac_status=$?
30770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771   (exit $ac_status); }; }; then
30772   ol_cv_lib_icu=yes
30773 else
30774   echo "$as_me: failed program was:" >&5
30775 sed 's/^/| /' conftest.$ac_ext >&5
30776
30777 ol_cv_lib_icu=no
30778 fi
30779 rm -f conftest.err conftest.$ac_objext \
30780       conftest$ac_exeext conftest.$ac_ext
30781                 LIBS="$ol_LIBS"
30782
30783 fi
30784 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30785 echo "${ECHO_T}$ol_cv_lib_icu" >&6
30786
30787         if test $ol_cv_lib_icu != no ; then
30788                 ol_icu="$OL_ICULIBS"
30789
30790 cat >>confdefs.h <<\_ACEOF
30791 #define HAVE_ICU 1
30792 _ACEOF
30793
30794         fi
30795 fi
30796
30797 if test "$ol_icu" = no ; then
30798         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30799 echo "$as_me: WARNING: ICU not available" >&2;}
30800 else
30801         ICU_LIBS="$ol_icu"
30802 fi
30803 WITH_SASL=no
30804 ol_link_sasl=no
30805 ol_link_spasswd=no
30806 if test $ol_with_cyrus_sasl != no ; then
30807
30808
30809 for ac_header in sasl/sasl.h sasl.h
30810 do
30811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30813   echo "$as_me:$LINENO: checking for $ac_header" >&5
30814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30816   echo $ECHO_N "(cached) $ECHO_C" >&6
30817 fi
30818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30820 else
30821   # Is the header compilable?
30822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30824 cat >conftest.$ac_ext <<_ACEOF
30825 /* confdefs.h.  */
30826 _ACEOF
30827 cat confdefs.h >>conftest.$ac_ext
30828 cat >>conftest.$ac_ext <<_ACEOF
30829 /* end confdefs.h.  */
30830 $ac_includes_default
30831 #include <$ac_header>
30832 _ACEOF
30833 rm -f conftest.$ac_objext
30834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30835   (eval $ac_compile) 2>conftest.er1
30836   ac_status=$?
30837   grep -v '^ *+' conftest.er1 >conftest.err
30838   rm -f conftest.er1
30839   cat conftest.err >&5
30840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841   (exit $ac_status); } &&
30842          { ac_try='test -z "$ac_c_werror_flag"
30843                          || test ! -s conftest.err'
30844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30845   (eval $ac_try) 2>&5
30846   ac_status=$?
30847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30848   (exit $ac_status); }; } &&
30849          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
30855   ac_header_compiler=yes
30856 else
30857   echo "$as_me: failed program was:" >&5
30858 sed 's/^/| /' conftest.$ac_ext >&5
30859
30860 ac_header_compiler=no
30861 fi
30862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30864 echo "${ECHO_T}$ac_header_compiler" >&6
30865
30866 # Is the header present?
30867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30869 cat >conftest.$ac_ext <<_ACEOF
30870 /* confdefs.h.  */
30871 _ACEOF
30872 cat confdefs.h >>conftest.$ac_ext
30873 cat >>conftest.$ac_ext <<_ACEOF
30874 /* end confdefs.h.  */
30875 #include <$ac_header>
30876 _ACEOF
30877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30878   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30879   ac_status=$?
30880   grep -v '^ *+' conftest.er1 >conftest.err
30881   rm -f conftest.er1
30882   cat conftest.err >&5
30883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884   (exit $ac_status); } >/dev/null; then
30885   if test -s conftest.err; then
30886     ac_cpp_err=$ac_c_preproc_warn_flag
30887     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30888   else
30889     ac_cpp_err=
30890   fi
30891 else
30892   ac_cpp_err=yes
30893 fi
30894 if test -z "$ac_cpp_err"; then
30895   ac_header_preproc=yes
30896 else
30897   echo "$as_me: failed program was:" >&5
30898 sed 's/^/| /' conftest.$ac_ext >&5
30899
30900   ac_header_preproc=no
30901 fi
30902 rm -f conftest.err conftest.$ac_ext
30903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30904 echo "${ECHO_T}$ac_header_preproc" >&6
30905
30906 # So?  What about this header?
30907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30908   yes:no: )
30909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30913     ac_header_preproc=yes
30914     ;;
30915   no:yes:* )
30916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30928     (
30929       cat <<\_ASBOX
30930 ## --------------------------------------------- ##
30931 ## Report this to <http://www.openldap.org/its/> ##
30932 ## --------------------------------------------- ##
30933 _ASBOX
30934     ) |
30935       sed "s/^/$as_me: WARNING:     /" >&2
30936     ;;
30937 esac
30938 echo "$as_me:$LINENO: checking for $ac_header" >&5
30939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30941   echo $ECHO_N "(cached) $ECHO_C" >&6
30942 else
30943   eval "$as_ac_Header=\$ac_header_preproc"
30944 fi
30945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30947
30948 fi
30949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30950   cat >>confdefs.h <<_ACEOF
30951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30952 _ACEOF
30953
30954 fi
30955
30956 done
30957
30958
30959         if test $ac_cv_header_sasl_sasl_h = yes ||
30960            test $ac_cv_header_sasl_h = yes; then
30961                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30962 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
30963 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30964   echo $ECHO_N "(cached) $ECHO_C" >&6
30965 else
30966   ac_check_lib_save_LIBS=$LIBS
30967 LIBS="-lsasl2  $LIBS"
30968 cat >conftest.$ac_ext <<_ACEOF
30969 /* confdefs.h.  */
30970 _ACEOF
30971 cat confdefs.h >>conftest.$ac_ext
30972 cat >>conftest.$ac_ext <<_ACEOF
30973 /* end confdefs.h.  */
30974
30975 /* Override any gcc2 internal prototype to avoid an error.  */
30976 #ifdef __cplusplus
30977 extern "C"
30978 #endif
30979 /* We use char because int might match the return type of a gcc2
30980    builtin and then its argument prototype would still apply.  */
30981 char sasl_client_init ();
30982 int
30983 main ()
30984 {
30985 sasl_client_init ();
30986   ;
30987   return 0;
30988 }
30989 _ACEOF
30990 rm -f conftest.$ac_objext conftest$ac_exeext
30991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30992   (eval $ac_link) 2>conftest.er1
30993   ac_status=$?
30994   grep -v '^ *+' conftest.er1 >conftest.err
30995   rm -f conftest.er1
30996   cat conftest.err >&5
30997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998   (exit $ac_status); } &&
30999          { ac_try='test -z "$ac_c_werror_flag"
31000                          || test ! -s conftest.err'
31001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31002   (eval $ac_try) 2>&5
31003   ac_status=$?
31004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31005   (exit $ac_status); }; } &&
31006          { ac_try='test -s conftest$ac_exeext'
31007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31008   (eval $ac_try) 2>&5
31009   ac_status=$?
31010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011   (exit $ac_status); }; }; then
31012   ac_cv_lib_sasl2_sasl_client_init=yes
31013 else
31014   echo "$as_me: failed program was:" >&5
31015 sed 's/^/| /' conftest.$ac_ext >&5
31016
31017 ac_cv_lib_sasl2_sasl_client_init=no
31018 fi
31019 rm -f conftest.err conftest.$ac_objext \
31020       conftest$ac_exeext conftest.$ac_ext
31021 LIBS=$ac_check_lib_save_LIBS
31022 fi
31023 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
31024 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
31025 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
31026   ol_link_sasl="-lsasl2"
31027 else
31028   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
31029 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
31030 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
31031   echo $ECHO_N "(cached) $ECHO_C" >&6
31032 else
31033   ac_check_lib_save_LIBS=$LIBS
31034 LIBS="-lsasl  $LIBS"
31035 cat >conftest.$ac_ext <<_ACEOF
31036 /* confdefs.h.  */
31037 _ACEOF
31038 cat confdefs.h >>conftest.$ac_ext
31039 cat >>conftest.$ac_ext <<_ACEOF
31040 /* end confdefs.h.  */
31041
31042 /* Override any gcc2 internal prototype to avoid an error.  */
31043 #ifdef __cplusplus
31044 extern "C"
31045 #endif
31046 /* We use char because int might match the return type of a gcc2
31047    builtin and then its argument prototype would still apply.  */
31048 char sasl_client_init ();
31049 int
31050 main ()
31051 {
31052 sasl_client_init ();
31053   ;
31054   return 0;
31055 }
31056 _ACEOF
31057 rm -f conftest.$ac_objext conftest$ac_exeext
31058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31059   (eval $ac_link) 2>conftest.er1
31060   ac_status=$?
31061   grep -v '^ *+' conftest.er1 >conftest.err
31062   rm -f conftest.er1
31063   cat conftest.err >&5
31064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065   (exit $ac_status); } &&
31066          { ac_try='test -z "$ac_c_werror_flag"
31067                          || test ! -s conftest.err'
31068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31069   (eval $ac_try) 2>&5
31070   ac_status=$?
31071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072   (exit $ac_status); }; } &&
31073          { ac_try='test -s conftest$ac_exeext'
31074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31075   (eval $ac_try) 2>&5
31076   ac_status=$?
31077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31078   (exit $ac_status); }; }; then
31079   ac_cv_lib_sasl_sasl_client_init=yes
31080 else
31081   echo "$as_me: failed program was:" >&5
31082 sed 's/^/| /' conftest.$ac_ext >&5
31083
31084 ac_cv_lib_sasl_sasl_client_init=no
31085 fi
31086 rm -f conftest.err conftest.$ac_objext \
31087       conftest$ac_exeext conftest.$ac_ext
31088 LIBS=$ac_check_lib_save_LIBS
31089 fi
31090 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
31091 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
31092 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
31093   ol_link_sasl="-lsasl"
31094 fi
31095
31096 fi
31097
31098         fi
31099
31100         if test $ol_link_sasl = no ; then
31101                 if test $ol_with_cyrus_sasl != auto ; then
31102                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
31103 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
31104    { (exit 1); exit 1; }; }
31105                 else
31106                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
31107 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
31108                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31109 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31110                         if test $ol_link_tls = no ; then
31111                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31112 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31113                         fi
31114                 fi
31115         else
31116                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
31117 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
31118 if test "${ol_cv_sasl_compat+set}" = set; then
31119   echo $ECHO_N "(cached) $ECHO_C" >&6
31120 else
31121
31122         cat >conftest.$ac_ext <<_ACEOF
31123 /* confdefs.h.  */
31124 _ACEOF
31125 cat confdefs.h >>conftest.$ac_ext
31126 cat >>conftest.$ac_ext <<_ACEOF
31127 /* end confdefs.h.  */
31128
31129 #ifdef HAVE_SASL_SASL_H
31130 #include <sasl/sasl.h>
31131 #else
31132 #include <sasl.h>
31133 #endif
31134
31135 /* Require 2.1.15+ */
31136 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
31137         char *__sasl_compat = "2.2+ or better okay (we guess)";
31138 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
31139         && SASL_VERSION_STEP >=15
31140         char *__sasl_compat = "2.1.15+ or better okay";
31141 #endif
31142
31143 _ACEOF
31144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31145   $EGREP "__sasl_compat" >/dev/null 2>&1; then
31146   ol_cv_sasl_compat=yes
31147 else
31148   ol_cv_sasl_compat=no
31149 fi
31150 rm -f conftest*
31151
31152 fi
31153 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
31154 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
31155
31156                 if test $ol_cv_sasl_compat = no ; then
31157                         ol_link_sasl=no
31158                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
31159 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
31160    { (exit 1); exit 1; }; }
31161                 fi
31162
31163
31164 cat >>confdefs.h <<\_ACEOF
31165 #define HAVE_CYRUS_SASL 1
31166 _ACEOF
31167
31168                 SASL_LIBS="$ol_link_sasl"
31169                 if test $ol_enable_spasswd != no ; then
31170                         ol_link_spasswd=yes
31171                 fi
31172
31173                 ac_save_LIBS="$LIBS"
31174                 LIBS="$LIBS $ol_link_sasl"
31175                 echo "$as_me:$LINENO: checking for sasl_version" >&5
31176 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
31177 if test "${ac_cv_func_sasl_version+set}" = set; then
31178   echo $ECHO_N "(cached) $ECHO_C" >&6
31179 else
31180   cat >conftest.$ac_ext <<_ACEOF
31181 /* confdefs.h.  */
31182 _ACEOF
31183 cat confdefs.h >>conftest.$ac_ext
31184 cat >>conftest.$ac_ext <<_ACEOF
31185 /* end confdefs.h.  */
31186 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
31187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31188 #define sasl_version innocuous_sasl_version
31189
31190 /* System header to define __stub macros and hopefully few prototypes,
31191     which can conflict with char sasl_version (); below.
31192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31193     <limits.h> exists even on freestanding compilers.  */
31194
31195 #ifdef __STDC__
31196 # include <limits.h>
31197 #else
31198 # include <assert.h>
31199 #endif
31200
31201 #undef sasl_version
31202
31203 /* Override any gcc2 internal prototype to avoid an error.  */
31204 #ifdef __cplusplus
31205 extern "C"
31206 {
31207 #endif
31208 /* We use char because int might match the return type of a gcc2
31209    builtin and then its argument prototype would still apply.  */
31210 char sasl_version ();
31211 /* The GNU C library defines this for functions which it implements
31212     to always fail with ENOSYS.  Some functions are actually named
31213     something starting with __ and the normal name is an alias.  */
31214 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
31215 choke me
31216 #else
31217 char (*f) () = sasl_version;
31218 #endif
31219 #ifdef __cplusplus
31220 }
31221 #endif
31222
31223 int
31224 main ()
31225 {
31226 return f != sasl_version;
31227   ;
31228   return 0;
31229 }
31230 _ACEOF
31231 rm -f conftest.$ac_objext conftest$ac_exeext
31232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31233   (eval $ac_link) 2>conftest.er1
31234   ac_status=$?
31235   grep -v '^ *+' conftest.er1 >conftest.err
31236   rm -f conftest.er1
31237   cat conftest.err >&5
31238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239   (exit $ac_status); } &&
31240          { ac_try='test -z "$ac_c_werror_flag"
31241                          || test ! -s conftest.err'
31242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31243   (eval $ac_try) 2>&5
31244   ac_status=$?
31245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246   (exit $ac_status); }; } &&
31247          { ac_try='test -s conftest$ac_exeext'
31248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31249   (eval $ac_try) 2>&5
31250   ac_status=$?
31251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252   (exit $ac_status); }; }; then
31253   ac_cv_func_sasl_version=yes
31254 else
31255   echo "$as_me: failed program was:" >&5
31256 sed 's/^/| /' conftest.$ac_ext >&5
31257
31258 ac_cv_func_sasl_version=no
31259 fi
31260 rm -f conftest.err conftest.$ac_objext \
31261       conftest$ac_exeext conftest.$ac_ext
31262 fi
31263 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31264 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
31265 if test $ac_cv_func_sasl_version = yes; then
31266
31267 cat >>confdefs.h <<\_ACEOF
31268 #define HAVE_SASL_VERSION 1
31269 _ACEOF
31270
31271 fi
31272
31273                 LIBS="$ac_save_LIBS"
31274
31275                 WITH_SASL=yes
31276         fi
31277
31278 else
31279         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31280 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31281         if test $ol_link_tls = no ; then
31282                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31283 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31284         fi
31285 fi
31286
31287 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31288         dev=no
31289         if test -r /dev/urandom ; then
31290                 dev="/dev/urandom";
31291         elif test -r /idev/urandom ; then
31292                 dev="/idev/urandom";
31293         elif test -r /dev/srandom ; then
31294                 dev="/dev/srandom";
31295         elif test -r /dev/random ; then
31296                 dev="/dev/random";
31297         elif test -r /idev/random ; then
31298                 dev="/idev/random";
31299         fi
31300
31301         if test $dev != no ; then
31302
31303 cat >>confdefs.h <<_ACEOF
31304 #define URANDOM_DEVICE "$dev"
31305 _ACEOF
31306
31307         fi
31308 fi
31309
31310 ol_link_fetch=no
31311 if test $ol_with_fetch != no ; then
31312         ol_LIBS=$LIBS
31313 LIBS="-lfetch -lcom_err $LIBS"
31314 echo "$as_me:$LINENO: checking fetch(3) library" >&5
31315 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
31316 if test "${ol_cv_lib_fetch+set}" = set; then
31317   echo $ECHO_N "(cached) $ECHO_C" >&6
31318 else
31319
31320         cat >conftest.$ac_ext <<_ACEOF
31321 /* confdefs.h.  */
31322 _ACEOF
31323 cat confdefs.h >>conftest.$ac_ext
31324 cat >>conftest.$ac_ext <<_ACEOF
31325 /* end confdefs.h.  */
31326
31327 #ifdef HAVE_SYS_PARAM_H
31328 #include <sys/param.h>
31329 #endif
31330 #include <stdio.h>
31331 #include <fetch.h>
31332 int
31333 main ()
31334 {
31335 struct url *u = fetchParseURL("file:///");
31336   ;
31337   return 0;
31338 }
31339 _ACEOF
31340 rm -f conftest.$ac_objext conftest$ac_exeext
31341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31342   (eval $ac_link) 2>conftest.er1
31343   ac_status=$?
31344   grep -v '^ *+' conftest.er1 >conftest.err
31345   rm -f conftest.er1
31346   cat conftest.err >&5
31347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348   (exit $ac_status); } &&
31349          { ac_try='test -z "$ac_c_werror_flag"
31350                          || test ! -s conftest.err'
31351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31352   (eval $ac_try) 2>&5
31353   ac_status=$?
31354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355   (exit $ac_status); }; } &&
31356          { ac_try='test -s conftest$ac_exeext'
31357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31358   (eval $ac_try) 2>&5
31359   ac_status=$?
31360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361   (exit $ac_status); }; }; then
31362   ol_cv_lib_fetch=yes
31363 else
31364   echo "$as_me: failed program was:" >&5
31365 sed 's/^/| /' conftest.$ac_ext >&5
31366
31367 ol_cv_lib_fetch=no
31368 fi
31369 rm -f conftest.err conftest.$ac_objext \
31370       conftest$ac_exeext conftest.$ac_ext
31371 fi
31372 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31373 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
31374 LIBS=$ol_LIBS
31375 if test $ol_cv_lib_fetch != no ; then
31376         ol_link_fetch="-lfetch -lcom_err"
31377
31378 cat >>confdefs.h <<\_ACEOF
31379 #define HAVE_FETCH 1
31380 _ACEOF
31381
31382 fi
31383
31384
31385         if test $ol_cv_lib_fetch != no ; then
31386                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31387                 ol_link_fetch=freebsd
31388
31389         elif test $ol_with_fetch != auto ; then
31390                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31391 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31392    { (exit 1); exit 1; }; }
31393         fi
31394 fi
31395
31396 if test $ol_enable_crypt != no ; then
31397         save_LIBS="$LIBS"
31398         LIBS="$TLS_LIBS $LIBS"
31399
31400         echo "$as_me:$LINENO: checking for crypt" >&5
31401 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
31402 if test "${ac_cv_func_crypt+set}" = set; then
31403   echo $ECHO_N "(cached) $ECHO_C" >&6
31404 else
31405   cat >conftest.$ac_ext <<_ACEOF
31406 /* confdefs.h.  */
31407 _ACEOF
31408 cat confdefs.h >>conftest.$ac_ext
31409 cat >>conftest.$ac_ext <<_ACEOF
31410 /* end confdefs.h.  */
31411 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31413 #define crypt innocuous_crypt
31414
31415 /* System header to define __stub macros and hopefully few prototypes,
31416     which can conflict with char crypt (); below.
31417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31418     <limits.h> exists even on freestanding compilers.  */
31419
31420 #ifdef __STDC__
31421 # include <limits.h>
31422 #else
31423 # include <assert.h>
31424 #endif
31425
31426 #undef crypt
31427
31428 /* Override any gcc2 internal prototype to avoid an error.  */
31429 #ifdef __cplusplus
31430 extern "C"
31431 {
31432 #endif
31433 /* We use char because int might match the return type of a gcc2
31434    builtin and then its argument prototype would still apply.  */
31435 char crypt ();
31436 /* The GNU C library defines this for functions which it implements
31437     to always fail with ENOSYS.  Some functions are actually named
31438     something starting with __ and the normal name is an alias.  */
31439 #if defined (__stub_crypt) || defined (__stub___crypt)
31440 choke me
31441 #else
31442 char (*f) () = crypt;
31443 #endif
31444 #ifdef __cplusplus
31445 }
31446 #endif
31447
31448 int
31449 main ()
31450 {
31451 return f != crypt;
31452   ;
31453   return 0;
31454 }
31455 _ACEOF
31456 rm -f conftest.$ac_objext conftest$ac_exeext
31457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31458   (eval $ac_link) 2>conftest.er1
31459   ac_status=$?
31460   grep -v '^ *+' conftest.er1 >conftest.err
31461   rm -f conftest.er1
31462   cat conftest.err >&5
31463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464   (exit $ac_status); } &&
31465          { ac_try='test -z "$ac_c_werror_flag"
31466                          || test ! -s conftest.err'
31467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31468   (eval $ac_try) 2>&5
31469   ac_status=$?
31470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471   (exit $ac_status); }; } &&
31472          { ac_try='test -s conftest$ac_exeext'
31473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31474   (eval $ac_try) 2>&5
31475   ac_status=$?
31476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477   (exit $ac_status); }; }; then
31478   ac_cv_func_crypt=yes
31479 else
31480   echo "$as_me: failed program was:" >&5
31481 sed 's/^/| /' conftest.$ac_ext >&5
31482
31483 ac_cv_func_crypt=no
31484 fi
31485 rm -f conftest.err conftest.$ac_objext \
31486       conftest$ac_exeext conftest.$ac_ext
31487 fi
31488 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31489 echo "${ECHO_T}$ac_cv_func_crypt" >&6
31490 if test $ac_cv_func_crypt = yes; then
31491   have_crypt=yes
31492 else
31493
31494                 LIBS="$save_LIBS"
31495                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31496 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
31497 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31498   echo $ECHO_N "(cached) $ECHO_C" >&6
31499 else
31500   ac_check_lib_save_LIBS=$LIBS
31501 LIBS="-lcrypt  $LIBS"
31502 cat >conftest.$ac_ext <<_ACEOF
31503 /* confdefs.h.  */
31504 _ACEOF
31505 cat confdefs.h >>conftest.$ac_ext
31506 cat >>conftest.$ac_ext <<_ACEOF
31507 /* end confdefs.h.  */
31508
31509 /* Override any gcc2 internal prototype to avoid an error.  */
31510 #ifdef __cplusplus
31511 extern "C"
31512 #endif
31513 /* We use char because int might match the return type of a gcc2
31514    builtin and then its argument prototype would still apply.  */
31515 char crypt ();
31516 int
31517 main ()
31518 {
31519 crypt ();
31520   ;
31521   return 0;
31522 }
31523 _ACEOF
31524 rm -f conftest.$ac_objext conftest$ac_exeext
31525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31526   (eval $ac_link) 2>conftest.er1
31527   ac_status=$?
31528   grep -v '^ *+' conftest.er1 >conftest.err
31529   rm -f conftest.er1
31530   cat conftest.err >&5
31531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31532   (exit $ac_status); } &&
31533          { ac_try='test -z "$ac_c_werror_flag"
31534                          || test ! -s conftest.err'
31535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31536   (eval $ac_try) 2>&5
31537   ac_status=$?
31538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539   (exit $ac_status); }; } &&
31540          { ac_try='test -s conftest$ac_exeext'
31541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31542   (eval $ac_try) 2>&5
31543   ac_status=$?
31544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545   (exit $ac_status); }; }; then
31546   ac_cv_lib_crypt_crypt=yes
31547 else
31548   echo "$as_me: failed program was:" >&5
31549 sed 's/^/| /' conftest.$ac_ext >&5
31550
31551 ac_cv_lib_crypt_crypt=no
31552 fi
31553 rm -f conftest.err conftest.$ac_objext \
31554       conftest$ac_exeext conftest.$ac_ext
31555 LIBS=$ac_check_lib_save_LIBS
31556 fi
31557 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31558 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
31559 if test $ac_cv_lib_crypt_crypt = yes; then
31560   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31561                         have_crypt=yes
31562 else
31563   have_crypt=no
31564 fi
31565
31566 fi
31567
31568
31569         LIBS="$save_LIBS"
31570
31571         if test $have_crypt = yes ; then
31572
31573 cat >>confdefs.h <<\_ACEOF
31574 #define HAVE_CRYPT 1
31575 _ACEOF
31576
31577         else
31578                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31579 echo "$as_me: WARNING: could not find crypt" >&2;}
31580                 if test $ol_enable_crypt = yes ; then
31581                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31582 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31583    { (exit 1); exit 1; }; }
31584                 fi
31585
31586                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31587 echo "$as_me: WARNING: disabling crypt support" >&2;}
31588                 ol_enable_crypt=no
31589         fi
31590 fi
31591
31592 if test $ol_enable_proctitle != no ; then
31593         echo "$as_me:$LINENO: checking for setproctitle" >&5
31594 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
31595 if test "${ac_cv_func_setproctitle+set}" = set; then
31596   echo $ECHO_N "(cached) $ECHO_C" >&6
31597 else
31598   cat >conftest.$ac_ext <<_ACEOF
31599 /* confdefs.h.  */
31600 _ACEOF
31601 cat confdefs.h >>conftest.$ac_ext
31602 cat >>conftest.$ac_ext <<_ACEOF
31603 /* end confdefs.h.  */
31604 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31606 #define setproctitle innocuous_setproctitle
31607
31608 /* System header to define __stub macros and hopefully few prototypes,
31609     which can conflict with char setproctitle (); below.
31610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31611     <limits.h> exists even on freestanding compilers.  */
31612
31613 #ifdef __STDC__
31614 # include <limits.h>
31615 #else
31616 # include <assert.h>
31617 #endif
31618
31619 #undef setproctitle
31620
31621 /* Override any gcc2 internal prototype to avoid an error.  */
31622 #ifdef __cplusplus
31623 extern "C"
31624 {
31625 #endif
31626 /* We use char because int might match the return type of a gcc2
31627    builtin and then its argument prototype would still apply.  */
31628 char setproctitle ();
31629 /* The GNU C library defines this for functions which it implements
31630     to always fail with ENOSYS.  Some functions are actually named
31631     something starting with __ and the normal name is an alias.  */
31632 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
31633 choke me
31634 #else
31635 char (*f) () = setproctitle;
31636 #endif
31637 #ifdef __cplusplus
31638 }
31639 #endif
31640
31641 int
31642 main ()
31643 {
31644 return f != setproctitle;
31645   ;
31646   return 0;
31647 }
31648 _ACEOF
31649 rm -f conftest.$ac_objext conftest$ac_exeext
31650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31651   (eval $ac_link) 2>conftest.er1
31652   ac_status=$?
31653   grep -v '^ *+' conftest.er1 >conftest.err
31654   rm -f conftest.er1
31655   cat conftest.err >&5
31656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657   (exit $ac_status); } &&
31658          { ac_try='test -z "$ac_c_werror_flag"
31659                          || test ! -s conftest.err'
31660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31661   (eval $ac_try) 2>&5
31662   ac_status=$?
31663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664   (exit $ac_status); }; } &&
31665          { ac_try='test -s conftest$ac_exeext'
31666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31667   (eval $ac_try) 2>&5
31668   ac_status=$?
31669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670   (exit $ac_status); }; }; then
31671   ac_cv_func_setproctitle=yes
31672 else
31673   echo "$as_me: failed program was:" >&5
31674 sed 's/^/| /' conftest.$ac_ext >&5
31675
31676 ac_cv_func_setproctitle=no
31677 fi
31678 rm -f conftest.err conftest.$ac_objext \
31679       conftest$ac_exeext conftest.$ac_ext
31680 fi
31681 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31682 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
31683 if test $ac_cv_func_setproctitle = yes; then
31684   have_setproctitle=yes
31685 else
31686
31687                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31688 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
31689 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31690   echo $ECHO_N "(cached) $ECHO_C" >&6
31691 else
31692   ac_check_lib_save_LIBS=$LIBS
31693 LIBS="-lutil  $LIBS"
31694 cat >conftest.$ac_ext <<_ACEOF
31695 /* confdefs.h.  */
31696 _ACEOF
31697 cat confdefs.h >>conftest.$ac_ext
31698 cat >>conftest.$ac_ext <<_ACEOF
31699 /* end confdefs.h.  */
31700
31701 /* Override any gcc2 internal prototype to avoid an error.  */
31702 #ifdef __cplusplus
31703 extern "C"
31704 #endif
31705 /* We use char because int might match the return type of a gcc2
31706    builtin and then its argument prototype would still apply.  */
31707 char setproctitle ();
31708 int
31709 main ()
31710 {
31711 setproctitle ();
31712   ;
31713   return 0;
31714 }
31715 _ACEOF
31716 rm -f conftest.$ac_objext conftest$ac_exeext
31717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31718   (eval $ac_link) 2>conftest.er1
31719   ac_status=$?
31720   grep -v '^ *+' conftest.er1 >conftest.err
31721   rm -f conftest.er1
31722   cat conftest.err >&5
31723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724   (exit $ac_status); } &&
31725          { ac_try='test -z "$ac_c_werror_flag"
31726                          || test ! -s conftest.err'
31727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31728   (eval $ac_try) 2>&5
31729   ac_status=$?
31730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31731   (exit $ac_status); }; } &&
31732          { ac_try='test -s conftest$ac_exeext'
31733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31734   (eval $ac_try) 2>&5
31735   ac_status=$?
31736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737   (exit $ac_status); }; }; then
31738   ac_cv_lib_util_setproctitle=yes
31739 else
31740   echo "$as_me: failed program was:" >&5
31741 sed 's/^/| /' conftest.$ac_ext >&5
31742
31743 ac_cv_lib_util_setproctitle=no
31744 fi
31745 rm -f conftest.err conftest.$ac_objext \
31746       conftest$ac_exeext conftest.$ac_ext
31747 LIBS=$ac_check_lib_save_LIBS
31748 fi
31749 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31750 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
31751 if test $ac_cv_lib_util_setproctitle = yes; then
31752   have_setproctitle=yes
31753                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31754 else
31755   have_setproctitle=no
31756                         case $LIBOBJS in
31757     "setproctitle.$ac_objext"   | \
31758   *" setproctitle.$ac_objext"   | \
31759     "setproctitle.$ac_objext "* | \
31760   *" setproctitle.$ac_objext "* ) ;;
31761   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
31762 esac
31763
31764                         LIBSRCS="$LIBSRCS setproctitle.c"
31765 fi
31766
31767 fi
31768
31769
31770         if test $have_setproctitle = yes ; then
31771
31772 cat >>confdefs.h <<\_ACEOF
31773 #define HAVE_SETPROCTITLE 1
31774 _ACEOF
31775
31776         fi
31777 fi
31778
31779 if test $ol_enable_slp != no ; then
31780
31781 for ac_header in slp.h
31782 do
31783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31785   echo "$as_me:$LINENO: checking for $ac_header" >&5
31786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31788   echo $ECHO_N "(cached) $ECHO_C" >&6
31789 fi
31790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31792 else
31793   # Is the header compilable?
31794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31796 cat >conftest.$ac_ext <<_ACEOF
31797 /* confdefs.h.  */
31798 _ACEOF
31799 cat confdefs.h >>conftest.$ac_ext
31800 cat >>conftest.$ac_ext <<_ACEOF
31801 /* end confdefs.h.  */
31802 $ac_includes_default
31803 #include <$ac_header>
31804 _ACEOF
31805 rm -f conftest.$ac_objext
31806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31807   (eval $ac_compile) 2>conftest.er1
31808   ac_status=$?
31809   grep -v '^ *+' conftest.er1 >conftest.err
31810   rm -f conftest.er1
31811   cat conftest.err >&5
31812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813   (exit $ac_status); } &&
31814          { ac_try='test -z "$ac_c_werror_flag"
31815                          || test ! -s conftest.err'
31816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31817   (eval $ac_try) 2>&5
31818   ac_status=$?
31819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820   (exit $ac_status); }; } &&
31821          { ac_try='test -s conftest.$ac_objext'
31822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31823   (eval $ac_try) 2>&5
31824   ac_status=$?
31825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826   (exit $ac_status); }; }; then
31827   ac_header_compiler=yes
31828 else
31829   echo "$as_me: failed program was:" >&5
31830 sed 's/^/| /' conftest.$ac_ext >&5
31831
31832 ac_header_compiler=no
31833 fi
31834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31836 echo "${ECHO_T}$ac_header_compiler" >&6
31837
31838 # Is the header present?
31839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31841 cat >conftest.$ac_ext <<_ACEOF
31842 /* confdefs.h.  */
31843 _ACEOF
31844 cat confdefs.h >>conftest.$ac_ext
31845 cat >>conftest.$ac_ext <<_ACEOF
31846 /* end confdefs.h.  */
31847 #include <$ac_header>
31848 _ACEOF
31849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31850   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31851   ac_status=$?
31852   grep -v '^ *+' conftest.er1 >conftest.err
31853   rm -f conftest.er1
31854   cat conftest.err >&5
31855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856   (exit $ac_status); } >/dev/null; then
31857   if test -s conftest.err; then
31858     ac_cpp_err=$ac_c_preproc_warn_flag
31859     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31860   else
31861     ac_cpp_err=
31862   fi
31863 else
31864   ac_cpp_err=yes
31865 fi
31866 if test -z "$ac_cpp_err"; then
31867   ac_header_preproc=yes
31868 else
31869   echo "$as_me: failed program was:" >&5
31870 sed 's/^/| /' conftest.$ac_ext >&5
31871
31872   ac_header_preproc=no
31873 fi
31874 rm -f conftest.err conftest.$ac_ext
31875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31876 echo "${ECHO_T}$ac_header_preproc" >&6
31877
31878 # So?  What about this header?
31879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31880   yes:no: )
31881     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31885     ac_header_preproc=yes
31886     ;;
31887   no:yes:* )
31888     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31890     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31891 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31892     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31894     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31895 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31898     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31900     (
31901       cat <<\_ASBOX
31902 ## --------------------------------------------- ##
31903 ## Report this to <http://www.openldap.org/its/> ##
31904 ## --------------------------------------------- ##
31905 _ASBOX
31906     ) |
31907       sed "s/^/$as_me: WARNING:     /" >&2
31908     ;;
31909 esac
31910 echo "$as_me:$LINENO: checking for $ac_header" >&5
31911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31913   echo $ECHO_N "(cached) $ECHO_C" >&6
31914 else
31915   eval "$as_ac_Header=\$ac_header_preproc"
31916 fi
31917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31919
31920 fi
31921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31922   cat >>confdefs.h <<_ACEOF
31923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31924 _ACEOF
31925
31926 fi
31927
31928 done
31929
31930
31931         if test $ac_cv_header_slp_h = yes ; then
31932                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31933 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
31934 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31935   echo $ECHO_N "(cached) $ECHO_C" >&6
31936 else
31937   ac_check_lib_save_LIBS=$LIBS
31938 LIBS="-lslp  $LIBS"
31939 cat >conftest.$ac_ext <<_ACEOF
31940 /* confdefs.h.  */
31941 _ACEOF
31942 cat confdefs.h >>conftest.$ac_ext
31943 cat >>conftest.$ac_ext <<_ACEOF
31944 /* end confdefs.h.  */
31945
31946 /* Override any gcc2 internal prototype to avoid an error.  */
31947 #ifdef __cplusplus
31948 extern "C"
31949 #endif
31950 /* We use char because int might match the return type of a gcc2
31951    builtin and then its argument prototype would still apply.  */
31952 char SLPOpen ();
31953 int
31954 main ()
31955 {
31956 SLPOpen ();
31957   ;
31958   return 0;
31959 }
31960 _ACEOF
31961 rm -f conftest.$ac_objext conftest$ac_exeext
31962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31963   (eval $ac_link) 2>conftest.er1
31964   ac_status=$?
31965   grep -v '^ *+' conftest.er1 >conftest.err
31966   rm -f conftest.er1
31967   cat conftest.err >&5
31968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969   (exit $ac_status); } &&
31970          { ac_try='test -z "$ac_c_werror_flag"
31971                          || test ! -s conftest.err'
31972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31973   (eval $ac_try) 2>&5
31974   ac_status=$?
31975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976   (exit $ac_status); }; } &&
31977          { ac_try='test -s conftest$ac_exeext'
31978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31979   (eval $ac_try) 2>&5
31980   ac_status=$?
31981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982   (exit $ac_status); }; }; then
31983   ac_cv_lib_slp_SLPOpen=yes
31984 else
31985   echo "$as_me: failed program was:" >&5
31986 sed 's/^/| /' conftest.$ac_ext >&5
31987
31988 ac_cv_lib_slp_SLPOpen=no
31989 fi
31990 rm -f conftest.err conftest.$ac_objext \
31991       conftest$ac_exeext conftest.$ac_ext
31992 LIBS=$ac_check_lib_save_LIBS
31993 fi
31994 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31995 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
31996 if test $ac_cv_lib_slp_SLPOpen = yes; then
31997   have_slp=yes
31998 else
31999   have_slp=no
32000 fi
32001
32002                 if test $have_slp = yes ; then
32003
32004 cat >>confdefs.h <<\_ACEOF
32005 #define HAVE_SLP 1
32006 _ACEOF
32007
32008                         SLAPD_SLP_LIBS=-lslp
32009                 fi
32010
32011         elif test $ol_enable_slp = yes ; then
32012                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
32013 echo "$as_me: error: SLP not found" >&2;}
32014    { (exit 1); exit 1; }; }
32015         fi
32016 fi
32017
32018
32019 echo "$as_me:$LINENO: checking for mode_t" >&5
32020 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32021 if test "${ac_cv_type_mode_t+set}" = set; then
32022   echo $ECHO_N "(cached) $ECHO_C" >&6
32023 else
32024   cat >conftest.$ac_ext <<_ACEOF
32025 /* confdefs.h.  */
32026 _ACEOF
32027 cat confdefs.h >>conftest.$ac_ext
32028 cat >>conftest.$ac_ext <<_ACEOF
32029 /* end confdefs.h.  */
32030 $ac_includes_default
32031 int
32032 main ()
32033 {
32034 if ((mode_t *) 0)
32035   return 0;
32036 if (sizeof (mode_t))
32037   return 0;
32038   ;
32039   return 0;
32040 }
32041 _ACEOF
32042 rm -f conftest.$ac_objext
32043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32044   (eval $ac_compile) 2>conftest.er1
32045   ac_status=$?
32046   grep -v '^ *+' conftest.er1 >conftest.err
32047   rm -f conftest.er1
32048   cat conftest.err >&5
32049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050   (exit $ac_status); } &&
32051          { ac_try='test -z "$ac_c_werror_flag"
32052                          || test ! -s conftest.err'
32053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32054   (eval $ac_try) 2>&5
32055   ac_status=$?
32056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057   (exit $ac_status); }; } &&
32058          { ac_try='test -s conftest.$ac_objext'
32059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32060   (eval $ac_try) 2>&5
32061   ac_status=$?
32062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063   (exit $ac_status); }; }; then
32064   ac_cv_type_mode_t=yes
32065 else
32066   echo "$as_me: failed program was:" >&5
32067 sed 's/^/| /' conftest.$ac_ext >&5
32068
32069 ac_cv_type_mode_t=no
32070 fi
32071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32072 fi
32073 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32074 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32075 if test $ac_cv_type_mode_t = yes; then
32076   :
32077 else
32078
32079 cat >>confdefs.h <<_ACEOF
32080 #define mode_t int
32081 _ACEOF
32082
32083 fi
32084
32085 echo "$as_me:$LINENO: checking for off_t" >&5
32086 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32087 if test "${ac_cv_type_off_t+set}" = set; then
32088   echo $ECHO_N "(cached) $ECHO_C" >&6
32089 else
32090   cat >conftest.$ac_ext <<_ACEOF
32091 /* confdefs.h.  */
32092 _ACEOF
32093 cat confdefs.h >>conftest.$ac_ext
32094 cat >>conftest.$ac_ext <<_ACEOF
32095 /* end confdefs.h.  */
32096 $ac_includes_default
32097 int
32098 main ()
32099 {
32100 if ((off_t *) 0)
32101   return 0;
32102 if (sizeof (off_t))
32103   return 0;
32104   ;
32105   return 0;
32106 }
32107 _ACEOF
32108 rm -f conftest.$ac_objext
32109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32110   (eval $ac_compile) 2>conftest.er1
32111   ac_status=$?
32112   grep -v '^ *+' conftest.er1 >conftest.err
32113   rm -f conftest.er1
32114   cat conftest.err >&5
32115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32116   (exit $ac_status); } &&
32117          { ac_try='test -z "$ac_c_werror_flag"
32118                          || test ! -s conftest.err'
32119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32120   (eval $ac_try) 2>&5
32121   ac_status=$?
32122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123   (exit $ac_status); }; } &&
32124          { ac_try='test -s conftest.$ac_objext'
32125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32126   (eval $ac_try) 2>&5
32127   ac_status=$?
32128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129   (exit $ac_status); }; }; then
32130   ac_cv_type_off_t=yes
32131 else
32132   echo "$as_me: failed program was:" >&5
32133 sed 's/^/| /' conftest.$ac_ext >&5
32134
32135 ac_cv_type_off_t=no
32136 fi
32137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32138 fi
32139 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32140 echo "${ECHO_T}$ac_cv_type_off_t" >&6
32141 if test $ac_cv_type_off_t = yes; then
32142   :
32143 else
32144
32145 cat >>confdefs.h <<_ACEOF
32146 #define off_t long
32147 _ACEOF
32148
32149 fi
32150
32151 echo "$as_me:$LINENO: checking for pid_t" >&5
32152 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32153 if test "${ac_cv_type_pid_t+set}" = set; then
32154   echo $ECHO_N "(cached) $ECHO_C" >&6
32155 else
32156   cat >conftest.$ac_ext <<_ACEOF
32157 /* confdefs.h.  */
32158 _ACEOF
32159 cat confdefs.h >>conftest.$ac_ext
32160 cat >>conftest.$ac_ext <<_ACEOF
32161 /* end confdefs.h.  */
32162 $ac_includes_default
32163 int
32164 main ()
32165 {
32166 if ((pid_t *) 0)
32167   return 0;
32168 if (sizeof (pid_t))
32169   return 0;
32170   ;
32171   return 0;
32172 }
32173 _ACEOF
32174 rm -f conftest.$ac_objext
32175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32176   (eval $ac_compile) 2>conftest.er1
32177   ac_status=$?
32178   grep -v '^ *+' conftest.er1 >conftest.err
32179   rm -f conftest.er1
32180   cat conftest.err >&5
32181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182   (exit $ac_status); } &&
32183          { ac_try='test -z "$ac_c_werror_flag"
32184                          || test ! -s conftest.err'
32185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32186   (eval $ac_try) 2>&5
32187   ac_status=$?
32188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189   (exit $ac_status); }; } &&
32190          { ac_try='test -s conftest.$ac_objext'
32191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32192   (eval $ac_try) 2>&5
32193   ac_status=$?
32194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32195   (exit $ac_status); }; }; then
32196   ac_cv_type_pid_t=yes
32197 else
32198   echo "$as_me: failed program was:" >&5
32199 sed 's/^/| /' conftest.$ac_ext >&5
32200
32201 ac_cv_type_pid_t=no
32202 fi
32203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32204 fi
32205 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32206 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32207 if test $ac_cv_type_pid_t = yes; then
32208   :
32209 else
32210
32211 cat >>confdefs.h <<_ACEOF
32212 #define pid_t int
32213 _ACEOF
32214
32215 fi
32216
32217 echo "$as_me:$LINENO: checking for ssize_t" >&5
32218 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32219 if test "${ac_cv_type_ssize_t+set}" = set; then
32220   echo $ECHO_N "(cached) $ECHO_C" >&6
32221 else
32222   cat >conftest.$ac_ext <<_ACEOF
32223 /* confdefs.h.  */
32224 _ACEOF
32225 cat confdefs.h >>conftest.$ac_ext
32226 cat >>conftest.$ac_ext <<_ACEOF
32227 /* end confdefs.h.  */
32228 $ac_includes_default
32229 int
32230 main ()
32231 {
32232 if ((ssize_t *) 0)
32233   return 0;
32234 if (sizeof (ssize_t))
32235   return 0;
32236   ;
32237   return 0;
32238 }
32239 _ACEOF
32240 rm -f conftest.$ac_objext
32241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32242   (eval $ac_compile) 2>conftest.er1
32243   ac_status=$?
32244   grep -v '^ *+' conftest.er1 >conftest.err
32245   rm -f conftest.er1
32246   cat conftest.err >&5
32247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32248   (exit $ac_status); } &&
32249          { ac_try='test -z "$ac_c_werror_flag"
32250                          || test ! -s conftest.err'
32251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32252   (eval $ac_try) 2>&5
32253   ac_status=$?
32254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32255   (exit $ac_status); }; } &&
32256          { ac_try='test -s conftest.$ac_objext'
32257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32258   (eval $ac_try) 2>&5
32259   ac_status=$?
32260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261   (exit $ac_status); }; }; then
32262   ac_cv_type_ssize_t=yes
32263 else
32264   echo "$as_me: failed program was:" >&5
32265 sed 's/^/| /' conftest.$ac_ext >&5
32266
32267 ac_cv_type_ssize_t=no
32268 fi
32269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32270 fi
32271 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32272 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32273 if test $ac_cv_type_ssize_t = yes; then
32274   :
32275 else
32276
32277 cat >>confdefs.h <<_ACEOF
32278 #define ssize_t signed int
32279 _ACEOF
32280
32281 fi
32282
32283 echo "$as_me:$LINENO: checking for caddr_t" >&5
32284 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
32285 if test "${ac_cv_type_caddr_t+set}" = set; then
32286   echo $ECHO_N "(cached) $ECHO_C" >&6
32287 else
32288   cat >conftest.$ac_ext <<_ACEOF
32289 /* confdefs.h.  */
32290 _ACEOF
32291 cat confdefs.h >>conftest.$ac_ext
32292 cat >>conftest.$ac_ext <<_ACEOF
32293 /* end confdefs.h.  */
32294 $ac_includes_default
32295 int
32296 main ()
32297 {
32298 if ((caddr_t *) 0)
32299   return 0;
32300 if (sizeof (caddr_t))
32301   return 0;
32302   ;
32303   return 0;
32304 }
32305 _ACEOF
32306 rm -f conftest.$ac_objext
32307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32308   (eval $ac_compile) 2>conftest.er1
32309   ac_status=$?
32310   grep -v '^ *+' conftest.er1 >conftest.err
32311   rm -f conftest.er1
32312   cat conftest.err >&5
32313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314   (exit $ac_status); } &&
32315          { ac_try='test -z "$ac_c_werror_flag"
32316                          || test ! -s conftest.err'
32317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32318   (eval $ac_try) 2>&5
32319   ac_status=$?
32320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321   (exit $ac_status); }; } &&
32322          { ac_try='test -s conftest.$ac_objext'
32323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32324   (eval $ac_try) 2>&5
32325   ac_status=$?
32326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327   (exit $ac_status); }; }; then
32328   ac_cv_type_caddr_t=yes
32329 else
32330   echo "$as_me: failed program was:" >&5
32331 sed 's/^/| /' conftest.$ac_ext >&5
32332
32333 ac_cv_type_caddr_t=no
32334 fi
32335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32336 fi
32337 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32338 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
32339 if test $ac_cv_type_caddr_t = yes; then
32340   :
32341 else
32342
32343 cat >>confdefs.h <<_ACEOF
32344 #define caddr_t char *
32345 _ACEOF
32346
32347 fi
32348
32349 echo "$as_me:$LINENO: checking for size_t" >&5
32350 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32351 if test "${ac_cv_type_size_t+set}" = set; then
32352   echo $ECHO_N "(cached) $ECHO_C" >&6
32353 else
32354   cat >conftest.$ac_ext <<_ACEOF
32355 /* confdefs.h.  */
32356 _ACEOF
32357 cat confdefs.h >>conftest.$ac_ext
32358 cat >>conftest.$ac_ext <<_ACEOF
32359 /* end confdefs.h.  */
32360 $ac_includes_default
32361 int
32362 main ()
32363 {
32364 if ((size_t *) 0)
32365   return 0;
32366 if (sizeof (size_t))
32367   return 0;
32368   ;
32369   return 0;
32370 }
32371 _ACEOF
32372 rm -f conftest.$ac_objext
32373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32374   (eval $ac_compile) 2>conftest.er1
32375   ac_status=$?
32376   grep -v '^ *+' conftest.er1 >conftest.err
32377   rm -f conftest.er1
32378   cat conftest.err >&5
32379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380   (exit $ac_status); } &&
32381          { ac_try='test -z "$ac_c_werror_flag"
32382                          || test ! -s conftest.err'
32383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32384   (eval $ac_try) 2>&5
32385   ac_status=$?
32386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387   (exit $ac_status); }; } &&
32388          { ac_try='test -s conftest.$ac_objext'
32389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32390   (eval $ac_try) 2>&5
32391   ac_status=$?
32392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393   (exit $ac_status); }; }; then
32394   ac_cv_type_size_t=yes
32395 else
32396   echo "$as_me: failed program was:" >&5
32397 sed 's/^/| /' conftest.$ac_ext >&5
32398
32399 ac_cv_type_size_t=no
32400 fi
32401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32402 fi
32403 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32404 echo "${ECHO_T}$ac_cv_type_size_t" >&6
32405 if test $ac_cv_type_size_t = yes; then
32406   :
32407 else
32408
32409 cat >>confdefs.h <<_ACEOF
32410 #define size_t unsigned
32411 _ACEOF
32412
32413 fi
32414
32415
32416 echo "$as_me:$LINENO: checking for long long" >&5
32417 echo $ECHO_N "checking for long long... $ECHO_C" >&6
32418 if test "${ac_cv_type_long_long+set}" = set; then
32419   echo $ECHO_N "(cached) $ECHO_C" >&6
32420 else
32421   cat >conftest.$ac_ext <<_ACEOF
32422 /* confdefs.h.  */
32423 _ACEOF
32424 cat confdefs.h >>conftest.$ac_ext
32425 cat >>conftest.$ac_ext <<_ACEOF
32426 /* end confdefs.h.  */
32427 $ac_includes_default
32428 int
32429 main ()
32430 {
32431 if ((long long *) 0)
32432   return 0;
32433 if (sizeof (long long))
32434   return 0;
32435   ;
32436   return 0;
32437 }
32438 _ACEOF
32439 rm -f conftest.$ac_objext
32440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32441   (eval $ac_compile) 2>conftest.er1
32442   ac_status=$?
32443   grep -v '^ *+' conftest.er1 >conftest.err
32444   rm -f conftest.er1
32445   cat conftest.err >&5
32446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32447   (exit $ac_status); } &&
32448          { ac_try='test -z "$ac_c_werror_flag"
32449                          || test ! -s conftest.err'
32450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32451   (eval $ac_try) 2>&5
32452   ac_status=$?
32453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454   (exit $ac_status); }; } &&
32455          { ac_try='test -s conftest.$ac_objext'
32456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32457   (eval $ac_try) 2>&5
32458   ac_status=$?
32459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460   (exit $ac_status); }; }; then
32461   ac_cv_type_long_long=yes
32462 else
32463   echo "$as_me: failed program was:" >&5
32464 sed 's/^/| /' conftest.$ac_ext >&5
32465
32466 ac_cv_type_long_long=no
32467 fi
32468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32469 fi
32470 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32471 echo "${ECHO_T}$ac_cv_type_long_long" >&6
32472 if test $ac_cv_type_long_long = yes; then
32473
32474 cat >>confdefs.h <<_ACEOF
32475 #define HAVE_LONG_LONG 1
32476 _ACEOF
32477
32478
32479 fi
32480
32481 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32482 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
32483 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32484   echo $ECHO_N "(cached) $ECHO_C" >&6
32485 else
32486   cat >conftest.$ac_ext <<_ACEOF
32487 /* confdefs.h.  */
32488 _ACEOF
32489 cat confdefs.h >>conftest.$ac_ext
32490 cat >>conftest.$ac_ext <<_ACEOF
32491 /* end confdefs.h.  */
32492 $ac_includes_default
32493 int
32494 main ()
32495 {
32496 if ((ptrdiff_t *) 0)
32497   return 0;
32498 if (sizeof (ptrdiff_t))
32499   return 0;
32500   ;
32501   return 0;
32502 }
32503 _ACEOF
32504 rm -f conftest.$ac_objext
32505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32506   (eval $ac_compile) 2>conftest.er1
32507   ac_status=$?
32508   grep -v '^ *+' conftest.er1 >conftest.err
32509   rm -f conftest.er1
32510   cat conftest.err >&5
32511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512   (exit $ac_status); } &&
32513          { ac_try='test -z "$ac_c_werror_flag"
32514                          || test ! -s conftest.err'
32515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32516   (eval $ac_try) 2>&5
32517   ac_status=$?
32518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519   (exit $ac_status); }; } &&
32520          { ac_try='test -s conftest.$ac_objext'
32521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32522   (eval $ac_try) 2>&5
32523   ac_status=$?
32524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525   (exit $ac_status); }; }; then
32526   ac_cv_type_ptrdiff_t=yes
32527 else
32528   echo "$as_me: failed program was:" >&5
32529 sed 's/^/| /' conftest.$ac_ext >&5
32530
32531 ac_cv_type_ptrdiff_t=no
32532 fi
32533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32534 fi
32535 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32536 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
32537 if test $ac_cv_type_ptrdiff_t = yes; then
32538
32539 cat >>confdefs.h <<_ACEOF
32540 #define HAVE_PTRDIFF_T 1
32541 _ACEOF
32542
32543
32544 fi
32545
32546
32547
32548 echo "$as_me:$LINENO: checking for socklen_t" >&5
32549 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
32550 if test "${ac_cv_type_socklen_t+set}" = set; then
32551   echo $ECHO_N "(cached) $ECHO_C" >&6
32552 else
32553   cat >conftest.$ac_ext <<_ACEOF
32554 /* confdefs.h.  */
32555 _ACEOF
32556 cat confdefs.h >>conftest.$ac_ext
32557 cat >>conftest.$ac_ext <<_ACEOF
32558 /* end confdefs.h.  */
32559 $ac_includes_default
32560 #ifdef HAVE_SYS_SOCKET_H
32561 #include <sys/socket.h>
32562 #endif
32563
32564 int
32565 main ()
32566 {
32567 if ((socklen_t *) 0)
32568   return 0;
32569 if (sizeof (socklen_t))
32570   return 0;
32571   ;
32572   return 0;
32573 }
32574 _ACEOF
32575 rm -f conftest.$ac_objext
32576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32577   (eval $ac_compile) 2>conftest.er1
32578   ac_status=$?
32579   grep -v '^ *+' conftest.er1 >conftest.err
32580   rm -f conftest.er1
32581   cat conftest.err >&5
32582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32583   (exit $ac_status); } &&
32584          { ac_try='test -z "$ac_c_werror_flag"
32585                          || test ! -s conftest.err'
32586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32587   (eval $ac_try) 2>&5
32588   ac_status=$?
32589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590   (exit $ac_status); }; } &&
32591          { ac_try='test -s conftest.$ac_objext'
32592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32593   (eval $ac_try) 2>&5
32594   ac_status=$?
32595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596   (exit $ac_status); }; }; then
32597   ac_cv_type_socklen_t=yes
32598 else
32599   echo "$as_me: failed program was:" >&5
32600 sed 's/^/| /' conftest.$ac_ext >&5
32601
32602 ac_cv_type_socklen_t=no
32603 fi
32604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32605 fi
32606 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32607 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
32608
32609
32610 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32611 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
32612 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32613   echo $ECHO_N "(cached) $ECHO_C" >&6
32614 else
32615
32616         set socklen_t int unsigned "unsigned long" long size_t
32617         test "$ac_cv_type_socklen_t" = yes || shift
32618         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32619         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32620                 cat >conftest.$ac_ext <<_ACEOF
32621 /* confdefs.h.  */
32622 _ACEOF
32623 cat confdefs.h >>conftest.$ac_ext
32624 cat >>conftest.$ac_ext <<_ACEOF
32625 /* end confdefs.h.  */
32626 $ac_includes_default
32627 #ifdef HAVE_SYS_SOCKET_H
32628 #include <sys/socket.h>
32629 #endif
32630 extern int accept(int s, $addrtype *ap, $lentype *lp);
32631
32632 int
32633 main ()
32634 {
32635
32636 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32637
32638   ;
32639   return 0;
32640 }
32641 _ACEOF
32642 rm -f conftest.$ac_objext
32643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32644   (eval $ac_compile) 2>conftest.er1
32645   ac_status=$?
32646   grep -v '^ *+' conftest.er1 >conftest.err
32647   rm -f conftest.er1
32648   cat conftest.err >&5
32649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650   (exit $ac_status); } &&
32651          { ac_try='test -z "$ac_c_werror_flag"
32652                          || test ! -s conftest.err'
32653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32654   (eval $ac_try) 2>&5
32655   ac_status=$?
32656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657   (exit $ac_status); }; } &&
32658          { ac_try='test -s conftest.$ac_objext'
32659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32660   (eval $ac_try) 2>&5
32661   ac_status=$?
32662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663   (exit $ac_status); }; }; then
32664   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32665 else
32666   echo "$as_me: failed program was:" >&5
32667 sed 's/^/| /' conftest.$ac_ext >&5
32668
32669 fi
32670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32671         done ; done
32672 fi
32673
32674 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32675 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
32676
32677 cat >>confdefs.h <<_ACEOF
32678 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32679 _ACEOF
32680
32681
32682 if test "$ac_cv_type_socklen_t" != yes; then
32683
32684 cat >>confdefs.h <<_ACEOF
32685 #define socklen_t $ol_cv_type_ber_socklen_t
32686 _ACEOF
32687
32688 fi
32689
32690
32691 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32692 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
32693 if test "${ac_cv_type_signal+set}" = set; then
32694   echo $ECHO_N "(cached) $ECHO_C" >&6
32695 else
32696   cat >conftest.$ac_ext <<_ACEOF
32697 /* confdefs.h.  */
32698 _ACEOF
32699 cat confdefs.h >>conftest.$ac_ext
32700 cat >>conftest.$ac_ext <<_ACEOF
32701 /* end confdefs.h.  */
32702 #include <sys/types.h>
32703 #include <signal.h>
32704 #ifdef signal
32705 # undef signal
32706 #endif
32707 #ifdef __cplusplus
32708 extern "C" void (*signal (int, void (*)(int)))(int);
32709 #else
32710 void (*signal ()) ();
32711 #endif
32712
32713 int
32714 main ()
32715 {
32716 int i;
32717   ;
32718   return 0;
32719 }
32720 _ACEOF
32721 rm -f conftest.$ac_objext
32722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32723   (eval $ac_compile) 2>conftest.er1
32724   ac_status=$?
32725   grep -v '^ *+' conftest.er1 >conftest.err
32726   rm -f conftest.er1
32727   cat conftest.err >&5
32728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729   (exit $ac_status); } &&
32730          { ac_try='test -z "$ac_c_werror_flag"
32731                          || test ! -s conftest.err'
32732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32733   (eval $ac_try) 2>&5
32734   ac_status=$?
32735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736   (exit $ac_status); }; } &&
32737          { ac_try='test -s conftest.$ac_objext'
32738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32739   (eval $ac_try) 2>&5
32740   ac_status=$?
32741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742   (exit $ac_status); }; }; then
32743   ac_cv_type_signal=void
32744 else
32745   echo "$as_me: failed program was:" >&5
32746 sed 's/^/| /' conftest.$ac_ext >&5
32747
32748 ac_cv_type_signal=int
32749 fi
32750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32751 fi
32752 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32753 echo "${ECHO_T}$ac_cv_type_signal" >&6
32754
32755 cat >>confdefs.h <<_ACEOF
32756 #define RETSIGTYPE $ac_cv_type_signal
32757 _ACEOF
32758
32759
32760
32761 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32762 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
32763 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32764   echo $ECHO_N "(cached) $ECHO_C" >&6
32765 else
32766   cat >conftest.$ac_ext <<_ACEOF
32767 /* confdefs.h.  */
32768 _ACEOF
32769 cat confdefs.h >>conftest.$ac_ext
32770 cat >>conftest.$ac_ext <<_ACEOF
32771 /* end confdefs.h.  */
32772 $ac_includes_default
32773 #include <signal.h>
32774
32775
32776 int
32777 main ()
32778 {
32779 if ((sig_atomic_t *) 0)
32780   return 0;
32781 if (sizeof (sig_atomic_t))
32782   return 0;
32783   ;
32784   return 0;
32785 }
32786 _ACEOF
32787 rm -f conftest.$ac_objext
32788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32789   (eval $ac_compile) 2>conftest.er1
32790   ac_status=$?
32791   grep -v '^ *+' conftest.er1 >conftest.err
32792   rm -f conftest.er1
32793   cat conftest.err >&5
32794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795   (exit $ac_status); } &&
32796          { ac_try='test -z "$ac_c_werror_flag"
32797                          || test ! -s conftest.err'
32798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32799   (eval $ac_try) 2>&5
32800   ac_status=$?
32801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802   (exit $ac_status); }; } &&
32803          { ac_try='test -s conftest.$ac_objext'
32804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32805   (eval $ac_try) 2>&5
32806   ac_status=$?
32807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808   (exit $ac_status); }; }; then
32809   ac_cv_type_sig_atomic_t=yes
32810 else
32811   echo "$as_me: failed program was:" >&5
32812 sed 's/^/| /' conftest.$ac_ext >&5
32813
32814 ac_cv_type_sig_atomic_t=no
32815 fi
32816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32817 fi
32818 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32819 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
32820 if test $ac_cv_type_sig_atomic_t = yes; then
32821   :
32822 else
32823
32824 cat >>confdefs.h <<_ACEOF
32825 #define sig_atomic_t int
32826 _ACEOF
32827
32828 fi
32829
32830
32831 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32832 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32833 if test "${ac_cv_type_uid_t+set}" = set; then
32834   echo $ECHO_N "(cached) $ECHO_C" >&6
32835 else
32836   cat >conftest.$ac_ext <<_ACEOF
32837 /* confdefs.h.  */
32838 _ACEOF
32839 cat confdefs.h >>conftest.$ac_ext
32840 cat >>conftest.$ac_ext <<_ACEOF
32841 /* end confdefs.h.  */
32842 #include <sys/types.h>
32843
32844 _ACEOF
32845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32846   $EGREP "uid_t" >/dev/null 2>&1; then
32847   ac_cv_type_uid_t=yes
32848 else
32849   ac_cv_type_uid_t=no
32850 fi
32851 rm -f conftest*
32852
32853 fi
32854 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32855 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32856 if test $ac_cv_type_uid_t = no; then
32857
32858 cat >>confdefs.h <<\_ACEOF
32859 #define uid_t int
32860 _ACEOF
32861
32862
32863 cat >>confdefs.h <<\_ACEOF
32864 #define gid_t int
32865 _ACEOF
32866
32867 fi
32868
32869
32870 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32871 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
32872 if test "${ac_cv_header_time+set}" = set; then
32873   echo $ECHO_N "(cached) $ECHO_C" >&6
32874 else
32875   cat >conftest.$ac_ext <<_ACEOF
32876 /* confdefs.h.  */
32877 _ACEOF
32878 cat confdefs.h >>conftest.$ac_ext
32879 cat >>conftest.$ac_ext <<_ACEOF
32880 /* end confdefs.h.  */
32881 #include <sys/types.h>
32882 #include <sys/time.h>
32883 #include <time.h>
32884
32885 int
32886 main ()
32887 {
32888 if ((struct tm *) 0)
32889 return 0;
32890   ;
32891   return 0;
32892 }
32893 _ACEOF
32894 rm -f conftest.$ac_objext
32895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32896   (eval $ac_compile) 2>conftest.er1
32897   ac_status=$?
32898   grep -v '^ *+' conftest.er1 >conftest.err
32899   rm -f conftest.er1
32900   cat conftest.err >&5
32901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902   (exit $ac_status); } &&
32903          { ac_try='test -z "$ac_c_werror_flag"
32904                          || test ! -s conftest.err'
32905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32906   (eval $ac_try) 2>&5
32907   ac_status=$?
32908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909   (exit $ac_status); }; } &&
32910          { ac_try='test -s conftest.$ac_objext'
32911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32912   (eval $ac_try) 2>&5
32913   ac_status=$?
32914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915   (exit $ac_status); }; }; then
32916   ac_cv_header_time=yes
32917 else
32918   echo "$as_me: failed program was:" >&5
32919 sed 's/^/| /' conftest.$ac_ext >&5
32920
32921 ac_cv_header_time=no
32922 fi
32923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32924 fi
32925 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32926 echo "${ECHO_T}$ac_cv_header_time" >&6
32927 if test $ac_cv_header_time = yes; then
32928
32929 cat >>confdefs.h <<\_ACEOF
32930 #define TIME_WITH_SYS_TIME 1
32931 _ACEOF
32932
32933 fi
32934
32935 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32936 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
32937 if test "${ac_cv_struct_tm+set}" = set; then
32938   echo $ECHO_N "(cached) $ECHO_C" >&6
32939 else
32940   cat >conftest.$ac_ext <<_ACEOF
32941 /* confdefs.h.  */
32942 _ACEOF
32943 cat confdefs.h >>conftest.$ac_ext
32944 cat >>conftest.$ac_ext <<_ACEOF
32945 /* end confdefs.h.  */
32946 #include <sys/types.h>
32947 #include <time.h>
32948
32949 int
32950 main ()
32951 {
32952 struct tm *tp; tp->tm_sec;
32953   ;
32954   return 0;
32955 }
32956 _ACEOF
32957 rm -f conftest.$ac_objext
32958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32959   (eval $ac_compile) 2>conftest.er1
32960   ac_status=$?
32961   grep -v '^ *+' conftest.er1 >conftest.err
32962   rm -f conftest.er1
32963   cat conftest.err >&5
32964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965   (exit $ac_status); } &&
32966          { ac_try='test -z "$ac_c_werror_flag"
32967                          || test ! -s conftest.err'
32968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32969   (eval $ac_try) 2>&5
32970   ac_status=$?
32971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972   (exit $ac_status); }; } &&
32973          { ac_try='test -s conftest.$ac_objext'
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   ac_cv_struct_tm=time.h
32980 else
32981   echo "$as_me: failed program was:" >&5
32982 sed 's/^/| /' conftest.$ac_ext >&5
32983
32984 ac_cv_struct_tm=sys/time.h
32985 fi
32986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32987 fi
32988 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32989 echo "${ECHO_T}$ac_cv_struct_tm" >&6
32990 if test $ac_cv_struct_tm = sys/time.h; then
32991
32992 cat >>confdefs.h <<\_ACEOF
32993 #define TM_IN_SYS_TIME 1
32994 _ACEOF
32995
32996 fi
32997
32998 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32999 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
33000 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33001   echo $ECHO_N "(cached) $ECHO_C" >&6
33002 else
33003   cat >conftest.$ac_ext <<_ACEOF
33004 /* confdefs.h.  */
33005 _ACEOF
33006 cat confdefs.h >>conftest.$ac_ext
33007 cat >>conftest.$ac_ext <<_ACEOF
33008 /* end confdefs.h.  */
33009 $ac_includes_default
33010 int
33011 main ()
33012 {
33013 static struct stat ac_aggr;
33014 if (ac_aggr.st_blksize)
33015 return 0;
33016   ;
33017   return 0;
33018 }
33019 _ACEOF
33020 rm -f conftest.$ac_objext
33021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33022   (eval $ac_compile) 2>conftest.er1
33023   ac_status=$?
33024   grep -v '^ *+' conftest.er1 >conftest.err
33025   rm -f conftest.er1
33026   cat conftest.err >&5
33027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028   (exit $ac_status); } &&
33029          { ac_try='test -z "$ac_c_werror_flag"
33030                          || test ! -s conftest.err'
33031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33032   (eval $ac_try) 2>&5
33033   ac_status=$?
33034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33035   (exit $ac_status); }; } &&
33036          { ac_try='test -s conftest.$ac_objext'
33037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33038   (eval $ac_try) 2>&5
33039   ac_status=$?
33040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33041   (exit $ac_status); }; }; then
33042   ac_cv_member_struct_stat_st_blksize=yes
33043 else
33044   echo "$as_me: failed program was:" >&5
33045 sed 's/^/| /' conftest.$ac_ext >&5
33046
33047 cat >conftest.$ac_ext <<_ACEOF
33048 /* confdefs.h.  */
33049 _ACEOF
33050 cat confdefs.h >>conftest.$ac_ext
33051 cat >>conftest.$ac_ext <<_ACEOF
33052 /* end confdefs.h.  */
33053 $ac_includes_default
33054 int
33055 main ()
33056 {
33057 static struct stat ac_aggr;
33058 if (sizeof ac_aggr.st_blksize)
33059 return 0;
33060   ;
33061   return 0;
33062 }
33063 _ACEOF
33064 rm -f conftest.$ac_objext
33065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33066   (eval $ac_compile) 2>conftest.er1
33067   ac_status=$?
33068   grep -v '^ *+' conftest.er1 >conftest.err
33069   rm -f conftest.er1
33070   cat conftest.err >&5
33071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072   (exit $ac_status); } &&
33073          { ac_try='test -z "$ac_c_werror_flag"
33074                          || test ! -s conftest.err'
33075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33076   (eval $ac_try) 2>&5
33077   ac_status=$?
33078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079   (exit $ac_status); }; } &&
33080          { ac_try='test -s conftest.$ac_objext'
33081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33082   (eval $ac_try) 2>&5
33083   ac_status=$?
33084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085   (exit $ac_status); }; }; then
33086   ac_cv_member_struct_stat_st_blksize=yes
33087 else
33088   echo "$as_me: failed program was:" >&5
33089 sed 's/^/| /' conftest.$ac_ext >&5
33090
33091 ac_cv_member_struct_stat_st_blksize=no
33092 fi
33093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33094 fi
33095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33096 fi
33097 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33098 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
33099 if test $ac_cv_member_struct_stat_st_blksize = yes; then
33100
33101 cat >>confdefs.h <<_ACEOF
33102 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33103 _ACEOF
33104
33105
33106 fi
33107
33108 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
33109 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
33110 if test "${ac_cv_member_struct_passwd_pw_gecos+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 $ac_includes_default
33120 #include <pwd.h>
33121
33122 int
33123 main ()
33124 {
33125 static struct passwd ac_aggr;
33126 if (ac_aggr.pw_gecos)
33127 return 0;
33128   ;
33129   return 0;
33130 }
33131 _ACEOF
33132 rm -f conftest.$ac_objext
33133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33134   (eval $ac_compile) 2>conftest.er1
33135   ac_status=$?
33136   grep -v '^ *+' conftest.er1 >conftest.err
33137   rm -f conftest.er1
33138   cat conftest.err >&5
33139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140   (exit $ac_status); } &&
33141          { ac_try='test -z "$ac_c_werror_flag"
33142                          || test ! -s conftest.err'
33143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33144   (eval $ac_try) 2>&5
33145   ac_status=$?
33146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147   (exit $ac_status); }; } &&
33148          { ac_try='test -s conftest.$ac_objext'
33149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33150   (eval $ac_try) 2>&5
33151   ac_status=$?
33152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153   (exit $ac_status); }; }; then
33154   ac_cv_member_struct_passwd_pw_gecos=yes
33155 else
33156   echo "$as_me: failed program was:" >&5
33157 sed 's/^/| /' conftest.$ac_ext >&5
33158
33159 cat >conftest.$ac_ext <<_ACEOF
33160 /* confdefs.h.  */
33161 _ACEOF
33162 cat confdefs.h >>conftest.$ac_ext
33163 cat >>conftest.$ac_ext <<_ACEOF
33164 /* end confdefs.h.  */
33165 $ac_includes_default
33166 #include <pwd.h>
33167
33168 int
33169 main ()
33170 {
33171 static struct passwd ac_aggr;
33172 if (sizeof ac_aggr.pw_gecos)
33173 return 0;
33174   ;
33175   return 0;
33176 }
33177 _ACEOF
33178 rm -f conftest.$ac_objext
33179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33180   (eval $ac_compile) 2>conftest.er1
33181   ac_status=$?
33182   grep -v '^ *+' conftest.er1 >conftest.err
33183   rm -f conftest.er1
33184   cat conftest.err >&5
33185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186   (exit $ac_status); } &&
33187          { ac_try='test -z "$ac_c_werror_flag"
33188                          || test ! -s conftest.err'
33189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33190   (eval $ac_try) 2>&5
33191   ac_status=$?
33192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193   (exit $ac_status); }; } &&
33194          { ac_try='test -s conftest.$ac_objext'
33195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33196   (eval $ac_try) 2>&5
33197   ac_status=$?
33198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199   (exit $ac_status); }; }; then
33200   ac_cv_member_struct_passwd_pw_gecos=yes
33201 else
33202   echo "$as_me: failed program was:" >&5
33203 sed 's/^/| /' conftest.$ac_ext >&5
33204
33205 ac_cv_member_struct_passwd_pw_gecos=no
33206 fi
33207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33208 fi
33209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33210 fi
33211 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
33212 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
33213 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
33214
33215 cat >>confdefs.h <<_ACEOF
33216 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
33217 _ACEOF
33218
33219
33220 fi
33221
33222 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
33223 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
33224 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
33225   echo $ECHO_N "(cached) $ECHO_C" >&6
33226 else
33227   cat >conftest.$ac_ext <<_ACEOF
33228 /* confdefs.h.  */
33229 _ACEOF
33230 cat confdefs.h >>conftest.$ac_ext
33231 cat >>conftest.$ac_ext <<_ACEOF
33232 /* end confdefs.h.  */
33233 $ac_includes_default
33234 #include <pwd.h>
33235
33236 int
33237 main ()
33238 {
33239 static struct passwd ac_aggr;
33240 if (ac_aggr.pw_passwd)
33241 return 0;
33242   ;
33243   return 0;
33244 }
33245 _ACEOF
33246 rm -f conftest.$ac_objext
33247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33248   (eval $ac_compile) 2>conftest.er1
33249   ac_status=$?
33250   grep -v '^ *+' conftest.er1 >conftest.err
33251   rm -f conftest.er1
33252   cat conftest.err >&5
33253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254   (exit $ac_status); } &&
33255          { ac_try='test -z "$ac_c_werror_flag"
33256                          || test ! -s conftest.err'
33257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33258   (eval $ac_try) 2>&5
33259   ac_status=$?
33260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261   (exit $ac_status); }; } &&
33262          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
33268   ac_cv_member_struct_passwd_pw_passwd=yes
33269 else
33270   echo "$as_me: failed program was:" >&5
33271 sed 's/^/| /' conftest.$ac_ext >&5
33272
33273 cat >conftest.$ac_ext <<_ACEOF
33274 /* confdefs.h.  */
33275 _ACEOF
33276 cat confdefs.h >>conftest.$ac_ext
33277 cat >>conftest.$ac_ext <<_ACEOF
33278 /* end confdefs.h.  */
33279 $ac_includes_default
33280 #include <pwd.h>
33281
33282 int
33283 main ()
33284 {
33285 static struct passwd ac_aggr;
33286 if (sizeof ac_aggr.pw_passwd)
33287 return 0;
33288   ;
33289   return 0;
33290 }
33291 _ACEOF
33292 rm -f conftest.$ac_objext
33293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33294   (eval $ac_compile) 2>conftest.er1
33295   ac_status=$?
33296   grep -v '^ *+' conftest.er1 >conftest.err
33297   rm -f conftest.er1
33298   cat conftest.err >&5
33299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300   (exit $ac_status); } &&
33301          { ac_try='test -z "$ac_c_werror_flag"
33302                          || test ! -s conftest.err'
33303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33304   (eval $ac_try) 2>&5
33305   ac_status=$?
33306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33307   (exit $ac_status); }; } &&
33308          { ac_try='test -s conftest.$ac_objext'
33309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33310   (eval $ac_try) 2>&5
33311   ac_status=$?
33312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313   (exit $ac_status); }; }; then
33314   ac_cv_member_struct_passwd_pw_passwd=yes
33315 else
33316   echo "$as_me: failed program was:" >&5
33317 sed 's/^/| /' conftest.$ac_ext >&5
33318
33319 ac_cv_member_struct_passwd_pw_passwd=no
33320 fi
33321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33322 fi
33323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33324 fi
33325 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
33326 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
33327 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
33328
33329 cat >>confdefs.h <<_ACEOF
33330 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
33331 _ACEOF
33332
33333
33334 fi
33335
33336
33337 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
33338 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
33339 if test "${ol_cv_c_upper_lower+set}" = set; then
33340   echo $ECHO_N "(cached) $ECHO_C" >&6
33341 else
33342
33343         if test "$cross_compiling" = yes; then
33344   ol_cv_c_upper_lower=safe
33345 else
33346   cat >conftest.$ac_ext <<_ACEOF
33347 /* confdefs.h.  */
33348 _ACEOF
33349 cat confdefs.h >>conftest.$ac_ext
33350 cat >>conftest.$ac_ext <<_ACEOF
33351 /* end confdefs.h.  */
33352
33353 #include <ctype.h>
33354 main()
33355 {
33356         if ('C' == toupper('C'))
33357                 exit(0);
33358         else
33359                 exit(1);
33360 }
33361 _ACEOF
33362 rm -f conftest$ac_exeext
33363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33364   (eval $ac_link) 2>&5
33365   ac_status=$?
33366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33369   (eval $ac_try) 2>&5
33370   ac_status=$?
33371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372   (exit $ac_status); }; }; then
33373   ol_cv_c_upper_lower=no
33374 else
33375   echo "$as_me: program exited with status $ac_status" >&5
33376 echo "$as_me: failed program was:" >&5
33377 sed 's/^/| /' conftest.$ac_ext >&5
33378
33379 ( exit $ac_status )
33380 ol_cv_c_upper_lower=yes
33381 fi
33382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33383 fi
33384 fi
33385 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33386 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
33387 if test $ol_cv_c_upper_lower != no ; then
33388
33389 cat >>confdefs.h <<\_ACEOF
33390 #define C_UPPER_LOWER 1
33391 _ACEOF
33392
33393 fi
33394
33395 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33396 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
33397 if test "${ac_cv_c_const+set}" = set; then
33398   echo $ECHO_N "(cached) $ECHO_C" >&6
33399 else
33400   cat >conftest.$ac_ext <<_ACEOF
33401 /* confdefs.h.  */
33402 _ACEOF
33403 cat confdefs.h >>conftest.$ac_ext
33404 cat >>conftest.$ac_ext <<_ACEOF
33405 /* end confdefs.h.  */
33406
33407 int
33408 main ()
33409 {
33410 /* FIXME: Include the comments suggested by Paul. */
33411 #ifndef __cplusplus
33412   /* Ultrix mips cc rejects this.  */
33413   typedef int charset[2];
33414   const charset x;
33415   /* SunOS 4.1.1 cc rejects this.  */
33416   char const *const *ccp;
33417   char **p;
33418   /* NEC SVR4.0.2 mips cc rejects this.  */
33419   struct point {int x, y;};
33420   static struct point const zero = {0,0};
33421   /* AIX XL C 1.02.0.0 rejects this.
33422      It does not let you subtract one const X* pointer from another in
33423      an arm of an if-expression whose if-part is not a constant
33424      expression */
33425   const char *g = "string";
33426   ccp = &g + (g ? g-g : 0);
33427   /* HPUX 7.0 cc rejects these. */
33428   ++ccp;
33429   p = (char**) ccp;
33430   ccp = (char const *const *) p;
33431   { /* SCO 3.2v4 cc rejects this.  */
33432     char *t;
33433     char const *s = 0 ? (char *) 0 : (char const *) 0;
33434
33435     *t++ = 0;
33436   }
33437   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33438     int x[] = {25, 17};
33439     const int *foo = &x[0];
33440     ++foo;
33441   }
33442   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33443     typedef const int *iptr;
33444     iptr p = 0;
33445     ++p;
33446   }
33447   { /* AIX XL C 1.02.0.0 rejects this saying
33448        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33449     struct s { int j; const int *ap[3]; };
33450     struct s *b; b->j = 5;
33451   }
33452   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33453     const int foo = 10;
33454   }
33455 #endif
33456
33457   ;
33458   return 0;
33459 }
33460 _ACEOF
33461 rm -f conftest.$ac_objext
33462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33463   (eval $ac_compile) 2>conftest.er1
33464   ac_status=$?
33465   grep -v '^ *+' conftest.er1 >conftest.err
33466   rm -f conftest.er1
33467   cat conftest.err >&5
33468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469   (exit $ac_status); } &&
33470          { ac_try='test -z "$ac_c_werror_flag"
33471                          || test ! -s conftest.err'
33472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33473   (eval $ac_try) 2>&5
33474   ac_status=$?
33475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476   (exit $ac_status); }; } &&
33477          { ac_try='test -s conftest.$ac_objext'
33478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33479   (eval $ac_try) 2>&5
33480   ac_status=$?
33481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482   (exit $ac_status); }; }; then
33483   ac_cv_c_const=yes
33484 else
33485   echo "$as_me: failed program was:" >&5
33486 sed 's/^/| /' conftest.$ac_ext >&5
33487
33488 ac_cv_c_const=no
33489 fi
33490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33491 fi
33492 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33493 echo "${ECHO_T}$ac_cv_c_const" >&6
33494 if test $ac_cv_c_const = no; then
33495
33496 cat >>confdefs.h <<\_ACEOF
33497 #define const
33498 _ACEOF
33499
33500 fi
33501
33502 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33503 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
33504 if test "${ol_cv_c_volatile+set}" = set; then
33505   echo $ECHO_N "(cached) $ECHO_C" >&6
33506 else
33507   cat >conftest.$ac_ext <<_ACEOF
33508 /* confdefs.h.  */
33509 _ACEOF
33510 cat confdefs.h >>conftest.$ac_ext
33511 cat >>conftest.$ac_ext <<_ACEOF
33512 /* end confdefs.h.  */
33513 int x, y, z;
33514 int
33515 main ()
33516 {
33517 volatile int a; int * volatile b = x ? &y : &z;
33518       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33519       *b = 0;
33520   ;
33521   return 0;
33522 }
33523 _ACEOF
33524 rm -f conftest.$ac_objext
33525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33526   (eval $ac_compile) 2>conftest.er1
33527   ac_status=$?
33528   grep -v '^ *+' conftest.er1 >conftest.err
33529   rm -f conftest.er1
33530   cat conftest.err >&5
33531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33532   (exit $ac_status); } &&
33533          { ac_try='test -z "$ac_c_werror_flag"
33534                          || test ! -s conftest.err'
33535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33536   (eval $ac_try) 2>&5
33537   ac_status=$?
33538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539   (exit $ac_status); }; } &&
33540          { ac_try='test -s conftest.$ac_objext'
33541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33542   (eval $ac_try) 2>&5
33543   ac_status=$?
33544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545   (exit $ac_status); }; }; then
33546   ol_cv_c_volatile=yes
33547 else
33548   echo "$as_me: failed program was:" >&5
33549 sed 's/^/| /' conftest.$ac_ext >&5
33550
33551 ol_cv_c_volatile=no
33552 fi
33553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33554 fi
33555 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33556 echo "${ECHO_T}$ol_cv_c_volatile" >&6
33557   if test $ol_cv_c_volatile = yes; then
33558     :
33559   else
33560
33561 cat >>confdefs.h <<\_ACEOF
33562 #define volatile
33563 _ACEOF
33564
33565   fi
33566
33567
33568 if test $cross_compiling = yes ; then
33569         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33570 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33571
33572 cat >>confdefs.h <<\_ACEOF
33573 #define CROSS_COMPILING 1
33574 _ACEOF
33575
33576 else
33577         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33578 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
33579 if test "${ac_cv_c_bigendian+set}" = set; then
33580   echo $ECHO_N "(cached) $ECHO_C" >&6
33581 else
33582   # See if sys/param.h defines the BYTE_ORDER macro.
33583 cat >conftest.$ac_ext <<_ACEOF
33584 /* confdefs.h.  */
33585 _ACEOF
33586 cat confdefs.h >>conftest.$ac_ext
33587 cat >>conftest.$ac_ext <<_ACEOF
33588 /* end confdefs.h.  */
33589 #include <sys/types.h>
33590 #include <sys/param.h>
33591
33592 int
33593 main ()
33594 {
33595 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
33596  bogus endian macros
33597 #endif
33598
33599   ;
33600   return 0;
33601 }
33602 _ACEOF
33603 rm -f conftest.$ac_objext
33604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33605   (eval $ac_compile) 2>conftest.er1
33606   ac_status=$?
33607   grep -v '^ *+' conftest.er1 >conftest.err
33608   rm -f conftest.er1
33609   cat conftest.err >&5
33610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611   (exit $ac_status); } &&
33612          { ac_try='test -z "$ac_c_werror_flag"
33613                          || test ! -s conftest.err'
33614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33615   (eval $ac_try) 2>&5
33616   ac_status=$?
33617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618   (exit $ac_status); }; } &&
33619          { ac_try='test -s conftest.$ac_objext'
33620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33621   (eval $ac_try) 2>&5
33622   ac_status=$?
33623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33624   (exit $ac_status); }; }; then
33625   # It does; now see whether it defined to BIG_ENDIAN or not.
33626 cat >conftest.$ac_ext <<_ACEOF
33627 /* confdefs.h.  */
33628 _ACEOF
33629 cat confdefs.h >>conftest.$ac_ext
33630 cat >>conftest.$ac_ext <<_ACEOF
33631 /* end confdefs.h.  */
33632 #include <sys/types.h>
33633 #include <sys/param.h>
33634
33635 int
33636 main ()
33637 {
33638 #if BYTE_ORDER != BIG_ENDIAN
33639  not big endian
33640 #endif
33641
33642   ;
33643   return 0;
33644 }
33645 _ACEOF
33646 rm -f conftest.$ac_objext
33647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33648   (eval $ac_compile) 2>conftest.er1
33649   ac_status=$?
33650   grep -v '^ *+' conftest.er1 >conftest.err
33651   rm -f conftest.er1
33652   cat conftest.err >&5
33653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654   (exit $ac_status); } &&
33655          { ac_try='test -z "$ac_c_werror_flag"
33656                          || test ! -s conftest.err'
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); }; } &&
33662          { ac_try='test -s conftest.$ac_objext'
33663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33664   (eval $ac_try) 2>&5
33665   ac_status=$?
33666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667   (exit $ac_status); }; }; then
33668   ac_cv_c_bigendian=yes
33669 else
33670   echo "$as_me: failed program was:" >&5
33671 sed 's/^/| /' conftest.$ac_ext >&5
33672
33673 ac_cv_c_bigendian=no
33674 fi
33675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33676 else
33677   echo "$as_me: failed program was:" >&5
33678 sed 's/^/| /' conftest.$ac_ext >&5
33679
33680 # It does not; compile a test program.
33681 if test "$cross_compiling" = yes; then
33682   # try to guess the endianness by grepping values into an object file
33683   ac_cv_c_bigendian=unknown
33684   cat >conftest.$ac_ext <<_ACEOF
33685 /* confdefs.h.  */
33686 _ACEOF
33687 cat confdefs.h >>conftest.$ac_ext
33688 cat >>conftest.$ac_ext <<_ACEOF
33689 /* end confdefs.h.  */
33690 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33691 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33692 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33693 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33694 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33695 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33696 int
33697 main ()
33698 {
33699  _ascii (); _ebcdic ();
33700   ;
33701   return 0;
33702 }
33703 _ACEOF
33704 rm -f conftest.$ac_objext
33705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33706   (eval $ac_compile) 2>conftest.er1
33707   ac_status=$?
33708   grep -v '^ *+' conftest.er1 >conftest.err
33709   rm -f conftest.er1
33710   cat conftest.err >&5
33711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712   (exit $ac_status); } &&
33713          { ac_try='test -z "$ac_c_werror_flag"
33714                          || test ! -s conftest.err'
33715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33716   (eval $ac_try) 2>&5
33717   ac_status=$?
33718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719   (exit $ac_status); }; } &&
33720          { ac_try='test -s conftest.$ac_objext'
33721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33722   (eval $ac_try) 2>&5
33723   ac_status=$?
33724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725   (exit $ac_status); }; }; then
33726   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33727   ac_cv_c_bigendian=yes
33728 fi
33729 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33730   if test "$ac_cv_c_bigendian" = unknown; then
33731     ac_cv_c_bigendian=no
33732   else
33733     # finding both strings is unlikely to happen, but who knows?
33734     ac_cv_c_bigendian=unknown
33735   fi
33736 fi
33737 else
33738   echo "$as_me: failed program was:" >&5
33739 sed 's/^/| /' conftest.$ac_ext >&5
33740
33741 fi
33742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33743 else
33744   cat >conftest.$ac_ext <<_ACEOF
33745 /* confdefs.h.  */
33746 _ACEOF
33747 cat confdefs.h >>conftest.$ac_ext
33748 cat >>conftest.$ac_ext <<_ACEOF
33749 /* end confdefs.h.  */
33750 int
33751 main ()
33752 {
33753   /* Are we little or big endian?  From Harbison&Steele.  */
33754   union
33755   {
33756     long l;
33757     char c[sizeof (long)];
33758   } u;
33759   u.l = 1;
33760   exit (u.c[sizeof (long) - 1] == 1);
33761 }
33762 _ACEOF
33763 rm -f conftest$ac_exeext
33764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33765   (eval $ac_link) 2>&5
33766   ac_status=$?
33767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33770   (eval $ac_try) 2>&5
33771   ac_status=$?
33772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33773   (exit $ac_status); }; }; then
33774   ac_cv_c_bigendian=no
33775 else
33776   echo "$as_me: program exited with status $ac_status" >&5
33777 echo "$as_me: failed program was:" >&5
33778 sed 's/^/| /' conftest.$ac_ext >&5
33779
33780 ( exit $ac_status )
33781 ac_cv_c_bigendian=yes
33782 fi
33783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33784 fi
33785 fi
33786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33787 fi
33788 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33789 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
33790 case $ac_cv_c_bigendian in
33791   yes)
33792
33793 cat >>confdefs.h <<\_ACEOF
33794 #define WORDS_BIGENDIAN 1
33795 _ACEOF
33796  ;;
33797   no)
33798      ;;
33799   *)
33800     { { echo "$as_me:$LINENO: error: unknown endianness
33801 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33802 echo "$as_me: error: unknown endianness
33803 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33804    { (exit 1); exit 1; }; } ;;
33805 esac
33806
33807 fi
33808
33809 echo "$as_me:$LINENO: checking for short" >&5
33810 echo $ECHO_N "checking for short... $ECHO_C" >&6
33811 if test "${ac_cv_type_short+set}" = set; then
33812   echo $ECHO_N "(cached) $ECHO_C" >&6
33813 else
33814   cat >conftest.$ac_ext <<_ACEOF
33815 /* confdefs.h.  */
33816 _ACEOF
33817 cat confdefs.h >>conftest.$ac_ext
33818 cat >>conftest.$ac_ext <<_ACEOF
33819 /* end confdefs.h.  */
33820 $ac_includes_default
33821 int
33822 main ()
33823 {
33824 if ((short *) 0)
33825   return 0;
33826 if (sizeof (short))
33827   return 0;
33828   ;
33829   return 0;
33830 }
33831 _ACEOF
33832 rm -f conftest.$ac_objext
33833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33834   (eval $ac_compile) 2>conftest.er1
33835   ac_status=$?
33836   grep -v '^ *+' conftest.er1 >conftest.err
33837   rm -f conftest.er1
33838   cat conftest.err >&5
33839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840   (exit $ac_status); } &&
33841          { ac_try='test -z "$ac_c_werror_flag"
33842                          || test ! -s conftest.err'
33843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33844   (eval $ac_try) 2>&5
33845   ac_status=$?
33846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847   (exit $ac_status); }; } &&
33848          { ac_try='test -s conftest.$ac_objext'
33849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33850   (eval $ac_try) 2>&5
33851   ac_status=$?
33852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33853   (exit $ac_status); }; }; then
33854   ac_cv_type_short=yes
33855 else
33856   echo "$as_me: failed program was:" >&5
33857 sed 's/^/| /' conftest.$ac_ext >&5
33858
33859 ac_cv_type_short=no
33860 fi
33861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33862 fi
33863 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33864 echo "${ECHO_T}$ac_cv_type_short" >&6
33865
33866 echo "$as_me:$LINENO: checking size of short" >&5
33867 echo $ECHO_N "checking size of short... $ECHO_C" >&6
33868 if test "${ac_cv_sizeof_short+set}" = set; then
33869   echo $ECHO_N "(cached) $ECHO_C" >&6
33870 else
33871   if test "$ac_cv_type_short" = yes; then
33872   # The cast to unsigned long works around a bug in the HP C Compiler
33873   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33874   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33875   # This bug is HP SR number 8606223364.
33876   if test "$cross_compiling" = yes; then
33877   # Depending upon the size, compute the lo and hi bounds.
33878 cat >conftest.$ac_ext <<_ACEOF
33879 /* confdefs.h.  */
33880 _ACEOF
33881 cat confdefs.h >>conftest.$ac_ext
33882 cat >>conftest.$ac_ext <<_ACEOF
33883 /* end confdefs.h.  */
33884 $ac_includes_default
33885 int
33886 main ()
33887 {
33888 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
33889 test_array [0] = 0
33890
33891   ;
33892   return 0;
33893 }
33894 _ACEOF
33895 rm -f conftest.$ac_objext
33896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33897   (eval $ac_compile) 2>conftest.er1
33898   ac_status=$?
33899   grep -v '^ *+' conftest.er1 >conftest.err
33900   rm -f conftest.er1
33901   cat conftest.err >&5
33902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33903   (exit $ac_status); } &&
33904          { ac_try='test -z "$ac_c_werror_flag"
33905                          || test ! -s conftest.err'
33906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33907   (eval $ac_try) 2>&5
33908   ac_status=$?
33909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33910   (exit $ac_status); }; } &&
33911          { ac_try='test -s conftest.$ac_objext'
33912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33913   (eval $ac_try) 2>&5
33914   ac_status=$?
33915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33916   (exit $ac_status); }; }; then
33917   ac_lo=0 ac_mid=0
33918   while :; do
33919     cat >conftest.$ac_ext <<_ACEOF
33920 /* confdefs.h.  */
33921 _ACEOF
33922 cat confdefs.h >>conftest.$ac_ext
33923 cat >>conftest.$ac_ext <<_ACEOF
33924 /* end confdefs.h.  */
33925 $ac_includes_default
33926 int
33927 main ()
33928 {
33929 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33930 test_array [0] = 0
33931
33932   ;
33933   return 0;
33934 }
33935 _ACEOF
33936 rm -f conftest.$ac_objext
33937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33938   (eval $ac_compile) 2>conftest.er1
33939   ac_status=$?
33940   grep -v '^ *+' conftest.er1 >conftest.err
33941   rm -f conftest.er1
33942   cat conftest.err >&5
33943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33944   (exit $ac_status); } &&
33945          { ac_try='test -z "$ac_c_werror_flag"
33946                          || test ! -s conftest.err'
33947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33948   (eval $ac_try) 2>&5
33949   ac_status=$?
33950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951   (exit $ac_status); }; } &&
33952          { ac_try='test -s conftest.$ac_objext'
33953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33954   (eval $ac_try) 2>&5
33955   ac_status=$?
33956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957   (exit $ac_status); }; }; then
33958   ac_hi=$ac_mid; break
33959 else
33960   echo "$as_me: failed program was:" >&5
33961 sed 's/^/| /' conftest.$ac_ext >&5
33962
33963 ac_lo=`expr $ac_mid + 1`
33964                     if test $ac_lo -le $ac_mid; then
33965                       ac_lo= ac_hi=
33966                       break
33967                     fi
33968                     ac_mid=`expr 2 '*' $ac_mid + 1`
33969 fi
33970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33971   done
33972 else
33973   echo "$as_me: failed program was:" >&5
33974 sed 's/^/| /' conftest.$ac_ext >&5
33975
33976 cat >conftest.$ac_ext <<_ACEOF
33977 /* confdefs.h.  */
33978 _ACEOF
33979 cat confdefs.h >>conftest.$ac_ext
33980 cat >>conftest.$ac_ext <<_ACEOF
33981 /* end confdefs.h.  */
33982 $ac_includes_default
33983 int
33984 main ()
33985 {
33986 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
33987 test_array [0] = 0
33988
33989   ;
33990   return 0;
33991 }
33992 _ACEOF
33993 rm -f conftest.$ac_objext
33994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33995   (eval $ac_compile) 2>conftest.er1
33996   ac_status=$?
33997   grep -v '^ *+' conftest.er1 >conftest.err
33998   rm -f conftest.er1
33999   cat conftest.err >&5
34000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34001   (exit $ac_status); } &&
34002          { ac_try='test -z "$ac_c_werror_flag"
34003                          || test ! -s conftest.err'
34004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34005   (eval $ac_try) 2>&5
34006   ac_status=$?
34007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008   (exit $ac_status); }; } &&
34009          { ac_try='test -s conftest.$ac_objext'
34010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34011   (eval $ac_try) 2>&5
34012   ac_status=$?
34013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014   (exit $ac_status); }; }; then
34015   ac_hi=-1 ac_mid=-1
34016   while :; do
34017     cat >conftest.$ac_ext <<_ACEOF
34018 /* confdefs.h.  */
34019 _ACEOF
34020 cat confdefs.h >>conftest.$ac_ext
34021 cat >>conftest.$ac_ext <<_ACEOF
34022 /* end confdefs.h.  */
34023 $ac_includes_default
34024 int
34025 main ()
34026 {
34027 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
34028 test_array [0] = 0
34029
34030   ;
34031   return 0;
34032 }
34033 _ACEOF
34034 rm -f conftest.$ac_objext
34035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34036   (eval $ac_compile) 2>conftest.er1
34037   ac_status=$?
34038   grep -v '^ *+' conftest.er1 >conftest.err
34039   rm -f conftest.er1
34040   cat conftest.err >&5
34041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34042   (exit $ac_status); } &&
34043          { ac_try='test -z "$ac_c_werror_flag"
34044                          || test ! -s conftest.err'
34045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34046   (eval $ac_try) 2>&5
34047   ac_status=$?
34048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34049   (exit $ac_status); }; } &&
34050          { ac_try='test -s conftest.$ac_objext'
34051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34052   (eval $ac_try) 2>&5
34053   ac_status=$?
34054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34055   (exit $ac_status); }; }; then
34056   ac_lo=$ac_mid; break
34057 else
34058   echo "$as_me: failed program was:" >&5
34059 sed 's/^/| /' conftest.$ac_ext >&5
34060
34061 ac_hi=`expr '(' $ac_mid ')' - 1`
34062                        if test $ac_mid -le $ac_hi; then
34063                          ac_lo= ac_hi=
34064                          break
34065                        fi
34066                        ac_mid=`expr 2 '*' $ac_mid`
34067 fi
34068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34069   done
34070 else
34071   echo "$as_me: failed program was:" >&5
34072 sed 's/^/| /' conftest.$ac_ext >&5
34073
34074 ac_lo= ac_hi=
34075 fi
34076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34077 fi
34078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34079 # Binary search between lo and hi bounds.
34080 while test "x$ac_lo" != "x$ac_hi"; do
34081   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34082   cat >conftest.$ac_ext <<_ACEOF
34083 /* confdefs.h.  */
34084 _ACEOF
34085 cat confdefs.h >>conftest.$ac_ext
34086 cat >>conftest.$ac_ext <<_ACEOF
34087 /* end confdefs.h.  */
34088 $ac_includes_default
34089 int
34090 main ()
34091 {
34092 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
34093 test_array [0] = 0
34094
34095   ;
34096   return 0;
34097 }
34098 _ACEOF
34099 rm -f conftest.$ac_objext
34100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34101   (eval $ac_compile) 2>conftest.er1
34102   ac_status=$?
34103   grep -v '^ *+' conftest.er1 >conftest.err
34104   rm -f conftest.er1
34105   cat conftest.err >&5
34106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107   (exit $ac_status); } &&
34108          { ac_try='test -z "$ac_c_werror_flag"
34109                          || test ! -s conftest.err'
34110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34111   (eval $ac_try) 2>&5
34112   ac_status=$?
34113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114   (exit $ac_status); }; } &&
34115          { ac_try='test -s conftest.$ac_objext'
34116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34117   (eval $ac_try) 2>&5
34118   ac_status=$?
34119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120   (exit $ac_status); }; }; then
34121   ac_hi=$ac_mid
34122 else
34123   echo "$as_me: failed program was:" >&5
34124 sed 's/^/| /' conftest.$ac_ext >&5
34125
34126 ac_lo=`expr '(' $ac_mid ')' + 1`
34127 fi
34128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34129 done
34130 case $ac_lo in
34131 ?*) ac_cv_sizeof_short=$ac_lo;;
34132 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
34133 See \`config.log' for more details." >&5
34134 echo "$as_me: error: cannot compute sizeof (short), 77
34135 See \`config.log' for more details." >&2;}
34136    { (exit 1); exit 1; }; } ;;
34137 esac
34138 else
34139   if test "$cross_compiling" = yes; then
34140   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34141 See \`config.log' for more details." >&5
34142 echo "$as_me: error: cannot run test program while cross compiling
34143 See \`config.log' for more details." >&2;}
34144    { (exit 1); exit 1; }; }
34145 else
34146   cat >conftest.$ac_ext <<_ACEOF
34147 /* confdefs.h.  */
34148 _ACEOF
34149 cat confdefs.h >>conftest.$ac_ext
34150 cat >>conftest.$ac_ext <<_ACEOF
34151 /* end confdefs.h.  */
34152 $ac_includes_default
34153 long longval () { return (long) (sizeof (short)); }
34154 unsigned long ulongval () { return (long) (sizeof (short)); }
34155 #include <stdio.h>
34156 #include <stdlib.h>
34157 int
34158 main ()
34159 {
34160
34161   FILE *f = fopen ("conftest.val", "w");
34162   if (! f)
34163     exit (1);
34164   if (((long) (sizeof (short))) < 0)
34165     {
34166       long i = longval ();
34167       if (i != ((long) (sizeof (short))))
34168         exit (1);
34169       fprintf (f, "%ld\n", i);
34170     }
34171   else
34172     {
34173       unsigned long i = ulongval ();
34174       if (i != ((long) (sizeof (short))))
34175         exit (1);
34176       fprintf (f, "%lu\n", i);
34177     }
34178   exit (ferror (f) || fclose (f) != 0);
34179
34180   ;
34181   return 0;
34182 }
34183 _ACEOF
34184 rm -f conftest$ac_exeext
34185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34186   (eval $ac_link) 2>&5
34187   ac_status=$?
34188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34191   (eval $ac_try) 2>&5
34192   ac_status=$?
34193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194   (exit $ac_status); }; }; then
34195   ac_cv_sizeof_short=`cat conftest.val`
34196 else
34197   echo "$as_me: program exited with status $ac_status" >&5
34198 echo "$as_me: failed program was:" >&5
34199 sed 's/^/| /' conftest.$ac_ext >&5
34200
34201 ( exit $ac_status )
34202 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
34203 See \`config.log' for more details." >&5
34204 echo "$as_me: error: cannot compute sizeof (short), 77
34205 See \`config.log' for more details." >&2;}
34206    { (exit 1); exit 1; }; }
34207 fi
34208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34209 fi
34210 fi
34211 rm -f conftest.val
34212 else
34213   ac_cv_sizeof_short=0
34214 fi
34215 fi
34216 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
34217 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
34218 cat >>confdefs.h <<_ACEOF
34219 #define SIZEOF_SHORT $ac_cv_sizeof_short
34220 _ACEOF
34221
34222
34223 echo "$as_me:$LINENO: checking for int" >&5
34224 echo $ECHO_N "checking for int... $ECHO_C" >&6
34225 if test "${ac_cv_type_int+set}" = set; then
34226   echo $ECHO_N "(cached) $ECHO_C" >&6
34227 else
34228   cat >conftest.$ac_ext <<_ACEOF
34229 /* confdefs.h.  */
34230 _ACEOF
34231 cat confdefs.h >>conftest.$ac_ext
34232 cat >>conftest.$ac_ext <<_ACEOF
34233 /* end confdefs.h.  */
34234 $ac_includes_default
34235 int
34236 main ()
34237 {
34238 if ((int *) 0)
34239   return 0;
34240 if (sizeof (int))
34241   return 0;
34242   ;
34243   return 0;
34244 }
34245 _ACEOF
34246 rm -f conftest.$ac_objext
34247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34248   (eval $ac_compile) 2>conftest.er1
34249   ac_status=$?
34250   grep -v '^ *+' conftest.er1 >conftest.err
34251   rm -f conftest.er1
34252   cat conftest.err >&5
34253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254   (exit $ac_status); } &&
34255          { ac_try='test -z "$ac_c_werror_flag"
34256                          || test ! -s conftest.err'
34257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34258   (eval $ac_try) 2>&5
34259   ac_status=$?
34260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261   (exit $ac_status); }; } &&
34262          { ac_try='test -s conftest.$ac_objext'
34263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34264   (eval $ac_try) 2>&5
34265   ac_status=$?
34266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267   (exit $ac_status); }; }; then
34268   ac_cv_type_int=yes
34269 else
34270   echo "$as_me: failed program was:" >&5
34271 sed 's/^/| /' conftest.$ac_ext >&5
34272
34273 ac_cv_type_int=no
34274 fi
34275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34276 fi
34277 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
34278 echo "${ECHO_T}$ac_cv_type_int" >&6
34279
34280 echo "$as_me:$LINENO: checking size of int" >&5
34281 echo $ECHO_N "checking size of int... $ECHO_C" >&6
34282 if test "${ac_cv_sizeof_int+set}" = set; then
34283   echo $ECHO_N "(cached) $ECHO_C" >&6
34284 else
34285   if test "$ac_cv_type_int" = yes; then
34286   # The cast to unsigned long works around a bug in the HP C Compiler
34287   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34288   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34289   # This bug is HP SR number 8606223364.
34290   if test "$cross_compiling" = yes; then
34291   # Depending upon the size, compute the lo and hi bounds.
34292 cat >conftest.$ac_ext <<_ACEOF
34293 /* confdefs.h.  */
34294 _ACEOF
34295 cat confdefs.h >>conftest.$ac_ext
34296 cat >>conftest.$ac_ext <<_ACEOF
34297 /* end confdefs.h.  */
34298 $ac_includes_default
34299 int
34300 main ()
34301 {
34302 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
34303 test_array [0] = 0
34304
34305   ;
34306   return 0;
34307 }
34308 _ACEOF
34309 rm -f conftest.$ac_objext
34310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34311   (eval $ac_compile) 2>conftest.er1
34312   ac_status=$?
34313   grep -v '^ *+' conftest.er1 >conftest.err
34314   rm -f conftest.er1
34315   cat conftest.err >&5
34316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34317   (exit $ac_status); } &&
34318          { ac_try='test -z "$ac_c_werror_flag"
34319                          || test ! -s conftest.err'
34320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34321   (eval $ac_try) 2>&5
34322   ac_status=$?
34323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34324   (exit $ac_status); }; } &&
34325          { ac_try='test -s conftest.$ac_objext'
34326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34327   (eval $ac_try) 2>&5
34328   ac_status=$?
34329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330   (exit $ac_status); }; }; then
34331   ac_lo=0 ac_mid=0
34332   while :; do
34333     cat >conftest.$ac_ext <<_ACEOF
34334 /* confdefs.h.  */
34335 _ACEOF
34336 cat confdefs.h >>conftest.$ac_ext
34337 cat >>conftest.$ac_ext <<_ACEOF
34338 /* end confdefs.h.  */
34339 $ac_includes_default
34340 int
34341 main ()
34342 {
34343 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
34344 test_array [0] = 0
34345
34346   ;
34347   return 0;
34348 }
34349 _ACEOF
34350 rm -f conftest.$ac_objext
34351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34352   (eval $ac_compile) 2>conftest.er1
34353   ac_status=$?
34354   grep -v '^ *+' conftest.er1 >conftest.err
34355   rm -f conftest.er1
34356   cat conftest.err >&5
34357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34358   (exit $ac_status); } &&
34359          { ac_try='test -z "$ac_c_werror_flag"
34360                          || test ! -s conftest.err'
34361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34362   (eval $ac_try) 2>&5
34363   ac_status=$?
34364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34365   (exit $ac_status); }; } &&
34366          { ac_try='test -s conftest.$ac_objext'
34367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34368   (eval $ac_try) 2>&5
34369   ac_status=$?
34370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371   (exit $ac_status); }; }; then
34372   ac_hi=$ac_mid; break
34373 else
34374   echo "$as_me: failed program was:" >&5
34375 sed 's/^/| /' conftest.$ac_ext >&5
34376
34377 ac_lo=`expr $ac_mid + 1`
34378                     if test $ac_lo -le $ac_mid; then
34379                       ac_lo= ac_hi=
34380                       break
34381                     fi
34382                     ac_mid=`expr 2 '*' $ac_mid + 1`
34383 fi
34384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34385   done
34386 else
34387   echo "$as_me: failed program was:" >&5
34388 sed 's/^/| /' conftest.$ac_ext >&5
34389
34390 cat >conftest.$ac_ext <<_ACEOF
34391 /* confdefs.h.  */
34392 _ACEOF
34393 cat confdefs.h >>conftest.$ac_ext
34394 cat >>conftest.$ac_ext <<_ACEOF
34395 /* end confdefs.h.  */
34396 $ac_includes_default
34397 int
34398 main ()
34399 {
34400 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
34401 test_array [0] = 0
34402
34403   ;
34404   return 0;
34405 }
34406 _ACEOF
34407 rm -f conftest.$ac_objext
34408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34409   (eval $ac_compile) 2>conftest.er1
34410   ac_status=$?
34411   grep -v '^ *+' conftest.er1 >conftest.err
34412   rm -f conftest.er1
34413   cat conftest.err >&5
34414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34415   (exit $ac_status); } &&
34416          { ac_try='test -z "$ac_c_werror_flag"
34417                          || test ! -s conftest.err'
34418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34419   (eval $ac_try) 2>&5
34420   ac_status=$?
34421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34422   (exit $ac_status); }; } &&
34423          { ac_try='test -s conftest.$ac_objext'
34424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34425   (eval $ac_try) 2>&5
34426   ac_status=$?
34427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34428   (exit $ac_status); }; }; then
34429   ac_hi=-1 ac_mid=-1
34430   while :; do
34431     cat >conftest.$ac_ext <<_ACEOF
34432 /* confdefs.h.  */
34433 _ACEOF
34434 cat confdefs.h >>conftest.$ac_ext
34435 cat >>conftest.$ac_ext <<_ACEOF
34436 /* end confdefs.h.  */
34437 $ac_includes_default
34438 int
34439 main ()
34440 {
34441 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
34442 test_array [0] = 0
34443
34444   ;
34445   return 0;
34446 }
34447 _ACEOF
34448 rm -f conftest.$ac_objext
34449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34450   (eval $ac_compile) 2>conftest.er1
34451   ac_status=$?
34452   grep -v '^ *+' conftest.er1 >conftest.err
34453   rm -f conftest.er1
34454   cat conftest.err >&5
34455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34456   (exit $ac_status); } &&
34457          { ac_try='test -z "$ac_c_werror_flag"
34458                          || test ! -s conftest.err'
34459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34460   (eval $ac_try) 2>&5
34461   ac_status=$?
34462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463   (exit $ac_status); }; } &&
34464          { ac_try='test -s conftest.$ac_objext'
34465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34466   (eval $ac_try) 2>&5
34467   ac_status=$?
34468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34469   (exit $ac_status); }; }; then
34470   ac_lo=$ac_mid; break
34471 else
34472   echo "$as_me: failed program was:" >&5
34473 sed 's/^/| /' conftest.$ac_ext >&5
34474
34475 ac_hi=`expr '(' $ac_mid ')' - 1`
34476                        if test $ac_mid -le $ac_hi; then
34477                          ac_lo= ac_hi=
34478                          break
34479                        fi
34480                        ac_mid=`expr 2 '*' $ac_mid`
34481 fi
34482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34483   done
34484 else
34485   echo "$as_me: failed program was:" >&5
34486 sed 's/^/| /' conftest.$ac_ext >&5
34487
34488 ac_lo= ac_hi=
34489 fi
34490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34491 fi
34492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34493 # Binary search between lo and hi bounds.
34494 while test "x$ac_lo" != "x$ac_hi"; do
34495   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34496   cat >conftest.$ac_ext <<_ACEOF
34497 /* confdefs.h.  */
34498 _ACEOF
34499 cat confdefs.h >>conftest.$ac_ext
34500 cat >>conftest.$ac_ext <<_ACEOF
34501 /* end confdefs.h.  */
34502 $ac_includes_default
34503 int
34504 main ()
34505 {
34506 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
34507 test_array [0] = 0
34508
34509   ;
34510   return 0;
34511 }
34512 _ACEOF
34513 rm -f conftest.$ac_objext
34514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34515   (eval $ac_compile) 2>conftest.er1
34516   ac_status=$?
34517   grep -v '^ *+' conftest.er1 >conftest.err
34518   rm -f conftest.er1
34519   cat conftest.err >&5
34520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521   (exit $ac_status); } &&
34522          { ac_try='test -z "$ac_c_werror_flag"
34523                          || test ! -s conftest.err'
34524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34525   (eval $ac_try) 2>&5
34526   ac_status=$?
34527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34528   (exit $ac_status); }; } &&
34529          { ac_try='test -s conftest.$ac_objext'
34530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34531   (eval $ac_try) 2>&5
34532   ac_status=$?
34533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34534   (exit $ac_status); }; }; then
34535   ac_hi=$ac_mid
34536 else
34537   echo "$as_me: failed program was:" >&5
34538 sed 's/^/| /' conftest.$ac_ext >&5
34539
34540 ac_lo=`expr '(' $ac_mid ')' + 1`
34541 fi
34542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34543 done
34544 case $ac_lo in
34545 ?*) ac_cv_sizeof_int=$ac_lo;;
34546 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34547 See \`config.log' for more details." >&5
34548 echo "$as_me: error: cannot compute sizeof (int), 77
34549 See \`config.log' for more details." >&2;}
34550    { (exit 1); exit 1; }; } ;;
34551 esac
34552 else
34553   if test "$cross_compiling" = yes; then
34554   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34555 See \`config.log' for more details." >&5
34556 echo "$as_me: error: cannot run test program while cross compiling
34557 See \`config.log' for more details." >&2;}
34558    { (exit 1); exit 1; }; }
34559 else
34560   cat >conftest.$ac_ext <<_ACEOF
34561 /* confdefs.h.  */
34562 _ACEOF
34563 cat confdefs.h >>conftest.$ac_ext
34564 cat >>conftest.$ac_ext <<_ACEOF
34565 /* end confdefs.h.  */
34566 $ac_includes_default
34567 long longval () { return (long) (sizeof (int)); }
34568 unsigned long ulongval () { return (long) (sizeof (int)); }
34569 #include <stdio.h>
34570 #include <stdlib.h>
34571 int
34572 main ()
34573 {
34574
34575   FILE *f = fopen ("conftest.val", "w");
34576   if (! f)
34577     exit (1);
34578   if (((long) (sizeof (int))) < 0)
34579     {
34580       long i = longval ();
34581       if (i != ((long) (sizeof (int))))
34582         exit (1);
34583       fprintf (f, "%ld\n", i);
34584     }
34585   else
34586     {
34587       unsigned long i = ulongval ();
34588       if (i != ((long) (sizeof (int))))
34589         exit (1);
34590       fprintf (f, "%lu\n", i);
34591     }
34592   exit (ferror (f) || fclose (f) != 0);
34593
34594   ;
34595   return 0;
34596 }
34597 _ACEOF
34598 rm -f conftest$ac_exeext
34599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34600   (eval $ac_link) 2>&5
34601   ac_status=$?
34602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34605   (eval $ac_try) 2>&5
34606   ac_status=$?
34607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34608   (exit $ac_status); }; }; then
34609   ac_cv_sizeof_int=`cat conftest.val`
34610 else
34611   echo "$as_me: program exited with status $ac_status" >&5
34612 echo "$as_me: failed program was:" >&5
34613 sed 's/^/| /' conftest.$ac_ext >&5
34614
34615 ( exit $ac_status )
34616 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34617 See \`config.log' for more details." >&5
34618 echo "$as_me: error: cannot compute sizeof (int), 77
34619 See \`config.log' for more details." >&2;}
34620    { (exit 1); exit 1; }; }
34621 fi
34622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34623 fi
34624 fi
34625 rm -f conftest.val
34626 else
34627   ac_cv_sizeof_int=0
34628 fi
34629 fi
34630 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34631 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
34632 cat >>confdefs.h <<_ACEOF
34633 #define SIZEOF_INT $ac_cv_sizeof_int
34634 _ACEOF
34635
34636
34637 echo "$as_me:$LINENO: checking for long" >&5
34638 echo $ECHO_N "checking for long... $ECHO_C" >&6
34639 if test "${ac_cv_type_long+set}" = set; then
34640   echo $ECHO_N "(cached) $ECHO_C" >&6
34641 else
34642   cat >conftest.$ac_ext <<_ACEOF
34643 /* confdefs.h.  */
34644 _ACEOF
34645 cat confdefs.h >>conftest.$ac_ext
34646 cat >>conftest.$ac_ext <<_ACEOF
34647 /* end confdefs.h.  */
34648 $ac_includes_default
34649 int
34650 main ()
34651 {
34652 if ((long *) 0)
34653   return 0;
34654 if (sizeof (long))
34655   return 0;
34656   ;
34657   return 0;
34658 }
34659 _ACEOF
34660 rm -f conftest.$ac_objext
34661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34662   (eval $ac_compile) 2>conftest.er1
34663   ac_status=$?
34664   grep -v '^ *+' conftest.er1 >conftest.err
34665   rm -f conftest.er1
34666   cat conftest.err >&5
34667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668   (exit $ac_status); } &&
34669          { ac_try='test -z "$ac_c_werror_flag"
34670                          || test ! -s conftest.err'
34671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34672   (eval $ac_try) 2>&5
34673   ac_status=$?
34674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34675   (exit $ac_status); }; } &&
34676          { ac_try='test -s conftest.$ac_objext'
34677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34678   (eval $ac_try) 2>&5
34679   ac_status=$?
34680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34681   (exit $ac_status); }; }; then
34682   ac_cv_type_long=yes
34683 else
34684   echo "$as_me: failed program was:" >&5
34685 sed 's/^/| /' conftest.$ac_ext >&5
34686
34687 ac_cv_type_long=no
34688 fi
34689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34690 fi
34691 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34692 echo "${ECHO_T}$ac_cv_type_long" >&6
34693
34694 echo "$as_me:$LINENO: checking size of long" >&5
34695 echo $ECHO_N "checking size of long... $ECHO_C" >&6
34696 if test "${ac_cv_sizeof_long+set}" = set; then
34697   echo $ECHO_N "(cached) $ECHO_C" >&6
34698 else
34699   if test "$ac_cv_type_long" = yes; then
34700   # The cast to unsigned long works around a bug in the HP C Compiler
34701   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34702   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34703   # This bug is HP SR number 8606223364.
34704   if test "$cross_compiling" = yes; then
34705   # Depending upon the size, compute the lo and hi bounds.
34706 cat >conftest.$ac_ext <<_ACEOF
34707 /* confdefs.h.  */
34708 _ACEOF
34709 cat confdefs.h >>conftest.$ac_ext
34710 cat >>conftest.$ac_ext <<_ACEOF
34711 /* end confdefs.h.  */
34712 $ac_includes_default
34713 int
34714 main ()
34715 {
34716 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
34717 test_array [0] = 0
34718
34719   ;
34720   return 0;
34721 }
34722 _ACEOF
34723 rm -f conftest.$ac_objext
34724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34725   (eval $ac_compile) 2>conftest.er1
34726   ac_status=$?
34727   grep -v '^ *+' conftest.er1 >conftest.err
34728   rm -f conftest.er1
34729   cat conftest.err >&5
34730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34731   (exit $ac_status); } &&
34732          { ac_try='test -z "$ac_c_werror_flag"
34733                          || test ! -s conftest.err'
34734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34735   (eval $ac_try) 2>&5
34736   ac_status=$?
34737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34738   (exit $ac_status); }; } &&
34739          { ac_try='test -s conftest.$ac_objext'
34740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34741   (eval $ac_try) 2>&5
34742   ac_status=$?
34743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34744   (exit $ac_status); }; }; then
34745   ac_lo=0 ac_mid=0
34746   while :; do
34747     cat >conftest.$ac_ext <<_ACEOF
34748 /* confdefs.h.  */
34749 _ACEOF
34750 cat confdefs.h >>conftest.$ac_ext
34751 cat >>conftest.$ac_ext <<_ACEOF
34752 /* end confdefs.h.  */
34753 $ac_includes_default
34754 int
34755 main ()
34756 {
34757 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34758 test_array [0] = 0
34759
34760   ;
34761   return 0;
34762 }
34763 _ACEOF
34764 rm -f conftest.$ac_objext
34765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34766   (eval $ac_compile) 2>conftest.er1
34767   ac_status=$?
34768   grep -v '^ *+' conftest.er1 >conftest.err
34769   rm -f conftest.er1
34770   cat conftest.err >&5
34771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772   (exit $ac_status); } &&
34773          { ac_try='test -z "$ac_c_werror_flag"
34774                          || test ! -s conftest.err'
34775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776   (eval $ac_try) 2>&5
34777   ac_status=$?
34778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779   (exit $ac_status); }; } &&
34780          { ac_try='test -s conftest.$ac_objext'
34781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34782   (eval $ac_try) 2>&5
34783   ac_status=$?
34784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785   (exit $ac_status); }; }; then
34786   ac_hi=$ac_mid; break
34787 else
34788   echo "$as_me: failed program was:" >&5
34789 sed 's/^/| /' conftest.$ac_ext >&5
34790
34791 ac_lo=`expr $ac_mid + 1`
34792                     if test $ac_lo -le $ac_mid; then
34793                       ac_lo= ac_hi=
34794                       break
34795                     fi
34796                     ac_mid=`expr 2 '*' $ac_mid + 1`
34797 fi
34798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34799   done
34800 else
34801   echo "$as_me: failed program was:" >&5
34802 sed 's/^/| /' conftest.$ac_ext >&5
34803
34804 cat >conftest.$ac_ext <<_ACEOF
34805 /* confdefs.h.  */
34806 _ACEOF
34807 cat confdefs.h >>conftest.$ac_ext
34808 cat >>conftest.$ac_ext <<_ACEOF
34809 /* end confdefs.h.  */
34810 $ac_includes_default
34811 int
34812 main ()
34813 {
34814 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
34815 test_array [0] = 0
34816
34817   ;
34818   return 0;
34819 }
34820 _ACEOF
34821 rm -f conftest.$ac_objext
34822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34823   (eval $ac_compile) 2>conftest.er1
34824   ac_status=$?
34825   grep -v '^ *+' conftest.er1 >conftest.err
34826   rm -f conftest.er1
34827   cat conftest.err >&5
34828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34829   (exit $ac_status); } &&
34830          { ac_try='test -z "$ac_c_werror_flag"
34831                          || test ! -s conftest.err'
34832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34833   (eval $ac_try) 2>&5
34834   ac_status=$?
34835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836   (exit $ac_status); }; } &&
34837          { ac_try='test -s conftest.$ac_objext'
34838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34839   (eval $ac_try) 2>&5
34840   ac_status=$?
34841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34842   (exit $ac_status); }; }; then
34843   ac_hi=-1 ac_mid=-1
34844   while :; do
34845     cat >conftest.$ac_ext <<_ACEOF
34846 /* confdefs.h.  */
34847 _ACEOF
34848 cat confdefs.h >>conftest.$ac_ext
34849 cat >>conftest.$ac_ext <<_ACEOF
34850 /* end confdefs.h.  */
34851 $ac_includes_default
34852 int
34853 main ()
34854 {
34855 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
34856 test_array [0] = 0
34857
34858   ;
34859   return 0;
34860 }
34861 _ACEOF
34862 rm -f conftest.$ac_objext
34863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34864   (eval $ac_compile) 2>conftest.er1
34865   ac_status=$?
34866   grep -v '^ *+' conftest.er1 >conftest.err
34867   rm -f conftest.er1
34868   cat conftest.err >&5
34869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870   (exit $ac_status); } &&
34871          { ac_try='test -z "$ac_c_werror_flag"
34872                          || test ! -s conftest.err'
34873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34874   (eval $ac_try) 2>&5
34875   ac_status=$?
34876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877   (exit $ac_status); }; } &&
34878          { ac_try='test -s conftest.$ac_objext'
34879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34880   (eval $ac_try) 2>&5
34881   ac_status=$?
34882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883   (exit $ac_status); }; }; then
34884   ac_lo=$ac_mid; break
34885 else
34886   echo "$as_me: failed program was:" >&5
34887 sed 's/^/| /' conftest.$ac_ext >&5
34888
34889 ac_hi=`expr '(' $ac_mid ')' - 1`
34890                        if test $ac_mid -le $ac_hi; then
34891                          ac_lo= ac_hi=
34892                          break
34893                        fi
34894                        ac_mid=`expr 2 '*' $ac_mid`
34895 fi
34896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34897   done
34898 else
34899   echo "$as_me: failed program was:" >&5
34900 sed 's/^/| /' conftest.$ac_ext >&5
34901
34902 ac_lo= ac_hi=
34903 fi
34904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34905 fi
34906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34907 # Binary search between lo and hi bounds.
34908 while test "x$ac_lo" != "x$ac_hi"; do
34909   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34910   cat >conftest.$ac_ext <<_ACEOF
34911 /* confdefs.h.  */
34912 _ACEOF
34913 cat confdefs.h >>conftest.$ac_ext
34914 cat >>conftest.$ac_ext <<_ACEOF
34915 /* end confdefs.h.  */
34916 $ac_includes_default
34917 int
34918 main ()
34919 {
34920 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34921 test_array [0] = 0
34922
34923   ;
34924   return 0;
34925 }
34926 _ACEOF
34927 rm -f conftest.$ac_objext
34928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34929   (eval $ac_compile) 2>conftest.er1
34930   ac_status=$?
34931   grep -v '^ *+' conftest.er1 >conftest.err
34932   rm -f conftest.er1
34933   cat conftest.err >&5
34934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34935   (exit $ac_status); } &&
34936          { ac_try='test -z "$ac_c_werror_flag"
34937                          || test ! -s conftest.err'
34938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34939   (eval $ac_try) 2>&5
34940   ac_status=$?
34941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34942   (exit $ac_status); }; } &&
34943          { ac_try='test -s conftest.$ac_objext'
34944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34945   (eval $ac_try) 2>&5
34946   ac_status=$?
34947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948   (exit $ac_status); }; }; then
34949   ac_hi=$ac_mid
34950 else
34951   echo "$as_me: failed program was:" >&5
34952 sed 's/^/| /' conftest.$ac_ext >&5
34953
34954 ac_lo=`expr '(' $ac_mid ')' + 1`
34955 fi
34956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34957 done
34958 case $ac_lo in
34959 ?*) ac_cv_sizeof_long=$ac_lo;;
34960 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
34961 See \`config.log' for more details." >&5
34962 echo "$as_me: error: cannot compute sizeof (long), 77
34963 See \`config.log' for more details." >&2;}
34964    { (exit 1); exit 1; }; } ;;
34965 esac
34966 else
34967   if test "$cross_compiling" = yes; then
34968   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34969 See \`config.log' for more details." >&5
34970 echo "$as_me: error: cannot run test program while cross compiling
34971 See \`config.log' for more details." >&2;}
34972    { (exit 1); exit 1; }; }
34973 else
34974   cat >conftest.$ac_ext <<_ACEOF
34975 /* confdefs.h.  */
34976 _ACEOF
34977 cat confdefs.h >>conftest.$ac_ext
34978 cat >>conftest.$ac_ext <<_ACEOF
34979 /* end confdefs.h.  */
34980 $ac_includes_default
34981 long longval () { return (long) (sizeof (long)); }
34982 unsigned long ulongval () { return (long) (sizeof (long)); }
34983 #include <stdio.h>
34984 #include <stdlib.h>
34985 int
34986 main ()
34987 {
34988
34989   FILE *f = fopen ("conftest.val", "w");
34990   if (! f)
34991     exit (1);
34992   if (((long) (sizeof (long))) < 0)
34993     {
34994       long i = longval ();
34995       if (i != ((long) (sizeof (long))))
34996         exit (1);
34997       fprintf (f, "%ld\n", i);
34998     }
34999   else
35000     {
35001       unsigned long i = ulongval ();
35002       if (i != ((long) (sizeof (long))))
35003         exit (1);
35004       fprintf (f, "%lu\n", i);
35005     }
35006   exit (ferror (f) || fclose (f) != 0);
35007
35008   ;
35009   return 0;
35010 }
35011 _ACEOF
35012 rm -f conftest$ac_exeext
35013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35014   (eval $ac_link) 2>&5
35015   ac_status=$?
35016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35019   (eval $ac_try) 2>&5
35020   ac_status=$?
35021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35022   (exit $ac_status); }; }; then
35023   ac_cv_sizeof_long=`cat conftest.val`
35024 else
35025   echo "$as_me: program exited with status $ac_status" >&5
35026 echo "$as_me: failed program was:" >&5
35027 sed 's/^/| /' conftest.$ac_ext >&5
35028
35029 ( exit $ac_status )
35030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
35031 See \`config.log' for more details." >&5
35032 echo "$as_me: error: cannot compute sizeof (long), 77
35033 See \`config.log' for more details." >&2;}
35034    { (exit 1); exit 1; }; }
35035 fi
35036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35037 fi
35038 fi
35039 rm -f conftest.val
35040 else
35041   ac_cv_sizeof_long=0
35042 fi
35043 fi
35044 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
35045 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
35046 cat >>confdefs.h <<_ACEOF
35047 #define SIZEOF_LONG $ac_cv_sizeof_long
35048 _ACEOF
35049
35050
35051 echo "$as_me:$LINENO: checking for long long" >&5
35052 echo $ECHO_N "checking for long long... $ECHO_C" >&6
35053 if test "${ac_cv_type_long_long+set}" = set; then
35054   echo $ECHO_N "(cached) $ECHO_C" >&6
35055 else
35056   cat >conftest.$ac_ext <<_ACEOF
35057 /* confdefs.h.  */
35058 _ACEOF
35059 cat confdefs.h >>conftest.$ac_ext
35060 cat >>conftest.$ac_ext <<_ACEOF
35061 /* end confdefs.h.  */
35062 $ac_includes_default
35063 int
35064 main ()
35065 {
35066 if ((long long *) 0)
35067   return 0;
35068 if (sizeof (long long))
35069   return 0;
35070   ;
35071   return 0;
35072 }
35073 _ACEOF
35074 rm -f conftest.$ac_objext
35075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35076   (eval $ac_compile) 2>conftest.er1
35077   ac_status=$?
35078   grep -v '^ *+' conftest.er1 >conftest.err
35079   rm -f conftest.er1
35080   cat conftest.err >&5
35081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082   (exit $ac_status); } &&
35083          { ac_try='test -z "$ac_c_werror_flag"
35084                          || test ! -s conftest.err'
35085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35086   (eval $ac_try) 2>&5
35087   ac_status=$?
35088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35089   (exit $ac_status); }; } &&
35090          { ac_try='test -s conftest.$ac_objext'
35091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35092   (eval $ac_try) 2>&5
35093   ac_status=$?
35094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35095   (exit $ac_status); }; }; then
35096   ac_cv_type_long_long=yes
35097 else
35098   echo "$as_me: failed program was:" >&5
35099 sed 's/^/| /' conftest.$ac_ext >&5
35100
35101 ac_cv_type_long_long=no
35102 fi
35103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35104 fi
35105 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
35106 echo "${ECHO_T}$ac_cv_type_long_long" >&6
35107
35108 echo "$as_me:$LINENO: checking size of long long" >&5
35109 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
35110 if test "${ac_cv_sizeof_long_long+set}" = set; then
35111   echo $ECHO_N "(cached) $ECHO_C" >&6
35112 else
35113   if test "$ac_cv_type_long_long" = yes; then
35114   # The cast to unsigned long works around a bug in the HP C Compiler
35115   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35116   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35117   # This bug is HP SR number 8606223364.
35118   if test "$cross_compiling" = yes; then
35119   # Depending upon the size, compute the lo and hi bounds.
35120 cat >conftest.$ac_ext <<_ACEOF
35121 /* confdefs.h.  */
35122 _ACEOF
35123 cat confdefs.h >>conftest.$ac_ext
35124 cat >>conftest.$ac_ext <<_ACEOF
35125 /* end confdefs.h.  */
35126 $ac_includes_default
35127 int
35128 main ()
35129 {
35130 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
35131 test_array [0] = 0
35132
35133   ;
35134   return 0;
35135 }
35136 _ACEOF
35137 rm -f conftest.$ac_objext
35138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35139   (eval $ac_compile) 2>conftest.er1
35140   ac_status=$?
35141   grep -v '^ *+' conftest.er1 >conftest.err
35142   rm -f conftest.er1
35143   cat conftest.err >&5
35144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145   (exit $ac_status); } &&
35146          { ac_try='test -z "$ac_c_werror_flag"
35147                          || test ! -s conftest.err'
35148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35149   (eval $ac_try) 2>&5
35150   ac_status=$?
35151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152   (exit $ac_status); }; } &&
35153          { ac_try='test -s conftest.$ac_objext'
35154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35155   (eval $ac_try) 2>&5
35156   ac_status=$?
35157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158   (exit $ac_status); }; }; then
35159   ac_lo=0 ac_mid=0
35160   while :; do
35161     cat >conftest.$ac_ext <<_ACEOF
35162 /* confdefs.h.  */
35163 _ACEOF
35164 cat confdefs.h >>conftest.$ac_ext
35165 cat >>conftest.$ac_ext <<_ACEOF
35166 /* end confdefs.h.  */
35167 $ac_includes_default
35168 int
35169 main ()
35170 {
35171 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
35172 test_array [0] = 0
35173
35174   ;
35175   return 0;
35176 }
35177 _ACEOF
35178 rm -f conftest.$ac_objext
35179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35180   (eval $ac_compile) 2>conftest.er1
35181   ac_status=$?
35182   grep -v '^ *+' conftest.er1 >conftest.err
35183   rm -f conftest.er1
35184   cat conftest.err >&5
35185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186   (exit $ac_status); } &&
35187          { ac_try='test -z "$ac_c_werror_flag"
35188                          || test ! -s conftest.err'
35189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35190   (eval $ac_try) 2>&5
35191   ac_status=$?
35192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193   (exit $ac_status); }; } &&
35194          { ac_try='test -s conftest.$ac_objext'
35195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35196   (eval $ac_try) 2>&5
35197   ac_status=$?
35198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35199   (exit $ac_status); }; }; then
35200   ac_hi=$ac_mid; break
35201 else
35202   echo "$as_me: failed program was:" >&5
35203 sed 's/^/| /' conftest.$ac_ext >&5
35204
35205 ac_lo=`expr $ac_mid + 1`
35206                     if test $ac_lo -le $ac_mid; then
35207                       ac_lo= ac_hi=
35208                       break
35209                     fi
35210                     ac_mid=`expr 2 '*' $ac_mid + 1`
35211 fi
35212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35213   done
35214 else
35215   echo "$as_me: failed program was:" >&5
35216 sed 's/^/| /' conftest.$ac_ext >&5
35217
35218 cat >conftest.$ac_ext <<_ACEOF
35219 /* confdefs.h.  */
35220 _ACEOF
35221 cat confdefs.h >>conftest.$ac_ext
35222 cat >>conftest.$ac_ext <<_ACEOF
35223 /* end confdefs.h.  */
35224 $ac_includes_default
35225 int
35226 main ()
35227 {
35228 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
35229 test_array [0] = 0
35230
35231   ;
35232   return 0;
35233 }
35234 _ACEOF
35235 rm -f conftest.$ac_objext
35236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35237   (eval $ac_compile) 2>conftest.er1
35238   ac_status=$?
35239   grep -v '^ *+' conftest.er1 >conftest.err
35240   rm -f conftest.er1
35241   cat conftest.err >&5
35242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243   (exit $ac_status); } &&
35244          { ac_try='test -z "$ac_c_werror_flag"
35245                          || test ! -s conftest.err'
35246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35247   (eval $ac_try) 2>&5
35248   ac_status=$?
35249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250   (exit $ac_status); }; } &&
35251          { ac_try='test -s conftest.$ac_objext'
35252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35253   (eval $ac_try) 2>&5
35254   ac_status=$?
35255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256   (exit $ac_status); }; }; then
35257   ac_hi=-1 ac_mid=-1
35258   while :; do
35259     cat >conftest.$ac_ext <<_ACEOF
35260 /* confdefs.h.  */
35261 _ACEOF
35262 cat confdefs.h >>conftest.$ac_ext
35263 cat >>conftest.$ac_ext <<_ACEOF
35264 /* end confdefs.h.  */
35265 $ac_includes_default
35266 int
35267 main ()
35268 {
35269 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
35270 test_array [0] = 0
35271
35272   ;
35273   return 0;
35274 }
35275 _ACEOF
35276 rm -f conftest.$ac_objext
35277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35278   (eval $ac_compile) 2>conftest.er1
35279   ac_status=$?
35280   grep -v '^ *+' conftest.er1 >conftest.err
35281   rm -f conftest.er1
35282   cat conftest.err >&5
35283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35284   (exit $ac_status); } &&
35285          { ac_try='test -z "$ac_c_werror_flag"
35286                          || test ! -s conftest.err'
35287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35288   (eval $ac_try) 2>&5
35289   ac_status=$?
35290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291   (exit $ac_status); }; } &&
35292          { ac_try='test -s conftest.$ac_objext'
35293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35294   (eval $ac_try) 2>&5
35295   ac_status=$?
35296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35297   (exit $ac_status); }; }; then
35298   ac_lo=$ac_mid; break
35299 else
35300   echo "$as_me: failed program was:" >&5
35301 sed 's/^/| /' conftest.$ac_ext >&5
35302
35303 ac_hi=`expr '(' $ac_mid ')' - 1`
35304                        if test $ac_mid -le $ac_hi; then
35305                          ac_lo= ac_hi=
35306                          break
35307                        fi
35308                        ac_mid=`expr 2 '*' $ac_mid`
35309 fi
35310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35311   done
35312 else
35313   echo "$as_me: failed program was:" >&5
35314 sed 's/^/| /' conftest.$ac_ext >&5
35315
35316 ac_lo= ac_hi=
35317 fi
35318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35319 fi
35320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35321 # Binary search between lo and hi bounds.
35322 while test "x$ac_lo" != "x$ac_hi"; do
35323   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35324   cat >conftest.$ac_ext <<_ACEOF
35325 /* confdefs.h.  */
35326 _ACEOF
35327 cat confdefs.h >>conftest.$ac_ext
35328 cat >>conftest.$ac_ext <<_ACEOF
35329 /* end confdefs.h.  */
35330 $ac_includes_default
35331 int
35332 main ()
35333 {
35334 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
35335 test_array [0] = 0
35336
35337   ;
35338   return 0;
35339 }
35340 _ACEOF
35341 rm -f conftest.$ac_objext
35342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35343   (eval $ac_compile) 2>conftest.er1
35344   ac_status=$?
35345   grep -v '^ *+' conftest.er1 >conftest.err
35346   rm -f conftest.er1
35347   cat conftest.err >&5
35348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349   (exit $ac_status); } &&
35350          { ac_try='test -z "$ac_c_werror_flag"
35351                          || test ! -s conftest.err'
35352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35353   (eval $ac_try) 2>&5
35354   ac_status=$?
35355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356   (exit $ac_status); }; } &&
35357          { ac_try='test -s conftest.$ac_objext'
35358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35359   (eval $ac_try) 2>&5
35360   ac_status=$?
35361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35362   (exit $ac_status); }; }; then
35363   ac_hi=$ac_mid
35364 else
35365   echo "$as_me: failed program was:" >&5
35366 sed 's/^/| /' conftest.$ac_ext >&5
35367
35368 ac_lo=`expr '(' $ac_mid ')' + 1`
35369 fi
35370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35371 done
35372 case $ac_lo in
35373 ?*) ac_cv_sizeof_long_long=$ac_lo;;
35374 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
35375 See \`config.log' for more details." >&5
35376 echo "$as_me: error: cannot compute sizeof (long long), 77
35377 See \`config.log' for more details." >&2;}
35378    { (exit 1); exit 1; }; } ;;
35379 esac
35380 else
35381   if test "$cross_compiling" = yes; then
35382   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35383 See \`config.log' for more details." >&5
35384 echo "$as_me: error: cannot run test program while cross compiling
35385 See \`config.log' for more details." >&2;}
35386    { (exit 1); exit 1; }; }
35387 else
35388   cat >conftest.$ac_ext <<_ACEOF
35389 /* confdefs.h.  */
35390 _ACEOF
35391 cat confdefs.h >>conftest.$ac_ext
35392 cat >>conftest.$ac_ext <<_ACEOF
35393 /* end confdefs.h.  */
35394 $ac_includes_default
35395 long longval () { return (long) (sizeof (long long)); }
35396 unsigned long ulongval () { return (long) (sizeof (long long)); }
35397 #include <stdio.h>
35398 #include <stdlib.h>
35399 int
35400 main ()
35401 {
35402
35403   FILE *f = fopen ("conftest.val", "w");
35404   if (! f)
35405     exit (1);
35406   if (((long) (sizeof (long long))) < 0)
35407     {
35408       long i = longval ();
35409       if (i != ((long) (sizeof (long long))))
35410         exit (1);
35411       fprintf (f, "%ld\n", i);
35412     }
35413   else
35414     {
35415       unsigned long i = ulongval ();
35416       if (i != ((long) (sizeof (long long))))
35417         exit (1);
35418       fprintf (f, "%lu\n", i);
35419     }
35420   exit (ferror (f) || fclose (f) != 0);
35421
35422   ;
35423   return 0;
35424 }
35425 _ACEOF
35426 rm -f conftest$ac_exeext
35427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35428   (eval $ac_link) 2>&5
35429   ac_status=$?
35430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35433   (eval $ac_try) 2>&5
35434   ac_status=$?
35435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436   (exit $ac_status); }; }; then
35437   ac_cv_sizeof_long_long=`cat conftest.val`
35438 else
35439   echo "$as_me: program exited with status $ac_status" >&5
35440 echo "$as_me: failed program was:" >&5
35441 sed 's/^/| /' conftest.$ac_ext >&5
35442
35443 ( exit $ac_status )
35444 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
35445 See \`config.log' for more details." >&5
35446 echo "$as_me: error: cannot compute sizeof (long long), 77
35447 See \`config.log' for more details." >&2;}
35448    { (exit 1); exit 1; }; }
35449 fi
35450 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35451 fi
35452 fi
35453 rm -f conftest.val
35454 else
35455   ac_cv_sizeof_long_long=0
35456 fi
35457 fi
35458 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35459 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
35460 cat >>confdefs.h <<_ACEOF
35461 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35462 _ACEOF
35463
35464
35465 echo "$as_me:$LINENO: checking for wchar_t" >&5
35466 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
35467 if test "${ac_cv_type_wchar_t+set}" = set; then
35468   echo $ECHO_N "(cached) $ECHO_C" >&6
35469 else
35470   cat >conftest.$ac_ext <<_ACEOF
35471 /* confdefs.h.  */
35472 _ACEOF
35473 cat confdefs.h >>conftest.$ac_ext
35474 cat >>conftest.$ac_ext <<_ACEOF
35475 /* end confdefs.h.  */
35476 $ac_includes_default
35477 int
35478 main ()
35479 {
35480 if ((wchar_t *) 0)
35481   return 0;
35482 if (sizeof (wchar_t))
35483   return 0;
35484   ;
35485   return 0;
35486 }
35487 _ACEOF
35488 rm -f conftest.$ac_objext
35489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35490   (eval $ac_compile) 2>conftest.er1
35491   ac_status=$?
35492   grep -v '^ *+' conftest.er1 >conftest.err
35493   rm -f conftest.er1
35494   cat conftest.err >&5
35495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496   (exit $ac_status); } &&
35497          { ac_try='test -z "$ac_c_werror_flag"
35498                          || test ! -s conftest.err'
35499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35500   (eval $ac_try) 2>&5
35501   ac_status=$?
35502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503   (exit $ac_status); }; } &&
35504          { ac_try='test -s conftest.$ac_objext'
35505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35506   (eval $ac_try) 2>&5
35507   ac_status=$?
35508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35509   (exit $ac_status); }; }; then
35510   ac_cv_type_wchar_t=yes
35511 else
35512   echo "$as_me: failed program was:" >&5
35513 sed 's/^/| /' conftest.$ac_ext >&5
35514
35515 ac_cv_type_wchar_t=no
35516 fi
35517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35518 fi
35519 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35520 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
35521
35522 echo "$as_me:$LINENO: checking size of wchar_t" >&5
35523 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
35524 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35525   echo $ECHO_N "(cached) $ECHO_C" >&6
35526 else
35527   if test "$ac_cv_type_wchar_t" = yes; then
35528   # The cast to unsigned long works around a bug in the HP C Compiler
35529   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35530   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35531   # This bug is HP SR number 8606223364.
35532   if test "$cross_compiling" = yes; then
35533   # Depending upon the size, compute the lo and hi bounds.
35534 cat >conftest.$ac_ext <<_ACEOF
35535 /* confdefs.h.  */
35536 _ACEOF
35537 cat confdefs.h >>conftest.$ac_ext
35538 cat >>conftest.$ac_ext <<_ACEOF
35539 /* end confdefs.h.  */
35540 $ac_includes_default
35541 int
35542 main ()
35543 {
35544 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
35545 test_array [0] = 0
35546
35547   ;
35548   return 0;
35549 }
35550 _ACEOF
35551 rm -f conftest.$ac_objext
35552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35553   (eval $ac_compile) 2>conftest.er1
35554   ac_status=$?
35555   grep -v '^ *+' conftest.er1 >conftest.err
35556   rm -f conftest.er1
35557   cat conftest.err >&5
35558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559   (exit $ac_status); } &&
35560          { ac_try='test -z "$ac_c_werror_flag"
35561                          || test ! -s conftest.err'
35562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35563   (eval $ac_try) 2>&5
35564   ac_status=$?
35565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35566   (exit $ac_status); }; } &&
35567          { ac_try='test -s conftest.$ac_objext'
35568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35569   (eval $ac_try) 2>&5
35570   ac_status=$?
35571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572   (exit $ac_status); }; }; then
35573   ac_lo=0 ac_mid=0
35574   while :; do
35575     cat >conftest.$ac_ext <<_ACEOF
35576 /* confdefs.h.  */
35577 _ACEOF
35578 cat confdefs.h >>conftest.$ac_ext
35579 cat >>conftest.$ac_ext <<_ACEOF
35580 /* end confdefs.h.  */
35581 $ac_includes_default
35582 int
35583 main ()
35584 {
35585 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35586 test_array [0] = 0
35587
35588   ;
35589   return 0;
35590 }
35591 _ACEOF
35592 rm -f conftest.$ac_objext
35593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35594   (eval $ac_compile) 2>conftest.er1
35595   ac_status=$?
35596   grep -v '^ *+' conftest.er1 >conftest.err
35597   rm -f conftest.er1
35598   cat conftest.err >&5
35599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35600   (exit $ac_status); } &&
35601          { ac_try='test -z "$ac_c_werror_flag"
35602                          || test ! -s conftest.err'
35603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35604   (eval $ac_try) 2>&5
35605   ac_status=$?
35606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35607   (exit $ac_status); }; } &&
35608          { ac_try='test -s conftest.$ac_objext'
35609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35610   (eval $ac_try) 2>&5
35611   ac_status=$?
35612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613   (exit $ac_status); }; }; then
35614   ac_hi=$ac_mid; break
35615 else
35616   echo "$as_me: failed program was:" >&5
35617 sed 's/^/| /' conftest.$ac_ext >&5
35618
35619 ac_lo=`expr $ac_mid + 1`
35620                     if test $ac_lo -le $ac_mid; then
35621                       ac_lo= ac_hi=
35622                       break
35623                     fi
35624                     ac_mid=`expr 2 '*' $ac_mid + 1`
35625 fi
35626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35627   done
35628 else
35629   echo "$as_me: failed program was:" >&5
35630 sed 's/^/| /' conftest.$ac_ext >&5
35631
35632 cat >conftest.$ac_ext <<_ACEOF
35633 /* confdefs.h.  */
35634 _ACEOF
35635 cat confdefs.h >>conftest.$ac_ext
35636 cat >>conftest.$ac_ext <<_ACEOF
35637 /* end confdefs.h.  */
35638 $ac_includes_default
35639 int
35640 main ()
35641 {
35642 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
35643 test_array [0] = 0
35644
35645   ;
35646   return 0;
35647 }
35648 _ACEOF
35649 rm -f conftest.$ac_objext
35650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35651   (eval $ac_compile) 2>conftest.er1
35652   ac_status=$?
35653   grep -v '^ *+' conftest.er1 >conftest.err
35654   rm -f conftest.er1
35655   cat conftest.err >&5
35656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35657   (exit $ac_status); } &&
35658          { ac_try='test -z "$ac_c_werror_flag"
35659                          || test ! -s conftest.err'
35660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35661   (eval $ac_try) 2>&5
35662   ac_status=$?
35663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664   (exit $ac_status); }; } &&
35665          { ac_try='test -s conftest.$ac_objext'
35666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35667   (eval $ac_try) 2>&5
35668   ac_status=$?
35669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35670   (exit $ac_status); }; }; then
35671   ac_hi=-1 ac_mid=-1
35672   while :; do
35673     cat >conftest.$ac_ext <<_ACEOF
35674 /* confdefs.h.  */
35675 _ACEOF
35676 cat confdefs.h >>conftest.$ac_ext
35677 cat >>conftest.$ac_ext <<_ACEOF
35678 /* end confdefs.h.  */
35679 $ac_includes_default
35680 int
35681 main ()
35682 {
35683 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
35684 test_array [0] = 0
35685
35686   ;
35687   return 0;
35688 }
35689 _ACEOF
35690 rm -f conftest.$ac_objext
35691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35692   (eval $ac_compile) 2>conftest.er1
35693   ac_status=$?
35694   grep -v '^ *+' conftest.er1 >conftest.err
35695   rm -f conftest.er1
35696   cat conftest.err >&5
35697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698   (exit $ac_status); } &&
35699          { ac_try='test -z "$ac_c_werror_flag"
35700                          || test ! -s conftest.err'
35701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35702   (eval $ac_try) 2>&5
35703   ac_status=$?
35704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35705   (exit $ac_status); }; } &&
35706          { ac_try='test -s conftest.$ac_objext'
35707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35708   (eval $ac_try) 2>&5
35709   ac_status=$?
35710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35711   (exit $ac_status); }; }; then
35712   ac_lo=$ac_mid; break
35713 else
35714   echo "$as_me: failed program was:" >&5
35715 sed 's/^/| /' conftest.$ac_ext >&5
35716
35717 ac_hi=`expr '(' $ac_mid ')' - 1`
35718                        if test $ac_mid -le $ac_hi; then
35719                          ac_lo= ac_hi=
35720                          break
35721                        fi
35722                        ac_mid=`expr 2 '*' $ac_mid`
35723 fi
35724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35725   done
35726 else
35727   echo "$as_me: failed program was:" >&5
35728 sed 's/^/| /' conftest.$ac_ext >&5
35729
35730 ac_lo= ac_hi=
35731 fi
35732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35733 fi
35734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35735 # Binary search between lo and hi bounds.
35736 while test "x$ac_lo" != "x$ac_hi"; do
35737   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35738   cat >conftest.$ac_ext <<_ACEOF
35739 /* confdefs.h.  */
35740 _ACEOF
35741 cat confdefs.h >>conftest.$ac_ext
35742 cat >>conftest.$ac_ext <<_ACEOF
35743 /* end confdefs.h.  */
35744 $ac_includes_default
35745 int
35746 main ()
35747 {
35748 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35749 test_array [0] = 0
35750
35751   ;
35752   return 0;
35753 }
35754 _ACEOF
35755 rm -f conftest.$ac_objext
35756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35757   (eval $ac_compile) 2>conftest.er1
35758   ac_status=$?
35759   grep -v '^ *+' conftest.er1 >conftest.err
35760   rm -f conftest.er1
35761   cat conftest.err >&5
35762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763   (exit $ac_status); } &&
35764          { ac_try='test -z "$ac_c_werror_flag"
35765                          || test ! -s conftest.err'
35766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35767   (eval $ac_try) 2>&5
35768   ac_status=$?
35769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35770   (exit $ac_status); }; } &&
35771          { ac_try='test -s conftest.$ac_objext'
35772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35773   (eval $ac_try) 2>&5
35774   ac_status=$?
35775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35776   (exit $ac_status); }; }; then
35777   ac_hi=$ac_mid
35778 else
35779   echo "$as_me: failed program was:" >&5
35780 sed 's/^/| /' conftest.$ac_ext >&5
35781
35782 ac_lo=`expr '(' $ac_mid ')' + 1`
35783 fi
35784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35785 done
35786 case $ac_lo in
35787 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35788 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35789 See \`config.log' for more details." >&5
35790 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35791 See \`config.log' for more details." >&2;}
35792    { (exit 1); exit 1; }; } ;;
35793 esac
35794 else
35795   if test "$cross_compiling" = yes; then
35796   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35797 See \`config.log' for more details." >&5
35798 echo "$as_me: error: cannot run test program while cross compiling
35799 See \`config.log' for more details." >&2;}
35800    { (exit 1); exit 1; }; }
35801 else
35802   cat >conftest.$ac_ext <<_ACEOF
35803 /* confdefs.h.  */
35804 _ACEOF
35805 cat confdefs.h >>conftest.$ac_ext
35806 cat >>conftest.$ac_ext <<_ACEOF
35807 /* end confdefs.h.  */
35808 $ac_includes_default
35809 long longval () { return (long) (sizeof (wchar_t)); }
35810 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
35811 #include <stdio.h>
35812 #include <stdlib.h>
35813 int
35814 main ()
35815 {
35816
35817   FILE *f = fopen ("conftest.val", "w");
35818   if (! f)
35819     exit (1);
35820   if (((long) (sizeof (wchar_t))) < 0)
35821     {
35822       long i = longval ();
35823       if (i != ((long) (sizeof (wchar_t))))
35824         exit (1);
35825       fprintf (f, "%ld\n", i);
35826     }
35827   else
35828     {
35829       unsigned long i = ulongval ();
35830       if (i != ((long) (sizeof (wchar_t))))
35831         exit (1);
35832       fprintf (f, "%lu\n", i);
35833     }
35834   exit (ferror (f) || fclose (f) != 0);
35835
35836   ;
35837   return 0;
35838 }
35839 _ACEOF
35840 rm -f conftest$ac_exeext
35841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35842   (eval $ac_link) 2>&5
35843   ac_status=$?
35844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35847   (eval $ac_try) 2>&5
35848   ac_status=$?
35849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35850   (exit $ac_status); }; }; then
35851   ac_cv_sizeof_wchar_t=`cat conftest.val`
35852 else
35853   echo "$as_me: program exited with status $ac_status" >&5
35854 echo "$as_me: failed program was:" >&5
35855 sed 's/^/| /' conftest.$ac_ext >&5
35856
35857 ( exit $ac_status )
35858 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35859 See \`config.log' for more details." >&5
35860 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35861 See \`config.log' for more details." >&2;}
35862    { (exit 1); exit 1; }; }
35863 fi
35864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35865 fi
35866 fi
35867 rm -f conftest.val
35868 else
35869   ac_cv_sizeof_wchar_t=0
35870 fi
35871 fi
35872 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35873 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
35874 cat >>confdefs.h <<_ACEOF
35875 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35876 _ACEOF
35877
35878
35879
35880 if test "$ac_cv_sizeof_int" -lt 4 ; then
35881         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35882 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35883
35884
35885 cat >>confdefs.h <<\_ACEOF
35886 #define LBER_INT_T long
35887 _ACEOF
35888
35889 else
35890
35891 cat >>confdefs.h <<\_ACEOF
35892 #define LBER_INT_T int
35893 _ACEOF
35894
35895 fi
35896
35897
35898 cat >>confdefs.h <<\_ACEOF
35899 #define LBER_LEN_T long
35900 _ACEOF
35901
35902
35903 cat >>confdefs.h <<\_ACEOF
35904 #define LBER_SOCKET_T int
35905 _ACEOF
35906
35907
35908 cat >>confdefs.h <<\_ACEOF
35909 #define LBER_TAG_T long
35910 _ACEOF
35911
35912
35913 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35914         if test $ac_cv_sizeof_long_long -gt 4 ; then
35915                 ol_with_mp=longlong
35916
35917 cat >>confdefs.h <<\_ACEOF
35918 #define USE_MP_LONG_LONG 1
35919 _ACEOF
35920
35921         elif test $ol_with_mp = longlong ; then
35922                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35923 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35924    { (exit 1); exit 1; }; }
35925         fi
35926 fi
35927 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35928         if test $ac_cv_sizeof_long -gt 4 ; then
35929                 ol_with_mp=long
35930
35931 cat >>confdefs.h <<\_ACEOF
35932 #define USE_MP_LONG 1
35933 _ACEOF
35934
35935         elif test $ol_with_mp = long ; then
35936                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35937 echo "$as_me: error: long unusable for multiple precision" >&2;}
35938    { (exit 1); exit 1; }; }
35939         fi
35940 fi
35941 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35942
35943 for ac_header in openssl/bn.h
35944 do
35945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35947   echo "$as_me:$LINENO: checking for $ac_header" >&5
35948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35950   echo $ECHO_N "(cached) $ECHO_C" >&6
35951 fi
35952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35954 else
35955   # Is the header compilable?
35956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35958 cat >conftest.$ac_ext <<_ACEOF
35959 /* confdefs.h.  */
35960 _ACEOF
35961 cat confdefs.h >>conftest.$ac_ext
35962 cat >>conftest.$ac_ext <<_ACEOF
35963 /* end confdefs.h.  */
35964 $ac_includes_default
35965 #include <$ac_header>
35966 _ACEOF
35967 rm -f conftest.$ac_objext
35968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35969   (eval $ac_compile) 2>conftest.er1
35970   ac_status=$?
35971   grep -v '^ *+' conftest.er1 >conftest.err
35972   rm -f conftest.er1
35973   cat conftest.err >&5
35974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975   (exit $ac_status); } &&
35976          { ac_try='test -z "$ac_c_werror_flag"
35977                          || test ! -s conftest.err'
35978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35979   (eval $ac_try) 2>&5
35980   ac_status=$?
35981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35982   (exit $ac_status); }; } &&
35983          { ac_try='test -s conftest.$ac_objext'
35984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35985   (eval $ac_try) 2>&5
35986   ac_status=$?
35987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35988   (exit $ac_status); }; }; then
35989   ac_header_compiler=yes
35990 else
35991   echo "$as_me: failed program was:" >&5
35992 sed 's/^/| /' conftest.$ac_ext >&5
35993
35994 ac_header_compiler=no
35995 fi
35996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35998 echo "${ECHO_T}$ac_header_compiler" >&6
35999
36000 # Is the header present?
36001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36003 cat >conftest.$ac_ext <<_ACEOF
36004 /* confdefs.h.  */
36005 _ACEOF
36006 cat confdefs.h >>conftest.$ac_ext
36007 cat >>conftest.$ac_ext <<_ACEOF
36008 /* end confdefs.h.  */
36009 #include <$ac_header>
36010 _ACEOF
36011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36012   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36013   ac_status=$?
36014   grep -v '^ *+' conftest.er1 >conftest.err
36015   rm -f conftest.er1
36016   cat conftest.err >&5
36017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36018   (exit $ac_status); } >/dev/null; then
36019   if test -s conftest.err; then
36020     ac_cpp_err=$ac_c_preproc_warn_flag
36021     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36022   else
36023     ac_cpp_err=
36024   fi
36025 else
36026   ac_cpp_err=yes
36027 fi
36028 if test -z "$ac_cpp_err"; then
36029   ac_header_preproc=yes
36030 else
36031   echo "$as_me: failed program was:" >&5
36032 sed 's/^/| /' conftest.$ac_ext >&5
36033
36034   ac_header_preproc=no
36035 fi
36036 rm -f conftest.err conftest.$ac_ext
36037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36038 echo "${ECHO_T}$ac_header_preproc" >&6
36039
36040 # So?  What about this header?
36041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36042   yes:no: )
36043     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36047     ac_header_preproc=yes
36048     ;;
36049   no:yes:* )
36050     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36052     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36053 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36054     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36056     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36057 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36060     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36062     (
36063       cat <<\_ASBOX
36064 ## --------------------------------------------- ##
36065 ## Report this to <http://www.openldap.org/its/> ##
36066 ## --------------------------------------------- ##
36067 _ASBOX
36068     ) |
36069       sed "s/^/$as_me: WARNING:     /" >&2
36070     ;;
36071 esac
36072 echo "$as_me:$LINENO: checking for $ac_header" >&5
36073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36075   echo $ECHO_N "(cached) $ECHO_C" >&6
36076 else
36077   eval "$as_ac_Header=\$ac_header_preproc"
36078 fi
36079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36081
36082 fi
36083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36084   cat >>confdefs.h <<_ACEOF
36085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36086 _ACEOF
36087
36088 fi
36089
36090 done
36091
36092
36093 for ac_header in openssl/crypto.h
36094 do
36095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36097   echo "$as_me:$LINENO: checking for $ac_header" >&5
36098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36100   echo $ECHO_N "(cached) $ECHO_C" >&6
36101 fi
36102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36104 else
36105   # Is the header compilable?
36106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36108 cat >conftest.$ac_ext <<_ACEOF
36109 /* confdefs.h.  */
36110 _ACEOF
36111 cat confdefs.h >>conftest.$ac_ext
36112 cat >>conftest.$ac_ext <<_ACEOF
36113 /* end confdefs.h.  */
36114 $ac_includes_default
36115 #include <$ac_header>
36116 _ACEOF
36117 rm -f conftest.$ac_objext
36118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36119   (eval $ac_compile) 2>conftest.er1
36120   ac_status=$?
36121   grep -v '^ *+' conftest.er1 >conftest.err
36122   rm -f conftest.er1
36123   cat conftest.err >&5
36124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36125   (exit $ac_status); } &&
36126          { ac_try='test -z "$ac_c_werror_flag"
36127                          || test ! -s conftest.err'
36128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36129   (eval $ac_try) 2>&5
36130   ac_status=$?
36131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132   (exit $ac_status); }; } &&
36133          { ac_try='test -s conftest.$ac_objext'
36134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36135   (eval $ac_try) 2>&5
36136   ac_status=$?
36137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36138   (exit $ac_status); }; }; then
36139   ac_header_compiler=yes
36140 else
36141   echo "$as_me: failed program was:" >&5
36142 sed 's/^/| /' conftest.$ac_ext >&5
36143
36144 ac_header_compiler=no
36145 fi
36146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36148 echo "${ECHO_T}$ac_header_compiler" >&6
36149
36150 # Is the header present?
36151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36153 cat >conftest.$ac_ext <<_ACEOF
36154 /* confdefs.h.  */
36155 _ACEOF
36156 cat confdefs.h >>conftest.$ac_ext
36157 cat >>conftest.$ac_ext <<_ACEOF
36158 /* end confdefs.h.  */
36159 #include <$ac_header>
36160 _ACEOF
36161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36162   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36163   ac_status=$?
36164   grep -v '^ *+' conftest.er1 >conftest.err
36165   rm -f conftest.er1
36166   cat conftest.err >&5
36167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36168   (exit $ac_status); } >/dev/null; then
36169   if test -s conftest.err; then
36170     ac_cpp_err=$ac_c_preproc_warn_flag
36171     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36172   else
36173     ac_cpp_err=
36174   fi
36175 else
36176   ac_cpp_err=yes
36177 fi
36178 if test -z "$ac_cpp_err"; then
36179   ac_header_preproc=yes
36180 else
36181   echo "$as_me: failed program was:" >&5
36182 sed 's/^/| /' conftest.$ac_ext >&5
36183
36184   ac_header_preproc=no
36185 fi
36186 rm -f conftest.err conftest.$ac_ext
36187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36188 echo "${ECHO_T}$ac_header_preproc" >&6
36189
36190 # So?  What about this header?
36191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36192   yes:no: )
36193     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36197     ac_header_preproc=yes
36198     ;;
36199   no:yes:* )
36200     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36202     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36203 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36204     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36206     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36207 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36210     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36212     (
36213       cat <<\_ASBOX
36214 ## --------------------------------------------- ##
36215 ## Report this to <http://www.openldap.org/its/> ##
36216 ## --------------------------------------------- ##
36217 _ASBOX
36218     ) |
36219       sed "s/^/$as_me: WARNING:     /" >&2
36220     ;;
36221 esac
36222 echo "$as_me:$LINENO: checking for $ac_header" >&5
36223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36225   echo $ECHO_N "(cached) $ECHO_C" >&6
36226 else
36227   eval "$as_ac_Header=\$ac_header_preproc"
36228 fi
36229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36231
36232 fi
36233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36234   cat >>confdefs.h <<_ACEOF
36235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36236 _ACEOF
36237
36238 fi
36239
36240 done
36241
36242         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
36243                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
36244                 test "$ol_with_tls" = "found" ; then
36245                 ol_with_mp=bignum
36246
36247 cat >>confdefs.h <<\_ACEOF
36248 #define USE_MP_BIGNUM 1
36249 _ACEOF
36250
36251         elif test $ol_with_mp = bignum ; then
36252                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
36253 echo "$as_me: error: bignum not available" >&2;}
36254    { (exit 1); exit 1; }; }
36255         fi
36256 fi
36257 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
36258
36259 for ac_header in gmp.h
36260 do
36261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36263   echo "$as_me:$LINENO: checking for $ac_header" >&5
36264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36266   echo $ECHO_N "(cached) $ECHO_C" >&6
36267 fi
36268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36270 else
36271   # Is the header compilable?
36272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36274 cat >conftest.$ac_ext <<_ACEOF
36275 /* confdefs.h.  */
36276 _ACEOF
36277 cat confdefs.h >>conftest.$ac_ext
36278 cat >>conftest.$ac_ext <<_ACEOF
36279 /* end confdefs.h.  */
36280 $ac_includes_default
36281 #include <$ac_header>
36282 _ACEOF
36283 rm -f conftest.$ac_objext
36284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36285   (eval $ac_compile) 2>conftest.er1
36286   ac_status=$?
36287   grep -v '^ *+' conftest.er1 >conftest.err
36288   rm -f conftest.er1
36289   cat conftest.err >&5
36290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36291   (exit $ac_status); } &&
36292          { ac_try='test -z "$ac_c_werror_flag"
36293                          || test ! -s conftest.err'
36294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36295   (eval $ac_try) 2>&5
36296   ac_status=$?
36297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36298   (exit $ac_status); }; } &&
36299          { ac_try='test -s conftest.$ac_objext'
36300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36301   (eval $ac_try) 2>&5
36302   ac_status=$?
36303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36304   (exit $ac_status); }; }; then
36305   ac_header_compiler=yes
36306 else
36307   echo "$as_me: failed program was:" >&5
36308 sed 's/^/| /' conftest.$ac_ext >&5
36309
36310 ac_header_compiler=no
36311 fi
36312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36314 echo "${ECHO_T}$ac_header_compiler" >&6
36315
36316 # Is the header present?
36317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36319 cat >conftest.$ac_ext <<_ACEOF
36320 /* confdefs.h.  */
36321 _ACEOF
36322 cat confdefs.h >>conftest.$ac_ext
36323 cat >>conftest.$ac_ext <<_ACEOF
36324 /* end confdefs.h.  */
36325 #include <$ac_header>
36326 _ACEOF
36327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36329   ac_status=$?
36330   grep -v '^ *+' conftest.er1 >conftest.err
36331   rm -f conftest.er1
36332   cat conftest.err >&5
36333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36334   (exit $ac_status); } >/dev/null; then
36335   if test -s conftest.err; then
36336     ac_cpp_err=$ac_c_preproc_warn_flag
36337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36338   else
36339     ac_cpp_err=
36340   fi
36341 else
36342   ac_cpp_err=yes
36343 fi
36344 if test -z "$ac_cpp_err"; then
36345   ac_header_preproc=yes
36346 else
36347   echo "$as_me: failed program was:" >&5
36348 sed 's/^/| /' conftest.$ac_ext >&5
36349
36350   ac_header_preproc=no
36351 fi
36352 rm -f conftest.err conftest.$ac_ext
36353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36354 echo "${ECHO_T}$ac_header_preproc" >&6
36355
36356 # So?  What about this header?
36357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36358   yes:no: )
36359     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36363     ac_header_preproc=yes
36364     ;;
36365   no:yes:* )
36366     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36368     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36369 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36370     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36372     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36373 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36376     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36378     (
36379       cat <<\_ASBOX
36380 ## --------------------------------------------- ##
36381 ## Report this to <http://www.openldap.org/its/> ##
36382 ## --------------------------------------------- ##
36383 _ASBOX
36384     ) |
36385       sed "s/^/$as_me: WARNING:     /" >&2
36386     ;;
36387 esac
36388 echo "$as_me:$LINENO: checking for $ac_header" >&5
36389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36391   echo $ECHO_N "(cached) $ECHO_C" >&6
36392 else
36393   eval "$as_ac_Header=\$ac_header_preproc"
36394 fi
36395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36397
36398 fi
36399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36400   cat >>confdefs.h <<_ACEOF
36401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36402 _ACEOF
36403
36404 fi
36405
36406 done
36407
36408
36409 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36410 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36411 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36412   echo $ECHO_N "(cached) $ECHO_C" >&6
36413 else
36414   ac_check_lib_save_LIBS=$LIBS
36415 LIBS="-lgmp  $LIBS"
36416 cat >conftest.$ac_ext <<_ACEOF
36417 /* confdefs.h.  */
36418 _ACEOF
36419 cat confdefs.h >>conftest.$ac_ext
36420 cat >>conftest.$ac_ext <<_ACEOF
36421 /* end confdefs.h.  */
36422
36423 /* Override any gcc2 internal prototype to avoid an error.  */
36424 #ifdef __cplusplus
36425 extern "C"
36426 #endif
36427 /* We use char because int might match the return type of a gcc2
36428    builtin and then its argument prototype would still apply.  */
36429 char __gmpz_add_ui ();
36430 int
36431 main ()
36432 {
36433 __gmpz_add_ui ();
36434   ;
36435   return 0;
36436 }
36437 _ACEOF
36438 rm -f conftest.$ac_objext conftest$ac_exeext
36439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36440   (eval $ac_link) 2>conftest.er1
36441   ac_status=$?
36442   grep -v '^ *+' conftest.er1 >conftest.err
36443   rm -f conftest.er1
36444   cat conftest.err >&5
36445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446   (exit $ac_status); } &&
36447          { ac_try='test -z "$ac_c_werror_flag"
36448                          || test ! -s conftest.err'
36449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36450   (eval $ac_try) 2>&5
36451   ac_status=$?
36452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36453   (exit $ac_status); }; } &&
36454          { ac_try='test -s conftest$ac_exeext'
36455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36456   (eval $ac_try) 2>&5
36457   ac_status=$?
36458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36459   (exit $ac_status); }; }; then
36460   ac_cv_lib_gmp___gmpz_add_ui=yes
36461 else
36462   echo "$as_me: failed program was:" >&5
36463 sed 's/^/| /' conftest.$ac_ext >&5
36464
36465 ac_cv_lib_gmp___gmpz_add_ui=no
36466 fi
36467 rm -f conftest.err conftest.$ac_objext \
36468       conftest$ac_exeext conftest.$ac_ext
36469 LIBS=$ac_check_lib_save_LIBS
36470 fi
36471 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36472 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36473 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36474   cat >>confdefs.h <<_ACEOF
36475 #define HAVE_LIBGMP 1
36476 _ACEOF
36477
36478   LIBS="-lgmp $LIBS"
36479
36480 fi
36481
36482         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36483
36484 cat >>confdefs.h <<\_ACEOF
36485 #define USE_MP_GMP 1
36486 _ACEOF
36487
36488                 ol_with_mp=gmp
36489         elif test $ol_with_mp = gmp ; then
36490                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36491 echo "$as_me: error: gmp not available" >&2;}
36492    { (exit 1); exit 1; }; }
36493         fi
36494 fi
36495 if test $ol_with_mp = auto ; then
36496         ol_with_mp=no
36497 fi
36498
36499 echo "$as_me:$LINENO: checking for working memcmp" >&5
36500 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
36501 if test "${ac_cv_func_memcmp_working+set}" = set; then
36502   echo $ECHO_N "(cached) $ECHO_C" >&6
36503 else
36504   if test "$cross_compiling" = yes; then
36505   ac_cv_func_memcmp_working=no
36506 else
36507   cat >conftest.$ac_ext <<_ACEOF
36508 /* confdefs.h.  */
36509 _ACEOF
36510 cat confdefs.h >>conftest.$ac_ext
36511 cat >>conftest.$ac_ext <<_ACEOF
36512 /* end confdefs.h.  */
36513 $ac_includes_default
36514 int
36515 main ()
36516 {
36517
36518   /* Some versions of memcmp are not 8-bit clean.  */
36519   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
36520   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36521     exit (1);
36522
36523   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36524      or more and with at least one buffer not starting on a 4-byte boundary.
36525      William Lewis provided this test program.   */
36526   {
36527     char foo[21];
36528     char bar[21];
36529     int i;
36530     for (i = 0; i < 4; i++)
36531       {
36532         char *a = foo + i;
36533         char *b = bar + i;
36534         strcpy (a, "--------01111111");
36535         strcpy (b, "--------10000000");
36536         if (memcmp (a, b, 16) >= 0)
36537           exit (1);
36538       }
36539     exit (0);
36540   }
36541
36542   ;
36543   return 0;
36544 }
36545 _ACEOF
36546 rm -f conftest$ac_exeext
36547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36548   (eval $ac_link) 2>&5
36549   ac_status=$?
36550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36553   (eval $ac_try) 2>&5
36554   ac_status=$?
36555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36556   (exit $ac_status); }; }; then
36557   ac_cv_func_memcmp_working=yes
36558 else
36559   echo "$as_me: program exited with status $ac_status" >&5
36560 echo "$as_me: failed program was:" >&5
36561 sed 's/^/| /' conftest.$ac_ext >&5
36562
36563 ( exit $ac_status )
36564 ac_cv_func_memcmp_working=no
36565 fi
36566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36567 fi
36568 fi
36569 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36570 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
36571 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
36572     "memcmp.$ac_objext"   | \
36573   *" memcmp.$ac_objext"   | \
36574     "memcmp.$ac_objext "* | \
36575   *" memcmp.$ac_objext "* ) ;;
36576   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
36577 esac
36578
36579
36580
36581 if test $ac_cv_func_memcmp_working = no ; then
36582
36583 cat >>confdefs.h <<\_ACEOF
36584 #define NEED_MEMCMP_REPLACEMENT 1
36585 _ACEOF
36586
36587 fi
36588
36589
36590 for ac_func in strftime
36591 do
36592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36593 echo "$as_me:$LINENO: checking for $ac_func" >&5
36594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36595 if eval "test \"\${$as_ac_var+set}\" = set"; then
36596   echo $ECHO_N "(cached) $ECHO_C" >&6
36597 else
36598   cat >conftest.$ac_ext <<_ACEOF
36599 /* confdefs.h.  */
36600 _ACEOF
36601 cat confdefs.h >>conftest.$ac_ext
36602 cat >>conftest.$ac_ext <<_ACEOF
36603 /* end confdefs.h.  */
36604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36606 #define $ac_func innocuous_$ac_func
36607
36608 /* System header to define __stub macros and hopefully few prototypes,
36609     which can conflict with char $ac_func (); below.
36610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36611     <limits.h> exists even on freestanding compilers.  */
36612
36613 #ifdef __STDC__
36614 # include <limits.h>
36615 #else
36616 # include <assert.h>
36617 #endif
36618
36619 #undef $ac_func
36620
36621 /* Override any gcc2 internal prototype to avoid an error.  */
36622 #ifdef __cplusplus
36623 extern "C"
36624 {
36625 #endif
36626 /* We use char because int might match the return type of a gcc2
36627    builtin and then its argument prototype would still apply.  */
36628 char $ac_func ();
36629 /* The GNU C library defines this for functions which it implements
36630     to always fail with ENOSYS.  Some functions are actually named
36631     something starting with __ and the normal name is an alias.  */
36632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36633 choke me
36634 #else
36635 char (*f) () = $ac_func;
36636 #endif
36637 #ifdef __cplusplus
36638 }
36639 #endif
36640
36641 int
36642 main ()
36643 {
36644 return f != $ac_func;
36645   ;
36646   return 0;
36647 }
36648 _ACEOF
36649 rm -f conftest.$ac_objext conftest$ac_exeext
36650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36651   (eval $ac_link) 2>conftest.er1
36652   ac_status=$?
36653   grep -v '^ *+' conftest.er1 >conftest.err
36654   rm -f conftest.er1
36655   cat conftest.err >&5
36656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657   (exit $ac_status); } &&
36658          { ac_try='test -z "$ac_c_werror_flag"
36659                          || test ! -s conftest.err'
36660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36661   (eval $ac_try) 2>&5
36662   ac_status=$?
36663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664   (exit $ac_status); }; } &&
36665          { ac_try='test -s conftest$ac_exeext'
36666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36667   (eval $ac_try) 2>&5
36668   ac_status=$?
36669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36670   (exit $ac_status); }; }; then
36671   eval "$as_ac_var=yes"
36672 else
36673   echo "$as_me: failed program was:" >&5
36674 sed 's/^/| /' conftest.$ac_ext >&5
36675
36676 eval "$as_ac_var=no"
36677 fi
36678 rm -f conftest.err conftest.$ac_objext \
36679       conftest$ac_exeext conftest.$ac_ext
36680 fi
36681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36683 if test `eval echo '${'$as_ac_var'}'` = yes; then
36684   cat >>confdefs.h <<_ACEOF
36685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36686 _ACEOF
36687
36688 else
36689   # strftime is in -lintl on SCO UNIX.
36690 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36691 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
36692 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36693   echo $ECHO_N "(cached) $ECHO_C" >&6
36694 else
36695   ac_check_lib_save_LIBS=$LIBS
36696 LIBS="-lintl  $LIBS"
36697 cat >conftest.$ac_ext <<_ACEOF
36698 /* confdefs.h.  */
36699 _ACEOF
36700 cat confdefs.h >>conftest.$ac_ext
36701 cat >>conftest.$ac_ext <<_ACEOF
36702 /* end confdefs.h.  */
36703
36704 /* Override any gcc2 internal prototype to avoid an error.  */
36705 #ifdef __cplusplus
36706 extern "C"
36707 #endif
36708 /* We use char because int might match the return type of a gcc2
36709    builtin and then its argument prototype would still apply.  */
36710 char strftime ();
36711 int
36712 main ()
36713 {
36714 strftime ();
36715   ;
36716   return 0;
36717 }
36718 _ACEOF
36719 rm -f conftest.$ac_objext conftest$ac_exeext
36720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36721   (eval $ac_link) 2>conftest.er1
36722   ac_status=$?
36723   grep -v '^ *+' conftest.er1 >conftest.err
36724   rm -f conftest.er1
36725   cat conftest.err >&5
36726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727   (exit $ac_status); } &&
36728          { ac_try='test -z "$ac_c_werror_flag"
36729                          || test ! -s conftest.err'
36730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36731   (eval $ac_try) 2>&5
36732   ac_status=$?
36733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36734   (exit $ac_status); }; } &&
36735          { ac_try='test -s conftest$ac_exeext'
36736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36737   (eval $ac_try) 2>&5
36738   ac_status=$?
36739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36740   (exit $ac_status); }; }; then
36741   ac_cv_lib_intl_strftime=yes
36742 else
36743   echo "$as_me: failed program was:" >&5
36744 sed 's/^/| /' conftest.$ac_ext >&5
36745
36746 ac_cv_lib_intl_strftime=no
36747 fi
36748 rm -f conftest.err conftest.$ac_objext \
36749       conftest$ac_exeext conftest.$ac_ext
36750 LIBS=$ac_check_lib_save_LIBS
36751 fi
36752 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36753 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
36754 if test $ac_cv_lib_intl_strftime = yes; then
36755   cat >>confdefs.h <<\_ACEOF
36756 #define HAVE_STRFTIME 1
36757 _ACEOF
36758
36759 LIBS="-lintl $LIBS"
36760 fi
36761
36762 fi
36763 done
36764
36765
36766 echo "$as_me:$LINENO: checking for inet_aton()" >&5
36767 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
36768 if test "${ol_cv_func_inet_aton+set}" = set; then
36769   echo $ECHO_N "(cached) $ECHO_C" >&6
36770 else
36771   cat >conftest.$ac_ext <<_ACEOF
36772 /* confdefs.h.  */
36773 _ACEOF
36774 cat confdefs.h >>conftest.$ac_ext
36775 cat >>conftest.$ac_ext <<_ACEOF
36776 /* end confdefs.h.  */
36777
36778 #ifdef HAVE_SYS_TYPES_H
36779 #       include <sys/types.h>
36780 #endif
36781 #ifdef HAVE_SYS_SOCKET_H
36782 #       include <sys/socket.h>
36783 #       ifdef HAVE_SYS_SELECT_H
36784 #               include <sys/select.h>
36785 #       endif
36786 #       include <netinet/in.h>
36787 #       ifdef HAVE_ARPA_INET_H
36788 #               include <arpa/inet.h>
36789 #       endif
36790 #endif
36791
36792 int
36793 main ()
36794 {
36795 struct in_addr in;
36796 int rc = inet_aton( "255.255.255.255", &in );
36797   ;
36798   return 0;
36799 }
36800 _ACEOF
36801 rm -f conftest.$ac_objext conftest$ac_exeext
36802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36803   (eval $ac_link) 2>conftest.er1
36804   ac_status=$?
36805   grep -v '^ *+' conftest.er1 >conftest.err
36806   rm -f conftest.er1
36807   cat conftest.err >&5
36808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809   (exit $ac_status); } &&
36810          { ac_try='test -z "$ac_c_werror_flag"
36811                          || test ! -s conftest.err'
36812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36813   (eval $ac_try) 2>&5
36814   ac_status=$?
36815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816   (exit $ac_status); }; } &&
36817          { ac_try='test -s conftest$ac_exeext'
36818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36819   (eval $ac_try) 2>&5
36820   ac_status=$?
36821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36822   (exit $ac_status); }; }; then
36823   ol_cv_func_inet_aton=yes
36824 else
36825   echo "$as_me: failed program was:" >&5
36826 sed 's/^/| /' conftest.$ac_ext >&5
36827
36828 ol_cv_func_inet_aton=no
36829 fi
36830 rm -f conftest.err conftest.$ac_objext \
36831       conftest$ac_exeext conftest.$ac_ext
36832 fi
36833 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36834 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
36835   if test $ol_cv_func_inet_aton != no; then
36836
36837 cat >>confdefs.h <<\_ACEOF
36838 #define HAVE_INET_ATON 1
36839 _ACEOF
36840
36841   fi
36842
36843
36844 echo "$as_me:$LINENO: checking for _spawnlp" >&5
36845 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
36846 if test "${ac_cv_func__spawnlp+set}" = set; then
36847   echo $ECHO_N "(cached) $ECHO_C" >&6
36848 else
36849   cat >conftest.$ac_ext <<_ACEOF
36850 /* confdefs.h.  */
36851 _ACEOF
36852 cat confdefs.h >>conftest.$ac_ext
36853 cat >>conftest.$ac_ext <<_ACEOF
36854 /* end confdefs.h.  */
36855 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36857 #define _spawnlp innocuous__spawnlp
36858
36859 /* System header to define __stub macros and hopefully few prototypes,
36860     which can conflict with char _spawnlp (); below.
36861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36862     <limits.h> exists even on freestanding compilers.  */
36863
36864 #ifdef __STDC__
36865 # include <limits.h>
36866 #else
36867 # include <assert.h>
36868 #endif
36869
36870 #undef _spawnlp
36871
36872 /* Override any gcc2 internal prototype to avoid an error.  */
36873 #ifdef __cplusplus
36874 extern "C"
36875 {
36876 #endif
36877 /* We use char because int might match the return type of a gcc2
36878    builtin and then its argument prototype would still apply.  */
36879 char _spawnlp ();
36880 /* The GNU C library defines this for functions which it implements
36881     to always fail with ENOSYS.  Some functions are actually named
36882     something starting with __ and the normal name is an alias.  */
36883 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
36884 choke me
36885 #else
36886 char (*f) () = _spawnlp;
36887 #endif
36888 #ifdef __cplusplus
36889 }
36890 #endif
36891
36892 int
36893 main ()
36894 {
36895 return f != _spawnlp;
36896   ;
36897   return 0;
36898 }
36899 _ACEOF
36900 rm -f conftest.$ac_objext conftest$ac_exeext
36901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36902   (eval $ac_link) 2>conftest.er1
36903   ac_status=$?
36904   grep -v '^ *+' conftest.er1 >conftest.err
36905   rm -f conftest.er1
36906   cat conftest.err >&5
36907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36908   (exit $ac_status); } &&
36909          { ac_try='test -z "$ac_c_werror_flag"
36910                          || test ! -s conftest.err'
36911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36912   (eval $ac_try) 2>&5
36913   ac_status=$?
36914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36915   (exit $ac_status); }; } &&
36916          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
36922   ac_cv_func__spawnlp=yes
36923 else
36924   echo "$as_me: failed program was:" >&5
36925 sed 's/^/| /' conftest.$ac_ext >&5
36926
36927 ac_cv_func__spawnlp=no
36928 fi
36929 rm -f conftest.err conftest.$ac_objext \
36930       conftest$ac_exeext conftest.$ac_ext
36931 fi
36932 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36933 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
36934 if test $ac_cv_func__spawnlp = yes; then
36935
36936 cat >>confdefs.h <<\_ACEOF
36937 #define HAVE_SPAWNLP 1
36938 _ACEOF
36939
36940 fi
36941
36942
36943 echo "$as_me:$LINENO: checking for _snprintf" >&5
36944 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
36945 if test "${ac_cv_func__snprintf+set}" = set; then
36946   echo $ECHO_N "(cached) $ECHO_C" >&6
36947 else
36948   cat >conftest.$ac_ext <<_ACEOF
36949 /* confdefs.h.  */
36950 _ACEOF
36951 cat confdefs.h >>conftest.$ac_ext
36952 cat >>conftest.$ac_ext <<_ACEOF
36953 /* end confdefs.h.  */
36954 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36956 #define _snprintf innocuous__snprintf
36957
36958 /* System header to define __stub macros and hopefully few prototypes,
36959     which can conflict with char _snprintf (); below.
36960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36961     <limits.h> exists even on freestanding compilers.  */
36962
36963 #ifdef __STDC__
36964 # include <limits.h>
36965 #else
36966 # include <assert.h>
36967 #endif
36968
36969 #undef _snprintf
36970
36971 /* Override any gcc2 internal prototype to avoid an error.  */
36972 #ifdef __cplusplus
36973 extern "C"
36974 {
36975 #endif
36976 /* We use char because int might match the return type of a gcc2
36977    builtin and then its argument prototype would still apply.  */
36978 char _snprintf ();
36979 /* The GNU C library defines this for functions which it implements
36980     to always fail with ENOSYS.  Some functions are actually named
36981     something starting with __ and the normal name is an alias.  */
36982 #if defined (__stub__snprintf) || defined (__stub____snprintf)
36983 choke me
36984 #else
36985 char (*f) () = _snprintf;
36986 #endif
36987 #ifdef __cplusplus
36988 }
36989 #endif
36990
36991 int
36992 main ()
36993 {
36994 return f != _snprintf;
36995   ;
36996   return 0;
36997 }
36998 _ACEOF
36999 rm -f conftest.$ac_objext conftest$ac_exeext
37000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37001   (eval $ac_link) 2>conftest.er1
37002   ac_status=$?
37003   grep -v '^ *+' conftest.er1 >conftest.err
37004   rm -f conftest.er1
37005   cat conftest.err >&5
37006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37007   (exit $ac_status); } &&
37008          { ac_try='test -z "$ac_c_werror_flag"
37009                          || test ! -s conftest.err'
37010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37011   (eval $ac_try) 2>&5
37012   ac_status=$?
37013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37014   (exit $ac_status); }; } &&
37015          { ac_try='test -s conftest$ac_exeext'
37016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37017   (eval $ac_try) 2>&5
37018   ac_status=$?
37019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37020   (exit $ac_status); }; }; then
37021   ac_cv_func__snprintf=yes
37022 else
37023   echo "$as_me: failed program was:" >&5
37024 sed 's/^/| /' conftest.$ac_ext >&5
37025
37026 ac_cv_func__snprintf=no
37027 fi
37028 rm -f conftest.err conftest.$ac_objext \
37029       conftest$ac_exeext conftest.$ac_ext
37030 fi
37031 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
37032 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
37033 if test $ac_cv_func__snprintf = yes; then
37034   ac_cv_func_snprintf=yes
37035
37036 cat >>confdefs.h <<\_ACEOF
37037 #define snprintf _snprintf
37038 _ACEOF
37039
37040
37041 fi
37042
37043
37044
37045
37046 for ac_func in vsnprintf _vsnprintf
37047 do
37048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37049 echo "$as_me:$LINENO: checking for $ac_func" >&5
37050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37051 if eval "test \"\${$as_ac_var+set}\" = set"; then
37052   echo $ECHO_N "(cached) $ECHO_C" >&6
37053 else
37054   cat >conftest.$ac_ext <<_ACEOF
37055 /* confdefs.h.  */
37056 _ACEOF
37057 cat confdefs.h >>conftest.$ac_ext
37058 cat >>conftest.$ac_ext <<_ACEOF
37059 /* end confdefs.h.  */
37060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37062 #define $ac_func innocuous_$ac_func
37063
37064 /* System header to define __stub macros and hopefully few prototypes,
37065     which can conflict with char $ac_func (); below.
37066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37067     <limits.h> exists even on freestanding compilers.  */
37068
37069 #ifdef __STDC__
37070 # include <limits.h>
37071 #else
37072 # include <assert.h>
37073 #endif
37074
37075 #undef $ac_func
37076
37077 /* Override any gcc2 internal prototype to avoid an error.  */
37078 #ifdef __cplusplus
37079 extern "C"
37080 {
37081 #endif
37082 /* We use char because int might match the return type of a gcc2
37083    builtin and then its argument prototype would still apply.  */
37084 char $ac_func ();
37085 /* The GNU C library defines this for functions which it implements
37086     to always fail with ENOSYS.  Some functions are actually named
37087     something starting with __ and the normal name is an alias.  */
37088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37089 choke me
37090 #else
37091 char (*f) () = $ac_func;
37092 #endif
37093 #ifdef __cplusplus
37094 }
37095 #endif
37096
37097 int
37098 main ()
37099 {
37100 return f != $ac_func;
37101   ;
37102   return 0;
37103 }
37104 _ACEOF
37105 rm -f conftest.$ac_objext conftest$ac_exeext
37106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37107   (eval $ac_link) 2>conftest.er1
37108   ac_status=$?
37109   grep -v '^ *+' conftest.er1 >conftest.err
37110   rm -f conftest.er1
37111   cat conftest.err >&5
37112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37113   (exit $ac_status); } &&
37114          { ac_try='test -z "$ac_c_werror_flag"
37115                          || test ! -s conftest.err'
37116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37117   (eval $ac_try) 2>&5
37118   ac_status=$?
37119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37120   (exit $ac_status); }; } &&
37121          { ac_try='test -s conftest$ac_exeext'
37122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37123   (eval $ac_try) 2>&5
37124   ac_status=$?
37125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37126   (exit $ac_status); }; }; then
37127   eval "$as_ac_var=yes"
37128 else
37129   echo "$as_me: failed program was:" >&5
37130 sed 's/^/| /' conftest.$ac_ext >&5
37131
37132 eval "$as_ac_var=no"
37133 fi
37134 rm -f conftest.err conftest.$ac_objext \
37135       conftest$ac_exeext conftest.$ac_ext
37136 fi
37137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37139 if test `eval echo '${'$as_ac_var'}'` = yes; then
37140   cat >>confdefs.h <<_ACEOF
37141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37142 _ACEOF
37143
37144 fi
37145 done
37146
37147
37148 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
37149         ac_cv_func_vsnprintf=yes
37150
37151 cat >>confdefs.h <<\_ACEOF
37152 #define vsnprintf _vsnprintf
37153 _ACEOF
37154
37155 fi
37156
37157
37158 for ac_func in vprintf
37159 do
37160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37161 echo "$as_me:$LINENO: checking for $ac_func" >&5
37162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37163 if eval "test \"\${$as_ac_var+set}\" = set"; then
37164   echo $ECHO_N "(cached) $ECHO_C" >&6
37165 else
37166   cat >conftest.$ac_ext <<_ACEOF
37167 /* confdefs.h.  */
37168 _ACEOF
37169 cat confdefs.h >>conftest.$ac_ext
37170 cat >>conftest.$ac_ext <<_ACEOF
37171 /* end confdefs.h.  */
37172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37174 #define $ac_func innocuous_$ac_func
37175
37176 /* System header to define __stub macros and hopefully few prototypes,
37177     which can conflict with char $ac_func (); below.
37178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37179     <limits.h> exists even on freestanding compilers.  */
37180
37181 #ifdef __STDC__
37182 # include <limits.h>
37183 #else
37184 # include <assert.h>
37185 #endif
37186
37187 #undef $ac_func
37188
37189 /* Override any gcc2 internal prototype to avoid an error.  */
37190 #ifdef __cplusplus
37191 extern "C"
37192 {
37193 #endif
37194 /* We use char because int might match the return type of a gcc2
37195    builtin and then its argument prototype would still apply.  */
37196 char $ac_func ();
37197 /* The GNU C library defines this for functions which it implements
37198     to always fail with ENOSYS.  Some functions are actually named
37199     something starting with __ and the normal name is an alias.  */
37200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37201 choke me
37202 #else
37203 char (*f) () = $ac_func;
37204 #endif
37205 #ifdef __cplusplus
37206 }
37207 #endif
37208
37209 int
37210 main ()
37211 {
37212 return f != $ac_func;
37213   ;
37214   return 0;
37215 }
37216 _ACEOF
37217 rm -f conftest.$ac_objext conftest$ac_exeext
37218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37219   (eval $ac_link) 2>conftest.er1
37220   ac_status=$?
37221   grep -v '^ *+' conftest.er1 >conftest.err
37222   rm -f conftest.er1
37223   cat conftest.err >&5
37224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37225   (exit $ac_status); } &&
37226          { ac_try='test -z "$ac_c_werror_flag"
37227                          || test ! -s conftest.err'
37228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37229   (eval $ac_try) 2>&5
37230   ac_status=$?
37231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37232   (exit $ac_status); }; } &&
37233          { ac_try='test -s conftest$ac_exeext'
37234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37235   (eval $ac_try) 2>&5
37236   ac_status=$?
37237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37238   (exit $ac_status); }; }; then
37239   eval "$as_ac_var=yes"
37240 else
37241   echo "$as_me: failed program was:" >&5
37242 sed 's/^/| /' conftest.$ac_ext >&5
37243
37244 eval "$as_ac_var=no"
37245 fi
37246 rm -f conftest.err conftest.$ac_objext \
37247       conftest$ac_exeext conftest.$ac_ext
37248 fi
37249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37251 if test `eval echo '${'$as_ac_var'}'` = yes; then
37252   cat >>confdefs.h <<_ACEOF
37253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37254 _ACEOF
37255
37256 echo "$as_me:$LINENO: checking for _doprnt" >&5
37257 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
37258 if test "${ac_cv_func__doprnt+set}" = set; then
37259   echo $ECHO_N "(cached) $ECHO_C" >&6
37260 else
37261   cat >conftest.$ac_ext <<_ACEOF
37262 /* confdefs.h.  */
37263 _ACEOF
37264 cat confdefs.h >>conftest.$ac_ext
37265 cat >>conftest.$ac_ext <<_ACEOF
37266 /* end confdefs.h.  */
37267 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
37268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37269 #define _doprnt innocuous__doprnt
37270
37271 /* System header to define __stub macros and hopefully few prototypes,
37272     which can conflict with char _doprnt (); below.
37273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37274     <limits.h> exists even on freestanding compilers.  */
37275
37276 #ifdef __STDC__
37277 # include <limits.h>
37278 #else
37279 # include <assert.h>
37280 #endif
37281
37282 #undef _doprnt
37283
37284 /* Override any gcc2 internal prototype to avoid an error.  */
37285 #ifdef __cplusplus
37286 extern "C"
37287 {
37288 #endif
37289 /* We use char because int might match the return type of a gcc2
37290    builtin and then its argument prototype would still apply.  */
37291 char _doprnt ();
37292 /* The GNU C library defines this for functions which it implements
37293     to always fail with ENOSYS.  Some functions are actually named
37294     something starting with __ and the normal name is an alias.  */
37295 #if defined (__stub__doprnt) || defined (__stub____doprnt)
37296 choke me
37297 #else
37298 char (*f) () = _doprnt;
37299 #endif
37300 #ifdef __cplusplus
37301 }
37302 #endif
37303
37304 int
37305 main ()
37306 {
37307 return f != _doprnt;
37308   ;
37309   return 0;
37310 }
37311 _ACEOF
37312 rm -f conftest.$ac_objext conftest$ac_exeext
37313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37314   (eval $ac_link) 2>conftest.er1
37315   ac_status=$?
37316   grep -v '^ *+' conftest.er1 >conftest.err
37317   rm -f conftest.er1
37318   cat conftest.err >&5
37319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320   (exit $ac_status); } &&
37321          { ac_try='test -z "$ac_c_werror_flag"
37322                          || test ! -s conftest.err'
37323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37324   (eval $ac_try) 2>&5
37325   ac_status=$?
37326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37327   (exit $ac_status); }; } &&
37328          { ac_try='test -s conftest$ac_exeext'
37329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37330   (eval $ac_try) 2>&5
37331   ac_status=$?
37332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37333   (exit $ac_status); }; }; then
37334   ac_cv_func__doprnt=yes
37335 else
37336   echo "$as_me: failed program was:" >&5
37337 sed 's/^/| /' conftest.$ac_ext >&5
37338
37339 ac_cv_func__doprnt=no
37340 fi
37341 rm -f conftest.err conftest.$ac_objext \
37342       conftest$ac_exeext conftest.$ac_ext
37343 fi
37344 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
37345 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
37346 if test $ac_cv_func__doprnt = yes; then
37347
37348 cat >>confdefs.h <<\_ACEOF
37349 #define HAVE_DOPRNT 1
37350 _ACEOF
37351
37352 fi
37353
37354 fi
37355 done
37356
37357
37358
37359 if test $ac_cv_func_vprintf = yes ; then
37360
37361
37362 for ac_func in snprintf vsnprintf
37363 do
37364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37365 echo "$as_me:$LINENO: checking for $ac_func" >&5
37366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37367 if eval "test \"\${$as_ac_var+set}\" = set"; then
37368   echo $ECHO_N "(cached) $ECHO_C" >&6
37369 else
37370   cat >conftest.$ac_ext <<_ACEOF
37371 /* confdefs.h.  */
37372 _ACEOF
37373 cat confdefs.h >>conftest.$ac_ext
37374 cat >>conftest.$ac_ext <<_ACEOF
37375 /* end confdefs.h.  */
37376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37378 #define $ac_func innocuous_$ac_func
37379
37380 /* System header to define __stub macros and hopefully few prototypes,
37381     which can conflict with char $ac_func (); below.
37382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37383     <limits.h> exists even on freestanding compilers.  */
37384
37385 #ifdef __STDC__
37386 # include <limits.h>
37387 #else
37388 # include <assert.h>
37389 #endif
37390
37391 #undef $ac_func
37392
37393 /* Override any gcc2 internal prototype to avoid an error.  */
37394 #ifdef __cplusplus
37395 extern "C"
37396 {
37397 #endif
37398 /* We use char because int might match the return type of a gcc2
37399    builtin and then its argument prototype would still apply.  */
37400 char $ac_func ();
37401 /* The GNU C library defines this for functions which it implements
37402     to always fail with ENOSYS.  Some functions are actually named
37403     something starting with __ and the normal name is an alias.  */
37404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37405 choke me
37406 #else
37407 char (*f) () = $ac_func;
37408 #endif
37409 #ifdef __cplusplus
37410 }
37411 #endif
37412
37413 int
37414 main ()
37415 {
37416 return f != $ac_func;
37417   ;
37418   return 0;
37419 }
37420 _ACEOF
37421 rm -f conftest.$ac_objext conftest$ac_exeext
37422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37423   (eval $ac_link) 2>conftest.er1
37424   ac_status=$?
37425   grep -v '^ *+' conftest.er1 >conftest.err
37426   rm -f conftest.er1
37427   cat conftest.err >&5
37428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429   (exit $ac_status); } &&
37430          { ac_try='test -z "$ac_c_werror_flag"
37431                          || test ! -s conftest.err'
37432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37433   (eval $ac_try) 2>&5
37434   ac_status=$?
37435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37436   (exit $ac_status); }; } &&
37437          { ac_try='test -s conftest$ac_exeext'
37438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37439   (eval $ac_try) 2>&5
37440   ac_status=$?
37441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442   (exit $ac_status); }; }; then
37443   eval "$as_ac_var=yes"
37444 else
37445   echo "$as_me: failed program was:" >&5
37446 sed 's/^/| /' conftest.$ac_ext >&5
37447
37448 eval "$as_ac_var=no"
37449 fi
37450 rm -f conftest.err conftest.$ac_objext \
37451       conftest$ac_exeext conftest.$ac_ext
37452 fi
37453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37455 if test `eval echo '${'$as_ac_var'}'` = yes; then
37456   cat >>confdefs.h <<_ACEOF
37457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37458 _ACEOF
37459
37460 fi
37461 done
37462
37463 fi
37464
37465
37466
37467
37468
37469
37470
37471
37472
37473
37474
37475
37476
37477
37478
37479
37480
37481
37482
37483
37484
37485
37486
37487
37488
37489
37490
37491
37492
37493
37494
37495
37496
37497
37498
37499
37500
37501
37502
37503
37504
37505
37506
37507
37508
37509
37510
37511
37512
37513
37514
37515
37516
37517
37518
37519
37520
37521 for ac_func in \
37522         bcopy                   \
37523         closesocket             \
37524         chroot                  \
37525         endgrent                \
37526         endpwent                \
37527         fcntl                   \
37528         flock                   \
37529         fstat                   \
37530         getdtablesize           \
37531         geteuid                 \
37532         getgrgid                \
37533         gethostname             \
37534         getpass                 \
37535         getpassphrase           \
37536         getpwuid                \
37537         getpwnam                \
37538         getspnam                \
37539         gettimeofday            \
37540         initgroups              \
37541         inet_ntoa_b             \
37542         ioctl                   \
37543         lockf                   \
37544         memcpy                  \
37545         memmove                 \
37546         memrchr                 \
37547         mkstemp                 \
37548         mktemp                  \
37549         pipe                    \
37550         read                    \
37551         recv                    \
37552         recvfrom                \
37553         setpwfile               \
37554         setgid                  \
37555         setegid                 \
37556         setsid                  \
37557         setuid                  \
37558         seteuid                 \
37559         signal                  \
37560         strdup                  \
37561         strpbrk                 \
37562         strrchr                 \
37563         strsep                  \
37564         strstr                  \
37565         strtol                  \
37566         strtoul                 \
37567         strtoq                  \
37568         strtouq                 \
37569         strtoll                 \
37570         strspn                  \
37571         sysconf                 \
37572         waitpid                 \
37573         wait4                   \
37574         write                   \
37575         send                    \
37576         sendmsg                 \
37577         sendto                  \
37578
37579 do
37580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37581 echo "$as_me:$LINENO: checking for $ac_func" >&5
37582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37583 if eval "test \"\${$as_ac_var+set}\" = set"; then
37584   echo $ECHO_N "(cached) $ECHO_C" >&6
37585 else
37586   cat >conftest.$ac_ext <<_ACEOF
37587 /* confdefs.h.  */
37588 _ACEOF
37589 cat confdefs.h >>conftest.$ac_ext
37590 cat >>conftest.$ac_ext <<_ACEOF
37591 /* end confdefs.h.  */
37592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37594 #define $ac_func innocuous_$ac_func
37595
37596 /* System header to define __stub macros and hopefully few prototypes,
37597     which can conflict with char $ac_func (); below.
37598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37599     <limits.h> exists even on freestanding compilers.  */
37600
37601 #ifdef __STDC__
37602 # include <limits.h>
37603 #else
37604 # include <assert.h>
37605 #endif
37606
37607 #undef $ac_func
37608
37609 /* Override any gcc2 internal prototype to avoid an error.  */
37610 #ifdef __cplusplus
37611 extern "C"
37612 {
37613 #endif
37614 /* We use char because int might match the return type of a gcc2
37615    builtin and then its argument prototype would still apply.  */
37616 char $ac_func ();
37617 /* The GNU C library defines this for functions which it implements
37618     to always fail with ENOSYS.  Some functions are actually named
37619     something starting with __ and the normal name is an alias.  */
37620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37621 choke me
37622 #else
37623 char (*f) () = $ac_func;
37624 #endif
37625 #ifdef __cplusplus
37626 }
37627 #endif
37628
37629 int
37630 main ()
37631 {
37632 return f != $ac_func;
37633   ;
37634   return 0;
37635 }
37636 _ACEOF
37637 rm -f conftest.$ac_objext conftest$ac_exeext
37638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37639   (eval $ac_link) 2>conftest.er1
37640   ac_status=$?
37641   grep -v '^ *+' conftest.er1 >conftest.err
37642   rm -f conftest.er1
37643   cat conftest.err >&5
37644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37645   (exit $ac_status); } &&
37646          { ac_try='test -z "$ac_c_werror_flag"
37647                          || test ! -s conftest.err'
37648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37649   (eval $ac_try) 2>&5
37650   ac_status=$?
37651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37652   (exit $ac_status); }; } &&
37653          { ac_try='test -s conftest$ac_exeext'
37654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37655   (eval $ac_try) 2>&5
37656   ac_status=$?
37657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37658   (exit $ac_status); }; }; then
37659   eval "$as_ac_var=yes"
37660 else
37661   echo "$as_me: failed program was:" >&5
37662 sed 's/^/| /' conftest.$ac_ext >&5
37663
37664 eval "$as_ac_var=no"
37665 fi
37666 rm -f conftest.err conftest.$ac_objext \
37667       conftest$ac_exeext conftest.$ac_ext
37668 fi
37669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37671 if test `eval echo '${'$as_ac_var'}'` = yes; then
37672   cat >>confdefs.h <<_ACEOF
37673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37674 _ACEOF
37675
37676 fi
37677 done
37678
37679
37680
37681
37682 for ac_func in getopt getpeereid
37683 do
37684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37685 echo "$as_me:$LINENO: checking for $ac_func" >&5
37686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37687 if eval "test \"\${$as_ac_var+set}\" = set"; then
37688   echo $ECHO_N "(cached) $ECHO_C" >&6
37689 else
37690   cat >conftest.$ac_ext <<_ACEOF
37691 /* confdefs.h.  */
37692 _ACEOF
37693 cat confdefs.h >>conftest.$ac_ext
37694 cat >>conftest.$ac_ext <<_ACEOF
37695 /* end confdefs.h.  */
37696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37698 #define $ac_func innocuous_$ac_func
37699
37700 /* System header to define __stub macros and hopefully few prototypes,
37701     which can conflict with char $ac_func (); below.
37702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37703     <limits.h> exists even on freestanding compilers.  */
37704
37705 #ifdef __STDC__
37706 # include <limits.h>
37707 #else
37708 # include <assert.h>
37709 #endif
37710
37711 #undef $ac_func
37712
37713 /* Override any gcc2 internal prototype to avoid an error.  */
37714 #ifdef __cplusplus
37715 extern "C"
37716 {
37717 #endif
37718 /* We use char because int might match the return type of a gcc2
37719    builtin and then its argument prototype would still apply.  */
37720 char $ac_func ();
37721 /* The GNU C library defines this for functions which it implements
37722     to always fail with ENOSYS.  Some functions are actually named
37723     something starting with __ and the normal name is an alias.  */
37724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37725 choke me
37726 #else
37727 char (*f) () = $ac_func;
37728 #endif
37729 #ifdef __cplusplus
37730 }
37731 #endif
37732
37733 int
37734 main ()
37735 {
37736 return f != $ac_func;
37737   ;
37738   return 0;
37739 }
37740 _ACEOF
37741 rm -f conftest.$ac_objext conftest$ac_exeext
37742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37743   (eval $ac_link) 2>conftest.er1
37744   ac_status=$?
37745   grep -v '^ *+' conftest.er1 >conftest.err
37746   rm -f conftest.er1
37747   cat conftest.err >&5
37748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749   (exit $ac_status); } &&
37750          { ac_try='test -z "$ac_c_werror_flag"
37751                          || test ! -s conftest.err'
37752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37753   (eval $ac_try) 2>&5
37754   ac_status=$?
37755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37756   (exit $ac_status); }; } &&
37757          { ac_try='test -s conftest$ac_exeext'
37758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37759   (eval $ac_try) 2>&5
37760   ac_status=$?
37761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762   (exit $ac_status); }; }; then
37763   eval "$as_ac_var=yes"
37764 else
37765   echo "$as_me: failed program was:" >&5
37766 sed 's/^/| /' conftest.$ac_ext >&5
37767
37768 eval "$as_ac_var=no"
37769 fi
37770 rm -f conftest.err conftest.$ac_objext \
37771       conftest$ac_exeext conftest.$ac_ext
37772 fi
37773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37775 if test `eval echo '${'$as_ac_var'}'` = yes; then
37776   cat >>confdefs.h <<_ACEOF
37777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37778 _ACEOF
37779
37780 else
37781   case $LIBOBJS in
37782     "$ac_func.$ac_objext"   | \
37783   *" $ac_func.$ac_objext"   | \
37784     "$ac_func.$ac_objext "* | \
37785   *" $ac_func.$ac_objext "* ) ;;
37786   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
37787 esac
37788
37789 fi
37790 done
37791
37792
37793
37794 if test "$ac_cv_func_getopt" != yes; then
37795         LIBSRCS="$LIBSRCS getopt.c"
37796 fi
37797
37798 if test "$ac_cv_func_getpeereid" != yes; then
37799
37800 for ac_func in getpeerucred
37801 do
37802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37803 echo "$as_me:$LINENO: checking for $ac_func" >&5
37804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37805 if eval "test \"\${$as_ac_var+set}\" = set"; then
37806   echo $ECHO_N "(cached) $ECHO_C" >&6
37807 else
37808   cat >conftest.$ac_ext <<_ACEOF
37809 /* confdefs.h.  */
37810 _ACEOF
37811 cat confdefs.h >>conftest.$ac_ext
37812 cat >>conftest.$ac_ext <<_ACEOF
37813 /* end confdefs.h.  */
37814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37816 #define $ac_func innocuous_$ac_func
37817
37818 /* System header to define __stub macros and hopefully few prototypes,
37819     which can conflict with char $ac_func (); below.
37820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37821     <limits.h> exists even on freestanding compilers.  */
37822
37823 #ifdef __STDC__
37824 # include <limits.h>
37825 #else
37826 # include <assert.h>
37827 #endif
37828
37829 #undef $ac_func
37830
37831 /* Override any gcc2 internal prototype to avoid an error.  */
37832 #ifdef __cplusplus
37833 extern "C"
37834 {
37835 #endif
37836 /* We use char because int might match the return type of a gcc2
37837    builtin and then its argument prototype would still apply.  */
37838 char $ac_func ();
37839 /* The GNU C library defines this for functions which it implements
37840     to always fail with ENOSYS.  Some functions are actually named
37841     something starting with __ and the normal name is an alias.  */
37842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37843 choke me
37844 #else
37845 char (*f) () = $ac_func;
37846 #endif
37847 #ifdef __cplusplus
37848 }
37849 #endif
37850
37851 int
37852 main ()
37853 {
37854 return f != $ac_func;
37855   ;
37856   return 0;
37857 }
37858 _ACEOF
37859 rm -f conftest.$ac_objext conftest$ac_exeext
37860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37861   (eval $ac_link) 2>conftest.er1
37862   ac_status=$?
37863   grep -v '^ *+' conftest.er1 >conftest.err
37864   rm -f conftest.er1
37865   cat conftest.err >&5
37866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37867   (exit $ac_status); } &&
37868          { ac_try='test -z "$ac_c_werror_flag"
37869                          || test ! -s conftest.err'
37870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37871   (eval $ac_try) 2>&5
37872   ac_status=$?
37873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37874   (exit $ac_status); }; } &&
37875          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
37881   eval "$as_ac_var=yes"
37882 else
37883   echo "$as_me: failed program was:" >&5
37884 sed 's/^/| /' conftest.$ac_ext >&5
37885
37886 eval "$as_ac_var=no"
37887 fi
37888 rm -f conftest.err conftest.$ac_objext \
37889       conftest$ac_exeext conftest.$ac_ext
37890 fi
37891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37893 if test `eval echo '${'$as_ac_var'}'` = yes; then
37894   cat >>confdefs.h <<_ACEOF
37895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37896 _ACEOF
37897
37898 fi
37899 done
37900
37901         if test "$ac_cv_func_getpeerucred" != yes ; then
37902                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37903 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
37904 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37905   echo $ECHO_N "(cached) $ECHO_C" >&6
37906 else
37907   cat >conftest.$ac_ext <<_ACEOF
37908 /* confdefs.h.  */
37909 _ACEOF
37910 cat confdefs.h >>conftest.$ac_ext
37911 cat >>conftest.$ac_ext <<_ACEOF
37912 /* end confdefs.h.  */
37913 $ac_includes_default
37914 #ifdef HAVE_SYS_SOCKET_H
37915 #include <sys/socket.h>
37916 #endif
37917
37918 int
37919 main ()
37920 {
37921 static struct msghdr ac_aggr;
37922 if (ac_aggr.msg_accrightslen)
37923 return 0;
37924   ;
37925   return 0;
37926 }
37927 _ACEOF
37928 rm -f conftest.$ac_objext
37929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37930   (eval $ac_compile) 2>conftest.er1
37931   ac_status=$?
37932   grep -v '^ *+' conftest.er1 >conftest.err
37933   rm -f conftest.er1
37934   cat conftest.err >&5
37935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936   (exit $ac_status); } &&
37937          { ac_try='test -z "$ac_c_werror_flag"
37938                          || test ! -s conftest.err'
37939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37940   (eval $ac_try) 2>&5
37941   ac_status=$?
37942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943   (exit $ac_status); }; } &&
37944          { ac_try='test -s conftest.$ac_objext'
37945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37946   (eval $ac_try) 2>&5
37947   ac_status=$?
37948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37949   (exit $ac_status); }; }; then
37950   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37951 else
37952   echo "$as_me: failed program was:" >&5
37953 sed 's/^/| /' conftest.$ac_ext >&5
37954
37955 cat >conftest.$ac_ext <<_ACEOF
37956 /* confdefs.h.  */
37957 _ACEOF
37958 cat confdefs.h >>conftest.$ac_ext
37959 cat >>conftest.$ac_ext <<_ACEOF
37960 /* end confdefs.h.  */
37961 $ac_includes_default
37962 #ifdef HAVE_SYS_SOCKET_H
37963 #include <sys/socket.h>
37964 #endif
37965
37966 int
37967 main ()
37968 {
37969 static struct msghdr ac_aggr;
37970 if (sizeof ac_aggr.msg_accrightslen)
37971 return 0;
37972   ;
37973   return 0;
37974 }
37975 _ACEOF
37976 rm -f conftest.$ac_objext
37977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37978   (eval $ac_compile) 2>conftest.er1
37979   ac_status=$?
37980   grep -v '^ *+' conftest.er1 >conftest.err
37981   rm -f conftest.er1
37982   cat conftest.err >&5
37983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37984   (exit $ac_status); } &&
37985          { ac_try='test -z "$ac_c_werror_flag"
37986                          || test ! -s conftest.err'
37987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37988   (eval $ac_try) 2>&5
37989   ac_status=$?
37990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991   (exit $ac_status); }; } &&
37992          { ac_try='test -s conftest.$ac_objext'
37993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37994   (eval $ac_try) 2>&5
37995   ac_status=$?
37996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997   (exit $ac_status); }; }; then
37998   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37999 else
38000   echo "$as_me: failed program was:" >&5
38001 sed 's/^/| /' conftest.$ac_ext >&5
38002
38003 ac_cv_member_struct_msghdr_msg_accrightslen=no
38004 fi
38005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38006 fi
38007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38008 fi
38009 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
38010 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
38011 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
38012
38013 cat >>confdefs.h <<_ACEOF
38014 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
38015 _ACEOF
38016
38017
38018 fi
38019
38020                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
38021                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
38022 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
38023 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
38024   echo $ECHO_N "(cached) $ECHO_C" >&6
38025 else
38026   cat >conftest.$ac_ext <<_ACEOF
38027 /* confdefs.h.  */
38028 _ACEOF
38029 cat confdefs.h >>conftest.$ac_ext
38030 cat >>conftest.$ac_ext <<_ACEOF
38031 /* end confdefs.h.  */
38032 $ac_includes_default
38033 #ifdef HAVE_SYS_SOCKET_H
38034 #include <sys/socket.h>
38035 #endif
38036
38037 int
38038 main ()
38039 {
38040 static struct msghdr ac_aggr;
38041 if (ac_aggr.msg_control)
38042 return 0;
38043   ;
38044   return 0;
38045 }
38046 _ACEOF
38047 rm -f conftest.$ac_objext
38048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38049   (eval $ac_compile) 2>conftest.er1
38050   ac_status=$?
38051   grep -v '^ *+' conftest.er1 >conftest.err
38052   rm -f conftest.er1
38053   cat conftest.err >&5
38054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38055   (exit $ac_status); } &&
38056          { ac_try='test -z "$ac_c_werror_flag"
38057                          || test ! -s conftest.err'
38058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38059   (eval $ac_try) 2>&5
38060   ac_status=$?
38061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38062   (exit $ac_status); }; } &&
38063          { ac_try='test -s conftest.$ac_objext'
38064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38065   (eval $ac_try) 2>&5
38066   ac_status=$?
38067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38068   (exit $ac_status); }; }; then
38069   ac_cv_member_struct_msghdr_msg_control=yes
38070 else
38071   echo "$as_me: failed program was:" >&5
38072 sed 's/^/| /' conftest.$ac_ext >&5
38073
38074 cat >conftest.$ac_ext <<_ACEOF
38075 /* confdefs.h.  */
38076 _ACEOF
38077 cat confdefs.h >>conftest.$ac_ext
38078 cat >>conftest.$ac_ext <<_ACEOF
38079 /* end confdefs.h.  */
38080 $ac_includes_default
38081 #ifdef HAVE_SYS_SOCKET_H
38082 #include <sys/socket.h>
38083 #endif
38084
38085 int
38086 main ()
38087 {
38088 static struct msghdr ac_aggr;
38089 if (sizeof ac_aggr.msg_control)
38090 return 0;
38091   ;
38092   return 0;
38093 }
38094 _ACEOF
38095 rm -f conftest.$ac_objext
38096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38097   (eval $ac_compile) 2>conftest.er1
38098   ac_status=$?
38099   grep -v '^ *+' conftest.er1 >conftest.err
38100   rm -f conftest.er1
38101   cat conftest.err >&5
38102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38103   (exit $ac_status); } &&
38104          { ac_try='test -z "$ac_c_werror_flag"
38105                          || test ! -s conftest.err'
38106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38107   (eval $ac_try) 2>&5
38108   ac_status=$?
38109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38110   (exit $ac_status); }; } &&
38111          { ac_try='test -s conftest.$ac_objext'
38112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38113   (eval $ac_try) 2>&5
38114   ac_status=$?
38115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38116   (exit $ac_status); }; }; then
38117   ac_cv_member_struct_msghdr_msg_control=yes
38118 else
38119   echo "$as_me: failed program was:" >&5
38120 sed 's/^/| /' conftest.$ac_ext >&5
38121
38122 ac_cv_member_struct_msghdr_msg_control=no
38123 fi
38124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38125 fi
38126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38127 fi
38128 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
38129 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
38130 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
38131
38132 cat >>confdefs.h <<_ACEOF
38133 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
38134 _ACEOF
38135
38136
38137 fi
38138
38139                 fi
38140                 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
38141 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
38142 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
38143   echo $ECHO_N "(cached) $ECHO_C" >&6
38144 else
38145   cat >conftest.$ac_ext <<_ACEOF
38146 /* confdefs.h.  */
38147 _ACEOF
38148 cat confdefs.h >>conftest.$ac_ext
38149 cat >>conftest.$ac_ext <<_ACEOF
38150 /* end confdefs.h.  */
38151 $ac_includes_default
38152 int
38153 main ()
38154 {
38155 static struct stat ac_aggr;
38156 if (ac_aggr.st_fstype)
38157 return 0;
38158   ;
38159   return 0;
38160 }
38161 _ACEOF
38162 rm -f conftest.$ac_objext
38163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38164   (eval $ac_compile) 2>conftest.er1
38165   ac_status=$?
38166   grep -v '^ *+' conftest.er1 >conftest.err
38167   rm -f conftest.er1
38168   cat conftest.err >&5
38169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38170   (exit $ac_status); } &&
38171          { ac_try='test -z "$ac_c_werror_flag"
38172                          || test ! -s conftest.err'
38173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38174   (eval $ac_try) 2>&5
38175   ac_status=$?
38176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38177   (exit $ac_status); }; } &&
38178          { ac_try='test -s conftest.$ac_objext'
38179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38180   (eval $ac_try) 2>&5
38181   ac_status=$?
38182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38183   (exit $ac_status); }; }; then
38184   ac_cv_member_struct_stat_st_fstype=yes
38185 else
38186   echo "$as_me: failed program was:" >&5
38187 sed 's/^/| /' conftest.$ac_ext >&5
38188
38189 cat >conftest.$ac_ext <<_ACEOF
38190 /* confdefs.h.  */
38191 _ACEOF
38192 cat confdefs.h >>conftest.$ac_ext
38193 cat >>conftest.$ac_ext <<_ACEOF
38194 /* end confdefs.h.  */
38195 $ac_includes_default
38196 int
38197 main ()
38198 {
38199 static struct stat ac_aggr;
38200 if (sizeof ac_aggr.st_fstype)
38201 return 0;
38202   ;
38203   return 0;
38204 }
38205 _ACEOF
38206 rm -f conftest.$ac_objext
38207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38208   (eval $ac_compile) 2>conftest.er1
38209   ac_status=$?
38210   grep -v '^ *+' conftest.er1 >conftest.err
38211   rm -f conftest.er1
38212   cat conftest.err >&5
38213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38214   (exit $ac_status); } &&
38215          { ac_try='test -z "$ac_c_werror_flag"
38216                          || test ! -s conftest.err'
38217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38218   (eval $ac_try) 2>&5
38219   ac_status=$?
38220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38221   (exit $ac_status); }; } &&
38222          { ac_try='test -s conftest.$ac_objext'
38223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38224   (eval $ac_try) 2>&5
38225   ac_status=$?
38226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38227   (exit $ac_status); }; }; then
38228   ac_cv_member_struct_stat_st_fstype=yes
38229 else
38230   echo "$as_me: failed program was:" >&5
38231 sed 's/^/| /' conftest.$ac_ext >&5
38232
38233 ac_cv_member_struct_stat_st_fstype=no
38234 fi
38235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38236 fi
38237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38238 fi
38239 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
38240 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
38241 if test $ac_cv_member_struct_stat_st_fstype = yes; then
38242
38243 cat >>confdefs.h <<_ACEOF
38244 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
38245 _ACEOF
38246
38247
38248 fi
38249 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
38250 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
38251 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
38252   echo $ECHO_N "(cached) $ECHO_C" >&6
38253 else
38254   cat >conftest.$ac_ext <<_ACEOF
38255 /* confdefs.h.  */
38256 _ACEOF
38257 cat confdefs.h >>conftest.$ac_ext
38258 cat >>conftest.$ac_ext <<_ACEOF
38259 /* end confdefs.h.  */
38260 $ac_includes_default
38261 int
38262 main ()
38263 {
38264 static struct stat ac_aggr;
38265 if (ac_aggr.st_vfstype)
38266 return 0;
38267   ;
38268   return 0;
38269 }
38270 _ACEOF
38271 rm -f conftest.$ac_objext
38272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38273   (eval $ac_compile) 2>conftest.er1
38274   ac_status=$?
38275   grep -v '^ *+' conftest.er1 >conftest.err
38276   rm -f conftest.er1
38277   cat conftest.err >&5
38278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38279   (exit $ac_status); } &&
38280          { ac_try='test -z "$ac_c_werror_flag"
38281                          || test ! -s conftest.err'
38282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38283   (eval $ac_try) 2>&5
38284   ac_status=$?
38285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38286   (exit $ac_status); }; } &&
38287          { ac_try='test -s conftest.$ac_objext'
38288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38289   (eval $ac_try) 2>&5
38290   ac_status=$?
38291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38292   (exit $ac_status); }; }; then
38293   ac_cv_member_struct_stat_st_vfstype=yes
38294 else
38295   echo "$as_me: failed program was:" >&5
38296 sed 's/^/| /' conftest.$ac_ext >&5
38297
38298 cat >conftest.$ac_ext <<_ACEOF
38299 /* confdefs.h.  */
38300 _ACEOF
38301 cat confdefs.h >>conftest.$ac_ext
38302 cat >>conftest.$ac_ext <<_ACEOF
38303 /* end confdefs.h.  */
38304 $ac_includes_default
38305 int
38306 main ()
38307 {
38308 static struct stat ac_aggr;
38309 if (sizeof ac_aggr.st_vfstype)
38310 return 0;
38311   ;
38312   return 0;
38313 }
38314 _ACEOF
38315 rm -f conftest.$ac_objext
38316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38317   (eval $ac_compile) 2>conftest.er1
38318   ac_status=$?
38319   grep -v '^ *+' conftest.er1 >conftest.err
38320   rm -f conftest.er1
38321   cat conftest.err >&5
38322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38323   (exit $ac_status); } &&
38324          { ac_try='test -z "$ac_c_werror_flag"
38325                          || test ! -s conftest.err'
38326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38327   (eval $ac_try) 2>&5
38328   ac_status=$?
38329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38330   (exit $ac_status); }; } &&
38331          { ac_try='test -s conftest.$ac_objext'
38332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38333   (eval $ac_try) 2>&5
38334   ac_status=$?
38335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38336   (exit $ac_status); }; }; then
38337   ac_cv_member_struct_stat_st_vfstype=yes
38338 else
38339   echo "$as_me: failed program was:" >&5
38340 sed 's/^/| /' conftest.$ac_ext >&5
38341
38342 ac_cv_member_struct_stat_st_vfstype=no
38343 fi
38344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38345 fi
38346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38347 fi
38348 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
38349 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
38350 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
38351
38352 cat >>confdefs.h <<_ACEOF
38353 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
38354 _ACEOF
38355
38356
38357 fi
38358
38359                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
38360                         cat >conftest.$ac_ext <<_ACEOF
38361 struct stat st; char *ptr=st.st_fstype;
38362 _ACEOF
38363 rm -f conftest.$ac_objext
38364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38365   (eval $ac_compile) 2>conftest.er1
38366   ac_status=$?
38367   grep -v '^ *+' conftest.er1 >conftest.err
38368   rm -f conftest.er1
38369   cat conftest.err >&5
38370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38371   (exit $ac_status); } &&
38372          { ac_try='test -z "$ac_c_werror_flag"
38373                          || test ! -s conftest.err'
38374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38375   (eval $ac_try) 2>&5
38376   ac_status=$?
38377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38378   (exit $ac_status); }; } &&
38379          { ac_try='test -s conftest.$ac_objext'
38380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38381   (eval $ac_try) 2>&5
38382   ac_status=$?
38383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38384   (exit $ac_status); }; }; then
38385
38386 cat >>confdefs.h <<\_ACEOF
38387 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
38388 _ACEOF
38389
38390 else
38391   echo "$as_me: failed program was:" >&5
38392 sed 's/^/| /' conftest.$ac_ext >&5
38393
38394
38395 cat >>confdefs.h <<\_ACEOF
38396 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
38397 _ACEOF
38398
38399 fi
38400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38401                 fi
38402         fi
38403         LIBSRCS="$LIBSRCS getpeereid.c"
38404 fi
38405
38406 if test "$ac_cv_func_snprintf" != yes ||
38407    test "$ac_cv_func_vsnprintf" != yes; then
38408         if test "$ac_cv_func_snprintf" != yes; then
38409
38410 cat >>confdefs.h <<\_ACEOF
38411 #define snprintf ber_pvt_snprintf
38412 _ACEOF
38413
38414         fi
38415         if test "$ac_cv_func_vsnprintf" != yes; then
38416
38417 cat >>confdefs.h <<\_ACEOF
38418 #define vsnprintf ber_pvt_vsnprintf
38419 _ACEOF
38420
38421         fi
38422 fi
38423
38424
38425 if test "$ol_enable_slapi" != no ; then
38426
38427 for ac_header in ltdl.h
38428 do
38429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38431   echo "$as_me:$LINENO: checking for $ac_header" >&5
38432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38434   echo $ECHO_N "(cached) $ECHO_C" >&6
38435 fi
38436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38438 else
38439   # Is the header compilable?
38440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38442 cat >conftest.$ac_ext <<_ACEOF
38443 /* confdefs.h.  */
38444 _ACEOF
38445 cat confdefs.h >>conftest.$ac_ext
38446 cat >>conftest.$ac_ext <<_ACEOF
38447 /* end confdefs.h.  */
38448 $ac_includes_default
38449 #include <$ac_header>
38450 _ACEOF
38451 rm -f conftest.$ac_objext
38452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38453   (eval $ac_compile) 2>conftest.er1
38454   ac_status=$?
38455   grep -v '^ *+' conftest.er1 >conftest.err
38456   rm -f conftest.er1
38457   cat conftest.err >&5
38458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459   (exit $ac_status); } &&
38460          { ac_try='test -z "$ac_c_werror_flag"
38461                          || test ! -s conftest.err'
38462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38463   (eval $ac_try) 2>&5
38464   ac_status=$?
38465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38466   (exit $ac_status); }; } &&
38467          { ac_try='test -s conftest.$ac_objext'
38468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38469   (eval $ac_try) 2>&5
38470   ac_status=$?
38471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38472   (exit $ac_status); }; }; then
38473   ac_header_compiler=yes
38474 else
38475   echo "$as_me: failed program was:" >&5
38476 sed 's/^/| /' conftest.$ac_ext >&5
38477
38478 ac_header_compiler=no
38479 fi
38480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38482 echo "${ECHO_T}$ac_header_compiler" >&6
38483
38484 # Is the header present?
38485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38487 cat >conftest.$ac_ext <<_ACEOF
38488 /* confdefs.h.  */
38489 _ACEOF
38490 cat confdefs.h >>conftest.$ac_ext
38491 cat >>conftest.$ac_ext <<_ACEOF
38492 /* end confdefs.h.  */
38493 #include <$ac_header>
38494 _ACEOF
38495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38496   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38497   ac_status=$?
38498   grep -v '^ *+' conftest.er1 >conftest.err
38499   rm -f conftest.er1
38500   cat conftest.err >&5
38501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38502   (exit $ac_status); } >/dev/null; then
38503   if test -s conftest.err; then
38504     ac_cpp_err=$ac_c_preproc_warn_flag
38505     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38506   else
38507     ac_cpp_err=
38508   fi
38509 else
38510   ac_cpp_err=yes
38511 fi
38512 if test -z "$ac_cpp_err"; then
38513   ac_header_preproc=yes
38514 else
38515   echo "$as_me: failed program was:" >&5
38516 sed 's/^/| /' conftest.$ac_ext >&5
38517
38518   ac_header_preproc=no
38519 fi
38520 rm -f conftest.err conftest.$ac_ext
38521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38522 echo "${ECHO_T}$ac_header_preproc" >&6
38523
38524 # So?  What about this header?
38525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38526   yes:no: )
38527     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38531     ac_header_preproc=yes
38532     ;;
38533   no:yes:* )
38534     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38536     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38537 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38538     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38540     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38541 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38544     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38546     (
38547       cat <<\_ASBOX
38548 ## --------------------------------------------- ##
38549 ## Report this to <http://www.openldap.org/its/> ##
38550 ## --------------------------------------------- ##
38551 _ASBOX
38552     ) |
38553       sed "s/^/$as_me: WARNING:     /" >&2
38554     ;;
38555 esac
38556 echo "$as_me:$LINENO: checking for $ac_header" >&5
38557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38559   echo $ECHO_N "(cached) $ECHO_C" >&6
38560 else
38561   eval "$as_ac_Header=\$ac_header_preproc"
38562 fi
38563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38565
38566 fi
38567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38568   cat >>confdefs.h <<_ACEOF
38569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38570 _ACEOF
38571
38572 fi
38573
38574 done
38575
38576
38577         if test $ac_cv_header_ltdl_h != yes ; then
38578                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38579 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38580    { (exit 1); exit 1; }; }
38581         fi
38582         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38583 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
38584 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38585   echo $ECHO_N "(cached) $ECHO_C" >&6
38586 else
38587   ac_check_lib_save_LIBS=$LIBS
38588 LIBS="-lltdl  $LIBS"
38589 cat >conftest.$ac_ext <<_ACEOF
38590 /* confdefs.h.  */
38591 _ACEOF
38592 cat confdefs.h >>conftest.$ac_ext
38593 cat >>conftest.$ac_ext <<_ACEOF
38594 /* end confdefs.h.  */
38595
38596 /* Override any gcc2 internal prototype to avoid an error.  */
38597 #ifdef __cplusplus
38598 extern "C"
38599 #endif
38600 /* We use char because int might match the return type of a gcc2
38601    builtin and then its argument prototype would still apply.  */
38602 char lt_dlinit ();
38603 int
38604 main ()
38605 {
38606 lt_dlinit ();
38607   ;
38608   return 0;
38609 }
38610 _ACEOF
38611 rm -f conftest.$ac_objext conftest$ac_exeext
38612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38613   (eval $ac_link) 2>conftest.er1
38614   ac_status=$?
38615   grep -v '^ *+' conftest.er1 >conftest.err
38616   rm -f conftest.er1
38617   cat conftest.err >&5
38618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38619   (exit $ac_status); } &&
38620          { ac_try='test -z "$ac_c_werror_flag"
38621                          || test ! -s conftest.err'
38622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38623   (eval $ac_try) 2>&5
38624   ac_status=$?
38625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38626   (exit $ac_status); }; } &&
38627          { ac_try='test -s conftest$ac_exeext'
38628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38629   (eval $ac_try) 2>&5
38630   ac_status=$?
38631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38632   (exit $ac_status); }; }; then
38633   ac_cv_lib_ltdl_lt_dlinit=yes
38634 else
38635   echo "$as_me: failed program was:" >&5
38636 sed 's/^/| /' conftest.$ac_ext >&5
38637
38638 ac_cv_lib_ltdl_lt_dlinit=no
38639 fi
38640 rm -f conftest.err conftest.$ac_objext \
38641       conftest$ac_exeext conftest.$ac_ext
38642 LIBS=$ac_check_lib_save_LIBS
38643 fi
38644 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38645 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
38646 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38647
38648                 SLAPI_LIBS=-lltdl
38649                 LIBSLAPI=libslapi.a
38650                 LIBSLAPITOOLS=../libslapi.a
38651
38652 cat >>confdefs.h <<\_ACEOF
38653 #define HAVE_LIBLTDL 1
38654 _ACEOF
38655
38656
38657 else
38658   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38659 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38660    { (exit 1); exit 1; }; }
38661 fi
38662
38663
38664
38665 cat >>confdefs.h <<\_ACEOF
38666 #define LDAP_SLAPI 1
38667 _ACEOF
38668
38669 fi
38670
38671 if test "$ol_enable_debug" != no ; then
38672         if test "$ol_enable_debug" = traditional; then
38673
38674 cat >>confdefs.h <<\_ACEOF
38675 #define OLD_DEBUG 1
38676 _ACEOF
38677
38678         fi
38679
38680 cat >>confdefs.h <<\_ACEOF
38681 #define LDAP_DEBUG 1
38682 _ACEOF
38683
38684 fi
38685 if test "$ol_enable_syslog" = yes ; then
38686
38687 cat >>confdefs.h <<\_ACEOF
38688 #define LDAP_SYSLOG 1
38689 _ACEOF
38690
38691 fi
38692 if test "$ol_enable_proctitle" != no ; then
38693
38694 cat >>confdefs.h <<\_ACEOF
38695 #define LDAP_PROCTITLE 1
38696 _ACEOF
38697
38698 fi
38699 if test "$ol_enable_referrals" != no ; then
38700
38701 cat >>confdefs.h <<\_ACEOF
38702 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38703 _ACEOF
38704
38705 fi
38706 if test "$ol_enable_local" != no; then
38707
38708 cat >>confdefs.h <<\_ACEOF
38709 #define LDAP_PF_LOCAL 1
38710 _ACEOF
38711
38712 fi
38713 if test "$ol_link_ipv6" != no; then
38714
38715 cat >>confdefs.h <<\_ACEOF
38716 #define LDAP_PF_INET6 1
38717 _ACEOF
38718
38719 fi
38720 if test "$ol_enable_cleartext" != no ; then
38721
38722 cat >>confdefs.h <<\_ACEOF
38723 #define SLAPD_CLEARTEXT 1
38724 _ACEOF
38725
38726 fi
38727 if test "$ol_enable_crypt" != no ; then
38728
38729 cat >>confdefs.h <<\_ACEOF
38730 #define SLAPD_CRYPT 1
38731 _ACEOF
38732
38733 fi
38734 if test "$ol_link_spasswd" != no ; then
38735
38736 cat >>confdefs.h <<\_ACEOF
38737 #define SLAPD_SPASSWD 1
38738 _ACEOF
38739
38740 fi
38741 if test "$ol_enable_rlookups" != no ; then
38742
38743 cat >>confdefs.h <<\_ACEOF
38744 #define SLAPD_RLOOKUPS 1
38745 _ACEOF
38746
38747 fi
38748 if test "$ol_enable_aci" != no ; then
38749         if test $ol_enable_dynacl = no ; then
38750                 ol_enable_dynacl=yes
38751                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38752 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38753         fi
38754         if test "$ol_enable_aci" = mod ; then
38755                 MFLAG=SLAPD_MOD_DYNAMIC
38756                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38757 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38758    { (exit 1); exit 1; }; }
38759         else
38760                 MFLAG=SLAPD_MOD_STATIC
38761         fi
38762         WITH_ACI_ENABLED=$ol_enable_aci
38763
38764 cat >>confdefs.h <<_ACEOF
38765 #define SLAPD_ACI_ENABLED $MFLAG
38766 _ACEOF
38767
38768 else
38769         WITH_ACI_ENABLED=no
38770 fi
38771 if test "$ol_enable_dynacl" != no ; then
38772
38773 cat >>confdefs.h <<\_ACEOF
38774 #define SLAP_DYNACL 1
38775 _ACEOF
38776
38777 fi
38778
38779 if test "$ol_link_modules" != no ; then
38780
38781 cat >>confdefs.h <<\_ACEOF
38782 #define SLAPD_MODULES 1
38783 _ACEOF
38784
38785         BUILD_SLAPD=yes
38786         SLAPD_MODULES_LDFLAGS="-dlopen self"
38787 fi
38788
38789
38790 cat >>confdefs.h <<\_ACEOF
38791 #define SLAPD_MOD_STATIC 1
38792 _ACEOF
38793
38794
38795 cat >>confdefs.h <<\_ACEOF
38796 #define SLAPD_MOD_DYNAMIC 2
38797 _ACEOF
38798
38799
38800 if test "$ol_enable_monitor" != no ; then
38801         BUILD_SLAPD=yes
38802         BUILD_MONITOR=$ol_enable_monitor
38803         if test "$ol_enable_monitor" = mod ; then
38804                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38805                 MFLAG=SLAPD_MOD_DYNAMIC
38806         else
38807                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38808                 MFLAG=SLAPD_MOD_STATIC
38809         fi
38810
38811 cat >>confdefs.h <<_ACEOF
38812 #define SLAPD_MONITOR $MFLAG
38813 _ACEOF
38814
38815 fi
38816
38817 if test "$ol_enable_bdb" != no ; then
38818         BUILD_SLAPD=yes
38819         BUILD_BDB=$ol_enable_bdb
38820         if test "$ol_enable_bdb" = mod ; then
38821                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38822                 MFLAG=SLAPD_MOD_DYNAMIC
38823         else
38824                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38825                 MFLAG=SLAPD_MOD_STATIC
38826         fi
38827
38828 cat >>confdefs.h <<_ACEOF
38829 #define SLAPD_BDB $MFLAG
38830 _ACEOF
38831
38832 fi
38833
38834 if test "$ol_enable_dnssrv" != no ; then
38835         BUILD_SLAPD=yes
38836         BUILD_DNSSRV=$ol_enable_dnssrv
38837         if test "$ol_enable_dnssrv" = mod ; then
38838                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38839                 MFLAG=SLAPD_MOD_DYNAMIC
38840         else
38841                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38842                 MFLAG=SLAPD_MOD_STATIC
38843         fi
38844
38845 cat >>confdefs.h <<_ACEOF
38846 #define SLAPD_DNSSRV $MFLAG
38847 _ACEOF
38848
38849 fi
38850
38851 if test "$ol_enable_hdb" != no ; then
38852         BUILD_SLAPD=yes
38853         BUILD_HDB=$ol_enable_hdb
38854         if test "$ol_enable_hdb" = mod ; then
38855                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38856                 MFLAG=SLAPD_MOD_DYNAMIC
38857         else
38858                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38859                 MFLAG=SLAPD_MOD_STATIC
38860         fi
38861
38862 cat >>confdefs.h <<_ACEOF
38863 #define SLAPD_HDB $MFLAG
38864 _ACEOF
38865
38866 fi
38867
38868 if test "$ol_enable_ldap" != no ; then
38869         BUILD_SLAPD=yes
38870         BUILD_LDAP=$ol_enable_ldap
38871         if test "$ol_enable_ldap" = mod ; then
38872                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38873                 MFLAG=SLAPD_MOD_DYNAMIC
38874         else
38875                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38876                 MFLAG=SLAPD_MOD_STATIC
38877         fi
38878
38879 cat >>confdefs.h <<_ACEOF
38880 #define SLAPD_LDAP $MFLAG
38881 _ACEOF
38882
38883 fi
38884
38885 if test "$ol_enable_meta" != no ; then
38886         BUILD_SLAPD=yes
38887         BUILD_META=$ol_enable_meta
38888         BUILD_REWRITE=yes
38889         if test "$ol_enable_meta" = mod ; then
38890                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38891                 MFLAG=SLAPD_MOD_DYNAMIC
38892         else
38893                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38894                 MFLAG=SLAPD_MOD_STATIC
38895         fi
38896
38897 cat >>confdefs.h <<_ACEOF
38898 #define SLAPD_META $MFLAG
38899 _ACEOF
38900
38901 fi
38902
38903 if test "$ol_enable_ndb" != no ; then
38904         BUILD_SLAPD=yes
38905         BUILD_NDB=$ol_enable_ndb
38906         if test "$ol_enable_ndb" = mod ; then
38907                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38908                 MFLAG=SLAPD_MOD_DYNAMIC
38909         else
38910                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38911                 MFLAG=SLAPD_MOD_STATIC
38912         fi
38913
38914 cat >>confdefs.h <<_ACEOF
38915 #define SLAPD_NDB $MFLAG
38916 _ACEOF
38917
38918 fi
38919
38920 if test "$ol_enable_null" != no ; then
38921         BUILD_SLAPD=yes
38922         BUILD_NULL=$ol_enable_null
38923         if test "$ol_enable_null" = mod ; then
38924                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38925                 MFLAG=SLAPD_MOD_DYNAMIC
38926         else
38927                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38928                 MFLAG=SLAPD_MOD_STATIC
38929         fi
38930
38931 cat >>confdefs.h <<_ACEOF
38932 #define SLAPD_NULL $MFLAG
38933 _ACEOF
38934
38935 fi
38936
38937 if test "$ol_enable_passwd" != no ; then
38938         BUILD_SLAPD=yes
38939         BUILD_PASSWD=$ol_enable_passwd
38940         if test "$ol_enable_passwd" = mod ; then
38941                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38942                 MFLAG=SLAPD_MOD_DYNAMIC
38943         else
38944                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38945                 MFLAG=SLAPD_MOD_STATIC
38946         fi
38947
38948 cat >>confdefs.h <<_ACEOF
38949 #define SLAPD_PASSWD $MFLAG
38950 _ACEOF
38951
38952 fi
38953
38954 if test "$ol_link_perl" != no ; then
38955         BUILD_SLAPD=yes
38956         BUILD_PERL=$ol_enable_perl
38957         if test "$ol_enable_perl" = mod ; then
38958                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38959                 MFLAG=SLAPD_MOD_DYNAMIC
38960         else
38961                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38962                 MFLAG=SLAPD_MOD_STATIC
38963         fi
38964
38965 cat >>confdefs.h <<_ACEOF
38966 #define SLAPD_PERL $MFLAG
38967 _ACEOF
38968
38969 fi
38970
38971 if test "$ol_enable_relay" != no ; then
38972         BUILD_SLAPD=yes
38973         BUILD_RELAY=$ol_enable_relay
38974         if test "$ol_enable_relay" = mod ; then
38975                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38976                 MFLAG=SLAPD_MOD_DYNAMIC
38977         else
38978                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38979                 MFLAG=SLAPD_MOD_STATIC
38980         fi
38981
38982 cat >>confdefs.h <<_ACEOF
38983 #define SLAPD_RELAY $MFLAG
38984 _ACEOF
38985
38986 fi
38987
38988 if test "$ol_enable_shell" != no ; then
38989         if test "$ol_link_threads" != no ; then
38990                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38991 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38992         fi
38993         BUILD_SLAPD=yes
38994         BUILD_SHELL=$ol_enable_shell
38995         if test "$ol_enable_shell" = mod ; then
38996                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38997                 MFLAG=SLAPD_MOD_DYNAMIC
38998         else
38999                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
39000                 MFLAG=SLAPD_MOD_STATIC
39001         fi
39002
39003 cat >>confdefs.h <<_ACEOF
39004 #define SLAPD_SHELL $MFLAG
39005 _ACEOF
39006
39007 fi
39008
39009 if test "$ol_enable_sock" != no ; then
39010         BUILD_SLAPD=yes
39011         BUILD_SOCK=$ol_enable_sock
39012         if test "$ol_enable_sock" = mod ; then
39013                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
39014                 MFLAG=SLAPD_MOD_DYNAMIC
39015         else
39016                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
39017                 MFLAG=SLAPD_MOD_STATIC
39018         fi
39019
39020 cat >>confdefs.h <<_ACEOF
39021 #define SLAPD_SOCK $MFLAG
39022 _ACEOF
39023
39024 fi
39025
39026 if test "$ol_link_sql" != no ; then
39027         BUILD_SLAPD=yes
39028         BUILD_SQL=$ol_enable_sql
39029         if test "$ol_enable_sql" = mod; then
39030                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
39031                 MFLAG=SLAPD_MOD_DYNAMIC
39032         else
39033                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
39034                 MFLAG=SLAPD_MOD_STATIC
39035         fi
39036
39037 cat >>confdefs.h <<_ACEOF
39038 #define SLAPD_SQL $MFLAG
39039 _ACEOF
39040
39041 fi
39042
39043 if test "$ol_enable_accesslog" != no ; then
39044         BUILD_ACCESSLOG=$ol_enable_accesslog
39045         if test "$ol_enable_accesslog" = mod ; then
39046                 MFLAG=SLAPD_MOD_DYNAMIC
39047                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
39048         else
39049                 MFLAG=SLAPD_MOD_STATIC
39050                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
39051         fi
39052
39053 cat >>confdefs.h <<_ACEOF
39054 #define SLAPD_OVER_ACCESSLOG $MFLAG
39055 _ACEOF
39056
39057 fi
39058
39059 if test "$ol_enable_auditlog" != no ; then
39060         BUILD_AUDITLOG=$ol_enable_auditlog
39061         if test "$ol_enable_auditlog" = mod ; then
39062                 MFLAG=SLAPD_MOD_DYNAMIC
39063                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
39064         else
39065                 MFLAG=SLAPD_MOD_STATIC
39066                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
39067         fi
39068
39069 cat >>confdefs.h <<_ACEOF
39070 #define SLAPD_OVER_AUDITLOG $MFLAG
39071 _ACEOF
39072
39073 fi
39074
39075 if test "$ol_enable_collect" != no ; then
39076         BUILD_COLLECT=$ol_enable_collect
39077         if test "$ol_enable_collect" = mod ; then
39078                 MFLAG=SLAPD_MOD_DYNAMIC
39079                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
39080         else
39081                 MFLAG=SLAPD_MOD_STATIC
39082                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
39083         fi
39084
39085 cat >>confdefs.h <<_ACEOF
39086 #define SLAPD_OVER_COLLECT $MFLAG
39087 _ACEOF
39088
39089 fi
39090
39091 if test "$ol_enable_constraint" != no ; then
39092         BUILD_CONSTRAINT=$ol_enable_constraint
39093         if test "$ol_enable_constraint" = mod ; then
39094                 MFLAG=SLAPD_MOD_DYNAMIC
39095                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
39096         else
39097                 MFLAG=SLAPD_MOD_STATIC
39098                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
39099         fi
39100
39101 cat >>confdefs.h <<_ACEOF
39102 #define SLAPD_OVER_CONSTRAINT $MFLAG
39103 _ACEOF
39104
39105 fi
39106
39107 if test "$ol_enable_dds" != no ; then
39108         BUILD_DDS=$ol_enable_dds
39109         if test "$ol_enable_dds" = mod ; then
39110                 MFLAG=SLAPD_MOD_DYNAMIC
39111                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
39112         else
39113                 MFLAG=SLAPD_MOD_STATIC
39114                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
39115         fi
39116
39117 cat >>confdefs.h <<_ACEOF
39118 #define SLAPD_OVER_DDS $MFLAG
39119 _ACEOF
39120
39121 fi
39122
39123 if test "$ol_enable_deref" != no ; then
39124         BUILD_DDS=$ol_enable_deref
39125         if test "$ol_enable_deref" = mod ; then
39126                 MFLAG=SLAPD_MOD_DYNAMIC
39127                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
39128         else
39129                 MFLAG=SLAPD_MOD_STATIC
39130                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
39131         fi
39132
39133 cat >>confdefs.h <<_ACEOF
39134 #define SLAPD_OVER_DEREF $MFLAG
39135 _ACEOF
39136
39137 fi
39138
39139 if test "$ol_enable_dyngroup" != no ; then
39140         BUILD_DYNGROUP=$ol_enable_dyngroup
39141         if test "$ol_enable_dyngroup" = mod ; then
39142                 MFLAG=SLAPD_MOD_DYNAMIC
39143                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
39144         else
39145                 MFLAG=SLAPD_MOD_STATIC
39146                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
39147         fi
39148
39149 cat >>confdefs.h <<_ACEOF
39150 #define SLAPD_OVER_DYNGROUP $MFLAG
39151 _ACEOF
39152
39153 fi
39154
39155 if test "$ol_enable_dynlist" != no ; then
39156         BUILD_DYNLIST=$ol_enable_dynlist
39157         if test "$ol_enable_dynlist" = mod ; then
39158                 MFLAG=SLAPD_MOD_DYNAMIC
39159                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
39160         else
39161                 MFLAG=SLAPD_MOD_STATIC
39162                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
39163         fi
39164
39165 cat >>confdefs.h <<_ACEOF
39166 #define SLAPD_OVER_DYNLIST $MFLAG
39167 _ACEOF
39168
39169 fi
39170
39171 if test "$ol_enable_memberof" != no ; then
39172         BUILD_MEMBEROF=$ol_enable_memberof
39173         if test "$ol_enable_memberof" = mod ; then
39174                 MFLAG=SLAPD_MOD_DYNAMIC
39175                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
39176         else
39177                 MFLAG=SLAPD_MOD_STATIC
39178                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
39179         fi
39180
39181 cat >>confdefs.h <<_ACEOF
39182 #define SLAPD_OVER_MEMBEROF $MFLAG
39183 _ACEOF
39184
39185 fi
39186
39187 if test "$ol_enable_ppolicy" != no ; then
39188         BUILD_PPOLICY=$ol_enable_ppolicy
39189         if test "$ol_enable_ppolicy" = mod ; then
39190                 MFLAG=SLAPD_MOD_DYNAMIC
39191                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
39192         else
39193                 MFLAG=SLAPD_MOD_STATIC
39194                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
39195         fi
39196
39197 cat >>confdefs.h <<_ACEOF
39198 #define SLAPD_OVER_PPOLICY $MFLAG
39199 _ACEOF
39200
39201 fi
39202
39203 if test "$ol_enable_proxycache" != no ; then
39204         BUILD_PROXYCACHE=$ol_enable_proxycache
39205         if test "$ol_enable_proxycache" = mod ; then
39206                 MFLAG=SLAPD_MOD_DYNAMIC
39207                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
39208         else
39209                 MFLAG=SLAPD_MOD_STATIC
39210                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
39211         fi
39212
39213 cat >>confdefs.h <<_ACEOF
39214 #define SLAPD_OVER_PROXYCACHE $MFLAG
39215 _ACEOF
39216
39217 fi
39218
39219 if test "$ol_enable_refint" != no ; then
39220         BUILD_REFINT=$ol_enable_refint
39221         if test "$ol_enable_refint" = mod ; then
39222                 MFLAG=SLAPD_MOD_DYNAMIC
39223                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
39224         else
39225                 MFLAG=SLAPD_MOD_STATIC
39226                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
39227         fi
39228
39229 cat >>confdefs.h <<_ACEOF
39230 #define SLAPD_OVER_REFINT $MFLAG
39231 _ACEOF
39232
39233 fi
39234
39235 if test "$ol_enable_retcode" != no ; then
39236         BUILD_RETCODE=$ol_enable_retcode
39237         if test "$ol_enable_retcode" = mod ; then
39238                 MFLAG=SLAPD_MOD_DYNAMIC
39239                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
39240         else
39241                 MFLAG=SLAPD_MOD_STATIC
39242                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
39243         fi
39244
39245 cat >>confdefs.h <<_ACEOF
39246 #define SLAPD_OVER_RETCODE $MFLAG
39247 _ACEOF
39248
39249 fi
39250
39251 if test "$ol_enable_rwm" != no ; then
39252         BUILD_REWRITE=yes
39253         BUILD_RWM=$ol_enable_rwm
39254         if test "$ol_enable_rwm" = mod ; then
39255                 MFLAG=SLAPD_MOD_DYNAMIC
39256                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
39257         else
39258                 MFLAG=SLAPD_MOD_STATIC
39259                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
39260         fi
39261
39262 cat >>confdefs.h <<_ACEOF
39263 #define SLAPD_OVER_RWM $MFLAG
39264 _ACEOF
39265
39266 fi
39267
39268 if test "$ol_enable_seqmod" != no ; then
39269         BUILD_SEQMOD=$ol_enable_seqmod
39270         if test "$ol_enable_seqmod" = mod ; then
39271                 MFLAG=SLAPD_MOD_DYNAMIC
39272                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
39273         else
39274                 MFLAG=SLAPD_MOD_STATIC
39275                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
39276         fi
39277
39278 cat >>confdefs.h <<_ACEOF
39279 #define SLAPD_OVER_SEQMOD $MFLAG
39280 _ACEOF
39281
39282 fi
39283
39284 if test "$ol_enable_syncprov" != no ; then
39285         BUILD_SYNCPROV=$ol_enable_syncprov
39286         if test "$ol_enable_syncprov" = mod ; then
39287                 MFLAG=SLAPD_MOD_DYNAMIC
39288                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
39289         else
39290                 MFLAG=SLAPD_MOD_STATIC
39291                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
39292         fi
39293
39294 cat >>confdefs.h <<_ACEOF
39295 #define SLAPD_OVER_SYNCPROV $MFLAG
39296 _ACEOF
39297
39298 fi
39299
39300 if test "$ol_enable_translucent" != no ; then
39301         BUILD_TRANSLUCENT=$ol_enable_translucent
39302         if test "$ol_enable_translucent" = mod ; then
39303                 MFLAG=SLAPD_MOD_DYNAMIC
39304                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
39305         else
39306                 MFLAG=SLAPD_MOD_STATIC
39307                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
39308         fi
39309
39310 cat >>confdefs.h <<_ACEOF
39311 #define SLAPD_OVER_TRANSLUCENT $MFLAG
39312 _ACEOF
39313
39314 fi
39315
39316 if test "$ol_enable_unique" != no ; then
39317         BUILD_UNIQUE=$ol_enable_unique
39318         if test "$ol_enable_unique" = mod ; then
39319                 MFLAG=SLAPD_MOD_DYNAMIC
39320                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
39321         else
39322                 MFLAG=SLAPD_MOD_STATIC
39323                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
39324         fi
39325
39326 cat >>confdefs.h <<_ACEOF
39327 #define SLAPD_OVER_UNIQUE $MFLAG
39328 _ACEOF
39329
39330 fi
39331
39332 if test "$ol_enable_valsort" != no ; then
39333         BUILD_VALSORT=$ol_enable_valsort
39334         if test "$ol_enable_valsort" = mod ; then
39335                 MFLAG=SLAPD_MOD_DYNAMIC
39336                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
39337         else
39338                 MFLAG=SLAPD_MOD_STATIC
39339                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
39340         fi
39341
39342 cat >>confdefs.h <<_ACEOF
39343 #define SLAPD_OVER_VALSORT $MFLAG
39344 _ACEOF
39345
39346 fi
39347
39348 if test "$ol_enable_rewrite" != no ; then
39349
39350 cat >>confdefs.h <<\_ACEOF
39351 #define ENABLE_REWRITE 1
39352 _ACEOF
39353
39354         BUILD_REWRITE=yes
39355 fi
39356
39357 if test "$ol_enable_slapi" != no ; then
39358
39359 cat >>confdefs.h <<\_ACEOF
39360 #define ENABLE_SLAPI 1
39361 _ACEOF
39362
39363         BUILD_SLAPI=yes
39364         SLAPD_SLAPI_DEPEND=libslapi.a
39365 fi
39366
39367
39368
39369 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
39370         PLAT=NT
39371         SLAPD_MODULES_LDFLAGS=
39372 else
39373         PLAT=UNIX
39374 fi
39375
39376
39377
39378
39379
39380
39381
39382
39383
39384
39385
39386
39387
39388
39389
39390
39391
39392
39393
39394
39395
39396
39397
39398
39399
39400
39401
39402
39403
39404
39405
39406
39407
39408
39409
39410
39411
39412
39413
39414
39415
39416
39417
39418
39419
39420
39421
39422
39423
39424
39425
39426
39427
39428
39429
39430
39431
39432
39433
39434
39435
39436
39437
39438
39439
39440
39441
39442
39443
39444
39445
39446
39447
39448
39449
39450
39451
39452
39453
39454
39455
39456
39457
39458
39459
39460
39461
39462
39463
39464
39465 # Check whether --with-xxinstall or --without-xxinstall was given.
39466 if test "${with_xxinstall+set}" = set; then
39467   withval="$with_xxinstall"
39468
39469 fi;
39470
39471
39472                                                                                                                                                                                                                                                                                                                                                                                                                 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"
39473
39474
39475           ac_config_commands="$ac_config_commands default"
39476
39477
39478
39479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39480 # Let make expand exec_prefix.
39481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39482
39483 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39484 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39485 # trailing colons and then remove the whole line if VPATH becomes empty
39486 # (actually we leave an empty line to preserve line numbers).
39487 if test "x$srcdir" = x.; then
39488   ac_vpsub='/^[  ]*VPATH[        ]*=/{
39489 s/:*\$(srcdir):*/:/;
39490 s/:*\${srcdir}:*/:/;
39491 s/:*@srcdir@:*/:/;
39492 s/^\([^=]*=[     ]*\):*/\1/;
39493 s/:*$//;
39494 s/^[^=]*=[       ]*$//;
39495 }'
39496 fi
39497
39498 DEFS=-DHAVE_CONFIG_H
39499
39500 ac_libobjs=
39501 ac_ltlibobjs=
39502 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39503   # 1. Remove the extension, and $U if already installed.
39504   ac_i=`echo "$ac_i" |
39505          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39506   # 2. Add them.
39507   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39508   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39509 done
39510 LIBOBJS=$ac_libobjs
39511
39512 LTLIBOBJS=$ac_ltlibobjs
39513
39514
39515 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39516   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39517 Usually this means the macro was only invoked conditionally." >&5
39518 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39519 Usually this means the macro was only invoked conditionally." >&2;}
39520    { (exit 1); exit 1; }; }
39521 fi
39522 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39523   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39524 Usually this means the macro was only invoked conditionally." >&5
39525 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39526 Usually this means the macro was only invoked conditionally." >&2;}
39527    { (exit 1); exit 1; }; }
39528 fi
39529 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39530   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39531 Usually this means the macro was only invoked conditionally." >&5
39532 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39533 Usually this means the macro was only invoked conditionally." >&2;}
39534    { (exit 1); exit 1; }; }
39535 fi
39536
39537 : ${CONFIG_STATUS=./config.status}
39538 ac_clean_files_save=$ac_clean_files
39539 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39540 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39541 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39542 cat >$CONFIG_STATUS <<_ACEOF
39543 #! $SHELL
39544 # Generated by $as_me.
39545 # Run this file to recreate the current configuration.
39546 # Compiler output produced by configure, useful for debugging
39547 # configure, is in config.log if it exists.
39548
39549 debug=false
39550 ac_cs_recheck=false
39551 ac_cs_silent=false
39552 SHELL=\${CONFIG_SHELL-$SHELL}
39553 _ACEOF
39554
39555 cat >>$CONFIG_STATUS <<\_ACEOF
39556 ## --------------------- ##
39557 ## M4sh Initialization.  ##
39558 ## --------------------- ##
39559
39560 # Be Bourne compatible
39561 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39562   emulate sh
39563   NULLCMD=:
39564   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39565   # is contrary to our usage.  Disable this feature.
39566   alias -g '${1+"$@"}'='"$@"'
39567 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39568   set -o posix
39569 fi
39570 DUALCASE=1; export DUALCASE # for MKS sh
39571
39572 # Support unset when possible.
39573 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39574   as_unset=unset
39575 else
39576   as_unset=false
39577 fi
39578
39579
39580 # Work around bugs in pre-3.0 UWIN ksh.
39581 $as_unset ENV MAIL MAILPATH
39582 PS1='$ '
39583 PS2='> '
39584 PS4='+ '
39585
39586 # NLS nuisances.
39587 for as_var in \
39588   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39589   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39590   LC_TELEPHONE LC_TIME
39591 do
39592   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39593     eval $as_var=C; export $as_var
39594   else
39595     $as_unset $as_var
39596   fi
39597 done
39598
39599 # Required to use basename.
39600 if expr a : '\(a\)' >/dev/null 2>&1; then
39601   as_expr=expr
39602 else
39603   as_expr=false
39604 fi
39605
39606 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39607   as_basename=basename
39608 else
39609   as_basename=false
39610 fi
39611
39612
39613 # Name of the executable.
39614 as_me=`$as_basename "$0" ||
39615 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39616          X"$0" : 'X\(//\)$' \| \
39617          X"$0" : 'X\(/\)$' \| \
39618          .     : '\(.\)' 2>/dev/null ||
39619 echo X/"$0" |
39620     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39621           /^X\/\(\/\/\)$/{ s//\1/; q; }
39622           /^X\/\(\/\).*/{ s//\1/; q; }
39623           s/.*/./; q'`
39624
39625
39626 # PATH needs CR, and LINENO needs CR and PATH.
39627 # Avoid depending upon Character Ranges.
39628 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39629 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39630 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39631 as_cr_digits='0123456789'
39632 as_cr_alnum=$as_cr_Letters$as_cr_digits
39633
39634 # The user is always right.
39635 if test "${PATH_SEPARATOR+set}" != set; then
39636   echo "#! /bin/sh" >conf$$.sh
39637   echo  "exit 0"   >>conf$$.sh
39638   chmod +x conf$$.sh
39639   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39640     PATH_SEPARATOR=';'
39641   else
39642     PATH_SEPARATOR=:
39643   fi
39644   rm -f conf$$.sh
39645 fi
39646
39647
39648   as_lineno_1=$LINENO
39649   as_lineno_2=$LINENO
39650   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39651   test "x$as_lineno_1" != "x$as_lineno_2" &&
39652   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
39653   # Find who we are.  Look in the path if we contain no path at all
39654   # relative or not.
39655   case $0 in
39656     *[\\/]* ) as_myself=$0 ;;
39657     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39658 for as_dir in $PATH
39659 do
39660   IFS=$as_save_IFS
39661   test -z "$as_dir" && as_dir=.
39662   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39663 done
39664
39665        ;;
39666   esac
39667   # We did not find ourselves, most probably we were run as `sh COMMAND'
39668   # in which case we are not to be found in the path.
39669   if test "x$as_myself" = x; then
39670     as_myself=$0
39671   fi
39672   if test ! -f "$as_myself"; then
39673     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39674 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39675    { (exit 1); exit 1; }; }
39676   fi
39677   case $CONFIG_SHELL in
39678   '')
39679     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39680 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39681 do
39682   IFS=$as_save_IFS
39683   test -z "$as_dir" && as_dir=.
39684   for as_base in sh bash ksh sh5; do
39685          case $as_dir in
39686          /*)
39687            if ("$as_dir/$as_base" -c '
39688   as_lineno_1=$LINENO
39689   as_lineno_2=$LINENO
39690   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39691   test "x$as_lineno_1" != "x$as_lineno_2" &&
39692   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
39693              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39694              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39695              CONFIG_SHELL=$as_dir/$as_base
39696              export CONFIG_SHELL
39697              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39698            fi;;
39699          esac
39700        done
39701 done
39702 ;;
39703   esac
39704
39705   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39706   # uniformly replaced by the line number.  The first 'sed' inserts a
39707   # line-number line before each line; the second 'sed' does the real
39708   # work.  The second script uses 'N' to pair each line-number line
39709   # with the numbered line, and appends trailing '-' during
39710   # substitution so that $LINENO is not a special case at line end.
39711   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39712   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
39713   sed '=' <$as_myself |
39714     sed '
39715       N
39716       s,$,-,
39717       : loop
39718       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39719       t loop
39720       s,-$,,
39721       s,^['$as_cr_digits']*\n,,
39722     ' >$as_me.lineno &&
39723   chmod +x $as_me.lineno ||
39724     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39725 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39726    { (exit 1); exit 1; }; }
39727
39728   # Don't try to exec as it changes $[0], causing all sort of problems
39729   # (the dirname of $[0] is not the place where we might find the
39730   # original and so on.  Autoconf is especially sensible to this).
39731   . ./$as_me.lineno
39732   # Exit status is that of the last command.
39733   exit
39734 }
39735
39736
39737 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39738   *c*,-n*) ECHO_N= ECHO_C='
39739 ' ECHO_T='      ' ;;
39740   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39741   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
39742 esac
39743
39744 if expr a : '\(a\)' >/dev/null 2>&1; then
39745   as_expr=expr
39746 else
39747   as_expr=false
39748 fi
39749
39750 rm -f conf$$ conf$$.exe conf$$.file
39751 echo >conf$$.file
39752 if ln -s conf$$.file conf$$ 2>/dev/null; then
39753   # We could just check for DJGPP; but this test a) works b) is more generic
39754   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39755   if test -f conf$$.exe; then
39756     # Don't use ln at all; we don't have any links
39757     as_ln_s='cp -p'
39758   else
39759     as_ln_s='ln -s'
39760   fi
39761 elif ln conf$$.file conf$$ 2>/dev/null; then
39762   as_ln_s=ln
39763 else
39764   as_ln_s='cp -p'
39765 fi
39766 rm -f conf$$ conf$$.exe conf$$.file
39767
39768 if mkdir -p . 2>/dev/null; then
39769   as_mkdir_p=:
39770 else
39771   test -d ./-p && rmdir ./-p
39772   as_mkdir_p=false
39773 fi
39774
39775 as_executable_p="test -f"
39776
39777 # Sed expression to map a string onto a valid CPP name.
39778 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39779
39780 # Sed expression to map a string onto a valid variable name.
39781 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39782
39783
39784 # IFS
39785 # We need space, tab and new line, in precisely that order.
39786 as_nl='
39787 '
39788 IFS="   $as_nl"
39789
39790 # CDPATH.
39791 $as_unset CDPATH
39792
39793 exec 6>&1
39794
39795 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39796 # report actual input values of CONFIG_FILES etc. instead of their
39797 # values after options handling.  Logging --version etc. is OK.
39798 exec 5>>config.log
39799 {
39800   echo
39801   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39802 ## Running $as_me. ##
39803 _ASBOX
39804 } >&5
39805 cat >&5 <<_CSEOF
39806
39807 This file was extended by $as_me, which was
39808 generated by GNU Autoconf 2.59.  Invocation command line was
39809
39810   CONFIG_FILES    = $CONFIG_FILES
39811   CONFIG_HEADERS  = $CONFIG_HEADERS
39812   CONFIG_LINKS    = $CONFIG_LINKS
39813   CONFIG_COMMANDS = $CONFIG_COMMANDS
39814   $ $0 $@
39815
39816 _CSEOF
39817 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39818 echo >&5
39819 _ACEOF
39820
39821 # Files that config.status was made for.
39822 if test -n "$ac_config_files"; then
39823   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39824 fi
39825
39826 if test -n "$ac_config_headers"; then
39827   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39828 fi
39829
39830 if test -n "$ac_config_links"; then
39831   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39832 fi
39833
39834 if test -n "$ac_config_commands"; then
39835   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39836 fi
39837
39838 cat >>$CONFIG_STATUS <<\_ACEOF
39839
39840 ac_cs_usage="\
39841 \`$as_me' instantiates files from templates according to the
39842 current configuration.
39843
39844 Usage: $0 [OPTIONS] [FILE]...
39845
39846   -h, --help       print this help, then exit
39847   -V, --version    print version number, then exit
39848   -q, --quiet      do not print progress messages
39849   -d, --debug      don't remove temporary files
39850       --recheck    update $as_me by reconfiguring in the same conditions
39851   --file=FILE[:TEMPLATE]
39852                    instantiate the configuration file FILE
39853   --header=FILE[:TEMPLATE]
39854                    instantiate the configuration header FILE
39855
39856 Configuration files:
39857 $config_files
39858
39859 Configuration headers:
39860 $config_headers
39861
39862 Configuration commands:
39863 $config_commands
39864
39865 Report bugs to <bug-autoconf@gnu.org>."
39866 _ACEOF
39867
39868 cat >>$CONFIG_STATUS <<_ACEOF
39869 ac_cs_version="\\
39870 config.status
39871 configured by $0, generated by GNU Autoconf 2.59,
39872   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39873
39874 Copyright (C) 2003 Free Software Foundation, Inc.
39875 This config.status script is free software; the Free Software Foundation
39876 gives unlimited permission to copy, distribute and modify it."
39877 srcdir=$srcdir
39878 INSTALL="$INSTALL"
39879 _ACEOF
39880
39881 cat >>$CONFIG_STATUS <<\_ACEOF
39882 # If no file are specified by the user, then we need to provide default
39883 # value.  By we need to know if files were specified by the user.
39884 ac_need_defaults=:
39885 while test $# != 0
39886 do
39887   case $1 in
39888   --*=*)
39889     ac_option=`expr "x$1" : 'x\([^=]*\)='`
39890     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39891     ac_shift=:
39892     ;;
39893   -*)
39894     ac_option=$1
39895     ac_optarg=$2
39896     ac_shift=shift
39897     ;;
39898   *) # This is not an option, so the user has probably given explicit
39899      # arguments.
39900      ac_option=$1
39901      ac_need_defaults=false;;
39902   esac
39903
39904   case $ac_option in
39905   # Handling of the options.
39906 _ACEOF
39907 cat >>$CONFIG_STATUS <<\_ACEOF
39908   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39909     ac_cs_recheck=: ;;
39910   --version | --vers* | -V )
39911     echo "$ac_cs_version"; exit 0 ;;
39912   --he | --h)
39913     # Conflict between --help and --header
39914     { { echo "$as_me:$LINENO: error: ambiguous option: $1
39915 Try \`$0 --help' for more information." >&5
39916 echo "$as_me: error: ambiguous option: $1
39917 Try \`$0 --help' for more information." >&2;}
39918    { (exit 1); exit 1; }; };;
39919   --help | --hel | -h )
39920     echo "$ac_cs_usage"; exit 0 ;;
39921   --debug | --d* | -d )
39922     debug=: ;;
39923   --file | --fil | --fi | --f )
39924     $ac_shift
39925     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39926     ac_need_defaults=false;;
39927   --header | --heade | --head | --hea )
39928     $ac_shift
39929     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39930     ac_need_defaults=false;;
39931   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39932   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39933     ac_cs_silent=: ;;
39934
39935   # This is an error.
39936   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39937 Try \`$0 --help' for more information." >&5
39938 echo "$as_me: error: unrecognized option: $1
39939 Try \`$0 --help' for more information." >&2;}
39940    { (exit 1); exit 1; }; } ;;
39941
39942   *) ac_config_targets="$ac_config_targets $1" ;;
39943
39944   esac
39945   shift
39946 done
39947
39948 ac_configure_extra_args=
39949
39950 if $ac_cs_silent; then
39951   exec 6>/dev/null
39952   ac_configure_extra_args="$ac_configure_extra_args --silent"
39953 fi
39954
39955 _ACEOF
39956 cat >>$CONFIG_STATUS <<_ACEOF
39957 if \$ac_cs_recheck; then
39958   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39959   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39960 fi
39961
39962 _ACEOF
39963
39964 cat >>$CONFIG_STATUS <<_ACEOF
39965 #
39966 # INIT-COMMANDS section.
39967 #
39968
39969 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39970
39971 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39972 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39973
39974
39975 _ACEOF
39976
39977
39978
39979 cat >>$CONFIG_STATUS <<\_ACEOF
39980 for ac_config_target in $ac_config_targets
39981 do
39982   case "$ac_config_target" in
39983   # Handling of arguments.
39984   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39985   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39986   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39987   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39988   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39989   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39990   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39991   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39992   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39993   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39994   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39995   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39996   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39997   "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" ;;
39998   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39999   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
40000   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
40001   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
40002   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
40003   "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" ;;
40004   "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" ;;
40005   "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" ;;
40006   "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" ;;
40007   "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" ;;
40008   "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" ;;
40009   "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" ;;
40010   "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" ;;
40011   "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" ;;
40012   "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" ;;
40013   "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" ;;
40014   "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" ;;
40015   "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" ;;
40016   "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" ;;
40017   "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" ;;
40018   "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" ;;
40019   "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" ;;
40020   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
40021   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
40022   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
40023   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
40024   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40025   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
40026   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
40027   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
40028   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
40029   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40030 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40031    { (exit 1); exit 1; }; };;
40032   esac
40033 done
40034
40035 # If the user did not use the arguments to specify the items to instantiate,
40036 # then the envvar interface is used.  Set only those that are not.
40037 # We use the long form for the default assignment because of an extremely
40038 # bizarre bug on SunOS 4.1.3.
40039 if $ac_need_defaults; then
40040   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40041   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40042   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40043 fi
40044
40045 # Have a temporary directory for convenience.  Make it in the build tree
40046 # simply because there is no reason to put it here, and in addition,
40047 # creating and moving files from /tmp can sometimes cause problems.
40048 # Create a temporary directory, and hook for its removal unless debugging.
40049 $debug ||
40050 {
40051   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40052   trap '{ (exit 1); exit 1; }' 1 2 13 15
40053 }
40054
40055 # Create a (secure) tmp directory for tmp files.
40056
40057 {
40058   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40059   test -n "$tmp" && test -d "$tmp"
40060 }  ||
40061 {
40062   tmp=./confstat$$-$RANDOM
40063   (umask 077 && mkdir $tmp)
40064 } ||
40065 {
40066    echo "$me: cannot create a temporary directory in ." >&2
40067    { (exit 1); exit 1; }
40068 }
40069
40070 _ACEOF
40071
40072 cat >>$CONFIG_STATUS <<_ACEOF
40073
40074 #
40075 # CONFIG_FILES section.
40076 #
40077
40078 # No need to generate the scripts if there are no CONFIG_FILES.
40079 # This happens for instance when ./config.status config.h
40080 if test -n "\$CONFIG_FILES"; then
40081   # Protect against being on the right side of a sed subst in config.status.
40082   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40083    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40084 s,@SHELL@,$SHELL,;t t
40085 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40086 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40087 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40088 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40089 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40090 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40091 s,@exec_prefix@,$exec_prefix,;t t
40092 s,@prefix@,$prefix,;t t
40093 s,@program_transform_name@,$program_transform_name,;t t
40094 s,@bindir@,$bindir,;t t
40095 s,@sbindir@,$sbindir,;t t
40096 s,@libexecdir@,$libexecdir,;t t
40097 s,@datadir@,$datadir,;t t
40098 s,@sysconfdir@,$sysconfdir,;t t
40099 s,@sharedstatedir@,$sharedstatedir,;t t
40100 s,@localstatedir@,$localstatedir,;t t
40101 s,@libdir@,$libdir,;t t
40102 s,@includedir@,$includedir,;t t
40103 s,@oldincludedir@,$oldincludedir,;t t
40104 s,@infodir@,$infodir,;t t
40105 s,@mandir@,$mandir,;t t
40106 s,@build_alias@,$build_alias,;t t
40107 s,@host_alias@,$host_alias,;t t
40108 s,@target_alias@,$target_alias,;t t
40109 s,@DEFS@,$DEFS,;t t
40110 s,@ECHO_C@,$ECHO_C,;t t
40111 s,@ECHO_N@,$ECHO_N,;t t
40112 s,@ECHO_T@,$ECHO_T,;t t
40113 s,@LIBS@,$LIBS,;t t
40114 s,@build@,$build,;t t
40115 s,@build_cpu@,$build_cpu,;t t
40116 s,@build_vendor@,$build_vendor,;t t
40117 s,@build_os@,$build_os,;t t
40118 s,@host@,$host,;t t
40119 s,@host_cpu@,$host_cpu,;t t
40120 s,@host_vendor@,$host_vendor,;t t
40121 s,@host_os@,$host_os,;t t
40122 s,@target@,$target,;t t
40123 s,@target_cpu@,$target_cpu,;t t
40124 s,@target_vendor@,$target_vendor,;t t
40125 s,@target_os@,$target_os,;t t
40126 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40127 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40128 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40129 s,@CYGPATH_W@,$CYGPATH_W,;t t
40130 s,@PACKAGE@,$PACKAGE,;t t
40131 s,@VERSION@,$VERSION,;t t
40132 s,@ACLOCAL@,$ACLOCAL,;t t
40133 s,@AUTOCONF@,$AUTOCONF,;t t
40134 s,@AUTOMAKE@,$AUTOMAKE,;t t
40135 s,@AUTOHEADER@,$AUTOHEADER,;t t
40136 s,@MAKEINFO@,$MAKEINFO,;t t
40137 s,@install_sh@,$install_sh,;t t
40138 s,@STRIP@,$STRIP,;t t
40139 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40140 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
40141 s,@mkdir_p@,$mkdir_p,;t t
40142 s,@AWK@,$AWK,;t t
40143 s,@SET_MAKE@,$SET_MAKE,;t t
40144 s,@am__leading_dot@,$am__leading_dot,;t t
40145 s,@AMTAR@,$AMTAR,;t t
40146 s,@am__tar@,$am__tar,;t t
40147 s,@am__untar@,$am__untar,;t t
40148 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
40149 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
40150 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
40151 s,@top_builddir@,$top_builddir,;t t
40152 s,@ldap_subdir@,$ldap_subdir,;t t
40153 s,@CC@,$CC,;t t
40154 s,@AR@,$AR,;t t
40155 s,@CFLAGS@,$CFLAGS,;t t
40156 s,@LDFLAGS@,$LDFLAGS,;t t
40157 s,@CPPFLAGS@,$CPPFLAGS,;t t
40158 s,@ac_ct_CC@,$ac_ct_CC,;t t
40159 s,@EXEEXT@,$EXEEXT,;t t
40160 s,@OBJEXT@,$OBJEXT,;t t
40161 s,@DEPDIR@,$DEPDIR,;t t
40162 s,@am__include@,$am__include,;t t
40163 s,@am__quote@,$am__quote,;t t
40164 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
40165 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
40166 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
40167 s,@CCDEPMODE@,$CCDEPMODE,;t t
40168 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
40169 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
40170 s,@EGREP@,$EGREP,;t t
40171 s,@LN_S@,$LN_S,;t t
40172 s,@ECHO@,$ECHO,;t t
40173 s,@ac_ct_AR@,$ac_ct_AR,;t t
40174 s,@RANLIB@,$RANLIB,;t t
40175 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40176 s,@DLLTOOL@,$DLLTOOL,;t t
40177 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
40178 s,@AS@,$AS,;t t
40179 s,@ac_ct_AS@,$ac_ct_AS,;t t
40180 s,@OBJDUMP@,$OBJDUMP,;t t
40181 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
40182 s,@CPP@,$CPP,;t t
40183 s,@LIBTOOL@,$LIBTOOL,;t t
40184 s,@PERLBIN@,$PERLBIN,;t t
40185 s,@OL_MKDEP@,$OL_MKDEP,;t t
40186 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
40187 s,@LTSTATIC@,$LTSTATIC,;t t
40188 s,@MYSQL@,$MYSQL,;t t
40189 s,@LIBOBJS@,$LIBOBJS,;t t
40190 s,@LIBSRCS@,$LIBSRCS,;t t
40191 s,@PLAT@,$PLAT,;t t
40192 s,@WITH_SASL@,$WITH_SASL,;t t
40193 s,@WITH_TLS@,$WITH_TLS,;t t
40194 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
40195 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
40196 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
40197 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
40198 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
40199 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
40200 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
40201 s,@BUILD_BDB@,$BUILD_BDB,;t t
40202 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
40203 s,@BUILD_HDB@,$BUILD_HDB,;t t
40204 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
40205 s,@BUILD_META@,$BUILD_META,;t t
40206 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
40207 s,@BUILD_NDB@,$BUILD_NDB,;t t
40208 s,@BUILD_NULL@,$BUILD_NULL,;t t
40209 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
40210 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
40211 s,@BUILD_PERL@,$BUILD_PERL,;t t
40212 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
40213 s,@BUILD_SOCK@,$BUILD_SOCK,;t t
40214 s,@BUILD_SQL@,$BUILD_SQL,;t t
40215 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
40216 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
40217 s,@BUILD_COLLECT@,$BUILD_COLLECT,;t t
40218 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
40219 s,@BUILD_DDS@,$BUILD_DDS,;t t
40220 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
40221 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
40222 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
40223 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
40224 s,@BUILD_MEMBEROF@,$BUILD_MEMBEROF,;t t
40225 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
40226 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
40227 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
40228 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
40229 s,@BUILD_RWM@,$BUILD_RWM,;t t
40230 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
40231 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
40232 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
40233 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
40234 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
40235 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
40236 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
40237 s,@BDB_LIBS@,$BDB_LIBS,;t t
40238 s,@SLAPD_NDB_LIBS@,$SLAPD_NDB_LIBS,;t t
40239 s,@SLAPD_NDB_INCS@,$SLAPD_NDB_INCS,;t t
40240 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
40241 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
40242 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
40243 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
40244 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
40245 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
40246 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
40247 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
40248 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
40249 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
40250 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
40251 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
40252 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
40253 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
40254 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
40255 s,@SASL_LIBS@,$SASL_LIBS,;t t
40256 s,@GSSAPI_LIBS@,$GSSAPI_LIBS,;t t
40257 s,@TLS_LIBS@,$TLS_LIBS,;t t
40258 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
40259 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
40260 s,@LIBSLAPI@,$LIBSLAPI,;t t
40261 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
40262 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
40263 s,@ICU_LIBS@,$ICU_LIBS,;t t
40264 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
40265 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
40266 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
40267 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
40268 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
40269 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
40270 CEOF
40271
40272 _ACEOF
40273
40274   cat >>$CONFIG_STATUS <<\_ACEOF
40275   # Split the substitutions into bite-sized pieces for seds with
40276   # small command number limits, like on Digital OSF/1 and HP-UX.
40277   ac_max_sed_lines=48
40278   ac_sed_frag=1 # Number of current file.
40279   ac_beg=1 # First line for current file.
40280   ac_end=$ac_max_sed_lines # Line after last line for current file.
40281   ac_more_lines=:
40282   ac_sed_cmds=
40283   while $ac_more_lines; do
40284     if test $ac_beg -gt 1; then
40285       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40286     else
40287       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40288     fi
40289     if test ! -s $tmp/subs.frag; then
40290       ac_more_lines=false
40291     else
40292       # The purpose of the label and of the branching condition is to
40293       # speed up the sed processing (if there are no `@' at all, there
40294       # is no need to browse any of the substitutions).
40295       # These are the two extra sed commands mentioned above.
40296       (echo ':t
40297   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40298       if test -z "$ac_sed_cmds"; then
40299         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
40300       else
40301         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
40302       fi
40303       ac_sed_frag=`expr $ac_sed_frag + 1`
40304       ac_beg=$ac_end
40305       ac_end=`expr $ac_end + $ac_max_sed_lines`
40306     fi
40307   done
40308   if test -z "$ac_sed_cmds"; then
40309     ac_sed_cmds=cat
40310   fi
40311 fi # test -n "$CONFIG_FILES"
40312
40313 _ACEOF
40314 cat >>$CONFIG_STATUS <<\_ACEOF
40315 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
40316   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40317   case $ac_file in
40318   - | *:- | *:-:* ) # input from stdin
40319         cat >$tmp/stdin
40320         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40321         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40322   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40323         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40324   * )   ac_file_in=$ac_file.in ;;
40325   esac
40326
40327   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40328   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40329 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40330          X"$ac_file" : 'X\(//\)[^/]' \| \
40331          X"$ac_file" : 'X\(//\)$' \| \
40332          X"$ac_file" : 'X\(/\)' \| \
40333          .     : '\(.\)' 2>/dev/null ||
40334 echo X"$ac_file" |
40335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40336           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40337           /^X\(\/\/\)$/{ s//\1/; q; }
40338           /^X\(\/\).*/{ s//\1/; q; }
40339           s/.*/./; q'`
40340   { if $as_mkdir_p; then
40341     mkdir -p "$ac_dir"
40342   else
40343     as_dir="$ac_dir"
40344     as_dirs=
40345     while test ! -d "$as_dir"; do
40346       as_dirs="$as_dir $as_dirs"
40347       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40349          X"$as_dir" : 'X\(//\)[^/]' \| \
40350          X"$as_dir" : 'X\(//\)$' \| \
40351          X"$as_dir" : 'X\(/\)' \| \
40352          .     : '\(.\)' 2>/dev/null ||
40353 echo X"$as_dir" |
40354     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40355           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40356           /^X\(\/\/\)$/{ s//\1/; q; }
40357           /^X\(\/\).*/{ s//\1/; q; }
40358           s/.*/./; q'`
40359     done
40360     test ! -n "$as_dirs" || mkdir $as_dirs
40361   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40362 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40363    { (exit 1); exit 1; }; }; }
40364
40365   ac_builddir=.
40366
40367 if test "$ac_dir" != .; then
40368   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40369   # A "../" for each directory in $ac_dir_suffix.
40370   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40371 else
40372   ac_dir_suffix= ac_top_builddir=
40373 fi
40374
40375 case $srcdir in
40376   .)  # No --srcdir option.  We are building in place.
40377     ac_srcdir=.
40378     if test -z "$ac_top_builddir"; then
40379        ac_top_srcdir=.
40380     else
40381        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40382     fi ;;
40383   [\\/]* | ?:[\\/]* )  # Absolute path.
40384     ac_srcdir=$srcdir$ac_dir_suffix;
40385     ac_top_srcdir=$srcdir ;;
40386   *) # Relative path.
40387     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40388     ac_top_srcdir=$ac_top_builddir$srcdir ;;
40389 esac
40390
40391 # Do not use `cd foo && pwd` to compute absolute paths, because
40392 # the directories may not exist.
40393 case `pwd` in
40394 .) ac_abs_builddir="$ac_dir";;
40395 *)
40396   case "$ac_dir" in
40397   .) ac_abs_builddir=`pwd`;;
40398   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40399   *) ac_abs_builddir=`pwd`/"$ac_dir";;
40400   esac;;
40401 esac
40402 case $ac_abs_builddir in
40403 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40404 *)
40405   case ${ac_top_builddir}. in
40406   .) ac_abs_top_builddir=$ac_abs_builddir;;
40407   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40408   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40409   esac;;
40410 esac
40411 case $ac_abs_builddir in
40412 .) ac_abs_srcdir=$ac_srcdir;;
40413 *)
40414   case $ac_srcdir in
40415   .) ac_abs_srcdir=$ac_abs_builddir;;
40416   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40417   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40418   esac;;
40419 esac
40420 case $ac_abs_builddir in
40421 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40422 *)
40423   case $ac_top_srcdir in
40424   .) ac_abs_top_srcdir=$ac_abs_builddir;;
40425   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40426   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40427   esac;;
40428 esac
40429
40430
40431   case $INSTALL in
40432   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40433   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40434   esac
40435
40436   if test x"$ac_file" != x-; then
40437     { echo "$as_me:$LINENO: creating $ac_file" >&5
40438 echo "$as_me: creating $ac_file" >&6;}
40439     rm -f "$ac_file"
40440   fi
40441   # Let's still pretend it is `configure' which instantiates (i.e., don't
40442   # use $as_me), people would be surprised to read:
40443   #    /* config.h.  Generated by config.status.  */
40444   if test x"$ac_file" = x-; then
40445     configure_input=
40446   else
40447     configure_input="$ac_file.  "
40448   fi
40449   configure_input=$configure_input"Generated from `echo $ac_file_in |
40450                                      sed 's,.*/,,'` by configure."
40451
40452   # First look for the input files in the build tree, otherwise in the
40453   # src tree.
40454   ac_file_inputs=`IFS=:
40455     for f in $ac_file_in; do
40456       case $f in
40457       -) echo $tmp/stdin ;;
40458       [\\/$]*)
40459          # Absolute (can't be DOS-style, as IFS=:)
40460          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40461 echo "$as_me: error: cannot find input file: $f" >&2;}
40462    { (exit 1); exit 1; }; }
40463          echo "$f";;
40464       *) # Relative
40465          if test -f "$f"; then
40466            # Build tree
40467            echo "$f"
40468          elif test -f "$srcdir/$f"; then
40469            # Source tree
40470            echo "$srcdir/$f"
40471          else
40472            # /dev/null tree
40473            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40474 echo "$as_me: error: cannot find input file: $f" >&2;}
40475    { (exit 1); exit 1; }; }
40476          fi;;
40477       esac
40478     done` || { (exit 1); exit 1; }
40479 _ACEOF
40480 cat >>$CONFIG_STATUS <<_ACEOF
40481   sed "$ac_vpsub
40482 $extrasub
40483 _ACEOF
40484 cat >>$CONFIG_STATUS <<\_ACEOF
40485 :t
40486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40487 s,@configure_input@,$configure_input,;t t
40488 s,@srcdir@,$ac_srcdir,;t t
40489 s,@abs_srcdir@,$ac_abs_srcdir,;t t
40490 s,@top_srcdir@,$ac_top_srcdir,;t t
40491 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40492 s,@builddir@,$ac_builddir,;t t
40493 s,@abs_builddir@,$ac_abs_builddir,;t t
40494 s,@top_builddir@,$ac_top_builddir,;t t
40495 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40496 s,@INSTALL@,$ac_INSTALL,;t t
40497 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40498   rm -f $tmp/stdin
40499   if test x"$ac_file" != x-; then
40500     mv $tmp/out $ac_file
40501   else
40502     cat $tmp/out
40503     rm -f $tmp/out
40504   fi
40505
40506 done
40507 _ACEOF
40508 cat >>$CONFIG_STATUS <<\_ACEOF
40509
40510 #
40511 # CONFIG_HEADER section.
40512 #
40513
40514 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40515 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40516 #
40517 # ac_d sets the value in "#define NAME VALUE" lines.
40518 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
40519 ac_dB='[         ].*$,\1#\2'
40520 ac_dC=' '
40521 ac_dD=',;t'
40522 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40523 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
40524 ac_uB='$,\1#\2define\3'
40525 ac_uC=' '
40526 ac_uD=',;t'
40527
40528 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40529   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40530   case $ac_file in
40531   - | *:- | *:-:* ) # input from stdin
40532         cat >$tmp/stdin
40533         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40534         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40535   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40536         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40537   * )   ac_file_in=$ac_file.in ;;
40538   esac
40539
40540   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40541 echo "$as_me: creating $ac_file" >&6;}
40542
40543   # First look for the input files in the build tree, otherwise in the
40544   # src tree.
40545   ac_file_inputs=`IFS=:
40546     for f in $ac_file_in; do
40547       case $f in
40548       -) echo $tmp/stdin ;;
40549       [\\/$]*)
40550          # Absolute (can't be DOS-style, as IFS=:)
40551          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40552 echo "$as_me: error: cannot find input file: $f" >&2;}
40553    { (exit 1); exit 1; }; }
40554          # Do quote $f, to prevent DOS paths from being IFS'd.
40555          echo "$f";;
40556       *) # Relative
40557          if test -f "$f"; then
40558            # Build tree
40559            echo "$f"
40560          elif test -f "$srcdir/$f"; then
40561            # Source tree
40562            echo "$srcdir/$f"
40563          else
40564            # /dev/null tree
40565            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40566 echo "$as_me: error: cannot find input file: $f" >&2;}
40567    { (exit 1); exit 1; }; }
40568          fi;;
40569       esac
40570     done` || { (exit 1); exit 1; }
40571   # Remove the trailing spaces.
40572   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
40573
40574 _ACEOF
40575
40576 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40577 # `conftest.undefs', that substitutes the proper values into
40578 # config.h.in to produce config.h.  The first handles `#define'
40579 # templates, and the second `#undef' templates.
40580 # And first: Protect against being on the right side of a sed subst in
40581 # config.status.  Protect against being in an unquoted here document
40582 # in config.status.
40583 rm -f conftest.defines conftest.undefs
40584 # Using a here document instead of a string reduces the quoting nightmare.
40585 # Putting comments in sed scripts is not portable.
40586 #
40587 # `end' is used to avoid that the second main sed command (meant for
40588 # 0-ary CPP macros) applies to n-ary macro definitions.
40589 # See the Autoconf documentation for `clear'.
40590 cat >confdef2sed.sed <<\_ACEOF
40591 s/[\\&,]/\\&/g
40592 s,[\\$`],\\&,g
40593 t clear
40594 : clear
40595 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40596 t end
40597 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40598 : end
40599 _ACEOF
40600 # If some macros were called several times there might be several times
40601 # the same #defines, which is useless.  Nevertheless, we may not want to
40602 # sort them, since we want the *last* AC-DEFINE to be honored.
40603 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40604 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40605 rm -f confdef2sed.sed
40606
40607 # This sed command replaces #undef with comments.  This is necessary, for
40608 # example, in the case of _POSIX_SOURCE, which is predefined and required
40609 # on some systems where configure will not decide to define it.
40610 cat >>conftest.undefs <<\_ACEOF
40611 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40612 _ACEOF
40613
40614 # Break up conftest.defines because some shells have a limit on the size
40615 # of here documents, and old seds have small limits too (100 cmds).
40616 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40617 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40618 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40619 echo '  :' >>$CONFIG_STATUS
40620 rm -f conftest.tail
40621 while grep . conftest.defines >/dev/null
40622 do
40623   # Write a limited-size here document to $tmp/defines.sed.
40624   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40625   # Speed up: don't consider the non `#define' lines.
40626   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
40627   # Work around the forget-to-reset-the-flag bug.
40628   echo 't clr' >>$CONFIG_STATUS
40629   echo ': clr' >>$CONFIG_STATUS
40630   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40631   echo 'CEOF
40632   sed -f $tmp/defines.sed $tmp/in >$tmp/out
40633   rm -f $tmp/in
40634   mv $tmp/out $tmp/in
40635 ' >>$CONFIG_STATUS
40636   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40637   rm -f conftest.defines
40638   mv conftest.tail conftest.defines
40639 done
40640 rm -f conftest.defines
40641 echo '  fi # grep' >>$CONFIG_STATUS
40642 echo >>$CONFIG_STATUS
40643
40644 # Break up conftest.undefs because some shells have a limit on the size
40645 # of here documents, and old seds have small limits too (100 cmds).
40646 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
40647 rm -f conftest.tail
40648 while grep . conftest.undefs >/dev/null
40649 do
40650   # Write a limited-size here document to $tmp/undefs.sed.
40651   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40652   # Speed up: don't consider the non `#undef'
40653   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
40654   # Work around the forget-to-reset-the-flag bug.
40655   echo 't clr' >>$CONFIG_STATUS
40656   echo ': clr' >>$CONFIG_STATUS
40657   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40658   echo 'CEOF
40659   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40660   rm -f $tmp/in
40661   mv $tmp/out $tmp/in
40662 ' >>$CONFIG_STATUS
40663   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40664   rm -f conftest.undefs
40665   mv conftest.tail conftest.undefs
40666 done
40667 rm -f conftest.undefs
40668
40669 cat >>$CONFIG_STATUS <<\_ACEOF
40670   # Let's still pretend it is `configure' which instantiates (i.e., don't
40671   # use $as_me), people would be surprised to read:
40672   #    /* config.h.  Generated by config.status.  */
40673   if test x"$ac_file" = x-; then
40674     echo "/* Generated by configure.  */" >$tmp/config.h
40675   else
40676     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
40677   fi
40678   cat $tmp/in >>$tmp/config.h
40679   rm -f $tmp/in
40680   if test x"$ac_file" != x-; then
40681     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40682       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40683 echo "$as_me: $ac_file is unchanged" >&6;}
40684     else
40685       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40686 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40687          X"$ac_file" : 'X\(//\)[^/]' \| \
40688          X"$ac_file" : 'X\(//\)$' \| \
40689          X"$ac_file" : 'X\(/\)' \| \
40690          .     : '\(.\)' 2>/dev/null ||
40691 echo X"$ac_file" |
40692     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40693           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40694           /^X\(\/\/\)$/{ s//\1/; q; }
40695           /^X\(\/\).*/{ s//\1/; q; }
40696           s/.*/./; q'`
40697       { if $as_mkdir_p; then
40698     mkdir -p "$ac_dir"
40699   else
40700     as_dir="$ac_dir"
40701     as_dirs=
40702     while test ! -d "$as_dir"; do
40703       as_dirs="$as_dir $as_dirs"
40704       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40705 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40706          X"$as_dir" : 'X\(//\)[^/]' \| \
40707          X"$as_dir" : 'X\(//\)$' \| \
40708          X"$as_dir" : 'X\(/\)' \| \
40709          .     : '\(.\)' 2>/dev/null ||
40710 echo X"$as_dir" |
40711     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40712           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40713           /^X\(\/\/\)$/{ s//\1/; q; }
40714           /^X\(\/\).*/{ s//\1/; q; }
40715           s/.*/./; q'`
40716     done
40717     test ! -n "$as_dirs" || mkdir $as_dirs
40718   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40719 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40720    { (exit 1); exit 1; }; }; }
40721
40722       rm -f $ac_file
40723       mv $tmp/config.h $ac_file
40724     fi
40725   else
40726     cat $tmp/config.h
40727     rm -f $tmp/config.h
40728   fi
40729 # Compute $ac_file's index in $config_headers.
40730 _am_stamp_count=1
40731 for _am_header in $config_headers :; do
40732   case $_am_header in
40733     $ac_file | $ac_file:* )
40734       break ;;
40735     * )
40736       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40737   esac
40738 done
40739 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40740 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40741          X$ac_file : 'X\(//\)[^/]' \| \
40742          X$ac_file : 'X\(//\)$' \| \
40743          X$ac_file : 'X\(/\)' \| \
40744          .     : '\(.\)' 2>/dev/null ||
40745 echo X$ac_file |
40746     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40747           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40748           /^X\(\/\/\)$/{ s//\1/; q; }
40749           /^X\(\/\).*/{ s//\1/; q; }
40750           s/.*/./; q'`/stamp-h$_am_stamp_count
40751 done
40752 _ACEOF
40753 cat >>$CONFIG_STATUS <<\_ACEOF
40754
40755 #
40756 # CONFIG_COMMANDS section.
40757 #
40758 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40759   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40760   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40761   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40762 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40763          X"$ac_dest" : 'X\(//\)[^/]' \| \
40764          X"$ac_dest" : 'X\(//\)$' \| \
40765          X"$ac_dest" : 'X\(/\)' \| \
40766          .     : '\(.\)' 2>/dev/null ||
40767 echo X"$ac_dest" |
40768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40769           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40770           /^X\(\/\/\)$/{ s//\1/; q; }
40771           /^X\(\/\).*/{ s//\1/; q; }
40772           s/.*/./; q'`
40773   { if $as_mkdir_p; then
40774     mkdir -p "$ac_dir"
40775   else
40776     as_dir="$ac_dir"
40777     as_dirs=
40778     while test ! -d "$as_dir"; do
40779       as_dirs="$as_dir $as_dirs"
40780       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40782          X"$as_dir" : 'X\(//\)[^/]' \| \
40783          X"$as_dir" : 'X\(//\)$' \| \
40784          X"$as_dir" : 'X\(/\)' \| \
40785          .     : '\(.\)' 2>/dev/null ||
40786 echo X"$as_dir" |
40787     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40788           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40789           /^X\(\/\/\)$/{ s//\1/; q; }
40790           /^X\(\/\).*/{ s//\1/; q; }
40791           s/.*/./; q'`
40792     done
40793     test ! -n "$as_dirs" || mkdir $as_dirs
40794   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40795 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40796    { (exit 1); exit 1; }; }; }
40797
40798   ac_builddir=.
40799
40800 if test "$ac_dir" != .; then
40801   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40802   # A "../" for each directory in $ac_dir_suffix.
40803   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40804 else
40805   ac_dir_suffix= ac_top_builddir=
40806 fi
40807
40808 case $srcdir in
40809   .)  # No --srcdir option.  We are building in place.
40810     ac_srcdir=.
40811     if test -z "$ac_top_builddir"; then
40812        ac_top_srcdir=.
40813     else
40814        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40815     fi ;;
40816   [\\/]* | ?:[\\/]* )  # Absolute path.
40817     ac_srcdir=$srcdir$ac_dir_suffix;
40818     ac_top_srcdir=$srcdir ;;
40819   *) # Relative path.
40820     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40821     ac_top_srcdir=$ac_top_builddir$srcdir ;;
40822 esac
40823
40824 # Do not use `cd foo && pwd` to compute absolute paths, because
40825 # the directories may not exist.
40826 case `pwd` in
40827 .) ac_abs_builddir="$ac_dir";;
40828 *)
40829   case "$ac_dir" in
40830   .) ac_abs_builddir=`pwd`;;
40831   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40832   *) ac_abs_builddir=`pwd`/"$ac_dir";;
40833   esac;;
40834 esac
40835 case $ac_abs_builddir in
40836 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40837 *)
40838   case ${ac_top_builddir}. in
40839   .) ac_abs_top_builddir=$ac_abs_builddir;;
40840   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40841   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40842   esac;;
40843 esac
40844 case $ac_abs_builddir in
40845 .) ac_abs_srcdir=$ac_srcdir;;
40846 *)
40847   case $ac_srcdir in
40848   .) ac_abs_srcdir=$ac_abs_builddir;;
40849   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40850   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40851   esac;;
40852 esac
40853 case $ac_abs_builddir in
40854 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40855 *)
40856   case $ac_top_srcdir in
40857   .) ac_abs_top_srcdir=$ac_abs_builddir;;
40858   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40859   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40860   esac;;
40861 esac
40862
40863
40864   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40865 echo "$as_me: executing $ac_dest commands" >&6;}
40866   case $ac_dest in
40867     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40868   # Strip MF so we end up with the name of the file.
40869   mf=`echo "$mf" | sed -e 's/:.*$//'`
40870   # Check whether this is an Automake generated Makefile or not.
40871   # We used to match only the files named `Makefile.in', but
40872   # some people rename them; so instead we look at the file content.
40873   # Grep'ing the first line is not enough: some people post-process
40874   # each Makefile.in and add a new line on top of each file to say so.
40875   # So let's grep whole file.
40876   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40877     dirpart=`(dirname "$mf") 2>/dev/null ||
40878 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40879          X"$mf" : 'X\(//\)[^/]' \| \
40880          X"$mf" : 'X\(//\)$' \| \
40881          X"$mf" : 'X\(/\)' \| \
40882          .     : '\(.\)' 2>/dev/null ||
40883 echo X"$mf" |
40884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40885           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40886           /^X\(\/\/\)$/{ s//\1/; q; }
40887           /^X\(\/\).*/{ s//\1/; q; }
40888           s/.*/./; q'`
40889   else
40890     continue
40891   fi
40892   # Extract the definition of DEPDIR, am__include, and am__quote
40893   # from the Makefile without running `make'.
40894   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40895   test -z "$DEPDIR" && continue
40896   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40897   test -z "am__include" && continue
40898   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40899   # When using ansi2knr, U may be empty or an underscore; expand it
40900   U=`sed -n 's/^U = //p' < "$mf"`
40901   # Find all dependency output files, they are included files with
40902   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40903   # simplest approach to changing $(DEPDIR) to its actual value in the
40904   # expansion.
40905   for file in `sed -n "
40906     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40907        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40908     # Make sure the directory exists.
40909     test -f "$dirpart/$file" && continue
40910     fdir=`(dirname "$file") 2>/dev/null ||
40911 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40912          X"$file" : 'X\(//\)[^/]' \| \
40913          X"$file" : 'X\(//\)$' \| \
40914          X"$file" : 'X\(/\)' \| \
40915          .     : '\(.\)' 2>/dev/null ||
40916 echo X"$file" |
40917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40918           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40919           /^X\(\/\/\)$/{ s//\1/; q; }
40920           /^X\(\/\).*/{ s//\1/; q; }
40921           s/.*/./; q'`
40922     { if $as_mkdir_p; then
40923     mkdir -p $dirpart/$fdir
40924   else
40925     as_dir=$dirpart/$fdir
40926     as_dirs=
40927     while test ! -d "$as_dir"; do
40928       as_dirs="$as_dir $as_dirs"
40929       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40931          X"$as_dir" : 'X\(//\)[^/]' \| \
40932          X"$as_dir" : 'X\(//\)$' \| \
40933          X"$as_dir" : 'X\(/\)' \| \
40934          .     : '\(.\)' 2>/dev/null ||
40935 echo X"$as_dir" |
40936     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40937           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40938           /^X\(\/\/\)$/{ s//\1/; q; }
40939           /^X\(\/\).*/{ s//\1/; q; }
40940           s/.*/./; q'`
40941     done
40942     test ! -n "$as_dirs" || mkdir $as_dirs
40943   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
40944 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
40945    { (exit 1); exit 1; }; }; }
40946
40947     # echo "creating $dirpart/$file"
40948     echo '# dummy' > "$dirpart/$file"
40949   done
40950 done
40951  ;;
40952     default )
40953 chmod +x tests/run
40954 date > stamp-h
40955 BACKENDSC="servers/slapd/backends.c"
40956 echo "Making $BACKENDSC"
40957 rm -f $BACKENDSC
40958 cat > $BACKENDSC << ENDX
40959 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40960  *
40961  * Copyright 1998-2009 The OpenLDAP Foundation.
40962  * All rights reserved.
40963  *
40964  * Redistribution and use in source and binary forms, with or without
40965  * modification, are permitted only as authorized by the OpenLDAP
40966  * Public License.
40967  *
40968  * A copy of this license is available in the file LICENSE in the
40969  * top-level directory of the distribution or, alternatively, at
40970  * <http://www.OpenLDAP.org/license.html>.
40971  */
40972 /* This file is automatically generated by configure; please do not edit. */
40973
40974 #include "portable.h"
40975 #include "slap.h"
40976
40977 ENDX
40978 if test "${STATIC_BACKENDS}"; then
40979         for b in config ${STATIC_BACKENDS}; do
40980                 bb=`echo "${b}" | sed -e 's/back-//'`
40981                 cat >> $BACKENDSC << ENDX
40982 extern BI_init ${bb}_back_initialize;
40983 ENDX
40984         done
40985
40986         cat >> $BACKENDSC << ENDX
40987
40988 BackendInfo slap_binfo[] = {
40989 ENDX
40990
40991         for b in config ${STATIC_BACKENDS}; do
40992                 bb=`echo "${b}" | sed -e 's/back-//'`
40993                 echo "    Add ${bb} ..."
40994                 cat >> $BACKENDSC << ENDX
40995         { "${bb}", ${bb}_back_initialize },
40996 ENDX
40997         done
40998
40999         cat >> $BACKENDSC << ENDX
41000         { NULL, NULL },
41001 };
41002
41003 /* end of generated file */
41004 ENDX
41005 fi
41006 OVERLAYSC="servers/slapd/overlays/statover.c"
41007 echo "Making $OVERLAYSC"
41008 rm -f $OVERLAYSC
41009 cat > $OVERLAYSC << ENDX
41010 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
41011  *
41012  * Copyright 1998-2009 The OpenLDAP Foundation.
41013  * All rights reserved.
41014  *
41015  * Redistribution and use in source and binary forms, with or without
41016  * modification, are permitted only as authorized by the OpenLDAP
41017  * Public License.
41018  *
41019  * A copy of this license is available in the file LICENSE in the
41020  * top-level directory of the distribution or, alternatively, at
41021  * <http://www.OpenLDAP.org/license.html>.
41022  */
41023 /* This file is automatically generated by configure; please do not edit. */
41024
41025 #include "portable.h"
41026 #include "slap.h"
41027
41028 ENDX
41029 if test "${STATIC_OVERLAYS}"; then
41030         for o in ${STATIC_OVERLAYS}; do
41031                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
41032                 cat >> $OVERLAYSC << ENDX
41033 extern OV_init ${oo}_initialize;
41034 ENDX
41035         done
41036 fi
41037
41038 cat >> $OVERLAYSC << ENDX
41039
41040 OverlayInit slap_oinfo[] = {
41041 ENDX
41042
41043 if test "${STATIC_OVERLAYS}"; then
41044         for o in ${STATIC_OVERLAYS}; do
41045                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
41046                 echo "    Add ${oo} ..."
41047                 cat >> $OVERLAYSC << ENDX
41048         { "${oo}", ${oo}_initialize },
41049 ENDX
41050         done
41051 fi
41052
41053         cat >> $OVERLAYSC << ENDX
41054         { NULL, NULL },
41055 };
41056
41057 /* end of generated file */
41058 ENDX
41059
41060 if test "${ol_cv_mkdep}" = no; then
41061         echo '(Do not "make depend"; we do not know how to build dependencies)'
41062 else
41063         echo 'Please run "make depend" to build dependencies'
41064 fi
41065  ;;
41066   esac
41067 done
41068 _ACEOF
41069
41070 cat >>$CONFIG_STATUS <<\_ACEOF
41071
41072 { (exit 0); exit 0; }
41073 _ACEOF
41074 chmod +x $CONFIG_STATUS
41075 ac_clean_files=$ac_clean_files_save
41076
41077
41078 # configure is writing to config.log, and then calls config.status.
41079 # config.status does its own redirection, appending to config.log.
41080 # Unfortunately, on DOS this fails, as config.log is still kept open
41081 # by configure, so config.status won't be able to write to it; its
41082 # output is simply discarded.  So we exec the FD to /dev/null,
41083 # effectively closing config.log, so it can be properly (re)opened and
41084 # appended to by config.status.  When coming back to configure, we
41085 # need to make the FD available again.
41086 if test "$no_create" != yes; then
41087   ac_cs_success=:
41088   ac_config_status_args=
41089   test "$silent" = yes &&
41090     ac_config_status_args="$ac_config_status_args --quiet"
41091   exec 5>/dev/null
41092   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41093   exec 5>>config.log
41094   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41095   # would make configure fail if this is the last instruction.
41096   $ac_cs_success || { (exit 1); exit 1; }
41097 fi
41098