]> git.sur5r.net Git - openldap/blob - configure
Tone down debug messages
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.620 2006/01/06 17:01:12 ando Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293        echo_test_string=`eval $cmd` &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929
930 #
931 # Report the --help message.
932 #
933 if test "$ac_init_help" = "long"; then
934   # Omit some internal or obsolete options to make the list less imposing.
935   # This message is too long to be a string in the A/UX 3.1 sh.
936   cat <<_ACEOF
937 \`configure' configures this package to adapt to many kinds of systems.
938
939 Usage: $0 [OPTION]... [VAR=VALUE]...
940
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE.  See below for descriptions of some of the useful variables.
943
944 Defaults for the options are specified in brackets.
945
946 Configuration:
947   -h, --help              display this help and exit
948       --help=short        display options specific to this package
949       --help=recursive    display the short help of all the included packages
950   -V, --version           display version information and exit
951   -q, --quiet, --silent   do not print \`checking...' messages
952       --cache-file=FILE   cache test results in FILE [disabled]
953   -C, --config-cache      alias for \`--cache-file=config.cache'
954   -n, --no-create         do not create output files
955       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
956
957 _ACEOF
958
959   cat <<_ACEOF
960 Installation directories:
961   --prefix=PREFIX         install architecture-independent files in PREFIX
962                           [$ac_default_prefix]
963   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
964                           [PREFIX]
965
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
970
971 For better control, use the options below.
972
973 Fine tuning of the installation directories:
974   --bindir=DIR           user executables [EPREFIX/bin]
975   --sbindir=DIR          system admin executables [EPREFIX/sbin]
976   --libexecdir=DIR       program executables [EPREFIX/libexec]
977   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
978   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
979   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
980   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
981   --libdir=DIR           object code libraries [EPREFIX/lib]
982   --includedir=DIR       C header files [PREFIX/include]
983   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
984   --infodir=DIR          info documentation [PREFIX/info]
985   --mandir=DIR           man documentation [PREFIX/man]
986 _ACEOF
987
988   cat <<\_ACEOF
989
990 Program names:
991   --program-prefix=PREFIX            prepend PREFIX to installed program names
992   --program-suffix=SUFFIX            append SUFFIX to installed program names
993   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
994
995 System types:
996   --build=BUILD     configure for building on BUILD [guessed]
997   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
998   --target=TARGET   configure for building compilers for TARGET [HOST]
999 _ACEOF
1000 fi
1001
1002 if test -n "$ac_init_help"; then
1003
1004   cat <<\_ACEOF
1005
1006 Optional Features:
1007   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1008   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1009   --enable-debug          enable debugging no|yes|traditional [yes]
1010   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1011   --enable-syslog         enable syslog support [auto]
1012   --enable-proctitle      enable proctitle support [yes]
1013   --enable-ipv6           enable IPv6 support [auto]
1014   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1015
1016 SLAPD (Standalone LDAP Daemon) Options:
1017   --enable-slapd          enable building slapd [yes]
1018     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1019     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1020     --enable-cleartext    enable cleartext passwords [yes]
1021     --enable-crypt        enable crypt(3) passwords [no]
1022     --enable-lmpasswd     enable LAN Manager passwords [no]
1023     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1024     --enable-modules      enable dynamic module support [no]
1025     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1026     --enable-rlookups     enable reverse lookups of client hostnames [no]
1027     --enable-slapi        enable SLAPI support (experimental) [no]
1028     --enable-slp          enable SLPv2 support [no]
1029     --enable-wrappers     enable tcp wrapper support [no]
1030
1031 SLAPD Backend Options:
1032     --enable-backends     enable all available backends no|yes|mod
1033     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1034     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1035     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1036     --enable-ldap         enable ldap backend no|yes|mod [no]
1037     --enable-ldbm         enable ldbm backend no|yes|mod [no]
1038       --enable-ldbm-api   use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1039       --enable-ldbm-type  use LDBM type auto|btree|hash [auto]
1040     --enable-meta         enable metadirectory backend no|yes|mod [no]
1041     --enable-monitor      enable monitor backend no|yes|mod [yes]
1042     --enable-null         enable null backend no|yes|mod [no]
1043     --enable-passwd       enable passwd backend no|yes|mod [no]
1044     --enable-perl         enable perl backend no|yes|mod [no]
1045     --enable-relay        enable relay backend no|yes|mod [yes]
1046     --enable-shell        enable shell backend no|yes|mod [no]
1047     --enable-sql          enable sql backend no|yes|mod [no]
1048
1049 SLAPD Overlay Options:
1050     --enable-overlays     enable all available overlays no|yes|mod
1051     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1052     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1053     --enable-denyop       Deny Operation overlay no|yes|mod [no]
1054     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1055     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1056     --enable-lastmod      Last Modification overlay no|yes|mod [no]
1057     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1058     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1059     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1060     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1061     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1062     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1063     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1064     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1065     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1066
1067 SLURPD (Replication Daemon) Options:
1068   --enable-slurpd         enable building slurpd [auto]
1069
1070 Library Generation & Linking Options
1071   --enable-static[=PKGS]
1072                           build static libraries [default=yes]
1073   --enable-shared[=PKGS]
1074                           build shared libraries [default=yes]
1075   --enable-fast-install[=PKGS]
1076                           optimize for fast installation [default=yes]
1077   --disable-dependency-tracking  speeds up one-time build
1078   --enable-dependency-tracking   do not reject slow dependency extractors
1079   --disable-libtool-lock  avoid locking (might break parallel builds)
1080
1081 Optional Packages:
1082   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1083   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1084   --with-subdir=DIR       change default subdirectory used for installs
1085   --with-cyrus-sasl       with Cyrus SASL support [auto]
1086   --with-fetch            with fetch(3) URL support [auto]
1087   --with-threads          with threads [auto]
1088   --with-tls              with TLS/SSL support [auto]
1089   --with-yielding-select  with implicitly yielding select [auto]
1090   --with-multiple-precision
1091                           multiple precision support for statistics
1092                           auto|bignum|gmp [auto]
1093
1094   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1095   --with-pic              try to use only PIC/non-PIC objects [default=use
1096                           both]
1097   --with-tags[=TAGS]
1098                           include additional configurations [automatic]
1099
1100 See INSTALL file for further details.
1101
1102 Some influential environment variables:
1103   CC          C compiler command
1104   CFLAGS      C compiler flags
1105   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1106               nonstandard directory <lib dir>
1107   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108               headers in a nonstandard directory <include dir>
1109   CPP         C preprocessor
1110
1111 Use these variables to override the choices made by `configure' or to help
1112 it to find libraries and programs with nonstandard names/locations.
1113
1114 _ACEOF
1115 fi
1116
1117 if test "$ac_init_help" = "recursive"; then
1118   # If there are subdirs, report their specific --help.
1119   ac_popdir=`pwd`
1120   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1121     test -d $ac_dir || continue
1122     ac_builddir=.
1123
1124 if test "$ac_dir" != .; then
1125   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1126   # A "../" for each directory in $ac_dir_suffix.
1127   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1128 else
1129   ac_dir_suffix= ac_top_builddir=
1130 fi
1131
1132 case $srcdir in
1133   .)  # No --srcdir option.  We are building in place.
1134     ac_srcdir=.
1135     if test -z "$ac_top_builddir"; then
1136        ac_top_srcdir=.
1137     else
1138        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1139     fi ;;
1140   [\\/]* | ?:[\\/]* )  # Absolute path.
1141     ac_srcdir=$srcdir$ac_dir_suffix;
1142     ac_top_srcdir=$srcdir ;;
1143   *) # Relative path.
1144     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1145     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1146 esac
1147
1148 # Do not use `cd foo && pwd` to compute absolute paths, because
1149 # the directories may not exist.
1150 case `pwd` in
1151 .) ac_abs_builddir="$ac_dir";;
1152 *)
1153   case "$ac_dir" in
1154   .) ac_abs_builddir=`pwd`;;
1155   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1156   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1157   esac;;
1158 esac
1159 case $ac_abs_builddir in
1160 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 *)
1162   case ${ac_top_builddir}. in
1163   .) ac_abs_top_builddir=$ac_abs_builddir;;
1164   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1165   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1166   esac;;
1167 esac
1168 case $ac_abs_builddir in
1169 .) ac_abs_srcdir=$ac_srcdir;;
1170 *)
1171   case $ac_srcdir in
1172   .) ac_abs_srcdir=$ac_abs_builddir;;
1173   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1174   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1175   esac;;
1176 esac
1177 case $ac_abs_builddir in
1178 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 *)
1180   case $ac_top_srcdir in
1181   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1182   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1183   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1184   esac;;
1185 esac
1186
1187     cd $ac_dir
1188     # Check for guested configure; otherwise get Cygnus style configure.
1189     if test -f $ac_srcdir/configure.gnu; then
1190       echo
1191       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1192     elif test -f $ac_srcdir/configure; then
1193       echo
1194       $SHELL $ac_srcdir/configure  --help=recursive
1195     elif test -f $ac_srcdir/configure.ac ||
1196            test -f $ac_srcdir/configure.in; then
1197       echo
1198       $ac_configure --help
1199     else
1200       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1201     fi
1202     cd $ac_popdir
1203   done
1204 fi
1205
1206 test -n "$ac_init_help" && exit 0
1207 if $ac_init_version; then
1208   cat <<\_ACEOF
1209
1210 Copyright (C) 2003 Free Software Foundation, Inc.
1211 This configure script is free software; the Free Software Foundation
1212 gives unlimited permission to copy, distribute and modify it.
1213
1214 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1215 Restrictions apply, see COPYRIGHT and LICENSE files.
1216 _ACEOF
1217   exit 0
1218 fi
1219 exec 5>config.log
1220 cat >&5 <<_ACEOF
1221 This file contains any messages produced by compilers while
1222 running configure, to aid debugging if configure makes a mistake.
1223
1224 It was created by $as_me, which was
1225 generated by GNU Autoconf 2.59.  Invocation command line was
1226
1227   $ $0 $@
1228
1229 _ACEOF
1230 {
1231 cat <<_ASUNAME
1232 ## --------- ##
1233 ## Platform. ##
1234 ## --------- ##
1235
1236 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1237 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1238 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1239 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1240 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1241
1242 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1243 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1244
1245 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1246 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1247 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1248 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1249 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1250 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1251 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1252
1253 _ASUNAME
1254
1255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1256 for as_dir in $PATH
1257 do
1258   IFS=$as_save_IFS
1259   test -z "$as_dir" && as_dir=.
1260   echo "PATH: $as_dir"
1261 done
1262
1263 } >&5
1264
1265 cat >&5 <<_ACEOF
1266
1267
1268 ## ----------- ##
1269 ## Core tests. ##
1270 ## ----------- ##
1271
1272 _ACEOF
1273
1274
1275 # Keep a trace of the command line.
1276 # Strip out --no-create and --no-recursion so they do not pile up.
1277 # Strip out --silent because we don't want to record it for future runs.
1278 # Also quote any args containing shell meta-characters.
1279 # Make two passes to allow for proper duplicate-argument suppression.
1280 ac_configure_args=
1281 ac_configure_args0=
1282 ac_configure_args1=
1283 ac_sep=
1284 ac_must_keep_next=false
1285 for ac_pass in 1 2
1286 do
1287   for ac_arg
1288   do
1289     case $ac_arg in
1290     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1291     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292     | -silent | --silent | --silen | --sile | --sil)
1293       continue ;;
1294     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1296     esac
1297     case $ac_pass in
1298     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1299     2)
1300       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1301       if test $ac_must_keep_next = true; then
1302         ac_must_keep_next=false # Got value, back to normal.
1303       else
1304         case $ac_arg in
1305           *=* | --config-cache | -C | -disable-* | --disable-* \
1306           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1307           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1308           | -with-* | --with-* | -without-* | --without-* | --x)
1309             case "$ac_configure_args0 " in
1310               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1311             esac
1312             ;;
1313           -* ) ac_must_keep_next=true ;;
1314         esac
1315       fi
1316       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1317       # Get rid of the leading space.
1318       ac_sep=" "
1319       ;;
1320     esac
1321   done
1322 done
1323 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1324 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1325
1326 # When interrupted or exit'd, cleanup temporary files, and complete
1327 # config.log.  We remove comments because anyway the quotes in there
1328 # would cause problems or look ugly.
1329 # WARNING: Be sure not to use single quotes in there, as some shells,
1330 # such as our DU 5.0 friend, will then `close' the trap.
1331 trap 'exit_status=$?
1332   # Save into config.log some information that might help in debugging.
1333   {
1334     echo
1335
1336     cat <<\_ASBOX
1337 ## ---------------- ##
1338 ## Cache variables. ##
1339 ## ---------------- ##
1340 _ASBOX
1341     echo
1342     # The following way of writing the cache mishandles newlines in values,
1343 {
1344   (set) 2>&1 |
1345     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1346     *ac_space=\ *)
1347       sed -n \
1348         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1349           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1350       ;;
1351     *)
1352       sed -n \
1353         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1354       ;;
1355     esac;
1356 }
1357     echo
1358
1359     cat <<\_ASBOX
1360 ## ----------------- ##
1361 ## Output variables. ##
1362 ## ----------------- ##
1363 _ASBOX
1364     echo
1365     for ac_var in $ac_subst_vars
1366     do
1367       eval ac_val=$`echo $ac_var`
1368       echo "$ac_var='"'"'$ac_val'"'"'"
1369     done | sort
1370     echo
1371
1372     if test -n "$ac_subst_files"; then
1373       cat <<\_ASBOX
1374 ## ------------- ##
1375 ## Output files. ##
1376 ## ------------- ##
1377 _ASBOX
1378       echo
1379       for ac_var in $ac_subst_files
1380       do
1381         eval ac_val=$`echo $ac_var`
1382         echo "$ac_var='"'"'$ac_val'"'"'"
1383       done | sort
1384       echo
1385     fi
1386
1387     if test -s confdefs.h; then
1388       cat <<\_ASBOX
1389 ## ----------- ##
1390 ## confdefs.h. ##
1391 ## ----------- ##
1392 _ASBOX
1393       echo
1394       sed "/^$/d" confdefs.h | sort
1395       echo
1396     fi
1397     test "$ac_signal" != 0 &&
1398       echo "$as_me: caught signal $ac_signal"
1399     echo "$as_me: exit $exit_status"
1400   } >&5
1401   rm -f core *.core &&
1402   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1403     exit $exit_status
1404      ' 0
1405 for ac_signal in 1 2 13 15; do
1406   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1407 done
1408 ac_signal=0
1409
1410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1411 rm -rf conftest* confdefs.h
1412 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1413 echo >confdefs.h
1414
1415 # Predefined preprocessor variables.
1416
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_NAME "$PACKAGE_NAME"
1419 _ACEOF
1420
1421
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1424 _ACEOF
1425
1426
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1429 _ACEOF
1430
1431
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_STRING "$PACKAGE_STRING"
1434 _ACEOF
1435
1436
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1439 _ACEOF
1440
1441
1442 # Let the site file select an alternate cache file if it wants to.
1443 # Prefer explicitly selected file to automatically selected ones.
1444 if test -z "$CONFIG_SITE"; then
1445   if test "x$prefix" != xNONE; then
1446     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1447   else
1448     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1449   fi
1450 fi
1451 for ac_site_file in $CONFIG_SITE; do
1452   if test -r "$ac_site_file"; then
1453     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1454 echo "$as_me: loading site script $ac_site_file" >&6;}
1455     sed 's/^/| /' "$ac_site_file" >&5
1456     . "$ac_site_file"
1457   fi
1458 done
1459
1460
1461 # Check that the precious variables saved in the cache have kept the same
1462 # value.
1463 ac_cache_corrupted=false
1464 for ac_var in `(set) 2>&1 |
1465                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1466   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467   eval ac_new_set=\$ac_env_${ac_var}_set
1468   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469   eval ac_new_val="\$ac_env_${ac_var}_value"
1470   case $ac_old_set,$ac_new_set in
1471     set,)
1472       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474       ac_cache_corrupted=: ;;
1475     ,set)
1476       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478       ac_cache_corrupted=: ;;
1479     ,);;
1480     *)
1481       if test "x$ac_old_val" != "x$ac_new_val"; then
1482         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1483 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1484         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1485 echo "$as_me:   former value:  $ac_old_val" >&2;}
1486         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1487 echo "$as_me:   current value: $ac_new_val" >&2;}
1488         ac_cache_corrupted=:
1489       fi;;
1490   esac
1491   # Pass precious variables to config.status.
1492   if test "$ac_new_set" = set; then
1493     case $ac_new_val in
1494     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496     *) ac_arg=$ac_var=$ac_new_val ;;
1497     esac
1498     case " $ac_configure_args " in
1499       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1500       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1501     esac
1502   fi
1503 done
1504 if $ac_cache_corrupted; then
1505   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509    { (exit 1); exit 1; }; }
1510 fi
1511
1512 ac_ext=c
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559 ac_aux_dir=
1560 for ac_dir in build $srcdir/build; do
1561   if test -f $ac_dir/install-sh; then
1562     ac_aux_dir=$ac_dir
1563     ac_install_sh="$ac_aux_dir/install-sh -c"
1564     break
1565   elif test -f $ac_dir/install.sh; then
1566     ac_aux_dir=$ac_dir
1567     ac_install_sh="$ac_aux_dir/install.sh -c"
1568     break
1569   elif test -f $ac_dir/shtool; then
1570     ac_aux_dir=$ac_dir
1571     ac_install_sh="$ac_aux_dir/shtool install -c"
1572     break
1573   fi
1574 done
1575 if test -z "$ac_aux_dir"; then
1576   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1577 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1578    { (exit 1); exit 1; }; }
1579 fi
1580 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1581 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1582 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1583
1584 eval `$ac_aux_dir/version.sh`
1585 if test -z "$OL_STRING"; then
1586         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1587 echo "$as_me: error: could not determine version" >&2;}
1588    { (exit 1); exit 1; }; }
1589 fi
1590
1591 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1592         ac_cv_shtool="$ac_aux_dir/shtool"
1593 else
1594         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1595 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1596    { (exit 1); exit 1; }; }
1597 fi
1598
1599 SHTOOL="$ac_cv_shtool"
1600
1601 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1602 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1603
1604 OPENLDAP_CVS=""
1605 if test -d $ac_aux_dir/CVS; then
1606         OPENLDAP_CVS="(from CVS sources) "
1607 fi
1608
1609 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1610
1611 # Make sure we can run config.sub.
1612 $ac_config_sub sun4 >/dev/null 2>&1 ||
1613   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1614 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1615    { (exit 1); exit 1; }; }
1616
1617 echo "$as_me:$LINENO: checking build system type" >&5
1618 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1619 if test "${ac_cv_build+set}" = set; then
1620   echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622   ac_cv_build_alias=$build_alias
1623 test -z "$ac_cv_build_alias" &&
1624   ac_cv_build_alias=`$ac_config_guess`
1625 test -z "$ac_cv_build_alias" &&
1626   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1627 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1628    { (exit 1); exit 1; }; }
1629 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1630   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1631 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1632    { (exit 1); exit 1; }; }
1633
1634 fi
1635 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1636 echo "${ECHO_T}$ac_cv_build" >&6
1637 build=$ac_cv_build
1638 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1639 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1640 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1641
1642
1643 echo "$as_me:$LINENO: checking host system type" >&5
1644 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1645 if test "${ac_cv_host+set}" = set; then
1646   echo $ECHO_N "(cached) $ECHO_C" >&6
1647 else
1648   ac_cv_host_alias=$host_alias
1649 test -z "$ac_cv_host_alias" &&
1650   ac_cv_host_alias=$ac_cv_build_alias
1651 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1652   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1653 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1654    { (exit 1); exit 1; }; }
1655
1656 fi
1657 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1658 echo "${ECHO_T}$ac_cv_host" >&6
1659 host=$ac_cv_host
1660 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1661 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1662 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1663
1664
1665 echo "$as_me:$LINENO: checking target system type" >&5
1666 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1667 if test "${ac_cv_target+set}" = set; then
1668   echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670   ac_cv_target_alias=$target_alias
1671 test "x$ac_cv_target_alias" = "x" &&
1672   ac_cv_target_alias=$ac_cv_host_alias
1673 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1674   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1675 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1676    { (exit 1); exit 1; }; }
1677
1678 fi
1679 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1680 echo "${ECHO_T}$ac_cv_target" >&6
1681 target=$ac_cv_target
1682 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1683 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1684 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685
1686
1687 # The aliases save the names the user supplied, while $host etc.
1688 # will get canonicalized.
1689 test -n "$target_alias" &&
1690   test "$program_prefix$program_suffix$program_transform_name" = \
1691     NONENONEs,x,x, &&
1692   program_prefix=${target_alias}-
1693
1694 am__api_version="1.9"
1695 # Find a good install program.  We prefer a C program (faster),
1696 # so one script is as good as another.  But avoid the broken or
1697 # incompatible versions:
1698 # SysV /etc/install, /usr/sbin/install
1699 # SunOS /usr/etc/install
1700 # IRIX /sbin/install
1701 # AIX /bin/install
1702 # AmigaOS /C/install, which installs bootblocks on floppy discs
1703 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1704 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1705 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1706 # OS/2's system install, which has a completely different semantic
1707 # ./install, which can be erroneously created by make from ./install.sh.
1708 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1709 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1710 if test -z "$INSTALL"; then
1711 if test "${ac_cv_path_install+set}" = set; then
1712   echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717   IFS=$as_save_IFS
1718   test -z "$as_dir" && as_dir=.
1719   # Account for people who put trailing slashes in PATH elements.
1720 case $as_dir/ in
1721   ./ | .// | /cC/* | \
1722   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1723   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1724   /usr/ucb/* ) ;;
1725   *)
1726     # OSF1 and SCO ODT 3.0 have their own names for install.
1727     # Don't use installbsd from OSF since it installs stuff as root
1728     # by default.
1729     for ac_prog in ginstall scoinst install; do
1730       for ac_exec_ext in '' $ac_executable_extensions; do
1731         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1732           if test $ac_prog = install &&
1733             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1734             # AIX install.  It has an incompatible calling convention.
1735             :
1736           elif test $ac_prog = install &&
1737             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738             # program-specific install script used by HP pwplus--don't use.
1739             :
1740           else
1741             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1742             break 3
1743           fi
1744         fi
1745       done
1746     done
1747     ;;
1748 esac
1749 done
1750
1751
1752 fi
1753   if test "${ac_cv_path_install+set}" = set; then
1754     INSTALL=$ac_cv_path_install
1755   else
1756     # As a last resort, use the slow shell script.  We don't cache a
1757     # path for INSTALL within a source directory, because that will
1758     # break other packages using the cache if that directory is
1759     # removed, or if the path is relative.
1760     INSTALL=$ac_install_sh
1761   fi
1762 fi
1763 echo "$as_me:$LINENO: result: $INSTALL" >&5
1764 echo "${ECHO_T}$INSTALL" >&6
1765
1766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1767 # It thinks the first close brace ends the variable substitution.
1768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1769
1770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1771
1772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1773
1774 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1775 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1776 # Just in case
1777 sleep 1
1778 echo timestamp > conftest.file
1779 # Do `set' in a subshell so we don't clobber the current shell's
1780 # arguments.  Must try -L first in case configure is actually a
1781 # symlink; some systems play weird games with the mod time of symlinks
1782 # (eg FreeBSD returns the mod time of the symlink's containing
1783 # directory).
1784 if (
1785    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1786    if test "$*" = "X"; then
1787       # -L didn't work.
1788       set X `ls -t $srcdir/configure conftest.file`
1789    fi
1790    rm -f conftest.file
1791    if test "$*" != "X $srcdir/configure conftest.file" \
1792       && test "$*" != "X conftest.file $srcdir/configure"; then
1793
1794       # If neither matched, then we have a broken ls.  This can happen
1795       # if, for instance, CONFIG_SHELL is bash and it inherits a
1796       # broken ls alias from the environment.  This has actually
1797       # happened.  Such a system could not be considered "sane".
1798       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1799 alias in your environment" >&5
1800 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1801 alias in your environment" >&2;}
1802    { (exit 1); exit 1; }; }
1803    fi
1804
1805    test "$2" = conftest.file
1806    )
1807 then
1808    # Ok.
1809    :
1810 else
1811    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1812 Check your system clock" >&5
1813 echo "$as_me: error: newly created file is older than distributed files!
1814 Check your system clock" >&2;}
1815    { (exit 1); exit 1; }; }
1816 fi
1817 echo "$as_me:$LINENO: result: yes" >&5
1818 echo "${ECHO_T}yes" >&6
1819 test "$program_prefix" != NONE &&
1820   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1821 # Use a double $ so make ignores it.
1822 test "$program_suffix" != NONE &&
1823   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1824 # Double any \ or $.  echo might interpret backslashes.
1825 # By default was `s,x,x', remove it if useless.
1826 cat <<\_ACEOF >conftest.sed
1827 s/[\\$]/&&/g;s/;s,x,x,$//
1828 _ACEOF
1829 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1830 rm conftest.sed
1831
1832 # expand $ac_aux_dir to an absolute path
1833 am_aux_dir=`cd $ac_aux_dir && pwd`
1834
1835 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1836 # Use eval to expand $SHELL
1837 if eval "$MISSING --run true"; then
1838   am_missing_run="$MISSING --run "
1839 else
1840   am_missing_run=
1841   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1842 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1843 fi
1844
1845 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1846   # We used to keeping the `.' as first argument, in order to
1847   # allow $(mkdir_p) to be used without argument.  As in
1848   #   $(mkdir_p) $(somedir)
1849   # where $(somedir) is conditionally defined.  However this is wrong
1850   # for two reasons:
1851   #  1. if the package is installed by a user who cannot write `.'
1852   #     make install will fail,
1853   #  2. the above comment should most certainly read
1854   #     $(mkdir_p) $(DESTDIR)$(somedir)
1855   #     so it does not work when $(somedir) is undefined and
1856   #     $(DESTDIR) is not.
1857   #  To support the latter case, we have to write
1858   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1859   #  so the `.' trick is pointless.
1860   mkdir_p='mkdir -p --'
1861 else
1862   # On NextStep and OpenStep, the `mkdir' command does not
1863   # recognize any option.  It will interpret all options as
1864   # directories to create, and then abort because `.' already
1865   # exists.
1866   for d in ./-p ./--version;
1867   do
1868     test -d $d && rmdir $d
1869   done
1870   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1871   if test -f "$ac_aux_dir/mkinstalldirs"; then
1872     mkdir_p='$(mkinstalldirs)'
1873   else
1874     mkdir_p='$(install_sh) -d'
1875   fi
1876 fi
1877
1878 for ac_prog in gawk mawk nawk awk
1879 do
1880   # Extract the first word of "$ac_prog", so it can be a program name with args.
1881 set dummy $ac_prog; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_AWK+set}" = set; then
1885   echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887   if test -n "$AWK"; then
1888   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1892 do
1893   IFS=$as_save_IFS
1894   test -z "$as_dir" && as_dir=.
1895   for ac_exec_ext in '' $ac_executable_extensions; do
1896   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897     ac_cv_prog_AWK="$ac_prog"
1898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899     break 2
1900   fi
1901 done
1902 done
1903
1904 fi
1905 fi
1906 AWK=$ac_cv_prog_AWK
1907 if test -n "$AWK"; then
1908   echo "$as_me:$LINENO: result: $AWK" >&5
1909 echo "${ECHO_T}$AWK" >&6
1910 else
1911   echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1913 fi
1914
1915   test -n "$AWK" && break
1916 done
1917
1918 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1919 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1920 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1921 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1922   echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924   cat >conftest.make <<\_ACEOF
1925 all:
1926         @echo 'ac_maketemp="$(MAKE)"'
1927 _ACEOF
1928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1929 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1930 if test -n "$ac_maketemp"; then
1931   eval ac_cv_prog_make_${ac_make}_set=yes
1932 else
1933   eval ac_cv_prog_make_${ac_make}_set=no
1934 fi
1935 rm -f conftest.make
1936 fi
1937 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1938   echo "$as_me:$LINENO: result: yes" >&5
1939 echo "${ECHO_T}yes" >&6
1940   SET_MAKE=
1941 else
1942   echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1944   SET_MAKE="MAKE=${MAKE-make}"
1945 fi
1946
1947 rm -rf .tst 2>/dev/null
1948 mkdir .tst 2>/dev/null
1949 if test -d .tst; then
1950   am__leading_dot=.
1951 else
1952   am__leading_dot=_
1953 fi
1954 rmdir .tst 2>/dev/null
1955
1956 # test to see if srcdir already configured
1957 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1958    test -f $srcdir/config.status; then
1959   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1960 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1961    { (exit 1); exit 1; }; }
1962 fi
1963
1964 # test whether we have cygpath
1965 if test -z "$CYGPATH_W"; then
1966   if (cygpath --version) >/dev/null 2>/dev/null; then
1967     CYGPATH_W='cygpath -w'
1968   else
1969     CYGPATH_W=echo
1970   fi
1971 fi
1972
1973
1974 # Define the identity of the package.
1975  PACKAGE=$OL_PACKAGE
1976  VERSION=$OL_VERSION
1977
1978
1979 # Some tools Automake needs.
1980
1981 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1982
1983
1984 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1985
1986
1987 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1988
1989
1990 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1991
1992
1993 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1994
1995 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1996
1997 # Installed binaries are usually stripped using `strip' when the user
1998 # run `make install-strip'.  However `strip' might not be the right
1999 # tool to use in cross-compilation environments, therefore Automake
2000 # will honor the `STRIP' environment variable to overrule this program.
2001 if test "$cross_compiling" != no; then
2002   if test -n "$ac_tool_prefix"; then
2003   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2004 set dummy ${ac_tool_prefix}strip; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_STRIP+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$STRIP"; then
2011   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026
2027 fi
2028 fi
2029 STRIP=$ac_cv_prog_STRIP
2030 if test -n "$STRIP"; then
2031   echo "$as_me:$LINENO: result: $STRIP" >&5
2032 echo "${ECHO_T}$STRIP" >&6
2033 else
2034   echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038 fi
2039 if test -z "$ac_cv_prog_STRIP"; then
2040   ac_ct_STRIP=$STRIP
2041   # Extract the first word of "strip", so it can be a program name with args.
2042 set dummy strip; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   if test -n "$ac_ct_STRIP"; then
2049   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054   IFS=$as_save_IFS
2055   test -z "$as_dir" && as_dir=.
2056   for ac_exec_ext in '' $ac_executable_extensions; do
2057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058     ac_cv_prog_ac_ct_STRIP="strip"
2059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060     break 2
2061   fi
2062 done
2063 done
2064
2065   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2066 fi
2067 fi
2068 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2069 if test -n "$ac_ct_STRIP"; then
2070   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2071 echo "${ECHO_T}$ac_ct_STRIP" >&6
2072 else
2073   echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6
2075 fi
2076
2077   STRIP=$ac_ct_STRIP
2078 else
2079   STRIP="$ac_cv_prog_STRIP"
2080 fi
2081
2082 fi
2083 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2084
2085 # We need awk for the "check" target.  The system "awk" is bad on
2086 # some platforms.
2087 # Always define AMTAR for backward compatibility.
2088
2089 AMTAR=${AMTAR-"${am_missing_run}tar"}
2090
2091 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2092
2093
2094
2095
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define OPENLDAP_PACKAGE "$PACKAGE"
2099 _ACEOF
2100
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define OPENLDAP_VERSION "$VERSION"
2104 _ACEOF
2105
2106
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define LDAP_VENDOR_VERSION $OL_API_INC
2110 _ACEOF
2111
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2115 _ACEOF
2116
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2120 _ACEOF
2121
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2125 _ACEOF
2126
2127
2128 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2129
2130 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2131
2132 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2133
2134
2135
2136
2137
2138
2139
2140           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2141
2142           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2143
2144           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2145
2146
2147 echo "$as_me:$LINENO: checking configure arguments" >&5
2148 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2149
2150
2151 top_builddir=`pwd`
2152
2153 ldap_subdir="/openldap"
2154
2155
2156 # Check whether --with-subdir or --without-subdir was given.
2157 if test "${with_subdir+set}" = set; then
2158   withval="$with_subdir"
2159   case "$withval" in
2160         no) ldap_subdir=""
2161                 ;;
2162         yes)
2163                 ;;
2164         /*|\\*)
2165                 ldap_subdir="$withval"
2166                 ;;
2167         *)
2168                 ldap_subdir="/$withval"
2169                 ;;
2170 esac
2171
2172 fi;
2173
2174 # OpenLDAP --enable-debug
2175
2176         # Check whether --enable-debug or --disable-debug was given.
2177 if test "${enable_debug+set}" = set; then
2178   enableval="$enable_debug"
2179
2180         ol_arg=invalid
2181         for ol_val in no yes traditional ; do
2182                 if test "$enableval" = "$ol_val" ; then
2183                         ol_arg="$ol_val"
2184                 fi
2185         done
2186         if test "$ol_arg" = "invalid" ; then
2187                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2188 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2189    { (exit 1); exit 1; }; }
2190         fi
2191         ol_enable_debug="$ol_arg"
2192
2193 else
2194         ol_enable_debug=yes
2195 fi;
2196 # end --enable-debug
2197 # OpenLDAP --enable-dynamic
2198
2199         # Check whether --enable-dynamic or --disable-dynamic was given.
2200 if test "${enable_dynamic+set}" = set; then
2201   enableval="$enable_dynamic"
2202
2203         ol_arg=invalid
2204         for ol_val in auto yes no ; do
2205                 if test "$enableval" = "$ol_val" ; then
2206                         ol_arg="$ol_val"
2207                 fi
2208         done
2209         if test "$ol_arg" = "invalid" ; then
2210                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2211 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2212    { (exit 1); exit 1; }; }
2213         fi
2214         ol_enable_dynamic="$ol_arg"
2215
2216 else
2217         ol_enable_dynamic=no
2218 fi;
2219 # end --enable-dynamic
2220 # OpenLDAP --enable-syslog
2221
2222         # Check whether --enable-syslog or --disable-syslog was given.
2223 if test "${enable_syslog+set}" = set; then
2224   enableval="$enable_syslog"
2225
2226         ol_arg=invalid
2227         for ol_val in auto yes no ; do
2228                 if test "$enableval" = "$ol_val" ; then
2229                         ol_arg="$ol_val"
2230                 fi
2231         done
2232         if test "$ol_arg" = "invalid" ; then
2233                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2234 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2235    { (exit 1); exit 1; }; }
2236         fi
2237         ol_enable_syslog="$ol_arg"
2238
2239 else
2240         ol_enable_syslog=auto
2241 fi;
2242 # end --enable-syslog
2243 # OpenLDAP --enable-proctitle
2244
2245         # Check whether --enable-proctitle or --disable-proctitle was given.
2246 if test "${enable_proctitle+set}" = set; then
2247   enableval="$enable_proctitle"
2248
2249         ol_arg=invalid
2250         for ol_val in auto yes no ; do
2251                 if test "$enableval" = "$ol_val" ; then
2252                         ol_arg="$ol_val"
2253                 fi
2254         done
2255         if test "$ol_arg" = "invalid" ; then
2256                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2257 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2258    { (exit 1); exit 1; }; }
2259         fi
2260         ol_enable_proctitle="$ol_arg"
2261
2262 else
2263         ol_enable_proctitle=yes
2264 fi;
2265 # end --enable-proctitle
2266 ol_enable_referrals=${ol_enable_referrals-no}
2267 ol_enable_kbind=${ol_enable_kbind-no}
2268 # OpenLDAP --enable-ipv6
2269
2270         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2271 if test "${enable_ipv6+set}" = set; then
2272   enableval="$enable_ipv6"
2273
2274         ol_arg=invalid
2275         for ol_val in auto yes no ; do
2276                 if test "$enableval" = "$ol_val" ; then
2277                         ol_arg="$ol_val"
2278                 fi
2279         done
2280         if test "$ol_arg" = "invalid" ; then
2281                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2282 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2283    { (exit 1); exit 1; }; }
2284         fi
2285         ol_enable_ipv6="$ol_arg"
2286
2287 else
2288         ol_enable_ipv6=auto
2289 fi;
2290 # end --enable-ipv6
2291 # OpenLDAP --enable-local
2292
2293         # Check whether --enable-local or --disable-local was given.
2294 if test "${enable_local+set}" = set; then
2295   enableval="$enable_local"
2296
2297         ol_arg=invalid
2298         for ol_val in auto yes no ; do
2299                 if test "$enableval" = "$ol_val" ; then
2300                         ol_arg="$ol_val"
2301                 fi
2302         done
2303         if test "$ol_arg" = "invalid" ; then
2304                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2305 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2306    { (exit 1); exit 1; }; }
2307         fi
2308         ol_enable_local="$ol_arg"
2309
2310 else
2311         ol_enable_local=auto
2312 fi;
2313 # end --enable-local
2314
2315 # OpenLDAP --with-cyrus_sasl
2316
2317 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2318 if test "${with_cyrus_sasl+set}" = set; then
2319   withval="$with_cyrus_sasl"
2320
2321         ol_arg=invalid
2322         for ol_val in auto yes no  ; do
2323                 if test "$withval" = "$ol_val" ; then
2324                         ol_arg="$ol_val"
2325                 fi
2326         done
2327         if test "$ol_arg" = "invalid" ; then
2328                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2329 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2330    { (exit 1); exit 1; }; }
2331         fi
2332         ol_with_cyrus_sasl="$ol_arg"
2333
2334 else
2335         ol_with_cyrus_sasl="auto"
2336 fi; # end --with-cyrus_sasl
2337
2338 # OpenLDAP --with-fetch
2339
2340 # Check whether --with-fetch or --without-fetch was given.
2341 if test "${with_fetch+set}" = set; then
2342   withval="$with_fetch"
2343
2344         ol_arg=invalid
2345         for ol_val in auto yes no  ; do
2346                 if test "$withval" = "$ol_val" ; then
2347                         ol_arg="$ol_val"
2348                 fi
2349         done
2350         if test "$ol_arg" = "invalid" ; then
2351                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2352 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2353    { (exit 1); exit 1; }; }
2354         fi
2355         ol_with_fetch="$ol_arg"
2356
2357 else
2358         ol_with_fetch="auto"
2359 fi; # end --with-fetch
2360
2361 ol_with_kerberos=${ol_with_kerberos-auto}
2362 # OpenLDAP --with-threads
2363
2364 # Check whether --with-threads or --without-threads was given.
2365 if test "${with_threads+set}" = set; then
2366   withval="$with_threads"
2367
2368         ol_arg=invalid
2369         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2370                 if test "$withval" = "$ol_val" ; then
2371                         ol_arg="$ol_val"
2372                 fi
2373         done
2374         if test "$ol_arg" = "invalid" ; then
2375                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2376 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2377    { (exit 1); exit 1; }; }
2378         fi
2379         ol_with_threads="$ol_arg"
2380
2381 else
2382         ol_with_threads="auto"
2383 fi; # end --with-threads
2384
2385 # OpenLDAP --with-tls
2386
2387 # Check whether --with-tls or --without-tls was given.
2388 if test "${with_tls+set}" = set; then
2389   withval="$with_tls"
2390
2391         ol_arg=invalid
2392         for ol_val in auto openssl yes no  ; do
2393                 if test "$withval" = "$ol_val" ; then
2394                         ol_arg="$ol_val"
2395                 fi
2396         done
2397         if test "$ol_arg" = "invalid" ; then
2398                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2399 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2400    { (exit 1); exit 1; }; }
2401         fi
2402         ol_with_tls="$ol_arg"
2403
2404 else
2405         ol_with_tls="auto"
2406 fi; # end --with-tls
2407
2408 # OpenLDAP --with-yielding_select
2409
2410 # Check whether --with-yielding_select or --without-yielding_select was given.
2411 if test "${with_yielding_select+set}" = set; then
2412   withval="$with_yielding_select"
2413
2414         ol_arg=invalid
2415         for ol_val in auto yes no manual  ; do
2416                 if test "$withval" = "$ol_val" ; then
2417                         ol_arg="$ol_val"
2418                 fi
2419         done
2420         if test "$ol_arg" = "invalid" ; then
2421                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2422 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2423    { (exit 1); exit 1; }; }
2424         fi
2425         ol_with_yielding_select="$ol_arg"
2426
2427 else
2428         ol_with_yielding_select="auto"
2429 fi; # end --with-yielding_select
2430
2431 # OpenLDAP --with-multiple_precision
2432
2433 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2434 if test "${with_multiple_precision+set}" = set; then
2435   withval="$with_multiple_precision"
2436
2437         ol_arg=invalid
2438         for ol_val in auto bignum gmp yes no  ; do
2439                 if test "$withval" = "$ol_val" ; then
2440                         ol_arg="$ol_val"
2441                 fi
2442         done
2443         if test "$ol_arg" = "invalid" ; then
2444                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2445 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2446    { (exit 1); exit 1; }; }
2447         fi
2448         ol_with_multiple_precision="$ol_arg"
2449
2450 else
2451         ol_with_multiple_precision="auto"
2452 fi; # end --with-multiple_precision
2453
2454
2455
2456 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2457 if test "${enable_xxslapdoptions+set}" = set; then
2458   enableval="$enable_xxslapdoptions"
2459
2460 fi;
2461 # OpenLDAP --enable-slapd
2462
2463         # Check whether --enable-slapd or --disable-slapd was given.
2464 if test "${enable_slapd+set}" = set; then
2465   enableval="$enable_slapd"
2466
2467         ol_arg=invalid
2468         for ol_val in auto yes no ; do
2469                 if test "$enableval" = "$ol_val" ; then
2470                         ol_arg="$ol_val"
2471                 fi
2472         done
2473         if test "$ol_arg" = "invalid" ; then
2474                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2475 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2476    { (exit 1); exit 1; }; }
2477         fi
2478         ol_enable_slapd="$ol_arg"
2479
2480 else
2481         ol_enable_slapd=yes
2482 fi;
2483 # end --enable-slapd
2484 # OpenLDAP --enable-dynacl
2485
2486         # Check whether --enable-dynacl or --disable-dynacl was given.
2487 if test "${enable_dynacl+set}" = set; then
2488   enableval="$enable_dynacl"
2489
2490         ol_arg=invalid
2491         for ol_val in auto yes no ; do
2492                 if test "$enableval" = "$ol_val" ; then
2493                         ol_arg="$ol_val"
2494                 fi
2495         done
2496         if test "$ol_arg" = "invalid" ; then
2497                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2498 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2499    { (exit 1); exit 1; }; }
2500         fi
2501         ol_enable_dynacl="$ol_arg"
2502
2503 else
2504         ol_enable_dynacl=no
2505 fi;
2506 # end --enable-dynacl
2507 # OpenLDAP --enable-aci
2508
2509         # Check whether --enable-aci or --disable-aci was given.
2510 if test "${enable_aci+set}" = set; then
2511   enableval="$enable_aci"
2512
2513         ol_arg=invalid
2514         for ol_val in no yes mod ; do
2515                 if test "$enableval" = "$ol_val" ; then
2516                         ol_arg="$ol_val"
2517                 fi
2518         done
2519         if test "$ol_arg" = "invalid" ; then
2520                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2521 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2522    { (exit 1); exit 1; }; }
2523         fi
2524         ol_enable_aci="$ol_arg"
2525
2526 else
2527         ol_enable_aci=no
2528 fi;
2529 # end --enable-aci
2530 # OpenLDAP --enable-cleartext
2531
2532         # Check whether --enable-cleartext or --disable-cleartext was given.
2533 if test "${enable_cleartext+set}" = set; then
2534   enableval="$enable_cleartext"
2535
2536         ol_arg=invalid
2537         for ol_val in auto yes no ; do
2538                 if test "$enableval" = "$ol_val" ; then
2539                         ol_arg="$ol_val"
2540                 fi
2541         done
2542         if test "$ol_arg" = "invalid" ; then
2543                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2544 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2545    { (exit 1); exit 1; }; }
2546         fi
2547         ol_enable_cleartext="$ol_arg"
2548
2549 else
2550         ol_enable_cleartext=yes
2551 fi;
2552 # end --enable-cleartext
2553 # OpenLDAP --enable-crypt
2554
2555         # Check whether --enable-crypt or --disable-crypt was given.
2556 if test "${enable_crypt+set}" = set; then
2557   enableval="$enable_crypt"
2558
2559         ol_arg=invalid
2560         for ol_val in auto yes no ; do
2561                 if test "$enableval" = "$ol_val" ; then
2562                         ol_arg="$ol_val"
2563                 fi
2564         done
2565         if test "$ol_arg" = "invalid" ; then
2566                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2567 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2568    { (exit 1); exit 1; }; }
2569         fi
2570         ol_enable_crypt="$ol_arg"
2571
2572 else
2573         ol_enable_crypt=no
2574 fi;
2575 # end --enable-crypt
2576 # OpenLDAP --enable-lmpasswd
2577
2578         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2579 if test "${enable_lmpasswd+set}" = set; then
2580   enableval="$enable_lmpasswd"
2581
2582         ol_arg=invalid
2583         for ol_val in auto yes no ; do
2584                 if test "$enableval" = "$ol_val" ; then
2585                         ol_arg="$ol_val"
2586                 fi
2587         done
2588         if test "$ol_arg" = "invalid" ; then
2589                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2590 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2591    { (exit 1); exit 1; }; }
2592         fi
2593         ol_enable_lmpasswd="$ol_arg"
2594
2595 else
2596         ol_enable_lmpasswd=no
2597 fi;
2598 # end --enable-lmpasswd
2599 # OpenLDAP --enable-spasswd
2600
2601         # Check whether --enable-spasswd or --disable-spasswd was given.
2602 if test "${enable_spasswd+set}" = set; then
2603   enableval="$enable_spasswd"
2604
2605         ol_arg=invalid
2606         for ol_val in auto yes no ; do
2607                 if test "$enableval" = "$ol_val" ; then
2608                         ol_arg="$ol_val"
2609                 fi
2610         done
2611         if test "$ol_arg" = "invalid" ; then
2612                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2613 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2614    { (exit 1); exit 1; }; }
2615         fi
2616         ol_enable_spasswd="$ol_arg"
2617
2618 else
2619         ol_enable_spasswd=no
2620 fi;
2621 # end --enable-spasswd
2622 # OpenLDAP --enable-modules
2623
2624         # Check whether --enable-modules or --disable-modules was given.
2625 if test "${enable_modules+set}" = set; then
2626   enableval="$enable_modules"
2627
2628         ol_arg=invalid
2629         for ol_val in auto yes no ; do
2630                 if test "$enableval" = "$ol_val" ; then
2631                         ol_arg="$ol_val"
2632                 fi
2633         done
2634         if test "$ol_arg" = "invalid" ; then
2635                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2636 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2637    { (exit 1); exit 1; }; }
2638         fi
2639         ol_enable_modules="$ol_arg"
2640
2641 else
2642         ol_enable_modules=no
2643 fi;
2644 # end --enable-modules
2645 ol_enable_multimaster=${ol_enable_multimaster-no}
2646 # OpenLDAP --enable-rewrite
2647
2648         # Check whether --enable-rewrite or --disable-rewrite was given.
2649 if test "${enable_rewrite+set}" = set; then
2650   enableval="$enable_rewrite"
2651
2652         ol_arg=invalid
2653         for ol_val in auto yes no ; do
2654                 if test "$enableval" = "$ol_val" ; then
2655                         ol_arg="$ol_val"
2656                 fi
2657         done
2658         if test "$ol_arg" = "invalid" ; then
2659                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2660 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2661    { (exit 1); exit 1; }; }
2662         fi
2663         ol_enable_rewrite="$ol_arg"
2664
2665 else
2666         ol_enable_rewrite=auto
2667 fi;
2668 # end --enable-rewrite
2669 # OpenLDAP --enable-rlookups
2670
2671         # Check whether --enable-rlookups or --disable-rlookups was given.
2672 if test "${enable_rlookups+set}" = set; then
2673   enableval="$enable_rlookups"
2674
2675         ol_arg=invalid
2676         for ol_val in auto yes no ; do
2677                 if test "$enableval" = "$ol_val" ; then
2678                         ol_arg="$ol_val"
2679                 fi
2680         done
2681         if test "$ol_arg" = "invalid" ; then
2682                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2683 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2684    { (exit 1); exit 1; }; }
2685         fi
2686         ol_enable_rlookups="$ol_arg"
2687
2688 else
2689         ol_enable_rlookups=no
2690 fi;
2691 # end --enable-rlookups
2692 # OpenLDAP --enable-slapi
2693
2694         # Check whether --enable-slapi or --disable-slapi was given.
2695 if test "${enable_slapi+set}" = set; then
2696   enableval="$enable_slapi"
2697
2698         ol_arg=invalid
2699         for ol_val in auto yes no ; do
2700                 if test "$enableval" = "$ol_val" ; then
2701                         ol_arg="$ol_val"
2702                 fi
2703         done
2704         if test "$ol_arg" = "invalid" ; then
2705                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2706 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2707    { (exit 1); exit 1; }; }
2708         fi
2709         ol_enable_slapi="$ol_arg"
2710
2711 else
2712         ol_enable_slapi=no
2713 fi;
2714 # end --enable-slapi
2715 # OpenLDAP --enable-slp
2716
2717         # Check whether --enable-slp or --disable-slp was given.
2718 if test "${enable_slp+set}" = set; then
2719   enableval="$enable_slp"
2720
2721         ol_arg=invalid
2722         for ol_val in auto yes no ; do
2723                 if test "$enableval" = "$ol_val" ; then
2724                         ol_arg="$ol_val"
2725                 fi
2726         done
2727         if test "$ol_arg" = "invalid" ; then
2728                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2729 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2730    { (exit 1); exit 1; }; }
2731         fi
2732         ol_enable_slp="$ol_arg"
2733
2734 else
2735         ol_enable_slp=no
2736 fi;
2737 # end --enable-slp
2738 # OpenLDAP --enable-wrappers
2739
2740         # Check whether --enable-wrappers or --disable-wrappers was given.
2741 if test "${enable_wrappers+set}" = set; then
2742   enableval="$enable_wrappers"
2743
2744         ol_arg=invalid
2745         for ol_val in auto yes no ; do
2746                 if test "$enableval" = "$ol_val" ; then
2747                         ol_arg="$ol_val"
2748                 fi
2749         done
2750         if test "$ol_arg" = "invalid" ; then
2751                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2752 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2753    { (exit 1); exit 1; }; }
2754         fi
2755         ol_enable_wrappers="$ol_arg"
2756
2757 else
2758         ol_enable_wrappers=no
2759 fi;
2760 # end --enable-wrappers
2761
2762 Backends="bdb \
2763         dnssrv \
2764         hdb \
2765         ldap \
2766         ldbm \
2767         meta \
2768         monitor \
2769         null \
2770         passwd \
2771         perl \
2772         relay \
2773         shell \
2774         sql"
2775
2776 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2777 if test "${enable_xxslapbackends+set}" = set; then
2778   enableval="$enable_xxslapbackends"
2779
2780 fi;
2781
2782 # OpenLDAP --enable-backends
2783
2784         # Check whether --enable-backends or --disable-backends was given.
2785 if test "${enable_backends+set}" = set; then
2786   enableval="$enable_backends"
2787
2788         ol_arg=invalid
2789         for ol_val in no yes mod ; do
2790                 if test "$enableval" = "$ol_val" ; then
2791                         ol_arg="$ol_val"
2792                 fi
2793         done
2794         if test "$ol_arg" = "invalid" ; then
2795                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2796 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2797    { (exit 1); exit 1; }; }
2798         fi
2799         ol_enable_backends="$ol_arg"
2800
2801 fi;
2802 # end --enable-backends
2803 # OpenLDAP --enable-bdb
2804
2805         # Check whether --enable-bdb or --disable-bdb was given.
2806 if test "${enable_bdb+set}" = set; then
2807   enableval="$enable_bdb"
2808
2809         ol_arg=invalid
2810         for ol_val in no yes mod ; do
2811                 if test "$enableval" = "$ol_val" ; then
2812                         ol_arg="$ol_val"
2813                 fi
2814         done
2815         if test "$ol_arg" = "invalid" ; then
2816                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2817 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2818    { (exit 1); exit 1; }; }
2819         fi
2820         ol_enable_bdb="$ol_arg"
2821
2822 else
2823         ol_enable_bdb=${ol_enable_backends:-yes}
2824 fi;
2825 # end --enable-bdb
2826 # OpenLDAP --enable-dnssrv
2827
2828         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2829 if test "${enable_dnssrv+set}" = set; then
2830   enableval="$enable_dnssrv"
2831
2832         ol_arg=invalid
2833         for ol_val in no yes mod ; do
2834                 if test "$enableval" = "$ol_val" ; then
2835                         ol_arg="$ol_val"
2836                 fi
2837         done
2838         if test "$ol_arg" = "invalid" ; then
2839                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2840 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2841    { (exit 1); exit 1; }; }
2842         fi
2843         ol_enable_dnssrv="$ol_arg"
2844
2845 else
2846         ol_enable_dnssrv=${ol_enable_backends:-no}
2847 fi;
2848 # end --enable-dnssrv
2849 # OpenLDAP --enable-hdb
2850
2851         # Check whether --enable-hdb or --disable-hdb was given.
2852 if test "${enable_hdb+set}" = set; then
2853   enableval="$enable_hdb"
2854
2855         ol_arg=invalid
2856         for ol_val in no yes mod ; do
2857                 if test "$enableval" = "$ol_val" ; then
2858                         ol_arg="$ol_val"
2859                 fi
2860         done
2861         if test "$ol_arg" = "invalid" ; then
2862                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2863 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2864    { (exit 1); exit 1; }; }
2865         fi
2866         ol_enable_hdb="$ol_arg"
2867
2868 else
2869         ol_enable_hdb=${ol_enable_backends:-yes}
2870 fi;
2871 # end --enable-hdb
2872 # OpenLDAP --enable-ldap
2873
2874         # Check whether --enable-ldap or --disable-ldap was given.
2875 if test "${enable_ldap+set}" = set; then
2876   enableval="$enable_ldap"
2877
2878         ol_arg=invalid
2879         for ol_val in no yes mod ; do
2880                 if test "$enableval" = "$ol_val" ; then
2881                         ol_arg="$ol_val"
2882                 fi
2883         done
2884         if test "$ol_arg" = "invalid" ; then
2885                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2886 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2887    { (exit 1); exit 1; }; }
2888         fi
2889         ol_enable_ldap="$ol_arg"
2890
2891 else
2892         ol_enable_ldap=${ol_enable_backends:-no}
2893 fi;
2894 # end --enable-ldap
2895 # OpenLDAP --enable-ldbm
2896
2897         # Check whether --enable-ldbm or --disable-ldbm was given.
2898 if test "${enable_ldbm+set}" = set; then
2899   enableval="$enable_ldbm"
2900
2901         ol_arg=invalid
2902         for ol_val in no yes mod ; do
2903                 if test "$enableval" = "$ol_val" ; then
2904                         ol_arg="$ol_val"
2905                 fi
2906         done
2907         if test "$ol_arg" = "invalid" ; then
2908                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2909 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2910    { (exit 1); exit 1; }; }
2911         fi
2912         ol_enable_ldbm="$ol_arg"
2913
2914 else
2915         ol_enable_ldbm=${ol_enable_backends:-no}
2916 fi;
2917 # end --enable-ldbm
2918
2919 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2920 if test "${with_ldbm_api+set}" = set; then
2921   withval="$with_ldbm_api"
2922
2923         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2924 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2925         enable_ldbm_api="$with_ldbm_api"
2926 fi;
2927 # OpenLDAP --enable-ldbm_api
2928
2929         # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2930 if test "${enable_ldbm_api+set}" = set; then
2931   enableval="$enable_ldbm_api"
2932
2933         ol_arg=invalid
2934         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2935                 if test "$enableval" = "$ol_val" ; then
2936                         ol_arg="$ol_val"
2937                 fi
2938         done
2939         if test "$ol_arg" = "invalid" ; then
2940                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2941 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2942    { (exit 1); exit 1; }; }
2943         fi
2944         ol_enable_ldbm_api="$ol_arg"
2945
2946 else
2947         ol_enable_ldbm_api=auto
2948 fi;
2949 # end --enable-ldbm_api
2950
2951
2952 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2953 if test "${with_ldbm_type+set}" = set; then
2954   withval="$with_ldbm_type"
2955
2956         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2957 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2958         enable_ldbm_type="$with_ldbm_type"
2959 fi;
2960 # OpenLDAP --enable-ldbm_type
2961
2962         # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2963 if test "${enable_ldbm_type+set}" = set; then
2964   enableval="$enable_ldbm_type"
2965
2966         ol_arg=invalid
2967         for ol_val in auto btree hash ; do
2968                 if test "$enableval" = "$ol_val" ; then
2969                         ol_arg="$ol_val"
2970                 fi
2971         done
2972         if test "$ol_arg" = "invalid" ; then
2973                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2974 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2975    { (exit 1); exit 1; }; }
2976         fi
2977         ol_enable_ldbm_type="$ol_arg"
2978
2979 else
2980         ol_enable_ldbm_type=auto
2981 fi;
2982 # end --enable-ldbm_type
2983
2984 # OpenLDAP --enable-meta
2985
2986         # Check whether --enable-meta or --disable-meta was given.
2987 if test "${enable_meta+set}" = set; then
2988   enableval="$enable_meta"
2989
2990         ol_arg=invalid
2991         for ol_val in no yes mod ; do
2992                 if test "$enableval" = "$ol_val" ; then
2993                         ol_arg="$ol_val"
2994                 fi
2995         done
2996         if test "$ol_arg" = "invalid" ; then
2997                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2998 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2999    { (exit 1); exit 1; }; }
3000         fi
3001         ol_enable_meta="$ol_arg"
3002
3003 else
3004         ol_enable_meta=${ol_enable_backends:-no}
3005 fi;
3006 # end --enable-meta
3007 # OpenLDAP --enable-monitor
3008
3009         # Check whether --enable-monitor or --disable-monitor was given.
3010 if test "${enable_monitor+set}" = set; then
3011   enableval="$enable_monitor"
3012
3013         ol_arg=invalid
3014         for ol_val in no yes mod ; do
3015                 if test "$enableval" = "$ol_val" ; then
3016                         ol_arg="$ol_val"
3017                 fi
3018         done
3019         if test "$ol_arg" = "invalid" ; then
3020                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3021 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3022    { (exit 1); exit 1; }; }
3023         fi
3024         ol_enable_monitor="$ol_arg"
3025
3026 else
3027         ol_enable_monitor=${ol_enable_backends:-yes}
3028 fi;
3029 # end --enable-monitor
3030 # OpenLDAP --enable-null
3031
3032         # Check whether --enable-null or --disable-null was given.
3033 if test "${enable_null+set}" = set; then
3034   enableval="$enable_null"
3035
3036         ol_arg=invalid
3037         for ol_val in no yes mod ; do
3038                 if test "$enableval" = "$ol_val" ; then
3039                         ol_arg="$ol_val"
3040                 fi
3041         done
3042         if test "$ol_arg" = "invalid" ; then
3043                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3044 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3045    { (exit 1); exit 1; }; }
3046         fi
3047         ol_enable_null="$ol_arg"
3048
3049 else
3050         ol_enable_null=${ol_enable_backends:-no}
3051 fi;
3052 # end --enable-null
3053 # OpenLDAP --enable-passwd
3054
3055         # Check whether --enable-passwd or --disable-passwd was given.
3056 if test "${enable_passwd+set}" = set; then
3057   enableval="$enable_passwd"
3058
3059         ol_arg=invalid
3060         for ol_val in no yes mod ; do
3061                 if test "$enableval" = "$ol_val" ; then
3062                         ol_arg="$ol_val"
3063                 fi
3064         done
3065         if test "$ol_arg" = "invalid" ; then
3066                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3067 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3068    { (exit 1); exit 1; }; }
3069         fi
3070         ol_enable_passwd="$ol_arg"
3071
3072 else
3073         ol_enable_passwd=${ol_enable_backends:-no}
3074 fi;
3075 # end --enable-passwd
3076 # OpenLDAP --enable-perl
3077
3078         # Check whether --enable-perl or --disable-perl was given.
3079 if test "${enable_perl+set}" = set; then
3080   enableval="$enable_perl"
3081
3082         ol_arg=invalid
3083         for ol_val in no yes mod ; do
3084                 if test "$enableval" = "$ol_val" ; then
3085                         ol_arg="$ol_val"
3086                 fi
3087         done
3088         if test "$ol_arg" = "invalid" ; then
3089                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3090 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3091    { (exit 1); exit 1; }; }
3092         fi
3093         ol_enable_perl="$ol_arg"
3094
3095 else
3096         ol_enable_perl=${ol_enable_backends:-no}
3097 fi;
3098 # end --enable-perl
3099 # OpenLDAP --enable-relay
3100
3101         # Check whether --enable-relay or --disable-relay was given.
3102 if test "${enable_relay+set}" = set; then
3103   enableval="$enable_relay"
3104
3105         ol_arg=invalid
3106         for ol_val in no yes mod ; do
3107                 if test "$enableval" = "$ol_val" ; then
3108                         ol_arg="$ol_val"
3109                 fi
3110         done
3111         if test "$ol_arg" = "invalid" ; then
3112                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3113 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3114    { (exit 1); exit 1; }; }
3115         fi
3116         ol_enable_relay="$ol_arg"
3117
3118 else
3119         ol_enable_relay=${ol_enable_backends:-yes}
3120 fi;
3121 # end --enable-relay
3122 # OpenLDAP --enable-shell
3123
3124         # Check whether --enable-shell or --disable-shell was given.
3125 if test "${enable_shell+set}" = set; then
3126   enableval="$enable_shell"
3127
3128         ol_arg=invalid
3129         for ol_val in no yes mod ; do
3130                 if test "$enableval" = "$ol_val" ; then
3131                         ol_arg="$ol_val"
3132                 fi
3133         done
3134         if test "$ol_arg" = "invalid" ; then
3135                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3136 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3137    { (exit 1); exit 1; }; }
3138         fi
3139         ol_enable_shell="$ol_arg"
3140
3141 else
3142         ol_enable_shell=${ol_enable_backends:-no}
3143 fi;
3144 # end --enable-shell
3145 # OpenLDAP --enable-sql
3146
3147         # Check whether --enable-sql or --disable-sql was given.
3148 if test "${enable_sql+set}" = set; then
3149   enableval="$enable_sql"
3150
3151         ol_arg=invalid
3152         for ol_val in no yes mod ; do
3153                 if test "$enableval" = "$ol_val" ; then
3154                         ol_arg="$ol_val"
3155                 fi
3156         done
3157         if test "$ol_arg" = "invalid" ; then
3158                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3159 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3160    { (exit 1); exit 1; }; }
3161         fi
3162         ol_enable_sql="$ol_arg"
3163
3164 else
3165         ol_enable_sql=${ol_enable_backends:-no}
3166 fi;
3167 # end --enable-sql
3168
3169 Overlays="accesslog \
3170         dds \
3171         denyop \
3172         dyngroup \
3173         dynlist \
3174         lastmod \
3175         ppolicy \
3176         proxycache \
3177         refint \
3178         retcode \
3179         rwm \
3180         syncprov \
3181         translucent \
3182         unique \
3183         valsort"
3184
3185 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3186 if test "${enable_xxslapoverlays+set}" = set; then
3187   enableval="$enable_xxslapoverlays"
3188
3189 fi;
3190
3191 # OpenLDAP --enable-overlays
3192
3193         # Check whether --enable-overlays or --disable-overlays was given.
3194 if test "${enable_overlays+set}" = set; then
3195   enableval="$enable_overlays"
3196
3197         ol_arg=invalid
3198         for ol_val in no yes mod ; do
3199                 if test "$enableval" = "$ol_val" ; then
3200                         ol_arg="$ol_val"
3201                 fi
3202         done
3203         if test "$ol_arg" = "invalid" ; then
3204                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3205 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3206    { (exit 1); exit 1; }; }
3207         fi
3208         ol_enable_overlays="$ol_arg"
3209
3210 fi;
3211 # end --enable-overlays
3212 # OpenLDAP --enable-accesslog
3213
3214         # Check whether --enable-accesslog or --disable-accesslog was given.
3215 if test "${enable_accesslog+set}" = set; then
3216   enableval="$enable_accesslog"
3217
3218         ol_arg=invalid
3219         for ol_val in no yes mod ; do
3220                 if test "$enableval" = "$ol_val" ; then
3221                         ol_arg="$ol_val"
3222                 fi
3223         done
3224         if test "$ol_arg" = "invalid" ; then
3225                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3226 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3227    { (exit 1); exit 1; }; }
3228         fi
3229         ol_enable_accesslog="$ol_arg"
3230
3231 else
3232         ol_enable_accesslog=${ol_enable_overlays:-no}
3233 fi;
3234 # end --enable-accesslog
3235
3236 # OpenLDAP --enable-dds
3237
3238         # Check whether --enable-dds or --disable-dds was given.
3239 if test "${enable_dds+set}" = set; then
3240   enableval="$enable_dds"
3241
3242         ol_arg=invalid
3243         for ol_val in no yes mod ; do
3244                 if test "$enableval" = "$ol_val" ; then
3245                         ol_arg="$ol_val"
3246                 fi
3247         done
3248         if test "$ol_arg" = "invalid" ; then
3249                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3250 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3251    { (exit 1); exit 1; }; }
3252         fi
3253         ol_enable_dds="$ol_arg"
3254
3255 else
3256         ol_enable_dds=${ol_enable_overlays:-no}
3257 fi;
3258 # end --enable-dds
3259
3260 # OpenLDAP --enable-denyop
3261
3262         # Check whether --enable-denyop or --disable-denyop was given.
3263 if test "${enable_denyop+set}" = set; then
3264   enableval="$enable_denyop"
3265
3266         ol_arg=invalid
3267         for ol_val in no yes mod ; do
3268                 if test "$enableval" = "$ol_val" ; then
3269                         ol_arg="$ol_val"
3270                 fi
3271         done
3272         if test "$ol_arg" = "invalid" ; then
3273                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3274 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3275    { (exit 1); exit 1; }; }
3276         fi
3277         ol_enable_denyop="$ol_arg"
3278
3279 else
3280         ol_enable_denyop=${ol_enable_overlays:-no}
3281 fi;
3282 # end --enable-denyop
3283
3284 # OpenLDAP --enable-dyngroup
3285
3286         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3287 if test "${enable_dyngroup+set}" = set; then
3288   enableval="$enable_dyngroup"
3289
3290         ol_arg=invalid
3291         for ol_val in no yes mod ; do
3292                 if test "$enableval" = "$ol_val" ; then
3293                         ol_arg="$ol_val"
3294                 fi
3295         done
3296         if test "$ol_arg" = "invalid" ; then
3297                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3299    { (exit 1); exit 1; }; }
3300         fi
3301         ol_enable_dyngroup="$ol_arg"
3302
3303 else
3304         ol_enable_dyngroup=${ol_enable_overlays:-no}
3305 fi;
3306 # end --enable-dyngroup
3307
3308 # OpenLDAP --enable-dynlist
3309
3310         # Check whether --enable-dynlist or --disable-dynlist was given.
3311 if test "${enable_dynlist+set}" = set; then
3312   enableval="$enable_dynlist"
3313
3314         ol_arg=invalid
3315         for ol_val in no yes mod ; do
3316                 if test "$enableval" = "$ol_val" ; then
3317                         ol_arg="$ol_val"
3318                 fi
3319         done
3320         if test "$ol_arg" = "invalid" ; then
3321                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3322 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3323    { (exit 1); exit 1; }; }
3324         fi
3325         ol_enable_dynlist="$ol_arg"
3326
3327 else
3328         ol_enable_dynlist=${ol_enable_overlays:-no}
3329 fi;
3330 # end --enable-dynlist
3331
3332 # OpenLDAP --enable-lastmod
3333
3334         # Check whether --enable-lastmod or --disable-lastmod was given.
3335 if test "${enable_lastmod+set}" = set; then
3336   enableval="$enable_lastmod"
3337
3338         ol_arg=invalid
3339         for ol_val in no yes mod ; do
3340                 if test "$enableval" = "$ol_val" ; then
3341                         ol_arg="$ol_val"
3342                 fi
3343         done
3344         if test "$ol_arg" = "invalid" ; then
3345                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3346 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3347    { (exit 1); exit 1; }; }
3348         fi
3349         ol_enable_lastmod="$ol_arg"
3350
3351 else
3352         ol_enable_lastmod=${ol_enable_overlays:-no}
3353 fi;
3354 # end --enable-lastmod
3355
3356 # OpenLDAP --enable-ppolicy
3357
3358         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3359 if test "${enable_ppolicy+set}" = set; then
3360   enableval="$enable_ppolicy"
3361
3362         ol_arg=invalid
3363         for ol_val in no yes mod ; do
3364                 if test "$enableval" = "$ol_val" ; then
3365                         ol_arg="$ol_val"
3366                 fi
3367         done
3368         if test "$ol_arg" = "invalid" ; then
3369                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3370 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3371    { (exit 1); exit 1; }; }
3372         fi
3373         ol_enable_ppolicy="$ol_arg"
3374
3375 else
3376         ol_enable_ppolicy=${ol_enable_overlays:-no}
3377 fi;
3378 # end --enable-ppolicy
3379
3380 # OpenLDAP --enable-proxycache
3381
3382         # Check whether --enable-proxycache or --disable-proxycache was given.
3383 if test "${enable_proxycache+set}" = set; then
3384   enableval="$enable_proxycache"
3385
3386         ol_arg=invalid
3387         for ol_val in no yes mod ; do
3388                 if test "$enableval" = "$ol_val" ; then
3389                         ol_arg="$ol_val"
3390                 fi
3391         done
3392         if test "$ol_arg" = "invalid" ; then
3393                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3394 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3395    { (exit 1); exit 1; }; }
3396         fi
3397         ol_enable_proxycache="$ol_arg"
3398
3399 else
3400         ol_enable_proxycache=${ol_enable_overlays:-no}
3401 fi;
3402 # end --enable-proxycache
3403
3404 # OpenLDAP --enable-refint
3405
3406         # Check whether --enable-refint or --disable-refint was given.
3407 if test "${enable_refint+set}" = set; then
3408   enableval="$enable_refint"
3409
3410         ol_arg=invalid
3411         for ol_val in no yes mod ; do
3412                 if test "$enableval" = "$ol_val" ; then
3413                         ol_arg="$ol_val"
3414                 fi
3415         done
3416         if test "$ol_arg" = "invalid" ; then
3417                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3418 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3419    { (exit 1); exit 1; }; }
3420         fi
3421         ol_enable_refint="$ol_arg"
3422
3423 else
3424         ol_enable_refint=${ol_enable_overlays:-no}
3425 fi;
3426 # end --enable-refint
3427
3428 # OpenLDAP --enable-retcode
3429
3430         # Check whether --enable-retcode or --disable-retcode was given.
3431 if test "${enable_retcode+set}" = set; then
3432   enableval="$enable_retcode"
3433
3434         ol_arg=invalid
3435         for ol_val in no yes mod ; do
3436                 if test "$enableval" = "$ol_val" ; then
3437                         ol_arg="$ol_val"
3438                 fi
3439         done
3440         if test "$ol_arg" = "invalid" ; then
3441                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3442 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3443    { (exit 1); exit 1; }; }
3444         fi
3445         ol_enable_retcode="$ol_arg"
3446
3447 else
3448         ol_enable_retcode=${ol_enable_overlays:-no}
3449 fi;
3450 # end --enable-retcode
3451
3452 # OpenLDAP --enable-rwm
3453
3454         # Check whether --enable-rwm or --disable-rwm was given.
3455 if test "${enable_rwm+set}" = set; then
3456   enableval="$enable_rwm"
3457
3458         ol_arg=invalid
3459         for ol_val in no yes mod ; do
3460                 if test "$enableval" = "$ol_val" ; then
3461                         ol_arg="$ol_val"
3462                 fi
3463         done
3464         if test "$ol_arg" = "invalid" ; then
3465                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3466 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3467    { (exit 1); exit 1; }; }
3468         fi
3469         ol_enable_rwm="$ol_arg"
3470
3471 else
3472         ol_enable_rwm=${ol_enable_overlays:-no}
3473 fi;
3474 # end --enable-rwm
3475
3476 # OpenLDAP --enable-syncprov
3477
3478         # Check whether --enable-syncprov or --disable-syncprov was given.
3479 if test "${enable_syncprov+set}" = set; then
3480   enableval="$enable_syncprov"
3481
3482         ol_arg=invalid
3483         for ol_val in no yes mod ; do
3484                 if test "$enableval" = "$ol_val" ; then
3485                         ol_arg="$ol_val"
3486                 fi
3487         done
3488         if test "$ol_arg" = "invalid" ; then
3489                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3490 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3491    { (exit 1); exit 1; }; }
3492         fi
3493         ol_enable_syncprov="$ol_arg"
3494
3495 else
3496         ol_enable_syncprov=${ol_enable_overlays:-yes}
3497 fi;
3498 # end --enable-syncprov
3499
3500 # OpenLDAP --enable-translucent
3501
3502         # Check whether --enable-translucent or --disable-translucent was given.
3503 if test "${enable_translucent+set}" = set; then
3504   enableval="$enable_translucent"
3505
3506         ol_arg=invalid
3507         for ol_val in no yes mod ; do
3508                 if test "$enableval" = "$ol_val" ; then
3509                         ol_arg="$ol_val"
3510                 fi
3511         done
3512         if test "$ol_arg" = "invalid" ; then
3513                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3514 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3515    { (exit 1); exit 1; }; }
3516         fi
3517         ol_enable_translucent="$ol_arg"
3518
3519 else
3520         ol_enable_translucent=${ol_enable_overlays:-no}
3521 fi;
3522 # end --enable-translucent
3523
3524 # OpenLDAP --enable-unique
3525
3526         # Check whether --enable-unique or --disable-unique was given.
3527 if test "${enable_unique+set}" = set; then
3528   enableval="$enable_unique"
3529
3530         ol_arg=invalid
3531         for ol_val in no yes mod ; do
3532                 if test "$enableval" = "$ol_val" ; then
3533                         ol_arg="$ol_val"
3534                 fi
3535         done
3536         if test "$ol_arg" = "invalid" ; then
3537                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3538 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3539    { (exit 1); exit 1; }; }
3540         fi
3541         ol_enable_unique="$ol_arg"
3542
3543 else
3544         ol_enable_unique=${ol_enable_overlays:-no}
3545 fi;
3546 # end --enable-unique
3547
3548 # OpenLDAP --enable-valsort
3549
3550         # Check whether --enable-valsort or --disable-valsort was given.
3551 if test "${enable_valsort+set}" = set; then
3552   enableval="$enable_valsort"
3553
3554         ol_arg=invalid
3555         for ol_val in no yes mod ; do
3556                 if test "$enableval" = "$ol_val" ; then
3557                         ol_arg="$ol_val"
3558                 fi
3559         done
3560         if test "$ol_arg" = "invalid" ; then
3561                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3562 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3563    { (exit 1); exit 1; }; }
3564         fi
3565         ol_enable_valsort="$ol_arg"
3566
3567 else
3568         ol_enable_valsort=${ol_enable_overlays:-no}
3569 fi;
3570 # end --enable-valsort
3571
3572
3573 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3574 if test "${enable_xxslurpdoptions+set}" = set; then
3575   enableval="$enable_xxslurpdoptions"
3576
3577 fi;
3578 # OpenLDAP --enable-slurpd
3579
3580         # Check whether --enable-slurpd or --disable-slurpd was given.
3581 if test "${enable_slurpd+set}" = set; then
3582   enableval="$enable_slurpd"
3583
3584         ol_arg=invalid
3585         for ol_val in auto yes no ; do
3586                 if test "$enableval" = "$ol_val" ; then
3587                         ol_arg="$ol_val"
3588                 fi
3589         done
3590         if test "$ol_arg" = "invalid" ; then
3591                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3592 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3593    { (exit 1); exit 1; }; }
3594         fi
3595         ol_enable_slurpd="$ol_arg"
3596
3597 else
3598         ol_enable_slurpd=auto
3599 fi;
3600 # end --enable-slurpd
3601
3602 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3603 if test "${enable_xxliboptions+set}" = set; then
3604   enableval="$enable_xxliboptions"
3605
3606 fi;
3607 # Check whether --enable-static or --disable-static was given.
3608 if test "${enable_static+set}" = set; then
3609   enableval="$enable_static"
3610   p=${PACKAGE-default}
3611     case $enableval in
3612     yes) enable_static=yes ;;
3613     no) enable_static=no ;;
3614     *)
3615      enable_static=no
3616       # Look at the argument we got.  We use all the common list separators.
3617       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3618       for pkg in $enableval; do
3619         IFS="$lt_save_ifs"
3620         if test "X$pkg" = "X$p"; then
3621           enable_static=yes
3622         fi
3623       done
3624       IFS="$lt_save_ifs"
3625       ;;
3626     esac
3627 else
3628   enable_static=yes
3629 fi;
3630
3631 # Check whether --enable-shared or --disable-shared was given.
3632 if test "${enable_shared+set}" = set; then
3633   enableval="$enable_shared"
3634   p=${PACKAGE-default}
3635     case $enableval in
3636     yes) enable_shared=yes ;;
3637     no) enable_shared=no ;;
3638     *)
3639       enable_shared=no
3640       # Look at the argument we got.  We use all the common list separators.
3641       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3642       for pkg in $enableval; do
3643         IFS="$lt_save_ifs"
3644         if test "X$pkg" = "X$p"; then
3645           enable_shared=yes
3646         fi
3647       done
3648       IFS="$lt_save_ifs"
3649       ;;
3650     esac
3651 else
3652   enable_shared=yes
3653 fi;
3654
3655
3656
3657 # validate options
3658 if test $ol_enable_slapd = no ; then
3659                 if test $ol_enable_slapi = yes ; then
3660                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3661 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3662         fi
3663         case "$ol_enable_backends" in yes | mod)
3664                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3665 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3666         esac
3667         for i in $Backends; do
3668                 eval "ol_tmp=\$ol_enable_$i"
3669                 if test $ol_tmp != no ; then
3670                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3671 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3672                         eval "ol_enable_$i=no"
3673                 fi
3674         done
3675         if test $ol_enable_modules = yes ; then
3676                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3677 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3678         fi
3679         if test $ol_enable_multimaster = yes ; then
3680                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3681 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3682         fi
3683         if test $ol_enable_wrappers = yes ; then
3684                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3685 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3686         fi
3687         if test $ol_enable_rlookups = yes ; then
3688                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3689 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3690         fi
3691         if test $ol_enable_dynacl = yes ; then
3692                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3693 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3694         fi
3695         if test $ol_enable_aci != no ; then
3696                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3697 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3698         fi
3699         if test $ol_enable_ldbm_api != auto ; then
3700                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3701 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3702         fi
3703         if test $ol_enable_ldbm_type != auto ; then
3704                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3705 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3706         fi
3707         if test $ol_enable_slurpd = yes ; then
3708                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3709 echo "$as_me: error: slurpd requires slapd" >&2;}
3710    { (exit 1); exit 1; }; }
3711         fi
3712         if test $ol_enable_rewrite = yes ; then
3713                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3714 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3715         fi
3716                 case "$ol_enable_overlays" in yes | mod)
3717                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3718 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3719         esac
3720         for i in $Overlays; do
3721                 eval "ol_tmp=\$ol_enable_$i"
3722                 if test $ol_tmp != no ; then
3723                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3724 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3725                         eval "ol_enable_$i=no"
3726                 fi
3727         done
3728
3729         # force settings to no
3730         ol_enable_slapi=no
3731
3732         ol_enable_backends=
3733         ol_enable_overlays=
3734         ol_enable_modules=no
3735         ol_enable_multimaster=no
3736         ol_enable_rlookups=no
3737         ol_enable_dynacl=no
3738         ol_enable_aci=no
3739         ol_enable_wrappers=no
3740
3741         ol_enable_ldbm_api=no
3742         ol_enable_ldbm_type=no
3743
3744         ol_enable_slurpd=no
3745
3746         ol_enable_rewrite=no
3747
3748 elif test $ol_enable_ldbm = no ; then
3749
3750         if test $ol_enable_ldbm_api != auto ; then
3751                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3752 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3753         fi
3754
3755         if test $ol_enable_ldbm_type != auto ; then
3756                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3757 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3758         fi
3759
3760         if test $ol_enable_modules != yes &&
3761            test $ol_enable_bdb = no &&
3762            test $ol_enable_dnssrv = no &&
3763            test $ol_enable_hdb = no &&
3764            test $ol_enable_ldap = no &&
3765            test $ol_enable_meta = no &&
3766            test $ol_enable_monitor = no &&
3767            test $ol_enable_null = no &&
3768            test $ol_enable_passwd = no &&
3769            test $ol_enable_perl = no &&
3770            test $ol_enable_relay = no &&
3771            test $ol_enable_shell = no &&
3772            test $ol_enable_sql = no ; then
3773
3774                 if test $ol_enable_slapd = yes ; then
3775                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3776 echo "$as_me: error: slapd requires a backend" >&2;}
3777    { (exit 1); exit 1; }; }
3778                 else
3779                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3780 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3781                         ol_enable_slapd=no
3782                 fi
3783         fi
3784
3785         ol_enable_ldbm_api=no
3786         ol_enable_ldbm_type=no
3787
3788         if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3789                 ol_enable_ldbm_api=berkeley
3790         fi
3791
3792 else
3793                 if test $ol_enable_ldbm_api = gdbm &&
3794            test $ol_enable_ldbm_type = btree ; then
3795                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3796 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3797    { (exit 1); exit 1; }; }
3798         fi
3799         if test $ol_enable_ldbm_api = mdbm &&
3800            test $ol_enable_ldbm_type = btree ; then
3801                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3802 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3803    { (exit 1); exit 1; }; }
3804         fi
3805         if test $ol_enable_ldbm_api = ndbm &&
3806            test $ol_enable_ldbm_type = btree ; then
3807                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3808 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3809    { (exit 1); exit 1; }; }
3810         fi
3811
3812         if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3813                 if test $ol_enable_ldbm_api = auto ; then
3814                         ol_enable_ldbm_api=berkeley
3815                 elif test $ol_enable_ldbm_api != berkeley ; then
3816                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3817 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3818    { (exit 1); exit 1; }; }
3819                 fi
3820         fi
3821 fi
3822
3823 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3824         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3825 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3826    { (exit 1); exit 1; }; }
3827 fi
3828
3829 if test $ol_enable_slurpd = yes ; then
3830                 if test $ol_with_threads = no ; then
3831                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3832 echo "$as_me: error: slurpd requires threads" >&2;}
3833    { (exit 1); exit 1; }; }
3834         fi
3835 fi
3836
3837 if test $ol_enable_lmpasswd = yes ; then
3838         if test $ol_with_tls = no ; then
3839                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3840 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3841    { (exit 1); exit 1; }; }
3842         fi
3843 fi
3844
3845 if test $ol_enable_kbind = yes ; then
3846         if test $ol_with_kerberos = no ; then
3847                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3848 echo "$as_me: error: options require --with-kerberos" >&2;}
3849    { (exit 1); exit 1; }; }
3850         elif test $ol_with_kerberos = auto ; then
3851                 ol_with_kerberos=yes
3852         fi
3853
3854 elif test $ol_enable_kbind = no ; then
3855         if test $ol_with_kerberos = auto ; then
3856                 ol_with_kerberos=no
3857         elif test $ol_with_kerberos != no ; then
3858                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3859 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3860                 ol_with_kerberos=no
3861         fi
3862 fi
3863
3864 if test $ol_enable_spasswd = yes ; then
3865         if test $ol_with_cyrus_sasl = no ; then
3866                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3867 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3868    { (exit 1); exit 1; }; }
3869         fi
3870         ol_with_cyrus_sasl=yes
3871 fi
3872
3873 echo "$as_me:$LINENO: result: done" >&5
3874 echo "${ECHO_T}done" >&6
3875
3876 LDAP_LIBS=
3877 LDBM_LIBS=
3878 LTHREAD_LIBS=
3879 LUTIL_LIBS=
3880
3881 SLAPD_LIBS=
3882 SLURPD_LIBS=
3883
3884 BUILD_SLAPD=no
3885 BUILD_SLURPD=no
3886
3887 BUILD_THREAD=no
3888
3889 BUILD_SLAPI=no
3890 SLAPD_SLAPI_DEPEND=
3891
3892 BUILD_BDB=no
3893 BUILD_DNSSRV=no
3894 BUILD_HDB=no
3895 BUILD_LDAP=no
3896 BUILD_LDBM=no
3897 BUILD_META=no
3898 BUILD_MONITOR=no
3899 BUILD_NULL=no
3900 BUILD_PASSWD=no
3901 BUILD_PERL=no
3902 BUILD_RELAY=no
3903 BUILD_SHELL=no
3904 BUILD_SQL=no
3905
3906 BUILD_ACCESSLOG=no
3907 BUILD_DDS=no
3908 BUILD_DENYOP=no
3909 BUILD_DYNGROUP=no
3910 BUILD_DYNLIST=no
3911 BUILD_LASTMOD=no
3912 BUILD_PPOLICY=no
3913 BUILD_PROXYCACHE=no
3914 BUILD_REFINT=no
3915 BUILD_RETCODE=no
3916 BUILD_RWM=no
3917 BUILD_SYNCPROV=no
3918 BUILD_TRANSLUCENT=no
3919 BUILD_UNIQUE=no
3920 BUILD_VALSORT=no
3921
3922 SLAPD_STATIC_OVERLAYS=
3923 SLAPD_DYNAMIC_OVERLAYS=
3924
3925 SLAPD_MODULES_LDFLAGS=
3926 SLAPD_MODULES_CPPFLAGS=
3927
3928 SLAPD_STATIC_BACKENDS=back-ldif
3929 SLAPD_DYNAMIC_BACKENDS=
3930
3931 SLAPD_PERL_LDFLAGS=
3932 MOD_PERL_LDFLAGS=
3933 PERL_CPPFLAGS=
3934
3935 SLAPD_SQL_LDFLAGS=
3936 SLAPD_SQL_LIBS=
3937 SLAPD_SQL_INCLUDES=
3938
3939 KRB4_LIBS=
3940 KRB5_LIBS=
3941 SASL_LIBS=
3942 TLS_LIBS=
3943 MODULES_LIBS=
3944 SLAPI_LIBS=
3945 LIBSLAPI=
3946 LIBSLAPITOOLS=
3947 AUTH_LIBS=
3948 ICU_LIBS=
3949
3950 SLAPD_SLP_LIBS=
3951 SLAPD_GMP_LIBS=
3952
3953
3954
3955 cat >>confdefs.h <<\_ACEOF
3956 #define HAVE_MKVERSION 1
3957 _ACEOF
3958
3959
3960
3961
3962 ol_aix_threads=no
3963 case "$target" in
3964 *-*-aix*)       if test -z "$CC" ; then
3965                 case "$ol_with_threads" in
3966                 auto | yes |  posix) ol_aix_threads=yes ;;
3967                 esac
3968         fi
3969 ;;
3970 esac
3971
3972 if test $ol_aix_threads = yes ; then
3973         if test -z "${CC}" ; then
3974                 for ac_prog in cc_r xlc_r cc
3975 do
3976   # Extract the first word of "$ac_prog", so it can be a program name with args.
3977 set dummy $ac_prog; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_CC+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   if test -n "$CC"; then
3984   ac_cv_prog_CC="$CC" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989   IFS=$as_save_IFS
3990   test -z "$as_dir" && as_dir=.
3991   for ac_exec_ext in '' $ac_executable_extensions; do
3992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993     ac_cv_prog_CC="$ac_prog"
3994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995     break 2
3996   fi
3997 done
3998 done
3999
4000 fi
4001 fi
4002 CC=$ac_cv_prog_CC
4003 if test -n "$CC"; then
4004   echo "$as_me:$LINENO: result: $CC" >&5
4005 echo "${ECHO_T}$CC" >&6
4006 else
4007   echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4009 fi
4010
4011   test -n "$CC" && break
4012 done
4013
4014
4015                 if test "$CC" = cc ; then
4016                                                 if test $ol_with_threads != auto ; then
4017                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4018 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4019    { (exit 1); exit 1; }; }
4020                         else
4021                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4022 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4023                         fi
4024                         ol_with_threads=no
4025                 fi
4026         fi
4027
4028         case ${CC} in cc_r | xlc_r)
4029                 ol_with_threads=posix
4030                 ol_cv_pthread_create=yes
4031                 ;;
4032         esac
4033 fi
4034
4035 if test -z "${CC}"; then
4036         for ac_prog in cc gcc
4037 do
4038   # Extract the first word of "$ac_prog", so it can be a program name with args.
4039 set dummy $ac_prog; ac_word=$2
4040 echo "$as_me:$LINENO: checking for $ac_word" >&5
4041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4042 if test "${ac_cv_prog_CC+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   if test -n "$CC"; then
4046   ac_cv_prog_CC="$CC" # Let the user override the test.
4047 else
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4050 do
4051   IFS=$as_save_IFS
4052   test -z "$as_dir" && as_dir=.
4053   for ac_exec_ext in '' $ac_executable_extensions; do
4054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055     ac_cv_prog_CC="$ac_prog"
4056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057     break 2
4058   fi
4059 done
4060 done
4061
4062 fi
4063 fi
4064 CC=$ac_cv_prog_CC
4065 if test -n "$CC"; then
4066   echo "$as_me:$LINENO: result: $CC" >&5
4067 echo "${ECHO_T}$CC" >&6
4068 else
4069   echo "$as_me:$LINENO: result: no" >&5
4070 echo "${ECHO_T}no" >&6
4071 fi
4072
4073   test -n "$CC" && break
4074 done
4075 test -n "$CC" || CC="missing"
4076
4077
4078         if test "${CC}" = "missing" ; then
4079                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4080 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4081    { (exit 1); exit 1; }; }
4082         fi
4083 fi
4084
4085 if test -z "${AR}"; then
4086         for ac_prog in ar gar
4087 do
4088   # Extract the first word of "$ac_prog", so it can be a program name with args.
4089 set dummy $ac_prog; ac_word=$2
4090 echo "$as_me:$LINENO: checking for $ac_word" >&5
4091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4092 if test "${ac_cv_prog_AR+set}" = set; then
4093   echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095   if test -n "$AR"; then
4096   ac_cv_prog_AR="$AR" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4100 do
4101   IFS=$as_save_IFS
4102   test -z "$as_dir" && as_dir=.
4103   for ac_exec_ext in '' $ac_executable_extensions; do
4104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105     ac_cv_prog_AR="$ac_prog"
4106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107     break 2
4108   fi
4109 done
4110 done
4111
4112 fi
4113 fi
4114 AR=$ac_cv_prog_AR
4115 if test -n "$AR"; then
4116   echo "$as_me:$LINENO: result: $AR" >&5
4117 echo "${ECHO_T}$AR" >&6
4118 else
4119   echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4121 fi
4122
4123   test -n "$AR" && break
4124 done
4125 test -n "$AR" || AR="missing"
4126
4127
4128         if test "${AR}" = "missing" ; then
4129                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4130 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4131    { (exit 1); exit 1; }; }
4132         fi
4133 fi
4134
4135
4136
4137
4138
4139 # Check whether --enable-fast-install or --disable-fast-install was given.
4140 if test "${enable_fast_install+set}" = set; then
4141   enableval="$enable_fast_install"
4142   p=${PACKAGE-default}
4143     case $enableval in
4144     yes) enable_fast_install=yes ;;
4145     no) enable_fast_install=no ;;
4146     *)
4147       enable_fast_install=no
4148       # Look at the argument we got.  We use all the common list separators.
4149       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4150       for pkg in $enableval; do
4151         IFS="$lt_save_ifs"
4152         if test "X$pkg" = "X$p"; then
4153           enable_fast_install=yes
4154         fi
4155       done
4156       IFS="$lt_save_ifs"
4157       ;;
4158     esac
4159 else
4160   enable_fast_install=yes
4161 fi;
4162
4163 DEPDIR="${am__leading_dot}deps"
4164
4165           ac_config_commands="$ac_config_commands depfiles"
4166
4167
4168 am_make=${MAKE-make}
4169 cat > confinc << 'END'
4170 am__doit:
4171         @echo done
4172 .PHONY: am__doit
4173 END
4174 # If we don't find an include directive, just comment out the code.
4175 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4176 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4177 am__include="#"
4178 am__quote=
4179 _am_result=none
4180 # First try GNU make style include.
4181 echo "include confinc" > confmf
4182 # We grep out `Entering directory' and `Leaving directory'
4183 # messages which can occur if `w' ends up in MAKEFLAGS.
4184 # In particular we don't look at `^make:' because GNU make might
4185 # be invoked under some other name (usually "gmake"), in which
4186 # case it prints its new name instead of `make'.
4187 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4188    am__include=include
4189    am__quote=
4190    _am_result=GNU
4191 fi
4192 # Now try BSD make style include.
4193 if test "$am__include" = "#"; then
4194    echo '.include "confinc"' > confmf
4195    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4196       am__include=.include
4197       am__quote="\""
4198       _am_result=BSD
4199    fi
4200 fi
4201
4202
4203 echo "$as_me:$LINENO: result: $_am_result" >&5
4204 echo "${ECHO_T}$_am_result" >&6
4205 rm -f confinc confmf
4206
4207 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4208 if test "${enable_dependency_tracking+set}" = set; then
4209   enableval="$enable_dependency_tracking"
4210
4211 fi;
4212 if test "x$enable_dependency_tracking" != xno; then
4213   am_depcomp="$ac_aux_dir/depcomp"
4214   AMDEPBACKSLASH='\'
4215 fi
4216
4217
4218 if test "x$enable_dependency_tracking" != xno; then
4219   AMDEP_TRUE=
4220   AMDEP_FALSE='#'
4221 else
4222   AMDEP_TRUE='#'
4223   AMDEP_FALSE=
4224 fi
4225
4226
4227
4228 ac_ext=c
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233 if test -n "$ac_tool_prefix"; then
4234   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4236 echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4238 if test "${ac_cv_prog_CC+set}" = set; then
4239   echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241   if test -n "$CC"; then
4242   ac_cv_prog_CC="$CC" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247   IFS=$as_save_IFS
4248   test -z "$as_dir" && as_dir=.
4249   for ac_exec_ext in '' $ac_executable_extensions; do
4250   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4253     break 2
4254   fi
4255 done
4256 done
4257
4258 fi
4259 fi
4260 CC=$ac_cv_prog_CC
4261 if test -n "$CC"; then
4262   echo "$as_me:$LINENO: result: $CC" >&5
4263 echo "${ECHO_T}$CC" >&6
4264 else
4265   echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6
4267 fi
4268
4269 fi
4270 if test -z "$ac_cv_prog_CC"; then
4271   ac_ct_CC=$CC
4272   # Extract the first word of "gcc", so it can be a program name with args.
4273 set dummy gcc; ac_word=$2
4274 echo "$as_me:$LINENO: checking for $ac_word" >&5
4275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4276 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4277   echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279   if test -n "$ac_ct_CC"; then
4280   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285   IFS=$as_save_IFS
4286   test -z "$as_dir" && as_dir=.
4287   for ac_exec_ext in '' $ac_executable_extensions; do
4288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289     ac_cv_prog_ac_ct_CC="gcc"
4290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291     break 2
4292   fi
4293 done
4294 done
4295
4296 fi
4297 fi
4298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4299 if test -n "$ac_ct_CC"; then
4300   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4301 echo "${ECHO_T}$ac_ct_CC" >&6
4302 else
4303   echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6
4305 fi
4306
4307   CC=$ac_ct_CC
4308 else
4309   CC="$ac_cv_prog_CC"
4310 fi
4311
4312 if test -z "$CC"; then
4313   if test -n "$ac_tool_prefix"; then
4314   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4315 set dummy ${ac_tool_prefix}cc; ac_word=$2
4316 echo "$as_me:$LINENO: checking for $ac_word" >&5
4317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4318 if test "${ac_cv_prog_CC+set}" = set; then
4319   echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321   if test -n "$CC"; then
4322   ac_cv_prog_CC="$CC" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327   IFS=$as_save_IFS
4328   test -z "$as_dir" && as_dir=.
4329   for ac_exec_ext in '' $ac_executable_extensions; do
4330   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331     ac_cv_prog_CC="${ac_tool_prefix}cc"
4332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333     break 2
4334   fi
4335 done
4336 done
4337
4338 fi
4339 fi
4340 CC=$ac_cv_prog_CC
4341 if test -n "$CC"; then
4342   echo "$as_me:$LINENO: result: $CC" >&5
4343 echo "${ECHO_T}$CC" >&6
4344 else
4345   echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6
4347 fi
4348
4349 fi
4350 if test -z "$ac_cv_prog_CC"; then
4351   ac_ct_CC=$CC
4352   # Extract the first word of "cc", so it can be a program name with args.
4353 set dummy cc; ac_word=$2
4354 echo "$as_me:$LINENO: checking for $ac_word" >&5
4355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4356 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4357   echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359   if test -n "$ac_ct_CC"; then
4360   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365   IFS=$as_save_IFS
4366   test -z "$as_dir" && as_dir=.
4367   for ac_exec_ext in '' $ac_executable_extensions; do
4368   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369     ac_cv_prog_ac_ct_CC="cc"
4370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374 done
4375
4376 fi
4377 fi
4378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4379 if test -n "$ac_ct_CC"; then
4380   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4381 echo "${ECHO_T}$ac_ct_CC" >&6
4382 else
4383   echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6
4385 fi
4386
4387   CC=$ac_ct_CC
4388 else
4389   CC="$ac_cv_prog_CC"
4390 fi
4391
4392 fi
4393 if test -z "$CC"; then
4394   # Extract the first word of "cc", so it can be a program name with args.
4395 set dummy cc; ac_word=$2
4396 echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4398 if test "${ac_cv_prog_CC+set}" = set; then
4399   echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401   if test -n "$CC"; then
4402   ac_cv_prog_CC="$CC" # Let the user override the test.
4403 else
4404   ac_prog_rejected=no
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408   IFS=$as_save_IFS
4409   test -z "$as_dir" && as_dir=.
4410   for ac_exec_ext in '' $ac_executable_extensions; do
4411   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4413        ac_prog_rejected=yes
4414        continue
4415      fi
4416     ac_cv_prog_CC="cc"
4417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418     break 2
4419   fi
4420 done
4421 done
4422
4423 if test $ac_prog_rejected = yes; then
4424   # We found a bogon in the path, so make sure we never use it.
4425   set dummy $ac_cv_prog_CC
4426   shift
4427   if test $# != 0; then
4428     # We chose a different compiler from the bogus one.
4429     # However, it has the same basename, so the bogon will be chosen
4430     # first if we set CC to just the basename; use the full file name.
4431     shift
4432     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4433   fi
4434 fi
4435 fi
4436 fi
4437 CC=$ac_cv_prog_CC
4438 if test -n "$CC"; then
4439   echo "$as_me:$LINENO: result: $CC" >&5
4440 echo "${ECHO_T}$CC" >&6
4441 else
4442   echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6
4444 fi
4445
4446 fi
4447 if test -z "$CC"; then
4448   if test -n "$ac_tool_prefix"; then
4449   for ac_prog in cl
4450   do
4451     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4453 echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4455 if test "${ac_cv_prog_CC+set}" = set; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   if test -n "$CC"; then
4459   ac_cv_prog_CC="$CC" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464   IFS=$as_save_IFS
4465   test -z "$as_dir" && as_dir=.
4466   for ac_exec_ext in '' $ac_executable_extensions; do
4467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470     break 2
4471   fi
4472 done
4473 done
4474
4475 fi
4476 fi
4477 CC=$ac_cv_prog_CC
4478 if test -n "$CC"; then
4479   echo "$as_me:$LINENO: result: $CC" >&5
4480 echo "${ECHO_T}$CC" >&6
4481 else
4482   echo "$as_me:$LINENO: result: no" >&5
4483 echo "${ECHO_T}no" >&6
4484 fi
4485
4486     test -n "$CC" && break
4487   done
4488 fi
4489 if test -z "$CC"; then
4490   ac_ct_CC=$CC
4491   for ac_prog in cl
4492 do
4493   # Extract the first word of "$ac_prog", so it can be a program name with args.
4494 set dummy $ac_prog; ac_word=$2
4495 echo "$as_me:$LINENO: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4498   echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500   if test -n "$ac_ct_CC"; then
4501   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4502 else
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506   IFS=$as_save_IFS
4507   test -z "$as_dir" && as_dir=.
4508   for ac_exec_ext in '' $ac_executable_extensions; do
4509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510     ac_cv_prog_ac_ct_CC="$ac_prog"
4511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512     break 2
4513   fi
4514 done
4515 done
4516
4517 fi
4518 fi
4519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4520 if test -n "$ac_ct_CC"; then
4521   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4522 echo "${ECHO_T}$ac_ct_CC" >&6
4523 else
4524   echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6
4526 fi
4527
4528   test -n "$ac_ct_CC" && break
4529 done
4530
4531   CC=$ac_ct_CC
4532 fi
4533
4534 fi
4535
4536
4537 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4538 See \`config.log' for more details." >&5
4539 echo "$as_me: error: no acceptable C compiler found in \$PATH
4540 See \`config.log' for more details." >&2;}
4541    { (exit 1); exit 1; }; }
4542
4543 # Provide some information about the compiler.
4544 echo "$as_me:$LINENO:" \
4545      "checking for C compiler version" >&5
4546 ac_compiler=`set X $ac_compile; echo $2`
4547 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4548   (eval $ac_compiler --version </dev/null >&5) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); }
4552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4553   (eval $ac_compiler -v </dev/null >&5) 2>&5
4554   ac_status=$?
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); }
4557 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4558   (eval $ac_compiler -V </dev/null >&5) 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); }
4562
4563 cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h.  */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h.  */
4569
4570 int
4571 main ()
4572 {
4573
4574   ;
4575   return 0;
4576 }
4577 _ACEOF
4578 ac_clean_files_save=$ac_clean_files
4579 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4580 # Try to create an executable without -o first, disregard a.out.
4581 # It will help us diagnose broken compilers, and finding out an intuition
4582 # of exeext.
4583 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4584 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4585 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4586 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4587   (eval $ac_link_default) 2>&5
4588   ac_status=$?
4589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590   (exit $ac_status); }; then
4591   # Find the output, starting from the most likely.  This scheme is
4592 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4593 # resort.
4594
4595 # Be careful to initialize this variable, since it used to be cached.
4596 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4597 ac_cv_exeext=
4598 # b.out is created by i960 compilers.
4599 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4600 do
4601   test -f "$ac_file" || continue
4602   case $ac_file in
4603     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4604         ;;
4605     conftest.$ac_ext )
4606         # This is the source file.
4607         ;;
4608     [ab].out )
4609         # We found the default executable, but exeext='' is most
4610         # certainly right.
4611         break;;
4612     *.* )
4613         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4614         # FIXME: I believe we export ac_cv_exeext for Libtool,
4615         # but it would be cool to find out if it's true.  Does anybody
4616         # maintain Libtool? --akim.
4617         export ac_cv_exeext
4618         break;;
4619     * )
4620         break;;
4621   esac
4622 done
4623 else
4624   echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4628 See \`config.log' for more details." >&5
4629 echo "$as_me: error: C compiler cannot create executables
4630 See \`config.log' for more details." >&2;}
4631    { (exit 77); exit 77; }; }
4632 fi
4633
4634 ac_exeext=$ac_cv_exeext
4635 echo "$as_me:$LINENO: result: $ac_file" >&5
4636 echo "${ECHO_T}$ac_file" >&6
4637
4638 # Check the compiler produces executables we can run.  If not, either
4639 # the compiler is broken, or we cross compile.
4640 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4641 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4642 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4643 # If not cross compiling, check that we can run a simple program.
4644 if test "$cross_compiling" != yes; then
4645   if { ac_try='./$ac_file'
4646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647   (eval $ac_try) 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); }; }; then
4651     cross_compiling=no
4652   else
4653     if test "$cross_compiling" = maybe; then
4654         cross_compiling=yes
4655     else
4656         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4657 If you meant to cross compile, use \`--host'.
4658 See \`config.log' for more details." >&5
4659 echo "$as_me: error: cannot run C compiled programs.
4660 If you meant to cross compile, use \`--host'.
4661 See \`config.log' for more details." >&2;}
4662    { (exit 1); exit 1; }; }
4663     fi
4664   fi
4665 fi
4666 echo "$as_me:$LINENO: result: yes" >&5
4667 echo "${ECHO_T}yes" >&6
4668
4669 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4670 ac_clean_files=$ac_clean_files_save
4671 # Check the compiler produces executables we can run.  If not, either
4672 # the compiler is broken, or we cross compile.
4673 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4674 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4675 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4676 echo "${ECHO_T}$cross_compiling" >&6
4677
4678 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4679 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681   (eval $ac_link) 2>&5
4682   ac_status=$?
4683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684   (exit $ac_status); }; then
4685   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4686 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4687 # work properly (i.e., refer to `conftest.exe'), while it won't with
4688 # `rm'.
4689 for ac_file in conftest.exe conftest conftest.*; do
4690   test -f "$ac_file" || continue
4691   case $ac_file in
4692     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4693     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4694           export ac_cv_exeext
4695           break;;
4696     * ) break;;
4697   esac
4698 done
4699 else
4700   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4701 See \`config.log' for more details." >&5
4702 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4703 See \`config.log' for more details." >&2;}
4704    { (exit 1); exit 1; }; }
4705 fi
4706
4707 rm -f conftest$ac_cv_exeext
4708 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4709 echo "${ECHO_T}$ac_cv_exeext" >&6
4710
4711 rm -f conftest.$ac_ext
4712 EXEEXT=$ac_cv_exeext
4713 ac_exeext=$EXEEXT
4714 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4715 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4716 if test "${ac_cv_objext+set}" = set; then
4717   echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719   cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h.  */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h.  */
4725
4726 int
4727 main ()
4728 {
4729
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 rm -f conftest.o conftest.obj
4735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4736   (eval $ac_compile) 2>&5
4737   ac_status=$?
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); }; then
4740   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4741   case $ac_file in
4742     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4743     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4744        break;;
4745   esac
4746 done
4747 else
4748   echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4752 See \`config.log' for more details." >&5
4753 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4754 See \`config.log' for more details." >&2;}
4755    { (exit 1); exit 1; }; }
4756 fi
4757
4758 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4759 fi
4760 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4761 echo "${ECHO_T}$ac_cv_objext" >&6
4762 OBJEXT=$ac_cv_objext
4763 ac_objext=$OBJEXT
4764 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4765 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4766 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4767   echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769   cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h.  */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h.  */
4775
4776 int
4777 main ()
4778 {
4779 #ifndef __GNUC__
4780        choke me
4781 #endif
4782
4783   ;
4784   return 0;
4785 }
4786 _ACEOF
4787 rm -f conftest.$ac_objext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789   (eval $ac_compile) 2>conftest.er1
4790   ac_status=$?
4791   grep -v '^ *+' conftest.er1 >conftest.err
4792   rm -f conftest.er1
4793   cat conftest.err >&5
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); } &&
4796          { ac_try='test -z "$ac_c_werror_flag"
4797                          || test ! -s conftest.err'
4798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799   (eval $ac_try) 2>&5
4800   ac_status=$?
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); }; } &&
4803          { ac_try='test -s conftest.$ac_objext'
4804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805   (eval $ac_try) 2>&5
4806   ac_status=$?
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); }; }; then
4809   ac_compiler_gnu=yes
4810 else
4811   echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4813
4814 ac_compiler_gnu=no
4815 fi
4816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4817 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4818
4819 fi
4820 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4821 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4822 GCC=`test $ac_compiler_gnu = yes && echo yes`
4823 ac_test_CFLAGS=${CFLAGS+set}
4824 ac_save_CFLAGS=$CFLAGS
4825 CFLAGS="-g"
4826 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4827 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4828 if test "${ac_cv_prog_cc_g+set}" = set; then
4829   echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831   cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h.  */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h.  */
4837
4838 int
4839 main ()
4840 {
4841
4842   ;
4843   return 0;
4844 }
4845 _ACEOF
4846 rm -f conftest.$ac_objext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4848   (eval $ac_compile) 2>conftest.er1
4849   ac_status=$?
4850   grep -v '^ *+' conftest.er1 >conftest.err
4851   rm -f conftest.er1
4852   cat conftest.err >&5
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); } &&
4855          { ac_try='test -z "$ac_c_werror_flag"
4856                          || test ! -s conftest.err'
4857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858   (eval $ac_try) 2>&5
4859   ac_status=$?
4860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); }; } &&
4862          { ac_try='test -s conftest.$ac_objext'
4863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864   (eval $ac_try) 2>&5
4865   ac_status=$?
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); }; }; then
4868   ac_cv_prog_cc_g=yes
4869 else
4870   echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4872
4873 ac_cv_prog_cc_g=no
4874 fi
4875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4876 fi
4877 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4878 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4879 if test "$ac_test_CFLAGS" = set; then
4880   CFLAGS=$ac_save_CFLAGS
4881 elif test $ac_cv_prog_cc_g = yes; then
4882   if test "$GCC" = yes; then
4883     CFLAGS="-g -O2"
4884   else
4885     CFLAGS="-g"
4886   fi
4887 else
4888   if test "$GCC" = yes; then
4889     CFLAGS="-O2"
4890   else
4891     CFLAGS=
4892   fi
4893 fi
4894 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4895 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4896 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4897   echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899   ac_cv_prog_cc_stdc=no
4900 ac_save_CC=$CC
4901 cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h.  */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h.  */
4907 #include <stdarg.h>
4908 #include <stdio.h>
4909 #include <sys/types.h>
4910 #include <sys/stat.h>
4911 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4912 struct buf { int x; };
4913 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4914 static char *e (p, i)
4915      char **p;
4916      int i;
4917 {
4918   return p[i];
4919 }
4920 static char *f (char * (*g) (char **, int), char **p, ...)
4921 {
4922   char *s;
4923   va_list v;
4924   va_start (v,p);
4925   s = g (p, va_arg (v,int));
4926   va_end (v);
4927   return s;
4928 }
4929
4930 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4931    function prototypes and stuff, but not '\xHH' hex character constants.
4932    These don't provoke an error unfortunately, instead are silently treated
4933    as 'x'.  The following induces an error, until -std1 is added to get
4934    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4935    array size at least.  It's necessary to write '\x00'==0 to get something
4936    that's true only with -std1.  */
4937 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4938
4939 int test (int i, double x);
4940 struct s1 {int (*f) (int a);};
4941 struct s2 {int (*f) (double a);};
4942 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4943 int argc;
4944 char **argv;
4945 int
4946 main ()
4947 {
4948 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4949   ;
4950   return 0;
4951 }
4952 _ACEOF
4953 # Don't try gcc -ansi; that turns off useful extensions and
4954 # breaks some systems' header files.
4955 # AIX                   -qlanglvl=ansi
4956 # Ultrix and OSF/1      -std1
4957 # HP-UX 10.20 and later -Ae
4958 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4959 # SVR4                  -Xc -D__EXTENSIONS__
4960 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4961 do
4962   CC="$ac_save_CC $ac_arg"
4963   rm -f conftest.$ac_objext
4964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965   (eval $ac_compile) 2>conftest.er1
4966   ac_status=$?
4967   grep -v '^ *+' conftest.er1 >conftest.err
4968   rm -f conftest.er1
4969   cat conftest.err >&5
4970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971   (exit $ac_status); } &&
4972          { ac_try='test -z "$ac_c_werror_flag"
4973                          || test ! -s conftest.err'
4974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975   (eval $ac_try) 2>&5
4976   ac_status=$?
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); }; } &&
4979          { ac_try='test -s conftest.$ac_objext'
4980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981   (eval $ac_try) 2>&5
4982   ac_status=$?
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); }; }; then
4985   ac_cv_prog_cc_stdc=$ac_arg
4986 break
4987 else
4988   echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4990
4991 fi
4992 rm -f conftest.err conftest.$ac_objext
4993 done
4994 rm -f conftest.$ac_ext conftest.$ac_objext
4995 CC=$ac_save_CC
4996
4997 fi
4998
4999 case "x$ac_cv_prog_cc_stdc" in
5000   x|xno)
5001     echo "$as_me:$LINENO: result: none needed" >&5
5002 echo "${ECHO_T}none needed" >&6 ;;
5003   *)
5004     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5005 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5006     CC="$CC $ac_cv_prog_cc_stdc" ;;
5007 esac
5008
5009 # Some people use a C++ compiler to compile C.  Since we use `exit',
5010 # in C++ we need to declare it.  In case someone uses the same compiler
5011 # for both compiling C and C++ we need to have the C++ compiler decide
5012 # the declaration of exit, since it's the most demanding environment.
5013 cat >conftest.$ac_ext <<_ACEOF
5014 #ifndef __cplusplus
5015   choke me
5016 #endif
5017 _ACEOF
5018 rm -f conftest.$ac_objext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020   (eval $ac_compile) 2>conftest.er1
5021   ac_status=$?
5022   grep -v '^ *+' conftest.er1 >conftest.err
5023   rm -f conftest.er1
5024   cat conftest.err >&5
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); } &&
5027          { ac_try='test -z "$ac_c_werror_flag"
5028                          || test ! -s conftest.err'
5029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030   (eval $ac_try) 2>&5
5031   ac_status=$?
5032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033   (exit $ac_status); }; } &&
5034          { ac_try='test -s conftest.$ac_objext'
5035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036   (eval $ac_try) 2>&5
5037   ac_status=$?
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); }; }; then
5040   for ac_declaration in \
5041    '' \
5042    'extern "C" void std::exit (int) throw (); using std::exit;' \
5043    'extern "C" void std::exit (int); using std::exit;' \
5044    'extern "C" void exit (int) throw ();' \
5045    'extern "C" void exit (int);' \
5046    'void exit (int);'
5047 do
5048   cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h.  */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h.  */
5054 $ac_declaration
5055 #include <stdlib.h>
5056 int
5057 main ()
5058 {
5059 exit (42);
5060   ;
5061   return 0;
5062 }
5063 _ACEOF
5064 rm -f conftest.$ac_objext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066   (eval $ac_compile) 2>conftest.er1
5067   ac_status=$?
5068   grep -v '^ *+' conftest.er1 >conftest.err
5069   rm -f conftest.er1
5070   cat conftest.err >&5
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); } &&
5073          { ac_try='test -z "$ac_c_werror_flag"
5074                          || test ! -s conftest.err'
5075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076   (eval $ac_try) 2>&5
5077   ac_status=$?
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); }; } &&
5080          { ac_try='test -s conftest.$ac_objext'
5081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082   (eval $ac_try) 2>&5
5083   ac_status=$?
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); }; }; then
5086   :
5087 else
5088   echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091 continue
5092 fi
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094   cat >conftest.$ac_ext <<_ACEOF
5095 /* confdefs.h.  */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h.  */
5100 $ac_declaration
5101 int
5102 main ()
5103 {
5104 exit (42);
5105   ;
5106   return 0;
5107 }
5108 _ACEOF
5109 rm -f conftest.$ac_objext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5111   (eval $ac_compile) 2>conftest.er1
5112   ac_status=$?
5113   grep -v '^ *+' conftest.er1 >conftest.err
5114   rm -f conftest.er1
5115   cat conftest.err >&5
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); } &&
5118          { ac_try='test -z "$ac_c_werror_flag"
5119                          || test ! -s conftest.err'
5120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121   (eval $ac_try) 2>&5
5122   ac_status=$?
5123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124   (exit $ac_status); }; } &&
5125          { ac_try='test -s conftest.$ac_objext'
5126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127   (eval $ac_try) 2>&5
5128   ac_status=$?
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); }; }; then
5131   break
5132 else
5133   echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5135
5136 fi
5137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5138 done
5139 rm -f conftest*
5140 if test -n "$ac_declaration"; then
5141   echo '#ifdef __cplusplus' >>confdefs.h
5142   echo $ac_declaration      >>confdefs.h
5143   echo '#endif'             >>confdefs.h
5144 fi
5145
5146 else
5147   echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5149
5150 fi
5151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5152 ac_ext=c
5153 ac_cpp='$CPP $CPPFLAGS'
5154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5157
5158 depcc="$CC"   am_compiler_list=
5159
5160 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5161 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5162 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5163   echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5166   # We make a subdir and do the tests there.  Otherwise we can end up
5167   # making bogus files that we don't know about and never remove.  For
5168   # instance it was reported that on HP-UX the gcc test will end up
5169   # making a dummy file named `D' -- because `-MD' means `put the output
5170   # in D'.
5171   mkdir conftest.dir
5172   # Copy depcomp to subdir because otherwise we won't find it if we're
5173   # using a relative directory.
5174   cp "$am_depcomp" conftest.dir
5175   cd conftest.dir
5176   # We will build objects and dependencies in a subdirectory because
5177   # it helps to detect inapplicable dependency modes.  For instance
5178   # both Tru64's cc and ICC support -MD to output dependencies as a
5179   # side effect of compilation, but ICC will put the dependencies in
5180   # the current directory while Tru64 will put them in the object
5181   # directory.
5182   mkdir sub
5183
5184   am_cv_CC_dependencies_compiler_type=none
5185   if test "$am_compiler_list" = ""; then
5186      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5187   fi
5188   for depmode in $am_compiler_list; do
5189     # Setup a source with many dependencies, because some compilers
5190     # like to wrap large dependency lists on column 80 (with \), and
5191     # we should not choose a depcomp mode which is confused by this.
5192     #
5193     # We need to recreate these files for each test, as the compiler may
5194     # overwrite some of them when testing with obscure command lines.
5195     # This happens at least with the AIX C compiler.
5196     : > sub/conftest.c
5197     for i in 1 2 3 4 5 6; do
5198       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5199       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5200       # Solaris 8's {/usr,}/bin/sh.
5201       touch sub/conftst$i.h
5202     done
5203     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5204
5205     case $depmode in
5206     nosideeffect)
5207       # after this tag, mechanisms are not by side-effect, so they'll
5208       # only be used when explicitly requested
5209       if test "x$enable_dependency_tracking" = xyes; then
5210         continue
5211       else
5212         break
5213       fi
5214       ;;
5215     none) break ;;
5216     esac
5217     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5218     # mode.  It turns out that the SunPro C++ compiler does not properly
5219     # handle `-M -o', and we need to detect this.
5220     if depmode=$depmode \
5221        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5222        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5223        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5224          >/dev/null 2>conftest.err &&
5225        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5226        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5227        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5228       # icc doesn't choke on unknown options, it will just issue warnings
5229       # or remarks (even with -Werror).  So we grep stderr for any message
5230       # that says an option was ignored or not supported.
5231       # When given -MP, icc 7.0 and 7.1 complain thusly:
5232       #   icc: Command line warning: ignoring option '-M'; no argument required
5233       # The diagnosis changed in icc 8.0:
5234       #   icc: Command line remark: option '-MP' not supported
5235       if (grep 'ignoring option' conftest.err ||
5236           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5237         am_cv_CC_dependencies_compiler_type=$depmode
5238         break
5239       fi
5240     fi
5241   done
5242
5243   cd ..
5244   rm -rf conftest.dir
5245 else
5246   am_cv_CC_dependencies_compiler_type=none
5247 fi
5248
5249 fi
5250 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5251 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5252 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5253
5254
5255
5256 if
5257   test "x$enable_dependency_tracking" != xno \
5258   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5259   am__fastdepCC_TRUE=
5260   am__fastdepCC_FALSE='#'
5261 else
5262   am__fastdepCC_TRUE='#'
5263   am__fastdepCC_FALSE=
5264 fi
5265
5266
5267 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5268 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5269 if test "${lt_cv_path_SED+set}" = set; then
5270   echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272   # Loop through the user's path and test for sed and gsed.
5273 # Then use that list of sed's as ones to test for truncation.
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277   IFS=$as_save_IFS
5278   test -z "$as_dir" && as_dir=.
5279   for lt_ac_prog in sed gsed; do
5280     for ac_exec_ext in '' $ac_executable_extensions; do
5281       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5282         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5283       fi
5284     done
5285   done
5286 done
5287 lt_ac_max=0
5288 lt_ac_count=0
5289 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5290 # along with /bin/sed that truncates output.
5291 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5292   test ! -f $lt_ac_sed && continue
5293   cat /dev/null > conftest.in
5294   lt_ac_count=0
5295   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5296   # Check for GNU sed and select it if it is found.
5297   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5298     lt_cv_path_SED=$lt_ac_sed
5299     break
5300   fi
5301   while true; do
5302     cat conftest.in conftest.in >conftest.tmp
5303     mv conftest.tmp conftest.in
5304     cp conftest.in conftest.nl
5305     echo >>conftest.nl
5306     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5307     cmp -s conftest.out conftest.nl || break
5308     # 10000 chars as input seems more than enough
5309     test $lt_ac_count -gt 10 && break
5310     lt_ac_count=`expr $lt_ac_count + 1`
5311     if test $lt_ac_count -gt $lt_ac_max; then
5312       lt_ac_max=$lt_ac_count
5313       lt_cv_path_SED=$lt_ac_sed
5314     fi
5315   done
5316 done
5317
5318 fi
5319
5320 SED=$lt_cv_path_SED
5321 echo "$as_me:$LINENO: result: $SED" >&5
5322 echo "${ECHO_T}$SED" >&6
5323
5324 echo "$as_me:$LINENO: checking for egrep" >&5
5325 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5326 if test "${ac_cv_prog_egrep+set}" = set; then
5327   echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5330     then ac_cv_prog_egrep='grep -E'
5331     else ac_cv_prog_egrep='egrep'
5332     fi
5333 fi
5334 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5335 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5336  EGREP=$ac_cv_prog_egrep
5337
5338
5339
5340 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5341 if test "${with_gnu_ld+set}" = set; then
5342   withval="$with_gnu_ld"
5343   test "$withval" = no || with_gnu_ld=yes
5344 else
5345   with_gnu_ld=no
5346 fi;
5347 ac_prog=ld
5348 if test "$GCC" = yes; then
5349   # Check if gcc -print-prog-name=ld gives a path.
5350   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5351 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5352   case $host in
5353   *-*-mingw*)
5354     # gcc leaves a trailing carriage return which upsets mingw
5355     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5356   *)
5357     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5358   esac
5359   case $ac_prog in
5360     # Accept absolute paths.
5361     [\\/]* | ?:[\\/]*)
5362       re_direlt='/[^/][^/]*/\.\./'
5363       # Canonicalize the pathname of ld
5364       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5365       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5366         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5367       done
5368       test -z "$LD" && LD="$ac_prog"
5369       ;;
5370   "")
5371     # If it fails, then pretend we aren't using GCC.
5372     ac_prog=ld
5373     ;;
5374   *)
5375     # If it is relative, then search for the first ld in PATH.
5376     with_gnu_ld=unknown
5377     ;;
5378   esac
5379 elif test "$with_gnu_ld" = yes; then
5380   echo "$as_me:$LINENO: checking for GNU ld" >&5
5381 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5382 else
5383   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5384 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5385 fi
5386 if test "${lt_cv_path_LD+set}" = set; then
5387   echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389   if test -z "$LD"; then
5390   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5391   for ac_dir in $PATH; do
5392     IFS="$lt_save_ifs"
5393     test -z "$ac_dir" && ac_dir=.
5394     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5395       lt_cv_path_LD="$ac_dir/$ac_prog"
5396       # Check to see if the program is GNU ld.  I'd rather use --version,
5397       # but apparently some variants of GNU ld only accept -v.
5398       # Break only if it was the GNU/non-GNU ld that we prefer.
5399       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5400       *GNU* | *'with BFD'*)
5401         test "$with_gnu_ld" != no && break
5402         ;;
5403       *)
5404         test "$with_gnu_ld" != yes && break
5405         ;;
5406       esac
5407     fi
5408   done
5409   IFS="$lt_save_ifs"
5410 else
5411   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5412 fi
5413 fi
5414
5415 LD="$lt_cv_path_LD"
5416 if test -n "$LD"; then
5417   echo "$as_me:$LINENO: result: $LD" >&5
5418 echo "${ECHO_T}$LD" >&6
5419 else
5420   echo "$as_me:$LINENO: result: no" >&5
5421 echo "${ECHO_T}no" >&6
5422 fi
5423 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5424 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5425    { (exit 1); exit 1; }; }
5426 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5427 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5428 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5429   echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5432 case `$LD -v 2>&1 </dev/null` in
5433 *GNU* | *'with BFD'*)
5434   lt_cv_prog_gnu_ld=yes
5435   ;;
5436 *)
5437   lt_cv_prog_gnu_ld=no
5438   ;;
5439 esac
5440 fi
5441 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5442 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5443 with_gnu_ld=$lt_cv_prog_gnu_ld
5444
5445
5446 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5447 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5448 if test "${lt_cv_ld_reload_flag+set}" = set; then
5449   echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451   lt_cv_ld_reload_flag='-r'
5452 fi
5453 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5454 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5455 reload_flag=$lt_cv_ld_reload_flag
5456 case $reload_flag in
5457 "" | " "*) ;;
5458 *) reload_flag=" $reload_flag" ;;
5459 esac
5460 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5461 case $host_os in
5462   darwin*)
5463     if test "$GCC" = yes; then
5464       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5465     else
5466       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5467     fi
5468     ;;
5469 esac
5470
5471 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5472 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5473 if test "${lt_cv_path_NM+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   if test -n "$NM"; then
5477   # Let the user override the test.
5478   lt_cv_path_NM="$NM"
5479 else
5480   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5481   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5482     IFS="$lt_save_ifs"
5483     test -z "$ac_dir" && ac_dir=.
5484     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5485     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5486       # Check to see if the nm accepts a BSD-compat flag.
5487       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5488       #   nm: unknown option "B" ignored
5489       # Tru64's nm complains that /dev/null is an invalid object file
5490       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5491       */dev/null* | *'Invalid file or object type'*)
5492         lt_cv_path_NM="$tmp_nm -B"
5493         break
5494         ;;
5495       *)
5496         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5497         */dev/null*)
5498           lt_cv_path_NM="$tmp_nm -p"
5499           break
5500           ;;
5501         *)
5502           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5503           continue # so that we can try to find one that supports BSD flags
5504           ;;
5505         esac
5506       esac
5507     fi
5508   done
5509   IFS="$lt_save_ifs"
5510   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5511 fi
5512 fi
5513 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5514 echo "${ECHO_T}$lt_cv_path_NM" >&6
5515 NM="$lt_cv_path_NM"
5516
5517 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5518 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5519 LN_S=$as_ln_s
5520 if test "$LN_S" = "ln -s"; then
5521   echo "$as_me:$LINENO: result: yes" >&5
5522 echo "${ECHO_T}yes" >&6
5523 else
5524   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5525 echo "${ECHO_T}no, using $LN_S" >&6
5526 fi
5527
5528 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5529 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5530 if test "${lt_cv_deplibs_check_method+set}" = set; then
5531   echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533   lt_cv_file_magic_cmd='$MAGIC_CMD'
5534 lt_cv_file_magic_test_file=
5535 lt_cv_deplibs_check_method='unknown'
5536 # Need to set the preceding variable on all platforms that support
5537 # interlibrary dependencies.
5538 # 'none' -- dependencies not supported.
5539 # `unknown' -- same as none, but documents that we really don't know.
5540 # 'pass_all' -- all dependencies passed with no checks.
5541 # 'test_compile' -- check by making test program.
5542 # 'file_magic [[regex]]' -- check by looking for files in library path
5543 # which responds to the $file_magic_cmd with a given extended regex.
5544 # If you have `file' or equivalent on your system and you're not sure
5545 # whether `pass_all' will *always* work, you probably want this one.
5546
5547 case $host_os in
5548 aix4* | aix5*)
5549   lt_cv_deplibs_check_method=pass_all
5550   ;;
5551
5552 beos*)
5553   lt_cv_deplibs_check_method=pass_all
5554   ;;
5555
5556 bsdi[45]*)
5557   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5558   lt_cv_file_magic_cmd='/usr/bin/file -L'
5559   lt_cv_file_magic_test_file=/shlib/libc.so
5560   ;;
5561
5562 cygwin*)
5563   # func_win32_libid is a shell function defined in ltmain.sh
5564   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5565   lt_cv_file_magic_cmd='func_win32_libid'
5566   ;;
5567
5568 mingw* | pw32*)
5569   # Base MSYS/MinGW do not provide the 'file' command needed by
5570   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5571   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5572   lt_cv_file_magic_cmd='$OBJDUMP -f'
5573   ;;
5574
5575 darwin* | rhapsody*)
5576   lt_cv_deplibs_check_method=pass_all
5577   ;;
5578
5579 freebsd* | kfreebsd*-gnu | dragonfly*)
5580   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5581     case $host_cpu in
5582     i*86 )
5583       # Not sure whether the presence of OpenBSD here was a mistake.
5584       # Let's accept both of them until this is cleared up.
5585       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5586       lt_cv_file_magic_cmd=/usr/bin/file
5587       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5588       ;;
5589     esac
5590   else
5591     lt_cv_deplibs_check_method=pass_all
5592   fi
5593   ;;
5594
5595 gnu*)
5596   lt_cv_deplibs_check_method=pass_all
5597   ;;
5598
5599 hpux10.20* | hpux11*)
5600   lt_cv_file_magic_cmd=/usr/bin/file
5601   case $host_cpu in
5602   ia64*)
5603     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5604     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5605     ;;
5606   hppa*64*)
5607     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]'
5608     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5609     ;;
5610   *)
5611     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5612     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5613     ;;
5614   esac
5615   ;;
5616
5617 irix5* | irix6* | nonstopux*)
5618   case $LD in
5619   *-32|*"-32 ") libmagic=32-bit;;
5620   *-n32|*"-n32 ") libmagic=N32;;
5621   *-64|*"-64 ") libmagic=64-bit;;
5622   *) libmagic=never-match;;
5623   esac
5624   lt_cv_deplibs_check_method=pass_all
5625   ;;
5626
5627 # This must be Linux ELF.
5628 linux*)
5629   lt_cv_deplibs_check_method=pass_all
5630   ;;
5631
5632 netbsd*)
5633   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5634     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5635   else
5636     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5637   fi
5638   ;;
5639
5640 newos6*)
5641   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5642   lt_cv_file_magic_cmd=/usr/bin/file
5643   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5644   ;;
5645
5646 nto-qnx*)
5647   lt_cv_deplibs_check_method=unknown
5648   ;;
5649
5650 openbsd*)
5651   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5652     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5653   else
5654     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5655   fi
5656   ;;
5657
5658 osf3* | osf4* | osf5*)
5659   lt_cv_deplibs_check_method=pass_all
5660   ;;
5661
5662 sco3.2v5*)
5663   lt_cv_deplibs_check_method=pass_all
5664   ;;
5665
5666 solaris*)
5667   lt_cv_deplibs_check_method=pass_all
5668   ;;
5669
5670 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5671   case $host_vendor in
5672   motorola)
5673     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]'
5674     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5675     ;;
5676   ncr)
5677     lt_cv_deplibs_check_method=pass_all
5678     ;;
5679   sequent)
5680     lt_cv_file_magic_cmd='/bin/file'
5681     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5682     ;;
5683   sni)
5684     lt_cv_file_magic_cmd='/bin/file'
5685     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5686     lt_cv_file_magic_test_file=/lib/libc.so
5687     ;;
5688   siemens)
5689     lt_cv_deplibs_check_method=pass_all
5690     ;;
5691   esac
5692   ;;
5693
5694 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5695   lt_cv_deplibs_check_method=pass_all
5696   ;;
5697 esac
5698
5699 fi
5700 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5701 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5702 file_magic_cmd=$lt_cv_file_magic_cmd
5703 deplibs_check_method=$lt_cv_deplibs_check_method
5704 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5705
5706
5707
5708
5709 # If no C compiler was specified, use CC.
5710 LTCC=${LTCC-"$CC"}
5711
5712 # Allow CC to be a program name with arguments.
5713 compiler=$CC
5714
5715
5716 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5717 if test "${enable_libtool_lock+set}" = set; then
5718   enableval="$enable_libtool_lock"
5719
5720 fi;
5721 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5722
5723 # Some flags need to be propagated to the compiler or linker for good
5724 # libtool support.
5725 case $host in
5726 ia64-*-hpux*)
5727   # Find out which ABI we are using.
5728   echo 'int i;' > conftest.$ac_ext
5729   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730   (eval $ac_compile) 2>&5
5731   ac_status=$?
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); }; then
5734     case `/usr/bin/file conftest.$ac_objext` in
5735     *ELF-32*)
5736       HPUX_IA64_MODE="32"
5737       ;;
5738     *ELF-64*)
5739       HPUX_IA64_MODE="64"
5740       ;;
5741     esac
5742   fi
5743   rm -rf conftest*
5744   ;;
5745 *-*-irix6*)
5746   # Find out which ABI we are using.
5747   echo '#line 5747 "configure"' > conftest.$ac_ext
5748   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5749   (eval $ac_compile) 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); }; then
5753    if test "$lt_cv_prog_gnu_ld" = yes; then
5754     case `/usr/bin/file conftest.$ac_objext` in
5755     *32-bit*)
5756       LD="${LD-ld} -melf32bsmip"
5757       ;;
5758     *N32*)
5759       LD="${LD-ld} -melf32bmipn32"
5760       ;;
5761     *64-bit*)
5762       LD="${LD-ld} -melf64bmip"
5763       ;;
5764     esac
5765    else
5766     case `/usr/bin/file conftest.$ac_objext` in
5767     *32-bit*)
5768       LD="${LD-ld} -32"
5769       ;;
5770     *N32*)
5771       LD="${LD-ld} -n32"
5772       ;;
5773     *64-bit*)
5774       LD="${LD-ld} -64"
5775       ;;
5776     esac
5777    fi
5778   fi
5779   rm -rf conftest*
5780   ;;
5781
5782 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5783   # Find out which ABI we are using.
5784   echo 'int i;' > conftest.$ac_ext
5785   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786   (eval $ac_compile) 2>&5
5787   ac_status=$?
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); }; then
5790     case `/usr/bin/file conftest.o` in
5791     *32-bit*)
5792       case $host in
5793         x86_64-*linux*)
5794           LD="${LD-ld} -m elf_i386"
5795           ;;
5796         ppc64-*linux*|powerpc64-*linux*)
5797           LD="${LD-ld} -m elf32ppclinux"
5798           ;;
5799         s390x-*linux*)
5800           LD="${LD-ld} -m elf_s390"
5801           ;;
5802         sparc64-*linux*)
5803           LD="${LD-ld} -m elf32_sparc"
5804           ;;
5805       esac
5806       ;;
5807     *64-bit*)
5808       case $host in
5809         x86_64-*linux*)
5810           LD="${LD-ld} -m elf_x86_64"
5811           ;;
5812         ppc*-*linux*|powerpc*-*linux*)
5813           LD="${LD-ld} -m elf64ppc"
5814           ;;
5815         s390*-*linux*)
5816           LD="${LD-ld} -m elf64_s390"
5817           ;;
5818         sparc*-*linux*)
5819           LD="${LD-ld} -m elf64_sparc"
5820           ;;
5821       esac
5822       ;;
5823     esac
5824   fi
5825   rm -rf conftest*
5826   ;;
5827
5828 *-*-sco3.2v5*)
5829   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5830   SAVE_CFLAGS="$CFLAGS"
5831   CFLAGS="$CFLAGS -belf"
5832   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5833 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5834 if test "${lt_cv_cc_needs_belf+set}" = set; then
5835   echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837   ac_ext=c
5838 ac_cpp='$CPP $CPPFLAGS'
5839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5842
5843      cat >conftest.$ac_ext <<_ACEOF
5844 /* confdefs.h.  */
5845 _ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h.  */
5849
5850 int
5851 main ()
5852 {
5853
5854   ;
5855   return 0;
5856 }
5857 _ACEOF
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860   (eval $ac_link) 2>conftest.er1
5861   ac_status=$?
5862   grep -v '^ *+' conftest.er1 >conftest.err
5863   rm -f conftest.er1
5864   cat conftest.err >&5
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); } &&
5867          { ac_try='test -z "$ac_c_werror_flag"
5868                          || test ! -s conftest.err'
5869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870   (eval $ac_try) 2>&5
5871   ac_status=$?
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); }; } &&
5874          { ac_try='test -s conftest$ac_exeext'
5875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876   (eval $ac_try) 2>&5
5877   ac_status=$?
5878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879   (exit $ac_status); }; }; then
5880   lt_cv_cc_needs_belf=yes
5881 else
5882   echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5884
5885 lt_cv_cc_needs_belf=no
5886 fi
5887 rm -f conftest.err conftest.$ac_objext \
5888       conftest$ac_exeext conftest.$ac_ext
5889      ac_ext=c
5890 ac_cpp='$CPP $CPPFLAGS'
5891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5894
5895 fi
5896 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5897 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5898   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5899     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5900     CFLAGS="$SAVE_CFLAGS"
5901   fi
5902   ;;
5903 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5904   if test -n "$ac_tool_prefix"; then
5905   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5906 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5907 echo "$as_me:$LINENO: checking for $ac_word" >&5
5908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5909 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5910   echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912   if test -n "$DLLTOOL"; then
5913   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5914 else
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918   IFS=$as_save_IFS
5919   test -z "$as_dir" && as_dir=.
5920   for ac_exec_ext in '' $ac_executable_extensions; do
5921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924     break 2
5925   fi
5926 done
5927 done
5928
5929 fi
5930 fi
5931 DLLTOOL=$ac_cv_prog_DLLTOOL
5932 if test -n "$DLLTOOL"; then
5933   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5934 echo "${ECHO_T}$DLLTOOL" >&6
5935 else
5936   echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6
5938 fi
5939
5940 fi
5941 if test -z "$ac_cv_prog_DLLTOOL"; then
5942   ac_ct_DLLTOOL=$DLLTOOL
5943   # Extract the first word of "dlltool", so it can be a program name with args.
5944 set dummy dlltool; ac_word=$2
5945 echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5947 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5948   echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950   if test -n "$ac_ct_DLLTOOL"; then
5951   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5955 do
5956   IFS=$as_save_IFS
5957   test -z "$as_dir" && as_dir=.
5958   for ac_exec_ext in '' $ac_executable_extensions; do
5959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962     break 2
5963   fi
5964 done
5965 done
5966
5967   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5968 fi
5969 fi
5970 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5971 if test -n "$ac_ct_DLLTOOL"; then
5972   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5973 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5974 else
5975   echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6
5977 fi
5978
5979   DLLTOOL=$ac_ct_DLLTOOL
5980 else
5981   DLLTOOL="$ac_cv_prog_DLLTOOL"
5982 fi
5983
5984   if test -n "$ac_tool_prefix"; then
5985   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5986 set dummy ${ac_tool_prefix}as; ac_word=$2
5987 echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5989 if test "${ac_cv_prog_AS+set}" = set; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992   if test -n "$AS"; then
5993   ac_cv_prog_AS="$AS" # Let the user override the test.
5994 else
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5997 do
5998   IFS=$as_save_IFS
5999   test -z "$as_dir" && as_dir=.
6000   for ac_exec_ext in '' $ac_executable_extensions; do
6001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6002     ac_cv_prog_AS="${ac_tool_prefix}as"
6003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004     break 2
6005   fi
6006 done
6007 done
6008
6009 fi
6010 fi
6011 AS=$ac_cv_prog_AS
6012 if test -n "$AS"; then
6013   echo "$as_me:$LINENO: result: $AS" >&5
6014 echo "${ECHO_T}$AS" >&6
6015 else
6016   echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6
6018 fi
6019
6020 fi
6021 if test -z "$ac_cv_prog_AS"; then
6022   ac_ct_AS=$AS
6023   # Extract the first word of "as", so it can be a program name with args.
6024 set dummy as; ac_word=$2
6025 echo "$as_me:$LINENO: checking for $ac_word" >&5
6026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6027 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6028   echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030   if test -n "$ac_ct_AS"; then
6031   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036   IFS=$as_save_IFS
6037   test -z "$as_dir" && as_dir=.
6038   for ac_exec_ext in '' $ac_executable_extensions; do
6039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040     ac_cv_prog_ac_ct_AS="as"
6041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6042     break 2
6043   fi
6044 done
6045 done
6046
6047   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6048 fi
6049 fi
6050 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6051 if test -n "$ac_ct_AS"; then
6052   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6053 echo "${ECHO_T}$ac_ct_AS" >&6
6054 else
6055   echo "$as_me:$LINENO: result: no" >&5
6056 echo "${ECHO_T}no" >&6
6057 fi
6058
6059   AS=$ac_ct_AS
6060 else
6061   AS="$ac_cv_prog_AS"
6062 fi
6063
6064   if test -n "$ac_tool_prefix"; then
6065   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6066 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6067 echo "$as_me:$LINENO: checking for $ac_word" >&5
6068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6069 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6070   echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072   if test -n "$OBJDUMP"; then
6073   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078   IFS=$as_save_IFS
6079   test -z "$as_dir" && as_dir=.
6080   for ac_exec_ext in '' $ac_executable_extensions; do
6081   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084     break 2
6085   fi
6086 done
6087 done
6088
6089 fi
6090 fi
6091 OBJDUMP=$ac_cv_prog_OBJDUMP
6092 if test -n "$OBJDUMP"; then
6093   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6094 echo "${ECHO_T}$OBJDUMP" >&6
6095 else
6096   echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6
6098 fi
6099
6100 fi
6101 if test -z "$ac_cv_prog_OBJDUMP"; then
6102   ac_ct_OBJDUMP=$OBJDUMP
6103   # Extract the first word of "objdump", so it can be a program name with args.
6104 set dummy objdump; ac_word=$2
6105 echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6107 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   if test -n "$ac_ct_OBJDUMP"; then
6111   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116   IFS=$as_save_IFS
6117   test -z "$as_dir" && as_dir=.
6118   for ac_exec_ext in '' $ac_executable_extensions; do
6119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122     break 2
6123   fi
6124 done
6125 done
6126
6127   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6128 fi
6129 fi
6130 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6131 if test -n "$ac_ct_OBJDUMP"; then
6132   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6133 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6134 else
6135   echo "$as_me:$LINENO: result: no" >&5
6136 echo "${ECHO_T}no" >&6
6137 fi
6138
6139   OBJDUMP=$ac_ct_OBJDUMP
6140 else
6141   OBJDUMP="$ac_cv_prog_OBJDUMP"
6142 fi
6143
6144   ;;
6145
6146 esac
6147
6148 need_locks="$enable_libtool_lock"
6149
6150
6151 ac_ext=c
6152 ac_cpp='$CPP $CPPFLAGS'
6153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6157 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6158 # On Suns, sometimes $CPP names a directory.
6159 if test -n "$CPP" && test -d "$CPP"; then
6160   CPP=
6161 fi
6162 if test -z "$CPP"; then
6163   if test "${ac_cv_prog_CPP+set}" = set; then
6164   echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166       # Double quotes because CPP needs to be expanded
6167     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6168     do
6169       ac_preproc_ok=false
6170 for ac_c_preproc_warn_flag in '' yes
6171 do
6172   # Use a header file that comes with gcc, so configuring glibc
6173   # with a fresh cross-compiler works.
6174   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6175   # <limits.h> exists even on freestanding compilers.
6176   # On the NeXT, cc -E runs the code through the compiler's parser,
6177   # not just through cpp. "Syntax error" is here to catch this case.
6178   cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h.  */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h.  */
6184 #ifdef __STDC__
6185 # include <limits.h>
6186 #else
6187 # include <assert.h>
6188 #endif
6189                      Syntax error
6190 _ACEOF
6191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6192   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6193   ac_status=$?
6194   grep -v '^ *+' conftest.er1 >conftest.err
6195   rm -f conftest.er1
6196   cat conftest.err >&5
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); } >/dev/null; then
6199   if test -s conftest.err; then
6200     ac_cpp_err=$ac_c_preproc_warn_flag
6201     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6202   else
6203     ac_cpp_err=
6204   fi
6205 else
6206   ac_cpp_err=yes
6207 fi
6208 if test -z "$ac_cpp_err"; then
6209   :
6210 else
6211   echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6213
6214   # Broken: fails on valid input.
6215 continue
6216 fi
6217 rm -f conftest.err conftest.$ac_ext
6218
6219   # OK, works on sane cases.  Now check whether non-existent headers
6220   # can be detected and how.
6221   cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h.  */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h.  */
6227 #include <ac_nonexistent.h>
6228 _ACEOF
6229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6230   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6231   ac_status=$?
6232   grep -v '^ *+' conftest.er1 >conftest.err
6233   rm -f conftest.er1
6234   cat conftest.err >&5
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); } >/dev/null; then
6237   if test -s conftest.err; then
6238     ac_cpp_err=$ac_c_preproc_warn_flag
6239     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6240   else
6241     ac_cpp_err=
6242   fi
6243 else
6244   ac_cpp_err=yes
6245 fi
6246 if test -z "$ac_cpp_err"; then
6247   # Broken: success on invalid input.
6248 continue
6249 else
6250   echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6252
6253   # Passes both tests.
6254 ac_preproc_ok=:
6255 break
6256 fi
6257 rm -f conftest.err conftest.$ac_ext
6258
6259 done
6260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6261 rm -f conftest.err conftest.$ac_ext
6262 if $ac_preproc_ok; then
6263   break
6264 fi
6265
6266     done
6267     ac_cv_prog_CPP=$CPP
6268
6269 fi
6270   CPP=$ac_cv_prog_CPP
6271 else
6272   ac_cv_prog_CPP=$CPP
6273 fi
6274 echo "$as_me:$LINENO: result: $CPP" >&5
6275 echo "${ECHO_T}$CPP" >&6
6276 ac_preproc_ok=false
6277 for ac_c_preproc_warn_flag in '' yes
6278 do
6279   # Use a header file that comes with gcc, so configuring glibc
6280   # with a fresh cross-compiler works.
6281   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6282   # <limits.h> exists even on freestanding compilers.
6283   # On the NeXT, cc -E runs the code through the compiler's parser,
6284   # not just through cpp. "Syntax error" is here to catch this case.
6285   cat >conftest.$ac_ext <<_ACEOF
6286 /* confdefs.h.  */
6287 _ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h.  */
6291 #ifdef __STDC__
6292 # include <limits.h>
6293 #else
6294 # include <assert.h>
6295 #endif
6296                      Syntax error
6297 _ACEOF
6298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6299   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6300   ac_status=$?
6301   grep -v '^ *+' conftest.er1 >conftest.err
6302   rm -f conftest.er1
6303   cat conftest.err >&5
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); } >/dev/null; then
6306   if test -s conftest.err; then
6307     ac_cpp_err=$ac_c_preproc_warn_flag
6308     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6309   else
6310     ac_cpp_err=
6311   fi
6312 else
6313   ac_cpp_err=yes
6314 fi
6315 if test -z "$ac_cpp_err"; then
6316   :
6317 else
6318   echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6320
6321   # Broken: fails on valid input.
6322 continue
6323 fi
6324 rm -f conftest.err conftest.$ac_ext
6325
6326   # OK, works on sane cases.  Now check whether non-existent headers
6327   # can be detected and how.
6328   cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6334 #include <ac_nonexistent.h>
6335 _ACEOF
6336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6337   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6338   ac_status=$?
6339   grep -v '^ *+' conftest.er1 >conftest.err
6340   rm -f conftest.er1
6341   cat conftest.err >&5
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); } >/dev/null; then
6344   if test -s conftest.err; then
6345     ac_cpp_err=$ac_c_preproc_warn_flag
6346     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6347   else
6348     ac_cpp_err=
6349   fi
6350 else
6351   ac_cpp_err=yes
6352 fi
6353 if test -z "$ac_cpp_err"; then
6354   # Broken: success on invalid input.
6355 continue
6356 else
6357   echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6359
6360   # Passes both tests.
6361 ac_preproc_ok=:
6362 break
6363 fi
6364 rm -f conftest.err conftest.$ac_ext
6365
6366 done
6367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6368 rm -f conftest.err conftest.$ac_ext
6369 if $ac_preproc_ok; then
6370   :
6371 else
6372   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6373 See \`config.log' for more details." >&5
6374 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6375 See \`config.log' for more details." >&2;}
6376    { (exit 1); exit 1; }; }
6377 fi
6378
6379 ac_ext=c
6380 ac_cpp='$CPP $CPPFLAGS'
6381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6384
6385
6386 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6387 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6388 if test "${ac_cv_header_stdc+set}" = set; then
6389   echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391   cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h.  */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h.  */
6397 #include <stdlib.h>
6398 #include <stdarg.h>
6399 #include <string.h>
6400 #include <float.h>
6401
6402 int
6403 main ()
6404 {
6405
6406   ;
6407   return 0;
6408 }
6409 _ACEOF
6410 rm -f conftest.$ac_objext
6411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6412   (eval $ac_compile) 2>conftest.er1
6413   ac_status=$?
6414   grep -v '^ *+' conftest.er1 >conftest.err
6415   rm -f conftest.er1
6416   cat conftest.err >&5
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); } &&
6419          { ac_try='test -z "$ac_c_werror_flag"
6420                          || test ! -s conftest.err'
6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422   (eval $ac_try) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; } &&
6426          { ac_try='test -s conftest.$ac_objext'
6427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428   (eval $ac_try) 2>&5
6429   ac_status=$?
6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431   (exit $ac_status); }; }; then
6432   ac_cv_header_stdc=yes
6433 else
6434   echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6436
6437 ac_cv_header_stdc=no
6438 fi
6439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6440
6441 if test $ac_cv_header_stdc = yes; then
6442   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6443   cat >conftest.$ac_ext <<_ACEOF
6444 /* confdefs.h.  */
6445 _ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h.  */
6449 #include <string.h>
6450
6451 _ACEOF
6452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6453   $EGREP "memchr" >/dev/null 2>&1; then
6454   :
6455 else
6456   ac_cv_header_stdc=no
6457 fi
6458 rm -f conftest*
6459
6460 fi
6461
6462 if test $ac_cv_header_stdc = yes; then
6463   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6464   cat >conftest.$ac_ext <<_ACEOF
6465 /* confdefs.h.  */
6466 _ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h.  */
6470 #include <stdlib.h>
6471
6472 _ACEOF
6473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6474   $EGREP "free" >/dev/null 2>&1; then
6475   :
6476 else
6477   ac_cv_header_stdc=no
6478 fi
6479 rm -f conftest*
6480
6481 fi
6482
6483 if test $ac_cv_header_stdc = yes; then
6484   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6485   if test "$cross_compiling" = yes; then
6486   :
6487 else
6488   cat >conftest.$ac_ext <<_ACEOF
6489 /* confdefs.h.  */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h.  */
6494 #include <ctype.h>
6495 #if ((' ' & 0x0FF) == 0x020)
6496 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6497 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6498 #else
6499 # define ISLOWER(c) \
6500                    (('a' <= (c) && (c) <= 'i') \
6501                      || ('j' <= (c) && (c) <= 'r') \
6502                      || ('s' <= (c) && (c) <= 'z'))
6503 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6504 #endif
6505
6506 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6507 int
6508 main ()
6509 {
6510   int i;
6511   for (i = 0; i < 256; i++)
6512     if (XOR (islower (i), ISLOWER (i))
6513         || toupper (i) != TOUPPER (i))
6514       exit(2);
6515   exit (0);
6516 }
6517 _ACEOF
6518 rm -f conftest$ac_exeext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6520   (eval $ac_link) 2>&5
6521   ac_status=$?
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525   (eval $ac_try) 2>&5
6526   ac_status=$?
6527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); }; }; then
6529   :
6530 else
6531   echo "$as_me: program exited with status $ac_status" >&5
6532 echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6534
6535 ( exit $ac_status )
6536 ac_cv_header_stdc=no
6537 fi
6538 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6539 fi
6540 fi
6541 fi
6542 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6543 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6544 if test $ac_cv_header_stdc = yes; then
6545
6546 cat >>confdefs.h <<\_ACEOF
6547 #define STDC_HEADERS 1
6548 _ACEOF
6549
6550 fi
6551
6552 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6563                   inttypes.h stdint.h unistd.h
6564 do
6565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6566 echo "$as_me:$LINENO: checking for $ac_header" >&5
6567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h.  */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h.  */
6577 $ac_includes_default
6578
6579 #include <$ac_header>
6580 _ACEOF
6581 rm -f conftest.$ac_objext
6582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6583   (eval $ac_compile) 2>conftest.er1
6584   ac_status=$?
6585   grep -v '^ *+' conftest.er1 >conftest.err
6586   rm -f conftest.er1
6587   cat conftest.err >&5
6588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589   (exit $ac_status); } &&
6590          { ac_try='test -z "$ac_c_werror_flag"
6591                          || test ! -s conftest.err'
6592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593   (eval $ac_try) 2>&5
6594   ac_status=$?
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); }; } &&
6597          { ac_try='test -s conftest.$ac_objext'
6598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599   (eval $ac_try) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); }; }; then
6603   eval "$as_ac_Header=yes"
6604 else
6605   echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6607
6608 eval "$as_ac_Header=no"
6609 fi
6610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6611 fi
6612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6615   cat >>confdefs.h <<_ACEOF
6616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6617 _ACEOF
6618
6619 fi
6620
6621 done
6622
6623
6624
6625 for ac_header in dlfcn.h
6626 do
6627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6629   echo "$as_me:$LINENO: checking for $ac_header" >&5
6630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6632   echo $ECHO_N "(cached) $ECHO_C" >&6
6633 fi
6634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6636 else
6637   # Is the header compilable?
6638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6640 cat >conftest.$ac_ext <<_ACEOF
6641 /* confdefs.h.  */
6642 _ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h.  */
6646 $ac_includes_default
6647 #include <$ac_header>
6648 _ACEOF
6649 rm -f conftest.$ac_objext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6651   (eval $ac_compile) 2>conftest.er1
6652   ac_status=$?
6653   grep -v '^ *+' conftest.er1 >conftest.err
6654   rm -f conftest.er1
6655   cat conftest.err >&5
6656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657   (exit $ac_status); } &&
6658          { ac_try='test -z "$ac_c_werror_flag"
6659                          || test ! -s conftest.err'
6660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661   (eval $ac_try) 2>&5
6662   ac_status=$?
6663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664   (exit $ac_status); }; } &&
6665          { ac_try='test -s conftest.$ac_objext'
6666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667   (eval $ac_try) 2>&5
6668   ac_status=$?
6669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670   (exit $ac_status); }; }; then
6671   ac_header_compiler=yes
6672 else
6673   echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6675
6676 ac_header_compiler=no
6677 fi
6678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6680 echo "${ECHO_T}$ac_header_compiler" >&6
6681
6682 # Is the header present?
6683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6685 cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h.  */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h.  */
6691 #include <$ac_header>
6692 _ACEOF
6693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6695   ac_status=$?
6696   grep -v '^ *+' conftest.er1 >conftest.err
6697   rm -f conftest.er1
6698   cat conftest.err >&5
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); } >/dev/null; then
6701   if test -s conftest.err; then
6702     ac_cpp_err=$ac_c_preproc_warn_flag
6703     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6704   else
6705     ac_cpp_err=
6706   fi
6707 else
6708   ac_cpp_err=yes
6709 fi
6710 if test -z "$ac_cpp_err"; then
6711   ac_header_preproc=yes
6712 else
6713   echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6715
6716   ac_header_preproc=no
6717 fi
6718 rm -f conftest.err conftest.$ac_ext
6719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6720 echo "${ECHO_T}$ac_header_preproc" >&6
6721
6722 # So?  What about this header?
6723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6724   yes:no: )
6725     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6729     ac_header_preproc=yes
6730     ;;
6731   no:yes:* )
6732     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6734     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6735 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6736     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6738     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6739 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6742     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6744     (
6745       cat <<\_ASBOX
6746 ## ------------------------------------------ ##
6747 ## Report this to the AC_PACKAGE_NAME lists.  ##
6748 ## ------------------------------------------ ##
6749 _ASBOX
6750     ) |
6751       sed "s/^/$as_me: WARNING:     /" >&2
6752     ;;
6753 esac
6754 echo "$as_me:$LINENO: checking for $ac_header" >&5
6755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6757   echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759   eval "$as_ac_Header=\$ac_header_preproc"
6760 fi
6761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6763
6764 fi
6765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6766   cat >>confdefs.h <<_ACEOF
6767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6768 _ACEOF
6769
6770 fi
6771
6772 done
6773
6774
6775 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6776
6777 # find the maximum length of command line arguments
6778 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6779 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6780 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6781   echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783     i=0
6784   teststring="ABCD"
6785
6786   case $build_os in
6787   msdosdjgpp*)
6788     # On DJGPP, this test can blow up pretty badly due to problems in libc
6789     # (any single argument exceeding 2000 bytes causes a buffer overrun
6790     # during glob expansion).  Even if it were fixed, the result of this
6791     # check would be larger than it should be.
6792     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6793     ;;
6794
6795   gnu*)
6796     # Under GNU Hurd, this test is not required because there is
6797     # no limit to the length of command line arguments.
6798     # Libtool will interpret -1 as no limit whatsoever
6799     lt_cv_sys_max_cmd_len=-1;
6800     ;;
6801
6802   cygwin* | mingw*)
6803     # On Win9x/ME, this test blows up -- it succeeds, but takes
6804     # about 5 minutes as the teststring grows exponentially.
6805     # Worse, since 9x/ME are not pre-emptively multitasking,
6806     # you end up with a "frozen" computer, even though with patience
6807     # the test eventually succeeds (with a max line length of 256k).
6808     # Instead, let's just punt: use the minimum linelength reported by
6809     # all of the supported platforms: 8192 (on NT/2K/XP).
6810     lt_cv_sys_max_cmd_len=8192;
6811     ;;
6812
6813   amigaos*)
6814     # On AmigaOS with pdksh, this test takes hours, literally.
6815     # So we just punt and use a minimum line length of 8192.
6816     lt_cv_sys_max_cmd_len=8192;
6817     ;;
6818
6819   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6820     # This has been around since 386BSD, at least.  Likely further.
6821     if test -x /sbin/sysctl; then
6822       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6823     elif test -x /usr/sbin/sysctl; then
6824       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6825     else
6826       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6827     fi
6828     # And add a safety zone
6829     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6830     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6831     ;;
6832   osf*)
6833     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6834     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6835     # nice to cause kernel panics so lets avoid the loop below.
6836     # First set a reasonable default.
6837     lt_cv_sys_max_cmd_len=16384
6838     #
6839     if test -x /sbin/sysconfig; then
6840       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6841         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6842       esac
6843     fi
6844     ;;
6845   *)
6846     # If test is not a shell built-in, we'll probably end up computing a
6847     # maximum length that is only half of the actual maximum length, but
6848     # we can't tell.
6849     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6850     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6851                = "XX$teststring") >/dev/null 2>&1 &&
6852             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6853             lt_cv_sys_max_cmd_len=$new_result &&
6854             test $i != 17 # 1/2 MB should be enough
6855     do
6856       i=`expr $i + 1`
6857       teststring=$teststring$teststring
6858     done
6859     teststring=
6860     # Add a significant safety factor because C++ compilers can tack on massive
6861     # amounts of additional arguments before passing them to the linker.
6862     # It appears as though 1/2 is a usable value.
6863     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6864     ;;
6865   esac
6866
6867 fi
6868
6869 if test -n $lt_cv_sys_max_cmd_len ; then
6870   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6871 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6872 else
6873   echo "$as_me:$LINENO: result: none" >&5
6874 echo "${ECHO_T}none" >&6
6875 fi
6876
6877
6878
6879
6880 # Check for command to grab the raw symbol name followed by C symbol from nm.
6881 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6882 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6883 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6884   echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886
6887 # These are sane defaults that work on at least a few old systems.
6888 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6889
6890 # Character class describing NM global symbol codes.
6891 symcode='[BCDEGRST]'
6892
6893 # Regexp to match symbols that can be accessed directly from C.
6894 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6895
6896 # Transform an extracted symbol line into a proper C declaration
6897 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6898
6899 # Transform an extracted symbol line into symbol name and symbol address
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 # Define system-specific variables.
6903 case $host_os in
6904 aix*)
6905   symcode='[BCDT]'
6906   ;;
6907 cygwin* | mingw* | pw32*)
6908   symcode='[ABCDGISTW]'
6909   ;;
6910 hpux*) # Its linker distinguishes data from code symbols
6911   if test "$host_cpu" = ia64; then
6912     symcode='[ABCDEGRST]'
6913   fi
6914   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6915   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'"
6916   ;;
6917 linux*)
6918   if test "$host_cpu" = ia64; then
6919     symcode='[ABCDGIRSTW]'
6920     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6921     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'"
6922   fi
6923   ;;
6924 irix* | nonstopux*)
6925   symcode='[BCDEGRST]'
6926   ;;
6927 osf*)
6928   symcode='[BCDEGQRST]'
6929   ;;
6930 solaris* | sysv5*)
6931   symcode='[BDRT]'
6932   ;;
6933 sysv4)
6934   symcode='[DFNSTU]'
6935   ;;
6936 esac
6937
6938 # Handle CRLF in mingw tool chain
6939 opt_cr=
6940 case $build_os in
6941 mingw*)
6942   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6943   ;;
6944 esac
6945
6946 # If we're using GNU nm, then use its standard symbol codes.
6947 case `$NM -V 2>&1` in
6948 *GNU* | *'with BFD'*)
6949   symcode='[ABCDGIRSTW]' ;;
6950 esac
6951
6952 # Try without a prefix undercore, then with it.
6953 for ac_symprfx in "" "_"; do
6954
6955   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6956   symxfrm="\\1 $ac_symprfx\\2 \\2"
6957
6958   # Write the raw and C identifiers.
6959   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6960
6961   # Check to see that the pipe works correctly.
6962   pipe_works=no
6963
6964   rm -f conftest*
6965   cat > conftest.$ac_ext <<EOF
6966 #ifdef __cplusplus
6967 extern "C" {
6968 #endif
6969 char nm_test_var;
6970 void nm_test_func(){}
6971 #ifdef __cplusplus
6972 }
6973 #endif
6974 int main(){nm_test_var='a';nm_test_func();return(0);}
6975 EOF
6976
6977   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978   (eval $ac_compile) 2>&5
6979   ac_status=$?
6980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981   (exit $ac_status); }; then
6982     # Now try to grab the symbols.
6983     nlist=conftest.nm
6984     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6985   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6986   ac_status=$?
6987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988   (exit $ac_status); } && test -s "$nlist"; then
6989       # Try sorting and uniquifying the output.
6990       if sort "$nlist" | uniq > "$nlist"T; then
6991         mv -f "$nlist"T "$nlist"
6992       else
6993         rm -f "$nlist"T
6994       fi
6995
6996       # Make sure that we snagged all the symbols we need.
6997       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6998         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6999           cat <<EOF > conftest.$ac_ext
7000 #ifdef __cplusplus
7001 extern "C" {
7002 #endif
7003
7004 EOF
7005           # Now generate the symbol file.
7006           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7007
7008           cat <<EOF >> conftest.$ac_ext
7009 #if defined (__STDC__) && __STDC__
7010 # define lt_ptr_t void *
7011 #else
7012 # define lt_ptr_t char *
7013 # define const
7014 #endif
7015
7016 /* The mapping between symbol names and symbols. */
7017 const struct {
7018   const char *name;
7019   lt_ptr_t address;
7020 }
7021 lt_preloaded_symbols[] =
7022 {
7023 EOF
7024           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7025           cat <<\EOF >> conftest.$ac_ext
7026   {0, (lt_ptr_t) 0}
7027 };
7028
7029 #ifdef __cplusplus
7030 }
7031 #endif
7032 EOF
7033           # Now try linking the two files.
7034           mv conftest.$ac_objext conftstm.$ac_objext
7035           lt_save_LIBS="$LIBS"
7036           lt_save_CFLAGS="$CFLAGS"
7037           LIBS="conftstm.$ac_objext"
7038           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7039           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040   (eval $ac_link) 2>&5
7041   ac_status=$?
7042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7044             pipe_works=yes
7045           fi
7046           LIBS="$lt_save_LIBS"
7047           CFLAGS="$lt_save_CFLAGS"
7048         else
7049           echo "cannot find nm_test_func in $nlist" >&5
7050         fi
7051       else
7052         echo "cannot find nm_test_var in $nlist" >&5
7053       fi
7054     else
7055       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7056     fi
7057   else
7058     echo "$progname: failed program was:" >&5
7059     cat conftest.$ac_ext >&5
7060   fi
7061   rm -f conftest* conftst*
7062
7063   # Do not use the global_symbol_pipe unless it works.
7064   if test "$pipe_works" = yes; then
7065     break
7066   else
7067     lt_cv_sys_global_symbol_pipe=
7068   fi
7069 done
7070
7071 fi
7072
7073 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7074   lt_cv_sys_global_symbol_to_cdecl=
7075 fi
7076 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7077   echo "$as_me:$LINENO: result: failed" >&5
7078 echo "${ECHO_T}failed" >&6
7079 else
7080   echo "$as_me:$LINENO: result: ok" >&5
7081 echo "${ECHO_T}ok" >&6
7082 fi
7083
7084 echo "$as_me:$LINENO: checking for objdir" >&5
7085 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7086 if test "${lt_cv_objdir+set}" = set; then
7087   echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089   rm -f .libs 2>/dev/null
7090 mkdir .libs 2>/dev/null
7091 if test -d .libs; then
7092   lt_cv_objdir=.libs
7093 else
7094   # MS-DOS does not allow filenames that begin with a dot.
7095   lt_cv_objdir=_libs
7096 fi
7097 rmdir .libs 2>/dev/null
7098 fi
7099 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7100 echo "${ECHO_T}$lt_cv_objdir" >&6
7101 objdir=$lt_cv_objdir
7102
7103
7104
7105
7106
7107 case $host_os in
7108 aix3*)
7109   # AIX sometimes has problems with the GCC collect2 program.  For some
7110   # reason, if we set the COLLECT_NAMES environment variable, the problems
7111   # vanish in a puff of smoke.
7112   if test "X${COLLECT_NAMES+set}" != Xset; then
7113     COLLECT_NAMES=
7114     export COLLECT_NAMES
7115   fi
7116   ;;
7117 esac
7118
7119 # Sed substitution that helps us do robust quoting.  It backslashifies
7120 # metacharacters that are still active within double-quoted strings.
7121 Xsed='sed -e 1s/^X//'
7122 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7123
7124 # Same as above, but do not quote variable references.
7125 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7126
7127 # Sed substitution to delay expansion of an escaped shell variable in a
7128 # double_quote_subst'ed string.
7129 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7130
7131 # Sed substitution to avoid accidental globbing in evaled expressions
7132 no_glob_subst='s/\*/\\\*/g'
7133
7134 # Constants:
7135 rm="rm -f"
7136
7137 # Global variables:
7138 default_ofile=libtool
7139 can_build_shared=yes
7140
7141 # All known linkers require a `.a' archive for static linking (except MSVC,
7142 # which needs '.lib').
7143 libext=a
7144 ltmain="$ac_aux_dir/ltmain.sh"
7145 ofile="$default_ofile"
7146 with_gnu_ld="$lt_cv_prog_gnu_ld"
7147
7148 if test -n "$ac_tool_prefix"; then
7149   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7150 set dummy ${ac_tool_prefix}ar; ac_word=$2
7151 echo "$as_me:$LINENO: checking for $ac_word" >&5
7152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7153 if test "${ac_cv_prog_AR+set}" = set; then
7154   echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156   if test -n "$AR"; then
7157   ac_cv_prog_AR="$AR" # Let the user override the test.
7158 else
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 for as_dir in $PATH
7161 do
7162   IFS=$as_save_IFS
7163   test -z "$as_dir" && as_dir=.
7164   for ac_exec_ext in '' $ac_executable_extensions; do
7165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7166     ac_cv_prog_AR="${ac_tool_prefix}ar"
7167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7168     break 2
7169   fi
7170 done
7171 done
7172
7173 fi
7174 fi
7175 AR=$ac_cv_prog_AR
7176 if test -n "$AR"; then
7177   echo "$as_me:$LINENO: result: $AR" >&5
7178 echo "${ECHO_T}$AR" >&6
7179 else
7180   echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6
7182 fi
7183
7184 fi
7185 if test -z "$ac_cv_prog_AR"; then
7186   ac_ct_AR=$AR
7187   # Extract the first word of "ar", so it can be a program name with args.
7188 set dummy ar; ac_word=$2
7189 echo "$as_me:$LINENO: checking for $ac_word" >&5
7190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7191 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7192   echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194   if test -n "$ac_ct_AR"; then
7195   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7196 else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200   IFS=$as_save_IFS
7201   test -z "$as_dir" && as_dir=.
7202   for ac_exec_ext in '' $ac_executable_extensions; do
7203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204     ac_cv_prog_ac_ct_AR="ar"
7205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206     break 2
7207   fi
7208 done
7209 done
7210
7211   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7212 fi
7213 fi
7214 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7215 if test -n "$ac_ct_AR"; then
7216   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7217 echo "${ECHO_T}$ac_ct_AR" >&6
7218 else
7219   echo "$as_me:$LINENO: result: no" >&5
7220 echo "${ECHO_T}no" >&6
7221 fi
7222
7223   AR=$ac_ct_AR
7224 else
7225   AR="$ac_cv_prog_AR"
7226 fi
7227
7228 if test -n "$ac_tool_prefix"; then
7229   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7230 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7231 echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7233 if test "${ac_cv_prog_RANLIB+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   if test -n "$RANLIB"; then
7237   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242   IFS=$as_save_IFS
7243   test -z "$as_dir" && as_dir=.
7244   for ac_exec_ext in '' $ac_executable_extensions; do
7245   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248     break 2
7249   fi
7250 done
7251 done
7252
7253 fi
7254 fi
7255 RANLIB=$ac_cv_prog_RANLIB
7256 if test -n "$RANLIB"; then
7257   echo "$as_me:$LINENO: result: $RANLIB" >&5
7258 echo "${ECHO_T}$RANLIB" >&6
7259 else
7260   echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6
7262 fi
7263
7264 fi
7265 if test -z "$ac_cv_prog_RANLIB"; then
7266   ac_ct_RANLIB=$RANLIB
7267   # Extract the first word of "ranlib", so it can be a program name with args.
7268 set dummy ranlib; ac_word=$2
7269 echo "$as_me:$LINENO: checking for $ac_word" >&5
7270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7271 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274   if test -n "$ac_ct_RANLIB"; then
7275   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7276 else
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280   IFS=$as_save_IFS
7281   test -z "$as_dir" && as_dir=.
7282   for ac_exec_ext in '' $ac_executable_extensions; do
7283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284     ac_cv_prog_ac_ct_RANLIB="ranlib"
7285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286     break 2
7287   fi
7288 done
7289 done
7290
7291   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7292 fi
7293 fi
7294 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7295 if test -n "$ac_ct_RANLIB"; then
7296   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7297 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7298 else
7299   echo "$as_me:$LINENO: result: no" >&5
7300 echo "${ECHO_T}no" >&6
7301 fi
7302
7303   RANLIB=$ac_ct_RANLIB
7304 else
7305   RANLIB="$ac_cv_prog_RANLIB"
7306 fi
7307
7308 if test -n "$ac_tool_prefix"; then
7309   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7310 set dummy ${ac_tool_prefix}strip; ac_word=$2
7311 echo "$as_me:$LINENO: checking for $ac_word" >&5
7312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7313 if test "${ac_cv_prog_STRIP+set}" = set; then
7314   echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else
7316   if test -n "$STRIP"; then
7317   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322   IFS=$as_save_IFS
7323   test -z "$as_dir" && as_dir=.
7324   for ac_exec_ext in '' $ac_executable_extensions; do
7325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328     break 2
7329   fi
7330 done
7331 done
7332
7333 fi
7334 fi
7335 STRIP=$ac_cv_prog_STRIP
7336 if test -n "$STRIP"; then
7337   echo "$as_me:$LINENO: result: $STRIP" >&5
7338 echo "${ECHO_T}$STRIP" >&6
7339 else
7340   echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6
7342 fi
7343
7344 fi
7345 if test -z "$ac_cv_prog_STRIP"; then
7346   ac_ct_STRIP=$STRIP
7347   # Extract the first word of "strip", so it can be a program name with args.
7348 set dummy strip; ac_word=$2
7349 echo "$as_me:$LINENO: checking for $ac_word" >&5
7350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7351 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7352   echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354   if test -n "$ac_ct_STRIP"; then
7355   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   test -z "$as_dir" && as_dir=.
7362   for ac_exec_ext in '' $ac_executable_extensions; do
7363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364     ac_cv_prog_ac_ct_STRIP="strip"
7365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366     break 2
7367   fi
7368 done
7369 done
7370
7371   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7372 fi
7373 fi
7374 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7375 if test -n "$ac_ct_STRIP"; then
7376   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7377 echo "${ECHO_T}$ac_ct_STRIP" >&6
7378 else
7379   echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6
7381 fi
7382
7383   STRIP=$ac_ct_STRIP
7384 else
7385   STRIP="$ac_cv_prog_STRIP"
7386 fi
7387
7388
7389 old_CC="$CC"
7390 old_CFLAGS="$CFLAGS"
7391
7392 # Set sane defaults for various variables
7393 test -z "$AR" && AR=ar
7394 test -z "$AR_FLAGS" && AR_FLAGS=cru
7395 test -z "$AS" && AS=as
7396 test -z "$CC" && CC=cc
7397 test -z "$LTCC" && LTCC=$CC
7398 test -z "$DLLTOOL" && DLLTOOL=dlltool
7399 test -z "$LD" && LD=ld
7400 test -z "$LN_S" && LN_S="ln -s"
7401 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7402 test -z "$NM" && NM=nm
7403 test -z "$SED" && SED=sed
7404 test -z "$OBJDUMP" && OBJDUMP=objdump
7405 test -z "$RANLIB" && RANLIB=:
7406 test -z "$STRIP" && STRIP=:
7407 test -z "$ac_objext" && ac_objext=o
7408
7409 # Determine commands to create old-style static archives.
7410 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7411 old_postinstall_cmds='chmod 644 $oldlib'
7412 old_postuninstall_cmds=
7413
7414 if test -n "$RANLIB"; then
7415   case $host_os in
7416   openbsd*)
7417     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7418     ;;
7419   *)
7420     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7421     ;;
7422   esac
7423   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7424 fi
7425
7426 for cc_temp in $compiler""; do
7427   case $cc_temp in
7428     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7429     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7430     \-*) ;;
7431     *) break;;
7432   esac
7433 done
7434 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7435
7436
7437 # Only perform the check for file, if the check method requires it
7438 case $deplibs_check_method in
7439 file_magic*)
7440   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7441     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7442 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7443 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7444   echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446   case $MAGIC_CMD in
7447 [\\/*] |  ?:[\\/]*)
7448   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7449   ;;
7450 *)
7451   lt_save_MAGIC_CMD="$MAGIC_CMD"
7452   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7453   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7454   for ac_dir in $ac_dummy; do
7455     IFS="$lt_save_ifs"
7456     test -z "$ac_dir" && ac_dir=.
7457     if test -f $ac_dir/${ac_tool_prefix}file; then
7458       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7459       if test -n "$file_magic_test_file"; then
7460         case $deplibs_check_method in
7461         "file_magic "*)
7462           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7463           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7464           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7465             $EGREP "$file_magic_regex" > /dev/null; then
7466             :
7467           else
7468             cat <<EOF 1>&2
7469
7470 *** Warning: the command libtool uses to detect shared libraries,
7471 *** $file_magic_cmd, produces output that libtool cannot recognize.
7472 *** The result is that libtool may fail to recognize shared libraries
7473 *** as such.  This will affect the creation of libtool libraries that
7474 *** depend on shared libraries, but programs linked with such libtool
7475 *** libraries will work regardless of this problem.  Nevertheless, you
7476 *** may want to report the problem to your system manager and/or to
7477 *** bug-libtool@gnu.org
7478
7479 EOF
7480           fi ;;
7481         esac
7482       fi
7483       break
7484     fi
7485   done
7486   IFS="$lt_save_ifs"
7487   MAGIC_CMD="$lt_save_MAGIC_CMD"
7488   ;;
7489 esac
7490 fi
7491
7492 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7493 if test -n "$MAGIC_CMD"; then
7494   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7495 echo "${ECHO_T}$MAGIC_CMD" >&6
7496 else
7497   echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6
7499 fi
7500
7501 if test -z "$lt_cv_path_MAGIC_CMD"; then
7502   if test -n "$ac_tool_prefix"; then
7503     echo "$as_me:$LINENO: checking for file" >&5
7504 echo $ECHO_N "checking for file... $ECHO_C" >&6
7505 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7506   echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508   case $MAGIC_CMD in
7509 [\\/*] |  ?:[\\/]*)
7510   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7511   ;;
7512 *)
7513   lt_save_MAGIC_CMD="$MAGIC_CMD"
7514   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7515   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7516   for ac_dir in $ac_dummy; do
7517     IFS="$lt_save_ifs"
7518     test -z "$ac_dir" && ac_dir=.
7519     if test -f $ac_dir/file; then
7520       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7521       if test -n "$file_magic_test_file"; then
7522         case $deplibs_check_method in
7523         "file_magic "*)
7524           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7525           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7526           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7527             $EGREP "$file_magic_regex" > /dev/null; then
7528             :
7529           else
7530             cat <<EOF 1>&2
7531
7532 *** Warning: the command libtool uses to detect shared libraries,
7533 *** $file_magic_cmd, produces output that libtool cannot recognize.
7534 *** The result is that libtool may fail to recognize shared libraries
7535 *** as such.  This will affect the creation of libtool libraries that
7536 *** depend on shared libraries, but programs linked with such libtool
7537 *** libraries will work regardless of this problem.  Nevertheless, you
7538 *** may want to report the problem to your system manager and/or to
7539 *** bug-libtool@gnu.org
7540
7541 EOF
7542           fi ;;
7543         esac
7544       fi
7545       break
7546     fi
7547   done
7548   IFS="$lt_save_ifs"
7549   MAGIC_CMD="$lt_save_MAGIC_CMD"
7550   ;;
7551 esac
7552 fi
7553
7554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7555 if test -n "$MAGIC_CMD"; then
7556   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7557 echo "${ECHO_T}$MAGIC_CMD" >&6
7558 else
7559   echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561 fi
7562
7563   else
7564     MAGIC_CMD=:
7565   fi
7566 fi
7567
7568   fi
7569   ;;
7570 esac
7571
7572 enable_dlopen=yes
7573 enable_win32_dll=yes
7574
7575 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7576 if test "${enable_libtool_lock+set}" = set; then
7577   enableval="$enable_libtool_lock"
7578
7579 fi;
7580 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7581
7582
7583 # Check whether --with-pic or --without-pic was given.
7584 if test "${with_pic+set}" = set; then
7585   withval="$with_pic"
7586   pic_mode="$withval"
7587 else
7588   pic_mode=default
7589 fi;
7590 test -z "$pic_mode" && pic_mode=default
7591
7592 # Use C for the default configuration in the libtool script
7593 tagname=
7594 lt_save_CC="$CC"
7595 ac_ext=c
7596 ac_cpp='$CPP $CPPFLAGS'
7597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7600
7601
7602 # Source file extension for C test sources.
7603 ac_ext=c
7604
7605 # Object file extension for compiled C test sources.
7606 objext=o
7607 objext=$objext
7608
7609 # Code to be used in simple compile tests
7610 lt_simple_compile_test_code="int some_variable = 0;\n"
7611
7612 # Code to be used in simple link tests
7613 lt_simple_link_test_code='int main(){return(0);}\n'
7614
7615
7616 # If no C compiler was specified, use CC.
7617 LTCC=${LTCC-"$CC"}
7618
7619 # Allow CC to be a program name with arguments.
7620 compiler=$CC
7621
7622
7623 # save warnings/boilerplate of simple test code
7624 ac_outfile=conftest.$ac_objext
7625 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7626 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7627 _lt_compiler_boilerplate=`cat conftest.err`
7628 $rm conftest*
7629
7630 ac_outfile=conftest.$ac_objext
7631 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7632 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7633 _lt_linker_boilerplate=`cat conftest.err`
7634 $rm conftest*
7635
7636
7637 #
7638 # Check for any special shared library compilation flags.
7639 #
7640 lt_prog_cc_shlib=
7641 if test "$GCC" = no; then
7642   case $host_os in
7643   sco3.2v5*)
7644     lt_prog_cc_shlib='-belf'
7645     ;;
7646   esac
7647 fi
7648 if test -n "$lt_prog_cc_shlib"; then
7649   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7650 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7651   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7652   else
7653     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7654 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7655     lt_cv_prog_cc_can_build_shared=no
7656   fi
7657 fi
7658
7659
7660 #
7661 # Check to make sure the static flag actually works.
7662 #
7663 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7664 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7665 if test "${lt_prog_compiler_static_works+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   lt_prog_compiler_static_works=no
7669    save_LDFLAGS="$LDFLAGS"
7670    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7671    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7672    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7673      # The linker can only warn and ignore the option if not recognized
7674      # So say no if there are warnings
7675      if test -s conftest.err; then
7676        # Append any errors to the config.log.
7677        cat conftest.err 1>&5
7678        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7679        $SED '/^$/d' conftest.err >conftest.er2
7680        if diff conftest.exp conftest.er2 >/dev/null; then
7681          lt_prog_compiler_static_works=yes
7682        fi
7683      else
7684        lt_prog_compiler_static_works=yes
7685      fi
7686    fi
7687    $rm conftest*
7688    LDFLAGS="$save_LDFLAGS"
7689
7690 fi
7691 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7692 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7693
7694 if test x"$lt_prog_compiler_static_works" = xyes; then
7695     :
7696 else
7697     lt_prog_compiler_static=
7698 fi
7699
7700
7701
7702
7703 lt_prog_compiler_no_builtin_flag=
7704
7705 if test "$GCC" = yes; then
7706   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7707
7708
7709 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7710 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7711 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   lt_cv_prog_compiler_rtti_exceptions=no
7715   ac_outfile=conftest.$ac_objext
7716    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7717    lt_compiler_flag="-fno-rtti -fno-exceptions"
7718    # Insert the option either (1) after the last *FLAGS variable, or
7719    # (2) before a word containing "conftest.", or (3) at the end.
7720    # Note that $ac_compile itself does not contain backslashes and begins
7721    # with a dollar sign (not a hyphen), so the echo should work correctly.
7722    # The option is referenced via a variable to avoid confusing sed.
7723    lt_compile=`echo "$ac_compile" | $SED \
7724    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7725    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7726    -e 's:$: $lt_compiler_flag:'`
7727    (eval echo "\"\$as_me:7727: $lt_compile\"" >&5)
7728    (eval "$lt_compile" 2>conftest.err)
7729    ac_status=$?
7730    cat conftest.err >&5
7731    echo "$as_me:7731: \$? = $ac_status" >&5
7732    if (exit $ac_status) && test -s "$ac_outfile"; then
7733      # The compiler can only warn and ignore the option if not recognized
7734      # So say no if there are warnings other than the usual output.
7735      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7736      $SED '/^$/d' conftest.err >conftest.er2
7737      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7738        lt_cv_prog_compiler_rtti_exceptions=yes
7739      fi
7740    fi
7741    $rm conftest*
7742
7743 fi
7744 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7745 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7746
7747 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7748     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7749 else
7750     :
7751 fi
7752
7753 fi
7754
7755 lt_prog_compiler_wl=
7756 lt_prog_compiler_pic=
7757 lt_prog_compiler_static=
7758
7759 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7760 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7761
7762   if test "$GCC" = yes; then
7763     lt_prog_compiler_wl='-Wl,'
7764     lt_prog_compiler_static='-static'
7765
7766     case $host_os in
7767       aix*)
7768       # All AIX code is PIC.
7769       if test "$host_cpu" = ia64; then
7770         # AIX 5 now supports IA64 processor
7771         lt_prog_compiler_static='-Bstatic'
7772       fi
7773       ;;
7774
7775     amigaos*)
7776       # FIXME: we need at least 68020 code to build shared libraries, but
7777       # adding the `-m68020' flag to GCC prevents building anything better,
7778       # like `-m68040'.
7779       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7780       ;;
7781
7782     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7783       # PIC is the default for these OSes.
7784       ;;
7785
7786     mingw* | pw32* | os2*)
7787       # This hack is so that the source file can tell whether it is being
7788       # built for inclusion in a dll (and should export symbols for example).
7789       lt_prog_compiler_pic='-DDLL_EXPORT'
7790       ;;
7791
7792     darwin* | rhapsody*)
7793       # PIC is the default on this platform
7794       # Common symbols not allowed in MH_DYLIB files
7795       lt_prog_compiler_pic='-fno-common'
7796       ;;
7797
7798     msdosdjgpp*)
7799       # Just because we use GCC doesn't mean we suddenly get shared libraries
7800       # on systems that don't support them.
7801       lt_prog_compiler_can_build_shared=no
7802       enable_shared=no
7803       ;;
7804
7805     sysv4*MP*)
7806       if test -d /usr/nec; then
7807         lt_prog_compiler_pic=-Kconform_pic
7808       fi
7809       ;;
7810
7811     hpux*)
7812       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7813       # not for PA HP-UX.
7814       case $host_cpu in
7815       hppa*64*|ia64*)
7816         # +Z the default
7817         ;;
7818       *)
7819         lt_prog_compiler_pic='-fPIC'
7820         ;;
7821       esac
7822       ;;
7823
7824     *)
7825       lt_prog_compiler_pic='-fPIC'
7826       ;;
7827     esac
7828   else
7829     # PORTME Check for flag to pass linker flags through the system compiler.
7830     case $host_os in
7831     aix*)
7832       lt_prog_compiler_wl='-Wl,'
7833       if test "$host_cpu" = ia64; then
7834         # AIX 5 now supports IA64 processor
7835         lt_prog_compiler_static='-Bstatic'
7836       else
7837         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7838       fi
7839       ;;
7840       darwin*)
7841         # PIC is the default on this platform
7842         # Common symbols not allowed in MH_DYLIB files
7843        case $cc_basename in
7844          xlc*)
7845          lt_prog_compiler_pic='-qnocommon'
7846          lt_prog_compiler_wl='-Wl,'
7847          ;;
7848        esac
7849        ;;
7850
7851     mingw* | pw32* | os2*)
7852       # This hack is so that the source file can tell whether it is being
7853       # built for inclusion in a dll (and should export symbols for example).
7854       lt_prog_compiler_pic='-DDLL_EXPORT'
7855       ;;
7856
7857     hpux9* | hpux10* | hpux11*)
7858       lt_prog_compiler_wl='-Wl,'
7859       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7860       # not for PA HP-UX.
7861       case $host_cpu in
7862       hppa*64*|ia64*)
7863         # +Z the default
7864         ;;
7865       *)
7866         lt_prog_compiler_pic='+Z'
7867         ;;
7868       esac
7869       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7870       lt_prog_compiler_static='${wl}-a ${wl}archive'
7871       ;;
7872
7873     irix5* | irix6* | nonstopux*)
7874       lt_prog_compiler_wl='-Wl,'
7875       # PIC (with -KPIC) is the default.
7876       lt_prog_compiler_static='-non_shared'
7877       ;;
7878
7879     newsos6)
7880       lt_prog_compiler_pic='-KPIC'
7881       lt_prog_compiler_static='-Bstatic'
7882       ;;
7883
7884     linux*)
7885       case $cc_basename in
7886       icc* | ecc*)
7887         lt_prog_compiler_wl='-Wl,'
7888         lt_prog_compiler_pic='-KPIC'
7889         lt_prog_compiler_static='-static'
7890         ;;
7891       pgcc* | pgf77* | pgf90* | pgf95*)
7892         # Portland Group compilers (*not* the Pentium gcc compiler,
7893         # which looks to be a dead project)
7894         lt_prog_compiler_wl='-Wl,'
7895         lt_prog_compiler_pic='-fpic'
7896         lt_prog_compiler_static='-Bstatic'
7897         ;;
7898       ccc*)
7899         lt_prog_compiler_wl='-Wl,'
7900         # All Alpha code is PIC.
7901         lt_prog_compiler_static='-non_shared'
7902         ;;
7903       esac
7904       ;;
7905
7906     osf3* | osf4* | osf5*)
7907       lt_prog_compiler_wl='-Wl,'
7908       # All OSF/1 code is PIC.
7909       lt_prog_compiler_static='-non_shared'
7910       ;;
7911
7912     sco3.2v5*)
7913       lt_prog_compiler_pic='-Kpic'
7914       lt_prog_compiler_static='-dn'
7915       ;;
7916
7917     solaris*)
7918       lt_prog_compiler_pic='-KPIC'
7919       lt_prog_compiler_static='-Bstatic'
7920       case $cc_basename in
7921       f77* | f90* | f95*)
7922         lt_prog_compiler_wl='-Qoption ld ';;
7923       *)
7924         lt_prog_compiler_wl='-Wl,';;
7925       esac
7926       ;;
7927
7928     sunos4*)
7929       lt_prog_compiler_wl='-Qoption ld '
7930       lt_prog_compiler_pic='-PIC'
7931       lt_prog_compiler_static='-Bstatic'
7932       ;;
7933
7934     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7935       lt_prog_compiler_wl='-Wl,'
7936       lt_prog_compiler_pic='-KPIC'
7937       lt_prog_compiler_static='-Bstatic'
7938       ;;
7939
7940     sysv4*MP*)
7941       if test -d /usr/nec ;then
7942         lt_prog_compiler_pic='-Kconform_pic'
7943         lt_prog_compiler_static='-Bstatic'
7944       fi
7945       ;;
7946
7947     unicos*)
7948       lt_prog_compiler_wl='-Wl,'
7949       lt_prog_compiler_can_build_shared=no
7950       ;;
7951
7952     uts4*)
7953       lt_prog_compiler_pic='-pic'
7954       lt_prog_compiler_static='-Bstatic'
7955       ;;
7956
7957     *)
7958       lt_prog_compiler_can_build_shared=no
7959       ;;
7960     esac
7961   fi
7962
7963 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7964 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7965
7966 #
7967 # Check to make sure the PIC flag actually works.
7968 #
7969 if test -n "$lt_prog_compiler_pic"; then
7970
7971 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7972 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7973 if test "${lt_prog_compiler_pic_works+set}" = set; then
7974   echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976   lt_prog_compiler_pic_works=no
7977   ac_outfile=conftest.$ac_objext
7978    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7979    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7980    # Insert the option either (1) after the last *FLAGS variable, or
7981    # (2) before a word containing "conftest.", or (3) at the end.
7982    # Note that $ac_compile itself does not contain backslashes and begins
7983    # with a dollar sign (not a hyphen), so the echo should work correctly.
7984    # The option is referenced via a variable to avoid confusing sed.
7985    lt_compile=`echo "$ac_compile" | $SED \
7986    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7987    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7988    -e 's:$: $lt_compiler_flag:'`
7989    (eval echo "\"\$as_me:7989: $lt_compile\"" >&5)
7990    (eval "$lt_compile" 2>conftest.err)
7991    ac_status=$?
7992    cat conftest.err >&5
7993    echo "$as_me:7993: \$? = $ac_status" >&5
7994    if (exit $ac_status) && test -s "$ac_outfile"; then
7995      # The compiler can only warn and ignore the option if not recognized
7996      # So say no if there are warnings other than the usual output.
7997      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7998      $SED '/^$/d' conftest.err >conftest.er2
7999      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8000        lt_prog_compiler_pic_works=yes
8001      fi
8002    fi
8003    $rm conftest*
8004
8005 fi
8006 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8007 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8008
8009 if test x"$lt_prog_compiler_pic_works" = xyes; then
8010     case $lt_prog_compiler_pic in
8011      "" | " "*) ;;
8012      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8013      esac
8014 else
8015     lt_prog_compiler_pic=
8016      lt_prog_compiler_can_build_shared=no
8017 fi
8018
8019 fi
8020 case $host_os in
8021   # For platforms which do not support PIC, -DPIC is meaningless:
8022   *djgpp*)
8023     lt_prog_compiler_pic=
8024     ;;
8025   *)
8026     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8027     ;;
8028 esac
8029
8030 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8031 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8032 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8033   echo $ECHO_N "(cached) $ECHO_C" >&6
8034 else
8035   lt_cv_prog_compiler_c_o=no
8036    $rm -r conftest 2>/dev/null
8037    mkdir conftest
8038    cd conftest
8039    mkdir out
8040    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8041
8042    lt_compiler_flag="-o out/conftest2.$ac_objext"
8043    # Insert the option either (1) after the last *FLAGS variable, or
8044    # (2) before a word containing "conftest.", or (3) at the end.
8045    # Note that $ac_compile itself does not contain backslashes and begins
8046    # with a dollar sign (not a hyphen), so the echo should work correctly.
8047    lt_compile=`echo "$ac_compile" | $SED \
8048    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8049    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8050    -e 's:$: $lt_compiler_flag:'`
8051    (eval echo "\"\$as_me:8051: $lt_compile\"" >&5)
8052    (eval "$lt_compile" 2>out/conftest.err)
8053    ac_status=$?
8054    cat out/conftest.err >&5
8055    echo "$as_me:8055: \$? = $ac_status" >&5
8056    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8057    then
8058      # The compiler can only warn and ignore the option if not recognized
8059      # So say no if there are warnings
8060      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8061      $SED '/^$/d' out/conftest.err >out/conftest.er2
8062      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8063        lt_cv_prog_compiler_c_o=yes
8064      fi
8065    fi
8066    chmod u+w . 2>&5
8067    $rm conftest*
8068    # SGI C++ compiler will create directory out/ii_files/ for
8069    # template instantiation
8070    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8071    $rm out/* && rmdir out
8072    cd ..
8073    rmdir conftest
8074    $rm conftest*
8075
8076 fi
8077 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8078 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8079
8080
8081 hard_links="nottested"
8082 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8083   # do not overwrite the value of need_locks provided by the user
8084   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8085 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8086   hard_links=yes
8087   $rm conftest*
8088   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8089   touch conftest.a
8090   ln conftest.a conftest.b 2>&5 || hard_links=no
8091   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8092   echo "$as_me:$LINENO: result: $hard_links" >&5
8093 echo "${ECHO_T}$hard_links" >&6
8094   if test "$hard_links" = no; then
8095     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8096 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8097     need_locks=warn
8098   fi
8099 else
8100   need_locks=no
8101 fi
8102
8103 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8104 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8105
8106   runpath_var=
8107   allow_undefined_flag=
8108   enable_shared_with_static_runtimes=no
8109   archive_cmds=
8110   archive_expsym_cmds=
8111   old_archive_From_new_cmds=
8112   old_archive_from_expsyms_cmds=
8113   export_dynamic_flag_spec=
8114   whole_archive_flag_spec=
8115   thread_safe_flag_spec=
8116   hardcode_libdir_flag_spec=
8117   hardcode_libdir_flag_spec_ld=
8118   hardcode_libdir_separator=
8119   hardcode_direct=no
8120   hardcode_minus_L=no
8121   hardcode_shlibpath_var=unsupported
8122   link_all_deplibs=unknown
8123   hardcode_automatic=no
8124   module_cmds=
8125   module_expsym_cmds=
8126   always_export_symbols=no
8127   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8128   # include_expsyms should be a list of space-separated symbols to be *always*
8129   # included in the symbol list
8130   include_expsyms=
8131   # exclude_expsyms can be an extended regexp of symbols to exclude
8132   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8133   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8134   # as well as any symbol that contains `d'.
8135   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8136   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8137   # platforms (ab)use it in PIC code, but their linkers get confused if
8138   # the symbol is explicitly referenced.  Since portable code cannot
8139   # rely on this symbol name, it's probably fine to never include it in
8140   # preloaded symbol tables.
8141   extract_expsyms_cmds=
8142   # Just being paranoid about ensuring that cc_basename is set.
8143   for cc_temp in $compiler""; do
8144   case $cc_temp in
8145     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8146     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8147     \-*) ;;
8148     *) break;;
8149   esac
8150 done
8151 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8152
8153   case $host_os in
8154   cygwin* | mingw* | pw32*)
8155     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8156     # When not using gcc, we currently assume that we are using
8157     # Microsoft Visual C++.
8158     if test "$GCC" != yes; then
8159       with_gnu_ld=no
8160     fi
8161     ;;
8162   openbsd*)
8163     with_gnu_ld=no
8164     ;;
8165   esac
8166
8167   ld_shlibs=yes
8168   if test "$with_gnu_ld" = yes; then
8169     # If archive_cmds runs LD, not CC, wlarc should be empty
8170     wlarc='${wl}'
8171
8172     # Set some defaults for GNU ld with shared library support. These
8173     # are reset later if shared libraries are not supported. Putting them
8174     # here allows them to be overridden if necessary.
8175     runpath_var=LD_RUN_PATH
8176     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8177     export_dynamic_flag_spec='${wl}--export-dynamic'
8178     # ancient GNU ld didn't support --whole-archive et. al.
8179     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8180         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8181       else
8182         whole_archive_flag_spec=
8183     fi
8184     supports_anon_versioning=no
8185     case `$LD -v 2>/dev/null` in
8186       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8187       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8188       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8189       *\ 2.11.*) ;; # other 2.11 versions
8190       *) supports_anon_versioning=yes ;;
8191     esac
8192
8193     # See if GNU ld supports shared libraries.
8194     case $host_os in
8195     aix3* | aix4* | aix5*)
8196       # On AIX/PPC, the GNU linker is very broken
8197       if test "$host_cpu" != ia64; then
8198         ld_shlibs=no
8199         cat <<EOF 1>&2
8200
8201 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8202 *** to be unable to reliably create shared libraries on AIX.
8203 *** Therefore, libtool is disabling shared libraries support.  If you
8204 *** really care for shared libraries, you may want to modify your PATH
8205 *** so that a non-GNU linker is found, and then restart.
8206
8207 EOF
8208       fi
8209       ;;
8210
8211     amigaos*)
8212       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)'
8213       hardcode_libdir_flag_spec='-L$libdir'
8214       hardcode_minus_L=yes
8215
8216       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8217       # that the semantics of dynamic libraries on AmigaOS, at least up
8218       # to version 4, is to share data among multiple programs linked
8219       # with the same dynamic library.  Since this doesn't match the
8220       # behavior of shared libraries on other platforms, we can't use
8221       # them.
8222       ld_shlibs=no
8223       ;;
8224
8225     beos*)
8226       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8227         allow_undefined_flag=unsupported
8228         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8229         # support --undefined.  This deserves some investigation.  FIXME
8230         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8231       else
8232         ld_shlibs=no
8233       fi
8234       ;;
8235
8236     cygwin* | mingw* | pw32*)
8237       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8238       # as there is no search path for DLLs.
8239       hardcode_libdir_flag_spec='-L$libdir'
8240       allow_undefined_flag=unsupported
8241       always_export_symbols=no
8242       enable_shared_with_static_runtimes=yes
8243       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8244
8245       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8246         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8247         # If the export-symbols file already is a .def file (1st line
8248         # is EXPORTS), use it as is; otherwise, prepend...
8249         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8250           cp $export_symbols $output_objdir/$soname.def;
8251         else
8252           echo EXPORTS > $output_objdir/$soname.def;
8253           cat $export_symbols >> $output_objdir/$soname.def;
8254         fi~
8255         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8256       else
8257         ld_shlibs=no
8258       fi
8259       ;;
8260
8261     linux*)
8262       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8263         tmp_addflag=
8264         case $cc_basename,$host_cpu in
8265         pgcc*)                          # Portland Group C compiler
8266           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'
8267           tmp_addflag=' $pic_flag'
8268           ;;
8269         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8270           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'
8271           tmp_addflag=' $pic_flag -Mnomain' ;;
8272         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8273           tmp_addflag=' -i_dynamic' ;;
8274         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8275           tmp_addflag=' -i_dynamic -nofor_main' ;;
8276         ifc* | ifort*)                  # Intel Fortran compiler
8277           tmp_addflag=' -nofor_main' ;;
8278         esac
8279         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8280
8281         if test $supports_anon_versioning = yes; then
8282           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8283   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8284   $echo "local: *; };" >> $output_objdir/$libname.ver~
8285           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8286         fi
8287       else
8288         ld_shlibs=no
8289       fi
8290       ;;
8291
8292     netbsd*)
8293       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8294         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8295         wlarc=
8296       else
8297         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8298         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8299       fi
8300       ;;
8301
8302     solaris* | sysv5*)
8303       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8304         ld_shlibs=no
8305         cat <<EOF 1>&2
8306
8307 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8308 *** create shared libraries on Solaris systems.  Therefore, libtool
8309 *** is disabling shared libraries support.  We urge you to upgrade GNU
8310 *** binutils to release 2.9.1 or newer.  Another option is to modify
8311 *** your PATH or compiler configuration so that the native linker is
8312 *** used, and then restart.
8313
8314 EOF
8315       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8316         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8317         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8318       else
8319         ld_shlibs=no
8320       fi
8321       ;;
8322
8323     sunos4*)
8324       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8325       wlarc=
8326       hardcode_direct=yes
8327       hardcode_shlibpath_var=no
8328       ;;
8329
8330     *)
8331       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8332         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8333         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8334       else
8335         ld_shlibs=no
8336       fi
8337       ;;
8338     esac
8339
8340     if test "$ld_shlibs" = no; then
8341       runpath_var=
8342       hardcode_libdir_flag_spec=
8343       export_dynamic_flag_spec=
8344       whole_archive_flag_spec=
8345     fi
8346   else
8347     # PORTME fill in a description of your system's linker (not GNU ld)
8348     case $host_os in
8349     aix3*)
8350       allow_undefined_flag=unsupported
8351       always_export_symbols=yes
8352       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'
8353       # Note: this linker hardcodes the directories in LIBPATH if there
8354       # are no directories specified by -L.
8355       hardcode_minus_L=yes
8356       if test "$GCC" = yes && test -z "$link_static_flag"; then
8357         # Neither direct hardcoding nor static linking is supported with a
8358         # broken collect2.
8359         hardcode_direct=unsupported
8360       fi
8361       ;;
8362
8363     aix4* | aix5*)
8364       if test "$host_cpu" = ia64; then
8365         # On IA64, the linker does run time linking by default, so we don't
8366         # have to do anything special.
8367         aix_use_runtimelinking=no
8368         exp_sym_flag='-Bexport'
8369         no_entry_flag=""
8370       else
8371         # If we're using GNU nm, then we don't want the "-C" option.
8372         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8373         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8374           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'
8375         else
8376           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'
8377         fi
8378         aix_use_runtimelinking=no
8379
8380         # Test if we are trying to use run time linking or normal
8381         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8382         # need to do runtime linking.
8383         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8384           for ld_flag in $LDFLAGS; do
8385           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8386             aix_use_runtimelinking=yes
8387             break
8388           fi
8389           done
8390         esac
8391
8392         exp_sym_flag='-bexport'
8393         no_entry_flag='-bnoentry'
8394       fi
8395
8396       # When large executables or shared objects are built, AIX ld can
8397       # have problems creating the table of contents.  If linking a library
8398       # or program results in "error TOC overflow" add -mminimal-toc to
8399       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8400       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8401
8402       archive_cmds=''
8403       hardcode_direct=yes
8404       hardcode_libdir_separator=':'
8405       link_all_deplibs=yes
8406
8407       if test "$GCC" = yes; then
8408         case $host_os in aix4.[012]|aix4.[012].*)
8409         # We only want to do this on AIX 4.2 and lower, the check
8410         # below for broken collect2 doesn't work under 4.3+
8411           collect2name=`${CC} -print-prog-name=collect2`
8412           if test -f "$collect2name" && \
8413            strings "$collect2name" | grep resolve_lib_name >/dev/null
8414           then
8415           # We have reworked collect2
8416           hardcode_direct=yes
8417           else
8418           # We have old collect2
8419           hardcode_direct=unsupported
8420           # It fails to find uninstalled libraries when the uninstalled
8421           # path is not listed in the libpath.  Setting hardcode_minus_L
8422           # to unsupported forces relinking
8423           hardcode_minus_L=yes
8424           hardcode_libdir_flag_spec='-L$libdir'
8425           hardcode_libdir_separator=
8426           fi
8427         esac
8428         shared_flag='-shared'
8429         if test "$aix_use_runtimelinking" = yes; then
8430           shared_flag="$shared_flag "'${wl}-G'
8431         fi
8432       else
8433         # not using gcc
8434         if test "$host_cpu" = ia64; then
8435         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8436         # chokes on -Wl,-G. The following line is correct:
8437           shared_flag='-G'
8438         else
8439         if test "$aix_use_runtimelinking" = yes; then
8440             shared_flag='${wl}-G'
8441           else
8442             shared_flag='${wl}-bM:SRE'
8443         fi
8444         fi
8445       fi
8446
8447       # It seems that -bexpall does not export symbols beginning with
8448       # underscore (_), so it is better to generate a list of symbols to export.
8449       always_export_symbols=yes
8450       if test "$aix_use_runtimelinking" = yes; then
8451         # Warning - without using the other runtime loading flags (-brtl),
8452         # -berok will link without error, but may produce a broken library.
8453         allow_undefined_flag='-berok'
8454        # Determine the default libpath from the value encoded in an empty executable.
8455        cat >conftest.$ac_ext <<_ACEOF
8456 /* confdefs.h.  */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h.  */
8461
8462 int
8463 main ()
8464 {
8465
8466   ;
8467   return 0;
8468 }
8469 _ACEOF
8470 rm -f conftest.$ac_objext conftest$ac_exeext
8471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8472   (eval $ac_link) 2>conftest.er1
8473   ac_status=$?
8474   grep -v '^ *+' conftest.er1 >conftest.err
8475   rm -f conftest.er1
8476   cat conftest.err >&5
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); } &&
8479          { ac_try='test -z "$ac_c_werror_flag"
8480                          || test ! -s conftest.err'
8481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482   (eval $ac_try) 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }; } &&
8486          { ac_try='test -s conftest$ac_exeext'
8487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488   (eval $ac_try) 2>&5
8489   ac_status=$?
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); }; }; then
8492
8493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8494 }'`
8495 # Check for a 64-bit object if we didn't find anything.
8496 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; }
8497 }'`; fi
8498 else
8499   echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8501
8502 fi
8503 rm -f conftest.err conftest.$ac_objext \
8504       conftest$ac_exeext conftest.$ac_ext
8505 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8506
8507        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8508         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"
8509        else
8510         if test "$host_cpu" = ia64; then
8511           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8512           allow_undefined_flag="-z nodefs"
8513           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"
8514         else
8515          # Determine the default libpath from the value encoded in an empty executable.
8516          cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h.  */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h.  */
8522
8523 int
8524 main ()
8525 {
8526
8527   ;
8528   return 0;
8529 }
8530 _ACEOF
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533   (eval $ac_link) 2>conftest.er1
8534   ac_status=$?
8535   grep -v '^ *+' conftest.er1 >conftest.err
8536   rm -f conftest.er1
8537   cat conftest.err >&5
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } &&
8540          { ac_try='test -z "$ac_c_werror_flag"
8541                          || test ! -s conftest.err'
8542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543   (eval $ac_try) 2>&5
8544   ac_status=$?
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); }; } &&
8547          { ac_try='test -s conftest$ac_exeext'
8548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549   (eval $ac_try) 2>&5
8550   ac_status=$?
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); }; }; then
8553
8554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8555 }'`
8556 # Check for a 64-bit object if we didn't find anything.
8557 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; }
8558 }'`; fi
8559 else
8560   echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8562
8563 fi
8564 rm -f conftest.err conftest.$ac_objext \
8565       conftest$ac_exeext conftest.$ac_ext
8566 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8567
8568          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8569           # Warning - without using the other run time loading flags,
8570           # -berok will link without error, but may produce a broken library.
8571           no_undefined_flag=' ${wl}-bernotok'
8572           allow_undefined_flag=' ${wl}-berok'
8573           # -bexpall does not export symbols beginning with underscore (_)
8574           always_export_symbols=yes
8575           # Exported symbols can be pulled into shared objects from archives
8576           whole_archive_flag_spec=' '
8577           archive_cmds_need_lc=yes
8578           # This is similar to how AIX traditionally builds its shared libraries.
8579           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'
8580         fi
8581       fi
8582       ;;
8583
8584     amigaos*)
8585       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)'
8586       hardcode_libdir_flag_spec='-L$libdir'
8587       hardcode_minus_L=yes
8588       # see comment about different semantics on the GNU ld section
8589       ld_shlibs=no
8590       ;;
8591
8592     bsdi[45]*)
8593       export_dynamic_flag_spec=-rdynamic
8594       ;;
8595
8596     cygwin* | mingw* | pw32*)
8597       # When not using gcc, we currently assume that we are using
8598       # Microsoft Visual C++.
8599       # hardcode_libdir_flag_spec is actually meaningless, as there is
8600       # no search path for DLLs.
8601       hardcode_libdir_flag_spec=' '
8602       allow_undefined_flag=unsupported
8603       # Tell ltmain to make .lib files, not .a files.
8604       libext=lib
8605       # Tell ltmain to make .dll files, not .so files.
8606       shrext_cmds=".dll"
8607       # FIXME: Setting linknames here is a bad hack.
8608       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8609       # The linker will automatically build a .lib file if we build a DLL.
8610       old_archive_From_new_cmds='true'
8611       # FIXME: Should let the user specify the lib program.
8612       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8613       fix_srcfile_path='`cygpath -w "$srcfile"`'
8614       enable_shared_with_static_runtimes=yes
8615       ;;
8616
8617     darwin* | rhapsody*)
8618       case $host_os in
8619         rhapsody* | darwin1.[012])
8620          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8621          ;;
8622        *) # Darwin 1.3 on
8623          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8624            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8625          else
8626            case ${MACOSX_DEPLOYMENT_TARGET} in
8627              10.[012])
8628                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8629                ;;
8630              10.*)
8631                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8632                ;;
8633            esac
8634          fi
8635          ;;
8636       esac
8637       archive_cmds_need_lc=no
8638       hardcode_direct=no
8639       hardcode_automatic=yes
8640       hardcode_shlibpath_var=unsupported
8641       whole_archive_flag_spec=''
8642       link_all_deplibs=yes
8643     if test "$GCC" = yes ; then
8644         output_verbose_link_cmd='echo'
8645         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8646       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8647       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8648       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}'
8649       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}'
8650     else
8651       case $cc_basename in
8652         xlc*)
8653          output_verbose_link_cmd='echo'
8654          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8655          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8656           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8657          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}'
8658           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}'
8659           ;;
8660        *)
8661          ld_shlibs=no
8662           ;;
8663       esac
8664     fi
8665       ;;
8666
8667     dgux*)
8668       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8669       hardcode_libdir_flag_spec='-L$libdir'
8670       hardcode_shlibpath_var=no
8671       ;;
8672
8673     freebsd1*)
8674       ld_shlibs=no
8675       ;;
8676
8677     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8678     # support.  Future versions do this automatically, but an explicit c++rt0.o
8679     # does not break anything, and helps significantly (at the cost of a little
8680     # extra space).
8681     freebsd2.2*)
8682       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8683       hardcode_libdir_flag_spec='-R$libdir'
8684       hardcode_direct=yes
8685       hardcode_shlibpath_var=no
8686       ;;
8687
8688     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8689     freebsd2*)
8690       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8691       hardcode_direct=yes
8692       hardcode_minus_L=yes
8693       hardcode_shlibpath_var=no
8694       ;;
8695
8696     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8697     freebsd* | kfreebsd*-gnu | dragonfly*)
8698       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8699       hardcode_libdir_flag_spec='-R$libdir'
8700       hardcode_direct=yes
8701       hardcode_shlibpath_var=no
8702       ;;
8703
8704     hpux9*)
8705       if test "$GCC" = yes; then
8706         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'
8707       else
8708         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'
8709       fi
8710       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8711       hardcode_libdir_separator=:
8712       hardcode_direct=yes
8713
8714       # hardcode_minus_L: Not really in the search PATH,
8715       # but as the default location of the library.
8716       hardcode_minus_L=yes
8717       export_dynamic_flag_spec='${wl}-E'
8718       ;;
8719
8720     hpux10* | hpux11*)
8721       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8722         case $host_cpu in
8723         hppa*64*|ia64*)
8724           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8725           ;;
8726         *)
8727           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8728           ;;
8729         esac
8730       else
8731         case $host_cpu in
8732         hppa*64*|ia64*)
8733           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8734           ;;
8735         *)
8736           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8737           ;;
8738         esac
8739       fi
8740       if test "$with_gnu_ld" = no; then
8741         case $host_cpu in
8742         hppa*64*)
8743           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8744           hardcode_libdir_flag_spec_ld='+b $libdir'
8745           hardcode_libdir_separator=:
8746           hardcode_direct=no
8747           hardcode_shlibpath_var=no
8748           ;;
8749         ia64*)
8750           hardcode_libdir_flag_spec='-L$libdir'
8751           hardcode_direct=no
8752           hardcode_shlibpath_var=no
8753
8754           # hardcode_minus_L: Not really in the search PATH,
8755           # but as the default location of the library.
8756           hardcode_minus_L=yes
8757           ;;
8758         *)
8759           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8760           hardcode_libdir_separator=:
8761           hardcode_direct=yes
8762           export_dynamic_flag_spec='${wl}-E'
8763
8764           # hardcode_minus_L: Not really in the search PATH,
8765           # but as the default location of the library.
8766           hardcode_minus_L=yes
8767           ;;
8768         esac
8769       fi
8770       ;;
8771
8772     irix5* | irix6* | nonstopux*)
8773       if test "$GCC" = yes; then
8774         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'
8775       else
8776         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'
8777         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8778       fi
8779       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780       hardcode_libdir_separator=:
8781       link_all_deplibs=yes
8782       ;;
8783
8784     netbsd*)
8785       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8786         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8787       else
8788         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8789       fi
8790       hardcode_libdir_flag_spec='-R$libdir'
8791       hardcode_direct=yes
8792       hardcode_shlibpath_var=no
8793       ;;
8794
8795     newsos6)
8796       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8797       hardcode_direct=yes
8798       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8799       hardcode_libdir_separator=:
8800       hardcode_shlibpath_var=no
8801       ;;
8802
8803     openbsd*)
8804       hardcode_direct=yes
8805       hardcode_shlibpath_var=no
8806       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8807         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8808         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8809         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8810         export_dynamic_flag_spec='${wl}-E'
8811       else
8812        case $host_os in
8813          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8814            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8815            hardcode_libdir_flag_spec='-R$libdir'
8816            ;;
8817          *)
8818            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8819            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8820            ;;
8821        esac
8822       fi
8823       ;;
8824
8825     os2*)
8826       hardcode_libdir_flag_spec='-L$libdir'
8827       hardcode_minus_L=yes
8828       allow_undefined_flag=unsupported
8829       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'
8830       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8831       ;;
8832
8833     osf3*)
8834       if test "$GCC" = yes; then
8835         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8836         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'
8837       else
8838         allow_undefined_flag=' -expect_unresolved \*'
8839         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'
8840       fi
8841       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8842       hardcode_libdir_separator=:
8843       ;;
8844
8845     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8846       if test "$GCC" = yes; then
8847         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8848         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'
8849         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8850       else
8851         allow_undefined_flag=' -expect_unresolved \*'
8852         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'
8853         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8854         $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'
8855
8856         # Both c and cxx compiler support -rpath directly
8857         hardcode_libdir_flag_spec='-rpath $libdir'
8858       fi
8859       hardcode_libdir_separator=:
8860       ;;
8861
8862     sco3.2v5*)
8863       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8864       hardcode_shlibpath_var=no
8865       export_dynamic_flag_spec='${wl}-Bexport'
8866       runpath_var=LD_RUN_PATH
8867       hardcode_runpath_var=yes
8868       ;;
8869
8870     solaris*)
8871       no_undefined_flag=' -z text'
8872       if test "$GCC" = yes; then
8873         wlarc='${wl}'
8874         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8875         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8876           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8877       else
8878         wlarc=''
8879         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8880         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8881         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8882       fi
8883       hardcode_libdir_flag_spec='-R$libdir'
8884       hardcode_shlibpath_var=no
8885       case $host_os in
8886       solaris2.[0-5] | solaris2.[0-5].*) ;;
8887       *)
8888         # The compiler driver will combine linker options so we
8889         # cannot just pass the convience library names through
8890         # without $wl, iff we do not link with $LD.
8891         # Luckily, gcc supports the same syntax we need for Sun Studio.
8892         # Supported since Solaris 2.6 (maybe 2.5.1?)
8893         case $wlarc in
8894         '')
8895           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8896         *)
8897           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' ;;
8898         esac ;;
8899       esac
8900       link_all_deplibs=yes
8901       ;;
8902
8903     sunos4*)
8904       if test "x$host_vendor" = xsequent; then
8905         # Use $CC to link under sequent, because it throws in some extra .o
8906         # files that make .init and .fini sections work.
8907         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8908       else
8909         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8910       fi
8911       hardcode_libdir_flag_spec='-L$libdir'
8912       hardcode_direct=yes
8913       hardcode_minus_L=yes
8914       hardcode_shlibpath_var=no
8915       ;;
8916
8917     sysv4)
8918       case $host_vendor in
8919         sni)
8920           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921           hardcode_direct=yes # is this really true???
8922         ;;
8923         siemens)
8924           ## LD is ld it makes a PLAMLIB
8925           ## CC just makes a GrossModule.
8926           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8927           reload_cmds='$CC -r -o $output$reload_objs'
8928           hardcode_direct=no
8929         ;;
8930         motorola)
8931           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8932           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8933         ;;
8934       esac
8935       runpath_var='LD_RUN_PATH'
8936       hardcode_shlibpath_var=no
8937       ;;
8938
8939     sysv4.3*)
8940       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941       hardcode_shlibpath_var=no
8942       export_dynamic_flag_spec='-Bexport'
8943       ;;
8944
8945     sysv4*MP*)
8946       if test -d /usr/nec; then
8947         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8948         hardcode_shlibpath_var=no
8949         runpath_var=LD_RUN_PATH
8950         hardcode_runpath_var=yes
8951         ld_shlibs=yes
8952       fi
8953       ;;
8954
8955     sysv4.2uw2*)
8956       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8957       hardcode_direct=yes
8958       hardcode_minus_L=no
8959       hardcode_shlibpath_var=no
8960       hardcode_runpath_var=yes
8961       runpath_var=LD_RUN_PATH
8962       ;;
8963
8964    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8965       no_undefined_flag='${wl}-z ${wl}text'
8966       if test "$GCC" = yes; then
8967         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8968       else
8969         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8970       fi
8971       runpath_var='LD_RUN_PATH'
8972       hardcode_shlibpath_var=no
8973       ;;
8974
8975     sysv5*)
8976       no_undefined_flag=' -z text'
8977       # $CC -shared without GNU ld will not create a library from C++
8978       # object files and a static libstdc++, better avoid it by now
8979       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8980       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8981                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8982       hardcode_libdir_flag_spec=
8983       hardcode_shlibpath_var=no
8984       runpath_var='LD_RUN_PATH'
8985       ;;
8986
8987     uts4*)
8988       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8989       hardcode_libdir_flag_spec='-L$libdir'
8990       hardcode_shlibpath_var=no
8991       ;;
8992
8993     *)
8994       ld_shlibs=no
8995       ;;
8996     esac
8997   fi
8998
8999 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9000 echo "${ECHO_T}$ld_shlibs" >&6
9001 test "$ld_shlibs" = no && can_build_shared=no
9002
9003 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9004 if test "$GCC" = yes; then
9005   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9006 fi
9007
9008 #
9009 # Do we need to explicitly link libc?
9010 #
9011 case "x$archive_cmds_need_lc" in
9012 x|xyes)
9013   # Assume -lc should be added
9014   archive_cmds_need_lc=yes
9015
9016   if test "$enable_shared" = yes && test "$GCC" = yes; then
9017     case $archive_cmds in
9018     *'~'*)
9019       # FIXME: we may have to deal with multi-command sequences.
9020       ;;
9021     '$CC '*)
9022       # Test whether the compiler implicitly links with -lc since on some
9023       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9024       # to ld, don't add -lc before -lgcc.
9025       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9026 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9027       $rm conftest*
9028       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9029
9030       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9031   (eval $ac_compile) 2>&5
9032   ac_status=$?
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); } 2>conftest.err; then
9035         soname=conftest
9036         lib=conftest
9037         libobjs=conftest.$ac_objext
9038         deplibs=
9039         wl=$lt_prog_compiler_wl
9040         compiler_flags=-v
9041         linker_flags=-v
9042         verstring=
9043         output_objdir=.
9044         libname=conftest
9045         lt_save_allow_undefined_flag=$allow_undefined_flag
9046         allow_undefined_flag=
9047         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9048   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9049   ac_status=$?
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); }
9052         then
9053           archive_cmds_need_lc=no
9054         else
9055           archive_cmds_need_lc=yes
9056         fi
9057         allow_undefined_flag=$lt_save_allow_undefined_flag
9058       else
9059         cat conftest.err 1>&5
9060       fi
9061       $rm conftest*
9062       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9063 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9064       ;;
9065     esac
9066   fi
9067   ;;
9068 esac
9069
9070 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9071 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9072 library_names_spec=
9073 libname_spec='lib$name'
9074 soname_spec=
9075 shrext_cmds=".so"
9076 postinstall_cmds=
9077 postuninstall_cmds=
9078 finish_cmds=
9079 finish_eval=
9080 shlibpath_var=
9081 shlibpath_overrides_runpath=unknown
9082 version_type=none
9083 dynamic_linker="$host_os ld.so"
9084 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9085 if test "$GCC" = yes; then
9086   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9087   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9088     # if the path contains ";" then we assume it to be the separator
9089     # otherwise default to the standard path separator (i.e. ":") - it is
9090     # assumed that no part of a normal pathname contains ";" but that should
9091     # okay in the real world where ";" in dirpaths is itself problematic.
9092     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9093   else
9094     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9095   fi
9096 else
9097   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9098 fi
9099 need_lib_prefix=unknown
9100 hardcode_into_libs=no
9101
9102 # when you set need_version to no, make sure it does not cause -set_version
9103 # flags to be left without arguments
9104 need_version=unknown
9105
9106 case $host_os in
9107 aix3*)
9108   version_type=linux
9109   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9110   shlibpath_var=LIBPATH
9111
9112   # AIX 3 has no versioning support, so we append a major version to the name.
9113   soname_spec='${libname}${release}${shared_ext}$major'
9114   ;;
9115
9116 aix4* | aix5*)
9117   version_type=linux
9118   need_lib_prefix=no
9119   need_version=no
9120   hardcode_into_libs=yes
9121   if test "$host_cpu" = ia64; then
9122     # AIX 5 supports IA64
9123     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9124     shlibpath_var=LD_LIBRARY_PATH
9125   else
9126     # With GCC up to 2.95.x, collect2 would create an import file
9127     # for dependence libraries.  The import file would start with
9128     # the line `#! .'.  This would cause the generated library to
9129     # depend on `.', always an invalid library.  This was fixed in
9130     # development snapshots of GCC prior to 3.0.
9131     case $host_os in
9132       aix4 | aix4.[01] | aix4.[01].*)
9133       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9134            echo ' yes '
9135            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9136         :
9137       else
9138         can_build_shared=no
9139       fi
9140       ;;
9141     esac
9142     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9143     # soname into executable. Probably we can add versioning support to
9144     # collect2, so additional links can be useful in future.
9145     if test "$aix_use_runtimelinking" = yes; then
9146       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9147       # instead of lib<name>.a to let people know that these are not
9148       # typical AIX shared libraries.
9149       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150     else
9151       # We preserve .a as extension for shared libraries through AIX4.2
9152       # and later when we are not doing run time linking.
9153       library_names_spec='${libname}${release}.a $libname.a'
9154       soname_spec='${libname}${release}${shared_ext}$major'
9155     fi
9156     shlibpath_var=LIBPATH
9157   fi
9158   ;;
9159
9160 amigaos*)
9161   library_names_spec='$libname.ixlibrary $libname.a'
9162   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9163   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'
9164   ;;
9165
9166 beos*)
9167   library_names_spec='${libname}${shared_ext}'
9168   dynamic_linker="$host_os ld.so"
9169   shlibpath_var=LIBRARY_PATH
9170   ;;
9171
9172 bsdi[45]*)
9173   version_type=linux
9174   need_version=no
9175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9176   soname_spec='${libname}${release}${shared_ext}$major'
9177   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9178   shlibpath_var=LD_LIBRARY_PATH
9179   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9180   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9181   # the default ld.so.conf also contains /usr/contrib/lib and
9182   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9183   # libtool to hard-code these into programs
9184   ;;
9185
9186 cygwin* | mingw* | pw32*)
9187   version_type=windows
9188   shrext_cmds=".dll"
9189   need_version=no
9190   need_lib_prefix=no
9191
9192   case $GCC,$host_os in
9193   yes,cygwin* | yes,mingw* | yes,pw32*)
9194     library_names_spec='$libname.dll.a'
9195     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9196     postinstall_cmds='base_file=`basename \${file}`~
9197       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9198       dldir=$destdir/`dirname \$dlpath`~
9199       test -d \$dldir || mkdir -p \$dldir~
9200       $install_prog $dir/$dlname \$dldir/$dlname~
9201       chmod a+x \$dldir/$dlname'
9202     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9203       dlpath=$dir/\$dldll~
9204        $rm \$dlpath'
9205     shlibpath_overrides_runpath=yes
9206
9207     case $host_os in
9208     cygwin*)
9209       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9210       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9211       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9212       ;;
9213     mingw*)
9214       # MinGW DLLs use traditional 'lib' prefix
9215       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9216       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9217       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9218         # It is most probably a Windows format PATH printed by
9219         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9220         # path with ; separators, and with drive letters. We can handle the
9221         # drive letters (cygwin fileutils understands them), so leave them,
9222         # especially as we might pass files found there to a mingw objdump,
9223         # which wouldn't understand a cygwinified path. Ahh.
9224         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9225       else
9226         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9227       fi
9228       ;;
9229     pw32*)
9230       # pw32 DLLs use 'pw' prefix rather than 'lib'
9231       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9232       ;;
9233     esac
9234     ;;
9235
9236   *)
9237     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9238     ;;
9239   esac
9240   dynamic_linker='Win32 ld.exe'
9241   # FIXME: first we should search . and the directory the executable is in
9242   shlibpath_var=PATH
9243   ;;
9244
9245 darwin* | rhapsody*)
9246   dynamic_linker="$host_os dyld"
9247   version_type=darwin
9248   need_lib_prefix=no
9249   need_version=no
9250   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9251   soname_spec='${libname}${release}${major}$shared_ext'
9252   shlibpath_overrides_runpath=yes
9253   shlibpath_var=DYLD_LIBRARY_PATH
9254   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9255   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9256   if test "$GCC" = yes; then
9257     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"`
9258   else
9259     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9260   fi
9261   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9262   ;;
9263
9264 dgux*)
9265   version_type=linux
9266   need_lib_prefix=no
9267   need_version=no
9268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9269   soname_spec='${libname}${release}${shared_ext}$major'
9270   shlibpath_var=LD_LIBRARY_PATH
9271   ;;
9272
9273 freebsd1*)
9274   dynamic_linker=no
9275   ;;
9276
9277 kfreebsd*-gnu)
9278   version_type=linux
9279   need_lib_prefix=no
9280   need_version=no
9281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9282   soname_spec='${libname}${release}${shared_ext}$major'
9283   shlibpath_var=LD_LIBRARY_PATH
9284   shlibpath_overrides_runpath=no
9285   hardcode_into_libs=yes
9286   dynamic_linker='GNU ld.so'
9287   ;;
9288
9289 freebsd* | dragonfly*)
9290   # DragonFly does not have aout.  When/if they implement a new
9291   # versioning mechanism, adjust this.
9292   if test -x /usr/bin/objformat; then
9293     objformat=`/usr/bin/objformat`
9294   else
9295     case $host_os in
9296     freebsd[123]*) objformat=aout ;;
9297     *) objformat=elf ;;
9298     esac
9299   fi
9300   version_type=freebsd-$objformat
9301   case $version_type in
9302     freebsd-elf*)
9303       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9304       need_version=no
9305       need_lib_prefix=no
9306       ;;
9307     freebsd-*)
9308       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9309       need_version=yes
9310       ;;
9311   esac
9312   shlibpath_var=LD_LIBRARY_PATH
9313   case $host_os in
9314   freebsd2*)
9315     shlibpath_overrides_runpath=yes
9316     ;;
9317   freebsd3.[01]* | freebsdelf3.[01]*)
9318     shlibpath_overrides_runpath=yes
9319     hardcode_into_libs=yes
9320     ;;
9321   *) # from 3.2 on
9322     shlibpath_overrides_runpath=no
9323     hardcode_into_libs=yes
9324     ;;
9325   esac
9326   ;;
9327
9328 gnu*)
9329   version_type=linux
9330   need_lib_prefix=no
9331   need_version=no
9332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9333   soname_spec='${libname}${release}${shared_ext}$major'
9334   shlibpath_var=LD_LIBRARY_PATH
9335   hardcode_into_libs=yes
9336   ;;
9337
9338 hpux9* | hpux10* | hpux11*)
9339   # Give a soname corresponding to the major version so that dld.sl refuses to
9340   # link against other versions.
9341   version_type=sunos
9342   need_lib_prefix=no
9343   need_version=no
9344   case $host_cpu in
9345   ia64*)
9346     shrext_cmds='.so'
9347     hardcode_into_libs=yes
9348     dynamic_linker="$host_os dld.so"
9349     shlibpath_var=LD_LIBRARY_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     if test "X$HPUX_IA64_MODE" = X32; then
9354       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9355     else
9356       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9357     fi
9358     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9359     ;;
9360    hppa*64*)
9361      shrext_cmds='.sl'
9362      hardcode_into_libs=yes
9363      dynamic_linker="$host_os dld.sl"
9364      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9365      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9366      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367      soname_spec='${libname}${release}${shared_ext}$major'
9368      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9369      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9370      ;;
9371    *)
9372     shrext_cmds='.sl'
9373     dynamic_linker="$host_os dld.sl"
9374     shlibpath_var=SHLIB_PATH
9375     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9376     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377     soname_spec='${libname}${release}${shared_ext}$major'
9378     ;;
9379   esac
9380   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9381   postinstall_cmds='chmod 555 $lib'
9382   ;;
9383
9384 irix5* | irix6* | nonstopux*)
9385   case $host_os in
9386     nonstopux*) version_type=nonstopux ;;
9387     *)
9388         if test "$lt_cv_prog_gnu_ld" = yes; then
9389                 version_type=linux
9390         else
9391                 version_type=irix
9392         fi ;;
9393   esac
9394   need_lib_prefix=no
9395   need_version=no
9396   soname_spec='${libname}${release}${shared_ext}$major'
9397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9398   case $host_os in
9399   irix5* | nonstopux*)
9400     libsuff= shlibsuff=
9401     ;;
9402   *)
9403     case $LD in # libtool.m4 will add one of these switches to LD
9404     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9405       libsuff= shlibsuff= libmagic=32-bit;;
9406     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9407       libsuff=32 shlibsuff=N32 libmagic=N32;;
9408     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9409       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9410     *) libsuff= shlibsuff= libmagic=never-match;;
9411     esac
9412     ;;
9413   esac
9414   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9415   shlibpath_overrides_runpath=no
9416   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9417   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9418   hardcode_into_libs=yes
9419   ;;
9420
9421 # No shared lib support for Linux oldld, aout, or coff.
9422 linux*oldld* | linux*aout* | linux*coff*)
9423   dynamic_linker=no
9424   ;;
9425
9426 # This must be Linux ELF.
9427 linux*)
9428   version_type=linux
9429   need_lib_prefix=no
9430   need_version=no
9431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432   soname_spec='${libname}${release}${shared_ext}$major'
9433   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9434   shlibpath_var=LD_LIBRARY_PATH
9435   shlibpath_overrides_runpath=no
9436   # This implies no fast_install, which is unacceptable.
9437   # Some rework will be needed to allow for fast_install
9438   # before this can be enabled.
9439   hardcode_into_libs=yes
9440
9441   # Append ld.so.conf contents to the search path
9442   if test -f /etc/ld.so.conf; then
9443     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' ' '`
9444     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9445   fi
9446
9447   # We used to test for /lib/ld.so.1 and disable shared libraries on
9448   # powerpc, because MkLinux only supported shared libraries with the
9449   # GNU dynamic linker.  Since this was broken with cross compilers,
9450   # most powerpc-linux boxes support dynamic linking these days and
9451   # people can always --disable-shared, the test was removed, and we
9452   # assume the GNU/Linux dynamic linker is in use.
9453   dynamic_linker='GNU/Linux ld.so'
9454   ;;
9455
9456 knetbsd*-gnu)
9457   version_type=linux
9458   need_lib_prefix=no
9459   need_version=no
9460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9461   soname_spec='${libname}${release}${shared_ext}$major'
9462   shlibpath_var=LD_LIBRARY_PATH
9463   shlibpath_overrides_runpath=no
9464   hardcode_into_libs=yes
9465   dynamic_linker='GNU ld.so'
9466   ;;
9467
9468 netbsd*)
9469   version_type=sunos
9470   need_lib_prefix=no
9471   need_version=no
9472   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9474     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9475     dynamic_linker='NetBSD (a.out) ld.so'
9476   else
9477     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9478     soname_spec='${libname}${release}${shared_ext}$major'
9479     dynamic_linker='NetBSD ld.elf_so'
9480   fi
9481   shlibpath_var=LD_LIBRARY_PATH
9482   shlibpath_overrides_runpath=yes
9483   hardcode_into_libs=yes
9484   ;;
9485
9486 newsos6)
9487   version_type=linux
9488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9489   shlibpath_var=LD_LIBRARY_PATH
9490   shlibpath_overrides_runpath=yes
9491   ;;
9492
9493 nto-qnx*)
9494   version_type=linux
9495   need_lib_prefix=no
9496   need_version=no
9497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498   soname_spec='${libname}${release}${shared_ext}$major'
9499   shlibpath_var=LD_LIBRARY_PATH
9500   shlibpath_overrides_runpath=yes
9501   ;;
9502
9503 openbsd*)
9504   version_type=sunos
9505   need_lib_prefix=no
9506   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9507   case $host_os in
9508     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9509     *)                         need_version=no  ;;
9510   esac
9511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9512   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9513   shlibpath_var=LD_LIBRARY_PATH
9514   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9515     case $host_os in
9516       openbsd2.[89] | openbsd2.[89].*)
9517         shlibpath_overrides_runpath=no
9518         ;;
9519       *)
9520         shlibpath_overrides_runpath=yes
9521         ;;
9522       esac
9523   else
9524     shlibpath_overrides_runpath=yes
9525   fi
9526   ;;
9527
9528 os2*)
9529   libname_spec='$name'
9530   shrext_cmds=".dll"
9531   need_lib_prefix=no
9532   library_names_spec='$libname${shared_ext} $libname.a'
9533   dynamic_linker='OS/2 ld.exe'
9534   shlibpath_var=LIBPATH
9535   ;;
9536
9537 osf3* | osf4* | osf5*)
9538   version_type=osf
9539   need_lib_prefix=no
9540   need_version=no
9541   soname_spec='${libname}${release}${shared_ext}$major'
9542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543   shlibpath_var=LD_LIBRARY_PATH
9544   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9545   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9546   ;;
9547
9548 sco3.2v5*)
9549   version_type=osf
9550   soname_spec='${libname}${release}${shared_ext}$major'
9551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552   shlibpath_var=LD_LIBRARY_PATH
9553   ;;
9554
9555 solaris*)
9556   version_type=linux
9557   need_lib_prefix=no
9558   need_version=no
9559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560   soname_spec='${libname}${release}${shared_ext}$major'
9561   shlibpath_var=LD_LIBRARY_PATH
9562   shlibpath_overrides_runpath=yes
9563   hardcode_into_libs=yes
9564   # ldd complains unless libraries are executable
9565   postinstall_cmds='chmod +x $lib'
9566   ;;
9567
9568 sunos4*)
9569   version_type=sunos
9570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9571   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9572   shlibpath_var=LD_LIBRARY_PATH
9573   shlibpath_overrides_runpath=yes
9574   if test "$with_gnu_ld" = yes; then
9575     need_lib_prefix=no
9576   fi
9577   need_version=yes
9578   ;;
9579
9580 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9581   version_type=linux
9582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583   soname_spec='${libname}${release}${shared_ext}$major'
9584   shlibpath_var=LD_LIBRARY_PATH
9585   case $host_vendor in
9586     sni)
9587       shlibpath_overrides_runpath=no
9588       need_lib_prefix=no
9589       export_dynamic_flag_spec='${wl}-Blargedynsym'
9590       runpath_var=LD_RUN_PATH
9591       ;;
9592     siemens)
9593       need_lib_prefix=no
9594       ;;
9595     motorola)
9596       need_lib_prefix=no
9597       need_version=no
9598       shlibpath_overrides_runpath=no
9599       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9600       ;;
9601   esac
9602   ;;
9603
9604 sysv4*MP*)
9605   if test -d /usr/nec ;then
9606     version_type=linux
9607     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9608     soname_spec='$libname${shared_ext}.$major'
9609     shlibpath_var=LD_LIBRARY_PATH
9610   fi
9611   ;;
9612
9613 uts4*)
9614   version_type=linux
9615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9616   soname_spec='${libname}${release}${shared_ext}$major'
9617   shlibpath_var=LD_LIBRARY_PATH
9618   ;;
9619
9620 *)
9621   dynamic_linker=no
9622   ;;
9623 esac
9624 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9625 echo "${ECHO_T}$dynamic_linker" >&6
9626 test "$dynamic_linker" = no && can_build_shared=no
9627
9628 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9629 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9630 hardcode_action=
9631 if test -n "$hardcode_libdir_flag_spec" || \
9632    test -n "$runpath_var" || \
9633    test "X$hardcode_automatic" = "Xyes" ; then
9634
9635   # We can hardcode non-existant directories.
9636   if test "$hardcode_direct" != no &&
9637      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9638      # have to relink, otherwise we might link with an installed library
9639      # when we should be linking with a yet-to-be-installed one
9640      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9641      test "$hardcode_minus_L" != no; then
9642     # Linking always hardcodes the temporary library directory.
9643     hardcode_action=relink
9644   else
9645     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9646     hardcode_action=immediate
9647   fi
9648 else
9649   # We cannot hardcode anything, or else we can only hardcode existing
9650   # directories.
9651   hardcode_action=unsupported
9652 fi
9653 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9654 echo "${ECHO_T}$hardcode_action" >&6
9655
9656 if test "$hardcode_action" = relink; then
9657   # Fast installation is not supported
9658   enable_fast_install=no
9659 elif test "$shlibpath_overrides_runpath" = yes ||
9660      test "$enable_shared" = no; then
9661   # Fast installation is not necessary
9662   enable_fast_install=needless
9663 fi
9664
9665 striplib=
9666 old_striplib=
9667 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9668 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9669 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9670   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9671   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9672   echo "$as_me:$LINENO: result: yes" >&5
9673 echo "${ECHO_T}yes" >&6
9674 else
9675 # FIXME - insert some real tests, host_os isn't really good enough
9676   case $host_os in
9677    darwin*)
9678        if test -n "$STRIP" ; then
9679          striplib="$STRIP -x"
9680          echo "$as_me:$LINENO: result: yes" >&5
9681 echo "${ECHO_T}yes" >&6
9682        else
9683   echo "$as_me:$LINENO: result: no" >&5
9684 echo "${ECHO_T}no" >&6
9685 fi
9686        ;;
9687    *)
9688   echo "$as_me:$LINENO: result: no" >&5
9689 echo "${ECHO_T}no" >&6
9690     ;;
9691   esac
9692 fi
9693
9694 if test "x$enable_dlopen" != xyes; then
9695   enable_dlopen=unknown
9696   enable_dlopen_self=unknown
9697   enable_dlopen_self_static=unknown
9698 else
9699   lt_cv_dlopen=no
9700   lt_cv_dlopen_libs=
9701
9702   case $host_os in
9703   beos*)
9704     lt_cv_dlopen="load_add_on"
9705     lt_cv_dlopen_libs=
9706     lt_cv_dlopen_self=yes
9707     ;;
9708
9709   mingw* | pw32*)
9710     lt_cv_dlopen="LoadLibrary"
9711     lt_cv_dlopen_libs=
9712    ;;
9713
9714   cygwin*)
9715     lt_cv_dlopen="dlopen"
9716     lt_cv_dlopen_libs=
9717    ;;
9718
9719   darwin*)
9720   # if libdl is installed we need to link against it
9721     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9722 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9723 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9724   echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726   ac_check_lib_save_LIBS=$LIBS
9727 LIBS="-ldl  $LIBS"
9728 cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h.  */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h.  */
9734
9735 /* Override any gcc2 internal prototype to avoid an error.  */
9736 #ifdef __cplusplus
9737 extern "C"
9738 #endif
9739 /* We use char because int might match the return type of a gcc2
9740    builtin and then its argument prototype would still apply.  */
9741 char dlopen ();
9742 int
9743 main ()
9744 {
9745 dlopen ();
9746   ;
9747   return 0;
9748 }
9749 _ACEOF
9750 rm -f conftest.$ac_objext conftest$ac_exeext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9752   (eval $ac_link) 2>conftest.er1
9753   ac_status=$?
9754   grep -v '^ *+' conftest.er1 >conftest.err
9755   rm -f conftest.er1
9756   cat conftest.err >&5
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); } &&
9759          { ac_try='test -z "$ac_c_werror_flag"
9760                          || test ! -s conftest.err'
9761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762   (eval $ac_try) 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); }; } &&
9766          { ac_try='test -s conftest$ac_exeext'
9767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768   (eval $ac_try) 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); }; }; then
9772   ac_cv_lib_dl_dlopen=yes
9773 else
9774   echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777 ac_cv_lib_dl_dlopen=no
9778 fi
9779 rm -f conftest.err conftest.$ac_objext \
9780       conftest$ac_exeext conftest.$ac_ext
9781 LIBS=$ac_check_lib_save_LIBS
9782 fi
9783 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9784 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9785 if test $ac_cv_lib_dl_dlopen = yes; then
9786   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9787 else
9788
9789     lt_cv_dlopen="dyld"
9790     lt_cv_dlopen_libs=
9791     lt_cv_dlopen_self=yes
9792
9793 fi
9794
9795    ;;
9796
9797   *)
9798     echo "$as_me:$LINENO: checking for shl_load" >&5
9799 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9800 if test "${ac_cv_func_shl_load+set}" = set; then
9801   echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803   cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h.  */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h.  */
9809 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9811 #define shl_load innocuous_shl_load
9812
9813 /* System header to define __stub macros and hopefully few prototypes,
9814     which can conflict with char shl_load (); below.
9815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9816     <limits.h> exists even on freestanding compilers.  */
9817
9818 #ifdef __STDC__
9819 # include <limits.h>
9820 #else
9821 # include <assert.h>
9822 #endif
9823
9824 #undef shl_load
9825
9826 /* Override any gcc2 internal prototype to avoid an error.  */
9827 #ifdef __cplusplus
9828 extern "C"
9829 {
9830 #endif
9831 /* We use char because int might match the return type of a gcc2
9832    builtin and then its argument prototype would still apply.  */
9833 char shl_load ();
9834 /* The GNU C library defines this for functions which it implements
9835     to always fail with ENOSYS.  Some functions are actually named
9836     something starting with __ and the normal name is an alias.  */
9837 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9838 choke me
9839 #else
9840 char (*f) () = shl_load;
9841 #endif
9842 #ifdef __cplusplus
9843 }
9844 #endif
9845
9846 int
9847 main ()
9848 {
9849 return f != shl_load;
9850   ;
9851   return 0;
9852 }
9853 _ACEOF
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9856   (eval $ac_link) 2>conftest.er1
9857   ac_status=$?
9858   grep -v '^ *+' conftest.er1 >conftest.err
9859   rm -f conftest.er1
9860   cat conftest.err >&5
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); } &&
9863          { ac_try='test -z "$ac_c_werror_flag"
9864                          || test ! -s conftest.err'
9865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866   (eval $ac_try) 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; } &&
9870          { ac_try='test -s conftest$ac_exeext'
9871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872   (eval $ac_try) 2>&5
9873   ac_status=$?
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); }; }; then
9876   ac_cv_func_shl_load=yes
9877 else
9878   echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881 ac_cv_func_shl_load=no
9882 fi
9883 rm -f conftest.err conftest.$ac_objext \
9884       conftest$ac_exeext conftest.$ac_ext
9885 fi
9886 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9887 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9888 if test $ac_cv_func_shl_load = yes; then
9889   lt_cv_dlopen="shl_load"
9890 else
9891   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9892 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9893 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9894   echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896   ac_check_lib_save_LIBS=$LIBS
9897 LIBS="-ldld  $LIBS"
9898 cat >conftest.$ac_ext <<_ACEOF
9899 /* confdefs.h.  */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h.  */
9904
9905 /* Override any gcc2 internal prototype to avoid an error.  */
9906 #ifdef __cplusplus
9907 extern "C"
9908 #endif
9909 /* We use char because int might match the return type of a gcc2
9910    builtin and then its argument prototype would still apply.  */
9911 char shl_load ();
9912 int
9913 main ()
9914 {
9915 shl_load ();
9916   ;
9917   return 0;
9918 }
9919 _ACEOF
9920 rm -f conftest.$ac_objext conftest$ac_exeext
9921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9922   (eval $ac_link) 2>conftest.er1
9923   ac_status=$?
9924   grep -v '^ *+' conftest.er1 >conftest.err
9925   rm -f conftest.er1
9926   cat conftest.err >&5
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); } &&
9929          { ac_try='test -z "$ac_c_werror_flag"
9930                          || test ! -s conftest.err'
9931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932   (eval $ac_try) 2>&5
9933   ac_status=$?
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); }; } &&
9936          { ac_try='test -s conftest$ac_exeext'
9937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938   (eval $ac_try) 2>&5
9939   ac_status=$?
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); }; }; then
9942   ac_cv_lib_dld_shl_load=yes
9943 else
9944   echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9946
9947 ac_cv_lib_dld_shl_load=no
9948 fi
9949 rm -f conftest.err conftest.$ac_objext \
9950       conftest$ac_exeext conftest.$ac_ext
9951 LIBS=$ac_check_lib_save_LIBS
9952 fi
9953 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9954 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9955 if test $ac_cv_lib_dld_shl_load = yes; then
9956   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9957 else
9958   echo "$as_me:$LINENO: checking for dlopen" >&5
9959 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9960 if test "${ac_cv_func_dlopen+set}" = set; then
9961   echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963   cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h.  */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h.  */
9969 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9971 #define dlopen innocuous_dlopen
9972
9973 /* System header to define __stub macros and hopefully few prototypes,
9974     which can conflict with char dlopen (); below.
9975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9976     <limits.h> exists even on freestanding compilers.  */
9977
9978 #ifdef __STDC__
9979 # include <limits.h>
9980 #else
9981 # include <assert.h>
9982 #endif
9983
9984 #undef dlopen
9985
9986 /* Override any gcc2 internal prototype to avoid an error.  */
9987 #ifdef __cplusplus
9988 extern "C"
9989 {
9990 #endif
9991 /* We use char because int might match the return type of a gcc2
9992    builtin and then its argument prototype would still apply.  */
9993 char dlopen ();
9994 /* The GNU C library defines this for functions which it implements
9995     to always fail with ENOSYS.  Some functions are actually named
9996     something starting with __ and the normal name is an alias.  */
9997 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9998 choke me
9999 #else
10000 char (*f) () = dlopen;
10001 #endif
10002 #ifdef __cplusplus
10003 }
10004 #endif
10005
10006 int
10007 main ()
10008 {
10009 return f != dlopen;
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016   (eval $ac_link) 2>conftest.er1
10017   ac_status=$?
10018   grep -v '^ *+' conftest.er1 >conftest.err
10019   rm -f conftest.er1
10020   cat conftest.err >&5
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); } &&
10023          { ac_try='test -z "$ac_c_werror_flag"
10024                          || test ! -s conftest.err'
10025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026   (eval $ac_try) 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); }; } &&
10030          { ac_try='test -s conftest$ac_exeext'
10031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032   (eval $ac_try) 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; }; then
10036   ac_cv_func_dlopen=yes
10037 else
10038   echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10040
10041 ac_cv_func_dlopen=no
10042 fi
10043 rm -f conftest.err conftest.$ac_objext \
10044       conftest$ac_exeext conftest.$ac_ext
10045 fi
10046 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10047 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10048 if test $ac_cv_func_dlopen = yes; then
10049   lt_cv_dlopen="dlopen"
10050 else
10051   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10052 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10053 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10054   echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056   ac_check_lib_save_LIBS=$LIBS
10057 LIBS="-ldl  $LIBS"
10058 cat >conftest.$ac_ext <<_ACEOF
10059 /* confdefs.h.  */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h.  */
10064
10065 /* Override any gcc2 internal prototype to avoid an error.  */
10066 #ifdef __cplusplus
10067 extern "C"
10068 #endif
10069 /* We use char because int might match the return type of a gcc2
10070    builtin and then its argument prototype would still apply.  */
10071 char dlopen ();
10072 int
10073 main ()
10074 {
10075 dlopen ();
10076   ;
10077   return 0;
10078 }
10079 _ACEOF
10080 rm -f conftest.$ac_objext conftest$ac_exeext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10082   (eval $ac_link) 2>conftest.er1
10083   ac_status=$?
10084   grep -v '^ *+' conftest.er1 >conftest.err
10085   rm -f conftest.er1
10086   cat conftest.err >&5
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); } &&
10089          { ac_try='test -z "$ac_c_werror_flag"
10090                          || test ! -s conftest.err'
10091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092   (eval $ac_try) 2>&5
10093   ac_status=$?
10094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095   (exit $ac_status); }; } &&
10096          { ac_try='test -s conftest$ac_exeext'
10097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098   (eval $ac_try) 2>&5
10099   ac_status=$?
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); }; }; then
10102   ac_cv_lib_dl_dlopen=yes
10103 else
10104   echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10106
10107 ac_cv_lib_dl_dlopen=no
10108 fi
10109 rm -f conftest.err conftest.$ac_objext \
10110       conftest$ac_exeext conftest.$ac_ext
10111 LIBS=$ac_check_lib_save_LIBS
10112 fi
10113 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10114 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10115 if test $ac_cv_lib_dl_dlopen = yes; then
10116   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10117 else
10118   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10119 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10120 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10121   echo $ECHO_N "(cached) $ECHO_C" >&6
10122 else
10123   ac_check_lib_save_LIBS=$LIBS
10124 LIBS="-lsvld  $LIBS"
10125 cat >conftest.$ac_ext <<_ACEOF
10126 /* confdefs.h.  */
10127 _ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h.  */
10131
10132 /* Override any gcc2 internal prototype to avoid an error.  */
10133 #ifdef __cplusplus
10134 extern "C"
10135 #endif
10136 /* We use char because int might match the return type of a gcc2
10137    builtin and then its argument prototype would still apply.  */
10138 char dlopen ();
10139 int
10140 main ()
10141 {
10142 dlopen ();
10143   ;
10144   return 0;
10145 }
10146 _ACEOF
10147 rm -f conftest.$ac_objext conftest$ac_exeext
10148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10149   (eval $ac_link) 2>conftest.er1
10150   ac_status=$?
10151   grep -v '^ *+' conftest.er1 >conftest.err
10152   rm -f conftest.er1
10153   cat conftest.err >&5
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } &&
10156          { ac_try='test -z "$ac_c_werror_flag"
10157                          || test ! -s conftest.err'
10158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159   (eval $ac_try) 2>&5
10160   ac_status=$?
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); }; } &&
10163          { ac_try='test -s conftest$ac_exeext'
10164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165   (eval $ac_try) 2>&5
10166   ac_status=$?
10167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168   (exit $ac_status); }; }; then
10169   ac_cv_lib_svld_dlopen=yes
10170 else
10171   echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10173
10174 ac_cv_lib_svld_dlopen=no
10175 fi
10176 rm -f conftest.err conftest.$ac_objext \
10177       conftest$ac_exeext conftest.$ac_ext
10178 LIBS=$ac_check_lib_save_LIBS
10179 fi
10180 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10181 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10182 if test $ac_cv_lib_svld_dlopen = yes; then
10183   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10184 else
10185   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10186 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10187 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10188   echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190   ac_check_lib_save_LIBS=$LIBS
10191 LIBS="-ldld  $LIBS"
10192 cat >conftest.$ac_ext <<_ACEOF
10193 /* confdefs.h.  */
10194 _ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h.  */
10198
10199 /* Override any gcc2 internal prototype to avoid an error.  */
10200 #ifdef __cplusplus
10201 extern "C"
10202 #endif
10203 /* We use char because int might match the return type of a gcc2
10204    builtin and then its argument prototype would still apply.  */
10205 char dld_link ();
10206 int
10207 main ()
10208 {
10209 dld_link ();
10210   ;
10211   return 0;
10212 }
10213 _ACEOF
10214 rm -f conftest.$ac_objext conftest$ac_exeext
10215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10216   (eval $ac_link) 2>conftest.er1
10217   ac_status=$?
10218   grep -v '^ *+' conftest.er1 >conftest.err
10219   rm -f conftest.er1
10220   cat conftest.err >&5
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); } &&
10223          { ac_try='test -z "$ac_c_werror_flag"
10224                          || test ! -s conftest.err'
10225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226   (eval $ac_try) 2>&5
10227   ac_status=$?
10228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229   (exit $ac_status); }; } &&
10230          { ac_try='test -s conftest$ac_exeext'
10231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232   (eval $ac_try) 2>&5
10233   ac_status=$?
10234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); }; }; then
10236   ac_cv_lib_dld_dld_link=yes
10237 else
10238   echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10240
10241 ac_cv_lib_dld_dld_link=no
10242 fi
10243 rm -f conftest.err conftest.$ac_objext \
10244       conftest$ac_exeext conftest.$ac_ext
10245 LIBS=$ac_check_lib_save_LIBS
10246 fi
10247 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10248 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10249 if test $ac_cv_lib_dld_dld_link = yes; then
10250   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10251 fi
10252
10253
10254 fi
10255
10256
10257 fi
10258
10259
10260 fi
10261
10262
10263 fi
10264
10265
10266 fi
10267
10268     ;;
10269   esac
10270
10271   if test "x$lt_cv_dlopen" != xno; then
10272     enable_dlopen=yes
10273   else
10274     enable_dlopen=no
10275   fi
10276
10277   case $lt_cv_dlopen in
10278   dlopen)
10279     save_CPPFLAGS="$CPPFLAGS"
10280     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10281
10282     save_LDFLAGS="$LDFLAGS"
10283     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10284
10285     save_LIBS="$LIBS"
10286     LIBS="$lt_cv_dlopen_libs $LIBS"
10287
10288     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10289 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10290 if test "${lt_cv_dlopen_self+set}" = set; then
10291   echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293           if test "$cross_compiling" = yes; then :
10294   lt_cv_dlopen_self=cross
10295 else
10296   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10297   lt_status=$lt_dlunknown
10298   cat > conftest.$ac_ext <<EOF
10299 #line 10299 "configure"
10300 #include "confdefs.h"
10301
10302 #if HAVE_DLFCN_H
10303 #include <dlfcn.h>
10304 #endif
10305
10306 #include <stdio.h>
10307
10308 #ifdef RTLD_GLOBAL
10309 #  define LT_DLGLOBAL           RTLD_GLOBAL
10310 #else
10311 #  ifdef DL_GLOBAL
10312 #    define LT_DLGLOBAL         DL_GLOBAL
10313 #  else
10314 #    define LT_DLGLOBAL         0
10315 #  endif
10316 #endif
10317
10318 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10319    find out it does not work in some platform. */
10320 #ifndef LT_DLLAZY_OR_NOW
10321 #  ifdef RTLD_LAZY
10322 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10323 #  else
10324 #    ifdef DL_LAZY
10325 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10326 #    else
10327 #      ifdef RTLD_NOW
10328 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10329 #      else
10330 #        ifdef DL_NOW
10331 #          define LT_DLLAZY_OR_NOW      DL_NOW
10332 #        else
10333 #          define LT_DLLAZY_OR_NOW      0
10334 #        endif
10335 #      endif
10336 #    endif
10337 #  endif
10338 #endif
10339
10340 #ifdef __cplusplus
10341 extern "C" void exit (int);
10342 #endif
10343
10344 void fnord() { int i=42;}
10345 int main ()
10346 {
10347   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10348   int status = $lt_dlunknown;
10349
10350   if (self)
10351     {
10352       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10353       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10354       /* dlclose (self); */
10355     }
10356
10357     exit (status);
10358 }
10359 EOF
10360   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10361   (eval $ac_link) 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10365     (./conftest; exit; ) >&5 2>/dev/null
10366     lt_status=$?
10367     case x$lt_status in
10368       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10369       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10370       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10371     esac
10372   else :
10373     # compilation failed
10374     lt_cv_dlopen_self=no
10375   fi
10376 fi
10377 rm -fr conftest*
10378
10379
10380 fi
10381 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10382 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10383
10384     if test "x$lt_cv_dlopen_self" = xyes; then
10385       LDFLAGS="$LDFLAGS $link_static_flag"
10386       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10387 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10388 if test "${lt_cv_dlopen_self_static+set}" = set; then
10389   echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391           if test "$cross_compiling" = yes; then :
10392   lt_cv_dlopen_self_static=cross
10393 else
10394   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10395   lt_status=$lt_dlunknown
10396   cat > conftest.$ac_ext <<EOF
10397 #line 10397 "configure"
10398 #include "confdefs.h"
10399
10400 #if HAVE_DLFCN_H
10401 #include <dlfcn.h>
10402 #endif
10403
10404 #include <stdio.h>
10405
10406 #ifdef RTLD_GLOBAL
10407 #  define LT_DLGLOBAL           RTLD_GLOBAL
10408 #else
10409 #  ifdef DL_GLOBAL
10410 #    define LT_DLGLOBAL         DL_GLOBAL
10411 #  else
10412 #    define LT_DLGLOBAL         0
10413 #  endif
10414 #endif
10415
10416 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10417    find out it does not work in some platform. */
10418 #ifndef LT_DLLAZY_OR_NOW
10419 #  ifdef RTLD_LAZY
10420 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10421 #  else
10422 #    ifdef DL_LAZY
10423 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10424 #    else
10425 #      ifdef RTLD_NOW
10426 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10427 #      else
10428 #        ifdef DL_NOW
10429 #          define LT_DLLAZY_OR_NOW      DL_NOW
10430 #        else
10431 #          define LT_DLLAZY_OR_NOW      0
10432 #        endif
10433 #      endif
10434 #    endif
10435 #  endif
10436 #endif
10437
10438 #ifdef __cplusplus
10439 extern "C" void exit (int);
10440 #endif
10441
10442 void fnord() { int i=42;}
10443 int main ()
10444 {
10445   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10446   int status = $lt_dlunknown;
10447
10448   if (self)
10449     {
10450       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10451       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10452       /* dlclose (self); */
10453     }
10454
10455     exit (status);
10456 }
10457 EOF
10458   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10459   (eval $ac_link) 2>&5
10460   ac_status=$?
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10463     (./conftest; exit; ) >&5 2>/dev/null
10464     lt_status=$?
10465     case x$lt_status in
10466       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10467       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10468       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10469     esac
10470   else :
10471     # compilation failed
10472     lt_cv_dlopen_self_static=no
10473   fi
10474 fi
10475 rm -fr conftest*
10476
10477
10478 fi
10479 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10480 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10481     fi
10482
10483     CPPFLAGS="$save_CPPFLAGS"
10484     LDFLAGS="$save_LDFLAGS"
10485     LIBS="$save_LIBS"
10486     ;;
10487   esac
10488
10489   case $lt_cv_dlopen_self in
10490   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10491   *) enable_dlopen_self=unknown ;;
10492   esac
10493
10494   case $lt_cv_dlopen_self_static in
10495   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10496   *) enable_dlopen_self_static=unknown ;;
10497   esac
10498 fi
10499
10500
10501 # Report which librarie types wil actually be built
10502 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10503 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10504 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10505 echo "${ECHO_T}$can_build_shared" >&6
10506
10507 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10508 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10509 test "$can_build_shared" = "no" && enable_shared=no
10510
10511 # On AIX, shared libraries and static libraries use the same namespace, and
10512 # are all built from PIC.
10513 case $host_os in
10514 aix3*)
10515   test "$enable_shared" = yes && enable_static=no
10516   if test -n "$RANLIB"; then
10517     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10518     postinstall_cmds='$RANLIB $lib'
10519   fi
10520   ;;
10521
10522 aix4* | aix5*)
10523   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10524     test "$enable_shared" = yes && enable_static=no
10525   fi
10526     ;;
10527 esac
10528 echo "$as_me:$LINENO: result: $enable_shared" >&5
10529 echo "${ECHO_T}$enable_shared" >&6
10530
10531 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10532 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10533 # Make sure either enable_shared or enable_static is yes.
10534 test "$enable_shared" = yes || enable_static=yes
10535 echo "$as_me:$LINENO: result: $enable_static" >&5
10536 echo "${ECHO_T}$enable_static" >&6
10537
10538 # The else clause should only fire when bootstrapping the
10539 # libtool distribution, otherwise you forgot to ship ltmain.sh
10540 # with your package, and you will get complaints that there are
10541 # no rules to generate ltmain.sh.
10542 if test -f "$ltmain"; then
10543   # See if we are running on zsh, and set the options which allow our commands through
10544   # without removal of \ escapes.
10545   if test -n "${ZSH_VERSION+set}" ; then
10546     setopt NO_GLOB_SUBST
10547   fi
10548   # Now quote all the things that may contain metacharacters while being
10549   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10550   # variables and quote the copies for generation of the libtool script.
10551   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10552     SED SHELL STRIP \
10553     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10554     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10555     deplibs_check_method reload_flag reload_cmds need_locks \
10556     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10557     lt_cv_sys_global_symbol_to_c_name_address \
10558     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10559     old_postinstall_cmds old_postuninstall_cmds \
10560     compiler \
10561     CC \
10562     LD \
10563     lt_prog_compiler_wl \
10564     lt_prog_compiler_pic \
10565     lt_prog_compiler_static \
10566     lt_prog_compiler_no_builtin_flag \
10567     export_dynamic_flag_spec \
10568     thread_safe_flag_spec \
10569     whole_archive_flag_spec \
10570     enable_shared_with_static_runtimes \
10571     old_archive_cmds \
10572     old_archive_from_new_cmds \
10573     predep_objects \
10574     postdep_objects \
10575     predeps \
10576     postdeps \
10577     compiler_lib_search_path \
10578     archive_cmds \
10579     archive_expsym_cmds \
10580     postinstall_cmds \
10581     postuninstall_cmds \
10582     old_archive_from_expsyms_cmds \
10583     allow_undefined_flag \
10584     no_undefined_flag \
10585     export_symbols_cmds \
10586     hardcode_libdir_flag_spec \
10587     hardcode_libdir_flag_spec_ld \
10588     hardcode_libdir_separator \
10589     hardcode_automatic \
10590     module_cmds \
10591     module_expsym_cmds \
10592     lt_cv_prog_compiler_c_o \
10593     exclude_expsyms \
10594     include_expsyms; do
10595
10596     case $var in
10597     old_archive_cmds | \
10598     old_archive_from_new_cmds | \
10599     archive_cmds | \
10600     archive_expsym_cmds | \
10601     module_cmds | \
10602     module_expsym_cmds | \
10603     old_archive_from_expsyms_cmds | \
10604     export_symbols_cmds | \
10605     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10606     postinstall_cmds | postuninstall_cmds | \
10607     old_postinstall_cmds | old_postuninstall_cmds | \
10608     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10609       # Double-quote double-evaled strings.
10610       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10611       ;;
10612     *)
10613       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10614       ;;
10615     esac
10616   done
10617
10618   case $lt_echo in
10619   *'\$0 --fallback-echo"')
10620     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10621     ;;
10622   esac
10623
10624 cfgfile="${ofile}T"
10625   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10626   $rm -f "$cfgfile"
10627   { echo "$as_me:$LINENO: creating $ofile" >&5
10628 echo "$as_me: creating $ofile" >&6;}
10629
10630   cat <<__EOF__ >> "$cfgfile"
10631 #! $SHELL
10632
10633 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10634 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10635 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10636 #
10637 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10638 # Free Software Foundation, Inc.
10639 #
10640 # This file is part of GNU Libtool:
10641 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10642 #
10643 # This program is free software; you can redistribute it and/or modify
10644 # it under the terms of the GNU General Public License as published by
10645 # the Free Software Foundation; either version 2 of the License, or
10646 # (at your option) any later version.
10647 #
10648 # This program is distributed in the hope that it will be useful, but
10649 # WITHOUT ANY WARRANTY; without even the implied warranty of
10650 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10651 # General Public License for more details.
10652 #
10653 # You should have received a copy of the GNU General Public License
10654 # along with this program; if not, write to the Free Software
10655 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10656 #
10657 # As a special exception to the GNU General Public License, if you
10658 # distribute this file as part of a program that contains a
10659 # configuration script generated by Autoconf, you may include it under
10660 # the same distribution terms that you use for the rest of that program.
10661
10662 # A sed program that does not truncate output.
10663 SED=$lt_SED
10664
10665 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10666 Xsed="$SED -e 1s/^X//"
10667
10668 # The HP-UX ksh and POSIX shell print the target directory to stdout
10669 # if CDPATH is set.
10670 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10671
10672 # The names of the tagged configurations supported by this script.
10673 available_tags=
10674
10675 # ### BEGIN LIBTOOL CONFIG
10676
10677 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10678
10679 # Shell to use when invoking shell scripts.
10680 SHELL=$lt_SHELL
10681
10682 # Whether or not to build shared libraries.
10683 build_libtool_libs=$enable_shared
10684
10685 # Whether or not to build static libraries.
10686 build_old_libs=$enable_static
10687
10688 # Whether or not to add -lc for building shared libraries.
10689 build_libtool_need_lc=$archive_cmds_need_lc
10690
10691 # Whether or not to disallow shared libs when runtime libs are static
10692 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10693
10694 # Whether or not to optimize for fast installation.
10695 fast_install=$enable_fast_install
10696
10697 # The host system.
10698 host_alias=$host_alias
10699 host=$host
10700 host_os=$host_os
10701
10702 # The build system.
10703 build_alias=$build_alias
10704 build=$build
10705 build_os=$build_os
10706
10707 # An echo program that does not interpret backslashes.
10708 echo=$lt_echo
10709
10710 # The archiver.
10711 AR=$lt_AR
10712 AR_FLAGS=$lt_AR_FLAGS
10713
10714 # A C compiler.
10715 LTCC=$lt_LTCC
10716
10717 # A language-specific compiler.
10718 CC=$lt_compiler
10719
10720 # Is the compiler the GNU C compiler?
10721 with_gcc=$GCC
10722
10723 # An ERE matcher.
10724 EGREP=$lt_EGREP
10725
10726 # The linker used to build libraries.
10727 LD=$lt_LD
10728
10729 # Whether we need hard or soft links.
10730 LN_S=$lt_LN_S
10731
10732 # A BSD-compatible nm program.
10733 NM=$lt_NM
10734
10735 # A symbol stripping program
10736 STRIP=$lt_STRIP
10737
10738 # Used to examine libraries when file_magic_cmd begins "file"
10739 MAGIC_CMD=$MAGIC_CMD
10740
10741 # Used on cygwin: DLL creation program.
10742 DLLTOOL="$DLLTOOL"
10743
10744 # Used on cygwin: object dumper.
10745 OBJDUMP="$OBJDUMP"
10746
10747 # Used on cygwin: assembler.
10748 AS="$AS"
10749
10750 # The name of the directory that contains temporary libtool files.
10751 objdir=$objdir
10752
10753 # How to create reloadable object files.
10754 reload_flag=$lt_reload_flag
10755 reload_cmds=$lt_reload_cmds
10756
10757 # How to pass a linker flag through the compiler.
10758 wl=$lt_lt_prog_compiler_wl
10759
10760 # Object file suffix (normally "o").
10761 objext="$ac_objext"
10762
10763 # Old archive suffix (normally "a").
10764 libext="$libext"
10765
10766 # Shared library suffix (normally ".so").
10767 shrext_cmds='$shrext_cmds'
10768
10769 # Executable file suffix (normally "").
10770 exeext="$exeext"
10771
10772 # Additional compiler flags for building library objects.
10773 pic_flag=$lt_lt_prog_compiler_pic
10774 pic_mode=$pic_mode
10775
10776 # What is the maximum length of a command?
10777 max_cmd_len=$lt_cv_sys_max_cmd_len
10778
10779 # Does compiler simultaneously support -c and -o options?
10780 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10781
10782 # Must we lock files when doing compilation?
10783 need_locks=$lt_need_locks
10784
10785 # Do we need the lib prefix for modules?
10786 need_lib_prefix=$need_lib_prefix
10787
10788 # Do we need a version for libraries?
10789 need_version=$need_version
10790
10791 # Whether dlopen is supported.
10792 dlopen_support=$enable_dlopen
10793
10794 # Whether dlopen of programs is supported.
10795 dlopen_self=$enable_dlopen_self
10796
10797 # Whether dlopen of statically linked programs is supported.
10798 dlopen_self_static=$enable_dlopen_self_static
10799
10800 # Compiler flag to prevent dynamic linking.
10801 link_static_flag=$lt_lt_prog_compiler_static
10802
10803 # Compiler flag to turn off builtin functions.
10804 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10805
10806 # Compiler flag to allow reflexive dlopens.
10807 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10808
10809 # Compiler flag to generate shared objects directly from archives.
10810 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10811
10812 # Compiler flag to generate thread-safe objects.
10813 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10814
10815 # Library versioning type.
10816 version_type=$version_type
10817
10818 # Format of library name prefix.
10819 libname_spec=$lt_libname_spec
10820
10821 # List of archive names.  First name is the real one, the rest are links.
10822 # The last name is the one that the linker finds with -lNAME.
10823 library_names_spec=$lt_library_names_spec
10824
10825 # The coded name of the library, if different from the real name.
10826 soname_spec=$lt_soname_spec
10827
10828 # Commands used to build and install an old-style archive.
10829 RANLIB=$lt_RANLIB
10830 old_archive_cmds=$lt_old_archive_cmds
10831 old_postinstall_cmds=$lt_old_postinstall_cmds
10832 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10833
10834 # Create an old-style archive from a shared archive.
10835 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10836
10837 # Create a temporary old-style archive to link instead of a shared archive.
10838 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10839
10840 # Commands used to build and install a shared archive.
10841 archive_cmds=$lt_archive_cmds
10842 archive_expsym_cmds=$lt_archive_expsym_cmds
10843 postinstall_cmds=$lt_postinstall_cmds
10844 postuninstall_cmds=$lt_postuninstall_cmds
10845
10846 # Commands used to build a loadable module (assumed same as above if empty)
10847 module_cmds=$lt_module_cmds
10848 module_expsym_cmds=$lt_module_expsym_cmds
10849
10850 # Commands to strip libraries.
10851 old_striplib=$lt_old_striplib
10852 striplib=$lt_striplib
10853
10854 # Dependencies to place before the objects being linked to create a
10855 # shared library.
10856 predep_objects=$lt_predep_objects
10857
10858 # Dependencies to place after the objects being linked to create a
10859 # shared library.
10860 postdep_objects=$lt_postdep_objects
10861
10862 # Dependencies to place before the objects being linked to create a
10863 # shared library.
10864 predeps=$lt_predeps
10865
10866 # Dependencies to place after the objects being linked to create a
10867 # shared library.
10868 postdeps=$lt_postdeps
10869
10870 # The library search path used internally by the compiler when linking
10871 # a shared library.
10872 compiler_lib_search_path=$lt_compiler_lib_search_path
10873
10874 # Method to check whether dependent libraries are shared objects.
10875 deplibs_check_method=$lt_deplibs_check_method
10876
10877 # Command to use when deplibs_check_method == file_magic.
10878 file_magic_cmd=$lt_file_magic_cmd
10879
10880 # Flag that allows shared libraries with undefined symbols to be built.
10881 allow_undefined_flag=$lt_allow_undefined_flag
10882
10883 # Flag that forces no undefined symbols.
10884 no_undefined_flag=$lt_no_undefined_flag
10885
10886 # Commands used to finish a libtool library installation in a directory.
10887 finish_cmds=$lt_finish_cmds
10888
10889 # Same as above, but a single script fragment to be evaled but not shown.
10890 finish_eval=$lt_finish_eval
10891
10892 # Take the output of nm and produce a listing of raw symbols and C names.
10893 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10894
10895 # Transform the output of nm in a proper C declaration
10896 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10897
10898 # Transform the output of nm in a C name address pair
10899 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10900
10901 # This is the shared library runtime path variable.
10902 runpath_var=$runpath_var
10903
10904 # This is the shared library path variable.
10905 shlibpath_var=$shlibpath_var
10906
10907 # Is shlibpath searched before the hard-coded library search path?
10908 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10909
10910 # How to hardcode a shared library path into an executable.
10911 hardcode_action=$hardcode_action
10912
10913 # Whether we should hardcode library paths into libraries.
10914 hardcode_into_libs=$hardcode_into_libs
10915
10916 # Flag to hardcode \$libdir into a binary during linking.
10917 # This must work even if \$libdir does not exist.
10918 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10919
10920 # If ld is used when linking, flag to hardcode \$libdir into
10921 # a binary during linking. This must work even if \$libdir does
10922 # not exist.
10923 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10924
10925 # Whether we need a single -rpath flag with a separated argument.
10926 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10927
10928 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10929 # resulting binary.
10930 hardcode_direct=$hardcode_direct
10931
10932 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10933 # resulting binary.
10934 hardcode_minus_L=$hardcode_minus_L
10935
10936 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10937 # the resulting binary.
10938 hardcode_shlibpath_var=$hardcode_shlibpath_var
10939
10940 # Set to yes if building a shared library automatically hardcodes DIR into the library
10941 # and all subsequent libraries and executables linked against it.
10942 hardcode_automatic=$hardcode_automatic
10943
10944 # Variables whose values should be saved in libtool wrapper scripts and
10945 # restored at relink time.
10946 variables_saved_for_relink="$variables_saved_for_relink"
10947
10948 # Whether libtool must link a program against all its dependency libraries.
10949 link_all_deplibs=$link_all_deplibs
10950
10951 # Compile-time system search path for libraries
10952 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10953
10954 # Run-time system search path for libraries
10955 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10956
10957 # Fix the shell variable \$srcfile for the compiler.
10958 fix_srcfile_path="$fix_srcfile_path"
10959
10960 # Set to yes if exported symbols are required.
10961 always_export_symbols=$always_export_symbols
10962
10963 # The commands to list exported symbols.
10964 export_symbols_cmds=$lt_export_symbols_cmds
10965
10966 # The commands to extract the exported symbol list from a shared archive.
10967 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10968
10969 # Symbols that should not be listed in the preloaded symbols.
10970 exclude_expsyms=$lt_exclude_expsyms
10971
10972 # Symbols that must always be exported.
10973 include_expsyms=$lt_include_expsyms
10974
10975 # ### END LIBTOOL CONFIG
10976
10977 __EOF__
10978
10979
10980   case $host_os in
10981   aix3*)
10982     cat <<\EOF >> "$cfgfile"
10983
10984 # AIX sometimes has problems with the GCC collect2 program.  For some
10985 # reason, if we set the COLLECT_NAMES environment variable, the problems
10986 # vanish in a puff of smoke.
10987 if test "X${COLLECT_NAMES+set}" != Xset; then
10988   COLLECT_NAMES=
10989   export COLLECT_NAMES
10990 fi
10991 EOF
10992     ;;
10993   esac
10994
10995   # We use sed instead of cat because bash on DJGPP gets confused if
10996   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10997   # text mode, it properly converts lines to CR/LF.  This bash problem
10998   # is reportedly fixed, but why not run on old versions too?
10999   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11000
11001   mv -f "$cfgfile" "$ofile" || \
11002     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11003   chmod +x "$ofile"
11004
11005 else
11006   # If there is no Makefile yet, we rely on a make rule to execute
11007   # `config.status --recheck' to rerun these tests and create the
11008   # libtool script then.
11009   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11010   if test -f "$ltmain_in"; then
11011     test -f Makefile && make "$ltmain"
11012   fi
11013 fi
11014
11015
11016 ac_ext=c
11017 ac_cpp='$CPP $CPPFLAGS'
11018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11021
11022 CC="$lt_save_CC"
11023
11024
11025 # Check whether --with-tags or --without-tags was given.
11026 if test "${with_tags+set}" = set; then
11027   withval="$with_tags"
11028   tagnames="$withval"
11029 fi;
11030
11031 if test -f "$ltmain" && test -n "$tagnames"; then
11032   if test ! -f "${ofile}"; then
11033     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11034 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11035   fi
11036
11037   if test -z "$LTCC"; then
11038     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11039     if test -z "$LTCC"; then
11040       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11041 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11042     else
11043       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11044 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11045     fi
11046   fi
11047
11048   # Extract list of available tagged configurations in $ofile.
11049   # Note that this assumes the entire list is on one line.
11050   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11051
11052   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11053   for tagname in $tagnames; do
11054     IFS="$lt_save_ifs"
11055     # Check whether tagname contains only valid characters
11056     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11057     "") ;;
11058     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11059 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11060    { (exit 1); exit 1; }; }
11061         ;;
11062     esac
11063
11064     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11065     then
11066       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11067 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11068    { (exit 1); exit 1; }; }
11069     fi
11070
11071     # Update the list of available tags.
11072     if test -n "$tagname"; then
11073       echo appending configuration tag \"$tagname\" to $ofile
11074
11075       case $tagname in
11076       CXX)
11077         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11078             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11079             (test "X$CXX" != "Xg++"))) ; then
11080           :
11081         else
11082           tagname=""
11083         fi
11084         ;;
11085
11086       F77)
11087         if test -n "$F77" && test "X$F77" != "Xno"; then
11088           :
11089         else
11090           tagname=""
11091         fi
11092         ;;
11093
11094       GCJ)
11095         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11096           :
11097         else
11098           tagname=""
11099         fi
11100         ;;
11101
11102       RC)
11103
11104
11105
11106 # Source file extension for RC test sources.
11107 ac_ext=rc
11108
11109 # Object file extension for compiled RC test sources.
11110 objext=o
11111 objext_RC=$objext
11112
11113 # Code to be used in simple compile tests
11114 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11115
11116 # Code to be used in simple link tests
11117 lt_simple_link_test_code="$lt_simple_compile_test_code"
11118
11119 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11120
11121 # If no C compiler was specified, use CC.
11122 LTCC=${LTCC-"$CC"}
11123
11124 # Allow CC to be a program name with arguments.
11125 compiler=$CC
11126
11127
11128 # save warnings/boilerplate of simple test code
11129 ac_outfile=conftest.$ac_objext
11130 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11131 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11132 _lt_compiler_boilerplate=`cat conftest.err`
11133 $rm conftest*
11134
11135 ac_outfile=conftest.$ac_objext
11136 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11137 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11138 _lt_linker_boilerplate=`cat conftest.err`
11139 $rm conftest*
11140
11141
11142 # Allow CC to be a program name with arguments.
11143 lt_save_CC="$CC"
11144 CC=${RC-"windres"}
11145 compiler=$CC
11146 compiler_RC=$CC
11147 for cc_temp in $compiler""; do
11148   case $cc_temp in
11149     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11150     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11151     \-*) ;;
11152     *) break;;
11153   esac
11154 done
11155 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11156
11157 lt_cv_prog_compiler_c_o_RC=yes
11158
11159 # The else clause should only fire when bootstrapping the
11160 # libtool distribution, otherwise you forgot to ship ltmain.sh
11161 # with your package, and you will get complaints that there are
11162 # no rules to generate ltmain.sh.
11163 if test -f "$ltmain"; then
11164   # See if we are running on zsh, and set the options which allow our commands through
11165   # without removal of \ escapes.
11166   if test -n "${ZSH_VERSION+set}" ; then
11167     setopt NO_GLOB_SUBST
11168   fi
11169   # Now quote all the things that may contain metacharacters while being
11170   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11171   # variables and quote the copies for generation of the libtool script.
11172   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11173     SED SHELL STRIP \
11174     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11175     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11176     deplibs_check_method reload_flag reload_cmds need_locks \
11177     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11178     lt_cv_sys_global_symbol_to_c_name_address \
11179     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11180     old_postinstall_cmds old_postuninstall_cmds \
11181     compiler_RC \
11182     CC_RC \
11183     LD_RC \
11184     lt_prog_compiler_wl_RC \
11185     lt_prog_compiler_pic_RC \
11186     lt_prog_compiler_static_RC \
11187     lt_prog_compiler_no_builtin_flag_RC \
11188     export_dynamic_flag_spec_RC \
11189     thread_safe_flag_spec_RC \
11190     whole_archive_flag_spec_RC \
11191     enable_shared_with_static_runtimes_RC \
11192     old_archive_cmds_RC \
11193     old_archive_from_new_cmds_RC \
11194     predep_objects_RC \
11195     postdep_objects_RC \
11196     predeps_RC \
11197     postdeps_RC \
11198     compiler_lib_search_path_RC \
11199     archive_cmds_RC \
11200     archive_expsym_cmds_RC \
11201     postinstall_cmds_RC \
11202     postuninstall_cmds_RC \
11203     old_archive_from_expsyms_cmds_RC \
11204     allow_undefined_flag_RC \
11205     no_undefined_flag_RC \
11206     export_symbols_cmds_RC \
11207     hardcode_libdir_flag_spec_RC \
11208     hardcode_libdir_flag_spec_ld_RC \
11209     hardcode_libdir_separator_RC \
11210     hardcode_automatic_RC \
11211     module_cmds_RC \
11212     module_expsym_cmds_RC \
11213     lt_cv_prog_compiler_c_o_RC \
11214     exclude_expsyms_RC \
11215     include_expsyms_RC; do
11216
11217     case $var in
11218     old_archive_cmds_RC | \
11219     old_archive_from_new_cmds_RC | \
11220     archive_cmds_RC | \
11221     archive_expsym_cmds_RC | \
11222     module_cmds_RC | \
11223     module_expsym_cmds_RC | \
11224     old_archive_from_expsyms_cmds_RC | \
11225     export_symbols_cmds_RC | \
11226     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11227     postinstall_cmds | postuninstall_cmds | \
11228     old_postinstall_cmds | old_postuninstall_cmds | \
11229     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11230       # Double-quote double-evaled strings.
11231       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11232       ;;
11233     *)
11234       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11235       ;;
11236     esac
11237   done
11238
11239   case $lt_echo in
11240   *'\$0 --fallback-echo"')
11241     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11242     ;;
11243   esac
11244
11245 cfgfile="$ofile"
11246
11247   cat <<__EOF__ >> "$cfgfile"
11248 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11249
11250 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11251
11252 # Shell to use when invoking shell scripts.
11253 SHELL=$lt_SHELL
11254
11255 # Whether or not to build shared libraries.
11256 build_libtool_libs=$enable_shared
11257
11258 # Whether or not to build static libraries.
11259 build_old_libs=$enable_static
11260
11261 # Whether or not to add -lc for building shared libraries.
11262 build_libtool_need_lc=$archive_cmds_need_lc_RC
11263
11264 # Whether or not to disallow shared libs when runtime libs are static
11265 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11266
11267 # Whether or not to optimize for fast installation.
11268 fast_install=$enable_fast_install
11269
11270 # The host system.
11271 host_alias=$host_alias
11272 host=$host
11273 host_os=$host_os
11274
11275 # The build system.
11276 build_alias=$build_alias
11277 build=$build
11278 build_os=$build_os
11279
11280 # An echo program that does not interpret backslashes.
11281 echo=$lt_echo
11282
11283 # The archiver.
11284 AR=$lt_AR
11285 AR_FLAGS=$lt_AR_FLAGS
11286
11287 # A C compiler.
11288 LTCC=$lt_LTCC
11289
11290 # A language-specific compiler.
11291 CC=$lt_compiler_RC
11292
11293 # Is the compiler the GNU C compiler?
11294 with_gcc=$GCC_RC
11295
11296 # An ERE matcher.
11297 EGREP=$lt_EGREP
11298
11299 # The linker used to build libraries.
11300 LD=$lt_LD_RC
11301
11302 # Whether we need hard or soft links.
11303 LN_S=$lt_LN_S
11304
11305 # A BSD-compatible nm program.
11306 NM=$lt_NM
11307
11308 # A symbol stripping program
11309 STRIP=$lt_STRIP
11310
11311 # Used to examine libraries when file_magic_cmd begins "file"
11312 MAGIC_CMD=$MAGIC_CMD
11313
11314 # Used on cygwin: DLL creation program.
11315 DLLTOOL="$DLLTOOL"
11316
11317 # Used on cygwin: object dumper.
11318 OBJDUMP="$OBJDUMP"
11319
11320 # Used on cygwin: assembler.
11321 AS="$AS"
11322
11323 # The name of the directory that contains temporary libtool files.
11324 objdir=$objdir
11325
11326 # How to create reloadable object files.
11327 reload_flag=$lt_reload_flag
11328 reload_cmds=$lt_reload_cmds
11329
11330 # How to pass a linker flag through the compiler.
11331 wl=$lt_lt_prog_compiler_wl_RC
11332
11333 # Object file suffix (normally "o").
11334 objext="$ac_objext"
11335
11336 # Old archive suffix (normally "a").
11337 libext="$libext"
11338
11339 # Shared library suffix (normally ".so").
11340 shrext_cmds='$shrext_cmds'
11341
11342 # Executable file suffix (normally "").
11343 exeext="$exeext"
11344
11345 # Additional compiler flags for building library objects.
11346 pic_flag=$lt_lt_prog_compiler_pic_RC
11347 pic_mode=$pic_mode
11348
11349 # What is the maximum length of a command?
11350 max_cmd_len=$lt_cv_sys_max_cmd_len
11351
11352 # Does compiler simultaneously support -c and -o options?
11353 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11354
11355 # Must we lock files when doing compilation?
11356 need_locks=$lt_need_locks
11357
11358 # Do we need the lib prefix for modules?
11359 need_lib_prefix=$need_lib_prefix
11360
11361 # Do we need a version for libraries?
11362 need_version=$need_version
11363
11364 # Whether dlopen is supported.
11365 dlopen_support=$enable_dlopen
11366
11367 # Whether dlopen of programs is supported.
11368 dlopen_self=$enable_dlopen_self
11369
11370 # Whether dlopen of statically linked programs is supported.
11371 dlopen_self_static=$enable_dlopen_self_static
11372
11373 # Compiler flag to prevent dynamic linking.
11374 link_static_flag=$lt_lt_prog_compiler_static_RC
11375
11376 # Compiler flag to turn off builtin functions.
11377 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11378
11379 # Compiler flag to allow reflexive dlopens.
11380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11381
11382 # Compiler flag to generate shared objects directly from archives.
11383 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11384
11385 # Compiler flag to generate thread-safe objects.
11386 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11387
11388 # Library versioning type.
11389 version_type=$version_type
11390
11391 # Format of library name prefix.
11392 libname_spec=$lt_libname_spec
11393
11394 # List of archive names.  First name is the real one, the rest are links.
11395 # The last name is the one that the linker finds with -lNAME.
11396 library_names_spec=$lt_library_names_spec
11397
11398 # The coded name of the library, if different from the real name.
11399 soname_spec=$lt_soname_spec
11400
11401 # Commands used to build and install an old-style archive.
11402 RANLIB=$lt_RANLIB
11403 old_archive_cmds=$lt_old_archive_cmds_RC
11404 old_postinstall_cmds=$lt_old_postinstall_cmds
11405 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11406
11407 # Create an old-style archive from a shared archive.
11408 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11409
11410 # Create a temporary old-style archive to link instead of a shared archive.
11411 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11412
11413 # Commands used to build and install a shared archive.
11414 archive_cmds=$lt_archive_cmds_RC
11415 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11416 postinstall_cmds=$lt_postinstall_cmds
11417 postuninstall_cmds=$lt_postuninstall_cmds
11418
11419 # Commands used to build a loadable module (assumed same as above if empty)
11420 module_cmds=$lt_module_cmds_RC
11421 module_expsym_cmds=$lt_module_expsym_cmds_RC
11422
11423 # Commands to strip libraries.
11424 old_striplib=$lt_old_striplib
11425 striplib=$lt_striplib
11426
11427 # Dependencies to place before the objects being linked to create a
11428 # shared library.
11429 predep_objects=$lt_predep_objects_RC
11430
11431 # Dependencies to place after the objects being linked to create a
11432 # shared library.
11433 postdep_objects=$lt_postdep_objects_RC
11434
11435 # Dependencies to place before the objects being linked to create a
11436 # shared library.
11437 predeps=$lt_predeps_RC
11438
11439 # Dependencies to place after the objects being linked to create a
11440 # shared library.
11441 postdeps=$lt_postdeps_RC
11442
11443 # The library search path used internally by the compiler when linking
11444 # a shared library.
11445 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11446
11447 # Method to check whether dependent libraries are shared objects.
11448 deplibs_check_method=$lt_deplibs_check_method
11449
11450 # Command to use when deplibs_check_method == file_magic.
11451 file_magic_cmd=$lt_file_magic_cmd
11452
11453 # Flag that allows shared libraries with undefined symbols to be built.
11454 allow_undefined_flag=$lt_allow_undefined_flag_RC
11455
11456 # Flag that forces no undefined symbols.
11457 no_undefined_flag=$lt_no_undefined_flag_RC
11458
11459 # Commands used to finish a libtool library installation in a directory.
11460 finish_cmds=$lt_finish_cmds
11461
11462 # Same as above, but a single script fragment to be evaled but not shown.
11463 finish_eval=$lt_finish_eval
11464
11465 # Take the output of nm and produce a listing of raw symbols and C names.
11466 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11467
11468 # Transform the output of nm in a proper C declaration
11469 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11470
11471 # Transform the output of nm in a C name address pair
11472 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11473
11474 # This is the shared library runtime path variable.
11475 runpath_var=$runpath_var
11476
11477 # This is the shared library path variable.
11478 shlibpath_var=$shlibpath_var
11479
11480 # Is shlibpath searched before the hard-coded library search path?
11481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11482
11483 # How to hardcode a shared library path into an executable.
11484 hardcode_action=$hardcode_action_RC
11485
11486 # Whether we should hardcode library paths into libraries.
11487 hardcode_into_libs=$hardcode_into_libs
11488
11489 # Flag to hardcode \$libdir into a binary during linking.
11490 # This must work even if \$libdir does not exist.
11491 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11492
11493 # If ld is used when linking, flag to hardcode \$libdir into
11494 # a binary during linking. This must work even if \$libdir does
11495 # not exist.
11496 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11497
11498 # Whether we need a single -rpath flag with a separated argument.
11499 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11500
11501 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11502 # resulting binary.
11503 hardcode_direct=$hardcode_direct_RC
11504
11505 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11506 # resulting binary.
11507 hardcode_minus_L=$hardcode_minus_L_RC
11508
11509 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11510 # the resulting binary.
11511 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11512
11513 # Set to yes if building a shared library automatically hardcodes DIR into the library
11514 # and all subsequent libraries and executables linked against it.
11515 hardcode_automatic=$hardcode_automatic_RC
11516
11517 # Variables whose values should be saved in libtool wrapper scripts and
11518 # restored at relink time.
11519 variables_saved_for_relink="$variables_saved_for_relink"
11520
11521 # Whether libtool must link a program against all its dependency libraries.
11522 link_all_deplibs=$link_all_deplibs_RC
11523
11524 # Compile-time system search path for libraries
11525 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11526
11527 # Run-time system search path for libraries
11528 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11529
11530 # Fix the shell variable \$srcfile for the compiler.
11531 fix_srcfile_path="$fix_srcfile_path_RC"
11532
11533 # Set to yes if exported symbols are required.
11534 always_export_symbols=$always_export_symbols_RC
11535
11536 # The commands to list exported symbols.
11537 export_symbols_cmds=$lt_export_symbols_cmds_RC
11538
11539 # The commands to extract the exported symbol list from a shared archive.
11540 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11541
11542 # Symbols that should not be listed in the preloaded symbols.
11543 exclude_expsyms=$lt_exclude_expsyms_RC
11544
11545 # Symbols that must always be exported.
11546 include_expsyms=$lt_include_expsyms_RC
11547
11548 # ### END LIBTOOL TAG CONFIG: $tagname
11549
11550 __EOF__
11551
11552
11553 else
11554   # If there is no Makefile yet, we rely on a make rule to execute
11555   # `config.status --recheck' to rerun these tests and create the
11556   # libtool script then.
11557   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11558   if test -f "$ltmain_in"; then
11559     test -f Makefile && make "$ltmain"
11560   fi
11561 fi
11562
11563
11564 ac_ext=c
11565 ac_cpp='$CPP $CPPFLAGS'
11566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11569
11570 CC="$lt_save_CC"
11571
11572         ;;
11573
11574       *)
11575         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11576 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11577    { (exit 1); exit 1; }; }
11578         ;;
11579       esac
11580
11581       # Append the new tag name to the list of available tags.
11582       if test -n "$tagname" ; then
11583       available_tags="$available_tags $tagname"
11584     fi
11585     fi
11586   done
11587   IFS="$lt_save_ifs"
11588
11589   # Now substitute the updated list of available tags.
11590   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11591     mv "${ofile}T" "$ofile"
11592     chmod +x "$ofile"
11593   else
11594     rm -f "${ofile}T"
11595     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11596 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11597    { (exit 1); exit 1; }; }
11598   fi
11599 fi
11600
11601
11602
11603 # This can be used to rebuild libtool when needed
11604 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11605
11606 # Always use our own libtool.
11607 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11608
11609 # Prevent multiple expansion
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620 ol_link_perl=no
11621 if test $ol_enable_perl != no ; then
11622         # Extract the first word of "perl", so it can be a program name with args.
11623 set dummy perl; ac_word=$2
11624 echo "$as_me:$LINENO: checking for $ac_word" >&5
11625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11626 if test "${ac_cv_path_PERLBIN+set}" = set; then
11627   echo $ECHO_N "(cached) $ECHO_C" >&6
11628 else
11629   case $PERLBIN in
11630   [\\/]* | ?:[\\/]*)
11631   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11632   ;;
11633   *)
11634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11636 do
11637   IFS=$as_save_IFS
11638   test -z "$as_dir" && as_dir=.
11639   for ac_exec_ext in '' $ac_executable_extensions; do
11640   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11641     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11643     break 2
11644   fi
11645 done
11646 done
11647
11648   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11649   ;;
11650 esac
11651 fi
11652 PERLBIN=$ac_cv_path_PERLBIN
11653
11654 if test -n "$PERLBIN"; then
11655   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11656 echo "${ECHO_T}$PERLBIN" >&6
11657 else
11658   echo "$as_me:$LINENO: result: no" >&5
11659 echo "${ECHO_T}no" >&6
11660 fi
11661
11662
11663         if test "no$PERLBIN" = "no" ; then
11664                 if test $ol_enable_perl = yes ; then
11665                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11666 echo "$as_me: error: could not locate perl" >&2;}
11667    { (exit 1); exit 1; }; }
11668                 fi
11669
11670         else
11671                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11672                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11673
11674                 if test x"$ol_enable_perl" = "xyes" ; then
11675                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11676                 else
11677                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11678                 fi
11679                                 ol_link_perl=yes
11680         fi
11681 fi
11682
11683 ac_ext=c
11684 ac_cpp='$CPP $CPPFLAGS'
11685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11688 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11689 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11690 # On Suns, sometimes $CPP names a directory.
11691 if test -n "$CPP" && test -d "$CPP"; then
11692   CPP=
11693 fi
11694 if test -z "$CPP"; then
11695   if test "${ac_cv_prog_CPP+set}" = set; then
11696   echo $ECHO_N "(cached) $ECHO_C" >&6
11697 else
11698       # Double quotes because CPP needs to be expanded
11699     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11700     do
11701       ac_preproc_ok=false
11702 for ac_c_preproc_warn_flag in '' yes
11703 do
11704   # Use a header file that comes with gcc, so configuring glibc
11705   # with a fresh cross-compiler works.
11706   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11707   # <limits.h> exists even on freestanding compilers.
11708   # On the NeXT, cc -E runs the code through the compiler's parser,
11709   # not just through cpp. "Syntax error" is here to catch this case.
11710   cat >conftest.$ac_ext <<_ACEOF
11711 /* confdefs.h.  */
11712 _ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h.  */
11716 #ifdef __STDC__
11717 # include <limits.h>
11718 #else
11719 # include <assert.h>
11720 #endif
11721                      Syntax error
11722 _ACEOF
11723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11725   ac_status=$?
11726   grep -v '^ *+' conftest.er1 >conftest.err
11727   rm -f conftest.er1
11728   cat conftest.err >&5
11729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730   (exit $ac_status); } >/dev/null; then
11731   if test -s conftest.err; then
11732     ac_cpp_err=$ac_c_preproc_warn_flag
11733     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11734   else
11735     ac_cpp_err=
11736   fi
11737 else
11738   ac_cpp_err=yes
11739 fi
11740 if test -z "$ac_cpp_err"; then
11741   :
11742 else
11743   echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11745
11746   # Broken: fails on valid input.
11747 continue
11748 fi
11749 rm -f conftest.err conftest.$ac_ext
11750
11751   # OK, works on sane cases.  Now check whether non-existent headers
11752   # can be detected and how.
11753   cat >conftest.$ac_ext <<_ACEOF
11754 /* confdefs.h.  */
11755 _ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h.  */
11759 #include <ac_nonexistent.h>
11760 _ACEOF
11761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11762   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11763   ac_status=$?
11764   grep -v '^ *+' conftest.er1 >conftest.err
11765   rm -f conftest.er1
11766   cat conftest.err >&5
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); } >/dev/null; then
11769   if test -s conftest.err; then
11770     ac_cpp_err=$ac_c_preproc_warn_flag
11771     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11772   else
11773     ac_cpp_err=
11774   fi
11775 else
11776   ac_cpp_err=yes
11777 fi
11778 if test -z "$ac_cpp_err"; then
11779   # Broken: success on invalid input.
11780 continue
11781 else
11782   echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11784
11785   # Passes both tests.
11786 ac_preproc_ok=:
11787 break
11788 fi
11789 rm -f conftest.err conftest.$ac_ext
11790
11791 done
11792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11793 rm -f conftest.err conftest.$ac_ext
11794 if $ac_preproc_ok; then
11795   break
11796 fi
11797
11798     done
11799     ac_cv_prog_CPP=$CPP
11800
11801 fi
11802   CPP=$ac_cv_prog_CPP
11803 else
11804   ac_cv_prog_CPP=$CPP
11805 fi
11806 echo "$as_me:$LINENO: result: $CPP" >&5
11807 echo "${ECHO_T}$CPP" >&6
11808 ac_preproc_ok=false
11809 for ac_c_preproc_warn_flag in '' yes
11810 do
11811   # Use a header file that comes with gcc, so configuring glibc
11812   # with a fresh cross-compiler works.
11813   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814   # <limits.h> exists even on freestanding compilers.
11815   # On the NeXT, cc -E runs the code through the compiler's parser,
11816   # not just through cpp. "Syntax error" is here to catch this case.
11817   cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h.  */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h.  */
11823 #ifdef __STDC__
11824 # include <limits.h>
11825 #else
11826 # include <assert.h>
11827 #endif
11828                      Syntax error
11829 _ACEOF
11830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11832   ac_status=$?
11833   grep -v '^ *+' conftest.er1 >conftest.err
11834   rm -f conftest.er1
11835   cat conftest.err >&5
11836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); } >/dev/null; then
11838   if test -s conftest.err; then
11839     ac_cpp_err=$ac_c_preproc_warn_flag
11840     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11841   else
11842     ac_cpp_err=
11843   fi
11844 else
11845   ac_cpp_err=yes
11846 fi
11847 if test -z "$ac_cpp_err"; then
11848   :
11849 else
11850   echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11852
11853   # Broken: fails on valid input.
11854 continue
11855 fi
11856 rm -f conftest.err conftest.$ac_ext
11857
11858   # OK, works on sane cases.  Now check whether non-existent headers
11859   # can be detected and how.
11860   cat >conftest.$ac_ext <<_ACEOF
11861 /* confdefs.h.  */
11862 _ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h.  */
11866 #include <ac_nonexistent.h>
11867 _ACEOF
11868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11869   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11870   ac_status=$?
11871   grep -v '^ *+' conftest.er1 >conftest.err
11872   rm -f conftest.er1
11873   cat conftest.err >&5
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); } >/dev/null; then
11876   if test -s conftest.err; then
11877     ac_cpp_err=$ac_c_preproc_warn_flag
11878     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11879   else
11880     ac_cpp_err=
11881   fi
11882 else
11883   ac_cpp_err=yes
11884 fi
11885 if test -z "$ac_cpp_err"; then
11886   # Broken: success on invalid input.
11887 continue
11888 else
11889   echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11891
11892   # Passes both tests.
11893 ac_preproc_ok=:
11894 break
11895 fi
11896 rm -f conftest.err conftest.$ac_ext
11897
11898 done
11899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11900 rm -f conftest.err conftest.$ac_ext
11901 if $ac_preproc_ok; then
11902   :
11903 else
11904   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11905 See \`config.log' for more details." >&5
11906 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11907 See \`config.log' for more details." >&2;}
11908    { (exit 1); exit 1; }; }
11909 fi
11910
11911 ac_ext=c
11912 ac_cpp='$CPP $CPPFLAGS'
11913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11916
11917
11918 case $host_os in
11919   *mingw32* ) ac_cv_mingw32=yes ;;
11920   *cygwin* ) ac_cv_cygwin=yes ;;
11921 esac
11922
11923
11924
11925
11926 cat >>confdefs.h <<_ACEOF
11927 #define EXEEXT "${EXEEXT}"
11928 _ACEOF
11929
11930
11931 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11932 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11933 if test "${ac_cv_lib_be_be_app+set}" = set; then
11934   echo $ECHO_N "(cached) $ECHO_C" >&6
11935 else
11936   ac_check_lib_save_LIBS=$LIBS
11937 LIBS="-lbe -lroot -lnet $LIBS"
11938 cat >conftest.$ac_ext <<_ACEOF
11939 /* confdefs.h.  */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h.  */
11944
11945 /* Override any gcc2 internal prototype to avoid an error.  */
11946 #ifdef __cplusplus
11947 extern "C"
11948 #endif
11949 /* We use char because int might match the return type of a gcc2
11950    builtin and then its argument prototype would still apply.  */
11951 char be_app ();
11952 int
11953 main ()
11954 {
11955 be_app ();
11956   ;
11957   return 0;
11958 }
11959 _ACEOF
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962   (eval $ac_link) 2>conftest.er1
11963   ac_status=$?
11964   grep -v '^ *+' conftest.er1 >conftest.err
11965   rm -f conftest.er1
11966   cat conftest.err >&5
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); } &&
11969          { ac_try='test -z "$ac_c_werror_flag"
11970                          || test ! -s conftest.err'
11971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972   (eval $ac_try) 2>&5
11973   ac_status=$?
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); }; } &&
11976          { ac_try='test -s conftest$ac_exeext'
11977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978   (eval $ac_try) 2>&5
11979   ac_status=$?
11980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981   (exit $ac_status); }; }; then
11982   ac_cv_lib_be_be_app=yes
11983 else
11984   echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987 ac_cv_lib_be_be_app=no
11988 fi
11989 rm -f conftest.err conftest.$ac_objext \
11990       conftest$ac_exeext conftest.$ac_ext
11991 LIBS=$ac_check_lib_save_LIBS
11992 fi
11993 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11994 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11995 if test $ac_cv_lib_be_be_app = yes; then
11996   LIBS="$LIBS -lbe -lroot -lnet"
11997 else
11998   :
11999 fi
12000
12001
12002 ac_ext=c
12003 ac_cpp='$CPP $CPPFLAGS'
12004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12007 if test -n "$ac_tool_prefix"; then
12008   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12009 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12010 echo "$as_me:$LINENO: checking for $ac_word" >&5
12011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12012 if test "${ac_cv_prog_CC+set}" = set; then
12013   echo $ECHO_N "(cached) $ECHO_C" >&6
12014 else
12015   if test -n "$CC"; then
12016   ac_cv_prog_CC="$CC" # Let the user override the test.
12017 else
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12020 do
12021   IFS=$as_save_IFS
12022   test -z "$as_dir" && as_dir=.
12023   for ac_exec_ext in '' $ac_executable_extensions; do
12024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12025     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12027     break 2
12028   fi
12029 done
12030 done
12031
12032 fi
12033 fi
12034 CC=$ac_cv_prog_CC
12035 if test -n "$CC"; then
12036   echo "$as_me:$LINENO: result: $CC" >&5
12037 echo "${ECHO_T}$CC" >&6
12038 else
12039   echo "$as_me:$LINENO: result: no" >&5
12040 echo "${ECHO_T}no" >&6
12041 fi
12042
12043 fi
12044 if test -z "$ac_cv_prog_CC"; then
12045   ac_ct_CC=$CC
12046   # Extract the first word of "gcc", so it can be a program name with args.
12047 set dummy gcc; ac_word=$2
12048 echo "$as_me:$LINENO: checking for $ac_word" >&5
12049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12051   echo $ECHO_N "(cached) $ECHO_C" >&6
12052 else
12053   if test -n "$ac_ct_CC"; then
12054   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12055 else
12056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12057 for as_dir in $PATH
12058 do
12059   IFS=$as_save_IFS
12060   test -z "$as_dir" && as_dir=.
12061   for ac_exec_ext in '' $ac_executable_extensions; do
12062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12063     ac_cv_prog_ac_ct_CC="gcc"
12064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12065     break 2
12066   fi
12067 done
12068 done
12069
12070 fi
12071 fi
12072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12073 if test -n "$ac_ct_CC"; then
12074   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12075 echo "${ECHO_T}$ac_ct_CC" >&6
12076 else
12077   echo "$as_me:$LINENO: result: no" >&5
12078 echo "${ECHO_T}no" >&6
12079 fi
12080
12081   CC=$ac_ct_CC
12082 else
12083   CC="$ac_cv_prog_CC"
12084 fi
12085
12086 if test -z "$CC"; then
12087   if test -n "$ac_tool_prefix"; then
12088   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12089 set dummy ${ac_tool_prefix}cc; ac_word=$2
12090 echo "$as_me:$LINENO: checking for $ac_word" >&5
12091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12092 if test "${ac_cv_prog_CC+set}" = set; then
12093   echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095   if test -n "$CC"; then
12096   ac_cv_prog_CC="$CC" # Let the user override the test.
12097 else
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12100 do
12101   IFS=$as_save_IFS
12102   test -z "$as_dir" && as_dir=.
12103   for ac_exec_ext in '' $ac_executable_extensions; do
12104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12105     ac_cv_prog_CC="${ac_tool_prefix}cc"
12106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12107     break 2
12108   fi
12109 done
12110 done
12111
12112 fi
12113 fi
12114 CC=$ac_cv_prog_CC
12115 if test -n "$CC"; then
12116   echo "$as_me:$LINENO: result: $CC" >&5
12117 echo "${ECHO_T}$CC" >&6
12118 else
12119   echo "$as_me:$LINENO: result: no" >&5
12120 echo "${ECHO_T}no" >&6
12121 fi
12122
12123 fi
12124 if test -z "$ac_cv_prog_CC"; then
12125   ac_ct_CC=$CC
12126   # Extract the first word of "cc", so it can be a program name with args.
12127 set dummy cc; ac_word=$2
12128 echo "$as_me:$LINENO: checking for $ac_word" >&5
12129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12130 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12131   echo $ECHO_N "(cached) $ECHO_C" >&6
12132 else
12133   if test -n "$ac_ct_CC"; then
12134   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12135 else
12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $PATH
12138 do
12139   IFS=$as_save_IFS
12140   test -z "$as_dir" && as_dir=.
12141   for ac_exec_ext in '' $ac_executable_extensions; do
12142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12143     ac_cv_prog_ac_ct_CC="cc"
12144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12145     break 2
12146   fi
12147 done
12148 done
12149
12150 fi
12151 fi
12152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12153 if test -n "$ac_ct_CC"; then
12154   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12155 echo "${ECHO_T}$ac_ct_CC" >&6
12156 else
12157   echo "$as_me:$LINENO: result: no" >&5
12158 echo "${ECHO_T}no" >&6
12159 fi
12160
12161   CC=$ac_ct_CC
12162 else
12163   CC="$ac_cv_prog_CC"
12164 fi
12165
12166 fi
12167 if test -z "$CC"; then
12168   # Extract the first word of "cc", so it can be a program name with args.
12169 set dummy cc; ac_word=$2
12170 echo "$as_me:$LINENO: checking for $ac_word" >&5
12171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12172 if test "${ac_cv_prog_CC+set}" = set; then
12173   echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175   if test -n "$CC"; then
12176   ac_cv_prog_CC="$CC" # Let the user override the test.
12177 else
12178   ac_prog_rejected=no
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12181 do
12182   IFS=$as_save_IFS
12183   test -z "$as_dir" && as_dir=.
12184   for ac_exec_ext in '' $ac_executable_extensions; do
12185   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12186     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12187        ac_prog_rejected=yes
12188        continue
12189      fi
12190     ac_cv_prog_CC="cc"
12191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12192     break 2
12193   fi
12194 done
12195 done
12196
12197 if test $ac_prog_rejected = yes; then
12198   # We found a bogon in the path, so make sure we never use it.
12199   set dummy $ac_cv_prog_CC
12200   shift
12201   if test $# != 0; then
12202     # We chose a different compiler from the bogus one.
12203     # However, it has the same basename, so the bogon will be chosen
12204     # first if we set CC to just the basename; use the full file name.
12205     shift
12206     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12207   fi
12208 fi
12209 fi
12210 fi
12211 CC=$ac_cv_prog_CC
12212 if test -n "$CC"; then
12213   echo "$as_me:$LINENO: result: $CC" >&5
12214 echo "${ECHO_T}$CC" >&6
12215 else
12216   echo "$as_me:$LINENO: result: no" >&5
12217 echo "${ECHO_T}no" >&6
12218 fi
12219
12220 fi
12221 if test -z "$CC"; then
12222   if test -n "$ac_tool_prefix"; then
12223   for ac_prog in cl
12224   do
12225     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12227 echo "$as_me:$LINENO: checking for $ac_word" >&5
12228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12229 if test "${ac_cv_prog_CC+set}" = set; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   if test -n "$CC"; then
12233   ac_cv_prog_CC="$CC" # Let the user override the test.
12234 else
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12237 do
12238   IFS=$as_save_IFS
12239   test -z "$as_dir" && as_dir=.
12240   for ac_exec_ext in '' $ac_executable_extensions; do
12241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12244     break 2
12245   fi
12246 done
12247 done
12248
12249 fi
12250 fi
12251 CC=$ac_cv_prog_CC
12252 if test -n "$CC"; then
12253   echo "$as_me:$LINENO: result: $CC" >&5
12254 echo "${ECHO_T}$CC" >&6
12255 else
12256   echo "$as_me:$LINENO: result: no" >&5
12257 echo "${ECHO_T}no" >&6
12258 fi
12259
12260     test -n "$CC" && break
12261   done
12262 fi
12263 if test -z "$CC"; then
12264   ac_ct_CC=$CC
12265   for ac_prog in cl
12266 do
12267   # Extract the first word of "$ac_prog", so it can be a program name with args.
12268 set dummy $ac_prog; ac_word=$2
12269 echo "$as_me:$LINENO: checking for $ac_word" >&5
12270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12271 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12272   echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274   if test -n "$ac_ct_CC"; then
12275   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12276 else
12277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12278 for as_dir in $PATH
12279 do
12280   IFS=$as_save_IFS
12281   test -z "$as_dir" && as_dir=.
12282   for ac_exec_ext in '' $ac_executable_extensions; do
12283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12284     ac_cv_prog_ac_ct_CC="$ac_prog"
12285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12286     break 2
12287   fi
12288 done
12289 done
12290
12291 fi
12292 fi
12293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12294 if test -n "$ac_ct_CC"; then
12295   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12296 echo "${ECHO_T}$ac_ct_CC" >&6
12297 else
12298   echo "$as_me:$LINENO: result: no" >&5
12299 echo "${ECHO_T}no" >&6
12300 fi
12301
12302   test -n "$ac_ct_CC" && break
12303 done
12304
12305   CC=$ac_ct_CC
12306 fi
12307
12308 fi
12309
12310
12311 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12312 See \`config.log' for more details." >&5
12313 echo "$as_me: error: no acceptable C compiler found in \$PATH
12314 See \`config.log' for more details." >&2;}
12315    { (exit 1); exit 1; }; }
12316
12317 # Provide some information about the compiler.
12318 echo "$as_me:$LINENO:" \
12319      "checking for C compiler version" >&5
12320 ac_compiler=`set X $ac_compile; echo $2`
12321 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12322   (eval $ac_compiler --version </dev/null >&5) 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }
12326 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12327   (eval $ac_compiler -v </dev/null >&5) 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); }
12331 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12332   (eval $ac_compiler -V </dev/null >&5) 2>&5
12333   ac_status=$?
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); }
12336
12337 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12338 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12339 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12340   echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342   cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h.  */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h.  */
12348
12349 int
12350 main ()
12351 {
12352 #ifndef __GNUC__
12353        choke me
12354 #endif
12355
12356   ;
12357   return 0;
12358 }
12359 _ACEOF
12360 rm -f conftest.$ac_objext
12361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12362   (eval $ac_compile) 2>conftest.er1
12363   ac_status=$?
12364   grep -v '^ *+' conftest.er1 >conftest.err
12365   rm -f conftest.er1
12366   cat conftest.err >&5
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); } &&
12369          { ac_try='test -z "$ac_c_werror_flag"
12370                          || test ! -s conftest.err'
12371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372   (eval $ac_try) 2>&5
12373   ac_status=$?
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); }; } &&
12376          { ac_try='test -s conftest.$ac_objext'
12377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378   (eval $ac_try) 2>&5
12379   ac_status=$?
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); }; }; then
12382   ac_compiler_gnu=yes
12383 else
12384   echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12386
12387 ac_compiler_gnu=no
12388 fi
12389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12390 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12391
12392 fi
12393 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12394 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12395 GCC=`test $ac_compiler_gnu = yes && echo yes`
12396 ac_test_CFLAGS=${CFLAGS+set}
12397 ac_save_CFLAGS=$CFLAGS
12398 CFLAGS="-g"
12399 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12400 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12401 if test "${ac_cv_prog_cc_g+set}" = set; then
12402   echo $ECHO_N "(cached) $ECHO_C" >&6
12403 else
12404   cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h.  */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h.  */
12410
12411 int
12412 main ()
12413 {
12414
12415   ;
12416   return 0;
12417 }
12418 _ACEOF
12419 rm -f conftest.$ac_objext
12420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12421   (eval $ac_compile) 2>conftest.er1
12422   ac_status=$?
12423   grep -v '^ *+' conftest.er1 >conftest.err
12424   rm -f conftest.er1
12425   cat conftest.err >&5
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); } &&
12428          { ac_try='test -z "$ac_c_werror_flag"
12429                          || test ! -s conftest.err'
12430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431   (eval $ac_try) 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; } &&
12435          { ac_try='test -s conftest.$ac_objext'
12436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437   (eval $ac_try) 2>&5
12438   ac_status=$?
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); }; }; then
12441   ac_cv_prog_cc_g=yes
12442 else
12443   echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446 ac_cv_prog_cc_g=no
12447 fi
12448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12449 fi
12450 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12451 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12452 if test "$ac_test_CFLAGS" = set; then
12453   CFLAGS=$ac_save_CFLAGS
12454 elif test $ac_cv_prog_cc_g = yes; then
12455   if test "$GCC" = yes; then
12456     CFLAGS="-g -O2"
12457   else
12458     CFLAGS="-g"
12459   fi
12460 else
12461   if test "$GCC" = yes; then
12462     CFLAGS="-O2"
12463   else
12464     CFLAGS=
12465   fi
12466 fi
12467 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12468 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12469 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12470   echo $ECHO_N "(cached) $ECHO_C" >&6
12471 else
12472   ac_cv_prog_cc_stdc=no
12473 ac_save_CC=$CC
12474 cat >conftest.$ac_ext <<_ACEOF
12475 /* confdefs.h.  */
12476 _ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h.  */
12480 #include <stdarg.h>
12481 #include <stdio.h>
12482 #include <sys/types.h>
12483 #include <sys/stat.h>
12484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12485 struct buf { int x; };
12486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12487 static char *e (p, i)
12488      char **p;
12489      int i;
12490 {
12491   return p[i];
12492 }
12493 static char *f (char * (*g) (char **, int), char **p, ...)
12494 {
12495   char *s;
12496   va_list v;
12497   va_start (v,p);
12498   s = g (p, va_arg (v,int));
12499   va_end (v);
12500   return s;
12501 }
12502
12503 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12504    function prototypes and stuff, but not '\xHH' hex character constants.
12505    These don't provoke an error unfortunately, instead are silently treated
12506    as 'x'.  The following induces an error, until -std1 is added to get
12507    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12508    array size at least.  It's necessary to write '\x00'==0 to get something
12509    that's true only with -std1.  */
12510 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12511
12512 int test (int i, double x);
12513 struct s1 {int (*f) (int a);};
12514 struct s2 {int (*f) (double a);};
12515 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12516 int argc;
12517 char **argv;
12518 int
12519 main ()
12520 {
12521 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12522   ;
12523   return 0;
12524 }
12525 _ACEOF
12526 # Don't try gcc -ansi; that turns off useful extensions and
12527 # breaks some systems' header files.
12528 # AIX                   -qlanglvl=ansi
12529 # Ultrix and OSF/1      -std1
12530 # HP-UX 10.20 and later -Ae
12531 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12532 # SVR4                  -Xc -D__EXTENSIONS__
12533 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12534 do
12535   CC="$ac_save_CC $ac_arg"
12536   rm -f conftest.$ac_objext
12537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12538   (eval $ac_compile) 2>conftest.er1
12539   ac_status=$?
12540   grep -v '^ *+' conftest.er1 >conftest.err
12541   rm -f conftest.er1
12542   cat conftest.err >&5
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); } &&
12545          { ac_try='test -z "$ac_c_werror_flag"
12546                          || test ! -s conftest.err'
12547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548   (eval $ac_try) 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); }; } &&
12552          { ac_try='test -s conftest.$ac_objext'
12553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554   (eval $ac_try) 2>&5
12555   ac_status=$?
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); }; }; then
12558   ac_cv_prog_cc_stdc=$ac_arg
12559 break
12560 else
12561   echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12563
12564 fi
12565 rm -f conftest.err conftest.$ac_objext
12566 done
12567 rm -f conftest.$ac_ext conftest.$ac_objext
12568 CC=$ac_save_CC
12569
12570 fi
12571
12572 case "x$ac_cv_prog_cc_stdc" in
12573   x|xno)
12574     echo "$as_me:$LINENO: result: none needed" >&5
12575 echo "${ECHO_T}none needed" >&6 ;;
12576   *)
12577     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12578 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12579     CC="$CC $ac_cv_prog_cc_stdc" ;;
12580 esac
12581
12582 # Some people use a C++ compiler to compile C.  Since we use `exit',
12583 # in C++ we need to declare it.  In case someone uses the same compiler
12584 # for both compiling C and C++ we need to have the C++ compiler decide
12585 # the declaration of exit, since it's the most demanding environment.
12586 cat >conftest.$ac_ext <<_ACEOF
12587 #ifndef __cplusplus
12588   choke me
12589 #endif
12590 _ACEOF
12591 rm -f conftest.$ac_objext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12593   (eval $ac_compile) 2>conftest.er1
12594   ac_status=$?
12595   grep -v '^ *+' conftest.er1 >conftest.err
12596   rm -f conftest.er1
12597   cat conftest.err >&5
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); } &&
12600          { ac_try='test -z "$ac_c_werror_flag"
12601                          || test ! -s conftest.err'
12602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603   (eval $ac_try) 2>&5
12604   ac_status=$?
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); }; } &&
12607          { ac_try='test -s conftest.$ac_objext'
12608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609   (eval $ac_try) 2>&5
12610   ac_status=$?
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); }; }; then
12613   for ac_declaration in \
12614    '' \
12615    'extern "C" void std::exit (int) throw (); using std::exit;' \
12616    'extern "C" void std::exit (int); using std::exit;' \
12617    'extern "C" void exit (int) throw ();' \
12618    'extern "C" void exit (int);' \
12619    'void exit (int);'
12620 do
12621   cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h.  */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h.  */
12627 $ac_declaration
12628 #include <stdlib.h>
12629 int
12630 main ()
12631 {
12632 exit (42);
12633   ;
12634   return 0;
12635 }
12636 _ACEOF
12637 rm -f conftest.$ac_objext
12638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12639   (eval $ac_compile) 2>conftest.er1
12640   ac_status=$?
12641   grep -v '^ *+' conftest.er1 >conftest.err
12642   rm -f conftest.er1
12643   cat conftest.err >&5
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); } &&
12646          { ac_try='test -z "$ac_c_werror_flag"
12647                          || test ! -s conftest.err'
12648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649   (eval $ac_try) 2>&5
12650   ac_status=$?
12651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652   (exit $ac_status); }; } &&
12653          { ac_try='test -s conftest.$ac_objext'
12654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655   (eval $ac_try) 2>&5
12656   ac_status=$?
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); }; }; then
12659   :
12660 else
12661   echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12663
12664 continue
12665 fi
12666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12667   cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h.  */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h.  */
12673 $ac_declaration
12674 int
12675 main ()
12676 {
12677 exit (42);
12678   ;
12679   return 0;
12680 }
12681 _ACEOF
12682 rm -f conftest.$ac_objext
12683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12684   (eval $ac_compile) 2>conftest.er1
12685   ac_status=$?
12686   grep -v '^ *+' conftest.er1 >conftest.err
12687   rm -f conftest.er1
12688   cat conftest.err >&5
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); } &&
12691          { ac_try='test -z "$ac_c_werror_flag"
12692                          || test ! -s conftest.err'
12693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694   (eval $ac_try) 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; } &&
12698          { ac_try='test -s conftest.$ac_objext'
12699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700   (eval $ac_try) 2>&5
12701   ac_status=$?
12702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703   (exit $ac_status); }; }; then
12704   break
12705 else
12706   echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.$ac_ext >&5
12708
12709 fi
12710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12711 done
12712 rm -f conftest*
12713 if test -n "$ac_declaration"; then
12714   echo '#ifdef __cplusplus' >>confdefs.h
12715   echo $ac_declaration      >>confdefs.h
12716   echo '#endif'             >>confdefs.h
12717 fi
12718
12719 else
12720   echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 fi
12724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12725 ac_ext=c
12726 ac_cpp='$CPP $CPPFLAGS'
12727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12730
12731 depcc="$CC"   am_compiler_list=
12732
12733 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12734 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12735 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12736   echo $ECHO_N "(cached) $ECHO_C" >&6
12737 else
12738   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12739   # We make a subdir and do the tests there.  Otherwise we can end up
12740   # making bogus files that we don't know about and never remove.  For
12741   # instance it was reported that on HP-UX the gcc test will end up
12742   # making a dummy file named `D' -- because `-MD' means `put the output
12743   # in D'.
12744   mkdir conftest.dir
12745   # Copy depcomp to subdir because otherwise we won't find it if we're
12746   # using a relative directory.
12747   cp "$am_depcomp" conftest.dir
12748   cd conftest.dir
12749   # We will build objects and dependencies in a subdirectory because
12750   # it helps to detect inapplicable dependency modes.  For instance
12751   # both Tru64's cc and ICC support -MD to output dependencies as a
12752   # side effect of compilation, but ICC will put the dependencies in
12753   # the current directory while Tru64 will put them in the object
12754   # directory.
12755   mkdir sub
12756
12757   am_cv_CC_dependencies_compiler_type=none
12758   if test "$am_compiler_list" = ""; then
12759      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12760   fi
12761   for depmode in $am_compiler_list; do
12762     # Setup a source with many dependencies, because some compilers
12763     # like to wrap large dependency lists on column 80 (with \), and
12764     # we should not choose a depcomp mode which is confused by this.
12765     #
12766     # We need to recreate these files for each test, as the compiler may
12767     # overwrite some of them when testing with obscure command lines.
12768     # This happens at least with the AIX C compiler.
12769     : > sub/conftest.c
12770     for i in 1 2 3 4 5 6; do
12771       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12772       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12773       # Solaris 8's {/usr,}/bin/sh.
12774       touch sub/conftst$i.h
12775     done
12776     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12777
12778     case $depmode in
12779     nosideeffect)
12780       # after this tag, mechanisms are not by side-effect, so they'll
12781       # only be used when explicitly requested
12782       if test "x$enable_dependency_tracking" = xyes; then
12783         continue
12784       else
12785         break
12786       fi
12787       ;;
12788     none) break ;;
12789     esac
12790     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12791     # mode.  It turns out that the SunPro C++ compiler does not properly
12792     # handle `-M -o', and we need to detect this.
12793     if depmode=$depmode \
12794        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12795        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12796        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12797          >/dev/null 2>conftest.err &&
12798        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12799        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12800        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12801       # icc doesn't choke on unknown options, it will just issue warnings
12802       # or remarks (even with -Werror).  So we grep stderr for any message
12803       # that says an option was ignored or not supported.
12804       # When given -MP, icc 7.0 and 7.1 complain thusly:
12805       #   icc: Command line warning: ignoring option '-M'; no argument required
12806       # The diagnosis changed in icc 8.0:
12807       #   icc: Command line remark: option '-MP' not supported
12808       if (grep 'ignoring option' conftest.err ||
12809           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12810         am_cv_CC_dependencies_compiler_type=$depmode
12811         break
12812       fi
12813     fi
12814   done
12815
12816   cd ..
12817   rm -rf conftest.dir
12818 else
12819   am_cv_CC_dependencies_compiler_type=none
12820 fi
12821
12822 fi
12823 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12824 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12825 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12826
12827
12828
12829 if
12830   test "x$enable_dependency_tracking" != xno \
12831   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12832   am__fastdepCC_TRUE=
12833   am__fastdepCC_FALSE='#'
12834 else
12835   am__fastdepCC_TRUE='#'
12836   am__fastdepCC_FALSE=
12837 fi
12838
12839
12840 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12841         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12842 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12843    { (exit 1); exit 1; }; }
12844 fi
12845
12846 # test for make depend flag
12847 OL_MKDEP=
12848 OL_MKDEP_FLAGS=
12849 if test -z "${MKDEP}"; then
12850         OL_MKDEP="${CC-cc}"
12851         if test -z "${MKDEP_FLAGS}"; then
12852                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12853 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12854 if test "${ol_cv_mkdep+set}" = set; then
12855   echo $ECHO_N "(cached) $ECHO_C" >&6
12856 else
12857
12858                         ol_cv_mkdep=no
12859                         for flag in "-M" "-xM"; do
12860                                 cat > conftest.c <<EOF
12861  noCode;
12862 EOF
12863                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865   (eval $ac_try) 2>&5
12866   ac_status=$?
12867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868   (exit $ac_status); }; } \
12869                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12870                                 then
12871                                         if test ! -f conftest."${ac_object}" ; then
12872                                                 ol_cv_mkdep=$flag
12873                                                 OL_MKDEP_FLAGS="$flag"
12874                                                 break
12875                                         fi
12876                                 fi
12877                         done
12878                         rm -f conftest*
12879
12880 fi
12881 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12882 echo "${ECHO_T}$ol_cv_mkdep" >&6
12883         else
12884                 cc_cv_mkdep=yes
12885                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12886         fi
12887 else
12888         cc_cv_mkdep=yes
12889         OL_MKDEP="${MKDEP}"
12890         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12891 fi
12892
12893
12894
12895 if test "${ol_cv_mkdep}" = no ; then
12896         # this will soon become an error
12897         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12898 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12899 fi
12900
12901 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12902 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12903 if test "${ac_cv_lib_s_afopen+set}" = set; then
12904   echo $ECHO_N "(cached) $ECHO_C" >&6
12905 else
12906   ac_check_lib_save_LIBS=$LIBS
12907 LIBS="-ls  $LIBS"
12908 cat >conftest.$ac_ext <<_ACEOF
12909 /* confdefs.h.  */
12910 _ACEOF
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h.  */
12914
12915 /* Override any gcc2 internal prototype to avoid an error.  */
12916 #ifdef __cplusplus
12917 extern "C"
12918 #endif
12919 /* We use char because int might match the return type of a gcc2
12920    builtin and then its argument prototype would still apply.  */
12921 char afopen ();
12922 int
12923 main ()
12924 {
12925 afopen ();
12926   ;
12927   return 0;
12928 }
12929 _ACEOF
12930 rm -f conftest.$ac_objext conftest$ac_exeext
12931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12932   (eval $ac_link) 2>conftest.er1
12933   ac_status=$?
12934   grep -v '^ *+' conftest.er1 >conftest.err
12935   rm -f conftest.er1
12936   cat conftest.err >&5
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); } &&
12939          { ac_try='test -z "$ac_c_werror_flag"
12940                          || test ! -s conftest.err'
12941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942   (eval $ac_try) 2>&5
12943   ac_status=$?
12944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945   (exit $ac_status); }; } &&
12946          { ac_try='test -s conftest$ac_exeext'
12947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948   (eval $ac_try) 2>&5
12949   ac_status=$?
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); }; }; then
12952   ac_cv_lib_s_afopen=yes
12953 else
12954   echo "$as_me: failed program was:" >&5
12955 sed 's/^/| /' conftest.$ac_ext >&5
12956
12957 ac_cv_lib_s_afopen=no
12958 fi
12959 rm -f conftest.err conftest.$ac_objext \
12960       conftest$ac_exeext conftest.$ac_ext
12961 LIBS=$ac_check_lib_save_LIBS
12962 fi
12963 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12964 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12965 if test $ac_cv_lib_s_afopen = yes; then
12966
12967         AUTH_LIBS=-ls
12968
12969 cat >>confdefs.h <<\_ACEOF
12970 #define HAVE_AIX_SECURITY 1
12971 _ACEOF
12972
12973
12974 fi
12975
12976
12977 case "$target" in
12978 *-ibm-openedition)
12979         ac_cv_func_getopt=no
12980
12981 cat >>confdefs.h <<\_ACEOF
12982 #define BOTH_STRINGS_H 1
12983 _ACEOF
12984
12985         ;;
12986 esac
12987
12988 ol_link_modules=no
12989 WITH_MODULES_ENABLED=no
12990 if test $ol_enable_modules != no ; then
12991
12992 for ac_header in ltdl.h
12993 do
12994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12996   echo "$as_me:$LINENO: checking for $ac_header" >&5
12997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12999   echo $ECHO_N "(cached) $ECHO_C" >&6
13000 fi
13001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13003 else
13004   # Is the header compilable?
13005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13007 cat >conftest.$ac_ext <<_ACEOF
13008 /* confdefs.h.  */
13009 _ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h.  */
13013 $ac_includes_default
13014 #include <$ac_header>
13015 _ACEOF
13016 rm -f conftest.$ac_objext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13018   (eval $ac_compile) 2>conftest.er1
13019   ac_status=$?
13020   grep -v '^ *+' conftest.er1 >conftest.err
13021   rm -f conftest.er1
13022   cat conftest.err >&5
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); } &&
13025          { ac_try='test -z "$ac_c_werror_flag"
13026                          || test ! -s conftest.err'
13027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028   (eval $ac_try) 2>&5
13029   ac_status=$?
13030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031   (exit $ac_status); }; } &&
13032          { ac_try='test -s conftest.$ac_objext'
13033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034   (eval $ac_try) 2>&5
13035   ac_status=$?
13036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037   (exit $ac_status); }; }; then
13038   ac_header_compiler=yes
13039 else
13040   echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13042
13043 ac_header_compiler=no
13044 fi
13045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13047 echo "${ECHO_T}$ac_header_compiler" >&6
13048
13049 # Is the header present?
13050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13052 cat >conftest.$ac_ext <<_ACEOF
13053 /* confdefs.h.  */
13054 _ACEOF
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h.  */
13058 #include <$ac_header>
13059 _ACEOF
13060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13062   ac_status=$?
13063   grep -v '^ *+' conftest.er1 >conftest.err
13064   rm -f conftest.er1
13065   cat conftest.err >&5
13066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); } >/dev/null; then
13068   if test -s conftest.err; then
13069     ac_cpp_err=$ac_c_preproc_warn_flag
13070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13071   else
13072     ac_cpp_err=
13073   fi
13074 else
13075   ac_cpp_err=yes
13076 fi
13077 if test -z "$ac_cpp_err"; then
13078   ac_header_preproc=yes
13079 else
13080   echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13082
13083   ac_header_preproc=no
13084 fi
13085 rm -f conftest.err conftest.$ac_ext
13086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13087 echo "${ECHO_T}$ac_header_preproc" >&6
13088
13089 # So?  What about this header?
13090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13091   yes:no: )
13092     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13096     ac_header_preproc=yes
13097     ;;
13098   no:yes:* )
13099     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13101     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13102 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13103     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13105     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13106 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13109     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13111     (
13112       cat <<\_ASBOX
13113 ## ------------------------------------------ ##
13114 ## Report this to the AC_PACKAGE_NAME lists.  ##
13115 ## ------------------------------------------ ##
13116 _ASBOX
13117     ) |
13118       sed "s/^/$as_me: WARNING:     /" >&2
13119     ;;
13120 esac
13121 echo "$as_me:$LINENO: checking for $ac_header" >&5
13122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13124   echo $ECHO_N "(cached) $ECHO_C" >&6
13125 else
13126   eval "$as_ac_Header=\$ac_header_preproc"
13127 fi
13128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13130
13131 fi
13132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13133   cat >>confdefs.h <<_ACEOF
13134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13135 _ACEOF
13136
13137 fi
13138
13139 done
13140
13141
13142         if test $ac_cv_header_ltdl_h = no ; then
13143                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13144 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13145    { (exit 1); exit 1; }; }
13146         fi
13147
13148         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13149 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13150 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13151   echo $ECHO_N "(cached) $ECHO_C" >&6
13152 else
13153   ac_check_lib_save_LIBS=$LIBS
13154 LIBS="-lltdl  $LIBS"
13155 cat >conftest.$ac_ext <<_ACEOF
13156 /* confdefs.h.  */
13157 _ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h.  */
13161
13162 /* Override any gcc2 internal prototype to avoid an error.  */
13163 #ifdef __cplusplus
13164 extern "C"
13165 #endif
13166 /* We use char because int might match the return type of a gcc2
13167    builtin and then its argument prototype would still apply.  */
13168 char lt_dlinit ();
13169 int
13170 main ()
13171 {
13172 lt_dlinit ();
13173   ;
13174   return 0;
13175 }
13176 _ACEOF
13177 rm -f conftest.$ac_objext conftest$ac_exeext
13178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13179   (eval $ac_link) 2>conftest.er1
13180   ac_status=$?
13181   grep -v '^ *+' conftest.er1 >conftest.err
13182   rm -f conftest.er1
13183   cat conftest.err >&5
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); } &&
13186          { ac_try='test -z "$ac_c_werror_flag"
13187                          || test ! -s conftest.err'
13188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189   (eval $ac_try) 2>&5
13190   ac_status=$?
13191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192   (exit $ac_status); }; } &&
13193          { ac_try='test -s conftest$ac_exeext'
13194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13195   (eval $ac_try) 2>&5
13196   ac_status=$?
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); }; }; then
13199   ac_cv_lib_ltdl_lt_dlinit=yes
13200 else
13201   echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13203
13204 ac_cv_lib_ltdl_lt_dlinit=no
13205 fi
13206 rm -f conftest.err conftest.$ac_objext \
13207       conftest$ac_exeext conftest.$ac_ext
13208 LIBS=$ac_check_lib_save_LIBS
13209 fi
13210 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13211 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13212 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13213
13214                 MODULES_LIBS=-lltdl
13215
13216 cat >>confdefs.h <<\_ACEOF
13217 #define HAVE_LIBLTDL 1
13218 _ACEOF
13219
13220
13221 fi
13222
13223
13224         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13225                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13226 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13227    { (exit 1); exit 1; }; }
13228         fi
13229         ol_link_modules=yes
13230         WITH_MODULES_ENABLED=yes
13231
13232 else
13233         for i in $Backends; do
13234                 eval "ol_tmp=\$ol_enable_$i"
13235                 if test $ol_tmp = mod ; then
13236                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13237 echo "$as_me: WARNING: building static $i backend" >&2;}
13238                         eval "ol_enable_$i=yes"
13239                 fi
13240         done
13241         for i in $Overlays; do
13242                 eval "ol_tmp=\$ol_enable_$i"
13243                 if test $ol_tmp = mod ; then
13244                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13245 echo "$as_me: WARNING: building static $i overlay" >&2;}
13246                         eval "ol_enable_$i=yes"
13247                 fi
13248         done
13249 fi
13250
13251 # test for EBCDIC
13252 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13253 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13254 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13255   echo $ECHO_N "(cached) $ECHO_C" >&6
13256 else
13257
13258         cat >conftest.$ac_ext <<_ACEOF
13259 /* confdefs.h.  */
13260 _ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h.  */
13264
13265 #if !('M' == 0xd4)
13266 #include <__ASCII__/generate_error.h>
13267 #endif
13268
13269 _ACEOF
13270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13271   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13272   ac_status=$?
13273   grep -v '^ *+' conftest.er1 >conftest.err
13274   rm -f conftest.er1
13275   cat conftest.err >&5
13276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277   (exit $ac_status); } >/dev/null; then
13278   if test -s conftest.err; then
13279     ac_cpp_err=$ac_c_preproc_warn_flag
13280     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13281   else
13282     ac_cpp_err=
13283   fi
13284 else
13285   ac_cpp_err=yes
13286 fi
13287 if test -z "$ac_cpp_err"; then
13288   ol_cv_cpp_ebcdic=yes
13289 else
13290   echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13292
13293   ol_cv_cpp_ebcdic=no
13294 fi
13295 rm -f conftest.err conftest.$ac_ext
13296 fi
13297 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13298 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13299 if test $ol_cv_cpp_ebcdic = yes ; then
13300
13301 cat >>confdefs.h <<\_ACEOF
13302 #define HAVE_EBCDIC 1
13303 _ACEOF
13304
13305 fi
13306
13307 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13308 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13309 if test "${ol_cv_header_stdc+set}" = set; then
13310   echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312   cat >conftest.$ac_ext <<_ACEOF
13313 /* confdefs.h.  */
13314 _ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h.  */
13318 #include <stdlib.h>
13319 #include <stdarg.h>
13320 #include <string.h>
13321 #include <float.h>
13322 _ACEOF
13323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13325   ac_status=$?
13326   grep -v '^ *+' conftest.er1 >conftest.err
13327   rm -f conftest.er1
13328   cat conftest.err >&5
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); } >/dev/null; then
13331   if test -s conftest.err; then
13332     ac_cpp_err=$ac_c_preproc_warn_flag
13333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13334   else
13335     ac_cpp_err=
13336   fi
13337 else
13338   ac_cpp_err=yes
13339 fi
13340 if test -z "$ac_cpp_err"; then
13341   ol_cv_header_stdc=yes
13342 else
13343   echo "$as_me: failed program was:" >&5
13344 sed 's/^/| /' conftest.$ac_ext >&5
13345
13346   ol_cv_header_stdc=no
13347 fi
13348 rm -f conftest.err conftest.$ac_ext
13349
13350 if test $ol_cv_header_stdc = yes; then
13351   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13352 cat >conftest.$ac_ext <<_ACEOF
13353 /* confdefs.h.  */
13354 _ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h.  */
13358 #include <string.h>
13359
13360 _ACEOF
13361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13362   $EGREP "memchr" >/dev/null 2>&1; then
13363   :
13364 else
13365   ol_cv_header_stdc=no
13366 fi
13367 rm -f conftest*
13368
13369 fi
13370
13371 if test $ol_cv_header_stdc = yes; then
13372   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13373 cat >conftest.$ac_ext <<_ACEOF
13374 /* confdefs.h.  */
13375 _ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h.  */
13379 #include <stdlib.h>
13380
13381 _ACEOF
13382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13383   $EGREP "free" >/dev/null 2>&1; then
13384   :
13385 else
13386   ol_cv_header_stdc=no
13387 fi
13388 rm -f conftest*
13389
13390 fi
13391
13392 if test $ol_cv_header_stdc = yes; then
13393   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13394 if test "$cross_compiling" = yes; then
13395   :
13396 else
13397   cat >conftest.$ac_ext <<_ACEOF
13398 /* confdefs.h.  */
13399 _ACEOF
13400 cat confdefs.h >>conftest.$ac_ext
13401 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h.  */
13403 #include <ctype.h>
13404 #ifndef HAVE_EBCDIC
13405 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13406 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13407 #else
13408 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13409                 || ('j' <= (c) && (c) <= 'r') \
13410                 || ('s' <= (c) && (c) <= 'z'))
13411 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13412 #endif
13413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13414 int main () { int i; for (i = 0; i < 256; i++)
13415 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13416 exit (0); }
13417
13418 _ACEOF
13419 rm -f conftest$ac_exeext
13420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13421   (eval $ac_link) 2>&5
13422   ac_status=$?
13423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426   (eval $ac_try) 2>&5
13427   ac_status=$?
13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429   (exit $ac_status); }; }; then
13430   :
13431 else
13432   echo "$as_me: program exited with status $ac_status" >&5
13433 echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13435
13436 ( exit $ac_status )
13437 ol_cv_header_stdc=no
13438 fi
13439 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13440 fi
13441 fi
13442 fi
13443 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13444 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13445 if test $ol_cv_header_stdc = yes; then
13446   cat >>confdefs.h <<\_ACEOF
13447 #define STDC_HEADERS 1
13448 _ACEOF
13449
13450 fi
13451 ac_cv_header_stdc=disable
13452
13453
13454 if test $ol_cv_header_stdc != yes; then
13455         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13456 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13457 fi
13458
13459
13460
13461
13462
13463
13464 ac_header_dirent=no
13465 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13466   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13467 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13468 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13470   echo $ECHO_N "(cached) $ECHO_C" >&6
13471 else
13472   cat >conftest.$ac_ext <<_ACEOF
13473 /* confdefs.h.  */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h.  */
13478 #include <sys/types.h>
13479 #include <$ac_hdr>
13480
13481 int
13482 main ()
13483 {
13484 if ((DIR *) 0)
13485 return 0;
13486   ;
13487   return 0;
13488 }
13489 _ACEOF
13490 rm -f conftest.$ac_objext
13491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13492   (eval $ac_compile) 2>conftest.er1
13493   ac_status=$?
13494   grep -v '^ *+' conftest.er1 >conftest.err
13495   rm -f conftest.er1
13496   cat conftest.err >&5
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); } &&
13499          { ac_try='test -z "$ac_c_werror_flag"
13500                          || test ! -s conftest.err'
13501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502   (eval $ac_try) 2>&5
13503   ac_status=$?
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); }; } &&
13506          { ac_try='test -s conftest.$ac_objext'
13507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508   (eval $ac_try) 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); }; }; then
13512   eval "$as_ac_Header=yes"
13513 else
13514   echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13516
13517 eval "$as_ac_Header=no"
13518 fi
13519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13520 fi
13521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13524   cat >>confdefs.h <<_ACEOF
13525 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13526 _ACEOF
13527
13528 ac_header_dirent=$ac_hdr; break
13529 fi
13530
13531 done
13532 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13533 if test $ac_header_dirent = dirent.h; then
13534   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13535 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13536 if test "${ac_cv_search_opendir+set}" = set; then
13537   echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539   ac_func_search_save_LIBS=$LIBS
13540 ac_cv_search_opendir=no
13541 cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h.  */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h.  */
13547
13548 /* Override any gcc2 internal prototype to avoid an error.  */
13549 #ifdef __cplusplus
13550 extern "C"
13551 #endif
13552 /* We use char because int might match the return type of a gcc2
13553    builtin and then its argument prototype would still apply.  */
13554 char opendir ();
13555 int
13556 main ()
13557 {
13558 opendir ();
13559   ;
13560   return 0;
13561 }
13562 _ACEOF
13563 rm -f conftest.$ac_objext conftest$ac_exeext
13564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13565   (eval $ac_link) 2>conftest.er1
13566   ac_status=$?
13567   grep -v '^ *+' conftest.er1 >conftest.err
13568   rm -f conftest.er1
13569   cat conftest.err >&5
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); } &&
13572          { ac_try='test -z "$ac_c_werror_flag"
13573                          || test ! -s conftest.err'
13574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575   (eval $ac_try) 2>&5
13576   ac_status=$?
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); }; } &&
13579          { ac_try='test -s conftest$ac_exeext'
13580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581   (eval $ac_try) 2>&5
13582   ac_status=$?
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); }; }; then
13585   ac_cv_search_opendir="none required"
13586 else
13587   echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13589
13590 fi
13591 rm -f conftest.err conftest.$ac_objext \
13592       conftest$ac_exeext conftest.$ac_ext
13593 if test "$ac_cv_search_opendir" = no; then
13594   for ac_lib in dir; do
13595     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13596     cat >conftest.$ac_ext <<_ACEOF
13597 /* confdefs.h.  */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h.  */
13602
13603 /* Override any gcc2 internal prototype to avoid an error.  */
13604 #ifdef __cplusplus
13605 extern "C"
13606 #endif
13607 /* We use char because int might match the return type of a gcc2
13608    builtin and then its argument prototype would still apply.  */
13609 char opendir ();
13610 int
13611 main ()
13612 {
13613 opendir ();
13614   ;
13615   return 0;
13616 }
13617 _ACEOF
13618 rm -f conftest.$ac_objext conftest$ac_exeext
13619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13620   (eval $ac_link) 2>conftest.er1
13621   ac_status=$?
13622   grep -v '^ *+' conftest.er1 >conftest.err
13623   rm -f conftest.er1
13624   cat conftest.err >&5
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); } &&
13627          { ac_try='test -z "$ac_c_werror_flag"
13628                          || test ! -s conftest.err'
13629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630   (eval $ac_try) 2>&5
13631   ac_status=$?
13632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); }; } &&
13634          { ac_try='test -s conftest$ac_exeext'
13635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636   (eval $ac_try) 2>&5
13637   ac_status=$?
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); }; }; then
13640   ac_cv_search_opendir="-l$ac_lib"
13641 break
13642 else
13643   echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13645
13646 fi
13647 rm -f conftest.err conftest.$ac_objext \
13648       conftest$ac_exeext conftest.$ac_ext
13649   done
13650 fi
13651 LIBS=$ac_func_search_save_LIBS
13652 fi
13653 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13654 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13655 if test "$ac_cv_search_opendir" != no; then
13656   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13657
13658 fi
13659
13660 else
13661   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13662 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13663 if test "${ac_cv_search_opendir+set}" = set; then
13664   echo $ECHO_N "(cached) $ECHO_C" >&6
13665 else
13666   ac_func_search_save_LIBS=$LIBS
13667 ac_cv_search_opendir=no
13668 cat >conftest.$ac_ext <<_ACEOF
13669 /* confdefs.h.  */
13670 _ACEOF
13671 cat confdefs.h >>conftest.$ac_ext
13672 cat >>conftest.$ac_ext <<_ACEOF
13673 /* end confdefs.h.  */
13674
13675 /* Override any gcc2 internal prototype to avoid an error.  */
13676 #ifdef __cplusplus
13677 extern "C"
13678 #endif
13679 /* We use char because int might match the return type of a gcc2
13680    builtin and then its argument prototype would still apply.  */
13681 char opendir ();
13682 int
13683 main ()
13684 {
13685 opendir ();
13686   ;
13687   return 0;
13688 }
13689 _ACEOF
13690 rm -f conftest.$ac_objext conftest$ac_exeext
13691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13692   (eval $ac_link) 2>conftest.er1
13693   ac_status=$?
13694   grep -v '^ *+' conftest.er1 >conftest.err
13695   rm -f conftest.er1
13696   cat conftest.err >&5
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); } &&
13699          { ac_try='test -z "$ac_c_werror_flag"
13700                          || test ! -s conftest.err'
13701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702   (eval $ac_try) 2>&5
13703   ac_status=$?
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); }; } &&
13706          { ac_try='test -s conftest$ac_exeext'
13707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708   (eval $ac_try) 2>&5
13709   ac_status=$?
13710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711   (exit $ac_status); }; }; then
13712   ac_cv_search_opendir="none required"
13713 else
13714   echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13716
13717 fi
13718 rm -f conftest.err conftest.$ac_objext \
13719       conftest$ac_exeext conftest.$ac_ext
13720 if test "$ac_cv_search_opendir" = no; then
13721   for ac_lib in x; do
13722     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13723     cat >conftest.$ac_ext <<_ACEOF
13724 /* confdefs.h.  */
13725 _ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h.  */
13729
13730 /* Override any gcc2 internal prototype to avoid an error.  */
13731 #ifdef __cplusplus
13732 extern "C"
13733 #endif
13734 /* We use char because int might match the return type of a gcc2
13735    builtin and then its argument prototype would still apply.  */
13736 char opendir ();
13737 int
13738 main ()
13739 {
13740 opendir ();
13741   ;
13742   return 0;
13743 }
13744 _ACEOF
13745 rm -f conftest.$ac_objext conftest$ac_exeext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13747   (eval $ac_link) 2>conftest.er1
13748   ac_status=$?
13749   grep -v '^ *+' conftest.er1 >conftest.err
13750   rm -f conftest.er1
13751   cat conftest.err >&5
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); } &&
13754          { ac_try='test -z "$ac_c_werror_flag"
13755                          || test ! -s conftest.err'
13756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757   (eval $ac_try) 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; } &&
13761          { ac_try='test -s conftest$ac_exeext'
13762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763   (eval $ac_try) 2>&5
13764   ac_status=$?
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); }; }; then
13767   ac_cv_search_opendir="-l$ac_lib"
13768 break
13769 else
13770   echo "$as_me: failed program was:" >&5
13771 sed 's/^/| /' conftest.$ac_ext >&5
13772
13773 fi
13774 rm -f conftest.err conftest.$ac_objext \
13775       conftest$ac_exeext conftest.$ac_ext
13776   done
13777 fi
13778 LIBS=$ac_func_search_save_LIBS
13779 fi
13780 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13781 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13782 if test "$ac_cv_search_opendir" != no; then
13783   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13784
13785 fi
13786
13787 fi
13788
13789 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13790 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13791 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13792   echo $ECHO_N "(cached) $ECHO_C" >&6
13793 else
13794   cat >conftest.$ac_ext <<_ACEOF
13795 /* confdefs.h.  */
13796 _ACEOF
13797 cat confdefs.h >>conftest.$ac_ext
13798 cat >>conftest.$ac_ext <<_ACEOF
13799 /* end confdefs.h.  */
13800 #include <sys/types.h>
13801 #include <sys/wait.h>
13802 #ifndef WEXITSTATUS
13803 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13804 #endif
13805 #ifndef WIFEXITED
13806 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13807 #endif
13808
13809 int
13810 main ()
13811 {
13812   int s;
13813   wait (&s);
13814   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13815   ;
13816   return 0;
13817 }
13818 _ACEOF
13819 rm -f conftest.$ac_objext
13820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13821   (eval $ac_compile) 2>conftest.er1
13822   ac_status=$?
13823   grep -v '^ *+' conftest.er1 >conftest.err
13824   rm -f conftest.er1
13825   cat conftest.err >&5
13826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827   (exit $ac_status); } &&
13828          { ac_try='test -z "$ac_c_werror_flag"
13829                          || test ! -s conftest.err'
13830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831   (eval $ac_try) 2>&5
13832   ac_status=$?
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); }; } &&
13835          { ac_try='test -s conftest.$ac_objext'
13836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837   (eval $ac_try) 2>&5
13838   ac_status=$?
13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840   (exit $ac_status); }; }; then
13841   ac_cv_header_sys_wait_h=yes
13842 else
13843   echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13845
13846 ac_cv_header_sys_wait_h=no
13847 fi
13848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13849 fi
13850 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13851 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13852 if test $ac_cv_header_sys_wait_h = yes; then
13853
13854 cat >>confdefs.h <<\_ACEOF
13855 #define HAVE_SYS_WAIT_H 1
13856 _ACEOF
13857
13858 fi
13859
13860 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13861 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13862 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13863   echo $ECHO_N "(cached) $ECHO_C" >&6
13864 else
13865   cat >conftest.$ac_ext <<_ACEOF
13866 /* confdefs.h.  */
13867 _ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h.  */
13871 #include <sys/types.h>
13872 #include <termios.h>
13873 #ifdef TIOCGWINSZ
13874   yes
13875 #endif
13876
13877 _ACEOF
13878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13879   $EGREP "yes" >/dev/null 2>&1; then
13880   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13881 else
13882   ac_cv_sys_tiocgwinsz_in_termios_h=no
13883 fi
13884 rm -f conftest*
13885
13886 fi
13887 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13888 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13889
13890 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13891   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13892 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13893 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13894   echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896   cat >conftest.$ac_ext <<_ACEOF
13897 /* confdefs.h.  */
13898 _ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h.  */
13902 #include <sys/types.h>
13903 #include <sys/ioctl.h>
13904 #ifdef TIOCGWINSZ
13905   yes
13906 #endif
13907
13908 _ACEOF
13909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13910   $EGREP "yes" >/dev/null 2>&1; then
13911   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13912 else
13913   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13914 fi
13915 rm -f conftest*
13916
13917 fi
13918 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13919 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13920
13921   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13922
13923 cat >>confdefs.h <<\_ACEOF
13924 #define GWINSZ_IN_SYS_IOCTL 1
13925 _ACEOF
13926
13927   fi
13928 fi
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978 for ac_header in \
13979         arpa/inet.h             \
13980         arpa/nameser.h          \
13981         assert.h                \
13982         bits/types.h            \
13983         conio.h                 \
13984         crypt.h                 \
13985         direct.h                \
13986         errno.h                 \
13987         fcntl.h                 \
13988         filio.h                 \
13989         getopt.h                \
13990         grp.h                   \
13991         io.h                    \
13992         libutil.h               \
13993         limits.h                \
13994         locale.h                \
13995         netinet/tcp.h           \
13996         malloc.h                \
13997         memory.h                \
13998         psap.h                  \
13999         pwd.h                   \
14000         process.h               \
14001         sgtty.h                 \
14002         shadow.h                \
14003         stddef.h                \
14004         string.h                \
14005         strings.h               \
14006         sysexits.h              \
14007         sys/file.h              \
14008         sys/filio.h             \
14009         sys/errno.h             \
14010         sys/ioctl.h             \
14011         sys/param.h             \
14012         sys/resource.h          \
14013         sys/select.h            \
14014         sys/socket.h            \
14015         sys/stat.h              \
14016         sys/syslog.h            \
14017         sys/time.h              \
14018         sys/types.h             \
14019         sys/uio.h               \
14020         syslog.h                \
14021         termios.h               \
14022         unistd.h                \
14023         utime.h                 \
14024         winsock.h               \
14025         winsock2.h              \
14026
14027 do
14028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14030   echo "$as_me:$LINENO: checking for $ac_header" >&5
14031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14033   echo $ECHO_N "(cached) $ECHO_C" >&6
14034 fi
14035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14037 else
14038   # Is the header compilable?
14039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14041 cat >conftest.$ac_ext <<_ACEOF
14042 /* confdefs.h.  */
14043 _ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h.  */
14047 $ac_includes_default
14048 #include <$ac_header>
14049 _ACEOF
14050 rm -f conftest.$ac_objext
14051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14052   (eval $ac_compile) 2>conftest.er1
14053   ac_status=$?
14054   grep -v '^ *+' conftest.er1 >conftest.err
14055   rm -f conftest.er1
14056   cat conftest.err >&5
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); } &&
14059          { ac_try='test -z "$ac_c_werror_flag"
14060                          || test ! -s conftest.err'
14061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062   (eval $ac_try) 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); }; } &&
14066          { ac_try='test -s conftest.$ac_objext'
14067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068   (eval $ac_try) 2>&5
14069   ac_status=$?
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); }; }; then
14072   ac_header_compiler=yes
14073 else
14074   echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14076
14077 ac_header_compiler=no
14078 fi
14079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14080 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14081 echo "${ECHO_T}$ac_header_compiler" >&6
14082
14083 # Is the header present?
14084 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14086 cat >conftest.$ac_ext <<_ACEOF
14087 /* confdefs.h.  */
14088 _ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h.  */
14092 #include <$ac_header>
14093 _ACEOF
14094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14096   ac_status=$?
14097   grep -v '^ *+' conftest.er1 >conftest.err
14098   rm -f conftest.er1
14099   cat conftest.err >&5
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); } >/dev/null; then
14102   if test -s conftest.err; then
14103     ac_cpp_err=$ac_c_preproc_warn_flag
14104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14105   else
14106     ac_cpp_err=
14107   fi
14108 else
14109   ac_cpp_err=yes
14110 fi
14111 if test -z "$ac_cpp_err"; then
14112   ac_header_preproc=yes
14113 else
14114   echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14116
14117   ac_header_preproc=no
14118 fi
14119 rm -f conftest.err conftest.$ac_ext
14120 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14121 echo "${ECHO_T}$ac_header_preproc" >&6
14122
14123 # So?  What about this header?
14124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14125   yes:no: )
14126     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14130     ac_header_preproc=yes
14131     ;;
14132   no:yes:* )
14133     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14135     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14136 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14137     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14139     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14140 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14143     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14145     (
14146       cat <<\_ASBOX
14147 ## ------------------------------------------ ##
14148 ## Report this to the AC_PACKAGE_NAME lists.  ##
14149 ## ------------------------------------------ ##
14150 _ASBOX
14151     ) |
14152       sed "s/^/$as_me: WARNING:     /" >&2
14153     ;;
14154 esac
14155 echo "$as_me:$LINENO: checking for $ac_header" >&5
14156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14158   echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160   eval "$as_ac_Header=\$ac_header_preproc"
14161 fi
14162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14164
14165 fi
14166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14167   cat >>confdefs.h <<_ACEOF
14168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14169 _ACEOF
14170
14171 fi
14172
14173 done
14174
14175
14176
14177 for ac_header in resolv.h
14178 do
14179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14180 echo "$as_me:$LINENO: checking for $ac_header" >&5
14181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14183   echo $ECHO_N "(cached) $ECHO_C" >&6
14184 else
14185   cat >conftest.$ac_ext <<_ACEOF
14186 /* confdefs.h.  */
14187 _ACEOF
14188 cat confdefs.h >>conftest.$ac_ext
14189 cat >>conftest.$ac_ext <<_ACEOF
14190 /* end confdefs.h.  */
14191 $ac_includes_default
14192 #include <netinet/in.h>
14193
14194
14195 #include <$ac_header>
14196 _ACEOF
14197 rm -f conftest.$ac_objext
14198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14199   (eval $ac_compile) 2>conftest.er1
14200   ac_status=$?
14201   grep -v '^ *+' conftest.er1 >conftest.err
14202   rm -f conftest.er1
14203   cat conftest.err >&5
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); } &&
14206          { ac_try='test -z "$ac_c_werror_flag"
14207                          || test ! -s conftest.err'
14208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209   (eval $ac_try) 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); }; } &&
14213          { ac_try='test -s conftest.$ac_objext'
14214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215   (eval $ac_try) 2>&5
14216   ac_status=$?
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); }; }; then
14219   eval "$as_ac_Header=yes"
14220 else
14221   echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14223
14224 eval "$as_ac_Header=no"
14225 fi
14226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14227 fi
14228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14231   cat >>confdefs.h <<_ACEOF
14232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14233 _ACEOF
14234
14235 fi
14236
14237 done
14238
14239
14240
14241 for ac_header in sys/ucred.h
14242 do
14243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14244 echo "$as_me:$LINENO: checking for $ac_header" >&5
14245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14247   echo $ECHO_N "(cached) $ECHO_C" >&6
14248 else
14249   cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h.  */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h.  */
14255 $ac_includes_default
14256 #ifdef HAVE_SYS_PARAM_H
14257 #include <sys/param.h>
14258 #endif
14259
14260
14261 #include <$ac_header>
14262 _ACEOF
14263 rm -f conftest.$ac_objext
14264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14265   (eval $ac_compile) 2>conftest.er1
14266   ac_status=$?
14267   grep -v '^ *+' conftest.er1 >conftest.err
14268   rm -f conftest.er1
14269   cat conftest.err >&5
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); } &&
14272          { ac_try='test -z "$ac_c_werror_flag"
14273                          || test ! -s conftest.err'
14274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275   (eval $ac_try) 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); }; } &&
14279          { ac_try='test -s conftest.$ac_objext'
14280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281   (eval $ac_try) 2>&5
14282   ac_status=$?
14283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284   (exit $ac_status); }; }; then
14285   eval "$as_ac_Header=yes"
14286 else
14287   echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14289
14290 eval "$as_ac_Header=no"
14291 fi
14292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14293 fi
14294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14297   cat >>confdefs.h <<_ACEOF
14298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14299 _ACEOF
14300
14301 fi
14302
14303 done
14304
14305
14306
14307
14308
14309 for ac_func in sigaction sigset
14310 do
14311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14312 echo "$as_me:$LINENO: checking for $ac_func" >&5
14313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14314 if eval "test \"\${$as_ac_var+set}\" = set"; then
14315   echo $ECHO_N "(cached) $ECHO_C" >&6
14316 else
14317   cat >conftest.$ac_ext <<_ACEOF
14318 /* confdefs.h.  */
14319 _ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h.  */
14323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14325 #define $ac_func innocuous_$ac_func
14326
14327 /* System header to define __stub macros and hopefully few prototypes,
14328     which can conflict with char $ac_func (); below.
14329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14330     <limits.h> exists even on freestanding compilers.  */
14331
14332 #ifdef __STDC__
14333 # include <limits.h>
14334 #else
14335 # include <assert.h>
14336 #endif
14337
14338 #undef $ac_func
14339
14340 /* Override any gcc2 internal prototype to avoid an error.  */
14341 #ifdef __cplusplus
14342 extern "C"
14343 {
14344 #endif
14345 /* We use char because int might match the return type of a gcc2
14346    builtin and then its argument prototype would still apply.  */
14347 char $ac_func ();
14348 /* The GNU C library defines this for functions which it implements
14349     to always fail with ENOSYS.  Some functions are actually named
14350     something starting with __ and the normal name is an alias.  */
14351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14352 choke me
14353 #else
14354 char (*f) () = $ac_func;
14355 #endif
14356 #ifdef __cplusplus
14357 }
14358 #endif
14359
14360 int
14361 main ()
14362 {
14363 return f != $ac_func;
14364   ;
14365   return 0;
14366 }
14367 _ACEOF
14368 rm -f conftest.$ac_objext conftest$ac_exeext
14369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14370   (eval $ac_link) 2>conftest.er1
14371   ac_status=$?
14372   grep -v '^ *+' conftest.er1 >conftest.err
14373   rm -f conftest.er1
14374   cat conftest.err >&5
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); } &&
14377          { ac_try='test -z "$ac_c_werror_flag"
14378                          || test ! -s conftest.err'
14379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380   (eval $ac_try) 2>&5
14381   ac_status=$?
14382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383   (exit $ac_status); }; } &&
14384          { ac_try='test -s conftest$ac_exeext'
14385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386   (eval $ac_try) 2>&5
14387   ac_status=$?
14388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389   (exit $ac_status); }; }; then
14390   eval "$as_ac_var=yes"
14391 else
14392   echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14394
14395 eval "$as_ac_var=no"
14396 fi
14397 rm -f conftest.err conftest.$ac_objext \
14398       conftest$ac_exeext conftest.$ac_ext
14399 fi
14400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14402 if test `eval echo '${'$as_ac_var'}'` = yes; then
14403   cat >>confdefs.h <<_ACEOF
14404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14405 _ACEOF
14406
14407 fi
14408 done
14409
14410
14411 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14412
14413 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14414 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14415 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14416   echo $ECHO_N "(cached) $ECHO_C" >&6
14417 else
14418   ac_check_lib_save_LIBS=$LIBS
14419 LIBS="-lV3  $LIBS"
14420 cat >conftest.$ac_ext <<_ACEOF
14421 /* confdefs.h.  */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h.  */
14426
14427 /* Override any gcc2 internal prototype to avoid an error.  */
14428 #ifdef __cplusplus
14429 extern "C"
14430 #endif
14431 /* We use char because int might match the return type of a gcc2
14432    builtin and then its argument prototype would still apply.  */
14433 char sigset ();
14434 int
14435 main ()
14436 {
14437 sigset ();
14438   ;
14439   return 0;
14440 }
14441 _ACEOF
14442 rm -f conftest.$ac_objext conftest$ac_exeext
14443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14444   (eval $ac_link) 2>conftest.er1
14445   ac_status=$?
14446   grep -v '^ *+' conftest.er1 >conftest.err
14447   rm -f conftest.er1
14448   cat conftest.err >&5
14449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450   (exit $ac_status); } &&
14451          { ac_try='test -z "$ac_c_werror_flag"
14452                          || test ! -s conftest.err'
14453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454   (eval $ac_try) 2>&5
14455   ac_status=$?
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); }; } &&
14458          { ac_try='test -s conftest$ac_exeext'
14459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460   (eval $ac_try) 2>&5
14461   ac_status=$?
14462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463   (exit $ac_status); }; }; then
14464   ac_cv_lib_V3_sigset=yes
14465 else
14466   echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14468
14469 ac_cv_lib_V3_sigset=no
14470 fi
14471 rm -f conftest.err conftest.$ac_objext \
14472       conftest$ac_exeext conftest.$ac_ext
14473 LIBS=$ac_check_lib_save_LIBS
14474 fi
14475 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14476 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14477 if test $ac_cv_lib_V3_sigset = yes; then
14478   cat >>confdefs.h <<_ACEOF
14479 #define HAVE_LIBV3 1
14480 _ACEOF
14481
14482   LIBS="-lV3 $LIBS"
14483
14484 fi
14485
14486 fi
14487
14488 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14489 echo "$as_me:$LINENO: checking for winsock" >&5
14490 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14491 if test "${ol_cv_winsock+set}" = set; then
14492   echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494   save_LIBS="$LIBS"
14495 for curlib in ws2_32 wsock32; do
14496         LIBS="$LIBS -l$curlib"
14497         cat >conftest.$ac_ext <<_ACEOF
14498 /* confdefs.h.  */
14499 _ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h.  */
14503 #include <winsock.h>
14504
14505 int
14506 main ()
14507 {
14508
14509                         socket(0,0,0);
14510                         select(0,NULL,NULL,NULL,NULL);
14511                         closesocket(0);
14512                         gethostname(NULL,0);
14513
14514   ;
14515   return 0;
14516 }
14517 _ACEOF
14518 rm -f conftest.$ac_objext conftest$ac_exeext
14519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14520   (eval $ac_link) 2>conftest.er1
14521   ac_status=$?
14522   grep -v '^ *+' conftest.er1 >conftest.err
14523   rm -f conftest.er1
14524   cat conftest.err >&5
14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526   (exit $ac_status); } &&
14527          { ac_try='test -z "$ac_c_werror_flag"
14528                          || test ! -s conftest.err'
14529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530   (eval $ac_try) 2>&5
14531   ac_status=$?
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); }; } &&
14534          { ac_try='test -s conftest$ac_exeext'
14535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536   (eval $ac_try) 2>&5
14537   ac_status=$?
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); }; }; then
14540   ol_cv_winsock=yes
14541 else
14542   echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14544
14545 ol_cv_winsock=no
14546 fi
14547 rm -f conftest.err conftest.$ac_objext \
14548       conftest$ac_exeext conftest.$ac_ext
14549
14550         if test $ol_cv_winsock = yes; then
14551
14552 cat >>confdefs.h <<\_ACEOF
14553 #define HAVE_WINSOCK 1
14554 _ACEOF
14555
14556                 ac_cv_func_socket=yes
14557                 ac_cv_func_select=yes
14558                 ac_cv_func_closesocket=yes
14559                 ac_cv_func_gethostname=yes
14560                 if test $curlib = ws2_32; then
14561                         ol_cv_winsock=winsock2
14562
14563 cat >>confdefs.h <<\_ACEOF
14564 #define HAVE_WINSOCK2 1
14565 _ACEOF
14566
14567                 fi
14568                 break
14569         fi
14570         LIBS="$save_LIBS"
14571 done
14572 fi
14573 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14574 echo "${ECHO_T}$ol_cv_winsock" >&6
14575 fi
14576
14577
14578 echo "$as_me:$LINENO: checking for socket" >&5
14579 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14580 if test "${ac_cv_func_socket+set}" = set; then
14581   echo $ECHO_N "(cached) $ECHO_C" >&6
14582 else
14583   cat >conftest.$ac_ext <<_ACEOF
14584 /* confdefs.h.  */
14585 _ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h.  */
14589 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14590    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14591 #define socket innocuous_socket
14592
14593 /* System header to define __stub macros and hopefully few prototypes,
14594     which can conflict with char socket (); below.
14595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14596     <limits.h> exists even on freestanding compilers.  */
14597
14598 #ifdef __STDC__
14599 # include <limits.h>
14600 #else
14601 # include <assert.h>
14602 #endif
14603
14604 #undef socket
14605
14606 /* Override any gcc2 internal prototype to avoid an error.  */
14607 #ifdef __cplusplus
14608 extern "C"
14609 {
14610 #endif
14611 /* We use char because int might match the return type of a gcc2
14612    builtin and then its argument prototype would still apply.  */
14613 char socket ();
14614 /* The GNU C library defines this for functions which it implements
14615     to always fail with ENOSYS.  Some functions are actually named
14616     something starting with __ and the normal name is an alias.  */
14617 #if defined (__stub_socket) || defined (__stub___socket)
14618 choke me
14619 #else
14620 char (*f) () = socket;
14621 #endif
14622 #ifdef __cplusplus
14623 }
14624 #endif
14625
14626 int
14627 main ()
14628 {
14629 return f != socket;
14630   ;
14631   return 0;
14632 }
14633 _ACEOF
14634 rm -f conftest.$ac_objext conftest$ac_exeext
14635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14636   (eval $ac_link) 2>conftest.er1
14637   ac_status=$?
14638   grep -v '^ *+' conftest.er1 >conftest.err
14639   rm -f conftest.er1
14640   cat conftest.err >&5
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); } &&
14643          { ac_try='test -z "$ac_c_werror_flag"
14644                          || test ! -s conftest.err'
14645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646   (eval $ac_try) 2>&5
14647   ac_status=$?
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); }; } &&
14650          { ac_try='test -s conftest$ac_exeext'
14651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652   (eval $ac_try) 2>&5
14653   ac_status=$?
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); }; }; then
14656   ac_cv_func_socket=yes
14657 else
14658   echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14660
14661 ac_cv_func_socket=no
14662 fi
14663 rm -f conftest.err conftest.$ac_objext \
14664       conftest$ac_exeext conftest.$ac_ext
14665 fi
14666 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14667 echo "${ECHO_T}$ac_cv_func_socket" >&6
14668 if test $ac_cv_func_socket = yes; then
14669   :
14670 else
14671
14672
14673 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14674 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14675 if test "${ac_cv_lib_socket_main+set}" = set; then
14676   echo $ECHO_N "(cached) $ECHO_C" >&6
14677 else
14678   ac_check_lib_save_LIBS=$LIBS
14679 LIBS="-lsocket  $LIBS"
14680 cat >conftest.$ac_ext <<_ACEOF
14681 /* confdefs.h.  */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h.  */
14686
14687
14688 int
14689 main ()
14690 {
14691 main ();
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_socket_main=yes
14719 else
14720   echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14722
14723 ac_cv_lib_socket_main=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_socket_main" >&5
14730 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14731 if test $ac_cv_lib_socket_main = yes; then
14732   cat >>confdefs.h <<_ACEOF
14733 #define HAVE_LIBSOCKET 1
14734 _ACEOF
14735
14736   LIBS="-lsocket $LIBS"
14737
14738 fi
14739
14740
14741 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14742 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14743 if test "${ac_cv_lib_net_main+set}" = set; then
14744   echo $ECHO_N "(cached) $ECHO_C" >&6
14745 else
14746   ac_check_lib_save_LIBS=$LIBS
14747 LIBS="-lnet  $LIBS"
14748 cat >conftest.$ac_ext <<_ACEOF
14749 /* confdefs.h.  */
14750 _ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h.  */
14754
14755
14756 int
14757 main ()
14758 {
14759 main ();
14760   ;
14761   return 0;
14762 }
14763 _ACEOF
14764 rm -f conftest.$ac_objext conftest$ac_exeext
14765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14766   (eval $ac_link) 2>conftest.er1
14767   ac_status=$?
14768   grep -v '^ *+' conftest.er1 >conftest.err
14769   rm -f conftest.er1
14770   cat conftest.err >&5
14771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772   (exit $ac_status); } &&
14773          { ac_try='test -z "$ac_c_werror_flag"
14774                          || test ! -s conftest.err'
14775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776   (eval $ac_try) 2>&5
14777   ac_status=$?
14778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   (exit $ac_status); }; } &&
14780          { ac_try='test -s conftest$ac_exeext'
14781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782   (eval $ac_try) 2>&5
14783   ac_status=$?
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); }; }; then
14786   ac_cv_lib_net_main=yes
14787 else
14788   echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14790
14791 ac_cv_lib_net_main=no
14792 fi
14793 rm -f conftest.err conftest.$ac_objext \
14794       conftest$ac_exeext conftest.$ac_ext
14795 LIBS=$ac_check_lib_save_LIBS
14796 fi
14797 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14798 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14799 if test $ac_cv_lib_net_main = yes; then
14800   cat >>confdefs.h <<_ACEOF
14801 #define HAVE_LIBNET 1
14802 _ACEOF
14803
14804   LIBS="-lnet $LIBS"
14805
14806 fi
14807
14808
14809 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14810 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14811 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14812   echo $ECHO_N "(cached) $ECHO_C" >&6
14813 else
14814   ac_check_lib_save_LIBS=$LIBS
14815 LIBS="-lnsl_s  $LIBS"
14816 cat >conftest.$ac_ext <<_ACEOF
14817 /* confdefs.h.  */
14818 _ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h.  */
14822
14823
14824 int
14825 main ()
14826 {
14827 main ();
14828   ;
14829   return 0;
14830 }
14831 _ACEOF
14832 rm -f conftest.$ac_objext conftest$ac_exeext
14833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14834   (eval $ac_link) 2>conftest.er1
14835   ac_status=$?
14836   grep -v '^ *+' conftest.er1 >conftest.err
14837   rm -f conftest.er1
14838   cat conftest.err >&5
14839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); } &&
14841          { ac_try='test -z "$ac_c_werror_flag"
14842                          || test ! -s conftest.err'
14843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844   (eval $ac_try) 2>&5
14845   ac_status=$?
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); }; } &&
14848          { ac_try='test -s conftest$ac_exeext'
14849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850   (eval $ac_try) 2>&5
14851   ac_status=$?
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); }; }; then
14854   ac_cv_lib_nsl_s_main=yes
14855 else
14856   echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14858
14859 ac_cv_lib_nsl_s_main=no
14860 fi
14861 rm -f conftest.err conftest.$ac_objext \
14862       conftest$ac_exeext conftest.$ac_ext
14863 LIBS=$ac_check_lib_save_LIBS
14864 fi
14865 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14866 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14867 if test $ac_cv_lib_nsl_s_main = yes; then
14868   cat >>confdefs.h <<_ACEOF
14869 #define HAVE_LIBNSL_S 1
14870 _ACEOF
14871
14872   LIBS="-lnsl_s $LIBS"
14873
14874 fi
14875
14876
14877 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14878 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14879 if test "${ac_cv_lib_nsl_main+set}" = set; then
14880   echo $ECHO_N "(cached) $ECHO_C" >&6
14881 else
14882   ac_check_lib_save_LIBS=$LIBS
14883 LIBS="-lnsl  $LIBS"
14884 cat >conftest.$ac_ext <<_ACEOF
14885 /* confdefs.h.  */
14886 _ACEOF
14887 cat confdefs.h >>conftest.$ac_ext
14888 cat >>conftest.$ac_ext <<_ACEOF
14889 /* end confdefs.h.  */
14890
14891
14892 int
14893 main ()
14894 {
14895 main ();
14896   ;
14897   return 0;
14898 }
14899 _ACEOF
14900 rm -f conftest.$ac_objext conftest$ac_exeext
14901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14902   (eval $ac_link) 2>conftest.er1
14903   ac_status=$?
14904   grep -v '^ *+' conftest.er1 >conftest.err
14905   rm -f conftest.er1
14906   cat conftest.err >&5
14907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908   (exit $ac_status); } &&
14909          { ac_try='test -z "$ac_c_werror_flag"
14910                          || test ! -s conftest.err'
14911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912   (eval $ac_try) 2>&5
14913   ac_status=$?
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); }; } &&
14916          { ac_try='test -s conftest$ac_exeext'
14917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918   (eval $ac_try) 2>&5
14919   ac_status=$?
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); }; }; then
14922   ac_cv_lib_nsl_main=yes
14923 else
14924   echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14926
14927 ac_cv_lib_nsl_main=no
14928 fi
14929 rm -f conftest.err conftest.$ac_objext \
14930       conftest$ac_exeext conftest.$ac_ext
14931 LIBS=$ac_check_lib_save_LIBS
14932 fi
14933 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14934 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14935 if test $ac_cv_lib_nsl_main = yes; then
14936   cat >>confdefs.h <<_ACEOF
14937 #define HAVE_LIBNSL 1
14938 _ACEOF
14939
14940   LIBS="-lnsl $LIBS"
14941
14942 fi
14943
14944
14945 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14946 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14947 if test "${ac_cv_lib_inet_socket+set}" = set; then
14948   echo $ECHO_N "(cached) $ECHO_C" >&6
14949 else
14950   ac_check_lib_save_LIBS=$LIBS
14951 LIBS="-linet  $LIBS"
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h.  */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h.  */
14958
14959 /* Override any gcc2 internal prototype to avoid an error.  */
14960 #ifdef __cplusplus
14961 extern "C"
14962 #endif
14963 /* We use char because int might match the return type of a gcc2
14964    builtin and then its argument prototype would still apply.  */
14965 char socket ();
14966 int
14967 main ()
14968 {
14969 socket ();
14970   ;
14971   return 0;
14972 }
14973 _ACEOF
14974 rm -f conftest.$ac_objext conftest$ac_exeext
14975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14976   (eval $ac_link) 2>conftest.er1
14977   ac_status=$?
14978   grep -v '^ *+' conftest.er1 >conftest.err
14979   rm -f conftest.er1
14980   cat conftest.err >&5
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); } &&
14983          { ac_try='test -z "$ac_c_werror_flag"
14984                          || test ! -s conftest.err'
14985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986   (eval $ac_try) 2>&5
14987   ac_status=$?
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); }; } &&
14990          { ac_try='test -s conftest$ac_exeext'
14991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992   (eval $ac_try) 2>&5
14993   ac_status=$?
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); }; }; then
14996   ac_cv_lib_inet_socket=yes
14997 else
14998   echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15000
15001 ac_cv_lib_inet_socket=no
15002 fi
15003 rm -f conftest.err conftest.$ac_objext \
15004       conftest$ac_exeext conftest.$ac_ext
15005 LIBS=$ac_check_lib_save_LIBS
15006 fi
15007 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15008 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15009 if test $ac_cv_lib_inet_socket = yes; then
15010   cat >>confdefs.h <<_ACEOF
15011 #define HAVE_LIBINET 1
15012 _ACEOF
15013
15014   LIBS="-linet $LIBS"
15015
15016 fi
15017
15018
15019 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15020 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15021 if test "${ac_cv_lib_gen_main+set}" = set; then
15022   echo $ECHO_N "(cached) $ECHO_C" >&6
15023 else
15024   ac_check_lib_save_LIBS=$LIBS
15025 LIBS="-lgen  $LIBS"
15026 cat >conftest.$ac_ext <<_ACEOF
15027 /* confdefs.h.  */
15028 _ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h.  */
15032
15033
15034 int
15035 main ()
15036 {
15037 main ();
15038   ;
15039   return 0;
15040 }
15041 _ACEOF
15042 rm -f conftest.$ac_objext conftest$ac_exeext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15044   (eval $ac_link) 2>conftest.er1
15045   ac_status=$?
15046   grep -v '^ *+' conftest.er1 >conftest.err
15047   rm -f conftest.er1
15048   cat conftest.err >&5
15049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   (exit $ac_status); } &&
15051          { ac_try='test -z "$ac_c_werror_flag"
15052                          || test ! -s conftest.err'
15053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054   (eval $ac_try) 2>&5
15055   ac_status=$?
15056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057   (exit $ac_status); }; } &&
15058          { ac_try='test -s conftest$ac_exeext'
15059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060   (eval $ac_try) 2>&5
15061   ac_status=$?
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); }; }; then
15064   ac_cv_lib_gen_main=yes
15065 else
15066   echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15068
15069 ac_cv_lib_gen_main=no
15070 fi
15071 rm -f conftest.err conftest.$ac_objext \
15072       conftest$ac_exeext conftest.$ac_ext
15073 LIBS=$ac_check_lib_save_LIBS
15074 fi
15075 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15076 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15077 if test $ac_cv_lib_gen_main = yes; then
15078   cat >>confdefs.h <<_ACEOF
15079 #define HAVE_LIBGEN 1
15080 _ACEOF
15081
15082   LIBS="-lgen $LIBS"
15083
15084 fi
15085
15086
15087 fi
15088
15089
15090 echo "$as_me:$LINENO: checking for select" >&5
15091 echo $ECHO_N "checking for select... $ECHO_C" >&6
15092 if test "${ac_cv_func_select+set}" = set; then
15093   echo $ECHO_N "(cached) $ECHO_C" >&6
15094 else
15095   cat >conftest.$ac_ext <<_ACEOF
15096 /* confdefs.h.  */
15097 _ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h.  */
15101 /* Define select to an innocuous variant, in case <limits.h> declares select.
15102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15103 #define select innocuous_select
15104
15105 /* System header to define __stub macros and hopefully few prototypes,
15106     which can conflict with char select (); below.
15107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15108     <limits.h> exists even on freestanding compilers.  */
15109
15110 #ifdef __STDC__
15111 # include <limits.h>
15112 #else
15113 # include <assert.h>
15114 #endif
15115
15116 #undef select
15117
15118 /* Override any gcc2 internal prototype to avoid an error.  */
15119 #ifdef __cplusplus
15120 extern "C"
15121 {
15122 #endif
15123 /* We use char because int might match the return type of a gcc2
15124    builtin and then its argument prototype would still apply.  */
15125 char select ();
15126 /* The GNU C library defines this for functions which it implements
15127     to always fail with ENOSYS.  Some functions are actually named
15128     something starting with __ and the normal name is an alias.  */
15129 #if defined (__stub_select) || defined (__stub___select)
15130 choke me
15131 #else
15132 char (*f) () = select;
15133 #endif
15134 #ifdef __cplusplus
15135 }
15136 #endif
15137
15138 int
15139 main ()
15140 {
15141 return f != select;
15142   ;
15143   return 0;
15144 }
15145 _ACEOF
15146 rm -f conftest.$ac_objext conftest$ac_exeext
15147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15148   (eval $ac_link) 2>conftest.er1
15149   ac_status=$?
15150   grep -v '^ *+' conftest.er1 >conftest.err
15151   rm -f conftest.er1
15152   cat conftest.err >&5
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); } &&
15155          { ac_try='test -z "$ac_c_werror_flag"
15156                          || test ! -s conftest.err'
15157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15158   (eval $ac_try) 2>&5
15159   ac_status=$?
15160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161   (exit $ac_status); }; } &&
15162          { ac_try='test -s conftest$ac_exeext'
15163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164   (eval $ac_try) 2>&5
15165   ac_status=$?
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); }; }; then
15168   ac_cv_func_select=yes
15169 else
15170   echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15172
15173 ac_cv_func_select=no
15174 fi
15175 rm -f conftest.err conftest.$ac_objext \
15176       conftest$ac_exeext conftest.$ac_ext
15177 fi
15178 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15179 echo "${ECHO_T}$ac_cv_func_select" >&6
15180 if test $ac_cv_func_select = yes; then
15181   :
15182 else
15183   { { echo "$as_me:$LINENO: error: select() required." >&5
15184 echo "$as_me: error: select() required." >&2;}
15185    { (exit 1); exit 1; }; }
15186 fi
15187
15188
15189 if test "${ac_cv_header_winsock_h}" != yes; then
15190
15191
15192 for ac_header in sys/select.h sys/socket.h
15193 do
15194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15196   echo "$as_me:$LINENO: checking for $ac_header" >&5
15197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15199   echo $ECHO_N "(cached) $ECHO_C" >&6
15200 fi
15201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15203 else
15204   # Is the header compilable?
15205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15207 cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h.  */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h.  */
15213 $ac_includes_default
15214 #include <$ac_header>
15215 _ACEOF
15216 rm -f conftest.$ac_objext
15217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15218   (eval $ac_compile) 2>conftest.er1
15219   ac_status=$?
15220   grep -v '^ *+' conftest.er1 >conftest.err
15221   rm -f conftest.er1
15222   cat conftest.err >&5
15223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224   (exit $ac_status); } &&
15225          { ac_try='test -z "$ac_c_werror_flag"
15226                          || test ! -s conftest.err'
15227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228   (eval $ac_try) 2>&5
15229   ac_status=$?
15230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231   (exit $ac_status); }; } &&
15232          { ac_try='test -s conftest.$ac_objext'
15233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234   (eval $ac_try) 2>&5
15235   ac_status=$?
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); }; }; then
15238   ac_header_compiler=yes
15239 else
15240   echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15242
15243 ac_header_compiler=no
15244 fi
15245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15247 echo "${ECHO_T}$ac_header_compiler" >&6
15248
15249 # Is the header present?
15250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15252 cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h.  */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h.  */
15258 #include <$ac_header>
15259 _ACEOF
15260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15261   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15262   ac_status=$?
15263   grep -v '^ *+' conftest.er1 >conftest.err
15264   rm -f conftest.er1
15265   cat conftest.err >&5
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); } >/dev/null; then
15268   if test -s conftest.err; then
15269     ac_cpp_err=$ac_c_preproc_warn_flag
15270     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15271   else
15272     ac_cpp_err=
15273   fi
15274 else
15275   ac_cpp_err=yes
15276 fi
15277 if test -z "$ac_cpp_err"; then
15278   ac_header_preproc=yes
15279 else
15280   echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15282
15283   ac_header_preproc=no
15284 fi
15285 rm -f conftest.err conftest.$ac_ext
15286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15287 echo "${ECHO_T}$ac_header_preproc" >&6
15288
15289 # So?  What about this header?
15290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15291   yes:no: )
15292     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15296     ac_header_preproc=yes
15297     ;;
15298   no:yes:* )
15299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15301     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15302 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15303     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15305     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15306 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15309     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15311     (
15312       cat <<\_ASBOX
15313 ## ------------------------------------------ ##
15314 ## Report this to the AC_PACKAGE_NAME lists.  ##
15315 ## ------------------------------------------ ##
15316 _ASBOX
15317     ) |
15318       sed "s/^/$as_me: WARNING:     /" >&2
15319     ;;
15320 esac
15321 echo "$as_me:$LINENO: checking for $ac_header" >&5
15322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15324   echo $ECHO_N "(cached) $ECHO_C" >&6
15325 else
15326   eval "$as_ac_Header=\$ac_header_preproc"
15327 fi
15328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15330
15331 fi
15332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15333   cat >>confdefs.h <<_ACEOF
15334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15335 _ACEOF
15336
15337 fi
15338
15339 done
15340
15341 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15342 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15343 if test "${ac_cv_func_select_args+set}" = set; then
15344   echo $ECHO_N "(cached) $ECHO_C" >&6
15345 else
15346   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15347  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15348   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15349    cat >conftest.$ac_ext <<_ACEOF
15350 /* confdefs.h.  */
15351 _ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h.  */
15355 $ac_includes_default
15356 #if HAVE_SYS_SELECT_H
15357 # include <sys/select.h>
15358 #endif
15359 #if HAVE_SYS_SOCKET_H
15360 # include <sys/socket.h>
15361 #endif
15362
15363 int
15364 main ()
15365 {
15366 extern int select ($ac_arg1,
15367                                             $ac_arg234, $ac_arg234, $ac_arg234,
15368                                             $ac_arg5);
15369   ;
15370   return 0;
15371 }
15372 _ACEOF
15373 rm -f conftest.$ac_objext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15375   (eval $ac_compile) 2>conftest.er1
15376   ac_status=$?
15377   grep -v '^ *+' conftest.er1 >conftest.err
15378   rm -f conftest.er1
15379   cat conftest.err >&5
15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381   (exit $ac_status); } &&
15382          { ac_try='test -z "$ac_c_werror_flag"
15383                          || test ! -s conftest.err'
15384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385   (eval $ac_try) 2>&5
15386   ac_status=$?
15387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388   (exit $ac_status); }; } &&
15389          { ac_try='test -s conftest.$ac_objext'
15390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391   (eval $ac_try) 2>&5
15392   ac_status=$?
15393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394   (exit $ac_status); }; }; then
15395   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15396 else
15397   echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15399
15400 fi
15401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15402   done
15403  done
15404 done
15405 # Provide a safe default value.
15406 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15407
15408 fi
15409 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15410 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15411 ac_save_IFS=$IFS; IFS=','
15412 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15413 IFS=$ac_save_IFS
15414 shift
15415
15416 cat >>confdefs.h <<_ACEOF
15417 #define SELECT_TYPE_ARG1 $1
15418 _ACEOF
15419
15420
15421 cat >>confdefs.h <<_ACEOF
15422 #define SELECT_TYPE_ARG234 ($2)
15423 _ACEOF
15424
15425
15426 cat >>confdefs.h <<_ACEOF
15427 #define SELECT_TYPE_ARG5 ($3)
15428 _ACEOF
15429
15430 rm -f conftest*
15431
15432 fi
15433
15434
15435
15436 for ac_func in poll
15437 do
15438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15439 echo "$as_me:$LINENO: checking for $ac_func" >&5
15440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15441 if eval "test \"\${$as_ac_var+set}\" = set"; then
15442   echo $ECHO_N "(cached) $ECHO_C" >&6
15443 else
15444   cat >conftest.$ac_ext <<_ACEOF
15445 /* confdefs.h.  */
15446 _ACEOF
15447 cat confdefs.h >>conftest.$ac_ext
15448 cat >>conftest.$ac_ext <<_ACEOF
15449 /* end confdefs.h.  */
15450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15452 #define $ac_func innocuous_$ac_func
15453
15454 /* System header to define __stub macros and hopefully few prototypes,
15455     which can conflict with char $ac_func (); below.
15456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15457     <limits.h> exists even on freestanding compilers.  */
15458
15459 #ifdef __STDC__
15460 # include <limits.h>
15461 #else
15462 # include <assert.h>
15463 #endif
15464
15465 #undef $ac_func
15466
15467 /* Override any gcc2 internal prototype to avoid an error.  */
15468 #ifdef __cplusplus
15469 extern "C"
15470 {
15471 #endif
15472 /* We use char because int might match the return type of a gcc2
15473    builtin and then its argument prototype would still apply.  */
15474 char $ac_func ();
15475 /* The GNU C library defines this for functions which it implements
15476     to always fail with ENOSYS.  Some functions are actually named
15477     something starting with __ and the normal name is an alias.  */
15478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15479 choke me
15480 #else
15481 char (*f) () = $ac_func;
15482 #endif
15483 #ifdef __cplusplus
15484 }
15485 #endif
15486
15487 int
15488 main ()
15489 {
15490 return f != $ac_func;
15491   ;
15492   return 0;
15493 }
15494 _ACEOF
15495 rm -f conftest.$ac_objext conftest$ac_exeext
15496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15497   (eval $ac_link) 2>conftest.er1
15498   ac_status=$?
15499   grep -v '^ *+' conftest.er1 >conftest.err
15500   rm -f conftest.er1
15501   cat conftest.err >&5
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); } &&
15504          { ac_try='test -z "$ac_c_werror_flag"
15505                          || test ! -s conftest.err'
15506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507   (eval $ac_try) 2>&5
15508   ac_status=$?
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); }; } &&
15511          { ac_try='test -s conftest$ac_exeext'
15512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513   (eval $ac_try) 2>&5
15514   ac_status=$?
15515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); }; }; then
15517   eval "$as_ac_var=yes"
15518 else
15519   echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15521
15522 eval "$as_ac_var=no"
15523 fi
15524 rm -f conftest.err conftest.$ac_objext \
15525       conftest$ac_exeext conftest.$ac_ext
15526 fi
15527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15529 if test `eval echo '${'$as_ac_var'}'` = yes; then
15530   cat >>confdefs.h <<_ACEOF
15531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15532 _ACEOF
15533
15534 fi
15535 done
15536
15537
15538 for ac_header in poll.h
15539 do
15540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15542   echo "$as_me:$LINENO: checking for $ac_header" >&5
15543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15545   echo $ECHO_N "(cached) $ECHO_C" >&6
15546 fi
15547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15549 else
15550   # Is the header compilable?
15551 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15553 cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h.  */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h.  */
15559 $ac_includes_default
15560 #include <$ac_header>
15561 _ACEOF
15562 rm -f conftest.$ac_objext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564   (eval $ac_compile) 2>conftest.er1
15565   ac_status=$?
15566   grep -v '^ *+' conftest.er1 >conftest.err
15567   rm -f conftest.er1
15568   cat conftest.err >&5
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); } &&
15571          { ac_try='test -z "$ac_c_werror_flag"
15572                          || test ! -s conftest.err'
15573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574   (eval $ac_try) 2>&5
15575   ac_status=$?
15576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); }; } &&
15578          { ac_try='test -s conftest.$ac_objext'
15579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580   (eval $ac_try) 2>&5
15581   ac_status=$?
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); }; }; then
15584   ac_header_compiler=yes
15585 else
15586   echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15588
15589 ac_header_compiler=no
15590 fi
15591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15593 echo "${ECHO_T}$ac_header_compiler" >&6
15594
15595 # Is the header present?
15596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15598 cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h.  */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h.  */
15604 #include <$ac_header>
15605 _ACEOF
15606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15607   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15608   ac_status=$?
15609   grep -v '^ *+' conftest.er1 >conftest.err
15610   rm -f conftest.er1
15611   cat conftest.err >&5
15612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613   (exit $ac_status); } >/dev/null; then
15614   if test -s conftest.err; then
15615     ac_cpp_err=$ac_c_preproc_warn_flag
15616     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15617   else
15618     ac_cpp_err=
15619   fi
15620 else
15621   ac_cpp_err=yes
15622 fi
15623 if test -z "$ac_cpp_err"; then
15624   ac_header_preproc=yes
15625 else
15626   echo "$as_me: failed program was:" >&5
15627 sed 's/^/| /' conftest.$ac_ext >&5
15628
15629   ac_header_preproc=no
15630 fi
15631 rm -f conftest.err conftest.$ac_ext
15632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15633 echo "${ECHO_T}$ac_header_preproc" >&6
15634
15635 # So?  What about this header?
15636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15637   yes:no: )
15638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15642     ac_header_preproc=yes
15643     ;;
15644   no:yes:* )
15645     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15647     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15648 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15649     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15651     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15652 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15655     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15657     (
15658       cat <<\_ASBOX
15659 ## ------------------------------------------ ##
15660 ## Report this to the AC_PACKAGE_NAME lists.  ##
15661 ## ------------------------------------------ ##
15662 _ASBOX
15663     ) |
15664       sed "s/^/$as_me: WARNING:     /" >&2
15665     ;;
15666 esac
15667 echo "$as_me:$LINENO: checking for $ac_header" >&5
15668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15670   echo $ECHO_N "(cached) $ECHO_C" >&6
15671 else
15672   eval "$as_ac_Header=\$ac_header_preproc"
15673 fi
15674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15676
15677 fi
15678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15679   cat >>confdefs.h <<_ACEOF
15680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15681 _ACEOF
15682
15683 fi
15684
15685 done
15686
15687
15688
15689 for ac_header in sys/epoll.h
15690 do
15691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15693   echo "$as_me:$LINENO: checking for $ac_header" >&5
15694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15696   echo $ECHO_N "(cached) $ECHO_C" >&6
15697 fi
15698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15700 else
15701   # Is the header compilable?
15702 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15704 cat >conftest.$ac_ext <<_ACEOF
15705 /* confdefs.h.  */
15706 _ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h.  */
15710 $ac_includes_default
15711 #include <$ac_header>
15712 _ACEOF
15713 rm -f conftest.$ac_objext
15714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15715   (eval $ac_compile) 2>conftest.er1
15716   ac_status=$?
15717   grep -v '^ *+' conftest.er1 >conftest.err
15718   rm -f conftest.er1
15719   cat conftest.err >&5
15720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721   (exit $ac_status); } &&
15722          { ac_try='test -z "$ac_c_werror_flag"
15723                          || test ! -s conftest.err'
15724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725   (eval $ac_try) 2>&5
15726   ac_status=$?
15727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); }; } &&
15729          { ac_try='test -s conftest.$ac_objext'
15730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731   (eval $ac_try) 2>&5
15732   ac_status=$?
15733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734   (exit $ac_status); }; }; then
15735   ac_header_compiler=yes
15736 else
15737   echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15739
15740 ac_header_compiler=no
15741 fi
15742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15744 echo "${ECHO_T}$ac_header_compiler" >&6
15745
15746 # Is the header present?
15747 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15749 cat >conftest.$ac_ext <<_ACEOF
15750 /* confdefs.h.  */
15751 _ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h.  */
15755 #include <$ac_header>
15756 _ACEOF
15757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15758   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15759   ac_status=$?
15760   grep -v '^ *+' conftest.er1 >conftest.err
15761   rm -f conftest.er1
15762   cat conftest.err >&5
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); } >/dev/null; then
15765   if test -s conftest.err; then
15766     ac_cpp_err=$ac_c_preproc_warn_flag
15767     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15768   else
15769     ac_cpp_err=
15770   fi
15771 else
15772   ac_cpp_err=yes
15773 fi
15774 if test -z "$ac_cpp_err"; then
15775   ac_header_preproc=yes
15776 else
15777   echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780   ac_header_preproc=no
15781 fi
15782 rm -f conftest.err conftest.$ac_ext
15783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15784 echo "${ECHO_T}$ac_header_preproc" >&6
15785
15786 # So?  What about this header?
15787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15788   yes:no: )
15789     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15793     ac_header_preproc=yes
15794     ;;
15795   no:yes:* )
15796     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15798     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15799 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15800     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15802     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15803 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15806     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15808     (
15809       cat <<\_ASBOX
15810 ## ------------------------------------------ ##
15811 ## Report this to the AC_PACKAGE_NAME lists.  ##
15812 ## ------------------------------------------ ##
15813 _ASBOX
15814     ) |
15815       sed "s/^/$as_me: WARNING:     /" >&2
15816     ;;
15817 esac
15818 echo "$as_me:$LINENO: checking for $ac_header" >&5
15819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15821   echo $ECHO_N "(cached) $ECHO_C" >&6
15822 else
15823   eval "$as_ac_Header=\$ac_header_preproc"
15824 fi
15825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15827
15828 fi
15829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15830   cat >>confdefs.h <<_ACEOF
15831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15832 _ACEOF
15833
15834 fi
15835
15836 done
15837
15838 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15839 echo "$as_me:$LINENO: checking for epoll system call" >&5
15840 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15841 if test "$cross_compiling" = yes; then
15842   echo "$as_me:$LINENO: result: no" >&5
15843 echo "${ECHO_T}no" >&6
15844 else
15845   cat >conftest.$ac_ext <<_ACEOF
15846 /* confdefs.h.  */
15847 _ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h.  */
15851 int main(int argc, char *argv)
15852 {
15853         int epfd = epoll_create(256);
15854         exit (epfd == -1 ? 1 : 0);
15855 }
15856 _ACEOF
15857 rm -f conftest$ac_exeext
15858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15859   (eval $ac_link) 2>&5
15860   ac_status=$?
15861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864   (eval $ac_try) 2>&5
15865   ac_status=$?
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); }; }; then
15868   echo "$as_me:$LINENO: result: yes" >&5
15869 echo "${ECHO_T}yes" >&6
15870
15871 cat >>confdefs.h <<\_ACEOF
15872 #define HAVE_EPOLL 1
15873 _ACEOF
15874
15875 else
15876   echo "$as_me: program exited with status $ac_status" >&5
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15879
15880 ( exit $ac_status )
15881 echo "$as_me:$LINENO: result: no" >&5
15882 echo "${ECHO_T}no" >&6
15883 fi
15884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15885 fi
15886 fi
15887
15888 # strerror checks
15889 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15890 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15891 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15892   echo $ECHO_N "(cached) $ECHO_C" >&6
15893 else
15894
15895         cat >conftest.$ac_ext <<_ACEOF
15896 /* confdefs.h.  */
15897 _ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h.  */
15901
15902 #include <stdio.h>
15903 #include <sys/types.h>
15904 #include <errno.h>
15905 #ifdef WINNT
15906 #include <stdlib.h>
15907 #endif
15908 int
15909 main ()
15910 {
15911 char *c = (char *) *sys_errlist
15912   ;
15913   return 0;
15914 }
15915 _ACEOF
15916 rm -f conftest.$ac_objext
15917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15918   (eval $ac_compile) 2>conftest.er1
15919   ac_status=$?
15920   grep -v '^ *+' conftest.er1 >conftest.err
15921   rm -f conftest.er1
15922   cat conftest.err >&5
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); } &&
15925          { ac_try='test -z "$ac_c_werror_flag"
15926                          || test ! -s conftest.err'
15927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928   (eval $ac_try) 2>&5
15929   ac_status=$?
15930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931   (exit $ac_status); }; } &&
15932          { ac_try='test -s conftest.$ac_objext'
15933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934   (eval $ac_try) 2>&5
15935   ac_status=$?
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); }; }; then
15938   ol_cv_dcl_sys_errlist=yes
15939         ol_cv_have_sys_errlist=yes
15940 else
15941   echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15943
15944 ol_cv_dcl_sys_errlist=no
15945 fi
15946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15947 fi
15948 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15949 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15950 #
15951 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15952 if test $ol_cv_dcl_sys_errlist = no ; then
15953
15954 cat >>confdefs.h <<\_ACEOF
15955 #define DECL_SYS_ERRLIST 1
15956 _ACEOF
15957
15958
15959         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15960 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15961 if test "${ol_cv_have_sys_errlist+set}" = set; then
15962   echo $ECHO_N "(cached) $ECHO_C" >&6
15963 else
15964
15965                 cat >conftest.$ac_ext <<_ACEOF
15966 /* confdefs.h.  */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h.  */
15971 #include <errno.h>
15972 int
15973 main ()
15974 {
15975 char *c = (char *) *sys_errlist
15976   ;
15977   return 0;
15978 }
15979 _ACEOF
15980 rm -f conftest.$ac_objext conftest$ac_exeext
15981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15982   (eval $ac_link) 2>conftest.er1
15983   ac_status=$?
15984   grep -v '^ *+' conftest.er1 >conftest.err
15985   rm -f conftest.er1
15986   cat conftest.err >&5
15987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988   (exit $ac_status); } &&
15989          { ac_try='test -z "$ac_c_werror_flag"
15990                          || test ! -s conftest.err'
15991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992   (eval $ac_try) 2>&5
15993   ac_status=$?
15994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); }; } &&
15996          { ac_try='test -s conftest$ac_exeext'
15997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998   (eval $ac_try) 2>&5
15999   ac_status=$?
16000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   (exit $ac_status); }; }; then
16002   ol_cv_have_sys_errlist=yes
16003 else
16004   echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16006
16007 ol_cv_have_sys_errlist=no
16008 fi
16009 rm -f conftest.err conftest.$ac_objext \
16010       conftest$ac_exeext conftest.$ac_ext
16011 fi
16012 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16013 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16014 fi
16015 if test $ol_cv_have_sys_errlist = yes ; then
16016
16017 cat >>confdefs.h <<\_ACEOF
16018 #define HAVE_SYS_ERRLIST 1
16019 _ACEOF
16020
16021 fi
16022
16023
16024 for ac_func in strerror strerror_r
16025 do
16026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16027 echo "$as_me:$LINENO: checking for $ac_func" >&5
16028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16029 if eval "test \"\${$as_ac_var+set}\" = set"; then
16030   echo $ECHO_N "(cached) $ECHO_C" >&6
16031 else
16032   cat >conftest.$ac_ext <<_ACEOF
16033 /* confdefs.h.  */
16034 _ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h.  */
16038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16040 #define $ac_func innocuous_$ac_func
16041
16042 /* System header to define __stub macros and hopefully few prototypes,
16043     which can conflict with char $ac_func (); below.
16044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16045     <limits.h> exists even on freestanding compilers.  */
16046
16047 #ifdef __STDC__
16048 # include <limits.h>
16049 #else
16050 # include <assert.h>
16051 #endif
16052
16053 #undef $ac_func
16054
16055 /* Override any gcc2 internal prototype to avoid an error.  */
16056 #ifdef __cplusplus
16057 extern "C"
16058 {
16059 #endif
16060 /* We use char because int might match the return type of a gcc2
16061    builtin and then its argument prototype would still apply.  */
16062 char $ac_func ();
16063 /* The GNU C library defines this for functions which it implements
16064     to always fail with ENOSYS.  Some functions are actually named
16065     something starting with __ and the normal name is an alias.  */
16066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16067 choke me
16068 #else
16069 char (*f) () = $ac_func;
16070 #endif
16071 #ifdef __cplusplus
16072 }
16073 #endif
16074
16075 int
16076 main ()
16077 {
16078 return f != $ac_func;
16079   ;
16080   return 0;
16081 }
16082 _ACEOF
16083 rm -f conftest.$ac_objext conftest$ac_exeext
16084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16085   (eval $ac_link) 2>conftest.er1
16086   ac_status=$?
16087   grep -v '^ *+' conftest.er1 >conftest.err
16088   rm -f conftest.er1
16089   cat conftest.err >&5
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); } &&
16092          { ac_try='test -z "$ac_c_werror_flag"
16093                          || test ! -s conftest.err'
16094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095   (eval $ac_try) 2>&5
16096   ac_status=$?
16097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098   (exit $ac_status); }; } &&
16099          { ac_try='test -s conftest$ac_exeext'
16100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101   (eval $ac_try) 2>&5
16102   ac_status=$?
16103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104   (exit $ac_status); }; }; then
16105   eval "$as_ac_var=yes"
16106 else
16107   echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16109
16110 eval "$as_ac_var=no"
16111 fi
16112 rm -f conftest.err conftest.$ac_objext \
16113       conftest$ac_exeext conftest.$ac_ext
16114 fi
16115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16117 if test `eval echo '${'$as_ac_var'}'` = yes; then
16118   cat >>confdefs.h <<_ACEOF
16119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16120 _ACEOF
16121
16122 fi
16123 done
16124
16125 ol_cv_func_strerror_r=no
16126 if test "${ac_cv_func_strerror_r}" = yes ; then
16127         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16128 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16129 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16130   echo $ECHO_N "(cached) $ECHO_C" >&6
16131 else
16132
16133         cat >conftest.$ac_ext <<_ACEOF
16134 /* confdefs.h.  */
16135 _ACEOF
16136 cat confdefs.h >>conftest.$ac_ext
16137 cat >>conftest.$ac_ext <<_ACEOF
16138 /* end confdefs.h.  */
16139 #include <string.h>
16140 _ACEOF
16141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16142   $EGREP "strerror_r" >/dev/null 2>&1; then
16143   ol_decl_strerror_r=yes
16144 else
16145   ol_decl_strerror_r=no
16146 fi
16147 rm -f conftest*
16148
16149         if test $ol_decl_strerror_r = yes ; then
16150                 cat >conftest.$ac_ext <<_ACEOF
16151 /* confdefs.h.  */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h.  */
16156 #include <string.h>
16157 int
16158 main ()
16159 {
16160    /* from autoconf 2.59 */
16161                                 char buf[100];
16162                                 char x = *strerror_r (0, buf, sizeof buf);
16163                                 char *p = strerror_r (0, buf, sizeof buf);
16164
16165   ;
16166   return 0;
16167 }
16168 _ACEOF
16169 rm -f conftest.$ac_objext
16170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16171   (eval $ac_compile) 2>conftest.er1
16172   ac_status=$?
16173   grep -v '^ *+' conftest.er1 >conftest.err
16174   rm -f conftest.er1
16175   cat conftest.err >&5
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); } &&
16178          { ac_try='test -z "$ac_c_werror_flag"
16179                          || test ! -s conftest.err'
16180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181   (eval $ac_try) 2>&5
16182   ac_status=$?
16183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184   (exit $ac_status); }; } &&
16185          { ac_try='test -s conftest.$ac_objext'
16186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187   (eval $ac_try) 2>&5
16188   ac_status=$?
16189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190   (exit $ac_status); }; }; then
16191   ol_cv_nonposix_strerror_r=yes
16192 else
16193   echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16195
16196 ol_cv_nonposix_strerror_r=no
16197 fi
16198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16199         else
16200                 if test "$cross_compiling" = yes; then
16201   ol_cv_nonposix_strerror=no
16202 else
16203   cat >conftest.$ac_ext <<_ACEOF
16204 /* confdefs.h.  */
16205 _ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h.  */
16209
16210                         main() {
16211                                 char buf[100];
16212                                 buf[0] = 0;
16213                                 strerror_r( 1, buf, sizeof buf );
16214                                 exit( buf[0] == 0 );
16215                         }
16216
16217 _ACEOF
16218 rm -f conftest$ac_exeext
16219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16220   (eval $ac_link) 2>&5
16221   ac_status=$?
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225   (eval $ac_try) 2>&5
16226   ac_status=$?
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); }; }; then
16229   ol_cv_nonposix_strerror_r=yes
16230 else
16231   echo "$as_me: program exited with status $ac_status" >&5
16232 echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16234
16235 ( exit $ac_status )
16236 ol_cv_nonposix_strerror=no
16237 fi
16238 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16239 fi
16240         fi
16241
16242 fi
16243 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16244 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16245 if test $ol_cv_nonposix_strerror_r = yes ; then
16246
16247 cat >>confdefs.h <<\_ACEOF
16248 #define HAVE_NONPOSIX_STRERROR_R 1
16249 _ACEOF
16250
16251 fi
16252
16253 elif test "${ac_cv_func_strerror}" = no ; then
16254         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16255 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16256 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16257   echo $ECHO_N "(cached) $ECHO_C" >&6
16258 else
16259
16260         cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h.  */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h.  */
16266
16267 #include <stdio.h>
16268 #include <sys/types.h>
16269 #include <errno.h>
16270 #ifdef WINNT
16271 #include <stdlib.h>
16272 #endif
16273 int
16274 main ()
16275 {
16276 char *c = (char *) *sys_errlist
16277   ;
16278   return 0;
16279 }
16280 _ACEOF
16281 rm -f conftest.$ac_objext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16283   (eval $ac_compile) 2>conftest.er1
16284   ac_status=$?
16285   grep -v '^ *+' conftest.er1 >conftest.err
16286   rm -f conftest.er1
16287   cat conftest.err >&5
16288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289   (exit $ac_status); } &&
16290          { ac_try='test -z "$ac_c_werror_flag"
16291                          || test ! -s conftest.err'
16292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293   (eval $ac_try) 2>&5
16294   ac_status=$?
16295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); }; } &&
16297          { ac_try='test -s conftest.$ac_objext'
16298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299   (eval $ac_try) 2>&5
16300   ac_status=$?
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); }; }; then
16303   ol_cv_dcl_sys_errlist=yes
16304         ol_cv_have_sys_errlist=yes
16305 else
16306   echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16308
16309 ol_cv_dcl_sys_errlist=no
16310 fi
16311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16312 fi
16313 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16314 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16315 #
16316 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16317 if test $ol_cv_dcl_sys_errlist = no ; then
16318
16319 cat >>confdefs.h <<\_ACEOF
16320 #define DECL_SYS_ERRLIST 1
16321 _ACEOF
16322
16323
16324         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16325 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16326 if test "${ol_cv_have_sys_errlist+set}" = set; then
16327   echo $ECHO_N "(cached) $ECHO_C" >&6
16328 else
16329
16330                 cat >conftest.$ac_ext <<_ACEOF
16331 /* confdefs.h.  */
16332 _ACEOF
16333 cat confdefs.h >>conftest.$ac_ext
16334 cat >>conftest.$ac_ext <<_ACEOF
16335 /* end confdefs.h.  */
16336 #include <errno.h>
16337 int
16338 main ()
16339 {
16340 char *c = (char *) *sys_errlist
16341   ;
16342   return 0;
16343 }
16344 _ACEOF
16345 rm -f conftest.$ac_objext conftest$ac_exeext
16346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16347   (eval $ac_link) 2>conftest.er1
16348   ac_status=$?
16349   grep -v '^ *+' conftest.er1 >conftest.err
16350   rm -f conftest.er1
16351   cat conftest.err >&5
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); } &&
16354          { ac_try='test -z "$ac_c_werror_flag"
16355                          || test ! -s conftest.err'
16356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357   (eval $ac_try) 2>&5
16358   ac_status=$?
16359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360   (exit $ac_status); }; } &&
16361          { ac_try='test -s conftest$ac_exeext'
16362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363   (eval $ac_try) 2>&5
16364   ac_status=$?
16365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366   (exit $ac_status); }; }; then
16367   ol_cv_have_sys_errlist=yes
16368 else
16369   echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16371
16372 ol_cv_have_sys_errlist=no
16373 fi
16374 rm -f conftest.err conftest.$ac_objext \
16375       conftest$ac_exeext conftest.$ac_ext
16376 fi
16377 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16378 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16379 fi
16380 if test $ol_cv_have_sys_errlist = yes ; then
16381
16382 cat >>confdefs.h <<\_ACEOF
16383 #define HAVE_SYS_ERRLIST 1
16384 _ACEOF
16385
16386 fi
16387
16388 fi
16389
16390
16391
16392 for ac_header in regex.h
16393 do
16394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16396   echo "$as_me:$LINENO: checking for $ac_header" >&5
16397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16399   echo $ECHO_N "(cached) $ECHO_C" >&6
16400 fi
16401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16403 else
16404   # Is the header compilable?
16405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16407 cat >conftest.$ac_ext <<_ACEOF
16408 /* confdefs.h.  */
16409 _ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h.  */
16413 $ac_includes_default
16414 #include <$ac_header>
16415 _ACEOF
16416 rm -f conftest.$ac_objext
16417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16418   (eval $ac_compile) 2>conftest.er1
16419   ac_status=$?
16420   grep -v '^ *+' conftest.er1 >conftest.err
16421   rm -f conftest.er1
16422   cat conftest.err >&5
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); } &&
16425          { ac_try='test -z "$ac_c_werror_flag"
16426                          || test ! -s conftest.err'
16427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428   (eval $ac_try) 2>&5
16429   ac_status=$?
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); }; } &&
16432          { ac_try='test -s conftest.$ac_objext'
16433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434   (eval $ac_try) 2>&5
16435   ac_status=$?
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); }; }; then
16438   ac_header_compiler=yes
16439 else
16440   echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16442
16443 ac_header_compiler=no
16444 fi
16445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16447 echo "${ECHO_T}$ac_header_compiler" >&6
16448
16449 # Is the header present?
16450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16452 cat >conftest.$ac_ext <<_ACEOF
16453 /* confdefs.h.  */
16454 _ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h.  */
16458 #include <$ac_header>
16459 _ACEOF
16460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16462   ac_status=$?
16463   grep -v '^ *+' conftest.er1 >conftest.err
16464   rm -f conftest.er1
16465   cat conftest.err >&5
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); } >/dev/null; then
16468   if test -s conftest.err; then
16469     ac_cpp_err=$ac_c_preproc_warn_flag
16470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16471   else
16472     ac_cpp_err=
16473   fi
16474 else
16475   ac_cpp_err=yes
16476 fi
16477 if test -z "$ac_cpp_err"; then
16478   ac_header_preproc=yes
16479 else
16480   echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16482
16483   ac_header_preproc=no
16484 fi
16485 rm -f conftest.err conftest.$ac_ext
16486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16487 echo "${ECHO_T}$ac_header_preproc" >&6
16488
16489 # So?  What about this header?
16490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16491   yes:no: )
16492     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16496     ac_header_preproc=yes
16497     ;;
16498   no:yes:* )
16499     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16501     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16502 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16503     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16505     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16506 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16509     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16511     (
16512       cat <<\_ASBOX
16513 ## ------------------------------------------ ##
16514 ## Report this to the AC_PACKAGE_NAME lists.  ##
16515 ## ------------------------------------------ ##
16516 _ASBOX
16517     ) |
16518       sed "s/^/$as_me: WARNING:     /" >&2
16519     ;;
16520 esac
16521 echo "$as_me:$LINENO: checking for $ac_header" >&5
16522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16524   echo $ECHO_N "(cached) $ECHO_C" >&6
16525 else
16526   eval "$as_ac_Header=\$ac_header_preproc"
16527 fi
16528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16530
16531 fi
16532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16533   cat >>confdefs.h <<_ACEOF
16534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16535 _ACEOF
16536
16537 fi
16538
16539 done
16540
16541 if test "$ac_cv_header_regex_h" != yes ; then
16542         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16543 echo "$as_me: error: POSIX regex.h required." >&2;}
16544    { (exit 1); exit 1; }; }
16545 fi
16546 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16547 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16548 if test "${ac_cv_search_regfree+set}" = set; then
16549   echo $ECHO_N "(cached) $ECHO_C" >&6
16550 else
16551   ac_func_search_save_LIBS=$LIBS
16552 ac_cv_search_regfree=no
16553 cat >conftest.$ac_ext <<_ACEOF
16554 /* confdefs.h.  */
16555 _ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h.  */
16559
16560 /* Override any gcc2 internal prototype to avoid an error.  */
16561 #ifdef __cplusplus
16562 extern "C"
16563 #endif
16564 /* We use char because int might match the return type of a gcc2
16565    builtin and then its argument prototype would still apply.  */
16566 char regfree ();
16567 int
16568 main ()
16569 {
16570 regfree ();
16571   ;
16572   return 0;
16573 }
16574 _ACEOF
16575 rm -f conftest.$ac_objext conftest$ac_exeext
16576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16577   (eval $ac_link) 2>conftest.er1
16578   ac_status=$?
16579   grep -v '^ *+' conftest.er1 >conftest.err
16580   rm -f conftest.er1
16581   cat conftest.err >&5
16582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583   (exit $ac_status); } &&
16584          { ac_try='test -z "$ac_c_werror_flag"
16585                          || test ! -s conftest.err'
16586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587   (eval $ac_try) 2>&5
16588   ac_status=$?
16589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590   (exit $ac_status); }; } &&
16591          { ac_try='test -s conftest$ac_exeext'
16592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593   (eval $ac_try) 2>&5
16594   ac_status=$?
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); }; }; then
16597   ac_cv_search_regfree="none required"
16598 else
16599   echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16601
16602 fi
16603 rm -f conftest.err conftest.$ac_objext \
16604       conftest$ac_exeext conftest.$ac_ext
16605 if test "$ac_cv_search_regfree" = no; then
16606   for ac_lib in regex gnuregex; do
16607     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16608     cat >conftest.$ac_ext <<_ACEOF
16609 /* confdefs.h.  */
16610 _ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h.  */
16614
16615 /* Override any gcc2 internal prototype to avoid an error.  */
16616 #ifdef __cplusplus
16617 extern "C"
16618 #endif
16619 /* We use char because int might match the return type of a gcc2
16620    builtin and then its argument prototype would still apply.  */
16621 char regfree ();
16622 int
16623 main ()
16624 {
16625 regfree ();
16626   ;
16627   return 0;
16628 }
16629 _ACEOF
16630 rm -f conftest.$ac_objext conftest$ac_exeext
16631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16632   (eval $ac_link) 2>conftest.er1
16633   ac_status=$?
16634   grep -v '^ *+' conftest.er1 >conftest.err
16635   rm -f conftest.er1
16636   cat conftest.err >&5
16637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638   (exit $ac_status); } &&
16639          { ac_try='test -z "$ac_c_werror_flag"
16640                          || test ! -s conftest.err'
16641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642   (eval $ac_try) 2>&5
16643   ac_status=$?
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); }; } &&
16646          { ac_try='test -s conftest$ac_exeext'
16647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648   (eval $ac_try) 2>&5
16649   ac_status=$?
16650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651   (exit $ac_status); }; }; then
16652   ac_cv_search_regfree="-l$ac_lib"
16653 break
16654 else
16655   echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658 fi
16659 rm -f conftest.err conftest.$ac_objext \
16660       conftest$ac_exeext conftest.$ac_ext
16661   done
16662 fi
16663 LIBS=$ac_func_search_save_LIBS
16664 fi
16665 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16666 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16667 if test "$ac_cv_search_regfree" != no; then
16668   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16669   :
16670 else
16671   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16672 echo "$as_me: error: POSIX regex required." >&2;}
16673    { (exit 1); exit 1; }; }
16674 fi
16675
16676
16677
16678 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16679 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16680 if test "${ol_cv_c_posix_regex+set}" = set; then
16681   echo $ECHO_N "(cached) $ECHO_C" >&6
16682 else
16683
16684         if test "$cross_compiling" = yes; then
16685   ol_cv_c_posix_regex=cross
16686 else
16687   cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h.  */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h.  */
16693
16694 #include <sys/types.h>
16695 #include <regex.h>
16696 static char *pattern, *string;
16697 main()
16698 {
16699         int rc;
16700         regex_t re;
16701
16702         pattern = "^A";
16703
16704         if(regcomp(&re, pattern, 0)) {
16705                 return -1;
16706         }
16707
16708         string = "ALL MATCH";
16709
16710         rc = regexec(&re, string, 0, (void*)0, 0);
16711
16712         regfree(&re);
16713
16714         return rc;
16715 }
16716 _ACEOF
16717 rm -f conftest$ac_exeext
16718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16719   (eval $ac_link) 2>&5
16720   ac_status=$?
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724   (eval $ac_try) 2>&5
16725   ac_status=$?
16726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727   (exit $ac_status); }; }; then
16728   ol_cv_c_posix_regex=yes
16729 else
16730   echo "$as_me: program exited with status $ac_status" >&5
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16733
16734 ( exit $ac_status )
16735 ol_cv_c_posix_regex=no
16736 fi
16737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16738 fi
16739 fi
16740 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16741 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16742
16743 if test "$ol_cv_c_posix_regex" = no ; then
16744         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16745 echo "$as_me: error: broken POSIX regex!" >&2;}
16746    { (exit 1); exit 1; }; }
16747 fi
16748
16749
16750 have_uuid=no
16751
16752 for ac_header in sys/uuid.h
16753 do
16754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16756   echo "$as_me:$LINENO: checking for $ac_header" >&5
16757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16759   echo $ECHO_N "(cached) $ECHO_C" >&6
16760 fi
16761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16763 else
16764   # Is the header compilable?
16765 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16767 cat >conftest.$ac_ext <<_ACEOF
16768 /* confdefs.h.  */
16769 _ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h.  */
16773 $ac_includes_default
16774 #include <$ac_header>
16775 _ACEOF
16776 rm -f conftest.$ac_objext
16777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16778   (eval $ac_compile) 2>conftest.er1
16779   ac_status=$?
16780   grep -v '^ *+' conftest.er1 >conftest.err
16781   rm -f conftest.er1
16782   cat conftest.err >&5
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); } &&
16785          { ac_try='test -z "$ac_c_werror_flag"
16786                          || test ! -s conftest.err'
16787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788   (eval $ac_try) 2>&5
16789   ac_status=$?
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); }; } &&
16792          { ac_try='test -s conftest.$ac_objext'
16793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794   (eval $ac_try) 2>&5
16795   ac_status=$?
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); }; }; then
16798   ac_header_compiler=yes
16799 else
16800   echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16802
16803 ac_header_compiler=no
16804 fi
16805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16806 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16807 echo "${ECHO_T}$ac_header_compiler" >&6
16808
16809 # Is the header present?
16810 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16812 cat >conftest.$ac_ext <<_ACEOF
16813 /* confdefs.h.  */
16814 _ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h.  */
16818 #include <$ac_header>
16819 _ACEOF
16820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16821   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16822   ac_status=$?
16823   grep -v '^ *+' conftest.er1 >conftest.err
16824   rm -f conftest.er1
16825   cat conftest.err >&5
16826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); } >/dev/null; then
16828   if test -s conftest.err; then
16829     ac_cpp_err=$ac_c_preproc_warn_flag
16830     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16831   else
16832     ac_cpp_err=
16833   fi
16834 else
16835   ac_cpp_err=yes
16836 fi
16837 if test -z "$ac_cpp_err"; then
16838   ac_header_preproc=yes
16839 else
16840   echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16842
16843   ac_header_preproc=no
16844 fi
16845 rm -f conftest.err conftest.$ac_ext
16846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16847 echo "${ECHO_T}$ac_header_preproc" >&6
16848
16849 # So?  What about this header?
16850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16851   yes:no: )
16852     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16856     ac_header_preproc=yes
16857     ;;
16858   no:yes:* )
16859     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16861     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16862 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16863     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16865     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16866 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16869     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16871     (
16872       cat <<\_ASBOX
16873 ## ------------------------------------------ ##
16874 ## Report this to the AC_PACKAGE_NAME lists.  ##
16875 ## ------------------------------------------ ##
16876 _ASBOX
16877     ) |
16878       sed "s/^/$as_me: WARNING:     /" >&2
16879     ;;
16880 esac
16881 echo "$as_me:$LINENO: checking for $ac_header" >&5
16882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16884   echo $ECHO_N "(cached) $ECHO_C" >&6
16885 else
16886   eval "$as_ac_Header=\$ac_header_preproc"
16887 fi
16888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16890
16891 fi
16892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16893   cat >>confdefs.h <<_ACEOF
16894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16895 _ACEOF
16896
16897 fi
16898
16899 done
16900
16901 if test $ac_cv_header_sys_uuid_h = yes ; then
16902         save_LIBS="$LIBS"
16903         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16904 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16905 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16906   echo $ECHO_N "(cached) $ECHO_C" >&6
16907 else
16908   ac_func_search_save_LIBS=$LIBS
16909 ac_cv_search_uuid_to_str=no
16910 cat >conftest.$ac_ext <<_ACEOF
16911 /* confdefs.h.  */
16912 _ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h.  */
16916
16917 /* Override any gcc2 internal prototype to avoid an error.  */
16918 #ifdef __cplusplus
16919 extern "C"
16920 #endif
16921 /* We use char because int might match the return type of a gcc2
16922    builtin and then its argument prototype would still apply.  */
16923 char uuid_to_str ();
16924 int
16925 main ()
16926 {
16927 uuid_to_str ();
16928   ;
16929   return 0;
16930 }
16931 _ACEOF
16932 rm -f conftest.$ac_objext conftest$ac_exeext
16933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16934   (eval $ac_link) 2>conftest.er1
16935   ac_status=$?
16936   grep -v '^ *+' conftest.er1 >conftest.err
16937   rm -f conftest.er1
16938   cat conftest.err >&5
16939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940   (exit $ac_status); } &&
16941          { ac_try='test -z "$ac_c_werror_flag"
16942                          || test ! -s conftest.err'
16943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944   (eval $ac_try) 2>&5
16945   ac_status=$?
16946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947   (exit $ac_status); }; } &&
16948          { ac_try='test -s conftest$ac_exeext'
16949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950   (eval $ac_try) 2>&5
16951   ac_status=$?
16952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953   (exit $ac_status); }; }; then
16954   ac_cv_search_uuid_to_str="none required"
16955 else
16956   echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16958
16959 fi
16960 rm -f conftest.err conftest.$ac_objext \
16961       conftest$ac_exeext conftest.$ac_ext
16962 if test "$ac_cv_search_uuid_to_str" = no; then
16963   for ac_lib in uuid; do
16964     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16965     cat >conftest.$ac_ext <<_ACEOF
16966 /* confdefs.h.  */
16967 _ACEOF
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h.  */
16971
16972 /* Override any gcc2 internal prototype to avoid an error.  */
16973 #ifdef __cplusplus
16974 extern "C"
16975 #endif
16976 /* We use char because int might match the return type of a gcc2
16977    builtin and then its argument prototype would still apply.  */
16978 char uuid_to_str ();
16979 int
16980 main ()
16981 {
16982 uuid_to_str ();
16983   ;
16984   return 0;
16985 }
16986 _ACEOF
16987 rm -f conftest.$ac_objext conftest$ac_exeext
16988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16989   (eval $ac_link) 2>conftest.er1
16990   ac_status=$?
16991   grep -v '^ *+' conftest.er1 >conftest.err
16992   rm -f conftest.er1
16993   cat conftest.err >&5
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); } &&
16996          { ac_try='test -z "$ac_c_werror_flag"
16997                          || test ! -s conftest.err'
16998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999   (eval $ac_try) 2>&5
17000   ac_status=$?
17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002   (exit $ac_status); }; } &&
17003          { ac_try='test -s conftest$ac_exeext'
17004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005   (eval $ac_try) 2>&5
17006   ac_status=$?
17007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008   (exit $ac_status); }; }; then
17009   ac_cv_search_uuid_to_str="-l$ac_lib"
17010 break
17011 else
17012   echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17014
17015 fi
17016 rm -f conftest.err conftest.$ac_objext \
17017       conftest$ac_exeext conftest.$ac_ext
17018   done
17019 fi
17020 LIBS=$ac_func_search_save_LIBS
17021 fi
17022 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17023 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17024 if test "$ac_cv_search_uuid_to_str" != no; then
17025   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17026   have_uuid=yes
17027 else
17028   :
17029 fi
17030
17031         LIBS="$save_LIBS"
17032
17033         if test have_uuid = yes ; then
17034
17035 cat >>confdefs.h <<\_ACEOF
17036 #define HAVE_UUID_TO_STR 1
17037 _ACEOF
17038
17039
17040                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17041                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17042         fi
17043 fi
17044
17045 if test $have_uuid = no ; then
17046         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17047 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17048         save_LIBS="$LIBS"
17049         LIBS="$LIBS -lrpcrt4"
17050         cat >conftest.$ac_ext <<_ACEOF
17051 /* confdefs.h.  */
17052 _ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h.  */
17056
17057                 int __stdcall UuidCreate(void *);
17058                 int __stdcall UuidToStringA(void *,void **);
17059
17060 int
17061 main ()
17062 {
17063
17064                 UuidCreate(0);
17065                 UuidToStringA(0,0);
17066
17067   ;
17068   return 0;
17069 }
17070 _ACEOF
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17073   (eval $ac_link) 2>conftest.er1
17074   ac_status=$?
17075   grep -v '^ *+' conftest.er1 >conftest.err
17076   rm -f conftest.er1
17077   cat conftest.err >&5
17078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079   (exit $ac_status); } &&
17080          { ac_try='test -z "$ac_c_werror_flag"
17081                          || test ! -s conftest.err'
17082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083   (eval $ac_try) 2>&5
17084   ac_status=$?
17085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086   (exit $ac_status); }; } &&
17087          { ac_try='test -s conftest$ac_exeext'
17088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089   (eval $ac_try) 2>&5
17090   ac_status=$?
17091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); }; }; then
17093   need_rpcrt=yes
17094 else
17095   echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17097
17098 need_rpcrt=no
17099 fi
17100 rm -f conftest.err conftest.$ac_objext \
17101       conftest$ac_exeext conftest.$ac_ext
17102         if test $need_rpcrt = yes; then
17103                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17104         fi
17105         LIBS="$save_LIBS"
17106         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17107 echo "${ECHO_T}$need_rpcrt" >&6
17108 fi
17109
17110 ol_cv_lib_resolver=no
17111 if test $ol_cv_lib_resolver = no ; then
17112         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17113 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17114 if test "${ol_cv_resolver_none+set}" = set; then
17115   echo $ECHO_N "(cached) $ECHO_C" >&6
17116 else
17117
17118         ol_RESOLVER_LIB=
17119         ol_LIBS=$LIBS
17120         LIBS="$ol_RESOLVER_LIB $LIBS"
17121
17122         cat >conftest.$ac_ext <<_ACEOF
17123 /* confdefs.h.  */
17124 _ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h.  */
17128
17129 #ifdef HAVE_SYS_TYPES_H
17130 #       include <sys/types.h>
17131 #endif
17132 #include <netinet/in.h>
17133 #ifdef HAVE_ARPA_NAMESER_H
17134 #       include <arpa/nameser.h>
17135 #endif
17136 #ifdef HAVE_RESOLV_H
17137 #       include <resolv.h>
17138 #endif
17139
17140 int
17141 main ()
17142 {
17143 {
17144         int len, status;
17145         char *request = NULL;
17146         unsigned char reply[64*1024];
17147         unsigned char host[64*1024];
17148         unsigned char *p;
17149
17150 #ifdef NS_HFIXEDSZ
17151         /* Bind 8/9 interface */
17152         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17153 #else
17154         /* Bind 4 interface */
17155 # ifndef T_SRV
17156 #  define T_SRV 33
17157 # endif
17158         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17159 #endif
17160         p = reply;
17161 #ifdef NS_HFIXEDSZ
17162         /* Bind 8/9 interface */
17163         p += NS_HFIXEDSZ;
17164 #elif defined(HFIXEDSZ)
17165         /* Bind 4 interface w/ HFIXEDSZ */
17166         p += HFIXEDSZ;
17167 #else
17168         /* Bind 4 interface w/o HFIXEDSZ */
17169         p += sizeof(HEADER);
17170 #endif
17171         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17172 }
17173   ;
17174   return 0;
17175 }
17176 _ACEOF
17177 rm -f conftest.$ac_objext conftest$ac_exeext
17178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17179   (eval $ac_link) 2>conftest.er1
17180   ac_status=$?
17181   grep -v '^ *+' conftest.er1 >conftest.err
17182   rm -f conftest.er1
17183   cat conftest.err >&5
17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185   (exit $ac_status); } &&
17186          { ac_try='test -z "$ac_c_werror_flag"
17187                          || test ! -s conftest.err'
17188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189   (eval $ac_try) 2>&5
17190   ac_status=$?
17191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192   (exit $ac_status); }; } &&
17193          { ac_try='test -s conftest$ac_exeext'
17194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195   (eval $ac_try) 2>&5
17196   ac_status=$?
17197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198   (exit $ac_status); }; }; then
17199   ol_cv_resolver_none=yes
17200 else
17201   echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17203
17204 ol_cv_resolver_none=no
17205 fi
17206 rm -f conftest.err conftest.$ac_objext \
17207       conftest$ac_exeext conftest.$ac_ext
17208
17209         LIBS="$ol_LIBS"
17210
17211 fi
17212 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17213 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17214
17215         if test $ol_cv_resolver_none = yes ; then
17216                 ol_cv_lib_resolver=yes
17217         fi
17218 fi
17219
17220 if test $ol_cv_lib_resolver = no ; then
17221         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17222 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17223 if test "${ol_cv_resolver_resolv+set}" = set; then
17224   echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226
17227         ol_RESOLVER_LIB=-lresolv
17228         ol_LIBS=$LIBS
17229         LIBS="$ol_RESOLVER_LIB $LIBS"
17230
17231         cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h.  */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h.  */
17237
17238 #ifdef HAVE_SYS_TYPES_H
17239 #       include <sys/types.h>
17240 #endif
17241 #include <netinet/in.h>
17242 #ifdef HAVE_ARPA_NAMESER_H
17243 #       include <arpa/nameser.h>
17244 #endif
17245 #ifdef HAVE_RESOLV_H
17246 #       include <resolv.h>
17247 #endif
17248
17249 int
17250 main ()
17251 {
17252 {
17253         int len, status;
17254         char *request = NULL;
17255         unsigned char reply[64*1024];
17256         unsigned char host[64*1024];
17257         unsigned char *p;
17258
17259 #ifdef NS_HFIXEDSZ
17260         /* Bind 8/9 interface */
17261         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17262 #else
17263         /* Bind 4 interface */
17264 # ifndef T_SRV
17265 #  define T_SRV 33
17266 # endif
17267         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17268 #endif
17269         p = reply;
17270 #ifdef NS_HFIXEDSZ
17271         /* Bind 8/9 interface */
17272         p += NS_HFIXEDSZ;
17273 #elif defined(HFIXEDSZ)
17274         /* Bind 4 interface w/ HFIXEDSZ */
17275         p += HFIXEDSZ;
17276 #else
17277         /* Bind 4 interface w/o HFIXEDSZ */
17278         p += sizeof(HEADER);
17279 #endif
17280         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17281 }
17282   ;
17283   return 0;
17284 }
17285 _ACEOF
17286 rm -f conftest.$ac_objext conftest$ac_exeext
17287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17288   (eval $ac_link) 2>conftest.er1
17289   ac_status=$?
17290   grep -v '^ *+' conftest.er1 >conftest.err
17291   rm -f conftest.er1
17292   cat conftest.err >&5
17293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); } &&
17295          { ac_try='test -z "$ac_c_werror_flag"
17296                          || test ! -s conftest.err'
17297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298   (eval $ac_try) 2>&5
17299   ac_status=$?
17300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301   (exit $ac_status); }; } &&
17302          { ac_try='test -s conftest$ac_exeext'
17303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304   (eval $ac_try) 2>&5
17305   ac_status=$?
17306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); }; }; then
17308   ol_cv_resolver_resolv=yes
17309 else
17310   echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17312
17313 ol_cv_resolver_resolv=no
17314 fi
17315 rm -f conftest.err conftest.$ac_objext \
17316       conftest$ac_exeext conftest.$ac_ext
17317
17318         LIBS="$ol_LIBS"
17319
17320 fi
17321 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17322 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17323
17324         if test $ol_cv_resolver_resolv = yes ; then
17325                 ol_cv_lib_resolver=-lresolv
17326         fi
17327 fi
17328
17329 if test $ol_cv_lib_resolver = no ; then
17330         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17331 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17332 if test "${ol_cv_resolver_bind+set}" = set; then
17333   echo $ECHO_N "(cached) $ECHO_C" >&6
17334 else
17335
17336         ol_RESOLVER_LIB=-lbind
17337         ol_LIBS=$LIBS
17338         LIBS="$ol_RESOLVER_LIB $LIBS"
17339
17340         cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346
17347 #ifdef HAVE_SYS_TYPES_H
17348 #       include <sys/types.h>
17349 #endif
17350 #include <netinet/in.h>
17351 #ifdef HAVE_ARPA_NAMESER_H
17352 #       include <arpa/nameser.h>
17353 #endif
17354 #ifdef HAVE_RESOLV_H
17355 #       include <resolv.h>
17356 #endif
17357
17358 int
17359 main ()
17360 {
17361 {
17362         int len, status;
17363         char *request = NULL;
17364         unsigned char reply[64*1024];
17365         unsigned char host[64*1024];
17366         unsigned char *p;
17367
17368 #ifdef NS_HFIXEDSZ
17369         /* Bind 8/9 interface */
17370         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17371 #else
17372         /* Bind 4 interface */
17373 # ifndef T_SRV
17374 #  define T_SRV 33
17375 # endif
17376         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17377 #endif
17378         p = reply;
17379 #ifdef NS_HFIXEDSZ
17380         /* Bind 8/9 interface */
17381         p += NS_HFIXEDSZ;
17382 #elif defined(HFIXEDSZ)
17383         /* Bind 4 interface w/ HFIXEDSZ */
17384         p += HFIXEDSZ;
17385 #else
17386         /* Bind 4 interface w/o HFIXEDSZ */
17387         p += sizeof(HEADER);
17388 #endif
17389         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17390 }
17391   ;
17392   return 0;
17393 }
17394 _ACEOF
17395 rm -f conftest.$ac_objext conftest$ac_exeext
17396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17397   (eval $ac_link) 2>conftest.er1
17398   ac_status=$?
17399   grep -v '^ *+' conftest.er1 >conftest.err
17400   rm -f conftest.er1
17401   cat conftest.err >&5
17402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403   (exit $ac_status); } &&
17404          { ac_try='test -z "$ac_c_werror_flag"
17405                          || test ! -s conftest.err'
17406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407   (eval $ac_try) 2>&5
17408   ac_status=$?
17409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410   (exit $ac_status); }; } &&
17411          { ac_try='test -s conftest$ac_exeext'
17412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413   (eval $ac_try) 2>&5
17414   ac_status=$?
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); }; }; then
17417   ol_cv_resolver_bind=yes
17418 else
17419   echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17421
17422 ol_cv_resolver_bind=no
17423 fi
17424 rm -f conftest.err conftest.$ac_objext \
17425       conftest$ac_exeext conftest.$ac_ext
17426
17427         LIBS="$ol_LIBS"
17428
17429 fi
17430 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17431 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17432
17433         if test $ol_cv_resolver_bind = yes ; then
17434                 ol_cv_lib_resolver=-lbind
17435         fi
17436 fi
17437
17438
17439
17440 ol_link_dnssrv=no
17441 if test "$ol_cv_lib_resolver" != no ; then
17442
17443 cat >>confdefs.h <<\_ACEOF
17444 #define HAVE_RES_QUERY 1
17445 _ACEOF
17446
17447
17448         if test "$ol_enable_dnssrv" != no ; then
17449                 ol_link_dnssrv=yes
17450         fi
17451
17452         if test "$ol_cv_lib_resolver" != yes ; then
17453                 LIBS="$ol_cv_lib_resolver $LIBS"
17454         fi
17455 fi
17456
17457 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17458         if test "$ol_link_dnssrv" = no ; then
17459                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17460 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17461    { (exit 1); exit 1; }; }
17462         fi
17463 else
17464         ol_enable_dnssrv=no
17465 fi
17466
17467
17468 for ac_func in hstrerror
17469 do
17470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17471 echo "$as_me:$LINENO: checking for $ac_func" >&5
17472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17473 if eval "test \"\${$as_ac_var+set}\" = set"; then
17474   echo $ECHO_N "(cached) $ECHO_C" >&6
17475 else
17476   cat >conftest.$ac_ext <<_ACEOF
17477 /* confdefs.h.  */
17478 _ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h.  */
17482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17484 #define $ac_func innocuous_$ac_func
17485
17486 /* System header to define __stub macros and hopefully few prototypes,
17487     which can conflict with char $ac_func (); below.
17488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17489     <limits.h> exists even on freestanding compilers.  */
17490
17491 #ifdef __STDC__
17492 # include <limits.h>
17493 #else
17494 # include <assert.h>
17495 #endif
17496
17497 #undef $ac_func
17498
17499 /* Override any gcc2 internal prototype to avoid an error.  */
17500 #ifdef __cplusplus
17501 extern "C"
17502 {
17503 #endif
17504 /* We use char because int might match the return type of a gcc2
17505    builtin and then its argument prototype would still apply.  */
17506 char $ac_func ();
17507 /* The GNU C library defines this for functions which it implements
17508     to always fail with ENOSYS.  Some functions are actually named
17509     something starting with __ and the normal name is an alias.  */
17510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17511 choke me
17512 #else
17513 char (*f) () = $ac_func;
17514 #endif
17515 #ifdef __cplusplus
17516 }
17517 #endif
17518
17519 int
17520 main ()
17521 {
17522 return f != $ac_func;
17523   ;
17524   return 0;
17525 }
17526 _ACEOF
17527 rm -f conftest.$ac_objext conftest$ac_exeext
17528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17529   (eval $ac_link) 2>conftest.er1
17530   ac_status=$?
17531   grep -v '^ *+' conftest.er1 >conftest.err
17532   rm -f conftest.er1
17533   cat conftest.err >&5
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); } &&
17536          { ac_try='test -z "$ac_c_werror_flag"
17537                          || test ! -s conftest.err'
17538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539   (eval $ac_try) 2>&5
17540   ac_status=$?
17541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542   (exit $ac_status); }; } &&
17543          { ac_try='test -s conftest$ac_exeext'
17544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545   (eval $ac_try) 2>&5
17546   ac_status=$?
17547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548   (exit $ac_status); }; }; then
17549   eval "$as_ac_var=yes"
17550 else
17551   echo "$as_me: failed program was:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17553
17554 eval "$as_ac_var=no"
17555 fi
17556 rm -f conftest.err conftest.$ac_objext \
17557       conftest$ac_exeext conftest.$ac_ext
17558 fi
17559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17561 if test `eval echo '${'$as_ac_var'}'` = yes; then
17562   cat >>confdefs.h <<_ACEOF
17563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17564 _ACEOF
17565
17566 fi
17567 done
17568
17569
17570
17571
17572
17573
17574 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17575 do
17576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17577 echo "$as_me:$LINENO: checking for $ac_func" >&5
17578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17579 if eval "test \"\${$as_ac_var+set}\" = set"; then
17580   echo $ECHO_N "(cached) $ECHO_C" >&6
17581 else
17582   cat >conftest.$ac_ext <<_ACEOF
17583 /* confdefs.h.  */
17584 _ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h.  */
17588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17589    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17590 #define $ac_func innocuous_$ac_func
17591
17592 /* System header to define __stub macros and hopefully few prototypes,
17593     which can conflict with char $ac_func (); below.
17594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17595     <limits.h> exists even on freestanding compilers.  */
17596
17597 #ifdef __STDC__
17598 # include <limits.h>
17599 #else
17600 # include <assert.h>
17601 #endif
17602
17603 #undef $ac_func
17604
17605 /* Override any gcc2 internal prototype to avoid an error.  */
17606 #ifdef __cplusplus
17607 extern "C"
17608 {
17609 #endif
17610 /* We use char because int might match the return type of a gcc2
17611    builtin and then its argument prototype would still apply.  */
17612 char $ac_func ();
17613 /* The GNU C library defines this for functions which it implements
17614     to always fail with ENOSYS.  Some functions are actually named
17615     something starting with __ and the normal name is an alias.  */
17616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17617 choke me
17618 #else
17619 char (*f) () = $ac_func;
17620 #endif
17621 #ifdef __cplusplus
17622 }
17623 #endif
17624
17625 int
17626 main ()
17627 {
17628 return f != $ac_func;
17629   ;
17630   return 0;
17631 }
17632 _ACEOF
17633 rm -f conftest.$ac_objext conftest$ac_exeext
17634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17635   (eval $ac_link) 2>conftest.er1
17636   ac_status=$?
17637   grep -v '^ *+' conftest.er1 >conftest.err
17638   rm -f conftest.er1
17639   cat conftest.err >&5
17640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641   (exit $ac_status); } &&
17642          { ac_try='test -z "$ac_c_werror_flag"
17643                          || test ! -s conftest.err'
17644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645   (eval $ac_try) 2>&5
17646   ac_status=$?
17647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); }; } &&
17649          { ac_try='test -s conftest$ac_exeext'
17650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651   (eval $ac_try) 2>&5
17652   ac_status=$?
17653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654   (exit $ac_status); }; }; then
17655   eval "$as_ac_var=yes"
17656 else
17657   echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17659
17660 eval "$as_ac_var=no"
17661 fi
17662 rm -f conftest.err conftest.$ac_objext \
17663       conftest$ac_exeext conftest.$ac_ext
17664 fi
17665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17667 if test `eval echo '${'$as_ac_var'}'` = yes; then
17668   cat >>confdefs.h <<_ACEOF
17669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17670 _ACEOF
17671
17672 fi
17673 done
17674
17675
17676 ol_link_ipv6=no
17677 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17678         if test $ol_enable_ipv6 = yes ; then
17679                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17680 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17681    { (exit 1); exit 1; }; }
17682         fi
17683 elif test $ol_enable_ipv6 != no ; then
17684         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17685 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17686 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17687   echo $ECHO_N "(cached) $ECHO_C" >&6
17688 else
17689
17690                 cat >conftest.$ac_ext <<_ACEOF
17691 /* confdefs.h.  */
17692 _ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h.  */
17696
17697 #                       include <netinet/in.h>
17698 #                       ifdef INET6_ADDRSTRLEN
17699                                 __has_inet6_addrstrlen__;
17700 #                       endif
17701
17702 _ACEOF
17703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17704   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17705   ol_cv_inet6_addrstrlen=yes
17706 else
17707   ol_cv_inet6_addrstrlen=no
17708 fi
17709 rm -f conftest*
17710
17711 fi
17712 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17713 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17714
17715
17716         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17717 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17718 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17719   echo $ECHO_N "(cached) $ECHO_C" >&6
17720 else
17721
17722                 cat >conftest.$ac_ext <<_ACEOF
17723 /* confdefs.h.  */
17724 _ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h.  */
17728
17729 #include <sys/types.h>
17730 #include <sys/socket.h>
17731
17732 int
17733 main ()
17734 {
17735
17736                         struct sockaddr_storage ss;
17737
17738   ;
17739   return 0;
17740 }
17741 _ACEOF
17742 rm -f conftest.$ac_objext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17744   (eval $ac_compile) 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_objext'
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   ol_cv_struct_sockaddr_storage=yes
17765 else
17766   echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17768
17769 ol_cv_struct_sockaddr_storage=no
17770 fi
17771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17772 fi
17773 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17774 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17775
17776         if test $ol_cv_inet6_addrstrlen = yes &&
17777            test $ol_cv_struct_sockaddr_storage = yes ; then
17778                 ol_link_ipv6=yes
17779         elif test $ol_enable_ipv6 = yes &&
17780              test $ol_cv_inet6_addrstrlen = no ; then
17781                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17782 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17783    { (exit 1); exit 1; }; }
17784         elif test $ol_enable_ipv6 = yes &&
17785              test $ol_cv_struct_sockaddr_storage = no ; then
17786                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17787 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17788    { (exit 1); exit 1; }; }
17789         fi
17790 fi
17791
17792 if test $ol_enable_local != no ; then
17793
17794 for ac_header in sys/un.h
17795 do
17796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17798   echo "$as_me:$LINENO: checking for $ac_header" >&5
17799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17801   echo $ECHO_N "(cached) $ECHO_C" >&6
17802 fi
17803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17805 else
17806   # Is the header compilable?
17807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17809 cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h.  */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h.  */
17815 $ac_includes_default
17816 #include <$ac_header>
17817 _ACEOF
17818 rm -f conftest.$ac_objext
17819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17820   (eval $ac_compile) 2>conftest.er1
17821   ac_status=$?
17822   grep -v '^ *+' conftest.er1 >conftest.err
17823   rm -f conftest.er1
17824   cat conftest.err >&5
17825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826   (exit $ac_status); } &&
17827          { ac_try='test -z "$ac_c_werror_flag"
17828                          || test ! -s conftest.err'
17829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830   (eval $ac_try) 2>&5
17831   ac_status=$?
17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); }; } &&
17834          { ac_try='test -s conftest.$ac_objext'
17835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836   (eval $ac_try) 2>&5
17837   ac_status=$?
17838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839   (exit $ac_status); }; }; then
17840   ac_header_compiler=yes
17841 else
17842   echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17844
17845 ac_header_compiler=no
17846 fi
17847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17849 echo "${ECHO_T}$ac_header_compiler" >&6
17850
17851 # Is the header present?
17852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17854 cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h.  */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h.  */
17860 #include <$ac_header>
17861 _ACEOF
17862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17864   ac_status=$?
17865   grep -v '^ *+' conftest.er1 >conftest.err
17866   rm -f conftest.er1
17867   cat conftest.err >&5
17868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869   (exit $ac_status); } >/dev/null; then
17870   if test -s conftest.err; then
17871     ac_cpp_err=$ac_c_preproc_warn_flag
17872     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17873   else
17874     ac_cpp_err=
17875   fi
17876 else
17877   ac_cpp_err=yes
17878 fi
17879 if test -z "$ac_cpp_err"; then
17880   ac_header_preproc=yes
17881 else
17882   echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17884
17885   ac_header_preproc=no
17886 fi
17887 rm -f conftest.err conftest.$ac_ext
17888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17889 echo "${ECHO_T}$ac_header_preproc" >&6
17890
17891 # So?  What about this header?
17892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17893   yes:no: )
17894     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17898     ac_header_preproc=yes
17899     ;;
17900   no:yes:* )
17901     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17903     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17904 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17905     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17907     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17908 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17911     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17913     (
17914       cat <<\_ASBOX
17915 ## ------------------------------------------ ##
17916 ## Report this to the AC_PACKAGE_NAME lists.  ##
17917 ## ------------------------------------------ ##
17918 _ASBOX
17919     ) |
17920       sed "s/^/$as_me: WARNING:     /" >&2
17921     ;;
17922 esac
17923 echo "$as_me:$LINENO: checking for $ac_header" >&5
17924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17926   echo $ECHO_N "(cached) $ECHO_C" >&6
17927 else
17928   eval "$as_ac_Header=\$ac_header_preproc"
17929 fi
17930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17932
17933 fi
17934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17935   cat >>confdefs.h <<_ACEOF
17936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17937 _ACEOF
17938
17939 fi
17940
17941 done
17942
17943
17944         if test $ol_enable_local = auto ; then
17945                 ol_enable_local=$ac_cv_header_sys_un_h
17946         elif test $ac_cv_header_sys_un_h = no ; then
17947                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17948 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17949    { (exit 1); exit 1; }; }
17950         fi
17951 fi
17952
17953 ol_link_kbind=no
17954 ol_link_krb5=no
17955 ol_link_krb4=no
17956
17957 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17958
17959
17960 for ac_header in krb5.h
17961 do
17962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17964   echo "$as_me:$LINENO: checking for $ac_header" >&5
17965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17967   echo $ECHO_N "(cached) $ECHO_C" >&6
17968 fi
17969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17971 else
17972   # Is the header compilable?
17973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17975 cat >conftest.$ac_ext <<_ACEOF
17976 /* confdefs.h.  */
17977 _ACEOF
17978 cat confdefs.h >>conftest.$ac_ext
17979 cat >>conftest.$ac_ext <<_ACEOF
17980 /* end confdefs.h.  */
17981 $ac_includes_default
17982 #include <$ac_header>
17983 _ACEOF
17984 rm -f conftest.$ac_objext
17985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17986   (eval $ac_compile) 2>conftest.er1
17987   ac_status=$?
17988   grep -v '^ *+' conftest.er1 >conftest.err
17989   rm -f conftest.er1
17990   cat conftest.err >&5
17991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992   (exit $ac_status); } &&
17993          { ac_try='test -z "$ac_c_werror_flag"
17994                          || test ! -s conftest.err'
17995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996   (eval $ac_try) 2>&5
17997   ac_status=$?
17998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999   (exit $ac_status); }; } &&
18000          { ac_try='test -s conftest.$ac_objext'
18001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002   (eval $ac_try) 2>&5
18003   ac_status=$?
18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005   (exit $ac_status); }; }; then
18006   ac_header_compiler=yes
18007 else
18008   echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18010
18011 ac_header_compiler=no
18012 fi
18013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18015 echo "${ECHO_T}$ac_header_compiler" >&6
18016
18017 # Is the header present?
18018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18020 cat >conftest.$ac_ext <<_ACEOF
18021 /* confdefs.h.  */
18022 _ACEOF
18023 cat confdefs.h >>conftest.$ac_ext
18024 cat >>conftest.$ac_ext <<_ACEOF
18025 /* end confdefs.h.  */
18026 #include <$ac_header>
18027 _ACEOF
18028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18030   ac_status=$?
18031   grep -v '^ *+' conftest.er1 >conftest.err
18032   rm -f conftest.er1
18033   cat conftest.err >&5
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); } >/dev/null; then
18036   if test -s conftest.err; then
18037     ac_cpp_err=$ac_c_preproc_warn_flag
18038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18039   else
18040     ac_cpp_err=
18041   fi
18042 else
18043   ac_cpp_err=yes
18044 fi
18045 if test -z "$ac_cpp_err"; then
18046   ac_header_preproc=yes
18047 else
18048   echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18050
18051   ac_header_preproc=no
18052 fi
18053 rm -f conftest.err conftest.$ac_ext
18054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18055 echo "${ECHO_T}$ac_header_preproc" >&6
18056
18057 # So?  What about this header?
18058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18059   yes:no: )
18060     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18064     ac_header_preproc=yes
18065     ;;
18066   no:yes:* )
18067     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18069     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18070 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18071     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18073     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18074 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18077     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18079     (
18080       cat <<\_ASBOX
18081 ## ------------------------------------------ ##
18082 ## Report this to the AC_PACKAGE_NAME lists.  ##
18083 ## ------------------------------------------ ##
18084 _ASBOX
18085     ) |
18086       sed "s/^/$as_me: WARNING:     /" >&2
18087     ;;
18088 esac
18089 echo "$as_me:$LINENO: checking for $ac_header" >&5
18090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18092   echo $ECHO_N "(cached) $ECHO_C" >&6
18093 else
18094   eval "$as_ac_Header=\$ac_header_preproc"
18095 fi
18096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18098
18099 fi
18100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18101   cat >>confdefs.h <<_ACEOF
18102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18103 _ACEOF
18104
18105 fi
18106
18107 done
18108
18109
18110         if test $ac_cv_header_krb5_h = yes ; then
18111
18112 for ac_header in heim_err.h
18113 do
18114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18116   echo "$as_me:$LINENO: checking for $ac_header" >&5
18117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18119   echo $ECHO_N "(cached) $ECHO_C" >&6
18120 fi
18121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18123 else
18124   # Is the header compilable?
18125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18127 cat >conftest.$ac_ext <<_ACEOF
18128 /* confdefs.h.  */
18129 _ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h.  */
18133 $ac_includes_default
18134 #include <$ac_header>
18135 _ACEOF
18136 rm -f conftest.$ac_objext
18137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18138   (eval $ac_compile) 2>conftest.er1
18139   ac_status=$?
18140   grep -v '^ *+' conftest.er1 >conftest.err
18141   rm -f conftest.er1
18142   cat conftest.err >&5
18143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144   (exit $ac_status); } &&
18145          { ac_try='test -z "$ac_c_werror_flag"
18146                          || test ! -s conftest.err'
18147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148   (eval $ac_try) 2>&5
18149   ac_status=$?
18150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151   (exit $ac_status); }; } &&
18152          { ac_try='test -s conftest.$ac_objext'
18153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154   (eval $ac_try) 2>&5
18155   ac_status=$?
18156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157   (exit $ac_status); }; }; then
18158   ac_header_compiler=yes
18159 else
18160   echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18162
18163 ac_header_compiler=no
18164 fi
18165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18167 echo "${ECHO_T}$ac_header_compiler" >&6
18168
18169 # Is the header present?
18170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18172 cat >conftest.$ac_ext <<_ACEOF
18173 /* confdefs.h.  */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h.  */
18178 #include <$ac_header>
18179 _ACEOF
18180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18181   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18182   ac_status=$?
18183   grep -v '^ *+' conftest.er1 >conftest.err
18184   rm -f conftest.er1
18185   cat conftest.err >&5
18186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187   (exit $ac_status); } >/dev/null; then
18188   if test -s conftest.err; then
18189     ac_cpp_err=$ac_c_preproc_warn_flag
18190     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18191   else
18192     ac_cpp_err=
18193   fi
18194 else
18195   ac_cpp_err=yes
18196 fi
18197 if test -z "$ac_cpp_err"; then
18198   ac_header_preproc=yes
18199 else
18200   echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18202
18203   ac_header_preproc=no
18204 fi
18205 rm -f conftest.err conftest.$ac_ext
18206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18207 echo "${ECHO_T}$ac_header_preproc" >&6
18208
18209 # So?  What about this header?
18210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18211   yes:no: )
18212     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18216     ac_header_preproc=yes
18217     ;;
18218   no:yes:* )
18219     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18221     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18222 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18223     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18225     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18226 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18229     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18231     (
18232       cat <<\_ASBOX
18233 ## ------------------------------------------ ##
18234 ## Report this to the AC_PACKAGE_NAME lists.  ##
18235 ## ------------------------------------------ ##
18236 _ASBOX
18237     ) |
18238       sed "s/^/$as_me: WARNING:     /" >&2
18239     ;;
18240 esac
18241 echo "$as_me:$LINENO: checking for $ac_header" >&5
18242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18244   echo $ECHO_N "(cached) $ECHO_C" >&6
18245 else
18246   eval "$as_ac_Header=\$ac_header_preproc"
18247 fi
18248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18250
18251 fi
18252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18253   cat >>confdefs.h <<_ACEOF
18254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18255 _ACEOF
18256
18257 fi
18258
18259 done
18260
18261                 if test $ac_cv_header_heim_err_h = yes ; then
18262                         krb5_impl=heimdal
18263                 else
18264                         krb5_impl=mit
18265                 fi
18266
18267                 if test $krb5_impl = mit; then
18268                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18269 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18270 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18271   echo $ECHO_N "(cached) $ECHO_C" >&6
18272 else
18273   ac_check_lib_save_LIBS=$LIBS
18274 LIBS="-lk5crypto  $LIBS"
18275 cat >conftest.$ac_ext <<_ACEOF
18276 /* confdefs.h.  */
18277 _ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h.  */
18281
18282
18283 int
18284 main ()
18285 {
18286 main ();
18287   ;
18288   return 0;
18289 }
18290 _ACEOF
18291 rm -f conftest.$ac_objext conftest$ac_exeext
18292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18293   (eval $ac_link) 2>conftest.er1
18294   ac_status=$?
18295   grep -v '^ *+' conftest.er1 >conftest.err
18296   rm -f conftest.er1
18297   cat conftest.err >&5
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); } &&
18300          { ac_try='test -z "$ac_c_werror_flag"
18301                          || test ! -s conftest.err'
18302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303   (eval $ac_try) 2>&5
18304   ac_status=$?
18305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306   (exit $ac_status); }; } &&
18307          { ac_try='test -s conftest$ac_exeext'
18308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309   (eval $ac_try) 2>&5
18310   ac_status=$?
18311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312   (exit $ac_status); }; }; then
18313   ac_cv_lib_k5crypto_main=yes
18314 else
18315   echo "$as_me: failed program was:" >&5
18316 sed 's/^/| /' conftest.$ac_ext >&5
18317
18318 ac_cv_lib_k5crypto_main=no
18319 fi
18320 rm -f conftest.err conftest.$ac_objext \
18321       conftest$ac_exeext conftest.$ac_ext
18322 LIBS=$ac_check_lib_save_LIBS
18323 fi
18324 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18325 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18326 if test $ac_cv_lib_k5crypto_main = yes; then
18327   krb5crypto=k5crypto
18328 else
18329   krb5crypto=crypto
18330 fi
18331
18332
18333                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18334 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18335 if test "${ac_cv_lib_krb5_main+set}" = set; then
18336   echo $ECHO_N "(cached) $ECHO_C" >&6
18337 else
18338   ac_check_lib_save_LIBS=$LIBS
18339 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18340 cat >conftest.$ac_ext <<_ACEOF
18341 /* confdefs.h.  */
18342 _ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h.  */
18346
18347
18348 int
18349 main ()
18350 {
18351 main ();
18352   ;
18353   return 0;
18354 }
18355 _ACEOF
18356 rm -f conftest.$ac_objext conftest$ac_exeext
18357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18358   (eval $ac_link) 2>conftest.er1
18359   ac_status=$?
18360   grep -v '^ *+' conftest.er1 >conftest.err
18361   rm -f conftest.er1
18362   cat conftest.err >&5
18363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364   (exit $ac_status); } &&
18365          { ac_try='test -z "$ac_c_werror_flag"
18366                          || test ! -s conftest.err'
18367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368   (eval $ac_try) 2>&5
18369   ac_status=$?
18370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371   (exit $ac_status); }; } &&
18372          { ac_try='test -s conftest$ac_exeext'
18373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374   (eval $ac_try) 2>&5
18375   ac_status=$?
18376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377   (exit $ac_status); }; }; then
18378   ac_cv_lib_krb5_main=yes
18379 else
18380   echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18382
18383 ac_cv_lib_krb5_main=no
18384 fi
18385 rm -f conftest.err conftest.$ac_objext \
18386       conftest$ac_exeext conftest.$ac_ext
18387 LIBS=$ac_check_lib_save_LIBS
18388 fi
18389 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18390 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18391 if test $ac_cv_lib_krb5_main = yes; then
18392   have_krb5=yes
18393                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18394 else
18395   have_krb5=no
18396 fi
18397
18398
18399                 elif test $krb5_impl = heimdal; then
18400                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18401 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18402 if test "${ac_cv_lib_des_main+set}" = set; then
18403   echo $ECHO_N "(cached) $ECHO_C" >&6
18404 else
18405   ac_check_lib_save_LIBS=$LIBS
18406 LIBS="-ldes  $LIBS"
18407 cat >conftest.$ac_ext <<_ACEOF
18408 /* confdefs.h.  */
18409 _ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h.  */
18413
18414
18415 int
18416 main ()
18417 {
18418 main ();
18419   ;
18420   return 0;
18421 }
18422 _ACEOF
18423 rm -f conftest.$ac_objext conftest$ac_exeext
18424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18425   (eval $ac_link) 2>conftest.er1
18426   ac_status=$?
18427   grep -v '^ *+' conftest.er1 >conftest.err
18428   rm -f conftest.er1
18429   cat conftest.err >&5
18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431   (exit $ac_status); } &&
18432          { ac_try='test -z "$ac_c_werror_flag"
18433                          || test ! -s conftest.err'
18434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435   (eval $ac_try) 2>&5
18436   ac_status=$?
18437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); }; } &&
18439          { ac_try='test -s conftest$ac_exeext'
18440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441   (eval $ac_try) 2>&5
18442   ac_status=$?
18443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444   (exit $ac_status); }; }; then
18445   ac_cv_lib_des_main=yes
18446 else
18447   echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18449
18450 ac_cv_lib_des_main=no
18451 fi
18452 rm -f conftest.err conftest.$ac_objext \
18453       conftest$ac_exeext conftest.$ac_ext
18454 LIBS=$ac_check_lib_save_LIBS
18455 fi
18456 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18457 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18458 if test $ac_cv_lib_des_main = yes; then
18459   krb5crypto=des
18460 else
18461   krb5crypto=crypto
18462 fi
18463
18464
18465                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18466 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18467 if test "${ac_cv_lib_krb5_main+set}" = set; then
18468   echo $ECHO_N "(cached) $ECHO_C" >&6
18469 else
18470   ac_check_lib_save_LIBS=$LIBS
18471 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18472 cat >conftest.$ac_ext <<_ACEOF
18473 /* confdefs.h.  */
18474 _ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h.  */
18478
18479
18480 int
18481 main ()
18482 {
18483 main ();
18484   ;
18485   return 0;
18486 }
18487 _ACEOF
18488 rm -f conftest.$ac_objext conftest$ac_exeext
18489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18490   (eval $ac_link) 2>conftest.er1
18491   ac_status=$?
18492   grep -v '^ *+' conftest.er1 >conftest.err
18493   rm -f conftest.er1
18494   cat conftest.err >&5
18495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496   (exit $ac_status); } &&
18497          { ac_try='test -z "$ac_c_werror_flag"
18498                          || test ! -s conftest.err'
18499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500   (eval $ac_try) 2>&5
18501   ac_status=$?
18502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503   (exit $ac_status); }; } &&
18504          { ac_try='test -s conftest$ac_exeext'
18505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506   (eval $ac_try) 2>&5
18507   ac_status=$?
18508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509   (exit $ac_status); }; }; then
18510   ac_cv_lib_krb5_main=yes
18511 else
18512   echo "$as_me: failed program was:" >&5
18513 sed 's/^/| /' conftest.$ac_ext >&5
18514
18515 ac_cv_lib_krb5_main=no
18516 fi
18517 rm -f conftest.err conftest.$ac_objext \
18518       conftest$ac_exeext conftest.$ac_ext
18519 LIBS=$ac_check_lib_save_LIBS
18520 fi
18521 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18522 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18523 if test $ac_cv_lib_krb5_main = yes; then
18524   have_krb5=yes
18525                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18526 else
18527   have_krb5=no
18528 fi
18529
18530
18531
18532 cat >>confdefs.h <<\_ACEOF
18533 #define HAVE_HEIMDAL_KERBEROS 1
18534 _ACEOF
18535
18536
18537                 else
18538                         have_krb5=no
18539                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18540 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18541                 fi
18542
18543                 if test $have_krb5 = yes ; then
18544                         ol_link_krb5=yes
18545
18546
18547 cat >>confdefs.h <<\_ACEOF
18548 #define HAVE_KRB5 1
18549 _ACEOF
18550
18551
18552                         if test $ol_with_kerberos = k5only ; then
18553                                 ol_with_kerberos=found
18554                         fi
18555
18556                 elif test $ol_with_kerberos != auto ; then
18557                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18558 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18559    { (exit 1); exit 1; }; }
18560                 fi
18561
18562         fi
18563         ;;
18564 esac
18565
18566 if test $ol_link_krb5 = yes &&
18567    { test $ol_with_kerberos = yes ||
18568      test $ol_with_kerberos = auto ||
18569      test $ol_with_kerberos = k425; }; then
18570
18571
18572
18573 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18574 do
18575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18577   echo "$as_me:$LINENO: checking for $ac_header" >&5
18578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18580   echo $ECHO_N "(cached) $ECHO_C" >&6
18581 fi
18582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18584 else
18585   # Is the header compilable?
18586 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18588 cat >conftest.$ac_ext <<_ACEOF
18589 /* confdefs.h.  */
18590 _ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h.  */
18594 $ac_includes_default
18595 #include <$ac_header>
18596 _ACEOF
18597 rm -f conftest.$ac_objext
18598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18599   (eval $ac_compile) 2>conftest.er1
18600   ac_status=$?
18601   grep -v '^ *+' conftest.er1 >conftest.err
18602   rm -f conftest.er1
18603   cat conftest.err >&5
18604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605   (exit $ac_status); } &&
18606          { ac_try='test -z "$ac_c_werror_flag"
18607                          || test ! -s conftest.err'
18608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609   (eval $ac_try) 2>&5
18610   ac_status=$?
18611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612   (exit $ac_status); }; } &&
18613          { ac_try='test -s conftest.$ac_objext'
18614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615   (eval $ac_try) 2>&5
18616   ac_status=$?
18617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618   (exit $ac_status); }; }; then
18619   ac_header_compiler=yes
18620 else
18621   echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18623
18624 ac_header_compiler=no
18625 fi
18626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18628 echo "${ECHO_T}$ac_header_compiler" >&6
18629
18630 # Is the header present?
18631 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18633 cat >conftest.$ac_ext <<_ACEOF
18634 /* confdefs.h.  */
18635 _ACEOF
18636 cat confdefs.h >>conftest.$ac_ext
18637 cat >>conftest.$ac_ext <<_ACEOF
18638 /* end confdefs.h.  */
18639 #include <$ac_header>
18640 _ACEOF
18641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18642   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18643   ac_status=$?
18644   grep -v '^ *+' conftest.er1 >conftest.err
18645   rm -f conftest.er1
18646   cat conftest.err >&5
18647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648   (exit $ac_status); } >/dev/null; then
18649   if test -s conftest.err; then
18650     ac_cpp_err=$ac_c_preproc_warn_flag
18651     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18652   else
18653     ac_cpp_err=
18654   fi
18655 else
18656   ac_cpp_err=yes
18657 fi
18658 if test -z "$ac_cpp_err"; then
18659   ac_header_preproc=yes
18660 else
18661   echo "$as_me: failed program was:" >&5
18662 sed 's/^/| /' conftest.$ac_ext >&5
18663
18664   ac_header_preproc=no
18665 fi
18666 rm -f conftest.err conftest.$ac_ext
18667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18668 echo "${ECHO_T}$ac_header_preproc" >&6
18669
18670 # So?  What about this header?
18671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18672   yes:no: )
18673     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18677     ac_header_preproc=yes
18678     ;;
18679   no:yes:* )
18680     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18682     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18683 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18684     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18686     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18687 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18690     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18692     (
18693       cat <<\_ASBOX
18694 ## ------------------------------------------ ##
18695 ## Report this to the AC_PACKAGE_NAME lists.  ##
18696 ## ------------------------------------------ ##
18697 _ASBOX
18698     ) |
18699       sed "s/^/$as_me: WARNING:     /" >&2
18700     ;;
18701 esac
18702 echo "$as_me:$LINENO: checking for $ac_header" >&5
18703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18705   echo $ECHO_N "(cached) $ECHO_C" >&6
18706 else
18707   eval "$as_ac_Header=\$ac_header_preproc"
18708 fi
18709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18711
18712 fi
18713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18714   cat >>confdefs.h <<_ACEOF
18715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18716 _ACEOF
18717
18718 fi
18719
18720 done
18721
18722
18723         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18724                 if test $krb5_impl = mit; then
18725                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18726 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18727 if test "${ac_cv_lib_krb4_main+set}" = set; then
18728   echo $ECHO_N "(cached) $ECHO_C" >&6
18729 else
18730   ac_check_lib_save_LIBS=$LIBS
18731 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18732 cat >conftest.$ac_ext <<_ACEOF
18733 /* confdefs.h.  */
18734 _ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h.  */
18738
18739
18740 int
18741 main ()
18742 {
18743 main ();
18744   ;
18745   return 0;
18746 }
18747 _ACEOF
18748 rm -f conftest.$ac_objext conftest$ac_exeext
18749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18750   (eval $ac_link) 2>conftest.er1
18751   ac_status=$?
18752   grep -v '^ *+' conftest.er1 >conftest.err
18753   rm -f conftest.er1
18754   cat conftest.err >&5
18755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756   (exit $ac_status); } &&
18757          { ac_try='test -z "$ac_c_werror_flag"
18758                          || test ! -s conftest.err'
18759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760   (eval $ac_try) 2>&5
18761   ac_status=$?
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); }; } &&
18764          { ac_try='test -s conftest$ac_exeext'
18765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766   (eval $ac_try) 2>&5
18767   ac_status=$?
18768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); }; }; then
18770   ac_cv_lib_krb4_main=yes
18771 else
18772   echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18774
18775 ac_cv_lib_krb4_main=no
18776 fi
18777 rm -f conftest.err conftest.$ac_objext \
18778       conftest$ac_exeext conftest.$ac_ext
18779 LIBS=$ac_check_lib_save_LIBS
18780 fi
18781 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18782 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18783 if test $ac_cv_lib_krb4_main = yes; then
18784   have_k425=yes
18785                                 KRB4_LIBS="-lkrb4 -ldes425"
18786 else
18787   have_k425=no
18788 fi
18789
18790
18791                 elif test $krb5_impl = heimdal; then
18792                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18793 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18794 if test "${ac_cv_lib_krb4_main+set}" = set; then
18795   echo $ECHO_N "(cached) $ECHO_C" >&6
18796 else
18797   ac_check_lib_save_LIBS=$LIBS
18798 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18799 cat >conftest.$ac_ext <<_ACEOF
18800 /* confdefs.h.  */
18801 _ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h.  */
18805
18806
18807 int
18808 main ()
18809 {
18810 main ();
18811   ;
18812   return 0;
18813 }
18814 _ACEOF
18815 rm -f conftest.$ac_objext conftest$ac_exeext
18816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18817   (eval $ac_link) 2>conftest.er1
18818   ac_status=$?
18819   grep -v '^ *+' conftest.er1 >conftest.err
18820   rm -f conftest.er1
18821   cat conftest.err >&5
18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823   (exit $ac_status); } &&
18824          { ac_try='test -z "$ac_c_werror_flag"
18825                          || test ! -s conftest.err'
18826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827   (eval $ac_try) 2>&5
18828   ac_status=$?
18829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830   (exit $ac_status); }; } &&
18831          { ac_try='test -s conftest$ac_exeext'
18832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18833   (eval $ac_try) 2>&5
18834   ac_status=$?
18835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836   (exit $ac_status); }; }; then
18837   ac_cv_lib_krb4_main=yes
18838 else
18839   echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18841
18842 ac_cv_lib_krb4_main=no
18843 fi
18844 rm -f conftest.err conftest.$ac_objext \
18845       conftest$ac_exeext conftest.$ac_ext
18846 LIBS=$ac_check_lib_save_LIBS
18847 fi
18848 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18849 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18850 if test $ac_cv_lib_krb4_main = yes; then
18851   have_k425=yes
18852                                 KRB4_LIBS="-lkrb4"
18853 else
18854   have_k425=no
18855 fi
18856
18857
18858                 else
18859                         have_425=no
18860                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18861 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18862                 fi
18863
18864                 if test $have_k425 = yes ; then
18865                         ol_with_kerberos=found
18866                         ol_link_krb4=yes
18867
18868
18869 cat >>confdefs.h <<\_ACEOF
18870 #define HAVE_KRB425 1
18871 _ACEOF
18872
18873
18874 cat >>confdefs.h <<\_ACEOF
18875 #define HAVE_KRB4 1
18876 _ACEOF
18877
18878
18879                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18880 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18881 if test "${ol_cv_var_des_debug+set}" = set; then
18882   echo $ECHO_N "(cached) $ECHO_C" >&6
18883 else
18884
18885                                                                 save_LIBS="$LIBS"
18886                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18887                                 cat >conftest.$ac_ext <<_ACEOF
18888 /* confdefs.h.  */
18889 _ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h.  */
18893
18894 #include <kerberosIV/krb.h>
18895 #include <kerberosIV/des.h>
18896 extern int des_debug;
18897
18898 int
18899 main ()
18900 {
18901
18902 des_debug = 1;
18903
18904   ;
18905   return 0;
18906 }
18907 _ACEOF
18908 rm -f conftest.$ac_objext conftest$ac_exeext
18909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18910   (eval $ac_link) 2>conftest.er1
18911   ac_status=$?
18912   grep -v '^ *+' conftest.er1 >conftest.err
18913   rm -f conftest.er1
18914   cat conftest.err >&5
18915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916   (exit $ac_status); } &&
18917          { ac_try='test -z "$ac_c_werror_flag"
18918                          || test ! -s conftest.err'
18919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920   (eval $ac_try) 2>&5
18921   ac_status=$?
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); }; } &&
18924          { ac_try='test -s conftest$ac_exeext'
18925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926   (eval $ac_try) 2>&5
18927   ac_status=$?
18928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929   (exit $ac_status); }; }; then
18930   ol_cv_var_des_debug=yes
18931 else
18932   echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18934
18935 ol_cv_var_des_debug=no
18936 fi
18937 rm -f conftest.err conftest.$ac_objext \
18938       conftest$ac_exeext conftest.$ac_ext
18939                                                                 LIBS="$save_LIBS"
18940
18941 fi
18942 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18943 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18944
18945                         if test $ol_cv_var_des_debug = yes ; then
18946
18947 cat >>confdefs.h <<\_ACEOF
18948 #define HAVE_DES_DEBUG 1
18949 _ACEOF
18950
18951                         fi
18952
18953                         LIBS="$save_LIBS"
18954                 fi
18955         fi
18956 fi
18957
18958 if test $ol_link_krb5 = yes ; then
18959         ol_with_kerberos=found
18960 fi
18961
18962 case $ol_with_kerberos in yes | auto | k4 | kth)
18963
18964
18965
18966
18967 for ac_header in krb.h des.h krb-archaeology.h
18968 do
18969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18971   echo "$as_me:$LINENO: checking for $ac_header" >&5
18972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18974   echo $ECHO_N "(cached) $ECHO_C" >&6
18975 fi
18976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18978 else
18979   # Is the header compilable?
18980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18982 cat >conftest.$ac_ext <<_ACEOF
18983 /* confdefs.h.  */
18984 _ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h.  */
18988 $ac_includes_default
18989 #include <$ac_header>
18990 _ACEOF
18991 rm -f conftest.$ac_objext
18992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18993   (eval $ac_compile) 2>conftest.er1
18994   ac_status=$?
18995   grep -v '^ *+' conftest.er1 >conftest.err
18996   rm -f conftest.er1
18997   cat conftest.err >&5
18998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999   (exit $ac_status); } &&
19000          { ac_try='test -z "$ac_c_werror_flag"
19001                          || test ! -s conftest.err'
19002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003   (eval $ac_try) 2>&5
19004   ac_status=$?
19005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006   (exit $ac_status); }; } &&
19007          { ac_try='test -s conftest.$ac_objext'
19008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009   (eval $ac_try) 2>&5
19010   ac_status=$?
19011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012   (exit $ac_status); }; }; then
19013   ac_header_compiler=yes
19014 else
19015   echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19017
19018 ac_header_compiler=no
19019 fi
19020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19022 echo "${ECHO_T}$ac_header_compiler" >&6
19023
19024 # Is the header present?
19025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19027 cat >conftest.$ac_ext <<_ACEOF
19028 /* confdefs.h.  */
19029 _ACEOF
19030 cat confdefs.h >>conftest.$ac_ext
19031 cat >>conftest.$ac_ext <<_ACEOF
19032 /* end confdefs.h.  */
19033 #include <$ac_header>
19034 _ACEOF
19035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19036   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19037   ac_status=$?
19038   grep -v '^ *+' conftest.er1 >conftest.err
19039   rm -f conftest.er1
19040   cat conftest.err >&5
19041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042   (exit $ac_status); } >/dev/null; then
19043   if test -s conftest.err; then
19044     ac_cpp_err=$ac_c_preproc_warn_flag
19045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19046   else
19047     ac_cpp_err=
19048   fi
19049 else
19050   ac_cpp_err=yes
19051 fi
19052 if test -z "$ac_cpp_err"; then
19053   ac_header_preproc=yes
19054 else
19055   echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19057
19058   ac_header_preproc=no
19059 fi
19060 rm -f conftest.err conftest.$ac_ext
19061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19062 echo "${ECHO_T}$ac_header_preproc" >&6
19063
19064 # So?  What about this header?
19065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19066   yes:no: )
19067     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19071     ac_header_preproc=yes
19072     ;;
19073   no:yes:* )
19074     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19076     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19077 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19078     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19080     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19081 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19084     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19086     (
19087       cat <<\_ASBOX
19088 ## ------------------------------------------ ##
19089 ## Report this to the AC_PACKAGE_NAME lists.  ##
19090 ## ------------------------------------------ ##
19091 _ASBOX
19092     ) |
19093       sed "s/^/$as_me: WARNING:     /" >&2
19094     ;;
19095 esac
19096 echo "$as_me:$LINENO: checking for $ac_header" >&5
19097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19099   echo $ECHO_N "(cached) $ECHO_C" >&6
19100 else
19101   eval "$as_ac_Header=\$ac_header_preproc"
19102 fi
19103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19105
19106 fi
19107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19108   cat >>confdefs.h <<_ACEOF
19109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19110 _ACEOF
19111
19112 fi
19113
19114 done
19115
19116
19117         if test $ac_cv_header_krb_h = yes ; then
19118                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19119 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19120 if test "${ac_cv_lib_krb_main+set}" = set; then
19121   echo $ECHO_N "(cached) $ECHO_C" >&6
19122 else
19123   ac_check_lib_save_LIBS=$LIBS
19124 LIBS="-lkrb -ldes $LIBS"
19125 cat >conftest.$ac_ext <<_ACEOF
19126 /* confdefs.h.  */
19127 _ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h.  */
19131
19132
19133 int
19134 main ()
19135 {
19136 main ();
19137   ;
19138   return 0;
19139 }
19140 _ACEOF
19141 rm -f conftest.$ac_objext conftest$ac_exeext
19142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19143   (eval $ac_link) 2>conftest.er1
19144   ac_status=$?
19145   grep -v '^ *+' conftest.er1 >conftest.err
19146   rm -f conftest.er1
19147   cat conftest.err >&5
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); } &&
19150          { ac_try='test -z "$ac_c_werror_flag"
19151                          || test ! -s conftest.err'
19152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19153   (eval $ac_try) 2>&5
19154   ac_status=$?
19155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156   (exit $ac_status); }; } &&
19157          { ac_try='test -s conftest$ac_exeext'
19158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159   (eval $ac_try) 2>&5
19160   ac_status=$?
19161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162   (exit $ac_status); }; }; then
19163   ac_cv_lib_krb_main=yes
19164 else
19165   echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19167
19168 ac_cv_lib_krb_main=no
19169 fi
19170 rm -f conftest.err conftest.$ac_objext \
19171       conftest$ac_exeext conftest.$ac_ext
19172 LIBS=$ac_check_lib_save_LIBS
19173 fi
19174 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19175 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19176 if test $ac_cv_lib_krb_main = yes; then
19177   have_k4=yes
19178 else
19179   have_k4=no
19180 fi
19181
19182
19183                 if test $have_k4 = yes ; then
19184                         ol_with_kerberos=found
19185                         ol_link_krb4=yes
19186
19187
19188 cat >>confdefs.h <<\_ACEOF
19189 #define HAVE_KRB4 1
19190 _ACEOF
19191
19192
19193                         KRB4_LIBS="-lkrb -ldes"
19194
19195                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19196
19197 cat >>confdefs.h <<\_ACEOF
19198 #define HAVE_KTH_KERBEROS 1
19199 _ACEOF
19200
19201                         fi
19202                 fi
19203         fi
19204         ;;
19205 esac
19206
19207 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19208         ol_link_kbind=yes
19209
19210 elif test $ol_enable_kbind = yes ; then
19211         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19212 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19213    { (exit 1); exit 1; }; }
19214 fi
19215
19216 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19217
19218 cat >>confdefs.h <<\_ACEOF
19219 #define HAVE_KERBEROS 1
19220 _ACEOF
19221
19222
19223 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19224         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19225 echo "$as_me: error: Kerberos detection failed" >&2;}
19226    { (exit 1); exit 1; }; }
19227 fi
19228
19229
19230 ol_link_tls=no
19231 if test $ol_with_tls != no ; then
19232
19233 for ac_header in openssl/ssl.h
19234 do
19235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19237   echo "$as_me:$LINENO: checking for $ac_header" >&5
19238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19240   echo $ECHO_N "(cached) $ECHO_C" >&6
19241 fi
19242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19244 else
19245   # Is the header compilable?
19246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19248 cat >conftest.$ac_ext <<_ACEOF
19249 /* confdefs.h.  */
19250 _ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h.  */
19254 $ac_includes_default
19255 #include <$ac_header>
19256 _ACEOF
19257 rm -f conftest.$ac_objext
19258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19259   (eval $ac_compile) 2>conftest.er1
19260   ac_status=$?
19261   grep -v '^ *+' conftest.er1 >conftest.err
19262   rm -f conftest.er1
19263   cat conftest.err >&5
19264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265   (exit $ac_status); } &&
19266          { ac_try='test -z "$ac_c_werror_flag"
19267                          || test ! -s conftest.err'
19268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269   (eval $ac_try) 2>&5
19270   ac_status=$?
19271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272   (exit $ac_status); }; } &&
19273          { ac_try='test -s conftest.$ac_objext'
19274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275   (eval $ac_try) 2>&5
19276   ac_status=$?
19277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278   (exit $ac_status); }; }; then
19279   ac_header_compiler=yes
19280 else
19281   echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19283
19284 ac_header_compiler=no
19285 fi
19286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19288 echo "${ECHO_T}$ac_header_compiler" >&6
19289
19290 # Is the header present?
19291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19293 cat >conftest.$ac_ext <<_ACEOF
19294 /* confdefs.h.  */
19295 _ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h.  */
19299 #include <$ac_header>
19300 _ACEOF
19301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19302   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19303   ac_status=$?
19304   grep -v '^ *+' conftest.er1 >conftest.err
19305   rm -f conftest.er1
19306   cat conftest.err >&5
19307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); } >/dev/null; then
19309   if test -s conftest.err; then
19310     ac_cpp_err=$ac_c_preproc_warn_flag
19311     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19312   else
19313     ac_cpp_err=
19314   fi
19315 else
19316   ac_cpp_err=yes
19317 fi
19318 if test -z "$ac_cpp_err"; then
19319   ac_header_preproc=yes
19320 else
19321   echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324   ac_header_preproc=no
19325 fi
19326 rm -f conftest.err conftest.$ac_ext
19327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19328 echo "${ECHO_T}$ac_header_preproc" >&6
19329
19330 # So?  What about this header?
19331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19332   yes:no: )
19333     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19337     ac_header_preproc=yes
19338     ;;
19339   no:yes:* )
19340     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19342     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19343 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19344     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19346     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19347 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19350     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19352     (
19353       cat <<\_ASBOX
19354 ## ------------------------------------------ ##
19355 ## Report this to the AC_PACKAGE_NAME lists.  ##
19356 ## ------------------------------------------ ##
19357 _ASBOX
19358     ) |
19359       sed "s/^/$as_me: WARNING:     /" >&2
19360     ;;
19361 esac
19362 echo "$as_me:$LINENO: checking for $ac_header" >&5
19363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19365   echo $ECHO_N "(cached) $ECHO_C" >&6
19366 else
19367   eval "$as_ac_Header=\$ac_header_preproc"
19368 fi
19369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19371
19372 fi
19373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19374   cat >>confdefs.h <<_ACEOF
19375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19376 _ACEOF
19377
19378 fi
19379
19380 done
19381
19382
19383         if test $ac_cv_header_openssl_ssl_h = yes ; then
19384                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19385 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19386 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19387   echo $ECHO_N "(cached) $ECHO_C" >&6
19388 else
19389   ac_check_lib_save_LIBS=$LIBS
19390 LIBS="-lssl -lcrypto $LIBS"
19391 cat >conftest.$ac_ext <<_ACEOF
19392 /* confdefs.h.  */
19393 _ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h.  */
19397
19398 /* Override any gcc2 internal prototype to avoid an error.  */
19399 #ifdef __cplusplus
19400 extern "C"
19401 #endif
19402 /* We use char because int might match the return type of a gcc2
19403    builtin and then its argument prototype would still apply.  */
19404 char SSL_library_init ();
19405 int
19406 main ()
19407 {
19408 SSL_library_init ();
19409   ;
19410   return 0;
19411 }
19412 _ACEOF
19413 rm -f conftest.$ac_objext conftest$ac_exeext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19415   (eval $ac_link) 2>conftest.er1
19416   ac_status=$?
19417   grep -v '^ *+' conftest.er1 >conftest.err
19418   rm -f conftest.er1
19419   cat conftest.err >&5
19420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421   (exit $ac_status); } &&
19422          { ac_try='test -z "$ac_c_werror_flag"
19423                          || test ! -s conftest.err'
19424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425   (eval $ac_try) 2>&5
19426   ac_status=$?
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); }; } &&
19429          { ac_try='test -s conftest$ac_exeext'
19430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431   (eval $ac_try) 2>&5
19432   ac_status=$?
19433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434   (exit $ac_status); }; }; then
19435   ac_cv_lib_ssl_SSL_library_init=yes
19436 else
19437   echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19439
19440 ac_cv_lib_ssl_SSL_library_init=no
19441 fi
19442 rm -f conftest.err conftest.$ac_objext \
19443       conftest$ac_exeext conftest.$ac_ext
19444 LIBS=$ac_check_lib_save_LIBS
19445 fi
19446 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19447 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19448 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19449   have_openssl=yes
19450                         need_rsaref=no
19451 else
19452   have_openssl=no
19453 fi
19454
19455
19456                 if test $have_openssl = no ; then
19457                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19458 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19459 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19460   echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462   ac_check_lib_save_LIBS=$LIBS
19463 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19464 cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h.  */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h.  */
19470
19471 /* Override any gcc2 internal prototype to avoid an error.  */
19472 #ifdef __cplusplus
19473 extern "C"
19474 #endif
19475 /* We use char because int might match the return type of a gcc2
19476    builtin and then its argument prototype would still apply.  */
19477 char ssl3_accept ();
19478 int
19479 main ()
19480 {
19481 ssl3_accept ();
19482   ;
19483   return 0;
19484 }
19485 _ACEOF
19486 rm -f conftest.$ac_objext conftest$ac_exeext
19487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19488   (eval $ac_link) 2>conftest.er1
19489   ac_status=$?
19490   grep -v '^ *+' conftest.er1 >conftest.err
19491   rm -f conftest.er1
19492   cat conftest.err >&5
19493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494   (exit $ac_status); } &&
19495          { ac_try='test -z "$ac_c_werror_flag"
19496                          || test ! -s conftest.err'
19497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498   (eval $ac_try) 2>&5
19499   ac_status=$?
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); }; } &&
19502          { ac_try='test -s conftest$ac_exeext'
19503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504   (eval $ac_try) 2>&5
19505   ac_status=$?
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); }; }; then
19508   ac_cv_lib_ssl_ssl3_accept=yes
19509 else
19510   echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19512
19513 ac_cv_lib_ssl_ssl3_accept=no
19514 fi
19515 rm -f conftest.err conftest.$ac_objext \
19516       conftest$ac_exeext conftest.$ac_ext
19517 LIBS=$ac_check_lib_save_LIBS
19518 fi
19519 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19520 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19521 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19522   have_openssl=yes
19523                                 need_rsaref=yes
19524 else
19525   have_openssl=no
19526 fi
19527
19528                 fi
19529
19530                 if test $have_openssl = yes ; then
19531                         ol_with_tls=found
19532                         ol_link_tls=yes
19533
19534
19535 cat >>confdefs.h <<\_ACEOF
19536 #define HAVE_OPENSSL 1
19537 _ACEOF
19538
19539
19540                         if test $need_rsaref = yes; then
19541
19542 cat >>confdefs.h <<\_ACEOF
19543 #define HAVE_RSAREF 1
19544 _ACEOF
19545
19546
19547                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19548                         else
19549                                 TLS_LIBS="-lssl -lcrypto"
19550                         fi
19551                 fi
19552                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19553 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19554 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19555   echo $ECHO_N "(cached) $ECHO_C" >&6
19556 else
19557
19558         cat >conftest.$ac_ext <<_ACEOF
19559 /* confdefs.h.  */
19560 _ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h.  */
19564
19565 #ifdef HAVE_OPENSSL_SSL_H
19566 #include <openssl/ssl.h>
19567 #else
19568 #include <ssl.h>
19569 #endif
19570
19571 /* Require 0.9.7d+ */
19572 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19573         char *__ssl_compat = "0.9.7d";
19574 #endif
19575
19576 _ACEOF
19577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19578   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19579   ol_cv_ssl_crl_compat=yes
19580 else
19581   ol_cv_ssl_crl_compat=no
19582 fi
19583 rm -f conftest*
19584
19585 fi
19586 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19587 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19588
19589                 if test $ol_cv_ssl_crl_compat = no ; then
19590                         ol_link_ssl=no
19591                 else
19592
19593 cat >>confdefs.h <<\_ACEOF
19594 #define HAVE_OPENSSL_CRL 1
19595 _ACEOF
19596
19597                 fi
19598         fi
19599
19600 else
19601         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19602 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19603 fi
19604
19605 WITH_TLS=no
19606 if test $ol_link_tls = yes ; then
19607
19608 cat >>confdefs.h <<\_ACEOF
19609 #define HAVE_TLS 1
19610 _ACEOF
19611
19612         WITH_TLS=yes
19613
19614 elif test $ol_with_tls = auto ; then
19615         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19616 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19617         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19618 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19619
19620 elif test $ol_with_tls != no ; then
19621         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19622 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19623    { (exit 1); exit 1; }; }
19624 fi
19625
19626 if test $ol_enable_lmpasswd != no; then
19627         if test $ol_link_tls != yes ; then
19628                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19629 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19630    { (exit 1); exit 1; }; }
19631         fi
19632
19633
19634 cat >>confdefs.h <<\_ACEOF
19635 #define SLAPD_LMHASH 1
19636 _ACEOF
19637
19638 fi
19639
19640 ol_link_threads=no
19641
19642 case $ol_with_threads in auto | yes | nt)
19643
19644
19645         echo "$as_me:$LINENO: checking for _beginthread" >&5
19646 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19647 if test "${ac_cv_func__beginthread+set}" = set; then
19648   echo $ECHO_N "(cached) $ECHO_C" >&6
19649 else
19650   cat >conftest.$ac_ext <<_ACEOF
19651 /* confdefs.h.  */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h.  */
19656 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19658 #define _beginthread innocuous__beginthread
19659
19660 /* System header to define __stub macros and hopefully few prototypes,
19661     which can conflict with char _beginthread (); below.
19662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19663     <limits.h> exists even on freestanding compilers.  */
19664
19665 #ifdef __STDC__
19666 # include <limits.h>
19667 #else
19668 # include <assert.h>
19669 #endif
19670
19671 #undef _beginthread
19672
19673 /* Override any gcc2 internal prototype to avoid an error.  */
19674 #ifdef __cplusplus
19675 extern "C"
19676 {
19677 #endif
19678 /* We use char because int might match the return type of a gcc2
19679    builtin and then its argument prototype would still apply.  */
19680 char _beginthread ();
19681 /* The GNU C library defines this for functions which it implements
19682     to always fail with ENOSYS.  Some functions are actually named
19683     something starting with __ and the normal name is an alias.  */
19684 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19685 choke me
19686 #else
19687 char (*f) () = _beginthread;
19688 #endif
19689 #ifdef __cplusplus
19690 }
19691 #endif
19692
19693 int
19694 main ()
19695 {
19696 return f != _beginthread;
19697   ;
19698   return 0;
19699 }
19700 _ACEOF
19701 rm -f conftest.$ac_objext conftest$ac_exeext
19702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19703   (eval $ac_link) 2>conftest.er1
19704   ac_status=$?
19705   grep -v '^ *+' conftest.er1 >conftest.err
19706   rm -f conftest.er1
19707   cat conftest.err >&5
19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709   (exit $ac_status); } &&
19710          { ac_try='test -z "$ac_c_werror_flag"
19711                          || test ! -s conftest.err'
19712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713   (eval $ac_try) 2>&5
19714   ac_status=$?
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); }; } &&
19717          { ac_try='test -s conftest$ac_exeext'
19718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719   (eval $ac_try) 2>&5
19720   ac_status=$?
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); }; }; then
19723   ac_cv_func__beginthread=yes
19724 else
19725   echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19727
19728 ac_cv_func__beginthread=no
19729 fi
19730 rm -f conftest.err conftest.$ac_objext \
19731       conftest$ac_exeext conftest.$ac_ext
19732 fi
19733 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19734 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19735
19736
19737         if test $ac_cv_func__beginthread = yes ; then
19738
19739 cat >>confdefs.h <<\_ACEOF
19740 #define HAVE_NT_THREADS 1
19741 _ACEOF
19742
19743                 ol_cv_nt_threads=yes
19744         fi
19745
19746
19747         if test "$ol_cv_nt_threads" = yes ; then
19748                 ol_link_threads=nt
19749                 ol_with_threads=found
19750                 ol_with_yielding_select=yes
19751
19752
19753 cat >>confdefs.h <<\_ACEOF
19754 #define HAVE_NT_SERVICE_MANAGER 1
19755 _ACEOF
19756
19757
19758 cat >>confdefs.h <<\_ACEOF
19759 #define HAVE_NT_EVENT_LOG 1
19760 _ACEOF
19761
19762         fi
19763
19764         if test $ol_with_threads = nt ; then
19765                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19766 echo "$as_me: error: could not locate NT Threads" >&2;}
19767    { (exit 1); exit 1; }; }
19768         fi
19769         ;;
19770 esac
19771
19772 case $ol_with_threads in auto | yes | posix)
19773
19774
19775 for ac_header in pthread.h
19776 do
19777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19779   echo "$as_me:$LINENO: checking for $ac_header" >&5
19780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19782   echo $ECHO_N "(cached) $ECHO_C" >&6
19783 fi
19784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19786 else
19787   # Is the header compilable?
19788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19790 cat >conftest.$ac_ext <<_ACEOF
19791 /* confdefs.h.  */
19792 _ACEOF
19793 cat confdefs.h >>conftest.$ac_ext
19794 cat >>conftest.$ac_ext <<_ACEOF
19795 /* end confdefs.h.  */
19796 $ac_includes_default
19797 #include <$ac_header>
19798 _ACEOF
19799 rm -f conftest.$ac_objext
19800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19801   (eval $ac_compile) 2>conftest.er1
19802   ac_status=$?
19803   grep -v '^ *+' conftest.er1 >conftest.err
19804   rm -f conftest.er1
19805   cat conftest.err >&5
19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807   (exit $ac_status); } &&
19808          { ac_try='test -z "$ac_c_werror_flag"
19809                          || test ! -s conftest.err'
19810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811   (eval $ac_try) 2>&5
19812   ac_status=$?
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); }; } &&
19815          { ac_try='test -s conftest.$ac_objext'
19816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817   (eval $ac_try) 2>&5
19818   ac_status=$?
19819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820   (exit $ac_status); }; }; then
19821   ac_header_compiler=yes
19822 else
19823   echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19825
19826 ac_header_compiler=no
19827 fi
19828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19830 echo "${ECHO_T}$ac_header_compiler" >&6
19831
19832 # Is the header present?
19833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19835 cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h.  */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h.  */
19841 #include <$ac_header>
19842 _ACEOF
19843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19844   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19845   ac_status=$?
19846   grep -v '^ *+' conftest.er1 >conftest.err
19847   rm -f conftest.er1
19848   cat conftest.err >&5
19849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850   (exit $ac_status); } >/dev/null; then
19851   if test -s conftest.err; then
19852     ac_cpp_err=$ac_c_preproc_warn_flag
19853     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19854   else
19855     ac_cpp_err=
19856   fi
19857 else
19858   ac_cpp_err=yes
19859 fi
19860 if test -z "$ac_cpp_err"; then
19861   ac_header_preproc=yes
19862 else
19863   echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19865
19866   ac_header_preproc=no
19867 fi
19868 rm -f conftest.err conftest.$ac_ext
19869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19870 echo "${ECHO_T}$ac_header_preproc" >&6
19871
19872 # So?  What about this header?
19873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19874   yes:no: )
19875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19879     ac_header_preproc=yes
19880     ;;
19881   no:yes:* )
19882     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19884     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19885 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19886     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19888     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19889 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19892     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19894     (
19895       cat <<\_ASBOX
19896 ## ------------------------------------------ ##
19897 ## Report this to the AC_PACKAGE_NAME lists.  ##
19898 ## ------------------------------------------ ##
19899 _ASBOX
19900     ) |
19901       sed "s/^/$as_me: WARNING:     /" >&2
19902     ;;
19903 esac
19904 echo "$as_me:$LINENO: checking for $ac_header" >&5
19905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19907   echo $ECHO_N "(cached) $ECHO_C" >&6
19908 else
19909   eval "$as_ac_Header=\$ac_header_preproc"
19910 fi
19911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19913
19914 fi
19915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19916   cat >>confdefs.h <<_ACEOF
19917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19918 _ACEOF
19919
19920 fi
19921
19922 done
19923
19924
19925         if test $ac_cv_header_pthread_h = yes ; then
19926                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19927 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19928 if test "${ol_cv_pthread_version+set}" = set; then
19929   echo $ECHO_N "(cached) $ECHO_C" >&6
19930 else
19931
19932         cat >conftest.$ac_ext <<_ACEOF
19933 /* confdefs.h.  */
19934 _ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h.  */
19938
19939 #               include <pthread.h>
19940
19941 int
19942 main ()
19943 {
19944
19945                 int i = PTHREAD_CREATE_JOINABLE;
19946
19947   ;
19948   return 0;
19949 }
19950 _ACEOF
19951 rm -f conftest.$ac_objext
19952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19953   (eval $ac_compile) 2>conftest.er1
19954   ac_status=$?
19955   grep -v '^ *+' conftest.er1 >conftest.err
19956   rm -f conftest.er1
19957   cat conftest.err >&5
19958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959   (exit $ac_status); } &&
19960          { ac_try='test -z "$ac_c_werror_flag"
19961                          || test ! -s conftest.err'
19962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963   (eval $ac_try) 2>&5
19964   ac_status=$?
19965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966   (exit $ac_status); }; } &&
19967          { ac_try='test -s conftest.$ac_objext'
19968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969   (eval $ac_try) 2>&5
19970   ac_status=$?
19971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); }; }; then
19973
19974         cat >conftest.$ac_ext <<_ACEOF
19975 /* confdefs.h.  */
19976 _ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h.  */
19980 #include <pthread.h>
19981
19982 _ACEOF
19983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19984   $EGREP "pthread_detach" >/dev/null 2>&1; then
19985   ol_cv_pthread_version=10
19986 else
19987   ol_cv_pthread_version=8
19988 fi
19989 rm -f conftest*
19990
19991 else
19992   echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19994
19995
19996         cat >conftest.$ac_ext <<_ACEOF
19997 /* confdefs.h.  */
19998 _ACEOF
19999 cat confdefs.h >>conftest.$ac_ext
20000 cat >>conftest.$ac_ext <<_ACEOF
20001 /* end confdefs.h.  */
20002
20003 #               include <pthread.h>
20004 #               ifdef PTHREAD_CREATE_UNDETACHED
20005                 draft7
20006 #               endif
20007
20008 _ACEOF
20009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20010   $EGREP "draft7" >/dev/null 2>&1; then
20011   ol_cv_pthread_version=7
20012 else
20013
20014         cat >conftest.$ac_ext <<_ACEOF
20015 /* confdefs.h.  */
20016 _ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h.  */
20020 #include <pthread.h>
20021
20022 _ACEOF
20023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20024   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20025   ol_cv_pthread_version=6
20026 else
20027
20028         cat >conftest.$ac_ext <<_ACEOF
20029 /* confdefs.h.  */
20030 _ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h.  */
20034
20035 #               include <pthread.h>
20036 #ifdef          PTHREAD_MUTEX_INITIALIZER
20037                 draft5
20038 #endif
20039
20040 _ACEOF
20041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20042   $EGREP "draft5" >/dev/null 2>&1; then
20043   ol_cv_pthread_version=5
20044 else
20045   ol_cv_pthread_version=4
20046 fi
20047 rm -f conftest*
20048
20049 fi
20050 rm -f conftest*
20051
20052 fi
20053 rm -f conftest*
20054
20055 fi
20056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20057
20058 fi
20059 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20060 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20061
20062
20063                 if test $ol_cv_pthread_version != 0 ; then
20064
20065 cat >>confdefs.h <<_ACEOF
20066 #define HAVE_PTHREADS $ol_cv_pthread_version
20067 _ACEOF
20068
20069                 else
20070                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20071 echo "$as_me: error: unknown pthread version" >&2;}
20072    { (exit 1); exit 1; }; }
20073                 fi
20074
20075                 # consider threads found
20076                 ol_with_threads=found
20077
20078
20079         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20080 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20081 if test "${ol_cv_header_linux_threads+set}" = set; then
20082   echo $ECHO_N "(cached) $ECHO_C" >&6
20083 else
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 #include <pthread.h>
20091 _ACEOF
20092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20093   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20094   ol_cv_header_linux_threads=yes
20095 else
20096   ol_cv_header_linux_threads=no
20097 fi
20098 rm -f conftest*
20099
20100
20101 fi
20102 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20103 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20104         if test $ol_cv_header_linux_threads = yes; then
20105
20106 cat >>confdefs.h <<\_ACEOF
20107 #define HAVE_LINUX_THREADS 1
20108 _ACEOF
20109
20110         fi
20111
20112
20113         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20114 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20115 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20116   echo $ECHO_N "(cached) $ECHO_C" >&6
20117 else
20118   cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h.  */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h.  */
20124 #include <pthread.h>
20125 #ifdef _POSIX_THREAD_IS_GNU_PTH
20126         __gnu_pth__;
20127 #endif
20128
20129 _ACEOF
20130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20131   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20132   ol_cv_header_gnu_pth_pthread_h=yes
20133 else
20134   ol_cv_header_gnu_pth_pthread_h=no
20135 fi
20136 rm -f conftest*
20137
20138
20139 fi
20140 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20141 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20142
20143
20144                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20145
20146 for ac_header in sched.h
20147 do
20148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20150   echo "$as_me:$LINENO: checking for $ac_header" >&5
20151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20153   echo $ECHO_N "(cached) $ECHO_C" >&6
20154 fi
20155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20157 else
20158   # Is the header compilable?
20159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20161 cat >conftest.$ac_ext <<_ACEOF
20162 /* confdefs.h.  */
20163 _ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h.  */
20167 $ac_includes_default
20168 #include <$ac_header>
20169 _ACEOF
20170 rm -f conftest.$ac_objext
20171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20172   (eval $ac_compile) 2>conftest.er1
20173   ac_status=$?
20174   grep -v '^ *+' conftest.er1 >conftest.err
20175   rm -f conftest.er1
20176   cat conftest.err >&5
20177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178   (exit $ac_status); } &&
20179          { ac_try='test -z "$ac_c_werror_flag"
20180                          || test ! -s conftest.err'
20181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182   (eval $ac_try) 2>&5
20183   ac_status=$?
20184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185   (exit $ac_status); }; } &&
20186          { ac_try='test -s conftest.$ac_objext'
20187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188   (eval $ac_try) 2>&5
20189   ac_status=$?
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); }; }; then
20192   ac_header_compiler=yes
20193 else
20194   echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20196
20197 ac_header_compiler=no
20198 fi
20199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20201 echo "${ECHO_T}$ac_header_compiler" >&6
20202
20203 # Is the header present?
20204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20206 cat >conftest.$ac_ext <<_ACEOF
20207 /* confdefs.h.  */
20208 _ACEOF
20209 cat confdefs.h >>conftest.$ac_ext
20210 cat >>conftest.$ac_ext <<_ACEOF
20211 /* end confdefs.h.  */
20212 #include <$ac_header>
20213 _ACEOF
20214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20215   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20216   ac_status=$?
20217   grep -v '^ *+' conftest.er1 >conftest.err
20218   rm -f conftest.er1
20219   cat conftest.err >&5
20220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221   (exit $ac_status); } >/dev/null; then
20222   if test -s conftest.err; then
20223     ac_cpp_err=$ac_c_preproc_warn_flag
20224     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20225   else
20226     ac_cpp_err=
20227   fi
20228 else
20229   ac_cpp_err=yes
20230 fi
20231 if test -z "$ac_cpp_err"; then
20232   ac_header_preproc=yes
20233 else
20234   echo "$as_me: failed program was:" >&5
20235 sed 's/^/| /' conftest.$ac_ext >&5
20236
20237   ac_header_preproc=no
20238 fi
20239 rm -f conftest.err conftest.$ac_ext
20240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20241 echo "${ECHO_T}$ac_header_preproc" >&6
20242
20243 # So?  What about this header?
20244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20245   yes:no: )
20246     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20250     ac_header_preproc=yes
20251     ;;
20252   no:yes:* )
20253     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20255     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20256 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20257     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20259     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20260 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20263     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20265     (
20266       cat <<\_ASBOX
20267 ## ------------------------------------------ ##
20268 ## Report this to the AC_PACKAGE_NAME lists.  ##
20269 ## ------------------------------------------ ##
20270 _ASBOX
20271     ) |
20272       sed "s/^/$as_me: WARNING:     /" >&2
20273     ;;
20274 esac
20275 echo "$as_me:$LINENO: checking for $ac_header" >&5
20276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20278   echo $ECHO_N "(cached) $ECHO_C" >&6
20279 else
20280   eval "$as_ac_Header=\$ac_header_preproc"
20281 fi
20282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20284
20285 fi
20286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20287   cat >>confdefs.h <<_ACEOF
20288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20289 _ACEOF
20290
20291 fi
20292
20293 done
20294
20295                 fi
20296
20297
20298                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20299 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20300 if test "${ol_cv_pthread_create+set}" = set; then
20301   echo $ECHO_N "(cached) $ECHO_C" >&6
20302 else
20303
20304                         if test "$cross_compiling" = yes; then
20305   cat >conftest.$ac_ext <<_ACEOF
20306 /* confdefs.h.  */
20307 _ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h.  */
20311
20312 /* pthread test headers */
20313 #include <pthread.h>
20314 #if HAVE_PTHREADS < 7
20315 #include <errno.h>
20316 #endif
20317 #ifndef NULL
20318 #define NULL (void*)0
20319 #endif
20320
20321 static void *task(p)
20322         void *p;
20323 {
20324         return (void *) (p == NULL);
20325 }
20326
20327 int
20328 main ()
20329 {
20330
20331         /* pthread test function */
20332 #ifndef PTHREAD_CREATE_DETACHED
20333 #define PTHREAD_CREATE_DETACHED 1
20334 #endif
20335         pthread_t t;
20336         int status;
20337         int detach = PTHREAD_CREATE_DETACHED;
20338
20339 #if HAVE_PTHREADS > 4
20340         /* Final pthreads */
20341         pthread_attr_t attr;
20342
20343         status = pthread_attr_init(&attr);
20344         if( status ) return status;
20345
20346 #if HAVE_PTHREADS < 7
20347         status = pthread_attr_setdetachstate(&attr, &detach);
20348         if( status < 0 ) status = errno;
20349 #else
20350         status = pthread_attr_setdetachstate(&attr, detach);
20351 #endif
20352         if( status ) return status;
20353         status = pthread_create( &t, &attr, task, NULL );
20354 #if HAVE_PTHREADS < 7
20355         if( status < 0 ) status = errno;
20356 #endif
20357         if( status ) return status;
20358 #else
20359         /* Draft 4 pthreads */
20360         status = pthread_create( &t, pthread_attr_default, task, NULL );
20361         if( status ) return errno;
20362
20363         /* give thread a chance to complete */
20364         /* it should remain joinable and hence detachable */
20365         sleep( 1 );
20366
20367         status = pthread_detach( &t );
20368         if( status ) return errno;
20369 #endif
20370
20371 #ifdef HAVE_LINUX_THREADS
20372         pthread_kill_other_threads_np();
20373 #endif
20374
20375         return 0;
20376
20377   ;
20378   return 0;
20379 }
20380 _ACEOF
20381 rm -f conftest.$ac_objext conftest$ac_exeext
20382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20383   (eval $ac_link) 2>conftest.er1
20384   ac_status=$?
20385   grep -v '^ *+' conftest.er1 >conftest.err
20386   rm -f conftest.er1
20387   cat conftest.err >&5
20388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389   (exit $ac_status); } &&
20390          { ac_try='test -z "$ac_c_werror_flag"
20391                          || test ! -s conftest.err'
20392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393   (eval $ac_try) 2>&5
20394   ac_status=$?
20395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396   (exit $ac_status); }; } &&
20397          { ac_try='test -s conftest$ac_exeext'
20398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399   (eval $ac_try) 2>&5
20400   ac_status=$?
20401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402   (exit $ac_status); }; }; then
20403   ol_cv_pthread_create=yes
20404 else
20405   echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20407
20408 ol_cv_pthread_create=no
20409 fi
20410 rm -f conftest.err conftest.$ac_objext \
20411       conftest$ac_exeext conftest.$ac_ext
20412 else
20413   cat >conftest.$ac_ext <<_ACEOF
20414 /* confdefs.h.  */
20415 _ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h.  */
20419
20420 /* pthread test headers */
20421 #include <pthread.h>
20422 #if HAVE_PTHREADS < 7
20423 #include <errno.h>
20424 #endif
20425 #ifndef NULL
20426 #define NULL (void*)0
20427 #endif
20428
20429 static void *task(p)
20430         void *p;
20431 {
20432         return (void *) (p == NULL);
20433 }
20434
20435
20436 int main(argc, argv)
20437         int argc;
20438         char **argv;
20439 {
20440
20441         /* pthread test function */
20442 #ifndef PTHREAD_CREATE_DETACHED
20443 #define PTHREAD_CREATE_DETACHED 1
20444 #endif
20445         pthread_t t;
20446         int status;
20447         int detach = PTHREAD_CREATE_DETACHED;
20448
20449 #if HAVE_PTHREADS > 4
20450         /* Final pthreads */
20451         pthread_attr_t attr;
20452
20453         status = pthread_attr_init(&attr);
20454         if( status ) return status;
20455
20456 #if HAVE_PTHREADS < 7
20457         status = pthread_attr_setdetachstate(&attr, &detach);
20458         if( status < 0 ) status = errno;
20459 #else
20460         status = pthread_attr_setdetachstate(&attr, detach);
20461 #endif
20462         if( status ) return status;
20463         status = pthread_create( &t, &attr, task, NULL );
20464 #if HAVE_PTHREADS < 7
20465         if( status < 0 ) status = errno;
20466 #endif
20467         if( status ) return status;
20468 #else
20469         /* Draft 4 pthreads */
20470         status = pthread_create( &t, pthread_attr_default, task, NULL );
20471         if( status ) return errno;
20472
20473         /* give thread a chance to complete */
20474         /* it should remain joinable and hence detachable */
20475         sleep( 1 );
20476
20477         status = pthread_detach( &t );
20478         if( status ) return errno;
20479 #endif
20480
20481 #ifdef HAVE_LINUX_THREADS
20482         pthread_kill_other_threads_np();
20483 #endif
20484
20485         return 0;
20486
20487 }
20488
20489 _ACEOF
20490 rm -f conftest$ac_exeext
20491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20492   (eval $ac_link) 2>&5
20493   ac_status=$?
20494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497   (eval $ac_try) 2>&5
20498   ac_status=$?
20499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500   (exit $ac_status); }; }; then
20501   ol_cv_pthread_create=yes
20502 else
20503   echo "$as_me: program exited with status $ac_status" >&5
20504 echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20506
20507 ( exit $ac_status )
20508 ol_cv_pthread_create=no
20509 fi
20510 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20511 fi
20512 fi
20513 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20514 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20515
20516                 if test $ol_cv_pthread_create != no ; then
20517                         ol_link_threads=posix
20518                         ol_link_pthreads=""
20519                 fi
20520
20521                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20522 if test "$ol_link_threads" = no ; then
20523         # try -kthread
20524         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20525 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20526 if test "${ol_cv_pthread_kthread+set}" = set; then
20527   echo $ECHO_N "(cached) $ECHO_C" >&6
20528 else
20529
20530                 # save the flags
20531                 ol_LIBS="$LIBS"
20532                 LIBS="-kthread $LIBS"
20533
20534                 if test "$cross_compiling" = yes; then
20535   cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h.  */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h.  */
20541
20542 /* pthread test headers */
20543 #include <pthread.h>
20544 #if HAVE_PTHREADS < 7
20545 #include <errno.h>
20546 #endif
20547 #ifndef NULL
20548 #define NULL (void*)0
20549 #endif
20550
20551 static void *task(p)
20552         void *p;
20553 {
20554         return (void *) (p == NULL);
20555 }
20556
20557 int
20558 main ()
20559 {
20560
20561         /* pthread test function */
20562 #ifndef PTHREAD_CREATE_DETACHED
20563 #define PTHREAD_CREATE_DETACHED 1
20564 #endif
20565         pthread_t t;
20566         int status;
20567         int detach = PTHREAD_CREATE_DETACHED;
20568
20569 #if HAVE_PTHREADS > 4
20570         /* Final pthreads */
20571         pthread_attr_t attr;
20572
20573         status = pthread_attr_init(&attr);
20574         if( status ) return status;
20575
20576 #if HAVE_PTHREADS < 7
20577         status = pthread_attr_setdetachstate(&attr, &detach);
20578         if( status < 0 ) status = errno;
20579 #else
20580         status = pthread_attr_setdetachstate(&attr, detach);
20581 #endif
20582         if( status ) return status;
20583         status = pthread_create( &t, &attr, task, NULL );
20584 #if HAVE_PTHREADS < 7
20585         if( status < 0 ) status = errno;
20586 #endif
20587         if( status ) return status;
20588 #else
20589         /* Draft 4 pthreads */
20590         status = pthread_create( &t, pthread_attr_default, task, NULL );
20591         if( status ) return errno;
20592
20593         /* give thread a chance to complete */
20594         /* it should remain joinable and hence detachable */
20595         sleep( 1 );
20596
20597         status = pthread_detach( &t );
20598         if( status ) return errno;
20599 #endif
20600
20601 #ifdef HAVE_LINUX_THREADS
20602         pthread_kill_other_threads_np();
20603 #endif
20604
20605         return 0;
20606
20607   ;
20608   return 0;
20609 }
20610 _ACEOF
20611 rm -f conftest.$ac_objext conftest$ac_exeext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20613   (eval $ac_link) 2>conftest.er1
20614   ac_status=$?
20615   grep -v '^ *+' conftest.er1 >conftest.err
20616   rm -f conftest.er1
20617   cat conftest.err >&5
20618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619   (exit $ac_status); } &&
20620          { ac_try='test -z "$ac_c_werror_flag"
20621                          || test ! -s conftest.err'
20622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623   (eval $ac_try) 2>&5
20624   ac_status=$?
20625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626   (exit $ac_status); }; } &&
20627          { ac_try='test -s conftest$ac_exeext'
20628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629   (eval $ac_try) 2>&5
20630   ac_status=$?
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); }; }; then
20633   ol_cv_pthread_kthread=yes
20634 else
20635   echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20637
20638 ol_cv_pthread_kthread=no
20639 fi
20640 rm -f conftest.err conftest.$ac_objext \
20641       conftest$ac_exeext conftest.$ac_ext
20642 else
20643   cat >conftest.$ac_ext <<_ACEOF
20644 /* confdefs.h.  */
20645 _ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h.  */
20649
20650 /* pthread test headers */
20651 #include <pthread.h>
20652 #if HAVE_PTHREADS < 7
20653 #include <errno.h>
20654 #endif
20655 #ifndef NULL
20656 #define NULL (void*)0
20657 #endif
20658
20659 static void *task(p)
20660         void *p;
20661 {
20662         return (void *) (p == NULL);
20663 }
20664
20665
20666 int main(argc, argv)
20667         int argc;
20668         char **argv;
20669 {
20670
20671         /* pthread test function */
20672 #ifndef PTHREAD_CREATE_DETACHED
20673 #define PTHREAD_CREATE_DETACHED 1
20674 #endif
20675         pthread_t t;
20676         int status;
20677         int detach = PTHREAD_CREATE_DETACHED;
20678
20679 #if HAVE_PTHREADS > 4
20680         /* Final pthreads */
20681         pthread_attr_t attr;
20682
20683         status = pthread_attr_init(&attr);
20684         if( status ) return status;
20685
20686 #if HAVE_PTHREADS < 7
20687         status = pthread_attr_setdetachstate(&attr, &detach);
20688         if( status < 0 ) status = errno;
20689 #else
20690         status = pthread_attr_setdetachstate(&attr, detach);
20691 #endif
20692         if( status ) return status;
20693         status = pthread_create( &t, &attr, task, NULL );
20694 #if HAVE_PTHREADS < 7
20695         if( status < 0 ) status = errno;
20696 #endif
20697         if( status ) return status;
20698 #else
20699         /* Draft 4 pthreads */
20700         status = pthread_create( &t, pthread_attr_default, task, NULL );
20701         if( status ) return errno;
20702
20703         /* give thread a chance to complete */
20704         /* it should remain joinable and hence detachable */
20705         sleep( 1 );
20706
20707         status = pthread_detach( &t );
20708         if( status ) return errno;
20709 #endif
20710
20711 #ifdef HAVE_LINUX_THREADS
20712         pthread_kill_other_threads_np();
20713 #endif
20714
20715         return 0;
20716
20717 }
20718
20719 _ACEOF
20720 rm -f conftest$ac_exeext
20721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20722   (eval $ac_link) 2>&5
20723   ac_status=$?
20724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20727   (eval $ac_try) 2>&5
20728   ac_status=$?
20729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730   (exit $ac_status); }; }; then
20731   ol_cv_pthread_kthread=yes
20732 else
20733   echo "$as_me: program exited with status $ac_status" >&5
20734 echo "$as_me: failed program was:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20736
20737 ( exit $ac_status )
20738 ol_cv_pthread_kthread=no
20739 fi
20740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20741 fi
20742
20743                 # restore the LIBS
20744                 LIBS="$ol_LIBS"
20745
20746 fi
20747 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20748 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20749
20750         if test $ol_cv_pthread_kthread = yes ; then
20751                 ol_link_pthreads="-kthread"
20752                 ol_link_threads=posix
20753         fi
20754 fi
20755
20756                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20757 if test "$ol_link_threads" = no ; then
20758         # try -pthread
20759         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20760 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20761 if test "${ol_cv_pthread_pthread+set}" = set; then
20762   echo $ECHO_N "(cached) $ECHO_C" >&6
20763 else
20764
20765                 # save the flags
20766                 ol_LIBS="$LIBS"
20767                 LIBS="-pthread $LIBS"
20768
20769                 if test "$cross_compiling" = yes; then
20770   cat >conftest.$ac_ext <<_ACEOF
20771 /* confdefs.h.  */
20772 _ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h.  */
20776
20777 /* pthread test headers */
20778 #include <pthread.h>
20779 #if HAVE_PTHREADS < 7
20780 #include <errno.h>
20781 #endif
20782 #ifndef NULL
20783 #define NULL (void*)0
20784 #endif
20785
20786 static void *task(p)
20787         void *p;
20788 {
20789         return (void *) (p == NULL);
20790 }
20791
20792 int
20793 main ()
20794 {
20795
20796         /* pthread test function */
20797 #ifndef PTHREAD_CREATE_DETACHED
20798 #define PTHREAD_CREATE_DETACHED 1
20799 #endif
20800         pthread_t t;
20801         int status;
20802         int detach = PTHREAD_CREATE_DETACHED;
20803
20804 #if HAVE_PTHREADS > 4
20805         /* Final pthreads */
20806         pthread_attr_t attr;
20807
20808         status = pthread_attr_init(&attr);
20809         if( status ) return status;
20810
20811 #if HAVE_PTHREADS < 7
20812         status = pthread_attr_setdetachstate(&attr, &detach);
20813         if( status < 0 ) status = errno;
20814 #else
20815         status = pthread_attr_setdetachstate(&attr, detach);
20816 #endif
20817         if( status ) return status;
20818         status = pthread_create( &t, &attr, task, NULL );
20819 #if HAVE_PTHREADS < 7
20820         if( status < 0 ) status = errno;
20821 #endif
20822         if( status ) return status;
20823 #else
20824         /* Draft 4 pthreads */
20825         status = pthread_create( &t, pthread_attr_default, task, NULL );
20826         if( status ) return errno;
20827
20828         /* give thread a chance to complete */
20829         /* it should remain joinable and hence detachable */
20830         sleep( 1 );
20831
20832         status = pthread_detach( &t );
20833         if( status ) return errno;
20834 #endif
20835
20836 #ifdef HAVE_LINUX_THREADS
20837         pthread_kill_other_threads_np();
20838 #endif
20839
20840         return 0;
20841
20842   ;
20843   return 0;
20844 }
20845 _ACEOF
20846 rm -f conftest.$ac_objext conftest$ac_exeext
20847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20848   (eval $ac_link) 2>conftest.er1
20849   ac_status=$?
20850   grep -v '^ *+' conftest.er1 >conftest.err
20851   rm -f conftest.er1
20852   cat conftest.err >&5
20853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854   (exit $ac_status); } &&
20855          { ac_try='test -z "$ac_c_werror_flag"
20856                          || test ! -s conftest.err'
20857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858   (eval $ac_try) 2>&5
20859   ac_status=$?
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); }; } &&
20862          { ac_try='test -s conftest$ac_exeext'
20863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864   (eval $ac_try) 2>&5
20865   ac_status=$?
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); }; }; then
20868   ol_cv_pthread_pthread=yes
20869 else
20870   echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20872
20873 ol_cv_pthread_pthread=no
20874 fi
20875 rm -f conftest.err conftest.$ac_objext \
20876       conftest$ac_exeext conftest.$ac_ext
20877 else
20878   cat >conftest.$ac_ext <<_ACEOF
20879 /* confdefs.h.  */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h.  */
20884
20885 /* pthread test headers */
20886 #include <pthread.h>
20887 #if HAVE_PTHREADS < 7
20888 #include <errno.h>
20889 #endif
20890 #ifndef NULL
20891 #define NULL (void*)0
20892 #endif
20893
20894 static void *task(p)
20895         void *p;
20896 {
20897         return (void *) (p == NULL);
20898 }
20899
20900
20901 int main(argc, argv)
20902         int argc;
20903         char **argv;
20904 {
20905
20906         /* pthread test function */
20907 #ifndef PTHREAD_CREATE_DETACHED
20908 #define PTHREAD_CREATE_DETACHED 1
20909 #endif
20910         pthread_t t;
20911         int status;
20912         int detach = PTHREAD_CREATE_DETACHED;
20913
20914 #if HAVE_PTHREADS > 4
20915         /* Final pthreads */
20916         pthread_attr_t attr;
20917
20918         status = pthread_attr_init(&attr);
20919         if( status ) return status;
20920
20921 #if HAVE_PTHREADS < 7
20922         status = pthread_attr_setdetachstate(&attr, &detach);
20923         if( status < 0 ) status = errno;
20924 #else
20925         status = pthread_attr_setdetachstate(&attr, detach);
20926 #endif
20927         if( status ) return status;
20928         status = pthread_create( &t, &attr, task, NULL );
20929 #if HAVE_PTHREADS < 7
20930         if( status < 0 ) status = errno;
20931 #endif
20932         if( status ) return status;
20933 #else
20934         /* Draft 4 pthreads */
20935         status = pthread_create( &t, pthread_attr_default, task, NULL );
20936         if( status ) return errno;
20937
20938         /* give thread a chance to complete */
20939         /* it should remain joinable and hence detachable */
20940         sleep( 1 );
20941
20942         status = pthread_detach( &t );
20943         if( status ) return errno;
20944 #endif
20945
20946 #ifdef HAVE_LINUX_THREADS
20947         pthread_kill_other_threads_np();
20948 #endif
20949
20950         return 0;
20951
20952 }
20953
20954 _ACEOF
20955 rm -f conftest$ac_exeext
20956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20957   (eval $ac_link) 2>&5
20958   ac_status=$?
20959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962   (eval $ac_try) 2>&5
20963   ac_status=$?
20964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965   (exit $ac_status); }; }; then
20966   ol_cv_pthread_pthread=yes
20967 else
20968   echo "$as_me: program exited with status $ac_status" >&5
20969 echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20971
20972 ( exit $ac_status )
20973 ol_cv_pthread_pthread=no
20974 fi
20975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20976 fi
20977
20978                 # restore the LIBS
20979                 LIBS="$ol_LIBS"
20980
20981 fi
20982 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20983 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20984
20985         if test $ol_cv_pthread_pthread = yes ; then
20986                 ol_link_pthreads="-pthread"
20987                 ol_link_threads=posix
20988         fi
20989 fi
20990
20991                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20992 if test "$ol_link_threads" = no ; then
20993         # try -pthreads
20994         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20995 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20996 if test "${ol_cv_pthread_pthreads+set}" = set; then
20997   echo $ECHO_N "(cached) $ECHO_C" >&6
20998 else
20999
21000                 # save the flags
21001                 ol_LIBS="$LIBS"
21002                 LIBS="-pthreads $LIBS"
21003
21004                 if test "$cross_compiling" = yes; then
21005   cat >conftest.$ac_ext <<_ACEOF
21006 /* confdefs.h.  */
21007 _ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h.  */
21011
21012 /* pthread test headers */
21013 #include <pthread.h>
21014 #if HAVE_PTHREADS < 7
21015 #include <errno.h>
21016 #endif
21017 #ifndef NULL
21018 #define NULL (void*)0
21019 #endif
21020
21021 static void *task(p)
21022         void *p;
21023 {
21024         return (void *) (p == NULL);
21025 }
21026
21027 int
21028 main ()
21029 {
21030
21031         /* pthread test function */
21032 #ifndef PTHREAD_CREATE_DETACHED
21033 #define PTHREAD_CREATE_DETACHED 1
21034 #endif
21035         pthread_t t;
21036         int status;
21037         int detach = PTHREAD_CREATE_DETACHED;
21038
21039 #if HAVE_PTHREADS > 4
21040         /* Final pthreads */
21041         pthread_attr_t attr;
21042
21043         status = pthread_attr_init(&attr);
21044         if( status ) return status;
21045
21046 #if HAVE_PTHREADS < 7
21047         status = pthread_attr_setdetachstate(&attr, &detach);
21048         if( status < 0 ) status = errno;
21049 #else
21050         status = pthread_attr_setdetachstate(&attr, detach);
21051 #endif
21052         if( status ) return status;
21053         status = pthread_create( &t, &attr, task, NULL );
21054 #if HAVE_PTHREADS < 7
21055         if( status < 0 ) status = errno;
21056 #endif
21057         if( status ) return status;
21058 #else
21059         /* Draft 4 pthreads */
21060         status = pthread_create( &t, pthread_attr_default, task, NULL );
21061         if( status ) return errno;
21062
21063         /* give thread a chance to complete */
21064         /* it should remain joinable and hence detachable */
21065         sleep( 1 );
21066
21067         status = pthread_detach( &t );
21068         if( status ) return errno;
21069 #endif
21070
21071 #ifdef HAVE_LINUX_THREADS
21072         pthread_kill_other_threads_np();
21073 #endif
21074
21075         return 0;
21076
21077   ;
21078   return 0;
21079 }
21080 _ACEOF
21081 rm -f conftest.$ac_objext conftest$ac_exeext
21082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21083   (eval $ac_link) 2>conftest.er1
21084   ac_status=$?
21085   grep -v '^ *+' conftest.er1 >conftest.err
21086   rm -f conftest.er1
21087   cat conftest.err >&5
21088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089   (exit $ac_status); } &&
21090          { ac_try='test -z "$ac_c_werror_flag"
21091                          || test ! -s conftest.err'
21092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093   (eval $ac_try) 2>&5
21094   ac_status=$?
21095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096   (exit $ac_status); }; } &&
21097          { ac_try='test -s conftest$ac_exeext'
21098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21099   (eval $ac_try) 2>&5
21100   ac_status=$?
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); }; }; then
21103   ol_cv_pthread_pthreads=yes
21104 else
21105   echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.$ac_ext >&5
21107
21108 ol_cv_pthread_pthreads=no
21109 fi
21110 rm -f conftest.err conftest.$ac_objext \
21111       conftest$ac_exeext conftest.$ac_ext
21112 else
21113   cat >conftest.$ac_ext <<_ACEOF
21114 /* confdefs.h.  */
21115 _ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h.  */
21119
21120 /* pthread test headers */
21121 #include <pthread.h>
21122 #if HAVE_PTHREADS < 7
21123 #include <errno.h>
21124 #endif
21125 #ifndef NULL
21126 #define NULL (void*)0
21127 #endif
21128
21129 static void *task(p)
21130         void *p;
21131 {
21132         return (void *) (p == NULL);
21133 }
21134
21135
21136 int main(argc, argv)
21137         int argc;
21138         char **argv;
21139 {
21140
21141         /* pthread test function */
21142 #ifndef PTHREAD_CREATE_DETACHED
21143 #define PTHREAD_CREATE_DETACHED 1
21144 #endif
21145         pthread_t t;
21146         int status;
21147         int detach = PTHREAD_CREATE_DETACHED;
21148
21149 #if HAVE_PTHREADS > 4
21150         /* Final pthreads */
21151         pthread_attr_t attr;
21152
21153         status = pthread_attr_init(&attr);
21154         if( status ) return status;
21155
21156 #if HAVE_PTHREADS < 7
21157         status = pthread_attr_setdetachstate(&attr, &detach);
21158         if( status < 0 ) status = errno;
21159 #else
21160         status = pthread_attr_setdetachstate(&attr, detach);
21161 #endif
21162         if( status ) return status;
21163         status = pthread_create( &t, &attr, task, NULL );
21164 #if HAVE_PTHREADS < 7
21165         if( status < 0 ) status = errno;
21166 #endif
21167         if( status ) return status;
21168 #else
21169         /* Draft 4 pthreads */
21170         status = pthread_create( &t, pthread_attr_default, task, NULL );
21171         if( status ) return errno;
21172
21173         /* give thread a chance to complete */
21174         /* it should remain joinable and hence detachable */
21175         sleep( 1 );
21176
21177         status = pthread_detach( &t );
21178         if( status ) return errno;
21179 #endif
21180
21181 #ifdef HAVE_LINUX_THREADS
21182         pthread_kill_other_threads_np();
21183 #endif
21184
21185         return 0;
21186
21187 }
21188
21189 _ACEOF
21190 rm -f conftest$ac_exeext
21191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21192   (eval $ac_link) 2>&5
21193   ac_status=$?
21194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197   (eval $ac_try) 2>&5
21198   ac_status=$?
21199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200   (exit $ac_status); }; }; then
21201   ol_cv_pthread_pthreads=yes
21202 else
21203   echo "$as_me: program exited with status $ac_status" >&5
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21206
21207 ( exit $ac_status )
21208 ol_cv_pthread_pthreads=no
21209 fi
21210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21211 fi
21212
21213                 # restore the LIBS
21214                 LIBS="$ol_LIBS"
21215
21216 fi
21217 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21218 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21219
21220         if test $ol_cv_pthread_pthreads = yes ; then
21221                 ol_link_pthreads="-pthreads"
21222                 ol_link_threads=posix
21223         fi
21224 fi
21225
21226                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21227 if test "$ol_link_threads" = no ; then
21228         # try -mthreads
21229         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21230 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21231 if test "${ol_cv_pthread_mthreads+set}" = set; then
21232   echo $ECHO_N "(cached) $ECHO_C" >&6
21233 else
21234
21235                 # save the flags
21236                 ol_LIBS="$LIBS"
21237                 LIBS="-mthreads $LIBS"
21238
21239                 if test "$cross_compiling" = yes; then
21240   cat >conftest.$ac_ext <<_ACEOF
21241 /* confdefs.h.  */
21242 _ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h.  */
21246
21247 /* pthread test headers */
21248 #include <pthread.h>
21249 #if HAVE_PTHREADS < 7
21250 #include <errno.h>
21251 #endif
21252 #ifndef NULL
21253 #define NULL (void*)0
21254 #endif
21255
21256 static void *task(p)
21257         void *p;
21258 {
21259         return (void *) (p == NULL);
21260 }
21261
21262 int
21263 main ()
21264 {
21265
21266         /* pthread test function */
21267 #ifndef PTHREAD_CREATE_DETACHED
21268 #define PTHREAD_CREATE_DETACHED 1
21269 #endif
21270         pthread_t t;
21271         int status;
21272         int detach = PTHREAD_CREATE_DETACHED;
21273
21274 #if HAVE_PTHREADS > 4
21275         /* Final pthreads */
21276         pthread_attr_t attr;
21277
21278         status = pthread_attr_init(&attr);
21279         if( status ) return status;
21280
21281 #if HAVE_PTHREADS < 7
21282         status = pthread_attr_setdetachstate(&attr, &detach);
21283         if( status < 0 ) status = errno;
21284 #else
21285         status = pthread_attr_setdetachstate(&attr, detach);
21286 #endif
21287         if( status ) return status;
21288         status = pthread_create( &t, &attr, task, NULL );
21289 #if HAVE_PTHREADS < 7
21290         if( status < 0 ) status = errno;
21291 #endif
21292         if( status ) return status;
21293 #else
21294         /* Draft 4 pthreads */
21295         status = pthread_create( &t, pthread_attr_default, task, NULL );
21296         if( status ) return errno;
21297
21298         /* give thread a chance to complete */
21299         /* it should remain joinable and hence detachable */
21300         sleep( 1 );
21301
21302         status = pthread_detach( &t );
21303         if( status ) return errno;
21304 #endif
21305
21306 #ifdef HAVE_LINUX_THREADS
21307         pthread_kill_other_threads_np();
21308 #endif
21309
21310         return 0;
21311
21312   ;
21313   return 0;
21314 }
21315 _ACEOF
21316 rm -f conftest.$ac_objext conftest$ac_exeext
21317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21318   (eval $ac_link) 2>conftest.er1
21319   ac_status=$?
21320   grep -v '^ *+' conftest.er1 >conftest.err
21321   rm -f conftest.er1
21322   cat conftest.err >&5
21323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324   (exit $ac_status); } &&
21325          { ac_try='test -z "$ac_c_werror_flag"
21326                          || test ! -s conftest.err'
21327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328   (eval $ac_try) 2>&5
21329   ac_status=$?
21330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331   (exit $ac_status); }; } &&
21332          { ac_try='test -s conftest$ac_exeext'
21333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334   (eval $ac_try) 2>&5
21335   ac_status=$?
21336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337   (exit $ac_status); }; }; then
21338   ol_cv_pthread_mthreads=yes
21339 else
21340   echo "$as_me: failed program was:" >&5
21341 sed 's/^/| /' conftest.$ac_ext >&5
21342
21343 ol_cv_pthread_mthreads=no
21344 fi
21345 rm -f conftest.err conftest.$ac_objext \
21346       conftest$ac_exeext conftest.$ac_ext
21347 else
21348   cat >conftest.$ac_ext <<_ACEOF
21349 /* confdefs.h.  */
21350 _ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h.  */
21354
21355 /* pthread test headers */
21356 #include <pthread.h>
21357 #if HAVE_PTHREADS < 7
21358 #include <errno.h>
21359 #endif
21360 #ifndef NULL
21361 #define NULL (void*)0
21362 #endif
21363
21364 static void *task(p)
21365         void *p;
21366 {
21367         return (void *) (p == NULL);
21368 }
21369
21370
21371 int main(argc, argv)
21372         int argc;
21373         char **argv;
21374 {
21375
21376         /* pthread test function */
21377 #ifndef PTHREAD_CREATE_DETACHED
21378 #define PTHREAD_CREATE_DETACHED 1
21379 #endif
21380         pthread_t t;
21381         int status;
21382         int detach = PTHREAD_CREATE_DETACHED;
21383
21384 #if HAVE_PTHREADS > 4
21385         /* Final pthreads */
21386         pthread_attr_t attr;
21387
21388         status = pthread_attr_init(&attr);
21389         if( status ) return status;
21390
21391 #if HAVE_PTHREADS < 7
21392         status = pthread_attr_setdetachstate(&attr, &detach);
21393         if( status < 0 ) status = errno;
21394 #else
21395         status = pthread_attr_setdetachstate(&attr, detach);
21396 #endif
21397         if( status ) return status;
21398         status = pthread_create( &t, &attr, task, NULL );
21399 #if HAVE_PTHREADS < 7
21400         if( status < 0 ) status = errno;
21401 #endif
21402         if( status ) return status;
21403 #else
21404         /* Draft 4 pthreads */
21405         status = pthread_create( &t, pthread_attr_default, task, NULL );
21406         if( status ) return errno;
21407
21408         /* give thread a chance to complete */
21409         /* it should remain joinable and hence detachable */
21410         sleep( 1 );
21411
21412         status = pthread_detach( &t );
21413         if( status ) return errno;
21414 #endif
21415
21416 #ifdef HAVE_LINUX_THREADS
21417         pthread_kill_other_threads_np();
21418 #endif
21419
21420         return 0;
21421
21422 }
21423
21424 _ACEOF
21425 rm -f conftest$ac_exeext
21426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21427   (eval $ac_link) 2>&5
21428   ac_status=$?
21429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432   (eval $ac_try) 2>&5
21433   ac_status=$?
21434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435   (exit $ac_status); }; }; then
21436   ol_cv_pthread_mthreads=yes
21437 else
21438   echo "$as_me: program exited with status $ac_status" >&5
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21441
21442 ( exit $ac_status )
21443 ol_cv_pthread_mthreads=no
21444 fi
21445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21446 fi
21447
21448                 # restore the LIBS
21449                 LIBS="$ol_LIBS"
21450
21451 fi
21452 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21453 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21454
21455         if test $ol_cv_pthread_mthreads = yes ; then
21456                 ol_link_pthreads="-mthreads"
21457                 ol_link_threads=posix
21458         fi
21459 fi
21460
21461                 # Pthread try link: -thread (ol_cv_pthread_thread)
21462 if test "$ol_link_threads" = no ; then
21463         # try -thread
21464         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21465 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21466 if test "${ol_cv_pthread_thread+set}" = set; then
21467   echo $ECHO_N "(cached) $ECHO_C" >&6
21468 else
21469
21470                 # save the flags
21471                 ol_LIBS="$LIBS"
21472                 LIBS="-thread $LIBS"
21473
21474                 if test "$cross_compiling" = yes; then
21475   cat >conftest.$ac_ext <<_ACEOF
21476 /* confdefs.h.  */
21477 _ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h.  */
21481
21482 /* pthread test headers */
21483 #include <pthread.h>
21484 #if HAVE_PTHREADS < 7
21485 #include <errno.h>
21486 #endif
21487 #ifndef NULL
21488 #define NULL (void*)0
21489 #endif
21490
21491 static void *task(p)
21492         void *p;
21493 {
21494         return (void *) (p == NULL);
21495 }
21496
21497 int
21498 main ()
21499 {
21500
21501         /* pthread test function */
21502 #ifndef PTHREAD_CREATE_DETACHED
21503 #define PTHREAD_CREATE_DETACHED 1
21504 #endif
21505         pthread_t t;
21506         int status;
21507         int detach = PTHREAD_CREATE_DETACHED;
21508
21509 #if HAVE_PTHREADS > 4
21510         /* Final pthreads */
21511         pthread_attr_t attr;
21512
21513         status = pthread_attr_init(&attr);
21514         if( status ) return status;
21515
21516 #if HAVE_PTHREADS < 7
21517         status = pthread_attr_setdetachstate(&attr, &detach);
21518         if( status < 0 ) status = errno;
21519 #else
21520         status = pthread_attr_setdetachstate(&attr, detach);
21521 #endif
21522         if( status ) return status;
21523         status = pthread_create( &t, &attr, task, NULL );
21524 #if HAVE_PTHREADS < 7
21525         if( status < 0 ) status = errno;
21526 #endif
21527         if( status ) return status;
21528 #else
21529         /* Draft 4 pthreads */
21530         status = pthread_create( &t, pthread_attr_default, task, NULL );
21531         if( status ) return errno;
21532
21533         /* give thread a chance to complete */
21534         /* it should remain joinable and hence detachable */
21535         sleep( 1 );
21536
21537         status = pthread_detach( &t );
21538         if( status ) return errno;
21539 #endif
21540
21541 #ifdef HAVE_LINUX_THREADS
21542         pthread_kill_other_threads_np();
21543 #endif
21544
21545         return 0;
21546
21547   ;
21548   return 0;
21549 }
21550 _ACEOF
21551 rm -f conftest.$ac_objext conftest$ac_exeext
21552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21553   (eval $ac_link) 2>conftest.er1
21554   ac_status=$?
21555   grep -v '^ *+' conftest.er1 >conftest.err
21556   rm -f conftest.er1
21557   cat conftest.err >&5
21558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559   (exit $ac_status); } &&
21560          { ac_try='test -z "$ac_c_werror_flag"
21561                          || test ! -s conftest.err'
21562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563   (eval $ac_try) 2>&5
21564   ac_status=$?
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); }; } &&
21567          { ac_try='test -s conftest$ac_exeext'
21568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569   (eval $ac_try) 2>&5
21570   ac_status=$?
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); }; }; then
21573   ol_cv_pthread_thread=yes
21574 else
21575   echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21577
21578 ol_cv_pthread_thread=no
21579 fi
21580 rm -f conftest.err conftest.$ac_objext \
21581       conftest$ac_exeext conftest.$ac_ext
21582 else
21583   cat >conftest.$ac_ext <<_ACEOF
21584 /* confdefs.h.  */
21585 _ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h.  */
21589
21590 /* pthread test headers */
21591 #include <pthread.h>
21592 #if HAVE_PTHREADS < 7
21593 #include <errno.h>
21594 #endif
21595 #ifndef NULL
21596 #define NULL (void*)0
21597 #endif
21598
21599 static void *task(p)
21600         void *p;
21601 {
21602         return (void *) (p == NULL);
21603 }
21604
21605
21606 int main(argc, argv)
21607         int argc;
21608         char **argv;
21609 {
21610
21611         /* pthread test function */
21612 #ifndef PTHREAD_CREATE_DETACHED
21613 #define PTHREAD_CREATE_DETACHED 1
21614 #endif
21615         pthread_t t;
21616         int status;
21617         int detach = PTHREAD_CREATE_DETACHED;
21618
21619 #if HAVE_PTHREADS > 4
21620         /* Final pthreads */
21621         pthread_attr_t attr;
21622
21623         status = pthread_attr_init(&attr);
21624         if( status ) return status;
21625
21626 #if HAVE_PTHREADS < 7
21627         status = pthread_attr_setdetachstate(&attr, &detach);
21628         if( status < 0 ) status = errno;
21629 #else
21630         status = pthread_attr_setdetachstate(&attr, detach);
21631 #endif
21632         if( status ) return status;
21633         status = pthread_create( &t, &attr, task, NULL );
21634 #if HAVE_PTHREADS < 7
21635         if( status < 0 ) status = errno;
21636 #endif
21637         if( status ) return status;
21638 #else
21639         /* Draft 4 pthreads */
21640         status = pthread_create( &t, pthread_attr_default, task, NULL );
21641         if( status ) return errno;
21642
21643         /* give thread a chance to complete */
21644         /* it should remain joinable and hence detachable */
21645         sleep( 1 );
21646
21647         status = pthread_detach( &t );
21648         if( status ) return errno;
21649 #endif
21650
21651 #ifdef HAVE_LINUX_THREADS
21652         pthread_kill_other_threads_np();
21653 #endif
21654
21655         return 0;
21656
21657 }
21658
21659 _ACEOF
21660 rm -f conftest$ac_exeext
21661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21662   (eval $ac_link) 2>&5
21663   ac_status=$?
21664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667   (eval $ac_try) 2>&5
21668   ac_status=$?
21669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670   (exit $ac_status); }; }; then
21671   ol_cv_pthread_thread=yes
21672 else
21673   echo "$as_me: program exited with status $ac_status" >&5
21674 echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21676
21677 ( exit $ac_status )
21678 ol_cv_pthread_thread=no
21679 fi
21680 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21681 fi
21682
21683                 # restore the LIBS
21684                 LIBS="$ol_LIBS"
21685
21686 fi
21687 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21688 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21689
21690         if test $ol_cv_pthread_thread = yes ; then
21691                 ol_link_pthreads="-thread"
21692                 ol_link_threads=posix
21693         fi
21694 fi
21695
21696
21697                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21698 if test "$ol_link_threads" = no ; then
21699         # try -lpthread -lmach -lexc -lc_r
21700         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21701 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21702 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21703   echo $ECHO_N "(cached) $ECHO_C" >&6
21704 else
21705
21706                 # save the flags
21707                 ol_LIBS="$LIBS"
21708                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21709
21710                 if test "$cross_compiling" = yes; then
21711   cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h.  */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h.  */
21717
21718 /* pthread test headers */
21719 #include <pthread.h>
21720 #if HAVE_PTHREADS < 7
21721 #include <errno.h>
21722 #endif
21723 #ifndef NULL
21724 #define NULL (void*)0
21725 #endif
21726
21727 static void *task(p)
21728         void *p;
21729 {
21730         return (void *) (p == NULL);
21731 }
21732
21733 int
21734 main ()
21735 {
21736
21737         /* pthread test function */
21738 #ifndef PTHREAD_CREATE_DETACHED
21739 #define PTHREAD_CREATE_DETACHED 1
21740 #endif
21741         pthread_t t;
21742         int status;
21743         int detach = PTHREAD_CREATE_DETACHED;
21744
21745 #if HAVE_PTHREADS > 4
21746         /* Final pthreads */
21747         pthread_attr_t attr;
21748
21749         status = pthread_attr_init(&attr);
21750         if( status ) return status;
21751
21752 #if HAVE_PTHREADS < 7
21753         status = pthread_attr_setdetachstate(&attr, &detach);
21754         if( status < 0 ) status = errno;
21755 #else
21756         status = pthread_attr_setdetachstate(&attr, detach);
21757 #endif
21758         if( status ) return status;
21759         status = pthread_create( &t, &attr, task, NULL );
21760 #if HAVE_PTHREADS < 7
21761         if( status < 0 ) status = errno;
21762 #endif
21763         if( status ) return status;
21764 #else
21765         /* Draft 4 pthreads */
21766         status = pthread_create( &t, pthread_attr_default, task, NULL );
21767         if( status ) return errno;
21768
21769         /* give thread a chance to complete */
21770         /* it should remain joinable and hence detachable */
21771         sleep( 1 );
21772
21773         status = pthread_detach( &t );
21774         if( status ) return errno;
21775 #endif
21776
21777 #ifdef HAVE_LINUX_THREADS
21778         pthread_kill_other_threads_np();
21779 #endif
21780
21781         return 0;
21782
21783   ;
21784   return 0;
21785 }
21786 _ACEOF
21787 rm -f conftest.$ac_objext conftest$ac_exeext
21788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21789   (eval $ac_link) 2>conftest.er1
21790   ac_status=$?
21791   grep -v '^ *+' conftest.er1 >conftest.err
21792   rm -f conftest.er1
21793   cat conftest.err >&5
21794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795   (exit $ac_status); } &&
21796          { ac_try='test -z "$ac_c_werror_flag"
21797                          || test ! -s conftest.err'
21798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21799   (eval $ac_try) 2>&5
21800   ac_status=$?
21801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802   (exit $ac_status); }; } &&
21803          { ac_try='test -s conftest$ac_exeext'
21804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21805   (eval $ac_try) 2>&5
21806   ac_status=$?
21807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808   (exit $ac_status); }; }; then
21809   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21810 else
21811   echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21813
21814 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21815 fi
21816 rm -f conftest.err conftest.$ac_objext \
21817       conftest$ac_exeext conftest.$ac_ext
21818 else
21819   cat >conftest.$ac_ext <<_ACEOF
21820 /* confdefs.h.  */
21821 _ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h.  */
21825
21826 /* pthread test headers */
21827 #include <pthread.h>
21828 #if HAVE_PTHREADS < 7
21829 #include <errno.h>
21830 #endif
21831 #ifndef NULL
21832 #define NULL (void*)0
21833 #endif
21834
21835 static void *task(p)
21836         void *p;
21837 {
21838         return (void *) (p == NULL);
21839 }
21840
21841
21842 int main(argc, argv)
21843         int argc;
21844         char **argv;
21845 {
21846
21847         /* pthread test function */
21848 #ifndef PTHREAD_CREATE_DETACHED
21849 #define PTHREAD_CREATE_DETACHED 1
21850 #endif
21851         pthread_t t;
21852         int status;
21853         int detach = PTHREAD_CREATE_DETACHED;
21854
21855 #if HAVE_PTHREADS > 4
21856         /* Final pthreads */
21857         pthread_attr_t attr;
21858
21859         status = pthread_attr_init(&attr);
21860         if( status ) return status;
21861
21862 #if HAVE_PTHREADS < 7
21863         status = pthread_attr_setdetachstate(&attr, &detach);
21864         if( status < 0 ) status = errno;
21865 #else
21866         status = pthread_attr_setdetachstate(&attr, detach);
21867 #endif
21868         if( status ) return status;
21869         status = pthread_create( &t, &attr, task, NULL );
21870 #if HAVE_PTHREADS < 7
21871         if( status < 0 ) status = errno;
21872 #endif
21873         if( status ) return status;
21874 #else
21875         /* Draft 4 pthreads */
21876         status = pthread_create( &t, pthread_attr_default, task, NULL );
21877         if( status ) return errno;
21878
21879         /* give thread a chance to complete */
21880         /* it should remain joinable and hence detachable */
21881         sleep( 1 );
21882
21883         status = pthread_detach( &t );
21884         if( status ) return errno;
21885 #endif
21886
21887 #ifdef HAVE_LINUX_THREADS
21888         pthread_kill_other_threads_np();
21889 #endif
21890
21891         return 0;
21892
21893 }
21894
21895 _ACEOF
21896 rm -f conftest$ac_exeext
21897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21898   (eval $ac_link) 2>&5
21899   ac_status=$?
21900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903   (eval $ac_try) 2>&5
21904   ac_status=$?
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); }; }; then
21907   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21908 else
21909   echo "$as_me: program exited with status $ac_status" >&5
21910 echo "$as_me: failed program was:" >&5
21911 sed 's/^/| /' conftest.$ac_ext >&5
21912
21913 ( exit $ac_status )
21914 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21915 fi
21916 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21917 fi
21918
21919                 # restore the LIBS
21920                 LIBS="$ol_LIBS"
21921
21922 fi
21923 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21924 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21925
21926         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21927                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21928                 ol_link_threads=posix
21929         fi
21930 fi
21931
21932                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21933 if test "$ol_link_threads" = no ; then
21934         # try -lpthread -lmach -lexc
21935         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21936 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21937 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21938   echo $ECHO_N "(cached) $ECHO_C" >&6
21939 else
21940
21941                 # save the flags
21942                 ol_LIBS="$LIBS"
21943                 LIBS="-lpthread -lmach -lexc $LIBS"
21944
21945                 if test "$cross_compiling" = yes; then
21946   cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h.  */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h.  */
21952
21953 /* pthread test headers */
21954 #include <pthread.h>
21955 #if HAVE_PTHREADS < 7
21956 #include <errno.h>
21957 #endif
21958 #ifndef NULL
21959 #define NULL (void*)0
21960 #endif
21961
21962 static void *task(p)
21963         void *p;
21964 {
21965         return (void *) (p == NULL);
21966 }
21967
21968 int
21969 main ()
21970 {
21971
21972         /* pthread test function */
21973 #ifndef PTHREAD_CREATE_DETACHED
21974 #define PTHREAD_CREATE_DETACHED 1
21975 #endif
21976         pthread_t t;
21977         int status;
21978         int detach = PTHREAD_CREATE_DETACHED;
21979
21980 #if HAVE_PTHREADS > 4
21981         /* Final pthreads */
21982         pthread_attr_t attr;
21983
21984         status = pthread_attr_init(&attr);
21985         if( status ) return status;
21986
21987 #if HAVE_PTHREADS < 7
21988         status = pthread_attr_setdetachstate(&attr, &detach);
21989         if( status < 0 ) status = errno;
21990 #else
21991         status = pthread_attr_setdetachstate(&attr, detach);
21992 #endif
21993         if( status ) return status;
21994         status = pthread_create( &t, &attr, task, NULL );
21995 #if HAVE_PTHREADS < 7
21996         if( status < 0 ) status = errno;
21997 #endif
21998         if( status ) return status;
21999 #else
22000         /* Draft 4 pthreads */
22001         status = pthread_create( &t, pthread_attr_default, task, NULL );
22002         if( status ) return errno;
22003
22004         /* give thread a chance to complete */
22005         /* it should remain joinable and hence detachable */
22006         sleep( 1 );
22007
22008         status = pthread_detach( &t );
22009         if( status ) return errno;
22010 #endif
22011
22012 #ifdef HAVE_LINUX_THREADS
22013         pthread_kill_other_threads_np();
22014 #endif
22015
22016         return 0;
22017
22018   ;
22019   return 0;
22020 }
22021 _ACEOF
22022 rm -f conftest.$ac_objext conftest$ac_exeext
22023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22024   (eval $ac_link) 2>conftest.er1
22025   ac_status=$?
22026   grep -v '^ *+' conftest.er1 >conftest.err
22027   rm -f conftest.er1
22028   cat conftest.err >&5
22029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); } &&
22031          { ac_try='test -z "$ac_c_werror_flag"
22032                          || test ! -s conftest.err'
22033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22034   (eval $ac_try) 2>&5
22035   ac_status=$?
22036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037   (exit $ac_status); }; } &&
22038          { ac_try='test -s conftest$ac_exeext'
22039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22040   (eval $ac_try) 2>&5
22041   ac_status=$?
22042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043   (exit $ac_status); }; }; then
22044   ol_cv_pthread_lpthread_lmach_lexc=yes
22045 else
22046   echo "$as_me: failed program was:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22048
22049 ol_cv_pthread_lpthread_lmach_lexc=no
22050 fi
22051 rm -f conftest.err conftest.$ac_objext \
22052       conftest$ac_exeext conftest.$ac_ext
22053 else
22054   cat >conftest.$ac_ext <<_ACEOF
22055 /* confdefs.h.  */
22056 _ACEOF
22057 cat confdefs.h >>conftest.$ac_ext
22058 cat >>conftest.$ac_ext <<_ACEOF
22059 /* end confdefs.h.  */
22060
22061 /* pthread test headers */
22062 #include <pthread.h>
22063 #if HAVE_PTHREADS < 7
22064 #include <errno.h>
22065 #endif
22066 #ifndef NULL
22067 #define NULL (void*)0
22068 #endif
22069
22070 static void *task(p)
22071         void *p;
22072 {
22073         return (void *) (p == NULL);
22074 }
22075
22076
22077 int main(argc, argv)
22078         int argc;
22079         char **argv;
22080 {
22081
22082         /* pthread test function */
22083 #ifndef PTHREAD_CREATE_DETACHED
22084 #define PTHREAD_CREATE_DETACHED 1
22085 #endif
22086         pthread_t t;
22087         int status;
22088         int detach = PTHREAD_CREATE_DETACHED;
22089
22090 #if HAVE_PTHREADS > 4
22091         /* Final pthreads */
22092         pthread_attr_t attr;
22093
22094         status = pthread_attr_init(&attr);
22095         if( status ) return status;
22096
22097 #if HAVE_PTHREADS < 7
22098         status = pthread_attr_setdetachstate(&attr, &detach);
22099         if( status < 0 ) status = errno;
22100 #else
22101         status = pthread_attr_setdetachstate(&attr, detach);
22102 #endif
22103         if( status ) return status;
22104         status = pthread_create( &t, &attr, task, NULL );
22105 #if HAVE_PTHREADS < 7
22106         if( status < 0 ) status = errno;
22107 #endif
22108         if( status ) return status;
22109 #else
22110         /* Draft 4 pthreads */
22111         status = pthread_create( &t, pthread_attr_default, task, NULL );
22112         if( status ) return errno;
22113
22114         /* give thread a chance to complete */
22115         /* it should remain joinable and hence detachable */
22116         sleep( 1 );
22117
22118         status = pthread_detach( &t );
22119         if( status ) return errno;
22120 #endif
22121
22122 #ifdef HAVE_LINUX_THREADS
22123         pthread_kill_other_threads_np();
22124 #endif
22125
22126         return 0;
22127
22128 }
22129
22130 _ACEOF
22131 rm -f conftest$ac_exeext
22132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22133   (eval $ac_link) 2>&5
22134   ac_status=$?
22135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22138   (eval $ac_try) 2>&5
22139   ac_status=$?
22140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141   (exit $ac_status); }; }; then
22142   ol_cv_pthread_lpthread_lmach_lexc=yes
22143 else
22144   echo "$as_me: program exited with status $ac_status" >&5
22145 echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22147
22148 ( exit $ac_status )
22149 ol_cv_pthread_lpthread_lmach_lexc=no
22150 fi
22151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22152 fi
22153
22154                 # restore the LIBS
22155                 LIBS="$ol_LIBS"
22156
22157 fi
22158 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22159 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22160
22161         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22162                 ol_link_pthreads="-lpthread -lmach -lexc"
22163                 ol_link_threads=posix
22164         fi
22165 fi
22166
22167
22168                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22169 if test "$ol_link_threads" = no ; then
22170         # try -lpthread -Wl,-woff,85
22171         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22172 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22173 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22174   echo $ECHO_N "(cached) $ECHO_C" >&6
22175 else
22176
22177                 # save the flags
22178                 ol_LIBS="$LIBS"
22179                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22180
22181                 if test "$cross_compiling" = yes; then
22182   cat >conftest.$ac_ext <<_ACEOF
22183 /* confdefs.h.  */
22184 _ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h.  */
22188
22189 /* pthread test headers */
22190 #include <pthread.h>
22191 #if HAVE_PTHREADS < 7
22192 #include <errno.h>
22193 #endif
22194 #ifndef NULL
22195 #define NULL (void*)0
22196 #endif
22197
22198 static void *task(p)
22199         void *p;
22200 {
22201         return (void *) (p == NULL);
22202 }
22203
22204 int
22205 main ()
22206 {
22207
22208         /* pthread test function */
22209 #ifndef PTHREAD_CREATE_DETACHED
22210 #define PTHREAD_CREATE_DETACHED 1
22211 #endif
22212         pthread_t t;
22213         int status;
22214         int detach = PTHREAD_CREATE_DETACHED;
22215
22216 #if HAVE_PTHREADS > 4
22217         /* Final pthreads */
22218         pthread_attr_t attr;
22219
22220         status = pthread_attr_init(&attr);
22221         if( status ) return status;
22222
22223 #if HAVE_PTHREADS < 7
22224         status = pthread_attr_setdetachstate(&attr, &detach);
22225         if( status < 0 ) status = errno;
22226 #else
22227         status = pthread_attr_setdetachstate(&attr, detach);
22228 #endif
22229         if( status ) return status;
22230         status = pthread_create( &t, &attr, task, NULL );
22231 #if HAVE_PTHREADS < 7
22232         if( status < 0 ) status = errno;
22233 #endif
22234         if( status ) return status;
22235 #else
22236         /* Draft 4 pthreads */
22237         status = pthread_create( &t, pthread_attr_default, task, NULL );
22238         if( status ) return errno;
22239
22240         /* give thread a chance to complete */
22241         /* it should remain joinable and hence detachable */
22242         sleep( 1 );
22243
22244         status = pthread_detach( &t );
22245         if( status ) return errno;
22246 #endif
22247
22248 #ifdef HAVE_LINUX_THREADS
22249         pthread_kill_other_threads_np();
22250 #endif
22251
22252         return 0;
22253
22254   ;
22255   return 0;
22256 }
22257 _ACEOF
22258 rm -f conftest.$ac_objext conftest$ac_exeext
22259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22260   (eval $ac_link) 2>conftest.er1
22261   ac_status=$?
22262   grep -v '^ *+' conftest.er1 >conftest.err
22263   rm -f conftest.er1
22264   cat conftest.err >&5
22265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266   (exit $ac_status); } &&
22267          { ac_try='test -z "$ac_c_werror_flag"
22268                          || test ! -s conftest.err'
22269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22270   (eval $ac_try) 2>&5
22271   ac_status=$?
22272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273   (exit $ac_status); }; } &&
22274          { ac_try='test -s conftest$ac_exeext'
22275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22276   (eval $ac_try) 2>&5
22277   ac_status=$?
22278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279   (exit $ac_status); }; }; then
22280   ol_cv_pthread_lib_lpthread_woff=yes
22281 else
22282   echo "$as_me: failed program was:" >&5
22283 sed 's/^/| /' conftest.$ac_ext >&5
22284
22285 ol_cv_pthread_lib_lpthread_woff=no
22286 fi
22287 rm -f conftest.err conftest.$ac_objext \
22288       conftest$ac_exeext conftest.$ac_ext
22289 else
22290   cat >conftest.$ac_ext <<_ACEOF
22291 /* confdefs.h.  */
22292 _ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h.  */
22296
22297 /* pthread test headers */
22298 #include <pthread.h>
22299 #if HAVE_PTHREADS < 7
22300 #include <errno.h>
22301 #endif
22302 #ifndef NULL
22303 #define NULL (void*)0
22304 #endif
22305
22306 static void *task(p)
22307         void *p;
22308 {
22309         return (void *) (p == NULL);
22310 }
22311
22312
22313 int main(argc, argv)
22314         int argc;
22315         char **argv;
22316 {
22317
22318         /* pthread test function */
22319 #ifndef PTHREAD_CREATE_DETACHED
22320 #define PTHREAD_CREATE_DETACHED 1
22321 #endif
22322         pthread_t t;
22323         int status;
22324         int detach = PTHREAD_CREATE_DETACHED;
22325
22326 #if HAVE_PTHREADS > 4
22327         /* Final pthreads */
22328         pthread_attr_t attr;
22329
22330         status = pthread_attr_init(&attr);
22331         if( status ) return status;
22332
22333 #if HAVE_PTHREADS < 7
22334         status = pthread_attr_setdetachstate(&attr, &detach);
22335         if( status < 0 ) status = errno;
22336 #else
22337         status = pthread_attr_setdetachstate(&attr, detach);
22338 #endif
22339         if( status ) return status;
22340         status = pthread_create( &t, &attr, task, NULL );
22341 #if HAVE_PTHREADS < 7
22342         if( status < 0 ) status = errno;
22343 #endif
22344         if( status ) return status;
22345 #else
22346         /* Draft 4 pthreads */
22347         status = pthread_create( &t, pthread_attr_default, task, NULL );
22348         if( status ) return errno;
22349
22350         /* give thread a chance to complete */
22351         /* it should remain joinable and hence detachable */
22352         sleep( 1 );
22353
22354         status = pthread_detach( &t );
22355         if( status ) return errno;
22356 #endif
22357
22358 #ifdef HAVE_LINUX_THREADS
22359         pthread_kill_other_threads_np();
22360 #endif
22361
22362         return 0;
22363
22364 }
22365
22366 _ACEOF
22367 rm -f conftest$ac_exeext
22368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22369   (eval $ac_link) 2>&5
22370   ac_status=$?
22371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374   (eval $ac_try) 2>&5
22375   ac_status=$?
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); }; }; then
22378   ol_cv_pthread_lib_lpthread_woff=yes
22379 else
22380   echo "$as_me: program exited with status $ac_status" >&5
22381 echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22383
22384 ( exit $ac_status )
22385 ol_cv_pthread_lib_lpthread_woff=no
22386 fi
22387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22388 fi
22389
22390                 # restore the LIBS
22391                 LIBS="$ol_LIBS"
22392
22393 fi
22394 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22395 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22396
22397         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22398                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22399                 ol_link_threads=posix
22400         fi
22401 fi
22402
22403
22404                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22405 if test "$ol_link_threads" = no ; then
22406         # try -lpthread
22407         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22408 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22409 if test "${ol_cv_pthread_lpthread+set}" = set; then
22410   echo $ECHO_N "(cached) $ECHO_C" >&6
22411 else
22412
22413                 # save the flags
22414                 ol_LIBS="$LIBS"
22415                 LIBS="-lpthread $LIBS"
22416
22417                 if test "$cross_compiling" = yes; then
22418   cat >conftest.$ac_ext <<_ACEOF
22419 /* confdefs.h.  */
22420 _ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h.  */
22424
22425 /* pthread test headers */
22426 #include <pthread.h>
22427 #if HAVE_PTHREADS < 7
22428 #include <errno.h>
22429 #endif
22430 #ifndef NULL
22431 #define NULL (void*)0
22432 #endif
22433
22434 static void *task(p)
22435         void *p;
22436 {
22437         return (void *) (p == NULL);
22438 }
22439
22440 int
22441 main ()
22442 {
22443
22444         /* pthread test function */
22445 #ifndef PTHREAD_CREATE_DETACHED
22446 #define PTHREAD_CREATE_DETACHED 1
22447 #endif
22448         pthread_t t;
22449         int status;
22450         int detach = PTHREAD_CREATE_DETACHED;
22451
22452 #if HAVE_PTHREADS > 4
22453         /* Final pthreads */
22454         pthread_attr_t attr;
22455
22456         status = pthread_attr_init(&attr);
22457         if( status ) return status;
22458
22459 #if HAVE_PTHREADS < 7
22460         status = pthread_attr_setdetachstate(&attr, &detach);
22461         if( status < 0 ) status = errno;
22462 #else
22463         status = pthread_attr_setdetachstate(&attr, detach);
22464 #endif
22465         if( status ) return status;
22466         status = pthread_create( &t, &attr, task, NULL );
22467 #if HAVE_PTHREADS < 7
22468         if( status < 0 ) status = errno;
22469 #endif
22470         if( status ) return status;
22471 #else
22472         /* Draft 4 pthreads */
22473         status = pthread_create( &t, pthread_attr_default, task, NULL );
22474         if( status ) return errno;
22475
22476         /* give thread a chance to complete */
22477         /* it should remain joinable and hence detachable */
22478         sleep( 1 );
22479
22480         status = pthread_detach( &t );
22481         if( status ) return errno;
22482 #endif
22483
22484 #ifdef HAVE_LINUX_THREADS
22485         pthread_kill_other_threads_np();
22486 #endif
22487
22488         return 0;
22489
22490   ;
22491   return 0;
22492 }
22493 _ACEOF
22494 rm -f conftest.$ac_objext conftest$ac_exeext
22495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22496   (eval $ac_link) 2>conftest.er1
22497   ac_status=$?
22498   grep -v '^ *+' conftest.er1 >conftest.err
22499   rm -f conftest.er1
22500   cat conftest.err >&5
22501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502   (exit $ac_status); } &&
22503          { ac_try='test -z "$ac_c_werror_flag"
22504                          || test ! -s conftest.err'
22505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22506   (eval $ac_try) 2>&5
22507   ac_status=$?
22508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509   (exit $ac_status); }; } &&
22510          { ac_try='test -s conftest$ac_exeext'
22511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22512   (eval $ac_try) 2>&5
22513   ac_status=$?
22514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515   (exit $ac_status); }; }; then
22516   ol_cv_pthread_lpthread=yes
22517 else
22518   echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22520
22521 ol_cv_pthread_lpthread=no
22522 fi
22523 rm -f conftest.err conftest.$ac_objext \
22524       conftest$ac_exeext conftest.$ac_ext
22525 else
22526   cat >conftest.$ac_ext <<_ACEOF
22527 /* confdefs.h.  */
22528 _ACEOF
22529 cat confdefs.h >>conftest.$ac_ext
22530 cat >>conftest.$ac_ext <<_ACEOF
22531 /* end confdefs.h.  */
22532
22533 /* pthread test headers */
22534 #include <pthread.h>
22535 #if HAVE_PTHREADS < 7
22536 #include <errno.h>
22537 #endif
22538 #ifndef NULL
22539 #define NULL (void*)0
22540 #endif
22541
22542 static void *task(p)
22543         void *p;
22544 {
22545         return (void *) (p == NULL);
22546 }
22547
22548
22549 int main(argc, argv)
22550         int argc;
22551         char **argv;
22552 {
22553
22554         /* pthread test function */
22555 #ifndef PTHREAD_CREATE_DETACHED
22556 #define PTHREAD_CREATE_DETACHED 1
22557 #endif
22558         pthread_t t;
22559         int status;
22560         int detach = PTHREAD_CREATE_DETACHED;
22561
22562 #if HAVE_PTHREADS > 4
22563         /* Final pthreads */
22564         pthread_attr_t attr;
22565
22566         status = pthread_attr_init(&attr);
22567         if( status ) return status;
22568
22569 #if HAVE_PTHREADS < 7
22570         status = pthread_attr_setdetachstate(&attr, &detach);
22571         if( status < 0 ) status = errno;
22572 #else
22573         status = pthread_attr_setdetachstate(&attr, detach);
22574 #endif
22575         if( status ) return status;
22576         status = pthread_create( &t, &attr, task, NULL );
22577 #if HAVE_PTHREADS < 7
22578         if( status < 0 ) status = errno;
22579 #endif
22580         if( status ) return status;
22581 #else
22582         /* Draft 4 pthreads */
22583         status = pthread_create( &t, pthread_attr_default, task, NULL );
22584         if( status ) return errno;
22585
22586         /* give thread a chance to complete */
22587         /* it should remain joinable and hence detachable */
22588         sleep( 1 );
22589
22590         status = pthread_detach( &t );
22591         if( status ) return errno;
22592 #endif
22593
22594 #ifdef HAVE_LINUX_THREADS
22595         pthread_kill_other_threads_np();
22596 #endif
22597
22598         return 0;
22599
22600 }
22601
22602 _ACEOF
22603 rm -f conftest$ac_exeext
22604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22605   (eval $ac_link) 2>&5
22606   ac_status=$?
22607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610   (eval $ac_try) 2>&5
22611   ac_status=$?
22612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613   (exit $ac_status); }; }; then
22614   ol_cv_pthread_lpthread=yes
22615 else
22616   echo "$as_me: program exited with status $ac_status" >&5
22617 echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22619
22620 ( exit $ac_status )
22621 ol_cv_pthread_lpthread=no
22622 fi
22623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22624 fi
22625
22626                 # restore the LIBS
22627                 LIBS="$ol_LIBS"
22628
22629 fi
22630 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22631 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22632
22633         if test $ol_cv_pthread_lpthread = yes ; then
22634                 ol_link_pthreads="-lpthread"
22635                 ol_link_threads=posix
22636         fi
22637 fi
22638
22639                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22640 if test "$ol_link_threads" = no ; then
22641         # try -lc_r
22642         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22643 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22644 if test "${ol_cv_pthread_lc_r+set}" = set; then
22645   echo $ECHO_N "(cached) $ECHO_C" >&6
22646 else
22647
22648                 # save the flags
22649                 ol_LIBS="$LIBS"
22650                 LIBS="-lc_r $LIBS"
22651
22652                 if test "$cross_compiling" = yes; then
22653   cat >conftest.$ac_ext <<_ACEOF
22654 /* confdefs.h.  */
22655 _ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h.  */
22659
22660 /* pthread test headers */
22661 #include <pthread.h>
22662 #if HAVE_PTHREADS < 7
22663 #include <errno.h>
22664 #endif
22665 #ifndef NULL
22666 #define NULL (void*)0
22667 #endif
22668
22669 static void *task(p)
22670         void *p;
22671 {
22672         return (void *) (p == NULL);
22673 }
22674
22675 int
22676 main ()
22677 {
22678
22679         /* pthread test function */
22680 #ifndef PTHREAD_CREATE_DETACHED
22681 #define PTHREAD_CREATE_DETACHED 1
22682 #endif
22683         pthread_t t;
22684         int status;
22685         int detach = PTHREAD_CREATE_DETACHED;
22686
22687 #if HAVE_PTHREADS > 4
22688         /* Final pthreads */
22689         pthread_attr_t attr;
22690
22691         status = pthread_attr_init(&attr);
22692         if( status ) return status;
22693
22694 #if HAVE_PTHREADS < 7
22695         status = pthread_attr_setdetachstate(&attr, &detach);
22696         if( status < 0 ) status = errno;
22697 #else
22698         status = pthread_attr_setdetachstate(&attr, detach);
22699 #endif
22700         if( status ) return status;
22701         status = pthread_create( &t, &attr, task, NULL );
22702 #if HAVE_PTHREADS < 7
22703         if( status < 0 ) status = errno;
22704 #endif
22705         if( status ) return status;
22706 #else
22707         /* Draft 4 pthreads */
22708         status = pthread_create( &t, pthread_attr_default, task, NULL );
22709         if( status ) return errno;
22710
22711         /* give thread a chance to complete */
22712         /* it should remain joinable and hence detachable */
22713         sleep( 1 );
22714
22715         status = pthread_detach( &t );
22716         if( status ) return errno;
22717 #endif
22718
22719 #ifdef HAVE_LINUX_THREADS
22720         pthread_kill_other_threads_np();
22721 #endif
22722
22723         return 0;
22724
22725   ;
22726   return 0;
22727 }
22728 _ACEOF
22729 rm -f conftest.$ac_objext conftest$ac_exeext
22730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22731   (eval $ac_link) 2>conftest.er1
22732   ac_status=$?
22733   grep -v '^ *+' conftest.er1 >conftest.err
22734   rm -f conftest.er1
22735   cat conftest.err >&5
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); } &&
22738          { ac_try='test -z "$ac_c_werror_flag"
22739                          || test ! -s conftest.err'
22740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22741   (eval $ac_try) 2>&5
22742   ac_status=$?
22743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744   (exit $ac_status); }; } &&
22745          { ac_try='test -s conftest$ac_exeext'
22746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22747   (eval $ac_try) 2>&5
22748   ac_status=$?
22749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750   (exit $ac_status); }; }; then
22751   ol_cv_pthread_lc_r=yes
22752 else
22753   echo "$as_me: failed program was:" >&5
22754 sed 's/^/| /' conftest.$ac_ext >&5
22755
22756 ol_cv_pthread_lc_r=no
22757 fi
22758 rm -f conftest.err conftest.$ac_objext \
22759       conftest$ac_exeext conftest.$ac_ext
22760 else
22761   cat >conftest.$ac_ext <<_ACEOF
22762 /* confdefs.h.  */
22763 _ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h.  */
22767
22768 /* pthread test headers */
22769 #include <pthread.h>
22770 #if HAVE_PTHREADS < 7
22771 #include <errno.h>
22772 #endif
22773 #ifndef NULL
22774 #define NULL (void*)0
22775 #endif
22776
22777 static void *task(p)
22778         void *p;
22779 {
22780         return (void *) (p == NULL);
22781 }
22782
22783
22784 int main(argc, argv)
22785         int argc;
22786         char **argv;
22787 {
22788
22789         /* pthread test function */
22790 #ifndef PTHREAD_CREATE_DETACHED
22791 #define PTHREAD_CREATE_DETACHED 1
22792 #endif
22793         pthread_t t;
22794         int status;
22795         int detach = PTHREAD_CREATE_DETACHED;
22796
22797 #if HAVE_PTHREADS > 4
22798         /* Final pthreads */
22799         pthread_attr_t attr;
22800
22801         status = pthread_attr_init(&attr);
22802         if( status ) return status;
22803
22804 #if HAVE_PTHREADS < 7
22805         status = pthread_attr_setdetachstate(&attr, &detach);
22806         if( status < 0 ) status = errno;
22807 #else
22808         status = pthread_attr_setdetachstate(&attr, detach);
22809 #endif
22810         if( status ) return status;
22811         status = pthread_create( &t, &attr, task, NULL );
22812 #if HAVE_PTHREADS < 7
22813         if( status < 0 ) status = errno;
22814 #endif
22815         if( status ) return status;
22816 #else
22817         /* Draft 4 pthreads */
22818         status = pthread_create( &t, pthread_attr_default, task, NULL );
22819         if( status ) return errno;
22820
22821         /* give thread a chance to complete */
22822         /* it should remain joinable and hence detachable */
22823         sleep( 1 );
22824
22825         status = pthread_detach( &t );
22826         if( status ) return errno;
22827 #endif
22828
22829 #ifdef HAVE_LINUX_THREADS
22830         pthread_kill_other_threads_np();
22831 #endif
22832
22833         return 0;
22834
22835 }
22836
22837 _ACEOF
22838 rm -f conftest$ac_exeext
22839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22840   (eval $ac_link) 2>&5
22841   ac_status=$?
22842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22845   (eval $ac_try) 2>&5
22846   ac_status=$?
22847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848   (exit $ac_status); }; }; then
22849   ol_cv_pthread_lc_r=yes
22850 else
22851   echo "$as_me: program exited with status $ac_status" >&5
22852 echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22854
22855 ( exit $ac_status )
22856 ol_cv_pthread_lc_r=no
22857 fi
22858 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22859 fi
22860
22861                 # restore the LIBS
22862                 LIBS="$ol_LIBS"
22863
22864 fi
22865 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22866 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22867
22868         if test $ol_cv_pthread_lc_r = yes ; then
22869                 ol_link_pthreads="-lc_r"
22870                 ol_link_threads=posix
22871         fi
22872 fi
22873
22874
22875                 # Pthread try link: -threads (ol_cv_pthread_threads)
22876 if test "$ol_link_threads" = no ; then
22877         # try -threads
22878         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22879 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22880 if test "${ol_cv_pthread_threads+set}" = set; then
22881   echo $ECHO_N "(cached) $ECHO_C" >&6
22882 else
22883
22884                 # save the flags
22885                 ol_LIBS="$LIBS"
22886                 LIBS="-threads $LIBS"
22887
22888                 if test "$cross_compiling" = yes; then
22889   cat >conftest.$ac_ext <<_ACEOF
22890 /* confdefs.h.  */
22891 _ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h.  */
22895
22896 /* pthread test headers */
22897 #include <pthread.h>
22898 #if HAVE_PTHREADS < 7
22899 #include <errno.h>
22900 #endif
22901 #ifndef NULL
22902 #define NULL (void*)0
22903 #endif
22904
22905 static void *task(p)
22906         void *p;
22907 {
22908         return (void *) (p == NULL);
22909 }
22910
22911 int
22912 main ()
22913 {
22914
22915         /* pthread test function */
22916 #ifndef PTHREAD_CREATE_DETACHED
22917 #define PTHREAD_CREATE_DETACHED 1
22918 #endif
22919         pthread_t t;
22920         int status;
22921         int detach = PTHREAD_CREATE_DETACHED;
22922
22923 #if HAVE_PTHREADS > 4
22924         /* Final pthreads */
22925         pthread_attr_t attr;
22926
22927         status = pthread_attr_init(&attr);
22928         if( status ) return status;
22929
22930 #if HAVE_PTHREADS < 7
22931         status = pthread_attr_setdetachstate(&attr, &detach);
22932         if( status < 0 ) status = errno;
22933 #else
22934         status = pthread_attr_setdetachstate(&attr, detach);
22935 #endif
22936         if( status ) return status;
22937         status = pthread_create( &t, &attr, task, NULL );
22938 #if HAVE_PTHREADS < 7
22939         if( status < 0 ) status = errno;
22940 #endif
22941         if( status ) return status;
22942 #else
22943         /* Draft 4 pthreads */
22944         status = pthread_create( &t, pthread_attr_default, task, NULL );
22945         if( status ) return errno;
22946
22947         /* give thread a chance to complete */
22948         /* it should remain joinable and hence detachable */
22949         sleep( 1 );
22950
22951         status = pthread_detach( &t );
22952         if( status ) return errno;
22953 #endif
22954
22955 #ifdef HAVE_LINUX_THREADS
22956         pthread_kill_other_threads_np();
22957 #endif
22958
22959         return 0;
22960
22961   ;
22962   return 0;
22963 }
22964 _ACEOF
22965 rm -f conftest.$ac_objext conftest$ac_exeext
22966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22967   (eval $ac_link) 2>conftest.er1
22968   ac_status=$?
22969   grep -v '^ *+' conftest.er1 >conftest.err
22970   rm -f conftest.er1
22971   cat conftest.err >&5
22972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973   (exit $ac_status); } &&
22974          { ac_try='test -z "$ac_c_werror_flag"
22975                          || test ! -s conftest.err'
22976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22977   (eval $ac_try) 2>&5
22978   ac_status=$?
22979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980   (exit $ac_status); }; } &&
22981          { ac_try='test -s conftest$ac_exeext'
22982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22983   (eval $ac_try) 2>&5
22984   ac_status=$?
22985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); }; }; then
22987   ol_cv_pthread_threads=yes
22988 else
22989   echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22991
22992 ol_cv_pthread_threads=no
22993 fi
22994 rm -f conftest.err conftest.$ac_objext \
22995       conftest$ac_exeext conftest.$ac_ext
22996 else
22997   cat >conftest.$ac_ext <<_ACEOF
22998 /* confdefs.h.  */
22999 _ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h.  */
23003
23004 /* pthread test headers */
23005 #include <pthread.h>
23006 #if HAVE_PTHREADS < 7
23007 #include <errno.h>
23008 #endif
23009 #ifndef NULL
23010 #define NULL (void*)0
23011 #endif
23012
23013 static void *task(p)
23014         void *p;
23015 {
23016         return (void *) (p == NULL);
23017 }
23018
23019
23020 int main(argc, argv)
23021         int argc;
23022         char **argv;
23023 {
23024
23025         /* pthread test function */
23026 #ifndef PTHREAD_CREATE_DETACHED
23027 #define PTHREAD_CREATE_DETACHED 1
23028 #endif
23029         pthread_t t;
23030         int status;
23031         int detach = PTHREAD_CREATE_DETACHED;
23032
23033 #if HAVE_PTHREADS > 4
23034         /* Final pthreads */
23035         pthread_attr_t attr;
23036
23037         status = pthread_attr_init(&attr);
23038         if( status ) return status;
23039
23040 #if HAVE_PTHREADS < 7
23041         status = pthread_attr_setdetachstate(&attr, &detach);
23042         if( status < 0 ) status = errno;
23043 #else
23044         status = pthread_attr_setdetachstate(&attr, detach);
23045 #endif
23046         if( status ) return status;
23047         status = pthread_create( &t, &attr, task, NULL );
23048 #if HAVE_PTHREADS < 7
23049         if( status < 0 ) status = errno;
23050 #endif
23051         if( status ) return status;
23052 #else
23053         /* Draft 4 pthreads */
23054         status = pthread_create( &t, pthread_attr_default, task, NULL );
23055         if( status ) return errno;
23056
23057         /* give thread a chance to complete */
23058         /* it should remain joinable and hence detachable */
23059         sleep( 1 );
23060
23061         status = pthread_detach( &t );
23062         if( status ) return errno;
23063 #endif
23064
23065 #ifdef HAVE_LINUX_THREADS
23066         pthread_kill_other_threads_np();
23067 #endif
23068
23069         return 0;
23070
23071 }
23072
23073 _ACEOF
23074 rm -f conftest$ac_exeext
23075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23076   (eval $ac_link) 2>&5
23077   ac_status=$?
23078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081   (eval $ac_try) 2>&5
23082   ac_status=$?
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); }; }; then
23085   ol_cv_pthread_threads=yes
23086 else
23087   echo "$as_me: program exited with status $ac_status" >&5
23088 echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23090
23091 ( exit $ac_status )
23092 ol_cv_pthread_threads=no
23093 fi
23094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23095 fi
23096
23097                 # restore the LIBS
23098                 LIBS="$ol_LIBS"
23099
23100 fi
23101 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23102 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23103
23104         if test $ol_cv_pthread_threads = yes ; then
23105                 ol_link_pthreads="-threads"
23106                 ol_link_threads=posix
23107         fi
23108 fi
23109
23110
23111                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23112 if test "$ol_link_threads" = no ; then
23113         # try -lpthreads -lmach -lexc -lc_r
23114         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23115 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23116 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23117   echo $ECHO_N "(cached) $ECHO_C" >&6
23118 else
23119
23120                 # save the flags
23121                 ol_LIBS="$LIBS"
23122                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23123
23124                 if test "$cross_compiling" = yes; then
23125   cat >conftest.$ac_ext <<_ACEOF
23126 /* confdefs.h.  */
23127 _ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h.  */
23131
23132 /* pthread test headers */
23133 #include <pthread.h>
23134 #if HAVE_PTHREADS < 7
23135 #include <errno.h>
23136 #endif
23137 #ifndef NULL
23138 #define NULL (void*)0
23139 #endif
23140
23141 static void *task(p)
23142         void *p;
23143 {
23144         return (void *) (p == NULL);
23145 }
23146
23147 int
23148 main ()
23149 {
23150
23151         /* pthread test function */
23152 #ifndef PTHREAD_CREATE_DETACHED
23153 #define PTHREAD_CREATE_DETACHED 1
23154 #endif
23155         pthread_t t;
23156         int status;
23157         int detach = PTHREAD_CREATE_DETACHED;
23158
23159 #if HAVE_PTHREADS > 4
23160         /* Final pthreads */
23161         pthread_attr_t attr;
23162
23163         status = pthread_attr_init(&attr);
23164         if( status ) return status;
23165
23166 #if HAVE_PTHREADS < 7
23167         status = pthread_attr_setdetachstate(&attr, &detach);
23168         if( status < 0 ) status = errno;
23169 #else
23170         status = pthread_attr_setdetachstate(&attr, detach);
23171 #endif
23172         if( status ) return status;
23173         status = pthread_create( &t, &attr, task, NULL );
23174 #if HAVE_PTHREADS < 7
23175         if( status < 0 ) status = errno;
23176 #endif
23177         if( status ) return status;
23178 #else
23179         /* Draft 4 pthreads */
23180         status = pthread_create( &t, pthread_attr_default, task, NULL );
23181         if( status ) return errno;
23182
23183         /* give thread a chance to complete */
23184         /* it should remain joinable and hence detachable */
23185         sleep( 1 );
23186
23187         status = pthread_detach( &t );
23188         if( status ) return errno;
23189 #endif
23190
23191 #ifdef HAVE_LINUX_THREADS
23192         pthread_kill_other_threads_np();
23193 #endif
23194
23195         return 0;
23196
23197   ;
23198   return 0;
23199 }
23200 _ACEOF
23201 rm -f conftest.$ac_objext conftest$ac_exeext
23202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23203   (eval $ac_link) 2>conftest.er1
23204   ac_status=$?
23205   grep -v '^ *+' conftest.er1 >conftest.err
23206   rm -f conftest.er1
23207   cat conftest.err >&5
23208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209   (exit $ac_status); } &&
23210          { ac_try='test -z "$ac_c_werror_flag"
23211                          || test ! -s conftest.err'
23212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213   (eval $ac_try) 2>&5
23214   ac_status=$?
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); }; } &&
23217          { ac_try='test -s conftest$ac_exeext'
23218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23219   (eval $ac_try) 2>&5
23220   ac_status=$?
23221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222   (exit $ac_status); }; }; then
23223   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23224 else
23225   echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23227
23228 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23229 fi
23230 rm -f conftest.err conftest.$ac_objext \
23231       conftest$ac_exeext conftest.$ac_ext
23232 else
23233   cat >conftest.$ac_ext <<_ACEOF
23234 /* confdefs.h.  */
23235 _ACEOF
23236 cat confdefs.h >>conftest.$ac_ext
23237 cat >>conftest.$ac_ext <<_ACEOF
23238 /* end confdefs.h.  */
23239
23240 /* pthread test headers */
23241 #include <pthread.h>
23242 #if HAVE_PTHREADS < 7
23243 #include <errno.h>
23244 #endif
23245 #ifndef NULL
23246 #define NULL (void*)0
23247 #endif
23248
23249 static void *task(p)
23250         void *p;
23251 {
23252         return (void *) (p == NULL);
23253 }
23254
23255
23256 int main(argc, argv)
23257         int argc;
23258         char **argv;
23259 {
23260
23261         /* pthread test function */
23262 #ifndef PTHREAD_CREATE_DETACHED
23263 #define PTHREAD_CREATE_DETACHED 1
23264 #endif
23265         pthread_t t;
23266         int status;
23267         int detach = PTHREAD_CREATE_DETACHED;
23268
23269 #if HAVE_PTHREADS > 4
23270         /* Final pthreads */
23271         pthread_attr_t attr;
23272
23273         status = pthread_attr_init(&attr);
23274         if( status ) return status;
23275
23276 #if HAVE_PTHREADS < 7
23277         status = pthread_attr_setdetachstate(&attr, &detach);
23278         if( status < 0 ) status = errno;
23279 #else
23280         status = pthread_attr_setdetachstate(&attr, detach);
23281 #endif
23282         if( status ) return status;
23283         status = pthread_create( &t, &attr, task, NULL );
23284 #if HAVE_PTHREADS < 7
23285         if( status < 0 ) status = errno;
23286 #endif
23287         if( status ) return status;
23288 #else
23289         /* Draft 4 pthreads */
23290         status = pthread_create( &t, pthread_attr_default, task, NULL );
23291         if( status ) return errno;
23292
23293         /* give thread a chance to complete */
23294         /* it should remain joinable and hence detachable */
23295         sleep( 1 );
23296
23297         status = pthread_detach( &t );
23298         if( status ) return errno;
23299 #endif
23300
23301 #ifdef HAVE_LINUX_THREADS
23302         pthread_kill_other_threads_np();
23303 #endif
23304
23305         return 0;
23306
23307 }
23308
23309 _ACEOF
23310 rm -f conftest$ac_exeext
23311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23312   (eval $ac_link) 2>&5
23313   ac_status=$?
23314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317   (eval $ac_try) 2>&5
23318   ac_status=$?
23319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320   (exit $ac_status); }; }; then
23321   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23322 else
23323   echo "$as_me: program exited with status $ac_status" >&5
23324 echo "$as_me: failed program was:" >&5
23325 sed 's/^/| /' conftest.$ac_ext >&5
23326
23327 ( exit $ac_status )
23328 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23329 fi
23330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23331 fi
23332
23333                 # restore the LIBS
23334                 LIBS="$ol_LIBS"
23335
23336 fi
23337 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23338 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23339
23340         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23341                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23342                 ol_link_threads=posix
23343         fi
23344 fi
23345
23346                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23347 if test "$ol_link_threads" = no ; then
23348         # try -lpthreads -lmach -lexc
23349         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23350 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23351 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23352   echo $ECHO_N "(cached) $ECHO_C" >&6
23353 else
23354
23355                 # save the flags
23356                 ol_LIBS="$LIBS"
23357                 LIBS="-lpthreads -lmach -lexc $LIBS"
23358
23359                 if test "$cross_compiling" = yes; then
23360   cat >conftest.$ac_ext <<_ACEOF
23361 /* confdefs.h.  */
23362 _ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h.  */
23366
23367 /* pthread test headers */
23368 #include <pthread.h>
23369 #if HAVE_PTHREADS < 7
23370 #include <errno.h>
23371 #endif
23372 #ifndef NULL
23373 #define NULL (void*)0
23374 #endif
23375
23376 static void *task(p)
23377         void *p;
23378 {
23379         return (void *) (p == NULL);
23380 }
23381
23382 int
23383 main ()
23384 {
23385
23386         /* pthread test function */
23387 #ifndef PTHREAD_CREATE_DETACHED
23388 #define PTHREAD_CREATE_DETACHED 1
23389 #endif
23390         pthread_t t;
23391         int status;
23392         int detach = PTHREAD_CREATE_DETACHED;
23393
23394 #if HAVE_PTHREADS > 4
23395         /* Final pthreads */
23396         pthread_attr_t attr;
23397
23398         status = pthread_attr_init(&attr);
23399         if( status ) return status;
23400
23401 #if HAVE_PTHREADS < 7
23402         status = pthread_attr_setdetachstate(&attr, &detach);
23403         if( status < 0 ) status = errno;
23404 #else
23405         status = pthread_attr_setdetachstate(&attr, detach);
23406 #endif
23407         if( status ) return status;
23408         status = pthread_create( &t, &attr, task, NULL );
23409 #if HAVE_PTHREADS < 7
23410         if( status < 0 ) status = errno;
23411 #endif
23412         if( status ) return status;
23413 #else
23414         /* Draft 4 pthreads */
23415         status = pthread_create( &t, pthread_attr_default, task, NULL );
23416         if( status ) return errno;
23417
23418         /* give thread a chance to complete */
23419         /* it should remain joinable and hence detachable */
23420         sleep( 1 );
23421
23422         status = pthread_detach( &t );
23423         if( status ) return errno;
23424 #endif
23425
23426 #ifdef HAVE_LINUX_THREADS
23427         pthread_kill_other_threads_np();
23428 #endif
23429
23430         return 0;
23431
23432   ;
23433   return 0;
23434 }
23435 _ACEOF
23436 rm -f conftest.$ac_objext conftest$ac_exeext
23437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23438   (eval $ac_link) 2>conftest.er1
23439   ac_status=$?
23440   grep -v '^ *+' conftest.er1 >conftest.err
23441   rm -f conftest.er1
23442   cat conftest.err >&5
23443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444   (exit $ac_status); } &&
23445          { ac_try='test -z "$ac_c_werror_flag"
23446                          || test ! -s conftest.err'
23447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23448   (eval $ac_try) 2>&5
23449   ac_status=$?
23450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451   (exit $ac_status); }; } &&
23452          { ac_try='test -s conftest$ac_exeext'
23453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23454   (eval $ac_try) 2>&5
23455   ac_status=$?
23456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457   (exit $ac_status); }; }; then
23458   ol_cv_pthread_lpthreads_lmach_lexc=yes
23459 else
23460   echo "$as_me: failed program was:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23462
23463 ol_cv_pthread_lpthreads_lmach_lexc=no
23464 fi
23465 rm -f conftest.err conftest.$ac_objext \
23466       conftest$ac_exeext conftest.$ac_ext
23467 else
23468   cat >conftest.$ac_ext <<_ACEOF
23469 /* confdefs.h.  */
23470 _ACEOF
23471 cat confdefs.h >>conftest.$ac_ext
23472 cat >>conftest.$ac_ext <<_ACEOF
23473 /* end confdefs.h.  */
23474
23475 /* pthread test headers */
23476 #include <pthread.h>
23477 #if HAVE_PTHREADS < 7
23478 #include <errno.h>
23479 #endif
23480 #ifndef NULL
23481 #define NULL (void*)0
23482 #endif
23483
23484 static void *task(p)
23485         void *p;
23486 {
23487         return (void *) (p == NULL);
23488 }
23489
23490
23491 int main(argc, argv)
23492         int argc;
23493         char **argv;
23494 {
23495
23496         /* pthread test function */
23497 #ifndef PTHREAD_CREATE_DETACHED
23498 #define PTHREAD_CREATE_DETACHED 1
23499 #endif
23500         pthread_t t;
23501         int status;
23502         int detach = PTHREAD_CREATE_DETACHED;
23503
23504 #if HAVE_PTHREADS > 4
23505         /* Final pthreads */
23506         pthread_attr_t attr;
23507
23508         status = pthread_attr_init(&attr);
23509         if( status ) return status;
23510
23511 #if HAVE_PTHREADS < 7
23512         status = pthread_attr_setdetachstate(&attr, &detach);
23513         if( status < 0 ) status = errno;
23514 #else
23515         status = pthread_attr_setdetachstate(&attr, detach);
23516 #endif
23517         if( status ) return status;
23518         status = pthread_create( &t, &attr, task, NULL );
23519 #if HAVE_PTHREADS < 7
23520         if( status < 0 ) status = errno;
23521 #endif
23522         if( status ) return status;
23523 #else
23524         /* Draft 4 pthreads */
23525         status = pthread_create( &t, pthread_attr_default, task, NULL );
23526         if( status ) return errno;
23527
23528         /* give thread a chance to complete */
23529         /* it should remain joinable and hence detachable */
23530         sleep( 1 );
23531
23532         status = pthread_detach( &t );
23533         if( status ) return errno;
23534 #endif
23535
23536 #ifdef HAVE_LINUX_THREADS
23537         pthread_kill_other_threads_np();
23538 #endif
23539
23540         return 0;
23541
23542 }
23543
23544 _ACEOF
23545 rm -f conftest$ac_exeext
23546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23547   (eval $ac_link) 2>&5
23548   ac_status=$?
23549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552   (eval $ac_try) 2>&5
23553   ac_status=$?
23554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555   (exit $ac_status); }; }; then
23556   ol_cv_pthread_lpthreads_lmach_lexc=yes
23557 else
23558   echo "$as_me: program exited with status $ac_status" >&5
23559 echo "$as_me: failed program was:" >&5
23560 sed 's/^/| /' conftest.$ac_ext >&5
23561
23562 ( exit $ac_status )
23563 ol_cv_pthread_lpthreads_lmach_lexc=no
23564 fi
23565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23566 fi
23567
23568                 # restore the LIBS
23569                 LIBS="$ol_LIBS"
23570
23571 fi
23572 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23573 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23574
23575         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23576                 ol_link_pthreads="-lpthreads -lmach -lexc"
23577                 ol_link_threads=posix
23578         fi
23579 fi
23580
23581                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23582 if test "$ol_link_threads" = no ; then
23583         # try -lpthreads -lexc
23584         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23585 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23586 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23587   echo $ECHO_N "(cached) $ECHO_C" >&6
23588 else
23589
23590                 # save the flags
23591                 ol_LIBS="$LIBS"
23592                 LIBS="-lpthreads -lexc $LIBS"
23593
23594                 if test "$cross_compiling" = yes; then
23595   cat >conftest.$ac_ext <<_ACEOF
23596 /* confdefs.h.  */
23597 _ACEOF
23598 cat confdefs.h >>conftest.$ac_ext
23599 cat >>conftest.$ac_ext <<_ACEOF
23600 /* end confdefs.h.  */
23601
23602 /* pthread test headers */
23603 #include <pthread.h>
23604 #if HAVE_PTHREADS < 7
23605 #include <errno.h>
23606 #endif
23607 #ifndef NULL
23608 #define NULL (void*)0
23609 #endif
23610
23611 static void *task(p)
23612         void *p;
23613 {
23614         return (void *) (p == NULL);
23615 }
23616
23617 int
23618 main ()
23619 {
23620
23621         /* pthread test function */
23622 #ifndef PTHREAD_CREATE_DETACHED
23623 #define PTHREAD_CREATE_DETACHED 1
23624 #endif
23625         pthread_t t;
23626         int status;
23627         int detach = PTHREAD_CREATE_DETACHED;
23628
23629 #if HAVE_PTHREADS > 4
23630         /* Final pthreads */
23631         pthread_attr_t attr;
23632
23633         status = pthread_attr_init(&attr);
23634         if( status ) return status;
23635
23636 #if HAVE_PTHREADS < 7
23637         status = pthread_attr_setdetachstate(&attr, &detach);
23638         if( status < 0 ) status = errno;
23639 #else
23640         status = pthread_attr_setdetachstate(&attr, detach);
23641 #endif
23642         if( status ) return status;
23643         status = pthread_create( &t, &attr, task, NULL );
23644 #if HAVE_PTHREADS < 7
23645         if( status < 0 ) status = errno;
23646 #endif
23647         if( status ) return status;
23648 #else
23649         /* Draft 4 pthreads */
23650         status = pthread_create( &t, pthread_attr_default, task, NULL );
23651         if( status ) return errno;
23652
23653         /* give thread a chance to complete */
23654         /* it should remain joinable and hence detachable */
23655         sleep( 1 );
23656
23657         status = pthread_detach( &t );
23658         if( status ) return errno;
23659 #endif
23660
23661 #ifdef HAVE_LINUX_THREADS
23662         pthread_kill_other_threads_np();
23663 #endif
23664
23665         return 0;
23666
23667   ;
23668   return 0;
23669 }
23670 _ACEOF
23671 rm -f conftest.$ac_objext conftest$ac_exeext
23672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23673   (eval $ac_link) 2>conftest.er1
23674   ac_status=$?
23675   grep -v '^ *+' conftest.er1 >conftest.err
23676   rm -f conftest.er1
23677   cat conftest.err >&5
23678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679   (exit $ac_status); } &&
23680          { ac_try='test -z "$ac_c_werror_flag"
23681                          || test ! -s conftest.err'
23682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683   (eval $ac_try) 2>&5
23684   ac_status=$?
23685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686   (exit $ac_status); }; } &&
23687          { ac_try='test -s conftest$ac_exeext'
23688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689   (eval $ac_try) 2>&5
23690   ac_status=$?
23691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692   (exit $ac_status); }; }; then
23693   ol_cv_pthread_lpthreads_lexc=yes
23694 else
23695   echo "$as_me: failed program was:" >&5
23696 sed 's/^/| /' conftest.$ac_ext >&5
23697
23698 ol_cv_pthread_lpthreads_lexc=no
23699 fi
23700 rm -f conftest.err conftest.$ac_objext \
23701       conftest$ac_exeext conftest.$ac_ext
23702 else
23703   cat >conftest.$ac_ext <<_ACEOF
23704 /* confdefs.h.  */
23705 _ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h.  */
23709
23710 /* pthread test headers */
23711 #include <pthread.h>
23712 #if HAVE_PTHREADS < 7
23713 #include <errno.h>
23714 #endif
23715 #ifndef NULL
23716 #define NULL (void*)0
23717 #endif
23718
23719 static void *task(p)
23720         void *p;
23721 {
23722         return (void *) (p == NULL);
23723 }
23724
23725
23726 int main(argc, argv)
23727         int argc;
23728         char **argv;
23729 {
23730
23731         /* pthread test function */
23732 #ifndef PTHREAD_CREATE_DETACHED
23733 #define PTHREAD_CREATE_DETACHED 1
23734 #endif
23735         pthread_t t;
23736         int status;
23737         int detach = PTHREAD_CREATE_DETACHED;
23738
23739 #if HAVE_PTHREADS > 4
23740         /* Final pthreads */
23741         pthread_attr_t attr;
23742
23743         status = pthread_attr_init(&attr);
23744         if( status ) return status;
23745
23746 #if HAVE_PTHREADS < 7
23747         status = pthread_attr_setdetachstate(&attr, &detach);
23748         if( status < 0 ) status = errno;
23749 #else
23750         status = pthread_attr_setdetachstate(&attr, detach);
23751 #endif
23752         if( status ) return status;
23753         status = pthread_create( &t, &attr, task, NULL );
23754 #if HAVE_PTHREADS < 7
23755         if( status < 0 ) status = errno;
23756 #endif
23757         if( status ) return status;
23758 #else
23759         /* Draft 4 pthreads */
23760         status = pthread_create( &t, pthread_attr_default, task, NULL );
23761         if( status ) return errno;
23762
23763         /* give thread a chance to complete */
23764         /* it should remain joinable and hence detachable */
23765         sleep( 1 );
23766
23767         status = pthread_detach( &t );
23768         if( status ) return errno;
23769 #endif
23770
23771 #ifdef HAVE_LINUX_THREADS
23772         pthread_kill_other_threads_np();
23773 #endif
23774
23775         return 0;
23776
23777 }
23778
23779 _ACEOF
23780 rm -f conftest$ac_exeext
23781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23782   (eval $ac_link) 2>&5
23783   ac_status=$?
23784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787   (eval $ac_try) 2>&5
23788   ac_status=$?
23789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790   (exit $ac_status); }; }; then
23791   ol_cv_pthread_lpthreads_lexc=yes
23792 else
23793   echo "$as_me: program exited with status $ac_status" >&5
23794 echo "$as_me: failed program was:" >&5
23795 sed 's/^/| /' conftest.$ac_ext >&5
23796
23797 ( exit $ac_status )
23798 ol_cv_pthread_lpthreads_lexc=no
23799 fi
23800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23801 fi
23802
23803                 # restore the LIBS
23804                 LIBS="$ol_LIBS"
23805
23806 fi
23807 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23808 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23809
23810         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23811                 ol_link_pthreads="-lpthreads -lexc"
23812                 ol_link_threads=posix
23813         fi
23814 fi
23815
23816
23817                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23818 if test "$ol_link_threads" = no ; then
23819         # try -lpthreads
23820         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23821 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23822 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23823   echo $ECHO_N "(cached) $ECHO_C" >&6
23824 else
23825
23826                 # save the flags
23827                 ol_LIBS="$LIBS"
23828                 LIBS="-lpthreads $LIBS"
23829
23830                 if test "$cross_compiling" = yes; then
23831   cat >conftest.$ac_ext <<_ACEOF
23832 /* confdefs.h.  */
23833 _ACEOF
23834 cat confdefs.h >>conftest.$ac_ext
23835 cat >>conftest.$ac_ext <<_ACEOF
23836 /* end confdefs.h.  */
23837
23838 /* pthread test headers */
23839 #include <pthread.h>
23840 #if HAVE_PTHREADS < 7
23841 #include <errno.h>
23842 #endif
23843 #ifndef NULL
23844 #define NULL (void*)0
23845 #endif
23846
23847 static void *task(p)
23848         void *p;
23849 {
23850         return (void *) (p == NULL);
23851 }
23852
23853 int
23854 main ()
23855 {
23856
23857         /* pthread test function */
23858 #ifndef PTHREAD_CREATE_DETACHED
23859 #define PTHREAD_CREATE_DETACHED 1
23860 #endif
23861         pthread_t t;
23862         int status;
23863         int detach = PTHREAD_CREATE_DETACHED;
23864
23865 #if HAVE_PTHREADS > 4
23866         /* Final pthreads */
23867         pthread_attr_t attr;
23868
23869         status = pthread_attr_init(&attr);
23870         if( status ) return status;
23871
23872 #if HAVE_PTHREADS < 7
23873         status = pthread_attr_setdetachstate(&attr, &detach);
23874         if( status < 0 ) status = errno;
23875 #else
23876         status = pthread_attr_setdetachstate(&attr, detach);
23877 #endif
23878         if( status ) return status;
23879         status = pthread_create( &t, &attr, task, NULL );
23880 #if HAVE_PTHREADS < 7
23881         if( status < 0 ) status = errno;
23882 #endif
23883         if( status ) return status;
23884 #else
23885         /* Draft 4 pthreads */
23886         status = pthread_create( &t, pthread_attr_default, task, NULL );
23887         if( status ) return errno;
23888
23889         /* give thread a chance to complete */
23890         /* it should remain joinable and hence detachable */
23891         sleep( 1 );
23892
23893         status = pthread_detach( &t );
23894         if( status ) return errno;
23895 #endif
23896
23897 #ifdef HAVE_LINUX_THREADS
23898         pthread_kill_other_threads_np();
23899 #endif
23900
23901         return 0;
23902
23903   ;
23904   return 0;
23905 }
23906 _ACEOF
23907 rm -f conftest.$ac_objext conftest$ac_exeext
23908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23909   (eval $ac_link) 2>conftest.er1
23910   ac_status=$?
23911   grep -v '^ *+' conftest.er1 >conftest.err
23912   rm -f conftest.er1
23913   cat conftest.err >&5
23914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915   (exit $ac_status); } &&
23916          { ac_try='test -z "$ac_c_werror_flag"
23917                          || test ! -s conftest.err'
23918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23919   (eval $ac_try) 2>&5
23920   ac_status=$?
23921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922   (exit $ac_status); }; } &&
23923          { ac_try='test -s conftest$ac_exeext'
23924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23925   (eval $ac_try) 2>&5
23926   ac_status=$?
23927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928   (exit $ac_status); }; }; then
23929   ol_cv_pthread_lib_lpthreads=yes
23930 else
23931   echo "$as_me: failed program was:" >&5
23932 sed 's/^/| /' conftest.$ac_ext >&5
23933
23934 ol_cv_pthread_lib_lpthreads=no
23935 fi
23936 rm -f conftest.err conftest.$ac_objext \
23937       conftest$ac_exeext conftest.$ac_ext
23938 else
23939   cat >conftest.$ac_ext <<_ACEOF
23940 /* confdefs.h.  */
23941 _ACEOF
23942 cat confdefs.h >>conftest.$ac_ext
23943 cat >>conftest.$ac_ext <<_ACEOF
23944 /* end confdefs.h.  */
23945
23946 /* pthread test headers */
23947 #include <pthread.h>
23948 #if HAVE_PTHREADS < 7
23949 #include <errno.h>
23950 #endif
23951 #ifndef NULL
23952 #define NULL (void*)0
23953 #endif
23954
23955 static void *task(p)
23956         void *p;
23957 {
23958         return (void *) (p == NULL);
23959 }
23960
23961
23962 int main(argc, argv)
23963         int argc;
23964         char **argv;
23965 {
23966
23967         /* pthread test function */
23968 #ifndef PTHREAD_CREATE_DETACHED
23969 #define PTHREAD_CREATE_DETACHED 1
23970 #endif
23971         pthread_t t;
23972         int status;
23973         int detach = PTHREAD_CREATE_DETACHED;
23974
23975 #if HAVE_PTHREADS > 4
23976         /* Final pthreads */
23977         pthread_attr_t attr;
23978
23979         status = pthread_attr_init(&attr);
23980         if( status ) return status;
23981
23982 #if HAVE_PTHREADS < 7
23983         status = pthread_attr_setdetachstate(&attr, &detach);
23984         if( status < 0 ) status = errno;
23985 #else
23986         status = pthread_attr_setdetachstate(&attr, detach);
23987 #endif
23988         if( status ) return status;
23989         status = pthread_create( &t, &attr, task, NULL );
23990 #if HAVE_PTHREADS < 7
23991         if( status < 0 ) status = errno;
23992 #endif
23993         if( status ) return status;
23994 #else
23995         /* Draft 4 pthreads */
23996         status = pthread_create( &t, pthread_attr_default, task, NULL );
23997         if( status ) return errno;
23998
23999         /* give thread a chance to complete */
24000         /* it should remain joinable and hence detachable */
24001         sleep( 1 );
24002
24003         status = pthread_detach( &t );
24004         if( status ) return errno;
24005 #endif
24006
24007 #ifdef HAVE_LINUX_THREADS
24008         pthread_kill_other_threads_np();
24009 #endif
24010
24011         return 0;
24012
24013 }
24014
24015 _ACEOF
24016 rm -f conftest$ac_exeext
24017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24018   (eval $ac_link) 2>&5
24019   ac_status=$?
24020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24023   (eval $ac_try) 2>&5
24024   ac_status=$?
24025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026   (exit $ac_status); }; }; then
24027   ol_cv_pthread_lib_lpthreads=yes
24028 else
24029   echo "$as_me: program exited with status $ac_status" >&5
24030 echo "$as_me: failed program was:" >&5
24031 sed 's/^/| /' conftest.$ac_ext >&5
24032
24033 ( exit $ac_status )
24034 ol_cv_pthread_lib_lpthreads=no
24035 fi
24036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24037 fi
24038
24039                 # restore the LIBS
24040                 LIBS="$ol_LIBS"
24041
24042 fi
24043 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24044 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24045
24046         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24047                 ol_link_pthreads="-lpthreads"
24048                 ol_link_threads=posix
24049         fi
24050 fi
24051
24052
24053                 if test $ol_link_threads != no ; then
24054                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24055
24056                                                 save_CPPFLAGS="$CPPFLAGS"
24057                         save_LIBS="$LIBS"
24058                         LIBS="$LTHREAD_LIBS $LIBS"
24059
24060
24061
24062
24063 for ac_func in sched_yield pthread_yield thr_yield
24064 do
24065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24066 echo "$as_me:$LINENO: checking for $ac_func" >&5
24067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24068 if eval "test \"\${$as_ac_var+set}\" = set"; then
24069   echo $ECHO_N "(cached) $ECHO_C" >&6
24070 else
24071   cat >conftest.$ac_ext <<_ACEOF
24072 /* confdefs.h.  */
24073 _ACEOF
24074 cat confdefs.h >>conftest.$ac_ext
24075 cat >>conftest.$ac_ext <<_ACEOF
24076 /* end confdefs.h.  */
24077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24079 #define $ac_func innocuous_$ac_func
24080
24081 /* System header to define __stub macros and hopefully few prototypes,
24082     which can conflict with char $ac_func (); below.
24083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24084     <limits.h> exists even on freestanding compilers.  */
24085
24086 #ifdef __STDC__
24087 # include <limits.h>
24088 #else
24089 # include <assert.h>
24090 #endif
24091
24092 #undef $ac_func
24093
24094 /* Override any gcc2 internal prototype to avoid an error.  */
24095 #ifdef __cplusplus
24096 extern "C"
24097 {
24098 #endif
24099 /* We use char because int might match the return type of a gcc2
24100    builtin and then its argument prototype would still apply.  */
24101 char $ac_func ();
24102 /* The GNU C library defines this for functions which it implements
24103     to always fail with ENOSYS.  Some functions are actually named
24104     something starting with __ and the normal name is an alias.  */
24105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24106 choke me
24107 #else
24108 char (*f) () = $ac_func;
24109 #endif
24110 #ifdef __cplusplus
24111 }
24112 #endif
24113
24114 int
24115 main ()
24116 {
24117 return f != $ac_func;
24118   ;
24119   return 0;
24120 }
24121 _ACEOF
24122 rm -f conftest.$ac_objext conftest$ac_exeext
24123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24124   (eval $ac_link) 2>conftest.er1
24125   ac_status=$?
24126   grep -v '^ *+' conftest.er1 >conftest.err
24127   rm -f conftest.er1
24128   cat conftest.err >&5
24129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130   (exit $ac_status); } &&
24131          { ac_try='test -z "$ac_c_werror_flag"
24132                          || test ! -s conftest.err'
24133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24134   (eval $ac_try) 2>&5
24135   ac_status=$?
24136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137   (exit $ac_status); }; } &&
24138          { ac_try='test -s conftest$ac_exeext'
24139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140   (eval $ac_try) 2>&5
24141   ac_status=$?
24142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143   (exit $ac_status); }; }; then
24144   eval "$as_ac_var=yes"
24145 else
24146   echo "$as_me: failed program was:" >&5
24147 sed 's/^/| /' conftest.$ac_ext >&5
24148
24149 eval "$as_ac_var=no"
24150 fi
24151 rm -f conftest.err conftest.$ac_objext \
24152       conftest$ac_exeext conftest.$ac_ext
24153 fi
24154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24156 if test `eval echo '${'$as_ac_var'}'` = yes; then
24157   cat >>confdefs.h <<_ACEOF
24158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24159 _ACEOF
24160
24161 fi
24162 done
24163
24164
24165                         if test $ac_cv_func_sched_yield = no &&
24166                            test $ac_cv_func_pthread_yield = no &&
24167                            test $ac_cv_func_thr_yield = no ; then
24168                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24169 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24170 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24171   echo $ECHO_N "(cached) $ECHO_C" >&6
24172 else
24173   ac_check_lib_save_LIBS=$LIBS
24174 LIBS="-lrt  $LIBS"
24175 cat >conftest.$ac_ext <<_ACEOF
24176 /* confdefs.h.  */
24177 _ACEOF
24178 cat confdefs.h >>conftest.$ac_ext
24179 cat >>conftest.$ac_ext <<_ACEOF
24180 /* end confdefs.h.  */
24181
24182 /* Override any gcc2 internal prototype to avoid an error.  */
24183 #ifdef __cplusplus
24184 extern "C"
24185 #endif
24186 /* We use char because int might match the return type of a gcc2
24187    builtin and then its argument prototype would still apply.  */
24188 char sched_yield ();
24189 int
24190 main ()
24191 {
24192 sched_yield ();
24193   ;
24194   return 0;
24195 }
24196 _ACEOF
24197 rm -f conftest.$ac_objext conftest$ac_exeext
24198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24199   (eval $ac_link) 2>conftest.er1
24200   ac_status=$?
24201   grep -v '^ *+' conftest.er1 >conftest.err
24202   rm -f conftest.er1
24203   cat conftest.err >&5
24204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205   (exit $ac_status); } &&
24206          { ac_try='test -z "$ac_c_werror_flag"
24207                          || test ! -s conftest.err'
24208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24209   (eval $ac_try) 2>&5
24210   ac_status=$?
24211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212   (exit $ac_status); }; } &&
24213          { ac_try='test -s conftest$ac_exeext'
24214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24215   (eval $ac_try) 2>&5
24216   ac_status=$?
24217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218   (exit $ac_status); }; }; then
24219   ac_cv_lib_rt_sched_yield=yes
24220 else
24221   echo "$as_me: failed program was:" >&5
24222 sed 's/^/| /' conftest.$ac_ext >&5
24223
24224 ac_cv_lib_rt_sched_yield=no
24225 fi
24226 rm -f conftest.err conftest.$ac_objext \
24227       conftest$ac_exeext conftest.$ac_ext
24228 LIBS=$ac_check_lib_save_LIBS
24229 fi
24230 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24231 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24232 if test $ac_cv_lib_rt_sched_yield = yes; then
24233   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24234
24235 cat >>confdefs.h <<\_ACEOF
24236 #define HAVE_SCHED_YIELD 1
24237 _ACEOF
24238
24239                                         ac_cv_func_sched_yield=yes
24240 else
24241   ac_cv_func_sched_yield=no
24242 fi
24243
24244                         fi
24245                         if test $ac_cv_func_sched_yield = no &&
24246                            test $ac_cv_func_pthread_yield = no &&
24247                            test "$ac_cv_func_thr_yield" = no ; then
24248                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24249 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24250                         fi
24251
24252
24253
24254 for ac_func in pthread_kill pthread_rwlock_destroy
24255 do
24256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24257 echo "$as_me:$LINENO: checking for $ac_func" >&5
24258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24259 if eval "test \"\${$as_ac_var+set}\" = set"; then
24260   echo $ECHO_N "(cached) $ECHO_C" >&6
24261 else
24262   cat >conftest.$ac_ext <<_ACEOF
24263 /* confdefs.h.  */
24264 _ACEOF
24265 cat confdefs.h >>conftest.$ac_ext
24266 cat >>conftest.$ac_ext <<_ACEOF
24267 /* end confdefs.h.  */
24268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24270 #define $ac_func innocuous_$ac_func
24271
24272 /* System header to define __stub macros and hopefully few prototypes,
24273     which can conflict with char $ac_func (); below.
24274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24275     <limits.h> exists even on freestanding compilers.  */
24276
24277 #ifdef __STDC__
24278 # include <limits.h>
24279 #else
24280 # include <assert.h>
24281 #endif
24282
24283 #undef $ac_func
24284
24285 /* Override any gcc2 internal prototype to avoid an error.  */
24286 #ifdef __cplusplus
24287 extern "C"
24288 {
24289 #endif
24290 /* We use char because int might match the return type of a gcc2
24291    builtin and then its argument prototype would still apply.  */
24292 char $ac_func ();
24293 /* The GNU C library defines this for functions which it implements
24294     to always fail with ENOSYS.  Some functions are actually named
24295     something starting with __ and the normal name is an alias.  */
24296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24297 choke me
24298 #else
24299 char (*f) () = $ac_func;
24300 #endif
24301 #ifdef __cplusplus
24302 }
24303 #endif
24304
24305 int
24306 main ()
24307 {
24308 return f != $ac_func;
24309   ;
24310   return 0;
24311 }
24312 _ACEOF
24313 rm -f conftest.$ac_objext conftest$ac_exeext
24314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24315   (eval $ac_link) 2>conftest.er1
24316   ac_status=$?
24317   grep -v '^ *+' conftest.er1 >conftest.err
24318   rm -f conftest.er1
24319   cat conftest.err >&5
24320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321   (exit $ac_status); } &&
24322          { ac_try='test -z "$ac_c_werror_flag"
24323                          || test ! -s conftest.err'
24324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24325   (eval $ac_try) 2>&5
24326   ac_status=$?
24327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328   (exit $ac_status); }; } &&
24329          { ac_try='test -s conftest$ac_exeext'
24330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24331   (eval $ac_try) 2>&5
24332   ac_status=$?
24333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334   (exit $ac_status); }; }; then
24335   eval "$as_ac_var=yes"
24336 else
24337   echo "$as_me: failed program was:" >&5
24338 sed 's/^/| /' conftest.$ac_ext >&5
24339
24340 eval "$as_ac_var=no"
24341 fi
24342 rm -f conftest.err conftest.$ac_objext \
24343       conftest$ac_exeext conftest.$ac_ext
24344 fi
24345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24347 if test `eval echo '${'$as_ac_var'}'` = yes; then
24348   cat >>confdefs.h <<_ACEOF
24349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24350 _ACEOF
24351
24352 fi
24353 done
24354
24355
24356                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24357 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24358 if test "${ol_cv_func_pthread_detach+set}" = set; then
24359   echo $ECHO_N "(cached) $ECHO_C" >&6
24360 else
24361
24362                                                                 cat >conftest.$ac_ext <<_ACEOF
24363 /* confdefs.h.  */
24364 _ACEOF
24365 cat confdefs.h >>conftest.$ac_ext
24366 cat >>conftest.$ac_ext <<_ACEOF
24367 /* end confdefs.h.  */
24368
24369 #include <pthread.h>
24370 #ifndef NULL
24371 #define NULL (void*)0
24372 #endif
24373
24374 int
24375 main ()
24376 {
24377 pthread_detach(NULL);
24378   ;
24379   return 0;
24380 }
24381 _ACEOF
24382 rm -f conftest.$ac_objext conftest$ac_exeext
24383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24384   (eval $ac_link) 2>conftest.er1
24385   ac_status=$?
24386   grep -v '^ *+' conftest.er1 >conftest.err
24387   rm -f conftest.er1
24388   cat conftest.err >&5
24389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390   (exit $ac_status); } &&
24391          { ac_try='test -z "$ac_c_werror_flag"
24392                          || test ! -s conftest.err'
24393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24394   (eval $ac_try) 2>&5
24395   ac_status=$?
24396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397   (exit $ac_status); }; } &&
24398          { ac_try='test -s conftest$ac_exeext'
24399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24400   (eval $ac_try) 2>&5
24401   ac_status=$?
24402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403   (exit $ac_status); }; }; then
24404   ol_cv_func_pthread_detach=yes
24405 else
24406   echo "$as_me: failed program was:" >&5
24407 sed 's/^/| /' conftest.$ac_ext >&5
24408
24409 ol_cv_func_pthread_detach=no
24410 fi
24411 rm -f conftest.err conftest.$ac_objext \
24412       conftest$ac_exeext conftest.$ac_ext
24413
24414 fi
24415 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24416 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24417
24418                         if test $ol_cv_func_pthread_detach = no ; then
24419                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24420 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24421    { (exit 1); exit 1; }; }
24422                         fi
24423
24424
24425 cat >>confdefs.h <<\_ACEOF
24426 #define HAVE_PTHREAD_DETACH 1
24427 _ACEOF
24428
24429
24430
24431
24432
24433
24434 for ac_func in \
24435                                 pthread_setconcurrency \
24436                                 pthread_getconcurrency \
24437                                 thr_setconcurrency \
24438                                 thr_getconcurrency \
24439
24440 do
24441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24442 echo "$as_me:$LINENO: checking for $ac_func" >&5
24443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24444 if eval "test \"\${$as_ac_var+set}\" = set"; then
24445   echo $ECHO_N "(cached) $ECHO_C" >&6
24446 else
24447   cat >conftest.$ac_ext <<_ACEOF
24448 /* confdefs.h.  */
24449 _ACEOF
24450 cat confdefs.h >>conftest.$ac_ext
24451 cat >>conftest.$ac_ext <<_ACEOF
24452 /* end confdefs.h.  */
24453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24455 #define $ac_func innocuous_$ac_func
24456
24457 /* System header to define __stub macros and hopefully few prototypes,
24458     which can conflict with char $ac_func (); below.
24459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24460     <limits.h> exists even on freestanding compilers.  */
24461
24462 #ifdef __STDC__
24463 # include <limits.h>
24464 #else
24465 # include <assert.h>
24466 #endif
24467
24468 #undef $ac_func
24469
24470 /* Override any gcc2 internal prototype to avoid an error.  */
24471 #ifdef __cplusplus
24472 extern "C"
24473 {
24474 #endif
24475 /* We use char because int might match the return type of a gcc2
24476    builtin and then its argument prototype would still apply.  */
24477 char $ac_func ();
24478 /* The GNU C library defines this for functions which it implements
24479     to always fail with ENOSYS.  Some functions are actually named
24480     something starting with __ and the normal name is an alias.  */
24481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24482 choke me
24483 #else
24484 char (*f) () = $ac_func;
24485 #endif
24486 #ifdef __cplusplus
24487 }
24488 #endif
24489
24490 int
24491 main ()
24492 {
24493 return f != $ac_func;
24494   ;
24495   return 0;
24496 }
24497 _ACEOF
24498 rm -f conftest.$ac_objext conftest$ac_exeext
24499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24500   (eval $ac_link) 2>conftest.er1
24501   ac_status=$?
24502   grep -v '^ *+' conftest.er1 >conftest.err
24503   rm -f conftest.er1
24504   cat conftest.err >&5
24505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506   (exit $ac_status); } &&
24507          { ac_try='test -z "$ac_c_werror_flag"
24508                          || test ! -s conftest.err'
24509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24510   (eval $ac_try) 2>&5
24511   ac_status=$?
24512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513   (exit $ac_status); }; } &&
24514          { ac_try='test -s conftest$ac_exeext'
24515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24516   (eval $ac_try) 2>&5
24517   ac_status=$?
24518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519   (exit $ac_status); }; }; then
24520   eval "$as_ac_var=yes"
24521 else
24522   echo "$as_me: failed program was:" >&5
24523 sed 's/^/| /' conftest.$ac_ext >&5
24524
24525 eval "$as_ac_var=no"
24526 fi
24527 rm -f conftest.err conftest.$ac_objext \
24528       conftest$ac_exeext conftest.$ac_ext
24529 fi
24530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24532 if test `eval echo '${'$as_ac_var'}'` = yes; then
24533   cat >>confdefs.h <<_ACEOF
24534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24535 _ACEOF
24536
24537 fi
24538 done
24539
24540
24541
24542
24543 for ac_func in pthread_kill_other_threads_np
24544 do
24545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24546 echo "$as_me:$LINENO: checking for $ac_func" >&5
24547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24548 if eval "test \"\${$as_ac_var+set}\" = set"; then
24549   echo $ECHO_N "(cached) $ECHO_C" >&6
24550 else
24551   cat >conftest.$ac_ext <<_ACEOF
24552 /* confdefs.h.  */
24553 _ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h.  */
24557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24559 #define $ac_func innocuous_$ac_func
24560
24561 /* System header to define __stub macros and hopefully few prototypes,
24562     which can conflict with char $ac_func (); below.
24563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24564     <limits.h> exists even on freestanding compilers.  */
24565
24566 #ifdef __STDC__
24567 # include <limits.h>
24568 #else
24569 # include <assert.h>
24570 #endif
24571
24572 #undef $ac_func
24573
24574 /* Override any gcc2 internal prototype to avoid an error.  */
24575 #ifdef __cplusplus
24576 extern "C"
24577 {
24578 #endif
24579 /* We use char because int might match the return type of a gcc2
24580    builtin and then its argument prototype would still apply.  */
24581 char $ac_func ();
24582 /* The GNU C library defines this for functions which it implements
24583     to always fail with ENOSYS.  Some functions are actually named
24584     something starting with __ and the normal name is an alias.  */
24585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24586 choke me
24587 #else
24588 char (*f) () = $ac_func;
24589 #endif
24590 #ifdef __cplusplus
24591 }
24592 #endif
24593
24594 int
24595 main ()
24596 {
24597 return f != $ac_func;
24598   ;
24599   return 0;
24600 }
24601 _ACEOF
24602 rm -f conftest.$ac_objext conftest$ac_exeext
24603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24604   (eval $ac_link) 2>conftest.er1
24605   ac_status=$?
24606   grep -v '^ *+' conftest.er1 >conftest.err
24607   rm -f conftest.er1
24608   cat conftest.err >&5
24609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610   (exit $ac_status); } &&
24611          { ac_try='test -z "$ac_c_werror_flag"
24612                          || test ! -s conftest.err'
24613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24614   (eval $ac_try) 2>&5
24615   ac_status=$?
24616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617   (exit $ac_status); }; } &&
24618          { ac_try='test -s conftest$ac_exeext'
24619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24620   (eval $ac_try) 2>&5
24621   ac_status=$?
24622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623   (exit $ac_status); }; }; then
24624   eval "$as_ac_var=yes"
24625 else
24626   echo "$as_me: failed program was:" >&5
24627 sed 's/^/| /' conftest.$ac_ext >&5
24628
24629 eval "$as_ac_var=no"
24630 fi
24631 rm -f conftest.err conftest.$ac_objext \
24632       conftest$ac_exeext conftest.$ac_ext
24633 fi
24634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24636 if test `eval echo '${'$as_ac_var'}'` = yes; then
24637   cat >>confdefs.h <<_ACEOF
24638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24639 _ACEOF
24640
24641 fi
24642 done
24643
24644         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24645 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24646 if test "${ol_cv_sys_linux_threads+set}" = set; then
24647   echo $ECHO_N "(cached) $ECHO_C" >&6
24648 else
24649   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24650 fi
24651 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24652 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24653
24654
24655
24656
24657         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24658 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24659 if test "${ol_cv_linux_threads+set}" = set; then
24660   echo $ECHO_N "(cached) $ECHO_C" >&6
24661 else
24662
24663                 if test $ol_cv_header_linux_threads = yes &&
24664                    test $ol_cv_sys_linux_threads = yes; then
24665                         ol_cv_linux_threads=yes
24666                 elif test $ol_cv_header_linux_threads = no &&
24667                      test $ol_cv_sys_linux_threads = no; then
24668                         ol_cv_linux_threads=no
24669                 else
24670                         ol_cv_linux_threads=error
24671                 fi
24672
24673 fi
24674 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24675 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24676
24677
24678                         if test $ol_cv_linux_threads = error; then
24679                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24680 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24681    { (exit 1); exit 1; }; };
24682                         fi
24683
24684                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24685 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24686 if test "${ol_cv_pthread_create_works+set}" = set; then
24687   echo $ECHO_N "(cached) $ECHO_C" >&6
24688 else
24689
24690                         if test "$cross_compiling" = yes; then
24691                                 ol_cv_pthread_create_works=yes
24692 else
24693   cat >conftest.$ac_ext <<_ACEOF
24694 /* confdefs.h.  */
24695 _ACEOF
24696 cat confdefs.h >>conftest.$ac_ext
24697 cat >>conftest.$ac_ext <<_ACEOF
24698 /* end confdefs.h.  */
24699
24700 /* pthread test headers */
24701 #include <pthread.h>
24702 #if HAVE_PTHREADS < 7
24703 #include <errno.h>
24704 #endif
24705 #ifndef NULL
24706 #define NULL (void*)0
24707 #endif
24708
24709 static void *task(p)
24710         void *p;
24711 {
24712         return (void *) (p == NULL);
24713 }
24714
24715
24716 int main(argc, argv)
24717         int argc;
24718         char **argv;
24719 {
24720
24721         /* pthread test function */
24722 #ifndef PTHREAD_CREATE_DETACHED
24723 #define PTHREAD_CREATE_DETACHED 1
24724 #endif
24725         pthread_t t;
24726         int status;
24727         int detach = PTHREAD_CREATE_DETACHED;
24728
24729 #if HAVE_PTHREADS > 4
24730         /* Final pthreads */
24731         pthread_attr_t attr;
24732
24733         status = pthread_attr_init(&attr);
24734         if( status ) return status;
24735
24736 #if HAVE_PTHREADS < 7
24737         status = pthread_attr_setdetachstate(&attr, &detach);
24738         if( status < 0 ) status = errno;
24739 #else
24740         status = pthread_attr_setdetachstate(&attr, detach);
24741 #endif
24742         if( status ) return status;
24743         status = pthread_create( &t, &attr, task, NULL );
24744 #if HAVE_PTHREADS < 7
24745         if( status < 0 ) status = errno;
24746 #endif
24747         if( status ) return status;
24748 #else
24749         /* Draft 4 pthreads */
24750         status = pthread_create( &t, pthread_attr_default, task, NULL );
24751         if( status ) return errno;
24752
24753         /* give thread a chance to complete */
24754         /* it should remain joinable and hence detachable */
24755         sleep( 1 );
24756
24757         status = pthread_detach( &t );
24758         if( status ) return errno;
24759 #endif
24760
24761 #ifdef HAVE_LINUX_THREADS
24762         pthread_kill_other_threads_np();
24763 #endif
24764
24765         return 0;
24766
24767 }
24768
24769 _ACEOF
24770 rm -f conftest$ac_exeext
24771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24772   (eval $ac_link) 2>&5
24773   ac_status=$?
24774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24777   (eval $ac_try) 2>&5
24778   ac_status=$?
24779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780   (exit $ac_status); }; }; then
24781   ol_cv_pthread_create_works=yes
24782 else
24783   echo "$as_me: program exited with status $ac_status" >&5
24784 echo "$as_me: failed program was:" >&5
24785 sed 's/^/| /' conftest.$ac_ext >&5
24786
24787 ( exit $ac_status )
24788 ol_cv_pthread_create_works=no
24789 fi
24790 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24791 fi
24792 fi
24793 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24794 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24795
24796                         if test $ol_cv_pthread_create_works = no ; then
24797                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24798 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24799    { (exit 1); exit 1; }; }
24800                         fi
24801
24802                         ol_replace_broken_yield=no
24803                         case "$target" in
24804                         *-*-linux*)
24805                                 ol_replace_broken_yield=yes
24806                         ;;
24807                         esac
24808
24809                         if test $ol_replace_broken_yield = yes ; then
24810
24811 cat >>confdefs.h <<\_ACEOF
24812 #define REPLACE_BROKEN_YIELD 1
24813 _ACEOF
24814
24815                         fi
24816
24817                                                 if test $ol_with_yielding_select = auto ; then
24818                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24819 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24820 if test "${ol_cv_pthread_select_yields+set}" = set; then
24821   echo $ECHO_N "(cached) $ECHO_C" >&6
24822 else
24823
24824                                 if test "$cross_compiling" = yes; then
24825   ol_cv_pthread_select_yields=cross
24826 else
24827   cat >conftest.$ac_ext <<_ACEOF
24828 /* confdefs.h.  */
24829 _ACEOF
24830 cat confdefs.h >>conftest.$ac_ext
24831 cat >>conftest.$ac_ext <<_ACEOF
24832 /* end confdefs.h.  */
24833
24834 #include <sys/types.h>
24835 #include <sys/time.h>
24836 #include <unistd.h>
24837 #include <pthread.h>
24838 #ifndef NULL
24839 #define NULL (void*) 0
24840 #endif
24841
24842 static int fildes[2];
24843
24844 static void *task(p)
24845         void *p;
24846 {
24847         int i;
24848         struct timeval tv;
24849
24850         fd_set rfds;
24851
24852         tv.tv_sec=10;
24853         tv.tv_usec=0;
24854
24855         FD_ZERO(&rfds);
24856         FD_SET(fildes[0], &rfds);
24857
24858         /* we're not interested in any fds */
24859         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24860
24861         if(i < 0) {
24862                 perror("select");
24863                 exit(10);
24864         }
24865
24866         exit(0); /* if we exit here, the select blocked the whole process */
24867 }
24868
24869 int main(argc, argv)
24870         int argc;
24871         char **argv;
24872 {
24873         pthread_t t;
24874
24875         /* create a pipe to select */
24876         if(pipe(&fildes[0])) {
24877                 perror("select");
24878                 exit(1);
24879         }
24880
24881 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24882         (void) pthread_setconcurrency(2);
24883 #else
24884 #ifdef HAVE_THR_SETCONCURRENCY
24885         /* Set Solaris LWP concurrency to 2 */
24886         thr_setconcurrency(2);
24887 #endif
24888 #endif
24889
24890 #if HAVE_PTHREADS < 6
24891         pthread_create(&t, pthread_attr_default, task, NULL);
24892 #else
24893         pthread_create(&t, NULL, task, NULL);
24894 #endif
24895
24896         /* make sure task runs first */
24897 #if HAVE_THR_YIELD
24898         thr_yield();
24899 #elif defined( HAVE_SCHED_YIELD )
24900         sched_yield();
24901 #elif defined( HAVE_PTHREAD_YIELD )
24902         pthread_yield();
24903 #endif
24904
24905         exit(2);
24906 }
24907 _ACEOF
24908 rm -f conftest$ac_exeext
24909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24910   (eval $ac_link) 2>&5
24911   ac_status=$?
24912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24915   (eval $ac_try) 2>&5
24916   ac_status=$?
24917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918   (exit $ac_status); }; }; then
24919   ol_cv_pthread_select_yields=no
24920 else
24921   echo "$as_me: program exited with status $ac_status" >&5
24922 echo "$as_me: failed program was:" >&5
24923 sed 's/^/| /' conftest.$ac_ext >&5
24924
24925 ( exit $ac_status )
24926 ol_cv_pthread_select_yields=yes
24927 fi
24928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24929 fi
24930 fi
24931 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24932 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24933
24934                                 if test $ol_cv_pthread_select_yields = cross ; then
24935                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24936 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24937    { (exit 1); exit 1; }; }
24938                                 fi
24939
24940                                 if test $ol_cv_pthread_select_yields = yes ; then
24941                                         ol_with_yielding_select=yes
24942                                 fi
24943                         fi
24944
24945                                                 CPPFLAGS="$save_CPPFLAGS"
24946                         LIBS="$save_LIBS"
24947                 else
24948                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24949 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24950    { (exit 1); exit 1; }; }
24951                 fi
24952         fi
24953
24954         if test $ol_with_threads = posix ; then
24955                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24956 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24957    { (exit 1); exit 1; }; }
24958         fi
24959         ;;
24960 esac
24961
24962 case $ol_with_threads in auto | yes | mach)
24963
24964
24965
24966 for ac_header in mach/cthreads.h cthreads.h
24967 do
24968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24970   echo "$as_me:$LINENO: checking for $ac_header" >&5
24971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24973   echo $ECHO_N "(cached) $ECHO_C" >&6
24974 fi
24975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24977 else
24978   # Is the header compilable?
24979 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24981 cat >conftest.$ac_ext <<_ACEOF
24982 /* confdefs.h.  */
24983 _ACEOF
24984 cat confdefs.h >>conftest.$ac_ext
24985 cat >>conftest.$ac_ext <<_ACEOF
24986 /* end confdefs.h.  */
24987 $ac_includes_default
24988 #include <$ac_header>
24989 _ACEOF
24990 rm -f conftest.$ac_objext
24991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24992   (eval $ac_compile) 2>conftest.er1
24993   ac_status=$?
24994   grep -v '^ *+' conftest.er1 >conftest.err
24995   rm -f conftest.er1
24996   cat conftest.err >&5
24997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998   (exit $ac_status); } &&
24999          { ac_try='test -z "$ac_c_werror_flag"
25000                          || test ! -s conftest.err'
25001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25002   (eval $ac_try) 2>&5
25003   ac_status=$?
25004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005   (exit $ac_status); }; } &&
25006          { ac_try='test -s conftest.$ac_objext'
25007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25008   (eval $ac_try) 2>&5
25009   ac_status=$?
25010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011   (exit $ac_status); }; }; then
25012   ac_header_compiler=yes
25013 else
25014   echo "$as_me: failed program was:" >&5
25015 sed 's/^/| /' conftest.$ac_ext >&5
25016
25017 ac_header_compiler=no
25018 fi
25019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25021 echo "${ECHO_T}$ac_header_compiler" >&6
25022
25023 # Is the header present?
25024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25026 cat >conftest.$ac_ext <<_ACEOF
25027 /* confdefs.h.  */
25028 _ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h.  */
25032 #include <$ac_header>
25033 _ACEOF
25034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25036   ac_status=$?
25037   grep -v '^ *+' conftest.er1 >conftest.err
25038   rm -f conftest.er1
25039   cat conftest.err >&5
25040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041   (exit $ac_status); } >/dev/null; then
25042   if test -s conftest.err; then
25043     ac_cpp_err=$ac_c_preproc_warn_flag
25044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25045   else
25046     ac_cpp_err=
25047   fi
25048 else
25049   ac_cpp_err=yes
25050 fi
25051 if test -z "$ac_cpp_err"; then
25052   ac_header_preproc=yes
25053 else
25054   echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25056
25057   ac_header_preproc=no
25058 fi
25059 rm -f conftest.err conftest.$ac_ext
25060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25061 echo "${ECHO_T}$ac_header_preproc" >&6
25062
25063 # So?  What about this header?
25064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25065   yes:no: )
25066     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25070     ac_header_preproc=yes
25071     ;;
25072   no:yes:* )
25073     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25075     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25076 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25077     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25079     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25080 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25083     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25085     (
25086       cat <<\_ASBOX
25087 ## ------------------------------------------ ##
25088 ## Report this to the AC_PACKAGE_NAME lists.  ##
25089 ## ------------------------------------------ ##
25090 _ASBOX
25091     ) |
25092       sed "s/^/$as_me: WARNING:     /" >&2
25093     ;;
25094 esac
25095 echo "$as_me:$LINENO: checking for $ac_header" >&5
25096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25098   echo $ECHO_N "(cached) $ECHO_C" >&6
25099 else
25100   eval "$as_ac_Header=\$ac_header_preproc"
25101 fi
25102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25104
25105 fi
25106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25107   cat >>confdefs.h <<_ACEOF
25108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25109 _ACEOF
25110
25111 fi
25112
25113 done
25114
25115         if test $ac_cv_header_mach_cthreads_h = yes ; then
25116                 ol_with_threads=found
25117
25118                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25119 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25120 if test "${ac_cv_func_cthread_fork+set}" = set; then
25121   echo $ECHO_N "(cached) $ECHO_C" >&6
25122 else
25123   cat >conftest.$ac_ext <<_ACEOF
25124 /* confdefs.h.  */
25125 _ACEOF
25126 cat confdefs.h >>conftest.$ac_ext
25127 cat >>conftest.$ac_ext <<_ACEOF
25128 /* end confdefs.h.  */
25129 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25131 #define cthread_fork innocuous_cthread_fork
25132
25133 /* System header to define __stub macros and hopefully few prototypes,
25134     which can conflict with char cthread_fork (); below.
25135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25136     <limits.h> exists even on freestanding compilers.  */
25137
25138 #ifdef __STDC__
25139 # include <limits.h>
25140 #else
25141 # include <assert.h>
25142 #endif
25143
25144 #undef cthread_fork
25145
25146 /* Override any gcc2 internal prototype to avoid an error.  */
25147 #ifdef __cplusplus
25148 extern "C"
25149 {
25150 #endif
25151 /* We use char because int might match the return type of a gcc2
25152    builtin and then its argument prototype would still apply.  */
25153 char cthread_fork ();
25154 /* The GNU C library defines this for functions which it implements
25155     to always fail with ENOSYS.  Some functions are actually named
25156     something starting with __ and the normal name is an alias.  */
25157 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25158 choke me
25159 #else
25160 char (*f) () = cthread_fork;
25161 #endif
25162 #ifdef __cplusplus
25163 }
25164 #endif
25165
25166 int
25167 main ()
25168 {
25169 return f != cthread_fork;
25170   ;
25171   return 0;
25172 }
25173 _ACEOF
25174 rm -f conftest.$ac_objext conftest$ac_exeext
25175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25176   (eval $ac_link) 2>conftest.er1
25177   ac_status=$?
25178   grep -v '^ *+' conftest.er1 >conftest.err
25179   rm -f conftest.er1
25180   cat conftest.err >&5
25181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182   (exit $ac_status); } &&
25183          { ac_try='test -z "$ac_c_werror_flag"
25184                          || test ! -s conftest.err'
25185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186   (eval $ac_try) 2>&5
25187   ac_status=$?
25188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189   (exit $ac_status); }; } &&
25190          { ac_try='test -s conftest$ac_exeext'
25191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25192   (eval $ac_try) 2>&5
25193   ac_status=$?
25194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195   (exit $ac_status); }; }; then
25196   ac_cv_func_cthread_fork=yes
25197 else
25198   echo "$as_me: failed program was:" >&5
25199 sed 's/^/| /' conftest.$ac_ext >&5
25200
25201 ac_cv_func_cthread_fork=no
25202 fi
25203 rm -f conftest.err conftest.$ac_objext \
25204       conftest$ac_exeext conftest.$ac_ext
25205 fi
25206 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25207 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25208 if test $ac_cv_func_cthread_fork = yes; then
25209   ol_link_threads=yes
25210 fi
25211
25212
25213                 if test $ol_link_threads = no ; then
25214                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25215 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25216 if test "${ol_cv_cthread_all_load+set}" = set; then
25217   echo $ECHO_N "(cached) $ECHO_C" >&6
25218 else
25219
25220                                                                 save_LIBS="$LIBS"
25221                                 LIBS="-all_load $LIBS"
25222                                 cat >conftest.$ac_ext <<_ACEOF
25223 /* confdefs.h.  */
25224 _ACEOF
25225 cat confdefs.h >>conftest.$ac_ext
25226 cat >>conftest.$ac_ext <<_ACEOF
25227 /* end confdefs.h.  */
25228 #include <mach/cthreads.h>
25229 int
25230 main ()
25231 {
25232
25233                                         cthread_fork((void *)0, (void *)0);
25234
25235   ;
25236   return 0;
25237 }
25238 _ACEOF
25239 rm -f conftest.$ac_objext conftest$ac_exeext
25240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25241   (eval $ac_link) 2>conftest.er1
25242   ac_status=$?
25243   grep -v '^ *+' conftest.er1 >conftest.err
25244   rm -f conftest.er1
25245   cat conftest.err >&5
25246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247   (exit $ac_status); } &&
25248          { ac_try='test -z "$ac_c_werror_flag"
25249                          || test ! -s conftest.err'
25250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25251   (eval $ac_try) 2>&5
25252   ac_status=$?
25253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254   (exit $ac_status); }; } &&
25255          { ac_try='test -s conftest$ac_exeext'
25256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25257   (eval $ac_try) 2>&5
25258   ac_status=$?
25259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260   (exit $ac_status); }; }; then
25261   ol_cv_cthread_all_load=yes
25262 else
25263   echo "$as_me: failed program was:" >&5
25264 sed 's/^/| /' conftest.$ac_ext >&5
25265
25266 ol_cv_cthread_all_load=no
25267 fi
25268 rm -f conftest.err conftest.$ac_objext \
25269       conftest$ac_exeext conftest.$ac_ext
25270                                                                 LIBS="$save_LIBS"
25271
25272 fi
25273 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25274 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25275
25276                         if test $ol_cv_cthread_all_load = yes ; then
25277                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25278                                 ol_link_threads=mach
25279                                 ol_with_threads=found
25280                         fi
25281                 fi
25282
25283         elif test $ac_cv_header_cthreads_h = yes ; then
25284
25285                 ol_with_threads=found
25286
25287                                 save_LIBS="$LIBS"
25288                 LIBS="$LIBS -lthreads"
25289                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25290 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25291 if test "${ac_cv_func_cthread_fork+set}" = set; then
25292   echo $ECHO_N "(cached) $ECHO_C" >&6
25293 else
25294   cat >conftest.$ac_ext <<_ACEOF
25295 /* confdefs.h.  */
25296 _ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h.  */
25300 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25302 #define cthread_fork innocuous_cthread_fork
25303
25304 /* System header to define __stub macros and hopefully few prototypes,
25305     which can conflict with char cthread_fork (); below.
25306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25307     <limits.h> exists even on freestanding compilers.  */
25308
25309 #ifdef __STDC__
25310 # include <limits.h>
25311 #else
25312 # include <assert.h>
25313 #endif
25314
25315 #undef cthread_fork
25316
25317 /* Override any gcc2 internal prototype to avoid an error.  */
25318 #ifdef __cplusplus
25319 extern "C"
25320 {
25321 #endif
25322 /* We use char because int might match the return type of a gcc2
25323    builtin and then its argument prototype would still apply.  */
25324 char cthread_fork ();
25325 /* The GNU C library defines this for functions which it implements
25326     to always fail with ENOSYS.  Some functions are actually named
25327     something starting with __ and the normal name is an alias.  */
25328 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25329 choke me
25330 #else
25331 char (*f) () = cthread_fork;
25332 #endif
25333 #ifdef __cplusplus
25334 }
25335 #endif
25336
25337 int
25338 main ()
25339 {
25340 return f != cthread_fork;
25341   ;
25342   return 0;
25343 }
25344 _ACEOF
25345 rm -f conftest.$ac_objext conftest$ac_exeext
25346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25347   (eval $ac_link) 2>conftest.er1
25348   ac_status=$?
25349   grep -v '^ *+' conftest.er1 >conftest.err
25350   rm -f conftest.er1
25351   cat conftest.err >&5
25352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353   (exit $ac_status); } &&
25354          { ac_try='test -z "$ac_c_werror_flag"
25355                          || test ! -s conftest.err'
25356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25357   (eval $ac_try) 2>&5
25358   ac_status=$?
25359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360   (exit $ac_status); }; } &&
25361          { ac_try='test -s conftest$ac_exeext'
25362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25363   (eval $ac_try) 2>&5
25364   ac_status=$?
25365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366   (exit $ac_status); }; }; then
25367   ac_cv_func_cthread_fork=yes
25368 else
25369   echo "$as_me: failed program was:" >&5
25370 sed 's/^/| /' conftest.$ac_ext >&5
25371
25372 ac_cv_func_cthread_fork=no
25373 fi
25374 rm -f conftest.err conftest.$ac_objext \
25375       conftest$ac_exeext conftest.$ac_ext
25376 fi
25377 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25378 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25379 if test $ac_cv_func_cthread_fork = yes; then
25380   ol_link_threads=yes
25381 fi
25382
25383                 LIBS="$save_LIBS"
25384
25385                 if test $ol_link_threads = yes ; then
25386                         LTHREAD_LIBS="-lthreads"
25387                         ol_link_threads=mach
25388                         ol_with_threads=found
25389                 else
25390                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25391 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25392    { (exit 1); exit 1; }; }
25393                 fi
25394
25395         elif test $ol_with_threads = mach ; then
25396                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25397 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25398    { (exit 1); exit 1; }; }
25399         fi
25400
25401         if test $ol_link_threads = mach ; then
25402
25403 cat >>confdefs.h <<\_ACEOF
25404 #define HAVE_MACH_CTHREADS 1
25405 _ACEOF
25406
25407         elif test $ol_with_threads = found ; then
25408                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25409 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25410    { (exit 1); exit 1; }; }
25411         fi
25412         ;;
25413 esac
25414
25415 case $ol_with_threads in auto | yes | pth)
25416
25417
25418 for ac_header in pth.h
25419 do
25420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25422   echo "$as_me:$LINENO: checking for $ac_header" >&5
25423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25425   echo $ECHO_N "(cached) $ECHO_C" >&6
25426 fi
25427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25429 else
25430   # Is the header compilable?
25431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25433 cat >conftest.$ac_ext <<_ACEOF
25434 /* confdefs.h.  */
25435 _ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h.  */
25439 $ac_includes_default
25440 #include <$ac_header>
25441 _ACEOF
25442 rm -f conftest.$ac_objext
25443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25444   (eval $ac_compile) 2>conftest.er1
25445   ac_status=$?
25446   grep -v '^ *+' conftest.er1 >conftest.err
25447   rm -f conftest.er1
25448   cat conftest.err >&5
25449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450   (exit $ac_status); } &&
25451          { ac_try='test -z "$ac_c_werror_flag"
25452                          || test ! -s conftest.err'
25453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25454   (eval $ac_try) 2>&5
25455   ac_status=$?
25456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457   (exit $ac_status); }; } &&
25458          { ac_try='test -s conftest.$ac_objext'
25459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460   (eval $ac_try) 2>&5
25461   ac_status=$?
25462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463   (exit $ac_status); }; }; then
25464   ac_header_compiler=yes
25465 else
25466   echo "$as_me: failed program was:" >&5
25467 sed 's/^/| /' conftest.$ac_ext >&5
25468
25469 ac_header_compiler=no
25470 fi
25471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25473 echo "${ECHO_T}$ac_header_compiler" >&6
25474
25475 # Is the header present?
25476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25478 cat >conftest.$ac_ext <<_ACEOF
25479 /* confdefs.h.  */
25480 _ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h.  */
25484 #include <$ac_header>
25485 _ACEOF
25486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25487   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25488   ac_status=$?
25489   grep -v '^ *+' conftest.er1 >conftest.err
25490   rm -f conftest.er1
25491   cat conftest.err >&5
25492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493   (exit $ac_status); } >/dev/null; then
25494   if test -s conftest.err; then
25495     ac_cpp_err=$ac_c_preproc_warn_flag
25496     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25497   else
25498     ac_cpp_err=
25499   fi
25500 else
25501   ac_cpp_err=yes
25502 fi
25503 if test -z "$ac_cpp_err"; then
25504   ac_header_preproc=yes
25505 else
25506   echo "$as_me: failed program was:" >&5
25507 sed 's/^/| /' conftest.$ac_ext >&5
25508
25509   ac_header_preproc=no
25510 fi
25511 rm -f conftest.err conftest.$ac_ext
25512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25513 echo "${ECHO_T}$ac_header_preproc" >&6
25514
25515 # So?  What about this header?
25516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25517   yes:no: )
25518     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25522     ac_header_preproc=yes
25523     ;;
25524   no:yes:* )
25525     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25527     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25528 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25529     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25531     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25532 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25535     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25537     (
25538       cat <<\_ASBOX
25539 ## ------------------------------------------ ##
25540 ## Report this to the AC_PACKAGE_NAME lists.  ##
25541 ## ------------------------------------------ ##
25542 _ASBOX
25543     ) |
25544       sed "s/^/$as_me: WARNING:     /" >&2
25545     ;;
25546 esac
25547 echo "$as_me:$LINENO: checking for $ac_header" >&5
25548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25550   echo $ECHO_N "(cached) $ECHO_C" >&6
25551 else
25552   eval "$as_ac_Header=\$ac_header_preproc"
25553 fi
25554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25556
25557 fi
25558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25559   cat >>confdefs.h <<_ACEOF
25560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25561 _ACEOF
25562
25563 fi
25564
25565 done
25566
25567
25568         if test $ac_cv_header_pth_h = yes ; then
25569                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25570 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25571 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25572   echo $ECHO_N "(cached) $ECHO_C" >&6
25573 else
25574   ac_check_lib_save_LIBS=$LIBS
25575 LIBS="-lpth  $LIBS"
25576 cat >conftest.$ac_ext <<_ACEOF
25577 /* confdefs.h.  */
25578 _ACEOF
25579 cat confdefs.h >>conftest.$ac_ext
25580 cat >>conftest.$ac_ext <<_ACEOF
25581 /* end confdefs.h.  */
25582
25583 /* Override any gcc2 internal prototype to avoid an error.  */
25584 #ifdef __cplusplus
25585 extern "C"
25586 #endif
25587 /* We use char because int might match the return type of a gcc2
25588    builtin and then its argument prototype would still apply.  */
25589 char pth_version ();
25590 int
25591 main ()
25592 {
25593 pth_version ();
25594   ;
25595   return 0;
25596 }
25597 _ACEOF
25598 rm -f conftest.$ac_objext conftest$ac_exeext
25599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25600   (eval $ac_link) 2>conftest.er1
25601   ac_status=$?
25602   grep -v '^ *+' conftest.er1 >conftest.err
25603   rm -f conftest.er1
25604   cat conftest.err >&5
25605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606   (exit $ac_status); } &&
25607          { ac_try='test -z "$ac_c_werror_flag"
25608                          || test ! -s conftest.err'
25609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25610   (eval $ac_try) 2>&5
25611   ac_status=$?
25612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613   (exit $ac_status); }; } &&
25614          { ac_try='test -s conftest$ac_exeext'
25615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25616   (eval $ac_try) 2>&5
25617   ac_status=$?
25618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619   (exit $ac_status); }; }; then
25620   ac_cv_lib_pth_pth_version=yes
25621 else
25622   echo "$as_me: failed program was:" >&5
25623 sed 's/^/| /' conftest.$ac_ext >&5
25624
25625 ac_cv_lib_pth_pth_version=no
25626 fi
25627 rm -f conftest.err conftest.$ac_objext \
25628       conftest$ac_exeext conftest.$ac_ext
25629 LIBS=$ac_check_lib_save_LIBS
25630 fi
25631 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25632 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25633 if test $ac_cv_lib_pth_pth_version = yes; then
25634   have_pth=yes
25635 else
25636   have_pth=no
25637 fi
25638
25639
25640                 if test $have_pth = yes ; then
25641
25642 cat >>confdefs.h <<\_ACEOF
25643 #define HAVE_GNU_PTH 1
25644 _ACEOF
25645
25646                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25647                         ol_link_threads=pth
25648                         ol_with_threads=found
25649
25650                         if test $ol_with_yielding_select = auto ; then
25651                                 ol_with_yielding_select=yes
25652                         fi
25653                 fi
25654         fi
25655         ;;
25656 esac
25657
25658 case $ol_with_threads in auto | yes | lwp)
25659
25660
25661
25662 for ac_header in thread.h synch.h
25663 do
25664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25666   echo "$as_me:$LINENO: checking for $ac_header" >&5
25667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25669   echo $ECHO_N "(cached) $ECHO_C" >&6
25670 fi
25671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25673 else
25674   # Is the header compilable?
25675 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25677 cat >conftest.$ac_ext <<_ACEOF
25678 /* confdefs.h.  */
25679 _ACEOF
25680 cat confdefs.h >>conftest.$ac_ext
25681 cat >>conftest.$ac_ext <<_ACEOF
25682 /* end confdefs.h.  */
25683 $ac_includes_default
25684 #include <$ac_header>
25685 _ACEOF
25686 rm -f conftest.$ac_objext
25687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25688   (eval $ac_compile) 2>conftest.er1
25689   ac_status=$?
25690   grep -v '^ *+' conftest.er1 >conftest.err
25691   rm -f conftest.er1
25692   cat conftest.err >&5
25693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694   (exit $ac_status); } &&
25695          { ac_try='test -z "$ac_c_werror_flag"
25696                          || test ! -s conftest.err'
25697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698   (eval $ac_try) 2>&5
25699   ac_status=$?
25700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701   (exit $ac_status); }; } &&
25702          { ac_try='test -s conftest.$ac_objext'
25703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25704   (eval $ac_try) 2>&5
25705   ac_status=$?
25706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707   (exit $ac_status); }; }; then
25708   ac_header_compiler=yes
25709 else
25710   echo "$as_me: failed program was:" >&5
25711 sed 's/^/| /' conftest.$ac_ext >&5
25712
25713 ac_header_compiler=no
25714 fi
25715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25716 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25717 echo "${ECHO_T}$ac_header_compiler" >&6
25718
25719 # Is the header present?
25720 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25722 cat >conftest.$ac_ext <<_ACEOF
25723 /* confdefs.h.  */
25724 _ACEOF
25725 cat confdefs.h >>conftest.$ac_ext
25726 cat >>conftest.$ac_ext <<_ACEOF
25727 /* end confdefs.h.  */
25728 #include <$ac_header>
25729 _ACEOF
25730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25731   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25732   ac_status=$?
25733   grep -v '^ *+' conftest.er1 >conftest.err
25734   rm -f conftest.er1
25735   cat conftest.err >&5
25736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737   (exit $ac_status); } >/dev/null; then
25738   if test -s conftest.err; then
25739     ac_cpp_err=$ac_c_preproc_warn_flag
25740     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25741   else
25742     ac_cpp_err=
25743   fi
25744 else
25745   ac_cpp_err=yes
25746 fi
25747 if test -z "$ac_cpp_err"; then
25748   ac_header_preproc=yes
25749 else
25750   echo "$as_me: failed program was:" >&5
25751 sed 's/^/| /' conftest.$ac_ext >&5
25752
25753   ac_header_preproc=no
25754 fi
25755 rm -f conftest.err conftest.$ac_ext
25756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25757 echo "${ECHO_T}$ac_header_preproc" >&6
25758
25759 # So?  What about this header?
25760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25761   yes:no: )
25762     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25766     ac_header_preproc=yes
25767     ;;
25768   no:yes:* )
25769     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25771     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25772 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25773     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25775     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25776 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25779     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25781     (
25782       cat <<\_ASBOX
25783 ## ------------------------------------------ ##
25784 ## Report this to the AC_PACKAGE_NAME lists.  ##
25785 ## ------------------------------------------ ##
25786 _ASBOX
25787     ) |
25788       sed "s/^/$as_me: WARNING:     /" >&2
25789     ;;
25790 esac
25791 echo "$as_me:$LINENO: checking for $ac_header" >&5
25792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25794   echo $ECHO_N "(cached) $ECHO_C" >&6
25795 else
25796   eval "$as_ac_Header=\$ac_header_preproc"
25797 fi
25798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25800
25801 fi
25802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25803   cat >>confdefs.h <<_ACEOF
25804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25805 _ACEOF
25806
25807 fi
25808
25809 done
25810
25811         if test $ac_cv_header_thread_h = yes &&
25812            test $ac_cv_header_synch_h = yes ; then
25813                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25814 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25815 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25816   echo $ECHO_N "(cached) $ECHO_C" >&6
25817 else
25818   ac_check_lib_save_LIBS=$LIBS
25819 LIBS="-lthread  $LIBS"
25820 cat >conftest.$ac_ext <<_ACEOF
25821 /* confdefs.h.  */
25822 _ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h.  */
25826
25827 /* Override any gcc2 internal prototype to avoid an error.  */
25828 #ifdef __cplusplus
25829 extern "C"
25830 #endif
25831 /* We use char because int might match the return type of a gcc2
25832    builtin and then its argument prototype would still apply.  */
25833 char thr_create ();
25834 int
25835 main ()
25836 {
25837 thr_create ();
25838   ;
25839   return 0;
25840 }
25841 _ACEOF
25842 rm -f conftest.$ac_objext conftest$ac_exeext
25843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25844   (eval $ac_link) 2>conftest.er1
25845   ac_status=$?
25846   grep -v '^ *+' conftest.er1 >conftest.err
25847   rm -f conftest.er1
25848   cat conftest.err >&5
25849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850   (exit $ac_status); } &&
25851          { ac_try='test -z "$ac_c_werror_flag"
25852                          || test ! -s conftest.err'
25853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854   (eval $ac_try) 2>&5
25855   ac_status=$?
25856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857   (exit $ac_status); }; } &&
25858          { ac_try='test -s conftest$ac_exeext'
25859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25860   (eval $ac_try) 2>&5
25861   ac_status=$?
25862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863   (exit $ac_status); }; }; then
25864   ac_cv_lib_thread_thr_create=yes
25865 else
25866   echo "$as_me: failed program was:" >&5
25867 sed 's/^/| /' conftest.$ac_ext >&5
25868
25869 ac_cv_lib_thread_thr_create=no
25870 fi
25871 rm -f conftest.err conftest.$ac_objext \
25872       conftest$ac_exeext conftest.$ac_ext
25873 LIBS=$ac_check_lib_save_LIBS
25874 fi
25875 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25876 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25877 if test $ac_cv_lib_thread_thr_create = yes; then
25878   have_thr=yes
25879 else
25880   have_thr=no
25881 fi
25882
25883
25884                 if test $have_thr = yes ; then
25885
25886 cat >>confdefs.h <<\_ACEOF
25887 #define HAVE_THR 1
25888 _ACEOF
25889
25890                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25891                         ol_link_threads=thr
25892
25893                         if test $ol_with_yielding_select = auto ; then
25894                                 ol_with_yielding_select=yes
25895                         fi
25896
25897
25898
25899 for ac_func in \
25900                                 thr_setconcurrency \
25901                                 thr_getconcurrency \
25902
25903 do
25904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25905 echo "$as_me:$LINENO: checking for $ac_func" >&5
25906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25907 if eval "test \"\${$as_ac_var+set}\" = set"; then
25908   echo $ECHO_N "(cached) $ECHO_C" >&6
25909 else
25910   cat >conftest.$ac_ext <<_ACEOF
25911 /* confdefs.h.  */
25912 _ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h.  */
25916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25917    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25918 #define $ac_func innocuous_$ac_func
25919
25920 /* System header to define __stub macros and hopefully few prototypes,
25921     which can conflict with char $ac_func (); below.
25922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25923     <limits.h> exists even on freestanding compilers.  */
25924
25925 #ifdef __STDC__
25926 # include <limits.h>
25927 #else
25928 # include <assert.h>
25929 #endif
25930
25931 #undef $ac_func
25932
25933 /* Override any gcc2 internal prototype to avoid an error.  */
25934 #ifdef __cplusplus
25935 extern "C"
25936 {
25937 #endif
25938 /* We use char because int might match the return type of a gcc2
25939    builtin and then its argument prototype would still apply.  */
25940 char $ac_func ();
25941 /* The GNU C library defines this for functions which it implements
25942     to always fail with ENOSYS.  Some functions are actually named
25943     something starting with __ and the normal name is an alias.  */
25944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25945 choke me
25946 #else
25947 char (*f) () = $ac_func;
25948 #endif
25949 #ifdef __cplusplus
25950 }
25951 #endif
25952
25953 int
25954 main ()
25955 {
25956 return f != $ac_func;
25957   ;
25958   return 0;
25959 }
25960 _ACEOF
25961 rm -f conftest.$ac_objext conftest$ac_exeext
25962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25963   (eval $ac_link) 2>conftest.er1
25964   ac_status=$?
25965   grep -v '^ *+' conftest.er1 >conftest.err
25966   rm -f conftest.er1
25967   cat conftest.err >&5
25968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969   (exit $ac_status); } &&
25970          { ac_try='test -z "$ac_c_werror_flag"
25971                          || test ! -s conftest.err'
25972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973   (eval $ac_try) 2>&5
25974   ac_status=$?
25975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976   (exit $ac_status); }; } &&
25977          { ac_try='test -s conftest$ac_exeext'
25978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25979   (eval $ac_try) 2>&5
25980   ac_status=$?
25981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982   (exit $ac_status); }; }; then
25983   eval "$as_ac_var=yes"
25984 else
25985   echo "$as_me: failed program was:" >&5
25986 sed 's/^/| /' conftest.$ac_ext >&5
25987
25988 eval "$as_ac_var=no"
25989 fi
25990 rm -f conftest.err conftest.$ac_objext \
25991       conftest$ac_exeext conftest.$ac_ext
25992 fi
25993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25995 if test `eval echo '${'$as_ac_var'}'` = yes; then
25996   cat >>confdefs.h <<_ACEOF
25997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25998 _ACEOF
25999
26000 fi
26001 done
26002
26003                 fi
26004         fi
26005
26006
26007 for ac_header in lwp/lwp.h
26008 do
26009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26011   echo "$as_me:$LINENO: checking for $ac_header" >&5
26012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26014   echo $ECHO_N "(cached) $ECHO_C" >&6
26015 fi
26016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26018 else
26019   # Is the header compilable?
26020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26022 cat >conftest.$ac_ext <<_ACEOF
26023 /* confdefs.h.  */
26024 _ACEOF
26025 cat confdefs.h >>conftest.$ac_ext
26026 cat >>conftest.$ac_ext <<_ACEOF
26027 /* end confdefs.h.  */
26028 $ac_includes_default
26029 #include <$ac_header>
26030 _ACEOF
26031 rm -f conftest.$ac_objext
26032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26033   (eval $ac_compile) 2>conftest.er1
26034   ac_status=$?
26035   grep -v '^ *+' conftest.er1 >conftest.err
26036   rm -f conftest.er1
26037   cat conftest.err >&5
26038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039   (exit $ac_status); } &&
26040          { ac_try='test -z "$ac_c_werror_flag"
26041                          || test ! -s conftest.err'
26042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26043   (eval $ac_try) 2>&5
26044   ac_status=$?
26045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046   (exit $ac_status); }; } &&
26047          { ac_try='test -s conftest.$ac_objext'
26048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26049   (eval $ac_try) 2>&5
26050   ac_status=$?
26051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052   (exit $ac_status); }; }; then
26053   ac_header_compiler=yes
26054 else
26055   echo "$as_me: failed program was:" >&5
26056 sed 's/^/| /' conftest.$ac_ext >&5
26057
26058 ac_header_compiler=no
26059 fi
26060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26062 echo "${ECHO_T}$ac_header_compiler" >&6
26063
26064 # Is the header present?
26065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26067 cat >conftest.$ac_ext <<_ACEOF
26068 /* confdefs.h.  */
26069 _ACEOF
26070 cat confdefs.h >>conftest.$ac_ext
26071 cat >>conftest.$ac_ext <<_ACEOF
26072 /* end confdefs.h.  */
26073 #include <$ac_header>
26074 _ACEOF
26075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26077   ac_status=$?
26078   grep -v '^ *+' conftest.er1 >conftest.err
26079   rm -f conftest.er1
26080   cat conftest.err >&5
26081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26082   (exit $ac_status); } >/dev/null; then
26083   if test -s conftest.err; then
26084     ac_cpp_err=$ac_c_preproc_warn_flag
26085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26086   else
26087     ac_cpp_err=
26088   fi
26089 else
26090   ac_cpp_err=yes
26091 fi
26092 if test -z "$ac_cpp_err"; then
26093   ac_header_preproc=yes
26094 else
26095   echo "$as_me: failed program was:" >&5
26096 sed 's/^/| /' conftest.$ac_ext >&5
26097
26098   ac_header_preproc=no
26099 fi
26100 rm -f conftest.err conftest.$ac_ext
26101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26102 echo "${ECHO_T}$ac_header_preproc" >&6
26103
26104 # So?  What about this header?
26105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26106   yes:no: )
26107     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26111     ac_header_preproc=yes
26112     ;;
26113   no:yes:* )
26114     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26116     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26117 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26118     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26120     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26121 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26124     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26126     (
26127       cat <<\_ASBOX
26128 ## ------------------------------------------ ##
26129 ## Report this to the AC_PACKAGE_NAME lists.  ##
26130 ## ------------------------------------------ ##
26131 _ASBOX
26132     ) |
26133       sed "s/^/$as_me: WARNING:     /" >&2
26134     ;;
26135 esac
26136 echo "$as_me:$LINENO: checking for $ac_header" >&5
26137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26139   echo $ECHO_N "(cached) $ECHO_C" >&6
26140 else
26141   eval "$as_ac_Header=\$ac_header_preproc"
26142 fi
26143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26145
26146 fi
26147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26148   cat >>confdefs.h <<_ACEOF
26149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26150 _ACEOF
26151
26152 fi
26153
26154 done
26155
26156         if test $ac_cv_header_lwp_lwp_h = yes ; then
26157                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26158 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26159 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26160   echo $ECHO_N "(cached) $ECHO_C" >&6
26161 else
26162   ac_check_lib_save_LIBS=$LIBS
26163 LIBS="-llwp  $LIBS"
26164 cat >conftest.$ac_ext <<_ACEOF
26165 /* confdefs.h.  */
26166 _ACEOF
26167 cat confdefs.h >>conftest.$ac_ext
26168 cat >>conftest.$ac_ext <<_ACEOF
26169 /* end confdefs.h.  */
26170
26171 /* Override any gcc2 internal prototype to avoid an error.  */
26172 #ifdef __cplusplus
26173 extern "C"
26174 #endif
26175 /* We use char because int might match the return type of a gcc2
26176    builtin and then its argument prototype would still apply.  */
26177 char lwp_create ();
26178 int
26179 main ()
26180 {
26181 lwp_create ();
26182   ;
26183   return 0;
26184 }
26185 _ACEOF
26186 rm -f conftest.$ac_objext conftest$ac_exeext
26187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26188   (eval $ac_link) 2>conftest.er1
26189   ac_status=$?
26190   grep -v '^ *+' conftest.er1 >conftest.err
26191   rm -f conftest.er1
26192   cat conftest.err >&5
26193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194   (exit $ac_status); } &&
26195          { ac_try='test -z "$ac_c_werror_flag"
26196                          || test ! -s conftest.err'
26197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26198   (eval $ac_try) 2>&5
26199   ac_status=$?
26200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201   (exit $ac_status); }; } &&
26202          { ac_try='test -s conftest$ac_exeext'
26203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26204   (eval $ac_try) 2>&5
26205   ac_status=$?
26206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207   (exit $ac_status); }; }; then
26208   ac_cv_lib_lwp_lwp_create=yes
26209 else
26210   echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26212
26213 ac_cv_lib_lwp_lwp_create=no
26214 fi
26215 rm -f conftest.err conftest.$ac_objext \
26216       conftest$ac_exeext conftest.$ac_ext
26217 LIBS=$ac_check_lib_save_LIBS
26218 fi
26219 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26220 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26221 if test $ac_cv_lib_lwp_lwp_create = yes; then
26222   have_lwp=yes
26223 else
26224   have_lwp=no
26225 fi
26226
26227
26228                 if test $have_lwp = yes ; then
26229
26230 cat >>confdefs.h <<\_ACEOF
26231 #define HAVE_LWP 1
26232 _ACEOF
26233
26234                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26235                         ol_link_threads=lwp
26236
26237                         if test $ol_with_yielding_select = auto ; then
26238                                 ol_with_yielding_select=no
26239                         fi
26240                 fi
26241         fi
26242         ;;
26243 esac
26244
26245 if test $ol_with_yielding_select = yes ; then
26246
26247 cat >>confdefs.h <<\_ACEOF
26248 #define HAVE_YIELDING_SELECT 1
26249 _ACEOF
26250
26251 fi
26252
26253 if test $ol_with_threads = manual ; then
26254                 ol_link_threads=yes
26255
26256         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26257 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26258
26259
26260
26261 for ac_header in pthread.h sched.h
26262 do
26263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26265   echo "$as_me:$LINENO: checking for $ac_header" >&5
26266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26268   echo $ECHO_N "(cached) $ECHO_C" >&6
26269 fi
26270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26272 else
26273   # Is the header compilable?
26274 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26276 cat >conftest.$ac_ext <<_ACEOF
26277 /* confdefs.h.  */
26278 _ACEOF
26279 cat confdefs.h >>conftest.$ac_ext
26280 cat >>conftest.$ac_ext <<_ACEOF
26281 /* end confdefs.h.  */
26282 $ac_includes_default
26283 #include <$ac_header>
26284 _ACEOF
26285 rm -f conftest.$ac_objext
26286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26287   (eval $ac_compile) 2>conftest.er1
26288   ac_status=$?
26289   grep -v '^ *+' conftest.er1 >conftest.err
26290   rm -f conftest.er1
26291   cat conftest.err >&5
26292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293   (exit $ac_status); } &&
26294          { ac_try='test -z "$ac_c_werror_flag"
26295                          || test ! -s conftest.err'
26296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26297   (eval $ac_try) 2>&5
26298   ac_status=$?
26299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300   (exit $ac_status); }; } &&
26301          { ac_try='test -s conftest.$ac_objext'
26302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26303   (eval $ac_try) 2>&5
26304   ac_status=$?
26305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306   (exit $ac_status); }; }; then
26307   ac_header_compiler=yes
26308 else
26309   echo "$as_me: failed program was:" >&5
26310 sed 's/^/| /' conftest.$ac_ext >&5
26311
26312 ac_header_compiler=no
26313 fi
26314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26316 echo "${ECHO_T}$ac_header_compiler" >&6
26317
26318 # Is the header present?
26319 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26321 cat >conftest.$ac_ext <<_ACEOF
26322 /* confdefs.h.  */
26323 _ACEOF
26324 cat confdefs.h >>conftest.$ac_ext
26325 cat >>conftest.$ac_ext <<_ACEOF
26326 /* end confdefs.h.  */
26327 #include <$ac_header>
26328 _ACEOF
26329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26331   ac_status=$?
26332   grep -v '^ *+' conftest.er1 >conftest.err
26333   rm -f conftest.er1
26334   cat conftest.err >&5
26335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336   (exit $ac_status); } >/dev/null; then
26337   if test -s conftest.err; then
26338     ac_cpp_err=$ac_c_preproc_warn_flag
26339     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26340   else
26341     ac_cpp_err=
26342   fi
26343 else
26344   ac_cpp_err=yes
26345 fi
26346 if test -z "$ac_cpp_err"; then
26347   ac_header_preproc=yes
26348 else
26349   echo "$as_me: failed program was:" >&5
26350 sed 's/^/| /' conftest.$ac_ext >&5
26351
26352   ac_header_preproc=no
26353 fi
26354 rm -f conftest.err conftest.$ac_ext
26355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26356 echo "${ECHO_T}$ac_header_preproc" >&6
26357
26358 # So?  What about this header?
26359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26360   yes:no: )
26361     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26365     ac_header_preproc=yes
26366     ;;
26367   no:yes:* )
26368     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26370     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26371 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26372     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26374     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26375 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26378     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26380     (
26381       cat <<\_ASBOX
26382 ## ------------------------------------------ ##
26383 ## Report this to the AC_PACKAGE_NAME lists.  ##
26384 ## ------------------------------------------ ##
26385 _ASBOX
26386     ) |
26387       sed "s/^/$as_me: WARNING:     /" >&2
26388     ;;
26389 esac
26390 echo "$as_me:$LINENO: checking for $ac_header" >&5
26391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26393   echo $ECHO_N "(cached) $ECHO_C" >&6
26394 else
26395   eval "$as_ac_Header=\$ac_header_preproc"
26396 fi
26397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26399
26400 fi
26401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26402   cat >>confdefs.h <<_ACEOF
26403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26404 _ACEOF
26405
26406 fi
26407
26408 done
26409
26410
26411
26412 for ac_func in sched_yield pthread_yield
26413 do
26414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26415 echo "$as_me:$LINENO: checking for $ac_func" >&5
26416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26417 if eval "test \"\${$as_ac_var+set}\" = set"; then
26418   echo $ECHO_N "(cached) $ECHO_C" >&6
26419 else
26420   cat >conftest.$ac_ext <<_ACEOF
26421 /* confdefs.h.  */
26422 _ACEOF
26423 cat confdefs.h >>conftest.$ac_ext
26424 cat >>conftest.$ac_ext <<_ACEOF
26425 /* end confdefs.h.  */
26426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26428 #define $ac_func innocuous_$ac_func
26429
26430 /* System header to define __stub macros and hopefully few prototypes,
26431     which can conflict with char $ac_func (); below.
26432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26433     <limits.h> exists even on freestanding compilers.  */
26434
26435 #ifdef __STDC__
26436 # include <limits.h>
26437 #else
26438 # include <assert.h>
26439 #endif
26440
26441 #undef $ac_func
26442
26443 /* Override any gcc2 internal prototype to avoid an error.  */
26444 #ifdef __cplusplus
26445 extern "C"
26446 {
26447 #endif
26448 /* We use char because int might match the return type of a gcc2
26449    builtin and then its argument prototype would still apply.  */
26450 char $ac_func ();
26451 /* The GNU C library defines this for functions which it implements
26452     to always fail with ENOSYS.  Some functions are actually named
26453     something starting with __ and the normal name is an alias.  */
26454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26455 choke me
26456 #else
26457 char (*f) () = $ac_func;
26458 #endif
26459 #ifdef __cplusplus
26460 }
26461 #endif
26462
26463 int
26464 main ()
26465 {
26466 return f != $ac_func;
26467   ;
26468   return 0;
26469 }
26470 _ACEOF
26471 rm -f conftest.$ac_objext conftest$ac_exeext
26472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26473   (eval $ac_link) 2>conftest.er1
26474   ac_status=$?
26475   grep -v '^ *+' conftest.er1 >conftest.err
26476   rm -f conftest.er1
26477   cat conftest.err >&5
26478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479   (exit $ac_status); } &&
26480          { ac_try='test -z "$ac_c_werror_flag"
26481                          || test ! -s conftest.err'
26482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483   (eval $ac_try) 2>&5
26484   ac_status=$?
26485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486   (exit $ac_status); }; } &&
26487          { ac_try='test -s conftest$ac_exeext'
26488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489   (eval $ac_try) 2>&5
26490   ac_status=$?
26491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492   (exit $ac_status); }; }; then
26493   eval "$as_ac_var=yes"
26494 else
26495   echo "$as_me: failed program was:" >&5
26496 sed 's/^/| /' conftest.$ac_ext >&5
26497
26498 eval "$as_ac_var=no"
26499 fi
26500 rm -f conftest.err conftest.$ac_objext \
26501       conftest$ac_exeext conftest.$ac_ext
26502 fi
26503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26505 if test `eval echo '${'$as_ac_var'}'` = yes; then
26506   cat >>confdefs.h <<_ACEOF
26507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26508 _ACEOF
26509
26510 fi
26511 done
26512
26513
26514         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26515 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26516 if test "${ol_cv_header_linux_threads+set}" = set; then
26517   echo $ECHO_N "(cached) $ECHO_C" >&6
26518 else
26519   cat >conftest.$ac_ext <<_ACEOF
26520 /* confdefs.h.  */
26521 _ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h.  */
26525 #include <pthread.h>
26526 _ACEOF
26527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26528   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26529   ol_cv_header_linux_threads=yes
26530 else
26531   ol_cv_header_linux_threads=no
26532 fi
26533 rm -f conftest*
26534
26535
26536 fi
26537 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26538 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26539         if test $ol_cv_header_linux_threads = yes; then
26540
26541 cat >>confdefs.h <<\_ACEOF
26542 #define HAVE_LINUX_THREADS 1
26543 _ACEOF
26544
26545         fi
26546
26547
26548
26549 for ac_header in mach/cthreads.h
26550 do
26551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26553   echo "$as_me:$LINENO: checking for $ac_header" >&5
26554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26556   echo $ECHO_N "(cached) $ECHO_C" >&6
26557 fi
26558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26560 else
26561   # Is the header compilable?
26562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26564 cat >conftest.$ac_ext <<_ACEOF
26565 /* confdefs.h.  */
26566 _ACEOF
26567 cat confdefs.h >>conftest.$ac_ext
26568 cat >>conftest.$ac_ext <<_ACEOF
26569 /* end confdefs.h.  */
26570 $ac_includes_default
26571 #include <$ac_header>
26572 _ACEOF
26573 rm -f conftest.$ac_objext
26574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26575   (eval $ac_compile) 2>conftest.er1
26576   ac_status=$?
26577   grep -v '^ *+' conftest.er1 >conftest.err
26578   rm -f conftest.er1
26579   cat conftest.err >&5
26580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581   (exit $ac_status); } &&
26582          { ac_try='test -z "$ac_c_werror_flag"
26583                          || test ! -s conftest.err'
26584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26585   (eval $ac_try) 2>&5
26586   ac_status=$?
26587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588   (exit $ac_status); }; } &&
26589          { ac_try='test -s conftest.$ac_objext'
26590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26591   (eval $ac_try) 2>&5
26592   ac_status=$?
26593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594   (exit $ac_status); }; }; then
26595   ac_header_compiler=yes
26596 else
26597   echo "$as_me: failed program was:" >&5
26598 sed 's/^/| /' conftest.$ac_ext >&5
26599
26600 ac_header_compiler=no
26601 fi
26602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26604 echo "${ECHO_T}$ac_header_compiler" >&6
26605
26606 # Is the header present?
26607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26609 cat >conftest.$ac_ext <<_ACEOF
26610 /* confdefs.h.  */
26611 _ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h.  */
26615 #include <$ac_header>
26616 _ACEOF
26617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26619   ac_status=$?
26620   grep -v '^ *+' conftest.er1 >conftest.err
26621   rm -f conftest.er1
26622   cat conftest.err >&5
26623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624   (exit $ac_status); } >/dev/null; then
26625   if test -s conftest.err; then
26626     ac_cpp_err=$ac_c_preproc_warn_flag
26627     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26628   else
26629     ac_cpp_err=
26630   fi
26631 else
26632   ac_cpp_err=yes
26633 fi
26634 if test -z "$ac_cpp_err"; then
26635   ac_header_preproc=yes
26636 else
26637   echo "$as_me: failed program was:" >&5
26638 sed 's/^/| /' conftest.$ac_ext >&5
26639
26640   ac_header_preproc=no
26641 fi
26642 rm -f conftest.err conftest.$ac_ext
26643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26644 echo "${ECHO_T}$ac_header_preproc" >&6
26645
26646 # So?  What about this header?
26647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26648   yes:no: )
26649     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26653     ac_header_preproc=yes
26654     ;;
26655   no:yes:* )
26656     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26658     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26659 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26660     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26662     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26663 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26666     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26668     (
26669       cat <<\_ASBOX
26670 ## ------------------------------------------ ##
26671 ## Report this to the AC_PACKAGE_NAME lists.  ##
26672 ## ------------------------------------------ ##
26673 _ASBOX
26674     ) |
26675       sed "s/^/$as_me: WARNING:     /" >&2
26676     ;;
26677 esac
26678 echo "$as_me:$LINENO: checking for $ac_header" >&5
26679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26681   echo $ECHO_N "(cached) $ECHO_C" >&6
26682 else
26683   eval "$as_ac_Header=\$ac_header_preproc"
26684 fi
26685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26687
26688 fi
26689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26690   cat >>confdefs.h <<_ACEOF
26691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26692 _ACEOF
26693
26694 fi
26695
26696 done
26697
26698
26699 for ac_header in lwp/lwp.h
26700 do
26701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26703   echo "$as_me:$LINENO: checking for $ac_header" >&5
26704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26706   echo $ECHO_N "(cached) $ECHO_C" >&6
26707 fi
26708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26710 else
26711   # Is the header compilable?
26712 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26714 cat >conftest.$ac_ext <<_ACEOF
26715 /* confdefs.h.  */
26716 _ACEOF
26717 cat confdefs.h >>conftest.$ac_ext
26718 cat >>conftest.$ac_ext <<_ACEOF
26719 /* end confdefs.h.  */
26720 $ac_includes_default
26721 #include <$ac_header>
26722 _ACEOF
26723 rm -f conftest.$ac_objext
26724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26725   (eval $ac_compile) 2>conftest.er1
26726   ac_status=$?
26727   grep -v '^ *+' conftest.er1 >conftest.err
26728   rm -f conftest.er1
26729   cat conftest.err >&5
26730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731   (exit $ac_status); } &&
26732          { ac_try='test -z "$ac_c_werror_flag"
26733                          || test ! -s conftest.err'
26734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26735   (eval $ac_try) 2>&5
26736   ac_status=$?
26737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738   (exit $ac_status); }; } &&
26739          { ac_try='test -s conftest.$ac_objext'
26740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26741   (eval $ac_try) 2>&5
26742   ac_status=$?
26743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744   (exit $ac_status); }; }; then
26745   ac_header_compiler=yes
26746 else
26747   echo "$as_me: failed program was:" >&5
26748 sed 's/^/| /' conftest.$ac_ext >&5
26749
26750 ac_header_compiler=no
26751 fi
26752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26754 echo "${ECHO_T}$ac_header_compiler" >&6
26755
26756 # Is the header present?
26757 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26759 cat >conftest.$ac_ext <<_ACEOF
26760 /* confdefs.h.  */
26761 _ACEOF
26762 cat confdefs.h >>conftest.$ac_ext
26763 cat >>conftest.$ac_ext <<_ACEOF
26764 /* end confdefs.h.  */
26765 #include <$ac_header>
26766 _ACEOF
26767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26768   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26769   ac_status=$?
26770   grep -v '^ *+' conftest.er1 >conftest.err
26771   rm -f conftest.er1
26772   cat conftest.err >&5
26773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774   (exit $ac_status); } >/dev/null; then
26775   if test -s conftest.err; then
26776     ac_cpp_err=$ac_c_preproc_warn_flag
26777     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26778   else
26779     ac_cpp_err=
26780   fi
26781 else
26782   ac_cpp_err=yes
26783 fi
26784 if test -z "$ac_cpp_err"; then
26785   ac_header_preproc=yes
26786 else
26787   echo "$as_me: failed program was:" >&5
26788 sed 's/^/| /' conftest.$ac_ext >&5
26789
26790   ac_header_preproc=no
26791 fi
26792 rm -f conftest.err conftest.$ac_ext
26793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26794 echo "${ECHO_T}$ac_header_preproc" >&6
26795
26796 # So?  What about this header?
26797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26798   yes:no: )
26799     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26803     ac_header_preproc=yes
26804     ;;
26805   no:yes:* )
26806     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26808     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26809 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26810     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26812     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26813 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26816     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26818     (
26819       cat <<\_ASBOX
26820 ## ------------------------------------------ ##
26821 ## Report this to the AC_PACKAGE_NAME lists.  ##
26822 ## ------------------------------------------ ##
26823 _ASBOX
26824     ) |
26825       sed "s/^/$as_me: WARNING:     /" >&2
26826     ;;
26827 esac
26828 echo "$as_me:$LINENO: checking for $ac_header" >&5
26829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26831   echo $ECHO_N "(cached) $ECHO_C" >&6
26832 else
26833   eval "$as_ac_Header=\$ac_header_preproc"
26834 fi
26835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26837
26838 fi
26839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26840   cat >>confdefs.h <<_ACEOF
26841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26842 _ACEOF
26843
26844 fi
26845
26846 done
26847
26848
26849
26850 for ac_header in thread.h synch.h
26851 do
26852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26854   echo "$as_me:$LINENO: checking for $ac_header" >&5
26855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26857   echo $ECHO_N "(cached) $ECHO_C" >&6
26858 fi
26859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26861 else
26862   # Is the header compilable?
26863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26865 cat >conftest.$ac_ext <<_ACEOF
26866 /* confdefs.h.  */
26867 _ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h.  */
26871 $ac_includes_default
26872 #include <$ac_header>
26873 _ACEOF
26874 rm -f conftest.$ac_objext
26875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26876   (eval $ac_compile) 2>conftest.er1
26877   ac_status=$?
26878   grep -v '^ *+' conftest.er1 >conftest.err
26879   rm -f conftest.er1
26880   cat conftest.err >&5
26881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882   (exit $ac_status); } &&
26883          { ac_try='test -z "$ac_c_werror_flag"
26884                          || test ! -s conftest.err'
26885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26886   (eval $ac_try) 2>&5
26887   ac_status=$?
26888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889   (exit $ac_status); }; } &&
26890          { ac_try='test -s conftest.$ac_objext'
26891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26892   (eval $ac_try) 2>&5
26893   ac_status=$?
26894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895   (exit $ac_status); }; }; then
26896   ac_header_compiler=yes
26897 else
26898   echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.$ac_ext >&5
26900
26901 ac_header_compiler=no
26902 fi
26903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26905 echo "${ECHO_T}$ac_header_compiler" >&6
26906
26907 # Is the header present?
26908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26910 cat >conftest.$ac_ext <<_ACEOF
26911 /* confdefs.h.  */
26912 _ACEOF
26913 cat confdefs.h >>conftest.$ac_ext
26914 cat >>conftest.$ac_ext <<_ACEOF
26915 /* end confdefs.h.  */
26916 #include <$ac_header>
26917 _ACEOF
26918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26919   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26920   ac_status=$?
26921   grep -v '^ *+' conftest.er1 >conftest.err
26922   rm -f conftest.er1
26923   cat conftest.err >&5
26924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925   (exit $ac_status); } >/dev/null; then
26926   if test -s conftest.err; then
26927     ac_cpp_err=$ac_c_preproc_warn_flag
26928     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26929   else
26930     ac_cpp_err=
26931   fi
26932 else
26933   ac_cpp_err=yes
26934 fi
26935 if test -z "$ac_cpp_err"; then
26936   ac_header_preproc=yes
26937 else
26938   echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.$ac_ext >&5
26940
26941   ac_header_preproc=no
26942 fi
26943 rm -f conftest.err conftest.$ac_ext
26944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26945 echo "${ECHO_T}$ac_header_preproc" >&6
26946
26947 # So?  What about this header?
26948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26949   yes:no: )
26950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26954     ac_header_preproc=yes
26955     ;;
26956   no:yes:* )
26957     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26959     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26960 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26961     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26963     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26964 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26967     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26969     (
26970       cat <<\_ASBOX
26971 ## ------------------------------------------ ##
26972 ## Report this to the AC_PACKAGE_NAME lists.  ##
26973 ## ------------------------------------------ ##
26974 _ASBOX
26975     ) |
26976       sed "s/^/$as_me: WARNING:     /" >&2
26977     ;;
26978 esac
26979 echo "$as_me:$LINENO: checking for $ac_header" >&5
26980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26982   echo $ECHO_N "(cached) $ECHO_C" >&6
26983 else
26984   eval "$as_ac_Header=\$ac_header_preproc"
26985 fi
26986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26988
26989 fi
26990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26991   cat >>confdefs.h <<_ACEOF
26992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26993 _ACEOF
26994
26995 fi
26996
26997 done
26998
26999 fi
27000
27001 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27002                         cat >>confdefs.h <<\_ACEOF
27003 #define REENTRANT 1
27004 _ACEOF
27005
27006         cat >>confdefs.h <<\_ACEOF
27007 #define _REENTRANT 1
27008 _ACEOF
27009
27010         cat >>confdefs.h <<\_ACEOF
27011 #define THREAD_SAFE 1
27012 _ACEOF
27013
27014         cat >>confdefs.h <<\_ACEOF
27015 #define _THREAD_SAFE 1
27016 _ACEOF
27017
27018         cat >>confdefs.h <<\_ACEOF
27019 #define THREADSAFE 1
27020 _ACEOF
27021
27022         cat >>confdefs.h <<\_ACEOF
27023 #define _THREADSAFE 1
27024 _ACEOF
27025
27026         cat >>confdefs.h <<\_ACEOF
27027 #define _SGI_MP_SOURCE 1
27028 _ACEOF
27029
27030
27031                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27032 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27033 if test "${ol_cv_errno_thread_specific+set}" = set; then
27034   echo $ECHO_N "(cached) $ECHO_C" >&6
27035 else
27036
27037                 cat >conftest.$ac_ext <<_ACEOF
27038 /* confdefs.h.  */
27039 _ACEOF
27040 cat confdefs.h >>conftest.$ac_ext
27041 cat >>conftest.$ac_ext <<_ACEOF
27042 /* end confdefs.h.  */
27043 #include <errno.h>
27044 int
27045 main ()
27046 {
27047 errno = 0;
27048   ;
27049   return 0;
27050 }
27051 _ACEOF
27052 rm -f conftest.$ac_objext conftest$ac_exeext
27053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27054   (eval $ac_link) 2>conftest.er1
27055   ac_status=$?
27056   grep -v '^ *+' conftest.er1 >conftest.err
27057   rm -f conftest.er1
27058   cat conftest.err >&5
27059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060   (exit $ac_status); } &&
27061          { ac_try='test -z "$ac_c_werror_flag"
27062                          || test ! -s conftest.err'
27063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27064   (eval $ac_try) 2>&5
27065   ac_status=$?
27066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067   (exit $ac_status); }; } &&
27068          { ac_try='test -s conftest$ac_exeext'
27069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27070   (eval $ac_try) 2>&5
27071   ac_status=$?
27072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073   (exit $ac_status); }; }; then
27074   ol_cv_errno_thread_specific=yes
27075 else
27076   echo "$as_me: failed program was:" >&5
27077 sed 's/^/| /' conftest.$ac_ext >&5
27078
27079 ol_cv_errno_thread_specific=no
27080 fi
27081 rm -f conftest.err conftest.$ac_objext \
27082       conftest$ac_exeext conftest.$ac_ext
27083
27084 fi
27085 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27086 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27087
27088                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27089 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27090 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27091   echo $ECHO_N "(cached) $ECHO_C" >&6
27092 else
27093
27094                 cat >conftest.$ac_ext <<_ACEOF
27095 /* confdefs.h.  */
27096 _ACEOF
27097 cat confdefs.h >>conftest.$ac_ext
27098 cat >>conftest.$ac_ext <<_ACEOF
27099 /* end confdefs.h.  */
27100 #include <netdb.h>
27101 int
27102 main ()
27103 {
27104 h_errno = 0;
27105   ;
27106   return 0;
27107 }
27108 _ACEOF
27109 rm -f conftest.$ac_objext conftest$ac_exeext
27110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27111   (eval $ac_link) 2>conftest.er1
27112   ac_status=$?
27113   grep -v '^ *+' conftest.er1 >conftest.err
27114   rm -f conftest.er1
27115   cat conftest.err >&5
27116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117   (exit $ac_status); } &&
27118          { ac_try='test -z "$ac_c_werror_flag"
27119                          || test ! -s conftest.err'
27120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27121   (eval $ac_try) 2>&5
27122   ac_status=$?
27123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124   (exit $ac_status); }; } &&
27125          { ac_try='test -s conftest$ac_exeext'
27126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127   (eval $ac_try) 2>&5
27128   ac_status=$?
27129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130   (exit $ac_status); }; }; then
27131   ol_cv_h_errno_thread_specific=yes
27132 else
27133   echo "$as_me: failed program was:" >&5
27134 sed 's/^/| /' conftest.$ac_ext >&5
27135
27136 ol_cv_h_errno_thread_specific=no
27137 fi
27138 rm -f conftest.err conftest.$ac_objext \
27139       conftest$ac_exeext conftest.$ac_ext
27140
27141 fi
27142 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27143 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27144
27145         if test $ol_cv_errno_thread_specific != yes ||
27146            test $ol_cv_h_errno_thread_specific != yes ; then
27147                 LIBS="$LTHREAD_LIBS $LIBS"
27148                 LTHREAD_LIBS=""
27149         fi
27150
27151 fi
27152
27153 if test $ol_link_threads = no ; then
27154         if test $ol_with_threads = yes ; then
27155                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27156 echo "$as_me: error: no suitable thread support" >&2;}
27157    { (exit 1); exit 1; }; }
27158         fi
27159
27160         if test $ol_with_threads = auto ; then
27161                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27162 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27163                 ol_with_threads=no
27164         fi
27165
27166
27167 cat >>confdefs.h <<\_ACEOF
27168 #define NO_THREADS 1
27169 _ACEOF
27170
27171         LTHREAD_LIBS=""
27172         BUILD_THREAD=no
27173 else
27174         BUILD_THREAD=yes
27175 fi
27176
27177 if test $ol_link_threads != no ; then
27178
27179 cat >>confdefs.h <<\_ACEOF
27180 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27181 _ACEOF
27182
27183 fi
27184
27185
27186
27187
27188 for ac_func in \
27189         ctime_r                 \
27190         gethostbyname_r gethostbyaddr_r \
27191
27192 do
27193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27194 echo "$as_me:$LINENO: checking for $ac_func" >&5
27195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27196 if eval "test \"\${$as_ac_var+set}\" = set"; then
27197   echo $ECHO_N "(cached) $ECHO_C" >&6
27198 else
27199   cat >conftest.$ac_ext <<_ACEOF
27200 /* confdefs.h.  */
27201 _ACEOF
27202 cat confdefs.h >>conftest.$ac_ext
27203 cat >>conftest.$ac_ext <<_ACEOF
27204 /* end confdefs.h.  */
27205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27207 #define $ac_func innocuous_$ac_func
27208
27209 /* System header to define __stub macros and hopefully few prototypes,
27210     which can conflict with char $ac_func (); below.
27211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27212     <limits.h> exists even on freestanding compilers.  */
27213
27214 #ifdef __STDC__
27215 # include <limits.h>
27216 #else
27217 # include <assert.h>
27218 #endif
27219
27220 #undef $ac_func
27221
27222 /* Override any gcc2 internal prototype to avoid an error.  */
27223 #ifdef __cplusplus
27224 extern "C"
27225 {
27226 #endif
27227 /* We use char because int might match the return type of a gcc2
27228    builtin and then its argument prototype would still apply.  */
27229 char $ac_func ();
27230 /* The GNU C library defines this for functions which it implements
27231     to always fail with ENOSYS.  Some functions are actually named
27232     something starting with __ and the normal name is an alias.  */
27233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27234 choke me
27235 #else
27236 char (*f) () = $ac_func;
27237 #endif
27238 #ifdef __cplusplus
27239 }
27240 #endif
27241
27242 int
27243 main ()
27244 {
27245 return f != $ac_func;
27246   ;
27247   return 0;
27248 }
27249 _ACEOF
27250 rm -f conftest.$ac_objext conftest$ac_exeext
27251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27252   (eval $ac_link) 2>conftest.er1
27253   ac_status=$?
27254   grep -v '^ *+' conftest.er1 >conftest.err
27255   rm -f conftest.er1
27256   cat conftest.err >&5
27257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258   (exit $ac_status); } &&
27259          { ac_try='test -z "$ac_c_werror_flag"
27260                          || test ! -s conftest.err'
27261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262   (eval $ac_try) 2>&5
27263   ac_status=$?
27264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265   (exit $ac_status); }; } &&
27266          { ac_try='test -s conftest$ac_exeext'
27267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27268   (eval $ac_try) 2>&5
27269   ac_status=$?
27270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271   (exit $ac_status); }; }; then
27272   eval "$as_ac_var=yes"
27273 else
27274   echo "$as_me: failed program was:" >&5
27275 sed 's/^/| /' conftest.$ac_ext >&5
27276
27277 eval "$as_ac_var=no"
27278 fi
27279 rm -f conftest.err conftest.$ac_objext \
27280       conftest$ac_exeext conftest.$ac_ext
27281 fi
27282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27284 if test `eval echo '${'$as_ac_var'}'` = yes; then
27285   cat >>confdefs.h <<_ACEOF
27286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27287 _ACEOF
27288
27289 fi
27290 done
27291
27292
27293 if test "$ac_cv_func_ctime_r" = no ; then
27294         ol_cv_func_ctime_r_nargs=0
27295 else
27296         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27297 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27298 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27299   echo $ECHO_N "(cached) $ECHO_C" >&6
27300 else
27301   cat >conftest.$ac_ext <<_ACEOF
27302 /* confdefs.h.  */
27303 _ACEOF
27304 cat confdefs.h >>conftest.$ac_ext
27305 cat >>conftest.$ac_ext <<_ACEOF
27306 /* end confdefs.h.  */
27307 #include <time.h>
27308 int
27309 main ()
27310 {
27311 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27312   ;
27313   return 0;
27314 }
27315 _ACEOF
27316 rm -f conftest.$ac_objext
27317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27318   (eval $ac_compile) 2>conftest.er1
27319   ac_status=$?
27320   grep -v '^ *+' conftest.er1 >conftest.err
27321   rm -f conftest.er1
27322   cat conftest.err >&5
27323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324   (exit $ac_status); } &&
27325          { ac_try='test -z "$ac_c_werror_flag"
27326                          || test ! -s conftest.err'
27327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27328   (eval $ac_try) 2>&5
27329   ac_status=$?
27330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331   (exit $ac_status); }; } &&
27332          { ac_try='test -s conftest.$ac_objext'
27333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27334   (eval $ac_try) 2>&5
27335   ac_status=$?
27336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337   (exit $ac_status); }; }; then
27338   ol_cv_func_ctime_r_nargs3=yes
27339 else
27340   echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27342
27343 ol_cv_func_ctime_r_nargs3=no
27344 fi
27345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27346
27347         cat >conftest.$ac_ext <<_ACEOF
27348 /* confdefs.h.  */
27349 _ACEOF
27350 cat confdefs.h >>conftest.$ac_ext
27351 cat >>conftest.$ac_ext <<_ACEOF
27352 /* end confdefs.h.  */
27353 #include <time.h>
27354 int
27355 main ()
27356 {
27357 time_t ti; char *buffer; ctime_r(&ti,buffer);
27358   ;
27359   return 0;
27360 }
27361 _ACEOF
27362 rm -f conftest.$ac_objext
27363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27364   (eval $ac_compile) 2>conftest.er1
27365   ac_status=$?
27366   grep -v '^ *+' conftest.er1 >conftest.err
27367   rm -f conftest.er1
27368   cat conftest.err >&5
27369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370   (exit $ac_status); } &&
27371          { ac_try='test -z "$ac_c_werror_flag"
27372                          || test ! -s conftest.err'
27373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27374   (eval $ac_try) 2>&5
27375   ac_status=$?
27376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377   (exit $ac_status); }; } &&
27378          { ac_try='test -s conftest.$ac_objext'
27379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27380   (eval $ac_try) 2>&5
27381   ac_status=$?
27382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383   (exit $ac_status); }; }; then
27384   ol_cv_func_ctime_r_nargs2=yes
27385 else
27386   echo "$as_me: failed program was:" >&5
27387 sed 's/^/| /' conftest.$ac_ext >&5
27388
27389 ol_cv_func_ctime_r_nargs2=no
27390 fi
27391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27392
27393         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27394            test $ol_cv_func_ctime_r_nargs2 = no ; then
27395
27396                 ol_cv_func_ctime_r_nargs=3
27397
27398         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27399              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27400
27401                 ol_cv_func_ctime_r_nargs=2
27402
27403         else
27404                 ol_cv_func_ctime_r_nargs=0
27405         fi
27406
27407 fi
27408 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27409 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27410
27411   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27412
27413 cat >>confdefs.h <<_ACEOF
27414 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27415 _ACEOF
27416
27417   fi
27418
27419 fi
27420
27421 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27422         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27423 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27424 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27425   echo $ECHO_N "(cached) $ECHO_C" >&6
27426 else
27427   cat >conftest.$ac_ext <<_ACEOF
27428 /* confdefs.h.  */
27429 _ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h.  */
27433 #include <sys/types.h>
27434 #include <sys/socket.h>
27435 #include <netinet/in.h>
27436 #include <netdb.h>
27437 #define BUFSIZE (sizeof(struct hostent)+10)
27438 int
27439 main ()
27440 {
27441 struct hostent hent; char buffer[BUFSIZE];
27442                 int bufsize=BUFSIZE;int h_errno;
27443                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27444                         buffer, bufsize, &h_errno);
27445   ;
27446   return 0;
27447 }
27448 _ACEOF
27449 rm -f conftest.$ac_objext
27450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27451   (eval $ac_compile) 2>conftest.er1
27452   ac_status=$?
27453   grep -v '^ *+' conftest.er1 >conftest.err
27454   rm -f conftest.er1
27455   cat conftest.err >&5
27456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457   (exit $ac_status); } &&
27458          { ac_try='test -z "$ac_c_werror_flag"
27459                          || test ! -s conftest.err'
27460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27461   (eval $ac_try) 2>&5
27462   ac_status=$?
27463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464   (exit $ac_status); }; } &&
27465          { ac_try='test -s conftest.$ac_objext'
27466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467   (eval $ac_try) 2>&5
27468   ac_status=$?
27469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470   (exit $ac_status); }; }; then
27471   ol_cv_func_gethostbyname_r_nargs5=yes
27472 else
27473   echo "$as_me: failed program was:" >&5
27474 sed 's/^/| /' conftest.$ac_ext >&5
27475
27476 ol_cv_func_gethostbyname_r_nargs5=no
27477 fi
27478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27479
27480         cat >conftest.$ac_ext <<_ACEOF
27481 /* confdefs.h.  */
27482 _ACEOF
27483 cat confdefs.h >>conftest.$ac_ext
27484 cat >>conftest.$ac_ext <<_ACEOF
27485 /* end confdefs.h.  */
27486 #include <sys/types.h>
27487 #include <sys/socket.h>
27488 #include <netinet/in.h>
27489 #include <netdb.h>
27490 #define BUFSIZE (sizeof(struct hostent)+10)
27491 int
27492 main ()
27493 {
27494 struct hostent hent;struct hostent *rhent;
27495                 char buffer[BUFSIZE];
27496                 int bufsize=BUFSIZE;int h_errno;
27497                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27498                         &rhent, &h_errno);
27499   ;
27500   return 0;
27501 }
27502 _ACEOF
27503 rm -f conftest.$ac_objext
27504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27505   (eval $ac_compile) 2>conftest.er1
27506   ac_status=$?
27507   grep -v '^ *+' conftest.er1 >conftest.err
27508   rm -f conftest.er1
27509   cat conftest.err >&5
27510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511   (exit $ac_status); } &&
27512          { ac_try='test -z "$ac_c_werror_flag"
27513                          || test ! -s conftest.err'
27514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515   (eval $ac_try) 2>&5
27516   ac_status=$?
27517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518   (exit $ac_status); }; } &&
27519          { ac_try='test -s conftest.$ac_objext'
27520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27521   (eval $ac_try) 2>&5
27522   ac_status=$?
27523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524   (exit $ac_status); }; }; then
27525   ol_cv_func_gethostbyname_r_nargs6=yes
27526 else
27527   echo "$as_me: failed program was:" >&5
27528 sed 's/^/| /' conftest.$ac_ext >&5
27529
27530 ol_cv_func_gethostbyname_r_nargs6=no
27531 fi
27532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27533
27534         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27535            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27536
27537                 ol_cv_func_gethostbyname_r_nargs=5
27538
27539         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27540              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27541
27542                 ol_cv_func_gethostbyname_r_nargs=6
27543
27544         else
27545                 ol_cv_func_gethostbyname_r_nargs=0
27546         fi
27547
27548 fi
27549 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27550 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27551   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27552
27553 cat >>confdefs.h <<_ACEOF
27554 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27555 _ACEOF
27556
27557   fi
27558
27559 else
27560         ol_cv_func_gethostbyname_r_nargs=0
27561 fi
27562
27563 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27564         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27565 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27566 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27567   echo $ECHO_N "(cached) $ECHO_C" >&6
27568 else
27569   cat >conftest.$ac_ext <<_ACEOF
27570 /* confdefs.h.  */
27571 _ACEOF
27572 cat confdefs.h >>conftest.$ac_ext
27573 cat >>conftest.$ac_ext <<_ACEOF
27574 /* end confdefs.h.  */
27575 #include <sys/types.h>
27576 #include <sys/socket.h>
27577 #include <netinet/in.h>
27578 #include <netdb.h>
27579 #define BUFSIZE (sizeof(struct hostent)+10)
27580 int
27581 main ()
27582 {
27583 struct hostent hent; char buffer[BUFSIZE];
27584             struct in_addr add;
27585             size_t alen=sizeof(struct in_addr);
27586             int bufsize=BUFSIZE;int h_errno;
27587                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27588                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27589   ;
27590   return 0;
27591 }
27592 _ACEOF
27593 rm -f conftest.$ac_objext
27594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27595   (eval $ac_compile) 2>conftest.er1
27596   ac_status=$?
27597   grep -v '^ *+' conftest.er1 >conftest.err
27598   rm -f conftest.er1
27599   cat conftest.err >&5
27600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601   (exit $ac_status); } &&
27602          { ac_try='test -z "$ac_c_werror_flag"
27603                          || test ! -s conftest.err'
27604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27605   (eval $ac_try) 2>&5
27606   ac_status=$?
27607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608   (exit $ac_status); }; } &&
27609          { ac_try='test -s conftest.$ac_objext'
27610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27611   (eval $ac_try) 2>&5
27612   ac_status=$?
27613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614   (exit $ac_status); }; }; then
27615   ol_cv_func_gethostbyaddr_r_nargs7=yes
27616 else
27617   echo "$as_me: failed program was:" >&5
27618 sed 's/^/| /' conftest.$ac_ext >&5
27619
27620 ol_cv_func_gethostbyaddr_r_nargs7=no
27621 fi
27622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27623
27624         cat >conftest.$ac_ext <<_ACEOF
27625 /* confdefs.h.  */
27626 _ACEOF
27627 cat confdefs.h >>conftest.$ac_ext
27628 cat >>conftest.$ac_ext <<_ACEOF
27629 /* end confdefs.h.  */
27630 #include <sys/types.h>
27631 #include <sys/socket.h>
27632 #include <netinet/in.h>
27633 #include <netdb.h>
27634 #define BUFSIZE (sizeof(struct hostent)+10)
27635 int
27636 main ()
27637 {
27638 struct hostent hent;
27639                 struct hostent *rhent; char buffer[BUFSIZE];
27640                 struct in_addr add;
27641                 size_t alen=sizeof(struct in_addr);
27642                 int bufsize=BUFSIZE;int h_errno;
27643                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27644                         alen, AF_INET, &hent, buffer, bufsize,
27645                         &rhent, &h_errno);
27646   ;
27647   return 0;
27648 }
27649 _ACEOF
27650 rm -f conftest.$ac_objext
27651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27652   (eval $ac_compile) 2>conftest.er1
27653   ac_status=$?
27654   grep -v '^ *+' conftest.er1 >conftest.err
27655   rm -f conftest.er1
27656   cat conftest.err >&5
27657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658   (exit $ac_status); } &&
27659          { ac_try='test -z "$ac_c_werror_flag"
27660                          || test ! -s conftest.err'
27661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27662   (eval $ac_try) 2>&5
27663   ac_status=$?
27664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665   (exit $ac_status); }; } &&
27666          { ac_try='test -s conftest.$ac_objext'
27667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27668   (eval $ac_try) 2>&5
27669   ac_status=$?
27670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671   (exit $ac_status); }; }; then
27672   ol_cv_func_gethostbyaddr_r_nargs8=yes
27673 else
27674   echo "$as_me: failed program was:" >&5
27675 sed 's/^/| /' conftest.$ac_ext >&5
27676
27677 ol_cv_func_gethostbyaddr_r_nargs8=no
27678 fi
27679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27680
27681         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27682            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27683
27684                 ol_cv_func_gethostbyaddr_r_nargs=7
27685
27686         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27687              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27688
27689                 ol_cv_func_gethostbyaddr_r_nargs=8
27690
27691         else
27692                 ol_cv_func_gethostbyaddr_r_nargs=0
27693         fi
27694
27695 fi
27696 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27697 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27698   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27699
27700 cat >>confdefs.h <<_ACEOF
27701 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27702 _ACEOF
27703
27704   fi
27705
27706 else
27707         ol_cv_func_gethostbyaddr_r_nargs=0
27708 fi
27709
27710 ol_link_ldbm=no
27711
27712 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27713
27714         if test $ol_enable_ldbm_api = bcompat; then \
27715
27716
27717 for ac_header in db_185.h db.h
27718 do
27719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27721   echo "$as_me:$LINENO: checking for $ac_header" >&5
27722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27724   echo $ECHO_N "(cached) $ECHO_C" >&6
27725 fi
27726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27728 else
27729   # Is the header compilable?
27730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27732 cat >conftest.$ac_ext <<_ACEOF
27733 /* confdefs.h.  */
27734 _ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h.  */
27738 $ac_includes_default
27739 #include <$ac_header>
27740 _ACEOF
27741 rm -f conftest.$ac_objext
27742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27743   (eval $ac_compile) 2>conftest.er1
27744   ac_status=$?
27745   grep -v '^ *+' conftest.er1 >conftest.err
27746   rm -f conftest.er1
27747   cat conftest.err >&5
27748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749   (exit $ac_status); } &&
27750          { ac_try='test -z "$ac_c_werror_flag"
27751                          || test ! -s conftest.err'
27752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27753   (eval $ac_try) 2>&5
27754   ac_status=$?
27755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756   (exit $ac_status); }; } &&
27757          { ac_try='test -s conftest.$ac_objext'
27758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27759   (eval $ac_try) 2>&5
27760   ac_status=$?
27761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762   (exit $ac_status); }; }; then
27763   ac_header_compiler=yes
27764 else
27765   echo "$as_me: failed program was:" >&5
27766 sed 's/^/| /' conftest.$ac_ext >&5
27767
27768 ac_header_compiler=no
27769 fi
27770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27772 echo "${ECHO_T}$ac_header_compiler" >&6
27773
27774 # Is the header present?
27775 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27777 cat >conftest.$ac_ext <<_ACEOF
27778 /* confdefs.h.  */
27779 _ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h.  */
27783 #include <$ac_header>
27784 _ACEOF
27785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27786   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27787   ac_status=$?
27788   grep -v '^ *+' conftest.er1 >conftest.err
27789   rm -f conftest.er1
27790   cat conftest.err >&5
27791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792   (exit $ac_status); } >/dev/null; then
27793   if test -s conftest.err; then
27794     ac_cpp_err=$ac_c_preproc_warn_flag
27795     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27796   else
27797     ac_cpp_err=
27798   fi
27799 else
27800   ac_cpp_err=yes
27801 fi
27802 if test -z "$ac_cpp_err"; then
27803   ac_header_preproc=yes
27804 else
27805   echo "$as_me: failed program was:" >&5
27806 sed 's/^/| /' conftest.$ac_ext >&5
27807
27808   ac_header_preproc=no
27809 fi
27810 rm -f conftest.err conftest.$ac_ext
27811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27812 echo "${ECHO_T}$ac_header_preproc" >&6
27813
27814 # So?  What about this header?
27815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27816   yes:no: )
27817     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27821     ac_header_preproc=yes
27822     ;;
27823   no:yes:* )
27824     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27826     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27827 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27828     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27830     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27831 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27834     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27836     (
27837       cat <<\_ASBOX
27838 ## ------------------------------------------ ##
27839 ## Report this to the AC_PACKAGE_NAME lists.  ##
27840 ## ------------------------------------------ ##
27841 _ASBOX
27842     ) |
27843       sed "s/^/$as_me: WARNING:     /" >&2
27844     ;;
27845 esac
27846 echo "$as_me:$LINENO: checking for $ac_header" >&5
27847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27849   echo $ECHO_N "(cached) $ECHO_C" >&6
27850 else
27851   eval "$as_ac_Header=\$ac_header_preproc"
27852 fi
27853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27855
27856 fi
27857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27858   cat >>confdefs.h <<_ACEOF
27859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27860 _ACEOF
27861
27862 fi
27863
27864 done
27865
27866 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27867         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27868 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27869 if test "${ol_cv_header_db1+set}" = set; then
27870   echo $ECHO_N "(cached) $ECHO_C" >&6
27871 else
27872
27873                 cat >conftest.$ac_ext <<_ACEOF
27874 /* confdefs.h.  */
27875 _ACEOF
27876 cat confdefs.h >>conftest.$ac_ext
27877 cat >>conftest.$ac_ext <<_ACEOF
27878 /* end confdefs.h.  */
27879
27880 #if HAVE_DB_185_H
27881 #       include <db_185.h>
27882 #else
27883 #       include <db.h>
27884 #endif
27885
27886  /* this check could be improved */
27887 #ifndef DB_VERSION_MAJOR
27888 #       define DB_VERSION_MAJOR 1
27889 #endif
27890
27891 #if DB_VERSION_MAJOR == 1
27892         __db_version_1
27893 #endif
27894
27895 _ACEOF
27896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27897   $EGREP "__db_version_1" >/dev/null 2>&1; then
27898   ol_cv_header_db1=yes
27899 else
27900   ol_cv_header_db1=no
27901 fi
27902 rm -f conftest*
27903
27904 fi
27905 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27906 echo "${ECHO_T}$ol_cv_header_db1" >&6
27907
27908         if test $ol_cv_header_db1 = yes ; then
27909                 ol_cv_lib_db=no
27910
27911 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27912 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27913 if test "${ol_cv_bdb_major+set}" = set; then
27914   echo $ECHO_N "(cached) $ECHO_C" >&6
27915 else
27916
27917         ol_cv_bdb_major=0
27918         if test $ol_cv_bdb_major = 0 ; then
27919                 cat >conftest.$ac_ext <<_ACEOF
27920 /* confdefs.h.  */
27921 _ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h.  */
27925
27926 #include <db.h>
27927 #ifndef DB_VERSION_MAJOR
27928 #       define DB_VERSION_MAJOR 1
27929 #endif
27930 #if DB_VERSION_MAJOR == 4
27931 __db_version
27932 #endif
27933
27934 _ACEOF
27935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27936   $EGREP "__db_version" >/dev/null 2>&1; then
27937   ol_cv_bdb_major=4
27938 else
27939   :
27940 fi
27941 rm -f conftest*
27942
27943         fi
27944         if test $ol_cv_bdb_major = 0 ; then
27945                 cat >conftest.$ac_ext <<_ACEOF
27946 /* confdefs.h.  */
27947 _ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h.  */
27951
27952 #include <db.h>
27953 #ifndef DB_VERSION_MAJOR
27954 #       define DB_VERSION_MAJOR 1
27955 #endif
27956 #if DB_VERSION_MAJOR == 3
27957 __db_version
27958 #endif
27959
27960 _ACEOF
27961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27962   $EGREP "__db_version" >/dev/null 2>&1; then
27963   ol_cv_bdb_major=3
27964 else
27965   :
27966 fi
27967 rm -f conftest*
27968
27969         fi
27970         if test $ol_cv_bdb_major = 0 ; then
27971                 cat >conftest.$ac_ext <<_ACEOF
27972 /* confdefs.h.  */
27973 _ACEOF
27974 cat confdefs.h >>conftest.$ac_ext
27975 cat >>conftest.$ac_ext <<_ACEOF
27976 /* end confdefs.h.  */
27977
27978 #include <db.h>
27979 #ifndef DB_VERSION_MAJOR
27980 #       define DB_VERSION_MAJOR 1
27981 #endif
27982 #if DB_VERSION_MAJOR == 2
27983 __db_version
27984 #endif
27985
27986 _ACEOF
27987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27988   $EGREP "__db_version" >/dev/null 2>&1; then
27989   ol_cv_bdb_major=2
27990 else
27991   :
27992 fi
27993 rm -f conftest*
27994
27995         fi
27996         if test $ol_cv_bdb_major = 0 ; then
27997                 cat >conftest.$ac_ext <<_ACEOF
27998 /* confdefs.h.  */
27999 _ACEOF
28000 cat confdefs.h >>conftest.$ac_ext
28001 cat >>conftest.$ac_ext <<_ACEOF
28002 /* end confdefs.h.  */
28003
28004 #include <db.h>
28005 #ifndef DB_VERSION_MAJOR
28006 #       define DB_VERSION_MAJOR 1
28007 #endif
28008 #if DB_VERSION_MAJOR == 1
28009 __db_version
28010 #endif
28011
28012 _ACEOF
28013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28014   $EGREP "__db_version" >/dev/null 2>&1; then
28015   ol_cv_bdb_major=1
28016 else
28017   :
28018 fi
28019 rm -f conftest*
28020
28021         fi
28022
28023         if test $ol_cv_bdb_major = 0 ; then
28024                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28025 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28026    { (exit 1); exit 1; }; }
28027         fi
28028
28029 fi
28030 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28031 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28032
28033 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28034 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28035 if test "${ol_cv_bdb_minor+set}" = set; then
28036   echo $ECHO_N "(cached) $ECHO_C" >&6
28037 else
28038
28039         ol_cv_bdb_minor=0
28040         if test $ol_cv_bdb_minor = 0 ; then
28041                 cat >conftest.$ac_ext <<_ACEOF
28042 /* confdefs.h.  */
28043 _ACEOF
28044 cat confdefs.h >>conftest.$ac_ext
28045 cat >>conftest.$ac_ext <<_ACEOF
28046 /* end confdefs.h.  */
28047
28048 #include <db.h>
28049 #ifndef DB_VERSION_MINOR
28050 #       define DB_VERSION_MINOR 0
28051 #endif
28052 #if DB_VERSION_MINOR == 9
28053 __db_version
28054 #endif
28055
28056 _ACEOF
28057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28058   $EGREP "__db_version" >/dev/null 2>&1; then
28059   ol_cv_bdb_minor=9
28060 else
28061   :
28062 fi
28063 rm -f conftest*
28064
28065         fi
28066         if test $ol_cv_bdb_minor = 0 ; then
28067                 cat >conftest.$ac_ext <<_ACEOF
28068 /* confdefs.h.  */
28069 _ACEOF
28070 cat confdefs.h >>conftest.$ac_ext
28071 cat >>conftest.$ac_ext <<_ACEOF
28072 /* end confdefs.h.  */
28073
28074 #include <db.h>
28075 #ifndef DB_VERSION_MINOR
28076 #       define DB_VERSION_MINOR 0
28077 #endif
28078 #if DB_VERSION_MINOR == 8
28079 __db_version
28080 #endif
28081
28082 _ACEOF
28083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28084   $EGREP "__db_version" >/dev/null 2>&1; then
28085   ol_cv_bdb_minor=8
28086 else
28087   :
28088 fi
28089 rm -f conftest*
28090
28091         fi
28092         if test $ol_cv_bdb_minor = 0 ; then
28093                 cat >conftest.$ac_ext <<_ACEOF
28094 /* confdefs.h.  */
28095 _ACEOF
28096 cat confdefs.h >>conftest.$ac_ext
28097 cat >>conftest.$ac_ext <<_ACEOF
28098 /* end confdefs.h.  */
28099
28100 #include <db.h>
28101 #ifndef DB_VERSION_MINOR
28102 #       define DB_VERSION_MINOR 0
28103 #endif
28104 #if DB_VERSION_MINOR == 7
28105 __db_version
28106 #endif
28107
28108 _ACEOF
28109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28110   $EGREP "__db_version" >/dev/null 2>&1; then
28111   ol_cv_bdb_minor=7
28112 else
28113   :
28114 fi
28115 rm -f conftest*
28116
28117         fi
28118         if test $ol_cv_bdb_minor = 0 ; then
28119                 cat >conftest.$ac_ext <<_ACEOF
28120 /* confdefs.h.  */
28121 _ACEOF
28122 cat confdefs.h >>conftest.$ac_ext
28123 cat >>conftest.$ac_ext <<_ACEOF
28124 /* end confdefs.h.  */
28125
28126 #include <db.h>
28127 #ifndef DB_VERSION_MINOR
28128 #       define DB_VERSION_MINOR 0
28129 #endif
28130 #if DB_VERSION_MINOR == 6
28131 __db_version
28132 #endif
28133
28134 _ACEOF
28135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28136   $EGREP "__db_version" >/dev/null 2>&1; then
28137   ol_cv_bdb_minor=6
28138 else
28139   :
28140 fi
28141 rm -f conftest*
28142
28143         fi
28144         if test $ol_cv_bdb_minor = 0 ; then
28145                 cat >conftest.$ac_ext <<_ACEOF
28146 /* confdefs.h.  */
28147 _ACEOF
28148 cat confdefs.h >>conftest.$ac_ext
28149 cat >>conftest.$ac_ext <<_ACEOF
28150 /* end confdefs.h.  */
28151
28152 #include <db.h>
28153 #ifndef DB_VERSION_MINOR
28154 #       define DB_VERSION_MINOR 0
28155 #endif
28156 #if DB_VERSION_MINOR == 5
28157 __db_version
28158 #endif
28159
28160 _ACEOF
28161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28162   $EGREP "__db_version" >/dev/null 2>&1; then
28163   ol_cv_bdb_minor=5
28164 else
28165   :
28166 fi
28167 rm -f conftest*
28168
28169         fi
28170         if test $ol_cv_bdb_minor = 0 ; then
28171                 cat >conftest.$ac_ext <<_ACEOF
28172 /* confdefs.h.  */
28173 _ACEOF
28174 cat confdefs.h >>conftest.$ac_ext
28175 cat >>conftest.$ac_ext <<_ACEOF
28176 /* end confdefs.h.  */
28177
28178 #include <db.h>
28179 #ifndef DB_VERSION_MINOR
28180 #       define DB_VERSION_MINOR 0
28181 #endif
28182 #if DB_VERSION_MINOR == 4
28183 __db_version
28184 #endif
28185
28186 _ACEOF
28187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28188   $EGREP "__db_version" >/dev/null 2>&1; then
28189   ol_cv_bdb_minor=4
28190 else
28191   :
28192 fi
28193 rm -f conftest*
28194
28195         fi
28196         if test $ol_cv_bdb_minor = 0 ; then
28197                 cat >conftest.$ac_ext <<_ACEOF
28198 /* confdefs.h.  */
28199 _ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h.  */
28203
28204 #include <db.h>
28205 #ifndef DB_VERSION_MINOR
28206 #       define DB_VERSION_MINOR 0
28207 #endif
28208 #if DB_VERSION_MINOR == 3
28209 __db_version
28210 #endif
28211
28212 _ACEOF
28213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28214   $EGREP "__db_version" >/dev/null 2>&1; then
28215   ol_cv_bdb_minor=3
28216 else
28217   :
28218 fi
28219 rm -f conftest*
28220
28221         fi
28222         if test $ol_cv_bdb_minor = 0 ; then
28223                 cat >conftest.$ac_ext <<_ACEOF
28224 /* confdefs.h.  */
28225 _ACEOF
28226 cat confdefs.h >>conftest.$ac_ext
28227 cat >>conftest.$ac_ext <<_ACEOF
28228 /* end confdefs.h.  */
28229
28230 #include <db.h>
28231 #ifndef DB_VERSION_MINOR
28232 #       define DB_VERSION_MINOR 0
28233 #endif
28234 #if DB_VERSION_MINOR == 2
28235 __db_version
28236 #endif
28237
28238 _ACEOF
28239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28240   $EGREP "__db_version" >/dev/null 2>&1; then
28241   ol_cv_bdb_minor=2
28242 else
28243   :
28244 fi
28245 rm -f conftest*
28246
28247         fi
28248         if test $ol_cv_bdb_minor = 0 ; then
28249                 cat >conftest.$ac_ext <<_ACEOF
28250 /* confdefs.h.  */
28251 _ACEOF
28252 cat confdefs.h >>conftest.$ac_ext
28253 cat >>conftest.$ac_ext <<_ACEOF
28254 /* end confdefs.h.  */
28255
28256 #include <db.h>
28257 #ifndef DB_VERSION_MINOR
28258 #       define DB_VERSION_MINOR 0
28259 #endif
28260 #if DB_VERSION_MINOR == 1
28261 __db_version
28262 #endif
28263
28264 _ACEOF
28265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28266   $EGREP "__db_version" >/dev/null 2>&1; then
28267   ol_cv_bdb_minor=1
28268 else
28269   :
28270 fi
28271 rm -f conftest*
28272
28273         fi
28274
28275 fi
28276 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28277 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28278
28279 if test $ol_cv_bdb_major = 4 ; then
28280         if test $ol_cv_bdb_minor = 4 ; then
28281                 if test $ol_cv_lib_db = no ; then
28282         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28283 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28284 if test "${ol_cv_db_db44+set}" = set; then
28285   echo $ECHO_N "(cached) $ECHO_C" >&6
28286 else
28287
28288         ol_DB_LIB=-ldb44
28289         ol_LIBS=$LIBS
28290         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28291
28292         cat >conftest.$ac_ext <<_ACEOF
28293 /* confdefs.h.  */
28294 _ACEOF
28295 cat confdefs.h >>conftest.$ac_ext
28296 cat >>conftest.$ac_ext <<_ACEOF
28297 /* end confdefs.h.  */
28298
28299 #ifdef HAVE_DB_185_H
28300 # include <db_185.h>
28301 #else
28302 # include <db.h>
28303 #endif
28304
28305 #ifndef DB_VERSION_MAJOR
28306 # define DB_VERSION_MAJOR 1
28307 #endif
28308
28309 #ifndef NULL
28310 #define NULL ((void*)0)
28311 #endif
28312
28313 int
28314 main ()
28315 {
28316
28317 #if DB_VERSION_MAJOR > 1
28318         {
28319                 char *version;
28320                 int major, minor, patch;
28321
28322                 version = db_version( &major, &minor, &patch );
28323
28324                 if( major != DB_VERSION_MAJOR ||
28325                         minor < DB_VERSION_MINOR )
28326                 {
28327                         printf("Berkeley DB version mismatch\n"
28328                                 "\theader: %s\n\tlibrary: %s\n",
28329                                 DB_VERSION_STRING, version);
28330                         return 1;
28331                 }
28332         }
28333 #endif
28334
28335 #if DB_VERSION_MAJOR > 2
28336         db_env_create( NULL, 0 );
28337 #elif DB_VERSION_MAJOR > 1
28338         db_appexit( NULL );
28339 #else
28340         (void) dbopen( NULL, 0, 0, 0, NULL);
28341 #endif
28342
28343   ;
28344   return 0;
28345 }
28346 _ACEOF
28347 rm -f conftest.$ac_objext conftest$ac_exeext
28348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28349   (eval $ac_link) 2>conftest.er1
28350   ac_status=$?
28351   grep -v '^ *+' conftest.er1 >conftest.err
28352   rm -f conftest.er1
28353   cat conftest.err >&5
28354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355   (exit $ac_status); } &&
28356          { ac_try='test -z "$ac_c_werror_flag"
28357                          || test ! -s conftest.err'
28358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28359   (eval $ac_try) 2>&5
28360   ac_status=$?
28361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362   (exit $ac_status); }; } &&
28363          { ac_try='test -s conftest$ac_exeext'
28364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28365   (eval $ac_try) 2>&5
28366   ac_status=$?
28367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368   (exit $ac_status); }; }; then
28369   ol_cv_db_db44=yes
28370 else
28371   echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28373
28374 ol_cv_db_db44=no
28375 fi
28376 rm -f conftest.err conftest.$ac_objext \
28377       conftest$ac_exeext conftest.$ac_ext
28378
28379         LIBS="$ol_LIBS"
28380
28381 fi
28382 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28383 echo "${ECHO_T}$ol_cv_db_db44" >&6
28384
28385         if test $ol_cv_db_db44 = yes ; then
28386                 ol_cv_lib_db=-ldb44
28387         fi
28388 fi
28389
28390                 if test $ol_cv_lib_db = no ; then
28391         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28392 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28393 if test "${ol_cv_db_db_44+set}" = set; then
28394   echo $ECHO_N "(cached) $ECHO_C" >&6
28395 else
28396
28397         ol_DB_LIB=-ldb-44
28398         ol_LIBS=$LIBS
28399         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28400
28401         cat >conftest.$ac_ext <<_ACEOF
28402 /* confdefs.h.  */
28403 _ACEOF
28404 cat confdefs.h >>conftest.$ac_ext
28405 cat >>conftest.$ac_ext <<_ACEOF
28406 /* end confdefs.h.  */
28407
28408 #ifdef HAVE_DB_185_H
28409 # include <db_185.h>
28410 #else
28411 # include <db.h>
28412 #endif
28413
28414 #ifndef DB_VERSION_MAJOR
28415 # define DB_VERSION_MAJOR 1
28416 #endif
28417
28418 #ifndef NULL
28419 #define NULL ((void*)0)
28420 #endif
28421
28422 int
28423 main ()
28424 {
28425
28426 #if DB_VERSION_MAJOR > 1
28427         {
28428                 char *version;
28429                 int major, minor, patch;
28430
28431                 version = db_version( &major, &minor, &patch );
28432
28433                 if( major != DB_VERSION_MAJOR ||
28434                         minor < DB_VERSION_MINOR )
28435                 {
28436                         printf("Berkeley DB version mismatch\n"
28437                                 "\theader: %s\n\tlibrary: %s\n",
28438                                 DB_VERSION_STRING, version);
28439                         return 1;
28440                 }
28441         }
28442 #endif
28443
28444 #if DB_VERSION_MAJOR > 2
28445         db_env_create( NULL, 0 );
28446 #elif DB_VERSION_MAJOR > 1
28447         db_appexit( NULL );
28448 #else
28449         (void) dbopen( NULL, 0, 0, 0, NULL);
28450 #endif
28451
28452   ;
28453   return 0;
28454 }
28455 _ACEOF
28456 rm -f conftest.$ac_objext conftest$ac_exeext
28457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28458   (eval $ac_link) 2>conftest.er1
28459   ac_status=$?
28460   grep -v '^ *+' conftest.er1 >conftest.err
28461   rm -f conftest.er1
28462   cat conftest.err >&5
28463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464   (exit $ac_status); } &&
28465          { ac_try='test -z "$ac_c_werror_flag"
28466                          || test ! -s conftest.err'
28467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28468   (eval $ac_try) 2>&5
28469   ac_status=$?
28470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471   (exit $ac_status); }; } &&
28472          { ac_try='test -s conftest$ac_exeext'
28473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28474   (eval $ac_try) 2>&5
28475   ac_status=$?
28476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477   (exit $ac_status); }; }; then
28478   ol_cv_db_db_44=yes
28479 else
28480   echo "$as_me: failed program was:" >&5
28481 sed 's/^/| /' conftest.$ac_ext >&5
28482
28483 ol_cv_db_db_44=no
28484 fi
28485 rm -f conftest.err conftest.$ac_objext \
28486       conftest$ac_exeext conftest.$ac_ext
28487
28488         LIBS="$ol_LIBS"
28489
28490 fi
28491 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28492 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28493
28494         if test $ol_cv_db_db_44 = yes ; then
28495                 ol_cv_lib_db=-ldb-44
28496         fi
28497 fi
28498
28499                 if test $ol_cv_lib_db = no ; then
28500         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28501 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28502 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28503   echo $ECHO_N "(cached) $ECHO_C" >&6
28504 else
28505
28506         ol_DB_LIB=-ldb-4.4
28507         ol_LIBS=$LIBS
28508         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28509
28510         cat >conftest.$ac_ext <<_ACEOF
28511 /* confdefs.h.  */
28512 _ACEOF
28513 cat confdefs.h >>conftest.$ac_ext
28514 cat >>conftest.$ac_ext <<_ACEOF
28515 /* end confdefs.h.  */
28516
28517 #ifdef HAVE_DB_185_H
28518 # include <db_185.h>
28519 #else
28520 # include <db.h>
28521 #endif
28522
28523 #ifndef DB_VERSION_MAJOR
28524 # define DB_VERSION_MAJOR 1
28525 #endif
28526
28527 #ifndef NULL
28528 #define NULL ((void*)0)
28529 #endif
28530
28531 int
28532 main ()
28533 {
28534
28535 #if DB_VERSION_MAJOR > 1
28536         {
28537                 char *version;
28538                 int major, minor, patch;
28539
28540                 version = db_version( &major, &minor, &patch );
28541
28542                 if( major != DB_VERSION_MAJOR ||
28543                         minor < DB_VERSION_MINOR )
28544                 {
28545                         printf("Berkeley DB version mismatch\n"
28546                                 "\theader: %s\n\tlibrary: %s\n",
28547                                 DB_VERSION_STRING, version);
28548                         return 1;
28549                 }
28550         }
28551 #endif
28552
28553 #if DB_VERSION_MAJOR > 2
28554         db_env_create( NULL, 0 );
28555 #elif DB_VERSION_MAJOR > 1
28556         db_appexit( NULL );
28557 #else
28558         (void) dbopen( NULL, 0, 0, 0, NULL);
28559 #endif
28560
28561   ;
28562   return 0;
28563 }
28564 _ACEOF
28565 rm -f conftest.$ac_objext conftest$ac_exeext
28566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28567   (eval $ac_link) 2>conftest.er1
28568   ac_status=$?
28569   grep -v '^ *+' conftest.er1 >conftest.err
28570   rm -f conftest.er1
28571   cat conftest.err >&5
28572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573   (exit $ac_status); } &&
28574          { ac_try='test -z "$ac_c_werror_flag"
28575                          || test ! -s conftest.err'
28576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28577   (eval $ac_try) 2>&5
28578   ac_status=$?
28579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28580   (exit $ac_status); }; } &&
28581          { ac_try='test -s conftest$ac_exeext'
28582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28583   (eval $ac_try) 2>&5
28584   ac_status=$?
28585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586   (exit $ac_status); }; }; then
28587   ol_cv_db_db_4_dot_4=yes
28588 else
28589   echo "$as_me: failed program was:" >&5
28590 sed 's/^/| /' conftest.$ac_ext >&5
28591
28592 ol_cv_db_db_4_dot_4=no
28593 fi
28594 rm -f conftest.err conftest.$ac_objext \
28595       conftest$ac_exeext conftest.$ac_ext
28596
28597         LIBS="$ol_LIBS"
28598
28599 fi
28600 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28601 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28602
28603         if test $ol_cv_db_db_4_dot_4 = yes ; then
28604                 ol_cv_lib_db=-ldb-4.4
28605         fi
28606 fi
28607
28608                 if test $ol_cv_lib_db = no ; then
28609         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28610 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28611 if test "${ol_cv_db_db_4_4+set}" = set; then
28612   echo $ECHO_N "(cached) $ECHO_C" >&6
28613 else
28614
28615         ol_DB_LIB=-ldb-4-4
28616         ol_LIBS=$LIBS
28617         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28618
28619         cat >conftest.$ac_ext <<_ACEOF
28620 /* confdefs.h.  */
28621 _ACEOF
28622 cat confdefs.h >>conftest.$ac_ext
28623 cat >>conftest.$ac_ext <<_ACEOF
28624 /* end confdefs.h.  */
28625
28626 #ifdef HAVE_DB_185_H
28627 # include <db_185.h>
28628 #else
28629 # include <db.h>
28630 #endif
28631
28632 #ifndef DB_VERSION_MAJOR
28633 # define DB_VERSION_MAJOR 1
28634 #endif
28635
28636 #ifndef NULL
28637 #define NULL ((void*)0)
28638 #endif
28639
28640 int
28641 main ()
28642 {
28643
28644 #if DB_VERSION_MAJOR > 1
28645         {
28646                 char *version;
28647                 int major, minor, patch;
28648
28649                 version = db_version( &major, &minor, &patch );
28650
28651                 if( major != DB_VERSION_MAJOR ||
28652                         minor < DB_VERSION_MINOR )
28653                 {
28654                         printf("Berkeley DB version mismatch\n"
28655                                 "\theader: %s\n\tlibrary: %s\n",
28656                                 DB_VERSION_STRING, version);
28657                         return 1;
28658                 }
28659         }
28660 #endif
28661
28662 #if DB_VERSION_MAJOR > 2
28663         db_env_create( NULL, 0 );
28664 #elif DB_VERSION_MAJOR > 1
28665         db_appexit( NULL );
28666 #else
28667         (void) dbopen( NULL, 0, 0, 0, NULL);
28668 #endif
28669
28670   ;
28671   return 0;
28672 }
28673 _ACEOF
28674 rm -f conftest.$ac_objext conftest$ac_exeext
28675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28676   (eval $ac_link) 2>conftest.er1
28677   ac_status=$?
28678   grep -v '^ *+' conftest.er1 >conftest.err
28679   rm -f conftest.er1
28680   cat conftest.err >&5
28681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682   (exit $ac_status); } &&
28683          { ac_try='test -z "$ac_c_werror_flag"
28684                          || test ! -s conftest.err'
28685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28686   (eval $ac_try) 2>&5
28687   ac_status=$?
28688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689   (exit $ac_status); }; } &&
28690          { ac_try='test -s conftest$ac_exeext'
28691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28692   (eval $ac_try) 2>&5
28693   ac_status=$?
28694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695   (exit $ac_status); }; }; then
28696   ol_cv_db_db_4_4=yes
28697 else
28698   echo "$as_me: failed program was:" >&5
28699 sed 's/^/| /' conftest.$ac_ext >&5
28700
28701 ol_cv_db_db_4_4=no
28702 fi
28703 rm -f conftest.err conftest.$ac_objext \
28704       conftest$ac_exeext conftest.$ac_ext
28705
28706         LIBS="$ol_LIBS"
28707
28708 fi
28709 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28710 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28711
28712         if test $ol_cv_db_db_4_4 = yes ; then
28713                 ol_cv_lib_db=-ldb-4-4
28714         fi
28715 fi
28716
28717         elif test $ol_cv_bdb_minor = 3 ; then
28718                 if test $ol_cv_lib_db = no ; then
28719         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28720 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28721 if test "${ol_cv_db_db43+set}" = set; then
28722   echo $ECHO_N "(cached) $ECHO_C" >&6
28723 else
28724
28725         ol_DB_LIB=-ldb43
28726         ol_LIBS=$LIBS
28727         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28728
28729         cat >conftest.$ac_ext <<_ACEOF
28730 /* confdefs.h.  */
28731 _ACEOF
28732 cat confdefs.h >>conftest.$ac_ext
28733 cat >>conftest.$ac_ext <<_ACEOF
28734 /* end confdefs.h.  */
28735
28736 #ifdef HAVE_DB_185_H
28737 # include <db_185.h>
28738 #else
28739 # include <db.h>
28740 #endif
28741
28742 #ifndef DB_VERSION_MAJOR
28743 # define DB_VERSION_MAJOR 1
28744 #endif
28745
28746 #ifndef NULL
28747 #define NULL ((void*)0)
28748 #endif
28749
28750 int
28751 main ()
28752 {
28753
28754 #if DB_VERSION_MAJOR > 1
28755         {
28756                 char *version;
28757                 int major, minor, patch;
28758
28759                 version = db_version( &major, &minor, &patch );
28760
28761                 if( major != DB_VERSION_MAJOR ||
28762                         minor < DB_VERSION_MINOR )
28763                 {
28764                         printf("Berkeley DB version mismatch\n"
28765                                 "\theader: %s\n\tlibrary: %s\n",
28766                                 DB_VERSION_STRING, version);
28767                         return 1;
28768                 }
28769         }
28770 #endif
28771
28772 #if DB_VERSION_MAJOR > 2
28773         db_env_create( NULL, 0 );
28774 #elif DB_VERSION_MAJOR > 1
28775         db_appexit( NULL );
28776 #else
28777         (void) dbopen( NULL, 0, 0, 0, NULL);
28778 #endif
28779
28780   ;
28781   return 0;
28782 }
28783 _ACEOF
28784 rm -f conftest.$ac_objext conftest$ac_exeext
28785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28786   (eval $ac_link) 2>conftest.er1
28787   ac_status=$?
28788   grep -v '^ *+' conftest.er1 >conftest.err
28789   rm -f conftest.er1
28790   cat conftest.err >&5
28791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792   (exit $ac_status); } &&
28793          { ac_try='test -z "$ac_c_werror_flag"
28794                          || test ! -s conftest.err'
28795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28796   (eval $ac_try) 2>&5
28797   ac_status=$?
28798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799   (exit $ac_status); }; } &&
28800          { ac_try='test -s conftest$ac_exeext'
28801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28802   (eval $ac_try) 2>&5
28803   ac_status=$?
28804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805   (exit $ac_status); }; }; then
28806   ol_cv_db_db43=yes
28807 else
28808   echo "$as_me: failed program was:" >&5
28809 sed 's/^/| /' conftest.$ac_ext >&5
28810
28811 ol_cv_db_db43=no
28812 fi
28813 rm -f conftest.err conftest.$ac_objext \
28814       conftest$ac_exeext conftest.$ac_ext
28815
28816         LIBS="$ol_LIBS"
28817
28818 fi
28819 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28820 echo "${ECHO_T}$ol_cv_db_db43" >&6
28821
28822         if test $ol_cv_db_db43 = yes ; then
28823                 ol_cv_lib_db=-ldb43
28824         fi
28825 fi
28826
28827                 if test $ol_cv_lib_db = no ; then
28828         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28829 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28830 if test "${ol_cv_db_db_43+set}" = set; then
28831   echo $ECHO_N "(cached) $ECHO_C" >&6
28832 else
28833
28834         ol_DB_LIB=-ldb-43
28835         ol_LIBS=$LIBS
28836         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28837
28838         cat >conftest.$ac_ext <<_ACEOF
28839 /* confdefs.h.  */
28840 _ACEOF
28841 cat confdefs.h >>conftest.$ac_ext
28842 cat >>conftest.$ac_ext <<_ACEOF
28843 /* end confdefs.h.  */
28844
28845 #ifdef HAVE_DB_185_H
28846 # include <db_185.h>
28847 #else
28848 # include <db.h>
28849 #endif
28850
28851 #ifndef DB_VERSION_MAJOR
28852 # define DB_VERSION_MAJOR 1
28853 #endif
28854
28855 #ifndef NULL
28856 #define NULL ((void*)0)
28857 #endif
28858
28859 int
28860 main ()
28861 {
28862
28863 #if DB_VERSION_MAJOR > 1
28864         {
28865                 char *version;
28866                 int major, minor, patch;
28867
28868                 version = db_version( &major, &minor, &patch );
28869
28870                 if( major != DB_VERSION_MAJOR ||
28871                         minor < DB_VERSION_MINOR )
28872                 {
28873                         printf("Berkeley DB version mismatch\n"
28874                                 "\theader: %s\n\tlibrary: %s\n",
28875                                 DB_VERSION_STRING, version);
28876                         return 1;
28877                 }
28878         }
28879 #endif
28880
28881 #if DB_VERSION_MAJOR > 2
28882         db_env_create( NULL, 0 );
28883 #elif DB_VERSION_MAJOR > 1
28884         db_appexit( NULL );
28885 #else
28886         (void) dbopen( NULL, 0, 0, 0, NULL);
28887 #endif
28888
28889   ;
28890   return 0;
28891 }
28892 _ACEOF
28893 rm -f conftest.$ac_objext conftest$ac_exeext
28894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28895   (eval $ac_link) 2>conftest.er1
28896   ac_status=$?
28897   grep -v '^ *+' conftest.er1 >conftest.err
28898   rm -f conftest.er1
28899   cat conftest.err >&5
28900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901   (exit $ac_status); } &&
28902          { ac_try='test -z "$ac_c_werror_flag"
28903                          || test ! -s conftest.err'
28904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905   (eval $ac_try) 2>&5
28906   ac_status=$?
28907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908   (exit $ac_status); }; } &&
28909          { ac_try='test -s conftest$ac_exeext'
28910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28911   (eval $ac_try) 2>&5
28912   ac_status=$?
28913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914   (exit $ac_status); }; }; then
28915   ol_cv_db_db_43=yes
28916 else
28917   echo "$as_me: failed program was:" >&5
28918 sed 's/^/| /' conftest.$ac_ext >&5
28919
28920 ol_cv_db_db_43=no
28921 fi
28922 rm -f conftest.err conftest.$ac_objext \
28923       conftest$ac_exeext conftest.$ac_ext
28924
28925         LIBS="$ol_LIBS"
28926
28927 fi
28928 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28929 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28930
28931         if test $ol_cv_db_db_43 = yes ; then
28932                 ol_cv_lib_db=-ldb-43
28933         fi
28934 fi
28935
28936                 if test $ol_cv_lib_db = no ; then
28937         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28938 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28939 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28940   echo $ECHO_N "(cached) $ECHO_C" >&6
28941 else
28942
28943         ol_DB_LIB=-ldb-4.3
28944         ol_LIBS=$LIBS
28945         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28946
28947         cat >conftest.$ac_ext <<_ACEOF
28948 /* confdefs.h.  */
28949 _ACEOF
28950 cat confdefs.h >>conftest.$ac_ext
28951 cat >>conftest.$ac_ext <<_ACEOF
28952 /* end confdefs.h.  */
28953
28954 #ifdef HAVE_DB_185_H
28955 # include <db_185.h>
28956 #else
28957 # include <db.h>
28958 #endif
28959
28960 #ifndef DB_VERSION_MAJOR
28961 # define DB_VERSION_MAJOR 1
28962 #endif
28963
28964 #ifndef NULL
28965 #define NULL ((void*)0)
28966 #endif
28967
28968 int
28969 main ()
28970 {
28971
28972 #if DB_VERSION_MAJOR > 1
28973         {
28974                 char *version;
28975                 int major, minor, patch;
28976
28977                 version = db_version( &major, &minor, &patch );
28978
28979                 if( major != DB_VERSION_MAJOR ||
28980                         minor < DB_VERSION_MINOR )
28981                 {
28982                         printf("Berkeley DB version mismatch\n"
28983                                 "\theader: %s\n\tlibrary: %s\n",
28984                                 DB_VERSION_STRING, version);
28985                         return 1;
28986                 }
28987         }
28988 #endif
28989
28990 #if DB_VERSION_MAJOR > 2
28991         db_env_create( NULL, 0 );
28992 #elif DB_VERSION_MAJOR > 1
28993         db_appexit( NULL );
28994 #else
28995         (void) dbopen( NULL, 0, 0, 0, NULL);
28996 #endif
28997
28998   ;
28999   return 0;
29000 }
29001 _ACEOF
29002 rm -f conftest.$ac_objext conftest$ac_exeext
29003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29004   (eval $ac_link) 2>conftest.er1
29005   ac_status=$?
29006   grep -v '^ *+' conftest.er1 >conftest.err
29007   rm -f conftest.er1
29008   cat conftest.err >&5
29009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010   (exit $ac_status); } &&
29011          { ac_try='test -z "$ac_c_werror_flag"
29012                          || test ! -s conftest.err'
29013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29014   (eval $ac_try) 2>&5
29015   ac_status=$?
29016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017   (exit $ac_status); }; } &&
29018          { ac_try='test -s conftest$ac_exeext'
29019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29020   (eval $ac_try) 2>&5
29021   ac_status=$?
29022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023   (exit $ac_status); }; }; then
29024   ol_cv_db_db_4_dot_3=yes
29025 else
29026   echo "$as_me: failed program was:" >&5
29027 sed 's/^/| /' conftest.$ac_ext >&5
29028
29029 ol_cv_db_db_4_dot_3=no
29030 fi
29031 rm -f conftest.err conftest.$ac_objext \
29032       conftest$ac_exeext conftest.$ac_ext
29033
29034         LIBS="$ol_LIBS"
29035
29036 fi
29037 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29038 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29039
29040         if test $ol_cv_db_db_4_dot_3 = yes ; then
29041                 ol_cv_lib_db=-ldb-4.3
29042         fi
29043 fi
29044
29045                 if test $ol_cv_lib_db = no ; then
29046         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29047 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29048 if test "${ol_cv_db_db_4_3+set}" = set; then
29049   echo $ECHO_N "(cached) $ECHO_C" >&6
29050 else
29051
29052         ol_DB_LIB=-ldb-4-3
29053         ol_LIBS=$LIBS
29054         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29055
29056         cat >conftest.$ac_ext <<_ACEOF
29057 /* confdefs.h.  */
29058 _ACEOF
29059 cat confdefs.h >>conftest.$ac_ext
29060 cat >>conftest.$ac_ext <<_ACEOF
29061 /* end confdefs.h.  */
29062
29063 #ifdef HAVE_DB_185_H
29064 # include <db_185.h>
29065 #else
29066 # include <db.h>
29067 #endif
29068
29069 #ifndef DB_VERSION_MAJOR
29070 # define DB_VERSION_MAJOR 1
29071 #endif
29072
29073 #ifndef NULL
29074 #define NULL ((void*)0)
29075 #endif
29076
29077 int
29078 main ()
29079 {
29080
29081 #if DB_VERSION_MAJOR > 1
29082         {
29083                 char *version;
29084                 int major, minor, patch;
29085
29086                 version = db_version( &major, &minor, &patch );
29087
29088                 if( major != DB_VERSION_MAJOR ||
29089                         minor < DB_VERSION_MINOR )
29090                 {
29091                         printf("Berkeley DB version mismatch\n"
29092                                 "\theader: %s\n\tlibrary: %s\n",
29093                                 DB_VERSION_STRING, version);
29094                         return 1;
29095                 }
29096         }
29097 #endif
29098
29099 #if DB_VERSION_MAJOR > 2
29100         db_env_create( NULL, 0 );
29101 #elif DB_VERSION_MAJOR > 1
29102         db_appexit( NULL );
29103 #else
29104         (void) dbopen( NULL, 0, 0, 0, NULL);
29105 #endif
29106
29107   ;
29108   return 0;
29109 }
29110 _ACEOF
29111 rm -f conftest.$ac_objext conftest$ac_exeext
29112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29113   (eval $ac_link) 2>conftest.er1
29114   ac_status=$?
29115   grep -v '^ *+' conftest.er1 >conftest.err
29116   rm -f conftest.er1
29117   cat conftest.err >&5
29118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119   (exit $ac_status); } &&
29120          { ac_try='test -z "$ac_c_werror_flag"
29121                          || test ! -s conftest.err'
29122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29123   (eval $ac_try) 2>&5
29124   ac_status=$?
29125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126   (exit $ac_status); }; } &&
29127          { ac_try='test -s conftest$ac_exeext'
29128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29129   (eval $ac_try) 2>&5
29130   ac_status=$?
29131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132   (exit $ac_status); }; }; then
29133   ol_cv_db_db_4_3=yes
29134 else
29135   echo "$as_me: failed program was:" >&5
29136 sed 's/^/| /' conftest.$ac_ext >&5
29137
29138 ol_cv_db_db_4_3=no
29139 fi
29140 rm -f conftest.err conftest.$ac_objext \
29141       conftest$ac_exeext conftest.$ac_ext
29142
29143         LIBS="$ol_LIBS"
29144
29145 fi
29146 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29147 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29148
29149         if test $ol_cv_db_db_4_3 = yes ; then
29150                 ol_cv_lib_db=-ldb-4-3
29151         fi
29152 fi
29153
29154         elif test $ol_cv_bdb_minor = 2 ; then
29155                 if test $ol_cv_lib_db = no ; then
29156         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29157 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29158 if test "${ol_cv_db_db42+set}" = set; then
29159   echo $ECHO_N "(cached) $ECHO_C" >&6
29160 else
29161
29162         ol_DB_LIB=-ldb42
29163         ol_LIBS=$LIBS
29164         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29165
29166         cat >conftest.$ac_ext <<_ACEOF
29167 /* confdefs.h.  */
29168 _ACEOF
29169 cat confdefs.h >>conftest.$ac_ext
29170 cat >>conftest.$ac_ext <<_ACEOF
29171 /* end confdefs.h.  */
29172
29173 #ifdef HAVE_DB_185_H
29174 # include <db_185.h>
29175 #else
29176 # include <db.h>
29177 #endif
29178
29179 #ifndef DB_VERSION_MAJOR
29180 # define DB_VERSION_MAJOR 1
29181 #endif
29182
29183 #ifndef NULL
29184 #define NULL ((void*)0)
29185 #endif
29186
29187 int
29188 main ()
29189 {
29190
29191 #if DB_VERSION_MAJOR > 1
29192         {
29193                 char *version;
29194                 int major, minor, patch;
29195
29196                 version = db_version( &major, &minor, &patch );
29197
29198                 if( major != DB_VERSION_MAJOR ||
29199                         minor < DB_VERSION_MINOR )
29200                 {
29201                         printf("Berkeley DB version mismatch\n"
29202                                 "\theader: %s\n\tlibrary: %s\n",
29203                                 DB_VERSION_STRING, version);
29204                         return 1;
29205                 }
29206         }
29207 #endif
29208
29209 #if DB_VERSION_MAJOR > 2
29210         db_env_create( NULL, 0 );
29211 #elif DB_VERSION_MAJOR > 1
29212         db_appexit( NULL );
29213 #else
29214         (void) dbopen( NULL, 0, 0, 0, NULL);
29215 #endif
29216
29217   ;
29218   return 0;
29219 }
29220 _ACEOF
29221 rm -f conftest.$ac_objext conftest$ac_exeext
29222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29223   (eval $ac_link) 2>conftest.er1
29224   ac_status=$?
29225   grep -v '^ *+' conftest.er1 >conftest.err
29226   rm -f conftest.er1
29227   cat conftest.err >&5
29228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229   (exit $ac_status); } &&
29230          { ac_try='test -z "$ac_c_werror_flag"
29231                          || test ! -s conftest.err'
29232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29233   (eval $ac_try) 2>&5
29234   ac_status=$?
29235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236   (exit $ac_status); }; } &&
29237          { ac_try='test -s conftest$ac_exeext'
29238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29239   (eval $ac_try) 2>&5
29240   ac_status=$?
29241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242   (exit $ac_status); }; }; then
29243   ol_cv_db_db42=yes
29244 else
29245   echo "$as_me: failed program was:" >&5
29246 sed 's/^/| /' conftest.$ac_ext >&5
29247
29248 ol_cv_db_db42=no
29249 fi
29250 rm -f conftest.err conftest.$ac_objext \
29251       conftest$ac_exeext conftest.$ac_ext
29252
29253         LIBS="$ol_LIBS"
29254
29255 fi
29256 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29257 echo "${ECHO_T}$ol_cv_db_db42" >&6
29258
29259         if test $ol_cv_db_db42 = yes ; then
29260                 ol_cv_lib_db=-ldb42
29261         fi
29262 fi
29263
29264                 if test $ol_cv_lib_db = no ; then
29265         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29266 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29267 if test "${ol_cv_db_db_42+set}" = set; then
29268   echo $ECHO_N "(cached) $ECHO_C" >&6
29269 else
29270
29271         ol_DB_LIB=-ldb-42
29272         ol_LIBS=$LIBS
29273         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29274
29275         cat >conftest.$ac_ext <<_ACEOF
29276 /* confdefs.h.  */
29277 _ACEOF
29278 cat confdefs.h >>conftest.$ac_ext
29279 cat >>conftest.$ac_ext <<_ACEOF
29280 /* end confdefs.h.  */
29281
29282 #ifdef HAVE_DB_185_H
29283 # include <db_185.h>
29284 #else
29285 # include <db.h>
29286 #endif
29287
29288 #ifndef DB_VERSION_MAJOR
29289 # define DB_VERSION_MAJOR 1
29290 #endif
29291
29292 #ifndef NULL
29293 #define NULL ((void*)0)
29294 #endif
29295
29296 int
29297 main ()
29298 {
29299
29300 #if DB_VERSION_MAJOR > 1
29301         {
29302                 char *version;
29303                 int major, minor, patch;
29304
29305                 version = db_version( &major, &minor, &patch );
29306
29307                 if( major != DB_VERSION_MAJOR ||
29308                         minor < DB_VERSION_MINOR )
29309                 {
29310                         printf("Berkeley DB version mismatch\n"
29311                                 "\theader: %s\n\tlibrary: %s\n",
29312                                 DB_VERSION_STRING, version);
29313                         return 1;
29314                 }
29315         }
29316 #endif
29317
29318 #if DB_VERSION_MAJOR > 2
29319         db_env_create( NULL, 0 );
29320 #elif DB_VERSION_MAJOR > 1
29321         db_appexit( NULL );
29322 #else
29323         (void) dbopen( NULL, 0, 0, 0, NULL);
29324 #endif
29325
29326   ;
29327   return 0;
29328 }
29329 _ACEOF
29330 rm -f conftest.$ac_objext conftest$ac_exeext
29331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29332   (eval $ac_link) 2>conftest.er1
29333   ac_status=$?
29334   grep -v '^ *+' conftest.er1 >conftest.err
29335   rm -f conftest.er1
29336   cat conftest.err >&5
29337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338   (exit $ac_status); } &&
29339          { ac_try='test -z "$ac_c_werror_flag"
29340                          || test ! -s conftest.err'
29341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29342   (eval $ac_try) 2>&5
29343   ac_status=$?
29344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345   (exit $ac_status); }; } &&
29346          { ac_try='test -s conftest$ac_exeext'
29347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29348   (eval $ac_try) 2>&5
29349   ac_status=$?
29350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351   (exit $ac_status); }; }; then
29352   ol_cv_db_db_42=yes
29353 else
29354   echo "$as_me: failed program was:" >&5
29355 sed 's/^/| /' conftest.$ac_ext >&5
29356
29357 ol_cv_db_db_42=no
29358 fi
29359 rm -f conftest.err conftest.$ac_objext \
29360       conftest$ac_exeext conftest.$ac_ext
29361
29362         LIBS="$ol_LIBS"
29363
29364 fi
29365 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29366 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29367
29368         if test $ol_cv_db_db_42 = yes ; then
29369                 ol_cv_lib_db=-ldb-42
29370         fi
29371 fi
29372
29373                 if test $ol_cv_lib_db = no ; then
29374         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29375 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29376 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29377   echo $ECHO_N "(cached) $ECHO_C" >&6
29378 else
29379
29380         ol_DB_LIB=-ldb-4.2
29381         ol_LIBS=$LIBS
29382         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29383
29384         cat >conftest.$ac_ext <<_ACEOF
29385 /* confdefs.h.  */
29386 _ACEOF
29387 cat confdefs.h >>conftest.$ac_ext
29388 cat >>conftest.$ac_ext <<_ACEOF
29389 /* end confdefs.h.  */
29390
29391 #ifdef HAVE_DB_185_H
29392 # include <db_185.h>
29393 #else
29394 # include <db.h>
29395 #endif
29396
29397 #ifndef DB_VERSION_MAJOR
29398 # define DB_VERSION_MAJOR 1
29399 #endif
29400
29401 #ifndef NULL
29402 #define NULL ((void*)0)
29403 #endif
29404
29405 int
29406 main ()
29407 {
29408
29409 #if DB_VERSION_MAJOR > 1
29410         {
29411                 char *version;
29412                 int major, minor, patch;
29413
29414                 version = db_version( &major, &minor, &patch );
29415
29416                 if( major != DB_VERSION_MAJOR ||
29417                         minor < DB_VERSION_MINOR )
29418                 {
29419                         printf("Berkeley DB version mismatch\n"
29420                                 "\theader: %s\n\tlibrary: %s\n",
29421                                 DB_VERSION_STRING, version);
29422                         return 1;
29423                 }
29424         }
29425 #endif
29426
29427 #if DB_VERSION_MAJOR > 2
29428         db_env_create( NULL, 0 );
29429 #elif DB_VERSION_MAJOR > 1
29430         db_appexit( NULL );
29431 #else
29432         (void) dbopen( NULL, 0, 0, 0, NULL);
29433 #endif
29434
29435   ;
29436   return 0;
29437 }
29438 _ACEOF
29439 rm -f conftest.$ac_objext conftest$ac_exeext
29440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29441   (eval $ac_link) 2>conftest.er1
29442   ac_status=$?
29443   grep -v '^ *+' conftest.er1 >conftest.err
29444   rm -f conftest.er1
29445   cat conftest.err >&5
29446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447   (exit $ac_status); } &&
29448          { ac_try='test -z "$ac_c_werror_flag"
29449                          || test ! -s conftest.err'
29450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29451   (eval $ac_try) 2>&5
29452   ac_status=$?
29453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454   (exit $ac_status); }; } &&
29455          { ac_try='test -s conftest$ac_exeext'
29456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29457   (eval $ac_try) 2>&5
29458   ac_status=$?
29459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460   (exit $ac_status); }; }; then
29461   ol_cv_db_db_4_dot_2=yes
29462 else
29463   echo "$as_me: failed program was:" >&5
29464 sed 's/^/| /' conftest.$ac_ext >&5
29465
29466 ol_cv_db_db_4_dot_2=no
29467 fi
29468 rm -f conftest.err conftest.$ac_objext \
29469       conftest$ac_exeext conftest.$ac_ext
29470
29471         LIBS="$ol_LIBS"
29472
29473 fi
29474 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29475 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29476
29477         if test $ol_cv_db_db_4_dot_2 = yes ; then
29478                 ol_cv_lib_db=-ldb-4.2
29479         fi
29480 fi
29481
29482                 if test $ol_cv_lib_db = no ; then
29483         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29484 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29485 if test "${ol_cv_db_db_4_2+set}" = set; then
29486   echo $ECHO_N "(cached) $ECHO_C" >&6
29487 else
29488
29489         ol_DB_LIB=-ldb-4-2
29490         ol_LIBS=$LIBS
29491         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29492
29493         cat >conftest.$ac_ext <<_ACEOF
29494 /* confdefs.h.  */
29495 _ACEOF
29496 cat confdefs.h >>conftest.$ac_ext
29497 cat >>conftest.$ac_ext <<_ACEOF
29498 /* end confdefs.h.  */
29499
29500 #ifdef HAVE_DB_185_H
29501 # include <db_185.h>
29502 #else
29503 # include <db.h>
29504 #endif
29505
29506 #ifndef DB_VERSION_MAJOR
29507 # define DB_VERSION_MAJOR 1
29508 #endif
29509
29510 #ifndef NULL
29511 #define NULL ((void*)0)
29512 #endif
29513
29514 int
29515 main ()
29516 {
29517
29518 #if DB_VERSION_MAJOR > 1
29519         {
29520                 char *version;
29521                 int major, minor, patch;
29522
29523                 version = db_version( &major, &minor, &patch );
29524
29525                 if( major != DB_VERSION_MAJOR ||
29526                         minor < DB_VERSION_MINOR )
29527                 {
29528                         printf("Berkeley DB version mismatch\n"
29529                                 "\theader: %s\n\tlibrary: %s\n",
29530                                 DB_VERSION_STRING, version);
29531                         return 1;
29532                 }
29533         }
29534 #endif
29535
29536 #if DB_VERSION_MAJOR > 2
29537         db_env_create( NULL, 0 );
29538 #elif DB_VERSION_MAJOR > 1
29539         db_appexit( NULL );
29540 #else
29541         (void) dbopen( NULL, 0, 0, 0, NULL);
29542 #endif
29543
29544   ;
29545   return 0;
29546 }
29547 _ACEOF
29548 rm -f conftest.$ac_objext conftest$ac_exeext
29549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29550   (eval $ac_link) 2>conftest.er1
29551   ac_status=$?
29552   grep -v '^ *+' conftest.er1 >conftest.err
29553   rm -f conftest.er1
29554   cat conftest.err >&5
29555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556   (exit $ac_status); } &&
29557          { ac_try='test -z "$ac_c_werror_flag"
29558                          || test ! -s conftest.err'
29559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29560   (eval $ac_try) 2>&5
29561   ac_status=$?
29562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563   (exit $ac_status); }; } &&
29564          { ac_try='test -s conftest$ac_exeext'
29565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29566   (eval $ac_try) 2>&5
29567   ac_status=$?
29568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569   (exit $ac_status); }; }; then
29570   ol_cv_db_db_4_2=yes
29571 else
29572   echo "$as_me: failed program was:" >&5
29573 sed 's/^/| /' conftest.$ac_ext >&5
29574
29575 ol_cv_db_db_4_2=no
29576 fi
29577 rm -f conftest.err conftest.$ac_objext \
29578       conftest$ac_exeext conftest.$ac_ext
29579
29580         LIBS="$ol_LIBS"
29581
29582 fi
29583 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29584 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29585
29586         if test $ol_cv_db_db_4_2 = yes ; then
29587                 ol_cv_lib_db=-ldb-4-2
29588         fi
29589 fi
29590
29591         elif test $ol_cv_bdb_minor = 1 ; then
29592                 if test $ol_cv_lib_db = no ; then
29593         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29594 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29595 if test "${ol_cv_db_db41+set}" = set; then
29596   echo $ECHO_N "(cached) $ECHO_C" >&6
29597 else
29598
29599         ol_DB_LIB=-ldb41
29600         ol_LIBS=$LIBS
29601         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29602
29603         cat >conftest.$ac_ext <<_ACEOF
29604 /* confdefs.h.  */
29605 _ACEOF
29606 cat confdefs.h >>conftest.$ac_ext
29607 cat >>conftest.$ac_ext <<_ACEOF
29608 /* end confdefs.h.  */
29609
29610 #ifdef HAVE_DB_185_H
29611 # include <db_185.h>
29612 #else
29613 # include <db.h>
29614 #endif
29615
29616 #ifndef DB_VERSION_MAJOR
29617 # define DB_VERSION_MAJOR 1
29618 #endif
29619
29620 #ifndef NULL
29621 #define NULL ((void*)0)
29622 #endif
29623
29624 int
29625 main ()
29626 {
29627
29628 #if DB_VERSION_MAJOR > 1
29629         {
29630                 char *version;
29631                 int major, minor, patch;
29632
29633                 version = db_version( &major, &minor, &patch );
29634
29635                 if( major != DB_VERSION_MAJOR ||
29636                         minor < DB_VERSION_MINOR )
29637                 {
29638                         printf("Berkeley DB version mismatch\n"
29639                                 "\theader: %s\n\tlibrary: %s\n",
29640                                 DB_VERSION_STRING, version);
29641                         return 1;
29642                 }
29643         }
29644 #endif
29645
29646 #if DB_VERSION_MAJOR > 2
29647         db_env_create( NULL, 0 );
29648 #elif DB_VERSION_MAJOR > 1
29649         db_appexit( NULL );
29650 #else
29651         (void) dbopen( NULL, 0, 0, 0, NULL);
29652 #endif
29653
29654   ;
29655   return 0;
29656 }
29657 _ACEOF
29658 rm -f conftest.$ac_objext conftest$ac_exeext
29659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29660   (eval $ac_link) 2>conftest.er1
29661   ac_status=$?
29662   grep -v '^ *+' conftest.er1 >conftest.err
29663   rm -f conftest.er1
29664   cat conftest.err >&5
29665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666   (exit $ac_status); } &&
29667          { ac_try='test -z "$ac_c_werror_flag"
29668                          || test ! -s conftest.err'
29669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29670   (eval $ac_try) 2>&5
29671   ac_status=$?
29672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673   (exit $ac_status); }; } &&
29674          { ac_try='test -s conftest$ac_exeext'
29675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29676   (eval $ac_try) 2>&5
29677   ac_status=$?
29678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679   (exit $ac_status); }; }; then
29680   ol_cv_db_db41=yes
29681 else
29682   echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29684
29685 ol_cv_db_db41=no
29686 fi
29687 rm -f conftest.err conftest.$ac_objext \
29688       conftest$ac_exeext conftest.$ac_ext
29689
29690         LIBS="$ol_LIBS"
29691
29692 fi
29693 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29694 echo "${ECHO_T}$ol_cv_db_db41" >&6
29695
29696         if test $ol_cv_db_db41 = yes ; then
29697                 ol_cv_lib_db=-ldb41
29698         fi
29699 fi
29700
29701                 if test $ol_cv_lib_db = no ; then
29702         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29703 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29704 if test "${ol_cv_db_db_41+set}" = set; then
29705   echo $ECHO_N "(cached) $ECHO_C" >&6
29706 else
29707
29708         ol_DB_LIB=-ldb-41
29709         ol_LIBS=$LIBS
29710         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29711
29712         cat >conftest.$ac_ext <<_ACEOF
29713 /* confdefs.h.  */
29714 _ACEOF
29715 cat confdefs.h >>conftest.$ac_ext
29716 cat >>conftest.$ac_ext <<_ACEOF
29717 /* end confdefs.h.  */
29718
29719 #ifdef HAVE_DB_185_H
29720 # include <db_185.h>
29721 #else
29722 # include <db.h>
29723 #endif
29724
29725 #ifndef DB_VERSION_MAJOR
29726 # define DB_VERSION_MAJOR 1
29727 #endif
29728
29729 #ifndef NULL
29730 #define NULL ((void*)0)
29731 #endif
29732
29733 int
29734 main ()
29735 {
29736
29737 #if DB_VERSION_MAJOR > 1
29738         {
29739                 char *version;
29740                 int major, minor, patch;
29741
29742                 version = db_version( &major, &minor, &patch );
29743
29744                 if( major != DB_VERSION_MAJOR ||
29745                         minor < DB_VERSION_MINOR )
29746                 {
29747                         printf("Berkeley DB version mismatch\n"
29748                                 "\theader: %s\n\tlibrary: %s\n",
29749                                 DB_VERSION_STRING, version);
29750                         return 1;
29751                 }
29752         }
29753 #endif
29754
29755 #if DB_VERSION_MAJOR > 2
29756         db_env_create( NULL, 0 );
29757 #elif DB_VERSION_MAJOR > 1
29758         db_appexit( NULL );
29759 #else
29760         (void) dbopen( NULL, 0, 0, 0, NULL);
29761 #endif
29762
29763   ;
29764   return 0;
29765 }
29766 _ACEOF
29767 rm -f conftest.$ac_objext conftest$ac_exeext
29768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29769   (eval $ac_link) 2>conftest.er1
29770   ac_status=$?
29771   grep -v '^ *+' conftest.er1 >conftest.err
29772   rm -f conftest.er1
29773   cat conftest.err >&5
29774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775   (exit $ac_status); } &&
29776          { ac_try='test -z "$ac_c_werror_flag"
29777                          || test ! -s conftest.err'
29778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29779   (eval $ac_try) 2>&5
29780   ac_status=$?
29781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29782   (exit $ac_status); }; } &&
29783          { ac_try='test -s conftest$ac_exeext'
29784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29785   (eval $ac_try) 2>&5
29786   ac_status=$?
29787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788   (exit $ac_status); }; }; then
29789   ol_cv_db_db_41=yes
29790 else
29791   echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.$ac_ext >&5
29793
29794 ol_cv_db_db_41=no
29795 fi
29796 rm -f conftest.err conftest.$ac_objext \
29797       conftest$ac_exeext conftest.$ac_ext
29798
29799         LIBS="$ol_LIBS"
29800
29801 fi
29802 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29803 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29804
29805         if test $ol_cv_db_db_41 = yes ; then
29806                 ol_cv_lib_db=-ldb-41
29807         fi
29808 fi
29809
29810                 if test $ol_cv_lib_db = no ; then
29811         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29812 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29813 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29814   echo $ECHO_N "(cached) $ECHO_C" >&6
29815 else
29816
29817         ol_DB_LIB=-ldb-4.1
29818         ol_LIBS=$LIBS
29819         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29820
29821         cat >conftest.$ac_ext <<_ACEOF
29822 /* confdefs.h.  */
29823 _ACEOF
29824 cat confdefs.h >>conftest.$ac_ext
29825 cat >>conftest.$ac_ext <<_ACEOF
29826 /* end confdefs.h.  */
29827
29828 #ifdef HAVE_DB_185_H
29829 # include <db_185.h>
29830 #else
29831 # include <db.h>
29832 #endif
29833
29834 #ifndef DB_VERSION_MAJOR
29835 # define DB_VERSION_MAJOR 1
29836 #endif
29837
29838 #ifndef NULL
29839 #define NULL ((void*)0)
29840 #endif
29841
29842 int
29843 main ()
29844 {
29845
29846 #if DB_VERSION_MAJOR > 1
29847         {
29848                 char *version;
29849                 int major, minor, patch;
29850
29851                 version = db_version( &major, &minor, &patch );
29852
29853                 if( major != DB_VERSION_MAJOR ||
29854                         minor < DB_VERSION_MINOR )
29855                 {
29856                         printf("Berkeley DB version mismatch\n"
29857                                 "\theader: %s\n\tlibrary: %s\n",
29858                                 DB_VERSION_STRING, version);
29859                         return 1;
29860                 }
29861         }
29862 #endif
29863
29864 #if DB_VERSION_MAJOR > 2
29865         db_env_create( NULL, 0 );
29866 #elif DB_VERSION_MAJOR > 1
29867         db_appexit( NULL );
29868 #else
29869         (void) dbopen( NULL, 0, 0, 0, NULL);
29870 #endif
29871
29872   ;
29873   return 0;
29874 }
29875 _ACEOF
29876 rm -f conftest.$ac_objext conftest$ac_exeext
29877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29878   (eval $ac_link) 2>conftest.er1
29879   ac_status=$?
29880   grep -v '^ *+' conftest.er1 >conftest.err
29881   rm -f conftest.er1
29882   cat conftest.err >&5
29883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884   (exit $ac_status); } &&
29885          { ac_try='test -z "$ac_c_werror_flag"
29886                          || test ! -s conftest.err'
29887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29888   (eval $ac_try) 2>&5
29889   ac_status=$?
29890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891   (exit $ac_status); }; } &&
29892          { ac_try='test -s conftest$ac_exeext'
29893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29894   (eval $ac_try) 2>&5
29895   ac_status=$?
29896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897   (exit $ac_status); }; }; then
29898   ol_cv_db_db_4_dot_1=yes
29899 else
29900   echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29902
29903 ol_cv_db_db_4_dot_1=no
29904 fi
29905 rm -f conftest.err conftest.$ac_objext \
29906       conftest$ac_exeext conftest.$ac_ext
29907
29908         LIBS="$ol_LIBS"
29909
29910 fi
29911 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29912 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29913
29914         if test $ol_cv_db_db_4_dot_1 = yes ; then
29915                 ol_cv_lib_db=-ldb-4.1
29916         fi
29917 fi
29918
29919                 if test $ol_cv_lib_db = no ; then
29920         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29921 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29922 if test "${ol_cv_db_db_4_1+set}" = set; then
29923   echo $ECHO_N "(cached) $ECHO_C" >&6
29924 else
29925
29926         ol_DB_LIB=-ldb-4-1
29927         ol_LIBS=$LIBS
29928         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29929
29930         cat >conftest.$ac_ext <<_ACEOF
29931 /* confdefs.h.  */
29932 _ACEOF
29933 cat confdefs.h >>conftest.$ac_ext
29934 cat >>conftest.$ac_ext <<_ACEOF
29935 /* end confdefs.h.  */
29936
29937 #ifdef HAVE_DB_185_H
29938 # include <db_185.h>
29939 #else
29940 # include <db.h>
29941 #endif
29942
29943 #ifndef DB_VERSION_MAJOR
29944 # define DB_VERSION_MAJOR 1
29945 #endif
29946
29947 #ifndef NULL
29948 #define NULL ((void*)0)
29949 #endif
29950
29951 int
29952 main ()
29953 {
29954
29955 #if DB_VERSION_MAJOR > 1
29956         {
29957                 char *version;
29958                 int major, minor, patch;
29959
29960                 version = db_version( &major, &minor, &patch );
29961
29962                 if( major != DB_VERSION_MAJOR ||
29963                         minor < DB_VERSION_MINOR )
29964                 {
29965                         printf("Berkeley DB version mismatch\n"
29966                                 "\theader: %s\n\tlibrary: %s\n",
29967                                 DB_VERSION_STRING, version);
29968                         return 1;
29969                 }
29970         }
29971 #endif
29972
29973 #if DB_VERSION_MAJOR > 2
29974         db_env_create( NULL, 0 );
29975 #elif DB_VERSION_MAJOR > 1
29976         db_appexit( NULL );
29977 #else
29978         (void) dbopen( NULL, 0, 0, 0, NULL);
29979 #endif
29980
29981   ;
29982   return 0;
29983 }
29984 _ACEOF
29985 rm -f conftest.$ac_objext conftest$ac_exeext
29986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29987   (eval $ac_link) 2>conftest.er1
29988   ac_status=$?
29989   grep -v '^ *+' conftest.er1 >conftest.err
29990   rm -f conftest.er1
29991   cat conftest.err >&5
29992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993   (exit $ac_status); } &&
29994          { ac_try='test -z "$ac_c_werror_flag"
29995                          || test ! -s conftest.err'
29996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29997   (eval $ac_try) 2>&5
29998   ac_status=$?
29999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000   (exit $ac_status); }; } &&
30001          { ac_try='test -s conftest$ac_exeext'
30002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30003   (eval $ac_try) 2>&5
30004   ac_status=$?
30005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006   (exit $ac_status); }; }; then
30007   ol_cv_db_db_4_1=yes
30008 else
30009   echo "$as_me: failed program was:" >&5
30010 sed 's/^/| /' conftest.$ac_ext >&5
30011
30012 ol_cv_db_db_4_1=no
30013 fi
30014 rm -f conftest.err conftest.$ac_objext \
30015       conftest$ac_exeext conftest.$ac_ext
30016
30017         LIBS="$ol_LIBS"
30018
30019 fi
30020 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30021 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30022
30023         if test $ol_cv_db_db_4_1 = yes ; then
30024                 ol_cv_lib_db=-ldb-4-1
30025         fi
30026 fi
30027
30028         fi
30029         if test $ol_cv_lib_db = no ; then
30030         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30031 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30032 if test "${ol_cv_db_db_4+set}" = set; then
30033   echo $ECHO_N "(cached) $ECHO_C" >&6
30034 else
30035
30036         ol_DB_LIB=-ldb-4
30037         ol_LIBS=$LIBS
30038         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30039
30040         cat >conftest.$ac_ext <<_ACEOF
30041 /* confdefs.h.  */
30042 _ACEOF
30043 cat confdefs.h >>conftest.$ac_ext
30044 cat >>conftest.$ac_ext <<_ACEOF
30045 /* end confdefs.h.  */
30046
30047 #ifdef HAVE_DB_185_H
30048 # include <db_185.h>
30049 #else
30050 # include <db.h>
30051 #endif
30052
30053 #ifndef DB_VERSION_MAJOR
30054 # define DB_VERSION_MAJOR 1
30055 #endif
30056
30057 #ifndef NULL
30058 #define NULL ((void*)0)
30059 #endif
30060
30061 int
30062 main ()
30063 {
30064
30065 #if DB_VERSION_MAJOR > 1
30066         {
30067                 char *version;
30068                 int major, minor, patch;
30069
30070                 version = db_version( &major, &minor, &patch );
30071
30072                 if( major != DB_VERSION_MAJOR ||
30073                         minor < DB_VERSION_MINOR )
30074                 {
30075                         printf("Berkeley DB version mismatch\n"
30076                                 "\theader: %s\n\tlibrary: %s\n",
30077                                 DB_VERSION_STRING, version);
30078                         return 1;
30079                 }
30080         }
30081 #endif
30082
30083 #if DB_VERSION_MAJOR > 2
30084         db_env_create( NULL, 0 );
30085 #elif DB_VERSION_MAJOR > 1
30086         db_appexit( NULL );
30087 #else
30088         (void) dbopen( NULL, 0, 0, 0, NULL);
30089 #endif
30090
30091   ;
30092   return 0;
30093 }
30094 _ACEOF
30095 rm -f conftest.$ac_objext conftest$ac_exeext
30096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30097   (eval $ac_link) 2>conftest.er1
30098   ac_status=$?
30099   grep -v '^ *+' conftest.er1 >conftest.err
30100   rm -f conftest.er1
30101   cat conftest.err >&5
30102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103   (exit $ac_status); } &&
30104          { ac_try='test -z "$ac_c_werror_flag"
30105                          || test ! -s conftest.err'
30106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30107   (eval $ac_try) 2>&5
30108   ac_status=$?
30109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110   (exit $ac_status); }; } &&
30111          { ac_try='test -s conftest$ac_exeext'
30112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30113   (eval $ac_try) 2>&5
30114   ac_status=$?
30115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116   (exit $ac_status); }; }; then
30117   ol_cv_db_db_4=yes
30118 else
30119   echo "$as_me: failed program was:" >&5
30120 sed 's/^/| /' conftest.$ac_ext >&5
30121
30122 ol_cv_db_db_4=no
30123 fi
30124 rm -f conftest.err conftest.$ac_objext \
30125       conftest$ac_exeext conftest.$ac_ext
30126
30127         LIBS="$ol_LIBS"
30128
30129 fi
30130 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30131 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30132
30133         if test $ol_cv_db_db_4 = yes ; then
30134                 ol_cv_lib_db=-ldb-4
30135         fi
30136 fi
30137
30138         if test $ol_cv_lib_db = no ; then
30139         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30140 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30141 if test "${ol_cv_db_db4+set}" = set; then
30142   echo $ECHO_N "(cached) $ECHO_C" >&6
30143 else
30144
30145         ol_DB_LIB=-ldb4
30146         ol_LIBS=$LIBS
30147         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30148
30149         cat >conftest.$ac_ext <<_ACEOF
30150 /* confdefs.h.  */
30151 _ACEOF
30152 cat confdefs.h >>conftest.$ac_ext
30153 cat >>conftest.$ac_ext <<_ACEOF
30154 /* end confdefs.h.  */
30155
30156 #ifdef HAVE_DB_185_H
30157 # include <db_185.h>
30158 #else
30159 # include <db.h>
30160 #endif
30161
30162 #ifndef DB_VERSION_MAJOR
30163 # define DB_VERSION_MAJOR 1
30164 #endif
30165
30166 #ifndef NULL
30167 #define NULL ((void*)0)
30168 #endif
30169
30170 int
30171 main ()
30172 {
30173
30174 #if DB_VERSION_MAJOR > 1
30175         {
30176                 char *version;
30177                 int major, minor, patch;
30178
30179                 version = db_version( &major, &minor, &patch );
30180
30181                 if( major != DB_VERSION_MAJOR ||
30182                         minor < DB_VERSION_MINOR )
30183                 {
30184                         printf("Berkeley DB version mismatch\n"
30185                                 "\theader: %s\n\tlibrary: %s\n",
30186                                 DB_VERSION_STRING, version);
30187                         return 1;
30188                 }
30189         }
30190 #endif
30191
30192 #if DB_VERSION_MAJOR > 2
30193         db_env_create( NULL, 0 );
30194 #elif DB_VERSION_MAJOR > 1
30195         db_appexit( NULL );
30196 #else
30197         (void) dbopen( NULL, 0, 0, 0, NULL);
30198 #endif
30199
30200   ;
30201   return 0;
30202 }
30203 _ACEOF
30204 rm -f conftest.$ac_objext conftest$ac_exeext
30205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30206   (eval $ac_link) 2>conftest.er1
30207   ac_status=$?
30208   grep -v '^ *+' conftest.er1 >conftest.err
30209   rm -f conftest.er1
30210   cat conftest.err >&5
30211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212   (exit $ac_status); } &&
30213          { ac_try='test -z "$ac_c_werror_flag"
30214                          || test ! -s conftest.err'
30215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30216   (eval $ac_try) 2>&5
30217   ac_status=$?
30218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219   (exit $ac_status); }; } &&
30220          { ac_try='test -s conftest$ac_exeext'
30221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30222   (eval $ac_try) 2>&5
30223   ac_status=$?
30224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225   (exit $ac_status); }; }; then
30226   ol_cv_db_db4=yes
30227 else
30228   echo "$as_me: failed program was:" >&5
30229 sed 's/^/| /' conftest.$ac_ext >&5
30230
30231 ol_cv_db_db4=no
30232 fi
30233 rm -f conftest.err conftest.$ac_objext \
30234       conftest$ac_exeext conftest.$ac_ext
30235
30236         LIBS="$ol_LIBS"
30237
30238 fi
30239 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30240 echo "${ECHO_T}$ol_cv_db_db4" >&6
30241
30242         if test $ol_cv_db_db4 = yes ; then
30243                 ol_cv_lib_db=-ldb4
30244         fi
30245 fi
30246
30247         if test $ol_cv_lib_db = no ; then
30248         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30249 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30250 if test "${ol_cv_db_db+set}" = set; then
30251   echo $ECHO_N "(cached) $ECHO_C" >&6
30252 else
30253
30254         ol_DB_LIB=-ldb
30255         ol_LIBS=$LIBS
30256         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30257
30258         cat >conftest.$ac_ext <<_ACEOF
30259 /* confdefs.h.  */
30260 _ACEOF
30261 cat confdefs.h >>conftest.$ac_ext
30262 cat >>conftest.$ac_ext <<_ACEOF
30263 /* end confdefs.h.  */
30264
30265 #ifdef HAVE_DB_185_H
30266 # include <db_185.h>
30267 #else
30268 # include <db.h>
30269 #endif
30270
30271 #ifndef DB_VERSION_MAJOR
30272 # define DB_VERSION_MAJOR 1
30273 #endif
30274
30275 #ifndef NULL
30276 #define NULL ((void*)0)
30277 #endif
30278
30279 int
30280 main ()
30281 {
30282
30283 #if DB_VERSION_MAJOR > 1
30284         {
30285                 char *version;
30286                 int major, minor, patch;
30287
30288                 version = db_version( &major, &minor, &patch );
30289
30290                 if( major != DB_VERSION_MAJOR ||
30291                         minor < DB_VERSION_MINOR )
30292                 {
30293                         printf("Berkeley DB version mismatch\n"
30294                                 "\theader: %s\n\tlibrary: %s\n",
30295                                 DB_VERSION_STRING, version);
30296                         return 1;
30297                 }
30298         }
30299 #endif
30300
30301 #if DB_VERSION_MAJOR > 2
30302         db_env_create( NULL, 0 );
30303 #elif DB_VERSION_MAJOR > 1
30304         db_appexit( NULL );
30305 #else
30306         (void) dbopen( NULL, 0, 0, 0, NULL);
30307 #endif
30308
30309   ;
30310   return 0;
30311 }
30312 _ACEOF
30313 rm -f conftest.$ac_objext conftest$ac_exeext
30314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30315   (eval $ac_link) 2>conftest.er1
30316   ac_status=$?
30317   grep -v '^ *+' conftest.er1 >conftest.err
30318   rm -f conftest.er1
30319   cat conftest.err >&5
30320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321   (exit $ac_status); } &&
30322          { ac_try='test -z "$ac_c_werror_flag"
30323                          || test ! -s conftest.err'
30324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30325   (eval $ac_try) 2>&5
30326   ac_status=$?
30327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328   (exit $ac_status); }; } &&
30329          { ac_try='test -s conftest$ac_exeext'
30330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30331   (eval $ac_try) 2>&5
30332   ac_status=$?
30333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334   (exit $ac_status); }; }; then
30335   ol_cv_db_db=yes
30336 else
30337   echo "$as_me: failed program was:" >&5
30338 sed 's/^/| /' conftest.$ac_ext >&5
30339
30340 ol_cv_db_db=no
30341 fi
30342 rm -f conftest.err conftest.$ac_objext \
30343       conftest$ac_exeext conftest.$ac_ext
30344
30345         LIBS="$ol_LIBS"
30346
30347 fi
30348 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30349 echo "${ECHO_T}$ol_cv_db_db" >&6
30350
30351         if test $ol_cv_db_db = yes ; then
30352                 ol_cv_lib_db=-ldb
30353         fi
30354 fi
30355
30356
30357 elif test $ol_cv_bdb_major = 3 ; then
30358         if test $ol_cv_lib_db = no ; then
30359         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30360 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30361 if test "${ol_cv_db_db3+set}" = set; then
30362   echo $ECHO_N "(cached) $ECHO_C" >&6
30363 else
30364
30365         ol_DB_LIB=-ldb3
30366         ol_LIBS=$LIBS
30367         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30368
30369         cat >conftest.$ac_ext <<_ACEOF
30370 /* confdefs.h.  */
30371 _ACEOF
30372 cat confdefs.h >>conftest.$ac_ext
30373 cat >>conftest.$ac_ext <<_ACEOF
30374 /* end confdefs.h.  */
30375
30376 #ifdef HAVE_DB_185_H
30377 # include <db_185.h>
30378 #else
30379 # include <db.h>
30380 #endif
30381
30382 #ifndef DB_VERSION_MAJOR
30383 # define DB_VERSION_MAJOR 1
30384 #endif
30385
30386 #ifndef NULL
30387 #define NULL ((void*)0)
30388 #endif
30389
30390 int
30391 main ()
30392 {
30393
30394 #if DB_VERSION_MAJOR > 1
30395         {
30396                 char *version;
30397                 int major, minor, patch;
30398
30399                 version = db_version( &major, &minor, &patch );
30400
30401                 if( major != DB_VERSION_MAJOR ||
30402                         minor < DB_VERSION_MINOR )
30403                 {
30404                         printf("Berkeley DB version mismatch\n"
30405                                 "\theader: %s\n\tlibrary: %s\n",
30406                                 DB_VERSION_STRING, version);
30407                         return 1;
30408                 }
30409         }
30410 #endif
30411
30412 #if DB_VERSION_MAJOR > 2
30413         db_env_create( NULL, 0 );
30414 #elif DB_VERSION_MAJOR > 1
30415         db_appexit( NULL );
30416 #else
30417         (void) dbopen( NULL, 0, 0, 0, NULL);
30418 #endif
30419
30420   ;
30421   return 0;
30422 }
30423 _ACEOF
30424 rm -f conftest.$ac_objext conftest$ac_exeext
30425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30426   (eval $ac_link) 2>conftest.er1
30427   ac_status=$?
30428   grep -v '^ *+' conftest.er1 >conftest.err
30429   rm -f conftest.er1
30430   cat conftest.err >&5
30431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432   (exit $ac_status); } &&
30433          { ac_try='test -z "$ac_c_werror_flag"
30434                          || test ! -s conftest.err'
30435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436   (eval $ac_try) 2>&5
30437   ac_status=$?
30438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439   (exit $ac_status); }; } &&
30440          { ac_try='test -s conftest$ac_exeext'
30441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30442   (eval $ac_try) 2>&5
30443   ac_status=$?
30444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445   (exit $ac_status); }; }; then
30446   ol_cv_db_db3=yes
30447 else
30448   echo "$as_me: failed program was:" >&5
30449 sed 's/^/| /' conftest.$ac_ext >&5
30450
30451 ol_cv_db_db3=no
30452 fi
30453 rm -f conftest.err conftest.$ac_objext \
30454       conftest$ac_exeext conftest.$ac_ext
30455
30456         LIBS="$ol_LIBS"
30457
30458 fi
30459 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30460 echo "${ECHO_T}$ol_cv_db_db3" >&6
30461
30462         if test $ol_cv_db_db3 = yes ; then
30463                 ol_cv_lib_db=-ldb3
30464         fi
30465 fi
30466
30467         if test $ol_cv_lib_db = no ; then
30468         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30469 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30470 if test "${ol_cv_db_db_3+set}" = set; then
30471   echo $ECHO_N "(cached) $ECHO_C" >&6
30472 else
30473
30474         ol_DB_LIB=-ldb-3
30475         ol_LIBS=$LIBS
30476         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30477
30478         cat >conftest.$ac_ext <<_ACEOF
30479 /* confdefs.h.  */
30480 _ACEOF
30481 cat confdefs.h >>conftest.$ac_ext
30482 cat >>conftest.$ac_ext <<_ACEOF
30483 /* end confdefs.h.  */
30484
30485 #ifdef HAVE_DB_185_H
30486 # include <db_185.h>
30487 #else
30488 # include <db.h>
30489 #endif
30490
30491 #ifndef DB_VERSION_MAJOR
30492 # define DB_VERSION_MAJOR 1
30493 #endif
30494
30495 #ifndef NULL
30496 #define NULL ((void*)0)
30497 #endif
30498
30499 int
30500 main ()
30501 {
30502
30503 #if DB_VERSION_MAJOR > 1
30504         {
30505                 char *version;
30506                 int major, minor, patch;
30507
30508                 version = db_version( &major, &minor, &patch );
30509
30510                 if( major != DB_VERSION_MAJOR ||
30511                         minor < DB_VERSION_MINOR )
30512                 {
30513                         printf("Berkeley DB version mismatch\n"
30514                                 "\theader: %s\n\tlibrary: %s\n",
30515                                 DB_VERSION_STRING, version);
30516                         return 1;
30517                 }
30518         }
30519 #endif
30520
30521 #if DB_VERSION_MAJOR > 2
30522         db_env_create( NULL, 0 );
30523 #elif DB_VERSION_MAJOR > 1
30524         db_appexit( NULL );
30525 #else
30526         (void) dbopen( NULL, 0, 0, 0, NULL);
30527 #endif
30528
30529   ;
30530   return 0;
30531 }
30532 _ACEOF
30533 rm -f conftest.$ac_objext conftest$ac_exeext
30534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30535   (eval $ac_link) 2>conftest.er1
30536   ac_status=$?
30537   grep -v '^ *+' conftest.er1 >conftest.err
30538   rm -f conftest.er1
30539   cat conftest.err >&5
30540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541   (exit $ac_status); } &&
30542          { ac_try='test -z "$ac_c_werror_flag"
30543                          || test ! -s conftest.err'
30544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30545   (eval $ac_try) 2>&5
30546   ac_status=$?
30547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548   (exit $ac_status); }; } &&
30549          { ac_try='test -s conftest$ac_exeext'
30550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30551   (eval $ac_try) 2>&5
30552   ac_status=$?
30553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554   (exit $ac_status); }; }; then
30555   ol_cv_db_db_3=yes
30556 else
30557   echo "$as_me: failed program was:" >&5
30558 sed 's/^/| /' conftest.$ac_ext >&5
30559
30560 ol_cv_db_db_3=no
30561 fi
30562 rm -f conftest.err conftest.$ac_objext \
30563       conftest$ac_exeext conftest.$ac_ext
30564
30565         LIBS="$ol_LIBS"
30566
30567 fi
30568 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30569 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30570
30571         if test $ol_cv_db_db_3 = yes ; then
30572                 ol_cv_lib_db=-ldb-3
30573         fi
30574 fi
30575
30576
30577 elif test $ol_cv_bdb_major = 2 ; then
30578         if test $ol_cv_lib_db = no ; then
30579         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30580 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30581 if test "${ol_cv_db_db2+set}" = set; then
30582   echo $ECHO_N "(cached) $ECHO_C" >&6
30583 else
30584
30585         ol_DB_LIB=-ldb2
30586         ol_LIBS=$LIBS
30587         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30588
30589         cat >conftest.$ac_ext <<_ACEOF
30590 /* confdefs.h.  */
30591 _ACEOF
30592 cat confdefs.h >>conftest.$ac_ext
30593 cat >>conftest.$ac_ext <<_ACEOF
30594 /* end confdefs.h.  */
30595
30596 #ifdef HAVE_DB_185_H
30597 # include <db_185.h>
30598 #else
30599 # include <db.h>
30600 #endif
30601
30602 #ifndef DB_VERSION_MAJOR
30603 # define DB_VERSION_MAJOR 1
30604 #endif
30605
30606 #ifndef NULL
30607 #define NULL ((void*)0)
30608 #endif
30609
30610 int
30611 main ()
30612 {
30613
30614 #if DB_VERSION_MAJOR > 1
30615         {
30616                 char *version;
30617                 int major, minor, patch;
30618
30619                 version = db_version( &major, &minor, &patch );
30620
30621                 if( major != DB_VERSION_MAJOR ||
30622                         minor < DB_VERSION_MINOR )
30623                 {
30624                         printf("Berkeley DB version mismatch\n"
30625                                 "\theader: %s\n\tlibrary: %s\n",
30626                                 DB_VERSION_STRING, version);
30627                         return 1;
30628                 }
30629         }
30630 #endif
30631
30632 #if DB_VERSION_MAJOR > 2
30633         db_env_create( NULL, 0 );
30634 #elif DB_VERSION_MAJOR > 1
30635         db_appexit( NULL );
30636 #else
30637         (void) dbopen( NULL, 0, 0, 0, NULL);
30638 #endif
30639
30640   ;
30641   return 0;
30642 }
30643 _ACEOF
30644 rm -f conftest.$ac_objext conftest$ac_exeext
30645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30646   (eval $ac_link) 2>conftest.er1
30647   ac_status=$?
30648   grep -v '^ *+' conftest.er1 >conftest.err
30649   rm -f conftest.er1
30650   cat conftest.err >&5
30651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652   (exit $ac_status); } &&
30653          { ac_try='test -z "$ac_c_werror_flag"
30654                          || test ! -s conftest.err'
30655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30656   (eval $ac_try) 2>&5
30657   ac_status=$?
30658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659   (exit $ac_status); }; } &&
30660          { ac_try='test -s conftest$ac_exeext'
30661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30662   (eval $ac_try) 2>&5
30663   ac_status=$?
30664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665   (exit $ac_status); }; }; then
30666   ol_cv_db_db2=yes
30667 else
30668   echo "$as_me: failed program was:" >&5
30669 sed 's/^/| /' conftest.$ac_ext >&5
30670
30671 ol_cv_db_db2=no
30672 fi
30673 rm -f conftest.err conftest.$ac_objext \
30674       conftest$ac_exeext conftest.$ac_ext
30675
30676         LIBS="$ol_LIBS"
30677
30678 fi
30679 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30680 echo "${ECHO_T}$ol_cv_db_db2" >&6
30681
30682         if test $ol_cv_db_db2 = yes ; then
30683                 ol_cv_lib_db=-ldb2
30684         fi
30685 fi
30686
30687         if test $ol_cv_lib_db = no ; then
30688         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30689 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30690 if test "${ol_cv_db_db_2+set}" = set; then
30691   echo $ECHO_N "(cached) $ECHO_C" >&6
30692 else
30693
30694         ol_DB_LIB=-ldb-2
30695         ol_LIBS=$LIBS
30696         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30697
30698         cat >conftest.$ac_ext <<_ACEOF
30699 /* confdefs.h.  */
30700 _ACEOF
30701 cat confdefs.h >>conftest.$ac_ext
30702 cat >>conftest.$ac_ext <<_ACEOF
30703 /* end confdefs.h.  */
30704
30705 #ifdef HAVE_DB_185_H
30706 # include <db_185.h>
30707 #else
30708 # include <db.h>
30709 #endif
30710
30711 #ifndef DB_VERSION_MAJOR
30712 # define DB_VERSION_MAJOR 1
30713 #endif
30714
30715 #ifndef NULL
30716 #define NULL ((void*)0)
30717 #endif
30718
30719 int
30720 main ()
30721 {
30722
30723 #if DB_VERSION_MAJOR > 1
30724         {
30725                 char *version;
30726                 int major, minor, patch;
30727
30728                 version = db_version( &major, &minor, &patch );
30729
30730                 if( major != DB_VERSION_MAJOR ||
30731                         minor < DB_VERSION_MINOR )
30732                 {
30733                         printf("Berkeley DB version mismatch\n"
30734                                 "\theader: %s\n\tlibrary: %s\n",
30735                                 DB_VERSION_STRING, version);
30736                         return 1;
30737                 }
30738         }
30739 #endif
30740
30741 #if DB_VERSION_MAJOR > 2
30742         db_env_create( NULL, 0 );
30743 #elif DB_VERSION_MAJOR > 1
30744         db_appexit( NULL );
30745 #else
30746         (void) dbopen( NULL, 0, 0, 0, NULL);
30747 #endif
30748
30749   ;
30750   return 0;
30751 }
30752 _ACEOF
30753 rm -f conftest.$ac_objext conftest$ac_exeext
30754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30755   (eval $ac_link) 2>conftest.er1
30756   ac_status=$?
30757   grep -v '^ *+' conftest.er1 >conftest.err
30758   rm -f conftest.er1
30759   cat conftest.err >&5
30760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761   (exit $ac_status); } &&
30762          { ac_try='test -z "$ac_c_werror_flag"
30763                          || test ! -s conftest.err'
30764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30765   (eval $ac_try) 2>&5
30766   ac_status=$?
30767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768   (exit $ac_status); }; } &&
30769          { ac_try='test -s conftest$ac_exeext'
30770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30771   (eval $ac_try) 2>&5
30772   ac_status=$?
30773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774   (exit $ac_status); }; }; then
30775   ol_cv_db_db_2=yes
30776 else
30777   echo "$as_me: failed program was:" >&5
30778 sed 's/^/| /' conftest.$ac_ext >&5
30779
30780 ol_cv_db_db_2=no
30781 fi
30782 rm -f conftest.err conftest.$ac_objext \
30783       conftest$ac_exeext conftest.$ac_ext
30784
30785         LIBS="$ol_LIBS"
30786
30787 fi
30788 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30789 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30790
30791         if test $ol_cv_db_db_2 = yes ; then
30792                 ol_cv_lib_db=-ldb-2
30793         fi
30794 fi
30795
30796
30797 elif test $ol_cv_bdb_major = 1 ; then
30798         if test $ol_cv_lib_db = no ; then
30799         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30800 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30801 if test "${ol_cv_db_db1+set}" = set; then
30802   echo $ECHO_N "(cached) $ECHO_C" >&6
30803 else
30804
30805         ol_DB_LIB=-ldb1
30806         ol_LIBS=$LIBS
30807         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30808
30809         cat >conftest.$ac_ext <<_ACEOF
30810 /* confdefs.h.  */
30811 _ACEOF
30812 cat confdefs.h >>conftest.$ac_ext
30813 cat >>conftest.$ac_ext <<_ACEOF
30814 /* end confdefs.h.  */
30815
30816 #ifdef HAVE_DB_185_H
30817 # include <db_185.h>
30818 #else
30819 # include <db.h>
30820 #endif
30821
30822 #ifndef DB_VERSION_MAJOR
30823 # define DB_VERSION_MAJOR 1
30824 #endif
30825
30826 #ifndef NULL
30827 #define NULL ((void*)0)
30828 #endif
30829
30830 int
30831 main ()
30832 {
30833
30834 #if DB_VERSION_MAJOR > 1
30835         {
30836                 char *version;
30837                 int major, minor, patch;
30838
30839                 version = db_version( &major, &minor, &patch );
30840
30841                 if( major != DB_VERSION_MAJOR ||
30842                         minor < DB_VERSION_MINOR )
30843                 {
30844                         printf("Berkeley DB version mismatch\n"
30845                                 "\theader: %s\n\tlibrary: %s\n",
30846                                 DB_VERSION_STRING, version);
30847                         return 1;
30848                 }
30849         }
30850 #endif
30851
30852 #if DB_VERSION_MAJOR > 2
30853         db_env_create( NULL, 0 );
30854 #elif DB_VERSION_MAJOR > 1
30855         db_appexit( NULL );
30856 #else
30857         (void) dbopen( NULL, 0, 0, 0, NULL);
30858 #endif
30859
30860   ;
30861   return 0;
30862 }
30863 _ACEOF
30864 rm -f conftest.$ac_objext conftest$ac_exeext
30865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30866   (eval $ac_link) 2>conftest.er1
30867   ac_status=$?
30868   grep -v '^ *+' conftest.er1 >conftest.err
30869   rm -f conftest.er1
30870   cat conftest.err >&5
30871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872   (exit $ac_status); } &&
30873          { ac_try='test -z "$ac_c_werror_flag"
30874                          || test ! -s conftest.err'
30875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30876   (eval $ac_try) 2>&5
30877   ac_status=$?
30878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879   (exit $ac_status); }; } &&
30880          { ac_try='test -s conftest$ac_exeext'
30881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30882   (eval $ac_try) 2>&5
30883   ac_status=$?
30884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885   (exit $ac_status); }; }; then
30886   ol_cv_db_db1=yes
30887 else
30888   echo "$as_me: failed program was:" >&5
30889 sed 's/^/| /' conftest.$ac_ext >&5
30890
30891 ol_cv_db_db1=no
30892 fi
30893 rm -f conftest.err conftest.$ac_objext \
30894       conftest$ac_exeext conftest.$ac_ext
30895
30896         LIBS="$ol_LIBS"
30897
30898 fi
30899 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30900 echo "${ECHO_T}$ol_cv_db_db1" >&6
30901
30902         if test $ol_cv_db_db1 = yes ; then
30903                 ol_cv_lib_db=-ldb1
30904         fi
30905 fi
30906
30907         if test $ol_cv_lib_db = no ; then
30908         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30909 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30910 if test "${ol_cv_db_db_1+set}" = set; then
30911   echo $ECHO_N "(cached) $ECHO_C" >&6
30912 else
30913
30914         ol_DB_LIB=-ldb-1
30915         ol_LIBS=$LIBS
30916         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30917
30918         cat >conftest.$ac_ext <<_ACEOF
30919 /* confdefs.h.  */
30920 _ACEOF
30921 cat confdefs.h >>conftest.$ac_ext
30922 cat >>conftest.$ac_ext <<_ACEOF
30923 /* end confdefs.h.  */
30924
30925 #ifdef HAVE_DB_185_H
30926 # include <db_185.h>
30927 #else
30928 # include <db.h>
30929 #endif
30930
30931 #ifndef DB_VERSION_MAJOR
30932 # define DB_VERSION_MAJOR 1
30933 #endif
30934
30935 #ifndef NULL
30936 #define NULL ((void*)0)
30937 #endif
30938
30939 int
30940 main ()
30941 {
30942
30943 #if DB_VERSION_MAJOR > 1
30944         {
30945                 char *version;
30946                 int major, minor, patch;
30947
30948                 version = db_version( &major, &minor, &patch );
30949
30950                 if( major != DB_VERSION_MAJOR ||
30951                         minor < DB_VERSION_MINOR )
30952                 {
30953                         printf("Berkeley DB version mismatch\n"
30954                                 "\theader: %s\n\tlibrary: %s\n",
30955                                 DB_VERSION_STRING, version);
30956                         return 1;
30957                 }
30958         }
30959 #endif
30960
30961 #if DB_VERSION_MAJOR > 2
30962         db_env_create( NULL, 0 );
30963 #elif DB_VERSION_MAJOR > 1
30964         db_appexit( NULL );
30965 #else
30966         (void) dbopen( NULL, 0, 0, 0, NULL);
30967 #endif
30968
30969   ;
30970   return 0;
30971 }
30972 _ACEOF
30973 rm -f conftest.$ac_objext conftest$ac_exeext
30974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30975   (eval $ac_link) 2>conftest.er1
30976   ac_status=$?
30977   grep -v '^ *+' conftest.er1 >conftest.err
30978   rm -f conftest.er1
30979   cat conftest.err >&5
30980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981   (exit $ac_status); } &&
30982          { ac_try='test -z "$ac_c_werror_flag"
30983                          || test ! -s conftest.err'
30984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30985   (eval $ac_try) 2>&5
30986   ac_status=$?
30987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988   (exit $ac_status); }; } &&
30989          { ac_try='test -s conftest$ac_exeext'
30990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30991   (eval $ac_try) 2>&5
30992   ac_status=$?
30993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994   (exit $ac_status); }; }; then
30995   ol_cv_db_db_1=yes
30996 else
30997   echo "$as_me: failed program was:" >&5
30998 sed 's/^/| /' conftest.$ac_ext >&5
30999
31000 ol_cv_db_db_1=no
31001 fi
31002 rm -f conftest.err conftest.$ac_objext \
31003       conftest$ac_exeext conftest.$ac_ext
31004
31005         LIBS="$ol_LIBS"
31006
31007 fi
31008 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31009 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31010
31011         if test $ol_cv_db_db_1 = yes ; then
31012                 ol_cv_lib_db=-ldb-1
31013         fi
31014 fi
31015
31016 fi
31017 if test $ol_cv_lib_db = no ; then
31018         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31019 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31020 if test "${ol_cv_db_none+set}" = set; then
31021   echo $ECHO_N "(cached) $ECHO_C" >&6
31022 else
31023
31024         ol_DB_LIB=
31025         ol_LIBS=$LIBS
31026         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31027
31028         cat >conftest.$ac_ext <<_ACEOF
31029 /* confdefs.h.  */
31030 _ACEOF
31031 cat confdefs.h >>conftest.$ac_ext
31032 cat >>conftest.$ac_ext <<_ACEOF
31033 /* end confdefs.h.  */
31034
31035 #ifdef HAVE_DB_185_H
31036 # include <db_185.h>
31037 #else
31038 # include <db.h>
31039 #endif
31040
31041 #ifndef DB_VERSION_MAJOR
31042 # define DB_VERSION_MAJOR 1
31043 #endif
31044
31045 #ifndef NULL
31046 #define NULL ((void*)0)
31047 #endif
31048
31049 int
31050 main ()
31051 {
31052
31053 #if DB_VERSION_MAJOR > 1
31054         {
31055                 char *version;
31056                 int major, minor, patch;
31057
31058                 version = db_version( &major, &minor, &patch );
31059
31060                 if( major != DB_VERSION_MAJOR ||
31061                         minor < DB_VERSION_MINOR )
31062                 {
31063                         printf("Berkeley DB version mismatch\n"
31064                                 "\theader: %s\n\tlibrary: %s\n",
31065                                 DB_VERSION_STRING, version);
31066                         return 1;
31067                 }
31068         }
31069 #endif
31070
31071 #if DB_VERSION_MAJOR > 2
31072         db_env_create( NULL, 0 );
31073 #elif DB_VERSION_MAJOR > 1
31074         db_appexit( NULL );
31075 #else
31076         (void) dbopen( NULL, 0, 0, 0, NULL);
31077 #endif
31078
31079   ;
31080   return 0;
31081 }
31082 _ACEOF
31083 rm -f conftest.$ac_objext conftest$ac_exeext
31084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31085   (eval $ac_link) 2>conftest.er1
31086   ac_status=$?
31087   grep -v '^ *+' conftest.er1 >conftest.err
31088   rm -f conftest.er1
31089   cat conftest.err >&5
31090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091   (exit $ac_status); } &&
31092          { ac_try='test -z "$ac_c_werror_flag"
31093                          || test ! -s conftest.err'
31094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31095   (eval $ac_try) 2>&5
31096   ac_status=$?
31097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31098   (exit $ac_status); }; } &&
31099          { ac_try='test -s conftest$ac_exeext'
31100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31101   (eval $ac_try) 2>&5
31102   ac_status=$?
31103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104   (exit $ac_status); }; }; then
31105   ol_cv_db_none=yes
31106 else
31107   echo "$as_me: failed program was:" >&5
31108 sed 's/^/| /' conftest.$ac_ext >&5
31109
31110 ol_cv_db_none=no
31111 fi
31112 rm -f conftest.err conftest.$ac_objext \
31113       conftest$ac_exeext conftest.$ac_ext
31114
31115         LIBS="$ol_LIBS"
31116
31117 fi
31118 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31119 echo "${ECHO_T}$ol_cv_db_none" >&6
31120
31121         if test $ol_cv_db_none = yes ; then
31122                 ol_cv_lib_db=yes
31123         fi
31124 fi
31125
31126
31127                 if test "$ol_cv_lib_db" != no ; then
31128                         ol_cv_berkeley_db=yes
31129                 fi
31130         fi
31131 fi
31132
31133         else
31134                 ol_cv_berkeley_db=no
31135
31136 for ac_header in db.h
31137 do
31138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31140   echo "$as_me:$LINENO: checking for $ac_header" >&5
31141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31143   echo $ECHO_N "(cached) $ECHO_C" >&6
31144 fi
31145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31147 else
31148   # Is the header compilable?
31149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31151 cat >conftest.$ac_ext <<_ACEOF
31152 /* confdefs.h.  */
31153 _ACEOF
31154 cat confdefs.h >>conftest.$ac_ext
31155 cat >>conftest.$ac_ext <<_ACEOF
31156 /* end confdefs.h.  */
31157 $ac_includes_default
31158 #include <$ac_header>
31159 _ACEOF
31160 rm -f conftest.$ac_objext
31161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31162   (eval $ac_compile) 2>conftest.er1
31163   ac_status=$?
31164   grep -v '^ *+' conftest.er1 >conftest.err
31165   rm -f conftest.er1
31166   cat conftest.err >&5
31167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168   (exit $ac_status); } &&
31169          { ac_try='test -z "$ac_c_werror_flag"
31170                          || test ! -s conftest.err'
31171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31172   (eval $ac_try) 2>&5
31173   ac_status=$?
31174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175   (exit $ac_status); }; } &&
31176          { ac_try='test -s conftest.$ac_objext'
31177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31178   (eval $ac_try) 2>&5
31179   ac_status=$?
31180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181   (exit $ac_status); }; }; then
31182   ac_header_compiler=yes
31183 else
31184   echo "$as_me: failed program was:" >&5
31185 sed 's/^/| /' conftest.$ac_ext >&5
31186
31187 ac_header_compiler=no
31188 fi
31189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31191 echo "${ECHO_T}$ac_header_compiler" >&6
31192
31193 # Is the header present?
31194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31196 cat >conftest.$ac_ext <<_ACEOF
31197 /* confdefs.h.  */
31198 _ACEOF
31199 cat confdefs.h >>conftest.$ac_ext
31200 cat >>conftest.$ac_ext <<_ACEOF
31201 /* end confdefs.h.  */
31202 #include <$ac_header>
31203 _ACEOF
31204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31205   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31206   ac_status=$?
31207   grep -v '^ *+' conftest.er1 >conftest.err
31208   rm -f conftest.er1
31209   cat conftest.err >&5
31210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211   (exit $ac_status); } >/dev/null; then
31212   if test -s conftest.err; then
31213     ac_cpp_err=$ac_c_preproc_warn_flag
31214     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31215   else
31216     ac_cpp_err=
31217   fi
31218 else
31219   ac_cpp_err=yes
31220 fi
31221 if test -z "$ac_cpp_err"; then
31222   ac_header_preproc=yes
31223 else
31224   echo "$as_me: failed program was:" >&5
31225 sed 's/^/| /' conftest.$ac_ext >&5
31226
31227   ac_header_preproc=no
31228 fi
31229 rm -f conftest.err conftest.$ac_ext
31230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31231 echo "${ECHO_T}$ac_header_preproc" >&6
31232
31233 # So?  What about this header?
31234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31235   yes:no: )
31236     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31240     ac_header_preproc=yes
31241     ;;
31242   no:yes:* )
31243     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31245     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31246 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31247     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31249     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31250 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31253     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31255     (
31256       cat <<\_ASBOX
31257 ## ------------------------------------------ ##
31258 ## Report this to the AC_PACKAGE_NAME lists.  ##
31259 ## ------------------------------------------ ##
31260 _ASBOX
31261     ) |
31262       sed "s/^/$as_me: WARNING:     /" >&2
31263     ;;
31264 esac
31265 echo "$as_me:$LINENO: checking for $ac_header" >&5
31266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31268   echo $ECHO_N "(cached) $ECHO_C" >&6
31269 else
31270   eval "$as_ac_Header=\$ac_header_preproc"
31271 fi
31272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31274
31275 fi
31276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31277   cat >>confdefs.h <<_ACEOF
31278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31279 _ACEOF
31280
31281 fi
31282
31283 done
31284
31285 if test $ac_cv_header_db_h = yes; then
31286         ol_cv_lib_db=no
31287
31288 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31289 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31290 if test "${ol_cv_bdb_major+set}" = set; then
31291   echo $ECHO_N "(cached) $ECHO_C" >&6
31292 else
31293
31294         ol_cv_bdb_major=0
31295         if test $ol_cv_bdb_major = 0 ; then
31296                 cat >conftest.$ac_ext <<_ACEOF
31297 /* confdefs.h.  */
31298 _ACEOF
31299 cat confdefs.h >>conftest.$ac_ext
31300 cat >>conftest.$ac_ext <<_ACEOF
31301 /* end confdefs.h.  */
31302
31303 #include <db.h>
31304 #ifndef DB_VERSION_MAJOR
31305 #       define DB_VERSION_MAJOR 1
31306 #endif
31307 #if DB_VERSION_MAJOR == 4
31308 __db_version
31309 #endif
31310
31311 _ACEOF
31312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31313   $EGREP "__db_version" >/dev/null 2>&1; then
31314   ol_cv_bdb_major=4
31315 else
31316   :
31317 fi
31318 rm -f conftest*
31319
31320         fi
31321         if test $ol_cv_bdb_major = 0 ; then
31322                 cat >conftest.$ac_ext <<_ACEOF
31323 /* confdefs.h.  */
31324 _ACEOF
31325 cat confdefs.h >>conftest.$ac_ext
31326 cat >>conftest.$ac_ext <<_ACEOF
31327 /* end confdefs.h.  */
31328
31329 #include <db.h>
31330 #ifndef DB_VERSION_MAJOR
31331 #       define DB_VERSION_MAJOR 1
31332 #endif
31333 #if DB_VERSION_MAJOR == 3
31334 __db_version
31335 #endif
31336
31337 _ACEOF
31338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31339   $EGREP "__db_version" >/dev/null 2>&1; then
31340   ol_cv_bdb_major=3
31341 else
31342   :
31343 fi
31344 rm -f conftest*
31345
31346         fi
31347         if test $ol_cv_bdb_major = 0 ; then
31348                 cat >conftest.$ac_ext <<_ACEOF
31349 /* confdefs.h.  */
31350 _ACEOF
31351 cat confdefs.h >>conftest.$ac_ext
31352 cat >>conftest.$ac_ext <<_ACEOF
31353 /* end confdefs.h.  */
31354
31355 #include <db.h>
31356 #ifndef DB_VERSION_MAJOR
31357 #       define DB_VERSION_MAJOR 1
31358 #endif
31359 #if DB_VERSION_MAJOR == 2
31360 __db_version
31361 #endif
31362
31363 _ACEOF
31364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31365   $EGREP "__db_version" >/dev/null 2>&1; then
31366   ol_cv_bdb_major=2
31367 else
31368   :
31369 fi
31370 rm -f conftest*
31371
31372         fi
31373         if test $ol_cv_bdb_major = 0 ; then
31374                 cat >conftest.$ac_ext <<_ACEOF
31375 /* confdefs.h.  */
31376 _ACEOF
31377 cat confdefs.h >>conftest.$ac_ext
31378 cat >>conftest.$ac_ext <<_ACEOF
31379 /* end confdefs.h.  */
31380
31381 #include <db.h>
31382 #ifndef DB_VERSION_MAJOR
31383 #       define DB_VERSION_MAJOR 1
31384 #endif
31385 #if DB_VERSION_MAJOR == 1
31386 __db_version
31387 #endif
31388
31389 _ACEOF
31390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31391   $EGREP "__db_version" >/dev/null 2>&1; then
31392   ol_cv_bdb_major=1
31393 else
31394   :
31395 fi
31396 rm -f conftest*
31397
31398         fi
31399
31400         if test $ol_cv_bdb_major = 0 ; then
31401                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31402 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31403    { (exit 1); exit 1; }; }
31404         fi
31405
31406 fi
31407 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31408 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31409
31410 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31411 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31412 if test "${ol_cv_bdb_minor+set}" = set; then
31413   echo $ECHO_N "(cached) $ECHO_C" >&6
31414 else
31415
31416         ol_cv_bdb_minor=0
31417         if test $ol_cv_bdb_minor = 0 ; then
31418                 cat >conftest.$ac_ext <<_ACEOF
31419 /* confdefs.h.  */
31420 _ACEOF
31421 cat confdefs.h >>conftest.$ac_ext
31422 cat >>conftest.$ac_ext <<_ACEOF
31423 /* end confdefs.h.  */
31424
31425 #include <db.h>
31426 #ifndef DB_VERSION_MINOR
31427 #       define DB_VERSION_MINOR 0
31428 #endif
31429 #if DB_VERSION_MINOR == 9
31430 __db_version
31431 #endif
31432
31433 _ACEOF
31434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31435   $EGREP "__db_version" >/dev/null 2>&1; then
31436   ol_cv_bdb_minor=9
31437 else
31438   :
31439 fi
31440 rm -f conftest*
31441
31442         fi
31443         if test $ol_cv_bdb_minor = 0 ; then
31444                 cat >conftest.$ac_ext <<_ACEOF
31445 /* confdefs.h.  */
31446 _ACEOF
31447 cat confdefs.h >>conftest.$ac_ext
31448 cat >>conftest.$ac_ext <<_ACEOF
31449 /* end confdefs.h.  */
31450
31451 #include <db.h>
31452 #ifndef DB_VERSION_MINOR
31453 #       define DB_VERSION_MINOR 0
31454 #endif
31455 #if DB_VERSION_MINOR == 8
31456 __db_version
31457 #endif
31458
31459 _ACEOF
31460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31461   $EGREP "__db_version" >/dev/null 2>&1; then
31462   ol_cv_bdb_minor=8
31463 else
31464   :
31465 fi
31466 rm -f conftest*
31467
31468         fi
31469         if test $ol_cv_bdb_minor = 0 ; then
31470                 cat >conftest.$ac_ext <<_ACEOF
31471 /* confdefs.h.  */
31472 _ACEOF
31473 cat confdefs.h >>conftest.$ac_ext
31474 cat >>conftest.$ac_ext <<_ACEOF
31475 /* end confdefs.h.  */
31476
31477 #include <db.h>
31478 #ifndef DB_VERSION_MINOR
31479 #       define DB_VERSION_MINOR 0
31480 #endif
31481 #if DB_VERSION_MINOR == 7
31482 __db_version
31483 #endif
31484
31485 _ACEOF
31486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31487   $EGREP "__db_version" >/dev/null 2>&1; then
31488   ol_cv_bdb_minor=7
31489 else
31490   :
31491 fi
31492 rm -f conftest*
31493
31494         fi
31495         if test $ol_cv_bdb_minor = 0 ; then
31496                 cat >conftest.$ac_ext <<_ACEOF
31497 /* confdefs.h.  */
31498 _ACEOF
31499 cat confdefs.h >>conftest.$ac_ext
31500 cat >>conftest.$ac_ext <<_ACEOF
31501 /* end confdefs.h.  */
31502
31503 #include <db.h>
31504 #ifndef DB_VERSION_MINOR
31505 #       define DB_VERSION_MINOR 0
31506 #endif
31507 #if DB_VERSION_MINOR == 6
31508 __db_version
31509 #endif
31510
31511 _ACEOF
31512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31513   $EGREP "__db_version" >/dev/null 2>&1; then
31514   ol_cv_bdb_minor=6
31515 else
31516   :
31517 fi
31518 rm -f conftest*
31519
31520         fi
31521         if test $ol_cv_bdb_minor = 0 ; then
31522                 cat >conftest.$ac_ext <<_ACEOF
31523 /* confdefs.h.  */
31524 _ACEOF
31525 cat confdefs.h >>conftest.$ac_ext
31526 cat >>conftest.$ac_ext <<_ACEOF
31527 /* end confdefs.h.  */
31528
31529 #include <db.h>
31530 #ifndef DB_VERSION_MINOR
31531 #       define DB_VERSION_MINOR 0
31532 #endif
31533 #if DB_VERSION_MINOR == 5
31534 __db_version
31535 #endif
31536
31537 _ACEOF
31538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31539   $EGREP "__db_version" >/dev/null 2>&1; then
31540   ol_cv_bdb_minor=5
31541 else
31542   :
31543 fi
31544 rm -f conftest*
31545
31546         fi
31547         if test $ol_cv_bdb_minor = 0 ; then
31548                 cat >conftest.$ac_ext <<_ACEOF
31549 /* confdefs.h.  */
31550 _ACEOF
31551 cat confdefs.h >>conftest.$ac_ext
31552 cat >>conftest.$ac_ext <<_ACEOF
31553 /* end confdefs.h.  */
31554
31555 #include <db.h>
31556 #ifndef DB_VERSION_MINOR
31557 #       define DB_VERSION_MINOR 0
31558 #endif
31559 #if DB_VERSION_MINOR == 4
31560 __db_version
31561 #endif
31562
31563 _ACEOF
31564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31565   $EGREP "__db_version" >/dev/null 2>&1; then
31566   ol_cv_bdb_minor=4
31567 else
31568   :
31569 fi
31570 rm -f conftest*
31571
31572         fi
31573         if test $ol_cv_bdb_minor = 0 ; then
31574                 cat >conftest.$ac_ext <<_ACEOF
31575 /* confdefs.h.  */
31576 _ACEOF
31577 cat confdefs.h >>conftest.$ac_ext
31578 cat >>conftest.$ac_ext <<_ACEOF
31579 /* end confdefs.h.  */
31580
31581 #include <db.h>
31582 #ifndef DB_VERSION_MINOR
31583 #       define DB_VERSION_MINOR 0
31584 #endif
31585 #if DB_VERSION_MINOR == 3
31586 __db_version
31587 #endif
31588
31589 _ACEOF
31590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31591   $EGREP "__db_version" >/dev/null 2>&1; then
31592   ol_cv_bdb_minor=3
31593 else
31594   :
31595 fi
31596 rm -f conftest*
31597
31598         fi
31599         if test $ol_cv_bdb_minor = 0 ; then
31600                 cat >conftest.$ac_ext <<_ACEOF
31601 /* confdefs.h.  */
31602 _ACEOF
31603 cat confdefs.h >>conftest.$ac_ext
31604 cat >>conftest.$ac_ext <<_ACEOF
31605 /* end confdefs.h.  */
31606
31607 #include <db.h>
31608 #ifndef DB_VERSION_MINOR
31609 #       define DB_VERSION_MINOR 0
31610 #endif
31611 #if DB_VERSION_MINOR == 2
31612 __db_version
31613 #endif
31614
31615 _ACEOF
31616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31617   $EGREP "__db_version" >/dev/null 2>&1; then
31618   ol_cv_bdb_minor=2
31619 else
31620   :
31621 fi
31622 rm -f conftest*
31623
31624         fi
31625         if test $ol_cv_bdb_minor = 0 ; then
31626                 cat >conftest.$ac_ext <<_ACEOF
31627 /* confdefs.h.  */
31628 _ACEOF
31629 cat confdefs.h >>conftest.$ac_ext
31630 cat >>conftest.$ac_ext <<_ACEOF
31631 /* end confdefs.h.  */
31632
31633 #include <db.h>
31634 #ifndef DB_VERSION_MINOR
31635 #       define DB_VERSION_MINOR 0
31636 #endif
31637 #if DB_VERSION_MINOR == 1
31638 __db_version
31639 #endif
31640
31641 _ACEOF
31642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31643   $EGREP "__db_version" >/dev/null 2>&1; then
31644   ol_cv_bdb_minor=1
31645 else
31646   :
31647 fi
31648 rm -f conftest*
31649
31650         fi
31651
31652 fi
31653 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31654 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31655
31656 if test $ol_cv_bdb_major = 4 ; then
31657         if test $ol_cv_bdb_minor = 4 ; then
31658                 if test $ol_cv_lib_db = no ; then
31659         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31660 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31661 if test "${ol_cv_db_db44+set}" = set; then
31662   echo $ECHO_N "(cached) $ECHO_C" >&6
31663 else
31664
31665         ol_DB_LIB=-ldb44
31666         ol_LIBS=$LIBS
31667         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31668
31669         cat >conftest.$ac_ext <<_ACEOF
31670 /* confdefs.h.  */
31671 _ACEOF
31672 cat confdefs.h >>conftest.$ac_ext
31673 cat >>conftest.$ac_ext <<_ACEOF
31674 /* end confdefs.h.  */
31675
31676 #ifdef HAVE_DB_185_H
31677 # include <db_185.h>
31678 #else
31679 # include <db.h>
31680 #endif
31681
31682 #ifndef DB_VERSION_MAJOR
31683 # define DB_VERSION_MAJOR 1
31684 #endif
31685
31686 #ifndef NULL
31687 #define NULL ((void*)0)
31688 #endif
31689
31690 int
31691 main ()
31692 {
31693
31694 #if DB_VERSION_MAJOR > 1
31695         {
31696                 char *version;
31697                 int major, minor, patch;
31698
31699                 version = db_version( &major, &minor, &patch );
31700
31701                 if( major != DB_VERSION_MAJOR ||
31702                         minor < DB_VERSION_MINOR )
31703                 {
31704                         printf("Berkeley DB version mismatch\n"
31705                                 "\theader: %s\n\tlibrary: %s\n",
31706                                 DB_VERSION_STRING, version);
31707                         return 1;
31708                 }
31709         }
31710 #endif
31711
31712 #if DB_VERSION_MAJOR > 2
31713         db_env_create( NULL, 0 );
31714 #elif DB_VERSION_MAJOR > 1
31715         db_appexit( NULL );
31716 #else
31717         (void) dbopen( NULL, 0, 0, 0, NULL);
31718 #endif
31719
31720   ;
31721   return 0;
31722 }
31723 _ACEOF
31724 rm -f conftest.$ac_objext conftest$ac_exeext
31725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31726   (eval $ac_link) 2>conftest.er1
31727   ac_status=$?
31728   grep -v '^ *+' conftest.er1 >conftest.err
31729   rm -f conftest.er1
31730   cat conftest.err >&5
31731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732   (exit $ac_status); } &&
31733          { ac_try='test -z "$ac_c_werror_flag"
31734                          || test ! -s conftest.err'
31735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31736   (eval $ac_try) 2>&5
31737   ac_status=$?
31738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739   (exit $ac_status); }; } &&
31740          { ac_try='test -s conftest$ac_exeext'
31741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31742   (eval $ac_try) 2>&5
31743   ac_status=$?
31744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31745   (exit $ac_status); }; }; then
31746   ol_cv_db_db44=yes
31747 else
31748   echo "$as_me: failed program was:" >&5
31749 sed 's/^/| /' conftest.$ac_ext >&5
31750
31751 ol_cv_db_db44=no
31752 fi
31753 rm -f conftest.err conftest.$ac_objext \
31754       conftest$ac_exeext conftest.$ac_ext
31755
31756         LIBS="$ol_LIBS"
31757
31758 fi
31759 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31760 echo "${ECHO_T}$ol_cv_db_db44" >&6
31761
31762         if test $ol_cv_db_db44 = yes ; then
31763                 ol_cv_lib_db=-ldb44
31764         fi
31765 fi
31766
31767                 if test $ol_cv_lib_db = no ; then
31768         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31769 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31770 if test "${ol_cv_db_db_44+set}" = set; then
31771   echo $ECHO_N "(cached) $ECHO_C" >&6
31772 else
31773
31774         ol_DB_LIB=-ldb-44
31775         ol_LIBS=$LIBS
31776         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31777
31778         cat >conftest.$ac_ext <<_ACEOF
31779 /* confdefs.h.  */
31780 _ACEOF
31781 cat confdefs.h >>conftest.$ac_ext
31782 cat >>conftest.$ac_ext <<_ACEOF
31783 /* end confdefs.h.  */
31784
31785 #ifdef HAVE_DB_185_H
31786 # include <db_185.h>
31787 #else
31788 # include <db.h>
31789 #endif
31790
31791 #ifndef DB_VERSION_MAJOR
31792 # define DB_VERSION_MAJOR 1
31793 #endif
31794
31795 #ifndef NULL
31796 #define NULL ((void*)0)
31797 #endif
31798
31799 int
31800 main ()
31801 {
31802
31803 #if DB_VERSION_MAJOR > 1
31804         {
31805                 char *version;
31806                 int major, minor, patch;
31807
31808                 version = db_version( &major, &minor, &patch );
31809
31810                 if( major != DB_VERSION_MAJOR ||
31811                         minor < DB_VERSION_MINOR )
31812                 {
31813                         printf("Berkeley DB version mismatch\n"
31814                                 "\theader: %s\n\tlibrary: %s\n",
31815                                 DB_VERSION_STRING, version);
31816                         return 1;
31817                 }
31818         }
31819 #endif
31820
31821 #if DB_VERSION_MAJOR > 2
31822         db_env_create( NULL, 0 );
31823 #elif DB_VERSION_MAJOR > 1
31824         db_appexit( NULL );
31825 #else
31826         (void) dbopen( NULL, 0, 0, 0, NULL);
31827 #endif
31828
31829   ;
31830   return 0;
31831 }
31832 _ACEOF
31833 rm -f conftest.$ac_objext conftest$ac_exeext
31834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31835   (eval $ac_link) 2>conftest.er1
31836   ac_status=$?
31837   grep -v '^ *+' conftest.er1 >conftest.err
31838   rm -f conftest.er1
31839   cat conftest.err >&5
31840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841   (exit $ac_status); } &&
31842          { ac_try='test -z "$ac_c_werror_flag"
31843                          || test ! -s conftest.err'
31844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31845   (eval $ac_try) 2>&5
31846   ac_status=$?
31847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848   (exit $ac_status); }; } &&
31849          { ac_try='test -s conftest$ac_exeext'
31850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31851   (eval $ac_try) 2>&5
31852   ac_status=$?
31853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854   (exit $ac_status); }; }; then
31855   ol_cv_db_db_44=yes
31856 else
31857   echo "$as_me: failed program was:" >&5
31858 sed 's/^/| /' conftest.$ac_ext >&5
31859
31860 ol_cv_db_db_44=no
31861 fi
31862 rm -f conftest.err conftest.$ac_objext \
31863       conftest$ac_exeext conftest.$ac_ext
31864
31865         LIBS="$ol_LIBS"
31866
31867 fi
31868 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31869 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31870
31871         if test $ol_cv_db_db_44 = yes ; then
31872                 ol_cv_lib_db=-ldb-44
31873         fi
31874 fi
31875
31876                 if test $ol_cv_lib_db = no ; then
31877         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31878 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31879 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31880   echo $ECHO_N "(cached) $ECHO_C" >&6
31881 else
31882
31883         ol_DB_LIB=-ldb-4.4
31884         ol_LIBS=$LIBS
31885         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31886
31887         cat >conftest.$ac_ext <<_ACEOF
31888 /* confdefs.h.  */
31889 _ACEOF
31890 cat confdefs.h >>conftest.$ac_ext
31891 cat >>conftest.$ac_ext <<_ACEOF
31892 /* end confdefs.h.  */
31893
31894 #ifdef HAVE_DB_185_H
31895 # include <db_185.h>
31896 #else
31897 # include <db.h>
31898 #endif
31899
31900 #ifndef DB_VERSION_MAJOR
31901 # define DB_VERSION_MAJOR 1
31902 #endif
31903
31904 #ifndef NULL
31905 #define NULL ((void*)0)
31906 #endif
31907
31908 int
31909 main ()
31910 {
31911
31912 #if DB_VERSION_MAJOR > 1
31913         {
31914                 char *version;
31915                 int major, minor, patch;
31916
31917                 version = db_version( &major, &minor, &patch );
31918
31919                 if( major != DB_VERSION_MAJOR ||
31920                         minor < DB_VERSION_MINOR )
31921                 {
31922                         printf("Berkeley DB version mismatch\n"
31923                                 "\theader: %s\n\tlibrary: %s\n",
31924                                 DB_VERSION_STRING, version);
31925                         return 1;
31926                 }
31927         }
31928 #endif
31929
31930 #if DB_VERSION_MAJOR > 2
31931         db_env_create( NULL, 0 );
31932 #elif DB_VERSION_MAJOR > 1
31933         db_appexit( NULL );
31934 #else
31935         (void) dbopen( NULL, 0, 0, 0, NULL);
31936 #endif
31937
31938   ;
31939   return 0;
31940 }
31941 _ACEOF
31942 rm -f conftest.$ac_objext conftest$ac_exeext
31943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31944   (eval $ac_link) 2>conftest.er1
31945   ac_status=$?
31946   grep -v '^ *+' conftest.er1 >conftest.err
31947   rm -f conftest.er1
31948   cat conftest.err >&5
31949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950   (exit $ac_status); } &&
31951          { ac_try='test -z "$ac_c_werror_flag"
31952                          || test ! -s conftest.err'
31953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31954   (eval $ac_try) 2>&5
31955   ac_status=$?
31956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31957   (exit $ac_status); }; } &&
31958          { ac_try='test -s conftest$ac_exeext'
31959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31960   (eval $ac_try) 2>&5
31961   ac_status=$?
31962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963   (exit $ac_status); }; }; then
31964   ol_cv_db_db_4_dot_4=yes
31965 else
31966   echo "$as_me: failed program was:" >&5
31967 sed 's/^/| /' conftest.$ac_ext >&5
31968
31969 ol_cv_db_db_4_dot_4=no
31970 fi
31971 rm -f conftest.err conftest.$ac_objext \
31972       conftest$ac_exeext conftest.$ac_ext
31973
31974         LIBS="$ol_LIBS"
31975
31976 fi
31977 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
31978 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
31979
31980         if test $ol_cv_db_db_4_dot_4 = yes ; then
31981                 ol_cv_lib_db=-ldb-4.4
31982         fi
31983 fi
31984
31985                 if test $ol_cv_lib_db = no ; then
31986         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
31987 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
31988 if test "${ol_cv_db_db_4_4+set}" = set; then
31989   echo $ECHO_N "(cached) $ECHO_C" >&6
31990 else
31991
31992         ol_DB_LIB=-ldb-4-4
31993         ol_LIBS=$LIBS
31994         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31995
31996         cat >conftest.$ac_ext <<_ACEOF
31997 /* confdefs.h.  */
31998 _ACEOF
31999 cat confdefs.h >>conftest.$ac_ext
32000 cat >>conftest.$ac_ext <<_ACEOF
32001 /* end confdefs.h.  */
32002
32003 #ifdef HAVE_DB_185_H
32004 # include <db_185.h>
32005 #else
32006 # include <db.h>
32007 #endif
32008
32009 #ifndef DB_VERSION_MAJOR
32010 # define DB_VERSION_MAJOR 1
32011 #endif
32012
32013 #ifndef NULL
32014 #define NULL ((void*)0)
32015 #endif
32016
32017 int
32018 main ()
32019 {
32020
32021 #if DB_VERSION_MAJOR > 1
32022         {
32023                 char *version;
32024                 int major, minor, patch;
32025
32026                 version = db_version( &major, &minor, &patch );
32027
32028                 if( major != DB_VERSION_MAJOR ||
32029                         minor < DB_VERSION_MINOR )
32030                 {
32031                         printf("Berkeley DB version mismatch\n"
32032                                 "\theader: %s\n\tlibrary: %s\n",
32033                                 DB_VERSION_STRING, version);
32034                         return 1;
32035                 }
32036         }
32037 #endif
32038
32039 #if DB_VERSION_MAJOR > 2
32040         db_env_create( NULL, 0 );
32041 #elif DB_VERSION_MAJOR > 1
32042         db_appexit( NULL );
32043 #else
32044         (void) dbopen( NULL, 0, 0, 0, NULL);
32045 #endif
32046
32047   ;
32048   return 0;
32049 }
32050 _ACEOF
32051 rm -f conftest.$ac_objext conftest$ac_exeext
32052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32053   (eval $ac_link) 2>conftest.er1
32054   ac_status=$?
32055   grep -v '^ *+' conftest.er1 >conftest.err
32056   rm -f conftest.er1
32057   cat conftest.err >&5
32058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059   (exit $ac_status); } &&
32060          { ac_try='test -z "$ac_c_werror_flag"
32061                          || test ! -s conftest.err'
32062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32063   (eval $ac_try) 2>&5
32064   ac_status=$?
32065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066   (exit $ac_status); }; } &&
32067          { ac_try='test -s conftest$ac_exeext'
32068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32069   (eval $ac_try) 2>&5
32070   ac_status=$?
32071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072   (exit $ac_status); }; }; then
32073   ol_cv_db_db_4_4=yes
32074 else
32075   echo "$as_me: failed program was:" >&5
32076 sed 's/^/| /' conftest.$ac_ext >&5
32077
32078 ol_cv_db_db_4_4=no
32079 fi
32080 rm -f conftest.err conftest.$ac_objext \
32081       conftest$ac_exeext conftest.$ac_ext
32082
32083         LIBS="$ol_LIBS"
32084
32085 fi
32086 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32087 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32088
32089         if test $ol_cv_db_db_4_4 = yes ; then
32090                 ol_cv_lib_db=-ldb-4-4
32091         fi
32092 fi
32093
32094         elif test $ol_cv_bdb_minor = 3 ; then
32095                 if test $ol_cv_lib_db = no ; then
32096         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32097 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32098 if test "${ol_cv_db_db43+set}" = set; then
32099   echo $ECHO_N "(cached) $ECHO_C" >&6
32100 else
32101
32102         ol_DB_LIB=-ldb43
32103         ol_LIBS=$LIBS
32104         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32105
32106         cat >conftest.$ac_ext <<_ACEOF
32107 /* confdefs.h.  */
32108 _ACEOF
32109 cat confdefs.h >>conftest.$ac_ext
32110 cat >>conftest.$ac_ext <<_ACEOF
32111 /* end confdefs.h.  */
32112
32113 #ifdef HAVE_DB_185_H
32114 # include <db_185.h>
32115 #else
32116 # include <db.h>
32117 #endif
32118
32119 #ifndef DB_VERSION_MAJOR
32120 # define DB_VERSION_MAJOR 1
32121 #endif
32122
32123 #ifndef NULL
32124 #define NULL ((void*)0)
32125 #endif
32126
32127 int
32128 main ()
32129 {
32130
32131 #if DB_VERSION_MAJOR > 1
32132         {
32133                 char *version;
32134                 int major, minor, patch;
32135
32136                 version = db_version( &major, &minor, &patch );
32137
32138                 if( major != DB_VERSION_MAJOR ||
32139                         minor < DB_VERSION_MINOR )
32140                 {
32141                         printf("Berkeley DB version mismatch\n"
32142                                 "\theader: %s\n\tlibrary: %s\n",
32143                                 DB_VERSION_STRING, version);
32144                         return 1;
32145                 }
32146         }
32147 #endif
32148
32149 #if DB_VERSION_MAJOR > 2
32150         db_env_create( NULL, 0 );
32151 #elif DB_VERSION_MAJOR > 1
32152         db_appexit( NULL );
32153 #else
32154         (void) dbopen( NULL, 0, 0, 0, NULL);
32155 #endif
32156
32157   ;
32158   return 0;
32159 }
32160 _ACEOF
32161 rm -f conftest.$ac_objext conftest$ac_exeext
32162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32163   (eval $ac_link) 2>conftest.er1
32164   ac_status=$?
32165   grep -v '^ *+' conftest.er1 >conftest.err
32166   rm -f conftest.er1
32167   cat conftest.err >&5
32168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32169   (exit $ac_status); } &&
32170          { ac_try='test -z "$ac_c_werror_flag"
32171                          || test ! -s conftest.err'
32172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32173   (eval $ac_try) 2>&5
32174   ac_status=$?
32175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176   (exit $ac_status); }; } &&
32177          { ac_try='test -s conftest$ac_exeext'
32178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32179   (eval $ac_try) 2>&5
32180   ac_status=$?
32181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182   (exit $ac_status); }; }; then
32183   ol_cv_db_db43=yes
32184 else
32185   echo "$as_me: failed program was:" >&5
32186 sed 's/^/| /' conftest.$ac_ext >&5
32187
32188 ol_cv_db_db43=no
32189 fi
32190 rm -f conftest.err conftest.$ac_objext \
32191       conftest$ac_exeext conftest.$ac_ext
32192
32193         LIBS="$ol_LIBS"
32194
32195 fi
32196 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32197 echo "${ECHO_T}$ol_cv_db_db43" >&6
32198
32199         if test $ol_cv_db_db43 = yes ; then
32200                 ol_cv_lib_db=-ldb43
32201         fi
32202 fi
32203
32204                 if test $ol_cv_lib_db = no ; then
32205         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32206 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32207 if test "${ol_cv_db_db_43+set}" = set; then
32208   echo $ECHO_N "(cached) $ECHO_C" >&6
32209 else
32210
32211         ol_DB_LIB=-ldb-43
32212         ol_LIBS=$LIBS
32213         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32214
32215         cat >conftest.$ac_ext <<_ACEOF
32216 /* confdefs.h.  */
32217 _ACEOF
32218 cat confdefs.h >>conftest.$ac_ext
32219 cat >>conftest.$ac_ext <<_ACEOF
32220 /* end confdefs.h.  */
32221
32222 #ifdef HAVE_DB_185_H
32223 # include <db_185.h>
32224 #else
32225 # include <db.h>
32226 #endif
32227
32228 #ifndef DB_VERSION_MAJOR
32229 # define DB_VERSION_MAJOR 1
32230 #endif
32231
32232 #ifndef NULL
32233 #define NULL ((void*)0)
32234 #endif
32235
32236 int
32237 main ()
32238 {
32239
32240 #if DB_VERSION_MAJOR > 1
32241         {
32242                 char *version;
32243                 int major, minor, patch;
32244
32245                 version = db_version( &major, &minor, &patch );
32246
32247                 if( major != DB_VERSION_MAJOR ||
32248                         minor < DB_VERSION_MINOR )
32249                 {
32250                         printf("Berkeley DB version mismatch\n"
32251                                 "\theader: %s\n\tlibrary: %s\n",
32252                                 DB_VERSION_STRING, version);
32253                         return 1;
32254                 }
32255         }
32256 #endif
32257
32258 #if DB_VERSION_MAJOR > 2
32259         db_env_create( NULL, 0 );
32260 #elif DB_VERSION_MAJOR > 1
32261         db_appexit( NULL );
32262 #else
32263         (void) dbopen( NULL, 0, 0, 0, NULL);
32264 #endif
32265
32266   ;
32267   return 0;
32268 }
32269 _ACEOF
32270 rm -f conftest.$ac_objext conftest$ac_exeext
32271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32272   (eval $ac_link) 2>conftest.er1
32273   ac_status=$?
32274   grep -v '^ *+' conftest.er1 >conftest.err
32275   rm -f conftest.er1
32276   cat conftest.err >&5
32277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278   (exit $ac_status); } &&
32279          { ac_try='test -z "$ac_c_werror_flag"
32280                          || test ! -s conftest.err'
32281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32282   (eval $ac_try) 2>&5
32283   ac_status=$?
32284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285   (exit $ac_status); }; } &&
32286          { ac_try='test -s conftest$ac_exeext'
32287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32288   (eval $ac_try) 2>&5
32289   ac_status=$?
32290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291   (exit $ac_status); }; }; then
32292   ol_cv_db_db_43=yes
32293 else
32294   echo "$as_me: failed program was:" >&5
32295 sed 's/^/| /' conftest.$ac_ext >&5
32296
32297 ol_cv_db_db_43=no
32298 fi
32299 rm -f conftest.err conftest.$ac_objext \
32300       conftest$ac_exeext conftest.$ac_ext
32301
32302         LIBS="$ol_LIBS"
32303
32304 fi
32305 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32306 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32307
32308         if test $ol_cv_db_db_43 = yes ; then
32309                 ol_cv_lib_db=-ldb-43
32310         fi
32311 fi
32312
32313                 if test $ol_cv_lib_db = no ; then
32314         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32315 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32316 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32317   echo $ECHO_N "(cached) $ECHO_C" >&6
32318 else
32319
32320         ol_DB_LIB=-ldb-4.3
32321         ol_LIBS=$LIBS
32322         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32323
32324         cat >conftest.$ac_ext <<_ACEOF
32325 /* confdefs.h.  */
32326 _ACEOF
32327 cat confdefs.h >>conftest.$ac_ext
32328 cat >>conftest.$ac_ext <<_ACEOF
32329 /* end confdefs.h.  */
32330
32331 #ifdef HAVE_DB_185_H
32332 # include <db_185.h>
32333 #else
32334 # include <db.h>
32335 #endif
32336
32337 #ifndef DB_VERSION_MAJOR
32338 # define DB_VERSION_MAJOR 1
32339 #endif
32340
32341 #ifndef NULL
32342 #define NULL ((void*)0)
32343 #endif
32344
32345 int
32346 main ()
32347 {
32348
32349 #if DB_VERSION_MAJOR > 1
32350         {
32351                 char *version;
32352                 int major, minor, patch;
32353
32354                 version = db_version( &major, &minor, &patch );
32355
32356                 if( major != DB_VERSION_MAJOR ||
32357                         minor < DB_VERSION_MINOR )
32358                 {
32359                         printf("Berkeley DB version mismatch\n"
32360                                 "\theader: %s\n\tlibrary: %s\n",
32361                                 DB_VERSION_STRING, version);
32362                         return 1;
32363                 }
32364         }
32365 #endif
32366
32367 #if DB_VERSION_MAJOR > 2
32368         db_env_create( NULL, 0 );
32369 #elif DB_VERSION_MAJOR > 1
32370         db_appexit( NULL );
32371 #else
32372         (void) dbopen( NULL, 0, 0, 0, NULL);
32373 #endif
32374
32375   ;
32376   return 0;
32377 }
32378 _ACEOF
32379 rm -f conftest.$ac_objext conftest$ac_exeext
32380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32381   (eval $ac_link) 2>conftest.er1
32382   ac_status=$?
32383   grep -v '^ *+' conftest.er1 >conftest.err
32384   rm -f conftest.er1
32385   cat conftest.err >&5
32386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387   (exit $ac_status); } &&
32388          { ac_try='test -z "$ac_c_werror_flag"
32389                          || test ! -s conftest.err'
32390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32391   (eval $ac_try) 2>&5
32392   ac_status=$?
32393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394   (exit $ac_status); }; } &&
32395          { ac_try='test -s conftest$ac_exeext'
32396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32397   (eval $ac_try) 2>&5
32398   ac_status=$?
32399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400   (exit $ac_status); }; }; then
32401   ol_cv_db_db_4_dot_3=yes
32402 else
32403   echo "$as_me: failed program was:" >&5
32404 sed 's/^/| /' conftest.$ac_ext >&5
32405
32406 ol_cv_db_db_4_dot_3=no
32407 fi
32408 rm -f conftest.err conftest.$ac_objext \
32409       conftest$ac_exeext conftest.$ac_ext
32410
32411         LIBS="$ol_LIBS"
32412
32413 fi
32414 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32415 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32416
32417         if test $ol_cv_db_db_4_dot_3 = yes ; then
32418                 ol_cv_lib_db=-ldb-4.3
32419         fi
32420 fi
32421
32422                 if test $ol_cv_lib_db = no ; then
32423         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32424 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32425 if test "${ol_cv_db_db_4_3+set}" = set; then
32426   echo $ECHO_N "(cached) $ECHO_C" >&6
32427 else
32428
32429         ol_DB_LIB=-ldb-4-3
32430         ol_LIBS=$LIBS
32431         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32432
32433         cat >conftest.$ac_ext <<_ACEOF
32434 /* confdefs.h.  */
32435 _ACEOF
32436 cat confdefs.h >>conftest.$ac_ext
32437 cat >>conftest.$ac_ext <<_ACEOF
32438 /* end confdefs.h.  */
32439
32440 #ifdef HAVE_DB_185_H
32441 # include <db_185.h>
32442 #else
32443 # include <db.h>
32444 #endif
32445
32446 #ifndef DB_VERSION_MAJOR
32447 # define DB_VERSION_MAJOR 1
32448 #endif
32449
32450 #ifndef NULL
32451 #define NULL ((void*)0)
32452 #endif
32453
32454 int
32455 main ()
32456 {
32457
32458 #if DB_VERSION_MAJOR > 1
32459         {
32460                 char *version;
32461                 int major, minor, patch;
32462
32463                 version = db_version( &major, &minor, &patch );
32464
32465                 if( major != DB_VERSION_MAJOR ||
32466                         minor < DB_VERSION_MINOR )
32467                 {
32468                         printf("Berkeley DB version mismatch\n"
32469                                 "\theader: %s\n\tlibrary: %s\n",
32470                                 DB_VERSION_STRING, version);
32471                         return 1;
32472                 }
32473         }
32474 #endif
32475
32476 #if DB_VERSION_MAJOR > 2
32477         db_env_create( NULL, 0 );
32478 #elif DB_VERSION_MAJOR > 1
32479         db_appexit( NULL );
32480 #else
32481         (void) dbopen( NULL, 0, 0, 0, NULL);
32482 #endif
32483
32484   ;
32485   return 0;
32486 }
32487 _ACEOF
32488 rm -f conftest.$ac_objext conftest$ac_exeext
32489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32490   (eval $ac_link) 2>conftest.er1
32491   ac_status=$?
32492   grep -v '^ *+' conftest.er1 >conftest.err
32493   rm -f conftest.er1
32494   cat conftest.err >&5
32495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496   (exit $ac_status); } &&
32497          { ac_try='test -z "$ac_c_werror_flag"
32498                          || test ! -s conftest.err'
32499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32500   (eval $ac_try) 2>&5
32501   ac_status=$?
32502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503   (exit $ac_status); }; } &&
32504          { ac_try='test -s conftest$ac_exeext'
32505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32506   (eval $ac_try) 2>&5
32507   ac_status=$?
32508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509   (exit $ac_status); }; }; then
32510   ol_cv_db_db_4_3=yes
32511 else
32512   echo "$as_me: failed program was:" >&5
32513 sed 's/^/| /' conftest.$ac_ext >&5
32514
32515 ol_cv_db_db_4_3=no
32516 fi
32517 rm -f conftest.err conftest.$ac_objext \
32518       conftest$ac_exeext conftest.$ac_ext
32519
32520         LIBS="$ol_LIBS"
32521
32522 fi
32523 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32524 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32525
32526         if test $ol_cv_db_db_4_3 = yes ; then
32527                 ol_cv_lib_db=-ldb-4-3
32528         fi
32529 fi
32530
32531         elif test $ol_cv_bdb_minor = 2 ; then
32532                 if test $ol_cv_lib_db = no ; then
32533         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32534 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32535 if test "${ol_cv_db_db42+set}" = set; then
32536   echo $ECHO_N "(cached) $ECHO_C" >&6
32537 else
32538
32539         ol_DB_LIB=-ldb42
32540         ol_LIBS=$LIBS
32541         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32542
32543         cat >conftest.$ac_ext <<_ACEOF
32544 /* confdefs.h.  */
32545 _ACEOF
32546 cat confdefs.h >>conftest.$ac_ext
32547 cat >>conftest.$ac_ext <<_ACEOF
32548 /* end confdefs.h.  */
32549
32550 #ifdef HAVE_DB_185_H
32551 # include <db_185.h>
32552 #else
32553 # include <db.h>
32554 #endif
32555
32556 #ifndef DB_VERSION_MAJOR
32557 # define DB_VERSION_MAJOR 1
32558 #endif
32559
32560 #ifndef NULL
32561 #define NULL ((void*)0)
32562 #endif
32563
32564 int
32565 main ()
32566 {
32567
32568 #if DB_VERSION_MAJOR > 1
32569         {
32570                 char *version;
32571                 int major, minor, patch;
32572
32573                 version = db_version( &major, &minor, &patch );
32574
32575                 if( major != DB_VERSION_MAJOR ||
32576                         minor < DB_VERSION_MINOR )
32577                 {
32578                         printf("Berkeley DB version mismatch\n"
32579                                 "\theader: %s\n\tlibrary: %s\n",
32580                                 DB_VERSION_STRING, version);
32581                         return 1;
32582                 }
32583         }
32584 #endif
32585
32586 #if DB_VERSION_MAJOR > 2
32587         db_env_create( NULL, 0 );
32588 #elif DB_VERSION_MAJOR > 1
32589         db_appexit( NULL );
32590 #else
32591         (void) dbopen( NULL, 0, 0, 0, NULL);
32592 #endif
32593
32594   ;
32595   return 0;
32596 }
32597 _ACEOF
32598 rm -f conftest.$ac_objext conftest$ac_exeext
32599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32600   (eval $ac_link) 2>conftest.er1
32601   ac_status=$?
32602   grep -v '^ *+' conftest.er1 >conftest.err
32603   rm -f conftest.er1
32604   cat conftest.err >&5
32605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606   (exit $ac_status); } &&
32607          { ac_try='test -z "$ac_c_werror_flag"
32608                          || test ! -s conftest.err'
32609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32610   (eval $ac_try) 2>&5
32611   ac_status=$?
32612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613   (exit $ac_status); }; } &&
32614          { ac_try='test -s conftest$ac_exeext'
32615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32616   (eval $ac_try) 2>&5
32617   ac_status=$?
32618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619   (exit $ac_status); }; }; then
32620   ol_cv_db_db42=yes
32621 else
32622   echo "$as_me: failed program was:" >&5
32623 sed 's/^/| /' conftest.$ac_ext >&5
32624
32625 ol_cv_db_db42=no
32626 fi
32627 rm -f conftest.err conftest.$ac_objext \
32628       conftest$ac_exeext conftest.$ac_ext
32629
32630         LIBS="$ol_LIBS"
32631
32632 fi
32633 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32634 echo "${ECHO_T}$ol_cv_db_db42" >&6
32635
32636         if test $ol_cv_db_db42 = yes ; then
32637                 ol_cv_lib_db=-ldb42
32638         fi
32639 fi
32640
32641                 if test $ol_cv_lib_db = no ; then
32642         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32643 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32644 if test "${ol_cv_db_db_42+set}" = set; then
32645   echo $ECHO_N "(cached) $ECHO_C" >&6
32646 else
32647
32648         ol_DB_LIB=-ldb-42
32649         ol_LIBS=$LIBS
32650         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32651
32652         cat >conftest.$ac_ext <<_ACEOF
32653 /* confdefs.h.  */
32654 _ACEOF
32655 cat confdefs.h >>conftest.$ac_ext
32656 cat >>conftest.$ac_ext <<_ACEOF
32657 /* end confdefs.h.  */
32658
32659 #ifdef HAVE_DB_185_H
32660 # include <db_185.h>
32661 #else
32662 # include <db.h>
32663 #endif
32664
32665 #ifndef DB_VERSION_MAJOR
32666 # define DB_VERSION_MAJOR 1
32667 #endif
32668
32669 #ifndef NULL
32670 #define NULL ((void*)0)
32671 #endif
32672
32673 int
32674 main ()
32675 {
32676
32677 #if DB_VERSION_MAJOR > 1
32678         {
32679                 char *version;
32680                 int major, minor, patch;
32681
32682                 version = db_version( &major, &minor, &patch );
32683
32684                 if( major != DB_VERSION_MAJOR ||
32685                         minor < DB_VERSION_MINOR )
32686                 {
32687                         printf("Berkeley DB version mismatch\n"
32688                                 "\theader: %s\n\tlibrary: %s\n",
32689                                 DB_VERSION_STRING, version);
32690                         return 1;
32691                 }
32692         }
32693 #endif
32694
32695 #if DB_VERSION_MAJOR > 2
32696         db_env_create( NULL, 0 );
32697 #elif DB_VERSION_MAJOR > 1
32698         db_appexit( NULL );
32699 #else
32700         (void) dbopen( NULL, 0, 0, 0, NULL);
32701 #endif
32702
32703   ;
32704   return 0;
32705 }
32706 _ACEOF
32707 rm -f conftest.$ac_objext conftest$ac_exeext
32708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32709   (eval $ac_link) 2>conftest.er1
32710   ac_status=$?
32711   grep -v '^ *+' conftest.er1 >conftest.err
32712   rm -f conftest.er1
32713   cat conftest.err >&5
32714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32715   (exit $ac_status); } &&
32716          { ac_try='test -z "$ac_c_werror_flag"
32717                          || test ! -s conftest.err'
32718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32719   (eval $ac_try) 2>&5
32720   ac_status=$?
32721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722   (exit $ac_status); }; } &&
32723          { ac_try='test -s conftest$ac_exeext'
32724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32725   (eval $ac_try) 2>&5
32726   ac_status=$?
32727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728   (exit $ac_status); }; }; then
32729   ol_cv_db_db_42=yes
32730 else
32731   echo "$as_me: failed program was:" >&5
32732 sed 's/^/| /' conftest.$ac_ext >&5
32733
32734 ol_cv_db_db_42=no
32735 fi
32736 rm -f conftest.err conftest.$ac_objext \
32737       conftest$ac_exeext conftest.$ac_ext
32738
32739         LIBS="$ol_LIBS"
32740
32741 fi
32742 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32743 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32744
32745         if test $ol_cv_db_db_42 = yes ; then
32746                 ol_cv_lib_db=-ldb-42
32747         fi
32748 fi
32749
32750                 if test $ol_cv_lib_db = no ; then
32751         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32752 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32753 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32754   echo $ECHO_N "(cached) $ECHO_C" >&6
32755 else
32756
32757         ol_DB_LIB=-ldb-4.2
32758         ol_LIBS=$LIBS
32759         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32760
32761         cat >conftest.$ac_ext <<_ACEOF
32762 /* confdefs.h.  */
32763 _ACEOF
32764 cat confdefs.h >>conftest.$ac_ext
32765 cat >>conftest.$ac_ext <<_ACEOF
32766 /* end confdefs.h.  */
32767
32768 #ifdef HAVE_DB_185_H
32769 # include <db_185.h>
32770 #else
32771 # include <db.h>
32772 #endif
32773
32774 #ifndef DB_VERSION_MAJOR
32775 # define DB_VERSION_MAJOR 1
32776 #endif
32777
32778 #ifndef NULL
32779 #define NULL ((void*)0)
32780 #endif
32781
32782 int
32783 main ()
32784 {
32785
32786 #if DB_VERSION_MAJOR > 1
32787         {
32788                 char *version;
32789                 int major, minor, patch;
32790
32791                 version = db_version( &major, &minor, &patch );
32792
32793                 if( major != DB_VERSION_MAJOR ||
32794                         minor < DB_VERSION_MINOR )
32795                 {
32796                         printf("Berkeley DB version mismatch\n"
32797                                 "\theader: %s\n\tlibrary: %s\n",
32798                                 DB_VERSION_STRING, version);
32799                         return 1;
32800                 }
32801         }
32802 #endif
32803
32804 #if DB_VERSION_MAJOR > 2
32805         db_env_create( NULL, 0 );
32806 #elif DB_VERSION_MAJOR > 1
32807         db_appexit( NULL );
32808 #else
32809         (void) dbopen( NULL, 0, 0, 0, NULL);
32810 #endif
32811
32812   ;
32813   return 0;
32814 }
32815 _ACEOF
32816 rm -f conftest.$ac_objext conftest$ac_exeext
32817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32818   (eval $ac_link) 2>conftest.er1
32819   ac_status=$?
32820   grep -v '^ *+' conftest.er1 >conftest.err
32821   rm -f conftest.er1
32822   cat conftest.err >&5
32823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824   (exit $ac_status); } &&
32825          { ac_try='test -z "$ac_c_werror_flag"
32826                          || test ! -s conftest.err'
32827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32828   (eval $ac_try) 2>&5
32829   ac_status=$?
32830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831   (exit $ac_status); }; } &&
32832          { ac_try='test -s conftest$ac_exeext'
32833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32834   (eval $ac_try) 2>&5
32835   ac_status=$?
32836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837   (exit $ac_status); }; }; then
32838   ol_cv_db_db_4_dot_2=yes
32839 else
32840   echo "$as_me: failed program was:" >&5
32841 sed 's/^/| /' conftest.$ac_ext >&5
32842
32843 ol_cv_db_db_4_dot_2=no
32844 fi
32845 rm -f conftest.err conftest.$ac_objext \
32846       conftest$ac_exeext conftest.$ac_ext
32847
32848         LIBS="$ol_LIBS"
32849
32850 fi
32851 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32852 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32853
32854         if test $ol_cv_db_db_4_dot_2 = yes ; then
32855                 ol_cv_lib_db=-ldb-4.2
32856         fi
32857 fi
32858
32859                 if test $ol_cv_lib_db = no ; then
32860         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32861 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32862 if test "${ol_cv_db_db_4_2+set}" = set; then
32863   echo $ECHO_N "(cached) $ECHO_C" >&6
32864 else
32865
32866         ol_DB_LIB=-ldb-4-2
32867         ol_LIBS=$LIBS
32868         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32869
32870         cat >conftest.$ac_ext <<_ACEOF
32871 /* confdefs.h.  */
32872 _ACEOF
32873 cat confdefs.h >>conftest.$ac_ext
32874 cat >>conftest.$ac_ext <<_ACEOF
32875 /* end confdefs.h.  */
32876
32877 #ifdef HAVE_DB_185_H
32878 # include <db_185.h>
32879 #else
32880 # include <db.h>
32881 #endif
32882
32883 #ifndef DB_VERSION_MAJOR
32884 # define DB_VERSION_MAJOR 1
32885 #endif
32886
32887 #ifndef NULL
32888 #define NULL ((void*)0)
32889 #endif
32890
32891 int
32892 main ()
32893 {
32894
32895 #if DB_VERSION_MAJOR > 1
32896         {
32897                 char *version;
32898                 int major, minor, patch;
32899
32900                 version = db_version( &major, &minor, &patch );
32901
32902                 if( major != DB_VERSION_MAJOR ||
32903                         minor < DB_VERSION_MINOR )
32904                 {
32905                         printf("Berkeley DB version mismatch\n"
32906                                 "\theader: %s\n\tlibrary: %s\n",
32907                                 DB_VERSION_STRING, version);
32908                         return 1;
32909                 }
32910         }
32911 #endif
32912
32913 #if DB_VERSION_MAJOR > 2
32914         db_env_create( NULL, 0 );
32915 #elif DB_VERSION_MAJOR > 1
32916         db_appexit( NULL );
32917 #else
32918         (void) dbopen( NULL, 0, 0, 0, NULL);
32919 #endif
32920
32921   ;
32922   return 0;
32923 }
32924 _ACEOF
32925 rm -f conftest.$ac_objext conftest$ac_exeext
32926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32927   (eval $ac_link) 2>conftest.er1
32928   ac_status=$?
32929   grep -v '^ *+' conftest.er1 >conftest.err
32930   rm -f conftest.er1
32931   cat conftest.err >&5
32932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933   (exit $ac_status); } &&
32934          { ac_try='test -z "$ac_c_werror_flag"
32935                          || test ! -s conftest.err'
32936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32937   (eval $ac_try) 2>&5
32938   ac_status=$?
32939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940   (exit $ac_status); }; } &&
32941          { ac_try='test -s conftest$ac_exeext'
32942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32943   (eval $ac_try) 2>&5
32944   ac_status=$?
32945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946   (exit $ac_status); }; }; then
32947   ol_cv_db_db_4_2=yes
32948 else
32949   echo "$as_me: failed program was:" >&5
32950 sed 's/^/| /' conftest.$ac_ext >&5
32951
32952 ol_cv_db_db_4_2=no
32953 fi
32954 rm -f conftest.err conftest.$ac_objext \
32955       conftest$ac_exeext conftest.$ac_ext
32956
32957         LIBS="$ol_LIBS"
32958
32959 fi
32960 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
32961 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
32962
32963         if test $ol_cv_db_db_4_2 = yes ; then
32964                 ol_cv_lib_db=-ldb-4-2
32965         fi
32966 fi
32967
32968         elif test $ol_cv_bdb_minor = 1 ; then
32969                 if test $ol_cv_lib_db = no ; then
32970         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
32971 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
32972 if test "${ol_cv_db_db41+set}" = set; then
32973   echo $ECHO_N "(cached) $ECHO_C" >&6
32974 else
32975
32976         ol_DB_LIB=-ldb41
32977         ol_LIBS=$LIBS
32978         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32979
32980         cat >conftest.$ac_ext <<_ACEOF
32981 /* confdefs.h.  */
32982 _ACEOF
32983 cat confdefs.h >>conftest.$ac_ext
32984 cat >>conftest.$ac_ext <<_ACEOF
32985 /* end confdefs.h.  */
32986
32987 #ifdef HAVE_DB_185_H
32988 # include <db_185.h>
32989 #else
32990 # include <db.h>
32991 #endif
32992
32993 #ifndef DB_VERSION_MAJOR
32994 # define DB_VERSION_MAJOR 1
32995 #endif
32996
32997 #ifndef NULL
32998 #define NULL ((void*)0)
32999 #endif
33000
33001 int
33002 main ()
33003 {
33004
33005 #if DB_VERSION_MAJOR > 1
33006         {
33007                 char *version;
33008                 int major, minor, patch;
33009
33010                 version = db_version( &major, &minor, &patch );
33011
33012                 if( major != DB_VERSION_MAJOR ||
33013                         minor < DB_VERSION_MINOR )
33014                 {
33015                         printf("Berkeley DB version mismatch\n"
33016                                 "\theader: %s\n\tlibrary: %s\n",
33017                                 DB_VERSION_STRING, version);
33018                         return 1;
33019                 }
33020         }
33021 #endif
33022
33023 #if DB_VERSION_MAJOR > 2
33024         db_env_create( NULL, 0 );
33025 #elif DB_VERSION_MAJOR > 1
33026         db_appexit( NULL );
33027 #else
33028         (void) dbopen( NULL, 0, 0, 0, NULL);
33029 #endif
33030
33031   ;
33032   return 0;
33033 }
33034 _ACEOF
33035 rm -f conftest.$ac_objext conftest$ac_exeext
33036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33037   (eval $ac_link) 2>conftest.er1
33038   ac_status=$?
33039   grep -v '^ *+' conftest.er1 >conftest.err
33040   rm -f conftest.er1
33041   cat conftest.err >&5
33042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043   (exit $ac_status); } &&
33044          { ac_try='test -z "$ac_c_werror_flag"
33045                          || test ! -s conftest.err'
33046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33047   (eval $ac_try) 2>&5
33048   ac_status=$?
33049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33050   (exit $ac_status); }; } &&
33051          { ac_try='test -s conftest$ac_exeext'
33052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33053   (eval $ac_try) 2>&5
33054   ac_status=$?
33055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056   (exit $ac_status); }; }; then
33057   ol_cv_db_db41=yes
33058 else
33059   echo "$as_me: failed program was:" >&5
33060 sed 's/^/| /' conftest.$ac_ext >&5
33061
33062 ol_cv_db_db41=no
33063 fi
33064 rm -f conftest.err conftest.$ac_objext \
33065       conftest$ac_exeext conftest.$ac_ext
33066
33067         LIBS="$ol_LIBS"
33068
33069 fi
33070 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33071 echo "${ECHO_T}$ol_cv_db_db41" >&6
33072
33073         if test $ol_cv_db_db41 = yes ; then
33074                 ol_cv_lib_db=-ldb41
33075         fi
33076 fi
33077
33078                 if test $ol_cv_lib_db = no ; then
33079         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33080 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33081 if test "${ol_cv_db_db_41+set}" = set; then
33082   echo $ECHO_N "(cached) $ECHO_C" >&6
33083 else
33084
33085         ol_DB_LIB=-ldb-41
33086         ol_LIBS=$LIBS
33087         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33088
33089         cat >conftest.$ac_ext <<_ACEOF
33090 /* confdefs.h.  */
33091 _ACEOF
33092 cat confdefs.h >>conftest.$ac_ext
33093 cat >>conftest.$ac_ext <<_ACEOF
33094 /* end confdefs.h.  */
33095
33096 #ifdef HAVE_DB_185_H
33097 # include <db_185.h>
33098 #else
33099 # include <db.h>
33100 #endif
33101
33102 #ifndef DB_VERSION_MAJOR
33103 # define DB_VERSION_MAJOR 1
33104 #endif
33105
33106 #ifndef NULL
33107 #define NULL ((void*)0)
33108 #endif
33109
33110 int
33111 main ()
33112 {
33113
33114 #if DB_VERSION_MAJOR > 1
33115         {
33116                 char *version;
33117                 int major, minor, patch;
33118
33119                 version = db_version( &major, &minor, &patch );
33120
33121                 if( major != DB_VERSION_MAJOR ||
33122                         minor < DB_VERSION_MINOR )
33123                 {
33124                         printf("Berkeley DB version mismatch\n"
33125                                 "\theader: %s\n\tlibrary: %s\n",
33126                                 DB_VERSION_STRING, version);
33127                         return 1;
33128                 }
33129         }
33130 #endif
33131
33132 #if DB_VERSION_MAJOR > 2
33133         db_env_create( NULL, 0 );
33134 #elif DB_VERSION_MAJOR > 1
33135         db_appexit( NULL );
33136 #else
33137         (void) dbopen( NULL, 0, 0, 0, NULL);
33138 #endif
33139
33140   ;
33141   return 0;
33142 }
33143 _ACEOF
33144 rm -f conftest.$ac_objext conftest$ac_exeext
33145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33146   (eval $ac_link) 2>conftest.er1
33147   ac_status=$?
33148   grep -v '^ *+' conftest.er1 >conftest.err
33149   rm -f conftest.er1
33150   cat conftest.err >&5
33151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152   (exit $ac_status); } &&
33153          { ac_try='test -z "$ac_c_werror_flag"
33154                          || test ! -s conftest.err'
33155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33156   (eval $ac_try) 2>&5
33157   ac_status=$?
33158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159   (exit $ac_status); }; } &&
33160          { ac_try='test -s conftest$ac_exeext'
33161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33162   (eval $ac_try) 2>&5
33163   ac_status=$?
33164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165   (exit $ac_status); }; }; then
33166   ol_cv_db_db_41=yes
33167 else
33168   echo "$as_me: failed program was:" >&5
33169 sed 's/^/| /' conftest.$ac_ext >&5
33170
33171 ol_cv_db_db_41=no
33172 fi
33173 rm -f conftest.err conftest.$ac_objext \
33174       conftest$ac_exeext conftest.$ac_ext
33175
33176         LIBS="$ol_LIBS"
33177
33178 fi
33179 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33180 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33181
33182         if test $ol_cv_db_db_41 = yes ; then
33183                 ol_cv_lib_db=-ldb-41
33184         fi
33185 fi
33186
33187                 if test $ol_cv_lib_db = no ; then
33188         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33189 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33190 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33191   echo $ECHO_N "(cached) $ECHO_C" >&6
33192 else
33193
33194         ol_DB_LIB=-ldb-4.1
33195         ol_LIBS=$LIBS
33196         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33197
33198         cat >conftest.$ac_ext <<_ACEOF
33199 /* confdefs.h.  */
33200 _ACEOF
33201 cat confdefs.h >>conftest.$ac_ext
33202 cat >>conftest.$ac_ext <<_ACEOF
33203 /* end confdefs.h.  */
33204
33205 #ifdef HAVE_DB_185_H
33206 # include <db_185.h>
33207 #else
33208 # include <db.h>
33209 #endif
33210
33211 #ifndef DB_VERSION_MAJOR
33212 # define DB_VERSION_MAJOR 1
33213 #endif
33214
33215 #ifndef NULL
33216 #define NULL ((void*)0)
33217 #endif
33218
33219 int
33220 main ()
33221 {
33222
33223 #if DB_VERSION_MAJOR > 1
33224         {
33225                 char *version;
33226                 int major, minor, patch;
33227
33228                 version = db_version( &major, &minor, &patch );
33229
33230                 if( major != DB_VERSION_MAJOR ||
33231                         minor < DB_VERSION_MINOR )
33232                 {
33233                         printf("Berkeley DB version mismatch\n"
33234                                 "\theader: %s\n\tlibrary: %s\n",
33235                                 DB_VERSION_STRING, version);
33236                         return 1;
33237                 }
33238         }
33239 #endif
33240
33241 #if DB_VERSION_MAJOR > 2
33242         db_env_create( NULL, 0 );
33243 #elif DB_VERSION_MAJOR > 1
33244         db_appexit( NULL );
33245 #else
33246         (void) dbopen( NULL, 0, 0, 0, NULL);
33247 #endif
33248
33249   ;
33250   return 0;
33251 }
33252 _ACEOF
33253 rm -f conftest.$ac_objext conftest$ac_exeext
33254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33255   (eval $ac_link) 2>conftest.er1
33256   ac_status=$?
33257   grep -v '^ *+' conftest.er1 >conftest.err
33258   rm -f conftest.er1
33259   cat conftest.err >&5
33260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261   (exit $ac_status); } &&
33262          { ac_try='test -z "$ac_c_werror_flag"
33263                          || test ! -s conftest.err'
33264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33265   (eval $ac_try) 2>&5
33266   ac_status=$?
33267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268   (exit $ac_status); }; } &&
33269          { ac_try='test -s conftest$ac_exeext'
33270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33271   (eval $ac_try) 2>&5
33272   ac_status=$?
33273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274   (exit $ac_status); }; }; then
33275   ol_cv_db_db_4_dot_1=yes
33276 else
33277   echo "$as_me: failed program was:" >&5
33278 sed 's/^/| /' conftest.$ac_ext >&5
33279
33280 ol_cv_db_db_4_dot_1=no
33281 fi
33282 rm -f conftest.err conftest.$ac_objext \
33283       conftest$ac_exeext conftest.$ac_ext
33284
33285         LIBS="$ol_LIBS"
33286
33287 fi
33288 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33289 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33290
33291         if test $ol_cv_db_db_4_dot_1 = yes ; then
33292                 ol_cv_lib_db=-ldb-4.1
33293         fi
33294 fi
33295
33296                 if test $ol_cv_lib_db = no ; then
33297         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33298 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33299 if test "${ol_cv_db_db_4_1+set}" = set; then
33300   echo $ECHO_N "(cached) $ECHO_C" >&6
33301 else
33302
33303         ol_DB_LIB=-ldb-4-1
33304         ol_LIBS=$LIBS
33305         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33306
33307         cat >conftest.$ac_ext <<_ACEOF
33308 /* confdefs.h.  */
33309 _ACEOF
33310 cat confdefs.h >>conftest.$ac_ext
33311 cat >>conftest.$ac_ext <<_ACEOF
33312 /* end confdefs.h.  */
33313
33314 #ifdef HAVE_DB_185_H
33315 # include <db_185.h>
33316 #else
33317 # include <db.h>
33318 #endif
33319
33320 #ifndef DB_VERSION_MAJOR
33321 # define DB_VERSION_MAJOR 1
33322 #endif
33323
33324 #ifndef NULL
33325 #define NULL ((void*)0)
33326 #endif
33327
33328 int
33329 main ()
33330 {
33331
33332 #if DB_VERSION_MAJOR > 1
33333         {
33334                 char *version;
33335                 int major, minor, patch;
33336
33337                 version = db_version( &major, &minor, &patch );
33338
33339                 if( major != DB_VERSION_MAJOR ||
33340                         minor < DB_VERSION_MINOR )
33341                 {
33342                         printf("Berkeley DB version mismatch\n"
33343                                 "\theader: %s\n\tlibrary: %s\n",
33344                                 DB_VERSION_STRING, version);
33345                         return 1;
33346                 }
33347         }
33348 #endif
33349
33350 #if DB_VERSION_MAJOR > 2
33351         db_env_create( NULL, 0 );
33352 #elif DB_VERSION_MAJOR > 1
33353         db_appexit( NULL );
33354 #else
33355         (void) dbopen( NULL, 0, 0, 0, NULL);
33356 #endif
33357
33358   ;
33359   return 0;
33360 }
33361 _ACEOF
33362 rm -f conftest.$ac_objext conftest$ac_exeext
33363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33364   (eval $ac_link) 2>conftest.er1
33365   ac_status=$?
33366   grep -v '^ *+' conftest.er1 >conftest.err
33367   rm -f conftest.er1
33368   cat conftest.err >&5
33369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370   (exit $ac_status); } &&
33371          { ac_try='test -z "$ac_c_werror_flag"
33372                          || test ! -s conftest.err'
33373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33374   (eval $ac_try) 2>&5
33375   ac_status=$?
33376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377   (exit $ac_status); }; } &&
33378          { ac_try='test -s conftest$ac_exeext'
33379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33380   (eval $ac_try) 2>&5
33381   ac_status=$?
33382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383   (exit $ac_status); }; }; then
33384   ol_cv_db_db_4_1=yes
33385 else
33386   echo "$as_me: failed program was:" >&5
33387 sed 's/^/| /' conftest.$ac_ext >&5
33388
33389 ol_cv_db_db_4_1=no
33390 fi
33391 rm -f conftest.err conftest.$ac_objext \
33392       conftest$ac_exeext conftest.$ac_ext
33393
33394         LIBS="$ol_LIBS"
33395
33396 fi
33397 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33398 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33399
33400         if test $ol_cv_db_db_4_1 = yes ; then
33401                 ol_cv_lib_db=-ldb-4-1
33402         fi
33403 fi
33404
33405         fi
33406         if test $ol_cv_lib_db = no ; then
33407         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33408 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33409 if test "${ol_cv_db_db_4+set}" = set; then
33410   echo $ECHO_N "(cached) $ECHO_C" >&6
33411 else
33412
33413         ol_DB_LIB=-ldb-4
33414         ol_LIBS=$LIBS
33415         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33416
33417         cat >conftest.$ac_ext <<_ACEOF
33418 /* confdefs.h.  */
33419 _ACEOF
33420 cat confdefs.h >>conftest.$ac_ext
33421 cat >>conftest.$ac_ext <<_ACEOF
33422 /* end confdefs.h.  */
33423
33424 #ifdef HAVE_DB_185_H
33425 # include <db_185.h>
33426 #else
33427 # include <db.h>
33428 #endif
33429
33430 #ifndef DB_VERSION_MAJOR
33431 # define DB_VERSION_MAJOR 1
33432 #endif
33433
33434 #ifndef NULL
33435 #define NULL ((void*)0)
33436 #endif
33437
33438 int
33439 main ()
33440 {
33441
33442 #if DB_VERSION_MAJOR > 1
33443         {
33444                 char *version;
33445                 int major, minor, patch;
33446
33447                 version = db_version( &major, &minor, &patch );
33448
33449                 if( major != DB_VERSION_MAJOR ||
33450                         minor < DB_VERSION_MINOR )
33451                 {
33452                         printf("Berkeley DB version mismatch\n"
33453                                 "\theader: %s\n\tlibrary: %s\n",
33454                                 DB_VERSION_STRING, version);
33455                         return 1;
33456                 }
33457         }
33458 #endif
33459
33460 #if DB_VERSION_MAJOR > 2
33461         db_env_create( NULL, 0 );
33462 #elif DB_VERSION_MAJOR > 1
33463         db_appexit( NULL );
33464 #else
33465         (void) dbopen( NULL, 0, 0, 0, NULL);
33466 #endif
33467
33468   ;
33469   return 0;
33470 }
33471 _ACEOF
33472 rm -f conftest.$ac_objext conftest$ac_exeext
33473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33474   (eval $ac_link) 2>conftest.er1
33475   ac_status=$?
33476   grep -v '^ *+' conftest.er1 >conftest.err
33477   rm -f conftest.er1
33478   cat conftest.err >&5
33479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480   (exit $ac_status); } &&
33481          { ac_try='test -z "$ac_c_werror_flag"
33482                          || test ! -s conftest.err'
33483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33484   (eval $ac_try) 2>&5
33485   ac_status=$?
33486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33487   (exit $ac_status); }; } &&
33488          { ac_try='test -s conftest$ac_exeext'
33489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33490   (eval $ac_try) 2>&5
33491   ac_status=$?
33492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33493   (exit $ac_status); }; }; then
33494   ol_cv_db_db_4=yes
33495 else
33496   echo "$as_me: failed program was:" >&5
33497 sed 's/^/| /' conftest.$ac_ext >&5
33498
33499 ol_cv_db_db_4=no
33500 fi
33501 rm -f conftest.err conftest.$ac_objext \
33502       conftest$ac_exeext conftest.$ac_ext
33503
33504         LIBS="$ol_LIBS"
33505
33506 fi
33507 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33508 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33509
33510         if test $ol_cv_db_db_4 = yes ; then
33511                 ol_cv_lib_db=-ldb-4
33512         fi
33513 fi
33514
33515         if test $ol_cv_lib_db = no ; then
33516         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33517 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33518 if test "${ol_cv_db_db4+set}" = set; then
33519   echo $ECHO_N "(cached) $ECHO_C" >&6
33520 else
33521
33522         ol_DB_LIB=-ldb4
33523         ol_LIBS=$LIBS
33524         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33525
33526         cat >conftest.$ac_ext <<_ACEOF
33527 /* confdefs.h.  */
33528 _ACEOF
33529 cat confdefs.h >>conftest.$ac_ext
33530 cat >>conftest.$ac_ext <<_ACEOF
33531 /* end confdefs.h.  */
33532
33533 #ifdef HAVE_DB_185_H
33534 # include <db_185.h>
33535 #else
33536 # include <db.h>
33537 #endif
33538
33539 #ifndef DB_VERSION_MAJOR
33540 # define DB_VERSION_MAJOR 1
33541 #endif
33542
33543 #ifndef NULL
33544 #define NULL ((void*)0)
33545 #endif
33546
33547 int
33548 main ()
33549 {
33550
33551 #if DB_VERSION_MAJOR > 1
33552         {
33553                 char *version;
33554                 int major, minor, patch;
33555
33556                 version = db_version( &major, &minor, &patch );
33557
33558                 if( major != DB_VERSION_MAJOR ||
33559                         minor < DB_VERSION_MINOR )
33560                 {
33561                         printf("Berkeley DB version mismatch\n"
33562                                 "\theader: %s\n\tlibrary: %s\n",
33563                                 DB_VERSION_STRING, version);
33564                         return 1;
33565                 }
33566         }
33567 #endif
33568
33569 #if DB_VERSION_MAJOR > 2
33570         db_env_create( NULL, 0 );
33571 #elif DB_VERSION_MAJOR > 1
33572         db_appexit( NULL );
33573 #else
33574         (void) dbopen( NULL, 0, 0, 0, NULL);
33575 #endif
33576
33577   ;
33578   return 0;
33579 }
33580 _ACEOF
33581 rm -f conftest.$ac_objext conftest$ac_exeext
33582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33583   (eval $ac_link) 2>conftest.er1
33584   ac_status=$?
33585   grep -v '^ *+' conftest.er1 >conftest.err
33586   rm -f conftest.er1
33587   cat conftest.err >&5
33588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589   (exit $ac_status); } &&
33590          { ac_try='test -z "$ac_c_werror_flag"
33591                          || test ! -s conftest.err'
33592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33593   (eval $ac_try) 2>&5
33594   ac_status=$?
33595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596   (exit $ac_status); }; } &&
33597          { ac_try='test -s conftest$ac_exeext'
33598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33599   (eval $ac_try) 2>&5
33600   ac_status=$?
33601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602   (exit $ac_status); }; }; then
33603   ol_cv_db_db4=yes
33604 else
33605   echo "$as_me: failed program was:" >&5
33606 sed 's/^/| /' conftest.$ac_ext >&5
33607
33608 ol_cv_db_db4=no
33609 fi
33610 rm -f conftest.err conftest.$ac_objext \
33611       conftest$ac_exeext conftest.$ac_ext
33612
33613         LIBS="$ol_LIBS"
33614
33615 fi
33616 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33617 echo "${ECHO_T}$ol_cv_db_db4" >&6
33618
33619         if test $ol_cv_db_db4 = yes ; then
33620                 ol_cv_lib_db=-ldb4
33621         fi
33622 fi
33623
33624         if test $ol_cv_lib_db = no ; then
33625         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33626 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33627 if test "${ol_cv_db_db+set}" = set; then
33628   echo $ECHO_N "(cached) $ECHO_C" >&6
33629 else
33630
33631         ol_DB_LIB=-ldb
33632         ol_LIBS=$LIBS
33633         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33634
33635         cat >conftest.$ac_ext <<_ACEOF
33636 /* confdefs.h.  */
33637 _ACEOF
33638 cat confdefs.h >>conftest.$ac_ext
33639 cat >>conftest.$ac_ext <<_ACEOF
33640 /* end confdefs.h.  */
33641
33642 #ifdef HAVE_DB_185_H
33643 # include <db_185.h>
33644 #else
33645 # include <db.h>
33646 #endif
33647
33648 #ifndef DB_VERSION_MAJOR
33649 # define DB_VERSION_MAJOR 1
33650 #endif
33651
33652 #ifndef NULL
33653 #define NULL ((void*)0)
33654 #endif
33655
33656 int
33657 main ()
33658 {
33659
33660 #if DB_VERSION_MAJOR > 1
33661         {
33662                 char *version;
33663                 int major, minor, patch;
33664
33665                 version = db_version( &major, &minor, &patch );
33666
33667                 if( major != DB_VERSION_MAJOR ||
33668                         minor < DB_VERSION_MINOR )
33669                 {
33670                         printf("Berkeley DB version mismatch\n"
33671                                 "\theader: %s\n\tlibrary: %s\n",
33672                                 DB_VERSION_STRING, version);
33673                         return 1;
33674                 }
33675         }
33676 #endif
33677
33678 #if DB_VERSION_MAJOR > 2
33679         db_env_create( NULL, 0 );
33680 #elif DB_VERSION_MAJOR > 1
33681         db_appexit( NULL );
33682 #else
33683         (void) dbopen( NULL, 0, 0, 0, NULL);
33684 #endif
33685
33686   ;
33687   return 0;
33688 }
33689 _ACEOF
33690 rm -f conftest.$ac_objext conftest$ac_exeext
33691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33692   (eval $ac_link) 2>conftest.er1
33693   ac_status=$?
33694   grep -v '^ *+' conftest.er1 >conftest.err
33695   rm -f conftest.er1
33696   cat conftest.err >&5
33697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33698   (exit $ac_status); } &&
33699          { ac_try='test -z "$ac_c_werror_flag"
33700                          || test ! -s conftest.err'
33701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33702   (eval $ac_try) 2>&5
33703   ac_status=$?
33704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33705   (exit $ac_status); }; } &&
33706          { ac_try='test -s conftest$ac_exeext'
33707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33708   (eval $ac_try) 2>&5
33709   ac_status=$?
33710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33711   (exit $ac_status); }; }; then
33712   ol_cv_db_db=yes
33713 else
33714   echo "$as_me: failed program was:" >&5
33715 sed 's/^/| /' conftest.$ac_ext >&5
33716
33717 ol_cv_db_db=no
33718 fi
33719 rm -f conftest.err conftest.$ac_objext \
33720       conftest$ac_exeext conftest.$ac_ext
33721
33722         LIBS="$ol_LIBS"
33723
33724 fi
33725 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33726 echo "${ECHO_T}$ol_cv_db_db" >&6
33727
33728         if test $ol_cv_db_db = yes ; then
33729                 ol_cv_lib_db=-ldb
33730         fi
33731 fi
33732
33733
33734 elif test $ol_cv_bdb_major = 3 ; then
33735         if test $ol_cv_lib_db = no ; then
33736         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33737 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33738 if test "${ol_cv_db_db3+set}" = set; then
33739   echo $ECHO_N "(cached) $ECHO_C" >&6
33740 else
33741
33742         ol_DB_LIB=-ldb3
33743         ol_LIBS=$LIBS
33744         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33745
33746         cat >conftest.$ac_ext <<_ACEOF
33747 /* confdefs.h.  */
33748 _ACEOF
33749 cat confdefs.h >>conftest.$ac_ext
33750 cat >>conftest.$ac_ext <<_ACEOF
33751 /* end confdefs.h.  */
33752
33753 #ifdef HAVE_DB_185_H
33754 # include <db_185.h>
33755 #else
33756 # include <db.h>
33757 #endif
33758
33759 #ifndef DB_VERSION_MAJOR
33760 # define DB_VERSION_MAJOR 1
33761 #endif
33762
33763 #ifndef NULL
33764 #define NULL ((void*)0)
33765 #endif
33766
33767 int
33768 main ()
33769 {
33770
33771 #if DB_VERSION_MAJOR > 1
33772         {
33773                 char *version;
33774                 int major, minor, patch;
33775
33776                 version = db_version( &major, &minor, &patch );
33777
33778                 if( major != DB_VERSION_MAJOR ||
33779                         minor < DB_VERSION_MINOR )
33780                 {
33781                         printf("Berkeley DB version mismatch\n"
33782                                 "\theader: %s\n\tlibrary: %s\n",
33783                                 DB_VERSION_STRING, version);
33784                         return 1;
33785                 }
33786         }
33787 #endif
33788
33789 #if DB_VERSION_MAJOR > 2
33790         db_env_create( NULL, 0 );
33791 #elif DB_VERSION_MAJOR > 1
33792         db_appexit( NULL );
33793 #else
33794         (void) dbopen( NULL, 0, 0, 0, NULL);
33795 #endif
33796
33797   ;
33798   return 0;
33799 }
33800 _ACEOF
33801 rm -f conftest.$ac_objext conftest$ac_exeext
33802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33803   (eval $ac_link) 2>conftest.er1
33804   ac_status=$?
33805   grep -v '^ *+' conftest.er1 >conftest.err
33806   rm -f conftest.er1
33807   cat conftest.err >&5
33808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809   (exit $ac_status); } &&
33810          { ac_try='test -z "$ac_c_werror_flag"
33811                          || test ! -s conftest.err'
33812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33813   (eval $ac_try) 2>&5
33814   ac_status=$?
33815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33816   (exit $ac_status); }; } &&
33817          { ac_try='test -s conftest$ac_exeext'
33818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33819   (eval $ac_try) 2>&5
33820   ac_status=$?
33821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33822   (exit $ac_status); }; }; then
33823   ol_cv_db_db3=yes
33824 else
33825   echo "$as_me: failed program was:" >&5
33826 sed 's/^/| /' conftest.$ac_ext >&5
33827
33828 ol_cv_db_db3=no
33829 fi
33830 rm -f conftest.err conftest.$ac_objext \
33831       conftest$ac_exeext conftest.$ac_ext
33832
33833         LIBS="$ol_LIBS"
33834
33835 fi
33836 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33837 echo "${ECHO_T}$ol_cv_db_db3" >&6
33838
33839         if test $ol_cv_db_db3 = yes ; then
33840                 ol_cv_lib_db=-ldb3
33841         fi
33842 fi
33843
33844         if test $ol_cv_lib_db = no ; then
33845         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33846 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33847 if test "${ol_cv_db_db_3+set}" = set; then
33848   echo $ECHO_N "(cached) $ECHO_C" >&6
33849 else
33850
33851         ol_DB_LIB=-ldb-3
33852         ol_LIBS=$LIBS
33853         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33854
33855         cat >conftest.$ac_ext <<_ACEOF
33856 /* confdefs.h.  */
33857 _ACEOF
33858 cat confdefs.h >>conftest.$ac_ext
33859 cat >>conftest.$ac_ext <<_ACEOF
33860 /* end confdefs.h.  */
33861
33862 #ifdef HAVE_DB_185_H
33863 # include <db_185.h>
33864 #else
33865 # include <db.h>
33866 #endif
33867
33868 #ifndef DB_VERSION_MAJOR
33869 # define DB_VERSION_MAJOR 1
33870 #endif
33871
33872 #ifndef NULL
33873 #define NULL ((void*)0)
33874 #endif
33875
33876 int
33877 main ()
33878 {
33879
33880 #if DB_VERSION_MAJOR > 1
33881         {
33882                 char *version;
33883                 int major, minor, patch;
33884
33885                 version = db_version( &major, &minor, &patch );
33886
33887                 if( major != DB_VERSION_MAJOR ||
33888                         minor < DB_VERSION_MINOR )
33889                 {
33890                         printf("Berkeley DB version mismatch\n"
33891                                 "\theader: %s\n\tlibrary: %s\n",
33892                                 DB_VERSION_STRING, version);
33893                         return 1;
33894                 }
33895         }
33896 #endif
33897
33898 #if DB_VERSION_MAJOR > 2
33899         db_env_create( NULL, 0 );
33900 #elif DB_VERSION_MAJOR > 1
33901         db_appexit( NULL );
33902 #else
33903         (void) dbopen( NULL, 0, 0, 0, NULL);
33904 #endif
33905
33906   ;
33907   return 0;
33908 }
33909 _ACEOF
33910 rm -f conftest.$ac_objext conftest$ac_exeext
33911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33912   (eval $ac_link) 2>conftest.er1
33913   ac_status=$?
33914   grep -v '^ *+' conftest.er1 >conftest.err
33915   rm -f conftest.er1
33916   cat conftest.err >&5
33917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33918   (exit $ac_status); } &&
33919          { ac_try='test -z "$ac_c_werror_flag"
33920                          || test ! -s conftest.err'
33921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33922   (eval $ac_try) 2>&5
33923   ac_status=$?
33924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33925   (exit $ac_status); }; } &&
33926          { ac_try='test -s conftest$ac_exeext'
33927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33928   (eval $ac_try) 2>&5
33929   ac_status=$?
33930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931   (exit $ac_status); }; }; then
33932   ol_cv_db_db_3=yes
33933 else
33934   echo "$as_me: failed program was:" >&5
33935 sed 's/^/| /' conftest.$ac_ext >&5
33936
33937 ol_cv_db_db_3=no
33938 fi
33939 rm -f conftest.err conftest.$ac_objext \
33940       conftest$ac_exeext conftest.$ac_ext
33941
33942         LIBS="$ol_LIBS"
33943
33944 fi
33945 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33946 echo "${ECHO_T}$ol_cv_db_db_3" >&6
33947
33948         if test $ol_cv_db_db_3 = yes ; then
33949                 ol_cv_lib_db=-ldb-3
33950         fi
33951 fi
33952
33953
33954 elif test $ol_cv_bdb_major = 2 ; then
33955         if test $ol_cv_lib_db = no ; then
33956         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
33957 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
33958 if test "${ol_cv_db_db2+set}" = set; then
33959   echo $ECHO_N "(cached) $ECHO_C" >&6
33960 else
33961
33962         ol_DB_LIB=-ldb2
33963         ol_LIBS=$LIBS
33964         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33965
33966         cat >conftest.$ac_ext <<_ACEOF
33967 /* confdefs.h.  */
33968 _ACEOF
33969 cat confdefs.h >>conftest.$ac_ext
33970 cat >>conftest.$ac_ext <<_ACEOF
33971 /* end confdefs.h.  */
33972
33973 #ifdef HAVE_DB_185_H
33974 # include <db_185.h>
33975 #else
33976 # include <db.h>
33977 #endif
33978
33979 #ifndef DB_VERSION_MAJOR
33980 # define DB_VERSION_MAJOR 1
33981 #endif
33982
33983 #ifndef NULL
33984 #define NULL ((void*)0)
33985 #endif
33986
33987 int
33988 main ()
33989 {
33990
33991 #if DB_VERSION_MAJOR > 1
33992         {
33993                 char *version;
33994                 int major, minor, patch;
33995
33996                 version = db_version( &major, &minor, &patch );
33997
33998                 if( major != DB_VERSION_MAJOR ||
33999                         minor < DB_VERSION_MINOR )
34000                 {
34001                         printf("Berkeley DB version mismatch\n"
34002                                 "\theader: %s\n\tlibrary: %s\n",
34003                                 DB_VERSION_STRING, version);
34004                         return 1;
34005                 }
34006         }
34007 #endif
34008
34009 #if DB_VERSION_MAJOR > 2
34010         db_env_create( NULL, 0 );
34011 #elif DB_VERSION_MAJOR > 1
34012         db_appexit( NULL );
34013 #else
34014         (void) dbopen( NULL, 0, 0, 0, NULL);
34015 #endif
34016
34017   ;
34018   return 0;
34019 }
34020 _ACEOF
34021 rm -f conftest.$ac_objext conftest$ac_exeext
34022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34023   (eval $ac_link) 2>conftest.er1
34024   ac_status=$?
34025   grep -v '^ *+' conftest.er1 >conftest.err
34026   rm -f conftest.er1
34027   cat conftest.err >&5
34028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029   (exit $ac_status); } &&
34030          { ac_try='test -z "$ac_c_werror_flag"
34031                          || test ! -s conftest.err'
34032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34033   (eval $ac_try) 2>&5
34034   ac_status=$?
34035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036   (exit $ac_status); }; } &&
34037          { ac_try='test -s conftest$ac_exeext'
34038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34039   (eval $ac_try) 2>&5
34040   ac_status=$?
34041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34042   (exit $ac_status); }; }; then
34043   ol_cv_db_db2=yes
34044 else
34045   echo "$as_me: failed program was:" >&5
34046 sed 's/^/| /' conftest.$ac_ext >&5
34047
34048 ol_cv_db_db2=no
34049 fi
34050 rm -f conftest.err conftest.$ac_objext \
34051       conftest$ac_exeext conftest.$ac_ext
34052
34053         LIBS="$ol_LIBS"
34054
34055 fi
34056 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34057 echo "${ECHO_T}$ol_cv_db_db2" >&6
34058
34059         if test $ol_cv_db_db2 = yes ; then
34060                 ol_cv_lib_db=-ldb2
34061         fi
34062 fi
34063
34064         if test $ol_cv_lib_db = no ; then
34065         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34066 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34067 if test "${ol_cv_db_db_2+set}" = set; then
34068   echo $ECHO_N "(cached) $ECHO_C" >&6
34069 else
34070
34071         ol_DB_LIB=-ldb-2
34072         ol_LIBS=$LIBS
34073         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34074
34075         cat >conftest.$ac_ext <<_ACEOF
34076 /* confdefs.h.  */
34077 _ACEOF
34078 cat confdefs.h >>conftest.$ac_ext
34079 cat >>conftest.$ac_ext <<_ACEOF
34080 /* end confdefs.h.  */
34081
34082 #ifdef HAVE_DB_185_H
34083 # include <db_185.h>
34084 #else
34085 # include <db.h>
34086 #endif
34087
34088 #ifndef DB_VERSION_MAJOR
34089 # define DB_VERSION_MAJOR 1
34090 #endif
34091
34092 #ifndef NULL
34093 #define NULL ((void*)0)
34094 #endif
34095
34096 int
34097 main ()
34098 {
34099
34100 #if DB_VERSION_MAJOR > 1
34101         {
34102                 char *version;
34103                 int major, minor, patch;
34104
34105                 version = db_version( &major, &minor, &patch );
34106
34107                 if( major != DB_VERSION_MAJOR ||
34108                         minor < DB_VERSION_MINOR )
34109                 {
34110                         printf("Berkeley DB version mismatch\n"
34111                                 "\theader: %s\n\tlibrary: %s\n",
34112                                 DB_VERSION_STRING, version);
34113                         return 1;
34114                 }
34115         }
34116 #endif
34117
34118 #if DB_VERSION_MAJOR > 2
34119         db_env_create( NULL, 0 );
34120 #elif DB_VERSION_MAJOR > 1
34121         db_appexit( NULL );
34122 #else
34123         (void) dbopen( NULL, 0, 0, 0, NULL);
34124 #endif
34125
34126   ;
34127   return 0;
34128 }
34129 _ACEOF
34130 rm -f conftest.$ac_objext conftest$ac_exeext
34131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34132   (eval $ac_link) 2>conftest.er1
34133   ac_status=$?
34134   grep -v '^ *+' conftest.er1 >conftest.err
34135   rm -f conftest.er1
34136   cat conftest.err >&5
34137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34138   (exit $ac_status); } &&
34139          { ac_try='test -z "$ac_c_werror_flag"
34140                          || test ! -s conftest.err'
34141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34142   (eval $ac_try) 2>&5
34143   ac_status=$?
34144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145   (exit $ac_status); }; } &&
34146          { ac_try='test -s conftest$ac_exeext'
34147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34148   (eval $ac_try) 2>&5
34149   ac_status=$?
34150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151   (exit $ac_status); }; }; then
34152   ol_cv_db_db_2=yes
34153 else
34154   echo "$as_me: failed program was:" >&5
34155 sed 's/^/| /' conftest.$ac_ext >&5
34156
34157 ol_cv_db_db_2=no
34158 fi
34159 rm -f conftest.err conftest.$ac_objext \
34160       conftest$ac_exeext conftest.$ac_ext
34161
34162         LIBS="$ol_LIBS"
34163
34164 fi
34165 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34166 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34167
34168         if test $ol_cv_db_db_2 = yes ; then
34169                 ol_cv_lib_db=-ldb-2
34170         fi
34171 fi
34172
34173
34174 elif test $ol_cv_bdb_major = 1 ; then
34175         if test $ol_cv_lib_db = no ; then
34176         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34177 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34178 if test "${ol_cv_db_db1+set}" = set; then
34179   echo $ECHO_N "(cached) $ECHO_C" >&6
34180 else
34181
34182         ol_DB_LIB=-ldb1
34183         ol_LIBS=$LIBS
34184         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34185
34186         cat >conftest.$ac_ext <<_ACEOF
34187 /* confdefs.h.  */
34188 _ACEOF
34189 cat confdefs.h >>conftest.$ac_ext
34190 cat >>conftest.$ac_ext <<_ACEOF
34191 /* end confdefs.h.  */
34192
34193 #ifdef HAVE_DB_185_H
34194 # include <db_185.h>
34195 #else
34196 # include <db.h>
34197 #endif
34198
34199 #ifndef DB_VERSION_MAJOR
34200 # define DB_VERSION_MAJOR 1
34201 #endif
34202
34203 #ifndef NULL
34204 #define NULL ((void*)0)
34205 #endif
34206
34207 int
34208 main ()
34209 {
34210
34211 #if DB_VERSION_MAJOR > 1
34212         {
34213                 char *version;
34214                 int major, minor, patch;
34215
34216                 version = db_version( &major, &minor, &patch );
34217
34218                 if( major != DB_VERSION_MAJOR ||
34219                         minor < DB_VERSION_MINOR )
34220                 {
34221                         printf("Berkeley DB version mismatch\n"
34222                                 "\theader: %s\n\tlibrary: %s\n",
34223                                 DB_VERSION_STRING, version);
34224                         return 1;
34225                 }
34226         }
34227 #endif
34228
34229 #if DB_VERSION_MAJOR > 2
34230         db_env_create( NULL, 0 );
34231 #elif DB_VERSION_MAJOR > 1
34232         db_appexit( NULL );
34233 #else
34234         (void) dbopen( NULL, 0, 0, 0, NULL);
34235 #endif
34236
34237   ;
34238   return 0;
34239 }
34240 _ACEOF
34241 rm -f conftest.$ac_objext conftest$ac_exeext
34242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34243   (eval $ac_link) 2>conftest.er1
34244   ac_status=$?
34245   grep -v '^ *+' conftest.er1 >conftest.err
34246   rm -f conftest.er1
34247   cat conftest.err >&5
34248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34249   (exit $ac_status); } &&
34250          { ac_try='test -z "$ac_c_werror_flag"
34251                          || test ! -s conftest.err'
34252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34253   (eval $ac_try) 2>&5
34254   ac_status=$?
34255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34256   (exit $ac_status); }; } &&
34257          { ac_try='test -s conftest$ac_exeext'
34258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34259   (eval $ac_try) 2>&5
34260   ac_status=$?
34261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262   (exit $ac_status); }; }; then
34263   ol_cv_db_db1=yes
34264 else
34265   echo "$as_me: failed program was:" >&5
34266 sed 's/^/| /' conftest.$ac_ext >&5
34267
34268 ol_cv_db_db1=no
34269 fi
34270 rm -f conftest.err conftest.$ac_objext \
34271       conftest$ac_exeext conftest.$ac_ext
34272
34273         LIBS="$ol_LIBS"
34274
34275 fi
34276 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34277 echo "${ECHO_T}$ol_cv_db_db1" >&6
34278
34279         if test $ol_cv_db_db1 = yes ; then
34280                 ol_cv_lib_db=-ldb1
34281         fi
34282 fi
34283
34284         if test $ol_cv_lib_db = no ; then
34285         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34286 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34287 if test "${ol_cv_db_db_1+set}" = set; then
34288   echo $ECHO_N "(cached) $ECHO_C" >&6
34289 else
34290
34291         ol_DB_LIB=-ldb-1
34292         ol_LIBS=$LIBS
34293         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34294
34295         cat >conftest.$ac_ext <<_ACEOF
34296 /* confdefs.h.  */
34297 _ACEOF
34298 cat confdefs.h >>conftest.$ac_ext
34299 cat >>conftest.$ac_ext <<_ACEOF
34300 /* end confdefs.h.  */
34301
34302 #ifdef HAVE_DB_185_H
34303 # include <db_185.h>
34304 #else
34305 # include <db.h>
34306 #endif
34307
34308 #ifndef DB_VERSION_MAJOR
34309 # define DB_VERSION_MAJOR 1
34310 #endif
34311
34312 #ifndef NULL
34313 #define NULL ((void*)0)
34314 #endif
34315
34316 int
34317 main ()
34318 {
34319
34320 #if DB_VERSION_MAJOR > 1
34321         {
34322                 char *version;
34323                 int major, minor, patch;
34324
34325                 version = db_version( &major, &minor, &patch );
34326
34327                 if( major != DB_VERSION_MAJOR ||
34328                         minor < DB_VERSION_MINOR )
34329                 {
34330                         printf("Berkeley DB version mismatch\n"
34331                                 "\theader: %s\n\tlibrary: %s\n",
34332                                 DB_VERSION_STRING, version);
34333                         return 1;
34334                 }
34335         }
34336 #endif
34337
34338 #if DB_VERSION_MAJOR > 2
34339         db_env_create( NULL, 0 );
34340 #elif DB_VERSION_MAJOR > 1
34341         db_appexit( NULL );
34342 #else
34343         (void) dbopen( NULL, 0, 0, 0, NULL);
34344 #endif
34345
34346   ;
34347   return 0;
34348 }
34349 _ACEOF
34350 rm -f conftest.$ac_objext conftest$ac_exeext
34351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34352   (eval $ac_link) 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_exeext'
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   ol_cv_db_db_1=yes
34373 else
34374   echo "$as_me: failed program was:" >&5
34375 sed 's/^/| /' conftest.$ac_ext >&5
34376
34377 ol_cv_db_db_1=no
34378 fi
34379 rm -f conftest.err conftest.$ac_objext \
34380       conftest$ac_exeext conftest.$ac_ext
34381
34382         LIBS="$ol_LIBS"
34383
34384 fi
34385 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34386 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34387
34388         if test $ol_cv_db_db_1 = yes ; then
34389                 ol_cv_lib_db=-ldb-1
34390         fi
34391 fi
34392
34393 fi
34394 if test $ol_cv_lib_db = no ; then
34395         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34396 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34397 if test "${ol_cv_db_none+set}" = set; then
34398   echo $ECHO_N "(cached) $ECHO_C" >&6
34399 else
34400
34401         ol_DB_LIB=
34402         ol_LIBS=$LIBS
34403         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34404
34405         cat >conftest.$ac_ext <<_ACEOF
34406 /* confdefs.h.  */
34407 _ACEOF
34408 cat confdefs.h >>conftest.$ac_ext
34409 cat >>conftest.$ac_ext <<_ACEOF
34410 /* end confdefs.h.  */
34411
34412 #ifdef HAVE_DB_185_H
34413 # include <db_185.h>
34414 #else
34415 # include <db.h>
34416 #endif
34417
34418 #ifndef DB_VERSION_MAJOR
34419 # define DB_VERSION_MAJOR 1
34420 #endif
34421
34422 #ifndef NULL
34423 #define NULL ((void*)0)
34424 #endif
34425
34426 int
34427 main ()
34428 {
34429
34430 #if DB_VERSION_MAJOR > 1
34431         {
34432                 char *version;
34433                 int major, minor, patch;
34434
34435                 version = db_version( &major, &minor, &patch );
34436
34437                 if( major != DB_VERSION_MAJOR ||
34438                         minor < DB_VERSION_MINOR )
34439                 {
34440                         printf("Berkeley DB version mismatch\n"
34441                                 "\theader: %s\n\tlibrary: %s\n",
34442                                 DB_VERSION_STRING, version);
34443                         return 1;
34444                 }
34445         }
34446 #endif
34447
34448 #if DB_VERSION_MAJOR > 2
34449         db_env_create( NULL, 0 );
34450 #elif DB_VERSION_MAJOR > 1
34451         db_appexit( NULL );
34452 #else
34453         (void) dbopen( NULL, 0, 0, 0, NULL);
34454 #endif
34455
34456   ;
34457   return 0;
34458 }
34459 _ACEOF
34460 rm -f conftest.$ac_objext conftest$ac_exeext
34461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34462   (eval $ac_link) 2>conftest.er1
34463   ac_status=$?
34464   grep -v '^ *+' conftest.er1 >conftest.err
34465   rm -f conftest.er1
34466   cat conftest.err >&5
34467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468   (exit $ac_status); } &&
34469          { ac_try='test -z "$ac_c_werror_flag"
34470                          || test ! -s conftest.err'
34471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34472   (eval $ac_try) 2>&5
34473   ac_status=$?
34474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475   (exit $ac_status); }; } &&
34476          { ac_try='test -s conftest$ac_exeext'
34477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34478   (eval $ac_try) 2>&5
34479   ac_status=$?
34480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34481   (exit $ac_status); }; }; then
34482   ol_cv_db_none=yes
34483 else
34484   echo "$as_me: failed program was:" >&5
34485 sed 's/^/| /' conftest.$ac_ext >&5
34486
34487 ol_cv_db_none=no
34488 fi
34489 rm -f conftest.err conftest.$ac_objext \
34490       conftest$ac_exeext conftest.$ac_ext
34491
34492         LIBS="$ol_LIBS"
34493
34494 fi
34495 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34496 echo "${ECHO_T}$ol_cv_db_none" >&6
34497
34498         if test $ol_cv_db_none = yes ; then
34499                 ol_cv_lib_db=yes
34500         fi
34501 fi
34502
34503
34504         if test "$ol_cv_lib_db" != no ; then
34505                 ol_cv_berkeley_db=yes
34506                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34507 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34508 if test "${ol_cv_berkeley_db_version+set}" = set; then
34509   echo $ECHO_N "(cached) $ECHO_C" >&6
34510 else
34511
34512         ol_LIBS="$LIBS"
34513         LIBS="$LTHREAD_LIBS $LIBS"
34514         if test $ol_cv_lib_db != yes ; then
34515                 LIBS="$ol_cv_lib_db $LIBS"
34516         fi
34517
34518         if test "$cross_compiling" = yes; then
34519   ol_cv_berkeley_db_version=cross
34520 else
34521   cat >conftest.$ac_ext <<_ACEOF
34522 /* confdefs.h.  */
34523 _ACEOF
34524 cat confdefs.h >>conftest.$ac_ext
34525 cat >>conftest.$ac_ext <<_ACEOF
34526 /* end confdefs.h.  */
34527
34528 #ifdef HAVE_DB_185_H
34529         choke me;
34530 #else
34531 #include <db.h>
34532 #endif
34533 #ifndef DB_VERSION_MAJOR
34534 # define DB_VERSION_MAJOR 1
34535 #endif
34536 #ifndef NULL
34537 #define NULL ((void *)0)
34538 #endif
34539 main()
34540 {
34541 #if DB_VERSION_MAJOR > 1
34542         char *version;
34543         int major, minor, patch;
34544
34545         version = db_version( &major, &minor, &patch );
34546
34547         if( major != DB_VERSION_MAJOR ||
34548                 minor != DB_VERSION_MINOR ||
34549                 patch != DB_VERSION_PATCH )
34550         {
34551                 printf("Berkeley DB version mismatch\n"
34552                         "\theader: %s\n\tlibrary: %s\n",
34553                         DB_VERSION_STRING, version);
34554                 return 1;
34555         }
34556 #endif
34557
34558         return 0;
34559 }
34560 _ACEOF
34561 rm -f conftest$ac_exeext
34562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34563   (eval $ac_link) 2>&5
34564   ac_status=$?
34565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34568   (eval $ac_try) 2>&5
34569   ac_status=$?
34570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34571   (exit $ac_status); }; }; then
34572   ol_cv_berkeley_db_version=yes
34573 else
34574   echo "$as_me: program exited with status $ac_status" >&5
34575 echo "$as_me: failed program was:" >&5
34576 sed 's/^/| /' conftest.$ac_ext >&5
34577
34578 ( exit $ac_status )
34579 ol_cv_berkeley_db_version=no
34580 fi
34581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34582 fi
34583
34584         LIBS="$ol_LIBS"
34585
34586 fi
34587 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34588 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34589
34590         if test $ol_cv_berkeley_db_version = no ; then
34591                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34592 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34593    { (exit 1); exit 1; }; }
34594         fi
34595
34596                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34597 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34598 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34599   echo $ECHO_N "(cached) $ECHO_C" >&6
34600 else
34601
34602         ol_LIBS="$LIBS"
34603         LIBS="$LTHREAD_LIBS $LIBS"
34604         if test $ol_cv_lib_db != yes ; then
34605                 LIBS="$ol_cv_lib_db $LIBS"
34606         fi
34607
34608         if test "$cross_compiling" = yes; then
34609   ol_cv_berkeley_db_thread=cross
34610 else
34611   cat >conftest.$ac_ext <<_ACEOF
34612 /* confdefs.h.  */
34613 _ACEOF
34614 cat confdefs.h >>conftest.$ac_ext
34615 cat >>conftest.$ac_ext <<_ACEOF
34616 /* end confdefs.h.  */
34617
34618 #ifdef HAVE_DB_185_H
34619         choke me;
34620 #else
34621 #include <db.h>
34622 #endif
34623 #ifndef NULL
34624 #define NULL ((void *)0)
34625 #endif
34626 main()
34627 {
34628         int rc;
34629         u_int32_t flags = DB_CREATE |
34630 #ifdef DB_PRIVATE
34631                 DB_PRIVATE |
34632 #endif
34633                 DB_THREAD;
34634
34635 #if DB_VERSION_MAJOR > 2
34636         DB_ENV *env = NULL;
34637
34638         rc = db_env_create( &env, 0 );
34639
34640         flags |= DB_INIT_MPOOL;
34641 #ifdef DB_MPOOL_PRIVATE
34642         flags |= DB_MPOOL_PRIVATE;
34643 #endif
34644
34645         if( rc ) {
34646                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34647                 return rc;
34648         }
34649
34650 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34651         rc = env->open( env, NULL, flags, 0 );
34652 #else
34653         rc = env->open( env, NULL, NULL, flags, 0 );
34654 #endif
34655
34656         if ( rc == 0 ) {
34657                 rc = env->close( env, 0 );
34658         }
34659
34660         if( rc ) {
34661                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34662                 return rc;
34663         }
34664
34665 #else
34666         DB_ENV env;
34667         memset( &env, '\0', sizeof(env) );
34668
34669         rc = db_appinit( NULL, NULL, &env, flags );
34670
34671         if( rc == 0 ) {
34672                 db_appexit( &env );
34673         }
34674
34675         unlink("__db_mpool.share");
34676         unlink("__db_lock.share");
34677 #endif
34678
34679         return rc;
34680 }
34681 _ACEOF
34682 rm -f conftest$ac_exeext
34683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34684   (eval $ac_link) 2>&5
34685   ac_status=$?
34686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34689   (eval $ac_try) 2>&5
34690   ac_status=$?
34691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692   (exit $ac_status); }; }; then
34693   ol_cv_berkeley_db_thread=yes
34694 else
34695   echo "$as_me: program exited with status $ac_status" >&5
34696 echo "$as_me: failed program was:" >&5
34697 sed 's/^/| /' conftest.$ac_ext >&5
34698
34699 ( exit $ac_status )
34700 ol_cv_berkeley_db_thread=no
34701 fi
34702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34703 fi
34704
34705         LIBS="$ol_LIBS"
34706
34707 fi
34708 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34709 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34710
34711         if test $ol_cv_berkeley_db_thread != no ; then
34712
34713 cat >>confdefs.h <<\_ACEOF
34714 #define HAVE_BERKELEY_DB_THREAD 1
34715 _ACEOF
34716
34717         fi
34718
34719         fi
34720 fi
34721
34722         fi
34723
34724         if test $ol_cv_berkeley_db != no ; then
34725
34726 cat >>confdefs.h <<\_ACEOF
34727 #define HAVE_BERKELEY_DB 1
34728 _ACEOF
34729
34730
34731                 ol_link_ldbm=berkeley
34732                 ol_enable_ldbm_api=berkeley
34733
34734                 if test $ol_enable_ldbm_type = hash ; then
34735
34736 cat >>confdefs.h <<\_ACEOF
34737 #define LDBM_USE_DBHASH 1
34738 _ACEOF
34739
34740                 else
34741
34742 cat >>confdefs.h <<\_ACEOF
34743 #define LDBM_USE_DBBTREE 1
34744 _ACEOF
34745
34746                 fi
34747
34748                                                 if test $ol_cv_lib_db != yes ; then
34749                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34750                 fi
34751         fi
34752         ;;
34753 esac
34754
34755 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34756         if test $ol_link_ldbm != berkeley ; then
34757                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34758 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34759    { (exit 1); exit 1; }; }
34760         else
34761                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34762 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34763 if test "${ol_cv_bdb_compat+set}" = set; then
34764   echo $ECHO_N "(cached) $ECHO_C" >&6
34765 else
34766
34767         cat >conftest.$ac_ext <<_ACEOF
34768 /* confdefs.h.  */
34769 _ACEOF
34770 cat confdefs.h >>conftest.$ac_ext
34771 cat >>conftest.$ac_ext <<_ACEOF
34772 /* end confdefs.h.  */
34773
34774 #include <db.h>
34775
34776  /* this check could be improved */
34777 #ifndef DB_VERSION_MAJOR
34778 #       define DB_VERSION_MAJOR 1
34779 #endif
34780 #ifndef DB_VERSION_MINOR
34781 #       define DB_VERSION_MINOR 0
34782 #endif
34783
34784 /* require 4.2 or later */
34785 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34786         __db_version_compat
34787 #endif
34788
34789 _ACEOF
34790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34791   $EGREP "__db_version_compat" >/dev/null 2>&1; then
34792   ol_cv_bdb_compat=yes
34793 else
34794   ol_cv_bdb_compat=no
34795 fi
34796 rm -f conftest*
34797
34798 fi
34799 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34800 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34801
34802
34803                 if test $ol_cv_bdb_compat != yes ; then
34804                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34805 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34806    { (exit 1); exit 1; }; }
34807                 fi
34808         fi
34809 fi
34810
34811 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34812         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34813 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34814         ol_enable_ldbm_api=none
34815 fi
34816
34817 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34818         echo "$as_me:$LINENO: checking for MDBM library" >&5
34819 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34820 if test "${ol_cv_lib_mdbm+set}" = set; then
34821   echo $ECHO_N "(cached) $ECHO_C" >&6
34822 else
34823         ol_LIBS="$LIBS"
34824         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34825 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34826 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34827   echo $ECHO_N "(cached) $ECHO_C" >&6
34828 else
34829   cat >conftest.$ac_ext <<_ACEOF
34830 /* confdefs.h.  */
34831 _ACEOF
34832 cat confdefs.h >>conftest.$ac_ext
34833 cat >>conftest.$ac_ext <<_ACEOF
34834 /* end confdefs.h.  */
34835 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34837 #define mdbm_set_chain innocuous_mdbm_set_chain
34838
34839 /* System header to define __stub macros and hopefully few prototypes,
34840     which can conflict with char mdbm_set_chain (); below.
34841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34842     <limits.h> exists even on freestanding compilers.  */
34843
34844 #ifdef __STDC__
34845 # include <limits.h>
34846 #else
34847 # include <assert.h>
34848 #endif
34849
34850 #undef mdbm_set_chain
34851
34852 /* Override any gcc2 internal prototype to avoid an error.  */
34853 #ifdef __cplusplus
34854 extern "C"
34855 {
34856 #endif
34857 /* We use char because int might match the return type of a gcc2
34858    builtin and then its argument prototype would still apply.  */
34859 char mdbm_set_chain ();
34860 /* The GNU C library defines this for functions which it implements
34861     to always fail with ENOSYS.  Some functions are actually named
34862     something starting with __ and the normal name is an alias.  */
34863 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34864 choke me
34865 #else
34866 char (*f) () = mdbm_set_chain;
34867 #endif
34868 #ifdef __cplusplus
34869 }
34870 #endif
34871
34872 int
34873 main ()
34874 {
34875 return f != mdbm_set_chain;
34876   ;
34877   return 0;
34878 }
34879 _ACEOF
34880 rm -f conftest.$ac_objext conftest$ac_exeext
34881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34882   (eval $ac_link) 2>conftest.er1
34883   ac_status=$?
34884   grep -v '^ *+' conftest.er1 >conftest.err
34885   rm -f conftest.er1
34886   cat conftest.err >&5
34887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34888   (exit $ac_status); } &&
34889          { ac_try='test -z "$ac_c_werror_flag"
34890                          || test ! -s conftest.err'
34891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892   (eval $ac_try) 2>&5
34893   ac_status=$?
34894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895   (exit $ac_status); }; } &&
34896          { ac_try='test -s conftest$ac_exeext'
34897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34898   (eval $ac_try) 2>&5
34899   ac_status=$?
34900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34901   (exit $ac_status); }; }; then
34902   ac_cv_func_mdbm_set_chain=yes
34903 else
34904   echo "$as_me: failed program was:" >&5
34905 sed 's/^/| /' conftest.$ac_ext >&5
34906
34907 ac_cv_func_mdbm_set_chain=no
34908 fi
34909 rm -f conftest.err conftest.$ac_objext \
34910       conftest$ac_exeext conftest.$ac_ext
34911 fi
34912 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34913 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34914 if test $ac_cv_func_mdbm_set_chain = yes; then
34915   ol_cv_lib_mdbm=yes
34916 else
34917
34918                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34919 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34920 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34921   echo $ECHO_N "(cached) $ECHO_C" >&6
34922 else
34923   ac_check_lib_save_LIBS=$LIBS
34924 LIBS="-lmdbm  $LIBS"
34925 cat >conftest.$ac_ext <<_ACEOF
34926 /* confdefs.h.  */
34927 _ACEOF
34928 cat confdefs.h >>conftest.$ac_ext
34929 cat >>conftest.$ac_ext <<_ACEOF
34930 /* end confdefs.h.  */
34931
34932 /* Override any gcc2 internal prototype to avoid an error.  */
34933 #ifdef __cplusplus
34934 extern "C"
34935 #endif
34936 /* We use char because int might match the return type of a gcc2
34937    builtin and then its argument prototype would still apply.  */
34938 char mdbm_set_chain ();
34939 int
34940 main ()
34941 {
34942 mdbm_set_chain ();
34943   ;
34944   return 0;
34945 }
34946 _ACEOF
34947 rm -f conftest.$ac_objext conftest$ac_exeext
34948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34949   (eval $ac_link) 2>conftest.er1
34950   ac_status=$?
34951   grep -v '^ *+' conftest.er1 >conftest.err
34952   rm -f conftest.er1
34953   cat conftest.err >&5
34954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34955   (exit $ac_status); } &&
34956          { ac_try='test -z "$ac_c_werror_flag"
34957                          || test ! -s conftest.err'
34958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34959   (eval $ac_try) 2>&5
34960   ac_status=$?
34961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962   (exit $ac_status); }; } &&
34963          { ac_try='test -s conftest$ac_exeext'
34964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34965   (eval $ac_try) 2>&5
34966   ac_status=$?
34967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968   (exit $ac_status); }; }; then
34969   ac_cv_lib_mdbm_mdbm_set_chain=yes
34970 else
34971   echo "$as_me: failed program was:" >&5
34972 sed 's/^/| /' conftest.$ac_ext >&5
34973
34974 ac_cv_lib_mdbm_mdbm_set_chain=no
34975 fi
34976 rm -f conftest.err conftest.$ac_objext \
34977       conftest$ac_exeext conftest.$ac_ext
34978 LIBS=$ac_check_lib_save_LIBS
34979 fi
34980 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
34981 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
34982 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
34983   ol_cv_lib_mdbm=-lmdbm
34984 else
34985   ol_cv_lib_mdbm=no
34986 fi
34987
34988
34989 fi
34990
34991         LIBS="$ol_LIBS"
34992
34993 fi
34994 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
34995 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
34996
34997
34998
34999 for ac_header in mdbm.h
35000 do
35001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35003   echo "$as_me:$LINENO: checking for $ac_header" >&5
35004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35006   echo $ECHO_N "(cached) $ECHO_C" >&6
35007 fi
35008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35010 else
35011   # Is the header compilable?
35012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35014 cat >conftest.$ac_ext <<_ACEOF
35015 /* confdefs.h.  */
35016 _ACEOF
35017 cat confdefs.h >>conftest.$ac_ext
35018 cat >>conftest.$ac_ext <<_ACEOF
35019 /* end confdefs.h.  */
35020 $ac_includes_default
35021 #include <$ac_header>
35022 _ACEOF
35023 rm -f conftest.$ac_objext
35024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35025   (eval $ac_compile) 2>conftest.er1
35026   ac_status=$?
35027   grep -v '^ *+' conftest.er1 >conftest.err
35028   rm -f conftest.er1
35029   cat conftest.err >&5
35030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35031   (exit $ac_status); } &&
35032          { ac_try='test -z "$ac_c_werror_flag"
35033                          || test ! -s conftest.err'
35034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35035   (eval $ac_try) 2>&5
35036   ac_status=$?
35037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038   (exit $ac_status); }; } &&
35039          { ac_try='test -s conftest.$ac_objext'
35040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35041   (eval $ac_try) 2>&5
35042   ac_status=$?
35043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044   (exit $ac_status); }; }; then
35045   ac_header_compiler=yes
35046 else
35047   echo "$as_me: failed program was:" >&5
35048 sed 's/^/| /' conftest.$ac_ext >&5
35049
35050 ac_header_compiler=no
35051 fi
35052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35054 echo "${ECHO_T}$ac_header_compiler" >&6
35055
35056 # Is the header present?
35057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35059 cat >conftest.$ac_ext <<_ACEOF
35060 /* confdefs.h.  */
35061 _ACEOF
35062 cat confdefs.h >>conftest.$ac_ext
35063 cat >>conftest.$ac_ext <<_ACEOF
35064 /* end confdefs.h.  */
35065 #include <$ac_header>
35066 _ACEOF
35067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35068   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35069   ac_status=$?
35070   grep -v '^ *+' conftest.er1 >conftest.err
35071   rm -f conftest.er1
35072   cat conftest.err >&5
35073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074   (exit $ac_status); } >/dev/null; then
35075   if test -s conftest.err; then
35076     ac_cpp_err=$ac_c_preproc_warn_flag
35077     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35078   else
35079     ac_cpp_err=
35080   fi
35081 else
35082   ac_cpp_err=yes
35083 fi
35084 if test -z "$ac_cpp_err"; then
35085   ac_header_preproc=yes
35086 else
35087   echo "$as_me: failed program was:" >&5
35088 sed 's/^/| /' conftest.$ac_ext >&5
35089
35090   ac_header_preproc=no
35091 fi
35092 rm -f conftest.err conftest.$ac_ext
35093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35094 echo "${ECHO_T}$ac_header_preproc" >&6
35095
35096 # So?  What about this header?
35097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35098   yes:no: )
35099     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35103     ac_header_preproc=yes
35104     ;;
35105   no:yes:* )
35106     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35108     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35109 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35110     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35112     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35113 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35116     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35118     (
35119       cat <<\_ASBOX
35120 ## ------------------------------------------ ##
35121 ## Report this to the AC_PACKAGE_NAME lists.  ##
35122 ## ------------------------------------------ ##
35123 _ASBOX
35124     ) |
35125       sed "s/^/$as_me: WARNING:     /" >&2
35126     ;;
35127 esac
35128 echo "$as_me:$LINENO: checking for $ac_header" >&5
35129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35131   echo $ECHO_N "(cached) $ECHO_C" >&6
35132 else
35133   eval "$as_ac_Header=\$ac_header_preproc"
35134 fi
35135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35137
35138 fi
35139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35140   cat >>confdefs.h <<_ACEOF
35141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35142 _ACEOF
35143
35144 fi
35145
35146 done
35147
35148  echo "$as_me:$LINENO: checking for db" >&5
35149 echo $ECHO_N "checking for db... $ECHO_C" >&6
35150 if test "${ol_cv_mdbm+set}" = set; then
35151   echo $ECHO_N "(cached) $ECHO_C" >&6
35152 else
35153
35154         if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35155                 ol_cv_mdbm=no
35156         else
35157                 ol_cv_mdbm=yes
35158         fi
35159
35160 fi
35161 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35162 echo "${ECHO_T}$ol_cv_mdbm" >&6
35163  if test $ol_cv_mdbm = yes ; then
35164
35165 cat >>confdefs.h <<\_ACEOF
35166 #define HAVE_MDBM 1
35167 _ACEOF
35168
35169  fi
35170
35171
35172         if test $ol_cv_mdbm = yes ; then
35173                 ol_link_ldbm=mdbm
35174                 ol_enable_ldbm_api=mdbm
35175                 if test $ol_cv_lib_mdbm != yes ; then
35176                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35177                 fi
35178         fi
35179 fi
35180
35181 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35182         echo "$as_me:$LINENO: checking for GDBM library" >&5
35183 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35184 if test "${ol_cv_lib_gdbm+set}" = set; then
35185   echo $ECHO_N "(cached) $ECHO_C" >&6
35186 else
35187         ol_LIBS="$LIBS"
35188         echo "$as_me:$LINENO: checking for gdbm_open" >&5
35189 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35190 if test "${ac_cv_func_gdbm_open+set}" = set; then
35191   echo $ECHO_N "(cached) $ECHO_C" >&6
35192 else
35193   cat >conftest.$ac_ext <<_ACEOF
35194 /* confdefs.h.  */
35195 _ACEOF
35196 cat confdefs.h >>conftest.$ac_ext
35197 cat >>conftest.$ac_ext <<_ACEOF
35198 /* end confdefs.h.  */
35199 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35201 #define gdbm_open innocuous_gdbm_open
35202
35203 /* System header to define __stub macros and hopefully few prototypes,
35204     which can conflict with char gdbm_open (); below.
35205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35206     <limits.h> exists even on freestanding compilers.  */
35207
35208 #ifdef __STDC__
35209 # include <limits.h>
35210 #else
35211 # include <assert.h>
35212 #endif
35213
35214 #undef gdbm_open
35215
35216 /* Override any gcc2 internal prototype to avoid an error.  */
35217 #ifdef __cplusplus
35218 extern "C"
35219 {
35220 #endif
35221 /* We use char because int might match the return type of a gcc2
35222    builtin and then its argument prototype would still apply.  */
35223 char gdbm_open ();
35224 /* The GNU C library defines this for functions which it implements
35225     to always fail with ENOSYS.  Some functions are actually named
35226     something starting with __ and the normal name is an alias.  */
35227 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35228 choke me
35229 #else
35230 char (*f) () = gdbm_open;
35231 #endif
35232 #ifdef __cplusplus
35233 }
35234 #endif
35235
35236 int
35237 main ()
35238 {
35239 return f != gdbm_open;
35240   ;
35241   return 0;
35242 }
35243 _ACEOF
35244 rm -f conftest.$ac_objext conftest$ac_exeext
35245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35246   (eval $ac_link) 2>conftest.er1
35247   ac_status=$?
35248   grep -v '^ *+' conftest.er1 >conftest.err
35249   rm -f conftest.er1
35250   cat conftest.err >&5
35251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252   (exit $ac_status); } &&
35253          { ac_try='test -z "$ac_c_werror_flag"
35254                          || test ! -s conftest.err'
35255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35256   (eval $ac_try) 2>&5
35257   ac_status=$?
35258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35259   (exit $ac_status); }; } &&
35260          { ac_try='test -s conftest$ac_exeext'
35261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35262   (eval $ac_try) 2>&5
35263   ac_status=$?
35264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35265   (exit $ac_status); }; }; then
35266   ac_cv_func_gdbm_open=yes
35267 else
35268   echo "$as_me: failed program was:" >&5
35269 sed 's/^/| /' conftest.$ac_ext >&5
35270
35271 ac_cv_func_gdbm_open=no
35272 fi
35273 rm -f conftest.err conftest.$ac_objext \
35274       conftest$ac_exeext conftest.$ac_ext
35275 fi
35276 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35277 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35278 if test $ac_cv_func_gdbm_open = yes; then
35279   ol_cv_lib_gdbm=yes
35280 else
35281
35282                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35283 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35284 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35285   echo $ECHO_N "(cached) $ECHO_C" >&6
35286 else
35287   ac_check_lib_save_LIBS=$LIBS
35288 LIBS="-lgdbm  $LIBS"
35289 cat >conftest.$ac_ext <<_ACEOF
35290 /* confdefs.h.  */
35291 _ACEOF
35292 cat confdefs.h >>conftest.$ac_ext
35293 cat >>conftest.$ac_ext <<_ACEOF
35294 /* end confdefs.h.  */
35295
35296 /* Override any gcc2 internal prototype to avoid an error.  */
35297 #ifdef __cplusplus
35298 extern "C"
35299 #endif
35300 /* We use char because int might match the return type of a gcc2
35301    builtin and then its argument prototype would still apply.  */
35302 char gdbm_open ();
35303 int
35304 main ()
35305 {
35306 gdbm_open ();
35307   ;
35308   return 0;
35309 }
35310 _ACEOF
35311 rm -f conftest.$ac_objext conftest$ac_exeext
35312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35313   (eval $ac_link) 2>conftest.er1
35314   ac_status=$?
35315   grep -v '^ *+' conftest.er1 >conftest.err
35316   rm -f conftest.er1
35317   cat conftest.err >&5
35318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35319   (exit $ac_status); } &&
35320          { ac_try='test -z "$ac_c_werror_flag"
35321                          || test ! -s conftest.err'
35322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35323   (eval $ac_try) 2>&5
35324   ac_status=$?
35325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35326   (exit $ac_status); }; } &&
35327          { ac_try='test -s conftest$ac_exeext'
35328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35329   (eval $ac_try) 2>&5
35330   ac_status=$?
35331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35332   (exit $ac_status); }; }; then
35333   ac_cv_lib_gdbm_gdbm_open=yes
35334 else
35335   echo "$as_me: failed program was:" >&5
35336 sed 's/^/| /' conftest.$ac_ext >&5
35337
35338 ac_cv_lib_gdbm_gdbm_open=no
35339 fi
35340 rm -f conftest.err conftest.$ac_objext \
35341       conftest$ac_exeext conftest.$ac_ext
35342 LIBS=$ac_check_lib_save_LIBS
35343 fi
35344 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35345 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35346 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35347   ol_cv_lib_gdbm=-lgdbm
35348 else
35349   ol_cv_lib_gdbm=no
35350 fi
35351
35352
35353 fi
35354
35355         LIBS="$ol_LIBS"
35356
35357 fi
35358 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35359 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35360
35361
35362
35363 for ac_header in gdbm.h
35364 do
35365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35367   echo "$as_me:$LINENO: checking for $ac_header" >&5
35368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35370   echo $ECHO_N "(cached) $ECHO_C" >&6
35371 fi
35372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35374 else
35375   # Is the header compilable?
35376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35378 cat >conftest.$ac_ext <<_ACEOF
35379 /* confdefs.h.  */
35380 _ACEOF
35381 cat confdefs.h >>conftest.$ac_ext
35382 cat >>conftest.$ac_ext <<_ACEOF
35383 /* end confdefs.h.  */
35384 $ac_includes_default
35385 #include <$ac_header>
35386 _ACEOF
35387 rm -f conftest.$ac_objext
35388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35389   (eval $ac_compile) 2>conftest.er1
35390   ac_status=$?
35391   grep -v '^ *+' conftest.er1 >conftest.err
35392   rm -f conftest.er1
35393   cat conftest.err >&5
35394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395   (exit $ac_status); } &&
35396          { ac_try='test -z "$ac_c_werror_flag"
35397                          || test ! -s conftest.err'
35398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35399   (eval $ac_try) 2>&5
35400   ac_status=$?
35401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35402   (exit $ac_status); }; } &&
35403          { ac_try='test -s conftest.$ac_objext'
35404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35405   (eval $ac_try) 2>&5
35406   ac_status=$?
35407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408   (exit $ac_status); }; }; then
35409   ac_header_compiler=yes
35410 else
35411   echo "$as_me: failed program was:" >&5
35412 sed 's/^/| /' conftest.$ac_ext >&5
35413
35414 ac_header_compiler=no
35415 fi
35416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35418 echo "${ECHO_T}$ac_header_compiler" >&6
35419
35420 # Is the header present?
35421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35423 cat >conftest.$ac_ext <<_ACEOF
35424 /* confdefs.h.  */
35425 _ACEOF
35426 cat confdefs.h >>conftest.$ac_ext
35427 cat >>conftest.$ac_ext <<_ACEOF
35428 /* end confdefs.h.  */
35429 #include <$ac_header>
35430 _ACEOF
35431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35433   ac_status=$?
35434   grep -v '^ *+' conftest.er1 >conftest.err
35435   rm -f conftest.er1
35436   cat conftest.err >&5
35437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438   (exit $ac_status); } >/dev/null; then
35439   if test -s conftest.err; then
35440     ac_cpp_err=$ac_c_preproc_warn_flag
35441     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35442   else
35443     ac_cpp_err=
35444   fi
35445 else
35446   ac_cpp_err=yes
35447 fi
35448 if test -z "$ac_cpp_err"; then
35449   ac_header_preproc=yes
35450 else
35451   echo "$as_me: failed program was:" >&5
35452 sed 's/^/| /' conftest.$ac_ext >&5
35453
35454   ac_header_preproc=no
35455 fi
35456 rm -f conftest.err conftest.$ac_ext
35457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35458 echo "${ECHO_T}$ac_header_preproc" >&6
35459
35460 # So?  What about this header?
35461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35462   yes:no: )
35463     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35467     ac_header_preproc=yes
35468     ;;
35469   no:yes:* )
35470     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35472     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35473 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35474     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35476     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35477 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35480     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35482     (
35483       cat <<\_ASBOX
35484 ## ------------------------------------------ ##
35485 ## Report this to the AC_PACKAGE_NAME lists.  ##
35486 ## ------------------------------------------ ##
35487 _ASBOX
35488     ) |
35489       sed "s/^/$as_me: WARNING:     /" >&2
35490     ;;
35491 esac
35492 echo "$as_me:$LINENO: checking for $ac_header" >&5
35493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35495   echo $ECHO_N "(cached) $ECHO_C" >&6
35496 else
35497   eval "$as_ac_Header=\$ac_header_preproc"
35498 fi
35499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35501
35502 fi
35503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35504   cat >>confdefs.h <<_ACEOF
35505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35506 _ACEOF
35507
35508 fi
35509
35510 done
35511
35512  echo "$as_me:$LINENO: checking for db" >&5
35513 echo $ECHO_N "checking for db... $ECHO_C" >&6
35514 if test "${ol_cv_gdbm+set}" = set; then
35515   echo $ECHO_N "(cached) $ECHO_C" >&6
35516 else
35517
35518         if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35519                 ol_cv_gdbm=no
35520         else
35521                 ol_cv_gdbm=yes
35522         fi
35523
35524 fi
35525 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35526 echo "${ECHO_T}$ol_cv_gdbm" >&6
35527  if test $ol_cv_gdbm = yes ; then
35528
35529 cat >>confdefs.h <<\_ACEOF
35530 #define HAVE_GDBM 1
35531 _ACEOF
35532
35533  fi
35534
35535
35536         if test $ol_cv_gdbm = yes ; then
35537                 ol_link_ldbm=gdbm
35538                 ol_enable_ldbm_api=gdbm
35539
35540                 if test $ol_cv_lib_gdbm != yes ; then
35541                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35542                 fi
35543         fi
35544 fi
35545
35546 if test $ol_enable_ldbm_api = ndbm ; then
35547         echo "$as_me:$LINENO: checking for NDBM library" >&5
35548 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35549 if test "${ol_cv_lib_ndbm+set}" = set; then
35550   echo $ECHO_N "(cached) $ECHO_C" >&6
35551 else
35552         ol_LIBS="$LIBS"
35553         echo "$as_me:$LINENO: checking for dbm_open" >&5
35554 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35555 if test "${ac_cv_func_dbm_open+set}" = set; then
35556   echo $ECHO_N "(cached) $ECHO_C" >&6
35557 else
35558   cat >conftest.$ac_ext <<_ACEOF
35559 /* confdefs.h.  */
35560 _ACEOF
35561 cat confdefs.h >>conftest.$ac_ext
35562 cat >>conftest.$ac_ext <<_ACEOF
35563 /* end confdefs.h.  */
35564 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35566 #define dbm_open innocuous_dbm_open
35567
35568 /* System header to define __stub macros and hopefully few prototypes,
35569     which can conflict with char dbm_open (); below.
35570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35571     <limits.h> exists even on freestanding compilers.  */
35572
35573 #ifdef __STDC__
35574 # include <limits.h>
35575 #else
35576 # include <assert.h>
35577 #endif
35578
35579 #undef dbm_open
35580
35581 /* Override any gcc2 internal prototype to avoid an error.  */
35582 #ifdef __cplusplus
35583 extern "C"
35584 {
35585 #endif
35586 /* We use char because int might match the return type of a gcc2
35587    builtin and then its argument prototype would still apply.  */
35588 char dbm_open ();
35589 /* The GNU C library defines this for functions which it implements
35590     to always fail with ENOSYS.  Some functions are actually named
35591     something starting with __ and the normal name is an alias.  */
35592 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35593 choke me
35594 #else
35595 char (*f) () = dbm_open;
35596 #endif
35597 #ifdef __cplusplus
35598 }
35599 #endif
35600
35601 int
35602 main ()
35603 {
35604 return f != dbm_open;
35605   ;
35606   return 0;
35607 }
35608 _ACEOF
35609 rm -f conftest.$ac_objext conftest$ac_exeext
35610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35611   (eval $ac_link) 2>conftest.er1
35612   ac_status=$?
35613   grep -v '^ *+' conftest.er1 >conftest.err
35614   rm -f conftest.er1
35615   cat conftest.err >&5
35616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617   (exit $ac_status); } &&
35618          { ac_try='test -z "$ac_c_werror_flag"
35619                          || test ! -s conftest.err'
35620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35621   (eval $ac_try) 2>&5
35622   ac_status=$?
35623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624   (exit $ac_status); }; } &&
35625          { ac_try='test -s conftest$ac_exeext'
35626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35627   (eval $ac_try) 2>&5
35628   ac_status=$?
35629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35630   (exit $ac_status); }; }; then
35631   ac_cv_func_dbm_open=yes
35632 else
35633   echo "$as_me: failed program was:" >&5
35634 sed 's/^/| /' conftest.$ac_ext >&5
35635
35636 ac_cv_func_dbm_open=no
35637 fi
35638 rm -f conftest.err conftest.$ac_objext \
35639       conftest$ac_exeext conftest.$ac_ext
35640 fi
35641 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35642 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35643 if test $ac_cv_func_dbm_open = yes; then
35644   ol_cv_lib_ndbm=yes
35645 else
35646
35647                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35648 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35649 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35650   echo $ECHO_N "(cached) $ECHO_C" >&6
35651 else
35652   ac_check_lib_save_LIBS=$LIBS
35653 LIBS="-lndbm  $LIBS"
35654 cat >conftest.$ac_ext <<_ACEOF
35655 /* confdefs.h.  */
35656 _ACEOF
35657 cat confdefs.h >>conftest.$ac_ext
35658 cat >>conftest.$ac_ext <<_ACEOF
35659 /* end confdefs.h.  */
35660
35661 /* Override any gcc2 internal prototype to avoid an error.  */
35662 #ifdef __cplusplus
35663 extern "C"
35664 #endif
35665 /* We use char because int might match the return type of a gcc2
35666    builtin and then its argument prototype would still apply.  */
35667 char dbm_open ();
35668 int
35669 main ()
35670 {
35671 dbm_open ();
35672   ;
35673   return 0;
35674 }
35675 _ACEOF
35676 rm -f conftest.$ac_objext conftest$ac_exeext
35677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35678   (eval $ac_link) 2>conftest.er1
35679   ac_status=$?
35680   grep -v '^ *+' conftest.er1 >conftest.err
35681   rm -f conftest.er1
35682   cat conftest.err >&5
35683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35684   (exit $ac_status); } &&
35685          { ac_try='test -z "$ac_c_werror_flag"
35686                          || test ! -s conftest.err'
35687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35688   (eval $ac_try) 2>&5
35689   ac_status=$?
35690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691   (exit $ac_status); }; } &&
35692          { ac_try='test -s conftest$ac_exeext'
35693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35694   (eval $ac_try) 2>&5
35695   ac_status=$?
35696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697   (exit $ac_status); }; }; then
35698   ac_cv_lib_ndbm_dbm_open=yes
35699 else
35700   echo "$as_me: failed program was:" >&5
35701 sed 's/^/| /' conftest.$ac_ext >&5
35702
35703 ac_cv_lib_ndbm_dbm_open=no
35704 fi
35705 rm -f conftest.err conftest.$ac_objext \
35706       conftest$ac_exeext conftest.$ac_ext
35707 LIBS=$ac_check_lib_save_LIBS
35708 fi
35709 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35710 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35711 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35712   ol_cv_lib_ndbm=-lndbm
35713 else
35714
35715                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35716 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35717 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35718   echo $ECHO_N "(cached) $ECHO_C" >&6
35719 else
35720   ac_check_lib_save_LIBS=$LIBS
35721 LIBS="-ldbm  $LIBS"
35722 cat >conftest.$ac_ext <<_ACEOF
35723 /* confdefs.h.  */
35724 _ACEOF
35725 cat confdefs.h >>conftest.$ac_ext
35726 cat >>conftest.$ac_ext <<_ACEOF
35727 /* end confdefs.h.  */
35728
35729 /* Override any gcc2 internal prototype to avoid an error.  */
35730 #ifdef __cplusplus
35731 extern "C"
35732 #endif
35733 /* We use char because int might match the return type of a gcc2
35734    builtin and then its argument prototype would still apply.  */
35735 char dbm_open ();
35736 int
35737 main ()
35738 {
35739 dbm_open ();
35740   ;
35741   return 0;
35742 }
35743 _ACEOF
35744 rm -f conftest.$ac_objext conftest$ac_exeext
35745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35746   (eval $ac_link) 2>conftest.er1
35747   ac_status=$?
35748   grep -v '^ *+' conftest.er1 >conftest.err
35749   rm -f conftest.er1
35750   cat conftest.err >&5
35751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752   (exit $ac_status); } &&
35753          { ac_try='test -z "$ac_c_werror_flag"
35754                          || test ! -s conftest.err'
35755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35756   (eval $ac_try) 2>&5
35757   ac_status=$?
35758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759   (exit $ac_status); }; } &&
35760          { ac_try='test -s conftest$ac_exeext'
35761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35762   (eval $ac_try) 2>&5
35763   ac_status=$?
35764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35765   (exit $ac_status); }; }; then
35766   ac_cv_lib_dbm_dbm_open=yes
35767 else
35768   echo "$as_me: failed program was:" >&5
35769 sed 's/^/| /' conftest.$ac_ext >&5
35770
35771 ac_cv_lib_dbm_dbm_open=no
35772 fi
35773 rm -f conftest.err conftest.$ac_objext \
35774       conftest$ac_exeext conftest.$ac_ext
35775 LIBS=$ac_check_lib_save_LIBS
35776 fi
35777 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35778 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35779 if test $ac_cv_lib_dbm_dbm_open = yes; then
35780   ol_cv_lib_ndbm=-ldbm
35781 else
35782   ol_cv_lib_ndbm=no
35783 fi
35784
35785 fi
35786
35787
35788 fi
35789
35790         LIBS="$ol_LIBS"
35791
35792 fi
35793 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35794 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35795
35796
35797
35798 for ac_header in ndbm.h
35799 do
35800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35802   echo "$as_me:$LINENO: checking for $ac_header" >&5
35803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35805   echo $ECHO_N "(cached) $ECHO_C" >&6
35806 fi
35807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35809 else
35810   # Is the header compilable?
35811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35813 cat >conftest.$ac_ext <<_ACEOF
35814 /* confdefs.h.  */
35815 _ACEOF
35816 cat confdefs.h >>conftest.$ac_ext
35817 cat >>conftest.$ac_ext <<_ACEOF
35818 /* end confdefs.h.  */
35819 $ac_includes_default
35820 #include <$ac_header>
35821 _ACEOF
35822 rm -f conftest.$ac_objext
35823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35824   (eval $ac_compile) 2>conftest.er1
35825   ac_status=$?
35826   grep -v '^ *+' conftest.er1 >conftest.err
35827   rm -f conftest.er1
35828   cat conftest.err >&5
35829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830   (exit $ac_status); } &&
35831          { ac_try='test -z "$ac_c_werror_flag"
35832                          || test ! -s conftest.err'
35833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35834   (eval $ac_try) 2>&5
35835   ac_status=$?
35836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35837   (exit $ac_status); }; } &&
35838          { ac_try='test -s conftest.$ac_objext'
35839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35840   (eval $ac_try) 2>&5
35841   ac_status=$?
35842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843   (exit $ac_status); }; }; then
35844   ac_header_compiler=yes
35845 else
35846   echo "$as_me: failed program was:" >&5
35847 sed 's/^/| /' conftest.$ac_ext >&5
35848
35849 ac_header_compiler=no
35850 fi
35851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35853 echo "${ECHO_T}$ac_header_compiler" >&6
35854
35855 # Is the header present?
35856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35858 cat >conftest.$ac_ext <<_ACEOF
35859 /* confdefs.h.  */
35860 _ACEOF
35861 cat confdefs.h >>conftest.$ac_ext
35862 cat >>conftest.$ac_ext <<_ACEOF
35863 /* end confdefs.h.  */
35864 #include <$ac_header>
35865 _ACEOF
35866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35868   ac_status=$?
35869   grep -v '^ *+' conftest.er1 >conftest.err
35870   rm -f conftest.er1
35871   cat conftest.err >&5
35872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873   (exit $ac_status); } >/dev/null; then
35874   if test -s conftest.err; then
35875     ac_cpp_err=$ac_c_preproc_warn_flag
35876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35877   else
35878     ac_cpp_err=
35879   fi
35880 else
35881   ac_cpp_err=yes
35882 fi
35883 if test -z "$ac_cpp_err"; then
35884   ac_header_preproc=yes
35885 else
35886   echo "$as_me: failed program was:" >&5
35887 sed 's/^/| /' conftest.$ac_ext >&5
35888
35889   ac_header_preproc=no
35890 fi
35891 rm -f conftest.err conftest.$ac_ext
35892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35893 echo "${ECHO_T}$ac_header_preproc" >&6
35894
35895 # So?  What about this header?
35896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35897   yes:no: )
35898     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35902     ac_header_preproc=yes
35903     ;;
35904   no:yes:* )
35905     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35907     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35908 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35909     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35911     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35912 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35915     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35917     (
35918       cat <<\_ASBOX
35919 ## ------------------------------------------ ##
35920 ## Report this to the AC_PACKAGE_NAME lists.  ##
35921 ## ------------------------------------------ ##
35922 _ASBOX
35923     ) |
35924       sed "s/^/$as_me: WARNING:     /" >&2
35925     ;;
35926 esac
35927 echo "$as_me:$LINENO: checking for $ac_header" >&5
35928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35930   echo $ECHO_N "(cached) $ECHO_C" >&6
35931 else
35932   eval "$as_ac_Header=\$ac_header_preproc"
35933 fi
35934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35936
35937 fi
35938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35939   cat >>confdefs.h <<_ACEOF
35940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35941 _ACEOF
35942
35943 fi
35944
35945 done
35946
35947  echo "$as_me:$LINENO: checking for db" >&5
35948 echo $ECHO_N "checking for db... $ECHO_C" >&6
35949 if test "${ol_cv_ndbm+set}" = set; then
35950   echo $ECHO_N "(cached) $ECHO_C" >&6
35951 else
35952
35953         if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
35954                 ol_cv_ndbm=no
35955         else
35956                 ol_cv_ndbm=yes
35957         fi
35958
35959 fi
35960 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
35961 echo "${ECHO_T}$ol_cv_ndbm" >&6
35962  if test $ol_cv_ndbm = yes ; then
35963
35964 cat >>confdefs.h <<\_ACEOF
35965 #define HAVE_NDBM 1
35966 _ACEOF
35967
35968  fi
35969
35970
35971         if test $ol_cv_ndbm = yes ; then
35972                 ol_link_ldbm=ndbm
35973                 ol_enable_ldbm_api=ndbm
35974
35975                 if test $ol_cv_lib_ndbm != yes ; then
35976                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
35977                 fi
35978         fi
35979 fi
35980
35981 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
35982         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
35983 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
35984    { (exit 1); exit 1; }; }
35985 fi
35986
35987 if test $ol_enable_bdb = yes ||
35988    test $ol_enable_hdb = yes ||
35989    test $ol_enable_ldbm = yes ; then
35990         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
35991 fi
35992
35993
35994 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
35995         BUILD_LIBS_DYNAMIC=shared
35996
35997 cat >>confdefs.h <<\_ACEOF
35998 #define LDAP_LIBS_DYNAMIC 1
35999 _ACEOF
36000
36001         LTSTATIC=""
36002 else
36003         BUILD_LIBS_DYNAMIC=static
36004         LTSTATIC="-static"
36005 fi
36006
36007 if test $ol_enable_wrappers != no ; then
36008
36009 for ac_header in tcpd.h
36010 do
36011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36013   echo "$as_me:$LINENO: checking for $ac_header" >&5
36014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36016   echo $ECHO_N "(cached) $ECHO_C" >&6
36017 fi
36018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36020 else
36021   # Is the header compilable?
36022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36024 cat >conftest.$ac_ext <<_ACEOF
36025 /* confdefs.h.  */
36026 _ACEOF
36027 cat confdefs.h >>conftest.$ac_ext
36028 cat >>conftest.$ac_ext <<_ACEOF
36029 /* end confdefs.h.  */
36030 $ac_includes_default
36031 #include <$ac_header>
36032 _ACEOF
36033 rm -f conftest.$ac_objext
36034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36035   (eval $ac_compile) 2>conftest.er1
36036   ac_status=$?
36037   grep -v '^ *+' conftest.er1 >conftest.err
36038   rm -f conftest.er1
36039   cat conftest.err >&5
36040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36041   (exit $ac_status); } &&
36042          { ac_try='test -z "$ac_c_werror_flag"
36043                          || test ! -s conftest.err'
36044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36045   (eval $ac_try) 2>&5
36046   ac_status=$?
36047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36048   (exit $ac_status); }; } &&
36049          { ac_try='test -s conftest.$ac_objext'
36050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36051   (eval $ac_try) 2>&5
36052   ac_status=$?
36053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36054   (exit $ac_status); }; }; then
36055   ac_header_compiler=yes
36056 else
36057   echo "$as_me: failed program was:" >&5
36058 sed 's/^/| /' conftest.$ac_ext >&5
36059
36060 ac_header_compiler=no
36061 fi
36062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36064 echo "${ECHO_T}$ac_header_compiler" >&6
36065
36066 # Is the header present?
36067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36069 cat >conftest.$ac_ext <<_ACEOF
36070 /* confdefs.h.  */
36071 _ACEOF
36072 cat confdefs.h >>conftest.$ac_ext
36073 cat >>conftest.$ac_ext <<_ACEOF
36074 /* end confdefs.h.  */
36075 #include <$ac_header>
36076 _ACEOF
36077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36078   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36079   ac_status=$?
36080   grep -v '^ *+' conftest.er1 >conftest.err
36081   rm -f conftest.er1
36082   cat conftest.err >&5
36083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36084   (exit $ac_status); } >/dev/null; then
36085   if test -s conftest.err; then
36086     ac_cpp_err=$ac_c_preproc_warn_flag
36087     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36088   else
36089     ac_cpp_err=
36090   fi
36091 else
36092   ac_cpp_err=yes
36093 fi
36094 if test -z "$ac_cpp_err"; then
36095   ac_header_preproc=yes
36096 else
36097   echo "$as_me: failed program was:" >&5
36098 sed 's/^/| /' conftest.$ac_ext >&5
36099
36100   ac_header_preproc=no
36101 fi
36102 rm -f conftest.err conftest.$ac_ext
36103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36104 echo "${ECHO_T}$ac_header_preproc" >&6
36105
36106 # So?  What about this header?
36107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36108   yes:no: )
36109     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36113     ac_header_preproc=yes
36114     ;;
36115   no:yes:* )
36116     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36118     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36119 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36120     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36122     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36123 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36126     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36128     (
36129       cat <<\_ASBOX
36130 ## ------------------------------------------ ##
36131 ## Report this to the AC_PACKAGE_NAME lists.  ##
36132 ## ------------------------------------------ ##
36133 _ASBOX
36134     ) |
36135       sed "s/^/$as_me: WARNING:     /" >&2
36136     ;;
36137 esac
36138 echo "$as_me:$LINENO: checking for $ac_header" >&5
36139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36141   echo $ECHO_N "(cached) $ECHO_C" >&6
36142 else
36143   eval "$as_ac_Header=\$ac_header_preproc"
36144 fi
36145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36147
36148 fi
36149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36150   cat >>confdefs.h <<_ACEOF
36151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36152 _ACEOF
36153
36154                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36155 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36156                 save_LIBS="$LIBS"
36157                 LIBS="$LIBS -lwrap"
36158                 cat >conftest.$ac_ext <<_ACEOF
36159 /* confdefs.h.  */
36160 _ACEOF
36161 cat confdefs.h >>conftest.$ac_ext
36162 cat >>conftest.$ac_ext <<_ACEOF
36163 /* end confdefs.h.  */
36164
36165 #include <tcpd.h>
36166 int allow_severity = 0;
36167 int deny_severity  = 0;
36168
36169 struct request_info *req;
36170
36171 int
36172 main ()
36173 {
36174
36175 hosts_access(req)
36176
36177   ;
36178   return 0;
36179 }
36180 _ACEOF
36181 rm -f conftest.$ac_objext conftest$ac_exeext
36182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36183   (eval $ac_link) 2>conftest.er1
36184   ac_status=$?
36185   grep -v '^ *+' conftest.er1 >conftest.err
36186   rm -f conftest.er1
36187   cat conftest.err >&5
36188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36189   (exit $ac_status); } &&
36190          { ac_try='test -z "$ac_c_werror_flag"
36191                          || test ! -s conftest.err'
36192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36193   (eval $ac_try) 2>&5
36194   ac_status=$?
36195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196   (exit $ac_status); }; } &&
36197          { ac_try='test -s conftest$ac_exeext'
36198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36199   (eval $ac_try) 2>&5
36200   ac_status=$?
36201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202   (exit $ac_status); }; }; then
36203   echo "$as_me:$LINENO: result: -lwrap" >&5
36204 echo "${ECHO_T}-lwrap" >&6
36205                 have_wrappers=yes
36206                 LIBS="$save_LIBS"
36207 else
36208   echo "$as_me: failed program was:" >&5
36209 sed 's/^/| /' conftest.$ac_ext >&5
36210
36211
36212                                 LIBS="$LIBS -lnsl"
36213                 cat >conftest.$ac_ext <<_ACEOF
36214 /* confdefs.h.  */
36215 _ACEOF
36216 cat confdefs.h >>conftest.$ac_ext
36217 cat >>conftest.$ac_ext <<_ACEOF
36218 /* end confdefs.h.  */
36219
36220 #include <tcpd.h>
36221 int allow_severity = 0;
36222 int deny_severity  = 0;
36223
36224 struct request_info *req;
36225
36226 int
36227 main ()
36228 {
36229
36230 hosts_access(req)
36231
36232   ;
36233   return 0;
36234 }
36235 _ACEOF
36236 rm -f conftest.$ac_objext conftest$ac_exeext
36237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36238   (eval $ac_link) 2>conftest.er1
36239   ac_status=$?
36240   grep -v '^ *+' conftest.er1 >conftest.err
36241   rm -f conftest.er1
36242   cat conftest.err >&5
36243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36244   (exit $ac_status); } &&
36245          { ac_try='test -z "$ac_c_werror_flag"
36246                          || test ! -s conftest.err'
36247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36248   (eval $ac_try) 2>&5
36249   ac_status=$?
36250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251   (exit $ac_status); }; } &&
36252          { ac_try='test -s conftest$ac_exeext'
36253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36254   (eval $ac_try) 2>&5
36255   ac_status=$?
36256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36257   (exit $ac_status); }; }; then
36258   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36259 echo "${ECHO_T}-lwrap -lnsl" >&6
36260                 have_wrappers=yes
36261                 LIBS="$save_LIBS -lnsl"
36262 else
36263   echo "$as_me: failed program was:" >&5
36264 sed 's/^/| /' conftest.$ac_ext >&5
36265
36266
36267                 echo "$as_me:$LINENO: result: no" >&5
36268 echo "${ECHO_T}no" >&6
36269                 have_wrappers=no
36270                 LIBS=$save_LIBS
36271 fi
36272 rm -f conftest.err conftest.$ac_objext \
36273       conftest$ac_exeext conftest.$ac_ext
36274 fi
36275 rm -f conftest.err conftest.$ac_objext \
36276       conftest$ac_exeext conftest.$ac_ext
36277 else
36278   have_wrappers=no
36279 fi
36280
36281 done
36282
36283
36284         if test $have_wrappers = yes ; then
36285
36286 cat >>confdefs.h <<\_ACEOF
36287 #define HAVE_TCPD 1
36288 _ACEOF
36289
36290                 WRAP_LIBS="-lwrap"
36291         elif test $ol_enable_wrappers = yes ; then
36292                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36293 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36294    { (exit 1); exit 1; }; }
36295         else
36296                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36297 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36298                 WRAP_LIBS=""
36299         fi
36300 fi
36301
36302 if test $ol_enable_syslog != no ; then
36303         echo "$as_me:$LINENO: checking for openlog" >&5
36304 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36305 if test "${ac_cv_func_openlog+set}" = set; then
36306   echo $ECHO_N "(cached) $ECHO_C" >&6
36307 else
36308   cat >conftest.$ac_ext <<_ACEOF
36309 /* confdefs.h.  */
36310 _ACEOF
36311 cat confdefs.h >>conftest.$ac_ext
36312 cat >>conftest.$ac_ext <<_ACEOF
36313 /* end confdefs.h.  */
36314 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36316 #define openlog innocuous_openlog
36317
36318 /* System header to define __stub macros and hopefully few prototypes,
36319     which can conflict with char openlog (); below.
36320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36321     <limits.h> exists even on freestanding compilers.  */
36322
36323 #ifdef __STDC__
36324 # include <limits.h>
36325 #else
36326 # include <assert.h>
36327 #endif
36328
36329 #undef openlog
36330
36331 /* Override any gcc2 internal prototype to avoid an error.  */
36332 #ifdef __cplusplus
36333 extern "C"
36334 {
36335 #endif
36336 /* We use char because int might match the return type of a gcc2
36337    builtin and then its argument prototype would still apply.  */
36338 char openlog ();
36339 /* The GNU C library defines this for functions which it implements
36340     to always fail with ENOSYS.  Some functions are actually named
36341     something starting with __ and the normal name is an alias.  */
36342 #if defined (__stub_openlog) || defined (__stub___openlog)
36343 choke me
36344 #else
36345 char (*f) () = openlog;
36346 #endif
36347 #ifdef __cplusplus
36348 }
36349 #endif
36350
36351 int
36352 main ()
36353 {
36354 return f != openlog;
36355   ;
36356   return 0;
36357 }
36358 _ACEOF
36359 rm -f conftest.$ac_objext conftest$ac_exeext
36360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36361   (eval $ac_link) 2>conftest.er1
36362   ac_status=$?
36363   grep -v '^ *+' conftest.er1 >conftest.err
36364   rm -f conftest.er1
36365   cat conftest.err >&5
36366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36367   (exit $ac_status); } &&
36368          { ac_try='test -z "$ac_c_werror_flag"
36369                          || test ! -s conftest.err'
36370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36371   (eval $ac_try) 2>&5
36372   ac_status=$?
36373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36374   (exit $ac_status); }; } &&
36375          { ac_try='test -s conftest$ac_exeext'
36376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36377   (eval $ac_try) 2>&5
36378   ac_status=$?
36379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380   (exit $ac_status); }; }; then
36381   ac_cv_func_openlog=yes
36382 else
36383   echo "$as_me: failed program was:" >&5
36384 sed 's/^/| /' conftest.$ac_ext >&5
36385
36386 ac_cv_func_openlog=no
36387 fi
36388 rm -f conftest.err conftest.$ac_objext \
36389       conftest$ac_exeext conftest.$ac_ext
36390 fi
36391 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36392 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36393
36394         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36395                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36396 echo "$as_me: error: could not find syslog" >&2;}
36397    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36398         fi
36399         ol_enable_syslog=$ac_cv_func_openlog
36400 fi
36401
36402 ol_link_sql=no
36403 if test $ol_enable_sql != no ; then
36404
36405
36406 for ac_header in sql.h sqlext.h
36407 do
36408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36410   echo "$as_me:$LINENO: checking for $ac_header" >&5
36411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36413   echo $ECHO_N "(cached) $ECHO_C" >&6
36414 fi
36415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36417 else
36418   # Is the header compilable?
36419 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36421 cat >conftest.$ac_ext <<_ACEOF
36422 /* confdefs.h.  */
36423 _ACEOF
36424 cat confdefs.h >>conftest.$ac_ext
36425 cat >>conftest.$ac_ext <<_ACEOF
36426 /* end confdefs.h.  */
36427 $ac_includes_default
36428 #include <$ac_header>
36429 _ACEOF
36430 rm -f conftest.$ac_objext
36431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36432   (eval $ac_compile) 2>conftest.er1
36433   ac_status=$?
36434   grep -v '^ *+' conftest.er1 >conftest.err
36435   rm -f conftest.er1
36436   cat conftest.err >&5
36437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438   (exit $ac_status); } &&
36439          { ac_try='test -z "$ac_c_werror_flag"
36440                          || test ! -s conftest.err'
36441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36442   (eval $ac_try) 2>&5
36443   ac_status=$?
36444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36445   (exit $ac_status); }; } &&
36446          { ac_try='test -s conftest.$ac_objext'
36447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36448   (eval $ac_try) 2>&5
36449   ac_status=$?
36450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451   (exit $ac_status); }; }; then
36452   ac_header_compiler=yes
36453 else
36454   echo "$as_me: failed program was:" >&5
36455 sed 's/^/| /' conftest.$ac_ext >&5
36456
36457 ac_header_compiler=no
36458 fi
36459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36461 echo "${ECHO_T}$ac_header_compiler" >&6
36462
36463 # Is the header present?
36464 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36466 cat >conftest.$ac_ext <<_ACEOF
36467 /* confdefs.h.  */
36468 _ACEOF
36469 cat confdefs.h >>conftest.$ac_ext
36470 cat >>conftest.$ac_ext <<_ACEOF
36471 /* end confdefs.h.  */
36472 #include <$ac_header>
36473 _ACEOF
36474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36475   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36476   ac_status=$?
36477   grep -v '^ *+' conftest.er1 >conftest.err
36478   rm -f conftest.er1
36479   cat conftest.err >&5
36480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36481   (exit $ac_status); } >/dev/null; then
36482   if test -s conftest.err; then
36483     ac_cpp_err=$ac_c_preproc_warn_flag
36484     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36485   else
36486     ac_cpp_err=
36487   fi
36488 else
36489   ac_cpp_err=yes
36490 fi
36491 if test -z "$ac_cpp_err"; then
36492   ac_header_preproc=yes
36493 else
36494   echo "$as_me: failed program was:" >&5
36495 sed 's/^/| /' conftest.$ac_ext >&5
36496
36497   ac_header_preproc=no
36498 fi
36499 rm -f conftest.err conftest.$ac_ext
36500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36501 echo "${ECHO_T}$ac_header_preproc" >&6
36502
36503 # So?  What about this header?
36504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36505   yes:no: )
36506     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36510     ac_header_preproc=yes
36511     ;;
36512   no:yes:* )
36513     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36515     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36516 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36517     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36519     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36520 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36523     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36525     (
36526       cat <<\_ASBOX
36527 ## ------------------------------------------ ##
36528 ## Report this to the AC_PACKAGE_NAME lists.  ##
36529 ## ------------------------------------------ ##
36530 _ASBOX
36531     ) |
36532       sed "s/^/$as_me: WARNING:     /" >&2
36533     ;;
36534 esac
36535 echo "$as_me:$LINENO: checking for $ac_header" >&5
36536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36538   echo $ECHO_N "(cached) $ECHO_C" >&6
36539 else
36540   eval "$as_ac_Header=\$ac_header_preproc"
36541 fi
36542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36544
36545 fi
36546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36547   cat >>confdefs.h <<_ACEOF
36548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36549 _ACEOF
36550
36551 else
36552
36553                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36554 echo "$as_me: error: could not locate SQL headers" >&2;}
36555    { (exit 1); exit 1; }; }
36556
36557 fi
36558
36559 done
36560
36561
36562         sql_LIBS="$LIBS"
36563         LIBS="$LTHREAD_LIBS"
36564
36565         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36566 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36567 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36568   echo $ECHO_N "(cached) $ECHO_C" >&6
36569 else
36570   ac_check_lib_save_LIBS=$LIBS
36571 LIBS="-liodbc  $LIBS"
36572 cat >conftest.$ac_ext <<_ACEOF
36573 /* confdefs.h.  */
36574 _ACEOF
36575 cat confdefs.h >>conftest.$ac_ext
36576 cat >>conftest.$ac_ext <<_ACEOF
36577 /* end confdefs.h.  */
36578
36579 /* Override any gcc2 internal prototype to avoid an error.  */
36580 #ifdef __cplusplus
36581 extern "C"
36582 #endif
36583 /* We use char because int might match the return type of a gcc2
36584    builtin and then its argument prototype would still apply.  */
36585 char SQLDriverConnect ();
36586 int
36587 main ()
36588 {
36589 SQLDriverConnect ();
36590   ;
36591   return 0;
36592 }
36593 _ACEOF
36594 rm -f conftest.$ac_objext conftest$ac_exeext
36595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36596   (eval $ac_link) 2>conftest.er1
36597   ac_status=$?
36598   grep -v '^ *+' conftest.er1 >conftest.err
36599   rm -f conftest.er1
36600   cat conftest.err >&5
36601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36602   (exit $ac_status); } &&
36603          { ac_try='test -z "$ac_c_werror_flag"
36604                          || test ! -s conftest.err'
36605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36606   (eval $ac_try) 2>&5
36607   ac_status=$?
36608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36609   (exit $ac_status); }; } &&
36610          { ac_try='test -s conftest$ac_exeext'
36611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36612   (eval $ac_try) 2>&5
36613   ac_status=$?
36614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36615   (exit $ac_status); }; }; then
36616   ac_cv_lib_iodbc_SQLDriverConnect=yes
36617 else
36618   echo "$as_me: failed program was:" >&5
36619 sed 's/^/| /' conftest.$ac_ext >&5
36620
36621 ac_cv_lib_iodbc_SQLDriverConnect=no
36622 fi
36623 rm -f conftest.err conftest.$ac_objext \
36624       conftest$ac_exeext conftest.$ac_ext
36625 LIBS=$ac_check_lib_save_LIBS
36626 fi
36627 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36628 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36629 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36630   have_iodbc=yes
36631 else
36632   have_iodbc=no
36633 fi
36634
36635         if test $have_iodbc = yes ; then
36636                 ol_link_sql="-liodbc"
36637         else
36638                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36639 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36640 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36641   echo $ECHO_N "(cached) $ECHO_C" >&6
36642 else
36643   ac_check_lib_save_LIBS=$LIBS
36644 LIBS="-lodbc  $LIBS"
36645 cat >conftest.$ac_ext <<_ACEOF
36646 /* confdefs.h.  */
36647 _ACEOF
36648 cat confdefs.h >>conftest.$ac_ext
36649 cat >>conftest.$ac_ext <<_ACEOF
36650 /* end confdefs.h.  */
36651
36652 /* Override any gcc2 internal prototype to avoid an error.  */
36653 #ifdef __cplusplus
36654 extern "C"
36655 #endif
36656 /* We use char because int might match the return type of a gcc2
36657    builtin and then its argument prototype would still apply.  */
36658 char SQLDriverConnect ();
36659 int
36660 main ()
36661 {
36662 SQLDriverConnect ();
36663   ;
36664   return 0;
36665 }
36666 _ACEOF
36667 rm -f conftest.$ac_objext conftest$ac_exeext
36668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36669   (eval $ac_link) 2>conftest.er1
36670   ac_status=$?
36671   grep -v '^ *+' conftest.er1 >conftest.err
36672   rm -f conftest.er1
36673   cat conftest.err >&5
36674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36675   (exit $ac_status); } &&
36676          { ac_try='test -z "$ac_c_werror_flag"
36677                          || test ! -s conftest.err'
36678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36679   (eval $ac_try) 2>&5
36680   ac_status=$?
36681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36682   (exit $ac_status); }; } &&
36683          { ac_try='test -s conftest$ac_exeext'
36684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36685   (eval $ac_try) 2>&5
36686   ac_status=$?
36687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36688   (exit $ac_status); }; }; then
36689   ac_cv_lib_odbc_SQLDriverConnect=yes
36690 else
36691   echo "$as_me: failed program was:" >&5
36692 sed 's/^/| /' conftest.$ac_ext >&5
36693
36694 ac_cv_lib_odbc_SQLDriverConnect=no
36695 fi
36696 rm -f conftest.err conftest.$ac_objext \
36697       conftest$ac_exeext conftest.$ac_ext
36698 LIBS=$ac_check_lib_save_LIBS
36699 fi
36700 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36701 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36702 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36703   have_odbc=yes
36704 else
36705   have_odbc=no
36706 fi
36707
36708                 if test $have_odbc = yes ; then
36709                         ol_link_sql="-lodbc"
36710                 fi
36711         fi
36712
36713         LIBS="$sql_LIBS"
36714
36715         if test $ol_link_sql != no ; then
36716                 SLAPD_SQL_LIBS="$ol_link_sql"
36717
36718         elif test $ol_enable_sql != auto ; then
36719                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36720 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36721    { (exit 1); exit 1; }; }
36722         fi
36723 fi
36724
36725 ol_icu=no
36726
36727 for ac_header in unicode/utypes.h
36728 do
36729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36731   echo "$as_me:$LINENO: checking for $ac_header" >&5
36732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36734   echo $ECHO_N "(cached) $ECHO_C" >&6
36735 fi
36736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36738 else
36739   # Is the header compilable?
36740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36742 cat >conftest.$ac_ext <<_ACEOF
36743 /* confdefs.h.  */
36744 _ACEOF
36745 cat confdefs.h >>conftest.$ac_ext
36746 cat >>conftest.$ac_ext <<_ACEOF
36747 /* end confdefs.h.  */
36748 $ac_includes_default
36749 #include <$ac_header>
36750 _ACEOF
36751 rm -f conftest.$ac_objext
36752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36753   (eval $ac_compile) 2>conftest.er1
36754   ac_status=$?
36755   grep -v '^ *+' conftest.er1 >conftest.err
36756   rm -f conftest.er1
36757   cat conftest.err >&5
36758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759   (exit $ac_status); } &&
36760          { ac_try='test -z "$ac_c_werror_flag"
36761                          || test ! -s conftest.err'
36762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36763   (eval $ac_try) 2>&5
36764   ac_status=$?
36765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766   (exit $ac_status); }; } &&
36767          { ac_try='test -s conftest.$ac_objext'
36768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36769   (eval $ac_try) 2>&5
36770   ac_status=$?
36771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36772   (exit $ac_status); }; }; then
36773   ac_header_compiler=yes
36774 else
36775   echo "$as_me: failed program was:" >&5
36776 sed 's/^/| /' conftest.$ac_ext >&5
36777
36778 ac_header_compiler=no
36779 fi
36780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36782 echo "${ECHO_T}$ac_header_compiler" >&6
36783
36784 # Is the header present?
36785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36787 cat >conftest.$ac_ext <<_ACEOF
36788 /* confdefs.h.  */
36789 _ACEOF
36790 cat confdefs.h >>conftest.$ac_ext
36791 cat >>conftest.$ac_ext <<_ACEOF
36792 /* end confdefs.h.  */
36793 #include <$ac_header>
36794 _ACEOF
36795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36796   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36797   ac_status=$?
36798   grep -v '^ *+' conftest.er1 >conftest.err
36799   rm -f conftest.er1
36800   cat conftest.err >&5
36801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802   (exit $ac_status); } >/dev/null; then
36803   if test -s conftest.err; then
36804     ac_cpp_err=$ac_c_preproc_warn_flag
36805     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36806   else
36807     ac_cpp_err=
36808   fi
36809 else
36810   ac_cpp_err=yes
36811 fi
36812 if test -z "$ac_cpp_err"; then
36813   ac_header_preproc=yes
36814 else
36815   echo "$as_me: failed program was:" >&5
36816 sed 's/^/| /' conftest.$ac_ext >&5
36817
36818   ac_header_preproc=no
36819 fi
36820 rm -f conftest.err conftest.$ac_ext
36821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36822 echo "${ECHO_T}$ac_header_preproc" >&6
36823
36824 # So?  What about this header?
36825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36826   yes:no: )
36827     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36831     ac_header_preproc=yes
36832     ;;
36833   no:yes:* )
36834     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36836     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36837 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36838     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36840     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36841 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36844     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36846     (
36847       cat <<\_ASBOX
36848 ## ------------------------------------------ ##
36849 ## Report this to the AC_PACKAGE_NAME lists.  ##
36850 ## ------------------------------------------ ##
36851 _ASBOX
36852     ) |
36853       sed "s/^/$as_me: WARNING:     /" >&2
36854     ;;
36855 esac
36856 echo "$as_me:$LINENO: checking for $ac_header" >&5
36857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36859   echo $ECHO_N "(cached) $ECHO_C" >&6
36860 else
36861   eval "$as_ac_Header=\$ac_header_preproc"
36862 fi
36863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36865
36866 fi
36867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36868   cat >>confdefs.h <<_ACEOF
36869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36870 _ACEOF
36871
36872 fi
36873
36874 done
36875
36876 if test $ac_cv_header_unicode_utypes_h = yes ; then
36877                 OL_ICULIBS="-licuuc -licudata"
36878
36879         echo "$as_me:$LINENO: checking for ICU libraries" >&5
36880 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
36881 if test "${ol_cv_lib_icu+set}" = set; then
36882   echo $ECHO_N "(cached) $ECHO_C" >&6
36883 else
36884
36885                 ol_LIBS="$LIBS"
36886                 LIBS="$OL_ICULIBS $LIBS"
36887                 cat >conftest.$ac_ext <<_ACEOF
36888 /* confdefs.h.  */
36889 _ACEOF
36890 cat confdefs.h >>conftest.$ac_ext
36891 cat >>conftest.$ac_ext <<_ACEOF
36892 /* end confdefs.h.  */
36893
36894 #include <unicode/utypes.h>
36895
36896 int
36897 main ()
36898 {
36899
36900 (void) u_errorName(0);
36901
36902   ;
36903   return 0;
36904 }
36905 _ACEOF
36906 rm -f conftest.$ac_objext conftest$ac_exeext
36907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36908   (eval $ac_link) 2>conftest.er1
36909   ac_status=$?
36910   grep -v '^ *+' conftest.er1 >conftest.err
36911   rm -f conftest.er1
36912   cat conftest.err >&5
36913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36914   (exit $ac_status); } &&
36915          { ac_try='test -z "$ac_c_werror_flag"
36916                          || test ! -s conftest.err'
36917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36918   (eval $ac_try) 2>&5
36919   ac_status=$?
36920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36921   (exit $ac_status); }; } &&
36922          { ac_try='test -s conftest$ac_exeext'
36923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36924   (eval $ac_try) 2>&5
36925   ac_status=$?
36926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36927   (exit $ac_status); }; }; then
36928   ol_cv_lib_icu=yes
36929 else
36930   echo "$as_me: failed program was:" >&5
36931 sed 's/^/| /' conftest.$ac_ext >&5
36932
36933 ol_cv_lib_icu=no
36934 fi
36935 rm -f conftest.err conftest.$ac_objext \
36936       conftest$ac_exeext conftest.$ac_ext
36937                 LIBS="$ol_LIBS"
36938
36939 fi
36940 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
36941 echo "${ECHO_T}$ol_cv_lib_icu" >&6
36942
36943         if test $ol_cv_lib_icu != no ; then
36944                 ol_icu="$OL_ICULIBS"
36945
36946 cat >>confdefs.h <<\_ACEOF
36947 #define HAVE_ICU 1
36948 _ACEOF
36949
36950         fi
36951 fi
36952
36953 if test "$ol_icu" = no ; then
36954         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
36955 echo "$as_me: WARNING: ICU not available" >&2;}
36956 else
36957         ICU_LIBS="$ol_icu"
36958 fi
36959 WITH_SASL=no
36960 ol_link_sasl=no
36961 ol_link_spasswd=no
36962 if test $ol_with_cyrus_sasl != no ; then
36963
36964
36965 for ac_header in sasl/sasl.h sasl.h
36966 do
36967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36969   echo "$as_me:$LINENO: checking for $ac_header" >&5
36970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36972   echo $ECHO_N "(cached) $ECHO_C" >&6
36973 fi
36974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36976 else
36977   # Is the header compilable?
36978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36980 cat >conftest.$ac_ext <<_ACEOF
36981 /* confdefs.h.  */
36982 _ACEOF
36983 cat confdefs.h >>conftest.$ac_ext
36984 cat >>conftest.$ac_ext <<_ACEOF
36985 /* end confdefs.h.  */
36986 $ac_includes_default
36987 #include <$ac_header>
36988 _ACEOF
36989 rm -f conftest.$ac_objext
36990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36991   (eval $ac_compile) 2>conftest.er1
36992   ac_status=$?
36993   grep -v '^ *+' conftest.er1 >conftest.err
36994   rm -f conftest.er1
36995   cat conftest.err >&5
36996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36997   (exit $ac_status); } &&
36998          { ac_try='test -z "$ac_c_werror_flag"
36999                          || test ! -s conftest.err'
37000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37001   (eval $ac_try) 2>&5
37002   ac_status=$?
37003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37004   (exit $ac_status); }; } &&
37005          { ac_try='test -s conftest.$ac_objext'
37006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37007   (eval $ac_try) 2>&5
37008   ac_status=$?
37009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010   (exit $ac_status); }; }; then
37011   ac_header_compiler=yes
37012 else
37013   echo "$as_me: failed program was:" >&5
37014 sed 's/^/| /' conftest.$ac_ext >&5
37015
37016 ac_header_compiler=no
37017 fi
37018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37020 echo "${ECHO_T}$ac_header_compiler" >&6
37021
37022 # Is the header present?
37023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37025 cat >conftest.$ac_ext <<_ACEOF
37026 /* confdefs.h.  */
37027 _ACEOF
37028 cat confdefs.h >>conftest.$ac_ext
37029 cat >>conftest.$ac_ext <<_ACEOF
37030 /* end confdefs.h.  */
37031 #include <$ac_header>
37032 _ACEOF
37033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37034   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37035   ac_status=$?
37036   grep -v '^ *+' conftest.er1 >conftest.err
37037   rm -f conftest.er1
37038   cat conftest.err >&5
37039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37040   (exit $ac_status); } >/dev/null; then
37041   if test -s conftest.err; then
37042     ac_cpp_err=$ac_c_preproc_warn_flag
37043     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37044   else
37045     ac_cpp_err=
37046   fi
37047 else
37048   ac_cpp_err=yes
37049 fi
37050 if test -z "$ac_cpp_err"; then
37051   ac_header_preproc=yes
37052 else
37053   echo "$as_me: failed program was:" >&5
37054 sed 's/^/| /' conftest.$ac_ext >&5
37055
37056   ac_header_preproc=no
37057 fi
37058 rm -f conftest.err conftest.$ac_ext
37059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37060 echo "${ECHO_T}$ac_header_preproc" >&6
37061
37062 # So?  What about this header?
37063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37064   yes:no: )
37065     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37069     ac_header_preproc=yes
37070     ;;
37071   no:yes:* )
37072     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37074     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37075 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37076     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37078     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37079 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37082     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37084     (
37085       cat <<\_ASBOX
37086 ## ------------------------------------------ ##
37087 ## Report this to the AC_PACKAGE_NAME lists.  ##
37088 ## ------------------------------------------ ##
37089 _ASBOX
37090     ) |
37091       sed "s/^/$as_me: WARNING:     /" >&2
37092     ;;
37093 esac
37094 echo "$as_me:$LINENO: checking for $ac_header" >&5
37095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37097   echo $ECHO_N "(cached) $ECHO_C" >&6
37098 else
37099   eval "$as_ac_Header=\$ac_header_preproc"
37100 fi
37101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37103
37104 fi
37105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37106   cat >>confdefs.h <<_ACEOF
37107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37108 _ACEOF
37109
37110 fi
37111
37112 done
37113
37114
37115         if test $ac_cv_header_sasl_sasl_h = yes ||
37116            test $ac_cv_header_sasl_h = yes; then
37117                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37118 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37119 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37120   echo $ECHO_N "(cached) $ECHO_C" >&6
37121 else
37122   ac_check_lib_save_LIBS=$LIBS
37123 LIBS="-lsasl2  $LIBS"
37124 cat >conftest.$ac_ext <<_ACEOF
37125 /* confdefs.h.  */
37126 _ACEOF
37127 cat confdefs.h >>conftest.$ac_ext
37128 cat >>conftest.$ac_ext <<_ACEOF
37129 /* end confdefs.h.  */
37130
37131 /* Override any gcc2 internal prototype to avoid an error.  */
37132 #ifdef __cplusplus
37133 extern "C"
37134 #endif
37135 /* We use char because int might match the return type of a gcc2
37136    builtin and then its argument prototype would still apply.  */
37137 char sasl_client_init ();
37138 int
37139 main ()
37140 {
37141 sasl_client_init ();
37142   ;
37143   return 0;
37144 }
37145 _ACEOF
37146 rm -f conftest.$ac_objext conftest$ac_exeext
37147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37148   (eval $ac_link) 2>conftest.er1
37149   ac_status=$?
37150   grep -v '^ *+' conftest.er1 >conftest.err
37151   rm -f conftest.er1
37152   cat conftest.err >&5
37153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37154   (exit $ac_status); } &&
37155          { ac_try='test -z "$ac_c_werror_flag"
37156                          || test ! -s conftest.err'
37157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37158   (eval $ac_try) 2>&5
37159   ac_status=$?
37160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161   (exit $ac_status); }; } &&
37162          { ac_try='test -s conftest$ac_exeext'
37163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37164   (eval $ac_try) 2>&5
37165   ac_status=$?
37166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37167   (exit $ac_status); }; }; then
37168   ac_cv_lib_sasl2_sasl_client_init=yes
37169 else
37170   echo "$as_me: failed program was:" >&5
37171 sed 's/^/| /' conftest.$ac_ext >&5
37172
37173 ac_cv_lib_sasl2_sasl_client_init=no
37174 fi
37175 rm -f conftest.err conftest.$ac_objext \
37176       conftest$ac_exeext conftest.$ac_ext
37177 LIBS=$ac_check_lib_save_LIBS
37178 fi
37179 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
37180 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
37181 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
37182   ol_link_sasl="-lsasl2"
37183 else
37184   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
37185 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
37186 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
37187   echo $ECHO_N "(cached) $ECHO_C" >&6
37188 else
37189   ac_check_lib_save_LIBS=$LIBS
37190 LIBS="-lsasl  $LIBS"
37191 cat >conftest.$ac_ext <<_ACEOF
37192 /* confdefs.h.  */
37193 _ACEOF
37194 cat confdefs.h >>conftest.$ac_ext
37195 cat >>conftest.$ac_ext <<_ACEOF
37196 /* end confdefs.h.  */
37197
37198 /* Override any gcc2 internal prototype to avoid an error.  */
37199 #ifdef __cplusplus
37200 extern "C"
37201 #endif
37202 /* We use char because int might match the return type of a gcc2
37203    builtin and then its argument prototype would still apply.  */
37204 char sasl_client_init ();
37205 int
37206 main ()
37207 {
37208 sasl_client_init ();
37209   ;
37210   return 0;
37211 }
37212 _ACEOF
37213 rm -f conftest.$ac_objext conftest$ac_exeext
37214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37215   (eval $ac_link) 2>conftest.er1
37216   ac_status=$?
37217   grep -v '^ *+' conftest.er1 >conftest.err
37218   rm -f conftest.er1
37219   cat conftest.err >&5
37220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37221   (exit $ac_status); } &&
37222          { ac_try='test -z "$ac_c_werror_flag"
37223                          || test ! -s conftest.err'
37224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37225   (eval $ac_try) 2>&5
37226   ac_status=$?
37227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37228   (exit $ac_status); }; } &&
37229          { ac_try='test -s conftest$ac_exeext'
37230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37231   (eval $ac_try) 2>&5
37232   ac_status=$?
37233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37234   (exit $ac_status); }; }; then
37235   ac_cv_lib_sasl_sasl_client_init=yes
37236 else
37237   echo "$as_me: failed program was:" >&5
37238 sed 's/^/| /' conftest.$ac_ext >&5
37239
37240 ac_cv_lib_sasl_sasl_client_init=no
37241 fi
37242 rm -f conftest.err conftest.$ac_objext \
37243       conftest$ac_exeext conftest.$ac_ext
37244 LIBS=$ac_check_lib_save_LIBS
37245 fi
37246 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37247 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37248 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37249   ol_link_sasl="-lsasl"
37250 fi
37251
37252 fi
37253
37254         fi
37255
37256         if test $ol_link_sasl = no ; then
37257                 if test $ol_with_cyrus_sasl != auto ; then
37258                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37259 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37260    { (exit 1); exit 1; }; }
37261                 else
37262                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37263 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37264                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37265 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37266                         if test $ol_link_tls = no ; then
37267                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37268 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37269                         fi
37270                 fi
37271         else
37272                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37273 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37274 if test "${ol_cv_sasl_compat+set}" = set; then
37275   echo $ECHO_N "(cached) $ECHO_C" >&6
37276 else
37277
37278         cat >conftest.$ac_ext <<_ACEOF
37279 /* confdefs.h.  */
37280 _ACEOF
37281 cat confdefs.h >>conftest.$ac_ext
37282 cat >>conftest.$ac_ext <<_ACEOF
37283 /* end confdefs.h.  */
37284
37285 #ifdef HAVE_SASL_SASL_H
37286 #include <sasl/sasl.h>
37287 #else
37288 #include <sasl.h>
37289 #endif
37290
37291 /* Require 2.1.15+ */
37292 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
37293         char *__sasl_compat = "2.2+ or better okay (we guess)";
37294 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
37295         && SASL_VERSION_STEP >=15
37296         char *__sasl_compat = "2.1.15+ or better okay";
37297 #endif
37298
37299 _ACEOF
37300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37301   $EGREP "__sasl_compat" >/dev/null 2>&1; then
37302   ol_cv_sasl_compat=yes
37303 else
37304   ol_cv_sasl_compat=no
37305 fi
37306 rm -f conftest*
37307
37308 fi
37309 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37310 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37311
37312                 if test $ol_cv_sasl_compat = no ; then
37313                         ol_link_sasl=no
37314                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37315 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37316    { (exit 1); exit 1; }; }
37317                 fi
37318
37319
37320 cat >>confdefs.h <<\_ACEOF
37321 #define HAVE_CYRUS_SASL 1
37322 _ACEOF
37323
37324                 SASL_LIBS="$ol_link_sasl"
37325                 if test $ol_enable_spasswd != no ; then
37326                         ol_link_spasswd=yes
37327                 fi
37328
37329                 ac_save_LIBS="$LIBS"
37330                 LIBS="$LIBS $ol_link_sasl"
37331                 echo "$as_me:$LINENO: checking for sasl_version" >&5
37332 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37333 if test "${ac_cv_func_sasl_version+set}" = set; then
37334   echo $ECHO_N "(cached) $ECHO_C" >&6
37335 else
37336   cat >conftest.$ac_ext <<_ACEOF
37337 /* confdefs.h.  */
37338 _ACEOF
37339 cat confdefs.h >>conftest.$ac_ext
37340 cat >>conftest.$ac_ext <<_ACEOF
37341 /* end confdefs.h.  */
37342 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37344 #define sasl_version innocuous_sasl_version
37345
37346 /* System header to define __stub macros and hopefully few prototypes,
37347     which can conflict with char sasl_version (); below.
37348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37349     <limits.h> exists even on freestanding compilers.  */
37350
37351 #ifdef __STDC__
37352 # include <limits.h>
37353 #else
37354 # include <assert.h>
37355 #endif
37356
37357 #undef sasl_version
37358
37359 /* Override any gcc2 internal prototype to avoid an error.  */
37360 #ifdef __cplusplus
37361 extern "C"
37362 {
37363 #endif
37364 /* We use char because int might match the return type of a gcc2
37365    builtin and then its argument prototype would still apply.  */
37366 char sasl_version ();
37367 /* The GNU C library defines this for functions which it implements
37368     to always fail with ENOSYS.  Some functions are actually named
37369     something starting with __ and the normal name is an alias.  */
37370 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37371 choke me
37372 #else
37373 char (*f) () = sasl_version;
37374 #endif
37375 #ifdef __cplusplus
37376 }
37377 #endif
37378
37379 int
37380 main ()
37381 {
37382 return f != sasl_version;
37383   ;
37384   return 0;
37385 }
37386 _ACEOF
37387 rm -f conftest.$ac_objext conftest$ac_exeext
37388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37389   (eval $ac_link) 2>conftest.er1
37390   ac_status=$?
37391   grep -v '^ *+' conftest.er1 >conftest.err
37392   rm -f conftest.er1
37393   cat conftest.err >&5
37394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37395   (exit $ac_status); } &&
37396          { ac_try='test -z "$ac_c_werror_flag"
37397                          || test ! -s conftest.err'
37398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37399   (eval $ac_try) 2>&5
37400   ac_status=$?
37401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37402   (exit $ac_status); }; } &&
37403          { ac_try='test -s conftest$ac_exeext'
37404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37405   (eval $ac_try) 2>&5
37406   ac_status=$?
37407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37408   (exit $ac_status); }; }; then
37409   ac_cv_func_sasl_version=yes
37410 else
37411   echo "$as_me: failed program was:" >&5
37412 sed 's/^/| /' conftest.$ac_ext >&5
37413
37414 ac_cv_func_sasl_version=no
37415 fi
37416 rm -f conftest.err conftest.$ac_objext \
37417       conftest$ac_exeext conftest.$ac_ext
37418 fi
37419 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37420 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37421 if test $ac_cv_func_sasl_version = yes; then
37422
37423 cat >>confdefs.h <<\_ACEOF
37424 #define HAVE_SASL_VERSION 1
37425 _ACEOF
37426
37427 fi
37428
37429                 LIBS="$ac_save_LIBS"
37430
37431                 WITH_SASL=yes
37432         fi
37433
37434 else
37435         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37436 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37437         if test $ol_link_tls = no ; then
37438                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37439 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37440         fi
37441 fi
37442
37443 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37444         dev=no
37445         if test -r /dev/urandom ; then
37446                 dev="/dev/urandom";
37447         elif test -r /idev/urandom ; then
37448                 dev="/idev/urandom";
37449         elif test -r /dev/srandom ; then
37450                 dev="/dev/srandom";
37451         elif test -r /dev/random ; then
37452                 dev="/dev/random";
37453         elif test -r /idev/random ; then
37454                 dev="/idev/random";
37455         fi
37456
37457         if test $dev != no ; then
37458
37459 cat >>confdefs.h <<_ACEOF
37460 #define URANDOM_DEVICE "$dev"
37461 _ACEOF
37462
37463         fi
37464 fi
37465
37466 ol_link_fetch=no
37467 if test $ol_with_fetch != no ; then
37468         ol_LIBS=$LIBS
37469 LIBS="-lfetch -lcom_err $LIBS"
37470 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37471 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37472 if test "${ol_cv_lib_fetch+set}" = set; then
37473   echo $ECHO_N "(cached) $ECHO_C" >&6
37474 else
37475
37476         cat >conftest.$ac_ext <<_ACEOF
37477 /* confdefs.h.  */
37478 _ACEOF
37479 cat confdefs.h >>conftest.$ac_ext
37480 cat >>conftest.$ac_ext <<_ACEOF
37481 /* end confdefs.h.  */
37482
37483 #include <sys/param.h>
37484 #include <stdio.h>
37485 #include <fetch.h>
37486 int
37487 main ()
37488 {
37489 struct url *u = fetchParseURL("file:///");
37490   ;
37491   return 0;
37492 }
37493 _ACEOF
37494 rm -f conftest.$ac_objext conftest$ac_exeext
37495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37496   (eval $ac_link) 2>conftest.er1
37497   ac_status=$?
37498   grep -v '^ *+' conftest.er1 >conftest.err
37499   rm -f conftest.er1
37500   cat conftest.err >&5
37501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37502   (exit $ac_status); } &&
37503          { ac_try='test -z "$ac_c_werror_flag"
37504                          || test ! -s conftest.err'
37505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37506   (eval $ac_try) 2>&5
37507   ac_status=$?
37508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37509   (exit $ac_status); }; } &&
37510          { ac_try='test -s conftest$ac_exeext'
37511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37512   (eval $ac_try) 2>&5
37513   ac_status=$?
37514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37515   (exit $ac_status); }; }; then
37516   ol_cv_lib_fetch=yes
37517 else
37518   echo "$as_me: failed program was:" >&5
37519 sed 's/^/| /' conftest.$ac_ext >&5
37520
37521 ol_cv_lib_fetch=no
37522 fi
37523 rm -f conftest.err conftest.$ac_objext \
37524       conftest$ac_exeext conftest.$ac_ext
37525 fi
37526 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37527 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37528 LIBS=$ol_LIBS
37529 if test $ol_cv_lib_fetch != no ; then
37530         ol_link_fetch="-lfetch -lcom_err"
37531
37532 cat >>confdefs.h <<\_ACEOF
37533 #define HAVE_FETCH 1
37534 _ACEOF
37535
37536 fi
37537
37538
37539         if test $ol_cv_lib_fetch != no ; then
37540                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37541                 ol_link_fetch=freebsd
37542
37543         elif test $ol_with_fetch != auto ; then
37544                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37545 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37546    { (exit 1); exit 1; }; }
37547         fi
37548 fi
37549
37550 if test $ol_enable_crypt != no ; then
37551         save_LIBS="$LIBS"
37552         LIBS="$TLS_LIBS $LIBS"
37553
37554         echo "$as_me:$LINENO: checking for crypt" >&5
37555 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37556 if test "${ac_cv_func_crypt+set}" = set; then
37557   echo $ECHO_N "(cached) $ECHO_C" >&6
37558 else
37559   cat >conftest.$ac_ext <<_ACEOF
37560 /* confdefs.h.  */
37561 _ACEOF
37562 cat confdefs.h >>conftest.$ac_ext
37563 cat >>conftest.$ac_ext <<_ACEOF
37564 /* end confdefs.h.  */
37565 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37567 #define crypt innocuous_crypt
37568
37569 /* System header to define __stub macros and hopefully few prototypes,
37570     which can conflict with char crypt (); below.
37571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37572     <limits.h> exists even on freestanding compilers.  */
37573
37574 #ifdef __STDC__
37575 # include <limits.h>
37576 #else
37577 # include <assert.h>
37578 #endif
37579
37580 #undef crypt
37581
37582 /* Override any gcc2 internal prototype to avoid an error.  */
37583 #ifdef __cplusplus
37584 extern "C"
37585 {
37586 #endif
37587 /* We use char because int might match the return type of a gcc2
37588    builtin and then its argument prototype would still apply.  */
37589 char crypt ();
37590 /* The GNU C library defines this for functions which it implements
37591     to always fail with ENOSYS.  Some functions are actually named
37592     something starting with __ and the normal name is an alias.  */
37593 #if defined (__stub_crypt) || defined (__stub___crypt)
37594 choke me
37595 #else
37596 char (*f) () = crypt;
37597 #endif
37598 #ifdef __cplusplus
37599 }
37600 #endif
37601
37602 int
37603 main ()
37604 {
37605 return f != crypt;
37606   ;
37607   return 0;
37608 }
37609 _ACEOF
37610 rm -f conftest.$ac_objext conftest$ac_exeext
37611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37612   (eval $ac_link) 2>conftest.er1
37613   ac_status=$?
37614   grep -v '^ *+' conftest.er1 >conftest.err
37615   rm -f conftest.er1
37616   cat conftest.err >&5
37617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618   (exit $ac_status); } &&
37619          { ac_try='test -z "$ac_c_werror_flag"
37620                          || test ! -s conftest.err'
37621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37622   (eval $ac_try) 2>&5
37623   ac_status=$?
37624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37625   (exit $ac_status); }; } &&
37626          { ac_try='test -s conftest$ac_exeext'
37627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37628   (eval $ac_try) 2>&5
37629   ac_status=$?
37630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37631   (exit $ac_status); }; }; then
37632   ac_cv_func_crypt=yes
37633 else
37634   echo "$as_me: failed program was:" >&5
37635 sed 's/^/| /' conftest.$ac_ext >&5
37636
37637 ac_cv_func_crypt=no
37638 fi
37639 rm -f conftest.err conftest.$ac_objext \
37640       conftest$ac_exeext conftest.$ac_ext
37641 fi
37642 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37643 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37644 if test $ac_cv_func_crypt = yes; then
37645   have_crypt=yes
37646 else
37647
37648                 LIBS="$save_LIBS"
37649                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37650 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37651 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37652   echo $ECHO_N "(cached) $ECHO_C" >&6
37653 else
37654   ac_check_lib_save_LIBS=$LIBS
37655 LIBS="-lcrypt  $LIBS"
37656 cat >conftest.$ac_ext <<_ACEOF
37657 /* confdefs.h.  */
37658 _ACEOF
37659 cat confdefs.h >>conftest.$ac_ext
37660 cat >>conftest.$ac_ext <<_ACEOF
37661 /* end confdefs.h.  */
37662
37663 /* Override any gcc2 internal prototype to avoid an error.  */
37664 #ifdef __cplusplus
37665 extern "C"
37666 #endif
37667 /* We use char because int might match the return type of a gcc2
37668    builtin and then its argument prototype would still apply.  */
37669 char crypt ();
37670 int
37671 main ()
37672 {
37673 crypt ();
37674   ;
37675   return 0;
37676 }
37677 _ACEOF
37678 rm -f conftest.$ac_objext conftest$ac_exeext
37679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37680   (eval $ac_link) 2>conftest.er1
37681   ac_status=$?
37682   grep -v '^ *+' conftest.er1 >conftest.err
37683   rm -f conftest.er1
37684   cat conftest.err >&5
37685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37686   (exit $ac_status); } &&
37687          { ac_try='test -z "$ac_c_werror_flag"
37688                          || test ! -s conftest.err'
37689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37690   (eval $ac_try) 2>&5
37691   ac_status=$?
37692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37693   (exit $ac_status); }; } &&
37694          { ac_try='test -s conftest$ac_exeext'
37695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37696   (eval $ac_try) 2>&5
37697   ac_status=$?
37698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37699   (exit $ac_status); }; }; then
37700   ac_cv_lib_crypt_crypt=yes
37701 else
37702   echo "$as_me: failed program was:" >&5
37703 sed 's/^/| /' conftest.$ac_ext >&5
37704
37705 ac_cv_lib_crypt_crypt=no
37706 fi
37707 rm -f conftest.err conftest.$ac_objext \
37708       conftest$ac_exeext conftest.$ac_ext
37709 LIBS=$ac_check_lib_save_LIBS
37710 fi
37711 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37712 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37713 if test $ac_cv_lib_crypt_crypt = yes; then
37714   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37715                         have_crypt=yes
37716 else
37717   have_crypt=no
37718 fi
37719
37720 fi
37721
37722
37723         LIBS="$save_LIBS"
37724
37725         if test $have_crypt = yes ; then
37726
37727 cat >>confdefs.h <<\_ACEOF
37728 #define HAVE_CRYPT 1
37729 _ACEOF
37730
37731         else
37732                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37733 echo "$as_me: WARNING: could not find crypt" >&2;}
37734                 if test $ol_enable_crypt = yes ; then
37735                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37736 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37737    { (exit 1); exit 1; }; }
37738                 fi
37739
37740                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37741 echo "$as_me: WARNING: disabling crypt support" >&2;}
37742                 ol_enable_crypt=no
37743         fi
37744 fi
37745
37746 if test $ol_enable_proctitle != no ; then
37747         echo "$as_me:$LINENO: checking for setproctitle" >&5
37748 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37749 if test "${ac_cv_func_setproctitle+set}" = set; then
37750   echo $ECHO_N "(cached) $ECHO_C" >&6
37751 else
37752   cat >conftest.$ac_ext <<_ACEOF
37753 /* confdefs.h.  */
37754 _ACEOF
37755 cat confdefs.h >>conftest.$ac_ext
37756 cat >>conftest.$ac_ext <<_ACEOF
37757 /* end confdefs.h.  */
37758 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37760 #define setproctitle innocuous_setproctitle
37761
37762 /* System header to define __stub macros and hopefully few prototypes,
37763     which can conflict with char setproctitle (); below.
37764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37765     <limits.h> exists even on freestanding compilers.  */
37766
37767 #ifdef __STDC__
37768 # include <limits.h>
37769 #else
37770 # include <assert.h>
37771 #endif
37772
37773 #undef setproctitle
37774
37775 /* Override any gcc2 internal prototype to avoid an error.  */
37776 #ifdef __cplusplus
37777 extern "C"
37778 {
37779 #endif
37780 /* We use char because int might match the return type of a gcc2
37781    builtin and then its argument prototype would still apply.  */
37782 char setproctitle ();
37783 /* The GNU C library defines this for functions which it implements
37784     to always fail with ENOSYS.  Some functions are actually named
37785     something starting with __ and the normal name is an alias.  */
37786 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37787 choke me
37788 #else
37789 char (*f) () = setproctitle;
37790 #endif
37791 #ifdef __cplusplus
37792 }
37793 #endif
37794
37795 int
37796 main ()
37797 {
37798 return f != setproctitle;
37799   ;
37800   return 0;
37801 }
37802 _ACEOF
37803 rm -f conftest.$ac_objext conftest$ac_exeext
37804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37805   (eval $ac_link) 2>conftest.er1
37806   ac_status=$?
37807   grep -v '^ *+' conftest.er1 >conftest.err
37808   rm -f conftest.er1
37809   cat conftest.err >&5
37810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37811   (exit $ac_status); } &&
37812          { ac_try='test -z "$ac_c_werror_flag"
37813                          || test ! -s conftest.err'
37814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37815   (eval $ac_try) 2>&5
37816   ac_status=$?
37817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37818   (exit $ac_status); }; } &&
37819          { ac_try='test -s conftest$ac_exeext'
37820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37821   (eval $ac_try) 2>&5
37822   ac_status=$?
37823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37824   (exit $ac_status); }; }; then
37825   ac_cv_func_setproctitle=yes
37826 else
37827   echo "$as_me: failed program was:" >&5
37828 sed 's/^/| /' conftest.$ac_ext >&5
37829
37830 ac_cv_func_setproctitle=no
37831 fi
37832 rm -f conftest.err conftest.$ac_objext \
37833       conftest$ac_exeext conftest.$ac_ext
37834 fi
37835 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37836 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37837 if test $ac_cv_func_setproctitle = yes; then
37838   have_setproctitle=yes
37839 else
37840
37841                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37842 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37843 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37844   echo $ECHO_N "(cached) $ECHO_C" >&6
37845 else
37846   ac_check_lib_save_LIBS=$LIBS
37847 LIBS="-lutil  $LIBS"
37848 cat >conftest.$ac_ext <<_ACEOF
37849 /* confdefs.h.  */
37850 _ACEOF
37851 cat confdefs.h >>conftest.$ac_ext
37852 cat >>conftest.$ac_ext <<_ACEOF
37853 /* end confdefs.h.  */
37854
37855 /* Override any gcc2 internal prototype to avoid an error.  */
37856 #ifdef __cplusplus
37857 extern "C"
37858 #endif
37859 /* We use char because int might match the return type of a gcc2
37860    builtin and then its argument prototype would still apply.  */
37861 char setproctitle ();
37862 int
37863 main ()
37864 {
37865 setproctitle ();
37866   ;
37867   return 0;
37868 }
37869 _ACEOF
37870 rm -f conftest.$ac_objext conftest$ac_exeext
37871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37872   (eval $ac_link) 2>conftest.er1
37873   ac_status=$?
37874   grep -v '^ *+' conftest.er1 >conftest.err
37875   rm -f conftest.er1
37876   cat conftest.err >&5
37877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37878   (exit $ac_status); } &&
37879          { ac_try='test -z "$ac_c_werror_flag"
37880                          || test ! -s conftest.err'
37881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37882   (eval $ac_try) 2>&5
37883   ac_status=$?
37884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37885   (exit $ac_status); }; } &&
37886          { ac_try='test -s conftest$ac_exeext'
37887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37888   (eval $ac_try) 2>&5
37889   ac_status=$?
37890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37891   (exit $ac_status); }; }; then
37892   ac_cv_lib_util_setproctitle=yes
37893 else
37894   echo "$as_me: failed program was:" >&5
37895 sed 's/^/| /' conftest.$ac_ext >&5
37896
37897 ac_cv_lib_util_setproctitle=no
37898 fi
37899 rm -f conftest.err conftest.$ac_objext \
37900       conftest$ac_exeext conftest.$ac_ext
37901 LIBS=$ac_check_lib_save_LIBS
37902 fi
37903 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37904 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37905 if test $ac_cv_lib_util_setproctitle = yes; then
37906   have_setproctitle=yes
37907                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
37908 else
37909   have_setproctitle=no
37910                         case $LIBOBJS in
37911     "setproctitle.$ac_objext"   | \
37912   *" setproctitle.$ac_objext"   | \
37913     "setproctitle.$ac_objext "* | \
37914   *" setproctitle.$ac_objext "* ) ;;
37915   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37916 esac
37917
37918                         LIBSRCS="$LIBSRCS setproctitle.c"
37919 fi
37920
37921 fi
37922
37923
37924         if test $have_setproctitle = yes ; then
37925
37926 cat >>confdefs.h <<\_ACEOF
37927 #define HAVE_SETPROCTITLE 1
37928 _ACEOF
37929
37930         fi
37931 fi
37932
37933 if test $ol_enable_slp != no ; then
37934
37935 for ac_header in slp.h
37936 do
37937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37939   echo "$as_me:$LINENO: checking for $ac_header" >&5
37940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37942   echo $ECHO_N "(cached) $ECHO_C" >&6
37943 fi
37944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37946 else
37947   # Is the header compilable?
37948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37950 cat >conftest.$ac_ext <<_ACEOF
37951 /* confdefs.h.  */
37952 _ACEOF
37953 cat confdefs.h >>conftest.$ac_ext
37954 cat >>conftest.$ac_ext <<_ACEOF
37955 /* end confdefs.h.  */
37956 $ac_includes_default
37957 #include <$ac_header>
37958 _ACEOF
37959 rm -f conftest.$ac_objext
37960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37961   (eval $ac_compile) 2>conftest.er1
37962   ac_status=$?
37963   grep -v '^ *+' conftest.er1 >conftest.err
37964   rm -f conftest.er1
37965   cat conftest.err >&5
37966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967   (exit $ac_status); } &&
37968          { ac_try='test -z "$ac_c_werror_flag"
37969                          || test ! -s conftest.err'
37970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37971   (eval $ac_try) 2>&5
37972   ac_status=$?
37973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37974   (exit $ac_status); }; } &&
37975          { ac_try='test -s conftest.$ac_objext'
37976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37977   (eval $ac_try) 2>&5
37978   ac_status=$?
37979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37980   (exit $ac_status); }; }; then
37981   ac_header_compiler=yes
37982 else
37983   echo "$as_me: failed program was:" >&5
37984 sed 's/^/| /' conftest.$ac_ext >&5
37985
37986 ac_header_compiler=no
37987 fi
37988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37990 echo "${ECHO_T}$ac_header_compiler" >&6
37991
37992 # Is the header present?
37993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37995 cat >conftest.$ac_ext <<_ACEOF
37996 /* confdefs.h.  */
37997 _ACEOF
37998 cat confdefs.h >>conftest.$ac_ext
37999 cat >>conftest.$ac_ext <<_ACEOF
38000 /* end confdefs.h.  */
38001 #include <$ac_header>
38002 _ACEOF
38003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38005   ac_status=$?
38006   grep -v '^ *+' conftest.er1 >conftest.err
38007   rm -f conftest.er1
38008   cat conftest.err >&5
38009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38010   (exit $ac_status); } >/dev/null; then
38011   if test -s conftest.err; then
38012     ac_cpp_err=$ac_c_preproc_warn_flag
38013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38014   else
38015     ac_cpp_err=
38016   fi
38017 else
38018   ac_cpp_err=yes
38019 fi
38020 if test -z "$ac_cpp_err"; then
38021   ac_header_preproc=yes
38022 else
38023   echo "$as_me: failed program was:" >&5
38024 sed 's/^/| /' conftest.$ac_ext >&5
38025
38026   ac_header_preproc=no
38027 fi
38028 rm -f conftest.err conftest.$ac_ext
38029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38030 echo "${ECHO_T}$ac_header_preproc" >&6
38031
38032 # So?  What about this header?
38033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38034   yes:no: )
38035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38039     ac_header_preproc=yes
38040     ;;
38041   no:yes:* )
38042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38054     (
38055       cat <<\_ASBOX
38056 ## ------------------------------------------ ##
38057 ## Report this to the AC_PACKAGE_NAME lists.  ##
38058 ## ------------------------------------------ ##
38059 _ASBOX
38060     ) |
38061       sed "s/^/$as_me: WARNING:     /" >&2
38062     ;;
38063 esac
38064 echo "$as_me:$LINENO: checking for $ac_header" >&5
38065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38067   echo $ECHO_N "(cached) $ECHO_C" >&6
38068 else
38069   eval "$as_ac_Header=\$ac_header_preproc"
38070 fi
38071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38073
38074 fi
38075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38076   cat >>confdefs.h <<_ACEOF
38077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38078 _ACEOF
38079
38080 fi
38081
38082 done
38083
38084
38085         if test $ac_cv_header_slp_h = yes ; then
38086                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38087 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38088 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38089   echo $ECHO_N "(cached) $ECHO_C" >&6
38090 else
38091   ac_check_lib_save_LIBS=$LIBS
38092 LIBS="-lslp  $LIBS"
38093 cat >conftest.$ac_ext <<_ACEOF
38094 /* confdefs.h.  */
38095 _ACEOF
38096 cat confdefs.h >>conftest.$ac_ext
38097 cat >>conftest.$ac_ext <<_ACEOF
38098 /* end confdefs.h.  */
38099
38100 /* Override any gcc2 internal prototype to avoid an error.  */
38101 #ifdef __cplusplus
38102 extern "C"
38103 #endif
38104 /* We use char because int might match the return type of a gcc2
38105    builtin and then its argument prototype would still apply.  */
38106 char SLPOpen ();
38107 int
38108 main ()
38109 {
38110 SLPOpen ();
38111   ;
38112   return 0;
38113 }
38114 _ACEOF
38115 rm -f conftest.$ac_objext conftest$ac_exeext
38116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38117   (eval $ac_link) 2>conftest.er1
38118   ac_status=$?
38119   grep -v '^ *+' conftest.er1 >conftest.err
38120   rm -f conftest.er1
38121   cat conftest.err >&5
38122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38123   (exit $ac_status); } &&
38124          { ac_try='test -z "$ac_c_werror_flag"
38125                          || test ! -s conftest.err'
38126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38127   (eval $ac_try) 2>&5
38128   ac_status=$?
38129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38130   (exit $ac_status); }; } &&
38131          { ac_try='test -s conftest$ac_exeext'
38132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38133   (eval $ac_try) 2>&5
38134   ac_status=$?
38135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38136   (exit $ac_status); }; }; then
38137   ac_cv_lib_slp_SLPOpen=yes
38138 else
38139   echo "$as_me: failed program was:" >&5
38140 sed 's/^/| /' conftest.$ac_ext >&5
38141
38142 ac_cv_lib_slp_SLPOpen=no
38143 fi
38144 rm -f conftest.err conftest.$ac_objext \
38145       conftest$ac_exeext conftest.$ac_ext
38146 LIBS=$ac_check_lib_save_LIBS
38147 fi
38148 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
38149 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
38150 if test $ac_cv_lib_slp_SLPOpen = yes; then
38151   have_slp=yes
38152 else
38153   have_slp=no
38154 fi
38155
38156                 if test $have_slp = yes ; then
38157
38158 cat >>confdefs.h <<\_ACEOF
38159 #define HAVE_SLP 1
38160 _ACEOF
38161
38162                         SLAPD_SLP_LIBS=-lslp
38163                 fi
38164
38165         elif test $ol_enable_slp = yes ; then
38166                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
38167 echo "$as_me: error: SLP not found" >&2;}
38168    { (exit 1); exit 1; }; }
38169         fi
38170 fi
38171
38172 if test "$ol_with_multiple_precision" != "no" ; then
38173         ol_have_bignum=no
38174         ol_have_gmp=no
38175
38176
38177
38178 for ac_header in openssl/bn.h bn.h
38179 do
38180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38182   echo "$as_me:$LINENO: checking for $ac_header" >&5
38183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38185   echo $ECHO_N "(cached) $ECHO_C" >&6
38186 fi
38187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38189 else
38190   # Is the header compilable?
38191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38193 cat >conftest.$ac_ext <<_ACEOF
38194 /* confdefs.h.  */
38195 _ACEOF
38196 cat confdefs.h >>conftest.$ac_ext
38197 cat >>conftest.$ac_ext <<_ACEOF
38198 /* end confdefs.h.  */
38199 $ac_includes_default
38200 #include <$ac_header>
38201 _ACEOF
38202 rm -f conftest.$ac_objext
38203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38204   (eval $ac_compile) 2>conftest.er1
38205   ac_status=$?
38206   grep -v '^ *+' conftest.er1 >conftest.err
38207   rm -f conftest.er1
38208   cat conftest.err >&5
38209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38210   (exit $ac_status); } &&
38211          { ac_try='test -z "$ac_c_werror_flag"
38212                          || test ! -s conftest.err'
38213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38214   (eval $ac_try) 2>&5
38215   ac_status=$?
38216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38217   (exit $ac_status); }; } &&
38218          { ac_try='test -s conftest.$ac_objext'
38219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38220   (eval $ac_try) 2>&5
38221   ac_status=$?
38222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38223   (exit $ac_status); }; }; then
38224   ac_header_compiler=yes
38225 else
38226   echo "$as_me: failed program was:" >&5
38227 sed 's/^/| /' conftest.$ac_ext >&5
38228
38229 ac_header_compiler=no
38230 fi
38231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38233 echo "${ECHO_T}$ac_header_compiler" >&6
38234
38235 # Is the header present?
38236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38238 cat >conftest.$ac_ext <<_ACEOF
38239 /* confdefs.h.  */
38240 _ACEOF
38241 cat confdefs.h >>conftest.$ac_ext
38242 cat >>conftest.$ac_ext <<_ACEOF
38243 /* end confdefs.h.  */
38244 #include <$ac_header>
38245 _ACEOF
38246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38247   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38248   ac_status=$?
38249   grep -v '^ *+' conftest.er1 >conftest.err
38250   rm -f conftest.er1
38251   cat conftest.err >&5
38252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38253   (exit $ac_status); } >/dev/null; then
38254   if test -s conftest.err; then
38255     ac_cpp_err=$ac_c_preproc_warn_flag
38256     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38257   else
38258     ac_cpp_err=
38259   fi
38260 else
38261   ac_cpp_err=yes
38262 fi
38263 if test -z "$ac_cpp_err"; then
38264   ac_header_preproc=yes
38265 else
38266   echo "$as_me: failed program was:" >&5
38267 sed 's/^/| /' conftest.$ac_ext >&5
38268
38269   ac_header_preproc=no
38270 fi
38271 rm -f conftest.err conftest.$ac_ext
38272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38273 echo "${ECHO_T}$ac_header_preproc" >&6
38274
38275 # So?  What about this header?
38276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38277   yes:no: )
38278     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38282     ac_header_preproc=yes
38283     ;;
38284   no:yes:* )
38285     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38287     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38288 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38289     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38291     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38292 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38295     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38297     (
38298       cat <<\_ASBOX
38299 ## ------------------------------------------ ##
38300 ## Report this to the AC_PACKAGE_NAME lists.  ##
38301 ## ------------------------------------------ ##
38302 _ASBOX
38303     ) |
38304       sed "s/^/$as_me: WARNING:     /" >&2
38305     ;;
38306 esac
38307 echo "$as_me:$LINENO: checking for $ac_header" >&5
38308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38310   echo $ECHO_N "(cached) $ECHO_C" >&6
38311 else
38312   eval "$as_ac_Header=\$ac_header_preproc"
38313 fi
38314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38316
38317 fi
38318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38319   cat >>confdefs.h <<_ACEOF
38320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38321 _ACEOF
38322
38323 fi
38324
38325 done
38326
38327
38328
38329 for ac_header in openssl/crypto.h crypto.h
38330 do
38331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38333   echo "$as_me:$LINENO: checking for $ac_header" >&5
38334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38336   echo $ECHO_N "(cached) $ECHO_C" >&6
38337 fi
38338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38340 else
38341   # Is the header compilable?
38342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38344 cat >conftest.$ac_ext <<_ACEOF
38345 /* confdefs.h.  */
38346 _ACEOF
38347 cat confdefs.h >>conftest.$ac_ext
38348 cat >>conftest.$ac_ext <<_ACEOF
38349 /* end confdefs.h.  */
38350 $ac_includes_default
38351 #include <$ac_header>
38352 _ACEOF
38353 rm -f conftest.$ac_objext
38354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38355   (eval $ac_compile) 2>conftest.er1
38356   ac_status=$?
38357   grep -v '^ *+' conftest.er1 >conftest.err
38358   rm -f conftest.er1
38359   cat conftest.err >&5
38360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38361   (exit $ac_status); } &&
38362          { ac_try='test -z "$ac_c_werror_flag"
38363                          || test ! -s conftest.err'
38364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38365   (eval $ac_try) 2>&5
38366   ac_status=$?
38367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368   (exit $ac_status); }; } &&
38369          { ac_try='test -s conftest.$ac_objext'
38370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38371   (eval $ac_try) 2>&5
38372   ac_status=$?
38373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38374   (exit $ac_status); }; }; then
38375   ac_header_compiler=yes
38376 else
38377   echo "$as_me: failed program was:" >&5
38378 sed 's/^/| /' conftest.$ac_ext >&5
38379
38380 ac_header_compiler=no
38381 fi
38382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38384 echo "${ECHO_T}$ac_header_compiler" >&6
38385
38386 # Is the header present?
38387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38389 cat >conftest.$ac_ext <<_ACEOF
38390 /* confdefs.h.  */
38391 _ACEOF
38392 cat confdefs.h >>conftest.$ac_ext
38393 cat >>conftest.$ac_ext <<_ACEOF
38394 /* end confdefs.h.  */
38395 #include <$ac_header>
38396 _ACEOF
38397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38399   ac_status=$?
38400   grep -v '^ *+' conftest.er1 >conftest.err
38401   rm -f conftest.er1
38402   cat conftest.err >&5
38403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38404   (exit $ac_status); } >/dev/null; then
38405   if test -s conftest.err; then
38406     ac_cpp_err=$ac_c_preproc_warn_flag
38407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38408   else
38409     ac_cpp_err=
38410   fi
38411 else
38412   ac_cpp_err=yes
38413 fi
38414 if test -z "$ac_cpp_err"; then
38415   ac_header_preproc=yes
38416 else
38417   echo "$as_me: failed program was:" >&5
38418 sed 's/^/| /' conftest.$ac_ext >&5
38419
38420   ac_header_preproc=no
38421 fi
38422 rm -f conftest.err conftest.$ac_ext
38423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38424 echo "${ECHO_T}$ac_header_preproc" >&6
38425
38426 # So?  What about this header?
38427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38428   yes:no: )
38429     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38433     ac_header_preproc=yes
38434     ;;
38435   no:yes:* )
38436     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38438     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38439 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38440     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38442     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38443 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38446     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38448     (
38449       cat <<\_ASBOX
38450 ## ------------------------------------------ ##
38451 ## Report this to the AC_PACKAGE_NAME lists.  ##
38452 ## ------------------------------------------ ##
38453 _ASBOX
38454     ) |
38455       sed "s/^/$as_me: WARNING:     /" >&2
38456     ;;
38457 esac
38458 echo "$as_me:$LINENO: checking for $ac_header" >&5
38459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38461   echo $ECHO_N "(cached) $ECHO_C" >&6
38462 else
38463   eval "$as_ac_Header=\$ac_header_preproc"
38464 fi
38465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38467
38468 fi
38469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38470   cat >>confdefs.h <<_ACEOF
38471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38472 _ACEOF
38473
38474 fi
38475
38476 done
38477
38478
38479 for ac_header in gmp.h
38480 do
38481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38483   echo "$as_me:$LINENO: checking for $ac_header" >&5
38484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38486   echo $ECHO_N "(cached) $ECHO_C" >&6
38487 fi
38488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38490 else
38491   # Is the header compilable?
38492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38494 cat >conftest.$ac_ext <<_ACEOF
38495 /* confdefs.h.  */
38496 _ACEOF
38497 cat confdefs.h >>conftest.$ac_ext
38498 cat >>conftest.$ac_ext <<_ACEOF
38499 /* end confdefs.h.  */
38500 $ac_includes_default
38501 #include <$ac_header>
38502 _ACEOF
38503 rm -f conftest.$ac_objext
38504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38505   (eval $ac_compile) 2>conftest.er1
38506   ac_status=$?
38507   grep -v '^ *+' conftest.er1 >conftest.err
38508   rm -f conftest.er1
38509   cat conftest.err >&5
38510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38511   (exit $ac_status); } &&
38512          { ac_try='test -z "$ac_c_werror_flag"
38513                          || test ! -s conftest.err'
38514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38515   (eval $ac_try) 2>&5
38516   ac_status=$?
38517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38518   (exit $ac_status); }; } &&
38519          { ac_try='test -s conftest.$ac_objext'
38520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38521   (eval $ac_try) 2>&5
38522   ac_status=$?
38523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38524   (exit $ac_status); }; }; then
38525   ac_header_compiler=yes
38526 else
38527   echo "$as_me: failed program was:" >&5
38528 sed 's/^/| /' conftest.$ac_ext >&5
38529
38530 ac_header_compiler=no
38531 fi
38532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38534 echo "${ECHO_T}$ac_header_compiler" >&6
38535
38536 # Is the header present?
38537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38539 cat >conftest.$ac_ext <<_ACEOF
38540 /* confdefs.h.  */
38541 _ACEOF
38542 cat confdefs.h >>conftest.$ac_ext
38543 cat >>conftest.$ac_ext <<_ACEOF
38544 /* end confdefs.h.  */
38545 #include <$ac_header>
38546 _ACEOF
38547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38548   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38549   ac_status=$?
38550   grep -v '^ *+' conftest.er1 >conftest.err
38551   rm -f conftest.er1
38552   cat conftest.err >&5
38553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554   (exit $ac_status); } >/dev/null; then
38555   if test -s conftest.err; then
38556     ac_cpp_err=$ac_c_preproc_warn_flag
38557     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38558   else
38559     ac_cpp_err=
38560   fi
38561 else
38562   ac_cpp_err=yes
38563 fi
38564 if test -z "$ac_cpp_err"; then
38565   ac_header_preproc=yes
38566 else
38567   echo "$as_me: failed program was:" >&5
38568 sed 's/^/| /' conftest.$ac_ext >&5
38569
38570   ac_header_preproc=no
38571 fi
38572 rm -f conftest.err conftest.$ac_ext
38573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38574 echo "${ECHO_T}$ac_header_preproc" >&6
38575
38576 # So?  What about this header?
38577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38578   yes:no: )
38579     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38583     ac_header_preproc=yes
38584     ;;
38585   no:yes:* )
38586     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38588     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38589 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38590     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38592     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38593 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38596     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38598     (
38599       cat <<\_ASBOX
38600 ## ------------------------------------------ ##
38601 ## Report this to the AC_PACKAGE_NAME lists.  ##
38602 ## ------------------------------------------ ##
38603 _ASBOX
38604     ) |
38605       sed "s/^/$as_me: WARNING:     /" >&2
38606     ;;
38607 esac
38608 echo "$as_me:$LINENO: checking for $ac_header" >&5
38609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38611   echo $ECHO_N "(cached) $ECHO_C" >&6
38612 else
38613   eval "$as_ac_Header=\$ac_header_preproc"
38614 fi
38615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38617
38618 fi
38619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38620   cat >>confdefs.h <<_ACEOF
38621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38622 _ACEOF
38623
38624 fi
38625
38626 done
38627
38628
38629         if test "$ol_with_tls" = "found" ; then
38630                 ol_have_bn_h=no
38631                 ol_have_crypto_h=no
38632
38633                 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
38634                    test "$ac_cv_header_bn_h" = "yes" ; then
38635                         ol_have_bn_h=yes
38636                 fi
38637
38638                 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
38639                    test "$ac_cv_header_crypto_h" = "yes" ; then
38640                         ol_have_crypto_h=yes
38641                 fi
38642
38643                 if test "$ol_have_bn_h" = "yes" &&
38644                    test "$ol_have_crypto_h" = "yes" ; then
38645                         ol_have_bignum=yes
38646                 fi
38647         fi
38648
38649         if test $ac_cv_header_gmp_h = yes ; then
38650                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38651 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38652 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38653   echo $ECHO_N "(cached) $ECHO_C" >&6
38654 else
38655   ac_check_lib_save_LIBS=$LIBS
38656 LIBS="-lgmp  $LIBS"
38657 cat >conftest.$ac_ext <<_ACEOF
38658 /* confdefs.h.  */
38659 _ACEOF
38660 cat confdefs.h >>conftest.$ac_ext
38661 cat >>conftest.$ac_ext <<_ACEOF
38662 /* end confdefs.h.  */
38663
38664 /* Override any gcc2 internal prototype to avoid an error.  */
38665 #ifdef __cplusplus
38666 extern "C"
38667 #endif
38668 /* We use char because int might match the return type of a gcc2
38669    builtin and then its argument prototype would still apply.  */
38670 char __gmpz_add_ui ();
38671 int
38672 main ()
38673 {
38674 __gmpz_add_ui ();
38675   ;
38676   return 0;
38677 }
38678 _ACEOF
38679 rm -f conftest.$ac_objext conftest$ac_exeext
38680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38681   (eval $ac_link) 2>conftest.er1
38682   ac_status=$?
38683   grep -v '^ *+' conftest.er1 >conftest.err
38684   rm -f conftest.er1
38685   cat conftest.err >&5
38686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38687   (exit $ac_status); } &&
38688          { ac_try='test -z "$ac_c_werror_flag"
38689                          || test ! -s conftest.err'
38690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38691   (eval $ac_try) 2>&5
38692   ac_status=$?
38693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38694   (exit $ac_status); }; } &&
38695          { ac_try='test -s conftest$ac_exeext'
38696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38697   (eval $ac_try) 2>&5
38698   ac_status=$?
38699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700   (exit $ac_status); }; }; then
38701   ac_cv_lib_gmp___gmpz_add_ui=yes
38702 else
38703   echo "$as_me: failed program was:" >&5
38704 sed 's/^/| /' conftest.$ac_ext >&5
38705
38706 ac_cv_lib_gmp___gmpz_add_ui=no
38707 fi
38708 rm -f conftest.err conftest.$ac_objext \
38709       conftest$ac_exeext conftest.$ac_ext
38710 LIBS=$ac_check_lib_save_LIBS
38711 fi
38712 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38713 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38714 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38715   have_gmp=yes
38716 else
38717   have_gmp=no
38718 fi
38719
38720                 if test $have_gmp = yes ; then
38721                         ol_have_gmp=yes
38722                 fi
38723         fi
38724
38725         echo "$as_me:$LINENO: checking for multiple precision support" >&5
38726 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
38727
38728         ol_mp_support="none"
38729         case "$ol_with_multiple_precision" in
38730         auto)
38731                                                                                 if test "$ol_have_bignum" = "yes" ; then
38732                         ol_mp_support="bignum"
38733                 else
38734                         if test "$ol_have_gmp" = "yes" ; then
38735                                 ol_mp_support="gmp"
38736                         fi
38737                 fi
38738                 ;;
38739         bignum)
38740                 if test "$ol_have_bignum" != "yes" ; then
38741                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
38742 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
38743    { (exit 1); exit 1; }; }
38744                 fi
38745                 ol_mp_support="bignum"
38746                 ;;
38747         gmp)
38748                 if test "$ol_have_gmp" != "yes" ; then
38749                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
38750 echo "$as_me: error: GMP not available" >&2;}
38751    { (exit 1); exit 1; }; }
38752                 fi
38753                 ol_mp_support="gmp"
38754                 ;;
38755         yes)
38756                 if test "$ol_have_bignum" = "yes" ; then
38757                         ol_mp_support="bignum"
38758                 elif test "$ol_have_gmp" = "yes" ; then
38759                         ol_mp_support="gmp"
38760                 else
38761                         { { echo "$as_me:$LINENO: error: not available" >&5
38762 echo "$as_me: error: not available" >&2;}
38763    { (exit 1); exit 1; }; }
38764                 fi
38765                 ;;
38766         esac
38767
38768         case "$ol_mp_support" in
38769         bignum)
38770
38771 cat >>confdefs.h <<\_ACEOF
38772 #define HAVE_BIGNUM 1
38773 _ACEOF
38774
38775                 ;;
38776         gmp)
38777
38778 cat >>confdefs.h <<\_ACEOF
38779 #define HAVE_GMP 1
38780 _ACEOF
38781
38782                 SLAPD_GMP_LIBS=-lgmp
38783                 ;;
38784         none)
38785                 ;;
38786         esac
38787
38788         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
38789 echo "${ECHO_T}$ol_mp_support" >&6
38790 fi
38791
38792
38793 echo "$as_me:$LINENO: checking for mode_t" >&5
38794 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38795 if test "${ac_cv_type_mode_t+set}" = set; then
38796   echo $ECHO_N "(cached) $ECHO_C" >&6
38797 else
38798   cat >conftest.$ac_ext <<_ACEOF
38799 /* confdefs.h.  */
38800 _ACEOF
38801 cat confdefs.h >>conftest.$ac_ext
38802 cat >>conftest.$ac_ext <<_ACEOF
38803 /* end confdefs.h.  */
38804 $ac_includes_default
38805 int
38806 main ()
38807 {
38808 if ((mode_t *) 0)
38809   return 0;
38810 if (sizeof (mode_t))
38811   return 0;
38812   ;
38813   return 0;
38814 }
38815 _ACEOF
38816 rm -f conftest.$ac_objext
38817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38818   (eval $ac_compile) 2>conftest.er1
38819   ac_status=$?
38820   grep -v '^ *+' conftest.er1 >conftest.err
38821   rm -f conftest.er1
38822   cat conftest.err >&5
38823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38824   (exit $ac_status); } &&
38825          { ac_try='test -z "$ac_c_werror_flag"
38826                          || test ! -s conftest.err'
38827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38828   (eval $ac_try) 2>&5
38829   ac_status=$?
38830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38831   (exit $ac_status); }; } &&
38832          { ac_try='test -s conftest.$ac_objext'
38833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38834   (eval $ac_try) 2>&5
38835   ac_status=$?
38836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38837   (exit $ac_status); }; }; then
38838   ac_cv_type_mode_t=yes
38839 else
38840   echo "$as_me: failed program was:" >&5
38841 sed 's/^/| /' conftest.$ac_ext >&5
38842
38843 ac_cv_type_mode_t=no
38844 fi
38845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38846 fi
38847 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38848 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38849 if test $ac_cv_type_mode_t = yes; then
38850   :
38851 else
38852
38853 cat >>confdefs.h <<_ACEOF
38854 #define mode_t int
38855 _ACEOF
38856
38857 fi
38858
38859 echo "$as_me:$LINENO: checking for off_t" >&5
38860 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38861 if test "${ac_cv_type_off_t+set}" = set; then
38862   echo $ECHO_N "(cached) $ECHO_C" >&6
38863 else
38864   cat >conftest.$ac_ext <<_ACEOF
38865 /* confdefs.h.  */
38866 _ACEOF
38867 cat confdefs.h >>conftest.$ac_ext
38868 cat >>conftest.$ac_ext <<_ACEOF
38869 /* end confdefs.h.  */
38870 $ac_includes_default
38871 int
38872 main ()
38873 {
38874 if ((off_t *) 0)
38875   return 0;
38876 if (sizeof (off_t))
38877   return 0;
38878   ;
38879   return 0;
38880 }
38881 _ACEOF
38882 rm -f conftest.$ac_objext
38883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38884   (eval $ac_compile) 2>conftest.er1
38885   ac_status=$?
38886   grep -v '^ *+' conftest.er1 >conftest.err
38887   rm -f conftest.er1
38888   cat conftest.err >&5
38889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38890   (exit $ac_status); } &&
38891          { ac_try='test -z "$ac_c_werror_flag"
38892                          || test ! -s conftest.err'
38893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38894   (eval $ac_try) 2>&5
38895   ac_status=$?
38896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38897   (exit $ac_status); }; } &&
38898          { ac_try='test -s conftest.$ac_objext'
38899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38900   (eval $ac_try) 2>&5
38901   ac_status=$?
38902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38903   (exit $ac_status); }; }; then
38904   ac_cv_type_off_t=yes
38905 else
38906   echo "$as_me: failed program was:" >&5
38907 sed 's/^/| /' conftest.$ac_ext >&5
38908
38909 ac_cv_type_off_t=no
38910 fi
38911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38912 fi
38913 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38914 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38915 if test $ac_cv_type_off_t = yes; then
38916   :
38917 else
38918
38919 cat >>confdefs.h <<_ACEOF
38920 #define off_t long
38921 _ACEOF
38922
38923 fi
38924
38925 echo "$as_me:$LINENO: checking for pid_t" >&5
38926 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38927 if test "${ac_cv_type_pid_t+set}" = set; then
38928   echo $ECHO_N "(cached) $ECHO_C" >&6
38929 else
38930   cat >conftest.$ac_ext <<_ACEOF
38931 /* confdefs.h.  */
38932 _ACEOF
38933 cat confdefs.h >>conftest.$ac_ext
38934 cat >>conftest.$ac_ext <<_ACEOF
38935 /* end confdefs.h.  */
38936 $ac_includes_default
38937 int
38938 main ()
38939 {
38940 if ((pid_t *) 0)
38941   return 0;
38942 if (sizeof (pid_t))
38943   return 0;
38944   ;
38945   return 0;
38946 }
38947 _ACEOF
38948 rm -f conftest.$ac_objext
38949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38950   (eval $ac_compile) 2>conftest.er1
38951   ac_status=$?
38952   grep -v '^ *+' conftest.er1 >conftest.err
38953   rm -f conftest.er1
38954   cat conftest.err >&5
38955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38956   (exit $ac_status); } &&
38957          { ac_try='test -z "$ac_c_werror_flag"
38958                          || test ! -s conftest.err'
38959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38960   (eval $ac_try) 2>&5
38961   ac_status=$?
38962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38963   (exit $ac_status); }; } &&
38964          { ac_try='test -s conftest.$ac_objext'
38965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38966   (eval $ac_try) 2>&5
38967   ac_status=$?
38968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38969   (exit $ac_status); }; }; then
38970   ac_cv_type_pid_t=yes
38971 else
38972   echo "$as_me: failed program was:" >&5
38973 sed 's/^/| /' conftest.$ac_ext >&5
38974
38975 ac_cv_type_pid_t=no
38976 fi
38977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38978 fi
38979 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38980 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38981 if test $ac_cv_type_pid_t = yes; then
38982   :
38983 else
38984
38985 cat >>confdefs.h <<_ACEOF
38986 #define pid_t int
38987 _ACEOF
38988
38989 fi
38990
38991 echo "$as_me:$LINENO: checking for ssize_t" >&5
38992 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
38993 if test "${ac_cv_type_ssize_t+set}" = set; then
38994   echo $ECHO_N "(cached) $ECHO_C" >&6
38995 else
38996   cat >conftest.$ac_ext <<_ACEOF
38997 /* confdefs.h.  */
38998 _ACEOF
38999 cat confdefs.h >>conftest.$ac_ext
39000 cat >>conftest.$ac_ext <<_ACEOF
39001 /* end confdefs.h.  */
39002 $ac_includes_default
39003 int
39004 main ()
39005 {
39006 if ((ssize_t *) 0)
39007   return 0;
39008 if (sizeof (ssize_t))
39009   return 0;
39010   ;
39011   return 0;
39012 }
39013 _ACEOF
39014 rm -f conftest.$ac_objext
39015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39016   (eval $ac_compile) 2>conftest.er1
39017   ac_status=$?
39018   grep -v '^ *+' conftest.er1 >conftest.err
39019   rm -f conftest.er1
39020   cat conftest.err >&5
39021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39022   (exit $ac_status); } &&
39023          { ac_try='test -z "$ac_c_werror_flag"
39024                          || test ! -s conftest.err'
39025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39026   (eval $ac_try) 2>&5
39027   ac_status=$?
39028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39029   (exit $ac_status); }; } &&
39030          { ac_try='test -s conftest.$ac_objext'
39031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39032   (eval $ac_try) 2>&5
39033   ac_status=$?
39034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39035   (exit $ac_status); }; }; then
39036   ac_cv_type_ssize_t=yes
39037 else
39038   echo "$as_me: failed program was:" >&5
39039 sed 's/^/| /' conftest.$ac_ext >&5
39040
39041 ac_cv_type_ssize_t=no
39042 fi
39043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39044 fi
39045 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39046 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
39047 if test $ac_cv_type_ssize_t = yes; then
39048   :
39049 else
39050
39051 cat >>confdefs.h <<_ACEOF
39052 #define ssize_t signed int
39053 _ACEOF
39054
39055 fi
39056
39057 echo "$as_me:$LINENO: checking for caddr_t" >&5
39058 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
39059 if test "${ac_cv_type_caddr_t+set}" = set; then
39060   echo $ECHO_N "(cached) $ECHO_C" >&6
39061 else
39062   cat >conftest.$ac_ext <<_ACEOF
39063 /* confdefs.h.  */
39064 _ACEOF
39065 cat confdefs.h >>conftest.$ac_ext
39066 cat >>conftest.$ac_ext <<_ACEOF
39067 /* end confdefs.h.  */
39068 $ac_includes_default
39069 int
39070 main ()
39071 {
39072 if ((caddr_t *) 0)
39073   return 0;
39074 if (sizeof (caddr_t))
39075   return 0;
39076   ;
39077   return 0;
39078 }
39079 _ACEOF
39080 rm -f conftest.$ac_objext
39081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39082   (eval $ac_compile) 2>conftest.er1
39083   ac_status=$?
39084   grep -v '^ *+' conftest.er1 >conftest.err
39085   rm -f conftest.er1
39086   cat conftest.err >&5
39087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39088   (exit $ac_status); } &&
39089          { ac_try='test -z "$ac_c_werror_flag"
39090                          || test ! -s conftest.err'
39091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39092   (eval $ac_try) 2>&5
39093   ac_status=$?
39094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39095   (exit $ac_status); }; } &&
39096          { ac_try='test -s conftest.$ac_objext'
39097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39098   (eval $ac_try) 2>&5
39099   ac_status=$?
39100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39101   (exit $ac_status); }; }; then
39102   ac_cv_type_caddr_t=yes
39103 else
39104   echo "$as_me: failed program was:" >&5
39105 sed 's/^/| /' conftest.$ac_ext >&5
39106
39107 ac_cv_type_caddr_t=no
39108 fi
39109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39110 fi
39111 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
39112 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
39113 if test $ac_cv_type_caddr_t = yes; then
39114   :
39115 else
39116
39117 cat >>confdefs.h <<_ACEOF
39118 #define caddr_t char *
39119 _ACEOF
39120
39121 fi
39122
39123 echo "$as_me:$LINENO: checking for size_t" >&5
39124 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39125 if test "${ac_cv_type_size_t+set}" = set; then
39126   echo $ECHO_N "(cached) $ECHO_C" >&6
39127 else
39128   cat >conftest.$ac_ext <<_ACEOF
39129 /* confdefs.h.  */
39130 _ACEOF
39131 cat confdefs.h >>conftest.$ac_ext
39132 cat >>conftest.$ac_ext <<_ACEOF
39133 /* end confdefs.h.  */
39134 $ac_includes_default
39135 int
39136 main ()
39137 {
39138 if ((size_t *) 0)
39139   return 0;
39140 if (sizeof (size_t))
39141   return 0;
39142   ;
39143   return 0;
39144 }
39145 _ACEOF
39146 rm -f conftest.$ac_objext
39147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39148   (eval $ac_compile) 2>conftest.er1
39149   ac_status=$?
39150   grep -v '^ *+' conftest.er1 >conftest.err
39151   rm -f conftest.er1
39152   cat conftest.err >&5
39153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39154   (exit $ac_status); } &&
39155          { ac_try='test -z "$ac_c_werror_flag"
39156                          || test ! -s conftest.err'
39157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39158   (eval $ac_try) 2>&5
39159   ac_status=$?
39160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39161   (exit $ac_status); }; } &&
39162          { ac_try='test -s conftest.$ac_objext'
39163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39164   (eval $ac_try) 2>&5
39165   ac_status=$?
39166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39167   (exit $ac_status); }; }; then
39168   ac_cv_type_size_t=yes
39169 else
39170   echo "$as_me: failed program was:" >&5
39171 sed 's/^/| /' conftest.$ac_ext >&5
39172
39173 ac_cv_type_size_t=no
39174 fi
39175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39176 fi
39177 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39178 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39179 if test $ac_cv_type_size_t = yes; then
39180   :
39181 else
39182
39183 cat >>confdefs.h <<_ACEOF
39184 #define size_t unsigned
39185 _ACEOF
39186
39187 fi
39188
39189
39190 echo "$as_me:$LINENO: checking for long long" >&5
39191 echo $ECHO_N "checking for long long... $ECHO_C" >&6
39192 if test "${ac_cv_type_long_long+set}" = set; then
39193   echo $ECHO_N "(cached) $ECHO_C" >&6
39194 else
39195   cat >conftest.$ac_ext <<_ACEOF
39196 /* confdefs.h.  */
39197 _ACEOF
39198 cat confdefs.h >>conftest.$ac_ext
39199 cat >>conftest.$ac_ext <<_ACEOF
39200 /* end confdefs.h.  */
39201 $ac_includes_default
39202 int
39203 main ()
39204 {
39205 if ((long long *) 0)
39206   return 0;
39207 if (sizeof (long long))
39208   return 0;
39209   ;
39210   return 0;
39211 }
39212 _ACEOF
39213 rm -f conftest.$ac_objext
39214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39215   (eval $ac_compile) 2>conftest.er1
39216   ac_status=$?
39217   grep -v '^ *+' conftest.er1 >conftest.err
39218   rm -f conftest.er1
39219   cat conftest.err >&5
39220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39221   (exit $ac_status); } &&
39222          { ac_try='test -z "$ac_c_werror_flag"
39223                          || test ! -s conftest.err'
39224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39225   (eval $ac_try) 2>&5
39226   ac_status=$?
39227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39228   (exit $ac_status); }; } &&
39229          { ac_try='test -s conftest.$ac_objext'
39230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39231   (eval $ac_try) 2>&5
39232   ac_status=$?
39233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39234   (exit $ac_status); }; }; then
39235   ac_cv_type_long_long=yes
39236 else
39237   echo "$as_me: failed program was:" >&5
39238 sed 's/^/| /' conftest.$ac_ext >&5
39239
39240 ac_cv_type_long_long=no
39241 fi
39242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39243 fi
39244 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
39245 echo "${ECHO_T}$ac_cv_type_long_long" >&6
39246 if test $ac_cv_type_long_long = yes; then
39247
39248 cat >>confdefs.h <<_ACEOF
39249 #define HAVE_LONG_LONG 1
39250 _ACEOF
39251
39252
39253 fi
39254
39255 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
39256 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
39257 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
39258   echo $ECHO_N "(cached) $ECHO_C" >&6
39259 else
39260   cat >conftest.$ac_ext <<_ACEOF
39261 /* confdefs.h.  */
39262 _ACEOF
39263 cat confdefs.h >>conftest.$ac_ext
39264 cat >>conftest.$ac_ext <<_ACEOF
39265 /* end confdefs.h.  */
39266 $ac_includes_default
39267 int
39268 main ()
39269 {
39270 if ((ptrdiff_t *) 0)
39271   return 0;
39272 if (sizeof (ptrdiff_t))
39273   return 0;
39274   ;
39275   return 0;
39276 }
39277 _ACEOF
39278 rm -f conftest.$ac_objext
39279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39280   (eval $ac_compile) 2>conftest.er1
39281   ac_status=$?
39282   grep -v '^ *+' conftest.er1 >conftest.err
39283   rm -f conftest.er1
39284   cat conftest.err >&5
39285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39286   (exit $ac_status); } &&
39287          { ac_try='test -z "$ac_c_werror_flag"
39288                          || test ! -s conftest.err'
39289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39290   (eval $ac_try) 2>&5
39291   ac_status=$?
39292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39293   (exit $ac_status); }; } &&
39294          { ac_try='test -s conftest.$ac_objext'
39295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39296   (eval $ac_try) 2>&5
39297   ac_status=$?
39298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299   (exit $ac_status); }; }; then
39300   ac_cv_type_ptrdiff_t=yes
39301 else
39302   echo "$as_me: failed program was:" >&5
39303 sed 's/^/| /' conftest.$ac_ext >&5
39304
39305 ac_cv_type_ptrdiff_t=no
39306 fi
39307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39308 fi
39309 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39310 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39311 if test $ac_cv_type_ptrdiff_t = yes; then
39312
39313 cat >>confdefs.h <<_ACEOF
39314 #define HAVE_PTRDIFF_T 1
39315 _ACEOF
39316
39317
39318 fi
39319
39320
39321 echo "$as_me:$LINENO: checking for socklen_t" >&5
39322 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39323 if test "${ac_cv_type_socklen_t+set}" = set; then
39324   echo $ECHO_N "(cached) $ECHO_C" >&6
39325 else
39326   cat >conftest.$ac_ext <<_ACEOF
39327 /* confdefs.h.  */
39328 _ACEOF
39329 cat confdefs.h >>conftest.$ac_ext
39330 cat >>conftest.$ac_ext <<_ACEOF
39331 /* end confdefs.h.  */
39332 $ac_includes_default
39333 #ifdef HAVE_SYS_SOCKET_H
39334 #include <sys/socket.h>
39335 #endif
39336
39337
39338 int
39339 main ()
39340 {
39341 if ((socklen_t *) 0)
39342   return 0;
39343 if (sizeof (socklen_t))
39344   return 0;
39345   ;
39346   return 0;
39347 }
39348 _ACEOF
39349 rm -f conftest.$ac_objext
39350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39351   (eval $ac_compile) 2>conftest.er1
39352   ac_status=$?
39353   grep -v '^ *+' conftest.er1 >conftest.err
39354   rm -f conftest.er1
39355   cat conftest.err >&5
39356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39357   (exit $ac_status); } &&
39358          { ac_try='test -z "$ac_c_werror_flag"
39359                          || test ! -s conftest.err'
39360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39361   (eval $ac_try) 2>&5
39362   ac_status=$?
39363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39364   (exit $ac_status); }; } &&
39365          { ac_try='test -s conftest.$ac_objext'
39366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39367   (eval $ac_try) 2>&5
39368   ac_status=$?
39369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39370   (exit $ac_status); }; }; then
39371   ac_cv_type_socklen_t=yes
39372 else
39373   echo "$as_me: failed program was:" >&5
39374 sed 's/^/| /' conftest.$ac_ext >&5
39375
39376 ac_cv_type_socklen_t=no
39377 fi
39378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39379 fi
39380 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39381 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39382 if test $ac_cv_type_socklen_t = yes; then
39383   :
39384 else
39385
39386 cat >>confdefs.h <<_ACEOF
39387 #define socklen_t int
39388 _ACEOF
39389
39390 fi
39391
39392
39393 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39394 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39395 if test "${ac_cv_type_signal+set}" = set; then
39396   echo $ECHO_N "(cached) $ECHO_C" >&6
39397 else
39398   cat >conftest.$ac_ext <<_ACEOF
39399 /* confdefs.h.  */
39400 _ACEOF
39401 cat confdefs.h >>conftest.$ac_ext
39402 cat >>conftest.$ac_ext <<_ACEOF
39403 /* end confdefs.h.  */
39404 #include <sys/types.h>
39405 #include <signal.h>
39406 #ifdef signal
39407 # undef signal
39408 #endif
39409 #ifdef __cplusplus
39410 extern "C" void (*signal (int, void (*)(int)))(int);
39411 #else
39412 void (*signal ()) ();
39413 #endif
39414
39415 int
39416 main ()
39417 {
39418 int i;
39419   ;
39420   return 0;
39421 }
39422 _ACEOF
39423 rm -f conftest.$ac_objext
39424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39425   (eval $ac_compile) 2>conftest.er1
39426   ac_status=$?
39427   grep -v '^ *+' conftest.er1 >conftest.err
39428   rm -f conftest.er1
39429   cat conftest.err >&5
39430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39431   (exit $ac_status); } &&
39432          { ac_try='test -z "$ac_c_werror_flag"
39433                          || test ! -s conftest.err'
39434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39435   (eval $ac_try) 2>&5
39436   ac_status=$?
39437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39438   (exit $ac_status); }; } &&
39439          { ac_try='test -s conftest.$ac_objext'
39440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39441   (eval $ac_try) 2>&5
39442   ac_status=$?
39443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39444   (exit $ac_status); }; }; then
39445   ac_cv_type_signal=void
39446 else
39447   echo "$as_me: failed program was:" >&5
39448 sed 's/^/| /' conftest.$ac_ext >&5
39449
39450 ac_cv_type_signal=int
39451 fi
39452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39453 fi
39454 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39455 echo "${ECHO_T}$ac_cv_type_signal" >&6
39456
39457 cat >>confdefs.h <<_ACEOF
39458 #define RETSIGTYPE $ac_cv_type_signal
39459 _ACEOF
39460
39461
39462
39463 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39464 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39465 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39466   echo $ECHO_N "(cached) $ECHO_C" >&6
39467 else
39468   cat >conftest.$ac_ext <<_ACEOF
39469 /* confdefs.h.  */
39470 _ACEOF
39471 cat confdefs.h >>conftest.$ac_ext
39472 cat >>conftest.$ac_ext <<_ACEOF
39473 /* end confdefs.h.  */
39474 $ac_includes_default
39475 #include <signal.h>
39476
39477
39478 int
39479 main ()
39480 {
39481 if ((sig_atomic_t *) 0)
39482   return 0;
39483 if (sizeof (sig_atomic_t))
39484   return 0;
39485   ;
39486   return 0;
39487 }
39488 _ACEOF
39489 rm -f conftest.$ac_objext
39490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39491   (eval $ac_compile) 2>conftest.er1
39492   ac_status=$?
39493   grep -v '^ *+' conftest.er1 >conftest.err
39494   rm -f conftest.er1
39495   cat conftest.err >&5
39496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39497   (exit $ac_status); } &&
39498          { ac_try='test -z "$ac_c_werror_flag"
39499                          || test ! -s conftest.err'
39500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39501   (eval $ac_try) 2>&5
39502   ac_status=$?
39503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39504   (exit $ac_status); }; } &&
39505          { ac_try='test -s conftest.$ac_objext'
39506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39507   (eval $ac_try) 2>&5
39508   ac_status=$?
39509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39510   (exit $ac_status); }; }; then
39511   ac_cv_type_sig_atomic_t=yes
39512 else
39513   echo "$as_me: failed program was:" >&5
39514 sed 's/^/| /' conftest.$ac_ext >&5
39515
39516 ac_cv_type_sig_atomic_t=no
39517 fi
39518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39519 fi
39520 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39521 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39522 if test $ac_cv_type_sig_atomic_t = yes; then
39523   :
39524 else
39525
39526 cat >>confdefs.h <<_ACEOF
39527 #define sig_atomic_t int
39528 _ACEOF
39529
39530 fi
39531
39532
39533 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39534 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39535 if test "${ac_cv_type_uid_t+set}" = set; then
39536   echo $ECHO_N "(cached) $ECHO_C" >&6
39537 else
39538   cat >conftest.$ac_ext <<_ACEOF
39539 /* confdefs.h.  */
39540 _ACEOF
39541 cat confdefs.h >>conftest.$ac_ext
39542 cat >>conftest.$ac_ext <<_ACEOF
39543 /* end confdefs.h.  */
39544 #include <sys/types.h>
39545
39546 _ACEOF
39547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39548   $EGREP "uid_t" >/dev/null 2>&1; then
39549   ac_cv_type_uid_t=yes
39550 else
39551   ac_cv_type_uid_t=no
39552 fi
39553 rm -f conftest*
39554
39555 fi
39556 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39557 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39558 if test $ac_cv_type_uid_t = no; then
39559
39560 cat >>confdefs.h <<\_ACEOF
39561 #define uid_t int
39562 _ACEOF
39563
39564
39565 cat >>confdefs.h <<\_ACEOF
39566 #define gid_t int
39567 _ACEOF
39568
39569 fi
39570
39571
39572 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39573 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39574 if test "${ac_cv_header_time+set}" = set; then
39575   echo $ECHO_N "(cached) $ECHO_C" >&6
39576 else
39577   cat >conftest.$ac_ext <<_ACEOF
39578 /* confdefs.h.  */
39579 _ACEOF
39580 cat confdefs.h >>conftest.$ac_ext
39581 cat >>conftest.$ac_ext <<_ACEOF
39582 /* end confdefs.h.  */
39583 #include <sys/types.h>
39584 #include <sys/time.h>
39585 #include <time.h>
39586
39587 int
39588 main ()
39589 {
39590 if ((struct tm *) 0)
39591 return 0;
39592   ;
39593   return 0;
39594 }
39595 _ACEOF
39596 rm -f conftest.$ac_objext
39597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39598   (eval $ac_compile) 2>conftest.er1
39599   ac_status=$?
39600   grep -v '^ *+' conftest.er1 >conftest.err
39601   rm -f conftest.er1
39602   cat conftest.err >&5
39603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39604   (exit $ac_status); } &&
39605          { ac_try='test -z "$ac_c_werror_flag"
39606                          || test ! -s conftest.err'
39607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39608   (eval $ac_try) 2>&5
39609   ac_status=$?
39610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39611   (exit $ac_status); }; } &&
39612          { ac_try='test -s conftest.$ac_objext'
39613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39614   (eval $ac_try) 2>&5
39615   ac_status=$?
39616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39617   (exit $ac_status); }; }; then
39618   ac_cv_header_time=yes
39619 else
39620   echo "$as_me: failed program was:" >&5
39621 sed 's/^/| /' conftest.$ac_ext >&5
39622
39623 ac_cv_header_time=no
39624 fi
39625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39626 fi
39627 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39628 echo "${ECHO_T}$ac_cv_header_time" >&6
39629 if test $ac_cv_header_time = yes; then
39630
39631 cat >>confdefs.h <<\_ACEOF
39632 #define TIME_WITH_SYS_TIME 1
39633 _ACEOF
39634
39635 fi
39636
39637 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39638 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39639 if test "${ac_cv_struct_tm+set}" = set; then
39640   echo $ECHO_N "(cached) $ECHO_C" >&6
39641 else
39642   cat >conftest.$ac_ext <<_ACEOF
39643 /* confdefs.h.  */
39644 _ACEOF
39645 cat confdefs.h >>conftest.$ac_ext
39646 cat >>conftest.$ac_ext <<_ACEOF
39647 /* end confdefs.h.  */
39648 #include <sys/types.h>
39649 #include <time.h>
39650
39651 int
39652 main ()
39653 {
39654 struct tm *tp; tp->tm_sec;
39655   ;
39656   return 0;
39657 }
39658 _ACEOF
39659 rm -f conftest.$ac_objext
39660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39661   (eval $ac_compile) 2>conftest.er1
39662   ac_status=$?
39663   grep -v '^ *+' conftest.er1 >conftest.err
39664   rm -f conftest.er1
39665   cat conftest.err >&5
39666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39667   (exit $ac_status); } &&
39668          { ac_try='test -z "$ac_c_werror_flag"
39669                          || test ! -s conftest.err'
39670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39671   (eval $ac_try) 2>&5
39672   ac_status=$?
39673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39674   (exit $ac_status); }; } &&
39675          { ac_try='test -s conftest.$ac_objext'
39676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39677   (eval $ac_try) 2>&5
39678   ac_status=$?
39679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39680   (exit $ac_status); }; }; then
39681   ac_cv_struct_tm=time.h
39682 else
39683   echo "$as_me: failed program was:" >&5
39684 sed 's/^/| /' conftest.$ac_ext >&5
39685
39686 ac_cv_struct_tm=sys/time.h
39687 fi
39688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39689 fi
39690 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39691 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39692 if test $ac_cv_struct_tm = sys/time.h; then
39693
39694 cat >>confdefs.h <<\_ACEOF
39695 #define TM_IN_SYS_TIME 1
39696 _ACEOF
39697
39698 fi
39699
39700 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39701 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39702 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39703   echo $ECHO_N "(cached) $ECHO_C" >&6
39704 else
39705   cat >conftest.$ac_ext <<_ACEOF
39706 /* confdefs.h.  */
39707 _ACEOF
39708 cat confdefs.h >>conftest.$ac_ext
39709 cat >>conftest.$ac_ext <<_ACEOF
39710 /* end confdefs.h.  */
39711 $ac_includes_default
39712 int
39713 main ()
39714 {
39715 static struct stat ac_aggr;
39716 if (ac_aggr.st_blksize)
39717 return 0;
39718   ;
39719   return 0;
39720 }
39721 _ACEOF
39722 rm -f conftest.$ac_objext
39723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39724   (eval $ac_compile) 2>conftest.er1
39725   ac_status=$?
39726   grep -v '^ *+' conftest.er1 >conftest.err
39727   rm -f conftest.er1
39728   cat conftest.err >&5
39729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39730   (exit $ac_status); } &&
39731          { ac_try='test -z "$ac_c_werror_flag"
39732                          || test ! -s conftest.err'
39733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39734   (eval $ac_try) 2>&5
39735   ac_status=$?
39736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39737   (exit $ac_status); }; } &&
39738          { ac_try='test -s conftest.$ac_objext'
39739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39740   (eval $ac_try) 2>&5
39741   ac_status=$?
39742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39743   (exit $ac_status); }; }; then
39744   ac_cv_member_struct_stat_st_blksize=yes
39745 else
39746   echo "$as_me: failed program was:" >&5
39747 sed 's/^/| /' conftest.$ac_ext >&5
39748
39749 cat >conftest.$ac_ext <<_ACEOF
39750 /* confdefs.h.  */
39751 _ACEOF
39752 cat confdefs.h >>conftest.$ac_ext
39753 cat >>conftest.$ac_ext <<_ACEOF
39754 /* end confdefs.h.  */
39755 $ac_includes_default
39756 int
39757 main ()
39758 {
39759 static struct stat ac_aggr;
39760 if (sizeof ac_aggr.st_blksize)
39761 return 0;
39762   ;
39763   return 0;
39764 }
39765 _ACEOF
39766 rm -f conftest.$ac_objext
39767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39768   (eval $ac_compile) 2>conftest.er1
39769   ac_status=$?
39770   grep -v '^ *+' conftest.er1 >conftest.err
39771   rm -f conftest.er1
39772   cat conftest.err >&5
39773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39774   (exit $ac_status); } &&
39775          { ac_try='test -z "$ac_c_werror_flag"
39776                          || test ! -s conftest.err'
39777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39778   (eval $ac_try) 2>&5
39779   ac_status=$?
39780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39781   (exit $ac_status); }; } &&
39782          { ac_try='test -s conftest.$ac_objext'
39783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39784   (eval $ac_try) 2>&5
39785   ac_status=$?
39786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39787   (exit $ac_status); }; }; then
39788   ac_cv_member_struct_stat_st_blksize=yes
39789 else
39790   echo "$as_me: failed program was:" >&5
39791 sed 's/^/| /' conftest.$ac_ext >&5
39792
39793 ac_cv_member_struct_stat_st_blksize=no
39794 fi
39795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39796 fi
39797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39798 fi
39799 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39800 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39801 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39802
39803 cat >>confdefs.h <<_ACEOF
39804 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39805 _ACEOF
39806
39807
39808 fi
39809
39810 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39811 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39812 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39813   echo $ECHO_N "(cached) $ECHO_C" >&6
39814 else
39815   cat >conftest.$ac_ext <<_ACEOF
39816 /* confdefs.h.  */
39817 _ACEOF
39818 cat confdefs.h >>conftest.$ac_ext
39819 cat >>conftest.$ac_ext <<_ACEOF
39820 /* end confdefs.h.  */
39821 $ac_includes_default
39822 #include <pwd.h>
39823
39824 int
39825 main ()
39826 {
39827 static struct passwd ac_aggr;
39828 if (ac_aggr.pw_gecos)
39829 return 0;
39830   ;
39831   return 0;
39832 }
39833 _ACEOF
39834 rm -f conftest.$ac_objext
39835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39836   (eval $ac_compile) 2>conftest.er1
39837   ac_status=$?
39838   grep -v '^ *+' conftest.er1 >conftest.err
39839   rm -f conftest.er1
39840   cat conftest.err >&5
39841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39842   (exit $ac_status); } &&
39843          { ac_try='test -z "$ac_c_werror_flag"
39844                          || test ! -s conftest.err'
39845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39846   (eval $ac_try) 2>&5
39847   ac_status=$?
39848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39849   (exit $ac_status); }; } &&
39850          { ac_try='test -s conftest.$ac_objext'
39851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39852   (eval $ac_try) 2>&5
39853   ac_status=$?
39854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39855   (exit $ac_status); }; }; then
39856   ac_cv_member_struct_passwd_pw_gecos=yes
39857 else
39858   echo "$as_me: failed program was:" >&5
39859 sed 's/^/| /' conftest.$ac_ext >&5
39860
39861 cat >conftest.$ac_ext <<_ACEOF
39862 /* confdefs.h.  */
39863 _ACEOF
39864 cat confdefs.h >>conftest.$ac_ext
39865 cat >>conftest.$ac_ext <<_ACEOF
39866 /* end confdefs.h.  */
39867 $ac_includes_default
39868 #include <pwd.h>
39869
39870 int
39871 main ()
39872 {
39873 static struct passwd ac_aggr;
39874 if (sizeof ac_aggr.pw_gecos)
39875 return 0;
39876   ;
39877   return 0;
39878 }
39879 _ACEOF
39880 rm -f conftest.$ac_objext
39881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39882   (eval $ac_compile) 2>conftest.er1
39883   ac_status=$?
39884   grep -v '^ *+' conftest.er1 >conftest.err
39885   rm -f conftest.er1
39886   cat conftest.err >&5
39887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39888   (exit $ac_status); } &&
39889          { ac_try='test -z "$ac_c_werror_flag"
39890                          || test ! -s conftest.err'
39891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39892   (eval $ac_try) 2>&5
39893   ac_status=$?
39894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39895   (exit $ac_status); }; } &&
39896          { ac_try='test -s conftest.$ac_objext'
39897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39898   (eval $ac_try) 2>&5
39899   ac_status=$?
39900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39901   (exit $ac_status); }; }; then
39902   ac_cv_member_struct_passwd_pw_gecos=yes
39903 else
39904   echo "$as_me: failed program was:" >&5
39905 sed 's/^/| /' conftest.$ac_ext >&5
39906
39907 ac_cv_member_struct_passwd_pw_gecos=no
39908 fi
39909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39910 fi
39911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39912 fi
39913 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39914 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39915 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39916
39917 cat >>confdefs.h <<_ACEOF
39918 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39919 _ACEOF
39920
39921
39922 fi
39923
39924 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39925 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39926 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39927   echo $ECHO_N "(cached) $ECHO_C" >&6
39928 else
39929   cat >conftest.$ac_ext <<_ACEOF
39930 /* confdefs.h.  */
39931 _ACEOF
39932 cat confdefs.h >>conftest.$ac_ext
39933 cat >>conftest.$ac_ext <<_ACEOF
39934 /* end confdefs.h.  */
39935 $ac_includes_default
39936 #include <pwd.h>
39937
39938 int
39939 main ()
39940 {
39941 static struct passwd ac_aggr;
39942 if (ac_aggr.pw_passwd)
39943 return 0;
39944   ;
39945   return 0;
39946 }
39947 _ACEOF
39948 rm -f conftest.$ac_objext
39949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39950   (eval $ac_compile) 2>conftest.er1
39951   ac_status=$?
39952   grep -v '^ *+' conftest.er1 >conftest.err
39953   rm -f conftest.er1
39954   cat conftest.err >&5
39955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39956   (exit $ac_status); } &&
39957          { ac_try='test -z "$ac_c_werror_flag"
39958                          || test ! -s conftest.err'
39959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39960   (eval $ac_try) 2>&5
39961   ac_status=$?
39962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39963   (exit $ac_status); }; } &&
39964          { ac_try='test -s conftest.$ac_objext'
39965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39966   (eval $ac_try) 2>&5
39967   ac_status=$?
39968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39969   (exit $ac_status); }; }; then
39970   ac_cv_member_struct_passwd_pw_passwd=yes
39971 else
39972   echo "$as_me: failed program was:" >&5
39973 sed 's/^/| /' conftest.$ac_ext >&5
39974
39975 cat >conftest.$ac_ext <<_ACEOF
39976 /* confdefs.h.  */
39977 _ACEOF
39978 cat confdefs.h >>conftest.$ac_ext
39979 cat >>conftest.$ac_ext <<_ACEOF
39980 /* end confdefs.h.  */
39981 $ac_includes_default
39982 #include <pwd.h>
39983
39984 int
39985 main ()
39986 {
39987 static struct passwd ac_aggr;
39988 if (sizeof ac_aggr.pw_passwd)
39989 return 0;
39990   ;
39991   return 0;
39992 }
39993 _ACEOF
39994 rm -f conftest.$ac_objext
39995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39996   (eval $ac_compile) 2>conftest.er1
39997   ac_status=$?
39998   grep -v '^ *+' conftest.er1 >conftest.err
39999   rm -f conftest.er1
40000   cat conftest.err >&5
40001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40002   (exit $ac_status); } &&
40003          { ac_try='test -z "$ac_c_werror_flag"
40004                          || test ! -s conftest.err'
40005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40006   (eval $ac_try) 2>&5
40007   ac_status=$?
40008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40009   (exit $ac_status); }; } &&
40010          { ac_try='test -s conftest.$ac_objext'
40011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40012   (eval $ac_try) 2>&5
40013   ac_status=$?
40014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40015   (exit $ac_status); }; }; then
40016   ac_cv_member_struct_passwd_pw_passwd=yes
40017 else
40018   echo "$as_me: failed program was:" >&5
40019 sed 's/^/| /' conftest.$ac_ext >&5
40020
40021 ac_cv_member_struct_passwd_pw_passwd=no
40022 fi
40023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40024 fi
40025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40026 fi
40027 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
40028 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
40029 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
40030
40031 cat >>confdefs.h <<_ACEOF
40032 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
40033 _ACEOF
40034
40035
40036 fi
40037
40038
40039 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
40040 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
40041 if test "${ol_cv_c_upper_lower+set}" = set; then
40042   echo $ECHO_N "(cached) $ECHO_C" >&6
40043 else
40044
40045         if test "$cross_compiling" = yes; then
40046   ol_cv_c_upper_lower=safe
40047 else
40048   cat >conftest.$ac_ext <<_ACEOF
40049 /* confdefs.h.  */
40050 _ACEOF
40051 cat confdefs.h >>conftest.$ac_ext
40052 cat >>conftest.$ac_ext <<_ACEOF
40053 /* end confdefs.h.  */
40054
40055 #include <ctype.h>
40056 main()
40057 {
40058         if ('C' == toupper('C'))
40059                 exit(0);
40060         else
40061                 exit(1);
40062 }
40063 _ACEOF
40064 rm -f conftest$ac_exeext
40065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40066   (eval $ac_link) 2>&5
40067   ac_status=$?
40068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40071   (eval $ac_try) 2>&5
40072   ac_status=$?
40073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40074   (exit $ac_status); }; }; then
40075   ol_cv_c_upper_lower=no
40076 else
40077   echo "$as_me: program exited with status $ac_status" >&5
40078 echo "$as_me: failed program was:" >&5
40079 sed 's/^/| /' conftest.$ac_ext >&5
40080
40081 ( exit $ac_status )
40082 ol_cv_c_upper_lower=yes
40083 fi
40084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40085 fi
40086 fi
40087 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
40088 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
40089 if test $ol_cv_c_upper_lower != no ; then
40090
40091 cat >>confdefs.h <<\_ACEOF
40092 #define C_UPPER_LOWER 1
40093 _ACEOF
40094
40095 fi
40096
40097 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
40098 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
40099 if test "${ac_cv_c_const+set}" = set; then
40100   echo $ECHO_N "(cached) $ECHO_C" >&6
40101 else
40102   cat >conftest.$ac_ext <<_ACEOF
40103 /* confdefs.h.  */
40104 _ACEOF
40105 cat confdefs.h >>conftest.$ac_ext
40106 cat >>conftest.$ac_ext <<_ACEOF
40107 /* end confdefs.h.  */
40108
40109 int
40110 main ()
40111 {
40112 /* FIXME: Include the comments suggested by Paul. */
40113 #ifndef __cplusplus
40114   /* Ultrix mips cc rejects this.  */
40115   typedef int charset[2];
40116   const charset x;
40117   /* SunOS 4.1.1 cc rejects this.  */
40118   char const *const *ccp;
40119   char **p;
40120   /* NEC SVR4.0.2 mips cc rejects this.  */
40121   struct point {int x, y;};
40122   static struct point const zero = {0,0};
40123   /* AIX XL C 1.02.0.0 rejects this.
40124      It does not let you subtract one const X* pointer from another in
40125      an arm of an if-expression whose if-part is not a constant
40126      expression */
40127   const char *g = "string";
40128   ccp = &g + (g ? g-g : 0);
40129   /* HPUX 7.0 cc rejects these. */
40130   ++ccp;
40131   p = (char**) ccp;
40132   ccp = (char const *const *) p;
40133   { /* SCO 3.2v4 cc rejects this.  */
40134     char *t;
40135     char const *s = 0 ? (char *) 0 : (char const *) 0;
40136
40137     *t++ = 0;
40138   }
40139   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
40140     int x[] = {25, 17};
40141     const int *foo = &x[0];
40142     ++foo;
40143   }
40144   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
40145     typedef const int *iptr;
40146     iptr p = 0;
40147     ++p;
40148   }
40149   { /* AIX XL C 1.02.0.0 rejects this saying
40150        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
40151     struct s { int j; const int *ap[3]; };
40152     struct s *b; b->j = 5;
40153   }
40154   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
40155     const int foo = 10;
40156   }
40157 #endif
40158
40159   ;
40160   return 0;
40161 }
40162 _ACEOF
40163 rm -f conftest.$ac_objext
40164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40165   (eval $ac_compile) 2>conftest.er1
40166   ac_status=$?
40167   grep -v '^ *+' conftest.er1 >conftest.err
40168   rm -f conftest.er1
40169   cat conftest.err >&5
40170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40171   (exit $ac_status); } &&
40172          { ac_try='test -z "$ac_c_werror_flag"
40173                          || test ! -s conftest.err'
40174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40175   (eval $ac_try) 2>&5
40176   ac_status=$?
40177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40178   (exit $ac_status); }; } &&
40179          { ac_try='test -s conftest.$ac_objext'
40180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40181   (eval $ac_try) 2>&5
40182   ac_status=$?
40183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40184   (exit $ac_status); }; }; then
40185   ac_cv_c_const=yes
40186 else
40187   echo "$as_me: failed program was:" >&5
40188 sed 's/^/| /' conftest.$ac_ext >&5
40189
40190 ac_cv_c_const=no
40191 fi
40192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40193 fi
40194 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
40195 echo "${ECHO_T}$ac_cv_c_const" >&6
40196 if test $ac_cv_c_const = no; then
40197
40198 cat >>confdefs.h <<\_ACEOF
40199 #define const
40200 _ACEOF
40201
40202 fi
40203
40204 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
40205 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
40206 if test "${ol_cv_c_volatile+set}" = set; then
40207   echo $ECHO_N "(cached) $ECHO_C" >&6
40208 else
40209   cat >conftest.$ac_ext <<_ACEOF
40210 /* confdefs.h.  */
40211 _ACEOF
40212 cat confdefs.h >>conftest.$ac_ext
40213 cat >>conftest.$ac_ext <<_ACEOF
40214 /* end confdefs.h.  */
40215 int x, y, z;
40216 int
40217 main ()
40218 {
40219 volatile int a; int * volatile b = x ? &y : &z;
40220       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
40221       *b = 0;
40222   ;
40223   return 0;
40224 }
40225 _ACEOF
40226 rm -f conftest.$ac_objext
40227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40228   (eval $ac_compile) 2>conftest.er1
40229   ac_status=$?
40230   grep -v '^ *+' conftest.er1 >conftest.err
40231   rm -f conftest.er1
40232   cat conftest.err >&5
40233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40234   (exit $ac_status); } &&
40235          { ac_try='test -z "$ac_c_werror_flag"
40236                          || test ! -s conftest.err'
40237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40238   (eval $ac_try) 2>&5
40239   ac_status=$?
40240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40241   (exit $ac_status); }; } &&
40242          { ac_try='test -s conftest.$ac_objext'
40243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40244   (eval $ac_try) 2>&5
40245   ac_status=$?
40246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40247   (exit $ac_status); }; }; then
40248   ol_cv_c_volatile=yes
40249 else
40250   echo "$as_me: failed program was:" >&5
40251 sed 's/^/| /' conftest.$ac_ext >&5
40252
40253 ol_cv_c_volatile=no
40254 fi
40255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40256 fi
40257 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
40258 echo "${ECHO_T}$ol_cv_c_volatile" >&6
40259   if test $ol_cv_c_volatile = yes; then
40260     :
40261   else
40262
40263 cat >>confdefs.h <<\_ACEOF
40264 #define volatile
40265 _ACEOF
40266
40267   fi
40268
40269
40270 if test $cross_compiling = yes ; then
40271         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
40272 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
40273
40274 cat >>confdefs.h <<\_ACEOF
40275 #define CROSS_COMPILING 1
40276 _ACEOF
40277
40278 else
40279         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
40280 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
40281 if test "${ac_cv_c_bigendian+set}" = set; then
40282   echo $ECHO_N "(cached) $ECHO_C" >&6
40283 else
40284   # See if sys/param.h defines the BYTE_ORDER macro.
40285 cat >conftest.$ac_ext <<_ACEOF
40286 /* confdefs.h.  */
40287 _ACEOF
40288 cat confdefs.h >>conftest.$ac_ext
40289 cat >>conftest.$ac_ext <<_ACEOF
40290 /* end confdefs.h.  */
40291 #include <sys/types.h>
40292 #include <sys/param.h>
40293
40294 int
40295 main ()
40296 {
40297 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
40298  bogus endian macros
40299 #endif
40300
40301   ;
40302   return 0;
40303 }
40304 _ACEOF
40305 rm -f conftest.$ac_objext
40306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40307   (eval $ac_compile) 2>conftest.er1
40308   ac_status=$?
40309   grep -v '^ *+' conftest.er1 >conftest.err
40310   rm -f conftest.er1
40311   cat conftest.err >&5
40312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40313   (exit $ac_status); } &&
40314          { ac_try='test -z "$ac_c_werror_flag"
40315                          || test ! -s conftest.err'
40316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40317   (eval $ac_try) 2>&5
40318   ac_status=$?
40319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40320   (exit $ac_status); }; } &&
40321          { ac_try='test -s conftest.$ac_objext'
40322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40323   (eval $ac_try) 2>&5
40324   ac_status=$?
40325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40326   (exit $ac_status); }; }; then
40327   # It does; now see whether it defined to BIG_ENDIAN or not.
40328 cat >conftest.$ac_ext <<_ACEOF
40329 /* confdefs.h.  */
40330 _ACEOF
40331 cat confdefs.h >>conftest.$ac_ext
40332 cat >>conftest.$ac_ext <<_ACEOF
40333 /* end confdefs.h.  */
40334 #include <sys/types.h>
40335 #include <sys/param.h>
40336
40337 int
40338 main ()
40339 {
40340 #if BYTE_ORDER != BIG_ENDIAN
40341  not big endian
40342 #endif
40343
40344   ;
40345   return 0;
40346 }
40347 _ACEOF
40348 rm -f conftest.$ac_objext
40349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40350   (eval $ac_compile) 2>conftest.er1
40351   ac_status=$?
40352   grep -v '^ *+' conftest.er1 >conftest.err
40353   rm -f conftest.er1
40354   cat conftest.err >&5
40355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40356   (exit $ac_status); } &&
40357          { ac_try='test -z "$ac_c_werror_flag"
40358                          || test ! -s conftest.err'
40359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40360   (eval $ac_try) 2>&5
40361   ac_status=$?
40362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40363   (exit $ac_status); }; } &&
40364          { ac_try='test -s conftest.$ac_objext'
40365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40366   (eval $ac_try) 2>&5
40367   ac_status=$?
40368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40369   (exit $ac_status); }; }; then
40370   ac_cv_c_bigendian=yes
40371 else
40372   echo "$as_me: failed program was:" >&5
40373 sed 's/^/| /' conftest.$ac_ext >&5
40374
40375 ac_cv_c_bigendian=no
40376 fi
40377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40378 else
40379   echo "$as_me: failed program was:" >&5
40380 sed 's/^/| /' conftest.$ac_ext >&5
40381
40382 # It does not; compile a test program.
40383 if test "$cross_compiling" = yes; then
40384   # try to guess the endianness by grepping values into an object file
40385   ac_cv_c_bigendian=unknown
40386   cat >conftest.$ac_ext <<_ACEOF
40387 /* confdefs.h.  */
40388 _ACEOF
40389 cat confdefs.h >>conftest.$ac_ext
40390 cat >>conftest.$ac_ext <<_ACEOF
40391 /* end confdefs.h.  */
40392 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40393 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40394 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40395 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40396 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40397 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40398 int
40399 main ()
40400 {
40401  _ascii (); _ebcdic ();
40402   ;
40403   return 0;
40404 }
40405 _ACEOF
40406 rm -f conftest.$ac_objext
40407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40408   (eval $ac_compile) 2>conftest.er1
40409   ac_status=$?
40410   grep -v '^ *+' conftest.er1 >conftest.err
40411   rm -f conftest.er1
40412   cat conftest.err >&5
40413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40414   (exit $ac_status); } &&
40415          { ac_try='test -z "$ac_c_werror_flag"
40416                          || test ! -s conftest.err'
40417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40418   (eval $ac_try) 2>&5
40419   ac_status=$?
40420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40421   (exit $ac_status); }; } &&
40422          { ac_try='test -s conftest.$ac_objext'
40423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40424   (eval $ac_try) 2>&5
40425   ac_status=$?
40426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40427   (exit $ac_status); }; }; then
40428   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40429   ac_cv_c_bigendian=yes
40430 fi
40431 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40432   if test "$ac_cv_c_bigendian" = unknown; then
40433     ac_cv_c_bigendian=no
40434   else
40435     # finding both strings is unlikely to happen, but who knows?
40436     ac_cv_c_bigendian=unknown
40437   fi
40438 fi
40439 else
40440   echo "$as_me: failed program was:" >&5
40441 sed 's/^/| /' conftest.$ac_ext >&5
40442
40443 fi
40444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40445 else
40446   cat >conftest.$ac_ext <<_ACEOF
40447 /* confdefs.h.  */
40448 _ACEOF
40449 cat confdefs.h >>conftest.$ac_ext
40450 cat >>conftest.$ac_ext <<_ACEOF
40451 /* end confdefs.h.  */
40452 int
40453 main ()
40454 {
40455   /* Are we little or big endian?  From Harbison&Steele.  */
40456   union
40457   {
40458     long l;
40459     char c[sizeof (long)];
40460   } u;
40461   u.l = 1;
40462   exit (u.c[sizeof (long) - 1] == 1);
40463 }
40464 _ACEOF
40465 rm -f conftest$ac_exeext
40466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40467   (eval $ac_link) 2>&5
40468   ac_status=$?
40469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40472   (eval $ac_try) 2>&5
40473   ac_status=$?
40474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40475   (exit $ac_status); }; }; then
40476   ac_cv_c_bigendian=no
40477 else
40478   echo "$as_me: program exited with status $ac_status" >&5
40479 echo "$as_me: failed program was:" >&5
40480 sed 's/^/| /' conftest.$ac_ext >&5
40481
40482 ( exit $ac_status )
40483 ac_cv_c_bigendian=yes
40484 fi
40485 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40486 fi
40487 fi
40488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40489 fi
40490 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40491 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40492 case $ac_cv_c_bigendian in
40493   yes)
40494
40495 cat >>confdefs.h <<\_ACEOF
40496 #define WORDS_BIGENDIAN 1
40497 _ACEOF
40498  ;;
40499   no)
40500      ;;
40501   *)
40502     { { echo "$as_me:$LINENO: error: unknown endianness
40503 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40504 echo "$as_me: error: unknown endianness
40505 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40506    { (exit 1); exit 1; }; } ;;
40507 esac
40508
40509 fi
40510
40511 echo "$as_me:$LINENO: checking for short" >&5
40512 echo $ECHO_N "checking for short... $ECHO_C" >&6
40513 if test "${ac_cv_type_short+set}" = set; then
40514   echo $ECHO_N "(cached) $ECHO_C" >&6
40515 else
40516   cat >conftest.$ac_ext <<_ACEOF
40517 /* confdefs.h.  */
40518 _ACEOF
40519 cat confdefs.h >>conftest.$ac_ext
40520 cat >>conftest.$ac_ext <<_ACEOF
40521 /* end confdefs.h.  */
40522 $ac_includes_default
40523 int
40524 main ()
40525 {
40526 if ((short *) 0)
40527   return 0;
40528 if (sizeof (short))
40529   return 0;
40530   ;
40531   return 0;
40532 }
40533 _ACEOF
40534 rm -f conftest.$ac_objext
40535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40536   (eval $ac_compile) 2>conftest.er1
40537   ac_status=$?
40538   grep -v '^ *+' conftest.er1 >conftest.err
40539   rm -f conftest.er1
40540   cat conftest.err >&5
40541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40542   (exit $ac_status); } &&
40543          { ac_try='test -z "$ac_c_werror_flag"
40544                          || test ! -s conftest.err'
40545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40546   (eval $ac_try) 2>&5
40547   ac_status=$?
40548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40549   (exit $ac_status); }; } &&
40550          { ac_try='test -s conftest.$ac_objext'
40551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40552   (eval $ac_try) 2>&5
40553   ac_status=$?
40554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40555   (exit $ac_status); }; }; then
40556   ac_cv_type_short=yes
40557 else
40558   echo "$as_me: failed program was:" >&5
40559 sed 's/^/| /' conftest.$ac_ext >&5
40560
40561 ac_cv_type_short=no
40562 fi
40563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40564 fi
40565 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40566 echo "${ECHO_T}$ac_cv_type_short" >&6
40567
40568 echo "$as_me:$LINENO: checking size of short" >&5
40569 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40570 if test "${ac_cv_sizeof_short+set}" = set; then
40571   echo $ECHO_N "(cached) $ECHO_C" >&6
40572 else
40573   if test "$ac_cv_type_short" = yes; then
40574   # The cast to unsigned long works around a bug in the HP C Compiler
40575   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40576   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40577   # This bug is HP SR number 8606223364.
40578   if test "$cross_compiling" = yes; then
40579   # Depending upon the size, compute the lo and hi bounds.
40580 cat >conftest.$ac_ext <<_ACEOF
40581 /* confdefs.h.  */
40582 _ACEOF
40583 cat confdefs.h >>conftest.$ac_ext
40584 cat >>conftest.$ac_ext <<_ACEOF
40585 /* end confdefs.h.  */
40586 $ac_includes_default
40587 int
40588 main ()
40589 {
40590 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40591 test_array [0] = 0
40592
40593   ;
40594   return 0;
40595 }
40596 _ACEOF
40597 rm -f conftest.$ac_objext
40598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40599   (eval $ac_compile) 2>conftest.er1
40600   ac_status=$?
40601   grep -v '^ *+' conftest.er1 >conftest.err
40602   rm -f conftest.er1
40603   cat conftest.err >&5
40604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40605   (exit $ac_status); } &&
40606          { ac_try='test -z "$ac_c_werror_flag"
40607                          || test ! -s conftest.err'
40608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40609   (eval $ac_try) 2>&5
40610   ac_status=$?
40611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40612   (exit $ac_status); }; } &&
40613          { ac_try='test -s conftest.$ac_objext'
40614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40615   (eval $ac_try) 2>&5
40616   ac_status=$?
40617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40618   (exit $ac_status); }; }; then
40619   ac_lo=0 ac_mid=0
40620   while :; do
40621     cat >conftest.$ac_ext <<_ACEOF
40622 /* confdefs.h.  */
40623 _ACEOF
40624 cat confdefs.h >>conftest.$ac_ext
40625 cat >>conftest.$ac_ext <<_ACEOF
40626 /* end confdefs.h.  */
40627 $ac_includes_default
40628 int
40629 main ()
40630 {
40631 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40632 test_array [0] = 0
40633
40634   ;
40635   return 0;
40636 }
40637 _ACEOF
40638 rm -f conftest.$ac_objext
40639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40640   (eval $ac_compile) 2>conftest.er1
40641   ac_status=$?
40642   grep -v '^ *+' conftest.er1 >conftest.err
40643   rm -f conftest.er1
40644   cat conftest.err >&5
40645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40646   (exit $ac_status); } &&
40647          { ac_try='test -z "$ac_c_werror_flag"
40648                          || test ! -s conftest.err'
40649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40650   (eval $ac_try) 2>&5
40651   ac_status=$?
40652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40653   (exit $ac_status); }; } &&
40654          { ac_try='test -s conftest.$ac_objext'
40655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40656   (eval $ac_try) 2>&5
40657   ac_status=$?
40658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40659   (exit $ac_status); }; }; then
40660   ac_hi=$ac_mid; break
40661 else
40662   echo "$as_me: failed program was:" >&5
40663 sed 's/^/| /' conftest.$ac_ext >&5
40664
40665 ac_lo=`expr $ac_mid + 1`
40666                     if test $ac_lo -le $ac_mid; then
40667                       ac_lo= ac_hi=
40668                       break
40669                     fi
40670                     ac_mid=`expr 2 '*' $ac_mid + 1`
40671 fi
40672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40673   done
40674 else
40675   echo "$as_me: failed program was:" >&5
40676 sed 's/^/| /' conftest.$ac_ext >&5
40677
40678 cat >conftest.$ac_ext <<_ACEOF
40679 /* confdefs.h.  */
40680 _ACEOF
40681 cat confdefs.h >>conftest.$ac_ext
40682 cat >>conftest.$ac_ext <<_ACEOF
40683 /* end confdefs.h.  */
40684 $ac_includes_default
40685 int
40686 main ()
40687 {
40688 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40689 test_array [0] = 0
40690
40691   ;
40692   return 0;
40693 }
40694 _ACEOF
40695 rm -f conftest.$ac_objext
40696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40697   (eval $ac_compile) 2>conftest.er1
40698   ac_status=$?
40699   grep -v '^ *+' conftest.er1 >conftest.err
40700   rm -f conftest.er1
40701   cat conftest.err >&5
40702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40703   (exit $ac_status); } &&
40704          { ac_try='test -z "$ac_c_werror_flag"
40705                          || test ! -s conftest.err'
40706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40707   (eval $ac_try) 2>&5
40708   ac_status=$?
40709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40710   (exit $ac_status); }; } &&
40711          { ac_try='test -s conftest.$ac_objext'
40712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40713   (eval $ac_try) 2>&5
40714   ac_status=$?
40715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40716   (exit $ac_status); }; }; then
40717   ac_hi=-1 ac_mid=-1
40718   while :; do
40719     cat >conftest.$ac_ext <<_ACEOF
40720 /* confdefs.h.  */
40721 _ACEOF
40722 cat confdefs.h >>conftest.$ac_ext
40723 cat >>conftest.$ac_ext <<_ACEOF
40724 /* end confdefs.h.  */
40725 $ac_includes_default
40726 int
40727 main ()
40728 {
40729 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40730 test_array [0] = 0
40731
40732   ;
40733   return 0;
40734 }
40735 _ACEOF
40736 rm -f conftest.$ac_objext
40737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40738   (eval $ac_compile) 2>conftest.er1
40739   ac_status=$?
40740   grep -v '^ *+' conftest.er1 >conftest.err
40741   rm -f conftest.er1
40742   cat conftest.err >&5
40743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40744   (exit $ac_status); } &&
40745          { ac_try='test -z "$ac_c_werror_flag"
40746                          || test ! -s conftest.err'
40747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40748   (eval $ac_try) 2>&5
40749   ac_status=$?
40750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40751   (exit $ac_status); }; } &&
40752          { ac_try='test -s conftest.$ac_objext'
40753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40754   (eval $ac_try) 2>&5
40755   ac_status=$?
40756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40757   (exit $ac_status); }; }; then
40758   ac_lo=$ac_mid; break
40759 else
40760   echo "$as_me: failed program was:" >&5
40761 sed 's/^/| /' conftest.$ac_ext >&5
40762
40763 ac_hi=`expr '(' $ac_mid ')' - 1`
40764                        if test $ac_mid -le $ac_hi; then
40765                          ac_lo= ac_hi=
40766                          break
40767                        fi
40768                        ac_mid=`expr 2 '*' $ac_mid`
40769 fi
40770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40771   done
40772 else
40773   echo "$as_me: failed program was:" >&5
40774 sed 's/^/| /' conftest.$ac_ext >&5
40775
40776 ac_lo= ac_hi=
40777 fi
40778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40779 fi
40780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40781 # Binary search between lo and hi bounds.
40782 while test "x$ac_lo" != "x$ac_hi"; do
40783   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40784   cat >conftest.$ac_ext <<_ACEOF
40785 /* confdefs.h.  */
40786 _ACEOF
40787 cat confdefs.h >>conftest.$ac_ext
40788 cat >>conftest.$ac_ext <<_ACEOF
40789 /* end confdefs.h.  */
40790 $ac_includes_default
40791 int
40792 main ()
40793 {
40794 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40795 test_array [0] = 0
40796
40797   ;
40798   return 0;
40799 }
40800 _ACEOF
40801 rm -f conftest.$ac_objext
40802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40803   (eval $ac_compile) 2>conftest.er1
40804   ac_status=$?
40805   grep -v '^ *+' conftest.er1 >conftest.err
40806   rm -f conftest.er1
40807   cat conftest.err >&5
40808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809   (exit $ac_status); } &&
40810          { ac_try='test -z "$ac_c_werror_flag"
40811                          || test ! -s conftest.err'
40812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40813   (eval $ac_try) 2>&5
40814   ac_status=$?
40815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40816   (exit $ac_status); }; } &&
40817          { ac_try='test -s conftest.$ac_objext'
40818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40819   (eval $ac_try) 2>&5
40820   ac_status=$?
40821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40822   (exit $ac_status); }; }; then
40823   ac_hi=$ac_mid
40824 else
40825   echo "$as_me: failed program was:" >&5
40826 sed 's/^/| /' conftest.$ac_ext >&5
40827
40828 ac_lo=`expr '(' $ac_mid ')' + 1`
40829 fi
40830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40831 done
40832 case $ac_lo in
40833 ?*) ac_cv_sizeof_short=$ac_lo;;
40834 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40835 See \`config.log' for more details." >&5
40836 echo "$as_me: error: cannot compute sizeof (short), 77
40837 See \`config.log' for more details." >&2;}
40838    { (exit 1); exit 1; }; } ;;
40839 esac
40840 else
40841   if test "$cross_compiling" = yes; then
40842   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40843 See \`config.log' for more details." >&5
40844 echo "$as_me: error: cannot run test program while cross compiling
40845 See \`config.log' for more details." >&2;}
40846    { (exit 1); exit 1; }; }
40847 else
40848   cat >conftest.$ac_ext <<_ACEOF
40849 /* confdefs.h.  */
40850 _ACEOF
40851 cat confdefs.h >>conftest.$ac_ext
40852 cat >>conftest.$ac_ext <<_ACEOF
40853 /* end confdefs.h.  */
40854 $ac_includes_default
40855 long longval () { return (long) (sizeof (short)); }
40856 unsigned long ulongval () { return (long) (sizeof (short)); }
40857 #include <stdio.h>
40858 #include <stdlib.h>
40859 int
40860 main ()
40861 {
40862
40863   FILE *f = fopen ("conftest.val", "w");
40864   if (! f)
40865     exit (1);
40866   if (((long) (sizeof (short))) < 0)
40867     {
40868       long i = longval ();
40869       if (i != ((long) (sizeof (short))))
40870         exit (1);
40871       fprintf (f, "%ld\n", i);
40872     }
40873   else
40874     {
40875       unsigned long i = ulongval ();
40876       if (i != ((long) (sizeof (short))))
40877         exit (1);
40878       fprintf (f, "%lu\n", i);
40879     }
40880   exit (ferror (f) || fclose (f) != 0);
40881
40882   ;
40883   return 0;
40884 }
40885 _ACEOF
40886 rm -f conftest$ac_exeext
40887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40888   (eval $ac_link) 2>&5
40889   ac_status=$?
40890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40893   (eval $ac_try) 2>&5
40894   ac_status=$?
40895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896   (exit $ac_status); }; }; then
40897   ac_cv_sizeof_short=`cat conftest.val`
40898 else
40899   echo "$as_me: program exited with status $ac_status" >&5
40900 echo "$as_me: failed program was:" >&5
40901 sed 's/^/| /' conftest.$ac_ext >&5
40902
40903 ( exit $ac_status )
40904 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40905 See \`config.log' for more details." >&5
40906 echo "$as_me: error: cannot compute sizeof (short), 77
40907 See \`config.log' for more details." >&2;}
40908    { (exit 1); exit 1; }; }
40909 fi
40910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40911 fi
40912 fi
40913 rm -f conftest.val
40914 else
40915   ac_cv_sizeof_short=0
40916 fi
40917 fi
40918 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40919 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40920 cat >>confdefs.h <<_ACEOF
40921 #define SIZEOF_SHORT $ac_cv_sizeof_short
40922 _ACEOF
40923
40924
40925 echo "$as_me:$LINENO: checking for int" >&5
40926 echo $ECHO_N "checking for int... $ECHO_C" >&6
40927 if test "${ac_cv_type_int+set}" = set; then
40928   echo $ECHO_N "(cached) $ECHO_C" >&6
40929 else
40930   cat >conftest.$ac_ext <<_ACEOF
40931 /* confdefs.h.  */
40932 _ACEOF
40933 cat confdefs.h >>conftest.$ac_ext
40934 cat >>conftest.$ac_ext <<_ACEOF
40935 /* end confdefs.h.  */
40936 $ac_includes_default
40937 int
40938 main ()
40939 {
40940 if ((int *) 0)
40941   return 0;
40942 if (sizeof (int))
40943   return 0;
40944   ;
40945   return 0;
40946 }
40947 _ACEOF
40948 rm -f conftest.$ac_objext
40949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40950   (eval $ac_compile) 2>conftest.er1
40951   ac_status=$?
40952   grep -v '^ *+' conftest.er1 >conftest.err
40953   rm -f conftest.er1
40954   cat conftest.err >&5
40955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40956   (exit $ac_status); } &&
40957          { ac_try='test -z "$ac_c_werror_flag"
40958                          || test ! -s conftest.err'
40959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40960   (eval $ac_try) 2>&5
40961   ac_status=$?
40962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40963   (exit $ac_status); }; } &&
40964          { ac_try='test -s conftest.$ac_objext'
40965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40966   (eval $ac_try) 2>&5
40967   ac_status=$?
40968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969   (exit $ac_status); }; }; then
40970   ac_cv_type_int=yes
40971 else
40972   echo "$as_me: failed program was:" >&5
40973 sed 's/^/| /' conftest.$ac_ext >&5
40974
40975 ac_cv_type_int=no
40976 fi
40977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40978 fi
40979 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
40980 echo "${ECHO_T}$ac_cv_type_int" >&6
40981
40982 echo "$as_me:$LINENO: checking size of int" >&5
40983 echo $ECHO_N "checking size of int... $ECHO_C" >&6
40984 if test "${ac_cv_sizeof_int+set}" = set; then
40985   echo $ECHO_N "(cached) $ECHO_C" >&6
40986 else
40987   if test "$ac_cv_type_int" = yes; then
40988   # The cast to unsigned long works around a bug in the HP C Compiler
40989   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40990   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40991   # This bug is HP SR number 8606223364.
40992   if test "$cross_compiling" = yes; then
40993   # Depending upon the size, compute the lo and hi bounds.
40994 cat >conftest.$ac_ext <<_ACEOF
40995 /* confdefs.h.  */
40996 _ACEOF
40997 cat confdefs.h >>conftest.$ac_ext
40998 cat >>conftest.$ac_ext <<_ACEOF
40999 /* end confdefs.h.  */
41000 $ac_includes_default
41001 int
41002 main ()
41003 {
41004 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
41005 test_array [0] = 0
41006
41007   ;
41008   return 0;
41009 }
41010 _ACEOF
41011 rm -f conftest.$ac_objext
41012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41013   (eval $ac_compile) 2>conftest.er1
41014   ac_status=$?
41015   grep -v '^ *+' conftest.er1 >conftest.err
41016   rm -f conftest.er1
41017   cat conftest.err >&5
41018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41019   (exit $ac_status); } &&
41020          { ac_try='test -z "$ac_c_werror_flag"
41021                          || test ! -s conftest.err'
41022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41023   (eval $ac_try) 2>&5
41024   ac_status=$?
41025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41026   (exit $ac_status); }; } &&
41027          { ac_try='test -s conftest.$ac_objext'
41028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41029   (eval $ac_try) 2>&5
41030   ac_status=$?
41031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032   (exit $ac_status); }; }; then
41033   ac_lo=0 ac_mid=0
41034   while :; do
41035     cat >conftest.$ac_ext <<_ACEOF
41036 /* confdefs.h.  */
41037 _ACEOF
41038 cat confdefs.h >>conftest.$ac_ext
41039 cat >>conftest.$ac_ext <<_ACEOF
41040 /* end confdefs.h.  */
41041 $ac_includes_default
41042 int
41043 main ()
41044 {
41045 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41046 test_array [0] = 0
41047
41048   ;
41049   return 0;
41050 }
41051 _ACEOF
41052 rm -f conftest.$ac_objext
41053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41054   (eval $ac_compile) 2>conftest.er1
41055   ac_status=$?
41056   grep -v '^ *+' conftest.er1 >conftest.err
41057   rm -f conftest.er1
41058   cat conftest.err >&5
41059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41060   (exit $ac_status); } &&
41061          { ac_try='test -z "$ac_c_werror_flag"
41062                          || test ! -s conftest.err'
41063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41064   (eval $ac_try) 2>&5
41065   ac_status=$?
41066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41067   (exit $ac_status); }; } &&
41068          { ac_try='test -s conftest.$ac_objext'
41069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41070   (eval $ac_try) 2>&5
41071   ac_status=$?
41072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41073   (exit $ac_status); }; }; then
41074   ac_hi=$ac_mid; break
41075 else
41076   echo "$as_me: failed program was:" >&5
41077 sed 's/^/| /' conftest.$ac_ext >&5
41078
41079 ac_lo=`expr $ac_mid + 1`
41080                     if test $ac_lo -le $ac_mid; then
41081                       ac_lo= ac_hi=
41082                       break
41083                     fi
41084                     ac_mid=`expr 2 '*' $ac_mid + 1`
41085 fi
41086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41087   done
41088 else
41089   echo "$as_me: failed program was:" >&5
41090 sed 's/^/| /' conftest.$ac_ext >&5
41091
41092 cat >conftest.$ac_ext <<_ACEOF
41093 /* confdefs.h.  */
41094 _ACEOF
41095 cat confdefs.h >>conftest.$ac_ext
41096 cat >>conftest.$ac_ext <<_ACEOF
41097 /* end confdefs.h.  */
41098 $ac_includes_default
41099 int
41100 main ()
41101 {
41102 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
41103 test_array [0] = 0
41104
41105   ;
41106   return 0;
41107 }
41108 _ACEOF
41109 rm -f conftest.$ac_objext
41110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41111   (eval $ac_compile) 2>conftest.er1
41112   ac_status=$?
41113   grep -v '^ *+' conftest.er1 >conftest.err
41114   rm -f conftest.er1
41115   cat conftest.err >&5
41116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41117   (exit $ac_status); } &&
41118          { ac_try='test -z "$ac_c_werror_flag"
41119                          || test ! -s conftest.err'
41120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41121   (eval $ac_try) 2>&5
41122   ac_status=$?
41123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41124   (exit $ac_status); }; } &&
41125          { ac_try='test -s conftest.$ac_objext'
41126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41127   (eval $ac_try) 2>&5
41128   ac_status=$?
41129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41130   (exit $ac_status); }; }; then
41131   ac_hi=-1 ac_mid=-1
41132   while :; do
41133     cat >conftest.$ac_ext <<_ACEOF
41134 /* confdefs.h.  */
41135 _ACEOF
41136 cat confdefs.h >>conftest.$ac_ext
41137 cat >>conftest.$ac_ext <<_ACEOF
41138 /* end confdefs.h.  */
41139 $ac_includes_default
41140 int
41141 main ()
41142 {
41143 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
41144 test_array [0] = 0
41145
41146   ;
41147   return 0;
41148 }
41149 _ACEOF
41150 rm -f conftest.$ac_objext
41151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41152   (eval $ac_compile) 2>conftest.er1
41153   ac_status=$?
41154   grep -v '^ *+' conftest.er1 >conftest.err
41155   rm -f conftest.er1
41156   cat conftest.err >&5
41157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41158   (exit $ac_status); } &&
41159          { ac_try='test -z "$ac_c_werror_flag"
41160                          || test ! -s conftest.err'
41161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41162   (eval $ac_try) 2>&5
41163   ac_status=$?
41164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41165   (exit $ac_status); }; } &&
41166          { ac_try='test -s conftest.$ac_objext'
41167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41168   (eval $ac_try) 2>&5
41169   ac_status=$?
41170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41171   (exit $ac_status); }; }; then
41172   ac_lo=$ac_mid; break
41173 else
41174   echo "$as_me: failed program was:" >&5
41175 sed 's/^/| /' conftest.$ac_ext >&5
41176
41177 ac_hi=`expr '(' $ac_mid ')' - 1`
41178                        if test $ac_mid -le $ac_hi; then
41179                          ac_lo= ac_hi=
41180                          break
41181                        fi
41182                        ac_mid=`expr 2 '*' $ac_mid`
41183 fi
41184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41185   done
41186 else
41187   echo "$as_me: failed program was:" >&5
41188 sed 's/^/| /' conftest.$ac_ext >&5
41189
41190 ac_lo= ac_hi=
41191 fi
41192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41193 fi
41194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41195 # Binary search between lo and hi bounds.
41196 while test "x$ac_lo" != "x$ac_hi"; do
41197   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41198   cat >conftest.$ac_ext <<_ACEOF
41199 /* confdefs.h.  */
41200 _ACEOF
41201 cat confdefs.h >>conftest.$ac_ext
41202 cat >>conftest.$ac_ext <<_ACEOF
41203 /* end confdefs.h.  */
41204 $ac_includes_default
41205 int
41206 main ()
41207 {
41208 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41209 test_array [0] = 0
41210
41211   ;
41212   return 0;
41213 }
41214 _ACEOF
41215 rm -f conftest.$ac_objext
41216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41217   (eval $ac_compile) 2>conftest.er1
41218   ac_status=$?
41219   grep -v '^ *+' conftest.er1 >conftest.err
41220   rm -f conftest.er1
41221   cat conftest.err >&5
41222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41223   (exit $ac_status); } &&
41224          { ac_try='test -z "$ac_c_werror_flag"
41225                          || test ! -s conftest.err'
41226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41227   (eval $ac_try) 2>&5
41228   ac_status=$?
41229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41230   (exit $ac_status); }; } &&
41231          { ac_try='test -s conftest.$ac_objext'
41232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41233   (eval $ac_try) 2>&5
41234   ac_status=$?
41235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41236   (exit $ac_status); }; }; then
41237   ac_hi=$ac_mid
41238 else
41239   echo "$as_me: failed program was:" >&5
41240 sed 's/^/| /' conftest.$ac_ext >&5
41241
41242 ac_lo=`expr '(' $ac_mid ')' + 1`
41243 fi
41244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41245 done
41246 case $ac_lo in
41247 ?*) ac_cv_sizeof_int=$ac_lo;;
41248 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41249 See \`config.log' for more details." >&5
41250 echo "$as_me: error: cannot compute sizeof (int), 77
41251 See \`config.log' for more details." >&2;}
41252    { (exit 1); exit 1; }; } ;;
41253 esac
41254 else
41255   if test "$cross_compiling" = yes; then
41256   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41257 See \`config.log' for more details." >&5
41258 echo "$as_me: error: cannot run test program while cross compiling
41259 See \`config.log' for more details." >&2;}
41260    { (exit 1); exit 1; }; }
41261 else
41262   cat >conftest.$ac_ext <<_ACEOF
41263 /* confdefs.h.  */
41264 _ACEOF
41265 cat confdefs.h >>conftest.$ac_ext
41266 cat >>conftest.$ac_ext <<_ACEOF
41267 /* end confdefs.h.  */
41268 $ac_includes_default
41269 long longval () { return (long) (sizeof (int)); }
41270 unsigned long ulongval () { return (long) (sizeof (int)); }
41271 #include <stdio.h>
41272 #include <stdlib.h>
41273 int
41274 main ()
41275 {
41276
41277   FILE *f = fopen ("conftest.val", "w");
41278   if (! f)
41279     exit (1);
41280   if (((long) (sizeof (int))) < 0)
41281     {
41282       long i = longval ();
41283       if (i != ((long) (sizeof (int))))
41284         exit (1);
41285       fprintf (f, "%ld\n", i);
41286     }
41287   else
41288     {
41289       unsigned long i = ulongval ();
41290       if (i != ((long) (sizeof (int))))
41291         exit (1);
41292       fprintf (f, "%lu\n", i);
41293     }
41294   exit (ferror (f) || fclose (f) != 0);
41295
41296   ;
41297   return 0;
41298 }
41299 _ACEOF
41300 rm -f conftest$ac_exeext
41301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41302   (eval $ac_link) 2>&5
41303   ac_status=$?
41304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41307   (eval $ac_try) 2>&5
41308   ac_status=$?
41309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41310   (exit $ac_status); }; }; then
41311   ac_cv_sizeof_int=`cat conftest.val`
41312 else
41313   echo "$as_me: program exited with status $ac_status" >&5
41314 echo "$as_me: failed program was:" >&5
41315 sed 's/^/| /' conftest.$ac_ext >&5
41316
41317 ( exit $ac_status )
41318 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41319 See \`config.log' for more details." >&5
41320 echo "$as_me: error: cannot compute sizeof (int), 77
41321 See \`config.log' for more details." >&2;}
41322    { (exit 1); exit 1; }; }
41323 fi
41324 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41325 fi
41326 fi
41327 rm -f conftest.val
41328 else
41329   ac_cv_sizeof_int=0
41330 fi
41331 fi
41332 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41333 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41334 cat >>confdefs.h <<_ACEOF
41335 #define SIZEOF_INT $ac_cv_sizeof_int
41336 _ACEOF
41337
41338
41339 echo "$as_me:$LINENO: checking for long" >&5
41340 echo $ECHO_N "checking for long... $ECHO_C" >&6
41341 if test "${ac_cv_type_long+set}" = set; then
41342   echo $ECHO_N "(cached) $ECHO_C" >&6
41343 else
41344   cat >conftest.$ac_ext <<_ACEOF
41345 /* confdefs.h.  */
41346 _ACEOF
41347 cat confdefs.h >>conftest.$ac_ext
41348 cat >>conftest.$ac_ext <<_ACEOF
41349 /* end confdefs.h.  */
41350 $ac_includes_default
41351 int
41352 main ()
41353 {
41354 if ((long *) 0)
41355   return 0;
41356 if (sizeof (long))
41357   return 0;
41358   ;
41359   return 0;
41360 }
41361 _ACEOF
41362 rm -f conftest.$ac_objext
41363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41364   (eval $ac_compile) 2>conftest.er1
41365   ac_status=$?
41366   grep -v '^ *+' conftest.er1 >conftest.err
41367   rm -f conftest.er1
41368   cat conftest.err >&5
41369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41370   (exit $ac_status); } &&
41371          { ac_try='test -z "$ac_c_werror_flag"
41372                          || test ! -s conftest.err'
41373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41374   (eval $ac_try) 2>&5
41375   ac_status=$?
41376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377   (exit $ac_status); }; } &&
41378          { ac_try='test -s conftest.$ac_objext'
41379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41380   (eval $ac_try) 2>&5
41381   ac_status=$?
41382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41383   (exit $ac_status); }; }; then
41384   ac_cv_type_long=yes
41385 else
41386   echo "$as_me: failed program was:" >&5
41387 sed 's/^/| /' conftest.$ac_ext >&5
41388
41389 ac_cv_type_long=no
41390 fi
41391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41392 fi
41393 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41394 echo "${ECHO_T}$ac_cv_type_long" >&6
41395
41396 echo "$as_me:$LINENO: checking size of long" >&5
41397 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41398 if test "${ac_cv_sizeof_long+set}" = set; then
41399   echo $ECHO_N "(cached) $ECHO_C" >&6
41400 else
41401   if test "$ac_cv_type_long" = yes; then
41402   # The cast to unsigned long works around a bug in the HP C Compiler
41403   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41404   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41405   # This bug is HP SR number 8606223364.
41406   if test "$cross_compiling" = yes; then
41407   # Depending upon the size, compute the lo and hi bounds.
41408 cat >conftest.$ac_ext <<_ACEOF
41409 /* confdefs.h.  */
41410 _ACEOF
41411 cat confdefs.h >>conftest.$ac_ext
41412 cat >>conftest.$ac_ext <<_ACEOF
41413 /* end confdefs.h.  */
41414 $ac_includes_default
41415 int
41416 main ()
41417 {
41418 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41419 test_array [0] = 0
41420
41421   ;
41422   return 0;
41423 }
41424 _ACEOF
41425 rm -f conftest.$ac_objext
41426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41427   (eval $ac_compile) 2>conftest.er1
41428   ac_status=$?
41429   grep -v '^ *+' conftest.er1 >conftest.err
41430   rm -f conftest.er1
41431   cat conftest.err >&5
41432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41433   (exit $ac_status); } &&
41434          { ac_try='test -z "$ac_c_werror_flag"
41435                          || test ! -s conftest.err'
41436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41437   (eval $ac_try) 2>&5
41438   ac_status=$?
41439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41440   (exit $ac_status); }; } &&
41441          { ac_try='test -s conftest.$ac_objext'
41442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41443   (eval $ac_try) 2>&5
41444   ac_status=$?
41445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41446   (exit $ac_status); }; }; then
41447   ac_lo=0 ac_mid=0
41448   while :; do
41449     cat >conftest.$ac_ext <<_ACEOF
41450 /* confdefs.h.  */
41451 _ACEOF
41452 cat confdefs.h >>conftest.$ac_ext
41453 cat >>conftest.$ac_ext <<_ACEOF
41454 /* end confdefs.h.  */
41455 $ac_includes_default
41456 int
41457 main ()
41458 {
41459 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41460 test_array [0] = 0
41461
41462   ;
41463   return 0;
41464 }
41465 _ACEOF
41466 rm -f conftest.$ac_objext
41467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41468   (eval $ac_compile) 2>conftest.er1
41469   ac_status=$?
41470   grep -v '^ *+' conftest.er1 >conftest.err
41471   rm -f conftest.er1
41472   cat conftest.err >&5
41473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41474   (exit $ac_status); } &&
41475          { ac_try='test -z "$ac_c_werror_flag"
41476                          || test ! -s conftest.err'
41477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41478   (eval $ac_try) 2>&5
41479   ac_status=$?
41480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41481   (exit $ac_status); }; } &&
41482          { ac_try='test -s conftest.$ac_objext'
41483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41484   (eval $ac_try) 2>&5
41485   ac_status=$?
41486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41487   (exit $ac_status); }; }; then
41488   ac_hi=$ac_mid; break
41489 else
41490   echo "$as_me: failed program was:" >&5
41491 sed 's/^/| /' conftest.$ac_ext >&5
41492
41493 ac_lo=`expr $ac_mid + 1`
41494                     if test $ac_lo -le $ac_mid; then
41495                       ac_lo= ac_hi=
41496                       break
41497                     fi
41498                     ac_mid=`expr 2 '*' $ac_mid + 1`
41499 fi
41500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41501   done
41502 else
41503   echo "$as_me: failed program was:" >&5
41504 sed 's/^/| /' conftest.$ac_ext >&5
41505
41506 cat >conftest.$ac_ext <<_ACEOF
41507 /* confdefs.h.  */
41508 _ACEOF
41509 cat confdefs.h >>conftest.$ac_ext
41510 cat >>conftest.$ac_ext <<_ACEOF
41511 /* end confdefs.h.  */
41512 $ac_includes_default
41513 int
41514 main ()
41515 {
41516 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41517 test_array [0] = 0
41518
41519   ;
41520   return 0;
41521 }
41522 _ACEOF
41523 rm -f conftest.$ac_objext
41524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41525   (eval $ac_compile) 2>conftest.er1
41526   ac_status=$?
41527   grep -v '^ *+' conftest.er1 >conftest.err
41528   rm -f conftest.er1
41529   cat conftest.err >&5
41530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41531   (exit $ac_status); } &&
41532          { ac_try='test -z "$ac_c_werror_flag"
41533                          || test ! -s conftest.err'
41534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41535   (eval $ac_try) 2>&5
41536   ac_status=$?
41537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41538   (exit $ac_status); }; } &&
41539          { ac_try='test -s conftest.$ac_objext'
41540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41541   (eval $ac_try) 2>&5
41542   ac_status=$?
41543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41544   (exit $ac_status); }; }; then
41545   ac_hi=-1 ac_mid=-1
41546   while :; do
41547     cat >conftest.$ac_ext <<_ACEOF
41548 /* confdefs.h.  */
41549 _ACEOF
41550 cat confdefs.h >>conftest.$ac_ext
41551 cat >>conftest.$ac_ext <<_ACEOF
41552 /* end confdefs.h.  */
41553 $ac_includes_default
41554 int
41555 main ()
41556 {
41557 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41558 test_array [0] = 0
41559
41560   ;
41561   return 0;
41562 }
41563 _ACEOF
41564 rm -f conftest.$ac_objext
41565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41566   (eval $ac_compile) 2>conftest.er1
41567   ac_status=$?
41568   grep -v '^ *+' conftest.er1 >conftest.err
41569   rm -f conftest.er1
41570   cat conftest.err >&5
41571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41572   (exit $ac_status); } &&
41573          { ac_try='test -z "$ac_c_werror_flag"
41574                          || test ! -s conftest.err'
41575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41576   (eval $ac_try) 2>&5
41577   ac_status=$?
41578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41579   (exit $ac_status); }; } &&
41580          { ac_try='test -s conftest.$ac_objext'
41581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41582   (eval $ac_try) 2>&5
41583   ac_status=$?
41584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41585   (exit $ac_status); }; }; then
41586   ac_lo=$ac_mid; break
41587 else
41588   echo "$as_me: failed program was:" >&5
41589 sed 's/^/| /' conftest.$ac_ext >&5
41590
41591 ac_hi=`expr '(' $ac_mid ')' - 1`
41592                        if test $ac_mid -le $ac_hi; then
41593                          ac_lo= ac_hi=
41594                          break
41595                        fi
41596                        ac_mid=`expr 2 '*' $ac_mid`
41597 fi
41598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41599   done
41600 else
41601   echo "$as_me: failed program was:" >&5
41602 sed 's/^/| /' conftest.$ac_ext >&5
41603
41604 ac_lo= ac_hi=
41605 fi
41606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41607 fi
41608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41609 # Binary search between lo and hi bounds.
41610 while test "x$ac_lo" != "x$ac_hi"; do
41611   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41612   cat >conftest.$ac_ext <<_ACEOF
41613 /* confdefs.h.  */
41614 _ACEOF
41615 cat confdefs.h >>conftest.$ac_ext
41616 cat >>conftest.$ac_ext <<_ACEOF
41617 /* end confdefs.h.  */
41618 $ac_includes_default
41619 int
41620 main ()
41621 {
41622 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41623 test_array [0] = 0
41624
41625   ;
41626   return 0;
41627 }
41628 _ACEOF
41629 rm -f conftest.$ac_objext
41630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41631   (eval $ac_compile) 2>conftest.er1
41632   ac_status=$?
41633   grep -v '^ *+' conftest.er1 >conftest.err
41634   rm -f conftest.er1
41635   cat conftest.err >&5
41636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41637   (exit $ac_status); } &&
41638          { ac_try='test -z "$ac_c_werror_flag"
41639                          || test ! -s conftest.err'
41640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41641   (eval $ac_try) 2>&5
41642   ac_status=$?
41643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41644   (exit $ac_status); }; } &&
41645          { ac_try='test -s conftest.$ac_objext'
41646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41647   (eval $ac_try) 2>&5
41648   ac_status=$?
41649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41650   (exit $ac_status); }; }; then
41651   ac_hi=$ac_mid
41652 else
41653   echo "$as_me: failed program was:" >&5
41654 sed 's/^/| /' conftest.$ac_ext >&5
41655
41656 ac_lo=`expr '(' $ac_mid ')' + 1`
41657 fi
41658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41659 done
41660 case $ac_lo in
41661 ?*) ac_cv_sizeof_long=$ac_lo;;
41662 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41663 See \`config.log' for more details." >&5
41664 echo "$as_me: error: cannot compute sizeof (long), 77
41665 See \`config.log' for more details." >&2;}
41666    { (exit 1); exit 1; }; } ;;
41667 esac
41668 else
41669   if test "$cross_compiling" = yes; then
41670   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41671 See \`config.log' for more details." >&5
41672 echo "$as_me: error: cannot run test program while cross compiling
41673 See \`config.log' for more details." >&2;}
41674    { (exit 1); exit 1; }; }
41675 else
41676   cat >conftest.$ac_ext <<_ACEOF
41677 /* confdefs.h.  */
41678 _ACEOF
41679 cat confdefs.h >>conftest.$ac_ext
41680 cat >>conftest.$ac_ext <<_ACEOF
41681 /* end confdefs.h.  */
41682 $ac_includes_default
41683 long longval () { return (long) (sizeof (long)); }
41684 unsigned long ulongval () { return (long) (sizeof (long)); }
41685 #include <stdio.h>
41686 #include <stdlib.h>
41687 int
41688 main ()
41689 {
41690
41691   FILE *f = fopen ("conftest.val", "w");
41692   if (! f)
41693     exit (1);
41694   if (((long) (sizeof (long))) < 0)
41695     {
41696       long i = longval ();
41697       if (i != ((long) (sizeof (long))))
41698         exit (1);
41699       fprintf (f, "%ld\n", i);
41700     }
41701   else
41702     {
41703       unsigned long i = ulongval ();
41704       if (i != ((long) (sizeof (long))))
41705         exit (1);
41706       fprintf (f, "%lu\n", i);
41707     }
41708   exit (ferror (f) || fclose (f) != 0);
41709
41710   ;
41711   return 0;
41712 }
41713 _ACEOF
41714 rm -f conftest$ac_exeext
41715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41716   (eval $ac_link) 2>&5
41717   ac_status=$?
41718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41721   (eval $ac_try) 2>&5
41722   ac_status=$?
41723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41724   (exit $ac_status); }; }; then
41725   ac_cv_sizeof_long=`cat conftest.val`
41726 else
41727   echo "$as_me: program exited with status $ac_status" >&5
41728 echo "$as_me: failed program was:" >&5
41729 sed 's/^/| /' conftest.$ac_ext >&5
41730
41731 ( exit $ac_status )
41732 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41733 See \`config.log' for more details." >&5
41734 echo "$as_me: error: cannot compute sizeof (long), 77
41735 See \`config.log' for more details." >&2;}
41736    { (exit 1); exit 1; }; }
41737 fi
41738 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41739 fi
41740 fi
41741 rm -f conftest.val
41742 else
41743   ac_cv_sizeof_long=0
41744 fi
41745 fi
41746 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41747 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41748 cat >>confdefs.h <<_ACEOF
41749 #define SIZEOF_LONG $ac_cv_sizeof_long
41750 _ACEOF
41751
41752
41753 echo "$as_me:$LINENO: checking for wchar_t" >&5
41754 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41755 if test "${ac_cv_type_wchar_t+set}" = set; then
41756   echo $ECHO_N "(cached) $ECHO_C" >&6
41757 else
41758   cat >conftest.$ac_ext <<_ACEOF
41759 /* confdefs.h.  */
41760 _ACEOF
41761 cat confdefs.h >>conftest.$ac_ext
41762 cat >>conftest.$ac_ext <<_ACEOF
41763 /* end confdefs.h.  */
41764 $ac_includes_default
41765 int
41766 main ()
41767 {
41768 if ((wchar_t *) 0)
41769   return 0;
41770 if (sizeof (wchar_t))
41771   return 0;
41772   ;
41773   return 0;
41774 }
41775 _ACEOF
41776 rm -f conftest.$ac_objext
41777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41778   (eval $ac_compile) 2>conftest.er1
41779   ac_status=$?
41780   grep -v '^ *+' conftest.er1 >conftest.err
41781   rm -f conftest.er1
41782   cat conftest.err >&5
41783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41784   (exit $ac_status); } &&
41785          { ac_try='test -z "$ac_c_werror_flag"
41786                          || test ! -s conftest.err'
41787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41788   (eval $ac_try) 2>&5
41789   ac_status=$?
41790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41791   (exit $ac_status); }; } &&
41792          { ac_try='test -s conftest.$ac_objext'
41793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41794   (eval $ac_try) 2>&5
41795   ac_status=$?
41796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41797   (exit $ac_status); }; }; then
41798   ac_cv_type_wchar_t=yes
41799 else
41800   echo "$as_me: failed program was:" >&5
41801 sed 's/^/| /' conftest.$ac_ext >&5
41802
41803 ac_cv_type_wchar_t=no
41804 fi
41805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41806 fi
41807 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41808 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41809
41810 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41811 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41812 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41813   echo $ECHO_N "(cached) $ECHO_C" >&6
41814 else
41815   if test "$ac_cv_type_wchar_t" = yes; then
41816   # The cast to unsigned long works around a bug in the HP C Compiler
41817   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41818   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41819   # This bug is HP SR number 8606223364.
41820   if test "$cross_compiling" = yes; then
41821   # Depending upon the size, compute the lo and hi bounds.
41822 cat >conftest.$ac_ext <<_ACEOF
41823 /* confdefs.h.  */
41824 _ACEOF
41825 cat confdefs.h >>conftest.$ac_ext
41826 cat >>conftest.$ac_ext <<_ACEOF
41827 /* end confdefs.h.  */
41828 $ac_includes_default
41829 int
41830 main ()
41831 {
41832 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41833 test_array [0] = 0
41834
41835   ;
41836   return 0;
41837 }
41838 _ACEOF
41839 rm -f conftest.$ac_objext
41840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41841   (eval $ac_compile) 2>conftest.er1
41842   ac_status=$?
41843   grep -v '^ *+' conftest.er1 >conftest.err
41844   rm -f conftest.er1
41845   cat conftest.err >&5
41846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41847   (exit $ac_status); } &&
41848          { ac_try='test -z "$ac_c_werror_flag"
41849                          || test ! -s conftest.err'
41850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41851   (eval $ac_try) 2>&5
41852   ac_status=$?
41853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41854   (exit $ac_status); }; } &&
41855          { ac_try='test -s conftest.$ac_objext'
41856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41857   (eval $ac_try) 2>&5
41858   ac_status=$?
41859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41860   (exit $ac_status); }; }; then
41861   ac_lo=0 ac_mid=0
41862   while :; do
41863     cat >conftest.$ac_ext <<_ACEOF
41864 /* confdefs.h.  */
41865 _ACEOF
41866 cat confdefs.h >>conftest.$ac_ext
41867 cat >>conftest.$ac_ext <<_ACEOF
41868 /* end confdefs.h.  */
41869 $ac_includes_default
41870 int
41871 main ()
41872 {
41873 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41874 test_array [0] = 0
41875
41876   ;
41877   return 0;
41878 }
41879 _ACEOF
41880 rm -f conftest.$ac_objext
41881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41882   (eval $ac_compile) 2>conftest.er1
41883   ac_status=$?
41884   grep -v '^ *+' conftest.er1 >conftest.err
41885   rm -f conftest.er1
41886   cat conftest.err >&5
41887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41888   (exit $ac_status); } &&
41889          { ac_try='test -z "$ac_c_werror_flag"
41890                          || test ! -s conftest.err'
41891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41892   (eval $ac_try) 2>&5
41893   ac_status=$?
41894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41895   (exit $ac_status); }; } &&
41896          { ac_try='test -s conftest.$ac_objext'
41897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41898   (eval $ac_try) 2>&5
41899   ac_status=$?
41900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41901   (exit $ac_status); }; }; then
41902   ac_hi=$ac_mid; break
41903 else
41904   echo "$as_me: failed program was:" >&5
41905 sed 's/^/| /' conftest.$ac_ext >&5
41906
41907 ac_lo=`expr $ac_mid + 1`
41908                     if test $ac_lo -le $ac_mid; then
41909                       ac_lo= ac_hi=
41910                       break
41911                     fi
41912                     ac_mid=`expr 2 '*' $ac_mid + 1`
41913 fi
41914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41915   done
41916 else
41917   echo "$as_me: failed program was:" >&5
41918 sed 's/^/| /' conftest.$ac_ext >&5
41919
41920 cat >conftest.$ac_ext <<_ACEOF
41921 /* confdefs.h.  */
41922 _ACEOF
41923 cat confdefs.h >>conftest.$ac_ext
41924 cat >>conftest.$ac_ext <<_ACEOF
41925 /* end confdefs.h.  */
41926 $ac_includes_default
41927 int
41928 main ()
41929 {
41930 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41931 test_array [0] = 0
41932
41933   ;
41934   return 0;
41935 }
41936 _ACEOF
41937 rm -f conftest.$ac_objext
41938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41939   (eval $ac_compile) 2>conftest.er1
41940   ac_status=$?
41941   grep -v '^ *+' conftest.er1 >conftest.err
41942   rm -f conftest.er1
41943   cat conftest.err >&5
41944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41945   (exit $ac_status); } &&
41946          { ac_try='test -z "$ac_c_werror_flag"
41947                          || test ! -s conftest.err'
41948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41949   (eval $ac_try) 2>&5
41950   ac_status=$?
41951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41952   (exit $ac_status); }; } &&
41953          { ac_try='test -s conftest.$ac_objext'
41954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41955   (eval $ac_try) 2>&5
41956   ac_status=$?
41957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41958   (exit $ac_status); }; }; then
41959   ac_hi=-1 ac_mid=-1
41960   while :; do
41961     cat >conftest.$ac_ext <<_ACEOF
41962 /* confdefs.h.  */
41963 _ACEOF
41964 cat confdefs.h >>conftest.$ac_ext
41965 cat >>conftest.$ac_ext <<_ACEOF
41966 /* end confdefs.h.  */
41967 $ac_includes_default
41968 int
41969 main ()
41970 {
41971 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
41972 test_array [0] = 0
41973
41974   ;
41975   return 0;
41976 }
41977 _ACEOF
41978 rm -f conftest.$ac_objext
41979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41980   (eval $ac_compile) 2>conftest.er1
41981   ac_status=$?
41982   grep -v '^ *+' conftest.er1 >conftest.err
41983   rm -f conftest.er1
41984   cat conftest.err >&5
41985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41986   (exit $ac_status); } &&
41987          { ac_try='test -z "$ac_c_werror_flag"
41988                          || test ! -s conftest.err'
41989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41990   (eval $ac_try) 2>&5
41991   ac_status=$?
41992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41993   (exit $ac_status); }; } &&
41994          { ac_try='test -s conftest.$ac_objext'
41995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41996   (eval $ac_try) 2>&5
41997   ac_status=$?
41998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41999   (exit $ac_status); }; }; then
42000   ac_lo=$ac_mid; break
42001 else
42002   echo "$as_me: failed program was:" >&5
42003 sed 's/^/| /' conftest.$ac_ext >&5
42004
42005 ac_hi=`expr '(' $ac_mid ')' - 1`
42006                        if test $ac_mid -le $ac_hi; then
42007                          ac_lo= ac_hi=
42008                          break
42009                        fi
42010                        ac_mid=`expr 2 '*' $ac_mid`
42011 fi
42012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42013   done
42014 else
42015   echo "$as_me: failed program was:" >&5
42016 sed 's/^/| /' conftest.$ac_ext >&5
42017
42018 ac_lo= ac_hi=
42019 fi
42020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42021 fi
42022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42023 # Binary search between lo and hi bounds.
42024 while test "x$ac_lo" != "x$ac_hi"; do
42025   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42026   cat >conftest.$ac_ext <<_ACEOF
42027 /* confdefs.h.  */
42028 _ACEOF
42029 cat confdefs.h >>conftest.$ac_ext
42030 cat >>conftest.$ac_ext <<_ACEOF
42031 /* end confdefs.h.  */
42032 $ac_includes_default
42033 int
42034 main ()
42035 {
42036 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
42037 test_array [0] = 0
42038
42039   ;
42040   return 0;
42041 }
42042 _ACEOF
42043 rm -f conftest.$ac_objext
42044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42045   (eval $ac_compile) 2>conftest.er1
42046   ac_status=$?
42047   grep -v '^ *+' conftest.er1 >conftest.err
42048   rm -f conftest.er1
42049   cat conftest.err >&5
42050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42051   (exit $ac_status); } &&
42052          { ac_try='test -z "$ac_c_werror_flag"
42053                          || test ! -s conftest.err'
42054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42055   (eval $ac_try) 2>&5
42056   ac_status=$?
42057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42058   (exit $ac_status); }; } &&
42059          { ac_try='test -s conftest.$ac_objext'
42060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42061   (eval $ac_try) 2>&5
42062   ac_status=$?
42063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42064   (exit $ac_status); }; }; then
42065   ac_hi=$ac_mid
42066 else
42067   echo "$as_me: failed program was:" >&5
42068 sed 's/^/| /' conftest.$ac_ext >&5
42069
42070 ac_lo=`expr '(' $ac_mid ')' + 1`
42071 fi
42072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42073 done
42074 case $ac_lo in
42075 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
42076 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42077 See \`config.log' for more details." >&5
42078 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42079 See \`config.log' for more details." >&2;}
42080    { (exit 1); exit 1; }; } ;;
42081 esac
42082 else
42083   if test "$cross_compiling" = yes; then
42084   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42085 See \`config.log' for more details." >&5
42086 echo "$as_me: error: cannot run test program while cross compiling
42087 See \`config.log' for more details." >&2;}
42088    { (exit 1); exit 1; }; }
42089 else
42090   cat >conftest.$ac_ext <<_ACEOF
42091 /* confdefs.h.  */
42092 _ACEOF
42093 cat confdefs.h >>conftest.$ac_ext
42094 cat >>conftest.$ac_ext <<_ACEOF
42095 /* end confdefs.h.  */
42096 $ac_includes_default
42097 long longval () { return (long) (sizeof (wchar_t)); }
42098 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
42099 #include <stdio.h>
42100 #include <stdlib.h>
42101 int
42102 main ()
42103 {
42104
42105   FILE *f = fopen ("conftest.val", "w");
42106   if (! f)
42107     exit (1);
42108   if (((long) (sizeof (wchar_t))) < 0)
42109     {
42110       long i = longval ();
42111       if (i != ((long) (sizeof (wchar_t))))
42112         exit (1);
42113       fprintf (f, "%ld\n", i);
42114     }
42115   else
42116     {
42117       unsigned long i = ulongval ();
42118       if (i != ((long) (sizeof (wchar_t))))
42119         exit (1);
42120       fprintf (f, "%lu\n", i);
42121     }
42122   exit (ferror (f) || fclose (f) != 0);
42123
42124   ;
42125   return 0;
42126 }
42127 _ACEOF
42128 rm -f conftest$ac_exeext
42129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42130   (eval $ac_link) 2>&5
42131   ac_status=$?
42132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42133   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42135   (eval $ac_try) 2>&5
42136   ac_status=$?
42137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42138   (exit $ac_status); }; }; then
42139   ac_cv_sizeof_wchar_t=`cat conftest.val`
42140 else
42141   echo "$as_me: program exited with status $ac_status" >&5
42142 echo "$as_me: failed program was:" >&5
42143 sed 's/^/| /' conftest.$ac_ext >&5
42144
42145 ( exit $ac_status )
42146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42147 See \`config.log' for more details." >&5
42148 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42149 See \`config.log' for more details." >&2;}
42150    { (exit 1); exit 1; }; }
42151 fi
42152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42153 fi
42154 fi
42155 rm -f conftest.val
42156 else
42157   ac_cv_sizeof_wchar_t=0
42158 fi
42159 fi
42160 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
42161 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
42162 cat >>confdefs.h <<_ACEOF
42163 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
42164 _ACEOF
42165
42166
42167
42168 if test "$ac_cv_sizeof_int" -lt 4 ; then
42169         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
42170 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
42171
42172
42173 cat >>confdefs.h <<\_ACEOF
42174 #define LBER_INT_T long
42175 _ACEOF
42176
42177 else
42178
42179 cat >>confdefs.h <<\_ACEOF
42180 #define LBER_INT_T int
42181 _ACEOF
42182
42183 fi
42184
42185
42186 cat >>confdefs.h <<\_ACEOF
42187 #define LBER_LEN_T long
42188 _ACEOF
42189
42190
42191 cat >>confdefs.h <<\_ACEOF
42192 #define LBER_SOCKET_T int
42193 _ACEOF
42194
42195
42196 cat >>confdefs.h <<\_ACEOF
42197 #define LBER_TAG_T long
42198 _ACEOF
42199
42200
42201 echo "$as_me:$LINENO: checking for working memcmp" >&5
42202 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42203 if test "${ac_cv_func_memcmp_working+set}" = set; then
42204   echo $ECHO_N "(cached) $ECHO_C" >&6
42205 else
42206   if test "$cross_compiling" = yes; then
42207   ac_cv_func_memcmp_working=no
42208 else
42209   cat >conftest.$ac_ext <<_ACEOF
42210 /* confdefs.h.  */
42211 _ACEOF
42212 cat confdefs.h >>conftest.$ac_ext
42213 cat >>conftest.$ac_ext <<_ACEOF
42214 /* end confdefs.h.  */
42215 $ac_includes_default
42216 int
42217 main ()
42218 {
42219
42220   /* Some versions of memcmp are not 8-bit clean.  */
42221   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42222   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42223     exit (1);
42224
42225   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42226      or more and with at least one buffer not starting on a 4-byte boundary.
42227      William Lewis provided this test program.   */
42228   {
42229     char foo[21];
42230     char bar[21];
42231     int i;
42232     for (i = 0; i < 4; i++)
42233       {
42234         char *a = foo + i;
42235         char *b = bar + i;
42236         strcpy (a, "--------01111111");
42237         strcpy (b, "--------10000000");
42238         if (memcmp (a, b, 16) >= 0)
42239           exit (1);
42240       }
42241     exit (0);
42242   }
42243
42244   ;
42245   return 0;
42246 }
42247 _ACEOF
42248 rm -f conftest$ac_exeext
42249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42250   (eval $ac_link) 2>&5
42251   ac_status=$?
42252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42255   (eval $ac_try) 2>&5
42256   ac_status=$?
42257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42258   (exit $ac_status); }; }; then
42259   ac_cv_func_memcmp_working=yes
42260 else
42261   echo "$as_me: program exited with status $ac_status" >&5
42262 echo "$as_me: failed program was:" >&5
42263 sed 's/^/| /' conftest.$ac_ext >&5
42264
42265 ( exit $ac_status )
42266 ac_cv_func_memcmp_working=no
42267 fi
42268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42269 fi
42270 fi
42271 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42272 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42273 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42274     "memcmp.$ac_objext"   | \
42275   *" memcmp.$ac_objext"   | \
42276     "memcmp.$ac_objext "* | \
42277   *" memcmp.$ac_objext "* ) ;;
42278   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42279 esac
42280
42281
42282
42283 if test $ac_cv_func_memcmp_working = no ; then
42284
42285 cat >>confdefs.h <<\_ACEOF
42286 #define NEED_MEMCMP_REPLACEMENT 1
42287 _ACEOF
42288
42289 fi
42290
42291
42292 for ac_func in strftime
42293 do
42294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42295 echo "$as_me:$LINENO: checking for $ac_func" >&5
42296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42297 if eval "test \"\${$as_ac_var+set}\" = set"; then
42298   echo $ECHO_N "(cached) $ECHO_C" >&6
42299 else
42300   cat >conftest.$ac_ext <<_ACEOF
42301 /* confdefs.h.  */
42302 _ACEOF
42303 cat confdefs.h >>conftest.$ac_ext
42304 cat >>conftest.$ac_ext <<_ACEOF
42305 /* end confdefs.h.  */
42306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42308 #define $ac_func innocuous_$ac_func
42309
42310 /* System header to define __stub macros and hopefully few prototypes,
42311     which can conflict with char $ac_func (); below.
42312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42313     <limits.h> exists even on freestanding compilers.  */
42314
42315 #ifdef __STDC__
42316 # include <limits.h>
42317 #else
42318 # include <assert.h>
42319 #endif
42320
42321 #undef $ac_func
42322
42323 /* Override any gcc2 internal prototype to avoid an error.  */
42324 #ifdef __cplusplus
42325 extern "C"
42326 {
42327 #endif
42328 /* We use char because int might match the return type of a gcc2
42329    builtin and then its argument prototype would still apply.  */
42330 char $ac_func ();
42331 /* The GNU C library defines this for functions which it implements
42332     to always fail with ENOSYS.  Some functions are actually named
42333     something starting with __ and the normal name is an alias.  */
42334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42335 choke me
42336 #else
42337 char (*f) () = $ac_func;
42338 #endif
42339 #ifdef __cplusplus
42340 }
42341 #endif
42342
42343 int
42344 main ()
42345 {
42346 return f != $ac_func;
42347   ;
42348   return 0;
42349 }
42350 _ACEOF
42351 rm -f conftest.$ac_objext conftest$ac_exeext
42352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42353   (eval $ac_link) 2>conftest.er1
42354   ac_status=$?
42355   grep -v '^ *+' conftest.er1 >conftest.err
42356   rm -f conftest.er1
42357   cat conftest.err >&5
42358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42359   (exit $ac_status); } &&
42360          { ac_try='test -z "$ac_c_werror_flag"
42361                          || test ! -s conftest.err'
42362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42363   (eval $ac_try) 2>&5
42364   ac_status=$?
42365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42366   (exit $ac_status); }; } &&
42367          { ac_try='test -s conftest$ac_exeext'
42368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42369   (eval $ac_try) 2>&5
42370   ac_status=$?
42371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42372   (exit $ac_status); }; }; then
42373   eval "$as_ac_var=yes"
42374 else
42375   echo "$as_me: failed program was:" >&5
42376 sed 's/^/| /' conftest.$ac_ext >&5
42377
42378 eval "$as_ac_var=no"
42379 fi
42380 rm -f conftest.err conftest.$ac_objext \
42381       conftest$ac_exeext conftest.$ac_ext
42382 fi
42383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42385 if test `eval echo '${'$as_ac_var'}'` = yes; then
42386   cat >>confdefs.h <<_ACEOF
42387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42388 _ACEOF
42389
42390 else
42391   # strftime is in -lintl on SCO UNIX.
42392 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42393 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42394 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42395   echo $ECHO_N "(cached) $ECHO_C" >&6
42396 else
42397   ac_check_lib_save_LIBS=$LIBS
42398 LIBS="-lintl  $LIBS"
42399 cat >conftest.$ac_ext <<_ACEOF
42400 /* confdefs.h.  */
42401 _ACEOF
42402 cat confdefs.h >>conftest.$ac_ext
42403 cat >>conftest.$ac_ext <<_ACEOF
42404 /* end confdefs.h.  */
42405
42406 /* Override any gcc2 internal prototype to avoid an error.  */
42407 #ifdef __cplusplus
42408 extern "C"
42409 #endif
42410 /* We use char because int might match the return type of a gcc2
42411    builtin and then its argument prototype would still apply.  */
42412 char strftime ();
42413 int
42414 main ()
42415 {
42416 strftime ();
42417   ;
42418   return 0;
42419 }
42420 _ACEOF
42421 rm -f conftest.$ac_objext conftest$ac_exeext
42422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42423   (eval $ac_link) 2>conftest.er1
42424   ac_status=$?
42425   grep -v '^ *+' conftest.er1 >conftest.err
42426   rm -f conftest.er1
42427   cat conftest.err >&5
42428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42429   (exit $ac_status); } &&
42430          { ac_try='test -z "$ac_c_werror_flag"
42431                          || test ! -s conftest.err'
42432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42433   (eval $ac_try) 2>&5
42434   ac_status=$?
42435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42436   (exit $ac_status); }; } &&
42437          { ac_try='test -s conftest$ac_exeext'
42438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42439   (eval $ac_try) 2>&5
42440   ac_status=$?
42441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42442   (exit $ac_status); }; }; then
42443   ac_cv_lib_intl_strftime=yes
42444 else
42445   echo "$as_me: failed program was:" >&5
42446 sed 's/^/| /' conftest.$ac_ext >&5
42447
42448 ac_cv_lib_intl_strftime=no
42449 fi
42450 rm -f conftest.err conftest.$ac_objext \
42451       conftest$ac_exeext conftest.$ac_ext
42452 LIBS=$ac_check_lib_save_LIBS
42453 fi
42454 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42455 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42456 if test $ac_cv_lib_intl_strftime = yes; then
42457   cat >>confdefs.h <<\_ACEOF
42458 #define HAVE_STRFTIME 1
42459 _ACEOF
42460
42461 LIBS="-lintl $LIBS"
42462 fi
42463
42464 fi
42465 done
42466
42467
42468 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42469 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42470 if test "${ol_cv_func_inet_aton+set}" = set; then
42471   echo $ECHO_N "(cached) $ECHO_C" >&6
42472 else
42473   cat >conftest.$ac_ext <<_ACEOF
42474 /* confdefs.h.  */
42475 _ACEOF
42476 cat confdefs.h >>conftest.$ac_ext
42477 cat >>conftest.$ac_ext <<_ACEOF
42478 /* end confdefs.h.  */
42479
42480 #ifdef HAVE_SYS_TYPES_H
42481 #       include <sys/types.h>
42482 #endif
42483 #ifdef HAVE_SYS_SOCKET_H
42484 #       include <sys/socket.h>
42485 #       ifdef HAVE_SYS_SELECT_H
42486 #               include <sys/select.h>
42487 #       endif
42488 #       include <netinet/in.h>
42489 #       ifdef HAVE_ARPA_INET_H
42490 #               include <arpa/inet.h>
42491 #       endif
42492 #endif
42493
42494 int
42495 main ()
42496 {
42497 struct in_addr in;
42498 int rc = inet_aton( "255.255.255.255", &in );
42499   ;
42500   return 0;
42501 }
42502 _ACEOF
42503 rm -f conftest.$ac_objext conftest$ac_exeext
42504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42505   (eval $ac_link) 2>conftest.er1
42506   ac_status=$?
42507   grep -v '^ *+' conftest.er1 >conftest.err
42508   rm -f conftest.er1
42509   cat conftest.err >&5
42510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42511   (exit $ac_status); } &&
42512          { ac_try='test -z "$ac_c_werror_flag"
42513                          || test ! -s conftest.err'
42514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42515   (eval $ac_try) 2>&5
42516   ac_status=$?
42517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42518   (exit $ac_status); }; } &&
42519          { ac_try='test -s conftest$ac_exeext'
42520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42521   (eval $ac_try) 2>&5
42522   ac_status=$?
42523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42524   (exit $ac_status); }; }; then
42525   ol_cv_func_inet_aton=yes
42526 else
42527   echo "$as_me: failed program was:" >&5
42528 sed 's/^/| /' conftest.$ac_ext >&5
42529
42530 ol_cv_func_inet_aton=no
42531 fi
42532 rm -f conftest.err conftest.$ac_objext \
42533       conftest$ac_exeext conftest.$ac_ext
42534 fi
42535 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42536 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42537   if test $ol_cv_func_inet_aton != no; then
42538
42539 cat >>confdefs.h <<\_ACEOF
42540 #define HAVE_INET_ATON 1
42541 _ACEOF
42542
42543   fi
42544
42545
42546 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42547 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42548 if test "${ac_cv_func__spawnlp+set}" = set; then
42549   echo $ECHO_N "(cached) $ECHO_C" >&6
42550 else
42551   cat >conftest.$ac_ext <<_ACEOF
42552 /* confdefs.h.  */
42553 _ACEOF
42554 cat confdefs.h >>conftest.$ac_ext
42555 cat >>conftest.$ac_ext <<_ACEOF
42556 /* end confdefs.h.  */
42557 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42559 #define _spawnlp innocuous__spawnlp
42560
42561 /* System header to define __stub macros and hopefully few prototypes,
42562     which can conflict with char _spawnlp (); below.
42563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42564     <limits.h> exists even on freestanding compilers.  */
42565
42566 #ifdef __STDC__
42567 # include <limits.h>
42568 #else
42569 # include <assert.h>
42570 #endif
42571
42572 #undef _spawnlp
42573
42574 /* Override any gcc2 internal prototype to avoid an error.  */
42575 #ifdef __cplusplus
42576 extern "C"
42577 {
42578 #endif
42579 /* We use char because int might match the return type of a gcc2
42580    builtin and then its argument prototype would still apply.  */
42581 char _spawnlp ();
42582 /* The GNU C library defines this for functions which it implements
42583     to always fail with ENOSYS.  Some functions are actually named
42584     something starting with __ and the normal name is an alias.  */
42585 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42586 choke me
42587 #else
42588 char (*f) () = _spawnlp;
42589 #endif
42590 #ifdef __cplusplus
42591 }
42592 #endif
42593
42594 int
42595 main ()
42596 {
42597 return f != _spawnlp;
42598   ;
42599   return 0;
42600 }
42601 _ACEOF
42602 rm -f conftest.$ac_objext conftest$ac_exeext
42603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42604   (eval $ac_link) 2>conftest.er1
42605   ac_status=$?
42606   grep -v '^ *+' conftest.er1 >conftest.err
42607   rm -f conftest.er1
42608   cat conftest.err >&5
42609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42610   (exit $ac_status); } &&
42611          { ac_try='test -z "$ac_c_werror_flag"
42612                          || test ! -s conftest.err'
42613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42614   (eval $ac_try) 2>&5
42615   ac_status=$?
42616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42617   (exit $ac_status); }; } &&
42618          { ac_try='test -s conftest$ac_exeext'
42619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42620   (eval $ac_try) 2>&5
42621   ac_status=$?
42622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42623   (exit $ac_status); }; }; then
42624   ac_cv_func__spawnlp=yes
42625 else
42626   echo "$as_me: failed program was:" >&5
42627 sed 's/^/| /' conftest.$ac_ext >&5
42628
42629 ac_cv_func__spawnlp=no
42630 fi
42631 rm -f conftest.err conftest.$ac_objext \
42632       conftest$ac_exeext conftest.$ac_ext
42633 fi
42634 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42635 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42636 if test $ac_cv_func__spawnlp = yes; then
42637
42638 cat >>confdefs.h <<\_ACEOF
42639 #define HAVE_SPAWNLP 1
42640 _ACEOF
42641
42642 fi
42643
42644
42645 echo "$as_me:$LINENO: checking for _snprintf" >&5
42646 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42647 if test "${ac_cv_func__snprintf+set}" = set; then
42648   echo $ECHO_N "(cached) $ECHO_C" >&6
42649 else
42650   cat >conftest.$ac_ext <<_ACEOF
42651 /* confdefs.h.  */
42652 _ACEOF
42653 cat confdefs.h >>conftest.$ac_ext
42654 cat >>conftest.$ac_ext <<_ACEOF
42655 /* end confdefs.h.  */
42656 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42658 #define _snprintf innocuous__snprintf
42659
42660 /* System header to define __stub macros and hopefully few prototypes,
42661     which can conflict with char _snprintf (); below.
42662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42663     <limits.h> exists even on freestanding compilers.  */
42664
42665 #ifdef __STDC__
42666 # include <limits.h>
42667 #else
42668 # include <assert.h>
42669 #endif
42670
42671 #undef _snprintf
42672
42673 /* Override any gcc2 internal prototype to avoid an error.  */
42674 #ifdef __cplusplus
42675 extern "C"
42676 {
42677 #endif
42678 /* We use char because int might match the return type of a gcc2
42679    builtin and then its argument prototype would still apply.  */
42680 char _snprintf ();
42681 /* The GNU C library defines this for functions which it implements
42682     to always fail with ENOSYS.  Some functions are actually named
42683     something starting with __ and the normal name is an alias.  */
42684 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42685 choke me
42686 #else
42687 char (*f) () = _snprintf;
42688 #endif
42689 #ifdef __cplusplus
42690 }
42691 #endif
42692
42693 int
42694 main ()
42695 {
42696 return f != _snprintf;
42697   ;
42698   return 0;
42699 }
42700 _ACEOF
42701 rm -f conftest.$ac_objext conftest$ac_exeext
42702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42703   (eval $ac_link) 2>conftest.er1
42704   ac_status=$?
42705   grep -v '^ *+' conftest.er1 >conftest.err
42706   rm -f conftest.er1
42707   cat conftest.err >&5
42708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42709   (exit $ac_status); } &&
42710          { ac_try='test -z "$ac_c_werror_flag"
42711                          || test ! -s conftest.err'
42712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42713   (eval $ac_try) 2>&5
42714   ac_status=$?
42715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42716   (exit $ac_status); }; } &&
42717          { ac_try='test -s conftest$ac_exeext'
42718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42719   (eval $ac_try) 2>&5
42720   ac_status=$?
42721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42722   (exit $ac_status); }; }; then
42723   ac_cv_func__snprintf=yes
42724 else
42725   echo "$as_me: failed program was:" >&5
42726 sed 's/^/| /' conftest.$ac_ext >&5
42727
42728 ac_cv_func__snprintf=no
42729 fi
42730 rm -f conftest.err conftest.$ac_objext \
42731       conftest$ac_exeext conftest.$ac_ext
42732 fi
42733 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42734 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42735 if test $ac_cv_func__snprintf = yes; then
42736   ac_cv_func_snprintf=yes
42737
42738 cat >>confdefs.h <<\_ACEOF
42739 #define snprintf _snprintf
42740 _ACEOF
42741
42742
42743 fi
42744
42745
42746 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42747 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42748 if test "${ac_cv_func__vsnprintf+set}" = set; then
42749   echo $ECHO_N "(cached) $ECHO_C" >&6
42750 else
42751   cat >conftest.$ac_ext <<_ACEOF
42752 /* confdefs.h.  */
42753 _ACEOF
42754 cat confdefs.h >>conftest.$ac_ext
42755 cat >>conftest.$ac_ext <<_ACEOF
42756 /* end confdefs.h.  */
42757 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42759 #define _vsnprintf innocuous__vsnprintf
42760
42761 /* System header to define __stub macros and hopefully few prototypes,
42762     which can conflict with char _vsnprintf (); below.
42763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42764     <limits.h> exists even on freestanding compilers.  */
42765
42766 #ifdef __STDC__
42767 # include <limits.h>
42768 #else
42769 # include <assert.h>
42770 #endif
42771
42772 #undef _vsnprintf
42773
42774 /* Override any gcc2 internal prototype to avoid an error.  */
42775 #ifdef __cplusplus
42776 extern "C"
42777 {
42778 #endif
42779 /* We use char because int might match the return type of a gcc2
42780    builtin and then its argument prototype would still apply.  */
42781 char _vsnprintf ();
42782 /* The GNU C library defines this for functions which it implements
42783     to always fail with ENOSYS.  Some functions are actually named
42784     something starting with __ and the normal name is an alias.  */
42785 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42786 choke me
42787 #else
42788 char (*f) () = _vsnprintf;
42789 #endif
42790 #ifdef __cplusplus
42791 }
42792 #endif
42793
42794 int
42795 main ()
42796 {
42797 return f != _vsnprintf;
42798   ;
42799   return 0;
42800 }
42801 _ACEOF
42802 rm -f conftest.$ac_objext conftest$ac_exeext
42803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42804   (eval $ac_link) 2>conftest.er1
42805   ac_status=$?
42806   grep -v '^ *+' conftest.er1 >conftest.err
42807   rm -f conftest.er1
42808   cat conftest.err >&5
42809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42810   (exit $ac_status); } &&
42811          { ac_try='test -z "$ac_c_werror_flag"
42812                          || test ! -s conftest.err'
42813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42814   (eval $ac_try) 2>&5
42815   ac_status=$?
42816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42817   (exit $ac_status); }; } &&
42818          { ac_try='test -s conftest$ac_exeext'
42819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42820   (eval $ac_try) 2>&5
42821   ac_status=$?
42822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42823   (exit $ac_status); }; }; then
42824   ac_cv_func__vsnprintf=yes
42825 else
42826   echo "$as_me: failed program was:" >&5
42827 sed 's/^/| /' conftest.$ac_ext >&5
42828
42829 ac_cv_func__vsnprintf=no
42830 fi
42831 rm -f conftest.err conftest.$ac_objext \
42832       conftest$ac_exeext conftest.$ac_ext
42833 fi
42834 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42835 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
42836 if test $ac_cv_func__vsnprintf = yes; then
42837   ac_cv_func_vsnprintf=yes
42838
42839 cat >>confdefs.h <<\_ACEOF
42840 #define vsnprintf _vsnprintf
42841 _ACEOF
42842
42843
42844 fi
42845
42846
42847
42848 for ac_func in vprintf
42849 do
42850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42851 echo "$as_me:$LINENO: checking for $ac_func" >&5
42852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42853 if eval "test \"\${$as_ac_var+set}\" = set"; then
42854   echo $ECHO_N "(cached) $ECHO_C" >&6
42855 else
42856   cat >conftest.$ac_ext <<_ACEOF
42857 /* confdefs.h.  */
42858 _ACEOF
42859 cat confdefs.h >>conftest.$ac_ext
42860 cat >>conftest.$ac_ext <<_ACEOF
42861 /* end confdefs.h.  */
42862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42864 #define $ac_func innocuous_$ac_func
42865
42866 /* System header to define __stub macros and hopefully few prototypes,
42867     which can conflict with char $ac_func (); below.
42868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42869     <limits.h> exists even on freestanding compilers.  */
42870
42871 #ifdef __STDC__
42872 # include <limits.h>
42873 #else
42874 # include <assert.h>
42875 #endif
42876
42877 #undef $ac_func
42878
42879 /* Override any gcc2 internal prototype to avoid an error.  */
42880 #ifdef __cplusplus
42881 extern "C"
42882 {
42883 #endif
42884 /* We use char because int might match the return type of a gcc2
42885    builtin and then its argument prototype would still apply.  */
42886 char $ac_func ();
42887 /* The GNU C library defines this for functions which it implements
42888     to always fail with ENOSYS.  Some functions are actually named
42889     something starting with __ and the normal name is an alias.  */
42890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42891 choke me
42892 #else
42893 char (*f) () = $ac_func;
42894 #endif
42895 #ifdef __cplusplus
42896 }
42897 #endif
42898
42899 int
42900 main ()
42901 {
42902 return f != $ac_func;
42903   ;
42904   return 0;
42905 }
42906 _ACEOF
42907 rm -f conftest.$ac_objext conftest$ac_exeext
42908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42909   (eval $ac_link) 2>conftest.er1
42910   ac_status=$?
42911   grep -v '^ *+' conftest.er1 >conftest.err
42912   rm -f conftest.er1
42913   cat conftest.err >&5
42914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42915   (exit $ac_status); } &&
42916          { ac_try='test -z "$ac_c_werror_flag"
42917                          || test ! -s conftest.err'
42918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42919   (eval $ac_try) 2>&5
42920   ac_status=$?
42921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42922   (exit $ac_status); }; } &&
42923          { ac_try='test -s conftest$ac_exeext'
42924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42925   (eval $ac_try) 2>&5
42926   ac_status=$?
42927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42928   (exit $ac_status); }; }; then
42929   eval "$as_ac_var=yes"
42930 else
42931   echo "$as_me: failed program was:" >&5
42932 sed 's/^/| /' conftest.$ac_ext >&5
42933
42934 eval "$as_ac_var=no"
42935 fi
42936 rm -f conftest.err conftest.$ac_objext \
42937       conftest$ac_exeext conftest.$ac_ext
42938 fi
42939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42941 if test `eval echo '${'$as_ac_var'}'` = yes; then
42942   cat >>confdefs.h <<_ACEOF
42943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42944 _ACEOF
42945
42946 echo "$as_me:$LINENO: checking for _doprnt" >&5
42947 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
42948 if test "${ac_cv_func__doprnt+set}" = set; then
42949   echo $ECHO_N "(cached) $ECHO_C" >&6
42950 else
42951   cat >conftest.$ac_ext <<_ACEOF
42952 /* confdefs.h.  */
42953 _ACEOF
42954 cat confdefs.h >>conftest.$ac_ext
42955 cat >>conftest.$ac_ext <<_ACEOF
42956 /* end confdefs.h.  */
42957 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
42958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42959 #define _doprnt innocuous__doprnt
42960
42961 /* System header to define __stub macros and hopefully few prototypes,
42962     which can conflict with char _doprnt (); below.
42963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42964     <limits.h> exists even on freestanding compilers.  */
42965
42966 #ifdef __STDC__
42967 # include <limits.h>
42968 #else
42969 # include <assert.h>
42970 #endif
42971
42972 #undef _doprnt
42973
42974 /* Override any gcc2 internal prototype to avoid an error.  */
42975 #ifdef __cplusplus
42976 extern "C"
42977 {
42978 #endif
42979 /* We use char because int might match the return type of a gcc2
42980    builtin and then its argument prototype would still apply.  */
42981 char _doprnt ();
42982 /* The GNU C library defines this for functions which it implements
42983     to always fail with ENOSYS.  Some functions are actually named
42984     something starting with __ and the normal name is an alias.  */
42985 #if defined (__stub__doprnt) || defined (__stub____doprnt)
42986 choke me
42987 #else
42988 char (*f) () = _doprnt;
42989 #endif
42990 #ifdef __cplusplus
42991 }
42992 #endif
42993
42994 int
42995 main ()
42996 {
42997 return f != _doprnt;
42998   ;
42999   return 0;
43000 }
43001 _ACEOF
43002 rm -f conftest.$ac_objext conftest$ac_exeext
43003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43004   (eval $ac_link) 2>conftest.er1
43005   ac_status=$?
43006   grep -v '^ *+' conftest.er1 >conftest.err
43007   rm -f conftest.er1
43008   cat conftest.err >&5
43009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43010   (exit $ac_status); } &&
43011          { ac_try='test -z "$ac_c_werror_flag"
43012                          || test ! -s conftest.err'
43013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43014   (eval $ac_try) 2>&5
43015   ac_status=$?
43016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43017   (exit $ac_status); }; } &&
43018          { ac_try='test -s conftest$ac_exeext'
43019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43020   (eval $ac_try) 2>&5
43021   ac_status=$?
43022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43023   (exit $ac_status); }; }; then
43024   ac_cv_func__doprnt=yes
43025 else
43026   echo "$as_me: failed program was:" >&5
43027 sed 's/^/| /' conftest.$ac_ext >&5
43028
43029 ac_cv_func__doprnt=no
43030 fi
43031 rm -f conftest.err conftest.$ac_objext \
43032       conftest$ac_exeext conftest.$ac_ext
43033 fi
43034 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43035 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43036 if test $ac_cv_func__doprnt = yes; then
43037
43038 cat >>confdefs.h <<\_ACEOF
43039 #define HAVE_DOPRNT 1
43040 _ACEOF
43041
43042 fi
43043
43044 fi
43045 done
43046
43047
43048
43049 if test $ac_cv_func_vprintf = yes ; then
43050
43051
43052 for ac_func in snprintf vsnprintf
43053 do
43054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43055 echo "$as_me:$LINENO: checking for $ac_func" >&5
43056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43057 if eval "test \"\${$as_ac_var+set}\" = set"; then
43058   echo $ECHO_N "(cached) $ECHO_C" >&6
43059 else
43060   cat >conftest.$ac_ext <<_ACEOF
43061 /* confdefs.h.  */
43062 _ACEOF
43063 cat confdefs.h >>conftest.$ac_ext
43064 cat >>conftest.$ac_ext <<_ACEOF
43065 /* end confdefs.h.  */
43066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43068 #define $ac_func innocuous_$ac_func
43069
43070 /* System header to define __stub macros and hopefully few prototypes,
43071     which can conflict with char $ac_func (); below.
43072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43073     <limits.h> exists even on freestanding compilers.  */
43074
43075 #ifdef __STDC__
43076 # include <limits.h>
43077 #else
43078 # include <assert.h>
43079 #endif
43080
43081 #undef $ac_func
43082
43083 /* Override any gcc2 internal prototype to avoid an error.  */
43084 #ifdef __cplusplus
43085 extern "C"
43086 {
43087 #endif
43088 /* We use char because int might match the return type of a gcc2
43089    builtin and then its argument prototype would still apply.  */
43090 char $ac_func ();
43091 /* The GNU C library defines this for functions which it implements
43092     to always fail with ENOSYS.  Some functions are actually named
43093     something starting with __ and the normal name is an alias.  */
43094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43095 choke me
43096 #else
43097 char (*f) () = $ac_func;
43098 #endif
43099 #ifdef __cplusplus
43100 }
43101 #endif
43102
43103 int
43104 main ()
43105 {
43106 return f != $ac_func;
43107   ;
43108   return 0;
43109 }
43110 _ACEOF
43111 rm -f conftest.$ac_objext conftest$ac_exeext
43112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43113   (eval $ac_link) 2>conftest.er1
43114   ac_status=$?
43115   grep -v '^ *+' conftest.er1 >conftest.err
43116   rm -f conftest.er1
43117   cat conftest.err >&5
43118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43119   (exit $ac_status); } &&
43120          { ac_try='test -z "$ac_c_werror_flag"
43121                          || test ! -s conftest.err'
43122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43123   (eval $ac_try) 2>&5
43124   ac_status=$?
43125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43126   (exit $ac_status); }; } &&
43127          { ac_try='test -s conftest$ac_exeext'
43128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43129   (eval $ac_try) 2>&5
43130   ac_status=$?
43131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43132   (exit $ac_status); }; }; then
43133   eval "$as_ac_var=yes"
43134 else
43135   echo "$as_me: failed program was:" >&5
43136 sed 's/^/| /' conftest.$ac_ext >&5
43137
43138 eval "$as_ac_var=no"
43139 fi
43140 rm -f conftest.err conftest.$ac_objext \
43141       conftest$ac_exeext conftest.$ac_ext
43142 fi
43143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43145 if test `eval echo '${'$as_ac_var'}'` = yes; then
43146   cat >>confdefs.h <<_ACEOF
43147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43148 _ACEOF
43149
43150 fi
43151 done
43152
43153 fi
43154
43155
43156
43157
43158
43159
43160
43161
43162
43163
43164
43165
43166
43167
43168
43169
43170
43171
43172
43173
43174
43175
43176
43177
43178
43179
43180
43181
43182
43183
43184
43185
43186
43187
43188
43189
43190
43191
43192
43193
43194
43195
43196
43197
43198
43199
43200
43201
43202
43203
43204
43205
43206
43207
43208
43209 for ac_func in \
43210         bcopy                   \
43211         closesocket             \
43212         chroot                  \
43213         endgrent                \
43214         endpwent                \
43215         fcntl                   \
43216         flock                   \
43217         fstat                   \
43218         getdtablesize   \
43219         getgrgid                \
43220         gethostname             \
43221         getpass                 \
43222         getpassphrase   \
43223         getpwuid                \
43224         getpwnam                \
43225         getspnam                \
43226         gettimeofday    \
43227         initgroups              \
43228         inet_ntoa_b             \
43229         lockf                   \
43230         memcpy                  \
43231         memmove                 \
43232         memrchr                 \
43233         mkstemp                 \
43234         mktemp                  \
43235         pipe                    \
43236         read                    \
43237         recv                    \
43238         recvfrom                \
43239         setpwfile               \
43240         setgid                  \
43241         setegid                 \
43242         setsid                  \
43243         setuid                  \
43244         seteuid                 \
43245         signal                  \
43246         strdup                  \
43247         strpbrk                 \
43248         strrchr                 \
43249         strsep                  \
43250         strstr                  \
43251         strtol                  \
43252         strtoul                 \
43253         strtoq                  \
43254         strtouq                 \
43255         strtoll                 \
43256         strspn                  \
43257         sysconf                 \
43258         waitpid                 \
43259         wait4                   \
43260         write                   \
43261         send                    \
43262         sendmsg                 \
43263         sendto                  \
43264
43265 do
43266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43267 echo "$as_me:$LINENO: checking for $ac_func" >&5
43268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43269 if eval "test \"\${$as_ac_var+set}\" = set"; then
43270   echo $ECHO_N "(cached) $ECHO_C" >&6
43271 else
43272   cat >conftest.$ac_ext <<_ACEOF
43273 /* confdefs.h.  */
43274 _ACEOF
43275 cat confdefs.h >>conftest.$ac_ext
43276 cat >>conftest.$ac_ext <<_ACEOF
43277 /* end confdefs.h.  */
43278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43280 #define $ac_func innocuous_$ac_func
43281
43282 /* System header to define __stub macros and hopefully few prototypes,
43283     which can conflict with char $ac_func (); below.
43284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43285     <limits.h> exists even on freestanding compilers.  */
43286
43287 #ifdef __STDC__
43288 # include <limits.h>
43289 #else
43290 # include <assert.h>
43291 #endif
43292
43293 #undef $ac_func
43294
43295 /* Override any gcc2 internal prototype to avoid an error.  */
43296 #ifdef __cplusplus
43297 extern "C"
43298 {
43299 #endif
43300 /* We use char because int might match the return type of a gcc2
43301    builtin and then its argument prototype would still apply.  */
43302 char $ac_func ();
43303 /* The GNU C library defines this for functions which it implements
43304     to always fail with ENOSYS.  Some functions are actually named
43305     something starting with __ and the normal name is an alias.  */
43306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43307 choke me
43308 #else
43309 char (*f) () = $ac_func;
43310 #endif
43311 #ifdef __cplusplus
43312 }
43313 #endif
43314
43315 int
43316 main ()
43317 {
43318 return f != $ac_func;
43319   ;
43320   return 0;
43321 }
43322 _ACEOF
43323 rm -f conftest.$ac_objext conftest$ac_exeext
43324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43325   (eval $ac_link) 2>conftest.er1
43326   ac_status=$?
43327   grep -v '^ *+' conftest.er1 >conftest.err
43328   rm -f conftest.er1
43329   cat conftest.err >&5
43330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43331   (exit $ac_status); } &&
43332          { ac_try='test -z "$ac_c_werror_flag"
43333                          || test ! -s conftest.err'
43334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43335   (eval $ac_try) 2>&5
43336   ac_status=$?
43337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43338   (exit $ac_status); }; } &&
43339          { ac_try='test -s conftest$ac_exeext'
43340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43341   (eval $ac_try) 2>&5
43342   ac_status=$?
43343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43344   (exit $ac_status); }; }; then
43345   eval "$as_ac_var=yes"
43346 else
43347   echo "$as_me: failed program was:" >&5
43348 sed 's/^/| /' conftest.$ac_ext >&5
43349
43350 eval "$as_ac_var=no"
43351 fi
43352 rm -f conftest.err conftest.$ac_objext \
43353       conftest$ac_exeext conftest.$ac_ext
43354 fi
43355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43357 if test `eval echo '${'$as_ac_var'}'` = yes; then
43358   cat >>confdefs.h <<_ACEOF
43359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43360 _ACEOF
43361
43362 fi
43363 done
43364
43365
43366
43367
43368 for ac_func in getopt getpeereid
43369 do
43370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43371 echo "$as_me:$LINENO: checking for $ac_func" >&5
43372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43373 if eval "test \"\${$as_ac_var+set}\" = set"; then
43374   echo $ECHO_N "(cached) $ECHO_C" >&6
43375 else
43376   cat >conftest.$ac_ext <<_ACEOF
43377 /* confdefs.h.  */
43378 _ACEOF
43379 cat confdefs.h >>conftest.$ac_ext
43380 cat >>conftest.$ac_ext <<_ACEOF
43381 /* end confdefs.h.  */
43382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43384 #define $ac_func innocuous_$ac_func
43385
43386 /* System header to define __stub macros and hopefully few prototypes,
43387     which can conflict with char $ac_func (); below.
43388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43389     <limits.h> exists even on freestanding compilers.  */
43390
43391 #ifdef __STDC__
43392 # include <limits.h>
43393 #else
43394 # include <assert.h>
43395 #endif
43396
43397 #undef $ac_func
43398
43399 /* Override any gcc2 internal prototype to avoid an error.  */
43400 #ifdef __cplusplus
43401 extern "C"
43402 {
43403 #endif
43404 /* We use char because int might match the return type of a gcc2
43405    builtin and then its argument prototype would still apply.  */
43406 char $ac_func ();
43407 /* The GNU C library defines this for functions which it implements
43408     to always fail with ENOSYS.  Some functions are actually named
43409     something starting with __ and the normal name is an alias.  */
43410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43411 choke me
43412 #else
43413 char (*f) () = $ac_func;
43414 #endif
43415 #ifdef __cplusplus
43416 }
43417 #endif
43418
43419 int
43420 main ()
43421 {
43422 return f != $ac_func;
43423   ;
43424   return 0;
43425 }
43426 _ACEOF
43427 rm -f conftest.$ac_objext conftest$ac_exeext
43428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43429   (eval $ac_link) 2>conftest.er1
43430   ac_status=$?
43431   grep -v '^ *+' conftest.er1 >conftest.err
43432   rm -f conftest.er1
43433   cat conftest.err >&5
43434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43435   (exit $ac_status); } &&
43436          { ac_try='test -z "$ac_c_werror_flag"
43437                          || test ! -s conftest.err'
43438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43439   (eval $ac_try) 2>&5
43440   ac_status=$?
43441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43442   (exit $ac_status); }; } &&
43443          { ac_try='test -s conftest$ac_exeext'
43444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43445   (eval $ac_try) 2>&5
43446   ac_status=$?
43447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43448   (exit $ac_status); }; }; then
43449   eval "$as_ac_var=yes"
43450 else
43451   echo "$as_me: failed program was:" >&5
43452 sed 's/^/| /' conftest.$ac_ext >&5
43453
43454 eval "$as_ac_var=no"
43455 fi
43456 rm -f conftest.err conftest.$ac_objext \
43457       conftest$ac_exeext conftest.$ac_ext
43458 fi
43459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43461 if test `eval echo '${'$as_ac_var'}'` = yes; then
43462   cat >>confdefs.h <<_ACEOF
43463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43464 _ACEOF
43465
43466 else
43467   case $LIBOBJS in
43468     "$ac_func.$ac_objext"   | \
43469   *" $ac_func.$ac_objext"   | \
43470     "$ac_func.$ac_objext "* | \
43471   *" $ac_func.$ac_objext "* ) ;;
43472   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43473 esac
43474
43475 fi
43476 done
43477
43478
43479
43480 if test "$ac_cv_func_getopt" != yes; then
43481         LIBSRCS="$LIBSRCS getopt.c"
43482 fi
43483
43484 if test "$ac_cv_func_getpeereid" != yes; then
43485
43486 for ac_func in getpeerucred
43487 do
43488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43489 echo "$as_me:$LINENO: checking for $ac_func" >&5
43490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43491 if eval "test \"\${$as_ac_var+set}\" = set"; then
43492   echo $ECHO_N "(cached) $ECHO_C" >&6
43493 else
43494   cat >conftest.$ac_ext <<_ACEOF
43495 /* confdefs.h.  */
43496 _ACEOF
43497 cat confdefs.h >>conftest.$ac_ext
43498 cat >>conftest.$ac_ext <<_ACEOF
43499 /* end confdefs.h.  */
43500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43502 #define $ac_func innocuous_$ac_func
43503
43504 /* System header to define __stub macros and hopefully few prototypes,
43505     which can conflict with char $ac_func (); below.
43506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43507     <limits.h> exists even on freestanding compilers.  */
43508
43509 #ifdef __STDC__
43510 # include <limits.h>
43511 #else
43512 # include <assert.h>
43513 #endif
43514
43515 #undef $ac_func
43516
43517 /* Override any gcc2 internal prototype to avoid an error.  */
43518 #ifdef __cplusplus
43519 extern "C"
43520 {
43521 #endif
43522 /* We use char because int might match the return type of a gcc2
43523    builtin and then its argument prototype would still apply.  */
43524 char $ac_func ();
43525 /* The GNU C library defines this for functions which it implements
43526     to always fail with ENOSYS.  Some functions are actually named
43527     something starting with __ and the normal name is an alias.  */
43528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43529 choke me
43530 #else
43531 char (*f) () = $ac_func;
43532 #endif
43533 #ifdef __cplusplus
43534 }
43535 #endif
43536
43537 int
43538 main ()
43539 {
43540 return f != $ac_func;
43541   ;
43542   return 0;
43543 }
43544 _ACEOF
43545 rm -f conftest.$ac_objext conftest$ac_exeext
43546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43547   (eval $ac_link) 2>conftest.er1
43548   ac_status=$?
43549   grep -v '^ *+' conftest.er1 >conftest.err
43550   rm -f conftest.er1
43551   cat conftest.err >&5
43552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43553   (exit $ac_status); } &&
43554          { ac_try='test -z "$ac_c_werror_flag"
43555                          || test ! -s conftest.err'
43556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43557   (eval $ac_try) 2>&5
43558   ac_status=$?
43559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43560   (exit $ac_status); }; } &&
43561          { ac_try='test -s conftest$ac_exeext'
43562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43563   (eval $ac_try) 2>&5
43564   ac_status=$?
43565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43566   (exit $ac_status); }; }; then
43567   eval "$as_ac_var=yes"
43568 else
43569   echo "$as_me: failed program was:" >&5
43570 sed 's/^/| /' conftest.$ac_ext >&5
43571
43572 eval "$as_ac_var=no"
43573 fi
43574 rm -f conftest.err conftest.$ac_objext \
43575       conftest$ac_exeext conftest.$ac_ext
43576 fi
43577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43579 if test `eval echo '${'$as_ac_var'}'` = yes; then
43580   cat >>confdefs.h <<_ACEOF
43581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43582 _ACEOF
43583
43584 fi
43585 done
43586
43587         if test "$ac_cv_func_getpeerucred" != yes ; then
43588                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43589 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43590 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43591   echo $ECHO_N "(cached) $ECHO_C" >&6
43592 else
43593   cat >conftest.$ac_ext <<_ACEOF
43594 /* confdefs.h.  */
43595 _ACEOF
43596 cat confdefs.h >>conftest.$ac_ext
43597 cat >>conftest.$ac_ext <<_ACEOF
43598 /* end confdefs.h.  */
43599 $ac_includes_default
43600 #ifdef HAVE_SYS_SOCKET_H
43601 #include <sys/socket.h>
43602 #endif
43603
43604 int
43605 main ()
43606 {
43607 static struct msghdr ac_aggr;
43608 if (ac_aggr.msg_accrightslen)
43609 return 0;
43610   ;
43611   return 0;
43612 }
43613 _ACEOF
43614 rm -f conftest.$ac_objext
43615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43616   (eval $ac_compile) 2>conftest.er1
43617   ac_status=$?
43618   grep -v '^ *+' conftest.er1 >conftest.err
43619   rm -f conftest.er1
43620   cat conftest.err >&5
43621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43622   (exit $ac_status); } &&
43623          { ac_try='test -z "$ac_c_werror_flag"
43624                          || test ! -s conftest.err'
43625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43626   (eval $ac_try) 2>&5
43627   ac_status=$?
43628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43629   (exit $ac_status); }; } &&
43630          { ac_try='test -s conftest.$ac_objext'
43631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43632   (eval $ac_try) 2>&5
43633   ac_status=$?
43634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43635   (exit $ac_status); }; }; then
43636   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43637 else
43638   echo "$as_me: failed program was:" >&5
43639 sed 's/^/| /' conftest.$ac_ext >&5
43640
43641 cat >conftest.$ac_ext <<_ACEOF
43642 /* confdefs.h.  */
43643 _ACEOF
43644 cat confdefs.h >>conftest.$ac_ext
43645 cat >>conftest.$ac_ext <<_ACEOF
43646 /* end confdefs.h.  */
43647 $ac_includes_default
43648 #ifdef HAVE_SYS_SOCKET_H
43649 #include <sys/socket.h>
43650 #endif
43651
43652 int
43653 main ()
43654 {
43655 static struct msghdr ac_aggr;
43656 if (sizeof ac_aggr.msg_accrightslen)
43657 return 0;
43658   ;
43659   return 0;
43660 }
43661 _ACEOF
43662 rm -f conftest.$ac_objext
43663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43664   (eval $ac_compile) 2>conftest.er1
43665   ac_status=$?
43666   grep -v '^ *+' conftest.er1 >conftest.err
43667   rm -f conftest.er1
43668   cat conftest.err >&5
43669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43670   (exit $ac_status); } &&
43671          { ac_try='test -z "$ac_c_werror_flag"
43672                          || test ! -s conftest.err'
43673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43674   (eval $ac_try) 2>&5
43675   ac_status=$?
43676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43677   (exit $ac_status); }; } &&
43678          { ac_try='test -s conftest.$ac_objext'
43679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43680   (eval $ac_try) 2>&5
43681   ac_status=$?
43682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43683   (exit $ac_status); }; }; then
43684   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43685 else
43686   echo "$as_me: failed program was:" >&5
43687 sed 's/^/| /' conftest.$ac_ext >&5
43688
43689 ac_cv_member_struct_msghdr_msg_accrightslen=no
43690 fi
43691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43692 fi
43693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43694 fi
43695 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43696 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43697 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43698
43699 cat >>confdefs.h <<_ACEOF
43700 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43701 _ACEOF
43702
43703
43704 fi
43705
43706                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43707                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43708 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43709 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43710   echo $ECHO_N "(cached) $ECHO_C" >&6
43711 else
43712   cat >conftest.$ac_ext <<_ACEOF
43713 /* confdefs.h.  */
43714 _ACEOF
43715 cat confdefs.h >>conftest.$ac_ext
43716 cat >>conftest.$ac_ext <<_ACEOF
43717 /* end confdefs.h.  */
43718 $ac_includes_default
43719 #ifdef HAVE_SYS_SOCKET_H
43720 #include <sys/socket.h>
43721 #endif
43722
43723 int
43724 main ()
43725 {
43726 static struct msghdr ac_aggr;
43727 if (ac_aggr.msg_control)
43728 return 0;
43729   ;
43730   return 0;
43731 }
43732 _ACEOF
43733 rm -f conftest.$ac_objext
43734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43735   (eval $ac_compile) 2>conftest.er1
43736   ac_status=$?
43737   grep -v '^ *+' conftest.er1 >conftest.err
43738   rm -f conftest.er1
43739   cat conftest.err >&5
43740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43741   (exit $ac_status); } &&
43742          { ac_try='test -z "$ac_c_werror_flag"
43743                          || test ! -s conftest.err'
43744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43745   (eval $ac_try) 2>&5
43746   ac_status=$?
43747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43748   (exit $ac_status); }; } &&
43749          { ac_try='test -s conftest.$ac_objext'
43750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43751   (eval $ac_try) 2>&5
43752   ac_status=$?
43753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43754   (exit $ac_status); }; }; then
43755   ac_cv_member_struct_msghdr_msg_control=yes
43756 else
43757   echo "$as_me: failed program was:" >&5
43758 sed 's/^/| /' conftest.$ac_ext >&5
43759
43760 cat >conftest.$ac_ext <<_ACEOF
43761 /* confdefs.h.  */
43762 _ACEOF
43763 cat confdefs.h >>conftest.$ac_ext
43764 cat >>conftest.$ac_ext <<_ACEOF
43765 /* end confdefs.h.  */
43766 $ac_includes_default
43767 #ifdef HAVE_SYS_SOCKET_H
43768 #include <sys/socket.h>
43769 #endif
43770
43771 int
43772 main ()
43773 {
43774 static struct msghdr ac_aggr;
43775 if (sizeof ac_aggr.msg_control)
43776 return 0;
43777   ;
43778   return 0;
43779 }
43780 _ACEOF
43781 rm -f conftest.$ac_objext
43782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43783   (eval $ac_compile) 2>conftest.er1
43784   ac_status=$?
43785   grep -v '^ *+' conftest.er1 >conftest.err
43786   rm -f conftest.er1
43787   cat conftest.err >&5
43788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43789   (exit $ac_status); } &&
43790          { ac_try='test -z "$ac_c_werror_flag"
43791                          || test ! -s conftest.err'
43792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43793   (eval $ac_try) 2>&5
43794   ac_status=$?
43795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43796   (exit $ac_status); }; } &&
43797          { ac_try='test -s conftest.$ac_objext'
43798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43799   (eval $ac_try) 2>&5
43800   ac_status=$?
43801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43802   (exit $ac_status); }; }; then
43803   ac_cv_member_struct_msghdr_msg_control=yes
43804 else
43805   echo "$as_me: failed program was:" >&5
43806 sed 's/^/| /' conftest.$ac_ext >&5
43807
43808 ac_cv_member_struct_msghdr_msg_control=no
43809 fi
43810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43811 fi
43812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43813 fi
43814 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43815 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43816 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43817
43818 cat >>confdefs.h <<_ACEOF
43819 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43820 _ACEOF
43821
43822
43823 fi
43824
43825                 fi
43826         fi
43827         LIBSRCS="$LIBSRCS getpeereid.c"
43828 fi
43829
43830 if test "$ac_cv_func_snprintf" != yes ||
43831    test "$ac_cv_func_vsnprintf" != yes; then
43832         if test "$ac_cv_func_snprintf" != yes; then
43833
43834 cat >>confdefs.h <<\_ACEOF
43835 #define snprintf ber_pvt_snprintf
43836 _ACEOF
43837
43838         fi
43839         if test "$ac_cv_func_vsnprintf" != yes; then
43840
43841 cat >>confdefs.h <<\_ACEOF
43842 #define vsnprintf ber_pvt_vsnprintf
43843 _ACEOF
43844
43845         fi
43846 fi
43847
43848
43849 if test "$ol_enable_slapi" != no ; then
43850
43851 for ac_header in ltdl.h
43852 do
43853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43855   echo "$as_me:$LINENO: checking for $ac_header" >&5
43856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43858   echo $ECHO_N "(cached) $ECHO_C" >&6
43859 fi
43860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43862 else
43863   # Is the header compilable?
43864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43866 cat >conftest.$ac_ext <<_ACEOF
43867 /* confdefs.h.  */
43868 _ACEOF
43869 cat confdefs.h >>conftest.$ac_ext
43870 cat >>conftest.$ac_ext <<_ACEOF
43871 /* end confdefs.h.  */
43872 $ac_includes_default
43873 #include <$ac_header>
43874 _ACEOF
43875 rm -f conftest.$ac_objext
43876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43877   (eval $ac_compile) 2>conftest.er1
43878   ac_status=$?
43879   grep -v '^ *+' conftest.er1 >conftest.err
43880   rm -f conftest.er1
43881   cat conftest.err >&5
43882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43883   (exit $ac_status); } &&
43884          { ac_try='test -z "$ac_c_werror_flag"
43885                          || test ! -s conftest.err'
43886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43887   (eval $ac_try) 2>&5
43888   ac_status=$?
43889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43890   (exit $ac_status); }; } &&
43891          { ac_try='test -s conftest.$ac_objext'
43892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43893   (eval $ac_try) 2>&5
43894   ac_status=$?
43895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43896   (exit $ac_status); }; }; then
43897   ac_header_compiler=yes
43898 else
43899   echo "$as_me: failed program was:" >&5
43900 sed 's/^/| /' conftest.$ac_ext >&5
43901
43902 ac_header_compiler=no
43903 fi
43904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43906 echo "${ECHO_T}$ac_header_compiler" >&6
43907
43908 # Is the header present?
43909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43911 cat >conftest.$ac_ext <<_ACEOF
43912 /* confdefs.h.  */
43913 _ACEOF
43914 cat confdefs.h >>conftest.$ac_ext
43915 cat >>conftest.$ac_ext <<_ACEOF
43916 /* end confdefs.h.  */
43917 #include <$ac_header>
43918 _ACEOF
43919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43921   ac_status=$?
43922   grep -v '^ *+' conftest.er1 >conftest.err
43923   rm -f conftest.er1
43924   cat conftest.err >&5
43925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43926   (exit $ac_status); } >/dev/null; then
43927   if test -s conftest.err; then
43928     ac_cpp_err=$ac_c_preproc_warn_flag
43929     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43930   else
43931     ac_cpp_err=
43932   fi
43933 else
43934   ac_cpp_err=yes
43935 fi
43936 if test -z "$ac_cpp_err"; then
43937   ac_header_preproc=yes
43938 else
43939   echo "$as_me: failed program was:" >&5
43940 sed 's/^/| /' conftest.$ac_ext >&5
43941
43942   ac_header_preproc=no
43943 fi
43944 rm -f conftest.err conftest.$ac_ext
43945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43946 echo "${ECHO_T}$ac_header_preproc" >&6
43947
43948 # So?  What about this header?
43949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43950   yes:no: )
43951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43955     ac_header_preproc=yes
43956     ;;
43957   no:yes:* )
43958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43960     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43961 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43962     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43964     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43965 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43968     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43970     (
43971       cat <<\_ASBOX
43972 ## ------------------------------------------ ##
43973 ## Report this to the AC_PACKAGE_NAME lists.  ##
43974 ## ------------------------------------------ ##
43975 _ASBOX
43976     ) |
43977       sed "s/^/$as_me: WARNING:     /" >&2
43978     ;;
43979 esac
43980 echo "$as_me:$LINENO: checking for $ac_header" >&5
43981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43983   echo $ECHO_N "(cached) $ECHO_C" >&6
43984 else
43985   eval "$as_ac_Header=\$ac_header_preproc"
43986 fi
43987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43989
43990 fi
43991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43992   cat >>confdefs.h <<_ACEOF
43993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43994 _ACEOF
43995
43996 fi
43997
43998 done
43999
44000
44001         if test $ac_cv_header_ltdl_h != yes ; then
44002                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
44003 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44004    { (exit 1); exit 1; }; }
44005         fi
44006         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44007 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
44008 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44009   echo $ECHO_N "(cached) $ECHO_C" >&6
44010 else
44011   ac_check_lib_save_LIBS=$LIBS
44012 LIBS="-lltdl  $LIBS"
44013 cat >conftest.$ac_ext <<_ACEOF
44014 /* confdefs.h.  */
44015 _ACEOF
44016 cat confdefs.h >>conftest.$ac_ext
44017 cat >>conftest.$ac_ext <<_ACEOF
44018 /* end confdefs.h.  */
44019
44020 /* Override any gcc2 internal prototype to avoid an error.  */
44021 #ifdef __cplusplus
44022 extern "C"
44023 #endif
44024 /* We use char because int might match the return type of a gcc2
44025    builtin and then its argument prototype would still apply.  */
44026 char lt_dlinit ();
44027 int
44028 main ()
44029 {
44030 lt_dlinit ();
44031   ;
44032   return 0;
44033 }
44034 _ACEOF
44035 rm -f conftest.$ac_objext conftest$ac_exeext
44036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44037   (eval $ac_link) 2>conftest.er1
44038   ac_status=$?
44039   grep -v '^ *+' conftest.er1 >conftest.err
44040   rm -f conftest.er1
44041   cat conftest.err >&5
44042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44043   (exit $ac_status); } &&
44044          { ac_try='test -z "$ac_c_werror_flag"
44045                          || test ! -s conftest.err'
44046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44047   (eval $ac_try) 2>&5
44048   ac_status=$?
44049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44050   (exit $ac_status); }; } &&
44051          { ac_try='test -s conftest$ac_exeext'
44052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44053   (eval $ac_try) 2>&5
44054   ac_status=$?
44055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44056   (exit $ac_status); }; }; then
44057   ac_cv_lib_ltdl_lt_dlinit=yes
44058 else
44059   echo "$as_me: failed program was:" >&5
44060 sed 's/^/| /' conftest.$ac_ext >&5
44061
44062 ac_cv_lib_ltdl_lt_dlinit=no
44063 fi
44064 rm -f conftest.err conftest.$ac_objext \
44065       conftest$ac_exeext conftest.$ac_ext
44066 LIBS=$ac_check_lib_save_LIBS
44067 fi
44068 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44069 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44070 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44071
44072                 SLAPI_LIBS=-lltdl
44073                 LIBSLAPI=libslapi.a
44074                 LIBSLAPITOOLS=../libslapi.a
44075
44076 cat >>confdefs.h <<\_ACEOF
44077 #define HAVE_LIBLTDL 1
44078 _ACEOF
44079
44080
44081 else
44082   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44083 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44084    { (exit 1); exit 1; }; }
44085 fi
44086
44087
44088
44089 cat >>confdefs.h <<\_ACEOF
44090 #define LDAP_SLAPI 1
44091 _ACEOF
44092
44093 fi
44094
44095 if test "$ol_enable_debug" != no ; then
44096         if test "$ol_enable_debug" = traditional; then
44097
44098 cat >>confdefs.h <<\_ACEOF
44099 #define OLD_DEBUG 1
44100 _ACEOF
44101
44102         fi
44103
44104 cat >>confdefs.h <<\_ACEOF
44105 #define LDAP_DEBUG 1
44106 _ACEOF
44107
44108 fi
44109 if test "$ol_enable_syslog" = yes ; then
44110
44111 cat >>confdefs.h <<\_ACEOF
44112 #define LDAP_SYSLOG 1
44113 _ACEOF
44114
44115 fi
44116 if test "$ol_link_kbind" != no ; then
44117
44118 cat >>confdefs.h <<\_ACEOF
44119 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44120 _ACEOF
44121
44122 fi
44123 if test "$ol_enable_proctitle" != no ; then
44124
44125 cat >>confdefs.h <<\_ACEOF
44126 #define LDAP_PROCTITLE 1
44127 _ACEOF
44128
44129 fi
44130 if test "$ol_enable_referrals" != no ; then
44131
44132 cat >>confdefs.h <<\_ACEOF
44133 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44134 _ACEOF
44135
44136 fi
44137 if test "$ol_enable_local" != no; then
44138
44139 cat >>confdefs.h <<\_ACEOF
44140 #define LDAP_PF_LOCAL 1
44141 _ACEOF
44142
44143 fi
44144 if test "$ol_link_ipv6" != no; then
44145
44146 cat >>confdefs.h <<\_ACEOF
44147 #define LDAP_PF_INET6 1
44148 _ACEOF
44149
44150 fi
44151 if test "$ol_enable_cleartext" != no ; then
44152
44153 cat >>confdefs.h <<\_ACEOF
44154 #define SLAPD_CLEARTEXT 1
44155 _ACEOF
44156
44157 fi
44158 if test "$ol_enable_crypt" != no ; then
44159
44160 cat >>confdefs.h <<\_ACEOF
44161 #define SLAPD_CRYPT 1
44162 _ACEOF
44163
44164 fi
44165 if test "$ol_link_spasswd" != no ; then
44166
44167 cat >>confdefs.h <<\_ACEOF
44168 #define SLAPD_SPASSWD 1
44169 _ACEOF
44170
44171 fi
44172 if test "$ol_enable_multimaster" != no ; then
44173
44174 cat >>confdefs.h <<\_ACEOF
44175 #define SLAPD_MULTIMASTER 1
44176 _ACEOF
44177
44178 fi
44179 if test "$ol_enable_rlookups" != no ; then
44180
44181 cat >>confdefs.h <<\_ACEOF
44182 #define SLAPD_RLOOKUPS 1
44183 _ACEOF
44184
44185 fi
44186 if test "$ol_enable_aci" != no ; then
44187         if test $ol_enable_dynacl = no ; then
44188                 ol_enable_dynacl=yes
44189                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
44190 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
44191         fi
44192         if test "$ol_enable_aci" = mod ; then
44193                 MFLAG=SLAPD_MOD_DYNAMIC
44194                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
44195 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
44196    { (exit 1); exit 1; }; }
44197         else
44198                 MFLAG=SLAPD_MOD_STATIC
44199         fi
44200         WITH_ACI_ENABLED=$ol_enable_aci
44201
44202 cat >>confdefs.h <<_ACEOF
44203 #define SLAPD_ACI_ENABLED $MFLAG
44204 _ACEOF
44205
44206 else
44207         WITH_ACI_ENABLED=no
44208 fi
44209 if test "$ol_enable_dynacl" != no ; then
44210
44211 cat >>confdefs.h <<\_ACEOF
44212 #define SLAP_DYNACL 1
44213 _ACEOF
44214
44215 fi
44216
44217 if test "$ol_link_modules" != no ; then
44218
44219 cat >>confdefs.h <<\_ACEOF
44220 #define SLAPD_MODULES 1
44221 _ACEOF
44222
44223         BUILD_SLAPD=yes
44224         SLAPD_MODULES_LDFLAGS="-dlopen self"
44225 fi
44226
44227
44228 cat >>confdefs.h <<\_ACEOF
44229 #define SLAPD_MOD_STATIC 1
44230 _ACEOF
44231
44232
44233 cat >>confdefs.h <<\_ACEOF
44234 #define SLAPD_MOD_DYNAMIC 2
44235 _ACEOF
44236
44237
44238 if test "$ol_enable_bdb" != no ; then
44239         BUILD_SLAPD=yes
44240         BUILD_BDB=$ol_enable_bdb
44241         if test "$ol_enable_bdb" = mod ; then
44242                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44243                 MFLAG=SLAPD_MOD_DYNAMIC
44244         else
44245                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44246                 MFLAG=SLAPD_MOD_STATIC
44247         fi
44248
44249 cat >>confdefs.h <<_ACEOF
44250 #define SLAPD_BDB $MFLAG
44251 _ACEOF
44252
44253 fi
44254
44255 if test "$ol_enable_dnssrv" != no ; then
44256         BUILD_SLAPD=yes
44257         BUILD_DNSSRV=$ol_enable_dnssrv
44258         if test "$ol_enable_dnssrv" = mod ; then
44259                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44260                 MFLAG=SLAPD_MOD_DYNAMIC
44261         else
44262                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44263                 MFLAG=SLAPD_MOD_STATIC
44264         fi
44265
44266 cat >>confdefs.h <<_ACEOF
44267 #define SLAPD_DNSSRV $MFLAG
44268 _ACEOF
44269
44270 fi
44271
44272 if test "$ol_enable_hdb" != no ; then
44273         BUILD_SLAPD=yes
44274         BUILD_HDB=$ol_enable_hdb
44275         if test "$ol_enable_hdb" = mod ; then
44276                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44277                 MFLAG=SLAPD_MOD_DYNAMIC
44278         else
44279                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44280                 MFLAG=SLAPD_MOD_STATIC
44281         fi
44282
44283 cat >>confdefs.h <<_ACEOF
44284 #define SLAPD_HDB $MFLAG
44285 _ACEOF
44286
44287 fi
44288
44289 if test "$ol_enable_ldap" != no ; then
44290         BUILD_SLAPD=yes
44291         BUILD_LDAP=$ol_enable_ldap
44292         if test "$ol_enable_ldap" = mod ; then
44293                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44294                 MFLAG=SLAPD_MOD_DYNAMIC
44295         else
44296                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44297                 MFLAG=SLAPD_MOD_STATIC
44298         fi
44299
44300 cat >>confdefs.h <<_ACEOF
44301 #define SLAPD_LDAP $MFLAG
44302 _ACEOF
44303
44304 fi
44305
44306 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44307         BUILD_SLAPD=yes
44308         BUILD_LDBM=$ol_enable_ldbm
44309         if test "$ol_enable_ldbm" = mod ; then
44310                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44311                 MFLAG=SLAPD_MOD_DYNAMIC
44312         else
44313                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44314                 MFLAG=SLAPD_MOD_STATIC
44315         fi
44316
44317 cat >>confdefs.h <<_ACEOF
44318 #define SLAPD_LDBM $MFLAG
44319 _ACEOF
44320
44321 fi
44322
44323 if test "$ol_enable_meta" != no ; then
44324         BUILD_SLAPD=yes
44325         BUILD_META=$ol_enable_meta
44326         BUILD_REWRITE=yes
44327         if test "$ol_enable_meta" = mod ; then
44328                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44329                 MFLAG=SLAPD_MOD_DYNAMIC
44330         else
44331                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44332                 MFLAG=SLAPD_MOD_STATIC
44333         fi
44334
44335 cat >>confdefs.h <<_ACEOF
44336 #define SLAPD_META $MFLAG
44337 _ACEOF
44338
44339 fi
44340
44341 if test "$ol_enable_monitor" != no ; then
44342         BUILD_SLAPD=yes
44343         BUILD_MONITOR=$ol_enable_monitor
44344         if test "$ol_enable_monitor" = mod ; then
44345                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44346                 MFLAG=SLAPD_MOD_DYNAMIC
44347         else
44348                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44349                 MFLAG=SLAPD_MOD_STATIC
44350         fi
44351
44352 cat >>confdefs.h <<_ACEOF
44353 #define SLAPD_MONITOR $MFLAG
44354 _ACEOF
44355
44356 fi
44357
44358 if test "$ol_enable_null" != no ; then
44359         BUILD_SLAPD=yes
44360         BUILD_NULL=$ol_enable_null
44361         if test "$ol_enable_null" = mod ; then
44362                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44363                 MFLAG=SLAPD_MOD_DYNAMIC
44364         else
44365                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44366                 MFLAG=SLAPD_MOD_STATIC
44367         fi
44368
44369 cat >>confdefs.h <<_ACEOF
44370 #define SLAPD_NULL $MFLAG
44371 _ACEOF
44372
44373 fi
44374
44375 if test "$ol_enable_passwd" != no ; then
44376         BUILD_SLAPD=yes
44377         BUILD_PASSWD=$ol_enable_passwd
44378         if test "$ol_enable_passwd" = mod ; then
44379                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44380                 MFLAG=SLAPD_MOD_DYNAMIC
44381         else
44382                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44383                 MFLAG=SLAPD_MOD_STATIC
44384         fi
44385
44386 cat >>confdefs.h <<_ACEOF
44387 #define SLAPD_PASSWD $MFLAG
44388 _ACEOF
44389
44390 fi
44391
44392 if test "$ol_link_perl" != no ; then
44393         BUILD_SLAPD=yes
44394         BUILD_PERL=$ol_enable_perl
44395         if test "$ol_enable_perl" = mod ; then
44396                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44397                 MFLAG=SLAPD_MOD_DYNAMIC
44398         else
44399                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44400                 MFLAG=SLAPD_MOD_STATIC
44401         fi
44402
44403 cat >>confdefs.h <<_ACEOF
44404 #define SLAPD_PERL $MFLAG
44405 _ACEOF
44406
44407 fi
44408
44409 if test "$ol_enable_relay" != no ; then
44410         BUILD_SLAPD=yes
44411         BUILD_RELAY=$ol_enable_relay
44412         if test "$ol_enable_relay" = mod ; then
44413                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44414                 MFLAG=SLAPD_MOD_DYNAMIC
44415         else
44416                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44417                 MFLAG=SLAPD_MOD_STATIC
44418         fi
44419
44420 cat >>confdefs.h <<_ACEOF
44421 #define SLAPD_RELAY $MFLAG
44422 _ACEOF
44423
44424 fi
44425
44426 if test "$ol_enable_shell" != no ; then
44427         if test "$ol_link_threads" != no ; then
44428                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44429 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44430         fi
44431         BUILD_SLAPD=yes
44432         BUILD_SHELL=$ol_enable_shell
44433         if test "$ol_enable_shell" = mod ; then
44434                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44435                 MFLAG=SLAPD_MOD_DYNAMIC
44436         else
44437                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44438                 MFLAG=SLAPD_MOD_STATIC
44439         fi
44440
44441 cat >>confdefs.h <<_ACEOF
44442 #define SLAPD_SHELL $MFLAG
44443 _ACEOF
44444
44445 fi
44446
44447 if test "$ol_link_sql" != no ; then
44448         BUILD_SLAPD=yes
44449         BUILD_SQL=$ol_enable_sql
44450         if test "$ol_enable_sql" = mod; then
44451                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44452                 MFLAG=SLAPD_MOD_DYNAMIC
44453         else
44454                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44455                 MFLAG=SLAPD_MOD_STATIC
44456         fi
44457
44458 cat >>confdefs.h <<_ACEOF
44459 #define SLAPD_SQL $MFLAG
44460 _ACEOF
44461
44462 fi
44463
44464 if test "$ol_enable_accesslog" != no ; then
44465         BUILD_ACCESSLOG=$ol_enable_accesslog
44466         if test "$ol_enable_accesslog" = mod ; then
44467                 MFLAG=SLAPD_MOD_DYNAMIC
44468                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44469         else
44470                 MFLAG=SLAPD_MOD_STATIC
44471                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44472         fi
44473
44474 cat >>confdefs.h <<_ACEOF
44475 #define SLAPD_OVER_ACCESSLOG $MFLAG
44476 _ACEOF
44477
44478 fi
44479
44480 if test "$ol_enable_dds" != no ; then
44481         BUILD_DDS=$ol_enable_dds
44482         if test "$ol_enable_dds" = mod ; then
44483                 MFLAG=SLAPD_MOD_DYNAMIC
44484                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
44485         else
44486                 MFLAG=SLAPD_MOD_STATIC
44487                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
44488         fi
44489
44490 cat >>confdefs.h <<_ACEOF
44491 #define SLAPD_OVER_DDS $MFLAG
44492 _ACEOF
44493
44494 fi
44495
44496 if test "$ol_enable_denyop" != no ; then
44497         BUILD_DENYOP=$ol_enable_denyop
44498         if test "$ol_enable_denyop" = mod ; then
44499                 MFLAG=SLAPD_MOD_DYNAMIC
44500                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44501         else
44502                 MFLAG=SLAPD_MOD_STATIC
44503                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44504         fi
44505
44506 cat >>confdefs.h <<_ACEOF
44507 #define SLAPD_OVER_DENYOP $MFLAG
44508 _ACEOF
44509
44510 fi
44511
44512 if test "$ol_enable_dyngroup" != no ; then
44513         BUILD_DYNGROUP=$ol_enable_dyngroup
44514         if test "$ol_enable_dyngroup" = mod ; then
44515                 MFLAG=SLAPD_MOD_DYNAMIC
44516                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44517         else
44518                 MFLAG=SLAPD_MOD_STATIC
44519                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44520         fi
44521
44522 cat >>confdefs.h <<_ACEOF
44523 #define SLAPD_OVER_DYNGROUP $MFLAG
44524 _ACEOF
44525
44526 fi
44527
44528 if test "$ol_enable_dynlist" != no ; then
44529         BUILD_DYNLIST=$ol_enable_dynlist
44530         if test "$ol_enable_dynlist" = mod ; then
44531                 MFLAG=SLAPD_MOD_DYNAMIC
44532                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44533         else
44534                 MFLAG=SLAPD_MOD_STATIC
44535                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44536         fi
44537
44538 cat >>confdefs.h <<_ACEOF
44539 #define SLAPD_OVER_DYNLIST $MFLAG
44540 _ACEOF
44541
44542 fi
44543
44544 if test "$ol_enable_lastmod" != no ; then
44545         BUILD_LASTMOD=$ol_enable_lastmod
44546         if test "$ol_enable_lastmod" = mod ; then
44547                 MFLAG=SLAPD_MOD_DYNAMIC
44548                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44549         else
44550                 MFLAG=SLAPD_MOD_STATIC
44551                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44552         fi
44553
44554 cat >>confdefs.h <<_ACEOF
44555 #define SLAPD_OVER_LASTMOD $MFLAG
44556 _ACEOF
44557
44558 fi
44559
44560 if test "$ol_enable_ppolicy" != no ; then
44561         BUILD_PPOLICY=$ol_enable_ppolicy
44562         if test "$ol_enable_ppolicy" = mod ; then
44563                 MFLAG=SLAPD_MOD_DYNAMIC
44564                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44565         else
44566                 MFLAG=SLAPD_MOD_STATIC
44567                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44568         fi
44569
44570 cat >>confdefs.h <<_ACEOF
44571 #define SLAPD_OVER_PPOLICY $MFLAG
44572 _ACEOF
44573
44574 fi
44575
44576 if test "$ol_enable_proxycache" != no ; then
44577         BUILD_PROXYCACHE=$ol_enable_proxycache
44578         if test "$ol_enable_proxycache" = mod ; then
44579                 MFLAG=SLAPD_MOD_DYNAMIC
44580                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44581         else
44582                 MFLAG=SLAPD_MOD_STATIC
44583                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44584         fi
44585
44586 cat >>confdefs.h <<_ACEOF
44587 #define SLAPD_OVER_PROXYCACHE $MFLAG
44588 _ACEOF
44589
44590 fi
44591
44592 if test "$ol_enable_refint" != no ; then
44593         BUILD_REFINT=$ol_enable_refint
44594         if test "$ol_enable_refint" = mod ; then
44595                 MFLAG=SLAPD_MOD_DYNAMIC
44596                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44597         else
44598                 MFLAG=SLAPD_MOD_STATIC
44599                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44600         fi
44601
44602 cat >>confdefs.h <<_ACEOF
44603 #define SLAPD_OVER_REFINT $MFLAG
44604 _ACEOF
44605
44606 fi
44607
44608 if test "$ol_enable_retcode" != no ; then
44609         BUILD_RETCODE=$ol_enable_retcode
44610         if test "$ol_enable_retcode" = mod ; then
44611                 MFLAG=SLAPD_MOD_DYNAMIC
44612                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44613         else
44614                 MFLAG=SLAPD_MOD_STATIC
44615                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44616         fi
44617
44618 cat >>confdefs.h <<_ACEOF
44619 #define SLAPD_OVER_RETCODE $MFLAG
44620 _ACEOF
44621
44622 fi
44623
44624 if test "$ol_enable_rwm" != no ; then
44625         BUILD_REWRITE=yes
44626         BUILD_RWM=$ol_enable_rwm
44627         if test "$ol_enable_rwm" = mod ; then
44628                 MFLAG=SLAPD_MOD_DYNAMIC
44629                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44630         else
44631                 MFLAG=SLAPD_MOD_STATIC
44632                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44633         fi
44634
44635 cat >>confdefs.h <<_ACEOF
44636 #define SLAPD_OVER_RWM $MFLAG
44637 _ACEOF
44638
44639 fi
44640
44641 if test "$ol_enable_syncprov" != no ; then
44642         BUILD_SYNCPROV=$ol_enable_syncprov
44643         if test "$ol_enable_syncprov" = mod ; then
44644                 MFLAG=SLAPD_MOD_DYNAMIC
44645                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44646         else
44647                 MFLAG=SLAPD_MOD_STATIC
44648                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44649         fi
44650
44651 cat >>confdefs.h <<_ACEOF
44652 #define SLAPD_OVER_SYNCPROV $MFLAG
44653 _ACEOF
44654
44655 fi
44656
44657 if test "$ol_enable_translucent" != no ; then
44658         BUILD_TRANSLUCENT=$ol_enable_translucent
44659         if test "$ol_enable_translucent" = mod ; then
44660                 MFLAG=SLAPD_MOD_DYNAMIC
44661                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44662         else
44663                 MFLAG=SLAPD_MOD_STATIC
44664                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44665         fi
44666
44667 cat >>confdefs.h <<_ACEOF
44668 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44669 _ACEOF
44670
44671 fi
44672
44673 if test "$ol_enable_unique" != no ; then
44674         BUILD_UNIQUE=$ol_enable_unique
44675         if test "$ol_enable_unique" = mod ; then
44676                 MFLAG=SLAPD_MOD_DYNAMIC
44677                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44678         else
44679                 MFLAG=SLAPD_MOD_STATIC
44680                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44681         fi
44682
44683 cat >>confdefs.h <<_ACEOF
44684 #define SLAPD_OVER_UNIQUE $MFLAG
44685 _ACEOF
44686
44687 fi
44688
44689 if test "$ol_enable_valsort" != no ; then
44690         BUILD_VALSORT=$ol_enable_valsort
44691         if test "$ol_enable_valsort" = mod ; then
44692                 MFLAG=SLAPD_MOD_DYNAMIC
44693                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44694         else
44695                 MFLAG=SLAPD_MOD_STATIC
44696                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44697         fi
44698
44699 cat >>confdefs.h <<_ACEOF
44700 #define SLAPD_OVER_VALSORT $MFLAG
44701 _ACEOF
44702
44703 fi
44704
44705 if test "$ol_enable_slurpd" != no &&
44706    test "$ol_link_threads" != no &&
44707    test $BUILD_SLAPD = yes ; then
44708         BUILD_SLURPD=yes
44709 fi
44710
44711 if test "$ol_enable_rewrite" != no ; then
44712
44713 cat >>confdefs.h <<\_ACEOF
44714 #define ENABLE_REWRITE 1
44715 _ACEOF
44716
44717         BUILD_REWRITE=yes
44718 fi
44719
44720 if test "$ol_enable_slapi" != no ; then
44721
44722 cat >>confdefs.h <<\_ACEOF
44723 #define ENABLE_SLAPI 1
44724 _ACEOF
44725
44726         BUILD_SLAPI=yes
44727         SLAPD_SLAPI_DEPEND=libslapi.a
44728 fi
44729
44730
44731
44732 if test "$ac_cv_mingw32" = yes ; then
44733         PLAT=NT
44734         SLAPD_MODULES_LDFLAGS=
44735 else
44736         PLAT=UNIX
44737 fi
44738
44739
44740
44741
44742
44743
44744
44745
44746
44747
44748
44749
44750
44751
44752
44753
44754
44755
44756
44757
44758
44759
44760
44761
44762
44763
44764
44765
44766
44767
44768
44769
44770
44771
44772
44773
44774
44775
44776
44777
44778
44779
44780
44781
44782
44783
44784
44785
44786
44787
44788
44789
44790
44791
44792
44793
44794
44795
44796
44797
44798
44799
44800
44801
44802
44803
44804
44805
44806
44807
44808
44809
44810
44811
44812
44813
44814
44815
44816
44817
44818
44819
44820
44821 # Check whether --with-xxinstall or --without-xxinstall was given.
44822 if test "${with_xxinstall+set}" = set; then
44823   withval="$with_xxinstall"
44824
44825 fi;
44826
44827
44828                                                                                                                                                                                                                                                                                                                                                                                                                 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-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
44829
44830
44831           ac_config_commands="$ac_config_commands default"
44832
44833
44834
44835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44836 # Let make expand exec_prefix.
44837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44838
44839 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44840 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44841 # trailing colons and then remove the whole line if VPATH becomes empty
44842 # (actually we leave an empty line to preserve line numbers).
44843 if test "x$srcdir" = x.; then
44844   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44845 s/:*\$(srcdir):*/:/;
44846 s/:*\${srcdir}:*/:/;
44847 s/:*@srcdir@:*/:/;
44848 s/^\([^=]*=[     ]*\):*/\1/;
44849 s/:*$//;
44850 s/^[^=]*=[       ]*$//;
44851 }'
44852 fi
44853
44854 DEFS=-DHAVE_CONFIG_H
44855
44856 ac_libobjs=
44857 ac_ltlibobjs=
44858 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44859   # 1. Remove the extension, and $U if already installed.
44860   ac_i=`echo "$ac_i" |
44861          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44862   # 2. Add them.
44863   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44864   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44865 done
44866 LIBOBJS=$ac_libobjs
44867
44868 LTLIBOBJS=$ac_ltlibobjs
44869
44870
44871 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44872   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44873 Usually this means the macro was only invoked conditionally." >&5
44874 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44875 Usually this means the macro was only invoked conditionally." >&2;}
44876    { (exit 1); exit 1; }; }
44877 fi
44878 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44879   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44880 Usually this means the macro was only invoked conditionally." >&5
44881 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44882 Usually this means the macro was only invoked conditionally." >&2;}
44883    { (exit 1); exit 1; }; }
44884 fi
44885 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44886   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44887 Usually this means the macro was only invoked conditionally." >&5
44888 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44889 Usually this means the macro was only invoked conditionally." >&2;}
44890    { (exit 1); exit 1; }; }
44891 fi
44892
44893 : ${CONFIG_STATUS=./config.status}
44894 ac_clean_files_save=$ac_clean_files
44895 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44896 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44897 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44898 cat >$CONFIG_STATUS <<_ACEOF
44899 #! $SHELL
44900 # Generated by $as_me.
44901 # Run this file to recreate the current configuration.
44902 # Compiler output produced by configure, useful for debugging
44903 # configure, is in config.log if it exists.
44904
44905 debug=false
44906 ac_cs_recheck=false
44907 ac_cs_silent=false
44908 SHELL=\${CONFIG_SHELL-$SHELL}
44909 _ACEOF
44910
44911 cat >>$CONFIG_STATUS <<\_ACEOF
44912 ## --------------------- ##
44913 ## M4sh Initialization.  ##
44914 ## --------------------- ##
44915
44916 # Be Bourne compatible
44917 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44918   emulate sh
44919   NULLCMD=:
44920   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44921   # is contrary to our usage.  Disable this feature.
44922   alias -g '${1+"$@"}'='"$@"'
44923 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44924   set -o posix
44925 fi
44926 DUALCASE=1; export DUALCASE # for MKS sh
44927
44928 # Support unset when possible.
44929 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44930   as_unset=unset
44931 else
44932   as_unset=false
44933 fi
44934
44935
44936 # Work around bugs in pre-3.0 UWIN ksh.
44937 $as_unset ENV MAIL MAILPATH
44938 PS1='$ '
44939 PS2='> '
44940 PS4='+ '
44941
44942 # NLS nuisances.
44943 for as_var in \
44944   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44945   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44946   LC_TELEPHONE LC_TIME
44947 do
44948   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44949     eval $as_var=C; export $as_var
44950   else
44951     $as_unset $as_var
44952   fi
44953 done
44954
44955 # Required to use basename.
44956 if expr a : '\(a\)' >/dev/null 2>&1; then
44957   as_expr=expr
44958 else
44959   as_expr=false
44960 fi
44961
44962 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44963   as_basename=basename
44964 else
44965   as_basename=false
44966 fi
44967
44968
44969 # Name of the executable.
44970 as_me=`$as_basename "$0" ||
44971 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44972          X"$0" : 'X\(//\)$' \| \
44973          X"$0" : 'X\(/\)$' \| \
44974          .     : '\(.\)' 2>/dev/null ||
44975 echo X/"$0" |
44976     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44977           /^X\/\(\/\/\)$/{ s//\1/; q; }
44978           /^X\/\(\/\).*/{ s//\1/; q; }
44979           s/.*/./; q'`
44980
44981
44982 # PATH needs CR, and LINENO needs CR and PATH.
44983 # Avoid depending upon Character Ranges.
44984 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44985 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44986 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44987 as_cr_digits='0123456789'
44988 as_cr_alnum=$as_cr_Letters$as_cr_digits
44989
44990 # The user is always right.
44991 if test "${PATH_SEPARATOR+set}" != set; then
44992   echo "#! /bin/sh" >conf$$.sh
44993   echo  "exit 0"   >>conf$$.sh
44994   chmod +x conf$$.sh
44995   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44996     PATH_SEPARATOR=';'
44997   else
44998     PATH_SEPARATOR=:
44999   fi
45000   rm -f conf$$.sh
45001 fi
45002
45003
45004   as_lineno_1=$LINENO
45005   as_lineno_2=$LINENO
45006   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45007   test "x$as_lineno_1" != "x$as_lineno_2" &&
45008   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
45009   # Find who we are.  Look in the path if we contain no path at all
45010   # relative or not.
45011   case $0 in
45012     *[\\/]* ) as_myself=$0 ;;
45013     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45014 for as_dir in $PATH
45015 do
45016   IFS=$as_save_IFS
45017   test -z "$as_dir" && as_dir=.
45018   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45019 done
45020
45021        ;;
45022   esac
45023   # We did not find ourselves, most probably we were run as `sh COMMAND'
45024   # in which case we are not to be found in the path.
45025   if test "x$as_myself" = x; then
45026     as_myself=$0
45027   fi
45028   if test ! -f "$as_myself"; then
45029     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45030 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45031    { (exit 1); exit 1; }; }
45032   fi
45033   case $CONFIG_SHELL in
45034   '')
45035     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45036 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45037 do
45038   IFS=$as_save_IFS
45039   test -z "$as_dir" && as_dir=.
45040   for as_base in sh bash ksh sh5; do
45041          case $as_dir in
45042          /*)
45043            if ("$as_dir/$as_base" -c '
45044   as_lineno_1=$LINENO
45045   as_lineno_2=$LINENO
45046   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45047   test "x$as_lineno_1" != "x$as_lineno_2" &&
45048   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
45049              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45050              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45051              CONFIG_SHELL=$as_dir/$as_base
45052              export CONFIG_SHELL
45053              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45054            fi;;
45055          esac
45056        done
45057 done
45058 ;;
45059   esac
45060
45061   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45062   # uniformly replaced by the line number.  The first 'sed' inserts a
45063   # line-number line before each line; the second 'sed' does the real
45064   # work.  The second script uses 'N' to pair each line-number line
45065   # with the numbered line, and appends trailing '-' during
45066   # substitution so that $LINENO is not a special case at line end.
45067   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45068   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
45069   sed '=' <$as_myself |
45070     sed '
45071       N
45072       s,$,-,
45073       : loop
45074       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45075       t loop
45076       s,-$,,
45077       s,^['$as_cr_digits']*\n,,
45078     ' >$as_me.lineno &&
45079   chmod +x $as_me.lineno ||
45080     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45081 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45082    { (exit 1); exit 1; }; }
45083
45084   # Don't try to exec as it changes $[0], causing all sort of problems
45085   # (the dirname of $[0] is not the place where we might find the
45086   # original and so on.  Autoconf is especially sensible to this).
45087   . ./$as_me.lineno
45088   # Exit status is that of the last command.
45089   exit
45090 }
45091
45092
45093 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45094   *c*,-n*) ECHO_N= ECHO_C='
45095 ' ECHO_T='      ' ;;
45096   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45097   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
45098 esac
45099
45100 if expr a : '\(a\)' >/dev/null 2>&1; then
45101   as_expr=expr
45102 else
45103   as_expr=false
45104 fi
45105
45106 rm -f conf$$ conf$$.exe conf$$.file
45107 echo >conf$$.file
45108 if ln -s conf$$.file conf$$ 2>/dev/null; then
45109   # We could just check for DJGPP; but this test a) works b) is more generic
45110   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45111   if test -f conf$$.exe; then
45112     # Don't use ln at all; we don't have any links
45113     as_ln_s='cp -p'
45114   else
45115     as_ln_s='ln -s'
45116   fi
45117 elif ln conf$$.file conf$$ 2>/dev/null; then
45118   as_ln_s=ln
45119 else
45120   as_ln_s='cp -p'
45121 fi
45122 rm -f conf$$ conf$$.exe conf$$.file
45123
45124 if mkdir -p . 2>/dev/null; then
45125   as_mkdir_p=:
45126 else
45127   test -d ./-p && rmdir ./-p
45128   as_mkdir_p=false
45129 fi
45130
45131 as_executable_p="test -f"
45132
45133 # Sed expression to map a string onto a valid CPP name.
45134 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45135
45136 # Sed expression to map a string onto a valid variable name.
45137 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45138
45139
45140 # IFS
45141 # We need space, tab and new line, in precisely that order.
45142 as_nl='
45143 '
45144 IFS="   $as_nl"
45145
45146 # CDPATH.
45147 $as_unset CDPATH
45148
45149 exec 6>&1
45150
45151 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45152 # report actual input values of CONFIG_FILES etc. instead of their
45153 # values after options handling.  Logging --version etc. is OK.
45154 exec 5>>config.log
45155 {
45156   echo
45157   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45158 ## Running $as_me. ##
45159 _ASBOX
45160 } >&5
45161 cat >&5 <<_CSEOF
45162
45163 This file was extended by $as_me, which was
45164 generated by GNU Autoconf 2.59.  Invocation command line was
45165
45166   CONFIG_FILES    = $CONFIG_FILES
45167   CONFIG_HEADERS  = $CONFIG_HEADERS
45168   CONFIG_LINKS    = $CONFIG_LINKS
45169   CONFIG_COMMANDS = $CONFIG_COMMANDS
45170   $ $0 $@
45171
45172 _CSEOF
45173 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45174 echo >&5
45175 _ACEOF
45176
45177 # Files that config.status was made for.
45178 if test -n "$ac_config_files"; then
45179   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45180 fi
45181
45182 if test -n "$ac_config_headers"; then
45183   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45184 fi
45185
45186 if test -n "$ac_config_links"; then
45187   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45188 fi
45189
45190 if test -n "$ac_config_commands"; then
45191   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45192 fi
45193
45194 cat >>$CONFIG_STATUS <<\_ACEOF
45195
45196 ac_cs_usage="\
45197 \`$as_me' instantiates files from templates according to the
45198 current configuration.
45199
45200 Usage: $0 [OPTIONS] [FILE]...
45201
45202   -h, --help       print this help, then exit
45203   -V, --version    print version number, then exit
45204   -q, --quiet      do not print progress messages
45205   -d, --debug      don't remove temporary files
45206       --recheck    update $as_me by reconfiguring in the same conditions
45207   --file=FILE[:TEMPLATE]
45208                    instantiate the configuration file FILE
45209   --header=FILE[:TEMPLATE]
45210                    instantiate the configuration header FILE
45211
45212 Configuration files:
45213 $config_files
45214
45215 Configuration headers:
45216 $config_headers
45217
45218 Configuration commands:
45219 $config_commands
45220
45221 Report bugs to <bug-autoconf@gnu.org>."
45222 _ACEOF
45223
45224 cat >>$CONFIG_STATUS <<_ACEOF
45225 ac_cs_version="\\
45226 config.status
45227 configured by $0, generated by GNU Autoconf 2.59,
45228   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45229
45230 Copyright (C) 2003 Free Software Foundation, Inc.
45231 This config.status script is free software; the Free Software Foundation
45232 gives unlimited permission to copy, distribute and modify it."
45233 srcdir=$srcdir
45234 INSTALL="$INSTALL"
45235 _ACEOF
45236
45237 cat >>$CONFIG_STATUS <<\_ACEOF
45238 # If no file are specified by the user, then we need to provide default
45239 # value.  By we need to know if files were specified by the user.
45240 ac_need_defaults=:
45241 while test $# != 0
45242 do
45243   case $1 in
45244   --*=*)
45245     ac_option=`expr "x$1" : 'x\([^=]*\)='`
45246     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45247     ac_shift=:
45248     ;;
45249   -*)
45250     ac_option=$1
45251     ac_optarg=$2
45252     ac_shift=shift
45253     ;;
45254   *) # This is not an option, so the user has probably given explicit
45255      # arguments.
45256      ac_option=$1
45257      ac_need_defaults=false;;
45258   esac
45259
45260   case $ac_option in
45261   # Handling of the options.
45262 _ACEOF
45263 cat >>$CONFIG_STATUS <<\_ACEOF
45264   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45265     ac_cs_recheck=: ;;
45266   --version | --vers* | -V )
45267     echo "$ac_cs_version"; exit 0 ;;
45268   --he | --h)
45269     # Conflict between --help and --header
45270     { { echo "$as_me:$LINENO: error: ambiguous option: $1
45271 Try \`$0 --help' for more information." >&5
45272 echo "$as_me: error: ambiguous option: $1
45273 Try \`$0 --help' for more information." >&2;}
45274    { (exit 1); exit 1; }; };;
45275   --help | --hel | -h )
45276     echo "$ac_cs_usage"; exit 0 ;;
45277   --debug | --d* | -d )
45278     debug=: ;;
45279   --file | --fil | --fi | --f )
45280     $ac_shift
45281     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45282     ac_need_defaults=false;;
45283   --header | --heade | --head | --hea )
45284     $ac_shift
45285     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45286     ac_need_defaults=false;;
45287   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45288   | -silent | --silent | --silen | --sile | --sil | --si | --s)
45289     ac_cs_silent=: ;;
45290
45291   # This is an error.
45292   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45293 Try \`$0 --help' for more information." >&5
45294 echo "$as_me: error: unrecognized option: $1
45295 Try \`$0 --help' for more information." >&2;}
45296    { (exit 1); exit 1; }; } ;;
45297
45298   *) ac_config_targets="$ac_config_targets $1" ;;
45299
45300   esac
45301   shift
45302 done
45303
45304 ac_configure_extra_args=
45305
45306 if $ac_cs_silent; then
45307   exec 6>/dev/null
45308   ac_configure_extra_args="$ac_configure_extra_args --silent"
45309 fi
45310
45311 _ACEOF
45312 cat >>$CONFIG_STATUS <<_ACEOF
45313 if \$ac_cs_recheck; then
45314   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45315   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45316 fi
45317
45318 _ACEOF
45319
45320 cat >>$CONFIG_STATUS <<_ACEOF
45321 #
45322 # INIT-COMMANDS section.
45323 #
45324
45325 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45326
45327 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45328 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45329
45330
45331 _ACEOF
45332
45333
45334
45335 cat >>$CONFIG_STATUS <<\_ACEOF
45336 for ac_config_target in $ac_config_targets
45337 do
45338   case "$ac_config_target" in
45339   # Handling of arguments.
45340   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45341   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45342   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45343   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45344   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45345   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45346   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45347   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45348   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45349   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45350   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45351   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45352   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45353   "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" ;;
45354   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45355   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45356   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45357   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45358   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45359   "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" ;;
45360   "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" ;;
45361   "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" ;;
45362   "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" ;;
45363   "servers/slapd/back-ldbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk" ;;
45364   "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" ;;
45365   "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" ;;
45366   "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" ;;
45367   "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" ;;
45368   "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" ;;
45369   "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" ;;
45370   "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" ;;
45371   "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" ;;
45372   "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" ;;
45373   "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" ;;
45374   "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" ;;
45375   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45376   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45377   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45378   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45379   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45380   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45381   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45382   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45383   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45384   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45385   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45386 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45387    { (exit 1); exit 1; }; };;
45388   esac
45389 done
45390
45391 # If the user did not use the arguments to specify the items to instantiate,
45392 # then the envvar interface is used.  Set only those that are not.
45393 # We use the long form for the default assignment because of an extremely
45394 # bizarre bug on SunOS 4.1.3.
45395 if $ac_need_defaults; then
45396   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45397   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45398   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45399 fi
45400
45401 # Have a temporary directory for convenience.  Make it in the build tree
45402 # simply because there is no reason to put it here, and in addition,
45403 # creating and moving files from /tmp can sometimes cause problems.
45404 # Create a temporary directory, and hook for its removal unless debugging.
45405 $debug ||
45406 {
45407   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45408   trap '{ (exit 1); exit 1; }' 1 2 13 15
45409 }
45410
45411 # Create a (secure) tmp directory for tmp files.
45412
45413 {
45414   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45415   test -n "$tmp" && test -d "$tmp"
45416 }  ||
45417 {
45418   tmp=./confstat$$-$RANDOM
45419   (umask 077 && mkdir $tmp)
45420 } ||
45421 {
45422    echo "$me: cannot create a temporary directory in ." >&2
45423    { (exit 1); exit 1; }
45424 }
45425
45426 _ACEOF
45427
45428 cat >>$CONFIG_STATUS <<_ACEOF
45429
45430 #
45431 # CONFIG_FILES section.
45432 #
45433
45434 # No need to generate the scripts if there are no CONFIG_FILES.
45435 # This happens for instance when ./config.status config.h
45436 if test -n "\$CONFIG_FILES"; then
45437   # Protect against being on the right side of a sed subst in config.status.
45438   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45439    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45440 s,@SHELL@,$SHELL,;t t
45441 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45442 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45443 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45444 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45445 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45446 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45447 s,@exec_prefix@,$exec_prefix,;t t
45448 s,@prefix@,$prefix,;t t
45449 s,@program_transform_name@,$program_transform_name,;t t
45450 s,@bindir@,$bindir,;t t
45451 s,@sbindir@,$sbindir,;t t
45452 s,@libexecdir@,$libexecdir,;t t
45453 s,@datadir@,$datadir,;t t
45454 s,@sysconfdir@,$sysconfdir,;t t
45455 s,@sharedstatedir@,$sharedstatedir,;t t
45456 s,@localstatedir@,$localstatedir,;t t
45457 s,@libdir@,$libdir,;t t
45458 s,@includedir@,$includedir,;t t
45459 s,@oldincludedir@,$oldincludedir,;t t
45460 s,@infodir@,$infodir,;t t
45461 s,@mandir@,$mandir,;t t
45462 s,@build_alias@,$build_alias,;t t
45463 s,@host_alias@,$host_alias,;t t
45464 s,@target_alias@,$target_alias,;t t
45465 s,@DEFS@,$DEFS,;t t
45466 s,@ECHO_C@,$ECHO_C,;t t
45467 s,@ECHO_N@,$ECHO_N,;t t
45468 s,@ECHO_T@,$ECHO_T,;t t
45469 s,@LIBS@,$LIBS,;t t
45470 s,@build@,$build,;t t
45471 s,@build_cpu@,$build_cpu,;t t
45472 s,@build_vendor@,$build_vendor,;t t
45473 s,@build_os@,$build_os,;t t
45474 s,@host@,$host,;t t
45475 s,@host_cpu@,$host_cpu,;t t
45476 s,@host_vendor@,$host_vendor,;t t
45477 s,@host_os@,$host_os,;t t
45478 s,@target@,$target,;t t
45479 s,@target_cpu@,$target_cpu,;t t
45480 s,@target_vendor@,$target_vendor,;t t
45481 s,@target_os@,$target_os,;t t
45482 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45483 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45484 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45485 s,@CYGPATH_W@,$CYGPATH_W,;t t
45486 s,@PACKAGE@,$PACKAGE,;t t
45487 s,@VERSION@,$VERSION,;t t
45488 s,@ACLOCAL@,$ACLOCAL,;t t
45489 s,@AUTOCONF@,$AUTOCONF,;t t
45490 s,@AUTOMAKE@,$AUTOMAKE,;t t
45491 s,@AUTOHEADER@,$AUTOHEADER,;t t
45492 s,@MAKEINFO@,$MAKEINFO,;t t
45493 s,@install_sh@,$install_sh,;t t
45494 s,@STRIP@,$STRIP,;t t
45495 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45496 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45497 s,@mkdir_p@,$mkdir_p,;t t
45498 s,@AWK@,$AWK,;t t
45499 s,@SET_MAKE@,$SET_MAKE,;t t
45500 s,@am__leading_dot@,$am__leading_dot,;t t
45501 s,@AMTAR@,$AMTAR,;t t
45502 s,@am__tar@,$am__tar,;t t
45503 s,@am__untar@,$am__untar,;t t
45504 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45505 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45506 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45507 s,@top_builddir@,$top_builddir,;t t
45508 s,@ldap_subdir@,$ldap_subdir,;t t
45509 s,@CC@,$CC,;t t
45510 s,@AR@,$AR,;t t
45511 s,@CFLAGS@,$CFLAGS,;t t
45512 s,@LDFLAGS@,$LDFLAGS,;t t
45513 s,@CPPFLAGS@,$CPPFLAGS,;t t
45514 s,@ac_ct_CC@,$ac_ct_CC,;t t
45515 s,@EXEEXT@,$EXEEXT,;t t
45516 s,@OBJEXT@,$OBJEXT,;t t
45517 s,@DEPDIR@,$DEPDIR,;t t
45518 s,@am__include@,$am__include,;t t
45519 s,@am__quote@,$am__quote,;t t
45520 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45521 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45522 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45523 s,@CCDEPMODE@,$CCDEPMODE,;t t
45524 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45525 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45526 s,@EGREP@,$EGREP,;t t
45527 s,@LN_S@,$LN_S,;t t
45528 s,@ECHO@,$ECHO,;t t
45529 s,@ac_ct_AR@,$ac_ct_AR,;t t
45530 s,@RANLIB@,$RANLIB,;t t
45531 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45532 s,@DLLTOOL@,$DLLTOOL,;t t
45533 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45534 s,@AS@,$AS,;t t
45535 s,@ac_ct_AS@,$ac_ct_AS,;t t
45536 s,@OBJDUMP@,$OBJDUMP,;t t
45537 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45538 s,@CPP@,$CPP,;t t
45539 s,@LIBTOOL@,$LIBTOOL,;t t
45540 s,@PERLBIN@,$PERLBIN,;t t
45541 s,@OL_MKDEP@,$OL_MKDEP,;t t
45542 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45543 s,@LTSTATIC@,$LTSTATIC,;t t
45544 s,@LIBOBJS@,$LIBOBJS,;t t
45545 s,@LIBSRCS@,$LIBSRCS,;t t
45546 s,@PLAT@,$PLAT,;t t
45547 s,@WITH_SASL@,$WITH_SASL,;t t
45548 s,@WITH_TLS@,$WITH_TLS,;t t
45549 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45550 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45551 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45552 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45553 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45554 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45555 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45556 s,@BUILD_BDB@,$BUILD_BDB,;t t
45557 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45558 s,@BUILD_HDB@,$BUILD_HDB,;t t
45559 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45560 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45561 s,@BUILD_META@,$BUILD_META,;t t
45562 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45563 s,@BUILD_NULL@,$BUILD_NULL,;t t
45564 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45565 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45566 s,@BUILD_PERL@,$BUILD_PERL,;t t
45567 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45568 s,@BUILD_SQL@,$BUILD_SQL,;t t
45569 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45570 s,@BUILD_DDS@,$BUILD_DDS,;t t
45571 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45572 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45573 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45574 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45575 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45576 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45577 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45578 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45579 s,@BUILD_RWM@,$BUILD_RWM,;t t
45580 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45581 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45582 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45583 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45584 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45585 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45586 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45587 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45588 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45589 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45590 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45591 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45592 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45593 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45594 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45595 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45596 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45597 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45598 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45599 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45600 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45601 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45602 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45603 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45604 s,@SASL_LIBS@,$SASL_LIBS,;t t
45605 s,@TLS_LIBS@,$TLS_LIBS,;t t
45606 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45607 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45608 s,@LIBSLAPI@,$LIBSLAPI,;t t
45609 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45610 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45611 s,@ICU_LIBS@,$ICU_LIBS,;t t
45612 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45613 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45614 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45615 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45616 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45617 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45618 CEOF
45619
45620 _ACEOF
45621
45622   cat >>$CONFIG_STATUS <<\_ACEOF
45623   # Split the substitutions into bite-sized pieces for seds with
45624   # small command number limits, like on Digital OSF/1 and HP-UX.
45625   ac_max_sed_lines=48
45626   ac_sed_frag=1 # Number of current file.
45627   ac_beg=1 # First line for current file.
45628   ac_end=$ac_max_sed_lines # Line after last line for current file.
45629   ac_more_lines=:
45630   ac_sed_cmds=
45631   while $ac_more_lines; do
45632     if test $ac_beg -gt 1; then
45633       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45634     else
45635       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45636     fi
45637     if test ! -s $tmp/subs.frag; then
45638       ac_more_lines=false
45639     else
45640       # The purpose of the label and of the branching condition is to
45641       # speed up the sed processing (if there are no `@' at all, there
45642       # is no need to browse any of the substitutions).
45643       # These are the two extra sed commands mentioned above.
45644       (echo ':t
45645   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45646       if test -z "$ac_sed_cmds"; then
45647         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45648       else
45649         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45650       fi
45651       ac_sed_frag=`expr $ac_sed_frag + 1`
45652       ac_beg=$ac_end
45653       ac_end=`expr $ac_end + $ac_max_sed_lines`
45654     fi
45655   done
45656   if test -z "$ac_sed_cmds"; then
45657     ac_sed_cmds=cat
45658   fi
45659 fi # test -n "$CONFIG_FILES"
45660
45661 _ACEOF
45662 cat >>$CONFIG_STATUS <<\_ACEOF
45663 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45664   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45665   case $ac_file in
45666   - | *:- | *:-:* ) # input from stdin
45667         cat >$tmp/stdin
45668         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45669         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45670   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45671         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45672   * )   ac_file_in=$ac_file.in ;;
45673   esac
45674
45675   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45676   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45677 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45678          X"$ac_file" : 'X\(//\)[^/]' \| \
45679          X"$ac_file" : 'X\(//\)$' \| \
45680          X"$ac_file" : 'X\(/\)' \| \
45681          .     : '\(.\)' 2>/dev/null ||
45682 echo X"$ac_file" |
45683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45684           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45685           /^X\(\/\/\)$/{ s//\1/; q; }
45686           /^X\(\/\).*/{ s//\1/; q; }
45687           s/.*/./; q'`
45688   { if $as_mkdir_p; then
45689     mkdir -p "$ac_dir"
45690   else
45691     as_dir="$ac_dir"
45692     as_dirs=
45693     while test ! -d "$as_dir"; do
45694       as_dirs="$as_dir $as_dirs"
45695       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45697          X"$as_dir" : 'X\(//\)[^/]' \| \
45698          X"$as_dir" : 'X\(//\)$' \| \
45699          X"$as_dir" : 'X\(/\)' \| \
45700          .     : '\(.\)' 2>/dev/null ||
45701 echo X"$as_dir" |
45702     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45703           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45704           /^X\(\/\/\)$/{ s//\1/; q; }
45705           /^X\(\/\).*/{ s//\1/; q; }
45706           s/.*/./; q'`
45707     done
45708     test ! -n "$as_dirs" || mkdir $as_dirs
45709   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45710 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45711    { (exit 1); exit 1; }; }; }
45712
45713   ac_builddir=.
45714
45715 if test "$ac_dir" != .; then
45716   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45717   # A "../" for each directory in $ac_dir_suffix.
45718   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45719 else
45720   ac_dir_suffix= ac_top_builddir=
45721 fi
45722
45723 case $srcdir in
45724   .)  # No --srcdir option.  We are building in place.
45725     ac_srcdir=.
45726     if test -z "$ac_top_builddir"; then
45727        ac_top_srcdir=.
45728     else
45729        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45730     fi ;;
45731   [\\/]* | ?:[\\/]* )  # Absolute path.
45732     ac_srcdir=$srcdir$ac_dir_suffix;
45733     ac_top_srcdir=$srcdir ;;
45734   *) # Relative path.
45735     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45736     ac_top_srcdir=$ac_top_builddir$srcdir ;;
45737 esac
45738
45739 # Do not use `cd foo && pwd` to compute absolute paths, because
45740 # the directories may not exist.
45741 case `pwd` in
45742 .) ac_abs_builddir="$ac_dir";;
45743 *)
45744   case "$ac_dir" in
45745   .) ac_abs_builddir=`pwd`;;
45746   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45747   *) ac_abs_builddir=`pwd`/"$ac_dir";;
45748   esac;;
45749 esac
45750 case $ac_abs_builddir in
45751 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45752 *)
45753   case ${ac_top_builddir}. in
45754   .) ac_abs_top_builddir=$ac_abs_builddir;;
45755   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45756   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45757   esac;;
45758 esac
45759 case $ac_abs_builddir in
45760 .) ac_abs_srcdir=$ac_srcdir;;
45761 *)
45762   case $ac_srcdir in
45763   .) ac_abs_srcdir=$ac_abs_builddir;;
45764   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45765   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45766   esac;;
45767 esac
45768 case $ac_abs_builddir in
45769 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45770 *)
45771   case $ac_top_srcdir in
45772   .) ac_abs_top_srcdir=$ac_abs_builddir;;
45773   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45774   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45775   esac;;
45776 esac
45777
45778
45779   case $INSTALL in
45780   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45781   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45782   esac
45783
45784   if test x"$ac_file" != x-; then
45785     { echo "$as_me:$LINENO: creating $ac_file" >&5
45786 echo "$as_me: creating $ac_file" >&6;}
45787     rm -f "$ac_file"
45788   fi
45789   # Let's still pretend it is `configure' which instantiates (i.e., don't
45790   # use $as_me), people would be surprised to read:
45791   #    /* config.h.  Generated by config.status.  */
45792   if test x"$ac_file" = x-; then
45793     configure_input=
45794   else
45795     configure_input="$ac_file.  "
45796   fi
45797   configure_input=$configure_input"Generated from `echo $ac_file_in |
45798                                      sed 's,.*/,,'` by configure."
45799
45800   # First look for the input files in the build tree, otherwise in the
45801   # src tree.
45802   ac_file_inputs=`IFS=:
45803     for f in $ac_file_in; do
45804       case $f in
45805       -) echo $tmp/stdin ;;
45806       [\\/$]*)
45807          # Absolute (can't be DOS-style, as IFS=:)
45808          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45809 echo "$as_me: error: cannot find input file: $f" >&2;}
45810    { (exit 1); exit 1; }; }
45811          echo "$f";;
45812       *) # Relative
45813          if test -f "$f"; then
45814            # Build tree
45815            echo "$f"
45816          elif test -f "$srcdir/$f"; then
45817            # Source tree
45818            echo "$srcdir/$f"
45819          else
45820            # /dev/null tree
45821            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45822 echo "$as_me: error: cannot find input file: $f" >&2;}
45823    { (exit 1); exit 1; }; }
45824          fi;;
45825       esac
45826     done` || { (exit 1); exit 1; }
45827 _ACEOF
45828 cat >>$CONFIG_STATUS <<_ACEOF
45829   sed "$ac_vpsub
45830 $extrasub
45831 _ACEOF
45832 cat >>$CONFIG_STATUS <<\_ACEOF
45833 :t
45834 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45835 s,@configure_input@,$configure_input,;t t
45836 s,@srcdir@,$ac_srcdir,;t t
45837 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45838 s,@top_srcdir@,$ac_top_srcdir,;t t
45839 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45840 s,@builddir@,$ac_builddir,;t t
45841 s,@abs_builddir@,$ac_abs_builddir,;t t
45842 s,@top_builddir@,$ac_top_builddir,;t t
45843 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45844 s,@INSTALL@,$ac_INSTALL,;t t
45845 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45846   rm -f $tmp/stdin
45847   if test x"$ac_file" != x-; then
45848     mv $tmp/out $ac_file
45849   else
45850     cat $tmp/out
45851     rm -f $tmp/out
45852   fi
45853
45854 done
45855 _ACEOF
45856 cat >>$CONFIG_STATUS <<\_ACEOF
45857
45858 #
45859 # CONFIG_HEADER section.
45860 #
45861
45862 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45863 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45864 #
45865 # ac_d sets the value in "#define NAME VALUE" lines.
45866 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
45867 ac_dB='[         ].*$,\1#\2'
45868 ac_dC=' '
45869 ac_dD=',;t'
45870 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45871 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
45872 ac_uB='$,\1#\2define\3'
45873 ac_uC=' '
45874 ac_uD=',;t'
45875
45876 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45877   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45878   case $ac_file in
45879   - | *:- | *:-:* ) # input from stdin
45880         cat >$tmp/stdin
45881         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45882         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45883   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45884         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45885   * )   ac_file_in=$ac_file.in ;;
45886   esac
45887
45888   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45889 echo "$as_me: creating $ac_file" >&6;}
45890
45891   # First look for the input files in the build tree, otherwise in the
45892   # src tree.
45893   ac_file_inputs=`IFS=:
45894     for f in $ac_file_in; do
45895       case $f in
45896       -) echo $tmp/stdin ;;
45897       [\\/$]*)
45898          # Absolute (can't be DOS-style, as IFS=:)
45899          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45900 echo "$as_me: error: cannot find input file: $f" >&2;}
45901    { (exit 1); exit 1; }; }
45902          # Do quote $f, to prevent DOS paths from being IFS'd.
45903          echo "$f";;
45904       *) # Relative
45905          if test -f "$f"; then
45906            # Build tree
45907            echo "$f"
45908          elif test -f "$srcdir/$f"; then
45909            # Source tree
45910            echo "$srcdir/$f"
45911          else
45912            # /dev/null tree
45913            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45914 echo "$as_me: error: cannot find input file: $f" >&2;}
45915    { (exit 1); exit 1; }; }
45916          fi;;
45917       esac
45918     done` || { (exit 1); exit 1; }
45919   # Remove the trailing spaces.
45920   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
45921
45922 _ACEOF
45923
45924 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45925 # `conftest.undefs', that substitutes the proper values into
45926 # config.h.in to produce config.h.  The first handles `#define'
45927 # templates, and the second `#undef' templates.
45928 # And first: Protect against being on the right side of a sed subst in
45929 # config.status.  Protect against being in an unquoted here document
45930 # in config.status.
45931 rm -f conftest.defines conftest.undefs
45932 # Using a here document instead of a string reduces the quoting nightmare.
45933 # Putting comments in sed scripts is not portable.
45934 #
45935 # `end' is used to avoid that the second main sed command (meant for
45936 # 0-ary CPP macros) applies to n-ary macro definitions.
45937 # See the Autoconf documentation for `clear'.
45938 cat >confdef2sed.sed <<\_ACEOF
45939 s/[\\&,]/\\&/g
45940 s,[\\$`],\\&,g
45941 t clear
45942 : clear
45943 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45944 t end
45945 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45946 : end
45947 _ACEOF
45948 # If some macros were called several times there might be several times
45949 # the same #defines, which is useless.  Nevertheless, we may not want to
45950 # sort them, since we want the *last* AC-DEFINE to be honored.
45951 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45952 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45953 rm -f confdef2sed.sed
45954
45955 # This sed command replaces #undef with comments.  This is necessary, for
45956 # example, in the case of _POSIX_SOURCE, which is predefined and required
45957 # on some systems where configure will not decide to define it.
45958 cat >>conftest.undefs <<\_ACEOF
45959 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
45960 _ACEOF
45961
45962 # Break up conftest.defines because some shells have a limit on the size
45963 # of here documents, and old seds have small limits too (100 cmds).
45964 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
45965 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
45966 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45967 echo '  :' >>$CONFIG_STATUS
45968 rm -f conftest.tail
45969 while grep . conftest.defines >/dev/null
45970 do
45971   # Write a limited-size here document to $tmp/defines.sed.
45972   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45973   # Speed up: don't consider the non `#define' lines.
45974   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
45975   # Work around the forget-to-reset-the-flag bug.
45976   echo 't clr' >>$CONFIG_STATUS
45977   echo ': clr' >>$CONFIG_STATUS
45978   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45979   echo 'CEOF
45980   sed -f $tmp/defines.sed $tmp/in >$tmp/out
45981   rm -f $tmp/in
45982   mv $tmp/out $tmp/in
45983 ' >>$CONFIG_STATUS
45984   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45985   rm -f conftest.defines
45986   mv conftest.tail conftest.defines
45987 done
45988 rm -f conftest.defines
45989 echo '  fi # grep' >>$CONFIG_STATUS
45990 echo >>$CONFIG_STATUS
45991
45992 # Break up conftest.undefs because some shells have a limit on the size
45993 # of here documents, and old seds have small limits too (100 cmds).
45994 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
45995 rm -f conftest.tail
45996 while grep . conftest.undefs >/dev/null
45997 do
45998   # Write a limited-size here document to $tmp/undefs.sed.
45999   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46000   # Speed up: don't consider the non `#undef'
46001   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
46002   # Work around the forget-to-reset-the-flag bug.
46003   echo 't clr' >>$CONFIG_STATUS
46004   echo ': clr' >>$CONFIG_STATUS
46005   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46006   echo 'CEOF
46007   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46008   rm -f $tmp/in
46009   mv $tmp/out $tmp/in
46010 ' >>$CONFIG_STATUS
46011   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46012   rm -f conftest.undefs
46013   mv conftest.tail conftest.undefs
46014 done
46015 rm -f conftest.undefs
46016
46017 cat >>$CONFIG_STATUS <<\_ACEOF
46018   # Let's still pretend it is `configure' which instantiates (i.e., don't
46019   # use $as_me), people would be surprised to read:
46020   #    /* config.h.  Generated by config.status.  */
46021   if test x"$ac_file" = x-; then
46022     echo "/* Generated by configure.  */" >$tmp/config.h
46023   else
46024     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
46025   fi
46026   cat $tmp/in >>$tmp/config.h
46027   rm -f $tmp/in
46028   if test x"$ac_file" != x-; then
46029     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46030       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46031 echo "$as_me: $ac_file is unchanged" >&6;}
46032     else
46033       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46034 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46035          X"$ac_file" : 'X\(//\)[^/]' \| \
46036          X"$ac_file" : 'X\(//\)$' \| \
46037          X"$ac_file" : 'X\(/\)' \| \
46038          .     : '\(.\)' 2>/dev/null ||
46039 echo X"$ac_file" |
46040     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46041           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46042           /^X\(\/\/\)$/{ s//\1/; q; }
46043           /^X\(\/\).*/{ s//\1/; q; }
46044           s/.*/./; q'`
46045       { if $as_mkdir_p; then
46046     mkdir -p "$ac_dir"
46047   else
46048     as_dir="$ac_dir"
46049     as_dirs=
46050     while test ! -d "$as_dir"; do
46051       as_dirs="$as_dir $as_dirs"
46052       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46053 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46054          X"$as_dir" : 'X\(//\)[^/]' \| \
46055          X"$as_dir" : 'X\(//\)$' \| \
46056          X"$as_dir" : 'X\(/\)' \| \
46057          .     : '\(.\)' 2>/dev/null ||
46058 echo X"$as_dir" |
46059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46060           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46061           /^X\(\/\/\)$/{ s//\1/; q; }
46062           /^X\(\/\).*/{ s//\1/; q; }
46063           s/.*/./; q'`
46064     done
46065     test ! -n "$as_dirs" || mkdir $as_dirs
46066   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46067 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46068    { (exit 1); exit 1; }; }; }
46069
46070       rm -f $ac_file
46071       mv $tmp/config.h $ac_file
46072     fi
46073   else
46074     cat $tmp/config.h
46075     rm -f $tmp/config.h
46076   fi
46077 # Compute $ac_file's index in $config_headers.
46078 _am_stamp_count=1
46079 for _am_header in $config_headers :; do
46080   case $_am_header in
46081     $ac_file | $ac_file:* )
46082       break ;;
46083     * )
46084       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46085   esac
46086 done
46087 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46088 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46089          X$ac_file : 'X\(//\)[^/]' \| \
46090          X$ac_file : 'X\(//\)$' \| \
46091          X$ac_file : 'X\(/\)' \| \
46092          .     : '\(.\)' 2>/dev/null ||
46093 echo X$ac_file |
46094     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46095           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46096           /^X\(\/\/\)$/{ s//\1/; q; }
46097           /^X\(\/\).*/{ s//\1/; q; }
46098           s/.*/./; q'`/stamp-h$_am_stamp_count
46099 done
46100 _ACEOF
46101 cat >>$CONFIG_STATUS <<\_ACEOF
46102
46103 #
46104 # CONFIG_COMMANDS section.
46105 #
46106 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46107   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46108   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46109   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46110 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46111          X"$ac_dest" : 'X\(//\)[^/]' \| \
46112          X"$ac_dest" : 'X\(//\)$' \| \
46113          X"$ac_dest" : 'X\(/\)' \| \
46114          .     : '\(.\)' 2>/dev/null ||
46115 echo X"$ac_dest" |
46116     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46117           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46118           /^X\(\/\/\)$/{ s//\1/; q; }
46119           /^X\(\/\).*/{ s//\1/; q; }
46120           s/.*/./; q'`
46121   { if $as_mkdir_p; then
46122     mkdir -p "$ac_dir"
46123   else
46124     as_dir="$ac_dir"
46125     as_dirs=
46126     while test ! -d "$as_dir"; do
46127       as_dirs="$as_dir $as_dirs"
46128       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46130          X"$as_dir" : 'X\(//\)[^/]' \| \
46131          X"$as_dir" : 'X\(//\)$' \| \
46132          X"$as_dir" : 'X\(/\)' \| \
46133          .     : '\(.\)' 2>/dev/null ||
46134 echo X"$as_dir" |
46135     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46136           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46137           /^X\(\/\/\)$/{ s//\1/; q; }
46138           /^X\(\/\).*/{ s//\1/; q; }
46139           s/.*/./; q'`
46140     done
46141     test ! -n "$as_dirs" || mkdir $as_dirs
46142   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46143 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46144    { (exit 1); exit 1; }; }; }
46145
46146   ac_builddir=.
46147
46148 if test "$ac_dir" != .; then
46149   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46150   # A "../" for each directory in $ac_dir_suffix.
46151   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46152 else
46153   ac_dir_suffix= ac_top_builddir=
46154 fi
46155
46156 case $srcdir in
46157   .)  # No --srcdir option.  We are building in place.
46158     ac_srcdir=.
46159     if test -z "$ac_top_builddir"; then
46160        ac_top_srcdir=.
46161     else
46162        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46163     fi ;;
46164   [\\/]* | ?:[\\/]* )  # Absolute path.
46165     ac_srcdir=$srcdir$ac_dir_suffix;
46166     ac_top_srcdir=$srcdir ;;
46167   *) # Relative path.
46168     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46169     ac_top_srcdir=$ac_top_builddir$srcdir ;;
46170 esac
46171
46172 # Do not use `cd foo && pwd` to compute absolute paths, because
46173 # the directories may not exist.
46174 case `pwd` in
46175 .) ac_abs_builddir="$ac_dir";;
46176 *)
46177   case "$ac_dir" in
46178   .) ac_abs_builddir=`pwd`;;
46179   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46180   *) ac_abs_builddir=`pwd`/"$ac_dir";;
46181   esac;;
46182 esac
46183 case $ac_abs_builddir in
46184 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46185 *)
46186   case ${ac_top_builddir}. in
46187   .) ac_abs_top_builddir=$ac_abs_builddir;;
46188   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46189   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46190   esac;;
46191 esac
46192 case $ac_abs_builddir in
46193 .) ac_abs_srcdir=$ac_srcdir;;
46194 *)
46195   case $ac_srcdir in
46196   .) ac_abs_srcdir=$ac_abs_builddir;;
46197   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46198   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46199   esac;;
46200 esac
46201 case $ac_abs_builddir in
46202 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46203 *)
46204   case $ac_top_srcdir in
46205   .) ac_abs_top_srcdir=$ac_abs_builddir;;
46206   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46207   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46208   esac;;
46209 esac
46210
46211
46212   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46213 echo "$as_me: executing $ac_dest commands" >&6;}
46214   case $ac_dest in
46215     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46216   # Strip MF so we end up with the name of the file.
46217   mf=`echo "$mf" | sed -e 's/:.*$//'`
46218   # Check whether this is an Automake generated Makefile or not.
46219   # We used to match only the files named `Makefile.in', but
46220   # some people rename them; so instead we look at the file content.
46221   # Grep'ing the first line is not enough: some people post-process
46222   # each Makefile.in and add a new line on top of each file to say so.
46223   # So let's grep whole file.
46224   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46225     dirpart=`(dirname "$mf") 2>/dev/null ||
46226 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46227          X"$mf" : 'X\(//\)[^/]' \| \
46228          X"$mf" : 'X\(//\)$' \| \
46229          X"$mf" : 'X\(/\)' \| \
46230          .     : '\(.\)' 2>/dev/null ||
46231 echo X"$mf" |
46232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46233           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46234           /^X\(\/\/\)$/{ s//\1/; q; }
46235           /^X\(\/\).*/{ s//\1/; q; }
46236           s/.*/./; q'`
46237   else
46238     continue
46239   fi
46240   # Extract the definition of DEPDIR, am__include, and am__quote
46241   # from the Makefile without running `make'.
46242   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46243   test -z "$DEPDIR" && continue
46244   am__include=`sed -n 's/^am__include = //p' < "$mf"`
46245   test -z "am__include" && continue
46246   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46247   # When using ansi2knr, U may be empty or an underscore; expand it
46248   U=`sed -n 's/^U = //p' < "$mf"`
46249   # Find all dependency output files, they are included files with
46250   # $(DEPDIR) in their names.  We invoke sed twice because it is the
46251   # simplest approach to changing $(DEPDIR) to its actual value in the
46252   # expansion.
46253   for file in `sed -n "
46254     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46255        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46256     # Make sure the directory exists.
46257     test -f "$dirpart/$file" && continue
46258     fdir=`(dirname "$file") 2>/dev/null ||
46259 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46260          X"$file" : 'X\(//\)[^/]' \| \
46261          X"$file" : 'X\(//\)$' \| \
46262          X"$file" : 'X\(/\)' \| \
46263          .     : '\(.\)' 2>/dev/null ||
46264 echo X"$file" |
46265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46266           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46267           /^X\(\/\/\)$/{ s//\1/; q; }
46268           /^X\(\/\).*/{ s//\1/; q; }
46269           s/.*/./; q'`
46270     { if $as_mkdir_p; then
46271     mkdir -p $dirpart/$fdir
46272   else
46273     as_dir=$dirpart/$fdir
46274     as_dirs=
46275     while test ! -d "$as_dir"; do
46276       as_dirs="$as_dir $as_dirs"
46277       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46278 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46279          X"$as_dir" : 'X\(//\)[^/]' \| \
46280          X"$as_dir" : 'X\(//\)$' \| \
46281          X"$as_dir" : 'X\(/\)' \| \
46282          .     : '\(.\)' 2>/dev/null ||
46283 echo X"$as_dir" |
46284     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46285           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46286           /^X\(\/\/\)$/{ s//\1/; q; }
46287           /^X\(\/\).*/{ s//\1/; q; }
46288           s/.*/./; q'`
46289     done
46290     test ! -n "$as_dirs" || mkdir $as_dirs
46291   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46292 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46293    { (exit 1); exit 1; }; }; }
46294
46295     # echo "creating $dirpart/$file"
46296     echo '# dummy' > "$dirpart/$file"
46297   done
46298 done
46299  ;;
46300     default )
46301 chmod +x tests/run
46302 date > stamp-h
46303 BACKENDSC="servers/slapd/backends.c"
46304 echo "Making $BACKENDSC"
46305 rm -f $BACKENDSC
46306 cat > $BACKENDSC << ENDX
46307 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46308  *
46309  * Copyright 1998-2006 The OpenLDAP Foundation.
46310  * All rights reserved.
46311  *
46312  * Redistribution and use in source and binary forms, with or without
46313  * modification, are permitted only as authorized by the OpenLDAP
46314  * Public License.
46315  *
46316  * A copy of this license is available in the file LICENSE in the
46317  * top-level directory of the distribution or, alternatively, at
46318  * <http://www.OpenLDAP.org/license.html>.
46319  */
46320 /* This file is automatically generated by configure; please do not edit. */
46321
46322 #include "portable.h"
46323 #include "slap.h"
46324
46325 ENDX
46326 if test "${STATIC_BACKENDS}"; then
46327         for b in config ${STATIC_BACKENDS}; do
46328                 bb=`echo "${b}" | sed -e 's/back-//'`
46329                 cat >> $BACKENDSC << ENDX
46330 extern BI_init ${bb}_back_initialize;
46331 ENDX
46332         done
46333
46334         cat >> $BACKENDSC << ENDX
46335
46336 BackendInfo slap_binfo[] = {
46337 ENDX
46338
46339         for b in config ${STATIC_BACKENDS}; do
46340                 bb=`echo "${b}" | sed -e 's/back-//'`
46341                 echo "    Add ${bb} ..."
46342                 cat >> $BACKENDSC << ENDX
46343         { "${bb}", ${bb}_back_initialize },
46344 ENDX
46345         done
46346
46347         cat >> $BACKENDSC << ENDX
46348         { NULL, NULL },
46349 };
46350
46351 /* end of generated file */
46352 ENDX
46353 fi
46354 OVERLAYSC="servers/slapd/overlays/statover.c"
46355 echo "Making $OVERLAYSC"
46356 rm -f $OVERLAYSC
46357 cat > $OVERLAYSC << ENDX
46358 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46359  *
46360  * Copyright 1998-2006 The OpenLDAP Foundation.
46361  * All rights reserved.
46362  *
46363  * Redistribution and use in source and binary forms, with or without
46364  * modification, are permitted only as authorized by the OpenLDAP
46365  * Public License.
46366  *
46367  * A copy of this license is available in the file LICENSE in the
46368  * top-level directory of the distribution or, alternatively, at
46369  * <http://www.OpenLDAP.org/license.html>.
46370  */
46371 /* This file is automatically generated by configure; please do not edit. */
46372
46373 #include "portable.h"
46374 #include "slap.h"
46375
46376 ENDX
46377 if test "${STATIC_OVERLAYS}"; then
46378         for o in ${STATIC_OVERLAYS}; do
46379                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46380                 cat >> $OVERLAYSC << ENDX
46381 extern OV_init ${oo}_initialize;
46382 ENDX
46383         done
46384 fi
46385
46386 cat >> $OVERLAYSC << ENDX
46387
46388 OverlayInit slap_oinfo[] = {
46389 ENDX
46390
46391 if test "${STATIC_OVERLAYS}"; then
46392         for o in ${STATIC_OVERLAYS}; do
46393                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46394                 echo "    Add ${oo} ..."
46395                 cat >> $OVERLAYSC << ENDX
46396         { "${oo}", ${oo}_initialize },
46397 ENDX
46398         done
46399 fi
46400
46401         cat >> $OVERLAYSC << ENDX
46402         { NULL, NULL },
46403 };
46404
46405 /* end of generated file */
46406 ENDX
46407
46408 echo Please run \"make depend\" to build dependencies
46409  ;;
46410   esac
46411 done
46412 _ACEOF
46413
46414 cat >>$CONFIG_STATUS <<\_ACEOF
46415
46416 { (exit 0); exit 0; }
46417 _ACEOF
46418 chmod +x $CONFIG_STATUS
46419 ac_clean_files=$ac_clean_files_save
46420
46421
46422 # configure is writing to config.log, and then calls config.status.
46423 # config.status does its own redirection, appending to config.log.
46424 # Unfortunately, on DOS this fails, as config.log is still kept open
46425 # by configure, so config.status won't be able to write to it; its
46426 # output is simply discarded.  So we exec the FD to /dev/null,
46427 # effectively closing config.log, so it can be properly (re)opened and
46428 # appended to by config.status.  When coming back to configure, we
46429 # need to make the FD available again.
46430 if test "$no_create" != yes; then
46431   ac_cs_success=:
46432   ac_config_status_args=
46433   test "$silent" = yes &&
46434     ac_config_status_args="$ac_config_status_args --quiet"
46435   exec 5>/dev/null
46436   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46437   exec 5>>config.log
46438   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46439   # would make configure fail if this is the last instruction.
46440   $ac_cs_success || { (exit 1); exit 1; }
46441 fi
46442