]> git.sur5r.net Git - openldap/blob - configure
don't muck with SlapReply during response (ITS#4173)
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.603 2005/11/13 21:26:59 ando Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2005 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_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_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 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 [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-aci          enable per-object ACIs (experimental) [no]
1019     --enable-cleartext    enable cleartext passwords [yes]
1020     --enable-crypt        enable crypt(3) passwords [no]
1021     --enable-lmpasswd     enable LAN Manager passwords [no]
1022     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1023     --enable-modules      enable dynamic module support [no]
1024     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1025     --enable-rlookups     enable reverse lookups of client hostnames [no]
1026     --enable-slapi        enable SLAPI support (experimental) [no]
1027     --enable-slp          enable SLPv2 support [no]
1028     --enable-wrappers     enable tcp wrapper support [no]
1029
1030 SLAPD Backend Options:
1031     --enable-backends     enable all available backends no|yes|mod
1032     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1033     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1034     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1035     --enable-ldap         enable ldap backend no|yes|mod [no]
1036     --enable-ldbm         enable ldbm backend no|yes|mod [no]
1037       --enable-ldbm-api   use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1038       --enable-ldbm-type  use LDBM type auto|btree|hash [auto]
1039     --enable-meta         enable metadirectory backend no|yes|mod [no]
1040     --enable-monitor      enable monitor backend no|yes|mod [yes]
1041     --enable-null         enable null backend no|yes|mod [no]
1042     --enable-passwd       enable passwd backend no|yes|mod [no]
1043     --enable-perl         enable perl backend no|yes|mod [no]
1044     --enable-relay        enable relay backend no|yes|mod [yes]
1045     --enable-shell        enable shell backend no|yes|mod [no]
1046     --enable-sql          enable sql backend no|yes|mod [no]
1047
1048 SLAPD Overlay Options:
1049     --enable-overlays     enable all available overlays no|yes|mod
1050     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1051     --enable-denyop       Deny Operation overlay no|yes|mod [no]
1052     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1053     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1054     --enable-lastmod      Last Modification overlay no|yes|mod [no]
1055     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1056     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1057     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1058     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1059     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1060     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1061     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1062     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1063     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1064
1065 SLURPD (Replication Daemon) Options:
1066   --enable-slurpd         enable building slurpd [auto]
1067
1068 Library Generation & Linking Options
1069   --enable-static[=PKGS]
1070                           build static libraries [default=yes]
1071   --enable-shared[=PKGS]
1072                           build shared libraries [default=yes]
1073   --enable-fast-install[=PKGS]
1074                           optimize for fast installation [default=yes]
1075   --disable-dependency-tracking  speeds up one-time build
1076   --enable-dependency-tracking   do not reject slow dependency extractors
1077   --disable-libtool-lock  avoid locking (might break parallel builds)
1078
1079 Optional Packages:
1080   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1081   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1082   --with-subdir=DIR       change default subdirectory used for installs
1083   --with-cyrus-sasl       with Cyrus SASL support [auto]
1084   --with-fetch            with fetch(3) URL support [auto]
1085   --with-threads          with threads [auto]
1086   --with-tls              with TLS/SSL support [auto]
1087   --with-yielding-select  with implicitly yielding select [auto]
1088   --with-multiple-precision
1089                           multiple precision support for statistics
1090                           auto|bignum|gmp [auto]
1091
1092   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1093   --with-pic              try to use only PIC/non-PIC objects [default=use
1094                           both]
1095   --with-tags[=TAGS]
1096                           include additional configurations [automatic]
1097
1098 See INSTALL file for further details.
1099
1100 Some influential environment variables:
1101   CC          C compiler command
1102   CFLAGS      C compiler flags
1103   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1104               nonstandard directory <lib dir>
1105   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106               headers in a nonstandard directory <include dir>
1107   CPP         C preprocessor
1108
1109 Use these variables to override the choices made by `configure' or to help
1110 it to find libraries and programs with nonstandard names/locations.
1111
1112 _ACEOF
1113 fi
1114
1115 if test "$ac_init_help" = "recursive"; then
1116   # If there are subdirs, report their specific --help.
1117   ac_popdir=`pwd`
1118   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119     test -d $ac_dir || continue
1120     ac_builddir=.
1121
1122 if test "$ac_dir" != .; then
1123   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124   # A "../" for each directory in $ac_dir_suffix.
1125   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1126 else
1127   ac_dir_suffix= ac_top_builddir=
1128 fi
1129
1130 case $srcdir in
1131   .)  # No --srcdir option.  We are building in place.
1132     ac_srcdir=.
1133     if test -z "$ac_top_builddir"; then
1134        ac_top_srcdir=.
1135     else
1136        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1137     fi ;;
1138   [\\/]* | ?:[\\/]* )  # Absolute path.
1139     ac_srcdir=$srcdir$ac_dir_suffix;
1140     ac_top_srcdir=$srcdir ;;
1141   *) # Relative path.
1142     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144 esac
1145
1146 # Do not use `cd foo && pwd` to compute absolute paths, because
1147 # the directories may not exist.
1148 case `pwd` in
1149 .) ac_abs_builddir="$ac_dir";;
1150 *)
1151   case "$ac_dir" in
1152   .) ac_abs_builddir=`pwd`;;
1153   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155   esac;;
1156 esac
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1159 *)
1160   case ${ac_top_builddir}. in
1161   .) ac_abs_top_builddir=$ac_abs_builddir;;
1162   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164   esac;;
1165 esac
1166 case $ac_abs_builddir in
1167 .) ac_abs_srcdir=$ac_srcdir;;
1168 *)
1169   case $ac_srcdir in
1170   .) ac_abs_srcdir=$ac_abs_builddir;;
1171   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173   esac;;
1174 esac
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1177 *)
1178   case $ac_top_srcdir in
1179   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1182   esac;;
1183 esac
1184
1185     cd $ac_dir
1186     # Check for guested configure; otherwise get Cygnus style configure.
1187     if test -f $ac_srcdir/configure.gnu; then
1188       echo
1189       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1190     elif test -f $ac_srcdir/configure; then
1191       echo
1192       $SHELL $ac_srcdir/configure  --help=recursive
1193     elif test -f $ac_srcdir/configure.ac ||
1194            test -f $ac_srcdir/configure.in; then
1195       echo
1196       $ac_configure --help
1197     else
1198       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1199     fi
1200     cd $ac_popdir
1201   done
1202 fi
1203
1204 test -n "$ac_init_help" && exit 0
1205 if $ac_init_version; then
1206   cat <<\_ACEOF
1207
1208 Copyright (C) 2003 Free Software Foundation, Inc.
1209 This configure script is free software; the Free Software Foundation
1210 gives unlimited permission to copy, distribute and modify it.
1211
1212 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1213 Restrictions apply, see COPYRIGHT and LICENSE files.
1214 _ACEOF
1215   exit 0
1216 fi
1217 exec 5>config.log
1218 cat >&5 <<_ACEOF
1219 This file contains any messages produced by compilers while
1220 running configure, to aid debugging if configure makes a mistake.
1221
1222 It was created by $as_me, which was
1223 generated by GNU Autoconf 2.59.  Invocation command line was
1224
1225   $ $0 $@
1226
1227 _ACEOF
1228 {
1229 cat <<_ASUNAME
1230 ## --------- ##
1231 ## Platform. ##
1232 ## --------- ##
1233
1234 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1235 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1236 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1237 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1238 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1239
1240 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1241 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1242
1243 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1244 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1245 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1246 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1247 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1248 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1249 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1250
1251 _ASUNAME
1252
1253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1254 for as_dir in $PATH
1255 do
1256   IFS=$as_save_IFS
1257   test -z "$as_dir" && as_dir=.
1258   echo "PATH: $as_dir"
1259 done
1260
1261 } >&5
1262
1263 cat >&5 <<_ACEOF
1264
1265
1266 ## ----------- ##
1267 ## Core tests. ##
1268 ## ----------- ##
1269
1270 _ACEOF
1271
1272
1273 # Keep a trace of the command line.
1274 # Strip out --no-create and --no-recursion so they do not pile up.
1275 # Strip out --silent because we don't want to record it for future runs.
1276 # Also quote any args containing shell meta-characters.
1277 # Make two passes to allow for proper duplicate-argument suppression.
1278 ac_configure_args=
1279 ac_configure_args0=
1280 ac_configure_args1=
1281 ac_sep=
1282 ac_must_keep_next=false
1283 for ac_pass in 1 2
1284 do
1285   for ac_arg
1286   do
1287     case $ac_arg in
1288     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1289     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290     | -silent | --silent | --silen | --sile | --sil)
1291       continue ;;
1292     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1294     esac
1295     case $ac_pass in
1296     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1297     2)
1298       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1299       if test $ac_must_keep_next = true; then
1300         ac_must_keep_next=false # Got value, back to normal.
1301       else
1302         case $ac_arg in
1303           *=* | --config-cache | -C | -disable-* | --disable-* \
1304           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1305           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1306           | -with-* | --with-* | -without-* | --without-* | --x)
1307             case "$ac_configure_args0 " in
1308               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1309             esac
1310             ;;
1311           -* ) ac_must_keep_next=true ;;
1312         esac
1313       fi
1314       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1315       # Get rid of the leading space.
1316       ac_sep=" "
1317       ;;
1318     esac
1319   done
1320 done
1321 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1322 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1323
1324 # When interrupted or exit'd, cleanup temporary files, and complete
1325 # config.log.  We remove comments because anyway the quotes in there
1326 # would cause problems or look ugly.
1327 # WARNING: Be sure not to use single quotes in there, as some shells,
1328 # such as our DU 5.0 friend, will then `close' the trap.
1329 trap 'exit_status=$?
1330   # Save into config.log some information that might help in debugging.
1331   {
1332     echo
1333
1334     cat <<\_ASBOX
1335 ## ---------------- ##
1336 ## Cache variables. ##
1337 ## ---------------- ##
1338 _ASBOX
1339     echo
1340     # The following way of writing the cache mishandles newlines in values,
1341 {
1342   (set) 2>&1 |
1343     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1344     *ac_space=\ *)
1345       sed -n \
1346         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1347           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1348       ;;
1349     *)
1350       sed -n \
1351         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1352       ;;
1353     esac;
1354 }
1355     echo
1356
1357     cat <<\_ASBOX
1358 ## ----------------- ##
1359 ## Output variables. ##
1360 ## ----------------- ##
1361 _ASBOX
1362     echo
1363     for ac_var in $ac_subst_vars
1364     do
1365       eval ac_val=$`echo $ac_var`
1366       echo "$ac_var='"'"'$ac_val'"'"'"
1367     done | sort
1368     echo
1369
1370     if test -n "$ac_subst_files"; then
1371       cat <<\_ASBOX
1372 ## ------------- ##
1373 ## Output files. ##
1374 ## ------------- ##
1375 _ASBOX
1376       echo
1377       for ac_var in $ac_subst_files
1378       do
1379         eval ac_val=$`echo $ac_var`
1380         echo "$ac_var='"'"'$ac_val'"'"'"
1381       done | sort
1382       echo
1383     fi
1384
1385     if test -s confdefs.h; then
1386       cat <<\_ASBOX
1387 ## ----------- ##
1388 ## confdefs.h. ##
1389 ## ----------- ##
1390 _ASBOX
1391       echo
1392       sed "/^$/d" confdefs.h | sort
1393       echo
1394     fi
1395     test "$ac_signal" != 0 &&
1396       echo "$as_me: caught signal $ac_signal"
1397     echo "$as_me: exit $exit_status"
1398   } >&5
1399   rm -f core *.core &&
1400   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1401     exit $exit_status
1402      ' 0
1403 for ac_signal in 1 2 13 15; do
1404   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1405 done
1406 ac_signal=0
1407
1408 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1409 rm -rf conftest* confdefs.h
1410 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1411 echo >confdefs.h
1412
1413 # Predefined preprocessor variables.
1414
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_NAME "$PACKAGE_NAME"
1417 _ACEOF
1418
1419
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1422 _ACEOF
1423
1424
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1427 _ACEOF
1428
1429
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_STRING "$PACKAGE_STRING"
1432 _ACEOF
1433
1434
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1437 _ACEOF
1438
1439
1440 # Let the site file select an alternate cache file if it wants to.
1441 # Prefer explicitly selected file to automatically selected ones.
1442 if test -z "$CONFIG_SITE"; then
1443   if test "x$prefix" != xNONE; then
1444     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1445   else
1446     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1447   fi
1448 fi
1449 for ac_site_file in $CONFIG_SITE; do
1450   if test -r "$ac_site_file"; then
1451     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1452 echo "$as_me: loading site script $ac_site_file" >&6;}
1453     sed 's/^/| /' "$ac_site_file" >&5
1454     . "$ac_site_file"
1455   fi
1456 done
1457
1458
1459 # Check that the precious variables saved in the cache have kept the same
1460 # value.
1461 ac_cache_corrupted=false
1462 for ac_var in `(set) 2>&1 |
1463                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465   eval ac_new_set=\$ac_env_${ac_var}_set
1466   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467   eval ac_new_val="\$ac_env_${ac_var}_value"
1468   case $ac_old_set,$ac_new_set in
1469     set,)
1470       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472       ac_cache_corrupted=: ;;
1473     ,set)
1474       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476       ac_cache_corrupted=: ;;
1477     ,);;
1478     *)
1479       if test "x$ac_old_val" != "x$ac_new_val"; then
1480         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1483 echo "$as_me:   former value:  $ac_old_val" >&2;}
1484         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1485 echo "$as_me:   current value: $ac_new_val" >&2;}
1486         ac_cache_corrupted=:
1487       fi;;
1488   esac
1489   # Pass precious variables to config.status.
1490   if test "$ac_new_set" = set; then
1491     case $ac_new_val in
1492     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494     *) ac_arg=$ac_var=$ac_new_val ;;
1495     esac
1496     case " $ac_configure_args " in
1497       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1498       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1499     esac
1500   fi
1501 done
1502 if $ac_cache_corrupted; then
1503   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507    { (exit 1); exit 1; }; }
1508 fi
1509
1510 ac_ext=c
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556 ac_aux_dir=
1557 for ac_dir in build $srcdir/build; do
1558   if test -f $ac_dir/install-sh; then
1559     ac_aux_dir=$ac_dir
1560     ac_install_sh="$ac_aux_dir/install-sh -c"
1561     break
1562   elif test -f $ac_dir/install.sh; then
1563     ac_aux_dir=$ac_dir
1564     ac_install_sh="$ac_aux_dir/install.sh -c"
1565     break
1566   elif test -f $ac_dir/shtool; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/shtool install -c"
1569     break
1570   fi
1571 done
1572 if test -z "$ac_aux_dir"; then
1573   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1575    { (exit 1); exit 1; }; }
1576 fi
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580
1581 eval `$ac_aux_dir/version.sh`
1582 if test -z "$OL_STRING"; then
1583         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1584 echo "$as_me: error: could not determine version" >&2;}
1585    { (exit 1); exit 1; }; }
1586 fi
1587
1588 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1589         ac_cv_shtool="$ac_aux_dir/shtool"
1590 else
1591         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1592 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1593    { (exit 1); exit 1; }; }
1594 fi
1595
1596 SHTOOL="$ac_cv_shtool"
1597
1598 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1599 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1600
1601 OPENLDAP_CVS=""
1602 if test -d $ac_aux_dir/CVS; then
1603         OPENLDAP_CVS="(from CVS sources) "
1604 fi
1605
1606 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1607
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612    { (exit 1); exit 1; }; }
1613
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617   echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619   ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621   ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625    { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629    { (exit 1); exit 1; }; }
1630
1631 fi
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1634 build=$ac_cv_build
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638
1639
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647   ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651    { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1656 host=$ac_cv_host
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking target system type" >&5
1663 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1664 if test "${ac_cv_target+set}" = set; then
1665   echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667   ac_cv_target_alias=$target_alias
1668 test "x$ac_cv_target_alias" = "x" &&
1669   ac_cv_target_alias=$ac_cv_host_alias
1670 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1671   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1673    { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1677 echo "${ECHO_T}$ac_cv_target" >&6
1678 target=$ac_cv_target
1679 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 # The aliases save the names the user supplied, while $host etc.
1685 # will get canonicalized.
1686 test -n "$target_alias" &&
1687   test "$program_prefix$program_suffix$program_transform_name" = \
1688     NONENONEs,x,x, &&
1689   program_prefix=${target_alias}-
1690
1691 am__api_version="1.9"
1692 # Find a good install program.  We prefer a C program (faster),
1693 # so one script is as good as another.  But avoid the broken or
1694 # incompatible versions:
1695 # SysV /etc/install, /usr/sbin/install
1696 # SunOS /usr/etc/install
1697 # IRIX /sbin/install
1698 # AIX /bin/install
1699 # AmigaOS /C/install, which installs bootblocks on floppy discs
1700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1703 # OS/2's system install, which has a completely different semantic
1704 # ./install, which can be erroneously created by make from ./install.sh.
1705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1707 if test -z "$INSTALL"; then
1708 if test "${ac_cv_path_install+set}" = set; then
1709   echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   # Account for people who put trailing slashes in PATH elements.
1717 case $as_dir/ in
1718   ./ | .// | /cC/* | \
1719   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1720   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1721   /usr/ucb/* ) ;;
1722   *)
1723     # OSF1 and SCO ODT 3.0 have their own names for install.
1724     # Don't use installbsd from OSF since it installs stuff as root
1725     # by default.
1726     for ac_prog in ginstall scoinst install; do
1727       for ac_exec_ext in '' $ac_executable_extensions; do
1728         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1729           if test $ac_prog = install &&
1730             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1731             # AIX install.  It has an incompatible calling convention.
1732             :
1733           elif test $ac_prog = install &&
1734             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735             # program-specific install script used by HP pwplus--don't use.
1736             :
1737           else
1738             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1739             break 3
1740           fi
1741         fi
1742       done
1743     done
1744     ;;
1745 esac
1746 done
1747
1748
1749 fi
1750   if test "${ac_cv_path_install+set}" = set; then
1751     INSTALL=$ac_cv_path_install
1752   else
1753     # As a last resort, use the slow shell script.  We don't cache a
1754     # path for INSTALL within a source directory, because that will
1755     # break other packages using the cache if that directory is
1756     # removed, or if the path is relative.
1757     INSTALL=$ac_install_sh
1758   fi
1759 fi
1760 echo "$as_me:$LINENO: result: $INSTALL" >&5
1761 echo "${ECHO_T}$INSTALL" >&6
1762
1763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1764 # It thinks the first close brace ends the variable substitution.
1765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1766
1767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1768
1769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1770
1771 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1772 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1773 # Just in case
1774 sleep 1
1775 echo timestamp > conftest.file
1776 # Do `set' in a subshell so we don't clobber the current shell's
1777 # arguments.  Must try -L first in case configure is actually a
1778 # symlink; some systems play weird games with the mod time of symlinks
1779 # (eg FreeBSD returns the mod time of the symlink's containing
1780 # directory).
1781 if (
1782    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1783    if test "$*" = "X"; then
1784       # -L didn't work.
1785       set X `ls -t $srcdir/configure conftest.file`
1786    fi
1787    rm -f conftest.file
1788    if test "$*" != "X $srcdir/configure conftest.file" \
1789       && test "$*" != "X conftest.file $srcdir/configure"; then
1790
1791       # If neither matched, then we have a broken ls.  This can happen
1792       # if, for instance, CONFIG_SHELL is bash and it inherits a
1793       # broken ls alias from the environment.  This has actually
1794       # happened.  Such a system could not be considered "sane".
1795       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1796 alias in your environment" >&5
1797 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1798 alias in your environment" >&2;}
1799    { (exit 1); exit 1; }; }
1800    fi
1801
1802    test "$2" = conftest.file
1803    )
1804 then
1805    # Ok.
1806    :
1807 else
1808    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1809 Check your system clock" >&5
1810 echo "$as_me: error: newly created file is older than distributed files!
1811 Check your system clock" >&2;}
1812    { (exit 1); exit 1; }; }
1813 fi
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1816 test "$program_prefix" != NONE &&
1817   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1818 # Use a double $ so make ignores it.
1819 test "$program_suffix" != NONE &&
1820   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1821 # Double any \ or $.  echo might interpret backslashes.
1822 # By default was `s,x,x', remove it if useless.
1823 cat <<\_ACEOF >conftest.sed
1824 s/[\\$]/&&/g;s/;s,x,x,$//
1825 _ACEOF
1826 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1827 rm conftest.sed
1828
1829 # expand $ac_aux_dir to an absolute path
1830 am_aux_dir=`cd $ac_aux_dir && pwd`
1831
1832 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1833 # Use eval to expand $SHELL
1834 if eval "$MISSING --run true"; then
1835   am_missing_run="$MISSING --run "
1836 else
1837   am_missing_run=
1838   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1839 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1840 fi
1841
1842 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1843   # We used to keeping the `.' as first argument, in order to
1844   # allow $(mkdir_p) to be used without argument.  As in
1845   #   $(mkdir_p) $(somedir)
1846   # where $(somedir) is conditionally defined.  However this is wrong
1847   # for two reasons:
1848   #  1. if the package is installed by a user who cannot write `.'
1849   #     make install will fail,
1850   #  2. the above comment should most certainly read
1851   #     $(mkdir_p) $(DESTDIR)$(somedir)
1852   #     so it does not work when $(somedir) is undefined and
1853   #     $(DESTDIR) is not.
1854   #  To support the latter case, we have to write
1855   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1856   #  so the `.' trick is pointless.
1857   mkdir_p='mkdir -p --'
1858 else
1859   # On NextStep and OpenStep, the `mkdir' command does not
1860   # recognize any option.  It will interpret all options as
1861   # directories to create, and then abort because `.' already
1862   # exists.
1863   for d in ./-p ./--version;
1864   do
1865     test -d $d && rmdir $d
1866   done
1867   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1868   if test -f "$ac_aux_dir/mkinstalldirs"; then
1869     mkdir_p='$(mkinstalldirs)'
1870   else
1871     mkdir_p='$(install_sh) -d'
1872   fi
1873 fi
1874
1875 for ac_prog in gawk mawk nawk awk
1876 do
1877   # Extract the first word of "$ac_prog", so it can be a program name with args.
1878 set dummy $ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_AWK+set}" = set; then
1882   echo $ECHO_N "(cached) $ECHO_C" >&6
1883 else
1884   if test -n "$AWK"; then
1885   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1886 else
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 for as_dir in $PATH
1889 do
1890   IFS=$as_save_IFS
1891   test -z "$as_dir" && as_dir=.
1892   for ac_exec_ext in '' $ac_executable_extensions; do
1893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894     ac_cv_prog_AWK="$ac_prog"
1895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896     break 2
1897   fi
1898 done
1899 done
1900
1901 fi
1902 fi
1903 AWK=$ac_cv_prog_AWK
1904 if test -n "$AWK"; then
1905   echo "$as_me:$LINENO: result: $AWK" >&5
1906 echo "${ECHO_T}$AWK" >&6
1907 else
1908   echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1910 fi
1911
1912   test -n "$AWK" && break
1913 done
1914
1915 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1916 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1917 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1918 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   cat >conftest.make <<\_ACEOF
1922 all:
1923         @echo 'ac_maketemp="$(MAKE)"'
1924 _ACEOF
1925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1926 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1927 if test -n "$ac_maketemp"; then
1928   eval ac_cv_prog_make_${ac_make}_set=yes
1929 else
1930   eval ac_cv_prog_make_${ac_make}_set=no
1931 fi
1932 rm -f conftest.make
1933 fi
1934 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1935   echo "$as_me:$LINENO: result: yes" >&5
1936 echo "${ECHO_T}yes" >&6
1937   SET_MAKE=
1938 else
1939   echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941   SET_MAKE="MAKE=${MAKE-make}"
1942 fi
1943
1944 rm -rf .tst 2>/dev/null
1945 mkdir .tst 2>/dev/null
1946 if test -d .tst; then
1947   am__leading_dot=.
1948 else
1949   am__leading_dot=_
1950 fi
1951 rmdir .tst 2>/dev/null
1952
1953 # test to see if srcdir already configured
1954 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1955    test -f $srcdir/config.status; then
1956   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1957 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 # test whether we have cygpath
1962 if test -z "$CYGPATH_W"; then
1963   if (cygpath --version) >/dev/null 2>/dev/null; then
1964     CYGPATH_W='cygpath -w'
1965   else
1966     CYGPATH_W=echo
1967   fi
1968 fi
1969
1970
1971 # Define the identity of the package.
1972  PACKAGE=$OL_PACKAGE
1973  VERSION=$OL_VERSION
1974
1975
1976 # Some tools Automake needs.
1977
1978 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1979
1980
1981 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1982
1983
1984 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1985
1986
1987 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1988
1989
1990 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1991
1992 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1993
1994 # Installed binaries are usually stripped using `strip' when the user
1995 # run `make install-strip'.  However `strip' might not be the right
1996 # tool to use in cross-compilation environments, therefore Automake
1997 # will honor the `STRIP' environment variable to overrule this program.
1998 if test "$cross_compiling" != no; then
1999   if test -n "$ac_tool_prefix"; then
2000   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2001 set dummy ${ac_tool_prefix}strip; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_STRIP+set}" = set; then
2005   echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007   if test -n "$STRIP"; then
2008   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2009 else
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2012 do
2013   IFS=$as_save_IFS
2014   test -z "$as_dir" && as_dir=.
2015   for ac_exec_ext in '' $ac_executable_extensions; do
2016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019     break 2
2020   fi
2021 done
2022 done
2023
2024 fi
2025 fi
2026 STRIP=$ac_cv_prog_STRIP
2027 if test -n "$STRIP"; then
2028   echo "$as_me:$LINENO: result: $STRIP" >&5
2029 echo "${ECHO_T}$STRIP" >&6
2030 else
2031   echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2033 fi
2034
2035 fi
2036 if test -z "$ac_cv_prog_STRIP"; then
2037   ac_ct_STRIP=$STRIP
2038   # Extract the first word of "strip", so it can be a program name with args.
2039 set dummy strip; ac_word=$2
2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   if test -n "$ac_ct_STRIP"; then
2046   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2047 else
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051   IFS=$as_save_IFS
2052   test -z "$as_dir" && as_dir=.
2053   for ac_exec_ext in '' $ac_executable_extensions; do
2054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055     ac_cv_prog_ac_ct_STRIP="strip"
2056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057     break 2
2058   fi
2059 done
2060 done
2061
2062   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2063 fi
2064 fi
2065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2066 if test -n "$ac_ct_STRIP"; then
2067   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2068 echo "${ECHO_T}$ac_ct_STRIP" >&6
2069 else
2070   echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2072 fi
2073
2074   STRIP=$ac_ct_STRIP
2075 else
2076   STRIP="$ac_cv_prog_STRIP"
2077 fi
2078
2079 fi
2080 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2081
2082 # We need awk for the "check" target.  The system "awk" is bad on
2083 # some platforms.
2084 # Always define AMTAR for backward compatibility.
2085
2086 AMTAR=${AMTAR-"${am_missing_run}tar"}
2087
2088 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2089
2090
2091
2092
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define OPENLDAP_PACKAGE "$PACKAGE"
2096 _ACEOF
2097
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define OPENLDAP_VERSION "$VERSION"
2101 _ACEOF
2102
2103
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define LDAP_VENDOR_VERSION $OL_API_INC
2107 _ACEOF
2108
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2112 _ACEOF
2113
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2117 _ACEOF
2118
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2122 _ACEOF
2123
2124
2125 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2126
2127 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2128
2129 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2130
2131
2132
2133
2134
2135
2136
2137           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2138
2139           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2140
2141           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2142
2143
2144 echo "$as_me:$LINENO: checking configure arguments" >&5
2145 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2146
2147
2148 top_builddir=`pwd`
2149
2150 ldap_subdir="/openldap"
2151
2152
2153 # Check whether --with-subdir or --without-subdir was given.
2154 if test "${with_subdir+set}" = set; then
2155   withval="$with_subdir"
2156   case "$withval" in
2157         no) ldap_subdir=""
2158                 ;;
2159         yes)
2160                 ;;
2161         /*|\\*)
2162                 ldap_subdir="$withval"
2163                 ;;
2164         *)
2165                 ldap_subdir="/$withval"
2166                 ;;
2167 esac
2168
2169 fi;
2170
2171 # OpenLDAP --enable-debug
2172
2173         # Check whether --enable-debug or --disable-debug was given.
2174 if test "${enable_debug+set}" = set; then
2175   enableval="$enable_debug"
2176
2177         ol_arg=invalid
2178         for ol_val in auto yes no ; do
2179                 if test "$enableval" = "$ol_val" ; then
2180                         ol_arg="$ol_val"
2181                 fi
2182         done
2183         if test "$ol_arg" = "invalid" ; then
2184                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2185 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2186    { (exit 1); exit 1; }; }
2187         fi
2188         ol_enable_debug="$ol_arg"
2189
2190 else
2191         ol_enable_debug=yes
2192 fi;
2193 # end --enable-debug
2194 # OpenLDAP --enable-dynamic
2195
2196         # Check whether --enable-dynamic or --disable-dynamic was given.
2197 if test "${enable_dynamic+set}" = set; then
2198   enableval="$enable_dynamic"
2199
2200         ol_arg=invalid
2201         for ol_val in auto yes no ; do
2202                 if test "$enableval" = "$ol_val" ; then
2203                         ol_arg="$ol_val"
2204                 fi
2205         done
2206         if test "$ol_arg" = "invalid" ; then
2207                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2208 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2209    { (exit 1); exit 1; }; }
2210         fi
2211         ol_enable_dynamic="$ol_arg"
2212
2213 else
2214         ol_enable_dynamic=no
2215 fi;
2216 # end --enable-dynamic
2217 # OpenLDAP --enable-syslog
2218
2219         # Check whether --enable-syslog or --disable-syslog was given.
2220 if test "${enable_syslog+set}" = set; then
2221   enableval="$enable_syslog"
2222
2223         ol_arg=invalid
2224         for ol_val in auto yes no ; do
2225                 if test "$enableval" = "$ol_val" ; then
2226                         ol_arg="$ol_val"
2227                 fi
2228         done
2229         if test "$ol_arg" = "invalid" ; then
2230                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2231 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2232    { (exit 1); exit 1; }; }
2233         fi
2234         ol_enable_syslog="$ol_arg"
2235
2236 else
2237         ol_enable_syslog=auto
2238 fi;
2239 # end --enable-syslog
2240 # OpenLDAP --enable-proctitle
2241
2242         # Check whether --enable-proctitle or --disable-proctitle was given.
2243 if test "${enable_proctitle+set}" = set; then
2244   enableval="$enable_proctitle"
2245
2246         ol_arg=invalid
2247         for ol_val in auto yes no ; do
2248                 if test "$enableval" = "$ol_val" ; then
2249                         ol_arg="$ol_val"
2250                 fi
2251         done
2252         if test "$ol_arg" = "invalid" ; then
2253                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2254 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2255    { (exit 1); exit 1; }; }
2256         fi
2257         ol_enable_proctitle="$ol_arg"
2258
2259 else
2260         ol_enable_proctitle=yes
2261 fi;
2262 # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 ol_enable_kbind=${ol_enable_kbind-no}
2265 # OpenLDAP --enable-ipv6
2266
2267         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2268 if test "${enable_ipv6+set}" = set; then
2269   enableval="$enable_ipv6"
2270
2271         ol_arg=invalid
2272         for ol_val in auto yes no ; do
2273                 if test "$enableval" = "$ol_val" ; then
2274                         ol_arg="$ol_val"
2275                 fi
2276         done
2277         if test "$ol_arg" = "invalid" ; then
2278                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2279 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2280    { (exit 1); exit 1; }; }
2281         fi
2282         ol_enable_ipv6="$ol_arg"
2283
2284 else
2285         ol_enable_ipv6=auto
2286 fi;
2287 # end --enable-ipv6
2288 # OpenLDAP --enable-local
2289
2290         # Check whether --enable-local or --disable-local was given.
2291 if test "${enable_local+set}" = set; then
2292   enableval="$enable_local"
2293
2294         ol_arg=invalid
2295         for ol_val in auto yes no ; do
2296                 if test "$enableval" = "$ol_val" ; then
2297                         ol_arg="$ol_val"
2298                 fi
2299         done
2300         if test "$ol_arg" = "invalid" ; then
2301                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2302 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2303    { (exit 1); exit 1; }; }
2304         fi
2305         ol_enable_local="$ol_arg"
2306
2307 else
2308         ol_enable_local=auto
2309 fi;
2310 # end --enable-local
2311
2312 # OpenLDAP --with-cyrus_sasl
2313
2314 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2315 if test "${with_cyrus_sasl+set}" = set; then
2316   withval="$with_cyrus_sasl"
2317
2318         ol_arg=invalid
2319         for ol_val in auto yes no  ; do
2320                 if test "$withval" = "$ol_val" ; then
2321                         ol_arg="$ol_val"
2322                 fi
2323         done
2324         if test "$ol_arg" = "invalid" ; then
2325                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2326 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2327    { (exit 1); exit 1; }; }
2328         fi
2329         ol_with_cyrus_sasl="$ol_arg"
2330
2331 else
2332         ol_with_cyrus_sasl="auto"
2333 fi; # end --with-cyrus_sasl
2334
2335 # OpenLDAP --with-fetch
2336
2337 # Check whether --with-fetch or --without-fetch was given.
2338 if test "${with_fetch+set}" = set; then
2339   withval="$with_fetch"
2340
2341         ol_arg=invalid
2342         for ol_val in auto yes no  ; do
2343                 if test "$withval" = "$ol_val" ; then
2344                         ol_arg="$ol_val"
2345                 fi
2346         done
2347         if test "$ol_arg" = "invalid" ; then
2348                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2349 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2350    { (exit 1); exit 1; }; }
2351         fi
2352         ol_with_fetch="$ol_arg"
2353
2354 else
2355         ol_with_fetch="auto"
2356 fi; # end --with-fetch
2357
2358 ol_with_kerberos=${ol_with_kerberos-auto}
2359 # OpenLDAP --with-threads
2360
2361 # Check whether --with-threads or --without-threads was given.
2362 if test "${with_threads+set}" = set; then
2363   withval="$with_threads"
2364
2365         ol_arg=invalid
2366         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2367                 if test "$withval" = "$ol_val" ; then
2368                         ol_arg="$ol_val"
2369                 fi
2370         done
2371         if test "$ol_arg" = "invalid" ; then
2372                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2373 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2374    { (exit 1); exit 1; }; }
2375         fi
2376         ol_with_threads="$ol_arg"
2377
2378 else
2379         ol_with_threads="auto"
2380 fi; # end --with-threads
2381
2382 # OpenLDAP --with-tls
2383
2384 # Check whether --with-tls or --without-tls was given.
2385 if test "${with_tls+set}" = set; then
2386   withval="$with_tls"
2387
2388         ol_arg=invalid
2389         for ol_val in auto openssl yes no  ; do
2390                 if test "$withval" = "$ol_val" ; then
2391                         ol_arg="$ol_val"
2392                 fi
2393         done
2394         if test "$ol_arg" = "invalid" ; then
2395                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2396 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2397    { (exit 1); exit 1; }; }
2398         fi
2399         ol_with_tls="$ol_arg"
2400
2401 else
2402         ol_with_tls="auto"
2403 fi; # end --with-tls
2404
2405 # OpenLDAP --with-yielding_select
2406
2407 # Check whether --with-yielding_select or --without-yielding_select was given.
2408 if test "${with_yielding_select+set}" = set; then
2409   withval="$with_yielding_select"
2410
2411         ol_arg=invalid
2412         for ol_val in auto yes no manual  ; do
2413                 if test "$withval" = "$ol_val" ; then
2414                         ol_arg="$ol_val"
2415                 fi
2416         done
2417         if test "$ol_arg" = "invalid" ; then
2418                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2419 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2420    { (exit 1); exit 1; }; }
2421         fi
2422         ol_with_yielding_select="$ol_arg"
2423
2424 else
2425         ol_with_yielding_select="auto"
2426 fi; # end --with-yielding_select
2427
2428 # OpenLDAP --with-multiple_precision
2429
2430 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2431 if test "${with_multiple_precision+set}" = set; then
2432   withval="$with_multiple_precision"
2433
2434         ol_arg=invalid
2435         for ol_val in auto bignum gmp yes no  ; do
2436                 if test "$withval" = "$ol_val" ; then
2437                         ol_arg="$ol_val"
2438                 fi
2439         done
2440         if test "$ol_arg" = "invalid" ; then
2441                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2442 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2443    { (exit 1); exit 1; }; }
2444         fi
2445         ol_with_multiple_precision="$ol_arg"
2446
2447 else
2448         ol_with_multiple_precision="auto"
2449 fi; # end --with-multiple_precision
2450
2451
2452
2453 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2454 if test "${enable_xxslapdoptions+set}" = set; then
2455   enableval="$enable_xxslapdoptions"
2456
2457 fi;
2458 # OpenLDAP --enable-slapd
2459
2460         # Check whether --enable-slapd or --disable-slapd was given.
2461 if test "${enable_slapd+set}" = set; then
2462   enableval="$enable_slapd"
2463
2464         ol_arg=invalid
2465         for ol_val in auto yes no ; do
2466                 if test "$enableval" = "$ol_val" ; then
2467                         ol_arg="$ol_val"
2468                 fi
2469         done
2470         if test "$ol_arg" = "invalid" ; then
2471                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2472 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2473    { (exit 1); exit 1; }; }
2474         fi
2475         ol_enable_slapd="$ol_arg"
2476
2477 else
2478         ol_enable_slapd=yes
2479 fi;
2480 # end --enable-slapd
2481 # OpenLDAP --enable-aci
2482
2483         # Check whether --enable-aci or --disable-aci was given.
2484 if test "${enable_aci+set}" = set; then
2485   enableval="$enable_aci"
2486
2487         ol_arg=invalid
2488         for ol_val in auto yes no ; do
2489                 if test "$enableval" = "$ol_val" ; then
2490                         ol_arg="$ol_val"
2491                 fi
2492         done
2493         if test "$ol_arg" = "invalid" ; then
2494                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2495 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2496    { (exit 1); exit 1; }; }
2497         fi
2498         ol_enable_aci="$ol_arg"
2499
2500 else
2501         ol_enable_aci=no
2502 fi;
2503 # end --enable-aci
2504 # OpenLDAP --enable-cleartext
2505
2506         # Check whether --enable-cleartext or --disable-cleartext was given.
2507 if test "${enable_cleartext+set}" = set; then
2508   enableval="$enable_cleartext"
2509
2510         ol_arg=invalid
2511         for ol_val in auto yes no ; do
2512                 if test "$enableval" = "$ol_val" ; then
2513                         ol_arg="$ol_val"
2514                 fi
2515         done
2516         if test "$ol_arg" = "invalid" ; then
2517                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2518 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2519    { (exit 1); exit 1; }; }
2520         fi
2521         ol_enable_cleartext="$ol_arg"
2522
2523 else
2524         ol_enable_cleartext=yes
2525 fi;
2526 # end --enable-cleartext
2527 # OpenLDAP --enable-crypt
2528
2529         # Check whether --enable-crypt or --disable-crypt was given.
2530 if test "${enable_crypt+set}" = set; then
2531   enableval="$enable_crypt"
2532
2533         ol_arg=invalid
2534         for ol_val in auto yes no ; do
2535                 if test "$enableval" = "$ol_val" ; then
2536                         ol_arg="$ol_val"
2537                 fi
2538         done
2539         if test "$ol_arg" = "invalid" ; then
2540                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2541 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2542    { (exit 1); exit 1; }; }
2543         fi
2544         ol_enable_crypt="$ol_arg"
2545
2546 else
2547         ol_enable_crypt=no
2548 fi;
2549 # end --enable-crypt
2550 # OpenLDAP --enable-lmpasswd
2551
2552         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2553 if test "${enable_lmpasswd+set}" = set; then
2554   enableval="$enable_lmpasswd"
2555
2556         ol_arg=invalid
2557         for ol_val in auto yes no ; do
2558                 if test "$enableval" = "$ol_val" ; then
2559                         ol_arg="$ol_val"
2560                 fi
2561         done
2562         if test "$ol_arg" = "invalid" ; then
2563                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2564 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2565    { (exit 1); exit 1; }; }
2566         fi
2567         ol_enable_lmpasswd="$ol_arg"
2568
2569 else
2570         ol_enable_lmpasswd=no
2571 fi;
2572 # end --enable-lmpasswd
2573 # OpenLDAP --enable-spasswd
2574
2575         # Check whether --enable-spasswd or --disable-spasswd was given.
2576 if test "${enable_spasswd+set}" = set; then
2577   enableval="$enable_spasswd"
2578
2579         ol_arg=invalid
2580         for ol_val in auto yes no ; do
2581                 if test "$enableval" = "$ol_val" ; then
2582                         ol_arg="$ol_val"
2583                 fi
2584         done
2585         if test "$ol_arg" = "invalid" ; then
2586                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2587 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2588    { (exit 1); exit 1; }; }
2589         fi
2590         ol_enable_spasswd="$ol_arg"
2591
2592 else
2593         ol_enable_spasswd=no
2594 fi;
2595 # end --enable-spasswd
2596 # OpenLDAP --enable-modules
2597
2598         # Check whether --enable-modules or --disable-modules was given.
2599 if test "${enable_modules+set}" = set; then
2600   enableval="$enable_modules"
2601
2602         ol_arg=invalid
2603         for ol_val in auto yes no ; do
2604                 if test "$enableval" = "$ol_val" ; then
2605                         ol_arg="$ol_val"
2606                 fi
2607         done
2608         if test "$ol_arg" = "invalid" ; then
2609                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2610 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2611    { (exit 1); exit 1; }; }
2612         fi
2613         ol_enable_modules="$ol_arg"
2614
2615 else
2616         ol_enable_modules=no
2617 fi;
2618 # end --enable-modules
2619 ol_enable_multimaster=${ol_enable_multimaster-no}
2620 # OpenLDAP --enable-rewrite
2621
2622         # Check whether --enable-rewrite or --disable-rewrite was given.
2623 if test "${enable_rewrite+set}" = set; then
2624   enableval="$enable_rewrite"
2625
2626         ol_arg=invalid
2627         for ol_val in auto yes no ; do
2628                 if test "$enableval" = "$ol_val" ; then
2629                         ol_arg="$ol_val"
2630                 fi
2631         done
2632         if test "$ol_arg" = "invalid" ; then
2633                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2634 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2635    { (exit 1); exit 1; }; }
2636         fi
2637         ol_enable_rewrite="$ol_arg"
2638
2639 else
2640         ol_enable_rewrite=auto
2641 fi;
2642 # end --enable-rewrite
2643 # OpenLDAP --enable-rlookups
2644
2645         # Check whether --enable-rlookups or --disable-rlookups was given.
2646 if test "${enable_rlookups+set}" = set; then
2647   enableval="$enable_rlookups"
2648
2649         ol_arg=invalid
2650         for ol_val in auto yes no ; do
2651                 if test "$enableval" = "$ol_val" ; then
2652                         ol_arg="$ol_val"
2653                 fi
2654         done
2655         if test "$ol_arg" = "invalid" ; then
2656                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2657 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2658    { (exit 1); exit 1; }; }
2659         fi
2660         ol_enable_rlookups="$ol_arg"
2661
2662 else
2663         ol_enable_rlookups=no
2664 fi;
2665 # end --enable-rlookups
2666 # OpenLDAP --enable-slapi
2667
2668         # Check whether --enable-slapi or --disable-slapi was given.
2669 if test "${enable_slapi+set}" = set; then
2670   enableval="$enable_slapi"
2671
2672         ol_arg=invalid
2673         for ol_val in auto yes no ; do
2674                 if test "$enableval" = "$ol_val" ; then
2675                         ol_arg="$ol_val"
2676                 fi
2677         done
2678         if test "$ol_arg" = "invalid" ; then
2679                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2680 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2681    { (exit 1); exit 1; }; }
2682         fi
2683         ol_enable_slapi="$ol_arg"
2684
2685 else
2686         ol_enable_slapi=no
2687 fi;
2688 # end --enable-slapi
2689 # OpenLDAP --enable-slp
2690
2691         # Check whether --enable-slp or --disable-slp was given.
2692 if test "${enable_slp+set}" = set; then
2693   enableval="$enable_slp"
2694
2695         ol_arg=invalid
2696         for ol_val in auto yes no ; do
2697                 if test "$enableval" = "$ol_val" ; then
2698                         ol_arg="$ol_val"
2699                 fi
2700         done
2701         if test "$ol_arg" = "invalid" ; then
2702                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2703 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2704    { (exit 1); exit 1; }; }
2705         fi
2706         ol_enable_slp="$ol_arg"
2707
2708 else
2709         ol_enable_slp=no
2710 fi;
2711 # end --enable-slp
2712 # OpenLDAP --enable-wrappers
2713
2714         # Check whether --enable-wrappers or --disable-wrappers was given.
2715 if test "${enable_wrappers+set}" = set; then
2716   enableval="$enable_wrappers"
2717
2718         ol_arg=invalid
2719         for ol_val in auto yes no ; do
2720                 if test "$enableval" = "$ol_val" ; then
2721                         ol_arg="$ol_val"
2722                 fi
2723         done
2724         if test "$ol_arg" = "invalid" ; then
2725                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2726 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2727    { (exit 1); exit 1; }; }
2728         fi
2729         ol_enable_wrappers="$ol_arg"
2730
2731 else
2732         ol_enable_wrappers=no
2733 fi;
2734 # end --enable-wrappers
2735
2736 Backends="bdb \
2737         dnssrv \
2738         hdb \
2739         ldap \
2740         ldbm \
2741         meta \
2742         monitor \
2743         null \
2744         passwd \
2745         perl \
2746         relay \
2747         shell \
2748         sql"
2749
2750 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2751 if test "${enable_xxslapbackends+set}" = set; then
2752   enableval="$enable_xxslapbackends"
2753
2754 fi;
2755
2756 # OpenLDAP --enable-backends
2757
2758         # Check whether --enable-backends or --disable-backends was given.
2759 if test "${enable_backends+set}" = set; then
2760   enableval="$enable_backends"
2761
2762         ol_arg=invalid
2763         for ol_val in no yes mod ; do
2764                 if test "$enableval" = "$ol_val" ; then
2765                         ol_arg="$ol_val"
2766                 fi
2767         done
2768         if test "$ol_arg" = "invalid" ; then
2769                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2770 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2771    { (exit 1); exit 1; }; }
2772         fi
2773         ol_enable_backends="$ol_arg"
2774
2775 fi;
2776 # end --enable-backends
2777 # OpenLDAP --enable-bdb
2778
2779         # Check whether --enable-bdb or --disable-bdb was given.
2780 if test "${enable_bdb+set}" = set; then
2781   enableval="$enable_bdb"
2782
2783         ol_arg=invalid
2784         for ol_val in no yes mod ; do
2785                 if test "$enableval" = "$ol_val" ; then
2786                         ol_arg="$ol_val"
2787                 fi
2788         done
2789         if test "$ol_arg" = "invalid" ; then
2790                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2791 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2792    { (exit 1); exit 1; }; }
2793         fi
2794         ol_enable_bdb="$ol_arg"
2795
2796 else
2797         ol_enable_bdb=${ol_enable_backends:-yes}
2798 fi;
2799 # end --enable-bdb
2800 # OpenLDAP --enable-dnssrv
2801
2802         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2803 if test "${enable_dnssrv+set}" = set; then
2804   enableval="$enable_dnssrv"
2805
2806         ol_arg=invalid
2807         for ol_val in no yes mod ; do
2808                 if test "$enableval" = "$ol_val" ; then
2809                         ol_arg="$ol_val"
2810                 fi
2811         done
2812         if test "$ol_arg" = "invalid" ; then
2813                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2814 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2815    { (exit 1); exit 1; }; }
2816         fi
2817         ol_enable_dnssrv="$ol_arg"
2818
2819 else
2820         ol_enable_dnssrv=${ol_enable_backends:-no}
2821 fi;
2822 # end --enable-dnssrv
2823 # OpenLDAP --enable-hdb
2824
2825         # Check whether --enable-hdb or --disable-hdb was given.
2826 if test "${enable_hdb+set}" = set; then
2827   enableval="$enable_hdb"
2828
2829         ol_arg=invalid
2830         for ol_val in no yes mod ; do
2831                 if test "$enableval" = "$ol_val" ; then
2832                         ol_arg="$ol_val"
2833                 fi
2834         done
2835         if test "$ol_arg" = "invalid" ; then
2836                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2837 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2838    { (exit 1); exit 1; }; }
2839         fi
2840         ol_enable_hdb="$ol_arg"
2841
2842 else
2843         ol_enable_hdb=${ol_enable_backends:-yes}
2844 fi;
2845 # end --enable-hdb
2846 # OpenLDAP --enable-ldap
2847
2848         # Check whether --enable-ldap or --disable-ldap was given.
2849 if test "${enable_ldap+set}" = set; then
2850   enableval="$enable_ldap"
2851
2852         ol_arg=invalid
2853         for ol_val in no yes mod ; do
2854                 if test "$enableval" = "$ol_val" ; then
2855                         ol_arg="$ol_val"
2856                 fi
2857         done
2858         if test "$ol_arg" = "invalid" ; then
2859                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2860 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2861    { (exit 1); exit 1; }; }
2862         fi
2863         ol_enable_ldap="$ol_arg"
2864
2865 else
2866         ol_enable_ldap=${ol_enable_backends:-no}
2867 fi;
2868 # end --enable-ldap
2869 # OpenLDAP --enable-ldbm
2870
2871         # Check whether --enable-ldbm or --disable-ldbm was given.
2872 if test "${enable_ldbm+set}" = set; then
2873   enableval="$enable_ldbm"
2874
2875         ol_arg=invalid
2876         for ol_val in no yes mod ; do
2877                 if test "$enableval" = "$ol_val" ; then
2878                         ol_arg="$ol_val"
2879                 fi
2880         done
2881         if test "$ol_arg" = "invalid" ; then
2882                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2883 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2884    { (exit 1); exit 1; }; }
2885         fi
2886         ol_enable_ldbm="$ol_arg"
2887
2888 else
2889         ol_enable_ldbm=${ol_enable_backends:-no}
2890 fi;
2891 # end --enable-ldbm
2892
2893 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2894 if test "${with_ldbm_api+set}" = set; then
2895   withval="$with_ldbm_api"
2896
2897         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2898 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2899         enable_ldbm_api="$with_ldbm_api"
2900 fi;
2901 # OpenLDAP --enable-ldbm_api
2902
2903         # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2904 if test "${enable_ldbm_api+set}" = set; then
2905   enableval="$enable_ldbm_api"
2906
2907         ol_arg=invalid
2908         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2909                 if test "$enableval" = "$ol_val" ; then
2910                         ol_arg="$ol_val"
2911                 fi
2912         done
2913         if test "$ol_arg" = "invalid" ; then
2914                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2915 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2916    { (exit 1); exit 1; }; }
2917         fi
2918         ol_enable_ldbm_api="$ol_arg"
2919
2920 else
2921         ol_enable_ldbm_api=auto
2922 fi;
2923 # end --enable-ldbm_api
2924
2925
2926 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2927 if test "${with_ldbm_type+set}" = set; then
2928   withval="$with_ldbm_type"
2929
2930         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2931 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2932         enable_ldbm_type="$with_ldbm_type"
2933 fi;
2934 # OpenLDAP --enable-ldbm_type
2935
2936         # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2937 if test "${enable_ldbm_type+set}" = set; then
2938   enableval="$enable_ldbm_type"
2939
2940         ol_arg=invalid
2941         for ol_val in auto btree hash ; do
2942                 if test "$enableval" = "$ol_val" ; then
2943                         ol_arg="$ol_val"
2944                 fi
2945         done
2946         if test "$ol_arg" = "invalid" ; then
2947                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2948 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2949    { (exit 1); exit 1; }; }
2950         fi
2951         ol_enable_ldbm_type="$ol_arg"
2952
2953 else
2954         ol_enable_ldbm_type=auto
2955 fi;
2956 # end --enable-ldbm_type
2957
2958 # OpenLDAP --enable-meta
2959
2960         # Check whether --enable-meta or --disable-meta was given.
2961 if test "${enable_meta+set}" = set; then
2962   enableval="$enable_meta"
2963
2964         ol_arg=invalid
2965         for ol_val in no yes mod ; do
2966                 if test "$enableval" = "$ol_val" ; then
2967                         ol_arg="$ol_val"
2968                 fi
2969         done
2970         if test "$ol_arg" = "invalid" ; then
2971                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2972 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2973    { (exit 1); exit 1; }; }
2974         fi
2975         ol_enable_meta="$ol_arg"
2976
2977 else
2978         ol_enable_meta=${ol_enable_backends:-no}
2979 fi;
2980 # end --enable-meta
2981 # OpenLDAP --enable-monitor
2982
2983         # Check whether --enable-monitor or --disable-monitor was given.
2984 if test "${enable_monitor+set}" = set; then
2985   enableval="$enable_monitor"
2986
2987         ol_arg=invalid
2988         for ol_val in no yes mod ; do
2989                 if test "$enableval" = "$ol_val" ; then
2990                         ol_arg="$ol_val"
2991                 fi
2992         done
2993         if test "$ol_arg" = "invalid" ; then
2994                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2995 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2996    { (exit 1); exit 1; }; }
2997         fi
2998         ol_enable_monitor="$ol_arg"
2999
3000 else
3001         ol_enable_monitor=${ol_enable_backends:-yes}
3002 fi;
3003 # end --enable-monitor
3004 # OpenLDAP --enable-null
3005
3006         # Check whether --enable-null or --disable-null was given.
3007 if test "${enable_null+set}" = set; then
3008   enableval="$enable_null"
3009
3010         ol_arg=invalid
3011         for ol_val in no yes mod ; do
3012                 if test "$enableval" = "$ol_val" ; then
3013                         ol_arg="$ol_val"
3014                 fi
3015         done
3016         if test "$ol_arg" = "invalid" ; then
3017                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3018 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3019    { (exit 1); exit 1; }; }
3020         fi
3021         ol_enable_null="$ol_arg"
3022
3023 else
3024         ol_enable_null=${ol_enable_backends:-no}
3025 fi;
3026 # end --enable-null
3027 # OpenLDAP --enable-passwd
3028
3029         # Check whether --enable-passwd or --disable-passwd was given.
3030 if test "${enable_passwd+set}" = set; then
3031   enableval="$enable_passwd"
3032
3033         ol_arg=invalid
3034         for ol_val in no yes mod ; do
3035                 if test "$enableval" = "$ol_val" ; then
3036                         ol_arg="$ol_val"
3037                 fi
3038         done
3039         if test "$ol_arg" = "invalid" ; then
3040                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3041 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3042    { (exit 1); exit 1; }; }
3043         fi
3044         ol_enable_passwd="$ol_arg"
3045
3046 else
3047         ol_enable_passwd=${ol_enable_backends:-no}
3048 fi;
3049 # end --enable-passwd
3050 # OpenLDAP --enable-perl
3051
3052         # Check whether --enable-perl or --disable-perl was given.
3053 if test "${enable_perl+set}" = set; then
3054   enableval="$enable_perl"
3055
3056         ol_arg=invalid
3057         for ol_val in no yes mod ; do
3058                 if test "$enableval" = "$ol_val" ; then
3059                         ol_arg="$ol_val"
3060                 fi
3061         done
3062         if test "$ol_arg" = "invalid" ; then
3063                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3064 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3065    { (exit 1); exit 1; }; }
3066         fi
3067         ol_enable_perl="$ol_arg"
3068
3069 else
3070         ol_enable_perl=${ol_enable_backends:-no}
3071 fi;
3072 # end --enable-perl
3073 # OpenLDAP --enable-relay
3074
3075         # Check whether --enable-relay or --disable-relay was given.
3076 if test "${enable_relay+set}" = set; then
3077   enableval="$enable_relay"
3078
3079         ol_arg=invalid
3080         for ol_val in no yes mod ; do
3081                 if test "$enableval" = "$ol_val" ; then
3082                         ol_arg="$ol_val"
3083                 fi
3084         done
3085         if test "$ol_arg" = "invalid" ; then
3086                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3087 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3088    { (exit 1); exit 1; }; }
3089         fi
3090         ol_enable_relay="$ol_arg"
3091
3092 else
3093         ol_enable_relay=${ol_enable_backends:-yes}
3094 fi;
3095 # end --enable-relay
3096 # OpenLDAP --enable-shell
3097
3098         # Check whether --enable-shell or --disable-shell was given.
3099 if test "${enable_shell+set}" = set; then
3100   enableval="$enable_shell"
3101
3102         ol_arg=invalid
3103         for ol_val in no yes mod ; do
3104                 if test "$enableval" = "$ol_val" ; then
3105                         ol_arg="$ol_val"
3106                 fi
3107         done
3108         if test "$ol_arg" = "invalid" ; then
3109                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3110 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3111    { (exit 1); exit 1; }; }
3112         fi
3113         ol_enable_shell="$ol_arg"
3114
3115 else
3116         ol_enable_shell=${ol_enable_backends:-no}
3117 fi;
3118 # end --enable-shell
3119 # OpenLDAP --enable-sql
3120
3121         # Check whether --enable-sql or --disable-sql was given.
3122 if test "${enable_sql+set}" = set; then
3123   enableval="$enable_sql"
3124
3125         ol_arg=invalid
3126         for ol_val in no yes mod ; do
3127                 if test "$enableval" = "$ol_val" ; then
3128                         ol_arg="$ol_val"
3129                 fi
3130         done
3131         if test "$ol_arg" = "invalid" ; then
3132                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3133 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3134    { (exit 1); exit 1; }; }
3135         fi
3136         ol_enable_sql="$ol_arg"
3137
3138 else
3139         ol_enable_sql=${ol_enable_backends:-no}
3140 fi;
3141 # end --enable-sql
3142
3143 Overlays="accesslog \
3144         denyop \
3145         dyngroup \
3146         dynlist \
3147         lastmod \
3148         ppolicy \
3149         proxycache \
3150         refint \
3151         retcode \
3152         rwm \
3153         syncprov \
3154         translucent \
3155         unique \
3156         valsort"
3157
3158 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3159 if test "${enable_xxslapoverlays+set}" = set; then
3160   enableval="$enable_xxslapoverlays"
3161
3162 fi;
3163
3164 # OpenLDAP --enable-overlays
3165
3166         # Check whether --enable-overlays or --disable-overlays was given.
3167 if test "${enable_overlays+set}" = set; then
3168   enableval="$enable_overlays"
3169
3170         ol_arg=invalid
3171         for ol_val in no yes mod ; do
3172                 if test "$enableval" = "$ol_val" ; then
3173                         ol_arg="$ol_val"
3174                 fi
3175         done
3176         if test "$ol_arg" = "invalid" ; then
3177                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3178 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3179    { (exit 1); exit 1; }; }
3180         fi
3181         ol_enable_overlays="$ol_arg"
3182
3183 fi;
3184 # end --enable-overlays
3185 # OpenLDAP --enable-accesslog
3186
3187         # Check whether --enable-accesslog or --disable-accesslog was given.
3188 if test "${enable_accesslog+set}" = set; then
3189   enableval="$enable_accesslog"
3190
3191         ol_arg=invalid
3192         for ol_val in no yes mod ; do
3193                 if test "$enableval" = "$ol_val" ; then
3194                         ol_arg="$ol_val"
3195                 fi
3196         done
3197         if test "$ol_arg" = "invalid" ; then
3198                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3199 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3200    { (exit 1); exit 1; }; }
3201         fi
3202         ol_enable_accesslog="$ol_arg"
3203
3204 else
3205         ol_enable_accesslog=${ol_enable_overlays:-no}
3206 fi;
3207 # end --enable-accesslog
3208
3209 # OpenLDAP --enable-denyop
3210
3211         # Check whether --enable-denyop or --disable-denyop was given.
3212 if test "${enable_denyop+set}" = set; then
3213   enableval="$enable_denyop"
3214
3215         ol_arg=invalid
3216         for ol_val in no yes mod ; do
3217                 if test "$enableval" = "$ol_val" ; then
3218                         ol_arg="$ol_val"
3219                 fi
3220         done
3221         if test "$ol_arg" = "invalid" ; then
3222                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3223 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3224    { (exit 1); exit 1; }; }
3225         fi
3226         ol_enable_denyop="$ol_arg"
3227
3228 else
3229         ol_enable_denyop=${ol_enable_overlays:-no}
3230 fi;
3231 # end --enable-denyop
3232
3233 # OpenLDAP --enable-dyngroup
3234
3235         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3236 if test "${enable_dyngroup+set}" = set; then
3237   enableval="$enable_dyngroup"
3238
3239         ol_arg=invalid
3240         for ol_val in no yes mod ; do
3241                 if test "$enableval" = "$ol_val" ; then
3242                         ol_arg="$ol_val"
3243                 fi
3244         done
3245         if test "$ol_arg" = "invalid" ; then
3246                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3247 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3248    { (exit 1); exit 1; }; }
3249         fi
3250         ol_enable_dyngroup="$ol_arg"
3251
3252 else
3253         ol_enable_dyngroup=${ol_enable_overlays:-no}
3254 fi;
3255 # end --enable-dyngroup
3256
3257 # OpenLDAP --enable-dynlist
3258
3259         # Check whether --enable-dynlist or --disable-dynlist was given.
3260 if test "${enable_dynlist+set}" = set; then
3261   enableval="$enable_dynlist"
3262
3263         ol_arg=invalid
3264         for ol_val in no yes mod ; do
3265                 if test "$enableval" = "$ol_val" ; then
3266                         ol_arg="$ol_val"
3267                 fi
3268         done
3269         if test "$ol_arg" = "invalid" ; then
3270                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3271 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3272    { (exit 1); exit 1; }; }
3273         fi
3274         ol_enable_dynlist="$ol_arg"
3275
3276 else
3277         ol_enable_dynlist=${ol_enable_overlays:-no}
3278 fi;
3279 # end --enable-dynlist
3280
3281 # OpenLDAP --enable-lastmod
3282
3283         # Check whether --enable-lastmod or --disable-lastmod was given.
3284 if test "${enable_lastmod+set}" = set; then
3285   enableval="$enable_lastmod"
3286
3287         ol_arg=invalid
3288         for ol_val in no yes mod ; do
3289                 if test "$enableval" = "$ol_val" ; then
3290                         ol_arg="$ol_val"
3291                 fi
3292         done
3293         if test "$ol_arg" = "invalid" ; then
3294                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3295 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3296    { (exit 1); exit 1; }; }
3297         fi
3298         ol_enable_lastmod="$ol_arg"
3299
3300 else
3301         ol_enable_lastmod=${ol_enable_overlays:-no}
3302 fi;
3303 # end --enable-lastmod
3304
3305 # OpenLDAP --enable-ppolicy
3306
3307         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3308 if test "${enable_ppolicy+set}" = set; then
3309   enableval="$enable_ppolicy"
3310
3311         ol_arg=invalid
3312         for ol_val in no yes mod ; do
3313                 if test "$enableval" = "$ol_val" ; then
3314                         ol_arg="$ol_val"
3315                 fi
3316         done
3317         if test "$ol_arg" = "invalid" ; then
3318                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3319 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3320    { (exit 1); exit 1; }; }
3321         fi
3322         ol_enable_ppolicy="$ol_arg"
3323
3324 else
3325         ol_enable_ppolicy=${ol_enable_overlays:-no}
3326 fi;
3327 # end --enable-ppolicy
3328
3329 # OpenLDAP --enable-proxycache
3330
3331         # Check whether --enable-proxycache or --disable-proxycache was given.
3332 if test "${enable_proxycache+set}" = set; then
3333   enableval="$enable_proxycache"
3334
3335         ol_arg=invalid
3336         for ol_val in no yes mod ; do
3337                 if test "$enableval" = "$ol_val" ; then
3338                         ol_arg="$ol_val"
3339                 fi
3340         done
3341         if test "$ol_arg" = "invalid" ; then
3342                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3343 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3344    { (exit 1); exit 1; }; }
3345         fi
3346         ol_enable_proxycache="$ol_arg"
3347
3348 else
3349         ol_enable_proxycache=${ol_enable_overlays:-no}
3350 fi;
3351 # end --enable-proxycache
3352
3353 # OpenLDAP --enable-refint
3354
3355         # Check whether --enable-refint or --disable-refint was given.
3356 if test "${enable_refint+set}" = set; then
3357   enableval="$enable_refint"
3358
3359         ol_arg=invalid
3360         for ol_val in no yes mod ; do
3361                 if test "$enableval" = "$ol_val" ; then
3362                         ol_arg="$ol_val"
3363                 fi
3364         done
3365         if test "$ol_arg" = "invalid" ; then
3366                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3368    { (exit 1); exit 1; }; }
3369         fi
3370         ol_enable_refint="$ol_arg"
3371
3372 else
3373         ol_enable_refint=${ol_enable_overlays:-no}
3374 fi;
3375 # end --enable-refint
3376
3377 # OpenLDAP --enable-retcode
3378
3379         # Check whether --enable-retcode or --disable-retcode was given.
3380 if test "${enable_retcode+set}" = set; then
3381   enableval="$enable_retcode"
3382
3383         ol_arg=invalid
3384         for ol_val in no yes mod ; do
3385                 if test "$enableval" = "$ol_val" ; then
3386                         ol_arg="$ol_val"
3387                 fi
3388         done
3389         if test "$ol_arg" = "invalid" ; then
3390                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3391 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3392    { (exit 1); exit 1; }; }
3393         fi
3394         ol_enable_retcode="$ol_arg"
3395
3396 else
3397         ol_enable_retcode=${ol_enable_overlays:-no}
3398 fi;
3399 # end --enable-retcode
3400
3401 # OpenLDAP --enable-rwm
3402
3403         # Check whether --enable-rwm or --disable-rwm was given.
3404 if test "${enable_rwm+set}" = set; then
3405   enableval="$enable_rwm"
3406
3407         ol_arg=invalid
3408         for ol_val in no yes mod ; do
3409                 if test "$enableval" = "$ol_val" ; then
3410                         ol_arg="$ol_val"
3411                 fi
3412         done
3413         if test "$ol_arg" = "invalid" ; then
3414                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3415 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3416    { (exit 1); exit 1; }; }
3417         fi
3418         ol_enable_rwm="$ol_arg"
3419
3420 else
3421         ol_enable_rwm=${ol_enable_overlays:-no}
3422 fi;
3423 # end --enable-rwm
3424
3425 # OpenLDAP --enable-syncprov
3426
3427         # Check whether --enable-syncprov or --disable-syncprov was given.
3428 if test "${enable_syncprov+set}" = set; then
3429   enableval="$enable_syncprov"
3430
3431         ol_arg=invalid
3432         for ol_val in no yes mod ; do
3433                 if test "$enableval" = "$ol_val" ; then
3434                         ol_arg="$ol_val"
3435                 fi
3436         done
3437         if test "$ol_arg" = "invalid" ; then
3438                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3439 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3440    { (exit 1); exit 1; }; }
3441         fi
3442         ol_enable_syncprov="$ol_arg"
3443
3444 else
3445         ol_enable_syncprov=${ol_enable_overlays:-yes}
3446 fi;
3447 # end --enable-syncprov
3448
3449 # OpenLDAP --enable-translucent
3450
3451         # Check whether --enable-translucent or --disable-translucent was given.
3452 if test "${enable_translucent+set}" = set; then
3453   enableval="$enable_translucent"
3454
3455         ol_arg=invalid
3456         for ol_val in no yes mod ; do
3457                 if test "$enableval" = "$ol_val" ; then
3458                         ol_arg="$ol_val"
3459                 fi
3460         done
3461         if test "$ol_arg" = "invalid" ; then
3462                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3463 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3464    { (exit 1); exit 1; }; }
3465         fi
3466         ol_enable_translucent="$ol_arg"
3467
3468 else
3469         ol_enable_translucent=${ol_enable_overlays:-no}
3470 fi;
3471 # end --enable-translucent
3472
3473 # OpenLDAP --enable-unique
3474
3475         # Check whether --enable-unique or --disable-unique was given.
3476 if test "${enable_unique+set}" = set; then
3477   enableval="$enable_unique"
3478
3479         ol_arg=invalid
3480         for ol_val in no yes mod ; do
3481                 if test "$enableval" = "$ol_val" ; then
3482                         ol_arg="$ol_val"
3483                 fi
3484         done
3485         if test "$ol_arg" = "invalid" ; then
3486                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3487 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3488    { (exit 1); exit 1; }; }
3489         fi
3490         ol_enable_unique="$ol_arg"
3491
3492 else
3493         ol_enable_unique=${ol_enable_overlays:-no}
3494 fi;
3495 # end --enable-unique
3496
3497 # OpenLDAP --enable-valsort
3498
3499         # Check whether --enable-valsort or --disable-valsort was given.
3500 if test "${enable_valsort+set}" = set; then
3501   enableval="$enable_valsort"
3502
3503         ol_arg=invalid
3504         for ol_val in no yes mod ; do
3505                 if test "$enableval" = "$ol_val" ; then
3506                         ol_arg="$ol_val"
3507                 fi
3508         done
3509         if test "$ol_arg" = "invalid" ; then
3510                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3511 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3512    { (exit 1); exit 1; }; }
3513         fi
3514         ol_enable_valsort="$ol_arg"
3515
3516 else
3517         ol_enable_valsort=${ol_enable_overlays:-no}
3518 fi;
3519 # end --enable-valsort
3520
3521
3522 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3523 if test "${enable_xxslurpdoptions+set}" = set; then
3524   enableval="$enable_xxslurpdoptions"
3525
3526 fi;
3527 # OpenLDAP --enable-slurpd
3528
3529         # Check whether --enable-slurpd or --disable-slurpd was given.
3530 if test "${enable_slurpd+set}" = set; then
3531   enableval="$enable_slurpd"
3532
3533         ol_arg=invalid
3534         for ol_val in auto yes no ; do
3535                 if test "$enableval" = "$ol_val" ; then
3536                         ol_arg="$ol_val"
3537                 fi
3538         done
3539         if test "$ol_arg" = "invalid" ; then
3540                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3541 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3542    { (exit 1); exit 1; }; }
3543         fi
3544         ol_enable_slurpd="$ol_arg"
3545
3546 else
3547         ol_enable_slurpd=auto
3548 fi;
3549 # end --enable-slurpd
3550
3551 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3552 if test "${enable_xxliboptions+set}" = set; then
3553   enableval="$enable_xxliboptions"
3554
3555 fi;
3556 # Check whether --enable-static or --disable-static was given.
3557 if test "${enable_static+set}" = set; then
3558   enableval="$enable_static"
3559   p=${PACKAGE-default}
3560     case $enableval in
3561     yes) enable_static=yes ;;
3562     no) enable_static=no ;;
3563     *)
3564      enable_static=no
3565       # Look at the argument we got.  We use all the common list separators.
3566       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3567       for pkg in $enableval; do
3568         IFS="$lt_save_ifs"
3569         if test "X$pkg" = "X$p"; then
3570           enable_static=yes
3571         fi
3572       done
3573       IFS="$lt_save_ifs"
3574       ;;
3575     esac
3576 else
3577   enable_static=yes
3578 fi;
3579
3580 # Check whether --enable-shared or --disable-shared was given.
3581 if test "${enable_shared+set}" = set; then
3582   enableval="$enable_shared"
3583   p=${PACKAGE-default}
3584     case $enableval in
3585     yes) enable_shared=yes ;;
3586     no) enable_shared=no ;;
3587     *)
3588       enable_shared=no
3589       # Look at the argument we got.  We use all the common list separators.
3590       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3591       for pkg in $enableval; do
3592         IFS="$lt_save_ifs"
3593         if test "X$pkg" = "X$p"; then
3594           enable_shared=yes
3595         fi
3596       done
3597       IFS="$lt_save_ifs"
3598       ;;
3599     esac
3600 else
3601   enable_shared=yes
3602 fi;
3603
3604
3605
3606 # validate options
3607 if test $ol_enable_slapd = no ; then
3608                 if test $ol_enable_slapi = yes ; then
3609                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3610 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3611         fi
3612         case "$ol_enable_backends" in yes | mod)
3613                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3614 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3615         esac
3616         for i in $Backends; do
3617                 eval "ol_tmp=\$ol_enable_$i"
3618                 if test $ol_tmp != no ; then
3619                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3620 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3621                         eval "ol_enable_$i=no"
3622                 fi
3623         done
3624         if test $ol_enable_modules = yes ; then
3625                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3626 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3627         fi
3628         if test $ol_enable_multimaster = yes ; then
3629                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3630 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3631         fi
3632         if test $ol_enable_wrappers = yes ; then
3633                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3634 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3635         fi
3636         if test $ol_enable_rlookups = yes ; then
3637                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3638 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3639         fi
3640         if test $ol_enable_aci = yes ; then
3641                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3642 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3643         fi
3644         if test $ol_enable_ldbm_api != auto ; then
3645                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3646 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3647         fi
3648         if test $ol_enable_ldbm_type != auto ; then
3649                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3650 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3651         fi
3652         if test $ol_enable_slurpd = yes ; then
3653                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3654 echo "$as_me: error: slurpd requires slapd" >&2;}
3655    { (exit 1); exit 1; }; }
3656         fi
3657         if test $ol_enable_rewrite = yes ; then
3658                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3659 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3660         fi
3661                 case "$ol_enable_overlays" in yes | mod)
3662                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3663 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3664         esac
3665         for i in $Overlays; do
3666                 eval "ol_tmp=\$ol_enable_$i"
3667                 if test $ol_tmp != no ; then
3668                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3669 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3670                         eval "ol_enable_$i=no"
3671                 fi
3672         done
3673
3674         # force settings to no
3675         ol_enable_slapi=no
3676
3677         ol_enable_backends=
3678         ol_enable_overlays=
3679         ol_enable_modules=no
3680         ol_enable_multimaster=no
3681         ol_enable_rlookups=no
3682         ol_enable_aci=no
3683         ol_enable_wrappers=no
3684
3685         ol_enable_ldbm_api=no
3686         ol_enable_ldbm_type=no
3687
3688         ol_enable_slurpd=no
3689
3690         ol_enable_rewrite=no
3691
3692 elif test $ol_enable_ldbm = no ; then
3693
3694         if test $ol_enable_ldbm_api != auto ; then
3695                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3696 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3697         fi
3698
3699         if test $ol_enable_ldbm_type != auto ; then
3700                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3701 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3702         fi
3703
3704         if test $ol_enable_modules != yes &&
3705            test $ol_enable_bdb = no &&
3706            test $ol_enable_dnssrv = no &&
3707            test $ol_enable_hdb = no &&
3708            test $ol_enable_ldap = no &&
3709            test $ol_enable_meta = no &&
3710            test $ol_enable_monitor = no &&
3711            test $ol_enable_null = no &&
3712            test $ol_enable_passwd = no &&
3713            test $ol_enable_perl = no &&
3714            test $ol_enable_relay = no &&
3715            test $ol_enable_shell = no &&
3716            test $ol_enable_sql = no ; then
3717
3718                 if test $ol_enable_slapd = yes ; then
3719                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3720 echo "$as_me: error: slapd requires a backend" >&2;}
3721    { (exit 1); exit 1; }; }
3722                 else
3723                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3724 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3725                         ol_enable_slapd=no
3726                 fi
3727         fi
3728
3729         ol_enable_ldbm_api=no
3730         ol_enable_ldbm_type=no
3731
3732         if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3733                 ol_enable_ldbm_api=berkeley
3734         fi
3735
3736 else
3737                 if test $ol_enable_ldbm_api = gdbm &&
3738            test $ol_enable_ldbm_type = btree ; then
3739                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3740 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3741    { (exit 1); exit 1; }; }
3742         fi
3743         if test $ol_enable_ldbm_api = mdbm &&
3744            test $ol_enable_ldbm_type = btree ; then
3745                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3746 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3747    { (exit 1); exit 1; }; }
3748         fi
3749         if test $ol_enable_ldbm_api = ndbm &&
3750            test $ol_enable_ldbm_type = btree ; then
3751                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3752 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3753    { (exit 1); exit 1; }; }
3754         fi
3755
3756         if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3757                 if test $ol_enable_ldbm_api = auto ; then
3758                         ol_enable_ldbm_api=berkeley
3759                 elif test $ol_enable_ldbm_api != berkeley ; then
3760                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3761 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3762    { (exit 1); exit 1; }; }
3763                 fi
3764         fi
3765 fi
3766
3767 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3768         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3769 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3770    { (exit 1); exit 1; }; }
3771 fi
3772
3773 if test $ol_enable_slurpd = yes ; then
3774                 if test $ol_with_threads = no ; then
3775                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3776 echo "$as_me: error: slurpd requires threads" >&2;}
3777    { (exit 1); exit 1; }; }
3778         fi
3779 fi
3780
3781 if test $ol_enable_lmpasswd = yes ; then
3782         if test $ol_with_tls = no ; then
3783                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3784 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3785    { (exit 1); exit 1; }; }
3786         fi
3787 fi
3788
3789 if test $ol_enable_kbind = yes ; then
3790         if test $ol_with_kerberos = no ; then
3791                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3792 echo "$as_me: error: options require --with-kerberos" >&2;}
3793    { (exit 1); exit 1; }; }
3794         elif test $ol_with_kerberos = auto ; then
3795                 ol_with_kerberos=yes
3796         fi
3797
3798 elif test $ol_enable_kbind = no ; then
3799         if test $ol_with_kerberos = auto ; then
3800                 ol_with_kerberos=no
3801         elif test $ol_with_kerberos != no ; then
3802                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3803 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3804                 ol_with_kerberos=no
3805         fi
3806 fi
3807
3808 if test $ol_enable_spasswd = yes ; then
3809         if test $ol_with_cyrus_sasl = no ; then
3810                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3811 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3812    { (exit 1); exit 1; }; }
3813         fi
3814         ol_with_cyrus_sasl=yes
3815 fi
3816
3817 echo "$as_me:$LINENO: result: done" >&5
3818 echo "${ECHO_T}done" >&6
3819
3820 LDAP_LIBS=
3821 LDBM_LIBS=
3822 LTHREAD_LIBS=
3823 LUTIL_LIBS=
3824
3825 SLAPD_LIBS=
3826 SLURPD_LIBS=
3827
3828 BUILD_SLAPD=no
3829 BUILD_SLURPD=no
3830
3831 BUILD_THREAD=no
3832
3833 BUILD_SLAPI=no
3834 SLAPD_SLAPI_DEPEND=
3835
3836 BUILD_BDB=no
3837 BUILD_DNSSRV=no
3838 BUILD_HDB=no
3839 BUILD_LDAP=no
3840 BUILD_LDBM=no
3841 BUILD_META=no
3842 BUILD_MONITOR=no
3843 BUILD_NULL=no
3844 BUILD_PASSWD=no
3845 BUILD_PERL=no
3846 BUILD_RELAY=no
3847 BUILD_SHELL=no
3848 BUILD_SQL=no
3849
3850 BUILD_ACCESSLOG=no
3851 BUILD_DENYOP=no
3852 BUILD_DYNGROUP=no
3853 BUILD_DYNLIST=no
3854 BUILD_LASTMOD=no
3855 BUILD_PPOLICY=no
3856 BUILD_PROXYCACHE=no
3857 BUILD_REFINT=no
3858 BUILD_RETCODE=no
3859 BUILD_RWM=no
3860 BUILD_SYNCPROV=no
3861 BUILD_TRANSLUCENT=no
3862 BUILD_UNIQUE=no
3863 BUILD_VALSORT=no
3864
3865 SLAPD_STATIC_OVERLAYS=
3866 SLAPD_DYNAMIC_OVERLAYS=
3867
3868 SLAPD_MODULES_LDFLAGS=
3869 SLAPD_MODULES_CPPFLAGS=
3870
3871 SLAPD_STATIC_BACKENDS=back-ldif
3872 SLAPD_DYNAMIC_BACKENDS=
3873
3874 SLAPD_PERL_LDFLAGS=
3875 MOD_PERL_LDFLAGS=
3876 PERL_CPPFLAGS=
3877
3878 SLAPD_SQL_LDFLAGS=
3879 SLAPD_SQL_LIBS=
3880 SLAPD_SQL_INCLUDES=
3881
3882 KRB4_LIBS=
3883 KRB5_LIBS=
3884 SASL_LIBS=
3885 TLS_LIBS=
3886 MODULES_LIBS=
3887 SLAPI_LIBS=
3888 LIBSLAPI=
3889 LIBSLAPITOOLS=
3890 AUTH_LIBS=
3891
3892 SLAPD_SLP_LIBS=
3893 SLAPD_GMP_LIBS=
3894
3895
3896
3897 cat >>confdefs.h <<\_ACEOF
3898 #define HAVE_MKVERSION 1
3899 _ACEOF
3900
3901
3902
3903
3904 ol_aix_threads=no
3905 case "$target" in
3906 *-*-aix*)       if test -z "$CC" ; then
3907                 case "$ol_with_threads" in
3908                 auto | yes |  posix) ol_aix_threads=yes ;;
3909                 esac
3910         fi
3911 ;;
3912 esac
3913
3914 if test $ol_aix_threads = yes ; then
3915         if test -z "${CC}" ; then
3916                 for ac_prog in cc_r xlc_r cc
3917 do
3918   # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy $ac_prog; ac_word=$2
3920 echo "$as_me:$LINENO: checking for $ac_word" >&5
3921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3922 if test "${ac_cv_prog_CC+set}" = set; then
3923   echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925   if test -n "$CC"; then
3926   ac_cv_prog_CC="$CC" # Let the user override the test.
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931   IFS=$as_save_IFS
3932   test -z "$as_dir" && as_dir=.
3933   for ac_exec_ext in '' $ac_executable_extensions; do
3934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935     ac_cv_prog_CC="$ac_prog"
3936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3937     break 2
3938   fi
3939 done
3940 done
3941
3942 fi
3943 fi
3944 CC=$ac_cv_prog_CC
3945 if test -n "$CC"; then
3946   echo "$as_me:$LINENO: result: $CC" >&5
3947 echo "${ECHO_T}$CC" >&6
3948 else
3949   echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3951 fi
3952
3953   test -n "$CC" && break
3954 done
3955
3956
3957                 if test "$CC" = cc ; then
3958                                                 if test $ol_with_threads != auto ; then
3959                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3960 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3961    { (exit 1); exit 1; }; }
3962                         else
3963                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3964 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3965                         fi
3966                         ol_with_threads=no
3967                 fi
3968         fi
3969
3970         case ${CC} in cc_r | xlc_r)
3971                 ol_with_threads=posix
3972                 ol_cv_pthread_create=yes
3973                 ;;
3974         esac
3975 fi
3976
3977 if test -z "${CC}"; then
3978         for ac_prog in cc gcc
3979 do
3980   # Extract the first word of "$ac_prog", so it can be a program name with args.
3981 set dummy $ac_prog; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_CC+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   if test -n "$CC"; then
3988   ac_cv_prog_CC="$CC" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997     ac_cv_prog_CC="$ac_prog"
3998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999     break 2
4000   fi
4001 done
4002 done
4003
4004 fi
4005 fi
4006 CC=$ac_cv_prog_CC
4007 if test -n "$CC"; then
4008   echo "$as_me:$LINENO: result: $CC" >&5
4009 echo "${ECHO_T}$CC" >&6
4010 else
4011   echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4013 fi
4014
4015   test -n "$CC" && break
4016 done
4017 test -n "$CC" || CC="missing"
4018
4019
4020         if test "${CC}" = "missing" ; then
4021                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4022 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4023    { (exit 1); exit 1; }; }
4024         fi
4025 fi
4026
4027 if test -z "${AR}"; then
4028         for ac_prog in ar gar
4029 do
4030   # Extract the first word of "$ac_prog", so it can be a program name with args.
4031 set dummy $ac_prog; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_prog_AR+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   if test -n "$AR"; then
4038   ac_cv_prog_AR="$AR" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4042 do
4043   IFS=$as_save_IFS
4044   test -z "$as_dir" && as_dir=.
4045   for ac_exec_ext in '' $ac_executable_extensions; do
4046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047     ac_cv_prog_AR="$ac_prog"
4048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049     break 2
4050   fi
4051 done
4052 done
4053
4054 fi
4055 fi
4056 AR=$ac_cv_prog_AR
4057 if test -n "$AR"; then
4058   echo "$as_me:$LINENO: result: $AR" >&5
4059 echo "${ECHO_T}$AR" >&6
4060 else
4061   echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4063 fi
4064
4065   test -n "$AR" && break
4066 done
4067 test -n "$AR" || AR="missing"
4068
4069
4070         if test "${AR}" = "missing" ; then
4071                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4072 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4073    { (exit 1); exit 1; }; }
4074         fi
4075 fi
4076
4077
4078
4079
4080
4081 # Check whether --enable-fast-install or --disable-fast-install was given.
4082 if test "${enable_fast_install+set}" = set; then
4083   enableval="$enable_fast_install"
4084   p=${PACKAGE-default}
4085     case $enableval in
4086     yes) enable_fast_install=yes ;;
4087     no) enable_fast_install=no ;;
4088     *)
4089       enable_fast_install=no
4090       # Look at the argument we got.  We use all the common list separators.
4091       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4092       for pkg in $enableval; do
4093         IFS="$lt_save_ifs"
4094         if test "X$pkg" = "X$p"; then
4095           enable_fast_install=yes
4096         fi
4097       done
4098       IFS="$lt_save_ifs"
4099       ;;
4100     esac
4101 else
4102   enable_fast_install=yes
4103 fi;
4104
4105 DEPDIR="${am__leading_dot}deps"
4106
4107           ac_config_commands="$ac_config_commands depfiles"
4108
4109
4110 am_make=${MAKE-make}
4111 cat > confinc << 'END'
4112 am__doit:
4113         @echo done
4114 .PHONY: am__doit
4115 END
4116 # If we don't find an include directive, just comment out the code.
4117 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4118 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4119 am__include="#"
4120 am__quote=
4121 _am_result=none
4122 # First try GNU make style include.
4123 echo "include confinc" > confmf
4124 # We grep out `Entering directory' and `Leaving directory'
4125 # messages which can occur if `w' ends up in MAKEFLAGS.
4126 # In particular we don't look at `^make:' because GNU make might
4127 # be invoked under some other name (usually "gmake"), in which
4128 # case it prints its new name instead of `make'.
4129 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4130    am__include=include
4131    am__quote=
4132    _am_result=GNU
4133 fi
4134 # Now try BSD make style include.
4135 if test "$am__include" = "#"; then
4136    echo '.include "confinc"' > confmf
4137    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4138       am__include=.include
4139       am__quote="\""
4140       _am_result=BSD
4141    fi
4142 fi
4143
4144
4145 echo "$as_me:$LINENO: result: $_am_result" >&5
4146 echo "${ECHO_T}$_am_result" >&6
4147 rm -f confinc confmf
4148
4149 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4150 if test "${enable_dependency_tracking+set}" = set; then
4151   enableval="$enable_dependency_tracking"
4152
4153 fi;
4154 if test "x$enable_dependency_tracking" != xno; then
4155   am_depcomp="$ac_aux_dir/depcomp"
4156   AMDEPBACKSLASH='\'
4157 fi
4158
4159
4160 if test "x$enable_dependency_tracking" != xno; then
4161   AMDEP_TRUE=
4162   AMDEP_FALSE='#'
4163 else
4164   AMDEP_TRUE='#'
4165   AMDEP_FALSE=
4166 fi
4167
4168
4169
4170 ac_ext=c
4171 ac_cpp='$CPP $CPPFLAGS'
4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 if test -n "$ac_tool_prefix"; then
4176   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4177 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_CC+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   if test -n "$CC"; then
4184   ac_cv_prog_CC="$CC" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191   for ac_exec_ext in '' $ac_executable_extensions; do
4192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195     break 2
4196   fi
4197 done
4198 done
4199
4200 fi
4201 fi
4202 CC=$ac_cv_prog_CC
4203 if test -n "$CC"; then
4204   echo "$as_me:$LINENO: result: $CC" >&5
4205 echo "${ECHO_T}$CC" >&6
4206 else
4207   echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4209 fi
4210
4211 fi
4212 if test -z "$ac_cv_prog_CC"; then
4213   ac_ct_CC=$CC
4214   # Extract the first word of "gcc", so it can be a program name with args.
4215 set dummy gcc; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   if test -n "$ac_ct_CC"; then
4222   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229   for ac_exec_ext in '' $ac_executable_extensions; do
4230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231     ac_cv_prog_ac_ct_CC="gcc"
4232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233     break 2
4234   fi
4235 done
4236 done
4237
4238 fi
4239 fi
4240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4241 if test -n "$ac_ct_CC"; then
4242   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4243 echo "${ECHO_T}$ac_ct_CC" >&6
4244 else
4245   echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4247 fi
4248
4249   CC=$ac_ct_CC
4250 else
4251   CC="$ac_cv_prog_CC"
4252 fi
4253
4254 if test -z "$CC"; then
4255   if test -n "$ac_tool_prefix"; then
4256   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}cc; ac_word=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_CC+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   if test -n "$CC"; then
4264   ac_cv_prog_CC="$CC" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271   for ac_exec_ext in '' $ac_executable_extensions; do
4272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273     ac_cv_prog_CC="${ac_tool_prefix}cc"
4274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275     break 2
4276   fi
4277 done
4278 done
4279
4280 fi
4281 fi
4282 CC=$ac_cv_prog_CC
4283 if test -n "$CC"; then
4284   echo "$as_me:$LINENO: result: $CC" >&5
4285 echo "${ECHO_T}$CC" >&6
4286 else
4287   echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4289 fi
4290
4291 fi
4292 if test -z "$ac_cv_prog_CC"; then
4293   ac_ct_CC=$CC
4294   # Extract the first word of "cc", so it can be a program name with args.
4295 set dummy cc; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   if test -n "$ac_ct_CC"; then
4302   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307   IFS=$as_save_IFS
4308   test -z "$as_dir" && as_dir=.
4309   for ac_exec_ext in '' $ac_executable_extensions; do
4310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311     ac_cv_prog_ac_ct_CC="cc"
4312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313     break 2
4314   fi
4315 done
4316 done
4317
4318 fi
4319 fi
4320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4321 if test -n "$ac_ct_CC"; then
4322   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4323 echo "${ECHO_T}$ac_ct_CC" >&6
4324 else
4325   echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6
4327 fi
4328
4329   CC=$ac_ct_CC
4330 else
4331   CC="$ac_cv_prog_CC"
4332 fi
4333
4334 fi
4335 if test -z "$CC"; then
4336   # Extract the first word of "cc", so it can be a program name with args.
4337 set dummy cc; ac_word=$2
4338 echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340 if test "${ac_cv_prog_CC+set}" = set; then
4341   echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343   if test -n "$CC"; then
4344   ac_cv_prog_CC="$CC" # Let the user override the test.
4345 else
4346   ac_prog_rejected=no
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4349 do
4350   IFS=$as_save_IFS
4351   test -z "$as_dir" && as_dir=.
4352   for ac_exec_ext in '' $ac_executable_extensions; do
4353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4355        ac_prog_rejected=yes
4356        continue
4357      fi
4358     ac_cv_prog_CC="cc"
4359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4360     break 2
4361   fi
4362 done
4363 done
4364
4365 if test $ac_prog_rejected = yes; then
4366   # We found a bogon in the path, so make sure we never use it.
4367   set dummy $ac_cv_prog_CC
4368   shift
4369   if test $# != 0; then
4370     # We chose a different compiler from the bogus one.
4371     # However, it has the same basename, so the bogon will be chosen
4372     # first if we set CC to just the basename; use the full file name.
4373     shift
4374     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4375   fi
4376 fi
4377 fi
4378 fi
4379 CC=$ac_cv_prog_CC
4380 if test -n "$CC"; then
4381   echo "$as_me:$LINENO: result: $CC" >&5
4382 echo "${ECHO_T}$CC" >&6
4383 else
4384   echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4386 fi
4387
4388 fi
4389 if test -z "$CC"; then
4390   if test -n "$ac_tool_prefix"; then
4391   for ac_prog in cl
4392   do
4393     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_CC+set}" = set; then
4398   echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400   if test -n "$CC"; then
4401   ac_cv_prog_CC="$CC" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406   IFS=$as_save_IFS
4407   test -z "$as_dir" && as_dir=.
4408   for ac_exec_ext in '' $ac_executable_extensions; do
4409   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412     break 2
4413   fi
4414 done
4415 done
4416
4417 fi
4418 fi
4419 CC=$ac_cv_prog_CC
4420 if test -n "$CC"; then
4421   echo "$as_me:$LINENO: result: $CC" >&5
4422 echo "${ECHO_T}$CC" >&6
4423 else
4424   echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4426 fi
4427
4428     test -n "$CC" && break
4429   done
4430 fi
4431 if test -z "$CC"; then
4432   ac_ct_CC=$CC
4433   for ac_prog in cl
4434 do
4435   # Extract the first word of "$ac_prog", so it can be a program name with args.
4436 set dummy $ac_prog; ac_word=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4440   echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442   if test -n "$ac_ct_CC"; then
4443   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448   IFS=$as_save_IFS
4449   test -z "$as_dir" && as_dir=.
4450   for ac_exec_ext in '' $ac_executable_extensions; do
4451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452     ac_cv_prog_ac_ct_CC="$ac_prog"
4453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454     break 2
4455   fi
4456 done
4457 done
4458
4459 fi
4460 fi
4461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4462 if test -n "$ac_ct_CC"; then
4463   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4464 echo "${ECHO_T}$ac_ct_CC" >&6
4465 else
4466   echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6
4468 fi
4469
4470   test -n "$ac_ct_CC" && break
4471 done
4472
4473   CC=$ac_ct_CC
4474 fi
4475
4476 fi
4477
4478
4479 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4480 See \`config.log' for more details." >&5
4481 echo "$as_me: error: no acceptable C compiler found in \$PATH
4482 See \`config.log' for more details." >&2;}
4483    { (exit 1); exit 1; }; }
4484
4485 # Provide some information about the compiler.
4486 echo "$as_me:$LINENO:" \
4487      "checking for C compiler version" >&5
4488 ac_compiler=`set X $ac_compile; echo $2`
4489 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4490   (eval $ac_compiler --version </dev/null >&5) 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }
4494 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4495   (eval $ac_compiler -v </dev/null >&5) 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); }
4499 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4500   (eval $ac_compiler -V </dev/null >&5) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }
4504
4505 cat >conftest.$ac_ext <<_ACEOF
4506 /* confdefs.h.  */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h.  */
4511
4512 int
4513 main ()
4514 {
4515
4516   ;
4517   return 0;
4518 }
4519 _ACEOF
4520 ac_clean_files_save=$ac_clean_files
4521 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4522 # Try to create an executable without -o first, disregard a.out.
4523 # It will help us diagnose broken compilers, and finding out an intuition
4524 # of exeext.
4525 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4526 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4527 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4528 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4529   (eval $ac_link_default) 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; then
4533   # Find the output, starting from the most likely.  This scheme is
4534 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4535 # resort.
4536
4537 # Be careful to initialize this variable, since it used to be cached.
4538 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4539 ac_cv_exeext=
4540 # b.out is created by i960 compilers.
4541 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4542 do
4543   test -f "$ac_file" || continue
4544   case $ac_file in
4545     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4546         ;;
4547     conftest.$ac_ext )
4548         # This is the source file.
4549         ;;
4550     [ab].out )
4551         # We found the default executable, but exeext='' is most
4552         # certainly right.
4553         break;;
4554     *.* )
4555         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4556         # FIXME: I believe we export ac_cv_exeext for Libtool,
4557         # but it would be cool to find out if it's true.  Does anybody
4558         # maintain Libtool? --akim.
4559         export ac_cv_exeext
4560         break;;
4561     * )
4562         break;;
4563   esac
4564 done
4565 else
4566   echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4570 See \`config.log' for more details." >&5
4571 echo "$as_me: error: C compiler cannot create executables
4572 See \`config.log' for more details." >&2;}
4573    { (exit 77); exit 77; }; }
4574 fi
4575
4576 ac_exeext=$ac_cv_exeext
4577 echo "$as_me:$LINENO: result: $ac_file" >&5
4578 echo "${ECHO_T}$ac_file" >&6
4579
4580 # Check the compiler produces executables we can run.  If not, either
4581 # the compiler is broken, or we cross compile.
4582 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4583 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4584 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4585 # If not cross compiling, check that we can run a simple program.
4586 if test "$cross_compiling" != yes; then
4587   if { ac_try='./$ac_file'
4588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589   (eval $ac_try) 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; }; then
4593     cross_compiling=no
4594   else
4595     if test "$cross_compiling" = maybe; then
4596         cross_compiling=yes
4597     else
4598         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4599 If you meant to cross compile, use \`--host'.
4600 See \`config.log' for more details." >&5
4601 echo "$as_me: error: cannot run C compiled programs.
4602 If you meant to cross compile, use \`--host'.
4603 See \`config.log' for more details." >&2;}
4604    { (exit 1); exit 1; }; }
4605     fi
4606   fi
4607 fi
4608 echo "$as_me:$LINENO: result: yes" >&5
4609 echo "${ECHO_T}yes" >&6
4610
4611 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4612 ac_clean_files=$ac_clean_files_save
4613 # Check the compiler produces executables we can run.  If not, either
4614 # the compiler is broken, or we cross compile.
4615 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4616 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4617 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4618 echo "${ECHO_T}$cross_compiling" >&6
4619
4620 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4621 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623   (eval $ac_link) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; then
4627   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4628 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4629 # work properly (i.e., refer to `conftest.exe'), while it won't with
4630 # `rm'.
4631 for ac_file in conftest.exe conftest conftest.*; do
4632   test -f "$ac_file" || continue
4633   case $ac_file in
4634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4635     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4636           export ac_cv_exeext
4637           break;;
4638     * ) break;;
4639   esac
4640 done
4641 else
4642   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4643 See \`config.log' for more details." >&5
4644 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4645 See \`config.log' for more details." >&2;}
4646    { (exit 1); exit 1; }; }
4647 fi
4648
4649 rm -f conftest$ac_cv_exeext
4650 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4651 echo "${ECHO_T}$ac_cv_exeext" >&6
4652
4653 rm -f conftest.$ac_ext
4654 EXEEXT=$ac_cv_exeext
4655 ac_exeext=$EXEEXT
4656 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4657 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4658 if test "${ac_cv_objext+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h.  */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h.  */
4667
4668 int
4669 main ()
4670 {
4671
4672   ;
4673   return 0;
4674 }
4675 _ACEOF
4676 rm -f conftest.o conftest.obj
4677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678   (eval $ac_compile) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; then
4682   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4683   case $ac_file in
4684     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4685     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4686        break;;
4687   esac
4688 done
4689 else
4690   echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4692
4693 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4694 See \`config.log' for more details." >&5
4695 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4696 See \`config.log' for more details." >&2;}
4697    { (exit 1); exit 1; }; }
4698 fi
4699
4700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4701 fi
4702 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4703 echo "${ECHO_T}$ac_cv_objext" >&6
4704 OBJEXT=$ac_cv_objext
4705 ac_objext=$OBJEXT
4706 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4707 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4708 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h.  */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h.  */
4717
4718 int
4719 main ()
4720 {
4721 #ifndef __GNUC__
4722        choke me
4723 #endif
4724
4725   ;
4726   return 0;
4727 }
4728 _ACEOF
4729 rm -f conftest.$ac_objext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731   (eval $ac_compile) 2>conftest.er1
4732   ac_status=$?
4733   grep -v '^ *+' conftest.er1 >conftest.err
4734   rm -f conftest.er1
4735   cat conftest.err >&5
4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); } &&
4738          { ac_try='test -z "$ac_c_werror_flag"
4739                          || test ! -s conftest.err'
4740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741   (eval $ac_try) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }; } &&
4745          { ac_try='test -s conftest.$ac_objext'
4746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747   (eval $ac_try) 2>&5
4748   ac_status=$?
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); }; }; then
4751   ac_compiler_gnu=yes
4752 else
4753   echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4755
4756 ac_compiler_gnu=no
4757 fi
4758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4759 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4760
4761 fi
4762 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4763 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4764 GCC=`test $ac_compiler_gnu = yes && echo yes`
4765 ac_test_CFLAGS=${CFLAGS+set}
4766 ac_save_CFLAGS=$CFLAGS
4767 CFLAGS="-g"
4768 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4769 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4770 if test "${ac_cv_prog_cc_g+set}" = set; then
4771   echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773   cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h.  */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h.  */
4779
4780 int
4781 main ()
4782 {
4783
4784   ;
4785   return 0;
4786 }
4787 _ACEOF
4788 rm -f conftest.$ac_objext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790   (eval $ac_compile) 2>conftest.er1
4791   ac_status=$?
4792   grep -v '^ *+' conftest.er1 >conftest.err
4793   rm -f conftest.er1
4794   cat conftest.err >&5
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); } &&
4797          { ac_try='test -z "$ac_c_werror_flag"
4798                          || test ! -s conftest.err'
4799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800   (eval $ac_try) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); }; } &&
4804          { ac_try='test -s conftest.$ac_objext'
4805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806   (eval $ac_try) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); }; }; then
4810   ac_cv_prog_cc_g=yes
4811 else
4812   echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 ac_cv_prog_cc_g=no
4816 fi
4817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4818 fi
4819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4820 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4821 if test "$ac_test_CFLAGS" = set; then
4822   CFLAGS=$ac_save_CFLAGS
4823 elif test $ac_cv_prog_cc_g = yes; then
4824   if test "$GCC" = yes; then
4825     CFLAGS="-g -O2"
4826   else
4827     CFLAGS="-g"
4828   fi
4829 else
4830   if test "$GCC" = yes; then
4831     CFLAGS="-O2"
4832   else
4833     CFLAGS=
4834   fi
4835 fi
4836 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4837 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4838 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   ac_cv_prog_cc_stdc=no
4842 ac_save_CC=$CC
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h.  */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h.  */
4849 #include <stdarg.h>
4850 #include <stdio.h>
4851 #include <sys/types.h>
4852 #include <sys/stat.h>
4853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4854 struct buf { int x; };
4855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4856 static char *e (p, i)
4857      char **p;
4858      int i;
4859 {
4860   return p[i];
4861 }
4862 static char *f (char * (*g) (char **, int), char **p, ...)
4863 {
4864   char *s;
4865   va_list v;
4866   va_start (v,p);
4867   s = g (p, va_arg (v,int));
4868   va_end (v);
4869   return s;
4870 }
4871
4872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4873    function prototypes and stuff, but not '\xHH' hex character constants.
4874    These don't provoke an error unfortunately, instead are silently treated
4875    as 'x'.  The following induces an error, until -std1 is added to get
4876    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4877    array size at least.  It's necessary to write '\x00'==0 to get something
4878    that's true only with -std1.  */
4879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4880
4881 int test (int i, double x);
4882 struct s1 {int (*f) (int a);};
4883 struct s2 {int (*f) (double a);};
4884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4885 int argc;
4886 char **argv;
4887 int
4888 main ()
4889 {
4890 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4891   ;
4892   return 0;
4893 }
4894 _ACEOF
4895 # Don't try gcc -ansi; that turns off useful extensions and
4896 # breaks some systems' header files.
4897 # AIX                   -qlanglvl=ansi
4898 # Ultrix and OSF/1      -std1
4899 # HP-UX 10.20 and later -Ae
4900 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4901 # SVR4                  -Xc -D__EXTENSIONS__
4902 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4903 do
4904   CC="$ac_save_CC $ac_arg"
4905   rm -f conftest.$ac_objext
4906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4907   (eval $ac_compile) 2>conftest.er1
4908   ac_status=$?
4909   grep -v '^ *+' conftest.er1 >conftest.err
4910   rm -f conftest.er1
4911   cat conftest.err >&5
4912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913   (exit $ac_status); } &&
4914          { ac_try='test -z "$ac_c_werror_flag"
4915                          || test ! -s conftest.err'
4916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917   (eval $ac_try) 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); }; } &&
4921          { ac_try='test -s conftest.$ac_objext'
4922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923   (eval $ac_try) 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); }; }; then
4927   ac_cv_prog_cc_stdc=$ac_arg
4928 break
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 fi
4934 rm -f conftest.err conftest.$ac_objext
4935 done
4936 rm -f conftest.$ac_ext conftest.$ac_objext
4937 CC=$ac_save_CC
4938
4939 fi
4940
4941 case "x$ac_cv_prog_cc_stdc" in
4942   x|xno)
4943     echo "$as_me:$LINENO: result: none needed" >&5
4944 echo "${ECHO_T}none needed" >&6 ;;
4945   *)
4946     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4947 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4948     CC="$CC $ac_cv_prog_cc_stdc" ;;
4949 esac
4950
4951 # Some people use a C++ compiler to compile C.  Since we use `exit',
4952 # in C++ we need to declare it.  In case someone uses the same compiler
4953 # for both compiling C and C++ we need to have the C++ compiler decide
4954 # the declaration of exit, since it's the most demanding environment.
4955 cat >conftest.$ac_ext <<_ACEOF
4956 #ifndef __cplusplus
4957   choke me
4958 #endif
4959 _ACEOF
4960 rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962   (eval $ac_compile) 2>conftest.er1
4963   ac_status=$?
4964   grep -v '^ *+' conftest.er1 >conftest.err
4965   rm -f conftest.er1
4966   cat conftest.err >&5
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); } &&
4969          { ac_try='test -z "$ac_c_werror_flag"
4970                          || test ! -s conftest.err'
4971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972   (eval $ac_try) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); }; } &&
4976          { ac_try='test -s conftest.$ac_objext'
4977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978   (eval $ac_try) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); }; }; then
4982   for ac_declaration in \
4983    '' \
4984    'extern "C" void std::exit (int) throw (); using std::exit;' \
4985    'extern "C" void std::exit (int); using std::exit;' \
4986    'extern "C" void exit (int) throw ();' \
4987    'extern "C" void exit (int);' \
4988    'void exit (int);'
4989 do
4990   cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h.  */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h.  */
4996 $ac_declaration
4997 #include <stdlib.h>
4998 int
4999 main ()
5000 {
5001 exit (42);
5002   ;
5003   return 0;
5004 }
5005 _ACEOF
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008   (eval $ac_compile) 2>conftest.er1
5009   ac_status=$?
5010   grep -v '^ *+' conftest.er1 >conftest.err
5011   rm -f conftest.er1
5012   cat conftest.err >&5
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } &&
5015          { ac_try='test -z "$ac_c_werror_flag"
5016                          || test ! -s conftest.err'
5017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018   (eval $ac_try) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); }; } &&
5022          { ac_try='test -s conftest.$ac_objext'
5023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024   (eval $ac_try) 2>&5
5025   ac_status=$?
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); }; }; then
5028   :
5029 else
5030   echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5032
5033 continue
5034 fi
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036   cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h.  */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h.  */
5042 $ac_declaration
5043 int
5044 main ()
5045 {
5046 exit (42);
5047   ;
5048   return 0;
5049 }
5050 _ACEOF
5051 rm -f conftest.$ac_objext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053   (eval $ac_compile) 2>conftest.er1
5054   ac_status=$?
5055   grep -v '^ *+' conftest.er1 >conftest.err
5056   rm -f conftest.er1
5057   cat conftest.err >&5
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); } &&
5060          { ac_try='test -z "$ac_c_werror_flag"
5061                          || test ! -s conftest.err'
5062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063   (eval $ac_try) 2>&5
5064   ac_status=$?
5065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066   (exit $ac_status); }; } &&
5067          { ac_try='test -s conftest.$ac_objext'
5068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069   (eval $ac_try) 2>&5
5070   ac_status=$?
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); }; }; then
5073   break
5074 else
5075   echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 fi
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5080 done
5081 rm -f conftest*
5082 if test -n "$ac_declaration"; then
5083   echo '#ifdef __cplusplus' >>confdefs.h
5084   echo $ac_declaration      >>confdefs.h
5085   echo '#endif'             >>confdefs.h
5086 fi
5087
5088 else
5089   echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 fi
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094 ac_ext=c
5095 ac_cpp='$CPP $CPPFLAGS'
5096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099
5100 depcc="$CC"   am_compiler_list=
5101
5102 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5103 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5104 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5105   echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5108   # We make a subdir and do the tests there.  Otherwise we can end up
5109   # making bogus files that we don't know about and never remove.  For
5110   # instance it was reported that on HP-UX the gcc test will end up
5111   # making a dummy file named `D' -- because `-MD' means `put the output
5112   # in D'.
5113   mkdir conftest.dir
5114   # Copy depcomp to subdir because otherwise we won't find it if we're
5115   # using a relative directory.
5116   cp "$am_depcomp" conftest.dir
5117   cd conftest.dir
5118   # We will build objects and dependencies in a subdirectory because
5119   # it helps to detect inapplicable dependency modes.  For instance
5120   # both Tru64's cc and ICC support -MD to output dependencies as a
5121   # side effect of compilation, but ICC will put the dependencies in
5122   # the current directory while Tru64 will put them in the object
5123   # directory.
5124   mkdir sub
5125
5126   am_cv_CC_dependencies_compiler_type=none
5127   if test "$am_compiler_list" = ""; then
5128      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5129   fi
5130   for depmode in $am_compiler_list; do
5131     # Setup a source with many dependencies, because some compilers
5132     # like to wrap large dependency lists on column 80 (with \), and
5133     # we should not choose a depcomp mode which is confused by this.
5134     #
5135     # We need to recreate these files for each test, as the compiler may
5136     # overwrite some of them when testing with obscure command lines.
5137     # This happens at least with the AIX C compiler.
5138     : > sub/conftest.c
5139     for i in 1 2 3 4 5 6; do
5140       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5141       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5142       # Solaris 8's {/usr,}/bin/sh.
5143       touch sub/conftst$i.h
5144     done
5145     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5146
5147     case $depmode in
5148     nosideeffect)
5149       # after this tag, mechanisms are not by side-effect, so they'll
5150       # only be used when explicitly requested
5151       if test "x$enable_dependency_tracking" = xyes; then
5152         continue
5153       else
5154         break
5155       fi
5156       ;;
5157     none) break ;;
5158     esac
5159     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5160     # mode.  It turns out that the SunPro C++ compiler does not properly
5161     # handle `-M -o', and we need to detect this.
5162     if depmode=$depmode \
5163        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5164        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5165        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5166          >/dev/null 2>conftest.err &&
5167        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5168        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5169        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5170       # icc doesn't choke on unknown options, it will just issue warnings
5171       # or remarks (even with -Werror).  So we grep stderr for any message
5172       # that says an option was ignored or not supported.
5173       # When given -MP, icc 7.0 and 7.1 complain thusly:
5174       #   icc: Command line warning: ignoring option '-M'; no argument required
5175       # The diagnosis changed in icc 8.0:
5176       #   icc: Command line remark: option '-MP' not supported
5177       if (grep 'ignoring option' conftest.err ||
5178           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5179         am_cv_CC_dependencies_compiler_type=$depmode
5180         break
5181       fi
5182     fi
5183   done
5184
5185   cd ..
5186   rm -rf conftest.dir
5187 else
5188   am_cv_CC_dependencies_compiler_type=none
5189 fi
5190
5191 fi
5192 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5193 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5194 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5195
5196
5197
5198 if
5199   test "x$enable_dependency_tracking" != xno \
5200   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5201   am__fastdepCC_TRUE=
5202   am__fastdepCC_FALSE='#'
5203 else
5204   am__fastdepCC_TRUE='#'
5205   am__fastdepCC_FALSE=
5206 fi
5207
5208
5209 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5210 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5211 if test "${lt_cv_path_SED+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214   # Loop through the user's path and test for sed and gsed.
5215 # Then use that list of sed's as ones to test for truncation.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219   IFS=$as_save_IFS
5220   test -z "$as_dir" && as_dir=.
5221   for lt_ac_prog in sed gsed; do
5222     for ac_exec_ext in '' $ac_executable_extensions; do
5223       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5224         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5225       fi
5226     done
5227   done
5228 done
5229 lt_ac_max=0
5230 lt_ac_count=0
5231 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5232 # along with /bin/sed that truncates output.
5233 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5234   test ! -f $lt_ac_sed && continue
5235   cat /dev/null > conftest.in
5236   lt_ac_count=0
5237   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5238   # Check for GNU sed and select it if it is found.
5239   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5240     lt_cv_path_SED=$lt_ac_sed
5241     break
5242   fi
5243   while true; do
5244     cat conftest.in conftest.in >conftest.tmp
5245     mv conftest.tmp conftest.in
5246     cp conftest.in conftest.nl
5247     echo >>conftest.nl
5248     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5249     cmp -s conftest.out conftest.nl || break
5250     # 10000 chars as input seems more than enough
5251     test $lt_ac_count -gt 10 && break
5252     lt_ac_count=`expr $lt_ac_count + 1`
5253     if test $lt_ac_count -gt $lt_ac_max; then
5254       lt_ac_max=$lt_ac_count
5255       lt_cv_path_SED=$lt_ac_sed
5256     fi
5257   done
5258 done
5259
5260 fi
5261
5262 SED=$lt_cv_path_SED
5263 echo "$as_me:$LINENO: result: $SED" >&5
5264 echo "${ECHO_T}$SED" >&6
5265
5266 echo "$as_me:$LINENO: checking for egrep" >&5
5267 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5268 if test "${ac_cv_prog_egrep+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5272     then ac_cv_prog_egrep='grep -E'
5273     else ac_cv_prog_egrep='egrep'
5274     fi
5275 fi
5276 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5277 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5278  EGREP=$ac_cv_prog_egrep
5279
5280
5281
5282 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5283 if test "${with_gnu_ld+set}" = set; then
5284   withval="$with_gnu_ld"
5285   test "$withval" = no || with_gnu_ld=yes
5286 else
5287   with_gnu_ld=no
5288 fi;
5289 ac_prog=ld
5290 if test "$GCC" = yes; then
5291   # Check if gcc -print-prog-name=ld gives a path.
5292   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5293 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5294   case $host in
5295   *-*-mingw*)
5296     # gcc leaves a trailing carriage return which upsets mingw
5297     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5298   *)
5299     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5300   esac
5301   case $ac_prog in
5302     # Accept absolute paths.
5303     [\\/]* | ?:[\\/]*)
5304       re_direlt='/[^/][^/]*/\.\./'
5305       # Canonicalize the pathname of ld
5306       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5307       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5308         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5309       done
5310       test -z "$LD" && LD="$ac_prog"
5311       ;;
5312   "")
5313     # If it fails, then pretend we aren't using GCC.
5314     ac_prog=ld
5315     ;;
5316   *)
5317     # If it is relative, then search for the first ld in PATH.
5318     with_gnu_ld=unknown
5319     ;;
5320   esac
5321 elif test "$with_gnu_ld" = yes; then
5322   echo "$as_me:$LINENO: checking for GNU ld" >&5
5323 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5324 else
5325   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5326 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5327 fi
5328 if test "${lt_cv_path_LD+set}" = set; then
5329   echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331   if test -z "$LD"; then
5332   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5333   for ac_dir in $PATH; do
5334     IFS="$lt_save_ifs"
5335     test -z "$ac_dir" && ac_dir=.
5336     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5337       lt_cv_path_LD="$ac_dir/$ac_prog"
5338       # Check to see if the program is GNU ld.  I'd rather use --version,
5339       # but apparently some variants of GNU ld only accept -v.
5340       # Break only if it was the GNU/non-GNU ld that we prefer.
5341       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5342       *GNU* | *'with BFD'*)
5343         test "$with_gnu_ld" != no && break
5344         ;;
5345       *)
5346         test "$with_gnu_ld" != yes && break
5347         ;;
5348       esac
5349     fi
5350   done
5351   IFS="$lt_save_ifs"
5352 else
5353   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5354 fi
5355 fi
5356
5357 LD="$lt_cv_path_LD"
5358 if test -n "$LD"; then
5359   echo "$as_me:$LINENO: result: $LD" >&5
5360 echo "${ECHO_T}$LD" >&6
5361 else
5362   echo "$as_me:$LINENO: result: no" >&5
5363 echo "${ECHO_T}no" >&6
5364 fi
5365 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5366 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5367    { (exit 1); exit 1; }; }
5368 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5369 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5370 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5374 case `$LD -v 2>&1 </dev/null` in
5375 *GNU* | *'with BFD'*)
5376   lt_cv_prog_gnu_ld=yes
5377   ;;
5378 *)
5379   lt_cv_prog_gnu_ld=no
5380   ;;
5381 esac
5382 fi
5383 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5384 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5385 with_gnu_ld=$lt_cv_prog_gnu_ld
5386
5387
5388 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5389 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5390 if test "${lt_cv_ld_reload_flag+set}" = set; then
5391   echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393   lt_cv_ld_reload_flag='-r'
5394 fi
5395 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5396 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5397 reload_flag=$lt_cv_ld_reload_flag
5398 case $reload_flag in
5399 "" | " "*) ;;
5400 *) reload_flag=" $reload_flag" ;;
5401 esac
5402 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5403 case $host_os in
5404   darwin*)
5405     if test "$GCC" = yes; then
5406       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5407     else
5408       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5409     fi
5410     ;;
5411 esac
5412
5413 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5414 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5415 if test "${lt_cv_path_NM+set}" = set; then
5416   echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418   if test -n "$NM"; then
5419   # Let the user override the test.
5420   lt_cv_path_NM="$NM"
5421 else
5422   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5423   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5424     IFS="$lt_save_ifs"
5425     test -z "$ac_dir" && ac_dir=.
5426     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5427     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5428       # Check to see if the nm accepts a BSD-compat flag.
5429       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5430       #   nm: unknown option "B" ignored
5431       # Tru64's nm complains that /dev/null is an invalid object file
5432       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5433       */dev/null* | *'Invalid file or object type'*)
5434         lt_cv_path_NM="$tmp_nm -B"
5435         break
5436         ;;
5437       *)
5438         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5439         */dev/null*)
5440           lt_cv_path_NM="$tmp_nm -p"
5441           break
5442           ;;
5443         *)
5444           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5445           continue # so that we can try to find one that supports BSD flags
5446           ;;
5447         esac
5448       esac
5449     fi
5450   done
5451   IFS="$lt_save_ifs"
5452   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5453 fi
5454 fi
5455 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5456 echo "${ECHO_T}$lt_cv_path_NM" >&6
5457 NM="$lt_cv_path_NM"
5458
5459 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5460 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5461 LN_S=$as_ln_s
5462 if test "$LN_S" = "ln -s"; then
5463   echo "$as_me:$LINENO: result: yes" >&5
5464 echo "${ECHO_T}yes" >&6
5465 else
5466   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5467 echo "${ECHO_T}no, using $LN_S" >&6
5468 fi
5469
5470 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5471 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5472 if test "${lt_cv_deplibs_check_method+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475   lt_cv_file_magic_cmd='$MAGIC_CMD'
5476 lt_cv_file_magic_test_file=
5477 lt_cv_deplibs_check_method='unknown'
5478 # Need to set the preceding variable on all platforms that support
5479 # interlibrary dependencies.
5480 # 'none' -- dependencies not supported.
5481 # `unknown' -- same as none, but documents that we really don't know.
5482 # 'pass_all' -- all dependencies passed with no checks.
5483 # 'test_compile' -- check by making test program.
5484 # 'file_magic [[regex]]' -- check by looking for files in library path
5485 # which responds to the $file_magic_cmd with a given extended regex.
5486 # If you have `file' or equivalent on your system and you're not sure
5487 # whether `pass_all' will *always* work, you probably want this one.
5488
5489 case $host_os in
5490 aix4* | aix5*)
5491   lt_cv_deplibs_check_method=pass_all
5492   ;;
5493
5494 beos*)
5495   lt_cv_deplibs_check_method=pass_all
5496   ;;
5497
5498 bsdi[45]*)
5499   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5500   lt_cv_file_magic_cmd='/usr/bin/file -L'
5501   lt_cv_file_magic_test_file=/shlib/libc.so
5502   ;;
5503
5504 cygwin*)
5505   # func_win32_libid is a shell function defined in ltmain.sh
5506   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5507   lt_cv_file_magic_cmd='func_win32_libid'
5508   ;;
5509
5510 mingw* | pw32*)
5511   # Base MSYS/MinGW do not provide the 'file' command needed by
5512   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5513   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5514   lt_cv_file_magic_cmd='$OBJDUMP -f'
5515   ;;
5516
5517 darwin* | rhapsody*)
5518   lt_cv_deplibs_check_method=pass_all
5519   ;;
5520
5521 freebsd* | kfreebsd*-gnu | dragonfly*)
5522   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5523     case $host_cpu in
5524     i*86 )
5525       # Not sure whether the presence of OpenBSD here was a mistake.
5526       # Let's accept both of them until this is cleared up.
5527       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5528       lt_cv_file_magic_cmd=/usr/bin/file
5529       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5530       ;;
5531     esac
5532   else
5533     lt_cv_deplibs_check_method=pass_all
5534   fi
5535   ;;
5536
5537 gnu*)
5538   lt_cv_deplibs_check_method=pass_all
5539   ;;
5540
5541 hpux10.20* | hpux11*)
5542   lt_cv_file_magic_cmd=/usr/bin/file
5543   case $host_cpu in
5544   ia64*)
5545     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5546     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5547     ;;
5548   hppa*64*)
5549     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]'
5550     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5551     ;;
5552   *)
5553     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5554     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5555     ;;
5556   esac
5557   ;;
5558
5559 irix5* | irix6* | nonstopux*)
5560   case $LD in
5561   *-32|*"-32 ") libmagic=32-bit;;
5562   *-n32|*"-n32 ") libmagic=N32;;
5563   *-64|*"-64 ") libmagic=64-bit;;
5564   *) libmagic=never-match;;
5565   esac
5566   lt_cv_deplibs_check_method=pass_all
5567   ;;
5568
5569 # This must be Linux ELF.
5570 linux*)
5571   lt_cv_deplibs_check_method=pass_all
5572   ;;
5573
5574 netbsd*)
5575   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5576     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5577   else
5578     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5579   fi
5580   ;;
5581
5582 newos6*)
5583   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5584   lt_cv_file_magic_cmd=/usr/bin/file
5585   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5586   ;;
5587
5588 nto-qnx*)
5589   lt_cv_deplibs_check_method=unknown
5590   ;;
5591
5592 openbsd*)
5593   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5594     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5595   else
5596     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5597   fi
5598   ;;
5599
5600 osf3* | osf4* | osf5*)
5601   lt_cv_deplibs_check_method=pass_all
5602   ;;
5603
5604 sco3.2v5*)
5605   lt_cv_deplibs_check_method=pass_all
5606   ;;
5607
5608 solaris*)
5609   lt_cv_deplibs_check_method=pass_all
5610   ;;
5611
5612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5613   case $host_vendor in
5614   motorola)
5615     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]'
5616     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5617     ;;
5618   ncr)
5619     lt_cv_deplibs_check_method=pass_all
5620     ;;
5621   sequent)
5622     lt_cv_file_magic_cmd='/bin/file'
5623     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5624     ;;
5625   sni)
5626     lt_cv_file_magic_cmd='/bin/file'
5627     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5628     lt_cv_file_magic_test_file=/lib/libc.so
5629     ;;
5630   siemens)
5631     lt_cv_deplibs_check_method=pass_all
5632     ;;
5633   esac
5634   ;;
5635
5636 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5637   lt_cv_deplibs_check_method=pass_all
5638   ;;
5639 esac
5640
5641 fi
5642 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5643 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5644 file_magic_cmd=$lt_cv_file_magic_cmd
5645 deplibs_check_method=$lt_cv_deplibs_check_method
5646 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5647
5648
5649
5650
5651 # If no C compiler was specified, use CC.
5652 LTCC=${LTCC-"$CC"}
5653
5654 # Allow CC to be a program name with arguments.
5655 compiler=$CC
5656
5657
5658 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5659 if test "${enable_libtool_lock+set}" = set; then
5660   enableval="$enable_libtool_lock"
5661
5662 fi;
5663 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5664
5665 # Some flags need to be propagated to the compiler or linker for good
5666 # libtool support.
5667 case $host in
5668 ia64-*-hpux*)
5669   # Find out which ABI we are using.
5670   echo 'int i;' > conftest.$ac_ext
5671   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672   (eval $ac_compile) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }; then
5676     case `/usr/bin/file conftest.$ac_objext` in
5677     *ELF-32*)
5678       HPUX_IA64_MODE="32"
5679       ;;
5680     *ELF-64*)
5681       HPUX_IA64_MODE="64"
5682       ;;
5683     esac
5684   fi
5685   rm -rf conftest*
5686   ;;
5687 *-*-irix6*)
5688   # Find out which ABI we are using.
5689   echo '#line 5689 "configure"' > conftest.$ac_ext
5690   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691   (eval $ac_compile) 2>&5
5692   ac_status=$?
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); }; then
5695    if test "$lt_cv_prog_gnu_ld" = yes; then
5696     case `/usr/bin/file conftest.$ac_objext` in
5697     *32-bit*)
5698       LD="${LD-ld} -melf32bsmip"
5699       ;;
5700     *N32*)
5701       LD="${LD-ld} -melf32bmipn32"
5702       ;;
5703     *64-bit*)
5704       LD="${LD-ld} -melf64bmip"
5705       ;;
5706     esac
5707    else
5708     case `/usr/bin/file conftest.$ac_objext` in
5709     *32-bit*)
5710       LD="${LD-ld} -32"
5711       ;;
5712     *N32*)
5713       LD="${LD-ld} -n32"
5714       ;;
5715     *64-bit*)
5716       LD="${LD-ld} -64"
5717       ;;
5718     esac
5719    fi
5720   fi
5721   rm -rf conftest*
5722   ;;
5723
5724 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5725   # Find out which ABI we are using.
5726   echo 'int i;' > conftest.$ac_ext
5727   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728   (eval $ac_compile) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }; then
5732     case `/usr/bin/file conftest.o` in
5733     *32-bit*)
5734       case $host in
5735         x86_64-*linux*)
5736           LD="${LD-ld} -m elf_i386"
5737           ;;
5738         ppc64-*linux*|powerpc64-*linux*)
5739           LD="${LD-ld} -m elf32ppclinux"
5740           ;;
5741         s390x-*linux*)
5742           LD="${LD-ld} -m elf_s390"
5743           ;;
5744         sparc64-*linux*)
5745           LD="${LD-ld} -m elf32_sparc"
5746           ;;
5747       esac
5748       ;;
5749     *64-bit*)
5750       case $host in
5751         x86_64-*linux*)
5752           LD="${LD-ld} -m elf_x86_64"
5753           ;;
5754         ppc*-*linux*|powerpc*-*linux*)
5755           LD="${LD-ld} -m elf64ppc"
5756           ;;
5757         s390*-*linux*)
5758           LD="${LD-ld} -m elf64_s390"
5759           ;;
5760         sparc*-*linux*)
5761           LD="${LD-ld} -m elf64_sparc"
5762           ;;
5763       esac
5764       ;;
5765     esac
5766   fi
5767   rm -rf conftest*
5768   ;;
5769
5770 *-*-sco3.2v5*)
5771   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5772   SAVE_CFLAGS="$CFLAGS"
5773   CFLAGS="$CFLAGS -belf"
5774   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5775 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5776 if test "${lt_cv_cc_needs_belf+set}" = set; then
5777   echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779   ac_ext=c
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5784
5785      cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h.  */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h.  */
5791
5792 int
5793 main ()
5794 {
5795
5796   ;
5797   return 0;
5798 }
5799 _ACEOF
5800 rm -f conftest.$ac_objext conftest$ac_exeext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5802   (eval $ac_link) 2>conftest.er1
5803   ac_status=$?
5804   grep -v '^ *+' conftest.er1 >conftest.err
5805   rm -f conftest.er1
5806   cat conftest.err >&5
5807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808   (exit $ac_status); } &&
5809          { ac_try='test -z "$ac_c_werror_flag"
5810                          || test ! -s conftest.err'
5811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812   (eval $ac_try) 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; } &&
5816          { ac_try='test -s conftest$ac_exeext'
5817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818   (eval $ac_try) 2>&5
5819   ac_status=$?
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); }; }; then
5822   lt_cv_cc_needs_belf=yes
5823 else
5824   echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5826
5827 lt_cv_cc_needs_belf=no
5828 fi
5829 rm -f conftest.err conftest.$ac_objext \
5830       conftest$ac_exeext conftest.$ac_ext
5831      ac_ext=c
5832 ac_cpp='$CPP $CPPFLAGS'
5833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5836
5837 fi
5838 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5839 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5840   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5841     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5842     CFLAGS="$SAVE_CFLAGS"
5843   fi
5844   ;;
5845 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5846   if test -n "$ac_tool_prefix"; then
5847   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5848 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   if test -n "$DLLTOOL"; then
5855   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862   for ac_exec_ext in '' $ac_executable_extensions; do
5863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869 done
5870
5871 fi
5872 fi
5873 DLLTOOL=$ac_cv_prog_DLLTOOL
5874 if test -n "$DLLTOOL"; then
5875   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5876 echo "${ECHO_T}$DLLTOOL" >&6
5877 else
5878   echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5880 fi
5881
5882 fi
5883 if test -z "$ac_cv_prog_DLLTOOL"; then
5884   ac_ct_DLLTOOL=$DLLTOOL
5885   # Extract the first word of "dlltool", so it can be a program name with args.
5886 set dummy dlltool; ac_word=$2
5887 echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5889 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   if test -n "$ac_ct_DLLTOOL"; then
5893   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900   for ac_exec_ext in '' $ac_executable_extensions; do
5901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907 done
5908
5909   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5910 fi
5911 fi
5912 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5913 if test -n "$ac_ct_DLLTOOL"; then
5914   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5915 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5916 else
5917   echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6
5919 fi
5920
5921   DLLTOOL=$ac_ct_DLLTOOL
5922 else
5923   DLLTOOL="$ac_cv_prog_DLLTOOL"
5924 fi
5925
5926   if test -n "$ac_tool_prefix"; then
5927   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5928 set dummy ${ac_tool_prefix}as; ac_word=$2
5929 echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931 if test "${ac_cv_prog_AS+set}" = set; then
5932   echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934   if test -n "$AS"; then
5935   ac_cv_prog_AS="$AS" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942   for ac_exec_ext in '' $ac_executable_extensions; do
5943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944     ac_cv_prog_AS="${ac_tool_prefix}as"
5945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949 done
5950
5951 fi
5952 fi
5953 AS=$ac_cv_prog_AS
5954 if test -n "$AS"; then
5955   echo "$as_me:$LINENO: result: $AS" >&5
5956 echo "${ECHO_T}$AS" >&6
5957 else
5958   echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5960 fi
5961
5962 fi
5963 if test -z "$ac_cv_prog_AS"; then
5964   ac_ct_AS=$AS
5965   # Extract the first word of "as", so it can be a program name with args.
5966 set dummy as; ac_word=$2
5967 echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5970   echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972   if test -n "$ac_ct_AS"; then
5973   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980   for ac_exec_ext in '' $ac_executable_extensions; do
5981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982     ac_cv_prog_ac_ct_AS="as"
5983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987 done
5988
5989   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5990 fi
5991 fi
5992 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5993 if test -n "$ac_ct_AS"; then
5994   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5995 echo "${ECHO_T}$ac_ct_AS" >&6
5996 else
5997   echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6
5999 fi
6000
6001   AS=$ac_ct_AS
6002 else
6003   AS="$ac_cv_prog_AS"
6004 fi
6005
6006   if test -n "$ac_tool_prefix"; then
6007   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6008 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6009 echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6011 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   if test -n "$OBJDUMP"; then
6015   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6016 else
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020   IFS=$as_save_IFS
6021   test -z "$as_dir" && as_dir=.
6022   for ac_exec_ext in '' $ac_executable_extensions; do
6023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026     break 2
6027   fi
6028 done
6029 done
6030
6031 fi
6032 fi
6033 OBJDUMP=$ac_cv_prog_OBJDUMP
6034 if test -n "$OBJDUMP"; then
6035   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6036 echo "${ECHO_T}$OBJDUMP" >&6
6037 else
6038   echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6
6040 fi
6041
6042 fi
6043 if test -z "$ac_cv_prog_OBJDUMP"; then
6044   ac_ct_OBJDUMP=$OBJDUMP
6045   # Extract the first word of "objdump", so it can be a program name with args.
6046 set dummy objdump; ac_word=$2
6047 echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6049 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   if test -n "$ac_ct_OBJDUMP"; then
6053   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058   IFS=$as_save_IFS
6059   test -z "$as_dir" && as_dir=.
6060   for ac_exec_ext in '' $ac_executable_extensions; do
6061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064     break 2
6065   fi
6066 done
6067 done
6068
6069   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6070 fi
6071 fi
6072 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6073 if test -n "$ac_ct_OBJDUMP"; then
6074   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6075 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6076 else
6077   echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6
6079 fi
6080
6081   OBJDUMP=$ac_ct_OBJDUMP
6082 else
6083   OBJDUMP="$ac_cv_prog_OBJDUMP"
6084 fi
6085
6086   ;;
6087
6088 esac
6089
6090 need_locks="$enable_libtool_lock"
6091
6092
6093 ac_ext=c
6094 ac_cpp='$CPP $CPPFLAGS'
6095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6098 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6099 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6100 # On Suns, sometimes $CPP names a directory.
6101 if test -n "$CPP" && test -d "$CPP"; then
6102   CPP=
6103 fi
6104 if test -z "$CPP"; then
6105   if test "${ac_cv_prog_CPP+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108       # Double quotes because CPP needs to be expanded
6109     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6110     do
6111       ac_preproc_ok=false
6112 for ac_c_preproc_warn_flag in '' yes
6113 do
6114   # Use a header file that comes with gcc, so configuring glibc
6115   # with a fresh cross-compiler works.
6116   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6117   # <limits.h> exists even on freestanding compilers.
6118   # On the NeXT, cc -E runs the code through the compiler's parser,
6119   # not just through cpp. "Syntax error" is here to catch this case.
6120   cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h.  */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h.  */
6126 #ifdef __STDC__
6127 # include <limits.h>
6128 #else
6129 # include <assert.h>
6130 #endif
6131                      Syntax error
6132 _ACEOF
6133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6135   ac_status=$?
6136   grep -v '^ *+' conftest.er1 >conftest.err
6137   rm -f conftest.er1
6138   cat conftest.err >&5
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } >/dev/null; then
6141   if test -s conftest.err; then
6142     ac_cpp_err=$ac_c_preproc_warn_flag
6143     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6144   else
6145     ac_cpp_err=
6146   fi
6147 else
6148   ac_cpp_err=yes
6149 fi
6150 if test -z "$ac_cpp_err"; then
6151   :
6152 else
6153   echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156   # Broken: fails on valid input.
6157 continue
6158 fi
6159 rm -f conftest.err conftest.$ac_ext
6160
6161   # OK, works on sane cases.  Now check whether non-existent headers
6162   # can be detected and how.
6163   cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h.  */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h.  */
6169 #include <ac_nonexistent.h>
6170 _ACEOF
6171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6172   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6173   ac_status=$?
6174   grep -v '^ *+' conftest.er1 >conftest.err
6175   rm -f conftest.er1
6176   cat conftest.err >&5
6177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); } >/dev/null; then
6179   if test -s conftest.err; then
6180     ac_cpp_err=$ac_c_preproc_warn_flag
6181     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6182   else
6183     ac_cpp_err=
6184   fi
6185 else
6186   ac_cpp_err=yes
6187 fi
6188 if test -z "$ac_cpp_err"; then
6189   # Broken: success on invalid input.
6190 continue
6191 else
6192   echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6194
6195   # Passes both tests.
6196 ac_preproc_ok=:
6197 break
6198 fi
6199 rm -f conftest.err conftest.$ac_ext
6200
6201 done
6202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6203 rm -f conftest.err conftest.$ac_ext
6204 if $ac_preproc_ok; then
6205   break
6206 fi
6207
6208     done
6209     ac_cv_prog_CPP=$CPP
6210
6211 fi
6212   CPP=$ac_cv_prog_CPP
6213 else
6214   ac_cv_prog_CPP=$CPP
6215 fi
6216 echo "$as_me:$LINENO: result: $CPP" >&5
6217 echo "${ECHO_T}$CPP" >&6
6218 ac_preproc_ok=false
6219 for ac_c_preproc_warn_flag in '' yes
6220 do
6221   # Use a header file that comes with gcc, so configuring glibc
6222   # with a fresh cross-compiler works.
6223   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6224   # <limits.h> exists even on freestanding compilers.
6225   # On the NeXT, cc -E runs the code through the compiler's parser,
6226   # not just through cpp. "Syntax error" is here to catch this case.
6227   cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233 #ifdef __STDC__
6234 # include <limits.h>
6235 #else
6236 # include <assert.h>
6237 #endif
6238                      Syntax error
6239 _ACEOF
6240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6241   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6242   ac_status=$?
6243   grep -v '^ *+' conftest.er1 >conftest.err
6244   rm -f conftest.er1
6245   cat conftest.err >&5
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); } >/dev/null; then
6248   if test -s conftest.err; then
6249     ac_cpp_err=$ac_c_preproc_warn_flag
6250     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6251   else
6252     ac_cpp_err=
6253   fi
6254 else
6255   ac_cpp_err=yes
6256 fi
6257 if test -z "$ac_cpp_err"; then
6258   :
6259 else
6260   echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6262
6263   # Broken: fails on valid input.
6264 continue
6265 fi
6266 rm -f conftest.err conftest.$ac_ext
6267
6268   # OK, works on sane cases.  Now check whether non-existent headers
6269   # can be detected and how.
6270   cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h.  */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h.  */
6276 #include <ac_nonexistent.h>
6277 _ACEOF
6278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6280   ac_status=$?
6281   grep -v '^ *+' conftest.er1 >conftest.err
6282   rm -f conftest.er1
6283   cat conftest.err >&5
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); } >/dev/null; then
6286   if test -s conftest.err; then
6287     ac_cpp_err=$ac_c_preproc_warn_flag
6288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6289   else
6290     ac_cpp_err=
6291   fi
6292 else
6293   ac_cpp_err=yes
6294 fi
6295 if test -z "$ac_cpp_err"; then
6296   # Broken: success on invalid input.
6297 continue
6298 else
6299   echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302   # Passes both tests.
6303 ac_preproc_ok=:
6304 break
6305 fi
6306 rm -f conftest.err conftest.$ac_ext
6307
6308 done
6309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6310 rm -f conftest.err conftest.$ac_ext
6311 if $ac_preproc_ok; then
6312   :
6313 else
6314   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6315 See \`config.log' for more details." >&5
6316 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6317 See \`config.log' for more details." >&2;}
6318    { (exit 1); exit 1; }; }
6319 fi
6320
6321 ac_ext=c
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6326
6327
6328 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6329 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6330 if test "${ac_cv_header_stdc+set}" = set; then
6331   echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333   cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h.  */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h.  */
6339 #include <stdlib.h>
6340 #include <stdarg.h>
6341 #include <string.h>
6342 #include <float.h>
6343
6344 int
6345 main ()
6346 {
6347
6348   ;
6349   return 0;
6350 }
6351 _ACEOF
6352 rm -f conftest.$ac_objext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354   (eval $ac_compile) 2>conftest.er1
6355   ac_status=$?
6356   grep -v '^ *+' conftest.er1 >conftest.err
6357   rm -f conftest.er1
6358   cat conftest.err >&5
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } &&
6361          { ac_try='test -z "$ac_c_werror_flag"
6362                          || test ! -s conftest.err'
6363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364   (eval $ac_try) 2>&5
6365   ac_status=$?
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); }; } &&
6368          { ac_try='test -s conftest.$ac_objext'
6369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370   (eval $ac_try) 2>&5
6371   ac_status=$?
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); }; }; then
6374   ac_cv_header_stdc=yes
6375 else
6376   echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6378
6379 ac_cv_header_stdc=no
6380 fi
6381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6382
6383 if test $ac_cv_header_stdc = yes; then
6384   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6385   cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h.  */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h.  */
6391 #include <string.h>
6392
6393 _ACEOF
6394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6395   $EGREP "memchr" >/dev/null 2>&1; then
6396   :
6397 else
6398   ac_cv_header_stdc=no
6399 fi
6400 rm -f conftest*
6401
6402 fi
6403
6404 if test $ac_cv_header_stdc = yes; then
6405   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6406   cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h.  */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h.  */
6412 #include <stdlib.h>
6413
6414 _ACEOF
6415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6416   $EGREP "free" >/dev/null 2>&1; then
6417   :
6418 else
6419   ac_cv_header_stdc=no
6420 fi
6421 rm -f conftest*
6422
6423 fi
6424
6425 if test $ac_cv_header_stdc = yes; then
6426   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6427   if test "$cross_compiling" = yes; then
6428   :
6429 else
6430   cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h.  */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h.  */
6436 #include <ctype.h>
6437 #if ((' ' & 0x0FF) == 0x020)
6438 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6439 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6440 #else
6441 # define ISLOWER(c) \
6442                    (('a' <= (c) && (c) <= 'i') \
6443                      || ('j' <= (c) && (c) <= 'r') \
6444                      || ('s' <= (c) && (c) <= 'z'))
6445 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6446 #endif
6447
6448 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6449 int
6450 main ()
6451 {
6452   int i;
6453   for (i = 0; i < 256; i++)
6454     if (XOR (islower (i), ISLOWER (i))
6455         || toupper (i) != TOUPPER (i))
6456       exit(2);
6457   exit (0);
6458 }
6459 _ACEOF
6460 rm -f conftest$ac_exeext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6462   (eval $ac_link) 2>&5
6463   ac_status=$?
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467   (eval $ac_try) 2>&5
6468   ac_status=$?
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); }; }; then
6471   :
6472 else
6473   echo "$as_me: program exited with status $ac_status" >&5
6474 echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6476
6477 ( exit $ac_status )
6478 ac_cv_header_stdc=no
6479 fi
6480 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6481 fi
6482 fi
6483 fi
6484 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6485 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6486 if test $ac_cv_header_stdc = yes; then
6487
6488 cat >>confdefs.h <<\_ACEOF
6489 #define STDC_HEADERS 1
6490 _ACEOF
6491
6492 fi
6493
6494 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6505                   inttypes.h stdint.h unistd.h
6506 do
6507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6508 echo "$as_me:$LINENO: checking for $ac_header" >&5
6509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6511   echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513   cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h.  */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h.  */
6519 $ac_includes_default
6520
6521 #include <$ac_header>
6522 _ACEOF
6523 rm -f conftest.$ac_objext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6525   (eval $ac_compile) 2>conftest.er1
6526   ac_status=$?
6527   grep -v '^ *+' conftest.er1 >conftest.err
6528   rm -f conftest.er1
6529   cat conftest.err >&5
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); } &&
6532          { ac_try='test -z "$ac_c_werror_flag"
6533                          || test ! -s conftest.err'
6534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535   (eval $ac_try) 2>&5
6536   ac_status=$?
6537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538   (exit $ac_status); }; } &&
6539          { ac_try='test -s conftest.$ac_objext'
6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541   (eval $ac_try) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; }; then
6545   eval "$as_ac_Header=yes"
6546 else
6547   echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6549
6550 eval "$as_ac_Header=no"
6551 fi
6552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6553 fi
6554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6557   cat >>confdefs.h <<_ACEOF
6558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6559 _ACEOF
6560
6561 fi
6562
6563 done
6564
6565
6566
6567 for ac_header in dlfcn.h
6568 do
6569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6571   echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6574   echo $ECHO_N "(cached) $ECHO_C" >&6
6575 fi
6576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6578 else
6579   # Is the header compilable?
6580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6582 cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h.  */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h.  */
6588 $ac_includes_default
6589 #include <$ac_header>
6590 _ACEOF
6591 rm -f conftest.$ac_objext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6593   (eval $ac_compile) 2>conftest.er1
6594   ac_status=$?
6595   grep -v '^ *+' conftest.er1 >conftest.err
6596   rm -f conftest.er1
6597   cat conftest.err >&5
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); } &&
6600          { ac_try='test -z "$ac_c_werror_flag"
6601                          || test ! -s conftest.err'
6602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603   (eval $ac_try) 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; } &&
6607          { ac_try='test -s conftest.$ac_objext'
6608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609   (eval $ac_try) 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); }; }; then
6613   ac_header_compiler=yes
6614 else
6615   echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 ac_header_compiler=no
6619 fi
6620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6622 echo "${ECHO_T}$ac_header_compiler" >&6
6623
6624 # Is the header present?
6625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h.  */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h.  */
6633 #include <$ac_header>
6634 _ACEOF
6635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6636   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6637   ac_status=$?
6638   grep -v '^ *+' conftest.er1 >conftest.err
6639   rm -f conftest.er1
6640   cat conftest.err >&5
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); } >/dev/null; then
6643   if test -s conftest.err; then
6644     ac_cpp_err=$ac_c_preproc_warn_flag
6645     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6646   else
6647     ac_cpp_err=
6648   fi
6649 else
6650   ac_cpp_err=yes
6651 fi
6652 if test -z "$ac_cpp_err"; then
6653   ac_header_preproc=yes
6654 else
6655   echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6657
6658   ac_header_preproc=no
6659 fi
6660 rm -f conftest.err conftest.$ac_ext
6661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6662 echo "${ECHO_T}$ac_header_preproc" >&6
6663
6664 # So?  What about this header?
6665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6666   yes:no: )
6667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6671     ac_header_preproc=yes
6672     ;;
6673   no:yes:* )
6674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6686     (
6687       cat <<\_ASBOX
6688 ## ------------------------------------------ ##
6689 ## Report this to the AC_PACKAGE_NAME lists.  ##
6690 ## ------------------------------------------ ##
6691 _ASBOX
6692     ) |
6693       sed "s/^/$as_me: WARNING:     /" >&2
6694     ;;
6695 esac
6696 echo "$as_me:$LINENO: checking for $ac_header" >&5
6697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   eval "$as_ac_Header=\$ac_header_preproc"
6702 fi
6703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6705
6706 fi
6707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6708   cat >>confdefs.h <<_ACEOF
6709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6710 _ACEOF
6711
6712 fi
6713
6714 done
6715
6716
6717 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6718
6719 # find the maximum length of command line arguments
6720 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6721 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6722 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725     i=0
6726   teststring="ABCD"
6727
6728   case $build_os in
6729   msdosdjgpp*)
6730     # On DJGPP, this test can blow up pretty badly due to problems in libc
6731     # (any single argument exceeding 2000 bytes causes a buffer overrun
6732     # during glob expansion).  Even if it were fixed, the result of this
6733     # check would be larger than it should be.
6734     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6735     ;;
6736
6737   gnu*)
6738     # Under GNU Hurd, this test is not required because there is
6739     # no limit to the length of command line arguments.
6740     # Libtool will interpret -1 as no limit whatsoever
6741     lt_cv_sys_max_cmd_len=-1;
6742     ;;
6743
6744   cygwin* | mingw*)
6745     # On Win9x/ME, this test blows up -- it succeeds, but takes
6746     # about 5 minutes as the teststring grows exponentially.
6747     # Worse, since 9x/ME are not pre-emptively multitasking,
6748     # you end up with a "frozen" computer, even though with patience
6749     # the test eventually succeeds (with a max line length of 256k).
6750     # Instead, let's just punt: use the minimum linelength reported by
6751     # all of the supported platforms: 8192 (on NT/2K/XP).
6752     lt_cv_sys_max_cmd_len=8192;
6753     ;;
6754
6755   amigaos*)
6756     # On AmigaOS with pdksh, this test takes hours, literally.
6757     # So we just punt and use a minimum line length of 8192.
6758     lt_cv_sys_max_cmd_len=8192;
6759     ;;
6760
6761   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6762     # This has been around since 386BSD, at least.  Likely further.
6763     if test -x /sbin/sysctl; then
6764       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6765     elif test -x /usr/sbin/sysctl; then
6766       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6767     else
6768       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6769     fi
6770     # And add a safety zone
6771     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6772     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6773     ;;
6774   osf*)
6775     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6776     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6777     # nice to cause kernel panics so lets avoid the loop below.
6778     # First set a reasonable default.
6779     lt_cv_sys_max_cmd_len=16384
6780     #
6781     if test -x /sbin/sysconfig; then
6782       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6783         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6784       esac
6785     fi
6786     ;;
6787   *)
6788     # If test is not a shell built-in, we'll probably end up computing a
6789     # maximum length that is only half of the actual maximum length, but
6790     # we can't tell.
6791     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6792     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6793                = "XX$teststring") >/dev/null 2>&1 &&
6794             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6795             lt_cv_sys_max_cmd_len=$new_result &&
6796             test $i != 17 # 1/2 MB should be enough
6797     do
6798       i=`expr $i + 1`
6799       teststring=$teststring$teststring
6800     done
6801     teststring=
6802     # Add a significant safety factor because C++ compilers can tack on massive
6803     # amounts of additional arguments before passing them to the linker.
6804     # It appears as though 1/2 is a usable value.
6805     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6806     ;;
6807   esac
6808
6809 fi
6810
6811 if test -n $lt_cv_sys_max_cmd_len ; then
6812   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6813 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6814 else
6815   echo "$as_me:$LINENO: result: none" >&5
6816 echo "${ECHO_T}none" >&6
6817 fi
6818
6819
6820
6821
6822 # Check for command to grab the raw symbol name followed by C symbol from nm.
6823 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6824 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6825 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6826   echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828
6829 # These are sane defaults that work on at least a few old systems.
6830 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6831
6832 # Character class describing NM global symbol codes.
6833 symcode='[BCDEGRST]'
6834
6835 # Regexp to match symbols that can be accessed directly from C.
6836 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6837
6838 # Transform an extracted symbol line into a proper C declaration
6839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6840
6841 # Transform an extracted symbol line into symbol name and symbol address
6842 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'"
6843
6844 # Define system-specific variables.
6845 case $host_os in
6846 aix*)
6847   symcode='[BCDT]'
6848   ;;
6849 cygwin* | mingw* | pw32*)
6850   symcode='[ABCDGISTW]'
6851   ;;
6852 hpux*) # Its linker distinguishes data from code symbols
6853   if test "$host_cpu" = ia64; then
6854     symcode='[ABCDEGRST]'
6855   fi
6856   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6857   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'"
6858   ;;
6859 linux*)
6860   if test "$host_cpu" = ia64; then
6861     symcode='[ABCDGIRSTW]'
6862     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6863     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'"
6864   fi
6865   ;;
6866 irix* | nonstopux*)
6867   symcode='[BCDEGRST]'
6868   ;;
6869 osf*)
6870   symcode='[BCDEGQRST]'
6871   ;;
6872 solaris* | sysv5*)
6873   symcode='[BDRT]'
6874   ;;
6875 sysv4)
6876   symcode='[DFNSTU]'
6877   ;;
6878 esac
6879
6880 # Handle CRLF in mingw tool chain
6881 opt_cr=
6882 case $build_os in
6883 mingw*)
6884   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6885   ;;
6886 esac
6887
6888 # If we're using GNU nm, then use its standard symbol codes.
6889 case `$NM -V 2>&1` in
6890 *GNU* | *'with BFD'*)
6891   symcode='[ABCDGIRSTW]' ;;
6892 esac
6893
6894 # Try without a prefix undercore, then with it.
6895 for ac_symprfx in "" "_"; do
6896
6897   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6898   symxfrm="\\1 $ac_symprfx\\2 \\2"
6899
6900   # Write the raw and C identifiers.
6901   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6902
6903   # Check to see that the pipe works correctly.
6904   pipe_works=no
6905
6906   rm -f conftest*
6907   cat > conftest.$ac_ext <<EOF
6908 #ifdef __cplusplus
6909 extern "C" {
6910 #endif
6911 char nm_test_var;
6912 void nm_test_func(){}
6913 #ifdef __cplusplus
6914 }
6915 #endif
6916 int main(){nm_test_var='a';nm_test_func();return(0);}
6917 EOF
6918
6919   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6920   (eval $ac_compile) 2>&5
6921   ac_status=$?
6922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); }; then
6924     # Now try to grab the symbols.
6925     nlist=conftest.nm
6926     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6927   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6928   ac_status=$?
6929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); } && test -s "$nlist"; then
6931       # Try sorting and uniquifying the output.
6932       if sort "$nlist" | uniq > "$nlist"T; then
6933         mv -f "$nlist"T "$nlist"
6934       else
6935         rm -f "$nlist"T
6936       fi
6937
6938       # Make sure that we snagged all the symbols we need.
6939       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6940         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6941           cat <<EOF > conftest.$ac_ext
6942 #ifdef __cplusplus
6943 extern "C" {
6944 #endif
6945
6946 EOF
6947           # Now generate the symbol file.
6948           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6949
6950           cat <<EOF >> conftest.$ac_ext
6951 #if defined (__STDC__) && __STDC__
6952 # define lt_ptr_t void *
6953 #else
6954 # define lt_ptr_t char *
6955 # define const
6956 #endif
6957
6958 /* The mapping between symbol names and symbols. */
6959 const struct {
6960   const char *name;
6961   lt_ptr_t address;
6962 }
6963 lt_preloaded_symbols[] =
6964 {
6965 EOF
6966           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6967           cat <<\EOF >> conftest.$ac_ext
6968   {0, (lt_ptr_t) 0}
6969 };
6970
6971 #ifdef __cplusplus
6972 }
6973 #endif
6974 EOF
6975           # Now try linking the two files.
6976           mv conftest.$ac_objext conftstm.$ac_objext
6977           lt_save_LIBS="$LIBS"
6978           lt_save_CFLAGS="$CFLAGS"
6979           LIBS="conftstm.$ac_objext"
6980           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6981           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6982   (eval $ac_link) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6986             pipe_works=yes
6987           fi
6988           LIBS="$lt_save_LIBS"
6989           CFLAGS="$lt_save_CFLAGS"
6990         else
6991           echo "cannot find nm_test_func in $nlist" >&5
6992         fi
6993       else
6994         echo "cannot find nm_test_var in $nlist" >&5
6995       fi
6996     else
6997       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6998     fi
6999   else
7000     echo "$progname: failed program was:" >&5
7001     cat conftest.$ac_ext >&5
7002   fi
7003   rm -f conftest* conftst*
7004
7005   # Do not use the global_symbol_pipe unless it works.
7006   if test "$pipe_works" = yes; then
7007     break
7008   else
7009     lt_cv_sys_global_symbol_pipe=
7010   fi
7011 done
7012
7013 fi
7014
7015 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7016   lt_cv_sys_global_symbol_to_cdecl=
7017 fi
7018 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7019   echo "$as_me:$LINENO: result: failed" >&5
7020 echo "${ECHO_T}failed" >&6
7021 else
7022   echo "$as_me:$LINENO: result: ok" >&5
7023 echo "${ECHO_T}ok" >&6
7024 fi
7025
7026 echo "$as_me:$LINENO: checking for objdir" >&5
7027 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7028 if test "${lt_cv_objdir+set}" = set; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031   rm -f .libs 2>/dev/null
7032 mkdir .libs 2>/dev/null
7033 if test -d .libs; then
7034   lt_cv_objdir=.libs
7035 else
7036   # MS-DOS does not allow filenames that begin with a dot.
7037   lt_cv_objdir=_libs
7038 fi
7039 rmdir .libs 2>/dev/null
7040 fi
7041 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7042 echo "${ECHO_T}$lt_cv_objdir" >&6
7043 objdir=$lt_cv_objdir
7044
7045
7046
7047
7048
7049 case $host_os in
7050 aix3*)
7051   # AIX sometimes has problems with the GCC collect2 program.  For some
7052   # reason, if we set the COLLECT_NAMES environment variable, the problems
7053   # vanish in a puff of smoke.
7054   if test "X${COLLECT_NAMES+set}" != Xset; then
7055     COLLECT_NAMES=
7056     export COLLECT_NAMES
7057   fi
7058   ;;
7059 esac
7060
7061 # Sed substitution that helps us do robust quoting.  It backslashifies
7062 # metacharacters that are still active within double-quoted strings.
7063 Xsed='sed -e 1s/^X//'
7064 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7065
7066 # Same as above, but do not quote variable references.
7067 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7068
7069 # Sed substitution to delay expansion of an escaped shell variable in a
7070 # double_quote_subst'ed string.
7071 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7072
7073 # Sed substitution to avoid accidental globbing in evaled expressions
7074 no_glob_subst='s/\*/\\\*/g'
7075
7076 # Constants:
7077 rm="rm -f"
7078
7079 # Global variables:
7080 default_ofile=libtool
7081 can_build_shared=yes
7082
7083 # All known linkers require a `.a' archive for static linking (except MSVC,
7084 # which needs '.lib').
7085 libext=a
7086 ltmain="$ac_aux_dir/ltmain.sh"
7087 ofile="$default_ofile"
7088 with_gnu_ld="$lt_cv_prog_gnu_ld"
7089
7090 if test -n "$ac_tool_prefix"; then
7091   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7092 set dummy ${ac_tool_prefix}ar; ac_word=$2
7093 echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7095 if test "${ac_cv_prog_AR+set}" = set; then
7096   echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098   if test -n "$AR"; then
7099   ac_cv_prog_AR="$AR" # Let the user override the test.
7100 else
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7103 do
7104   IFS=$as_save_IFS
7105   test -z "$as_dir" && as_dir=.
7106   for ac_exec_ext in '' $ac_executable_extensions; do
7107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108     ac_cv_prog_AR="${ac_tool_prefix}ar"
7109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110     break 2
7111   fi
7112 done
7113 done
7114
7115 fi
7116 fi
7117 AR=$ac_cv_prog_AR
7118 if test -n "$AR"; then
7119   echo "$as_me:$LINENO: result: $AR" >&5
7120 echo "${ECHO_T}$AR" >&6
7121 else
7122   echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6
7124 fi
7125
7126 fi
7127 if test -z "$ac_cv_prog_AR"; then
7128   ac_ct_AR=$AR
7129   # Extract the first word of "ar", so it can be a program name with args.
7130 set dummy ar; ac_word=$2
7131 echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136   if test -n "$ac_ct_AR"; then
7137   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142   IFS=$as_save_IFS
7143   test -z "$as_dir" && as_dir=.
7144   for ac_exec_ext in '' $ac_executable_extensions; do
7145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146     ac_cv_prog_ac_ct_AR="ar"
7147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148     break 2
7149   fi
7150 done
7151 done
7152
7153   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7154 fi
7155 fi
7156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7157 if test -n "$ac_ct_AR"; then
7158   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7159 echo "${ECHO_T}$ac_ct_AR" >&6
7160 else
7161   echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6
7163 fi
7164
7165   AR=$ac_ct_AR
7166 else
7167   AR="$ac_cv_prog_AR"
7168 fi
7169
7170 if test -n "$ac_tool_prefix"; then
7171   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7173 echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7175 if test "${ac_cv_prog_RANLIB+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   if test -n "$RANLIB"; then
7179   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184   IFS=$as_save_IFS
7185   test -z "$as_dir" && as_dir=.
7186   for ac_exec_ext in '' $ac_executable_extensions; do
7187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190     break 2
7191   fi
7192 done
7193 done
7194
7195 fi
7196 fi
7197 RANLIB=$ac_cv_prog_RANLIB
7198 if test -n "$RANLIB"; then
7199   echo "$as_me:$LINENO: result: $RANLIB" >&5
7200 echo "${ECHO_T}$RANLIB" >&6
7201 else
7202   echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7204 fi
7205
7206 fi
7207 if test -z "$ac_cv_prog_RANLIB"; then
7208   ac_ct_RANLIB=$RANLIB
7209   # Extract the first word of "ranlib", so it can be a program name with args.
7210 set dummy ranlib; ac_word=$2
7211 echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7214   echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216   if test -n "$ac_ct_RANLIB"; then
7217   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7218 else
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222   IFS=$as_save_IFS
7223   test -z "$as_dir" && as_dir=.
7224   for ac_exec_ext in '' $ac_executable_extensions; do
7225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226     ac_cv_prog_ac_ct_RANLIB="ranlib"
7227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228     break 2
7229   fi
7230 done
7231 done
7232
7233   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7234 fi
7235 fi
7236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7237 if test -n "$ac_ct_RANLIB"; then
7238   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7239 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7240 else
7241   echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6
7243 fi
7244
7245   RANLIB=$ac_ct_RANLIB
7246 else
7247   RANLIB="$ac_cv_prog_RANLIB"
7248 fi
7249
7250 if test -n "$ac_tool_prefix"; then
7251   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7252 set dummy ${ac_tool_prefix}strip; ac_word=$2
7253 echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7255 if test "${ac_cv_prog_STRIP+set}" = set; then
7256   echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258   if test -n "$STRIP"; then
7259   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7263 do
7264   IFS=$as_save_IFS
7265   test -z "$as_dir" && as_dir=.
7266   for ac_exec_ext in '' $ac_executable_extensions; do
7267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270     break 2
7271   fi
7272 done
7273 done
7274
7275 fi
7276 fi
7277 STRIP=$ac_cv_prog_STRIP
7278 if test -n "$STRIP"; then
7279   echo "$as_me:$LINENO: result: $STRIP" >&5
7280 echo "${ECHO_T}$STRIP" >&6
7281 else
7282   echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6
7284 fi
7285
7286 fi
7287 if test -z "$ac_cv_prog_STRIP"; then
7288   ac_ct_STRIP=$STRIP
7289   # Extract the first word of "strip", so it can be a program name with args.
7290 set dummy strip; ac_word=$2
7291 echo "$as_me:$LINENO: checking for $ac_word" >&5
7292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7293 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7294   echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296   if test -n "$ac_ct_STRIP"; then
7297   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304   for ac_exec_ext in '' $ac_executable_extensions; do
7305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306     ac_cv_prog_ac_ct_STRIP="strip"
7307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311 done
7312
7313   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7314 fi
7315 fi
7316 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7317 if test -n "$ac_ct_STRIP"; then
7318   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7319 echo "${ECHO_T}$ac_ct_STRIP" >&6
7320 else
7321   echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6
7323 fi
7324
7325   STRIP=$ac_ct_STRIP
7326 else
7327   STRIP="$ac_cv_prog_STRIP"
7328 fi
7329
7330
7331 old_CC="$CC"
7332 old_CFLAGS="$CFLAGS"
7333
7334 # Set sane defaults for various variables
7335 test -z "$AR" && AR=ar
7336 test -z "$AR_FLAGS" && AR_FLAGS=cru
7337 test -z "$AS" && AS=as
7338 test -z "$CC" && CC=cc
7339 test -z "$LTCC" && LTCC=$CC
7340 test -z "$DLLTOOL" && DLLTOOL=dlltool
7341 test -z "$LD" && LD=ld
7342 test -z "$LN_S" && LN_S="ln -s"
7343 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7344 test -z "$NM" && NM=nm
7345 test -z "$SED" && SED=sed
7346 test -z "$OBJDUMP" && OBJDUMP=objdump
7347 test -z "$RANLIB" && RANLIB=:
7348 test -z "$STRIP" && STRIP=:
7349 test -z "$ac_objext" && ac_objext=o
7350
7351 # Determine commands to create old-style static archives.
7352 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7353 old_postinstall_cmds='chmod 644 $oldlib'
7354 old_postuninstall_cmds=
7355
7356 if test -n "$RANLIB"; then
7357   case $host_os in
7358   openbsd*)
7359     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7360     ;;
7361   *)
7362     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7363     ;;
7364   esac
7365   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7366 fi
7367
7368 for cc_temp in $compiler""; do
7369   case $cc_temp in
7370     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7371     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7372     \-*) ;;
7373     *) break;;
7374   esac
7375 done
7376 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7377
7378
7379 # Only perform the check for file, if the check method requires it
7380 case $deplibs_check_method in
7381 file_magic*)
7382   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7383     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7384 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7385 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   case $MAGIC_CMD in
7389 [\\/*] |  ?:[\\/]*)
7390   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7391   ;;
7392 *)
7393   lt_save_MAGIC_CMD="$MAGIC_CMD"
7394   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7395   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7396   for ac_dir in $ac_dummy; do
7397     IFS="$lt_save_ifs"
7398     test -z "$ac_dir" && ac_dir=.
7399     if test -f $ac_dir/${ac_tool_prefix}file; then
7400       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7401       if test -n "$file_magic_test_file"; then
7402         case $deplibs_check_method in
7403         "file_magic "*)
7404           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7405           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7406           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7407             $EGREP "$file_magic_regex" > /dev/null; then
7408             :
7409           else
7410             cat <<EOF 1>&2
7411
7412 *** Warning: the command libtool uses to detect shared libraries,
7413 *** $file_magic_cmd, produces output that libtool cannot recognize.
7414 *** The result is that libtool may fail to recognize shared libraries
7415 *** as such.  This will affect the creation of libtool libraries that
7416 *** depend on shared libraries, but programs linked with such libtool
7417 *** libraries will work regardless of this problem.  Nevertheless, you
7418 *** may want to report the problem to your system manager and/or to
7419 *** bug-libtool@gnu.org
7420
7421 EOF
7422           fi ;;
7423         esac
7424       fi
7425       break
7426     fi
7427   done
7428   IFS="$lt_save_ifs"
7429   MAGIC_CMD="$lt_save_MAGIC_CMD"
7430   ;;
7431 esac
7432 fi
7433
7434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7435 if test -n "$MAGIC_CMD"; then
7436   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7437 echo "${ECHO_T}$MAGIC_CMD" >&6
7438 else
7439   echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7441 fi
7442
7443 if test -z "$lt_cv_path_MAGIC_CMD"; then
7444   if test -n "$ac_tool_prefix"; then
7445     echo "$as_me:$LINENO: checking for file" >&5
7446 echo $ECHO_N "checking for file... $ECHO_C" >&6
7447 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450   case $MAGIC_CMD in
7451 [\\/*] |  ?:[\\/]*)
7452   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7453   ;;
7454 *)
7455   lt_save_MAGIC_CMD="$MAGIC_CMD"
7456   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7457   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7458   for ac_dir in $ac_dummy; do
7459     IFS="$lt_save_ifs"
7460     test -z "$ac_dir" && ac_dir=.
7461     if test -f $ac_dir/file; then
7462       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7463       if test -n "$file_magic_test_file"; then
7464         case $deplibs_check_method in
7465         "file_magic "*)
7466           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7467           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7468           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7469             $EGREP "$file_magic_regex" > /dev/null; then
7470             :
7471           else
7472             cat <<EOF 1>&2
7473
7474 *** Warning: the command libtool uses to detect shared libraries,
7475 *** $file_magic_cmd, produces output that libtool cannot recognize.
7476 *** The result is that libtool may fail to recognize shared libraries
7477 *** as such.  This will affect the creation of libtool libraries that
7478 *** depend on shared libraries, but programs linked with such libtool
7479 *** libraries will work regardless of this problem.  Nevertheless, you
7480 *** may want to report the problem to your system manager and/or to
7481 *** bug-libtool@gnu.org
7482
7483 EOF
7484           fi ;;
7485         esac
7486       fi
7487       break
7488     fi
7489   done
7490   IFS="$lt_save_ifs"
7491   MAGIC_CMD="$lt_save_MAGIC_CMD"
7492   ;;
7493 esac
7494 fi
7495
7496 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7497 if test -n "$MAGIC_CMD"; then
7498   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7499 echo "${ECHO_T}$MAGIC_CMD" >&6
7500 else
7501   echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7503 fi
7504
7505   else
7506     MAGIC_CMD=:
7507   fi
7508 fi
7509
7510   fi
7511   ;;
7512 esac
7513
7514 enable_dlopen=yes
7515 enable_win32_dll=yes
7516
7517 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7518 if test "${enable_libtool_lock+set}" = set; then
7519   enableval="$enable_libtool_lock"
7520
7521 fi;
7522 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7523
7524
7525 # Check whether --with-pic or --without-pic was given.
7526 if test "${with_pic+set}" = set; then
7527   withval="$with_pic"
7528   pic_mode="$withval"
7529 else
7530   pic_mode=default
7531 fi;
7532 test -z "$pic_mode" && pic_mode=default
7533
7534 # Use C for the default configuration in the libtool script
7535 tagname=
7536 lt_save_CC="$CC"
7537 ac_ext=c
7538 ac_cpp='$CPP $CPPFLAGS'
7539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7542
7543
7544 # Source file extension for C test sources.
7545 ac_ext=c
7546
7547 # Object file extension for compiled C test sources.
7548 objext=o
7549 objext=$objext
7550
7551 # Code to be used in simple compile tests
7552 lt_simple_compile_test_code="int some_variable = 0;\n"
7553
7554 # Code to be used in simple link tests
7555 lt_simple_link_test_code='int main(){return(0);}\n'
7556
7557
7558 # If no C compiler was specified, use CC.
7559 LTCC=${LTCC-"$CC"}
7560
7561 # Allow CC to be a program name with arguments.
7562 compiler=$CC
7563
7564
7565 # save warnings/boilerplate of simple test code
7566 ac_outfile=conftest.$ac_objext
7567 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7568 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7569 _lt_compiler_boilerplate=`cat conftest.err`
7570 $rm conftest*
7571
7572 ac_outfile=conftest.$ac_objext
7573 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7574 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7575 _lt_linker_boilerplate=`cat conftest.err`
7576 $rm conftest*
7577
7578
7579 #
7580 # Check for any special shared library compilation flags.
7581 #
7582 lt_prog_cc_shlib=
7583 if test "$GCC" = no; then
7584   case $host_os in
7585   sco3.2v5*)
7586     lt_prog_cc_shlib='-belf'
7587     ;;
7588   esac
7589 fi
7590 if test -n "$lt_prog_cc_shlib"; then
7591   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7592 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7593   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7594   else
7595     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7596 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7597     lt_cv_prog_cc_can_build_shared=no
7598   fi
7599 fi
7600
7601
7602 #
7603 # Check to make sure the static flag actually works.
7604 #
7605 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7606 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7607 if test "${lt_prog_compiler_static_works+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   lt_prog_compiler_static_works=no
7611    save_LDFLAGS="$LDFLAGS"
7612    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7613    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7614    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7615      # The linker can only warn and ignore the option if not recognized
7616      # So say no if there are warnings
7617      if test -s conftest.err; then
7618        # Append any errors to the config.log.
7619        cat conftest.err 1>&5
7620        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7621        $SED '/^$/d' conftest.err >conftest.er2
7622        if diff conftest.exp conftest.er2 >/dev/null; then
7623          lt_prog_compiler_static_works=yes
7624        fi
7625      else
7626        lt_prog_compiler_static_works=yes
7627      fi
7628    fi
7629    $rm conftest*
7630    LDFLAGS="$save_LDFLAGS"
7631
7632 fi
7633 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7634 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7635
7636 if test x"$lt_prog_compiler_static_works" = xyes; then
7637     :
7638 else
7639     lt_prog_compiler_static=
7640 fi
7641
7642
7643
7644
7645 lt_prog_compiler_no_builtin_flag=
7646
7647 if test "$GCC" = yes; then
7648   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7649
7650
7651 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7652 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7653 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7654   echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656   lt_cv_prog_compiler_rtti_exceptions=no
7657   ac_outfile=conftest.$ac_objext
7658    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7659    lt_compiler_flag="-fno-rtti -fno-exceptions"
7660    # Insert the option either (1) after the last *FLAGS variable, or
7661    # (2) before a word containing "conftest.", or (3) at the end.
7662    # Note that $ac_compile itself does not contain backslashes and begins
7663    # with a dollar sign (not a hyphen), so the echo should work correctly.
7664    # The option is referenced via a variable to avoid confusing sed.
7665    lt_compile=`echo "$ac_compile" | $SED \
7666    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7667    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7668    -e 's:$: $lt_compiler_flag:'`
7669    (eval echo "\"\$as_me:7669: $lt_compile\"" >&5)
7670    (eval "$lt_compile" 2>conftest.err)
7671    ac_status=$?
7672    cat conftest.err >&5
7673    echo "$as_me:7673: \$? = $ac_status" >&5
7674    if (exit $ac_status) && test -s "$ac_outfile"; then
7675      # The compiler can only warn and ignore the option if not recognized
7676      # So say no if there are warnings other than the usual output.
7677      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7678      $SED '/^$/d' conftest.err >conftest.er2
7679      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7680        lt_cv_prog_compiler_rtti_exceptions=yes
7681      fi
7682    fi
7683    $rm conftest*
7684
7685 fi
7686 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7687 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7688
7689 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7690     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7691 else
7692     :
7693 fi
7694
7695 fi
7696
7697 lt_prog_compiler_wl=
7698 lt_prog_compiler_pic=
7699 lt_prog_compiler_static=
7700
7701 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7702 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7703
7704   if test "$GCC" = yes; then
7705     lt_prog_compiler_wl='-Wl,'
7706     lt_prog_compiler_static='-static'
7707
7708     case $host_os in
7709       aix*)
7710       # All AIX code is PIC.
7711       if test "$host_cpu" = ia64; then
7712         # AIX 5 now supports IA64 processor
7713         lt_prog_compiler_static='-Bstatic'
7714       fi
7715       ;;
7716
7717     amigaos*)
7718       # FIXME: we need at least 68020 code to build shared libraries, but
7719       # adding the `-m68020' flag to GCC prevents building anything better,
7720       # like `-m68040'.
7721       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7722       ;;
7723
7724     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7725       # PIC is the default for these OSes.
7726       ;;
7727
7728     mingw* | pw32* | os2*)
7729       # This hack is so that the source file can tell whether it is being
7730       # built for inclusion in a dll (and should export symbols for example).
7731       lt_prog_compiler_pic='-DDLL_EXPORT'
7732       ;;
7733
7734     darwin* | rhapsody*)
7735       # PIC is the default on this platform
7736       # Common symbols not allowed in MH_DYLIB files
7737       lt_prog_compiler_pic='-fno-common'
7738       ;;
7739
7740     msdosdjgpp*)
7741       # Just because we use GCC doesn't mean we suddenly get shared libraries
7742       # on systems that don't support them.
7743       lt_prog_compiler_can_build_shared=no
7744       enable_shared=no
7745       ;;
7746
7747     sysv4*MP*)
7748       if test -d /usr/nec; then
7749         lt_prog_compiler_pic=-Kconform_pic
7750       fi
7751       ;;
7752
7753     hpux*)
7754       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7755       # not for PA HP-UX.
7756       case $host_cpu in
7757       hppa*64*|ia64*)
7758         # +Z the default
7759         ;;
7760       *)
7761         lt_prog_compiler_pic='-fPIC'
7762         ;;
7763       esac
7764       ;;
7765
7766     *)
7767       lt_prog_compiler_pic='-fPIC'
7768       ;;
7769     esac
7770   else
7771     # PORTME Check for flag to pass linker flags through the system compiler.
7772     case $host_os in
7773     aix*)
7774       lt_prog_compiler_wl='-Wl,'
7775       if test "$host_cpu" = ia64; then
7776         # AIX 5 now supports IA64 processor
7777         lt_prog_compiler_static='-Bstatic'
7778       else
7779         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7780       fi
7781       ;;
7782       darwin*)
7783         # PIC is the default on this platform
7784         # Common symbols not allowed in MH_DYLIB files
7785        case $cc_basename in
7786          xlc*)
7787          lt_prog_compiler_pic='-qnocommon'
7788          lt_prog_compiler_wl='-Wl,'
7789          ;;
7790        esac
7791        ;;
7792
7793     mingw* | pw32* | os2*)
7794       # This hack is so that the source file can tell whether it is being
7795       # built for inclusion in a dll (and should export symbols for example).
7796       lt_prog_compiler_pic='-DDLL_EXPORT'
7797       ;;
7798
7799     hpux9* | hpux10* | hpux11*)
7800       lt_prog_compiler_wl='-Wl,'
7801       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7802       # not for PA HP-UX.
7803       case $host_cpu in
7804       hppa*64*|ia64*)
7805         # +Z the default
7806         ;;
7807       *)
7808         lt_prog_compiler_pic='+Z'
7809         ;;
7810       esac
7811       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7812       lt_prog_compiler_static='${wl}-a ${wl}archive'
7813       ;;
7814
7815     irix5* | irix6* | nonstopux*)
7816       lt_prog_compiler_wl='-Wl,'
7817       # PIC (with -KPIC) is the default.
7818       lt_prog_compiler_static='-non_shared'
7819       ;;
7820
7821     newsos6)
7822       lt_prog_compiler_pic='-KPIC'
7823       lt_prog_compiler_static='-Bstatic'
7824       ;;
7825
7826     linux*)
7827       case $cc_basename in
7828       icc* | ecc*)
7829         lt_prog_compiler_wl='-Wl,'
7830         lt_prog_compiler_pic='-KPIC'
7831         lt_prog_compiler_static='-static'
7832         ;;
7833       pgcc* | pgf77* | pgf90* | pgf95*)
7834         # Portland Group compilers (*not* the Pentium gcc compiler,
7835         # which looks to be a dead project)
7836         lt_prog_compiler_wl='-Wl,'
7837         lt_prog_compiler_pic='-fpic'
7838         lt_prog_compiler_static='-Bstatic'
7839         ;;
7840       ccc*)
7841         lt_prog_compiler_wl='-Wl,'
7842         # All Alpha code is PIC.
7843         lt_prog_compiler_static='-non_shared'
7844         ;;
7845       esac
7846       ;;
7847
7848     osf3* | osf4* | osf5*)
7849       lt_prog_compiler_wl='-Wl,'
7850       # All OSF/1 code is PIC.
7851       lt_prog_compiler_static='-non_shared'
7852       ;;
7853
7854     sco3.2v5*)
7855       lt_prog_compiler_pic='-Kpic'
7856       lt_prog_compiler_static='-dn'
7857       ;;
7858
7859     solaris*)
7860       lt_prog_compiler_pic='-KPIC'
7861       lt_prog_compiler_static='-Bstatic'
7862       case $cc_basename in
7863       f77* | f90* | f95*)
7864         lt_prog_compiler_wl='-Qoption ld ';;
7865       *)
7866         lt_prog_compiler_wl='-Wl,';;
7867       esac
7868       ;;
7869
7870     sunos4*)
7871       lt_prog_compiler_wl='-Qoption ld '
7872       lt_prog_compiler_pic='-PIC'
7873       lt_prog_compiler_static='-Bstatic'
7874       ;;
7875
7876     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7877       lt_prog_compiler_wl='-Wl,'
7878       lt_prog_compiler_pic='-KPIC'
7879       lt_prog_compiler_static='-Bstatic'
7880       ;;
7881
7882     sysv4*MP*)
7883       if test -d /usr/nec ;then
7884         lt_prog_compiler_pic='-Kconform_pic'
7885         lt_prog_compiler_static='-Bstatic'
7886       fi
7887       ;;
7888
7889     unicos*)
7890       lt_prog_compiler_wl='-Wl,'
7891       lt_prog_compiler_can_build_shared=no
7892       ;;
7893
7894     uts4*)
7895       lt_prog_compiler_pic='-pic'
7896       lt_prog_compiler_static='-Bstatic'
7897       ;;
7898
7899     *)
7900       lt_prog_compiler_can_build_shared=no
7901       ;;
7902     esac
7903   fi
7904
7905 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7906 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7907
7908 #
7909 # Check to make sure the PIC flag actually works.
7910 #
7911 if test -n "$lt_prog_compiler_pic"; then
7912
7913 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7914 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7915 if test "${lt_prog_compiler_pic_works+set}" = set; then
7916   echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918   lt_prog_compiler_pic_works=no
7919   ac_outfile=conftest.$ac_objext
7920    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7921    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7922    # Insert the option either (1) after the last *FLAGS variable, or
7923    # (2) before a word containing "conftest.", or (3) at the end.
7924    # Note that $ac_compile itself does not contain backslashes and begins
7925    # with a dollar sign (not a hyphen), so the echo should work correctly.
7926    # The option is referenced via a variable to avoid confusing sed.
7927    lt_compile=`echo "$ac_compile" | $SED \
7928    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7929    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7930    -e 's:$: $lt_compiler_flag:'`
7931    (eval echo "\"\$as_me:7931: $lt_compile\"" >&5)
7932    (eval "$lt_compile" 2>conftest.err)
7933    ac_status=$?
7934    cat conftest.err >&5
7935    echo "$as_me:7935: \$? = $ac_status" >&5
7936    if (exit $ac_status) && test -s "$ac_outfile"; then
7937      # The compiler can only warn and ignore the option if not recognized
7938      # So say no if there are warnings other than the usual output.
7939      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7940      $SED '/^$/d' conftest.err >conftest.er2
7941      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7942        lt_prog_compiler_pic_works=yes
7943      fi
7944    fi
7945    $rm conftest*
7946
7947 fi
7948 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7949 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7950
7951 if test x"$lt_prog_compiler_pic_works" = xyes; then
7952     case $lt_prog_compiler_pic in
7953      "" | " "*) ;;
7954      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7955      esac
7956 else
7957     lt_prog_compiler_pic=
7958      lt_prog_compiler_can_build_shared=no
7959 fi
7960
7961 fi
7962 case $host_os in
7963   # For platforms which do not support PIC, -DPIC is meaningless:
7964   *djgpp*)
7965     lt_prog_compiler_pic=
7966     ;;
7967   *)
7968     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7969     ;;
7970 esac
7971
7972 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7973 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7974 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7975   echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977   lt_cv_prog_compiler_c_o=no
7978    $rm -r conftest 2>/dev/null
7979    mkdir conftest
7980    cd conftest
7981    mkdir out
7982    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7983
7984    lt_compiler_flag="-o out/conftest2.$ac_objext"
7985    # Insert the option either (1) after the last *FLAGS variable, or
7986    # (2) before a word containing "conftest.", or (3) at the end.
7987    # Note that $ac_compile itself does not contain backslashes and begins
7988    # with a dollar sign (not a hyphen), so the echo should work correctly.
7989    lt_compile=`echo "$ac_compile" | $SED \
7990    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7991    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7992    -e 's:$: $lt_compiler_flag:'`
7993    (eval echo "\"\$as_me:7993: $lt_compile\"" >&5)
7994    (eval "$lt_compile" 2>out/conftest.err)
7995    ac_status=$?
7996    cat out/conftest.err >&5
7997    echo "$as_me:7997: \$? = $ac_status" >&5
7998    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7999    then
8000      # The compiler can only warn and ignore the option if not recognized
8001      # So say no if there are warnings
8002      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8003      $SED '/^$/d' out/conftest.err >out/conftest.er2
8004      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8005        lt_cv_prog_compiler_c_o=yes
8006      fi
8007    fi
8008    chmod u+w . 2>&5
8009    $rm conftest*
8010    # SGI C++ compiler will create directory out/ii_files/ for
8011    # template instantiation
8012    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8013    $rm out/* && rmdir out
8014    cd ..
8015    rmdir conftest
8016    $rm conftest*
8017
8018 fi
8019 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8020 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8021
8022
8023 hard_links="nottested"
8024 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8025   # do not overwrite the value of need_locks provided by the user
8026   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8027 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8028   hard_links=yes
8029   $rm conftest*
8030   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8031   touch conftest.a
8032   ln conftest.a conftest.b 2>&5 || hard_links=no
8033   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8034   echo "$as_me:$LINENO: result: $hard_links" >&5
8035 echo "${ECHO_T}$hard_links" >&6
8036   if test "$hard_links" = no; then
8037     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8038 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8039     need_locks=warn
8040   fi
8041 else
8042   need_locks=no
8043 fi
8044
8045 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8046 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8047
8048   runpath_var=
8049   allow_undefined_flag=
8050   enable_shared_with_static_runtimes=no
8051   archive_cmds=
8052   archive_expsym_cmds=
8053   old_archive_From_new_cmds=
8054   old_archive_from_expsyms_cmds=
8055   export_dynamic_flag_spec=
8056   whole_archive_flag_spec=
8057   thread_safe_flag_spec=
8058   hardcode_libdir_flag_spec=
8059   hardcode_libdir_flag_spec_ld=
8060   hardcode_libdir_separator=
8061   hardcode_direct=no
8062   hardcode_minus_L=no
8063   hardcode_shlibpath_var=unsupported
8064   link_all_deplibs=unknown
8065   hardcode_automatic=no
8066   module_cmds=
8067   module_expsym_cmds=
8068   always_export_symbols=no
8069   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8070   # include_expsyms should be a list of space-separated symbols to be *always*
8071   # included in the symbol list
8072   include_expsyms=
8073   # exclude_expsyms can be an extended regexp of symbols to exclude
8074   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8075   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8076   # as well as any symbol that contains `d'.
8077   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8078   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8079   # platforms (ab)use it in PIC code, but their linkers get confused if
8080   # the symbol is explicitly referenced.  Since portable code cannot
8081   # rely on this symbol name, it's probably fine to never include it in
8082   # preloaded symbol tables.
8083   extract_expsyms_cmds=
8084   # Just being paranoid about ensuring that cc_basename is set.
8085   for cc_temp in $compiler""; do
8086   case $cc_temp in
8087     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8088     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8089     \-*) ;;
8090     *) break;;
8091   esac
8092 done
8093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8094
8095   case $host_os in
8096   cygwin* | mingw* | pw32*)
8097     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8098     # When not using gcc, we currently assume that we are using
8099     # Microsoft Visual C++.
8100     if test "$GCC" != yes; then
8101       with_gnu_ld=no
8102     fi
8103     ;;
8104   openbsd*)
8105     with_gnu_ld=no
8106     ;;
8107   esac
8108
8109   ld_shlibs=yes
8110   if test "$with_gnu_ld" = yes; then
8111     # If archive_cmds runs LD, not CC, wlarc should be empty
8112     wlarc='${wl}'
8113
8114     # Set some defaults for GNU ld with shared library support. These
8115     # are reset later if shared libraries are not supported. Putting them
8116     # here allows them to be overridden if necessary.
8117     runpath_var=LD_RUN_PATH
8118     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8119     export_dynamic_flag_spec='${wl}--export-dynamic'
8120     # ancient GNU ld didn't support --whole-archive et. al.
8121     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8122         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8123       else
8124         whole_archive_flag_spec=
8125     fi
8126     supports_anon_versioning=no
8127     case `$LD -v 2>/dev/null` in
8128       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8129       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8130       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8131       *\ 2.11.*) ;; # other 2.11 versions
8132       *) supports_anon_versioning=yes ;;
8133     esac
8134
8135     # See if GNU ld supports shared libraries.
8136     case $host_os in
8137     aix3* | aix4* | aix5*)
8138       # On AIX/PPC, the GNU linker is very broken
8139       if test "$host_cpu" != ia64; then
8140         ld_shlibs=no
8141         cat <<EOF 1>&2
8142
8143 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8144 *** to be unable to reliably create shared libraries on AIX.
8145 *** Therefore, libtool is disabling shared libraries support.  If you
8146 *** really care for shared libraries, you may want to modify your PATH
8147 *** so that a non-GNU linker is found, and then restart.
8148
8149 EOF
8150       fi
8151       ;;
8152
8153     amigaos*)
8154       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)'
8155       hardcode_libdir_flag_spec='-L$libdir'
8156       hardcode_minus_L=yes
8157
8158       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8159       # that the semantics of dynamic libraries on AmigaOS, at least up
8160       # to version 4, is to share data among multiple programs linked
8161       # with the same dynamic library.  Since this doesn't match the
8162       # behavior of shared libraries on other platforms, we can't use
8163       # them.
8164       ld_shlibs=no
8165       ;;
8166
8167     beos*)
8168       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8169         allow_undefined_flag=unsupported
8170         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8171         # support --undefined.  This deserves some investigation.  FIXME
8172         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8173       else
8174         ld_shlibs=no
8175       fi
8176       ;;
8177
8178     cygwin* | mingw* | pw32*)
8179       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8180       # as there is no search path for DLLs.
8181       hardcode_libdir_flag_spec='-L$libdir'
8182       allow_undefined_flag=unsupported
8183       always_export_symbols=no
8184       enable_shared_with_static_runtimes=yes
8185       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8186
8187       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8188         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8189         # If the export-symbols file already is a .def file (1st line
8190         # is EXPORTS), use it as is; otherwise, prepend...
8191         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8192           cp $export_symbols $output_objdir/$soname.def;
8193         else
8194           echo EXPORTS > $output_objdir/$soname.def;
8195           cat $export_symbols >> $output_objdir/$soname.def;
8196         fi~
8197         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8198       else
8199         ld_shlibs=no
8200       fi
8201       ;;
8202
8203     linux*)
8204       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8205         tmp_addflag=
8206         case $cc_basename,$host_cpu in
8207         pgcc*)                          # Portland Group C compiler
8208           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'
8209           tmp_addflag=' $pic_flag'
8210           ;;
8211         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8212           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'
8213           tmp_addflag=' $pic_flag -Mnomain' ;;
8214         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8215           tmp_addflag=' -i_dynamic' ;;
8216         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8217           tmp_addflag=' -i_dynamic -nofor_main' ;;
8218         ifc* | ifort*)                  # Intel Fortran compiler
8219           tmp_addflag=' -nofor_main' ;;
8220         esac
8221         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8222
8223         if test $supports_anon_versioning = yes; then
8224           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8225   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8226   $echo "local: *; };" >> $output_objdir/$libname.ver~
8227           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8228         fi
8229       else
8230         ld_shlibs=no
8231       fi
8232       ;;
8233
8234     netbsd*)
8235       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8236         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8237         wlarc=
8238       else
8239         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8240         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8241       fi
8242       ;;
8243
8244     solaris* | sysv5*)
8245       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8246         ld_shlibs=no
8247         cat <<EOF 1>&2
8248
8249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8250 *** create shared libraries on Solaris systems.  Therefore, libtool
8251 *** is disabling shared libraries support.  We urge you to upgrade GNU
8252 *** binutils to release 2.9.1 or newer.  Another option is to modify
8253 *** your PATH or compiler configuration so that the native linker is
8254 *** used, and then restart.
8255
8256 EOF
8257       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8258         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8259         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8260       else
8261         ld_shlibs=no
8262       fi
8263       ;;
8264
8265     sunos4*)
8266       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8267       wlarc=
8268       hardcode_direct=yes
8269       hardcode_shlibpath_var=no
8270       ;;
8271
8272     *)
8273       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8274         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8276       else
8277         ld_shlibs=no
8278       fi
8279       ;;
8280     esac
8281
8282     if test "$ld_shlibs" = no; then
8283       runpath_var=
8284       hardcode_libdir_flag_spec=
8285       export_dynamic_flag_spec=
8286       whole_archive_flag_spec=
8287     fi
8288   else
8289     # PORTME fill in a description of your system's linker (not GNU ld)
8290     case $host_os in
8291     aix3*)
8292       allow_undefined_flag=unsupported
8293       always_export_symbols=yes
8294       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'
8295       # Note: this linker hardcodes the directories in LIBPATH if there
8296       # are no directories specified by -L.
8297       hardcode_minus_L=yes
8298       if test "$GCC" = yes && test -z "$link_static_flag"; then
8299         # Neither direct hardcoding nor static linking is supported with a
8300         # broken collect2.
8301         hardcode_direct=unsupported
8302       fi
8303       ;;
8304
8305     aix4* | aix5*)
8306       if test "$host_cpu" = ia64; then
8307         # On IA64, the linker does run time linking by default, so we don't
8308         # have to do anything special.
8309         aix_use_runtimelinking=no
8310         exp_sym_flag='-Bexport'
8311         no_entry_flag=""
8312       else
8313         # If we're using GNU nm, then we don't want the "-C" option.
8314         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8315         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8316           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'
8317         else
8318           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'
8319         fi
8320         aix_use_runtimelinking=no
8321
8322         # Test if we are trying to use run time linking or normal
8323         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8324         # need to do runtime linking.
8325         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8326           for ld_flag in $LDFLAGS; do
8327           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8328             aix_use_runtimelinking=yes
8329             break
8330           fi
8331           done
8332         esac
8333
8334         exp_sym_flag='-bexport'
8335         no_entry_flag='-bnoentry'
8336       fi
8337
8338       # When large executables or shared objects are built, AIX ld can
8339       # have problems creating the table of contents.  If linking a library
8340       # or program results in "error TOC overflow" add -mminimal-toc to
8341       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8342       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8343
8344       archive_cmds=''
8345       hardcode_direct=yes
8346       hardcode_libdir_separator=':'
8347       link_all_deplibs=yes
8348
8349       if test "$GCC" = yes; then
8350         case $host_os in aix4.[012]|aix4.[012].*)
8351         # We only want to do this on AIX 4.2 and lower, the check
8352         # below for broken collect2 doesn't work under 4.3+
8353           collect2name=`${CC} -print-prog-name=collect2`
8354           if test -f "$collect2name" && \
8355            strings "$collect2name" | grep resolve_lib_name >/dev/null
8356           then
8357           # We have reworked collect2
8358           hardcode_direct=yes
8359           else
8360           # We have old collect2
8361           hardcode_direct=unsupported
8362           # It fails to find uninstalled libraries when the uninstalled
8363           # path is not listed in the libpath.  Setting hardcode_minus_L
8364           # to unsupported forces relinking
8365           hardcode_minus_L=yes
8366           hardcode_libdir_flag_spec='-L$libdir'
8367           hardcode_libdir_separator=
8368           fi
8369         esac
8370         shared_flag='-shared'
8371         if test "$aix_use_runtimelinking" = yes; then
8372           shared_flag="$shared_flag "'${wl}-G'
8373         fi
8374       else
8375         # not using gcc
8376         if test "$host_cpu" = ia64; then
8377         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8378         # chokes on -Wl,-G. The following line is correct:
8379           shared_flag='-G'
8380         else
8381         if test "$aix_use_runtimelinking" = yes; then
8382             shared_flag='${wl}-G'
8383           else
8384             shared_flag='${wl}-bM:SRE'
8385         fi
8386         fi
8387       fi
8388
8389       # It seems that -bexpall does not export symbols beginning with
8390       # underscore (_), so it is better to generate a list of symbols to export.
8391       always_export_symbols=yes
8392       if test "$aix_use_runtimelinking" = yes; then
8393         # Warning - without using the other runtime loading flags (-brtl),
8394         # -berok will link without error, but may produce a broken library.
8395         allow_undefined_flag='-berok'
8396        # Determine the default libpath from the value encoded in an empty executable.
8397        cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h.  */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h.  */
8403
8404 int
8405 main ()
8406 {
8407
8408   ;
8409   return 0;
8410 }
8411 _ACEOF
8412 rm -f conftest.$ac_objext conftest$ac_exeext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414   (eval $ac_link) 2>conftest.er1
8415   ac_status=$?
8416   grep -v '^ *+' conftest.er1 >conftest.err
8417   rm -f conftest.er1
8418   cat conftest.err >&5
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); } &&
8421          { ac_try='test -z "$ac_c_werror_flag"
8422                          || test ! -s conftest.err'
8423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424   (eval $ac_try) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; } &&
8428          { ac_try='test -s conftest$ac_exeext'
8429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430   (eval $ac_try) 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); }; }; then
8434
8435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8436 }'`
8437 # Check for a 64-bit object if we didn't find anything.
8438 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; }
8439 }'`; fi
8440 else
8441   echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8443
8444 fi
8445 rm -f conftest.err conftest.$ac_objext \
8446       conftest$ac_exeext conftest.$ac_ext
8447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8448
8449        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8450         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"
8451        else
8452         if test "$host_cpu" = ia64; then
8453           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8454           allow_undefined_flag="-z nodefs"
8455           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"
8456         else
8457          # Determine the default libpath from the value encoded in an empty executable.
8458          cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h.  */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h.  */
8464
8465 int
8466 main ()
8467 {
8468
8469   ;
8470   return 0;
8471 }
8472 _ACEOF
8473 rm -f conftest.$ac_objext conftest$ac_exeext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475   (eval $ac_link) 2>conftest.er1
8476   ac_status=$?
8477   grep -v '^ *+' conftest.er1 >conftest.err
8478   rm -f conftest.er1
8479   cat conftest.err >&5
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } &&
8482          { ac_try='test -z "$ac_c_werror_flag"
8483                          || test ! -s conftest.err'
8484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485   (eval $ac_try) 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); }; } &&
8489          { ac_try='test -s conftest$ac_exeext'
8490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491   (eval $ac_try) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); }; }; then
8495
8496 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8497 }'`
8498 # Check for a 64-bit object if we didn't find anything.
8499 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; }
8500 }'`; fi
8501 else
8502   echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 fi
8506 rm -f conftest.err conftest.$ac_objext \
8507       conftest$ac_exeext conftest.$ac_ext
8508 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8509
8510          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8511           # Warning - without using the other run time loading flags,
8512           # -berok will link without error, but may produce a broken library.
8513           no_undefined_flag=' ${wl}-bernotok'
8514           allow_undefined_flag=' ${wl}-berok'
8515           # -bexpall does not export symbols beginning with underscore (_)
8516           always_export_symbols=yes
8517           # Exported symbols can be pulled into shared objects from archives
8518           whole_archive_flag_spec=' '
8519           archive_cmds_need_lc=yes
8520           # This is similar to how AIX traditionally builds its shared libraries.
8521           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'
8522         fi
8523       fi
8524       ;;
8525
8526     amigaos*)
8527       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)'
8528       hardcode_libdir_flag_spec='-L$libdir'
8529       hardcode_minus_L=yes
8530       # see comment about different semantics on the GNU ld section
8531       ld_shlibs=no
8532       ;;
8533
8534     bsdi[45]*)
8535       export_dynamic_flag_spec=-rdynamic
8536       ;;
8537
8538     cygwin* | mingw* | pw32*)
8539       # When not using gcc, we currently assume that we are using
8540       # Microsoft Visual C++.
8541       # hardcode_libdir_flag_spec is actually meaningless, as there is
8542       # no search path for DLLs.
8543       hardcode_libdir_flag_spec=' '
8544       allow_undefined_flag=unsupported
8545       # Tell ltmain to make .lib files, not .a files.
8546       libext=lib
8547       # Tell ltmain to make .dll files, not .so files.
8548       shrext_cmds=".dll"
8549       # FIXME: Setting linknames here is a bad hack.
8550       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8551       # The linker will automatically build a .lib file if we build a DLL.
8552       old_archive_From_new_cmds='true'
8553       # FIXME: Should let the user specify the lib program.
8554       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8555       fix_srcfile_path='`cygpath -w "$srcfile"`'
8556       enable_shared_with_static_runtimes=yes
8557       ;;
8558
8559     darwin* | rhapsody*)
8560       case $host_os in
8561         rhapsody* | darwin1.[012])
8562          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8563          ;;
8564        *) # Darwin 1.3 on
8565          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8566            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8567          else
8568            case ${MACOSX_DEPLOYMENT_TARGET} in
8569              10.[012])
8570                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8571                ;;
8572              10.*)
8573                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8574                ;;
8575            esac
8576          fi
8577          ;;
8578       esac
8579       archive_cmds_need_lc=no
8580       hardcode_direct=no
8581       hardcode_automatic=yes
8582       hardcode_shlibpath_var=unsupported
8583       whole_archive_flag_spec=''
8584       link_all_deplibs=yes
8585     if test "$GCC" = yes ; then
8586         output_verbose_link_cmd='echo'
8587         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8588       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8589       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8590       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}'
8591       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}'
8592     else
8593       case $cc_basename in
8594         xlc*)
8595          output_verbose_link_cmd='echo'
8596          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8597          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8598           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8599          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}'
8600           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}'
8601           ;;
8602        *)
8603          ld_shlibs=no
8604           ;;
8605       esac
8606     fi
8607       ;;
8608
8609     dgux*)
8610       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8611       hardcode_libdir_flag_spec='-L$libdir'
8612       hardcode_shlibpath_var=no
8613       ;;
8614
8615     freebsd1*)
8616       ld_shlibs=no
8617       ;;
8618
8619     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8620     # support.  Future versions do this automatically, but an explicit c++rt0.o
8621     # does not break anything, and helps significantly (at the cost of a little
8622     # extra space).
8623     freebsd2.2*)
8624       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8625       hardcode_libdir_flag_spec='-R$libdir'
8626       hardcode_direct=yes
8627       hardcode_shlibpath_var=no
8628       ;;
8629
8630     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8631     freebsd2*)
8632       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8633       hardcode_direct=yes
8634       hardcode_minus_L=yes
8635       hardcode_shlibpath_var=no
8636       ;;
8637
8638     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8639     freebsd* | kfreebsd*-gnu | dragonfly*)
8640       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8641       hardcode_libdir_flag_spec='-R$libdir'
8642       hardcode_direct=yes
8643       hardcode_shlibpath_var=no
8644       ;;
8645
8646     hpux9*)
8647       if test "$GCC" = yes; then
8648         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'
8649       else
8650         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'
8651       fi
8652       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8653       hardcode_libdir_separator=:
8654       hardcode_direct=yes
8655
8656       # hardcode_minus_L: Not really in the search PATH,
8657       # but as the default location of the library.
8658       hardcode_minus_L=yes
8659       export_dynamic_flag_spec='${wl}-E'
8660       ;;
8661
8662     hpux10* | hpux11*)
8663       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8664         case $host_cpu in
8665         hppa*64*|ia64*)
8666           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8667           ;;
8668         *)
8669           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8670           ;;
8671         esac
8672       else
8673         case $host_cpu in
8674         hppa*64*|ia64*)
8675           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8676           ;;
8677         *)
8678           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8679           ;;
8680         esac
8681       fi
8682       if test "$with_gnu_ld" = no; then
8683         case $host_cpu in
8684         hppa*64*)
8685           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8686           hardcode_libdir_flag_spec_ld='+b $libdir'
8687           hardcode_libdir_separator=:
8688           hardcode_direct=no
8689           hardcode_shlibpath_var=no
8690           ;;
8691         ia64*)
8692           hardcode_libdir_flag_spec='-L$libdir'
8693           hardcode_direct=no
8694           hardcode_shlibpath_var=no
8695
8696           # hardcode_minus_L: Not really in the search PATH,
8697           # but as the default location of the library.
8698           hardcode_minus_L=yes
8699           ;;
8700         *)
8701           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702           hardcode_libdir_separator=:
8703           hardcode_direct=yes
8704           export_dynamic_flag_spec='${wl}-E'
8705
8706           # hardcode_minus_L: Not really in the search PATH,
8707           # but as the default location of the library.
8708           hardcode_minus_L=yes
8709           ;;
8710         esac
8711       fi
8712       ;;
8713
8714     irix5* | irix6* | nonstopux*)
8715       if test "$GCC" = yes; then
8716         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'
8717       else
8718         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'
8719         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8720       fi
8721       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8722       hardcode_libdir_separator=:
8723       link_all_deplibs=yes
8724       ;;
8725
8726     netbsd*)
8727       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8728         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8729       else
8730         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8731       fi
8732       hardcode_libdir_flag_spec='-R$libdir'
8733       hardcode_direct=yes
8734       hardcode_shlibpath_var=no
8735       ;;
8736
8737     newsos6)
8738       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8739       hardcode_direct=yes
8740       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741       hardcode_libdir_separator=:
8742       hardcode_shlibpath_var=no
8743       ;;
8744
8745     openbsd*)
8746       hardcode_direct=yes
8747       hardcode_shlibpath_var=no
8748       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8749         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8750         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8751         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8752         export_dynamic_flag_spec='${wl}-E'
8753       else
8754        case $host_os in
8755          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8756            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8757            hardcode_libdir_flag_spec='-R$libdir'
8758            ;;
8759          *)
8760            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8761            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8762            ;;
8763        esac
8764       fi
8765       ;;
8766
8767     os2*)
8768       hardcode_libdir_flag_spec='-L$libdir'
8769       hardcode_minus_L=yes
8770       allow_undefined_flag=unsupported
8771       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'
8772       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8773       ;;
8774
8775     osf3*)
8776       if test "$GCC" = yes; then
8777         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8778         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'
8779       else
8780         allow_undefined_flag=' -expect_unresolved \*'
8781         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'
8782       fi
8783       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8784       hardcode_libdir_separator=:
8785       ;;
8786
8787     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8788       if test "$GCC" = yes; then
8789         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8790         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'
8791         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792       else
8793         allow_undefined_flag=' -expect_unresolved \*'
8794         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'
8795         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8796         $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'
8797
8798         # Both c and cxx compiler support -rpath directly
8799         hardcode_libdir_flag_spec='-rpath $libdir'
8800       fi
8801       hardcode_libdir_separator=:
8802       ;;
8803
8804     sco3.2v5*)
8805       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806       hardcode_shlibpath_var=no
8807       export_dynamic_flag_spec='${wl}-Bexport'
8808       runpath_var=LD_RUN_PATH
8809       hardcode_runpath_var=yes
8810       ;;
8811
8812     solaris*)
8813       no_undefined_flag=' -z text'
8814       if test "$GCC" = yes; then
8815         wlarc='${wl}'
8816         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8817         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8818           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8819       else
8820         wlarc=''
8821         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8823         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8824       fi
8825       hardcode_libdir_flag_spec='-R$libdir'
8826       hardcode_shlibpath_var=no
8827       case $host_os in
8828       solaris2.[0-5] | solaris2.[0-5].*) ;;
8829       *)
8830         # The compiler driver will combine linker options so we
8831         # cannot just pass the convience library names through
8832         # without $wl, iff we do not link with $LD.
8833         # Luckily, gcc supports the same syntax we need for Sun Studio.
8834         # Supported since Solaris 2.6 (maybe 2.5.1?)
8835         case $wlarc in
8836         '')
8837           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8838         *)
8839           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' ;;
8840         esac ;;
8841       esac
8842       link_all_deplibs=yes
8843       ;;
8844
8845     sunos4*)
8846       if test "x$host_vendor" = xsequent; then
8847         # Use $CC to link under sequent, because it throws in some extra .o
8848         # files that make .init and .fini sections work.
8849         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8850       else
8851         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8852       fi
8853       hardcode_libdir_flag_spec='-L$libdir'
8854       hardcode_direct=yes
8855       hardcode_minus_L=yes
8856       hardcode_shlibpath_var=no
8857       ;;
8858
8859     sysv4)
8860       case $host_vendor in
8861         sni)
8862           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8863           hardcode_direct=yes # is this really true???
8864         ;;
8865         siemens)
8866           ## LD is ld it makes a PLAMLIB
8867           ## CC just makes a GrossModule.
8868           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8869           reload_cmds='$CC -r -o $output$reload_objs'
8870           hardcode_direct=no
8871         ;;
8872         motorola)
8873           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8874           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8875         ;;
8876       esac
8877       runpath_var='LD_RUN_PATH'
8878       hardcode_shlibpath_var=no
8879       ;;
8880
8881     sysv4.3*)
8882       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883       hardcode_shlibpath_var=no
8884       export_dynamic_flag_spec='-Bexport'
8885       ;;
8886
8887     sysv4*MP*)
8888       if test -d /usr/nec; then
8889         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890         hardcode_shlibpath_var=no
8891         runpath_var=LD_RUN_PATH
8892         hardcode_runpath_var=yes
8893         ld_shlibs=yes
8894       fi
8895       ;;
8896
8897     sysv4.2uw2*)
8898       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8899       hardcode_direct=yes
8900       hardcode_minus_L=no
8901       hardcode_shlibpath_var=no
8902       hardcode_runpath_var=yes
8903       runpath_var=LD_RUN_PATH
8904       ;;
8905
8906    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8907       no_undefined_flag='${wl}-z ${wl}text'
8908       if test "$GCC" = yes; then
8909         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8910       else
8911         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8912       fi
8913       runpath_var='LD_RUN_PATH'
8914       hardcode_shlibpath_var=no
8915       ;;
8916
8917     sysv5*)
8918       no_undefined_flag=' -z text'
8919       # $CC -shared without GNU ld will not create a library from C++
8920       # object files and a static libstdc++, better avoid it by now
8921       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8923                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8924       hardcode_libdir_flag_spec=
8925       hardcode_shlibpath_var=no
8926       runpath_var='LD_RUN_PATH'
8927       ;;
8928
8929     uts4*)
8930       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931       hardcode_libdir_flag_spec='-L$libdir'
8932       hardcode_shlibpath_var=no
8933       ;;
8934
8935     *)
8936       ld_shlibs=no
8937       ;;
8938     esac
8939   fi
8940
8941 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8942 echo "${ECHO_T}$ld_shlibs" >&6
8943 test "$ld_shlibs" = no && can_build_shared=no
8944
8945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8946 if test "$GCC" = yes; then
8947   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8948 fi
8949
8950 #
8951 # Do we need to explicitly link libc?
8952 #
8953 case "x$archive_cmds_need_lc" in
8954 x|xyes)
8955   # Assume -lc should be added
8956   archive_cmds_need_lc=yes
8957
8958   if test "$enable_shared" = yes && test "$GCC" = yes; then
8959     case $archive_cmds in
8960     *'~'*)
8961       # FIXME: we may have to deal with multi-command sequences.
8962       ;;
8963     '$CC '*)
8964       # Test whether the compiler implicitly links with -lc since on some
8965       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8966       # to ld, don't add -lc before -lgcc.
8967       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8968 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8969       $rm conftest*
8970       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8971
8972       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8973   (eval $ac_compile) 2>&5
8974   ac_status=$?
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); } 2>conftest.err; then
8977         soname=conftest
8978         lib=conftest
8979         libobjs=conftest.$ac_objext
8980         deplibs=
8981         wl=$lt_prog_compiler_wl
8982         compiler_flags=-v
8983         linker_flags=-v
8984         verstring=
8985         output_objdir=.
8986         libname=conftest
8987         lt_save_allow_undefined_flag=$allow_undefined_flag
8988         allow_undefined_flag=
8989         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8990   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8991   ac_status=$?
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); }
8994         then
8995           archive_cmds_need_lc=no
8996         else
8997           archive_cmds_need_lc=yes
8998         fi
8999         allow_undefined_flag=$lt_save_allow_undefined_flag
9000       else
9001         cat conftest.err 1>&5
9002       fi
9003       $rm conftest*
9004       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9005 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9006       ;;
9007     esac
9008   fi
9009   ;;
9010 esac
9011
9012 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9013 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9014 library_names_spec=
9015 libname_spec='lib$name'
9016 soname_spec=
9017 shrext_cmds=".so"
9018 postinstall_cmds=
9019 postuninstall_cmds=
9020 finish_cmds=
9021 finish_eval=
9022 shlibpath_var=
9023 shlibpath_overrides_runpath=unknown
9024 version_type=none
9025 dynamic_linker="$host_os ld.so"
9026 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9027 if test "$GCC" = yes; then
9028   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9029   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9030     # if the path contains ";" then we assume it to be the separator
9031     # otherwise default to the standard path separator (i.e. ":") - it is
9032     # assumed that no part of a normal pathname contains ";" but that should
9033     # okay in the real world where ";" in dirpaths is itself problematic.
9034     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9035   else
9036     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9037   fi
9038 else
9039   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9040 fi
9041 need_lib_prefix=unknown
9042 hardcode_into_libs=no
9043
9044 # when you set need_version to no, make sure it does not cause -set_version
9045 # flags to be left without arguments
9046 need_version=unknown
9047
9048 case $host_os in
9049 aix3*)
9050   version_type=linux
9051   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9052   shlibpath_var=LIBPATH
9053
9054   # AIX 3 has no versioning support, so we append a major version to the name.
9055   soname_spec='${libname}${release}${shared_ext}$major'
9056   ;;
9057
9058 aix4* | aix5*)
9059   version_type=linux
9060   need_lib_prefix=no
9061   need_version=no
9062   hardcode_into_libs=yes
9063   if test "$host_cpu" = ia64; then
9064     # AIX 5 supports IA64
9065     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9066     shlibpath_var=LD_LIBRARY_PATH
9067   else
9068     # With GCC up to 2.95.x, collect2 would create an import file
9069     # for dependence libraries.  The import file would start with
9070     # the line `#! .'.  This would cause the generated library to
9071     # depend on `.', always an invalid library.  This was fixed in
9072     # development snapshots of GCC prior to 3.0.
9073     case $host_os in
9074       aix4 | aix4.[01] | aix4.[01].*)
9075       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9076            echo ' yes '
9077            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9078         :
9079       else
9080         can_build_shared=no
9081       fi
9082       ;;
9083     esac
9084     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9085     # soname into executable. Probably we can add versioning support to
9086     # collect2, so additional links can be useful in future.
9087     if test "$aix_use_runtimelinking" = yes; then
9088       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9089       # instead of lib<name>.a to let people know that these are not
9090       # typical AIX shared libraries.
9091       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092     else
9093       # We preserve .a as extension for shared libraries through AIX4.2
9094       # and later when we are not doing run time linking.
9095       library_names_spec='${libname}${release}.a $libname.a'
9096       soname_spec='${libname}${release}${shared_ext}$major'
9097     fi
9098     shlibpath_var=LIBPATH
9099   fi
9100   ;;
9101
9102 amigaos*)
9103   library_names_spec='$libname.ixlibrary $libname.a'
9104   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9105   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'
9106   ;;
9107
9108 beos*)
9109   library_names_spec='${libname}${shared_ext}'
9110   dynamic_linker="$host_os ld.so"
9111   shlibpath_var=LIBRARY_PATH
9112   ;;
9113
9114 bsdi[45]*)
9115   version_type=linux
9116   need_version=no
9117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118   soname_spec='${libname}${release}${shared_ext}$major'
9119   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9120   shlibpath_var=LD_LIBRARY_PATH
9121   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9122   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9123   # the default ld.so.conf also contains /usr/contrib/lib and
9124   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9125   # libtool to hard-code these into programs
9126   ;;
9127
9128 cygwin* | mingw* | pw32*)
9129   version_type=windows
9130   shrext_cmds=".dll"
9131   need_version=no
9132   need_lib_prefix=no
9133
9134   case $GCC,$host_os in
9135   yes,cygwin* | yes,mingw* | yes,pw32*)
9136     library_names_spec='$libname.dll.a'
9137     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9138     postinstall_cmds='base_file=`basename \${file}`~
9139       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9140       dldir=$destdir/`dirname \$dlpath`~
9141       test -d \$dldir || mkdir -p \$dldir~
9142       $install_prog $dir/$dlname \$dldir/$dlname~
9143       chmod a+x \$dldir/$dlname'
9144     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9145       dlpath=$dir/\$dldll~
9146        $rm \$dlpath'
9147     shlibpath_overrides_runpath=yes
9148
9149     case $host_os in
9150     cygwin*)
9151       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9152       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9153       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9154       ;;
9155     mingw*)
9156       # MinGW DLLs use traditional 'lib' prefix
9157       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9158       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9159       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9160         # It is most probably a Windows format PATH printed by
9161         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9162         # path with ; separators, and with drive letters. We can handle the
9163         # drive letters (cygwin fileutils understands them), so leave them,
9164         # especially as we might pass files found there to a mingw objdump,
9165         # which wouldn't understand a cygwinified path. Ahh.
9166         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9167       else
9168         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9169       fi
9170       ;;
9171     pw32*)
9172       # pw32 DLLs use 'pw' prefix rather than 'lib'
9173       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9174       ;;
9175     esac
9176     ;;
9177
9178   *)
9179     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9180     ;;
9181   esac
9182   dynamic_linker='Win32 ld.exe'
9183   # FIXME: first we should search . and the directory the executable is in
9184   shlibpath_var=PATH
9185   ;;
9186
9187 darwin* | rhapsody*)
9188   dynamic_linker="$host_os dyld"
9189   version_type=darwin
9190   need_lib_prefix=no
9191   need_version=no
9192   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9193   soname_spec='${libname}${release}${major}$shared_ext'
9194   shlibpath_overrides_runpath=yes
9195   shlibpath_var=DYLD_LIBRARY_PATH
9196   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9197   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9198   if test "$GCC" = yes; then
9199     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"`
9200   else
9201     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9202   fi
9203   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9204   ;;
9205
9206 dgux*)
9207   version_type=linux
9208   need_lib_prefix=no
9209   need_version=no
9210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9211   soname_spec='${libname}${release}${shared_ext}$major'
9212   shlibpath_var=LD_LIBRARY_PATH
9213   ;;
9214
9215 freebsd1*)
9216   dynamic_linker=no
9217   ;;
9218
9219 kfreebsd*-gnu)
9220   version_type=linux
9221   need_lib_prefix=no
9222   need_version=no
9223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9224   soname_spec='${libname}${release}${shared_ext}$major'
9225   shlibpath_var=LD_LIBRARY_PATH
9226   shlibpath_overrides_runpath=no
9227   hardcode_into_libs=yes
9228   dynamic_linker='GNU ld.so'
9229   ;;
9230
9231 freebsd* | dragonfly*)
9232   # DragonFly does not have aout.  When/if they implement a new
9233   # versioning mechanism, adjust this.
9234   if test -x /usr/bin/objformat; then
9235     objformat=`/usr/bin/objformat`
9236   else
9237     case $host_os in
9238     freebsd[123]*) objformat=aout ;;
9239     *) objformat=elf ;;
9240     esac
9241   fi
9242   version_type=freebsd-$objformat
9243   case $version_type in
9244     freebsd-elf*)
9245       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9246       need_version=no
9247       need_lib_prefix=no
9248       ;;
9249     freebsd-*)
9250       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9251       need_version=yes
9252       ;;
9253   esac
9254   shlibpath_var=LD_LIBRARY_PATH
9255   case $host_os in
9256   freebsd2*)
9257     shlibpath_overrides_runpath=yes
9258     ;;
9259   freebsd3.[01]* | freebsdelf3.[01]*)
9260     shlibpath_overrides_runpath=yes
9261     hardcode_into_libs=yes
9262     ;;
9263   *) # from 3.2 on
9264     shlibpath_overrides_runpath=no
9265     hardcode_into_libs=yes
9266     ;;
9267   esac
9268   ;;
9269
9270 gnu*)
9271   version_type=linux
9272   need_lib_prefix=no
9273   need_version=no
9274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9275   soname_spec='${libname}${release}${shared_ext}$major'
9276   shlibpath_var=LD_LIBRARY_PATH
9277   hardcode_into_libs=yes
9278   ;;
9279
9280 hpux9* | hpux10* | hpux11*)
9281   # Give a soname corresponding to the major version so that dld.sl refuses to
9282   # link against other versions.
9283   version_type=sunos
9284   need_lib_prefix=no
9285   need_version=no
9286   case $host_cpu in
9287   ia64*)
9288     shrext_cmds='.so'
9289     hardcode_into_libs=yes
9290     dynamic_linker="$host_os dld.so"
9291     shlibpath_var=LD_LIBRARY_PATH
9292     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294     soname_spec='${libname}${release}${shared_ext}$major'
9295     if test "X$HPUX_IA64_MODE" = X32; then
9296       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9297     else
9298       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9299     fi
9300     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9301     ;;
9302    hppa*64*)
9303      shrext_cmds='.sl'
9304      hardcode_into_libs=yes
9305      dynamic_linker="$host_os dld.sl"
9306      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9307      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9308      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309      soname_spec='${libname}${release}${shared_ext}$major'
9310      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9311      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9312      ;;
9313    *)
9314     shrext_cmds='.sl'
9315     dynamic_linker="$host_os dld.sl"
9316     shlibpath_var=SHLIB_PATH
9317     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9318     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319     soname_spec='${libname}${release}${shared_ext}$major'
9320     ;;
9321   esac
9322   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9323   postinstall_cmds='chmod 555 $lib'
9324   ;;
9325
9326 irix5* | irix6* | nonstopux*)
9327   case $host_os in
9328     nonstopux*) version_type=nonstopux ;;
9329     *)
9330         if test "$lt_cv_prog_gnu_ld" = yes; then
9331                 version_type=linux
9332         else
9333                 version_type=irix
9334         fi ;;
9335   esac
9336   need_lib_prefix=no
9337   need_version=no
9338   soname_spec='${libname}${release}${shared_ext}$major'
9339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9340   case $host_os in
9341   irix5* | nonstopux*)
9342     libsuff= shlibsuff=
9343     ;;
9344   *)
9345     case $LD in # libtool.m4 will add one of these switches to LD
9346     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9347       libsuff= shlibsuff= libmagic=32-bit;;
9348     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9349       libsuff=32 shlibsuff=N32 libmagic=N32;;
9350     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9351       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9352     *) libsuff= shlibsuff= libmagic=never-match;;
9353     esac
9354     ;;
9355   esac
9356   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9357   shlibpath_overrides_runpath=no
9358   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9359   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9360   hardcode_into_libs=yes
9361   ;;
9362
9363 # No shared lib support for Linux oldld, aout, or coff.
9364 linux*oldld* | linux*aout* | linux*coff*)
9365   dynamic_linker=no
9366   ;;
9367
9368 # This must be Linux ELF.
9369 linux*)
9370   version_type=linux
9371   need_lib_prefix=no
9372   need_version=no
9373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374   soname_spec='${libname}${release}${shared_ext}$major'
9375   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9376   shlibpath_var=LD_LIBRARY_PATH
9377   shlibpath_overrides_runpath=no
9378   # This implies no fast_install, which is unacceptable.
9379   # Some rework will be needed to allow for fast_install
9380   # before this can be enabled.
9381   hardcode_into_libs=yes
9382
9383   # Append ld.so.conf contents to the search path
9384   if test -f /etc/ld.so.conf; then
9385     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' ' '`
9386     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9387   fi
9388
9389   # We used to test for /lib/ld.so.1 and disable shared libraries on
9390   # powerpc, because MkLinux only supported shared libraries with the
9391   # GNU dynamic linker.  Since this was broken with cross compilers,
9392   # most powerpc-linux boxes support dynamic linking these days and
9393   # people can always --disable-shared, the test was removed, and we
9394   # assume the GNU/Linux dynamic linker is in use.
9395   dynamic_linker='GNU/Linux ld.so'
9396   ;;
9397
9398 knetbsd*-gnu)
9399   version_type=linux
9400   need_lib_prefix=no
9401   need_version=no
9402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9403   soname_spec='${libname}${release}${shared_ext}$major'
9404   shlibpath_var=LD_LIBRARY_PATH
9405   shlibpath_overrides_runpath=no
9406   hardcode_into_libs=yes
9407   dynamic_linker='GNU ld.so'
9408   ;;
9409
9410 netbsd*)
9411   version_type=sunos
9412   need_lib_prefix=no
9413   need_version=no
9414   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9416     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9417     dynamic_linker='NetBSD (a.out) ld.so'
9418   else
9419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9420     soname_spec='${libname}${release}${shared_ext}$major'
9421     dynamic_linker='NetBSD ld.elf_so'
9422   fi
9423   shlibpath_var=LD_LIBRARY_PATH
9424   shlibpath_overrides_runpath=yes
9425   hardcode_into_libs=yes
9426   ;;
9427
9428 newsos6)
9429   version_type=linux
9430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431   shlibpath_var=LD_LIBRARY_PATH
9432   shlibpath_overrides_runpath=yes
9433   ;;
9434
9435 nto-qnx*)
9436   version_type=linux
9437   need_lib_prefix=no
9438   need_version=no
9439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440   soname_spec='${libname}${release}${shared_ext}$major'
9441   shlibpath_var=LD_LIBRARY_PATH
9442   shlibpath_overrides_runpath=yes
9443   ;;
9444
9445 openbsd*)
9446   version_type=sunos
9447   need_lib_prefix=no
9448   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9449   case $host_os in
9450     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9451     *)                         need_version=no  ;;
9452   esac
9453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9454   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9455   shlibpath_var=LD_LIBRARY_PATH
9456   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9457     case $host_os in
9458       openbsd2.[89] | openbsd2.[89].*)
9459         shlibpath_overrides_runpath=no
9460         ;;
9461       *)
9462         shlibpath_overrides_runpath=yes
9463         ;;
9464       esac
9465   else
9466     shlibpath_overrides_runpath=yes
9467   fi
9468   ;;
9469
9470 os2*)
9471   libname_spec='$name'
9472   shrext_cmds=".dll"
9473   need_lib_prefix=no
9474   library_names_spec='$libname${shared_ext} $libname.a'
9475   dynamic_linker='OS/2 ld.exe'
9476   shlibpath_var=LIBPATH
9477   ;;
9478
9479 osf3* | osf4* | osf5*)
9480   version_type=osf
9481   need_lib_prefix=no
9482   need_version=no
9483   soname_spec='${libname}${release}${shared_ext}$major'
9484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485   shlibpath_var=LD_LIBRARY_PATH
9486   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9487   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9488   ;;
9489
9490 sco3.2v5*)
9491   version_type=osf
9492   soname_spec='${libname}${release}${shared_ext}$major'
9493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494   shlibpath_var=LD_LIBRARY_PATH
9495   ;;
9496
9497 solaris*)
9498   version_type=linux
9499   need_lib_prefix=no
9500   need_version=no
9501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502   soname_spec='${libname}${release}${shared_ext}$major'
9503   shlibpath_var=LD_LIBRARY_PATH
9504   shlibpath_overrides_runpath=yes
9505   hardcode_into_libs=yes
9506   # ldd complains unless libraries are executable
9507   postinstall_cmds='chmod +x $lib'
9508   ;;
9509
9510 sunos4*)
9511   version_type=sunos
9512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9513   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9514   shlibpath_var=LD_LIBRARY_PATH
9515   shlibpath_overrides_runpath=yes
9516   if test "$with_gnu_ld" = yes; then
9517     need_lib_prefix=no
9518   fi
9519   need_version=yes
9520   ;;
9521
9522 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9523   version_type=linux
9524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525   soname_spec='${libname}${release}${shared_ext}$major'
9526   shlibpath_var=LD_LIBRARY_PATH
9527   case $host_vendor in
9528     sni)
9529       shlibpath_overrides_runpath=no
9530       need_lib_prefix=no
9531       export_dynamic_flag_spec='${wl}-Blargedynsym'
9532       runpath_var=LD_RUN_PATH
9533       ;;
9534     siemens)
9535       need_lib_prefix=no
9536       ;;
9537     motorola)
9538       need_lib_prefix=no
9539       need_version=no
9540       shlibpath_overrides_runpath=no
9541       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9542       ;;
9543   esac
9544   ;;
9545
9546 sysv4*MP*)
9547   if test -d /usr/nec ;then
9548     version_type=linux
9549     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9550     soname_spec='$libname${shared_ext}.$major'
9551     shlibpath_var=LD_LIBRARY_PATH
9552   fi
9553   ;;
9554
9555 uts4*)
9556   version_type=linux
9557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558   soname_spec='${libname}${release}${shared_ext}$major'
9559   shlibpath_var=LD_LIBRARY_PATH
9560   ;;
9561
9562 *)
9563   dynamic_linker=no
9564   ;;
9565 esac
9566 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9567 echo "${ECHO_T}$dynamic_linker" >&6
9568 test "$dynamic_linker" = no && can_build_shared=no
9569
9570 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9571 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9572 hardcode_action=
9573 if test -n "$hardcode_libdir_flag_spec" || \
9574    test -n "$runpath_var" || \
9575    test "X$hardcode_automatic" = "Xyes" ; then
9576
9577   # We can hardcode non-existant directories.
9578   if test "$hardcode_direct" != no &&
9579      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9580      # have to relink, otherwise we might link with an installed library
9581      # when we should be linking with a yet-to-be-installed one
9582      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9583      test "$hardcode_minus_L" != no; then
9584     # Linking always hardcodes the temporary library directory.
9585     hardcode_action=relink
9586   else
9587     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9588     hardcode_action=immediate
9589   fi
9590 else
9591   # We cannot hardcode anything, or else we can only hardcode existing
9592   # directories.
9593   hardcode_action=unsupported
9594 fi
9595 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9596 echo "${ECHO_T}$hardcode_action" >&6
9597
9598 if test "$hardcode_action" = relink; then
9599   # Fast installation is not supported
9600   enable_fast_install=no
9601 elif test "$shlibpath_overrides_runpath" = yes ||
9602      test "$enable_shared" = no; then
9603   # Fast installation is not necessary
9604   enable_fast_install=needless
9605 fi
9606
9607 striplib=
9608 old_striplib=
9609 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9610 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9611 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9612   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9613   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9614   echo "$as_me:$LINENO: result: yes" >&5
9615 echo "${ECHO_T}yes" >&6
9616 else
9617 # FIXME - insert some real tests, host_os isn't really good enough
9618   case $host_os in
9619    darwin*)
9620        if test -n "$STRIP" ; then
9621          striplib="$STRIP -x"
9622          echo "$as_me:$LINENO: result: yes" >&5
9623 echo "${ECHO_T}yes" >&6
9624        else
9625   echo "$as_me:$LINENO: result: no" >&5
9626 echo "${ECHO_T}no" >&6
9627 fi
9628        ;;
9629    *)
9630   echo "$as_me:$LINENO: result: no" >&5
9631 echo "${ECHO_T}no" >&6
9632     ;;
9633   esac
9634 fi
9635
9636 if test "x$enable_dlopen" != xyes; then
9637   enable_dlopen=unknown
9638   enable_dlopen_self=unknown
9639   enable_dlopen_self_static=unknown
9640 else
9641   lt_cv_dlopen=no
9642   lt_cv_dlopen_libs=
9643
9644   case $host_os in
9645   beos*)
9646     lt_cv_dlopen="load_add_on"
9647     lt_cv_dlopen_libs=
9648     lt_cv_dlopen_self=yes
9649     ;;
9650
9651   mingw* | pw32*)
9652     lt_cv_dlopen="LoadLibrary"
9653     lt_cv_dlopen_libs=
9654    ;;
9655
9656   cygwin*)
9657     lt_cv_dlopen="dlopen"
9658     lt_cv_dlopen_libs=
9659    ;;
9660
9661   darwin*)
9662   # if libdl is installed we need to link against it
9663     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9666   echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668   ac_check_lib_save_LIBS=$LIBS
9669 LIBS="-ldl  $LIBS"
9670 cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h.  */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h.  */
9676
9677 /* Override any gcc2 internal prototype to avoid an error.  */
9678 #ifdef __cplusplus
9679 extern "C"
9680 #endif
9681 /* We use char because int might match the return type of a gcc2
9682    builtin and then its argument prototype would still apply.  */
9683 char dlopen ();
9684 int
9685 main ()
9686 {
9687 dlopen ();
9688   ;
9689   return 0;
9690 }
9691 _ACEOF
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694   (eval $ac_link) 2>conftest.er1
9695   ac_status=$?
9696   grep -v '^ *+' conftest.er1 >conftest.err
9697   rm -f conftest.er1
9698   cat conftest.err >&5
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); } &&
9701          { ac_try='test -z "$ac_c_werror_flag"
9702                          || test ! -s conftest.err'
9703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704   (eval $ac_try) 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); }; } &&
9708          { ac_try='test -s conftest$ac_exeext'
9709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710   (eval $ac_try) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; }; then
9714   ac_cv_lib_dl_dlopen=yes
9715 else
9716   echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719 ac_cv_lib_dl_dlopen=no
9720 fi
9721 rm -f conftest.err conftest.$ac_objext \
9722       conftest$ac_exeext conftest.$ac_ext
9723 LIBS=$ac_check_lib_save_LIBS
9724 fi
9725 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9726 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9727 if test $ac_cv_lib_dl_dlopen = yes; then
9728   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9729 else
9730
9731     lt_cv_dlopen="dyld"
9732     lt_cv_dlopen_libs=
9733     lt_cv_dlopen_self=yes
9734
9735 fi
9736
9737    ;;
9738
9739   *)
9740     echo "$as_me:$LINENO: checking for shl_load" >&5
9741 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9742 if test "${ac_cv_func_shl_load+set}" = set; then
9743   echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745   cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h.  */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h.  */
9751 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9753 #define shl_load innocuous_shl_load
9754
9755 /* System header to define __stub macros and hopefully few prototypes,
9756     which can conflict with char shl_load (); below.
9757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9758     <limits.h> exists even on freestanding compilers.  */
9759
9760 #ifdef __STDC__
9761 # include <limits.h>
9762 #else
9763 # include <assert.h>
9764 #endif
9765
9766 #undef shl_load
9767
9768 /* Override any gcc2 internal prototype to avoid an error.  */
9769 #ifdef __cplusplus
9770 extern "C"
9771 {
9772 #endif
9773 /* We use char because int might match the return type of a gcc2
9774    builtin and then its argument prototype would still apply.  */
9775 char shl_load ();
9776 /* The GNU C library defines this for functions which it implements
9777     to always fail with ENOSYS.  Some functions are actually named
9778     something starting with __ and the normal name is an alias.  */
9779 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9780 choke me
9781 #else
9782 char (*f) () = shl_load;
9783 #endif
9784 #ifdef __cplusplus
9785 }
9786 #endif
9787
9788 int
9789 main ()
9790 {
9791 return f != shl_load;
9792   ;
9793   return 0;
9794 }
9795 _ACEOF
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9798   (eval $ac_link) 2>conftest.er1
9799   ac_status=$?
9800   grep -v '^ *+' conftest.er1 >conftest.err
9801   rm -f conftest.er1
9802   cat conftest.err >&5
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); } &&
9805          { ac_try='test -z "$ac_c_werror_flag"
9806                          || test ! -s conftest.err'
9807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808   (eval $ac_try) 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); }; } &&
9812          { ac_try='test -s conftest$ac_exeext'
9813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814   (eval $ac_try) 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); }; }; then
9818   ac_cv_func_shl_load=yes
9819 else
9820   echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9822
9823 ac_cv_func_shl_load=no
9824 fi
9825 rm -f conftest.err conftest.$ac_objext \
9826       conftest$ac_exeext conftest.$ac_ext
9827 fi
9828 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9829 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9830 if test $ac_cv_func_shl_load = yes; then
9831   lt_cv_dlopen="shl_load"
9832 else
9833   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9834 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9835 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838   ac_check_lib_save_LIBS=$LIBS
9839 LIBS="-ldld  $LIBS"
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h.  */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h.  */
9846
9847 /* Override any gcc2 internal prototype to avoid an error.  */
9848 #ifdef __cplusplus
9849 extern "C"
9850 #endif
9851 /* We use char because int might match the return type of a gcc2
9852    builtin and then its argument prototype would still apply.  */
9853 char shl_load ();
9854 int
9855 main ()
9856 {
9857 shl_load ();
9858   ;
9859   return 0;
9860 }
9861 _ACEOF
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9864   (eval $ac_link) 2>conftest.er1
9865   ac_status=$?
9866   grep -v '^ *+' conftest.er1 >conftest.err
9867   rm -f conftest.er1
9868   cat conftest.err >&5
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); } &&
9871          { ac_try='test -z "$ac_c_werror_flag"
9872                          || test ! -s conftest.err'
9873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874   (eval $ac_try) 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; } &&
9878          { ac_try='test -s conftest$ac_exeext'
9879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880   (eval $ac_try) 2>&5
9881   ac_status=$?
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); }; }; then
9884   ac_cv_lib_dld_shl_load=yes
9885 else
9886   echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9888
9889 ac_cv_lib_dld_shl_load=no
9890 fi
9891 rm -f conftest.err conftest.$ac_objext \
9892       conftest$ac_exeext conftest.$ac_ext
9893 LIBS=$ac_check_lib_save_LIBS
9894 fi
9895 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9896 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9897 if test $ac_cv_lib_dld_shl_load = yes; then
9898   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9899 else
9900   echo "$as_me:$LINENO: checking for dlopen" >&5
9901 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9902 if test "${ac_cv_func_dlopen+set}" = set; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905   cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h.  */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h.  */
9911 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9913 #define dlopen innocuous_dlopen
9914
9915 /* System header to define __stub macros and hopefully few prototypes,
9916     which can conflict with char dlopen (); below.
9917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9918     <limits.h> exists even on freestanding compilers.  */
9919
9920 #ifdef __STDC__
9921 # include <limits.h>
9922 #else
9923 # include <assert.h>
9924 #endif
9925
9926 #undef dlopen
9927
9928 /* Override any gcc2 internal prototype to avoid an error.  */
9929 #ifdef __cplusplus
9930 extern "C"
9931 {
9932 #endif
9933 /* We use char because int might match the return type of a gcc2
9934    builtin and then its argument prototype would still apply.  */
9935 char dlopen ();
9936 /* The GNU C library defines this for functions which it implements
9937     to always fail with ENOSYS.  Some functions are actually named
9938     something starting with __ and the normal name is an alias.  */
9939 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9940 choke me
9941 #else
9942 char (*f) () = dlopen;
9943 #endif
9944 #ifdef __cplusplus
9945 }
9946 #endif
9947
9948 int
9949 main ()
9950 {
9951 return f != dlopen;
9952   ;
9953   return 0;
9954 }
9955 _ACEOF
9956 rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958   (eval $ac_link) 2>conftest.er1
9959   ac_status=$?
9960   grep -v '^ *+' conftest.er1 >conftest.err
9961   rm -f conftest.er1
9962   cat conftest.err >&5
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } &&
9965          { ac_try='test -z "$ac_c_werror_flag"
9966                          || test ! -s conftest.err'
9967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968   (eval $ac_try) 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); }; } &&
9972          { ac_try='test -s conftest$ac_exeext'
9973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974   (eval $ac_try) 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; }; then
9978   ac_cv_func_dlopen=yes
9979 else
9980   echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9982
9983 ac_cv_func_dlopen=no
9984 fi
9985 rm -f conftest.err conftest.$ac_objext \
9986       conftest$ac_exeext conftest.$ac_ext
9987 fi
9988 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9989 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9990 if test $ac_cv_func_dlopen = yes; then
9991   lt_cv_dlopen="dlopen"
9992 else
9993   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9994 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9995 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9996   echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998   ac_check_lib_save_LIBS=$LIBS
9999 LIBS="-ldl  $LIBS"
10000 cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h.  */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h.  */
10006
10007 /* Override any gcc2 internal prototype to avoid an error.  */
10008 #ifdef __cplusplus
10009 extern "C"
10010 #endif
10011 /* We use char because int might match the return type of a gcc2
10012    builtin and then its argument prototype would still apply.  */
10013 char dlopen ();
10014 int
10015 main ()
10016 {
10017 dlopen ();
10018   ;
10019   return 0;
10020 }
10021 _ACEOF
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024   (eval $ac_link) 2>conftest.er1
10025   ac_status=$?
10026   grep -v '^ *+' conftest.er1 >conftest.err
10027   rm -f conftest.er1
10028   cat conftest.err >&5
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); } &&
10031          { ac_try='test -z "$ac_c_werror_flag"
10032                          || test ! -s conftest.err'
10033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034   (eval $ac_try) 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; } &&
10038          { ac_try='test -s conftest$ac_exeext'
10039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040   (eval $ac_try) 2>&5
10041   ac_status=$?
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); }; }; then
10044   ac_cv_lib_dl_dlopen=yes
10045 else
10046   echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048
10049 ac_cv_lib_dl_dlopen=no
10050 fi
10051 rm -f conftest.err conftest.$ac_objext \
10052       conftest$ac_exeext conftest.$ac_ext
10053 LIBS=$ac_check_lib_save_LIBS
10054 fi
10055 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10056 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10057 if test $ac_cv_lib_dl_dlopen = yes; then
10058   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10059 else
10060   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10061 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10062 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10063   echo $ECHO_N "(cached) $ECHO_C" >&6
10064 else
10065   ac_check_lib_save_LIBS=$LIBS
10066 LIBS="-lsvld  $LIBS"
10067 cat >conftest.$ac_ext <<_ACEOF
10068 /* confdefs.h.  */
10069 _ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h.  */
10073
10074 /* Override any gcc2 internal prototype to avoid an error.  */
10075 #ifdef __cplusplus
10076 extern "C"
10077 #endif
10078 /* We use char because int might match the return type of a gcc2
10079    builtin and then its argument prototype would still apply.  */
10080 char dlopen ();
10081 int
10082 main ()
10083 {
10084 dlopen ();
10085   ;
10086   return 0;
10087 }
10088 _ACEOF
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091   (eval $ac_link) 2>conftest.er1
10092   ac_status=$?
10093   grep -v '^ *+' conftest.er1 >conftest.err
10094   rm -f conftest.er1
10095   cat conftest.err >&5
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); } &&
10098          { ac_try='test -z "$ac_c_werror_flag"
10099                          || test ! -s conftest.err'
10100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101   (eval $ac_try) 2>&5
10102   ac_status=$?
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); }; } &&
10105          { ac_try='test -s conftest$ac_exeext'
10106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107   (eval $ac_try) 2>&5
10108   ac_status=$?
10109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110   (exit $ac_status); }; }; then
10111   ac_cv_lib_svld_dlopen=yes
10112 else
10113   echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10115
10116 ac_cv_lib_svld_dlopen=no
10117 fi
10118 rm -f conftest.err conftest.$ac_objext \
10119       conftest$ac_exeext conftest.$ac_ext
10120 LIBS=$ac_check_lib_save_LIBS
10121 fi
10122 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10123 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10124 if test $ac_cv_lib_svld_dlopen = yes; then
10125   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10126 else
10127   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10128 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10129 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10130   echo $ECHO_N "(cached) $ECHO_C" >&6
10131 else
10132   ac_check_lib_save_LIBS=$LIBS
10133 LIBS="-ldld  $LIBS"
10134 cat >conftest.$ac_ext <<_ACEOF
10135 /* confdefs.h.  */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h.  */
10140
10141 /* Override any gcc2 internal prototype to avoid an error.  */
10142 #ifdef __cplusplus
10143 extern "C"
10144 #endif
10145 /* We use char because int might match the return type of a gcc2
10146    builtin and then its argument prototype would still apply.  */
10147 char dld_link ();
10148 int
10149 main ()
10150 {
10151 dld_link ();
10152   ;
10153   return 0;
10154 }
10155 _ACEOF
10156 rm -f conftest.$ac_objext conftest$ac_exeext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158   (eval $ac_link) 2>conftest.er1
10159   ac_status=$?
10160   grep -v '^ *+' conftest.er1 >conftest.err
10161   rm -f conftest.er1
10162   cat conftest.err >&5
10163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); } &&
10165          { ac_try='test -z "$ac_c_werror_flag"
10166                          || test ! -s conftest.err'
10167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168   (eval $ac_try) 2>&5
10169   ac_status=$?
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); }; } &&
10172          { ac_try='test -s conftest$ac_exeext'
10173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174   (eval $ac_try) 2>&5
10175   ac_status=$?
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); }; }; then
10178   ac_cv_lib_dld_dld_link=yes
10179 else
10180   echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10182
10183 ac_cv_lib_dld_dld_link=no
10184 fi
10185 rm -f conftest.err conftest.$ac_objext \
10186       conftest$ac_exeext conftest.$ac_ext
10187 LIBS=$ac_check_lib_save_LIBS
10188 fi
10189 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10190 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10191 if test $ac_cv_lib_dld_dld_link = yes; then
10192   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10193 fi
10194
10195
10196 fi
10197
10198
10199 fi
10200
10201
10202 fi
10203
10204
10205 fi
10206
10207
10208 fi
10209
10210     ;;
10211   esac
10212
10213   if test "x$lt_cv_dlopen" != xno; then
10214     enable_dlopen=yes
10215   else
10216     enable_dlopen=no
10217   fi
10218
10219   case $lt_cv_dlopen in
10220   dlopen)
10221     save_CPPFLAGS="$CPPFLAGS"
10222     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10223
10224     save_LDFLAGS="$LDFLAGS"
10225     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10226
10227     save_LIBS="$LIBS"
10228     LIBS="$lt_cv_dlopen_libs $LIBS"
10229
10230     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10231 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10232 if test "${lt_cv_dlopen_self+set}" = set; then
10233   echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235           if test "$cross_compiling" = yes; then :
10236   lt_cv_dlopen_self=cross
10237 else
10238   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10239   lt_status=$lt_dlunknown
10240   cat > conftest.$ac_ext <<EOF
10241 #line 10241 "configure"
10242 #include "confdefs.h"
10243
10244 #if HAVE_DLFCN_H
10245 #include <dlfcn.h>
10246 #endif
10247
10248 #include <stdio.h>
10249
10250 #ifdef RTLD_GLOBAL
10251 #  define LT_DLGLOBAL           RTLD_GLOBAL
10252 #else
10253 #  ifdef DL_GLOBAL
10254 #    define LT_DLGLOBAL         DL_GLOBAL
10255 #  else
10256 #    define LT_DLGLOBAL         0
10257 #  endif
10258 #endif
10259
10260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10261    find out it does not work in some platform. */
10262 #ifndef LT_DLLAZY_OR_NOW
10263 #  ifdef RTLD_LAZY
10264 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10265 #  else
10266 #    ifdef DL_LAZY
10267 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10268 #    else
10269 #      ifdef RTLD_NOW
10270 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10271 #      else
10272 #        ifdef DL_NOW
10273 #          define LT_DLLAZY_OR_NOW      DL_NOW
10274 #        else
10275 #          define LT_DLLAZY_OR_NOW      0
10276 #        endif
10277 #      endif
10278 #    endif
10279 #  endif
10280 #endif
10281
10282 #ifdef __cplusplus
10283 extern "C" void exit (int);
10284 #endif
10285
10286 void fnord() { int i=42;}
10287 int main ()
10288 {
10289   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10290   int status = $lt_dlunknown;
10291
10292   if (self)
10293     {
10294       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10295       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10296       /* dlclose (self); */
10297     }
10298
10299     exit (status);
10300 }
10301 EOF
10302   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303   (eval $ac_link) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10307     (./conftest; exit; ) >&5 2>/dev/null
10308     lt_status=$?
10309     case x$lt_status in
10310       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10311       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10312       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10313     esac
10314   else :
10315     # compilation failed
10316     lt_cv_dlopen_self=no
10317   fi
10318 fi
10319 rm -fr conftest*
10320
10321
10322 fi
10323 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10324 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10325
10326     if test "x$lt_cv_dlopen_self" = xyes; then
10327       LDFLAGS="$LDFLAGS $link_static_flag"
10328       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10329 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10330 if test "${lt_cv_dlopen_self_static+set}" = set; then
10331   echo $ECHO_N "(cached) $ECHO_C" >&6
10332 else
10333           if test "$cross_compiling" = yes; then :
10334   lt_cv_dlopen_self_static=cross
10335 else
10336   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10337   lt_status=$lt_dlunknown
10338   cat > conftest.$ac_ext <<EOF
10339 #line 10339 "configure"
10340 #include "confdefs.h"
10341
10342 #if HAVE_DLFCN_H
10343 #include <dlfcn.h>
10344 #endif
10345
10346 #include <stdio.h>
10347
10348 #ifdef RTLD_GLOBAL
10349 #  define LT_DLGLOBAL           RTLD_GLOBAL
10350 #else
10351 #  ifdef DL_GLOBAL
10352 #    define LT_DLGLOBAL         DL_GLOBAL
10353 #  else
10354 #    define LT_DLGLOBAL         0
10355 #  endif
10356 #endif
10357
10358 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10359    find out it does not work in some platform. */
10360 #ifndef LT_DLLAZY_OR_NOW
10361 #  ifdef RTLD_LAZY
10362 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10363 #  else
10364 #    ifdef DL_LAZY
10365 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10366 #    else
10367 #      ifdef RTLD_NOW
10368 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10369 #      else
10370 #        ifdef DL_NOW
10371 #          define LT_DLLAZY_OR_NOW      DL_NOW
10372 #        else
10373 #          define LT_DLLAZY_OR_NOW      0
10374 #        endif
10375 #      endif
10376 #    endif
10377 #  endif
10378 #endif
10379
10380 #ifdef __cplusplus
10381 extern "C" void exit (int);
10382 #endif
10383
10384 void fnord() { int i=42;}
10385 int main ()
10386 {
10387   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10388   int status = $lt_dlunknown;
10389
10390   if (self)
10391     {
10392       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10393       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10394       /* dlclose (self); */
10395     }
10396
10397     exit (status);
10398 }
10399 EOF
10400   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10401   (eval $ac_link) 2>&5
10402   ac_status=$?
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10405     (./conftest; exit; ) >&5 2>/dev/null
10406     lt_status=$?
10407     case x$lt_status in
10408       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10409       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10410       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10411     esac
10412   else :
10413     # compilation failed
10414     lt_cv_dlopen_self_static=no
10415   fi
10416 fi
10417 rm -fr conftest*
10418
10419
10420 fi
10421 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10422 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10423     fi
10424
10425     CPPFLAGS="$save_CPPFLAGS"
10426     LDFLAGS="$save_LDFLAGS"
10427     LIBS="$save_LIBS"
10428     ;;
10429   esac
10430
10431   case $lt_cv_dlopen_self in
10432   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10433   *) enable_dlopen_self=unknown ;;
10434   esac
10435
10436   case $lt_cv_dlopen_self_static in
10437   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10438   *) enable_dlopen_self_static=unknown ;;
10439   esac
10440 fi
10441
10442
10443 # Report which librarie types wil actually be built
10444 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10445 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10446 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10447 echo "${ECHO_T}$can_build_shared" >&6
10448
10449 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10450 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10451 test "$can_build_shared" = "no" && enable_shared=no
10452
10453 # On AIX, shared libraries and static libraries use the same namespace, and
10454 # are all built from PIC.
10455 case $host_os in
10456 aix3*)
10457   test "$enable_shared" = yes && enable_static=no
10458   if test -n "$RANLIB"; then
10459     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10460     postinstall_cmds='$RANLIB $lib'
10461   fi
10462   ;;
10463
10464 aix4* | aix5*)
10465   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10466     test "$enable_shared" = yes && enable_static=no
10467   fi
10468     ;;
10469 esac
10470 echo "$as_me:$LINENO: result: $enable_shared" >&5
10471 echo "${ECHO_T}$enable_shared" >&6
10472
10473 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10474 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10475 # Make sure either enable_shared or enable_static is yes.
10476 test "$enable_shared" = yes || enable_static=yes
10477 echo "$as_me:$LINENO: result: $enable_static" >&5
10478 echo "${ECHO_T}$enable_static" >&6
10479
10480 # The else clause should only fire when bootstrapping the
10481 # libtool distribution, otherwise you forgot to ship ltmain.sh
10482 # with your package, and you will get complaints that there are
10483 # no rules to generate ltmain.sh.
10484 if test -f "$ltmain"; then
10485   # See if we are running on zsh, and set the options which allow our commands through
10486   # without removal of \ escapes.
10487   if test -n "${ZSH_VERSION+set}" ; then
10488     setopt NO_GLOB_SUBST
10489   fi
10490   # Now quote all the things that may contain metacharacters while being
10491   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10492   # variables and quote the copies for generation of the libtool script.
10493   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10494     SED SHELL STRIP \
10495     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10496     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10497     deplibs_check_method reload_flag reload_cmds need_locks \
10498     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10499     lt_cv_sys_global_symbol_to_c_name_address \
10500     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10501     old_postinstall_cmds old_postuninstall_cmds \
10502     compiler \
10503     CC \
10504     LD \
10505     lt_prog_compiler_wl \
10506     lt_prog_compiler_pic \
10507     lt_prog_compiler_static \
10508     lt_prog_compiler_no_builtin_flag \
10509     export_dynamic_flag_spec \
10510     thread_safe_flag_spec \
10511     whole_archive_flag_spec \
10512     enable_shared_with_static_runtimes \
10513     old_archive_cmds \
10514     old_archive_from_new_cmds \
10515     predep_objects \
10516     postdep_objects \
10517     predeps \
10518     postdeps \
10519     compiler_lib_search_path \
10520     archive_cmds \
10521     archive_expsym_cmds \
10522     postinstall_cmds \
10523     postuninstall_cmds \
10524     old_archive_from_expsyms_cmds \
10525     allow_undefined_flag \
10526     no_undefined_flag \
10527     export_symbols_cmds \
10528     hardcode_libdir_flag_spec \
10529     hardcode_libdir_flag_spec_ld \
10530     hardcode_libdir_separator \
10531     hardcode_automatic \
10532     module_cmds \
10533     module_expsym_cmds \
10534     lt_cv_prog_compiler_c_o \
10535     exclude_expsyms \
10536     include_expsyms; do
10537
10538     case $var in
10539     old_archive_cmds | \
10540     old_archive_from_new_cmds | \
10541     archive_cmds | \
10542     archive_expsym_cmds | \
10543     module_cmds | \
10544     module_expsym_cmds | \
10545     old_archive_from_expsyms_cmds | \
10546     export_symbols_cmds | \
10547     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10548     postinstall_cmds | postuninstall_cmds | \
10549     old_postinstall_cmds | old_postuninstall_cmds | \
10550     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10551       # Double-quote double-evaled strings.
10552       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10553       ;;
10554     *)
10555       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10556       ;;
10557     esac
10558   done
10559
10560   case $lt_echo in
10561   *'\$0 --fallback-echo"')
10562     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10563     ;;
10564   esac
10565
10566 cfgfile="${ofile}T"
10567   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10568   $rm -f "$cfgfile"
10569   { echo "$as_me:$LINENO: creating $ofile" >&5
10570 echo "$as_me: creating $ofile" >&6;}
10571
10572   cat <<__EOF__ >> "$cfgfile"
10573 #! $SHELL
10574
10575 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10576 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10578 #
10579 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10580 # Free Software Foundation, Inc.
10581 #
10582 # This file is part of GNU Libtool:
10583 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10584 #
10585 # This program is free software; you can redistribute it and/or modify
10586 # it under the terms of the GNU General Public License as published by
10587 # the Free Software Foundation; either version 2 of the License, or
10588 # (at your option) any later version.
10589 #
10590 # This program is distributed in the hope that it will be useful, but
10591 # WITHOUT ANY WARRANTY; without even the implied warranty of
10592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10593 # General Public License for more details.
10594 #
10595 # You should have received a copy of the GNU General Public License
10596 # along with this program; if not, write to the Free Software
10597 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10598 #
10599 # As a special exception to the GNU General Public License, if you
10600 # distribute this file as part of a program that contains a
10601 # configuration script generated by Autoconf, you may include it under
10602 # the same distribution terms that you use for the rest of that program.
10603
10604 # A sed program that does not truncate output.
10605 SED=$lt_SED
10606
10607 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10608 Xsed="$SED -e 1s/^X//"
10609
10610 # The HP-UX ksh and POSIX shell print the target directory to stdout
10611 # if CDPATH is set.
10612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10613
10614 # The names of the tagged configurations supported by this script.
10615 available_tags=
10616
10617 # ### BEGIN LIBTOOL CONFIG
10618
10619 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10620
10621 # Shell to use when invoking shell scripts.
10622 SHELL=$lt_SHELL
10623
10624 # Whether or not to build shared libraries.
10625 build_libtool_libs=$enable_shared
10626
10627 # Whether or not to build static libraries.
10628 build_old_libs=$enable_static
10629
10630 # Whether or not to add -lc for building shared libraries.
10631 build_libtool_need_lc=$archive_cmds_need_lc
10632
10633 # Whether or not to disallow shared libs when runtime libs are static
10634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10635
10636 # Whether or not to optimize for fast installation.
10637 fast_install=$enable_fast_install
10638
10639 # The host system.
10640 host_alias=$host_alias
10641 host=$host
10642 host_os=$host_os
10643
10644 # The build system.
10645 build_alias=$build_alias
10646 build=$build
10647 build_os=$build_os
10648
10649 # An echo program that does not interpret backslashes.
10650 echo=$lt_echo
10651
10652 # The archiver.
10653 AR=$lt_AR
10654 AR_FLAGS=$lt_AR_FLAGS
10655
10656 # A C compiler.
10657 LTCC=$lt_LTCC
10658
10659 # A language-specific compiler.
10660 CC=$lt_compiler
10661
10662 # Is the compiler the GNU C compiler?
10663 with_gcc=$GCC
10664
10665 # An ERE matcher.
10666 EGREP=$lt_EGREP
10667
10668 # The linker used to build libraries.
10669 LD=$lt_LD
10670
10671 # Whether we need hard or soft links.
10672 LN_S=$lt_LN_S
10673
10674 # A BSD-compatible nm program.
10675 NM=$lt_NM
10676
10677 # A symbol stripping program
10678 STRIP=$lt_STRIP
10679
10680 # Used to examine libraries when file_magic_cmd begins "file"
10681 MAGIC_CMD=$MAGIC_CMD
10682
10683 # Used on cygwin: DLL creation program.
10684 DLLTOOL="$DLLTOOL"
10685
10686 # Used on cygwin: object dumper.
10687 OBJDUMP="$OBJDUMP"
10688
10689 # Used on cygwin: assembler.
10690 AS="$AS"
10691
10692 # The name of the directory that contains temporary libtool files.
10693 objdir=$objdir
10694
10695 # How to create reloadable object files.
10696 reload_flag=$lt_reload_flag
10697 reload_cmds=$lt_reload_cmds
10698
10699 # How to pass a linker flag through the compiler.
10700 wl=$lt_lt_prog_compiler_wl
10701
10702 # Object file suffix (normally "o").
10703 objext="$ac_objext"
10704
10705 # Old archive suffix (normally "a").
10706 libext="$libext"
10707
10708 # Shared library suffix (normally ".so").
10709 shrext_cmds='$shrext_cmds'
10710
10711 # Executable file suffix (normally "").
10712 exeext="$exeext"
10713
10714 # Additional compiler flags for building library objects.
10715 pic_flag=$lt_lt_prog_compiler_pic
10716 pic_mode=$pic_mode
10717
10718 # What is the maximum length of a command?
10719 max_cmd_len=$lt_cv_sys_max_cmd_len
10720
10721 # Does compiler simultaneously support -c and -o options?
10722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10723
10724 # Must we lock files when doing compilation?
10725 need_locks=$lt_need_locks
10726
10727 # Do we need the lib prefix for modules?
10728 need_lib_prefix=$need_lib_prefix
10729
10730 # Do we need a version for libraries?
10731 need_version=$need_version
10732
10733 # Whether dlopen is supported.
10734 dlopen_support=$enable_dlopen
10735
10736 # Whether dlopen of programs is supported.
10737 dlopen_self=$enable_dlopen_self
10738
10739 # Whether dlopen of statically linked programs is supported.
10740 dlopen_self_static=$enable_dlopen_self_static
10741
10742 # Compiler flag to prevent dynamic linking.
10743 link_static_flag=$lt_lt_prog_compiler_static
10744
10745 # Compiler flag to turn off builtin functions.
10746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10747
10748 # Compiler flag to allow reflexive dlopens.
10749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10750
10751 # Compiler flag to generate shared objects directly from archives.
10752 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10753
10754 # Compiler flag to generate thread-safe objects.
10755 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10756
10757 # Library versioning type.
10758 version_type=$version_type
10759
10760 # Format of library name prefix.
10761 libname_spec=$lt_libname_spec
10762
10763 # List of archive names.  First name is the real one, the rest are links.
10764 # The last name is the one that the linker finds with -lNAME.
10765 library_names_spec=$lt_library_names_spec
10766
10767 # The coded name of the library, if different from the real name.
10768 soname_spec=$lt_soname_spec
10769
10770 # Commands used to build and install an old-style archive.
10771 RANLIB=$lt_RANLIB
10772 old_archive_cmds=$lt_old_archive_cmds
10773 old_postinstall_cmds=$lt_old_postinstall_cmds
10774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10775
10776 # Create an old-style archive from a shared archive.
10777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10778
10779 # Create a temporary old-style archive to link instead of a shared archive.
10780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10781
10782 # Commands used to build and install a shared archive.
10783 archive_cmds=$lt_archive_cmds
10784 archive_expsym_cmds=$lt_archive_expsym_cmds
10785 postinstall_cmds=$lt_postinstall_cmds
10786 postuninstall_cmds=$lt_postuninstall_cmds
10787
10788 # Commands used to build a loadable module (assumed same as above if empty)
10789 module_cmds=$lt_module_cmds
10790 module_expsym_cmds=$lt_module_expsym_cmds
10791
10792 # Commands to strip libraries.
10793 old_striplib=$lt_old_striplib
10794 striplib=$lt_striplib
10795
10796 # Dependencies to place before the objects being linked to create a
10797 # shared library.
10798 predep_objects=$lt_predep_objects
10799
10800 # Dependencies to place after the objects being linked to create a
10801 # shared library.
10802 postdep_objects=$lt_postdep_objects
10803
10804 # Dependencies to place before the objects being linked to create a
10805 # shared library.
10806 predeps=$lt_predeps
10807
10808 # Dependencies to place after the objects being linked to create a
10809 # shared library.
10810 postdeps=$lt_postdeps
10811
10812 # The library search path used internally by the compiler when linking
10813 # a shared library.
10814 compiler_lib_search_path=$lt_compiler_lib_search_path
10815
10816 # Method to check whether dependent libraries are shared objects.
10817 deplibs_check_method=$lt_deplibs_check_method
10818
10819 # Command to use when deplibs_check_method == file_magic.
10820 file_magic_cmd=$lt_file_magic_cmd
10821
10822 # Flag that allows shared libraries with undefined symbols to be built.
10823 allow_undefined_flag=$lt_allow_undefined_flag
10824
10825 # Flag that forces no undefined symbols.
10826 no_undefined_flag=$lt_no_undefined_flag
10827
10828 # Commands used to finish a libtool library installation in a directory.
10829 finish_cmds=$lt_finish_cmds
10830
10831 # Same as above, but a single script fragment to be evaled but not shown.
10832 finish_eval=$lt_finish_eval
10833
10834 # Take the output of nm and produce a listing of raw symbols and C names.
10835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10836
10837 # Transform the output of nm in a proper C declaration
10838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10839
10840 # Transform the output of nm in a C name address pair
10841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10842
10843 # This is the shared library runtime path variable.
10844 runpath_var=$runpath_var
10845
10846 # This is the shared library path variable.
10847 shlibpath_var=$shlibpath_var
10848
10849 # Is shlibpath searched before the hard-coded library search path?
10850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10851
10852 # How to hardcode a shared library path into an executable.
10853 hardcode_action=$hardcode_action
10854
10855 # Whether we should hardcode library paths into libraries.
10856 hardcode_into_libs=$hardcode_into_libs
10857
10858 # Flag to hardcode \$libdir into a binary during linking.
10859 # This must work even if \$libdir does not exist.
10860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10861
10862 # If ld is used when linking, flag to hardcode \$libdir into
10863 # a binary during linking. This must work even if \$libdir does
10864 # not exist.
10865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10866
10867 # Whether we need a single -rpath flag with a separated argument.
10868 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10869
10870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10871 # resulting binary.
10872 hardcode_direct=$hardcode_direct
10873
10874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10875 # resulting binary.
10876 hardcode_minus_L=$hardcode_minus_L
10877
10878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10879 # the resulting binary.
10880 hardcode_shlibpath_var=$hardcode_shlibpath_var
10881
10882 # Set to yes if building a shared library automatically hardcodes DIR into the library
10883 # and all subsequent libraries and executables linked against it.
10884 hardcode_automatic=$hardcode_automatic
10885
10886 # Variables whose values should be saved in libtool wrapper scripts and
10887 # restored at relink time.
10888 variables_saved_for_relink="$variables_saved_for_relink"
10889
10890 # Whether libtool must link a program against all its dependency libraries.
10891 link_all_deplibs=$link_all_deplibs
10892
10893 # Compile-time system search path for libraries
10894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10895
10896 # Run-time system search path for libraries
10897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10898
10899 # Fix the shell variable \$srcfile for the compiler.
10900 fix_srcfile_path="$fix_srcfile_path"
10901
10902 # Set to yes if exported symbols are required.
10903 always_export_symbols=$always_export_symbols
10904
10905 # The commands to list exported symbols.
10906 export_symbols_cmds=$lt_export_symbols_cmds
10907
10908 # The commands to extract the exported symbol list from a shared archive.
10909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10910
10911 # Symbols that should not be listed in the preloaded symbols.
10912 exclude_expsyms=$lt_exclude_expsyms
10913
10914 # Symbols that must always be exported.
10915 include_expsyms=$lt_include_expsyms
10916
10917 # ### END LIBTOOL CONFIG
10918
10919 __EOF__
10920
10921
10922   case $host_os in
10923   aix3*)
10924     cat <<\EOF >> "$cfgfile"
10925
10926 # AIX sometimes has problems with the GCC collect2 program.  For some
10927 # reason, if we set the COLLECT_NAMES environment variable, the problems
10928 # vanish in a puff of smoke.
10929 if test "X${COLLECT_NAMES+set}" != Xset; then
10930   COLLECT_NAMES=
10931   export COLLECT_NAMES
10932 fi
10933 EOF
10934     ;;
10935   esac
10936
10937   # We use sed instead of cat because bash on DJGPP gets confused if
10938   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10939   # text mode, it properly converts lines to CR/LF.  This bash problem
10940   # is reportedly fixed, but why not run on old versions too?
10941   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10942
10943   mv -f "$cfgfile" "$ofile" || \
10944     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10945   chmod +x "$ofile"
10946
10947 else
10948   # If there is no Makefile yet, we rely on a make rule to execute
10949   # `config.status --recheck' to rerun these tests and create the
10950   # libtool script then.
10951   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10952   if test -f "$ltmain_in"; then
10953     test -f Makefile && make "$ltmain"
10954   fi
10955 fi
10956
10957
10958 ac_ext=c
10959 ac_cpp='$CPP $CPPFLAGS'
10960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10963
10964 CC="$lt_save_CC"
10965
10966
10967 # Check whether --with-tags or --without-tags was given.
10968 if test "${with_tags+set}" = set; then
10969   withval="$with_tags"
10970   tagnames="$withval"
10971 fi;
10972
10973 if test -f "$ltmain" && test -n "$tagnames"; then
10974   if test ! -f "${ofile}"; then
10975     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10976 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10977   fi
10978
10979   if test -z "$LTCC"; then
10980     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10981     if test -z "$LTCC"; then
10982       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10983 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10984     else
10985       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10986 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10987     fi
10988   fi
10989
10990   # Extract list of available tagged configurations in $ofile.
10991   # Note that this assumes the entire list is on one line.
10992   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10993
10994   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10995   for tagname in $tagnames; do
10996     IFS="$lt_save_ifs"
10997     # Check whether tagname contains only valid characters
10998     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10999     "") ;;
11000     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11001 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11002    { (exit 1); exit 1; }; }
11003         ;;
11004     esac
11005
11006     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11007     then
11008       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11009 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11010    { (exit 1); exit 1; }; }
11011     fi
11012
11013     # Update the list of available tags.
11014     if test -n "$tagname"; then
11015       echo appending configuration tag \"$tagname\" to $ofile
11016
11017       case $tagname in
11018       CXX)
11019         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11020             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11021             (test "X$CXX" != "Xg++"))) ; then
11022           :
11023         else
11024           tagname=""
11025         fi
11026         ;;
11027
11028       F77)
11029         if test -n "$F77" && test "X$F77" != "Xno"; then
11030           :
11031         else
11032           tagname=""
11033         fi
11034         ;;
11035
11036       GCJ)
11037         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11038           :
11039         else
11040           tagname=""
11041         fi
11042         ;;
11043
11044       RC)
11045
11046
11047
11048 # Source file extension for RC test sources.
11049 ac_ext=rc
11050
11051 # Object file extension for compiled RC test sources.
11052 objext=o
11053 objext_RC=$objext
11054
11055 # Code to be used in simple compile tests
11056 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11057
11058 # Code to be used in simple link tests
11059 lt_simple_link_test_code="$lt_simple_compile_test_code"
11060
11061 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11062
11063 # If no C compiler was specified, use CC.
11064 LTCC=${LTCC-"$CC"}
11065
11066 # Allow CC to be a program name with arguments.
11067 compiler=$CC
11068
11069
11070 # save warnings/boilerplate of simple test code
11071 ac_outfile=conftest.$ac_objext
11072 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11073 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11074 _lt_compiler_boilerplate=`cat conftest.err`
11075 $rm conftest*
11076
11077 ac_outfile=conftest.$ac_objext
11078 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11079 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11080 _lt_linker_boilerplate=`cat conftest.err`
11081 $rm conftest*
11082
11083
11084 # Allow CC to be a program name with arguments.
11085 lt_save_CC="$CC"
11086 CC=${RC-"windres"}
11087 compiler=$CC
11088 compiler_RC=$CC
11089 for cc_temp in $compiler""; do
11090   case $cc_temp in
11091     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11092     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11093     \-*) ;;
11094     *) break;;
11095   esac
11096 done
11097 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11098
11099 lt_cv_prog_compiler_c_o_RC=yes
11100
11101 # The else clause should only fire when bootstrapping the
11102 # libtool distribution, otherwise you forgot to ship ltmain.sh
11103 # with your package, and you will get complaints that there are
11104 # no rules to generate ltmain.sh.
11105 if test -f "$ltmain"; then
11106   # See if we are running on zsh, and set the options which allow our commands through
11107   # without removal of \ escapes.
11108   if test -n "${ZSH_VERSION+set}" ; then
11109     setopt NO_GLOB_SUBST
11110   fi
11111   # Now quote all the things that may contain metacharacters while being
11112   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11113   # variables and quote the copies for generation of the libtool script.
11114   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11115     SED SHELL STRIP \
11116     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11117     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11118     deplibs_check_method reload_flag reload_cmds need_locks \
11119     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11120     lt_cv_sys_global_symbol_to_c_name_address \
11121     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11122     old_postinstall_cmds old_postuninstall_cmds \
11123     compiler_RC \
11124     CC_RC \
11125     LD_RC \
11126     lt_prog_compiler_wl_RC \
11127     lt_prog_compiler_pic_RC \
11128     lt_prog_compiler_static_RC \
11129     lt_prog_compiler_no_builtin_flag_RC \
11130     export_dynamic_flag_spec_RC \
11131     thread_safe_flag_spec_RC \
11132     whole_archive_flag_spec_RC \
11133     enable_shared_with_static_runtimes_RC \
11134     old_archive_cmds_RC \
11135     old_archive_from_new_cmds_RC \
11136     predep_objects_RC \
11137     postdep_objects_RC \
11138     predeps_RC \
11139     postdeps_RC \
11140     compiler_lib_search_path_RC \
11141     archive_cmds_RC \
11142     archive_expsym_cmds_RC \
11143     postinstall_cmds_RC \
11144     postuninstall_cmds_RC \
11145     old_archive_from_expsyms_cmds_RC \
11146     allow_undefined_flag_RC \
11147     no_undefined_flag_RC \
11148     export_symbols_cmds_RC \
11149     hardcode_libdir_flag_spec_RC \
11150     hardcode_libdir_flag_spec_ld_RC \
11151     hardcode_libdir_separator_RC \
11152     hardcode_automatic_RC \
11153     module_cmds_RC \
11154     module_expsym_cmds_RC \
11155     lt_cv_prog_compiler_c_o_RC \
11156     exclude_expsyms_RC \
11157     include_expsyms_RC; do
11158
11159     case $var in
11160     old_archive_cmds_RC | \
11161     old_archive_from_new_cmds_RC | \
11162     archive_cmds_RC | \
11163     archive_expsym_cmds_RC | \
11164     module_cmds_RC | \
11165     module_expsym_cmds_RC | \
11166     old_archive_from_expsyms_cmds_RC | \
11167     export_symbols_cmds_RC | \
11168     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11169     postinstall_cmds | postuninstall_cmds | \
11170     old_postinstall_cmds | old_postuninstall_cmds | \
11171     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11172       # Double-quote double-evaled strings.
11173       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11174       ;;
11175     *)
11176       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11177       ;;
11178     esac
11179   done
11180
11181   case $lt_echo in
11182   *'\$0 --fallback-echo"')
11183     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11184     ;;
11185   esac
11186
11187 cfgfile="$ofile"
11188
11189   cat <<__EOF__ >> "$cfgfile"
11190 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11191
11192 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11193
11194 # Shell to use when invoking shell scripts.
11195 SHELL=$lt_SHELL
11196
11197 # Whether or not to build shared libraries.
11198 build_libtool_libs=$enable_shared
11199
11200 # Whether or not to build static libraries.
11201 build_old_libs=$enable_static
11202
11203 # Whether or not to add -lc for building shared libraries.
11204 build_libtool_need_lc=$archive_cmds_need_lc_RC
11205
11206 # Whether or not to disallow shared libs when runtime libs are static
11207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11208
11209 # Whether or not to optimize for fast installation.
11210 fast_install=$enable_fast_install
11211
11212 # The host system.
11213 host_alias=$host_alias
11214 host=$host
11215 host_os=$host_os
11216
11217 # The build system.
11218 build_alias=$build_alias
11219 build=$build
11220 build_os=$build_os
11221
11222 # An echo program that does not interpret backslashes.
11223 echo=$lt_echo
11224
11225 # The archiver.
11226 AR=$lt_AR
11227 AR_FLAGS=$lt_AR_FLAGS
11228
11229 # A C compiler.
11230 LTCC=$lt_LTCC
11231
11232 # A language-specific compiler.
11233 CC=$lt_compiler_RC
11234
11235 # Is the compiler the GNU C compiler?
11236 with_gcc=$GCC_RC
11237
11238 # An ERE matcher.
11239 EGREP=$lt_EGREP
11240
11241 # The linker used to build libraries.
11242 LD=$lt_LD_RC
11243
11244 # Whether we need hard or soft links.
11245 LN_S=$lt_LN_S
11246
11247 # A BSD-compatible nm program.
11248 NM=$lt_NM
11249
11250 # A symbol stripping program
11251 STRIP=$lt_STRIP
11252
11253 # Used to examine libraries when file_magic_cmd begins "file"
11254 MAGIC_CMD=$MAGIC_CMD
11255
11256 # Used on cygwin: DLL creation program.
11257 DLLTOOL="$DLLTOOL"
11258
11259 # Used on cygwin: object dumper.
11260 OBJDUMP="$OBJDUMP"
11261
11262 # Used on cygwin: assembler.
11263 AS="$AS"
11264
11265 # The name of the directory that contains temporary libtool files.
11266 objdir=$objdir
11267
11268 # How to create reloadable object files.
11269 reload_flag=$lt_reload_flag
11270 reload_cmds=$lt_reload_cmds
11271
11272 # How to pass a linker flag through the compiler.
11273 wl=$lt_lt_prog_compiler_wl_RC
11274
11275 # Object file suffix (normally "o").
11276 objext="$ac_objext"
11277
11278 # Old archive suffix (normally "a").
11279 libext="$libext"
11280
11281 # Shared library suffix (normally ".so").
11282 shrext_cmds='$shrext_cmds'
11283
11284 # Executable file suffix (normally "").
11285 exeext="$exeext"
11286
11287 # Additional compiler flags for building library objects.
11288 pic_flag=$lt_lt_prog_compiler_pic_RC
11289 pic_mode=$pic_mode
11290
11291 # What is the maximum length of a command?
11292 max_cmd_len=$lt_cv_sys_max_cmd_len
11293
11294 # Does compiler simultaneously support -c and -o options?
11295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11296
11297 # Must we lock files when doing compilation?
11298 need_locks=$lt_need_locks
11299
11300 # Do we need the lib prefix for modules?
11301 need_lib_prefix=$need_lib_prefix
11302
11303 # Do we need a version for libraries?
11304 need_version=$need_version
11305
11306 # Whether dlopen is supported.
11307 dlopen_support=$enable_dlopen
11308
11309 # Whether dlopen of programs is supported.
11310 dlopen_self=$enable_dlopen_self
11311
11312 # Whether dlopen of statically linked programs is supported.
11313 dlopen_self_static=$enable_dlopen_self_static
11314
11315 # Compiler flag to prevent dynamic linking.
11316 link_static_flag=$lt_lt_prog_compiler_static_RC
11317
11318 # Compiler flag to turn off builtin functions.
11319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11320
11321 # Compiler flag to allow reflexive dlopens.
11322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11323
11324 # Compiler flag to generate shared objects directly from archives.
11325 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11326
11327 # Compiler flag to generate thread-safe objects.
11328 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11329
11330 # Library versioning type.
11331 version_type=$version_type
11332
11333 # Format of library name prefix.
11334 libname_spec=$lt_libname_spec
11335
11336 # List of archive names.  First name is the real one, the rest are links.
11337 # The last name is the one that the linker finds with -lNAME.
11338 library_names_spec=$lt_library_names_spec
11339
11340 # The coded name of the library, if different from the real name.
11341 soname_spec=$lt_soname_spec
11342
11343 # Commands used to build and install an old-style archive.
11344 RANLIB=$lt_RANLIB
11345 old_archive_cmds=$lt_old_archive_cmds_RC
11346 old_postinstall_cmds=$lt_old_postinstall_cmds
11347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11348
11349 # Create an old-style archive from a shared archive.
11350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11351
11352 # Create a temporary old-style archive to link instead of a shared archive.
11353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11354
11355 # Commands used to build and install a shared archive.
11356 archive_cmds=$lt_archive_cmds_RC
11357 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11358 postinstall_cmds=$lt_postinstall_cmds
11359 postuninstall_cmds=$lt_postuninstall_cmds
11360
11361 # Commands used to build a loadable module (assumed same as above if empty)
11362 module_cmds=$lt_module_cmds_RC
11363 module_expsym_cmds=$lt_module_expsym_cmds_RC
11364
11365 # Commands to strip libraries.
11366 old_striplib=$lt_old_striplib
11367 striplib=$lt_striplib
11368
11369 # Dependencies to place before the objects being linked to create a
11370 # shared library.
11371 predep_objects=$lt_predep_objects_RC
11372
11373 # Dependencies to place after the objects being linked to create a
11374 # shared library.
11375 postdep_objects=$lt_postdep_objects_RC
11376
11377 # Dependencies to place before the objects being linked to create a
11378 # shared library.
11379 predeps=$lt_predeps_RC
11380
11381 # Dependencies to place after the objects being linked to create a
11382 # shared library.
11383 postdeps=$lt_postdeps_RC
11384
11385 # The library search path used internally by the compiler when linking
11386 # a shared library.
11387 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11388
11389 # Method to check whether dependent libraries are shared objects.
11390 deplibs_check_method=$lt_deplibs_check_method
11391
11392 # Command to use when deplibs_check_method == file_magic.
11393 file_magic_cmd=$lt_file_magic_cmd
11394
11395 # Flag that allows shared libraries with undefined symbols to be built.
11396 allow_undefined_flag=$lt_allow_undefined_flag_RC
11397
11398 # Flag that forces no undefined symbols.
11399 no_undefined_flag=$lt_no_undefined_flag_RC
11400
11401 # Commands used to finish a libtool library installation in a directory.
11402 finish_cmds=$lt_finish_cmds
11403
11404 # Same as above, but a single script fragment to be evaled but not shown.
11405 finish_eval=$lt_finish_eval
11406
11407 # Take the output of nm and produce a listing of raw symbols and C names.
11408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11409
11410 # Transform the output of nm in a proper C declaration
11411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11412
11413 # Transform the output of nm in a C name address pair
11414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11415
11416 # This is the shared library runtime path variable.
11417 runpath_var=$runpath_var
11418
11419 # This is the shared library path variable.
11420 shlibpath_var=$shlibpath_var
11421
11422 # Is shlibpath searched before the hard-coded library search path?
11423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11424
11425 # How to hardcode a shared library path into an executable.
11426 hardcode_action=$hardcode_action_RC
11427
11428 # Whether we should hardcode library paths into libraries.
11429 hardcode_into_libs=$hardcode_into_libs
11430
11431 # Flag to hardcode \$libdir into a binary during linking.
11432 # This must work even if \$libdir does not exist.
11433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11434
11435 # If ld is used when linking, flag to hardcode \$libdir into
11436 # a binary during linking. This must work even if \$libdir does
11437 # not exist.
11438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11439
11440 # Whether we need a single -rpath flag with a separated argument.
11441 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11442
11443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11444 # resulting binary.
11445 hardcode_direct=$hardcode_direct_RC
11446
11447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11448 # resulting binary.
11449 hardcode_minus_L=$hardcode_minus_L_RC
11450
11451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11452 # the resulting binary.
11453 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11454
11455 # Set to yes if building a shared library automatically hardcodes DIR into the library
11456 # and all subsequent libraries and executables linked against it.
11457 hardcode_automatic=$hardcode_automatic_RC
11458
11459 # Variables whose values should be saved in libtool wrapper scripts and
11460 # restored at relink time.
11461 variables_saved_for_relink="$variables_saved_for_relink"
11462
11463 # Whether libtool must link a program against all its dependency libraries.
11464 link_all_deplibs=$link_all_deplibs_RC
11465
11466 # Compile-time system search path for libraries
11467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11468
11469 # Run-time system search path for libraries
11470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11471
11472 # Fix the shell variable \$srcfile for the compiler.
11473 fix_srcfile_path="$fix_srcfile_path_RC"
11474
11475 # Set to yes if exported symbols are required.
11476 always_export_symbols=$always_export_symbols_RC
11477
11478 # The commands to list exported symbols.
11479 export_symbols_cmds=$lt_export_symbols_cmds_RC
11480
11481 # The commands to extract the exported symbol list from a shared archive.
11482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11483
11484 # Symbols that should not be listed in the preloaded symbols.
11485 exclude_expsyms=$lt_exclude_expsyms_RC
11486
11487 # Symbols that must always be exported.
11488 include_expsyms=$lt_include_expsyms_RC
11489
11490 # ### END LIBTOOL TAG CONFIG: $tagname
11491
11492 __EOF__
11493
11494
11495 else
11496   # If there is no Makefile yet, we rely on a make rule to execute
11497   # `config.status --recheck' to rerun these tests and create the
11498   # libtool script then.
11499   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11500   if test -f "$ltmain_in"; then
11501     test -f Makefile && make "$ltmain"
11502   fi
11503 fi
11504
11505
11506 ac_ext=c
11507 ac_cpp='$CPP $CPPFLAGS'
11508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11511
11512 CC="$lt_save_CC"
11513
11514         ;;
11515
11516       *)
11517         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11518 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11519    { (exit 1); exit 1; }; }
11520         ;;
11521       esac
11522
11523       # Append the new tag name to the list of available tags.
11524       if test -n "$tagname" ; then
11525       available_tags="$available_tags $tagname"
11526     fi
11527     fi
11528   done
11529   IFS="$lt_save_ifs"
11530
11531   # Now substitute the updated list of available tags.
11532   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11533     mv "${ofile}T" "$ofile"
11534     chmod +x "$ofile"
11535   else
11536     rm -f "${ofile}T"
11537     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11538 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11539    { (exit 1); exit 1; }; }
11540   fi
11541 fi
11542
11543
11544
11545 # This can be used to rebuild libtool when needed
11546 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11547
11548 # Always use our own libtool.
11549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11550
11551 # Prevent multiple expansion
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562 ol_link_perl=no
11563 if test $ol_enable_perl != no ; then
11564         # Extract the first word of "perl", so it can be a program name with args.
11565 set dummy perl; ac_word=$2
11566 echo "$as_me:$LINENO: checking for $ac_word" >&5
11567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11568 if test "${ac_cv_path_PERLBIN+set}" = set; then
11569   echo $ECHO_N "(cached) $ECHO_C" >&6
11570 else
11571   case $PERLBIN in
11572   [\\/]* | ?:[\\/]*)
11573   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11574   ;;
11575   *)
11576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577 for as_dir in $PATH
11578 do
11579   IFS=$as_save_IFS
11580   test -z "$as_dir" && as_dir=.
11581   for ac_exec_ext in '' $ac_executable_extensions; do
11582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11583     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11585     break 2
11586   fi
11587 done
11588 done
11589
11590   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11591   ;;
11592 esac
11593 fi
11594 PERLBIN=$ac_cv_path_PERLBIN
11595
11596 if test -n "$PERLBIN"; then
11597   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11598 echo "${ECHO_T}$PERLBIN" >&6
11599 else
11600   echo "$as_me:$LINENO: result: no" >&5
11601 echo "${ECHO_T}no" >&6
11602 fi
11603
11604
11605         if test "no$PERLBIN" = "no" ; then
11606                 if test $ol_enable_perl = yes ; then
11607                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11608 echo "$as_me: error: could not locate perl" >&2;}
11609    { (exit 1); exit 1; }; }
11610                 fi
11611
11612         else
11613                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11614                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11615
11616                 if test x"$ol_enable_perl" = "xyes" ; then
11617                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11618                 else
11619                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11620                 fi
11621                                 ol_link_perl=yes
11622         fi
11623 fi
11624
11625 ac_ext=c
11626 ac_cpp='$CPP $CPPFLAGS'
11627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11630 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11631 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11632 # On Suns, sometimes $CPP names a directory.
11633 if test -n "$CPP" && test -d "$CPP"; then
11634   CPP=
11635 fi
11636 if test -z "$CPP"; then
11637   if test "${ac_cv_prog_CPP+set}" = set; then
11638   echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640       # Double quotes because CPP needs to be expanded
11641     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11642     do
11643       ac_preproc_ok=false
11644 for ac_c_preproc_warn_flag in '' yes
11645 do
11646   # Use a header file that comes with gcc, so configuring glibc
11647   # with a fresh cross-compiler works.
11648   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11649   # <limits.h> exists even on freestanding compilers.
11650   # On the NeXT, cc -E runs the code through the compiler's parser,
11651   # not just through cpp. "Syntax error" is here to catch this case.
11652   cat >conftest.$ac_ext <<_ACEOF
11653 /* confdefs.h.  */
11654 _ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h.  */
11658 #ifdef __STDC__
11659 # include <limits.h>
11660 #else
11661 # include <assert.h>
11662 #endif
11663                      Syntax error
11664 _ACEOF
11665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11666   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11667   ac_status=$?
11668   grep -v '^ *+' conftest.er1 >conftest.err
11669   rm -f conftest.er1
11670   cat conftest.err >&5
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } >/dev/null; then
11673   if test -s conftest.err; then
11674     ac_cpp_err=$ac_c_preproc_warn_flag
11675     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11676   else
11677     ac_cpp_err=
11678   fi
11679 else
11680   ac_cpp_err=yes
11681 fi
11682 if test -z "$ac_cpp_err"; then
11683   :
11684 else
11685   echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11687
11688   # Broken: fails on valid input.
11689 continue
11690 fi
11691 rm -f conftest.err conftest.$ac_ext
11692
11693   # OK, works on sane cases.  Now check whether non-existent headers
11694   # can be detected and how.
11695   cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h.  */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h.  */
11701 #include <ac_nonexistent.h>
11702 _ACEOF
11703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11705   ac_status=$?
11706   grep -v '^ *+' conftest.er1 >conftest.err
11707   rm -f conftest.er1
11708   cat conftest.err >&5
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); } >/dev/null; then
11711   if test -s conftest.err; then
11712     ac_cpp_err=$ac_c_preproc_warn_flag
11713     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11714   else
11715     ac_cpp_err=
11716   fi
11717 else
11718   ac_cpp_err=yes
11719 fi
11720 if test -z "$ac_cpp_err"; then
11721   # Broken: success on invalid input.
11722 continue
11723 else
11724   echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11726
11727   # Passes both tests.
11728 ac_preproc_ok=:
11729 break
11730 fi
11731 rm -f conftest.err conftest.$ac_ext
11732
11733 done
11734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11735 rm -f conftest.err conftest.$ac_ext
11736 if $ac_preproc_ok; then
11737   break
11738 fi
11739
11740     done
11741     ac_cv_prog_CPP=$CPP
11742
11743 fi
11744   CPP=$ac_cv_prog_CPP
11745 else
11746   ac_cv_prog_CPP=$CPP
11747 fi
11748 echo "$as_me:$LINENO: result: $CPP" >&5
11749 echo "${ECHO_T}$CPP" >&6
11750 ac_preproc_ok=false
11751 for ac_c_preproc_warn_flag in '' yes
11752 do
11753   # Use a header file that comes with gcc, so configuring glibc
11754   # with a fresh cross-compiler works.
11755   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756   # <limits.h> exists even on freestanding compilers.
11757   # On the NeXT, cc -E runs the code through the compiler's parser,
11758   # not just through cpp. "Syntax error" is here to catch this case.
11759   cat >conftest.$ac_ext <<_ACEOF
11760 /* confdefs.h.  */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h.  */
11765 #ifdef __STDC__
11766 # include <limits.h>
11767 #else
11768 # include <assert.h>
11769 #endif
11770                      Syntax error
11771 _ACEOF
11772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11773   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11774   ac_status=$?
11775   grep -v '^ *+' conftest.er1 >conftest.err
11776   rm -f conftest.er1
11777   cat conftest.err >&5
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); } >/dev/null; then
11780   if test -s conftest.err; then
11781     ac_cpp_err=$ac_c_preproc_warn_flag
11782     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11783   else
11784     ac_cpp_err=
11785   fi
11786 else
11787   ac_cpp_err=yes
11788 fi
11789 if test -z "$ac_cpp_err"; then
11790   :
11791 else
11792   echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11794
11795   # Broken: fails on valid input.
11796 continue
11797 fi
11798 rm -f conftest.err conftest.$ac_ext
11799
11800   # OK, works on sane cases.  Now check whether non-existent headers
11801   # can be detected and how.
11802   cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h.  */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h.  */
11808 #include <ac_nonexistent.h>
11809 _ACEOF
11810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11812   ac_status=$?
11813   grep -v '^ *+' conftest.er1 >conftest.err
11814   rm -f conftest.er1
11815   cat conftest.err >&5
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); } >/dev/null; then
11818   if test -s conftest.err; then
11819     ac_cpp_err=$ac_c_preproc_warn_flag
11820     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11821   else
11822     ac_cpp_err=
11823   fi
11824 else
11825   ac_cpp_err=yes
11826 fi
11827 if test -z "$ac_cpp_err"; then
11828   # Broken: success on invalid input.
11829 continue
11830 else
11831   echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11833
11834   # Passes both tests.
11835 ac_preproc_ok=:
11836 break
11837 fi
11838 rm -f conftest.err conftest.$ac_ext
11839
11840 done
11841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11842 rm -f conftest.err conftest.$ac_ext
11843 if $ac_preproc_ok; then
11844   :
11845 else
11846   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11847 See \`config.log' for more details." >&5
11848 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11849 See \`config.log' for more details." >&2;}
11850    { (exit 1); exit 1; }; }
11851 fi
11852
11853 ac_ext=c
11854 ac_cpp='$CPP $CPPFLAGS'
11855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11858
11859
11860 case $host_os in
11861   *mingw32* ) ac_cv_mingw32=yes ;;
11862   *cygwin* ) ac_cv_cygwin=yes ;;
11863 esac
11864
11865
11866
11867
11868 cat >>confdefs.h <<_ACEOF
11869 #define EXEEXT "${EXEEXT}"
11870 _ACEOF
11871
11872
11873 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11874 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11875 if test "${ac_cv_lib_be_be_app+set}" = set; then
11876   echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else
11878   ac_check_lib_save_LIBS=$LIBS
11879 LIBS="-lbe -lroot -lnet $LIBS"
11880 cat >conftest.$ac_ext <<_ACEOF
11881 /* confdefs.h.  */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h.  */
11886
11887 /* Override any gcc2 internal prototype to avoid an error.  */
11888 #ifdef __cplusplus
11889 extern "C"
11890 #endif
11891 /* We use char because int might match the return type of a gcc2
11892    builtin and then its argument prototype would still apply.  */
11893 char be_app ();
11894 int
11895 main ()
11896 {
11897 be_app ();
11898   ;
11899   return 0;
11900 }
11901 _ACEOF
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904   (eval $ac_link) 2>conftest.er1
11905   ac_status=$?
11906   grep -v '^ *+' conftest.er1 >conftest.err
11907   rm -f conftest.er1
11908   cat conftest.err >&5
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); } &&
11911          { ac_try='test -z "$ac_c_werror_flag"
11912                          || test ! -s conftest.err'
11913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914   (eval $ac_try) 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); }; } &&
11918          { ac_try='test -s conftest$ac_exeext'
11919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920   (eval $ac_try) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); }; }; then
11924   ac_cv_lib_be_be_app=yes
11925 else
11926   echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11928
11929 ac_cv_lib_be_be_app=no
11930 fi
11931 rm -f conftest.err conftest.$ac_objext \
11932       conftest$ac_exeext conftest.$ac_ext
11933 LIBS=$ac_check_lib_save_LIBS
11934 fi
11935 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11936 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11937 if test $ac_cv_lib_be_be_app = yes; then
11938   LIBS="$LIBS -lbe -lroot -lnet"
11939 else
11940   :
11941 fi
11942
11943
11944 ac_ext=c
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949 if test -n "$ac_tool_prefix"; then
11950   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11951 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11952 echo "$as_me:$LINENO: checking for $ac_word" >&5
11953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11954 if test "${ac_cv_prog_CC+set}" = set; then
11955   echo $ECHO_N "(cached) $ECHO_C" >&6
11956 else
11957   if test -n "$CC"; then
11958   ac_cv_prog_CC="$CC" # Let the user override the test.
11959 else
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11962 do
11963   IFS=$as_save_IFS
11964   test -z "$as_dir" && as_dir=.
11965   for ac_exec_ext in '' $ac_executable_extensions; do
11966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11967     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11969     break 2
11970   fi
11971 done
11972 done
11973
11974 fi
11975 fi
11976 CC=$ac_cv_prog_CC
11977 if test -n "$CC"; then
11978   echo "$as_me:$LINENO: result: $CC" >&5
11979 echo "${ECHO_T}$CC" >&6
11980 else
11981   echo "$as_me:$LINENO: result: no" >&5
11982 echo "${ECHO_T}no" >&6
11983 fi
11984
11985 fi
11986 if test -z "$ac_cv_prog_CC"; then
11987   ac_ct_CC=$CC
11988   # Extract the first word of "gcc", so it can be a program name with args.
11989 set dummy gcc; ac_word=$2
11990 echo "$as_me:$LINENO: checking for $ac_word" >&5
11991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11993   echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995   if test -n "$ac_ct_CC"; then
11996   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11997 else
11998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999 for as_dir in $PATH
12000 do
12001   IFS=$as_save_IFS
12002   test -z "$as_dir" && as_dir=.
12003   for ac_exec_ext in '' $ac_executable_extensions; do
12004   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12005     ac_cv_prog_ac_ct_CC="gcc"
12006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12007     break 2
12008   fi
12009 done
12010 done
12011
12012 fi
12013 fi
12014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12015 if test -n "$ac_ct_CC"; then
12016   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12017 echo "${ECHO_T}$ac_ct_CC" >&6
12018 else
12019   echo "$as_me:$LINENO: result: no" >&5
12020 echo "${ECHO_T}no" >&6
12021 fi
12022
12023   CC=$ac_ct_CC
12024 else
12025   CC="$ac_cv_prog_CC"
12026 fi
12027
12028 if test -z "$CC"; then
12029   if test -n "$ac_tool_prefix"; then
12030   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12031 set dummy ${ac_tool_prefix}cc; ac_word=$2
12032 echo "$as_me:$LINENO: checking for $ac_word" >&5
12033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12034 if test "${ac_cv_prog_CC+set}" = set; then
12035   echo $ECHO_N "(cached) $ECHO_C" >&6
12036 else
12037   if test -n "$CC"; then
12038   ac_cv_prog_CC="$CC" # Let the user override the test.
12039 else
12040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12042 do
12043   IFS=$as_save_IFS
12044   test -z "$as_dir" && as_dir=.
12045   for ac_exec_ext in '' $ac_executable_extensions; do
12046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12047     ac_cv_prog_CC="${ac_tool_prefix}cc"
12048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12049     break 2
12050   fi
12051 done
12052 done
12053
12054 fi
12055 fi
12056 CC=$ac_cv_prog_CC
12057 if test -n "$CC"; then
12058   echo "$as_me:$LINENO: result: $CC" >&5
12059 echo "${ECHO_T}$CC" >&6
12060 else
12061   echo "$as_me:$LINENO: result: no" >&5
12062 echo "${ECHO_T}no" >&6
12063 fi
12064
12065 fi
12066 if test -z "$ac_cv_prog_CC"; then
12067   ac_ct_CC=$CC
12068   # Extract the first word of "cc", so it can be a program name with args.
12069 set dummy cc; ac_word=$2
12070 echo "$as_me:$LINENO: checking for $ac_word" >&5
12071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12073   echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075   if test -n "$ac_ct_CC"; then
12076   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12077 else
12078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079 for as_dir in $PATH
12080 do
12081   IFS=$as_save_IFS
12082   test -z "$as_dir" && as_dir=.
12083   for ac_exec_ext in '' $ac_executable_extensions; do
12084   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12085     ac_cv_prog_ac_ct_CC="cc"
12086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12087     break 2
12088   fi
12089 done
12090 done
12091
12092 fi
12093 fi
12094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12095 if test -n "$ac_ct_CC"; then
12096   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12097 echo "${ECHO_T}$ac_ct_CC" >&6
12098 else
12099   echo "$as_me:$LINENO: result: no" >&5
12100 echo "${ECHO_T}no" >&6
12101 fi
12102
12103   CC=$ac_ct_CC
12104 else
12105   CC="$ac_cv_prog_CC"
12106 fi
12107
12108 fi
12109 if test -z "$CC"; then
12110   # Extract the first word of "cc", so it can be a program name with args.
12111 set dummy cc; ac_word=$2
12112 echo "$as_me:$LINENO: checking for $ac_word" >&5
12113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12114 if test "${ac_cv_prog_CC+set}" = set; then
12115   echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117   if test -n "$CC"; then
12118   ac_cv_prog_CC="$CC" # Let the user override the test.
12119 else
12120   ac_prog_rejected=no
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $PATH
12123 do
12124   IFS=$as_save_IFS
12125   test -z "$as_dir" && as_dir=.
12126   for ac_exec_ext in '' $ac_executable_extensions; do
12127   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12128     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12129        ac_prog_rejected=yes
12130        continue
12131      fi
12132     ac_cv_prog_CC="cc"
12133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12134     break 2
12135   fi
12136 done
12137 done
12138
12139 if test $ac_prog_rejected = yes; then
12140   # We found a bogon in the path, so make sure we never use it.
12141   set dummy $ac_cv_prog_CC
12142   shift
12143   if test $# != 0; then
12144     # We chose a different compiler from the bogus one.
12145     # However, it has the same basename, so the bogon will be chosen
12146     # first if we set CC to just the basename; use the full file name.
12147     shift
12148     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12149   fi
12150 fi
12151 fi
12152 fi
12153 CC=$ac_cv_prog_CC
12154 if test -n "$CC"; then
12155   echo "$as_me:$LINENO: result: $CC" >&5
12156 echo "${ECHO_T}$CC" >&6
12157 else
12158   echo "$as_me:$LINENO: result: no" >&5
12159 echo "${ECHO_T}no" >&6
12160 fi
12161
12162 fi
12163 if test -z "$CC"; then
12164   if test -n "$ac_tool_prefix"; then
12165   for ac_prog in cl
12166   do
12167     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12169 echo "$as_me:$LINENO: checking for $ac_word" >&5
12170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12171 if test "${ac_cv_prog_CC+set}" = set; then
12172   echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174   if test -n "$CC"; then
12175   ac_cv_prog_CC="$CC" # Let the user override the test.
12176 else
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH
12179 do
12180   IFS=$as_save_IFS
12181   test -z "$as_dir" && as_dir=.
12182   for ac_exec_ext in '' $ac_executable_extensions; do
12183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12184     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12186     break 2
12187   fi
12188 done
12189 done
12190
12191 fi
12192 fi
12193 CC=$ac_cv_prog_CC
12194 if test -n "$CC"; then
12195   echo "$as_me:$LINENO: result: $CC" >&5
12196 echo "${ECHO_T}$CC" >&6
12197 else
12198   echo "$as_me:$LINENO: result: no" >&5
12199 echo "${ECHO_T}no" >&6
12200 fi
12201
12202     test -n "$CC" && break
12203   done
12204 fi
12205 if test -z "$CC"; then
12206   ac_ct_CC=$CC
12207   for ac_prog in cl
12208 do
12209   # Extract the first word of "$ac_prog", so it can be a program name with args.
12210 set dummy $ac_prog; ac_word=$2
12211 echo "$as_me:$LINENO: checking for $ac_word" >&5
12212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12213 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12214   echo $ECHO_N "(cached) $ECHO_C" >&6
12215 else
12216   if test -n "$ac_ct_CC"; then
12217   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12218 else
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $PATH
12221 do
12222   IFS=$as_save_IFS
12223   test -z "$as_dir" && as_dir=.
12224   for ac_exec_ext in '' $ac_executable_extensions; do
12225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12226     ac_cv_prog_ac_ct_CC="$ac_prog"
12227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12228     break 2
12229   fi
12230 done
12231 done
12232
12233 fi
12234 fi
12235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12236 if test -n "$ac_ct_CC"; then
12237   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12238 echo "${ECHO_T}$ac_ct_CC" >&6
12239 else
12240   echo "$as_me:$LINENO: result: no" >&5
12241 echo "${ECHO_T}no" >&6
12242 fi
12243
12244   test -n "$ac_ct_CC" && break
12245 done
12246
12247   CC=$ac_ct_CC
12248 fi
12249
12250 fi
12251
12252
12253 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12254 See \`config.log' for more details." >&5
12255 echo "$as_me: error: no acceptable C compiler found in \$PATH
12256 See \`config.log' for more details." >&2;}
12257    { (exit 1); exit 1; }; }
12258
12259 # Provide some information about the compiler.
12260 echo "$as_me:$LINENO:" \
12261      "checking for C compiler version" >&5
12262 ac_compiler=`set X $ac_compile; echo $2`
12263 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12264   (eval $ac_compiler --version </dev/null >&5) 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); }
12268 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12269   (eval $ac_compiler -v </dev/null >&5) 2>&5
12270   ac_status=$?
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); }
12273 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12274   (eval $ac_compiler -V </dev/null >&5) 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); }
12278
12279 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12280 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12281 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12282   echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284   cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h.  */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h.  */
12290
12291 int
12292 main ()
12293 {
12294 #ifndef __GNUC__
12295        choke me
12296 #endif
12297
12298   ;
12299   return 0;
12300 }
12301 _ACEOF
12302 rm -f conftest.$ac_objext
12303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12304   (eval $ac_compile) 2>conftest.er1
12305   ac_status=$?
12306   grep -v '^ *+' conftest.er1 >conftest.err
12307   rm -f conftest.er1
12308   cat conftest.err >&5
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); } &&
12311          { ac_try='test -z "$ac_c_werror_flag"
12312                          || test ! -s conftest.err'
12313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314   (eval $ac_try) 2>&5
12315   ac_status=$?
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); }; } &&
12318          { ac_try='test -s conftest.$ac_objext'
12319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320   (eval $ac_try) 2>&5
12321   ac_status=$?
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); }; }; then
12324   ac_compiler_gnu=yes
12325 else
12326   echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12328
12329 ac_compiler_gnu=no
12330 fi
12331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12332 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12333
12334 fi
12335 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12336 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12337 GCC=`test $ac_compiler_gnu = yes && echo yes`
12338 ac_test_CFLAGS=${CFLAGS+set}
12339 ac_save_CFLAGS=$CFLAGS
12340 CFLAGS="-g"
12341 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12342 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12343 if test "${ac_cv_prog_cc_g+set}" = set; then
12344   echo $ECHO_N "(cached) $ECHO_C" >&6
12345 else
12346   cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h.  */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h.  */
12352
12353 int
12354 main ()
12355 {
12356
12357   ;
12358   return 0;
12359 }
12360 _ACEOF
12361 rm -f conftest.$ac_objext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12363   (eval $ac_compile) 2>conftest.er1
12364   ac_status=$?
12365   grep -v '^ *+' conftest.er1 >conftest.err
12366   rm -f conftest.er1
12367   cat conftest.err >&5
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); } &&
12370          { ac_try='test -z "$ac_c_werror_flag"
12371                          || test ! -s conftest.err'
12372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373   (eval $ac_try) 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); }; } &&
12377          { ac_try='test -s conftest.$ac_objext'
12378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379   (eval $ac_try) 2>&5
12380   ac_status=$?
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); }; }; then
12383   ac_cv_prog_cc_g=yes
12384 else
12385   echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12387
12388 ac_cv_prog_cc_g=no
12389 fi
12390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12391 fi
12392 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12393 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12394 if test "$ac_test_CFLAGS" = set; then
12395   CFLAGS=$ac_save_CFLAGS
12396 elif test $ac_cv_prog_cc_g = yes; then
12397   if test "$GCC" = yes; then
12398     CFLAGS="-g -O2"
12399   else
12400     CFLAGS="-g"
12401   fi
12402 else
12403   if test "$GCC" = yes; then
12404     CFLAGS="-O2"
12405   else
12406     CFLAGS=
12407   fi
12408 fi
12409 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12410 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12411 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12412   echo $ECHO_N "(cached) $ECHO_C" >&6
12413 else
12414   ac_cv_prog_cc_stdc=no
12415 ac_save_CC=$CC
12416 cat >conftest.$ac_ext <<_ACEOF
12417 /* confdefs.h.  */
12418 _ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h.  */
12422 #include <stdarg.h>
12423 #include <stdio.h>
12424 #include <sys/types.h>
12425 #include <sys/stat.h>
12426 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12427 struct buf { int x; };
12428 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12429 static char *e (p, i)
12430      char **p;
12431      int i;
12432 {
12433   return p[i];
12434 }
12435 static char *f (char * (*g) (char **, int), char **p, ...)
12436 {
12437   char *s;
12438   va_list v;
12439   va_start (v,p);
12440   s = g (p, va_arg (v,int));
12441   va_end (v);
12442   return s;
12443 }
12444
12445 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12446    function prototypes and stuff, but not '\xHH' hex character constants.
12447    These don't provoke an error unfortunately, instead are silently treated
12448    as 'x'.  The following induces an error, until -std1 is added to get
12449    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12450    array size at least.  It's necessary to write '\x00'==0 to get something
12451    that's true only with -std1.  */
12452 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12453
12454 int test (int i, double x);
12455 struct s1 {int (*f) (int a);};
12456 struct s2 {int (*f) (double a);};
12457 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12458 int argc;
12459 char **argv;
12460 int
12461 main ()
12462 {
12463 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12464   ;
12465   return 0;
12466 }
12467 _ACEOF
12468 # Don't try gcc -ansi; that turns off useful extensions and
12469 # breaks some systems' header files.
12470 # AIX                   -qlanglvl=ansi
12471 # Ultrix and OSF/1      -std1
12472 # HP-UX 10.20 and later -Ae
12473 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12474 # SVR4                  -Xc -D__EXTENSIONS__
12475 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12476 do
12477   CC="$ac_save_CC $ac_arg"
12478   rm -f conftest.$ac_objext
12479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12480   (eval $ac_compile) 2>conftest.er1
12481   ac_status=$?
12482   grep -v '^ *+' conftest.er1 >conftest.err
12483   rm -f conftest.er1
12484   cat conftest.err >&5
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); } &&
12487          { ac_try='test -z "$ac_c_werror_flag"
12488                          || test ! -s conftest.err'
12489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490   (eval $ac_try) 2>&5
12491   ac_status=$?
12492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493   (exit $ac_status); }; } &&
12494          { ac_try='test -s conftest.$ac_objext'
12495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496   (eval $ac_try) 2>&5
12497   ac_status=$?
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); }; }; then
12500   ac_cv_prog_cc_stdc=$ac_arg
12501 break
12502 else
12503   echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12505
12506 fi
12507 rm -f conftest.err conftest.$ac_objext
12508 done
12509 rm -f conftest.$ac_ext conftest.$ac_objext
12510 CC=$ac_save_CC
12511
12512 fi
12513
12514 case "x$ac_cv_prog_cc_stdc" in
12515   x|xno)
12516     echo "$as_me:$LINENO: result: none needed" >&5
12517 echo "${ECHO_T}none needed" >&6 ;;
12518   *)
12519     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12520 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12521     CC="$CC $ac_cv_prog_cc_stdc" ;;
12522 esac
12523
12524 # Some people use a C++ compiler to compile C.  Since we use `exit',
12525 # in C++ we need to declare it.  In case someone uses the same compiler
12526 # for both compiling C and C++ we need to have the C++ compiler decide
12527 # the declaration of exit, since it's the most demanding environment.
12528 cat >conftest.$ac_ext <<_ACEOF
12529 #ifndef __cplusplus
12530   choke me
12531 #endif
12532 _ACEOF
12533 rm -f conftest.$ac_objext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12535   (eval $ac_compile) 2>conftest.er1
12536   ac_status=$?
12537   grep -v '^ *+' conftest.er1 >conftest.err
12538   rm -f conftest.er1
12539   cat conftest.err >&5
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); } &&
12542          { ac_try='test -z "$ac_c_werror_flag"
12543                          || test ! -s conftest.err'
12544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545   (eval $ac_try) 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; } &&
12549          { ac_try='test -s conftest.$ac_objext'
12550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551   (eval $ac_try) 2>&5
12552   ac_status=$?
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); }; }; then
12555   for ac_declaration in \
12556    '' \
12557    'extern "C" void std::exit (int) throw (); using std::exit;' \
12558    'extern "C" void std::exit (int); using std::exit;' \
12559    'extern "C" void exit (int) throw ();' \
12560    'extern "C" void exit (int);' \
12561    'void exit (int);'
12562 do
12563   cat >conftest.$ac_ext <<_ACEOF
12564 /* confdefs.h.  */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h.  */
12569 $ac_declaration
12570 #include <stdlib.h>
12571 int
12572 main ()
12573 {
12574 exit (42);
12575   ;
12576   return 0;
12577 }
12578 _ACEOF
12579 rm -f conftest.$ac_objext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12581   (eval $ac_compile) 2>conftest.er1
12582   ac_status=$?
12583   grep -v '^ *+' conftest.er1 >conftest.err
12584   rm -f conftest.er1
12585   cat conftest.err >&5
12586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587   (exit $ac_status); } &&
12588          { ac_try='test -z "$ac_c_werror_flag"
12589                          || test ! -s conftest.err'
12590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591   (eval $ac_try) 2>&5
12592   ac_status=$?
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); }; } &&
12595          { ac_try='test -s conftest.$ac_objext'
12596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597   (eval $ac_try) 2>&5
12598   ac_status=$?
12599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600   (exit $ac_status); }; }; then
12601   :
12602 else
12603   echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12605
12606 continue
12607 fi
12608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12609   cat >conftest.$ac_ext <<_ACEOF
12610 /* confdefs.h.  */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h.  */
12615 $ac_declaration
12616 int
12617 main ()
12618 {
12619 exit (42);
12620   ;
12621   return 0;
12622 }
12623 _ACEOF
12624 rm -f conftest.$ac_objext
12625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12626   (eval $ac_compile) 2>conftest.er1
12627   ac_status=$?
12628   grep -v '^ *+' conftest.er1 >conftest.err
12629   rm -f conftest.er1
12630   cat conftest.err >&5
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); } &&
12633          { ac_try='test -z "$ac_c_werror_flag"
12634                          || test ! -s conftest.err'
12635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636   (eval $ac_try) 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); }; } &&
12640          { ac_try='test -s conftest.$ac_objext'
12641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642   (eval $ac_try) 2>&5
12643   ac_status=$?
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); }; }; then
12646   break
12647 else
12648   echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12650
12651 fi
12652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12653 done
12654 rm -f conftest*
12655 if test -n "$ac_declaration"; then
12656   echo '#ifdef __cplusplus' >>confdefs.h
12657   echo $ac_declaration      >>confdefs.h
12658   echo '#endif'             >>confdefs.h
12659 fi
12660
12661 else
12662   echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12664
12665 fi
12666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12667 ac_ext=c
12668 ac_cpp='$CPP $CPPFLAGS'
12669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12672
12673 depcc="$CC"   am_compiler_list=
12674
12675 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12676 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12677 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12678   echo $ECHO_N "(cached) $ECHO_C" >&6
12679 else
12680   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12681   # We make a subdir and do the tests there.  Otherwise we can end up
12682   # making bogus files that we don't know about and never remove.  For
12683   # instance it was reported that on HP-UX the gcc test will end up
12684   # making a dummy file named `D' -- because `-MD' means `put the output
12685   # in D'.
12686   mkdir conftest.dir
12687   # Copy depcomp to subdir because otherwise we won't find it if we're
12688   # using a relative directory.
12689   cp "$am_depcomp" conftest.dir
12690   cd conftest.dir
12691   # We will build objects and dependencies in a subdirectory because
12692   # it helps to detect inapplicable dependency modes.  For instance
12693   # both Tru64's cc and ICC support -MD to output dependencies as a
12694   # side effect of compilation, but ICC will put the dependencies in
12695   # the current directory while Tru64 will put them in the object
12696   # directory.
12697   mkdir sub
12698
12699   am_cv_CC_dependencies_compiler_type=none
12700   if test "$am_compiler_list" = ""; then
12701      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12702   fi
12703   for depmode in $am_compiler_list; do
12704     # Setup a source with many dependencies, because some compilers
12705     # like to wrap large dependency lists on column 80 (with \), and
12706     # we should not choose a depcomp mode which is confused by this.
12707     #
12708     # We need to recreate these files for each test, as the compiler may
12709     # overwrite some of them when testing with obscure command lines.
12710     # This happens at least with the AIX C compiler.
12711     : > sub/conftest.c
12712     for i in 1 2 3 4 5 6; do
12713       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12714       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12715       # Solaris 8's {/usr,}/bin/sh.
12716       touch sub/conftst$i.h
12717     done
12718     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12719
12720     case $depmode in
12721     nosideeffect)
12722       # after this tag, mechanisms are not by side-effect, so they'll
12723       # only be used when explicitly requested
12724       if test "x$enable_dependency_tracking" = xyes; then
12725         continue
12726       else
12727         break
12728       fi
12729       ;;
12730     none) break ;;
12731     esac
12732     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12733     # mode.  It turns out that the SunPro C++ compiler does not properly
12734     # handle `-M -o', and we need to detect this.
12735     if depmode=$depmode \
12736        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12737        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12738        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12739          >/dev/null 2>conftest.err &&
12740        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12741        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12742        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12743       # icc doesn't choke on unknown options, it will just issue warnings
12744       # or remarks (even with -Werror).  So we grep stderr for any message
12745       # that says an option was ignored or not supported.
12746       # When given -MP, icc 7.0 and 7.1 complain thusly:
12747       #   icc: Command line warning: ignoring option '-M'; no argument required
12748       # The diagnosis changed in icc 8.0:
12749       #   icc: Command line remark: option '-MP' not supported
12750       if (grep 'ignoring option' conftest.err ||
12751           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12752         am_cv_CC_dependencies_compiler_type=$depmode
12753         break
12754       fi
12755     fi
12756   done
12757
12758   cd ..
12759   rm -rf conftest.dir
12760 else
12761   am_cv_CC_dependencies_compiler_type=none
12762 fi
12763
12764 fi
12765 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12766 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12767 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12768
12769
12770
12771 if
12772   test "x$enable_dependency_tracking" != xno \
12773   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12774   am__fastdepCC_TRUE=
12775   am__fastdepCC_FALSE='#'
12776 else
12777   am__fastdepCC_TRUE='#'
12778   am__fastdepCC_FALSE=
12779 fi
12780
12781
12782 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12783         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12784 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12785    { (exit 1); exit 1; }; }
12786 fi
12787
12788 # test for make depend flag
12789 OL_MKDEP=
12790 OL_MKDEP_FLAGS=
12791 if test -z "${MKDEP}"; then
12792         OL_MKDEP="${CC-cc}"
12793         if test -z "${MKDEP_FLAGS}"; then
12794                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12795 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12796 if test "${ol_cv_mkdep+set}" = set; then
12797   echo $ECHO_N "(cached) $ECHO_C" >&6
12798 else
12799
12800                         ol_cv_mkdep=no
12801                         for flag in "-M" "-xM"; do
12802                                 cat > conftest.c <<EOF
12803  noCode;
12804 EOF
12805                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807   (eval $ac_try) 2>&5
12808   ac_status=$?
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); }; } \
12811                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12812                                 then
12813                                         if test ! -f conftest."${ac_object}" ; then
12814                                                 ol_cv_mkdep=$flag
12815                                                 OL_MKDEP_FLAGS="$flag"
12816                                                 break
12817                                         fi
12818                                 fi
12819                         done
12820                         rm -f conftest*
12821
12822 fi
12823 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12824 echo "${ECHO_T}$ol_cv_mkdep" >&6
12825         else
12826                 cc_cv_mkdep=yes
12827                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12828         fi
12829 else
12830         cc_cv_mkdep=yes
12831         OL_MKDEP="${MKDEP}"
12832         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12833 fi
12834
12835
12836
12837 if test "${ol_cv_mkdep}" = no ; then
12838         # this will soon become an error
12839         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12840 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12841 fi
12842
12843 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12844 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12845 if test "${ac_cv_lib_s_afopen+set}" = set; then
12846   echo $ECHO_N "(cached) $ECHO_C" >&6
12847 else
12848   ac_check_lib_save_LIBS=$LIBS
12849 LIBS="-ls  $LIBS"
12850 cat >conftest.$ac_ext <<_ACEOF
12851 /* confdefs.h.  */
12852 _ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h.  */
12856
12857 /* Override any gcc2 internal prototype to avoid an error.  */
12858 #ifdef __cplusplus
12859 extern "C"
12860 #endif
12861 /* We use char because int might match the return type of a gcc2
12862    builtin and then its argument prototype would still apply.  */
12863 char afopen ();
12864 int
12865 main ()
12866 {
12867 afopen ();
12868   ;
12869   return 0;
12870 }
12871 _ACEOF
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12874   (eval $ac_link) 2>conftest.er1
12875   ac_status=$?
12876   grep -v '^ *+' conftest.er1 >conftest.err
12877   rm -f conftest.er1
12878   cat conftest.err >&5
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); } &&
12881          { ac_try='test -z "$ac_c_werror_flag"
12882                          || test ! -s conftest.err'
12883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884   (eval $ac_try) 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); }; } &&
12888          { ac_try='test -s conftest$ac_exeext'
12889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890   (eval $ac_try) 2>&5
12891   ac_status=$?
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); }; }; then
12894   ac_cv_lib_s_afopen=yes
12895 else
12896   echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12898
12899 ac_cv_lib_s_afopen=no
12900 fi
12901 rm -f conftest.err conftest.$ac_objext \
12902       conftest$ac_exeext conftest.$ac_ext
12903 LIBS=$ac_check_lib_save_LIBS
12904 fi
12905 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12906 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12907 if test $ac_cv_lib_s_afopen = yes; then
12908
12909         AUTH_LIBS=-ls
12910
12911 cat >>confdefs.h <<\_ACEOF
12912 #define HAVE_AIX_SECURITY 1
12913 _ACEOF
12914
12915
12916 fi
12917
12918
12919 case "$target" in
12920 *-ibm-openedition)
12921         ac_cv_func_getopt=no
12922
12923 cat >>confdefs.h <<\_ACEOF
12924 #define BOTH_STRINGS_H 1
12925 _ACEOF
12926
12927         ;;
12928 esac
12929
12930 ol_link_modules=no
12931 WITH_MODULES_ENABLED=no
12932 if test $ol_enable_modules != no ; then
12933
12934 for ac_header in ltdl.h
12935 do
12936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12938   echo "$as_me:$LINENO: checking for $ac_header" >&5
12939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12941   echo $ECHO_N "(cached) $ECHO_C" >&6
12942 fi
12943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12945 else
12946   # Is the header compilable?
12947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12949 cat >conftest.$ac_ext <<_ACEOF
12950 /* confdefs.h.  */
12951 _ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h.  */
12955 $ac_includes_default
12956 #include <$ac_header>
12957 _ACEOF
12958 rm -f conftest.$ac_objext
12959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12960   (eval $ac_compile) 2>conftest.er1
12961   ac_status=$?
12962   grep -v '^ *+' conftest.er1 >conftest.err
12963   rm -f conftest.er1
12964   cat conftest.err >&5
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); } &&
12967          { ac_try='test -z "$ac_c_werror_flag"
12968                          || test ! -s conftest.err'
12969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970   (eval $ac_try) 2>&5
12971   ac_status=$?
12972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973   (exit $ac_status); }; } &&
12974          { ac_try='test -s conftest.$ac_objext'
12975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976   (eval $ac_try) 2>&5
12977   ac_status=$?
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); }; }; then
12980   ac_header_compiler=yes
12981 else
12982   echo "$as_me: failed program was:" >&5
12983 sed 's/^/| /' conftest.$ac_ext >&5
12984
12985 ac_header_compiler=no
12986 fi
12987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12989 echo "${ECHO_T}$ac_header_compiler" >&6
12990
12991 # Is the header present?
12992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12994 cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h.  */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h.  */
13000 #include <$ac_header>
13001 _ACEOF
13002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13003   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13004   ac_status=$?
13005   grep -v '^ *+' conftest.er1 >conftest.err
13006   rm -f conftest.er1
13007   cat conftest.err >&5
13008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009   (exit $ac_status); } >/dev/null; then
13010   if test -s conftest.err; then
13011     ac_cpp_err=$ac_c_preproc_warn_flag
13012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13013   else
13014     ac_cpp_err=
13015   fi
13016 else
13017   ac_cpp_err=yes
13018 fi
13019 if test -z "$ac_cpp_err"; then
13020   ac_header_preproc=yes
13021 else
13022   echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13024
13025   ac_header_preproc=no
13026 fi
13027 rm -f conftest.err conftest.$ac_ext
13028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13029 echo "${ECHO_T}$ac_header_preproc" >&6
13030
13031 # So?  What about this header?
13032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13033   yes:no: )
13034     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13038     ac_header_preproc=yes
13039     ;;
13040   no:yes:* )
13041     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13043     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13044 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13045     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13047     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13048 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13051     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13053     (
13054       cat <<\_ASBOX
13055 ## ------------------------------------------ ##
13056 ## Report this to the AC_PACKAGE_NAME lists.  ##
13057 ## ------------------------------------------ ##
13058 _ASBOX
13059     ) |
13060       sed "s/^/$as_me: WARNING:     /" >&2
13061     ;;
13062 esac
13063 echo "$as_me:$LINENO: checking for $ac_header" >&5
13064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13066   echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068   eval "$as_ac_Header=\$ac_header_preproc"
13069 fi
13070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13072
13073 fi
13074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13075   cat >>confdefs.h <<_ACEOF
13076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13077 _ACEOF
13078
13079 fi
13080
13081 done
13082
13083
13084         if test $ac_cv_header_ltdl_h = no ; then
13085                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13086 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13087    { (exit 1); exit 1; }; }
13088         fi
13089
13090         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13091 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13092 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13093   echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095   ac_check_lib_save_LIBS=$LIBS
13096 LIBS="-lltdl  $LIBS"
13097 cat >conftest.$ac_ext <<_ACEOF
13098 /* confdefs.h.  */
13099 _ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h.  */
13103
13104 /* Override any gcc2 internal prototype to avoid an error.  */
13105 #ifdef __cplusplus
13106 extern "C"
13107 #endif
13108 /* We use char because int might match the return type of a gcc2
13109    builtin and then its argument prototype would still apply.  */
13110 char lt_dlinit ();
13111 int
13112 main ()
13113 {
13114 lt_dlinit ();
13115   ;
13116   return 0;
13117 }
13118 _ACEOF
13119 rm -f conftest.$ac_objext conftest$ac_exeext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13121   (eval $ac_link) 2>conftest.er1
13122   ac_status=$?
13123   grep -v '^ *+' conftest.er1 >conftest.err
13124   rm -f conftest.er1
13125   cat conftest.err >&5
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); } &&
13128          { ac_try='test -z "$ac_c_werror_flag"
13129                          || test ! -s conftest.err'
13130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131   (eval $ac_try) 2>&5
13132   ac_status=$?
13133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134   (exit $ac_status); }; } &&
13135          { ac_try='test -s conftest$ac_exeext'
13136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137   (eval $ac_try) 2>&5
13138   ac_status=$?
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); }; }; then
13141   ac_cv_lib_ltdl_lt_dlinit=yes
13142 else
13143   echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13145
13146 ac_cv_lib_ltdl_lt_dlinit=no
13147 fi
13148 rm -f conftest.err conftest.$ac_objext \
13149       conftest$ac_exeext conftest.$ac_ext
13150 LIBS=$ac_check_lib_save_LIBS
13151 fi
13152 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13153 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13154 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13155
13156                 MODULES_LIBS=-lltdl
13157
13158 cat >>confdefs.h <<\_ACEOF
13159 #define HAVE_LIBLTDL 1
13160 _ACEOF
13161
13162
13163 fi
13164
13165
13166         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13167                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13168 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13169    { (exit 1); exit 1; }; }
13170         fi
13171         ol_link_modules=yes
13172         WITH_MODULES_ENABLED=yes
13173
13174 else
13175         for i in $Backends; do
13176                 eval "ol_tmp=\$ol_enable_$i"
13177                 if test $ol_tmp = mod ; then
13178                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13179 echo "$as_me: WARNING: building static $i backend" >&2;}
13180                         eval "ol_enable_$i=yes"
13181                 fi
13182         done
13183         for i in $Overlays; do
13184                 eval "ol_tmp=\$ol_enable_$i"
13185                 if test $ol_tmp = mod ; then
13186                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13187 echo "$as_me: WARNING: building static $i overlay" >&2;}
13188                         eval "ol_enable_$i=yes"
13189                 fi
13190         done
13191 fi
13192
13193 # test for EBCDIC
13194 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13195 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13196 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13197   echo $ECHO_N "(cached) $ECHO_C" >&6
13198 else
13199
13200         cat >conftest.$ac_ext <<_ACEOF
13201 /* confdefs.h.  */
13202 _ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h.  */
13206
13207 #if !('M' == 0xd4)
13208 #include <__ASCII__/generate_error.h>
13209 #endif
13210
13211 _ACEOF
13212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13214   ac_status=$?
13215   grep -v '^ *+' conftest.er1 >conftest.err
13216   rm -f conftest.er1
13217   cat conftest.err >&5
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); } >/dev/null; then
13220   if test -s conftest.err; then
13221     ac_cpp_err=$ac_c_preproc_warn_flag
13222     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13223   else
13224     ac_cpp_err=
13225   fi
13226 else
13227   ac_cpp_err=yes
13228 fi
13229 if test -z "$ac_cpp_err"; then
13230   ol_cv_cpp_ebcdic=yes
13231 else
13232   echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13234
13235   ol_cv_cpp_ebcdic=no
13236 fi
13237 rm -f conftest.err conftest.$ac_ext
13238 fi
13239 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13240 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13241 if test $ol_cv_cpp_ebcdic = yes ; then
13242
13243 cat >>confdefs.h <<\_ACEOF
13244 #define HAVE_EBCDIC 1
13245 _ACEOF
13246
13247 fi
13248
13249 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13250 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13251 if test "${ol_cv_header_stdc+set}" = set; then
13252   echo $ECHO_N "(cached) $ECHO_C" >&6
13253 else
13254   cat >conftest.$ac_ext <<_ACEOF
13255 /* confdefs.h.  */
13256 _ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h.  */
13260 #include <stdlib.h>
13261 #include <stdarg.h>
13262 #include <string.h>
13263 #include <float.h>
13264 _ACEOF
13265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13267   ac_status=$?
13268   grep -v '^ *+' conftest.er1 >conftest.err
13269   rm -f conftest.er1
13270   cat conftest.err >&5
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); } >/dev/null; then
13273   if test -s conftest.err; then
13274     ac_cpp_err=$ac_c_preproc_warn_flag
13275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13276   else
13277     ac_cpp_err=
13278   fi
13279 else
13280   ac_cpp_err=yes
13281 fi
13282 if test -z "$ac_cpp_err"; then
13283   ol_cv_header_stdc=yes
13284 else
13285   echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13287
13288   ol_cv_header_stdc=no
13289 fi
13290 rm -f conftest.err conftest.$ac_ext
13291
13292 if test $ol_cv_header_stdc = yes; then
13293   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13294 cat >conftest.$ac_ext <<_ACEOF
13295 /* confdefs.h.  */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h.  */
13300 #include <string.h>
13301
13302 _ACEOF
13303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13304   $EGREP "memchr" >/dev/null 2>&1; then
13305   :
13306 else
13307   ol_cv_header_stdc=no
13308 fi
13309 rm -f conftest*
13310
13311 fi
13312
13313 if test $ol_cv_header_stdc = yes; then
13314   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13315 cat >conftest.$ac_ext <<_ACEOF
13316 /* confdefs.h.  */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h.  */
13321 #include <stdlib.h>
13322
13323 _ACEOF
13324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13325   $EGREP "free" >/dev/null 2>&1; then
13326   :
13327 else
13328   ol_cv_header_stdc=no
13329 fi
13330 rm -f conftest*
13331
13332 fi
13333
13334 if test $ol_cv_header_stdc = yes; then
13335   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13336 if test "$cross_compiling" = yes; then
13337   :
13338 else
13339   cat >conftest.$ac_ext <<_ACEOF
13340 /* confdefs.h.  */
13341 _ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h.  */
13345 #include <ctype.h>
13346 #ifndef HAVE_EBCDIC
13347 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13348 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13349 #else
13350 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13351                 || ('j' <= (c) && (c) <= 'r') \
13352                 || ('s' <= (c) && (c) <= 'z'))
13353 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13354 #endif
13355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13356 int main () { int i; for (i = 0; i < 256; i++)
13357 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13358 exit (0); }
13359
13360 _ACEOF
13361 rm -f conftest$ac_exeext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13363   (eval $ac_link) 2>&5
13364   ac_status=$?
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368   (eval $ac_try) 2>&5
13369   ac_status=$?
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); }; }; then
13372   :
13373 else
13374   echo "$as_me: program exited with status $ac_status" >&5
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13377
13378 ( exit $ac_status )
13379 ol_cv_header_stdc=no
13380 fi
13381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13382 fi
13383 fi
13384 fi
13385 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13386 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13387 if test $ol_cv_header_stdc = yes; then
13388   cat >>confdefs.h <<\_ACEOF
13389 #define STDC_HEADERS 1
13390 _ACEOF
13391
13392 fi
13393 ac_cv_header_stdc=disable
13394
13395
13396 if test $ol_cv_header_stdc != yes; then
13397         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13398 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13399 fi
13400
13401
13402
13403
13404
13405
13406 ac_header_dirent=no
13407 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13408   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13409 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13410 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13412   echo $ECHO_N "(cached) $ECHO_C" >&6
13413 else
13414   cat >conftest.$ac_ext <<_ACEOF
13415 /* confdefs.h.  */
13416 _ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h.  */
13420 #include <sys/types.h>
13421 #include <$ac_hdr>
13422
13423 int
13424 main ()
13425 {
13426 if ((DIR *) 0)
13427 return 0;
13428   ;
13429   return 0;
13430 }
13431 _ACEOF
13432 rm -f conftest.$ac_objext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434   (eval $ac_compile) 2>conftest.er1
13435   ac_status=$?
13436   grep -v '^ *+' conftest.er1 >conftest.err
13437   rm -f conftest.er1
13438   cat conftest.err >&5
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); } &&
13441          { ac_try='test -z "$ac_c_werror_flag"
13442                          || test ! -s conftest.err'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; } &&
13448          { ac_try='test -s conftest.$ac_objext'
13449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450   (eval $ac_try) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; }; then
13454   eval "$as_ac_Header=yes"
13455 else
13456   echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13458
13459 eval "$as_ac_Header=no"
13460 fi
13461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13462 fi
13463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13466   cat >>confdefs.h <<_ACEOF
13467 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13468 _ACEOF
13469
13470 ac_header_dirent=$ac_hdr; break
13471 fi
13472
13473 done
13474 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13475 if test $ac_header_dirent = dirent.h; then
13476   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13477 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13478 if test "${ac_cv_search_opendir+set}" = set; then
13479   echo $ECHO_N "(cached) $ECHO_C" >&6
13480 else
13481   ac_func_search_save_LIBS=$LIBS
13482 ac_cv_search_opendir=no
13483 cat >conftest.$ac_ext <<_ACEOF
13484 /* confdefs.h.  */
13485 _ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h.  */
13489
13490 /* Override any gcc2 internal prototype to avoid an error.  */
13491 #ifdef __cplusplus
13492 extern "C"
13493 #endif
13494 /* We use char because int might match the return type of a gcc2
13495    builtin and then its argument prototype would still apply.  */
13496 char opendir ();
13497 int
13498 main ()
13499 {
13500 opendir ();
13501   ;
13502   return 0;
13503 }
13504 _ACEOF
13505 rm -f conftest.$ac_objext conftest$ac_exeext
13506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13507   (eval $ac_link) 2>conftest.er1
13508   ac_status=$?
13509   grep -v '^ *+' conftest.er1 >conftest.err
13510   rm -f conftest.er1
13511   cat conftest.err >&5
13512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); } &&
13514          { ac_try='test -z "$ac_c_werror_flag"
13515                          || test ! -s conftest.err'
13516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517   (eval $ac_try) 2>&5
13518   ac_status=$?
13519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); }; } &&
13521          { ac_try='test -s conftest$ac_exeext'
13522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523   (eval $ac_try) 2>&5
13524   ac_status=$?
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); }; }; then
13527   ac_cv_search_opendir="none required"
13528 else
13529   echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13531
13532 fi
13533 rm -f conftest.err conftest.$ac_objext \
13534       conftest$ac_exeext conftest.$ac_ext
13535 if test "$ac_cv_search_opendir" = no; then
13536   for ac_lib in dir; do
13537     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13538     cat >conftest.$ac_ext <<_ACEOF
13539 /* confdefs.h.  */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h.  */
13544
13545 /* Override any gcc2 internal prototype to avoid an error.  */
13546 #ifdef __cplusplus
13547 extern "C"
13548 #endif
13549 /* We use char because int might match the return type of a gcc2
13550    builtin and then its argument prototype would still apply.  */
13551 char opendir ();
13552 int
13553 main ()
13554 {
13555 opendir ();
13556   ;
13557   return 0;
13558 }
13559 _ACEOF
13560 rm -f conftest.$ac_objext conftest$ac_exeext
13561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13562   (eval $ac_link) 2>conftest.er1
13563   ac_status=$?
13564   grep -v '^ *+' conftest.er1 >conftest.err
13565   rm -f conftest.er1
13566   cat conftest.err >&5
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); } &&
13569          { ac_try='test -z "$ac_c_werror_flag"
13570                          || test ! -s conftest.err'
13571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572   (eval $ac_try) 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); }; } &&
13576          { ac_try='test -s conftest$ac_exeext'
13577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578   (eval $ac_try) 2>&5
13579   ac_status=$?
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); }; }; then
13582   ac_cv_search_opendir="-l$ac_lib"
13583 break
13584 else
13585   echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13587
13588 fi
13589 rm -f conftest.err conftest.$ac_objext \
13590       conftest$ac_exeext conftest.$ac_ext
13591   done
13592 fi
13593 LIBS=$ac_func_search_save_LIBS
13594 fi
13595 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13596 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13597 if test "$ac_cv_search_opendir" != no; then
13598   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13599
13600 fi
13601
13602 else
13603   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13604 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13605 if test "${ac_cv_search_opendir+set}" = set; then
13606   echo $ECHO_N "(cached) $ECHO_C" >&6
13607 else
13608   ac_func_search_save_LIBS=$LIBS
13609 ac_cv_search_opendir=no
13610 cat >conftest.$ac_ext <<_ACEOF
13611 /* confdefs.h.  */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h.  */
13616
13617 /* Override any gcc2 internal prototype to avoid an error.  */
13618 #ifdef __cplusplus
13619 extern "C"
13620 #endif
13621 /* We use char because int might match the return type of a gcc2
13622    builtin and then its argument prototype would still apply.  */
13623 char opendir ();
13624 int
13625 main ()
13626 {
13627 opendir ();
13628   ;
13629   return 0;
13630 }
13631 _ACEOF
13632 rm -f conftest.$ac_objext conftest$ac_exeext
13633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13634   (eval $ac_link) 2>conftest.er1
13635   ac_status=$?
13636   grep -v '^ *+' conftest.er1 >conftest.err
13637   rm -f conftest.er1
13638   cat conftest.err >&5
13639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); } &&
13641          { ac_try='test -z "$ac_c_werror_flag"
13642                          || test ! -s conftest.err'
13643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644   (eval $ac_try) 2>&5
13645   ac_status=$?
13646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); }; } &&
13648          { ac_try='test -s conftest$ac_exeext'
13649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650   (eval $ac_try) 2>&5
13651   ac_status=$?
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); }; }; then
13654   ac_cv_search_opendir="none required"
13655 else
13656   echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13658
13659 fi
13660 rm -f conftest.err conftest.$ac_objext \
13661       conftest$ac_exeext conftest.$ac_ext
13662 if test "$ac_cv_search_opendir" = no; then
13663   for ac_lib in x; do
13664     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13665     cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h.  */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h.  */
13671
13672 /* Override any gcc2 internal prototype to avoid an error.  */
13673 #ifdef __cplusplus
13674 extern "C"
13675 #endif
13676 /* We use char because int might match the return type of a gcc2
13677    builtin and then its argument prototype would still apply.  */
13678 char opendir ();
13679 int
13680 main ()
13681 {
13682 opendir ();
13683   ;
13684   return 0;
13685 }
13686 _ACEOF
13687 rm -f conftest.$ac_objext conftest$ac_exeext
13688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13689   (eval $ac_link) 2>conftest.er1
13690   ac_status=$?
13691   grep -v '^ *+' conftest.er1 >conftest.err
13692   rm -f conftest.er1
13693   cat conftest.err >&5
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); } &&
13696          { ac_try='test -z "$ac_c_werror_flag"
13697                          || test ! -s conftest.err'
13698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699   (eval $ac_try) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; } &&
13703          { ac_try='test -s conftest$ac_exeext'
13704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705   (eval $ac_try) 2>&5
13706   ac_status=$?
13707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708   (exit $ac_status); }; }; then
13709   ac_cv_search_opendir="-l$ac_lib"
13710 break
13711 else
13712   echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13714
13715 fi
13716 rm -f conftest.err conftest.$ac_objext \
13717       conftest$ac_exeext conftest.$ac_ext
13718   done
13719 fi
13720 LIBS=$ac_func_search_save_LIBS
13721 fi
13722 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13723 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13724 if test "$ac_cv_search_opendir" != no; then
13725   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13726
13727 fi
13728
13729 fi
13730
13731 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13732 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13733 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13734   echo $ECHO_N "(cached) $ECHO_C" >&6
13735 else
13736   cat >conftest.$ac_ext <<_ACEOF
13737 /* confdefs.h.  */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h.  */
13742 #include <sys/types.h>
13743 #include <sys/wait.h>
13744 #ifndef WEXITSTATUS
13745 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13746 #endif
13747 #ifndef WIFEXITED
13748 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13749 #endif
13750
13751 int
13752 main ()
13753 {
13754   int s;
13755   wait (&s);
13756   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13757   ;
13758   return 0;
13759 }
13760 _ACEOF
13761 rm -f conftest.$ac_objext
13762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13763   (eval $ac_compile) 2>conftest.er1
13764   ac_status=$?
13765   grep -v '^ *+' conftest.er1 >conftest.err
13766   rm -f conftest.er1
13767   cat conftest.err >&5
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); } &&
13770          { ac_try='test -z "$ac_c_werror_flag"
13771                          || test ! -s conftest.err'
13772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773   (eval $ac_try) 2>&5
13774   ac_status=$?
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); }; } &&
13777          { ac_try='test -s conftest.$ac_objext'
13778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779   (eval $ac_try) 2>&5
13780   ac_status=$?
13781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782   (exit $ac_status); }; }; then
13783   ac_cv_header_sys_wait_h=yes
13784 else
13785   echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13787
13788 ac_cv_header_sys_wait_h=no
13789 fi
13790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13791 fi
13792 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13793 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13794 if test $ac_cv_header_sys_wait_h = yes; then
13795
13796 cat >>confdefs.h <<\_ACEOF
13797 #define HAVE_SYS_WAIT_H 1
13798 _ACEOF
13799
13800 fi
13801
13802 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13803 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13804 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13805   echo $ECHO_N "(cached) $ECHO_C" >&6
13806 else
13807   cat >conftest.$ac_ext <<_ACEOF
13808 /* confdefs.h.  */
13809 _ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h.  */
13813 #include <sys/types.h>
13814 #include <termios.h>
13815 #ifdef TIOCGWINSZ
13816   yes
13817 #endif
13818
13819 _ACEOF
13820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13821   $EGREP "yes" >/dev/null 2>&1; then
13822   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13823 else
13824   ac_cv_sys_tiocgwinsz_in_termios_h=no
13825 fi
13826 rm -f conftest*
13827
13828 fi
13829 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13830 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13831
13832 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13833   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13834 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13835 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13836   echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838   cat >conftest.$ac_ext <<_ACEOF
13839 /* confdefs.h.  */
13840 _ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h.  */
13844 #include <sys/types.h>
13845 #include <sys/ioctl.h>
13846 #ifdef TIOCGWINSZ
13847   yes
13848 #endif
13849
13850 _ACEOF
13851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13852   $EGREP "yes" >/dev/null 2>&1; then
13853   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13854 else
13855   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13856 fi
13857 rm -f conftest*
13858
13859 fi
13860 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13861 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13862
13863   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13864
13865 cat >>confdefs.h <<\_ACEOF
13866 #define GWINSZ_IN_SYS_IOCTL 1
13867 _ACEOF
13868
13869   fi
13870 fi
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920 for ac_header in \
13921         arpa/inet.h             \
13922         arpa/nameser.h          \
13923         assert.h                \
13924         bits/types.h            \
13925         conio.h                 \
13926         crypt.h                 \
13927         direct.h                \
13928         errno.h                 \
13929         fcntl.h                 \
13930         filio.h                 \
13931         getopt.h                \
13932         grp.h                   \
13933         io.h                    \
13934         libutil.h               \
13935         limits.h                \
13936         locale.h                \
13937         netinet/tcp.h           \
13938         malloc.h                \
13939         memory.h                \
13940         psap.h                  \
13941         pwd.h                   \
13942         process.h               \
13943         sgtty.h                 \
13944         shadow.h                \
13945         stddef.h                \
13946         string.h                \
13947         strings.h               \
13948         sysexits.h              \
13949         sys/file.h              \
13950         sys/filio.h             \
13951         sys/errno.h             \
13952         sys/ioctl.h             \
13953         sys/param.h             \
13954         sys/resource.h          \
13955         sys/select.h            \
13956         sys/socket.h            \
13957         sys/stat.h              \
13958         sys/syslog.h            \
13959         sys/time.h              \
13960         sys/types.h             \
13961         sys/uio.h               \
13962         syslog.h                \
13963         termios.h               \
13964         unistd.h                \
13965         utime.h                 \
13966         winsock.h               \
13967         winsock2.h              \
13968
13969 do
13970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13972   echo "$as_me:$LINENO: checking for $ac_header" >&5
13973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13975   echo $ECHO_N "(cached) $ECHO_C" >&6
13976 fi
13977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13979 else
13980   # Is the header compilable?
13981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13983 cat >conftest.$ac_ext <<_ACEOF
13984 /* confdefs.h.  */
13985 _ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h.  */
13989 $ac_includes_default
13990 #include <$ac_header>
13991 _ACEOF
13992 rm -f conftest.$ac_objext
13993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13994   (eval $ac_compile) 2>conftest.er1
13995   ac_status=$?
13996   grep -v '^ *+' conftest.er1 >conftest.err
13997   rm -f conftest.er1
13998   cat conftest.err >&5
13999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000   (exit $ac_status); } &&
14001          { ac_try='test -z "$ac_c_werror_flag"
14002                          || test ! -s conftest.err'
14003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004   (eval $ac_try) 2>&5
14005   ac_status=$?
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); }; } &&
14008          { ac_try='test -s conftest.$ac_objext'
14009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010   (eval $ac_try) 2>&5
14011   ac_status=$?
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); }; }; then
14014   ac_header_compiler=yes
14015 else
14016   echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14018
14019 ac_header_compiler=no
14020 fi
14021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14023 echo "${ECHO_T}$ac_header_compiler" >&6
14024
14025 # Is the header present?
14026 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14028 cat >conftest.$ac_ext <<_ACEOF
14029 /* confdefs.h.  */
14030 _ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h.  */
14034 #include <$ac_header>
14035 _ACEOF
14036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14037   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14038   ac_status=$?
14039   grep -v '^ *+' conftest.er1 >conftest.err
14040   rm -f conftest.er1
14041   cat conftest.err >&5
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); } >/dev/null; then
14044   if test -s conftest.err; then
14045     ac_cpp_err=$ac_c_preproc_warn_flag
14046     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14047   else
14048     ac_cpp_err=
14049   fi
14050 else
14051   ac_cpp_err=yes
14052 fi
14053 if test -z "$ac_cpp_err"; then
14054   ac_header_preproc=yes
14055 else
14056   echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14058
14059   ac_header_preproc=no
14060 fi
14061 rm -f conftest.err conftest.$ac_ext
14062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14063 echo "${ECHO_T}$ac_header_preproc" >&6
14064
14065 # So?  What about this header?
14066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14067   yes:no: )
14068     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14072     ac_header_preproc=yes
14073     ;;
14074   no:yes:* )
14075     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14077     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14078 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14079     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14081     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14082 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14085     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14087     (
14088       cat <<\_ASBOX
14089 ## ------------------------------------------ ##
14090 ## Report this to the AC_PACKAGE_NAME lists.  ##
14091 ## ------------------------------------------ ##
14092 _ASBOX
14093     ) |
14094       sed "s/^/$as_me: WARNING:     /" >&2
14095     ;;
14096 esac
14097 echo "$as_me:$LINENO: checking for $ac_header" >&5
14098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14100   echo $ECHO_N "(cached) $ECHO_C" >&6
14101 else
14102   eval "$as_ac_Header=\$ac_header_preproc"
14103 fi
14104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14106
14107 fi
14108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14109   cat >>confdefs.h <<_ACEOF
14110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14111 _ACEOF
14112
14113 fi
14114
14115 done
14116
14117
14118
14119 for ac_header in resolv.h
14120 do
14121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14122 echo "$as_me:$LINENO: checking for $ac_header" >&5
14123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14125   echo $ECHO_N "(cached) $ECHO_C" >&6
14126 else
14127   cat >conftest.$ac_ext <<_ACEOF
14128 /* confdefs.h.  */
14129 _ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h.  */
14133 $ac_includes_default
14134 #include <netinet/in.h>
14135
14136
14137 #include <$ac_header>
14138 _ACEOF
14139 rm -f conftest.$ac_objext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14141   (eval $ac_compile) 2>conftest.er1
14142   ac_status=$?
14143   grep -v '^ *+' conftest.er1 >conftest.err
14144   rm -f conftest.er1
14145   cat conftest.err >&5
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); } &&
14148          { ac_try='test -z "$ac_c_werror_flag"
14149                          || test ! -s conftest.err'
14150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151   (eval $ac_try) 2>&5
14152   ac_status=$?
14153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); }; } &&
14155          { ac_try='test -s conftest.$ac_objext'
14156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157   (eval $ac_try) 2>&5
14158   ac_status=$?
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); }; }; then
14161   eval "$as_ac_Header=yes"
14162 else
14163   echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14165
14166 eval "$as_ac_Header=no"
14167 fi
14168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14169 fi
14170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14173   cat >>confdefs.h <<_ACEOF
14174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14175 _ACEOF
14176
14177 fi
14178
14179 done
14180
14181
14182
14183 for ac_header in sys/ucred.h
14184 do
14185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14186 echo "$as_me:$LINENO: checking for $ac_header" >&5
14187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14189   echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191   cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h.  */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h.  */
14197 $ac_includes_default
14198 #ifdef HAVE_SYS_PARAM_H
14199 #include <sys/param.h>
14200 #endif
14201
14202
14203 #include <$ac_header>
14204 _ACEOF
14205 rm -f conftest.$ac_objext
14206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14207   (eval $ac_compile) 2>conftest.er1
14208   ac_status=$?
14209   grep -v '^ *+' conftest.er1 >conftest.err
14210   rm -f conftest.er1
14211   cat conftest.err >&5
14212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213   (exit $ac_status); } &&
14214          { ac_try='test -z "$ac_c_werror_flag"
14215                          || test ! -s conftest.err'
14216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217   (eval $ac_try) 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }; } &&
14221          { ac_try='test -s conftest.$ac_objext'
14222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223   (eval $ac_try) 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); }; }; then
14227   eval "$as_ac_Header=yes"
14228 else
14229   echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14231
14232 eval "$as_ac_Header=no"
14233 fi
14234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14235 fi
14236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14239   cat >>confdefs.h <<_ACEOF
14240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14241 _ACEOF
14242
14243 fi
14244
14245 done
14246
14247
14248
14249
14250
14251 for ac_func in sigaction sigset
14252 do
14253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14254 echo "$as_me:$LINENO: checking for $ac_func" >&5
14255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14256 if eval "test \"\${$as_ac_var+set}\" = set"; then
14257   echo $ECHO_N "(cached) $ECHO_C" >&6
14258 else
14259   cat >conftest.$ac_ext <<_ACEOF
14260 /* confdefs.h.  */
14261 _ACEOF
14262 cat confdefs.h >>conftest.$ac_ext
14263 cat >>conftest.$ac_ext <<_ACEOF
14264 /* end confdefs.h.  */
14265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14267 #define $ac_func innocuous_$ac_func
14268
14269 /* System header to define __stub macros and hopefully few prototypes,
14270     which can conflict with char $ac_func (); below.
14271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14272     <limits.h> exists even on freestanding compilers.  */
14273
14274 #ifdef __STDC__
14275 # include <limits.h>
14276 #else
14277 # include <assert.h>
14278 #endif
14279
14280 #undef $ac_func
14281
14282 /* Override any gcc2 internal prototype to avoid an error.  */
14283 #ifdef __cplusplus
14284 extern "C"
14285 {
14286 #endif
14287 /* We use char because int might match the return type of a gcc2
14288    builtin and then its argument prototype would still apply.  */
14289 char $ac_func ();
14290 /* The GNU C library defines this for functions which it implements
14291     to always fail with ENOSYS.  Some functions are actually named
14292     something starting with __ and the normal name is an alias.  */
14293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14294 choke me
14295 #else
14296 char (*f) () = $ac_func;
14297 #endif
14298 #ifdef __cplusplus
14299 }
14300 #endif
14301
14302 int
14303 main ()
14304 {
14305 return f != $ac_func;
14306   ;
14307   return 0;
14308 }
14309 _ACEOF
14310 rm -f conftest.$ac_objext conftest$ac_exeext
14311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14312   (eval $ac_link) 2>conftest.er1
14313   ac_status=$?
14314   grep -v '^ *+' conftest.er1 >conftest.err
14315   rm -f conftest.er1
14316   cat conftest.err >&5
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); } &&
14319          { ac_try='test -z "$ac_c_werror_flag"
14320                          || test ! -s conftest.err'
14321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322   (eval $ac_try) 2>&5
14323   ac_status=$?
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); }; } &&
14326          { ac_try='test -s conftest$ac_exeext'
14327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328   (eval $ac_try) 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); }; }; then
14332   eval "$as_ac_var=yes"
14333 else
14334   echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14336
14337 eval "$as_ac_var=no"
14338 fi
14339 rm -f conftest.err conftest.$ac_objext \
14340       conftest$ac_exeext conftest.$ac_ext
14341 fi
14342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14344 if test `eval echo '${'$as_ac_var'}'` = yes; then
14345   cat >>confdefs.h <<_ACEOF
14346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14347 _ACEOF
14348
14349 fi
14350 done
14351
14352
14353 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14354
14355 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14356 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14357 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14358   echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360   ac_check_lib_save_LIBS=$LIBS
14361 LIBS="-lV3  $LIBS"
14362 cat >conftest.$ac_ext <<_ACEOF
14363 /* confdefs.h.  */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h.  */
14368
14369 /* Override any gcc2 internal prototype to avoid an error.  */
14370 #ifdef __cplusplus
14371 extern "C"
14372 #endif
14373 /* We use char because int might match the return type of a gcc2
14374    builtin and then its argument prototype would still apply.  */
14375 char sigset ();
14376 int
14377 main ()
14378 {
14379 sigset ();
14380   ;
14381   return 0;
14382 }
14383 _ACEOF
14384 rm -f conftest.$ac_objext conftest$ac_exeext
14385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14386   (eval $ac_link) 2>conftest.er1
14387   ac_status=$?
14388   grep -v '^ *+' conftest.er1 >conftest.err
14389   rm -f conftest.er1
14390   cat conftest.err >&5
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); } &&
14393          { ac_try='test -z "$ac_c_werror_flag"
14394                          || test ! -s conftest.err'
14395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396   (eval $ac_try) 2>&5
14397   ac_status=$?
14398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399   (exit $ac_status); }; } &&
14400          { ac_try='test -s conftest$ac_exeext'
14401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402   (eval $ac_try) 2>&5
14403   ac_status=$?
14404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405   (exit $ac_status); }; }; then
14406   ac_cv_lib_V3_sigset=yes
14407 else
14408   echo "$as_me: failed program was:" >&5
14409 sed 's/^/| /' conftest.$ac_ext >&5
14410
14411 ac_cv_lib_V3_sigset=no
14412 fi
14413 rm -f conftest.err conftest.$ac_objext \
14414       conftest$ac_exeext conftest.$ac_ext
14415 LIBS=$ac_check_lib_save_LIBS
14416 fi
14417 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14418 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14419 if test $ac_cv_lib_V3_sigset = yes; then
14420   cat >>confdefs.h <<_ACEOF
14421 #define HAVE_LIBV3 1
14422 _ACEOF
14423
14424   LIBS="-lV3 $LIBS"
14425
14426 fi
14427
14428 fi
14429
14430 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14431 echo "$as_me:$LINENO: checking for winsock" >&5
14432 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14433 if test "${ol_cv_winsock+set}" = set; then
14434   echo $ECHO_N "(cached) $ECHO_C" >&6
14435 else
14436   save_LIBS="$LIBS"
14437 for curlib in ws2_32 wsock32; do
14438         LIBS="$LIBS -l$curlib"
14439         cat >conftest.$ac_ext <<_ACEOF
14440 /* confdefs.h.  */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h.  */
14445 #include <winsock.h>
14446
14447 int
14448 main ()
14449 {
14450
14451                         socket(0,0,0);
14452                         select(0,NULL,NULL,NULL,NULL);
14453                         closesocket(0);
14454                         gethostname(NULL,0);
14455
14456   ;
14457   return 0;
14458 }
14459 _ACEOF
14460 rm -f conftest.$ac_objext conftest$ac_exeext
14461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14462   (eval $ac_link) 2>conftest.er1
14463   ac_status=$?
14464   grep -v '^ *+' conftest.er1 >conftest.err
14465   rm -f conftest.er1
14466   cat conftest.err >&5
14467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468   (exit $ac_status); } &&
14469          { ac_try='test -z "$ac_c_werror_flag"
14470                          || test ! -s conftest.err'
14471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472   (eval $ac_try) 2>&5
14473   ac_status=$?
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); }; } &&
14476          { ac_try='test -s conftest$ac_exeext'
14477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478   (eval $ac_try) 2>&5
14479   ac_status=$?
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); }; }; then
14482   ol_cv_winsock=yes
14483 else
14484   echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14486
14487 ol_cv_winsock=no
14488 fi
14489 rm -f conftest.err conftest.$ac_objext \
14490       conftest$ac_exeext conftest.$ac_ext
14491
14492         if test $ol_cv_winsock = yes; then
14493
14494 cat >>confdefs.h <<\_ACEOF
14495 #define HAVE_WINSOCK 1
14496 _ACEOF
14497
14498                 ac_cv_func_socket=yes
14499                 ac_cv_func_select=yes
14500                 ac_cv_func_closesocket=yes
14501                 ac_cv_func_gethostname=yes
14502                 if test $curlib = ws2_32; then
14503                         ol_cv_winsock=winsock2
14504
14505 cat >>confdefs.h <<\_ACEOF
14506 #define HAVE_WINSOCK2 1
14507 _ACEOF
14508
14509                 fi
14510                 break
14511         fi
14512         LIBS="$save_LIBS"
14513 done
14514 fi
14515 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14516 echo "${ECHO_T}$ol_cv_winsock" >&6
14517 fi
14518
14519
14520 echo "$as_me:$LINENO: checking for socket" >&5
14521 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14522 if test "${ac_cv_func_socket+set}" = set; then
14523   echo $ECHO_N "(cached) $ECHO_C" >&6
14524 else
14525   cat >conftest.$ac_ext <<_ACEOF
14526 /* confdefs.h.  */
14527 _ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h.  */
14531 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14533 #define socket innocuous_socket
14534
14535 /* System header to define __stub macros and hopefully few prototypes,
14536     which can conflict with char socket (); below.
14537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14538     <limits.h> exists even on freestanding compilers.  */
14539
14540 #ifdef __STDC__
14541 # include <limits.h>
14542 #else
14543 # include <assert.h>
14544 #endif
14545
14546 #undef socket
14547
14548 /* Override any gcc2 internal prototype to avoid an error.  */
14549 #ifdef __cplusplus
14550 extern "C"
14551 {
14552 #endif
14553 /* We use char because int might match the return type of a gcc2
14554    builtin and then its argument prototype would still apply.  */
14555 char socket ();
14556 /* The GNU C library defines this for functions which it implements
14557     to always fail with ENOSYS.  Some functions are actually named
14558     something starting with __ and the normal name is an alias.  */
14559 #if defined (__stub_socket) || defined (__stub___socket)
14560 choke me
14561 #else
14562 char (*f) () = socket;
14563 #endif
14564 #ifdef __cplusplus
14565 }
14566 #endif
14567
14568 int
14569 main ()
14570 {
14571 return f != socket;
14572   ;
14573   return 0;
14574 }
14575 _ACEOF
14576 rm -f conftest.$ac_objext conftest$ac_exeext
14577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14578   (eval $ac_link) 2>conftest.er1
14579   ac_status=$?
14580   grep -v '^ *+' conftest.er1 >conftest.err
14581   rm -f conftest.er1
14582   cat conftest.err >&5
14583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584   (exit $ac_status); } &&
14585          { ac_try='test -z "$ac_c_werror_flag"
14586                          || test ! -s conftest.err'
14587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588   (eval $ac_try) 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); }; } &&
14592          { ac_try='test -s conftest$ac_exeext'
14593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594   (eval $ac_try) 2>&5
14595   ac_status=$?
14596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597   (exit $ac_status); }; }; then
14598   ac_cv_func_socket=yes
14599 else
14600   echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14602
14603 ac_cv_func_socket=no
14604 fi
14605 rm -f conftest.err conftest.$ac_objext \
14606       conftest$ac_exeext conftest.$ac_ext
14607 fi
14608 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14609 echo "${ECHO_T}$ac_cv_func_socket" >&6
14610 if test $ac_cv_func_socket = yes; then
14611   :
14612 else
14613
14614
14615 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14616 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14617 if test "${ac_cv_lib_socket_main+set}" = set; then
14618   echo $ECHO_N "(cached) $ECHO_C" >&6
14619 else
14620   ac_check_lib_save_LIBS=$LIBS
14621 LIBS="-lsocket  $LIBS"
14622 cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h.  */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h.  */
14628
14629
14630 int
14631 main ()
14632 {
14633 main ();
14634   ;
14635   return 0;
14636 }
14637 _ACEOF
14638 rm -f conftest.$ac_objext conftest$ac_exeext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14640   (eval $ac_link) 2>conftest.er1
14641   ac_status=$?
14642   grep -v '^ *+' conftest.er1 >conftest.err
14643   rm -f conftest.er1
14644   cat conftest.err >&5
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); } &&
14647          { ac_try='test -z "$ac_c_werror_flag"
14648                          || test ! -s conftest.err'
14649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650   (eval $ac_try) 2>&5
14651   ac_status=$?
14652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653   (exit $ac_status); }; } &&
14654          { ac_try='test -s conftest$ac_exeext'
14655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656   (eval $ac_try) 2>&5
14657   ac_status=$?
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); }; }; then
14660   ac_cv_lib_socket_main=yes
14661 else
14662   echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14664
14665 ac_cv_lib_socket_main=no
14666 fi
14667 rm -f conftest.err conftest.$ac_objext \
14668       conftest$ac_exeext conftest.$ac_ext
14669 LIBS=$ac_check_lib_save_LIBS
14670 fi
14671 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14672 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14673 if test $ac_cv_lib_socket_main = yes; then
14674   cat >>confdefs.h <<_ACEOF
14675 #define HAVE_LIBSOCKET 1
14676 _ACEOF
14677
14678   LIBS="-lsocket $LIBS"
14679
14680 fi
14681
14682
14683 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14684 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14685 if test "${ac_cv_lib_net_main+set}" = set; then
14686   echo $ECHO_N "(cached) $ECHO_C" >&6
14687 else
14688   ac_check_lib_save_LIBS=$LIBS
14689 LIBS="-lnet  $LIBS"
14690 cat >conftest.$ac_ext <<_ACEOF
14691 /* confdefs.h.  */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h.  */
14696
14697
14698 int
14699 main ()
14700 {
14701 main ();
14702   ;
14703   return 0;
14704 }
14705 _ACEOF
14706 rm -f conftest.$ac_objext conftest$ac_exeext
14707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14708   (eval $ac_link) 2>conftest.er1
14709   ac_status=$?
14710   grep -v '^ *+' conftest.er1 >conftest.err
14711   rm -f conftest.er1
14712   cat conftest.err >&5
14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714   (exit $ac_status); } &&
14715          { ac_try='test -z "$ac_c_werror_flag"
14716                          || test ! -s conftest.err'
14717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718   (eval $ac_try) 2>&5
14719   ac_status=$?
14720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721   (exit $ac_status); }; } &&
14722          { ac_try='test -s conftest$ac_exeext'
14723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724   (eval $ac_try) 2>&5
14725   ac_status=$?
14726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727   (exit $ac_status); }; }; then
14728   ac_cv_lib_net_main=yes
14729 else
14730   echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14732
14733 ac_cv_lib_net_main=no
14734 fi
14735 rm -f conftest.err conftest.$ac_objext \
14736       conftest$ac_exeext conftest.$ac_ext
14737 LIBS=$ac_check_lib_save_LIBS
14738 fi
14739 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14740 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14741 if test $ac_cv_lib_net_main = yes; then
14742   cat >>confdefs.h <<_ACEOF
14743 #define HAVE_LIBNET 1
14744 _ACEOF
14745
14746   LIBS="-lnet $LIBS"
14747
14748 fi
14749
14750
14751 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14752 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14753 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14754   echo $ECHO_N "(cached) $ECHO_C" >&6
14755 else
14756   ac_check_lib_save_LIBS=$LIBS
14757 LIBS="-lnsl_s  $LIBS"
14758 cat >conftest.$ac_ext <<_ACEOF
14759 /* confdefs.h.  */
14760 _ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h.  */
14764
14765
14766 int
14767 main ()
14768 {
14769 main ();
14770   ;
14771   return 0;
14772 }
14773 _ACEOF
14774 rm -f conftest.$ac_objext conftest$ac_exeext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14776   (eval $ac_link) 2>conftest.er1
14777   ac_status=$?
14778   grep -v '^ *+' conftest.er1 >conftest.err
14779   rm -f conftest.er1
14780   cat conftest.err >&5
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); } &&
14783          { ac_try='test -z "$ac_c_werror_flag"
14784                          || test ! -s conftest.err'
14785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786   (eval $ac_try) 2>&5
14787   ac_status=$?
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); }; } &&
14790          { ac_try='test -s conftest$ac_exeext'
14791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792   (eval $ac_try) 2>&5
14793   ac_status=$?
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); }; }; then
14796   ac_cv_lib_nsl_s_main=yes
14797 else
14798   echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14800
14801 ac_cv_lib_nsl_s_main=no
14802 fi
14803 rm -f conftest.err conftest.$ac_objext \
14804       conftest$ac_exeext conftest.$ac_ext
14805 LIBS=$ac_check_lib_save_LIBS
14806 fi
14807 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14808 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14809 if test $ac_cv_lib_nsl_s_main = yes; then
14810   cat >>confdefs.h <<_ACEOF
14811 #define HAVE_LIBNSL_S 1
14812 _ACEOF
14813
14814   LIBS="-lnsl_s $LIBS"
14815
14816 fi
14817
14818
14819 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14820 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14821 if test "${ac_cv_lib_nsl_main+set}" = set; then
14822   echo $ECHO_N "(cached) $ECHO_C" >&6
14823 else
14824   ac_check_lib_save_LIBS=$LIBS
14825 LIBS="-lnsl  $LIBS"
14826 cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h.  */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h.  */
14832
14833
14834 int
14835 main ()
14836 {
14837 main ();
14838   ;
14839   return 0;
14840 }
14841 _ACEOF
14842 rm -f conftest.$ac_objext conftest$ac_exeext
14843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14844   (eval $ac_link) 2>conftest.er1
14845   ac_status=$?
14846   grep -v '^ *+' conftest.er1 >conftest.err
14847   rm -f conftest.er1
14848   cat conftest.err >&5
14849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850   (exit $ac_status); } &&
14851          { ac_try='test -z "$ac_c_werror_flag"
14852                          || test ! -s conftest.err'
14853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14854   (eval $ac_try) 2>&5
14855   ac_status=$?
14856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857   (exit $ac_status); }; } &&
14858          { ac_try='test -s conftest$ac_exeext'
14859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860   (eval $ac_try) 2>&5
14861   ac_status=$?
14862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863   (exit $ac_status); }; }; then
14864   ac_cv_lib_nsl_main=yes
14865 else
14866   echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14868
14869 ac_cv_lib_nsl_main=no
14870 fi
14871 rm -f conftest.err conftest.$ac_objext \
14872       conftest$ac_exeext conftest.$ac_ext
14873 LIBS=$ac_check_lib_save_LIBS
14874 fi
14875 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14876 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14877 if test $ac_cv_lib_nsl_main = yes; then
14878   cat >>confdefs.h <<_ACEOF
14879 #define HAVE_LIBNSL 1
14880 _ACEOF
14881
14882   LIBS="-lnsl $LIBS"
14883
14884 fi
14885
14886
14887 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14888 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14889 if test "${ac_cv_lib_inet_socket+set}" = set; then
14890   echo $ECHO_N "(cached) $ECHO_C" >&6
14891 else
14892   ac_check_lib_save_LIBS=$LIBS
14893 LIBS="-linet  $LIBS"
14894 cat >conftest.$ac_ext <<_ACEOF
14895 /* confdefs.h.  */
14896 _ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h.  */
14900
14901 /* Override any gcc2 internal prototype to avoid an error.  */
14902 #ifdef __cplusplus
14903 extern "C"
14904 #endif
14905 /* We use char because int might match the return type of a gcc2
14906    builtin and then its argument prototype would still apply.  */
14907 char socket ();
14908 int
14909 main ()
14910 {
14911 socket ();
14912   ;
14913   return 0;
14914 }
14915 _ACEOF
14916 rm -f conftest.$ac_objext conftest$ac_exeext
14917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14918   (eval $ac_link) 2>conftest.er1
14919   ac_status=$?
14920   grep -v '^ *+' conftest.er1 >conftest.err
14921   rm -f conftest.er1
14922   cat conftest.err >&5
14923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924   (exit $ac_status); } &&
14925          { ac_try='test -z "$ac_c_werror_flag"
14926                          || test ! -s conftest.err'
14927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928   (eval $ac_try) 2>&5
14929   ac_status=$?
14930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931   (exit $ac_status); }; } &&
14932          { ac_try='test -s conftest$ac_exeext'
14933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934   (eval $ac_try) 2>&5
14935   ac_status=$?
14936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937   (exit $ac_status); }; }; then
14938   ac_cv_lib_inet_socket=yes
14939 else
14940   echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14942
14943 ac_cv_lib_inet_socket=no
14944 fi
14945 rm -f conftest.err conftest.$ac_objext \
14946       conftest$ac_exeext conftest.$ac_ext
14947 LIBS=$ac_check_lib_save_LIBS
14948 fi
14949 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
14950 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
14951 if test $ac_cv_lib_inet_socket = yes; then
14952   cat >>confdefs.h <<_ACEOF
14953 #define HAVE_LIBINET 1
14954 _ACEOF
14955
14956   LIBS="-linet $LIBS"
14957
14958 fi
14959
14960
14961 echo "$as_me:$LINENO: checking for main in -lgen" >&5
14962 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
14963 if test "${ac_cv_lib_gen_main+set}" = set; then
14964   echo $ECHO_N "(cached) $ECHO_C" >&6
14965 else
14966   ac_check_lib_save_LIBS=$LIBS
14967 LIBS="-lgen  $LIBS"
14968 cat >conftest.$ac_ext <<_ACEOF
14969 /* confdefs.h.  */
14970 _ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h.  */
14974
14975
14976 int
14977 main ()
14978 {
14979 main ();
14980   ;
14981   return 0;
14982 }
14983 _ACEOF
14984 rm -f conftest.$ac_objext conftest$ac_exeext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14986   (eval $ac_link) 2>conftest.er1
14987   ac_status=$?
14988   grep -v '^ *+' conftest.er1 >conftest.err
14989   rm -f conftest.er1
14990   cat conftest.err >&5
14991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992   (exit $ac_status); } &&
14993          { ac_try='test -z "$ac_c_werror_flag"
14994                          || test ! -s conftest.err'
14995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996   (eval $ac_try) 2>&5
14997   ac_status=$?
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); }; } &&
15000          { ac_try='test -s conftest$ac_exeext'
15001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002   (eval $ac_try) 2>&5
15003   ac_status=$?
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); }; }; then
15006   ac_cv_lib_gen_main=yes
15007 else
15008   echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15010
15011 ac_cv_lib_gen_main=no
15012 fi
15013 rm -f conftest.err conftest.$ac_objext \
15014       conftest$ac_exeext conftest.$ac_ext
15015 LIBS=$ac_check_lib_save_LIBS
15016 fi
15017 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15018 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15019 if test $ac_cv_lib_gen_main = yes; then
15020   cat >>confdefs.h <<_ACEOF
15021 #define HAVE_LIBGEN 1
15022 _ACEOF
15023
15024   LIBS="-lgen $LIBS"
15025
15026 fi
15027
15028
15029 fi
15030
15031
15032 echo "$as_me:$LINENO: checking for select" >&5
15033 echo $ECHO_N "checking for select... $ECHO_C" >&6
15034 if test "${ac_cv_func_select+set}" = set; then
15035   echo $ECHO_N "(cached) $ECHO_C" >&6
15036 else
15037   cat >conftest.$ac_ext <<_ACEOF
15038 /* confdefs.h.  */
15039 _ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h.  */
15043 /* Define select to an innocuous variant, in case <limits.h> declares select.
15044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15045 #define select innocuous_select
15046
15047 /* System header to define __stub macros and hopefully few prototypes,
15048     which can conflict with char select (); below.
15049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15050     <limits.h> exists even on freestanding compilers.  */
15051
15052 #ifdef __STDC__
15053 # include <limits.h>
15054 #else
15055 # include <assert.h>
15056 #endif
15057
15058 #undef select
15059
15060 /* Override any gcc2 internal prototype to avoid an error.  */
15061 #ifdef __cplusplus
15062 extern "C"
15063 {
15064 #endif
15065 /* We use char because int might match the return type of a gcc2
15066    builtin and then its argument prototype would still apply.  */
15067 char select ();
15068 /* The GNU C library defines this for functions which it implements
15069     to always fail with ENOSYS.  Some functions are actually named
15070     something starting with __ and the normal name is an alias.  */
15071 #if defined (__stub_select) || defined (__stub___select)
15072 choke me
15073 #else
15074 char (*f) () = select;
15075 #endif
15076 #ifdef __cplusplus
15077 }
15078 #endif
15079
15080 int
15081 main ()
15082 {
15083 return f != select;
15084   ;
15085   return 0;
15086 }
15087 _ACEOF
15088 rm -f conftest.$ac_objext conftest$ac_exeext
15089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15090   (eval $ac_link) 2>conftest.er1
15091   ac_status=$?
15092   grep -v '^ *+' conftest.er1 >conftest.err
15093   rm -f conftest.er1
15094   cat conftest.err >&5
15095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); } &&
15097          { ac_try='test -z "$ac_c_werror_flag"
15098                          || test ! -s conftest.err'
15099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100   (eval $ac_try) 2>&5
15101   ac_status=$?
15102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103   (exit $ac_status); }; } &&
15104          { ac_try='test -s conftest$ac_exeext'
15105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106   (eval $ac_try) 2>&5
15107   ac_status=$?
15108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109   (exit $ac_status); }; }; then
15110   ac_cv_func_select=yes
15111 else
15112   echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15114
15115 ac_cv_func_select=no
15116 fi
15117 rm -f conftest.err conftest.$ac_objext \
15118       conftest$ac_exeext conftest.$ac_ext
15119 fi
15120 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15121 echo "${ECHO_T}$ac_cv_func_select" >&6
15122 if test $ac_cv_func_select = yes; then
15123   :
15124 else
15125   { { echo "$as_me:$LINENO: error: select() required." >&5
15126 echo "$as_me: error: select() required." >&2;}
15127    { (exit 1); exit 1; }; }
15128 fi
15129
15130
15131 if test "${ac_cv_header_winsock_h}" != yes; then
15132
15133
15134 for ac_header in sys/select.h sys/socket.h
15135 do
15136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15138   echo "$as_me:$LINENO: checking for $ac_header" >&5
15139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15141   echo $ECHO_N "(cached) $ECHO_C" >&6
15142 fi
15143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15145 else
15146   # Is the header compilable?
15147 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15149 cat >conftest.$ac_ext <<_ACEOF
15150 /* confdefs.h.  */
15151 _ACEOF
15152 cat confdefs.h >>conftest.$ac_ext
15153 cat >>conftest.$ac_ext <<_ACEOF
15154 /* end confdefs.h.  */
15155 $ac_includes_default
15156 #include <$ac_header>
15157 _ACEOF
15158 rm -f conftest.$ac_objext
15159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15160   (eval $ac_compile) 2>conftest.er1
15161   ac_status=$?
15162   grep -v '^ *+' conftest.er1 >conftest.err
15163   rm -f conftest.er1
15164   cat conftest.err >&5
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); } &&
15167          { ac_try='test -z "$ac_c_werror_flag"
15168                          || test ! -s conftest.err'
15169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170   (eval $ac_try) 2>&5
15171   ac_status=$?
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); }; } &&
15174          { ac_try='test -s conftest.$ac_objext'
15175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15176   (eval $ac_try) 2>&5
15177   ac_status=$?
15178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179   (exit $ac_status); }; }; then
15180   ac_header_compiler=yes
15181 else
15182   echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15184
15185 ac_header_compiler=no
15186 fi
15187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15189 echo "${ECHO_T}$ac_header_compiler" >&6
15190
15191 # Is the header present?
15192 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15194 cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h.  */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h.  */
15200 #include <$ac_header>
15201 _ACEOF
15202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15203   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15204   ac_status=$?
15205   grep -v '^ *+' conftest.er1 >conftest.err
15206   rm -f conftest.er1
15207   cat conftest.err >&5
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); } >/dev/null; then
15210   if test -s conftest.err; then
15211     ac_cpp_err=$ac_c_preproc_warn_flag
15212     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15213   else
15214     ac_cpp_err=
15215   fi
15216 else
15217   ac_cpp_err=yes
15218 fi
15219 if test -z "$ac_cpp_err"; then
15220   ac_header_preproc=yes
15221 else
15222   echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15224
15225   ac_header_preproc=no
15226 fi
15227 rm -f conftest.err conftest.$ac_ext
15228 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15229 echo "${ECHO_T}$ac_header_preproc" >&6
15230
15231 # So?  What about this header?
15232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15233   yes:no: )
15234     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15238     ac_header_preproc=yes
15239     ;;
15240   no:yes:* )
15241     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15243     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15244 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15245     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15247     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15248 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15249     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15251     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15253     (
15254       cat <<\_ASBOX
15255 ## ------------------------------------------ ##
15256 ## Report this to the AC_PACKAGE_NAME lists.  ##
15257 ## ------------------------------------------ ##
15258 _ASBOX
15259     ) |
15260       sed "s/^/$as_me: WARNING:     /" >&2
15261     ;;
15262 esac
15263 echo "$as_me:$LINENO: checking for $ac_header" >&5
15264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15266   echo $ECHO_N "(cached) $ECHO_C" >&6
15267 else
15268   eval "$as_ac_Header=\$ac_header_preproc"
15269 fi
15270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15272
15273 fi
15274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15275   cat >>confdefs.h <<_ACEOF
15276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15277 _ACEOF
15278
15279 fi
15280
15281 done
15282
15283 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15284 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15285 if test "${ac_cv_func_select_args+set}" = set; then
15286   echo $ECHO_N "(cached) $ECHO_C" >&6
15287 else
15288   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15289  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15290   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15291    cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h.  */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h.  */
15297 $ac_includes_default
15298 #if HAVE_SYS_SELECT_H
15299 # include <sys/select.h>
15300 #endif
15301 #if HAVE_SYS_SOCKET_H
15302 # include <sys/socket.h>
15303 #endif
15304
15305 int
15306 main ()
15307 {
15308 extern int select ($ac_arg1,
15309                                             $ac_arg234, $ac_arg234, $ac_arg234,
15310                                             $ac_arg5);
15311   ;
15312   return 0;
15313 }
15314 _ACEOF
15315 rm -f conftest.$ac_objext
15316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15317   (eval $ac_compile) 2>conftest.er1
15318   ac_status=$?
15319   grep -v '^ *+' conftest.er1 >conftest.err
15320   rm -f conftest.er1
15321   cat conftest.err >&5
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); } &&
15324          { ac_try='test -z "$ac_c_werror_flag"
15325                          || test ! -s conftest.err'
15326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327   (eval $ac_try) 2>&5
15328   ac_status=$?
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); }; } &&
15331          { ac_try='test -s conftest.$ac_objext'
15332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333   (eval $ac_try) 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); }; }; then
15337   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15338 else
15339   echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15341
15342 fi
15343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15344   done
15345  done
15346 done
15347 # Provide a safe default value.
15348 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15349
15350 fi
15351 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15352 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15353 ac_save_IFS=$IFS; IFS=','
15354 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15355 IFS=$ac_save_IFS
15356 shift
15357
15358 cat >>confdefs.h <<_ACEOF
15359 #define SELECT_TYPE_ARG1 $1
15360 _ACEOF
15361
15362
15363 cat >>confdefs.h <<_ACEOF
15364 #define SELECT_TYPE_ARG234 ($2)
15365 _ACEOF
15366
15367
15368 cat >>confdefs.h <<_ACEOF
15369 #define SELECT_TYPE_ARG5 ($3)
15370 _ACEOF
15371
15372 rm -f conftest*
15373
15374 fi
15375
15376
15377
15378 for ac_func in poll
15379 do
15380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15381 echo "$as_me:$LINENO: checking for $ac_func" >&5
15382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15383 if eval "test \"\${$as_ac_var+set}\" = set"; then
15384   echo $ECHO_N "(cached) $ECHO_C" >&6
15385 else
15386   cat >conftest.$ac_ext <<_ACEOF
15387 /* confdefs.h.  */
15388 _ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h.  */
15392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15394 #define $ac_func innocuous_$ac_func
15395
15396 /* System header to define __stub macros and hopefully few prototypes,
15397     which can conflict with char $ac_func (); below.
15398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15399     <limits.h> exists even on freestanding compilers.  */
15400
15401 #ifdef __STDC__
15402 # include <limits.h>
15403 #else
15404 # include <assert.h>
15405 #endif
15406
15407 #undef $ac_func
15408
15409 /* Override any gcc2 internal prototype to avoid an error.  */
15410 #ifdef __cplusplus
15411 extern "C"
15412 {
15413 #endif
15414 /* We use char because int might match the return type of a gcc2
15415    builtin and then its argument prototype would still apply.  */
15416 char $ac_func ();
15417 /* The GNU C library defines this for functions which it implements
15418     to always fail with ENOSYS.  Some functions are actually named
15419     something starting with __ and the normal name is an alias.  */
15420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15421 choke me
15422 #else
15423 char (*f) () = $ac_func;
15424 #endif
15425 #ifdef __cplusplus
15426 }
15427 #endif
15428
15429 int
15430 main ()
15431 {
15432 return f != $ac_func;
15433   ;
15434   return 0;
15435 }
15436 _ACEOF
15437 rm -f conftest.$ac_objext conftest$ac_exeext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15439   (eval $ac_link) 2>conftest.er1
15440   ac_status=$?
15441   grep -v '^ *+' conftest.er1 >conftest.err
15442   rm -f conftest.er1
15443   cat conftest.err >&5
15444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445   (exit $ac_status); } &&
15446          { ac_try='test -z "$ac_c_werror_flag"
15447                          || test ! -s conftest.err'
15448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449   (eval $ac_try) 2>&5
15450   ac_status=$?
15451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452   (exit $ac_status); }; } &&
15453          { ac_try='test -s conftest$ac_exeext'
15454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455   (eval $ac_try) 2>&5
15456   ac_status=$?
15457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458   (exit $ac_status); }; }; then
15459   eval "$as_ac_var=yes"
15460 else
15461   echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15463
15464 eval "$as_ac_var=no"
15465 fi
15466 rm -f conftest.err conftest.$ac_objext \
15467       conftest$ac_exeext conftest.$ac_ext
15468 fi
15469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15471 if test `eval echo '${'$as_ac_var'}'` = yes; then
15472   cat >>confdefs.h <<_ACEOF
15473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15474 _ACEOF
15475
15476 fi
15477 done
15478
15479
15480 for ac_header in poll.h
15481 do
15482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15484   echo "$as_me:$LINENO: checking for $ac_header" >&5
15485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15487   echo $ECHO_N "(cached) $ECHO_C" >&6
15488 fi
15489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15491 else
15492   # Is the header compilable?
15493 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15495 cat >conftest.$ac_ext <<_ACEOF
15496 /* confdefs.h.  */
15497 _ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h.  */
15501 $ac_includes_default
15502 #include <$ac_header>
15503 _ACEOF
15504 rm -f conftest.$ac_objext
15505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15506   (eval $ac_compile) 2>conftest.er1
15507   ac_status=$?
15508   grep -v '^ *+' conftest.er1 >conftest.err
15509   rm -f conftest.er1
15510   cat conftest.err >&5
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); } &&
15513          { ac_try='test -z "$ac_c_werror_flag"
15514                          || test ! -s conftest.err'
15515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516   (eval $ac_try) 2>&5
15517   ac_status=$?
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); }; } &&
15520          { ac_try='test -s conftest.$ac_objext'
15521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522   (eval $ac_try) 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); }; }; then
15526   ac_header_compiler=yes
15527 else
15528   echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15530
15531 ac_header_compiler=no
15532 fi
15533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15534 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15535 echo "${ECHO_T}$ac_header_compiler" >&6
15536
15537 # Is the header present?
15538 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15540 cat >conftest.$ac_ext <<_ACEOF
15541 /* confdefs.h.  */
15542 _ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h.  */
15546 #include <$ac_header>
15547 _ACEOF
15548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15550   ac_status=$?
15551   grep -v '^ *+' conftest.er1 >conftest.err
15552   rm -f conftest.er1
15553   cat conftest.err >&5
15554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555   (exit $ac_status); } >/dev/null; then
15556   if test -s conftest.err; then
15557     ac_cpp_err=$ac_c_preproc_warn_flag
15558     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15559   else
15560     ac_cpp_err=
15561   fi
15562 else
15563   ac_cpp_err=yes
15564 fi
15565 if test -z "$ac_cpp_err"; then
15566   ac_header_preproc=yes
15567 else
15568   echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15570
15571   ac_header_preproc=no
15572 fi
15573 rm -f conftest.err conftest.$ac_ext
15574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15575 echo "${ECHO_T}$ac_header_preproc" >&6
15576
15577 # So?  What about this header?
15578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15579   yes:no: )
15580     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15584     ac_header_preproc=yes
15585     ;;
15586   no:yes:* )
15587     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15589     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15590 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15591     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15593     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15594 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15597     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15599     (
15600       cat <<\_ASBOX
15601 ## ------------------------------------------ ##
15602 ## Report this to the AC_PACKAGE_NAME lists.  ##
15603 ## ------------------------------------------ ##
15604 _ASBOX
15605     ) |
15606       sed "s/^/$as_me: WARNING:     /" >&2
15607     ;;
15608 esac
15609 echo "$as_me:$LINENO: checking for $ac_header" >&5
15610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15612   echo $ECHO_N "(cached) $ECHO_C" >&6
15613 else
15614   eval "$as_ac_Header=\$ac_header_preproc"
15615 fi
15616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15618
15619 fi
15620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15621   cat >>confdefs.h <<_ACEOF
15622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15623 _ACEOF
15624
15625 fi
15626
15627 done
15628
15629
15630
15631 for ac_header in sys/epoll.h
15632 do
15633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15635   echo "$as_me:$LINENO: checking for $ac_header" >&5
15636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15638   echo $ECHO_N "(cached) $ECHO_C" >&6
15639 fi
15640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15642 else
15643   # Is the header compilable?
15644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15646 cat >conftest.$ac_ext <<_ACEOF
15647 /* confdefs.h.  */
15648 _ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h.  */
15652 $ac_includes_default
15653 #include <$ac_header>
15654 _ACEOF
15655 rm -f conftest.$ac_objext
15656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15657   (eval $ac_compile) 2>conftest.er1
15658   ac_status=$?
15659   grep -v '^ *+' conftest.er1 >conftest.err
15660   rm -f conftest.er1
15661   cat conftest.err >&5
15662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); } &&
15664          { ac_try='test -z "$ac_c_werror_flag"
15665                          || test ! -s conftest.err'
15666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667   (eval $ac_try) 2>&5
15668   ac_status=$?
15669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670   (exit $ac_status); }; } &&
15671          { ac_try='test -s conftest.$ac_objext'
15672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673   (eval $ac_try) 2>&5
15674   ac_status=$?
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); }; }; then
15677   ac_header_compiler=yes
15678 else
15679   echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15681
15682 ac_header_compiler=no
15683 fi
15684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15686 echo "${ECHO_T}$ac_header_compiler" >&6
15687
15688 # Is the header present?
15689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15691 cat >conftest.$ac_ext <<_ACEOF
15692 /* confdefs.h.  */
15693 _ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h.  */
15697 #include <$ac_header>
15698 _ACEOF
15699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15700   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15701   ac_status=$?
15702   grep -v '^ *+' conftest.er1 >conftest.err
15703   rm -f conftest.er1
15704   cat conftest.err >&5
15705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706   (exit $ac_status); } >/dev/null; then
15707   if test -s conftest.err; then
15708     ac_cpp_err=$ac_c_preproc_warn_flag
15709     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15710   else
15711     ac_cpp_err=
15712   fi
15713 else
15714   ac_cpp_err=yes
15715 fi
15716 if test -z "$ac_cpp_err"; then
15717   ac_header_preproc=yes
15718 else
15719   echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15721
15722   ac_header_preproc=no
15723 fi
15724 rm -f conftest.err conftest.$ac_ext
15725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15726 echo "${ECHO_T}$ac_header_preproc" >&6
15727
15728 # So?  What about this header?
15729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15730   yes:no: )
15731     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15735     ac_header_preproc=yes
15736     ;;
15737   no:yes:* )
15738     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15740     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15741 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15742     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15744     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15745 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15748     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15750     (
15751       cat <<\_ASBOX
15752 ## ------------------------------------------ ##
15753 ## Report this to the AC_PACKAGE_NAME lists.  ##
15754 ## ------------------------------------------ ##
15755 _ASBOX
15756     ) |
15757       sed "s/^/$as_me: WARNING:     /" >&2
15758     ;;
15759 esac
15760 echo "$as_me:$LINENO: checking for $ac_header" >&5
15761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15763   echo $ECHO_N "(cached) $ECHO_C" >&6
15764 else
15765   eval "$as_ac_Header=\$ac_header_preproc"
15766 fi
15767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15769
15770 fi
15771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15772   cat >>confdefs.h <<_ACEOF
15773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15774 _ACEOF
15775
15776 fi
15777
15778 done
15779
15780 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15781 echo "$as_me:$LINENO: checking for epoll system call" >&5
15782 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15783 if test "$cross_compiling" = yes; then
15784   echo "$as_me:$LINENO: result: no" >&5
15785 echo "${ECHO_T}no" >&6
15786 else
15787   cat >conftest.$ac_ext <<_ACEOF
15788 /* confdefs.h.  */
15789 _ACEOF
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h.  */
15793 int main(int argc, char *argv)
15794 {
15795         int epfd = epoll_create(256);
15796         exit (epfd == -1 ? 1 : 0);
15797 }
15798 _ACEOF
15799 rm -f conftest$ac_exeext
15800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15801   (eval $ac_link) 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806   (eval $ac_try) 2>&5
15807   ac_status=$?
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); }; }; then
15810   echo "$as_me:$LINENO: result: yes" >&5
15811 echo "${ECHO_T}yes" >&6
15812
15813 cat >>confdefs.h <<\_ACEOF
15814 #define HAVE_EPOLL 1
15815 _ACEOF
15816
15817 else
15818   echo "$as_me: program exited with status $ac_status" >&5
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15821
15822 ( exit $ac_status )
15823 echo "$as_me:$LINENO: result: no" >&5
15824 echo "${ECHO_T}no" >&6
15825 fi
15826 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15827 fi
15828 fi
15829
15830 # strerror checks
15831 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15832 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15833 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15834   echo $ECHO_N "(cached) $ECHO_C" >&6
15835 else
15836
15837         cat >conftest.$ac_ext <<_ACEOF
15838 /* confdefs.h.  */
15839 _ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h.  */
15843
15844 #include <stdio.h>
15845 #include <sys/types.h>
15846 #include <errno.h>
15847 #ifdef WINNT
15848 #include <stdlib.h>
15849 #endif
15850 int
15851 main ()
15852 {
15853 char *c = (char *) *sys_errlist
15854   ;
15855   return 0;
15856 }
15857 _ACEOF
15858 rm -f conftest.$ac_objext
15859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15860   (eval $ac_compile) 2>conftest.er1
15861   ac_status=$?
15862   grep -v '^ *+' conftest.er1 >conftest.err
15863   rm -f conftest.er1
15864   cat conftest.err >&5
15865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866   (exit $ac_status); } &&
15867          { ac_try='test -z "$ac_c_werror_flag"
15868                          || test ! -s conftest.err'
15869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870   (eval $ac_try) 2>&5
15871   ac_status=$?
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); }; } &&
15874          { ac_try='test -s conftest.$ac_objext'
15875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876   (eval $ac_try) 2>&5
15877   ac_status=$?
15878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); }; }; then
15880   ol_cv_dcl_sys_errlist=yes
15881         ol_cv_have_sys_errlist=yes
15882 else
15883   echo "$as_me: failed program was:" >&5
15884 sed 's/^/| /' conftest.$ac_ext >&5
15885
15886 ol_cv_dcl_sys_errlist=no
15887 fi
15888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15889 fi
15890 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15891 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15892 #
15893 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15894 if test $ol_cv_dcl_sys_errlist = no ; then
15895
15896 cat >>confdefs.h <<\_ACEOF
15897 #define DECL_SYS_ERRLIST 1
15898 _ACEOF
15899
15900
15901         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15902 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15903 if test "${ol_cv_have_sys_errlist+set}" = set; then
15904   echo $ECHO_N "(cached) $ECHO_C" >&6
15905 else
15906
15907                 cat >conftest.$ac_ext <<_ACEOF
15908 /* confdefs.h.  */
15909 _ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h.  */
15913 #include <errno.h>
15914 int
15915 main ()
15916 {
15917 char *c = (char *) *sys_errlist
15918   ;
15919   return 0;
15920 }
15921 _ACEOF
15922 rm -f conftest.$ac_objext conftest$ac_exeext
15923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15924   (eval $ac_link) 2>conftest.er1
15925   ac_status=$?
15926   grep -v '^ *+' conftest.er1 >conftest.err
15927   rm -f conftest.er1
15928   cat conftest.err >&5
15929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930   (exit $ac_status); } &&
15931          { ac_try='test -z "$ac_c_werror_flag"
15932                          || test ! -s conftest.err'
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); }; } &&
15938          { ac_try='test -s conftest$ac_exeext'
15939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940   (eval $ac_try) 2>&5
15941   ac_status=$?
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); }; }; then
15944   ol_cv_have_sys_errlist=yes
15945 else
15946   echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15948
15949 ol_cv_have_sys_errlist=no
15950 fi
15951 rm -f conftest.err conftest.$ac_objext \
15952       conftest$ac_exeext conftest.$ac_ext
15953 fi
15954 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
15955 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
15956 fi
15957 if test $ol_cv_have_sys_errlist = yes ; then
15958
15959 cat >>confdefs.h <<\_ACEOF
15960 #define HAVE_SYS_ERRLIST 1
15961 _ACEOF
15962
15963 fi
15964
15965
15966 for ac_func in strerror strerror_r
15967 do
15968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15969 echo "$as_me:$LINENO: checking for $ac_func" >&5
15970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15971 if eval "test \"\${$as_ac_var+set}\" = set"; then
15972   echo $ECHO_N "(cached) $ECHO_C" >&6
15973 else
15974   cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h.  */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h.  */
15980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15982 #define $ac_func innocuous_$ac_func
15983
15984 /* System header to define __stub macros and hopefully few prototypes,
15985     which can conflict with char $ac_func (); below.
15986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15987     <limits.h> exists even on freestanding compilers.  */
15988
15989 #ifdef __STDC__
15990 # include <limits.h>
15991 #else
15992 # include <assert.h>
15993 #endif
15994
15995 #undef $ac_func
15996
15997 /* Override any gcc2 internal prototype to avoid an error.  */
15998 #ifdef __cplusplus
15999 extern "C"
16000 {
16001 #endif
16002 /* We use char because int might match the return type of a gcc2
16003    builtin and then its argument prototype would still apply.  */
16004 char $ac_func ();
16005 /* The GNU C library defines this for functions which it implements
16006     to always fail with ENOSYS.  Some functions are actually named
16007     something starting with __ and the normal name is an alias.  */
16008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16009 choke me
16010 #else
16011 char (*f) () = $ac_func;
16012 #endif
16013 #ifdef __cplusplus
16014 }
16015 #endif
16016
16017 int
16018 main ()
16019 {
16020 return f != $ac_func;
16021   ;
16022   return 0;
16023 }
16024 _ACEOF
16025 rm -f conftest.$ac_objext conftest$ac_exeext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16027   (eval $ac_link) 2>conftest.er1
16028   ac_status=$?
16029   grep -v '^ *+' conftest.er1 >conftest.err
16030   rm -f conftest.er1
16031   cat conftest.err >&5
16032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033   (exit $ac_status); } &&
16034          { ac_try='test -z "$ac_c_werror_flag"
16035                          || test ! -s conftest.err'
16036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037   (eval $ac_try) 2>&5
16038   ac_status=$?
16039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040   (exit $ac_status); }; } &&
16041          { ac_try='test -s conftest$ac_exeext'
16042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043   (eval $ac_try) 2>&5
16044   ac_status=$?
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); }; }; then
16047   eval "$as_ac_var=yes"
16048 else
16049   echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16051
16052 eval "$as_ac_var=no"
16053 fi
16054 rm -f conftest.err conftest.$ac_objext \
16055       conftest$ac_exeext conftest.$ac_ext
16056 fi
16057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16059 if test `eval echo '${'$as_ac_var'}'` = yes; then
16060   cat >>confdefs.h <<_ACEOF
16061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16062 _ACEOF
16063
16064 fi
16065 done
16066
16067 ol_cv_func_strerror_r=no
16068 if test "${ac_cv_func_strerror_r}" = yes ; then
16069         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16070 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16071 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16072   echo $ECHO_N "(cached) $ECHO_C" >&6
16073 else
16074
16075         cat >conftest.$ac_ext <<_ACEOF
16076 /* confdefs.h.  */
16077 _ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h.  */
16081 #include <string.h>
16082 _ACEOF
16083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16084   $EGREP "strerror_r" >/dev/null 2>&1; then
16085   ol_decl_strerror_r=yes
16086 else
16087   ol_decl_strerror_r=no
16088 fi
16089 rm -f conftest*
16090
16091         if test $ol_decl_strerror_r = yes ; then
16092                 cat >conftest.$ac_ext <<_ACEOF
16093 /* confdefs.h.  */
16094 _ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h.  */
16098 #include <string.h>
16099 int
16100 main ()
16101 {
16102    /* from autoconf 2.59 */
16103                                 char buf[100];
16104                                 char x = *strerror_r (0, buf, sizeof buf);
16105                                 char *p = strerror_r (0, buf, sizeof buf);
16106
16107   ;
16108   return 0;
16109 }
16110 _ACEOF
16111 rm -f conftest.$ac_objext
16112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16113   (eval $ac_compile) 2>conftest.er1
16114   ac_status=$?
16115   grep -v '^ *+' conftest.er1 >conftest.err
16116   rm -f conftest.er1
16117   cat conftest.err >&5
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); } &&
16120          { ac_try='test -z "$ac_c_werror_flag"
16121                          || test ! -s conftest.err'
16122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123   (eval $ac_try) 2>&5
16124   ac_status=$?
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); }; } &&
16127          { ac_try='test -s conftest.$ac_objext'
16128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129   (eval $ac_try) 2>&5
16130   ac_status=$?
16131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132   (exit $ac_status); }; }; then
16133   ol_cv_nonposix_strerror_r=yes
16134 else
16135   echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16137
16138 ol_cv_nonposix_strerror_r=no
16139 fi
16140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16141         else
16142                 if test "$cross_compiling" = yes; then
16143   ol_cv_nonposix_strerror=no
16144 else
16145   cat >conftest.$ac_ext <<_ACEOF
16146 /* confdefs.h.  */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h.  */
16151
16152                         main() {
16153                                 char buf[100];
16154                                 buf[0] = 0;
16155                                 strerror_r( 1, buf, sizeof buf );
16156                                 exit( buf[0] == 0 );
16157                         }
16158
16159 _ACEOF
16160 rm -f conftest$ac_exeext
16161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16162   (eval $ac_link) 2>&5
16163   ac_status=$?
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167   (eval $ac_try) 2>&5
16168   ac_status=$?
16169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); }; }; then
16171   ol_cv_nonposix_strerror_r=yes
16172 else
16173   echo "$as_me: program exited with status $ac_status" >&5
16174 echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.$ac_ext >&5
16176
16177 ( exit $ac_status )
16178 ol_cv_nonposix_strerror=no
16179 fi
16180 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16181 fi
16182         fi
16183
16184 fi
16185 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16186 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16187 if test $ol_cv_nonposix_strerror_r = yes ; then
16188
16189 cat >>confdefs.h <<\_ACEOF
16190 #define HAVE_NONPOSIX_STRERROR_R 1
16191 _ACEOF
16192
16193 fi
16194
16195 elif test "${ac_cv_func_strerror}" = no ; then
16196         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16197 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16198 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16199   echo $ECHO_N "(cached) $ECHO_C" >&6
16200 else
16201
16202         cat >conftest.$ac_ext <<_ACEOF
16203 /* confdefs.h.  */
16204 _ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h.  */
16208
16209 #include <stdio.h>
16210 #include <sys/types.h>
16211 #include <errno.h>
16212 #ifdef WINNT
16213 #include <stdlib.h>
16214 #endif
16215 int
16216 main ()
16217 {
16218 char *c = (char *) *sys_errlist
16219   ;
16220   return 0;
16221 }
16222 _ACEOF
16223 rm -f conftest.$ac_objext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225   (eval $ac_compile) 2>conftest.er1
16226   ac_status=$?
16227   grep -v '^ *+' conftest.er1 >conftest.err
16228   rm -f conftest.er1
16229   cat conftest.err >&5
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); } &&
16232          { ac_try='test -z "$ac_c_werror_flag"
16233                          || test ! -s conftest.err'
16234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235   (eval $ac_try) 2>&5
16236   ac_status=$?
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); }; } &&
16239          { ac_try='test -s conftest.$ac_objext'
16240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241   (eval $ac_try) 2>&5
16242   ac_status=$?
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); }; }; then
16245   ol_cv_dcl_sys_errlist=yes
16246         ol_cv_have_sys_errlist=yes
16247 else
16248   echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16250
16251 ol_cv_dcl_sys_errlist=no
16252 fi
16253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16254 fi
16255 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16256 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16257 #
16258 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16259 if test $ol_cv_dcl_sys_errlist = no ; then
16260
16261 cat >>confdefs.h <<\_ACEOF
16262 #define DECL_SYS_ERRLIST 1
16263 _ACEOF
16264
16265
16266         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16267 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16268 if test "${ol_cv_have_sys_errlist+set}" = set; then
16269   echo $ECHO_N "(cached) $ECHO_C" >&6
16270 else
16271
16272                 cat >conftest.$ac_ext <<_ACEOF
16273 /* confdefs.h.  */
16274 _ACEOF
16275 cat confdefs.h >>conftest.$ac_ext
16276 cat >>conftest.$ac_ext <<_ACEOF
16277 /* end confdefs.h.  */
16278 #include <errno.h>
16279 int
16280 main ()
16281 {
16282 char *c = (char *) *sys_errlist
16283   ;
16284   return 0;
16285 }
16286 _ACEOF
16287 rm -f conftest.$ac_objext conftest$ac_exeext
16288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16289   (eval $ac_link) 2>conftest.er1
16290   ac_status=$?
16291   grep -v '^ *+' conftest.er1 >conftest.err
16292   rm -f conftest.er1
16293   cat conftest.err >&5
16294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); } &&
16296          { ac_try='test -z "$ac_c_werror_flag"
16297                          || test ! -s conftest.err'
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); }; } &&
16303          { ac_try='test -s conftest$ac_exeext'
16304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305   (eval $ac_try) 2>&5
16306   ac_status=$?
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); }; }; then
16309   ol_cv_have_sys_errlist=yes
16310 else
16311   echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16313
16314 ol_cv_have_sys_errlist=no
16315 fi
16316 rm -f conftest.err conftest.$ac_objext \
16317       conftest$ac_exeext conftest.$ac_ext
16318 fi
16319 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16320 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16321 fi
16322 if test $ol_cv_have_sys_errlist = yes ; then
16323
16324 cat >>confdefs.h <<\_ACEOF
16325 #define HAVE_SYS_ERRLIST 1
16326 _ACEOF
16327
16328 fi
16329
16330 fi
16331
16332
16333
16334 for ac_header in regex.h
16335 do
16336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16338   echo "$as_me:$LINENO: checking for $ac_header" >&5
16339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16341   echo $ECHO_N "(cached) $ECHO_C" >&6
16342 fi
16343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16345 else
16346   # Is the header compilable?
16347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16349 cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h.  */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h.  */
16355 $ac_includes_default
16356 #include <$ac_header>
16357 _ACEOF
16358 rm -f conftest.$ac_objext
16359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16360   (eval $ac_compile) 2>conftest.er1
16361   ac_status=$?
16362   grep -v '^ *+' conftest.er1 >conftest.err
16363   rm -f conftest.er1
16364   cat conftest.err >&5
16365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366   (exit $ac_status); } &&
16367          { ac_try='test -z "$ac_c_werror_flag"
16368                          || test ! -s conftest.err'
16369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370   (eval $ac_try) 2>&5
16371   ac_status=$?
16372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   (exit $ac_status); }; } &&
16374          { ac_try='test -s conftest.$ac_objext'
16375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376   (eval $ac_try) 2>&5
16377   ac_status=$?
16378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379   (exit $ac_status); }; }; then
16380   ac_header_compiler=yes
16381 else
16382   echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16384
16385 ac_header_compiler=no
16386 fi
16387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16389 echo "${ECHO_T}$ac_header_compiler" >&6
16390
16391 # Is the header present?
16392 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16394 cat >conftest.$ac_ext <<_ACEOF
16395 /* confdefs.h.  */
16396 _ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h.  */
16400 #include <$ac_header>
16401 _ACEOF
16402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16403   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16404   ac_status=$?
16405   grep -v '^ *+' conftest.er1 >conftest.err
16406   rm -f conftest.er1
16407   cat conftest.err >&5
16408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409   (exit $ac_status); } >/dev/null; then
16410   if test -s conftest.err; then
16411     ac_cpp_err=$ac_c_preproc_warn_flag
16412     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16413   else
16414     ac_cpp_err=
16415   fi
16416 else
16417   ac_cpp_err=yes
16418 fi
16419 if test -z "$ac_cpp_err"; then
16420   ac_header_preproc=yes
16421 else
16422   echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16424
16425   ac_header_preproc=no
16426 fi
16427 rm -f conftest.err conftest.$ac_ext
16428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16429 echo "${ECHO_T}$ac_header_preproc" >&6
16430
16431 # So?  What about this header?
16432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16433   yes:no: )
16434     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16438     ac_header_preproc=yes
16439     ;;
16440   no:yes:* )
16441     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16443     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16444 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16445     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16447     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16448 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16451     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16453     (
16454       cat <<\_ASBOX
16455 ## ------------------------------------------ ##
16456 ## Report this to the AC_PACKAGE_NAME lists.  ##
16457 ## ------------------------------------------ ##
16458 _ASBOX
16459     ) |
16460       sed "s/^/$as_me: WARNING:     /" >&2
16461     ;;
16462 esac
16463 echo "$as_me:$LINENO: checking for $ac_header" >&5
16464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16466   echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468   eval "$as_ac_Header=\$ac_header_preproc"
16469 fi
16470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16472
16473 fi
16474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16475   cat >>confdefs.h <<_ACEOF
16476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16477 _ACEOF
16478
16479 fi
16480
16481 done
16482
16483 if test "$ac_cv_header_regex_h" != yes ; then
16484         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16485 echo "$as_me: error: POSIX regex.h required." >&2;}
16486    { (exit 1); exit 1; }; }
16487 fi
16488 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16489 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16490 if test "${ac_cv_search_regfree+set}" = set; then
16491   echo $ECHO_N "(cached) $ECHO_C" >&6
16492 else
16493   ac_func_search_save_LIBS=$LIBS
16494 ac_cv_search_regfree=no
16495 cat >conftest.$ac_ext <<_ACEOF
16496 /* confdefs.h.  */
16497 _ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h.  */
16501
16502 /* Override any gcc2 internal prototype to avoid an error.  */
16503 #ifdef __cplusplus
16504 extern "C"
16505 #endif
16506 /* We use char because int might match the return type of a gcc2
16507    builtin and then its argument prototype would still apply.  */
16508 char regfree ();
16509 int
16510 main ()
16511 {
16512 regfree ();
16513   ;
16514   return 0;
16515 }
16516 _ACEOF
16517 rm -f conftest.$ac_objext conftest$ac_exeext
16518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16519   (eval $ac_link) 2>conftest.er1
16520   ac_status=$?
16521   grep -v '^ *+' conftest.er1 >conftest.err
16522   rm -f conftest.er1
16523   cat conftest.err >&5
16524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525   (exit $ac_status); } &&
16526          { ac_try='test -z "$ac_c_werror_flag"
16527                          || test ! -s conftest.err'
16528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16529   (eval $ac_try) 2>&5
16530   ac_status=$?
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); }; } &&
16533          { ac_try='test -s conftest$ac_exeext'
16534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16535   (eval $ac_try) 2>&5
16536   ac_status=$?
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); }; }; then
16539   ac_cv_search_regfree="none required"
16540 else
16541   echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16543
16544 fi
16545 rm -f conftest.err conftest.$ac_objext \
16546       conftest$ac_exeext conftest.$ac_ext
16547 if test "$ac_cv_search_regfree" = no; then
16548   for ac_lib in regex gnuregex; do
16549     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16550     cat >conftest.$ac_ext <<_ACEOF
16551 /* confdefs.h.  */
16552 _ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h.  */
16556
16557 /* Override any gcc2 internal prototype to avoid an error.  */
16558 #ifdef __cplusplus
16559 extern "C"
16560 #endif
16561 /* We use char because int might match the return type of a gcc2
16562    builtin and then its argument prototype would still apply.  */
16563 char regfree ();
16564 int
16565 main ()
16566 {
16567 regfree ();
16568   ;
16569   return 0;
16570 }
16571 _ACEOF
16572 rm -f conftest.$ac_objext conftest$ac_exeext
16573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16574   (eval $ac_link) 2>conftest.er1
16575   ac_status=$?
16576   grep -v '^ *+' conftest.er1 >conftest.err
16577   rm -f conftest.er1
16578   cat conftest.err >&5
16579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580   (exit $ac_status); } &&
16581          { ac_try='test -z "$ac_c_werror_flag"
16582                          || test ! -s conftest.err'
16583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584   (eval $ac_try) 2>&5
16585   ac_status=$?
16586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587   (exit $ac_status); }; } &&
16588          { ac_try='test -s conftest$ac_exeext'
16589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590   (eval $ac_try) 2>&5
16591   ac_status=$?
16592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); }; }; then
16594   ac_cv_search_regfree="-l$ac_lib"
16595 break
16596 else
16597   echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16599
16600 fi
16601 rm -f conftest.err conftest.$ac_objext \
16602       conftest$ac_exeext conftest.$ac_ext
16603   done
16604 fi
16605 LIBS=$ac_func_search_save_LIBS
16606 fi
16607 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16608 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16609 if test "$ac_cv_search_regfree" != no; then
16610   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16611   :
16612 else
16613   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16614 echo "$as_me: error: POSIX regex required." >&2;}
16615    { (exit 1); exit 1; }; }
16616 fi
16617
16618
16619
16620 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16621 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16622 if test "${ol_cv_c_posix_regex+set}" = set; then
16623   echo $ECHO_N "(cached) $ECHO_C" >&6
16624 else
16625
16626         if test "$cross_compiling" = yes; then
16627   ol_cv_c_posix_regex=cross
16628 else
16629   cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h.  */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h.  */
16635
16636 #include <sys/types.h>
16637 #include <regex.h>
16638 static char *pattern, *string;
16639 main()
16640 {
16641         int rc;
16642         regex_t re;
16643
16644         pattern = "^A";
16645
16646         if(regcomp(&re, pattern, 0)) {
16647                 return -1;
16648         }
16649
16650         string = "ALL MATCH";
16651
16652         rc = regexec(&re, string, 0, (void*)0, 0);
16653
16654         regfree(&re);
16655
16656         return rc;
16657 }
16658 _ACEOF
16659 rm -f conftest$ac_exeext
16660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16661   (eval $ac_link) 2>&5
16662   ac_status=$?
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666   (eval $ac_try) 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); }; }; then
16670   ol_cv_c_posix_regex=yes
16671 else
16672   echo "$as_me: program exited with status $ac_status" >&5
16673 echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16675
16676 ( exit $ac_status )
16677 ol_cv_c_posix_regex=no
16678 fi
16679 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16680 fi
16681 fi
16682 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16683 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16684
16685 if test "$ol_cv_c_posix_regex" = no ; then
16686         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16687 echo "$as_me: error: broken POSIX regex!" >&2;}
16688    { (exit 1); exit 1; }; }
16689 fi
16690
16691
16692 have_uuid=no
16693
16694 for ac_header in sys/uuid.h
16695 do
16696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16698   echo "$as_me:$LINENO: checking for $ac_header" >&5
16699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16701   echo $ECHO_N "(cached) $ECHO_C" >&6
16702 fi
16703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16705 else
16706   # Is the header compilable?
16707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16709 cat >conftest.$ac_ext <<_ACEOF
16710 /* confdefs.h.  */
16711 _ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h.  */
16715 $ac_includes_default
16716 #include <$ac_header>
16717 _ACEOF
16718 rm -f conftest.$ac_objext
16719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16720   (eval $ac_compile) 2>conftest.er1
16721   ac_status=$?
16722   grep -v '^ *+' conftest.er1 >conftest.err
16723   rm -f conftest.er1
16724   cat conftest.err >&5
16725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726   (exit $ac_status); } &&
16727          { ac_try='test -z "$ac_c_werror_flag"
16728                          || test ! -s conftest.err'
16729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730   (eval $ac_try) 2>&5
16731   ac_status=$?
16732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733   (exit $ac_status); }; } &&
16734          { ac_try='test -s conftest.$ac_objext'
16735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736   (eval $ac_try) 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); }; }; then
16740   ac_header_compiler=yes
16741 else
16742   echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16744
16745 ac_header_compiler=no
16746 fi
16747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16749 echo "${ECHO_T}$ac_header_compiler" >&6
16750
16751 # Is the header present?
16752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16754 cat >conftest.$ac_ext <<_ACEOF
16755 /* confdefs.h.  */
16756 _ACEOF
16757 cat confdefs.h >>conftest.$ac_ext
16758 cat >>conftest.$ac_ext <<_ACEOF
16759 /* end confdefs.h.  */
16760 #include <$ac_header>
16761 _ACEOF
16762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16764   ac_status=$?
16765   grep -v '^ *+' conftest.er1 >conftest.err
16766   rm -f conftest.er1
16767   cat conftest.err >&5
16768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); } >/dev/null; then
16770   if test -s conftest.err; then
16771     ac_cpp_err=$ac_c_preproc_warn_flag
16772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16773   else
16774     ac_cpp_err=
16775   fi
16776 else
16777   ac_cpp_err=yes
16778 fi
16779 if test -z "$ac_cpp_err"; then
16780   ac_header_preproc=yes
16781 else
16782   echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16784
16785   ac_header_preproc=no
16786 fi
16787 rm -f conftest.err conftest.$ac_ext
16788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16789 echo "${ECHO_T}$ac_header_preproc" >&6
16790
16791 # So?  What about this header?
16792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16793   yes:no: )
16794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16798     ac_header_preproc=yes
16799     ;;
16800   no:yes:* )
16801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16803     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16804 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16805     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16807     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16808 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16811     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16813     (
16814       cat <<\_ASBOX
16815 ## ------------------------------------------ ##
16816 ## Report this to the AC_PACKAGE_NAME lists.  ##
16817 ## ------------------------------------------ ##
16818 _ASBOX
16819     ) |
16820       sed "s/^/$as_me: WARNING:     /" >&2
16821     ;;
16822 esac
16823 echo "$as_me:$LINENO: checking for $ac_header" >&5
16824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16826   echo $ECHO_N "(cached) $ECHO_C" >&6
16827 else
16828   eval "$as_ac_Header=\$ac_header_preproc"
16829 fi
16830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16832
16833 fi
16834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16835   cat >>confdefs.h <<_ACEOF
16836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16837 _ACEOF
16838
16839 fi
16840
16841 done
16842
16843 if test $ac_cv_header_sys_uuid_h = yes ; then
16844         save_LIBS="$LIBS"
16845         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16846 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16847 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16848   echo $ECHO_N "(cached) $ECHO_C" >&6
16849 else
16850   ac_func_search_save_LIBS=$LIBS
16851 ac_cv_search_uuid_to_str=no
16852 cat >conftest.$ac_ext <<_ACEOF
16853 /* confdefs.h.  */
16854 _ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h.  */
16858
16859 /* Override any gcc2 internal prototype to avoid an error.  */
16860 #ifdef __cplusplus
16861 extern "C"
16862 #endif
16863 /* We use char because int might match the return type of a gcc2
16864    builtin and then its argument prototype would still apply.  */
16865 char uuid_to_str ();
16866 int
16867 main ()
16868 {
16869 uuid_to_str ();
16870   ;
16871   return 0;
16872 }
16873 _ACEOF
16874 rm -f conftest.$ac_objext conftest$ac_exeext
16875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16876   (eval $ac_link) 2>conftest.er1
16877   ac_status=$?
16878   grep -v '^ *+' conftest.er1 >conftest.err
16879   rm -f conftest.er1
16880   cat conftest.err >&5
16881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882   (exit $ac_status); } &&
16883          { ac_try='test -z "$ac_c_werror_flag"
16884                          || test ! -s conftest.err'
16885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886   (eval $ac_try) 2>&5
16887   ac_status=$?
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); }; } &&
16890          { ac_try='test -s conftest$ac_exeext'
16891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892   (eval $ac_try) 2>&5
16893   ac_status=$?
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); }; }; then
16896   ac_cv_search_uuid_to_str="none required"
16897 else
16898   echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16900
16901 fi
16902 rm -f conftest.err conftest.$ac_objext \
16903       conftest$ac_exeext conftest.$ac_ext
16904 if test "$ac_cv_search_uuid_to_str" = no; then
16905   for ac_lib in uuid; do
16906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16907     cat >conftest.$ac_ext <<_ACEOF
16908 /* confdefs.h.  */
16909 _ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h.  */
16913
16914 /* Override any gcc2 internal prototype to avoid an error.  */
16915 #ifdef __cplusplus
16916 extern "C"
16917 #endif
16918 /* We use char because int might match the return type of a gcc2
16919    builtin and then its argument prototype would still apply.  */
16920 char uuid_to_str ();
16921 int
16922 main ()
16923 {
16924 uuid_to_str ();
16925   ;
16926   return 0;
16927 }
16928 _ACEOF
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16931   (eval $ac_link) 2>conftest.er1
16932   ac_status=$?
16933   grep -v '^ *+' conftest.er1 >conftest.err
16934   rm -f conftest.er1
16935   cat conftest.err >&5
16936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937   (exit $ac_status); } &&
16938          { ac_try='test -z "$ac_c_werror_flag"
16939                          || test ! -s conftest.err'
16940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941   (eval $ac_try) 2>&5
16942   ac_status=$?
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); }; } &&
16945          { ac_try='test -s conftest$ac_exeext'
16946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947   (eval $ac_try) 2>&5
16948   ac_status=$?
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); }; }; then
16951   ac_cv_search_uuid_to_str="-l$ac_lib"
16952 break
16953 else
16954   echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16956
16957 fi
16958 rm -f conftest.err conftest.$ac_objext \
16959       conftest$ac_exeext conftest.$ac_ext
16960   done
16961 fi
16962 LIBS=$ac_func_search_save_LIBS
16963 fi
16964 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
16965 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
16966 if test "$ac_cv_search_uuid_to_str" != no; then
16967   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
16968   have_uuid=yes
16969 else
16970   :
16971 fi
16972
16973         LIBS="$save_LIBS"
16974
16975         if test have_uuid = yes ; then
16976
16977 cat >>confdefs.h <<\_ACEOF
16978 #define HAVE_UUID_TO_STR 1
16979 _ACEOF
16980
16981
16982                 test "$ac_cv_search_uuid_to_str" = "none required" || \
16983                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
16984         fi
16985 fi
16986
16987 if test $have_uuid = no ; then
16988         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
16989 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
16990         save_LIBS="$LIBS"
16991         LIBS="$LIBS -lrpcrt4"
16992         cat >conftest.$ac_ext <<_ACEOF
16993 /* confdefs.h.  */
16994 _ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h.  */
16998
16999                 int __stdcall UuidCreate(void *);
17000                 int __stdcall UuidToStringA(void *,void **);
17001
17002 int
17003 main ()
17004 {
17005
17006                 UuidCreate(0);
17007                 UuidToStringA(0,0);
17008
17009   ;
17010   return 0;
17011 }
17012 _ACEOF
17013 rm -f conftest.$ac_objext conftest$ac_exeext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17015   (eval $ac_link) 2>conftest.er1
17016   ac_status=$?
17017   grep -v '^ *+' conftest.er1 >conftest.err
17018   rm -f conftest.er1
17019   cat conftest.err >&5
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); } &&
17022          { ac_try='test -z "$ac_c_werror_flag"
17023                          || test ! -s conftest.err'
17024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025   (eval $ac_try) 2>&5
17026   ac_status=$?
17027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028   (exit $ac_status); }; } &&
17029          { ac_try='test -s conftest$ac_exeext'
17030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031   (eval $ac_try) 2>&5
17032   ac_status=$?
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); }; }; then
17035   need_rpcrt=yes
17036 else
17037   echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17039
17040 need_rpcrt=no
17041 fi
17042 rm -f conftest.err conftest.$ac_objext \
17043       conftest$ac_exeext conftest.$ac_ext
17044         if test $need_rpcrt = yes; then
17045                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17046         fi
17047         LIBS="$save_LIBS"
17048         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17049 echo "${ECHO_T}$need_rpcrt" >&6
17050 fi
17051
17052 ol_cv_lib_resolver=no
17053 if test $ol_cv_lib_resolver = no ; then
17054         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17055 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17056 if test "${ol_cv_resolver_none+set}" = set; then
17057   echo $ECHO_N "(cached) $ECHO_C" >&6
17058 else
17059
17060         ol_RESOLVER_LIB=
17061         ol_LIBS=$LIBS
17062         LIBS="$ol_RESOLVER_LIB $LIBS"
17063
17064         cat >conftest.$ac_ext <<_ACEOF
17065 /* confdefs.h.  */
17066 _ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h.  */
17070
17071 #ifdef HAVE_SYS_TYPES_H
17072 #       include <sys/types.h>
17073 #endif
17074 #include <netinet/in.h>
17075 #ifdef HAVE_ARPA_NAMESER_H
17076 #       include <arpa/nameser.h>
17077 #endif
17078 #ifdef HAVE_RESOLV_H
17079 #       include <resolv.h>
17080 #endif
17081
17082 int
17083 main ()
17084 {
17085 {
17086         int len, status;
17087         char *request = NULL;
17088         unsigned char reply[64*1024];
17089         unsigned char host[64*1024];
17090         unsigned char *p;
17091
17092 #ifdef NS_HFIXEDSZ
17093         /* Bind 8/9 interface */
17094         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17095 #else
17096         /* Bind 4 interface */
17097 # ifndef T_SRV
17098 #  define T_SRV 33
17099 # endif
17100         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17101 #endif
17102         p = reply;
17103 #ifdef NS_HFIXEDSZ
17104         /* Bind 8/9 interface */
17105         p += NS_HFIXEDSZ;
17106 #elif defined(HFIXEDSZ)
17107         /* Bind 4 interface w/ HFIXEDSZ */
17108         p += HFIXEDSZ;
17109 #else
17110         /* Bind 4 interface w/o HFIXEDSZ */
17111         p += sizeof(HEADER);
17112 #endif
17113         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17114 }
17115   ;
17116   return 0;
17117 }
17118 _ACEOF
17119 rm -f conftest.$ac_objext conftest$ac_exeext
17120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17121   (eval $ac_link) 2>conftest.er1
17122   ac_status=$?
17123   grep -v '^ *+' conftest.er1 >conftest.err
17124   rm -f conftest.er1
17125   cat conftest.err >&5
17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); } &&
17128          { ac_try='test -z "$ac_c_werror_flag"
17129                          || test ! -s conftest.err'
17130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131   (eval $ac_try) 2>&5
17132   ac_status=$?
17133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134   (exit $ac_status); }; } &&
17135          { ac_try='test -s conftest$ac_exeext'
17136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137   (eval $ac_try) 2>&5
17138   ac_status=$?
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); }; }; then
17141   ol_cv_resolver_none=yes
17142 else
17143   echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17145
17146 ol_cv_resolver_none=no
17147 fi
17148 rm -f conftest.err conftest.$ac_objext \
17149       conftest$ac_exeext conftest.$ac_ext
17150
17151         LIBS="$ol_LIBS"
17152
17153 fi
17154 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17155 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17156
17157         if test $ol_cv_resolver_none = yes ; then
17158                 ol_cv_lib_resolver=yes
17159         fi
17160 fi
17161
17162 if test $ol_cv_lib_resolver = no ; then
17163         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17164 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17165 if test "${ol_cv_resolver_resolv+set}" = set; then
17166   echo $ECHO_N "(cached) $ECHO_C" >&6
17167 else
17168
17169         ol_RESOLVER_LIB=-lresolv
17170         ol_LIBS=$LIBS
17171         LIBS="$ol_RESOLVER_LIB $LIBS"
17172
17173         cat >conftest.$ac_ext <<_ACEOF
17174 /* confdefs.h.  */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h.  */
17179
17180 #ifdef HAVE_SYS_TYPES_H
17181 #       include <sys/types.h>
17182 #endif
17183 #include <netinet/in.h>
17184 #ifdef HAVE_ARPA_NAMESER_H
17185 #       include <arpa/nameser.h>
17186 #endif
17187 #ifdef HAVE_RESOLV_H
17188 #       include <resolv.h>
17189 #endif
17190
17191 int
17192 main ()
17193 {
17194 {
17195         int len, status;
17196         char *request = NULL;
17197         unsigned char reply[64*1024];
17198         unsigned char host[64*1024];
17199         unsigned char *p;
17200
17201 #ifdef NS_HFIXEDSZ
17202         /* Bind 8/9 interface */
17203         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17204 #else
17205         /* Bind 4 interface */
17206 # ifndef T_SRV
17207 #  define T_SRV 33
17208 # endif
17209         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17210 #endif
17211         p = reply;
17212 #ifdef NS_HFIXEDSZ
17213         /* Bind 8/9 interface */
17214         p += NS_HFIXEDSZ;
17215 #elif defined(HFIXEDSZ)
17216         /* Bind 4 interface w/ HFIXEDSZ */
17217         p += HFIXEDSZ;
17218 #else
17219         /* Bind 4 interface w/o HFIXEDSZ */
17220         p += sizeof(HEADER);
17221 #endif
17222         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17223 }
17224   ;
17225   return 0;
17226 }
17227 _ACEOF
17228 rm -f conftest.$ac_objext conftest$ac_exeext
17229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17230   (eval $ac_link) 2>conftest.er1
17231   ac_status=$?
17232   grep -v '^ *+' conftest.er1 >conftest.err
17233   rm -f conftest.er1
17234   cat conftest.err >&5
17235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); } &&
17237          { ac_try='test -z "$ac_c_werror_flag"
17238                          || test ! -s conftest.err'
17239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240   (eval $ac_try) 2>&5
17241   ac_status=$?
17242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243   (exit $ac_status); }; } &&
17244          { ac_try='test -s conftest$ac_exeext'
17245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246   (eval $ac_try) 2>&5
17247   ac_status=$?
17248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249   (exit $ac_status); }; }; then
17250   ol_cv_resolver_resolv=yes
17251 else
17252   echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17254
17255 ol_cv_resolver_resolv=no
17256 fi
17257 rm -f conftest.err conftest.$ac_objext \
17258       conftest$ac_exeext conftest.$ac_ext
17259
17260         LIBS="$ol_LIBS"
17261
17262 fi
17263 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17264 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17265
17266         if test $ol_cv_resolver_resolv = yes ; then
17267                 ol_cv_lib_resolver=-lresolv
17268         fi
17269 fi
17270
17271 if test $ol_cv_lib_resolver = no ; then
17272         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17273 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17274 if test "${ol_cv_resolver_bind+set}" = set; then
17275   echo $ECHO_N "(cached) $ECHO_C" >&6
17276 else
17277
17278         ol_RESOLVER_LIB=-lbind
17279         ol_LIBS=$LIBS
17280         LIBS="$ol_RESOLVER_LIB $LIBS"
17281
17282         cat >conftest.$ac_ext <<_ACEOF
17283 /* confdefs.h.  */
17284 _ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h.  */
17288
17289 #ifdef HAVE_SYS_TYPES_H
17290 #       include <sys/types.h>
17291 #endif
17292 #include <netinet/in.h>
17293 #ifdef HAVE_ARPA_NAMESER_H
17294 #       include <arpa/nameser.h>
17295 #endif
17296 #ifdef HAVE_RESOLV_H
17297 #       include <resolv.h>
17298 #endif
17299
17300 int
17301 main ()
17302 {
17303 {
17304         int len, status;
17305         char *request = NULL;
17306         unsigned char reply[64*1024];
17307         unsigned char host[64*1024];
17308         unsigned char *p;
17309
17310 #ifdef NS_HFIXEDSZ
17311         /* Bind 8/9 interface */
17312         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17313 #else
17314         /* Bind 4 interface */
17315 # ifndef T_SRV
17316 #  define T_SRV 33
17317 # endif
17318         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17319 #endif
17320         p = reply;
17321 #ifdef NS_HFIXEDSZ
17322         /* Bind 8/9 interface */
17323         p += NS_HFIXEDSZ;
17324 #elif defined(HFIXEDSZ)
17325         /* Bind 4 interface w/ HFIXEDSZ */
17326         p += HFIXEDSZ;
17327 #else
17328         /* Bind 4 interface w/o HFIXEDSZ */
17329         p += sizeof(HEADER);
17330 #endif
17331         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17332 }
17333   ;
17334   return 0;
17335 }
17336 _ACEOF
17337 rm -f conftest.$ac_objext conftest$ac_exeext
17338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17339   (eval $ac_link) 2>conftest.er1
17340   ac_status=$?
17341   grep -v '^ *+' conftest.er1 >conftest.err
17342   rm -f conftest.er1
17343   cat conftest.err >&5
17344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345   (exit $ac_status); } &&
17346          { ac_try='test -z "$ac_c_werror_flag"
17347                          || test ! -s conftest.err'
17348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349   (eval $ac_try) 2>&5
17350   ac_status=$?
17351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352   (exit $ac_status); }; } &&
17353          { ac_try='test -s conftest$ac_exeext'
17354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355   (eval $ac_try) 2>&5
17356   ac_status=$?
17357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358   (exit $ac_status); }; }; then
17359   ol_cv_resolver_bind=yes
17360 else
17361   echo "$as_me: failed program was:" >&5
17362 sed 's/^/| /' conftest.$ac_ext >&5
17363
17364 ol_cv_resolver_bind=no
17365 fi
17366 rm -f conftest.err conftest.$ac_objext \
17367       conftest$ac_exeext conftest.$ac_ext
17368
17369         LIBS="$ol_LIBS"
17370
17371 fi
17372 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17373 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17374
17375         if test $ol_cv_resolver_bind = yes ; then
17376                 ol_cv_lib_resolver=-lbind
17377         fi
17378 fi
17379
17380
17381
17382 ol_link_dnssrv=no
17383 if test "$ol_cv_lib_resolver" != no ; then
17384
17385 cat >>confdefs.h <<\_ACEOF
17386 #define HAVE_RES_QUERY 1
17387 _ACEOF
17388
17389
17390         if test "$ol_enable_dnssrv" != no ; then
17391                 ol_link_dnssrv=yes
17392         fi
17393
17394         if test "$ol_cv_lib_resolver" != yes ; then
17395                 LIBS="$ol_cv_lib_resolver $LIBS"
17396         fi
17397 fi
17398
17399 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17400         if test "$ol_link_dnssrv" = no ; then
17401                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17402 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17403    { (exit 1); exit 1; }; }
17404         fi
17405 else
17406         ol_enable_dnssrv=no
17407 fi
17408
17409
17410 for ac_func in hstrerror
17411 do
17412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17413 echo "$as_me:$LINENO: checking for $ac_func" >&5
17414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17415 if eval "test \"\${$as_ac_var+set}\" = set"; then
17416   echo $ECHO_N "(cached) $ECHO_C" >&6
17417 else
17418   cat >conftest.$ac_ext <<_ACEOF
17419 /* confdefs.h.  */
17420 _ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h.  */
17424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17426 #define $ac_func innocuous_$ac_func
17427
17428 /* System header to define __stub macros and hopefully few prototypes,
17429     which can conflict with char $ac_func (); below.
17430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17431     <limits.h> exists even on freestanding compilers.  */
17432
17433 #ifdef __STDC__
17434 # include <limits.h>
17435 #else
17436 # include <assert.h>
17437 #endif
17438
17439 #undef $ac_func
17440
17441 /* Override any gcc2 internal prototype to avoid an error.  */
17442 #ifdef __cplusplus
17443 extern "C"
17444 {
17445 #endif
17446 /* We use char because int might match the return type of a gcc2
17447    builtin and then its argument prototype would still apply.  */
17448 char $ac_func ();
17449 /* The GNU C library defines this for functions which it implements
17450     to always fail with ENOSYS.  Some functions are actually named
17451     something starting with __ and the normal name is an alias.  */
17452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17453 choke me
17454 #else
17455 char (*f) () = $ac_func;
17456 #endif
17457 #ifdef __cplusplus
17458 }
17459 #endif
17460
17461 int
17462 main ()
17463 {
17464 return f != $ac_func;
17465   ;
17466   return 0;
17467 }
17468 _ACEOF
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17471   (eval $ac_link) 2>conftest.er1
17472   ac_status=$?
17473   grep -v '^ *+' conftest.er1 >conftest.err
17474   rm -f conftest.er1
17475   cat conftest.err >&5
17476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477   (exit $ac_status); } &&
17478          { ac_try='test -z "$ac_c_werror_flag"
17479                          || test ! -s conftest.err'
17480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481   (eval $ac_try) 2>&5
17482   ac_status=$?
17483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484   (exit $ac_status); }; } &&
17485          { ac_try='test -s conftest$ac_exeext'
17486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487   (eval $ac_try) 2>&5
17488   ac_status=$?
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); }; }; then
17491   eval "$as_ac_var=yes"
17492 else
17493   echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17495
17496 eval "$as_ac_var=no"
17497 fi
17498 rm -f conftest.err conftest.$ac_objext \
17499       conftest$ac_exeext conftest.$ac_ext
17500 fi
17501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17503 if test `eval echo '${'$as_ac_var'}'` = yes; then
17504   cat >>confdefs.h <<_ACEOF
17505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17506 _ACEOF
17507
17508 fi
17509 done
17510
17511
17512
17513
17514
17515
17516 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17517 do
17518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17519 echo "$as_me:$LINENO: checking for $ac_func" >&5
17520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17521 if eval "test \"\${$as_ac_var+set}\" = set"; then
17522   echo $ECHO_N "(cached) $ECHO_C" >&6
17523 else
17524   cat >conftest.$ac_ext <<_ACEOF
17525 /* confdefs.h.  */
17526 _ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h.  */
17530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17532 #define $ac_func innocuous_$ac_func
17533
17534 /* System header to define __stub macros and hopefully few prototypes,
17535     which can conflict with char $ac_func (); below.
17536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17537     <limits.h> exists even on freestanding compilers.  */
17538
17539 #ifdef __STDC__
17540 # include <limits.h>
17541 #else
17542 # include <assert.h>
17543 #endif
17544
17545 #undef $ac_func
17546
17547 /* Override any gcc2 internal prototype to avoid an error.  */
17548 #ifdef __cplusplus
17549 extern "C"
17550 {
17551 #endif
17552 /* We use char because int might match the return type of a gcc2
17553    builtin and then its argument prototype would still apply.  */
17554 char $ac_func ();
17555 /* The GNU C library defines this for functions which it implements
17556     to always fail with ENOSYS.  Some functions are actually named
17557     something starting with __ and the normal name is an alias.  */
17558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17559 choke me
17560 #else
17561 char (*f) () = $ac_func;
17562 #endif
17563 #ifdef __cplusplus
17564 }
17565 #endif
17566
17567 int
17568 main ()
17569 {
17570 return f != $ac_func;
17571   ;
17572   return 0;
17573 }
17574 _ACEOF
17575 rm -f conftest.$ac_objext conftest$ac_exeext
17576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17577   (eval $ac_link) 2>conftest.er1
17578   ac_status=$?
17579   grep -v '^ *+' conftest.er1 >conftest.err
17580   rm -f conftest.er1
17581   cat conftest.err >&5
17582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583   (exit $ac_status); } &&
17584          { ac_try='test -z "$ac_c_werror_flag"
17585                          || test ! -s conftest.err'
17586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587   (eval $ac_try) 2>&5
17588   ac_status=$?
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); }; } &&
17591          { ac_try='test -s conftest$ac_exeext'
17592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593   (eval $ac_try) 2>&5
17594   ac_status=$?
17595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596   (exit $ac_status); }; }; then
17597   eval "$as_ac_var=yes"
17598 else
17599   echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17601
17602 eval "$as_ac_var=no"
17603 fi
17604 rm -f conftest.err conftest.$ac_objext \
17605       conftest$ac_exeext conftest.$ac_ext
17606 fi
17607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17609 if test `eval echo '${'$as_ac_var'}'` = yes; then
17610   cat >>confdefs.h <<_ACEOF
17611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17612 _ACEOF
17613
17614 fi
17615 done
17616
17617
17618 ol_link_ipv6=no
17619 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17620         if test $ol_enable_ipv6 = yes ; then
17621                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17622 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17623    { (exit 1); exit 1; }; }
17624         fi
17625 elif test $ol_enable_ipv6 != no ; then
17626         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17627 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17628 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17629   echo $ECHO_N "(cached) $ECHO_C" >&6
17630 else
17631
17632                 cat >conftest.$ac_ext <<_ACEOF
17633 /* confdefs.h.  */
17634 _ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h.  */
17638
17639 #                       include <netinet/in.h>
17640 #                       ifdef INET6_ADDRSTRLEN
17641                                 __has_inet6_addrstrlen__;
17642 #                       endif
17643
17644 _ACEOF
17645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17646   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17647   ol_cv_inet6_addrstrlen=yes
17648 else
17649   ol_cv_inet6_addrstrlen=no
17650 fi
17651 rm -f conftest*
17652
17653 fi
17654 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17655 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17656
17657
17658         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17659 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17660 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17661   echo $ECHO_N "(cached) $ECHO_C" >&6
17662 else
17663
17664                 cat >conftest.$ac_ext <<_ACEOF
17665 /* confdefs.h.  */
17666 _ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h.  */
17670
17671 #include <sys/types.h>
17672 #include <sys/socket.h>
17673
17674 int
17675 main ()
17676 {
17677
17678                         struct sockaddr_storage ss;
17679
17680   ;
17681   return 0;
17682 }
17683 _ACEOF
17684 rm -f conftest.$ac_objext
17685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17686   (eval $ac_compile) 2>conftest.er1
17687   ac_status=$?
17688   grep -v '^ *+' conftest.er1 >conftest.err
17689   rm -f conftest.er1
17690   cat conftest.err >&5
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); } &&
17693          { ac_try='test -z "$ac_c_werror_flag"
17694                          || test ! -s conftest.err'
17695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696   (eval $ac_try) 2>&5
17697   ac_status=$?
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); }; } &&
17700          { ac_try='test -s conftest.$ac_objext'
17701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702   (eval $ac_try) 2>&5
17703   ac_status=$?
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); }; }; then
17706   ol_cv_struct_sockaddr_storage=yes
17707 else
17708   echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17710
17711 ol_cv_struct_sockaddr_storage=no
17712 fi
17713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17714 fi
17715 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17716 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17717
17718         if test $ol_cv_inet6_addrstrlen = yes &&
17719            test $ol_cv_struct_sockaddr_storage = yes ; then
17720                 ol_link_ipv6=yes
17721         elif test $ol_enable_ipv6 = yes &&
17722              test $ol_cv_inet6_addrstrlen = no ; then
17723                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17724 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17725    { (exit 1); exit 1; }; }
17726         elif test $ol_enable_ipv6 = yes &&
17727              test $ol_cv_struct_sockaddr_storage = no ; then
17728                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17729 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17730    { (exit 1); exit 1; }; }
17731         fi
17732 fi
17733
17734 if test $ol_enable_local != no ; then
17735
17736 for ac_header in sys/un.h
17737 do
17738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17740   echo "$as_me:$LINENO: checking for $ac_header" >&5
17741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17743   echo $ECHO_N "(cached) $ECHO_C" >&6
17744 fi
17745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17747 else
17748   # Is the header compilable?
17749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17751 cat >conftest.$ac_ext <<_ACEOF
17752 /* confdefs.h.  */
17753 _ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h.  */
17757 $ac_includes_default
17758 #include <$ac_header>
17759 _ACEOF
17760 rm -f conftest.$ac_objext
17761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17762   (eval $ac_compile) 2>conftest.er1
17763   ac_status=$?
17764   grep -v '^ *+' conftest.er1 >conftest.err
17765   rm -f conftest.er1
17766   cat conftest.err >&5
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); } &&
17769          { ac_try='test -z "$ac_c_werror_flag"
17770                          || test ! -s conftest.err'
17771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772   (eval $ac_try) 2>&5
17773   ac_status=$?
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); }; } &&
17776          { ac_try='test -s conftest.$ac_objext'
17777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778   (eval $ac_try) 2>&5
17779   ac_status=$?
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   (exit $ac_status); }; }; then
17782   ac_header_compiler=yes
17783 else
17784   echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17786
17787 ac_header_compiler=no
17788 fi
17789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17791 echo "${ECHO_T}$ac_header_compiler" >&6
17792
17793 # Is the header present?
17794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17796 cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h.  */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h.  */
17802 #include <$ac_header>
17803 _ACEOF
17804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17805   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17806   ac_status=$?
17807   grep -v '^ *+' conftest.er1 >conftest.err
17808   rm -f conftest.er1
17809   cat conftest.err >&5
17810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811   (exit $ac_status); } >/dev/null; then
17812   if test -s conftest.err; then
17813     ac_cpp_err=$ac_c_preproc_warn_flag
17814     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17815   else
17816     ac_cpp_err=
17817   fi
17818 else
17819   ac_cpp_err=yes
17820 fi
17821 if test -z "$ac_cpp_err"; then
17822   ac_header_preproc=yes
17823 else
17824   echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17826
17827   ac_header_preproc=no
17828 fi
17829 rm -f conftest.err conftest.$ac_ext
17830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17831 echo "${ECHO_T}$ac_header_preproc" >&6
17832
17833 # So?  What about this header?
17834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17835   yes:no: )
17836     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17838     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17840     ac_header_preproc=yes
17841     ;;
17842   no:yes:* )
17843     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17845     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17846 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17847     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17849     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17850 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17853     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17855     (
17856       cat <<\_ASBOX
17857 ## ------------------------------------------ ##
17858 ## Report this to the AC_PACKAGE_NAME lists.  ##
17859 ## ------------------------------------------ ##
17860 _ASBOX
17861     ) |
17862       sed "s/^/$as_me: WARNING:     /" >&2
17863     ;;
17864 esac
17865 echo "$as_me:$LINENO: checking for $ac_header" >&5
17866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17868   echo $ECHO_N "(cached) $ECHO_C" >&6
17869 else
17870   eval "$as_ac_Header=\$ac_header_preproc"
17871 fi
17872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17874
17875 fi
17876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17877   cat >>confdefs.h <<_ACEOF
17878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17879 _ACEOF
17880
17881 fi
17882
17883 done
17884
17885
17886         if test $ol_enable_local = auto ; then
17887                 ol_enable_local=$ac_cv_header_sys_un_h
17888         elif test $ac_cv_header_sys_un_h = no ; then
17889                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17890 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17891    { (exit 1); exit 1; }; }
17892         fi
17893 fi
17894
17895 ol_link_kbind=no
17896 ol_link_krb5=no
17897 ol_link_krb4=no
17898
17899 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17900
17901
17902 for ac_header in krb5.h
17903 do
17904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17906   echo "$as_me:$LINENO: checking for $ac_header" >&5
17907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17909   echo $ECHO_N "(cached) $ECHO_C" >&6
17910 fi
17911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17913 else
17914   # Is the header compilable?
17915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17917 cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h.  */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h.  */
17923 $ac_includes_default
17924 #include <$ac_header>
17925 _ACEOF
17926 rm -f conftest.$ac_objext
17927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17928   (eval $ac_compile) 2>conftest.er1
17929   ac_status=$?
17930   grep -v '^ *+' conftest.er1 >conftest.err
17931   rm -f conftest.er1
17932   cat conftest.err >&5
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); } &&
17935          { ac_try='test -z "$ac_c_werror_flag"
17936                          || test ! -s conftest.err'
17937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938   (eval $ac_try) 2>&5
17939   ac_status=$?
17940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941   (exit $ac_status); }; } &&
17942          { ac_try='test -s conftest.$ac_objext'
17943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944   (eval $ac_try) 2>&5
17945   ac_status=$?
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); }; }; then
17948   ac_header_compiler=yes
17949 else
17950   echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17952
17953 ac_header_compiler=no
17954 fi
17955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17957 echo "${ECHO_T}$ac_header_compiler" >&6
17958
17959 # Is the header present?
17960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17962 cat >conftest.$ac_ext <<_ACEOF
17963 /* confdefs.h.  */
17964 _ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h.  */
17968 #include <$ac_header>
17969 _ACEOF
17970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17971   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17972   ac_status=$?
17973   grep -v '^ *+' conftest.er1 >conftest.err
17974   rm -f conftest.er1
17975   cat conftest.err >&5
17976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977   (exit $ac_status); } >/dev/null; then
17978   if test -s conftest.err; then
17979     ac_cpp_err=$ac_c_preproc_warn_flag
17980     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17981   else
17982     ac_cpp_err=
17983   fi
17984 else
17985   ac_cpp_err=yes
17986 fi
17987 if test -z "$ac_cpp_err"; then
17988   ac_header_preproc=yes
17989 else
17990   echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17992
17993   ac_header_preproc=no
17994 fi
17995 rm -f conftest.err conftest.$ac_ext
17996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17997 echo "${ECHO_T}$ac_header_preproc" >&6
17998
17999 # So?  What about this header?
18000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18001   yes:no: )
18002     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18006     ac_header_preproc=yes
18007     ;;
18008   no:yes:* )
18009     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18011     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18012 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18013     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18015     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18016 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18019     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18021     (
18022       cat <<\_ASBOX
18023 ## ------------------------------------------ ##
18024 ## Report this to the AC_PACKAGE_NAME lists.  ##
18025 ## ------------------------------------------ ##
18026 _ASBOX
18027     ) |
18028       sed "s/^/$as_me: WARNING:     /" >&2
18029     ;;
18030 esac
18031 echo "$as_me:$LINENO: checking for $ac_header" >&5
18032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18034   echo $ECHO_N "(cached) $ECHO_C" >&6
18035 else
18036   eval "$as_ac_Header=\$ac_header_preproc"
18037 fi
18038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18040
18041 fi
18042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18043   cat >>confdefs.h <<_ACEOF
18044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18045 _ACEOF
18046
18047 fi
18048
18049 done
18050
18051
18052         if test $ac_cv_header_krb5_h = yes ; then
18053
18054 for ac_header in heim_err.h
18055 do
18056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18058   echo "$as_me:$LINENO: checking for $ac_header" >&5
18059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18061   echo $ECHO_N "(cached) $ECHO_C" >&6
18062 fi
18063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18065 else
18066   # Is the header compilable?
18067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18069 cat >conftest.$ac_ext <<_ACEOF
18070 /* confdefs.h.  */
18071 _ACEOF
18072 cat confdefs.h >>conftest.$ac_ext
18073 cat >>conftest.$ac_ext <<_ACEOF
18074 /* end confdefs.h.  */
18075 $ac_includes_default
18076 #include <$ac_header>
18077 _ACEOF
18078 rm -f conftest.$ac_objext
18079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18080   (eval $ac_compile) 2>conftest.er1
18081   ac_status=$?
18082   grep -v '^ *+' conftest.er1 >conftest.err
18083   rm -f conftest.er1
18084   cat conftest.err >&5
18085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086   (exit $ac_status); } &&
18087          { ac_try='test -z "$ac_c_werror_flag"
18088                          || test ! -s conftest.err'
18089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090   (eval $ac_try) 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); }; } &&
18094          { ac_try='test -s conftest.$ac_objext'
18095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096   (eval $ac_try) 2>&5
18097   ac_status=$?
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); }; }; then
18100   ac_header_compiler=yes
18101 else
18102   echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18104
18105 ac_header_compiler=no
18106 fi
18107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18109 echo "${ECHO_T}$ac_header_compiler" >&6
18110
18111 # Is the header present?
18112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18114 cat >conftest.$ac_ext <<_ACEOF
18115 /* confdefs.h.  */
18116 _ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h.  */
18120 #include <$ac_header>
18121 _ACEOF
18122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18123   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18124   ac_status=$?
18125   grep -v '^ *+' conftest.er1 >conftest.err
18126   rm -f conftest.er1
18127   cat conftest.err >&5
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); } >/dev/null; then
18130   if test -s conftest.err; then
18131     ac_cpp_err=$ac_c_preproc_warn_flag
18132     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18133   else
18134     ac_cpp_err=
18135   fi
18136 else
18137   ac_cpp_err=yes
18138 fi
18139 if test -z "$ac_cpp_err"; then
18140   ac_header_preproc=yes
18141 else
18142   echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18144
18145   ac_header_preproc=no
18146 fi
18147 rm -f conftest.err conftest.$ac_ext
18148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18149 echo "${ECHO_T}$ac_header_preproc" >&6
18150
18151 # So?  What about this header?
18152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18153   yes:no: )
18154     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18156     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18158     ac_header_preproc=yes
18159     ;;
18160   no:yes:* )
18161     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18163     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18164 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18165     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18167     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18168 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18171     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18173     (
18174       cat <<\_ASBOX
18175 ## ------------------------------------------ ##
18176 ## Report this to the AC_PACKAGE_NAME lists.  ##
18177 ## ------------------------------------------ ##
18178 _ASBOX
18179     ) |
18180       sed "s/^/$as_me: WARNING:     /" >&2
18181     ;;
18182 esac
18183 echo "$as_me:$LINENO: checking for $ac_header" >&5
18184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18186   echo $ECHO_N "(cached) $ECHO_C" >&6
18187 else
18188   eval "$as_ac_Header=\$ac_header_preproc"
18189 fi
18190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18192
18193 fi
18194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18195   cat >>confdefs.h <<_ACEOF
18196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18197 _ACEOF
18198
18199 fi
18200
18201 done
18202
18203                 if test $ac_cv_header_heim_err_h = yes ; then
18204                         krb5_impl=heimdal
18205                 else
18206                         krb5_impl=mit
18207                 fi
18208
18209                 if test $krb5_impl = mit; then
18210                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18211 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18212 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18213   echo $ECHO_N "(cached) $ECHO_C" >&6
18214 else
18215   ac_check_lib_save_LIBS=$LIBS
18216 LIBS="-lk5crypto  $LIBS"
18217 cat >conftest.$ac_ext <<_ACEOF
18218 /* confdefs.h.  */
18219 _ACEOF
18220 cat confdefs.h >>conftest.$ac_ext
18221 cat >>conftest.$ac_ext <<_ACEOF
18222 /* end confdefs.h.  */
18223
18224
18225 int
18226 main ()
18227 {
18228 main ();
18229   ;
18230   return 0;
18231 }
18232 _ACEOF
18233 rm -f conftest.$ac_objext conftest$ac_exeext
18234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18235   (eval $ac_link) 2>conftest.er1
18236   ac_status=$?
18237   grep -v '^ *+' conftest.er1 >conftest.err
18238   rm -f conftest.er1
18239   cat conftest.err >&5
18240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241   (exit $ac_status); } &&
18242          { ac_try='test -z "$ac_c_werror_flag"
18243                          || test ! -s conftest.err'
18244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245   (eval $ac_try) 2>&5
18246   ac_status=$?
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); }; } &&
18249          { ac_try='test -s conftest$ac_exeext'
18250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18251   (eval $ac_try) 2>&5
18252   ac_status=$?
18253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254   (exit $ac_status); }; }; then
18255   ac_cv_lib_k5crypto_main=yes
18256 else
18257   echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18259
18260 ac_cv_lib_k5crypto_main=no
18261 fi
18262 rm -f conftest.err conftest.$ac_objext \
18263       conftest$ac_exeext conftest.$ac_ext
18264 LIBS=$ac_check_lib_save_LIBS
18265 fi
18266 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18267 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18268 if test $ac_cv_lib_k5crypto_main = yes; then
18269   krb5crypto=k5crypto
18270 else
18271   krb5crypto=crypto
18272 fi
18273
18274
18275                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18276 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18277 if test "${ac_cv_lib_krb5_main+set}" = set; then
18278   echo $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280   ac_check_lib_save_LIBS=$LIBS
18281 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18282 cat >conftest.$ac_ext <<_ACEOF
18283 /* confdefs.h.  */
18284 _ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h.  */
18288
18289
18290 int
18291 main ()
18292 {
18293 main ();
18294   ;
18295   return 0;
18296 }
18297 _ACEOF
18298 rm -f conftest.$ac_objext conftest$ac_exeext
18299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18300   (eval $ac_link) 2>conftest.er1
18301   ac_status=$?
18302   grep -v '^ *+' conftest.er1 >conftest.err
18303   rm -f conftest.er1
18304   cat conftest.err >&5
18305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306   (exit $ac_status); } &&
18307          { ac_try='test -z "$ac_c_werror_flag"
18308                          || test ! -s conftest.err'
18309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310   (eval $ac_try) 2>&5
18311   ac_status=$?
18312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313   (exit $ac_status); }; } &&
18314          { ac_try='test -s conftest$ac_exeext'
18315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316   (eval $ac_try) 2>&5
18317   ac_status=$?
18318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319   (exit $ac_status); }; }; then
18320   ac_cv_lib_krb5_main=yes
18321 else
18322   echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18324
18325 ac_cv_lib_krb5_main=no
18326 fi
18327 rm -f conftest.err conftest.$ac_objext \
18328       conftest$ac_exeext conftest.$ac_ext
18329 LIBS=$ac_check_lib_save_LIBS
18330 fi
18331 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18332 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18333 if test $ac_cv_lib_krb5_main = yes; then
18334   have_krb5=yes
18335                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18336 else
18337   have_krb5=no
18338 fi
18339
18340
18341                 elif test $krb5_impl = heimdal; then
18342                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18343 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18344 if test "${ac_cv_lib_des_main+set}" = set; then
18345   echo $ECHO_N "(cached) $ECHO_C" >&6
18346 else
18347   ac_check_lib_save_LIBS=$LIBS
18348 LIBS="-ldes  $LIBS"
18349 cat >conftest.$ac_ext <<_ACEOF
18350 /* confdefs.h.  */
18351 _ACEOF
18352 cat confdefs.h >>conftest.$ac_ext
18353 cat >>conftest.$ac_ext <<_ACEOF
18354 /* end confdefs.h.  */
18355
18356
18357 int
18358 main ()
18359 {
18360 main ();
18361   ;
18362   return 0;
18363 }
18364 _ACEOF
18365 rm -f conftest.$ac_objext conftest$ac_exeext
18366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18367   (eval $ac_link) 2>conftest.er1
18368   ac_status=$?
18369   grep -v '^ *+' conftest.er1 >conftest.err
18370   rm -f conftest.er1
18371   cat conftest.err >&5
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); } &&
18374          { ac_try='test -z "$ac_c_werror_flag"
18375                          || test ! -s conftest.err'
18376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377   (eval $ac_try) 2>&5
18378   ac_status=$?
18379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380   (exit $ac_status); }; } &&
18381          { ac_try='test -s conftest$ac_exeext'
18382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383   (eval $ac_try) 2>&5
18384   ac_status=$?
18385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386   (exit $ac_status); }; }; then
18387   ac_cv_lib_des_main=yes
18388 else
18389   echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.$ac_ext >&5
18391
18392 ac_cv_lib_des_main=no
18393 fi
18394 rm -f conftest.err conftest.$ac_objext \
18395       conftest$ac_exeext conftest.$ac_ext
18396 LIBS=$ac_check_lib_save_LIBS
18397 fi
18398 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18399 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18400 if test $ac_cv_lib_des_main = yes; then
18401   krb5crypto=des
18402 else
18403   krb5crypto=crypto
18404 fi
18405
18406
18407                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18408 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18409 if test "${ac_cv_lib_krb5_main+set}" = set; then
18410   echo $ECHO_N "(cached) $ECHO_C" >&6
18411 else
18412   ac_check_lib_save_LIBS=$LIBS
18413 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18414 cat >conftest.$ac_ext <<_ACEOF
18415 /* confdefs.h.  */
18416 _ACEOF
18417 cat confdefs.h >>conftest.$ac_ext
18418 cat >>conftest.$ac_ext <<_ACEOF
18419 /* end confdefs.h.  */
18420
18421
18422 int
18423 main ()
18424 {
18425 main ();
18426   ;
18427   return 0;
18428 }
18429 _ACEOF
18430 rm -f conftest.$ac_objext conftest$ac_exeext
18431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18432   (eval $ac_link) 2>conftest.er1
18433   ac_status=$?
18434   grep -v '^ *+' conftest.er1 >conftest.err
18435   rm -f conftest.er1
18436   cat conftest.err >&5
18437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); } &&
18439          { ac_try='test -z "$ac_c_werror_flag"
18440                          || test ! -s conftest.err'
18441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18442   (eval $ac_try) 2>&5
18443   ac_status=$?
18444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445   (exit $ac_status); }; } &&
18446          { ac_try='test -s conftest$ac_exeext'
18447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18448   (eval $ac_try) 2>&5
18449   ac_status=$?
18450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451   (exit $ac_status); }; }; then
18452   ac_cv_lib_krb5_main=yes
18453 else
18454   echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18456
18457 ac_cv_lib_krb5_main=no
18458 fi
18459 rm -f conftest.err conftest.$ac_objext \
18460       conftest$ac_exeext conftest.$ac_ext
18461 LIBS=$ac_check_lib_save_LIBS
18462 fi
18463 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18464 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18465 if test $ac_cv_lib_krb5_main = yes; then
18466   have_krb5=yes
18467                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18468 else
18469   have_krb5=no
18470 fi
18471
18472
18473
18474 cat >>confdefs.h <<\_ACEOF
18475 #define HAVE_HEIMDAL_KERBEROS 1
18476 _ACEOF
18477
18478
18479                 else
18480                         have_krb5=no
18481                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18482 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18483                 fi
18484
18485                 if test $have_krb5 = yes ; then
18486                         ol_link_krb5=yes
18487
18488
18489 cat >>confdefs.h <<\_ACEOF
18490 #define HAVE_KRB5 1
18491 _ACEOF
18492
18493
18494                         if test $ol_with_kerberos = k5only ; then
18495                                 ol_with_kerberos=found
18496                         fi
18497
18498                 elif test $ol_with_kerberos != auto ; then
18499                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18500 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18501    { (exit 1); exit 1; }; }
18502                 fi
18503
18504         fi
18505         ;;
18506 esac
18507
18508 if test $ol_link_krb5 = yes &&
18509    { test $ol_with_kerberos = yes ||
18510      test $ol_with_kerberos = auto ||
18511      test $ol_with_kerberos = k425; }; then
18512
18513
18514
18515 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18516 do
18517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18519   echo "$as_me:$LINENO: checking for $ac_header" >&5
18520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18522   echo $ECHO_N "(cached) $ECHO_C" >&6
18523 fi
18524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18526 else
18527   # Is the header compilable?
18528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18530 cat >conftest.$ac_ext <<_ACEOF
18531 /* confdefs.h.  */
18532 _ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h.  */
18536 $ac_includes_default
18537 #include <$ac_header>
18538 _ACEOF
18539 rm -f conftest.$ac_objext
18540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18541   (eval $ac_compile) 2>conftest.er1
18542   ac_status=$?
18543   grep -v '^ *+' conftest.er1 >conftest.err
18544   rm -f conftest.er1
18545   cat conftest.err >&5
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); } &&
18548          { ac_try='test -z "$ac_c_werror_flag"
18549                          || test ! -s conftest.err'
18550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551   (eval $ac_try) 2>&5
18552   ac_status=$?
18553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554   (exit $ac_status); }; } &&
18555          { ac_try='test -s conftest.$ac_objext'
18556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557   (eval $ac_try) 2>&5
18558   ac_status=$?
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); }; }; then
18561   ac_header_compiler=yes
18562 else
18563   echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18565
18566 ac_header_compiler=no
18567 fi
18568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18570 echo "${ECHO_T}$ac_header_compiler" >&6
18571
18572 # Is the header present?
18573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18575 cat >conftest.$ac_ext <<_ACEOF
18576 /* confdefs.h.  */
18577 _ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h.  */
18581 #include <$ac_header>
18582 _ACEOF
18583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18585   ac_status=$?
18586   grep -v '^ *+' conftest.er1 >conftest.err
18587   rm -f conftest.er1
18588   cat conftest.err >&5
18589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590   (exit $ac_status); } >/dev/null; then
18591   if test -s conftest.err; then
18592     ac_cpp_err=$ac_c_preproc_warn_flag
18593     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18594   else
18595     ac_cpp_err=
18596   fi
18597 else
18598   ac_cpp_err=yes
18599 fi
18600 if test -z "$ac_cpp_err"; then
18601   ac_header_preproc=yes
18602 else
18603   echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18605
18606   ac_header_preproc=no
18607 fi
18608 rm -f conftest.err conftest.$ac_ext
18609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18610 echo "${ECHO_T}$ac_header_preproc" >&6
18611
18612 # So?  What about this header?
18613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18614   yes:no: )
18615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18619     ac_header_preproc=yes
18620     ;;
18621   no:yes:* )
18622     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18624     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18625 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18626     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18628     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18629 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18632     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18634     (
18635       cat <<\_ASBOX
18636 ## ------------------------------------------ ##
18637 ## Report this to the AC_PACKAGE_NAME lists.  ##
18638 ## ------------------------------------------ ##
18639 _ASBOX
18640     ) |
18641       sed "s/^/$as_me: WARNING:     /" >&2
18642     ;;
18643 esac
18644 echo "$as_me:$LINENO: checking for $ac_header" >&5
18645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18647   echo $ECHO_N "(cached) $ECHO_C" >&6
18648 else
18649   eval "$as_ac_Header=\$ac_header_preproc"
18650 fi
18651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18653
18654 fi
18655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18656   cat >>confdefs.h <<_ACEOF
18657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18658 _ACEOF
18659
18660 fi
18661
18662 done
18663
18664
18665         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18666                 if test $krb5_impl = mit; then
18667                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18668 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18669 if test "${ac_cv_lib_krb4_main+set}" = set; then
18670   echo $ECHO_N "(cached) $ECHO_C" >&6
18671 else
18672   ac_check_lib_save_LIBS=$LIBS
18673 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18674 cat >conftest.$ac_ext <<_ACEOF
18675 /* confdefs.h.  */
18676 _ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h.  */
18680
18681
18682 int
18683 main ()
18684 {
18685 main ();
18686   ;
18687   return 0;
18688 }
18689 _ACEOF
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18692   (eval $ac_link) 2>conftest.er1
18693   ac_status=$?
18694   grep -v '^ *+' conftest.er1 >conftest.err
18695   rm -f conftest.er1
18696   cat conftest.err >&5
18697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698   (exit $ac_status); } &&
18699          { ac_try='test -z "$ac_c_werror_flag"
18700                          || test ! -s conftest.err'
18701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702   (eval $ac_try) 2>&5
18703   ac_status=$?
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); }; } &&
18706          { ac_try='test -s conftest$ac_exeext'
18707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708   (eval $ac_try) 2>&5
18709   ac_status=$?
18710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711   (exit $ac_status); }; }; then
18712   ac_cv_lib_krb4_main=yes
18713 else
18714   echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18716
18717 ac_cv_lib_krb4_main=no
18718 fi
18719 rm -f conftest.err conftest.$ac_objext \
18720       conftest$ac_exeext conftest.$ac_ext
18721 LIBS=$ac_check_lib_save_LIBS
18722 fi
18723 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18724 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18725 if test $ac_cv_lib_krb4_main = yes; then
18726   have_k425=yes
18727                                 KRB4_LIBS="-lkrb4 -ldes425"
18728 else
18729   have_k425=no
18730 fi
18731
18732
18733                 elif test $krb5_impl = heimdal; then
18734                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18735 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18736 if test "${ac_cv_lib_krb4_main+set}" = set; then
18737   echo $ECHO_N "(cached) $ECHO_C" >&6
18738 else
18739   ac_check_lib_save_LIBS=$LIBS
18740 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18741 cat >conftest.$ac_ext <<_ACEOF
18742 /* confdefs.h.  */
18743 _ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h.  */
18747
18748
18749 int
18750 main ()
18751 {
18752 main ();
18753   ;
18754   return 0;
18755 }
18756 _ACEOF
18757 rm -f conftest.$ac_objext conftest$ac_exeext
18758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18759   (eval $ac_link) 2>conftest.er1
18760   ac_status=$?
18761   grep -v '^ *+' conftest.er1 >conftest.err
18762   rm -f conftest.er1
18763   cat conftest.err >&5
18764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765   (exit $ac_status); } &&
18766          { ac_try='test -z "$ac_c_werror_flag"
18767                          || test ! -s conftest.err'
18768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769   (eval $ac_try) 2>&5
18770   ac_status=$?
18771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772   (exit $ac_status); }; } &&
18773          { ac_try='test -s conftest$ac_exeext'
18774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775   (eval $ac_try) 2>&5
18776   ac_status=$?
18777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778   (exit $ac_status); }; }; then
18779   ac_cv_lib_krb4_main=yes
18780 else
18781   echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18783
18784 ac_cv_lib_krb4_main=no
18785 fi
18786 rm -f conftest.err conftest.$ac_objext \
18787       conftest$ac_exeext conftest.$ac_ext
18788 LIBS=$ac_check_lib_save_LIBS
18789 fi
18790 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18791 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18792 if test $ac_cv_lib_krb4_main = yes; then
18793   have_k425=yes
18794                                 KRB4_LIBS="-lkrb4"
18795 else
18796   have_k425=no
18797 fi
18798
18799
18800                 else
18801                         have_425=no
18802                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18803 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18804                 fi
18805
18806                 if test $have_k425 = yes ; then
18807                         ol_with_kerberos=found
18808                         ol_link_krb4=yes
18809
18810
18811 cat >>confdefs.h <<\_ACEOF
18812 #define HAVE_KRB425 1
18813 _ACEOF
18814
18815
18816 cat >>confdefs.h <<\_ACEOF
18817 #define HAVE_KRB4 1
18818 _ACEOF
18819
18820
18821                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18822 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18823 if test "${ol_cv_var_des_debug+set}" = set; then
18824   echo $ECHO_N "(cached) $ECHO_C" >&6
18825 else
18826
18827                                                                 save_LIBS="$LIBS"
18828                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18829                                 cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h.  */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h.  */
18835
18836 #include <kerberosIV/krb.h>
18837 #include <kerberosIV/des.h>
18838 extern int des_debug;
18839
18840 int
18841 main ()
18842 {
18843
18844 des_debug = 1;
18845
18846   ;
18847   return 0;
18848 }
18849 _ACEOF
18850 rm -f conftest.$ac_objext conftest$ac_exeext
18851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18852   (eval $ac_link) 2>conftest.er1
18853   ac_status=$?
18854   grep -v '^ *+' conftest.er1 >conftest.err
18855   rm -f conftest.er1
18856   cat conftest.err >&5
18857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858   (exit $ac_status); } &&
18859          { ac_try='test -z "$ac_c_werror_flag"
18860                          || test ! -s conftest.err'
18861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862   (eval $ac_try) 2>&5
18863   ac_status=$?
18864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865   (exit $ac_status); }; } &&
18866          { ac_try='test -s conftest$ac_exeext'
18867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868   (eval $ac_try) 2>&5
18869   ac_status=$?
18870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871   (exit $ac_status); }; }; then
18872   ol_cv_var_des_debug=yes
18873 else
18874   echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18876
18877 ol_cv_var_des_debug=no
18878 fi
18879 rm -f conftest.err conftest.$ac_objext \
18880       conftest$ac_exeext conftest.$ac_ext
18881                                                                 LIBS="$save_LIBS"
18882
18883 fi
18884 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18885 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18886
18887                         if test $ol_cv_var_des_debug = yes ; then
18888
18889 cat >>confdefs.h <<\_ACEOF
18890 #define HAVE_DES_DEBUG 1
18891 _ACEOF
18892
18893                         fi
18894
18895                         LIBS="$save_LIBS"
18896                 fi
18897         fi
18898 fi
18899
18900 if test $ol_link_krb5 = yes ; then
18901         ol_with_kerberos=found
18902 fi
18903
18904 case $ol_with_kerberos in yes | auto | k4 | kth)
18905
18906
18907
18908
18909 for ac_header in krb.h des.h krb-archaeology.h
18910 do
18911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18913   echo "$as_me:$LINENO: checking for $ac_header" >&5
18914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18916   echo $ECHO_N "(cached) $ECHO_C" >&6
18917 fi
18918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18920 else
18921   # Is the header compilable?
18922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18924 cat >conftest.$ac_ext <<_ACEOF
18925 /* confdefs.h.  */
18926 _ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h.  */
18930 $ac_includes_default
18931 #include <$ac_header>
18932 _ACEOF
18933 rm -f conftest.$ac_objext
18934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18935   (eval $ac_compile) 2>conftest.er1
18936   ac_status=$?
18937   grep -v '^ *+' conftest.er1 >conftest.err
18938   rm -f conftest.er1
18939   cat conftest.err >&5
18940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941   (exit $ac_status); } &&
18942          { ac_try='test -z "$ac_c_werror_flag"
18943                          || test ! -s conftest.err'
18944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945   (eval $ac_try) 2>&5
18946   ac_status=$?
18947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948   (exit $ac_status); }; } &&
18949          { ac_try='test -s conftest.$ac_objext'
18950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951   (eval $ac_try) 2>&5
18952   ac_status=$?
18953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954   (exit $ac_status); }; }; then
18955   ac_header_compiler=yes
18956 else
18957   echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18959
18960 ac_header_compiler=no
18961 fi
18962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18964 echo "${ECHO_T}$ac_header_compiler" >&6
18965
18966 # Is the header present?
18967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18969 cat >conftest.$ac_ext <<_ACEOF
18970 /* confdefs.h.  */
18971 _ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h.  */
18975 #include <$ac_header>
18976 _ACEOF
18977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18979   ac_status=$?
18980   grep -v '^ *+' conftest.er1 >conftest.err
18981   rm -f conftest.er1
18982   cat conftest.err >&5
18983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984   (exit $ac_status); } >/dev/null; then
18985   if test -s conftest.err; then
18986     ac_cpp_err=$ac_c_preproc_warn_flag
18987     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18988   else
18989     ac_cpp_err=
18990   fi
18991 else
18992   ac_cpp_err=yes
18993 fi
18994 if test -z "$ac_cpp_err"; then
18995   ac_header_preproc=yes
18996 else
18997   echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
18999
19000   ac_header_preproc=no
19001 fi
19002 rm -f conftest.err conftest.$ac_ext
19003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19004 echo "${ECHO_T}$ac_header_preproc" >&6
19005
19006 # So?  What about this header?
19007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19008   yes:no: )
19009     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19013     ac_header_preproc=yes
19014     ;;
19015   no:yes:* )
19016     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19018     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19019 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19020     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19022     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19023 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19026     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19028     (
19029       cat <<\_ASBOX
19030 ## ------------------------------------------ ##
19031 ## Report this to the AC_PACKAGE_NAME lists.  ##
19032 ## ------------------------------------------ ##
19033 _ASBOX
19034     ) |
19035       sed "s/^/$as_me: WARNING:     /" >&2
19036     ;;
19037 esac
19038 echo "$as_me:$LINENO: checking for $ac_header" >&5
19039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19041   echo $ECHO_N "(cached) $ECHO_C" >&6
19042 else
19043   eval "$as_ac_Header=\$ac_header_preproc"
19044 fi
19045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19047
19048 fi
19049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19050   cat >>confdefs.h <<_ACEOF
19051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19052 _ACEOF
19053
19054 fi
19055
19056 done
19057
19058
19059         if test $ac_cv_header_krb_h = yes ; then
19060                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19061 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19062 if test "${ac_cv_lib_krb_main+set}" = set; then
19063   echo $ECHO_N "(cached) $ECHO_C" >&6
19064 else
19065   ac_check_lib_save_LIBS=$LIBS
19066 LIBS="-lkrb -ldes $LIBS"
19067 cat >conftest.$ac_ext <<_ACEOF
19068 /* confdefs.h.  */
19069 _ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h.  */
19073
19074
19075 int
19076 main ()
19077 {
19078 main ();
19079   ;
19080   return 0;
19081 }
19082 _ACEOF
19083 rm -f conftest.$ac_objext conftest$ac_exeext
19084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19085   (eval $ac_link) 2>conftest.er1
19086   ac_status=$?
19087   grep -v '^ *+' conftest.er1 >conftest.err
19088   rm -f conftest.er1
19089   cat conftest.err >&5
19090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); } &&
19092          { ac_try='test -z "$ac_c_werror_flag"
19093                          || test ! -s conftest.err'
19094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095   (eval $ac_try) 2>&5
19096   ac_status=$?
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); }; } &&
19099          { ac_try='test -s conftest$ac_exeext'
19100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101   (eval $ac_try) 2>&5
19102   ac_status=$?
19103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104   (exit $ac_status); }; }; then
19105   ac_cv_lib_krb_main=yes
19106 else
19107   echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19109
19110 ac_cv_lib_krb_main=no
19111 fi
19112 rm -f conftest.err conftest.$ac_objext \
19113       conftest$ac_exeext conftest.$ac_ext
19114 LIBS=$ac_check_lib_save_LIBS
19115 fi
19116 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19117 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19118 if test $ac_cv_lib_krb_main = yes; then
19119   have_k4=yes
19120 else
19121   have_k4=no
19122 fi
19123
19124
19125                 if test $have_k4 = yes ; then
19126                         ol_with_kerberos=found
19127                         ol_link_krb4=yes
19128
19129
19130 cat >>confdefs.h <<\_ACEOF
19131 #define HAVE_KRB4 1
19132 _ACEOF
19133
19134
19135                         KRB4_LIBS="-lkrb -ldes"
19136
19137                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19138
19139 cat >>confdefs.h <<\_ACEOF
19140 #define HAVE_KTH_KERBEROS 1
19141 _ACEOF
19142
19143                         fi
19144                 fi
19145         fi
19146         ;;
19147 esac
19148
19149 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19150         ol_link_kbind=yes
19151
19152 elif test $ol_enable_kbind = yes ; then
19153         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19154 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19155    { (exit 1); exit 1; }; }
19156 fi
19157
19158 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19159
19160 cat >>confdefs.h <<\_ACEOF
19161 #define HAVE_KERBEROS 1
19162 _ACEOF
19163
19164
19165 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19166         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19167 echo "$as_me: error: Kerberos detection failed" >&2;}
19168    { (exit 1); exit 1; }; }
19169 fi
19170
19171
19172 ol_link_tls=no
19173 if test $ol_with_tls != no ; then
19174
19175 for ac_header in openssl/ssl.h
19176 do
19177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19179   echo "$as_me:$LINENO: checking for $ac_header" >&5
19180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19182   echo $ECHO_N "(cached) $ECHO_C" >&6
19183 fi
19184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19186 else
19187   # Is the header compilable?
19188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19190 cat >conftest.$ac_ext <<_ACEOF
19191 /* confdefs.h.  */
19192 _ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h.  */
19196 $ac_includes_default
19197 #include <$ac_header>
19198 _ACEOF
19199 rm -f conftest.$ac_objext
19200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19201   (eval $ac_compile) 2>conftest.er1
19202   ac_status=$?
19203   grep -v '^ *+' conftest.er1 >conftest.err
19204   rm -f conftest.er1
19205   cat conftest.err >&5
19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); } &&
19208          { ac_try='test -z "$ac_c_werror_flag"
19209                          || test ! -s conftest.err'
19210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211   (eval $ac_try) 2>&5
19212   ac_status=$?
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); }; } &&
19215          { ac_try='test -s conftest.$ac_objext'
19216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217   (eval $ac_try) 2>&5
19218   ac_status=$?
19219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220   (exit $ac_status); }; }; then
19221   ac_header_compiler=yes
19222 else
19223   echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19225
19226 ac_header_compiler=no
19227 fi
19228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19230 echo "${ECHO_T}$ac_header_compiler" >&6
19231
19232 # Is the header present?
19233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19235 cat >conftest.$ac_ext <<_ACEOF
19236 /* confdefs.h.  */
19237 _ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h.  */
19241 #include <$ac_header>
19242 _ACEOF
19243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19244   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19245   ac_status=$?
19246   grep -v '^ *+' conftest.er1 >conftest.err
19247   rm -f conftest.er1
19248   cat conftest.err >&5
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); } >/dev/null; then
19251   if test -s conftest.err; then
19252     ac_cpp_err=$ac_c_preproc_warn_flag
19253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19254   else
19255     ac_cpp_err=
19256   fi
19257 else
19258   ac_cpp_err=yes
19259 fi
19260 if test -z "$ac_cpp_err"; then
19261   ac_header_preproc=yes
19262 else
19263   echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19265
19266   ac_header_preproc=no
19267 fi
19268 rm -f conftest.err conftest.$ac_ext
19269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19270 echo "${ECHO_T}$ac_header_preproc" >&6
19271
19272 # So?  What about this header?
19273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19274   yes:no: )
19275     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19279     ac_header_preproc=yes
19280     ;;
19281   no:yes:* )
19282     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19284     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19285 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19286     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19288     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19289 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19292     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19294     (
19295       cat <<\_ASBOX
19296 ## ------------------------------------------ ##
19297 ## Report this to the AC_PACKAGE_NAME lists.  ##
19298 ## ------------------------------------------ ##
19299 _ASBOX
19300     ) |
19301       sed "s/^/$as_me: WARNING:     /" >&2
19302     ;;
19303 esac
19304 echo "$as_me:$LINENO: checking for $ac_header" >&5
19305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19307   echo $ECHO_N "(cached) $ECHO_C" >&6
19308 else
19309   eval "$as_ac_Header=\$ac_header_preproc"
19310 fi
19311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19313
19314 fi
19315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19316   cat >>confdefs.h <<_ACEOF
19317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19318 _ACEOF
19319
19320 fi
19321
19322 done
19323
19324
19325         if test $ac_cv_header_openssl_ssl_h = yes ; then
19326                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19327 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19328 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19329   echo $ECHO_N "(cached) $ECHO_C" >&6
19330 else
19331   ac_check_lib_save_LIBS=$LIBS
19332 LIBS="-lssl -lcrypto $LIBS"
19333 cat >conftest.$ac_ext <<_ACEOF
19334 /* confdefs.h.  */
19335 _ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h.  */
19339
19340 /* Override any gcc2 internal prototype to avoid an error.  */
19341 #ifdef __cplusplus
19342 extern "C"
19343 #endif
19344 /* We use char because int might match the return type of a gcc2
19345    builtin and then its argument prototype would still apply.  */
19346 char SSL_library_init ();
19347 int
19348 main ()
19349 {
19350 SSL_library_init ();
19351   ;
19352   return 0;
19353 }
19354 _ACEOF
19355 rm -f conftest.$ac_objext conftest$ac_exeext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19357   (eval $ac_link) 2>conftest.er1
19358   ac_status=$?
19359   grep -v '^ *+' conftest.er1 >conftest.err
19360   rm -f conftest.er1
19361   cat conftest.err >&5
19362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363   (exit $ac_status); } &&
19364          { ac_try='test -z "$ac_c_werror_flag"
19365                          || test ! -s conftest.err'
19366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367   (eval $ac_try) 2>&5
19368   ac_status=$?
19369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); }; } &&
19371          { ac_try='test -s conftest$ac_exeext'
19372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373   (eval $ac_try) 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); }; }; then
19377   ac_cv_lib_ssl_SSL_library_init=yes
19378 else
19379   echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382 ac_cv_lib_ssl_SSL_library_init=no
19383 fi
19384 rm -f conftest.err conftest.$ac_objext \
19385       conftest$ac_exeext conftest.$ac_ext
19386 LIBS=$ac_check_lib_save_LIBS
19387 fi
19388 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19389 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19390 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19391   have_openssl=yes
19392                         need_rsaref=no
19393 else
19394   have_openssl=no
19395 fi
19396
19397
19398                 if test $have_openssl = no ; then
19399                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19400 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19401 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19402   echo $ECHO_N "(cached) $ECHO_C" >&6
19403 else
19404   ac_check_lib_save_LIBS=$LIBS
19405 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19406 cat >conftest.$ac_ext <<_ACEOF
19407 /* confdefs.h.  */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h.  */
19412
19413 /* Override any gcc2 internal prototype to avoid an error.  */
19414 #ifdef __cplusplus
19415 extern "C"
19416 #endif
19417 /* We use char because int might match the return type of a gcc2
19418    builtin and then its argument prototype would still apply.  */
19419 char ssl3_accept ();
19420 int
19421 main ()
19422 {
19423 ssl3_accept ();
19424   ;
19425   return 0;
19426 }
19427 _ACEOF
19428 rm -f conftest.$ac_objext conftest$ac_exeext
19429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19430   (eval $ac_link) 2>conftest.er1
19431   ac_status=$?
19432   grep -v '^ *+' conftest.er1 >conftest.err
19433   rm -f conftest.er1
19434   cat conftest.err >&5
19435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436   (exit $ac_status); } &&
19437          { ac_try='test -z "$ac_c_werror_flag"
19438                          || test ! -s conftest.err'
19439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440   (eval $ac_try) 2>&5
19441   ac_status=$?
19442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443   (exit $ac_status); }; } &&
19444          { ac_try='test -s conftest$ac_exeext'
19445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446   (eval $ac_try) 2>&5
19447   ac_status=$?
19448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   (exit $ac_status); }; }; then
19450   ac_cv_lib_ssl_ssl3_accept=yes
19451 else
19452   echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19454
19455 ac_cv_lib_ssl_ssl3_accept=no
19456 fi
19457 rm -f conftest.err conftest.$ac_objext \
19458       conftest$ac_exeext conftest.$ac_ext
19459 LIBS=$ac_check_lib_save_LIBS
19460 fi
19461 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19462 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19463 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19464   have_openssl=yes
19465                                 need_rsaref=yes
19466 else
19467   have_openssl=no
19468 fi
19469
19470                 fi
19471
19472                 if test $have_openssl = yes ; then
19473                         ol_with_tls=found
19474                         ol_link_tls=yes
19475
19476
19477 cat >>confdefs.h <<\_ACEOF
19478 #define HAVE_OPENSSL 1
19479 _ACEOF
19480
19481
19482                         if test $need_rsaref = yes; then
19483
19484 cat >>confdefs.h <<\_ACEOF
19485 #define HAVE_RSAREF 1
19486 _ACEOF
19487
19488
19489                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19490                         else
19491                                 TLS_LIBS="-lssl -lcrypto"
19492                         fi
19493                 fi
19494                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19495 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19496 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19497   echo $ECHO_N "(cached) $ECHO_C" >&6
19498 else
19499
19500         cat >conftest.$ac_ext <<_ACEOF
19501 /* confdefs.h.  */
19502 _ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h.  */
19506
19507 #ifdef HAVE_OPENSSL_SSL_H
19508 #include <openssl/ssl.h>
19509 #else
19510 #include <ssl.h>
19511 #endif
19512
19513 /* Require 0.9.7d+ */
19514 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19515         char *__ssl_compat = "0.9.7d";
19516 #endif
19517
19518 _ACEOF
19519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19520   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19521   ol_cv_ssl_crl_compat=yes
19522 else
19523   ol_cv_ssl_crl_compat=no
19524 fi
19525 rm -f conftest*
19526
19527 fi
19528 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19529 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19530
19531                 if test $ol_cv_ssl_crl_compat = no ; then
19532                         ol_link_ssl=no
19533                 else
19534
19535 cat >>confdefs.h <<\_ACEOF
19536 #define HAVE_OPENSSL_CRL 1
19537 _ACEOF
19538
19539                 fi
19540         fi
19541
19542 else
19543         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19544 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19545 fi
19546
19547 WITH_TLS=no
19548 if test $ol_link_tls = yes ; then
19549
19550 cat >>confdefs.h <<\_ACEOF
19551 #define HAVE_TLS 1
19552 _ACEOF
19553
19554         WITH_TLS=yes
19555
19556 elif test $ol_with_tls = auto ; then
19557         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19558 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19559         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19560 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19561
19562 elif test $ol_with_tls != no ; then
19563         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19564 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19565    { (exit 1); exit 1; }; }
19566 fi
19567
19568 if test $ol_enable_lmpasswd != no; then
19569         if test $ol_link_tls != yes ; then
19570                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19571 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19572    { (exit 1); exit 1; }; }
19573         fi
19574
19575
19576 cat >>confdefs.h <<\_ACEOF
19577 #define SLAPD_LMHASH 1
19578 _ACEOF
19579
19580 fi
19581
19582 ol_link_threads=no
19583
19584 case $ol_with_threads in auto | yes | nt)
19585
19586
19587         echo "$as_me:$LINENO: checking for _beginthread" >&5
19588 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19589 if test "${ac_cv_func__beginthread+set}" = set; then
19590   echo $ECHO_N "(cached) $ECHO_C" >&6
19591 else
19592   cat >conftest.$ac_ext <<_ACEOF
19593 /* confdefs.h.  */
19594 _ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h.  */
19598 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19600 #define _beginthread innocuous__beginthread
19601
19602 /* System header to define __stub macros and hopefully few prototypes,
19603     which can conflict with char _beginthread (); below.
19604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19605     <limits.h> exists even on freestanding compilers.  */
19606
19607 #ifdef __STDC__
19608 # include <limits.h>
19609 #else
19610 # include <assert.h>
19611 #endif
19612
19613 #undef _beginthread
19614
19615 /* Override any gcc2 internal prototype to avoid an error.  */
19616 #ifdef __cplusplus
19617 extern "C"
19618 {
19619 #endif
19620 /* We use char because int might match the return type of a gcc2
19621    builtin and then its argument prototype would still apply.  */
19622 char _beginthread ();
19623 /* The GNU C library defines this for functions which it implements
19624     to always fail with ENOSYS.  Some functions are actually named
19625     something starting with __ and the normal name is an alias.  */
19626 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19627 choke me
19628 #else
19629 char (*f) () = _beginthread;
19630 #endif
19631 #ifdef __cplusplus
19632 }
19633 #endif
19634
19635 int
19636 main ()
19637 {
19638 return f != _beginthread;
19639   ;
19640   return 0;
19641 }
19642 _ACEOF
19643 rm -f conftest.$ac_objext conftest$ac_exeext
19644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19645   (eval $ac_link) 2>conftest.er1
19646   ac_status=$?
19647   grep -v '^ *+' conftest.er1 >conftest.err
19648   rm -f conftest.er1
19649   cat conftest.err >&5
19650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); } &&
19652          { ac_try='test -z "$ac_c_werror_flag"
19653                          || test ! -s conftest.err'
19654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655   (eval $ac_try) 2>&5
19656   ac_status=$?
19657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658   (exit $ac_status); }; } &&
19659          { ac_try='test -s conftest$ac_exeext'
19660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661   (eval $ac_try) 2>&5
19662   ac_status=$?
19663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664   (exit $ac_status); }; }; then
19665   ac_cv_func__beginthread=yes
19666 else
19667   echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19669
19670 ac_cv_func__beginthread=no
19671 fi
19672 rm -f conftest.err conftest.$ac_objext \
19673       conftest$ac_exeext conftest.$ac_ext
19674 fi
19675 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19676 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19677
19678
19679         if test $ac_cv_func__beginthread = yes ; then
19680
19681 cat >>confdefs.h <<\_ACEOF
19682 #define HAVE_NT_THREADS 1
19683 _ACEOF
19684
19685                 ol_cv_nt_threads=yes
19686         fi
19687
19688
19689         if test "$ol_cv_nt_threads" = yes ; then
19690                 ol_link_threads=nt
19691                 ol_with_threads=found
19692                 ol_with_yielding_select=yes
19693
19694
19695 cat >>confdefs.h <<\_ACEOF
19696 #define HAVE_NT_SERVICE_MANAGER 1
19697 _ACEOF
19698
19699
19700 cat >>confdefs.h <<\_ACEOF
19701 #define HAVE_NT_EVENT_LOG 1
19702 _ACEOF
19703
19704         fi
19705
19706         if test $ol_with_threads = nt ; then
19707                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19708 echo "$as_me: error: could not locate NT Threads" >&2;}
19709    { (exit 1); exit 1; }; }
19710         fi
19711         ;;
19712 esac
19713
19714 case $ol_with_threads in auto | yes | posix)
19715
19716
19717 for ac_header in pthread.h
19718 do
19719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19721   echo "$as_me:$LINENO: checking for $ac_header" >&5
19722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19724   echo $ECHO_N "(cached) $ECHO_C" >&6
19725 fi
19726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19728 else
19729   # Is the header compilable?
19730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19732 cat >conftest.$ac_ext <<_ACEOF
19733 /* confdefs.h.  */
19734 _ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h.  */
19738 $ac_includes_default
19739 #include <$ac_header>
19740 _ACEOF
19741 rm -f conftest.$ac_objext
19742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19743   (eval $ac_compile) 2>conftest.er1
19744   ac_status=$?
19745   grep -v '^ *+' conftest.er1 >conftest.err
19746   rm -f conftest.er1
19747   cat conftest.err >&5
19748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); } &&
19750          { ac_try='test -z "$ac_c_werror_flag"
19751                          || test ! -s conftest.err'
19752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753   (eval $ac_try) 2>&5
19754   ac_status=$?
19755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756   (exit $ac_status); }; } &&
19757          { ac_try='test -s conftest.$ac_objext'
19758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19759   (eval $ac_try) 2>&5
19760   ac_status=$?
19761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762   (exit $ac_status); }; }; then
19763   ac_header_compiler=yes
19764 else
19765   echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19767
19768 ac_header_compiler=no
19769 fi
19770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19772 echo "${ECHO_T}$ac_header_compiler" >&6
19773
19774 # Is the header present?
19775 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19777 cat >conftest.$ac_ext <<_ACEOF
19778 /* confdefs.h.  */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h.  */
19783 #include <$ac_header>
19784 _ACEOF
19785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19786   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19787   ac_status=$?
19788   grep -v '^ *+' conftest.er1 >conftest.err
19789   rm -f conftest.er1
19790   cat conftest.err >&5
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); } >/dev/null; then
19793   if test -s conftest.err; then
19794     ac_cpp_err=$ac_c_preproc_warn_flag
19795     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19796   else
19797     ac_cpp_err=
19798   fi
19799 else
19800   ac_cpp_err=yes
19801 fi
19802 if test -z "$ac_cpp_err"; then
19803   ac_header_preproc=yes
19804 else
19805   echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19807
19808   ac_header_preproc=no
19809 fi
19810 rm -f conftest.err conftest.$ac_ext
19811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19812 echo "${ECHO_T}$ac_header_preproc" >&6
19813
19814 # So?  What about this header?
19815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19816   yes:no: )
19817     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19821     ac_header_preproc=yes
19822     ;;
19823   no:yes:* )
19824     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19826     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19827 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19828     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19830     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19831 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19834     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19836     (
19837       cat <<\_ASBOX
19838 ## ------------------------------------------ ##
19839 ## Report this to the AC_PACKAGE_NAME lists.  ##
19840 ## ------------------------------------------ ##
19841 _ASBOX
19842     ) |
19843       sed "s/^/$as_me: WARNING:     /" >&2
19844     ;;
19845 esac
19846 echo "$as_me:$LINENO: checking for $ac_header" >&5
19847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19849   echo $ECHO_N "(cached) $ECHO_C" >&6
19850 else
19851   eval "$as_ac_Header=\$ac_header_preproc"
19852 fi
19853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19855
19856 fi
19857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19858   cat >>confdefs.h <<_ACEOF
19859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19860 _ACEOF
19861
19862 fi
19863
19864 done
19865
19866
19867         if test $ac_cv_header_pthread_h = yes ; then
19868                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19869 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19870 if test "${ol_cv_pthread_version+set}" = set; then
19871   echo $ECHO_N "(cached) $ECHO_C" >&6
19872 else
19873
19874         cat >conftest.$ac_ext <<_ACEOF
19875 /* confdefs.h.  */
19876 _ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h.  */
19880
19881 #               include <pthread.h>
19882
19883 int
19884 main ()
19885 {
19886
19887                 int i = PTHREAD_CREATE_JOINABLE;
19888
19889   ;
19890   return 0;
19891 }
19892 _ACEOF
19893 rm -f conftest.$ac_objext
19894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19895   (eval $ac_compile) 2>conftest.er1
19896   ac_status=$?
19897   grep -v '^ *+' conftest.er1 >conftest.err
19898   rm -f conftest.er1
19899   cat conftest.err >&5
19900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901   (exit $ac_status); } &&
19902          { ac_try='test -z "$ac_c_werror_flag"
19903                          || test ! -s conftest.err'
19904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905   (eval $ac_try) 2>&5
19906   ac_status=$?
19907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); }; } &&
19909          { ac_try='test -s conftest.$ac_objext'
19910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911   (eval $ac_try) 2>&5
19912   ac_status=$?
19913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); }; }; then
19915
19916         cat >conftest.$ac_ext <<_ACEOF
19917 /* confdefs.h.  */
19918 _ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h.  */
19922 #include <pthread.h>
19923
19924 _ACEOF
19925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19926   $EGREP "pthread_detach" >/dev/null 2>&1; then
19927   ol_cv_pthread_version=10
19928 else
19929   ol_cv_pthread_version=8
19930 fi
19931 rm -f conftest*
19932
19933 else
19934   echo "$as_me: failed program was:" >&5
19935 sed 's/^/| /' conftest.$ac_ext >&5
19936
19937
19938         cat >conftest.$ac_ext <<_ACEOF
19939 /* confdefs.h.  */
19940 _ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h.  */
19944
19945 #               include <pthread.h>
19946 #               ifdef PTHREAD_CREATE_UNDETACHED
19947                 draft7
19948 #               endif
19949
19950 _ACEOF
19951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19952   $EGREP "draft7" >/dev/null 2>&1; then
19953   ol_cv_pthread_version=7
19954 else
19955
19956         cat >conftest.$ac_ext <<_ACEOF
19957 /* confdefs.h.  */
19958 _ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h.  */
19962 #include <pthread.h>
19963
19964 _ACEOF
19965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19966   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19967   ol_cv_pthread_version=6
19968 else
19969
19970         cat >conftest.$ac_ext <<_ACEOF
19971 /* confdefs.h.  */
19972 _ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h.  */
19976
19977 #               include <pthread.h>
19978 #ifdef          PTHREAD_MUTEX_INITIALIZER
19979                 draft5
19980 #endif
19981
19982 _ACEOF
19983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19984   $EGREP "draft5" >/dev/null 2>&1; then
19985   ol_cv_pthread_version=5
19986 else
19987   ol_cv_pthread_version=4
19988 fi
19989 rm -f conftest*
19990
19991 fi
19992 rm -f conftest*
19993
19994 fi
19995 rm -f conftest*
19996
19997 fi
19998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19999
20000 fi
20001 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20002 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20003
20004
20005                 if test $ol_cv_pthread_version != 0 ; then
20006
20007 cat >>confdefs.h <<_ACEOF
20008 #define HAVE_PTHREADS $ol_cv_pthread_version
20009 _ACEOF
20010
20011                 else
20012                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20013 echo "$as_me: error: unknown pthread version" >&2;}
20014    { (exit 1); exit 1; }; }
20015                 fi
20016
20017                 # consider threads found
20018                 ol_with_threads=found
20019
20020
20021         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20022 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20023 if test "${ol_cv_header_linux_threads+set}" = set; then
20024   echo $ECHO_N "(cached) $ECHO_C" >&6
20025 else
20026   cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h.  */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h.  */
20032 #include <pthread.h>
20033 _ACEOF
20034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20035   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20036   ol_cv_header_linux_threads=yes
20037 else
20038   ol_cv_header_linux_threads=no
20039 fi
20040 rm -f conftest*
20041
20042
20043 fi
20044 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20045 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20046         if test $ol_cv_header_linux_threads = yes; then
20047
20048 cat >>confdefs.h <<\_ACEOF
20049 #define HAVE_LINUX_THREADS 1
20050 _ACEOF
20051
20052         fi
20053
20054
20055         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20056 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20057 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20058   echo $ECHO_N "(cached) $ECHO_C" >&6
20059 else
20060   cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h.  */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h.  */
20066 #include <pthread.h>
20067 #ifdef _POSIX_THREAD_IS_GNU_PTH
20068         __gnu_pth__;
20069 #endif
20070
20071 _ACEOF
20072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20073   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20074   ol_cv_header_gnu_pth_pthread_h=yes
20075 else
20076   ol_cv_header_gnu_pth_pthread_h=no
20077 fi
20078 rm -f conftest*
20079
20080
20081 fi
20082 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20083 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20084
20085
20086                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20087
20088 for ac_header in sched.h
20089 do
20090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20092   echo "$as_me:$LINENO: checking for $ac_header" >&5
20093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20095   echo $ECHO_N "(cached) $ECHO_C" >&6
20096 fi
20097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20099 else
20100   # Is the header compilable?
20101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20103 cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h.  */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h.  */
20109 $ac_includes_default
20110 #include <$ac_header>
20111 _ACEOF
20112 rm -f conftest.$ac_objext
20113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20114   (eval $ac_compile) 2>conftest.er1
20115   ac_status=$?
20116   grep -v '^ *+' conftest.er1 >conftest.err
20117   rm -f conftest.er1
20118   cat conftest.err >&5
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); } &&
20121          { ac_try='test -z "$ac_c_werror_flag"
20122                          || test ! -s conftest.err'
20123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124   (eval $ac_try) 2>&5
20125   ac_status=$?
20126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127   (exit $ac_status); }; } &&
20128          { ac_try='test -s conftest.$ac_objext'
20129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130   (eval $ac_try) 2>&5
20131   ac_status=$?
20132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133   (exit $ac_status); }; }; then
20134   ac_header_compiler=yes
20135 else
20136   echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20138
20139 ac_header_compiler=no
20140 fi
20141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20143 echo "${ECHO_T}$ac_header_compiler" >&6
20144
20145 # Is the header present?
20146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20148 cat >conftest.$ac_ext <<_ACEOF
20149 /* confdefs.h.  */
20150 _ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h.  */
20154 #include <$ac_header>
20155 _ACEOF
20156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20157   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20158   ac_status=$?
20159   grep -v '^ *+' conftest.er1 >conftest.err
20160   rm -f conftest.er1
20161   cat conftest.err >&5
20162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163   (exit $ac_status); } >/dev/null; then
20164   if test -s conftest.err; then
20165     ac_cpp_err=$ac_c_preproc_warn_flag
20166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20167   else
20168     ac_cpp_err=
20169   fi
20170 else
20171   ac_cpp_err=yes
20172 fi
20173 if test -z "$ac_cpp_err"; then
20174   ac_header_preproc=yes
20175 else
20176   echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20178
20179   ac_header_preproc=no
20180 fi
20181 rm -f conftest.err conftest.$ac_ext
20182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20183 echo "${ECHO_T}$ac_header_preproc" >&6
20184
20185 # So?  What about this header?
20186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20187   yes:no: )
20188     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20192     ac_header_preproc=yes
20193     ;;
20194   no:yes:* )
20195     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20197     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20198 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20199     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20201     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20202 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20205     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20207     (
20208       cat <<\_ASBOX
20209 ## ------------------------------------------ ##
20210 ## Report this to the AC_PACKAGE_NAME lists.  ##
20211 ## ------------------------------------------ ##
20212 _ASBOX
20213     ) |
20214       sed "s/^/$as_me: WARNING:     /" >&2
20215     ;;
20216 esac
20217 echo "$as_me:$LINENO: checking for $ac_header" >&5
20218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20220   echo $ECHO_N "(cached) $ECHO_C" >&6
20221 else
20222   eval "$as_ac_Header=\$ac_header_preproc"
20223 fi
20224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20226
20227 fi
20228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20229   cat >>confdefs.h <<_ACEOF
20230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20231 _ACEOF
20232
20233 fi
20234
20235 done
20236
20237                 fi
20238
20239
20240                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20241 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20242 if test "${ol_cv_pthread_create+set}" = set; then
20243   echo $ECHO_N "(cached) $ECHO_C" >&6
20244 else
20245
20246                         if test "$cross_compiling" = yes; then
20247   cat >conftest.$ac_ext <<_ACEOF
20248 /* confdefs.h.  */
20249 _ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h.  */
20253
20254 /* pthread test headers */
20255 #include <pthread.h>
20256 #if HAVE_PTHREADS < 7
20257 #include <errno.h>
20258 #endif
20259 #ifndef NULL
20260 #define NULL (void*)0
20261 #endif
20262
20263 static void *task(p)
20264         void *p;
20265 {
20266         return (void *) (p == NULL);
20267 }
20268
20269 int
20270 main ()
20271 {
20272
20273         /* pthread test function */
20274 #ifndef PTHREAD_CREATE_DETACHED
20275 #define PTHREAD_CREATE_DETACHED 1
20276 #endif
20277         pthread_t t;
20278         int status;
20279         int detach = PTHREAD_CREATE_DETACHED;
20280
20281 #if HAVE_PTHREADS > 4
20282         /* Final pthreads */
20283         pthread_attr_t attr;
20284
20285         status = pthread_attr_init(&attr);
20286         if( status ) return status;
20287
20288 #if HAVE_PTHREADS < 7
20289         status = pthread_attr_setdetachstate(&attr, &detach);
20290         if( status < 0 ) status = errno;
20291 #else
20292         status = pthread_attr_setdetachstate(&attr, detach);
20293 #endif
20294         if( status ) return status;
20295         status = pthread_create( &t, &attr, task, NULL );
20296 #if HAVE_PTHREADS < 7
20297         if( status < 0 ) status = errno;
20298 #endif
20299         if( status ) return status;
20300 #else
20301         /* Draft 4 pthreads */
20302         status = pthread_create( &t, pthread_attr_default, task, NULL );
20303         if( status ) return errno;
20304
20305         /* give thread a chance to complete */
20306         /* it should remain joinable and hence detachable */
20307         sleep( 1 );
20308
20309         status = pthread_detach( &t );
20310         if( status ) return errno;
20311 #endif
20312
20313 #ifdef HAVE_LINUX_THREADS
20314         pthread_kill_other_threads_np();
20315 #endif
20316
20317         return 0;
20318
20319   ;
20320   return 0;
20321 }
20322 _ACEOF
20323 rm -f conftest.$ac_objext conftest$ac_exeext
20324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20325   (eval $ac_link) 2>conftest.er1
20326   ac_status=$?
20327   grep -v '^ *+' conftest.er1 >conftest.err
20328   rm -f conftest.er1
20329   cat conftest.err >&5
20330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331   (exit $ac_status); } &&
20332          { ac_try='test -z "$ac_c_werror_flag"
20333                          || test ! -s conftest.err'
20334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335   (eval $ac_try) 2>&5
20336   ac_status=$?
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); }; } &&
20339          { ac_try='test -s conftest$ac_exeext'
20340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341   (eval $ac_try) 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); }; }; then
20345   ol_cv_pthread_create=yes
20346 else
20347   echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350 ol_cv_pthread_create=no
20351 fi
20352 rm -f conftest.err conftest.$ac_objext \
20353       conftest$ac_exeext conftest.$ac_ext
20354 else
20355   cat >conftest.$ac_ext <<_ACEOF
20356 /* confdefs.h.  */
20357 _ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h.  */
20361
20362 /* pthread test headers */
20363 #include <pthread.h>
20364 #if HAVE_PTHREADS < 7
20365 #include <errno.h>
20366 #endif
20367 #ifndef NULL
20368 #define NULL (void*)0
20369 #endif
20370
20371 static void *task(p)
20372         void *p;
20373 {
20374         return (void *) (p == NULL);
20375 }
20376
20377
20378 int main(argc, argv)
20379         int argc;
20380         char **argv;
20381 {
20382
20383         /* pthread test function */
20384 #ifndef PTHREAD_CREATE_DETACHED
20385 #define PTHREAD_CREATE_DETACHED 1
20386 #endif
20387         pthread_t t;
20388         int status;
20389         int detach = PTHREAD_CREATE_DETACHED;
20390
20391 #if HAVE_PTHREADS > 4
20392         /* Final pthreads */
20393         pthread_attr_t attr;
20394
20395         status = pthread_attr_init(&attr);
20396         if( status ) return status;
20397
20398 #if HAVE_PTHREADS < 7
20399         status = pthread_attr_setdetachstate(&attr, &detach);
20400         if( status < 0 ) status = errno;
20401 #else
20402         status = pthread_attr_setdetachstate(&attr, detach);
20403 #endif
20404         if( status ) return status;
20405         status = pthread_create( &t, &attr, task, NULL );
20406 #if HAVE_PTHREADS < 7
20407         if( status < 0 ) status = errno;
20408 #endif
20409         if( status ) return status;
20410 #else
20411         /* Draft 4 pthreads */
20412         status = pthread_create( &t, pthread_attr_default, task, NULL );
20413         if( status ) return errno;
20414
20415         /* give thread a chance to complete */
20416         /* it should remain joinable and hence detachable */
20417         sleep( 1 );
20418
20419         status = pthread_detach( &t );
20420         if( status ) return errno;
20421 #endif
20422
20423 #ifdef HAVE_LINUX_THREADS
20424         pthread_kill_other_threads_np();
20425 #endif
20426
20427         return 0;
20428
20429 }
20430
20431 _ACEOF
20432 rm -f conftest$ac_exeext
20433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20434   (eval $ac_link) 2>&5
20435   ac_status=$?
20436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439   (eval $ac_try) 2>&5
20440   ac_status=$?
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); }; }; then
20443   ol_cv_pthread_create=yes
20444 else
20445   echo "$as_me: program exited with status $ac_status" >&5
20446 echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20448
20449 ( exit $ac_status )
20450 ol_cv_pthread_create=no
20451 fi
20452 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20453 fi
20454 fi
20455 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20456 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20457
20458                 if test $ol_cv_pthread_create != no ; then
20459                         ol_link_threads=posix
20460                         ol_link_pthreads=""
20461                 fi
20462
20463                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20464 if test "$ol_link_threads" = no ; then
20465         # try -kthread
20466         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20467 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20468 if test "${ol_cv_pthread_kthread+set}" = set; then
20469   echo $ECHO_N "(cached) $ECHO_C" >&6
20470 else
20471
20472                 # save the flags
20473                 ol_LIBS="$LIBS"
20474                 LIBS="-kthread $LIBS"
20475
20476                 if test "$cross_compiling" = yes; then
20477   cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h.  */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h.  */
20483
20484 /* pthread test headers */
20485 #include <pthread.h>
20486 #if HAVE_PTHREADS < 7
20487 #include <errno.h>
20488 #endif
20489 #ifndef NULL
20490 #define NULL (void*)0
20491 #endif
20492
20493 static void *task(p)
20494         void *p;
20495 {
20496         return (void *) (p == NULL);
20497 }
20498
20499 int
20500 main ()
20501 {
20502
20503         /* pthread test function */
20504 #ifndef PTHREAD_CREATE_DETACHED
20505 #define PTHREAD_CREATE_DETACHED 1
20506 #endif
20507         pthread_t t;
20508         int status;
20509         int detach = PTHREAD_CREATE_DETACHED;
20510
20511 #if HAVE_PTHREADS > 4
20512         /* Final pthreads */
20513         pthread_attr_t attr;
20514
20515         status = pthread_attr_init(&attr);
20516         if( status ) return status;
20517
20518 #if HAVE_PTHREADS < 7
20519         status = pthread_attr_setdetachstate(&attr, &detach);
20520         if( status < 0 ) status = errno;
20521 #else
20522         status = pthread_attr_setdetachstate(&attr, detach);
20523 #endif
20524         if( status ) return status;
20525         status = pthread_create( &t, &attr, task, NULL );
20526 #if HAVE_PTHREADS < 7
20527         if( status < 0 ) status = errno;
20528 #endif
20529         if( status ) return status;
20530 #else
20531         /* Draft 4 pthreads */
20532         status = pthread_create( &t, pthread_attr_default, task, NULL );
20533         if( status ) return errno;
20534
20535         /* give thread a chance to complete */
20536         /* it should remain joinable and hence detachable */
20537         sleep( 1 );
20538
20539         status = pthread_detach( &t );
20540         if( status ) return errno;
20541 #endif
20542
20543 #ifdef HAVE_LINUX_THREADS
20544         pthread_kill_other_threads_np();
20545 #endif
20546
20547         return 0;
20548
20549   ;
20550   return 0;
20551 }
20552 _ACEOF
20553 rm -f conftest.$ac_objext conftest$ac_exeext
20554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20555   (eval $ac_link) 2>conftest.er1
20556   ac_status=$?
20557   grep -v '^ *+' conftest.er1 >conftest.err
20558   rm -f conftest.er1
20559   cat conftest.err >&5
20560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561   (exit $ac_status); } &&
20562          { ac_try='test -z "$ac_c_werror_flag"
20563                          || test ! -s conftest.err'
20564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565   (eval $ac_try) 2>&5
20566   ac_status=$?
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); }; } &&
20569          { ac_try='test -s conftest$ac_exeext'
20570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571   (eval $ac_try) 2>&5
20572   ac_status=$?
20573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574   (exit $ac_status); }; }; then
20575   ol_cv_pthread_kthread=yes
20576 else
20577   echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20579
20580 ol_cv_pthread_kthread=no
20581 fi
20582 rm -f conftest.err conftest.$ac_objext \
20583       conftest$ac_exeext conftest.$ac_ext
20584 else
20585   cat >conftest.$ac_ext <<_ACEOF
20586 /* confdefs.h.  */
20587 _ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h.  */
20591
20592 /* pthread test headers */
20593 #include <pthread.h>
20594 #if HAVE_PTHREADS < 7
20595 #include <errno.h>
20596 #endif
20597 #ifndef NULL
20598 #define NULL (void*)0
20599 #endif
20600
20601 static void *task(p)
20602         void *p;
20603 {
20604         return (void *) (p == NULL);
20605 }
20606
20607
20608 int main(argc, argv)
20609         int argc;
20610         char **argv;
20611 {
20612
20613         /* pthread test function */
20614 #ifndef PTHREAD_CREATE_DETACHED
20615 #define PTHREAD_CREATE_DETACHED 1
20616 #endif
20617         pthread_t t;
20618         int status;
20619         int detach = PTHREAD_CREATE_DETACHED;
20620
20621 #if HAVE_PTHREADS > 4
20622         /* Final pthreads */
20623         pthread_attr_t attr;
20624
20625         status = pthread_attr_init(&attr);
20626         if( status ) return status;
20627
20628 #if HAVE_PTHREADS < 7
20629         status = pthread_attr_setdetachstate(&attr, &detach);
20630         if( status < 0 ) status = errno;
20631 #else
20632         status = pthread_attr_setdetachstate(&attr, detach);
20633 #endif
20634         if( status ) return status;
20635         status = pthread_create( &t, &attr, task, NULL );
20636 #if HAVE_PTHREADS < 7
20637         if( status < 0 ) status = errno;
20638 #endif
20639         if( status ) return status;
20640 #else
20641         /* Draft 4 pthreads */
20642         status = pthread_create( &t, pthread_attr_default, task, NULL );
20643         if( status ) return errno;
20644
20645         /* give thread a chance to complete */
20646         /* it should remain joinable and hence detachable */
20647         sleep( 1 );
20648
20649         status = pthread_detach( &t );
20650         if( status ) return errno;
20651 #endif
20652
20653 #ifdef HAVE_LINUX_THREADS
20654         pthread_kill_other_threads_np();
20655 #endif
20656
20657         return 0;
20658
20659 }
20660
20661 _ACEOF
20662 rm -f conftest$ac_exeext
20663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20664   (eval $ac_link) 2>&5
20665   ac_status=$?
20666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669   (eval $ac_try) 2>&5
20670   ac_status=$?
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); }; }; then
20673   ol_cv_pthread_kthread=yes
20674 else
20675   echo "$as_me: program exited with status $ac_status" >&5
20676 echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20678
20679 ( exit $ac_status )
20680 ol_cv_pthread_kthread=no
20681 fi
20682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20683 fi
20684
20685                 # restore the LIBS
20686                 LIBS="$ol_LIBS"
20687
20688 fi
20689 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20690 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20691
20692         if test $ol_cv_pthread_kthread = yes ; then
20693                 ol_link_pthreads="-kthread"
20694                 ol_link_threads=posix
20695         fi
20696 fi
20697
20698                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20699 if test "$ol_link_threads" = no ; then
20700         # try -pthread
20701         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20702 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20703 if test "${ol_cv_pthread_pthread+set}" = set; then
20704   echo $ECHO_N "(cached) $ECHO_C" >&6
20705 else
20706
20707                 # save the flags
20708                 ol_LIBS="$LIBS"
20709                 LIBS="-pthread $LIBS"
20710
20711                 if test "$cross_compiling" = yes; then
20712   cat >conftest.$ac_ext <<_ACEOF
20713 /* confdefs.h.  */
20714 _ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h.  */
20718
20719 /* pthread test headers */
20720 #include <pthread.h>
20721 #if HAVE_PTHREADS < 7
20722 #include <errno.h>
20723 #endif
20724 #ifndef NULL
20725 #define NULL (void*)0
20726 #endif
20727
20728 static void *task(p)
20729         void *p;
20730 {
20731         return (void *) (p == NULL);
20732 }
20733
20734 int
20735 main ()
20736 {
20737
20738         /* pthread test function */
20739 #ifndef PTHREAD_CREATE_DETACHED
20740 #define PTHREAD_CREATE_DETACHED 1
20741 #endif
20742         pthread_t t;
20743         int status;
20744         int detach = PTHREAD_CREATE_DETACHED;
20745
20746 #if HAVE_PTHREADS > 4
20747         /* Final pthreads */
20748         pthread_attr_t attr;
20749
20750         status = pthread_attr_init(&attr);
20751         if( status ) return status;
20752
20753 #if HAVE_PTHREADS < 7
20754         status = pthread_attr_setdetachstate(&attr, &detach);
20755         if( status < 0 ) status = errno;
20756 #else
20757         status = pthread_attr_setdetachstate(&attr, detach);
20758 #endif
20759         if( status ) return status;
20760         status = pthread_create( &t, &attr, task, NULL );
20761 #if HAVE_PTHREADS < 7
20762         if( status < 0 ) status = errno;
20763 #endif
20764         if( status ) return status;
20765 #else
20766         /* Draft 4 pthreads */
20767         status = pthread_create( &t, pthread_attr_default, task, NULL );
20768         if( status ) return errno;
20769
20770         /* give thread a chance to complete */
20771         /* it should remain joinable and hence detachable */
20772         sleep( 1 );
20773
20774         status = pthread_detach( &t );
20775         if( status ) return errno;
20776 #endif
20777
20778 #ifdef HAVE_LINUX_THREADS
20779         pthread_kill_other_threads_np();
20780 #endif
20781
20782         return 0;
20783
20784   ;
20785   return 0;
20786 }
20787 _ACEOF
20788 rm -f conftest.$ac_objext conftest$ac_exeext
20789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20790   (eval $ac_link) 2>conftest.er1
20791   ac_status=$?
20792   grep -v '^ *+' conftest.er1 >conftest.err
20793   rm -f conftest.er1
20794   cat conftest.err >&5
20795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796   (exit $ac_status); } &&
20797          { ac_try='test -z "$ac_c_werror_flag"
20798                          || test ! -s conftest.err'
20799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800   (eval $ac_try) 2>&5
20801   ac_status=$?
20802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); }; } &&
20804          { ac_try='test -s conftest$ac_exeext'
20805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806   (eval $ac_try) 2>&5
20807   ac_status=$?
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); }; }; then
20810   ol_cv_pthread_pthread=yes
20811 else
20812   echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20814
20815 ol_cv_pthread_pthread=no
20816 fi
20817 rm -f conftest.err conftest.$ac_objext \
20818       conftest$ac_exeext conftest.$ac_ext
20819 else
20820   cat >conftest.$ac_ext <<_ACEOF
20821 /* confdefs.h.  */
20822 _ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h.  */
20826
20827 /* pthread test headers */
20828 #include <pthread.h>
20829 #if HAVE_PTHREADS < 7
20830 #include <errno.h>
20831 #endif
20832 #ifndef NULL
20833 #define NULL (void*)0
20834 #endif
20835
20836 static void *task(p)
20837         void *p;
20838 {
20839         return (void *) (p == NULL);
20840 }
20841
20842
20843 int main(argc, argv)
20844         int argc;
20845         char **argv;
20846 {
20847
20848         /* pthread test function */
20849 #ifndef PTHREAD_CREATE_DETACHED
20850 #define PTHREAD_CREATE_DETACHED 1
20851 #endif
20852         pthread_t t;
20853         int status;
20854         int detach = PTHREAD_CREATE_DETACHED;
20855
20856 #if HAVE_PTHREADS > 4
20857         /* Final pthreads */
20858         pthread_attr_t attr;
20859
20860         status = pthread_attr_init(&attr);
20861         if( status ) return status;
20862
20863 #if HAVE_PTHREADS < 7
20864         status = pthread_attr_setdetachstate(&attr, &detach);
20865         if( status < 0 ) status = errno;
20866 #else
20867         status = pthread_attr_setdetachstate(&attr, detach);
20868 #endif
20869         if( status ) return status;
20870         status = pthread_create( &t, &attr, task, NULL );
20871 #if HAVE_PTHREADS < 7
20872         if( status < 0 ) status = errno;
20873 #endif
20874         if( status ) return status;
20875 #else
20876         /* Draft 4 pthreads */
20877         status = pthread_create( &t, pthread_attr_default, task, NULL );
20878         if( status ) return errno;
20879
20880         /* give thread a chance to complete */
20881         /* it should remain joinable and hence detachable */
20882         sleep( 1 );
20883
20884         status = pthread_detach( &t );
20885         if( status ) return errno;
20886 #endif
20887
20888 #ifdef HAVE_LINUX_THREADS
20889         pthread_kill_other_threads_np();
20890 #endif
20891
20892         return 0;
20893
20894 }
20895
20896 _ACEOF
20897 rm -f conftest$ac_exeext
20898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20899   (eval $ac_link) 2>&5
20900   ac_status=$?
20901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904   (eval $ac_try) 2>&5
20905   ac_status=$?
20906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); }; }; then
20908   ol_cv_pthread_pthread=yes
20909 else
20910   echo "$as_me: program exited with status $ac_status" >&5
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20913
20914 ( exit $ac_status )
20915 ol_cv_pthread_pthread=no
20916 fi
20917 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20918 fi
20919
20920                 # restore the LIBS
20921                 LIBS="$ol_LIBS"
20922
20923 fi
20924 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20925 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20926
20927         if test $ol_cv_pthread_pthread = yes ; then
20928                 ol_link_pthreads="-pthread"
20929                 ol_link_threads=posix
20930         fi
20931 fi
20932
20933                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20934 if test "$ol_link_threads" = no ; then
20935         # try -pthreads
20936         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20937 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20938 if test "${ol_cv_pthread_pthreads+set}" = set; then
20939   echo $ECHO_N "(cached) $ECHO_C" >&6
20940 else
20941
20942                 # save the flags
20943                 ol_LIBS="$LIBS"
20944                 LIBS="-pthreads $LIBS"
20945
20946                 if test "$cross_compiling" = yes; then
20947   cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h.  */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h.  */
20953
20954 /* pthread test headers */
20955 #include <pthread.h>
20956 #if HAVE_PTHREADS < 7
20957 #include <errno.h>
20958 #endif
20959 #ifndef NULL
20960 #define NULL (void*)0
20961 #endif
20962
20963 static void *task(p)
20964         void *p;
20965 {
20966         return (void *) (p == NULL);
20967 }
20968
20969 int
20970 main ()
20971 {
20972
20973         /* pthread test function */
20974 #ifndef PTHREAD_CREATE_DETACHED
20975 #define PTHREAD_CREATE_DETACHED 1
20976 #endif
20977         pthread_t t;
20978         int status;
20979         int detach = PTHREAD_CREATE_DETACHED;
20980
20981 #if HAVE_PTHREADS > 4
20982         /* Final pthreads */
20983         pthread_attr_t attr;
20984
20985         status = pthread_attr_init(&attr);
20986         if( status ) return status;
20987
20988 #if HAVE_PTHREADS < 7
20989         status = pthread_attr_setdetachstate(&attr, &detach);
20990         if( status < 0 ) status = errno;
20991 #else
20992         status = pthread_attr_setdetachstate(&attr, detach);
20993 #endif
20994         if( status ) return status;
20995         status = pthread_create( &t, &attr, task, NULL );
20996 #if HAVE_PTHREADS < 7
20997         if( status < 0 ) status = errno;
20998 #endif
20999         if( status ) return status;
21000 #else
21001         /* Draft 4 pthreads */
21002         status = pthread_create( &t, pthread_attr_default, task, NULL );
21003         if( status ) return errno;
21004
21005         /* give thread a chance to complete */
21006         /* it should remain joinable and hence detachable */
21007         sleep( 1 );
21008
21009         status = pthread_detach( &t );
21010         if( status ) return errno;
21011 #endif
21012
21013 #ifdef HAVE_LINUX_THREADS
21014         pthread_kill_other_threads_np();
21015 #endif
21016
21017         return 0;
21018
21019   ;
21020   return 0;
21021 }
21022 _ACEOF
21023 rm -f conftest.$ac_objext conftest$ac_exeext
21024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21025   (eval $ac_link) 2>conftest.er1
21026   ac_status=$?
21027   grep -v '^ *+' conftest.er1 >conftest.err
21028   rm -f conftest.er1
21029   cat conftest.err >&5
21030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031   (exit $ac_status); } &&
21032          { ac_try='test -z "$ac_c_werror_flag"
21033                          || test ! -s conftest.err'
21034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035   (eval $ac_try) 2>&5
21036   ac_status=$?
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); }; } &&
21039          { ac_try='test -s conftest$ac_exeext'
21040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041   (eval $ac_try) 2>&5
21042   ac_status=$?
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); }; }; then
21045   ol_cv_pthread_pthreads=yes
21046 else
21047   echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050 ol_cv_pthread_pthreads=no
21051 fi
21052 rm -f conftest.err conftest.$ac_objext \
21053       conftest$ac_exeext conftest.$ac_ext
21054 else
21055   cat >conftest.$ac_ext <<_ACEOF
21056 /* confdefs.h.  */
21057 _ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h.  */
21061
21062 /* pthread test headers */
21063 #include <pthread.h>
21064 #if HAVE_PTHREADS < 7
21065 #include <errno.h>
21066 #endif
21067 #ifndef NULL
21068 #define NULL (void*)0
21069 #endif
21070
21071 static void *task(p)
21072         void *p;
21073 {
21074         return (void *) (p == NULL);
21075 }
21076
21077
21078 int main(argc, argv)
21079         int argc;
21080         char **argv;
21081 {
21082
21083         /* pthread test function */
21084 #ifndef PTHREAD_CREATE_DETACHED
21085 #define PTHREAD_CREATE_DETACHED 1
21086 #endif
21087         pthread_t t;
21088         int status;
21089         int detach = PTHREAD_CREATE_DETACHED;
21090
21091 #if HAVE_PTHREADS > 4
21092         /* Final pthreads */
21093         pthread_attr_t attr;
21094
21095         status = pthread_attr_init(&attr);
21096         if( status ) return status;
21097
21098 #if HAVE_PTHREADS < 7
21099         status = pthread_attr_setdetachstate(&attr, &detach);
21100         if( status < 0 ) status = errno;
21101 #else
21102         status = pthread_attr_setdetachstate(&attr, detach);
21103 #endif
21104         if( status ) return status;
21105         status = pthread_create( &t, &attr, task, NULL );
21106 #if HAVE_PTHREADS < 7
21107         if( status < 0 ) status = errno;
21108 #endif
21109         if( status ) return status;
21110 #else
21111         /* Draft 4 pthreads */
21112         status = pthread_create( &t, pthread_attr_default, task, NULL );
21113         if( status ) return errno;
21114
21115         /* give thread a chance to complete */
21116         /* it should remain joinable and hence detachable */
21117         sleep( 1 );
21118
21119         status = pthread_detach( &t );
21120         if( status ) return errno;
21121 #endif
21122
21123 #ifdef HAVE_LINUX_THREADS
21124         pthread_kill_other_threads_np();
21125 #endif
21126
21127         return 0;
21128
21129 }
21130
21131 _ACEOF
21132 rm -f conftest$ac_exeext
21133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21134   (eval $ac_link) 2>&5
21135   ac_status=$?
21136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21139   (eval $ac_try) 2>&5
21140   ac_status=$?
21141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142   (exit $ac_status); }; }; then
21143   ol_cv_pthread_pthreads=yes
21144 else
21145   echo "$as_me: program exited with status $ac_status" >&5
21146 echo "$as_me: failed program was:" >&5
21147 sed 's/^/| /' conftest.$ac_ext >&5
21148
21149 ( exit $ac_status )
21150 ol_cv_pthread_pthreads=no
21151 fi
21152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21153 fi
21154
21155                 # restore the LIBS
21156                 LIBS="$ol_LIBS"
21157
21158 fi
21159 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21160 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21161
21162         if test $ol_cv_pthread_pthreads = yes ; then
21163                 ol_link_pthreads="-pthreads"
21164                 ol_link_threads=posix
21165         fi
21166 fi
21167
21168                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21169 if test "$ol_link_threads" = no ; then
21170         # try -mthreads
21171         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21172 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21173 if test "${ol_cv_pthread_mthreads+set}" = set; then
21174   echo $ECHO_N "(cached) $ECHO_C" >&6
21175 else
21176
21177                 # save the flags
21178                 ol_LIBS="$LIBS"
21179                 LIBS="-mthreads $LIBS"
21180
21181                 if test "$cross_compiling" = yes; then
21182   cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h.  */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h.  */
21188
21189 /* pthread test headers */
21190 #include <pthread.h>
21191 #if HAVE_PTHREADS < 7
21192 #include <errno.h>
21193 #endif
21194 #ifndef NULL
21195 #define NULL (void*)0
21196 #endif
21197
21198 static void *task(p)
21199         void *p;
21200 {
21201         return (void *) (p == NULL);
21202 }
21203
21204 int
21205 main ()
21206 {
21207
21208         /* pthread test function */
21209 #ifndef PTHREAD_CREATE_DETACHED
21210 #define PTHREAD_CREATE_DETACHED 1
21211 #endif
21212         pthread_t t;
21213         int status;
21214         int detach = PTHREAD_CREATE_DETACHED;
21215
21216 #if HAVE_PTHREADS > 4
21217         /* Final pthreads */
21218         pthread_attr_t attr;
21219
21220         status = pthread_attr_init(&attr);
21221         if( status ) return status;
21222
21223 #if HAVE_PTHREADS < 7
21224         status = pthread_attr_setdetachstate(&attr, &detach);
21225         if( status < 0 ) status = errno;
21226 #else
21227         status = pthread_attr_setdetachstate(&attr, detach);
21228 #endif
21229         if( status ) return status;
21230         status = pthread_create( &t, &attr, task, NULL );
21231 #if HAVE_PTHREADS < 7
21232         if( status < 0 ) status = errno;
21233 #endif
21234         if( status ) return status;
21235 #else
21236         /* Draft 4 pthreads */
21237         status = pthread_create( &t, pthread_attr_default, task, NULL );
21238         if( status ) return errno;
21239
21240         /* give thread a chance to complete */
21241         /* it should remain joinable and hence detachable */
21242         sleep( 1 );
21243
21244         status = pthread_detach( &t );
21245         if( status ) return errno;
21246 #endif
21247
21248 #ifdef HAVE_LINUX_THREADS
21249         pthread_kill_other_threads_np();
21250 #endif
21251
21252         return 0;
21253
21254   ;
21255   return 0;
21256 }
21257 _ACEOF
21258 rm -f conftest.$ac_objext conftest$ac_exeext
21259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21260   (eval $ac_link) 2>conftest.er1
21261   ac_status=$?
21262   grep -v '^ *+' conftest.er1 >conftest.err
21263   rm -f conftest.er1
21264   cat conftest.err >&5
21265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266   (exit $ac_status); } &&
21267          { ac_try='test -z "$ac_c_werror_flag"
21268                          || test ! -s conftest.err'
21269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270   (eval $ac_try) 2>&5
21271   ac_status=$?
21272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273   (exit $ac_status); }; } &&
21274          { ac_try='test -s conftest$ac_exeext'
21275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276   (eval $ac_try) 2>&5
21277   ac_status=$?
21278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279   (exit $ac_status); }; }; then
21280   ol_cv_pthread_mthreads=yes
21281 else
21282   echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21284
21285 ol_cv_pthread_mthreads=no
21286 fi
21287 rm -f conftest.err conftest.$ac_objext \
21288       conftest$ac_exeext conftest.$ac_ext
21289 else
21290   cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h.  */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h.  */
21296
21297 /* pthread test headers */
21298 #include <pthread.h>
21299 #if HAVE_PTHREADS < 7
21300 #include <errno.h>
21301 #endif
21302 #ifndef NULL
21303 #define NULL (void*)0
21304 #endif
21305
21306 static void *task(p)
21307         void *p;
21308 {
21309         return (void *) (p == NULL);
21310 }
21311
21312
21313 int main(argc, argv)
21314         int argc;
21315         char **argv;
21316 {
21317
21318         /* pthread test function */
21319 #ifndef PTHREAD_CREATE_DETACHED
21320 #define PTHREAD_CREATE_DETACHED 1
21321 #endif
21322         pthread_t t;
21323         int status;
21324         int detach = PTHREAD_CREATE_DETACHED;
21325
21326 #if HAVE_PTHREADS > 4
21327         /* Final pthreads */
21328         pthread_attr_t attr;
21329
21330         status = pthread_attr_init(&attr);
21331         if( status ) return status;
21332
21333 #if HAVE_PTHREADS < 7
21334         status = pthread_attr_setdetachstate(&attr, &detach);
21335         if( status < 0 ) status = errno;
21336 #else
21337         status = pthread_attr_setdetachstate(&attr, detach);
21338 #endif
21339         if( status ) return status;
21340         status = pthread_create( &t, &attr, task, NULL );
21341 #if HAVE_PTHREADS < 7
21342         if( status < 0 ) status = errno;
21343 #endif
21344         if( status ) return status;
21345 #else
21346         /* Draft 4 pthreads */
21347         status = pthread_create( &t, pthread_attr_default, task, NULL );
21348         if( status ) return errno;
21349
21350         /* give thread a chance to complete */
21351         /* it should remain joinable and hence detachable */
21352         sleep( 1 );
21353
21354         status = pthread_detach( &t );
21355         if( status ) return errno;
21356 #endif
21357
21358 #ifdef HAVE_LINUX_THREADS
21359         pthread_kill_other_threads_np();
21360 #endif
21361
21362         return 0;
21363
21364 }
21365
21366 _ACEOF
21367 rm -f conftest$ac_exeext
21368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21369   (eval $ac_link) 2>&5
21370   ac_status=$?
21371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21374   (eval $ac_try) 2>&5
21375   ac_status=$?
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); }; }; then
21378   ol_cv_pthread_mthreads=yes
21379 else
21380   echo "$as_me: program exited with status $ac_status" >&5
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21383
21384 ( exit $ac_status )
21385 ol_cv_pthread_mthreads=no
21386 fi
21387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21388 fi
21389
21390                 # restore the LIBS
21391                 LIBS="$ol_LIBS"
21392
21393 fi
21394 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21395 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21396
21397         if test $ol_cv_pthread_mthreads = yes ; then
21398                 ol_link_pthreads="-mthreads"
21399                 ol_link_threads=posix
21400         fi
21401 fi
21402
21403                 # Pthread try link: -thread (ol_cv_pthread_thread)
21404 if test "$ol_link_threads" = no ; then
21405         # try -thread
21406         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21407 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21408 if test "${ol_cv_pthread_thread+set}" = set; then
21409   echo $ECHO_N "(cached) $ECHO_C" >&6
21410 else
21411
21412                 # save the flags
21413                 ol_LIBS="$LIBS"
21414                 LIBS="-thread $LIBS"
21415
21416                 if test "$cross_compiling" = yes; then
21417   cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h.  */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h.  */
21423
21424 /* pthread test headers */
21425 #include <pthread.h>
21426 #if HAVE_PTHREADS < 7
21427 #include <errno.h>
21428 #endif
21429 #ifndef NULL
21430 #define NULL (void*)0
21431 #endif
21432
21433 static void *task(p)
21434         void *p;
21435 {
21436         return (void *) (p == NULL);
21437 }
21438
21439 int
21440 main ()
21441 {
21442
21443         /* pthread test function */
21444 #ifndef PTHREAD_CREATE_DETACHED
21445 #define PTHREAD_CREATE_DETACHED 1
21446 #endif
21447         pthread_t t;
21448         int status;
21449         int detach = PTHREAD_CREATE_DETACHED;
21450
21451 #if HAVE_PTHREADS > 4
21452         /* Final pthreads */
21453         pthread_attr_t attr;
21454
21455         status = pthread_attr_init(&attr);
21456         if( status ) return status;
21457
21458 #if HAVE_PTHREADS < 7
21459         status = pthread_attr_setdetachstate(&attr, &detach);
21460         if( status < 0 ) status = errno;
21461 #else
21462         status = pthread_attr_setdetachstate(&attr, detach);
21463 #endif
21464         if( status ) return status;
21465         status = pthread_create( &t, &attr, task, NULL );
21466 #if HAVE_PTHREADS < 7
21467         if( status < 0 ) status = errno;
21468 #endif
21469         if( status ) return status;
21470 #else
21471         /* Draft 4 pthreads */
21472         status = pthread_create( &t, pthread_attr_default, task, NULL );
21473         if( status ) return errno;
21474
21475         /* give thread a chance to complete */
21476         /* it should remain joinable and hence detachable */
21477         sleep( 1 );
21478
21479         status = pthread_detach( &t );
21480         if( status ) return errno;
21481 #endif
21482
21483 #ifdef HAVE_LINUX_THREADS
21484         pthread_kill_other_threads_np();
21485 #endif
21486
21487         return 0;
21488
21489   ;
21490   return 0;
21491 }
21492 _ACEOF
21493 rm -f conftest.$ac_objext conftest$ac_exeext
21494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21495   (eval $ac_link) 2>conftest.er1
21496   ac_status=$?
21497   grep -v '^ *+' conftest.er1 >conftest.err
21498   rm -f conftest.er1
21499   cat conftest.err >&5
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); } &&
21502          { ac_try='test -z "$ac_c_werror_flag"
21503                          || test ! -s conftest.err'
21504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21505   (eval $ac_try) 2>&5
21506   ac_status=$?
21507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508   (exit $ac_status); }; } &&
21509          { ac_try='test -s conftest$ac_exeext'
21510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511   (eval $ac_try) 2>&5
21512   ac_status=$?
21513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514   (exit $ac_status); }; }; then
21515   ol_cv_pthread_thread=yes
21516 else
21517   echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21519
21520 ol_cv_pthread_thread=no
21521 fi
21522 rm -f conftest.err conftest.$ac_objext \
21523       conftest$ac_exeext conftest.$ac_ext
21524 else
21525   cat >conftest.$ac_ext <<_ACEOF
21526 /* confdefs.h.  */
21527 _ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h.  */
21531
21532 /* pthread test headers */
21533 #include <pthread.h>
21534 #if HAVE_PTHREADS < 7
21535 #include <errno.h>
21536 #endif
21537 #ifndef NULL
21538 #define NULL (void*)0
21539 #endif
21540
21541 static void *task(p)
21542         void *p;
21543 {
21544         return (void *) (p == NULL);
21545 }
21546
21547
21548 int main(argc, argv)
21549         int argc;
21550         char **argv;
21551 {
21552
21553         /* pthread test function */
21554 #ifndef PTHREAD_CREATE_DETACHED
21555 #define PTHREAD_CREATE_DETACHED 1
21556 #endif
21557         pthread_t t;
21558         int status;
21559         int detach = PTHREAD_CREATE_DETACHED;
21560
21561 #if HAVE_PTHREADS > 4
21562         /* Final pthreads */
21563         pthread_attr_t attr;
21564
21565         status = pthread_attr_init(&attr);
21566         if( status ) return status;
21567
21568 #if HAVE_PTHREADS < 7
21569         status = pthread_attr_setdetachstate(&attr, &detach);
21570         if( status < 0 ) status = errno;
21571 #else
21572         status = pthread_attr_setdetachstate(&attr, detach);
21573 #endif
21574         if( status ) return status;
21575         status = pthread_create( &t, &attr, task, NULL );
21576 #if HAVE_PTHREADS < 7
21577         if( status < 0 ) status = errno;
21578 #endif
21579         if( status ) return status;
21580 #else
21581         /* Draft 4 pthreads */
21582         status = pthread_create( &t, pthread_attr_default, task, NULL );
21583         if( status ) return errno;
21584
21585         /* give thread a chance to complete */
21586         /* it should remain joinable and hence detachable */
21587         sleep( 1 );
21588
21589         status = pthread_detach( &t );
21590         if( status ) return errno;
21591 #endif
21592
21593 #ifdef HAVE_LINUX_THREADS
21594         pthread_kill_other_threads_np();
21595 #endif
21596
21597         return 0;
21598
21599 }
21600
21601 _ACEOF
21602 rm -f conftest$ac_exeext
21603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21604   (eval $ac_link) 2>&5
21605   ac_status=$?
21606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609   (eval $ac_try) 2>&5
21610   ac_status=$?
21611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612   (exit $ac_status); }; }; then
21613   ol_cv_pthread_thread=yes
21614 else
21615   echo "$as_me: program exited with status $ac_status" >&5
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21618
21619 ( exit $ac_status )
21620 ol_cv_pthread_thread=no
21621 fi
21622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21623 fi
21624
21625                 # restore the LIBS
21626                 LIBS="$ol_LIBS"
21627
21628 fi
21629 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21630 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21631
21632         if test $ol_cv_pthread_thread = yes ; then
21633                 ol_link_pthreads="-thread"
21634                 ol_link_threads=posix
21635         fi
21636 fi
21637
21638
21639                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21640 if test "$ol_link_threads" = no ; then
21641         # try -lpthread -lmach -lexc -lc_r
21642         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21643 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21644 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21645   echo $ECHO_N "(cached) $ECHO_C" >&6
21646 else
21647
21648                 # save the flags
21649                 ol_LIBS="$LIBS"
21650                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21651
21652                 if test "$cross_compiling" = yes; then
21653   cat >conftest.$ac_ext <<_ACEOF
21654 /* confdefs.h.  */
21655 _ACEOF
21656 cat confdefs.h >>conftest.$ac_ext
21657 cat >>conftest.$ac_ext <<_ACEOF
21658 /* end confdefs.h.  */
21659
21660 /* pthread test headers */
21661 #include <pthread.h>
21662 #if HAVE_PTHREADS < 7
21663 #include <errno.h>
21664 #endif
21665 #ifndef NULL
21666 #define NULL (void*)0
21667 #endif
21668
21669 static void *task(p)
21670         void *p;
21671 {
21672         return (void *) (p == NULL);
21673 }
21674
21675 int
21676 main ()
21677 {
21678
21679         /* pthread test function */
21680 #ifndef PTHREAD_CREATE_DETACHED
21681 #define PTHREAD_CREATE_DETACHED 1
21682 #endif
21683         pthread_t t;
21684         int status;
21685         int detach = PTHREAD_CREATE_DETACHED;
21686
21687 #if HAVE_PTHREADS > 4
21688         /* Final pthreads */
21689         pthread_attr_t attr;
21690
21691         status = pthread_attr_init(&attr);
21692         if( status ) return status;
21693
21694 #if HAVE_PTHREADS < 7
21695         status = pthread_attr_setdetachstate(&attr, &detach);
21696         if( status < 0 ) status = errno;
21697 #else
21698         status = pthread_attr_setdetachstate(&attr, detach);
21699 #endif
21700         if( status ) return status;
21701         status = pthread_create( &t, &attr, task, NULL );
21702 #if HAVE_PTHREADS < 7
21703         if( status < 0 ) status = errno;
21704 #endif
21705         if( status ) return status;
21706 #else
21707         /* Draft 4 pthreads */
21708         status = pthread_create( &t, pthread_attr_default, task, NULL );
21709         if( status ) return errno;
21710
21711         /* give thread a chance to complete */
21712         /* it should remain joinable and hence detachable */
21713         sleep( 1 );
21714
21715         status = pthread_detach( &t );
21716         if( status ) return errno;
21717 #endif
21718
21719 #ifdef HAVE_LINUX_THREADS
21720         pthread_kill_other_threads_np();
21721 #endif
21722
21723         return 0;
21724
21725   ;
21726   return 0;
21727 }
21728 _ACEOF
21729 rm -f conftest.$ac_objext conftest$ac_exeext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21731   (eval $ac_link) 2>conftest.er1
21732   ac_status=$?
21733   grep -v '^ *+' conftest.er1 >conftest.err
21734   rm -f conftest.er1
21735   cat conftest.err >&5
21736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737   (exit $ac_status); } &&
21738          { ac_try='test -z "$ac_c_werror_flag"
21739                          || test ! -s conftest.err'
21740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741   (eval $ac_try) 2>&5
21742   ac_status=$?
21743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744   (exit $ac_status); }; } &&
21745          { ac_try='test -s conftest$ac_exeext'
21746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747   (eval $ac_try) 2>&5
21748   ac_status=$?
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); }; }; then
21751   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21752 else
21753   echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21757 fi
21758 rm -f conftest.err conftest.$ac_objext \
21759       conftest$ac_exeext conftest.$ac_ext
21760 else
21761   cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h.  */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h.  */
21767
21768 /* pthread test headers */
21769 #include <pthread.h>
21770 #if HAVE_PTHREADS < 7
21771 #include <errno.h>
21772 #endif
21773 #ifndef NULL
21774 #define NULL (void*)0
21775 #endif
21776
21777 static void *task(p)
21778         void *p;
21779 {
21780         return (void *) (p == NULL);
21781 }
21782
21783
21784 int main(argc, argv)
21785         int argc;
21786         char **argv;
21787 {
21788
21789         /* pthread test function */
21790 #ifndef PTHREAD_CREATE_DETACHED
21791 #define PTHREAD_CREATE_DETACHED 1
21792 #endif
21793         pthread_t t;
21794         int status;
21795         int detach = PTHREAD_CREATE_DETACHED;
21796
21797 #if HAVE_PTHREADS > 4
21798         /* Final pthreads */
21799         pthread_attr_t attr;
21800
21801         status = pthread_attr_init(&attr);
21802         if( status ) return status;
21803
21804 #if HAVE_PTHREADS < 7
21805         status = pthread_attr_setdetachstate(&attr, &detach);
21806         if( status < 0 ) status = errno;
21807 #else
21808         status = pthread_attr_setdetachstate(&attr, detach);
21809 #endif
21810         if( status ) return status;
21811         status = pthread_create( &t, &attr, task, NULL );
21812 #if HAVE_PTHREADS < 7
21813         if( status < 0 ) status = errno;
21814 #endif
21815         if( status ) return status;
21816 #else
21817         /* Draft 4 pthreads */
21818         status = pthread_create( &t, pthread_attr_default, task, NULL );
21819         if( status ) return errno;
21820
21821         /* give thread a chance to complete */
21822         /* it should remain joinable and hence detachable */
21823         sleep( 1 );
21824
21825         status = pthread_detach( &t );
21826         if( status ) return errno;
21827 #endif
21828
21829 #ifdef HAVE_LINUX_THREADS
21830         pthread_kill_other_threads_np();
21831 #endif
21832
21833         return 0;
21834
21835 }
21836
21837 _ACEOF
21838 rm -f conftest$ac_exeext
21839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21840   (eval $ac_link) 2>&5
21841   ac_status=$?
21842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845   (eval $ac_try) 2>&5
21846   ac_status=$?
21847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848   (exit $ac_status); }; }; then
21849   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21850 else
21851   echo "$as_me: program exited with status $ac_status" >&5
21852 echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21854
21855 ( exit $ac_status )
21856 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21857 fi
21858 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21859 fi
21860
21861                 # restore the LIBS
21862                 LIBS="$ol_LIBS"
21863
21864 fi
21865 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21866 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21867
21868         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21869                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21870                 ol_link_threads=posix
21871         fi
21872 fi
21873
21874                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21875 if test "$ol_link_threads" = no ; then
21876         # try -lpthread -lmach -lexc
21877         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21878 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21879 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21880   echo $ECHO_N "(cached) $ECHO_C" >&6
21881 else
21882
21883                 # save the flags
21884                 ol_LIBS="$LIBS"
21885                 LIBS="-lpthread -lmach -lexc $LIBS"
21886
21887                 if test "$cross_compiling" = yes; then
21888   cat >conftest.$ac_ext <<_ACEOF
21889 /* confdefs.h.  */
21890 _ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h.  */
21894
21895 /* pthread test headers */
21896 #include <pthread.h>
21897 #if HAVE_PTHREADS < 7
21898 #include <errno.h>
21899 #endif
21900 #ifndef NULL
21901 #define NULL (void*)0
21902 #endif
21903
21904 static void *task(p)
21905         void *p;
21906 {
21907         return (void *) (p == NULL);
21908 }
21909
21910 int
21911 main ()
21912 {
21913
21914         /* pthread test function */
21915 #ifndef PTHREAD_CREATE_DETACHED
21916 #define PTHREAD_CREATE_DETACHED 1
21917 #endif
21918         pthread_t t;
21919         int status;
21920         int detach = PTHREAD_CREATE_DETACHED;
21921
21922 #if HAVE_PTHREADS > 4
21923         /* Final pthreads */
21924         pthread_attr_t attr;
21925
21926         status = pthread_attr_init(&attr);
21927         if( status ) return status;
21928
21929 #if HAVE_PTHREADS < 7
21930         status = pthread_attr_setdetachstate(&attr, &detach);
21931         if( status < 0 ) status = errno;
21932 #else
21933         status = pthread_attr_setdetachstate(&attr, detach);
21934 #endif
21935         if( status ) return status;
21936         status = pthread_create( &t, &attr, task, NULL );
21937 #if HAVE_PTHREADS < 7
21938         if( status < 0 ) status = errno;
21939 #endif
21940         if( status ) return status;
21941 #else
21942         /* Draft 4 pthreads */
21943         status = pthread_create( &t, pthread_attr_default, task, NULL );
21944         if( status ) return errno;
21945
21946         /* give thread a chance to complete */
21947         /* it should remain joinable and hence detachable */
21948         sleep( 1 );
21949
21950         status = pthread_detach( &t );
21951         if( status ) return errno;
21952 #endif
21953
21954 #ifdef HAVE_LINUX_THREADS
21955         pthread_kill_other_threads_np();
21956 #endif
21957
21958         return 0;
21959
21960   ;
21961   return 0;
21962 }
21963 _ACEOF
21964 rm -f conftest.$ac_objext conftest$ac_exeext
21965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21966   (eval $ac_link) 2>conftest.er1
21967   ac_status=$?
21968   grep -v '^ *+' conftest.er1 >conftest.err
21969   rm -f conftest.er1
21970   cat conftest.err >&5
21971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972   (exit $ac_status); } &&
21973          { ac_try='test -z "$ac_c_werror_flag"
21974                          || test ! -s conftest.err'
21975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976   (eval $ac_try) 2>&5
21977   ac_status=$?
21978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); }; } &&
21980          { ac_try='test -s conftest$ac_exeext'
21981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982   (eval $ac_try) 2>&5
21983   ac_status=$?
21984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985   (exit $ac_status); }; }; then
21986   ol_cv_pthread_lpthread_lmach_lexc=yes
21987 else
21988   echo "$as_me: failed program was:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21990
21991 ol_cv_pthread_lpthread_lmach_lexc=no
21992 fi
21993 rm -f conftest.err conftest.$ac_objext \
21994       conftest$ac_exeext conftest.$ac_ext
21995 else
21996   cat >conftest.$ac_ext <<_ACEOF
21997 /* confdefs.h.  */
21998 _ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h.  */
22002
22003 /* pthread test headers */
22004 #include <pthread.h>
22005 #if HAVE_PTHREADS < 7
22006 #include <errno.h>
22007 #endif
22008 #ifndef NULL
22009 #define NULL (void*)0
22010 #endif
22011
22012 static void *task(p)
22013         void *p;
22014 {
22015         return (void *) (p == NULL);
22016 }
22017
22018
22019 int main(argc, argv)
22020         int argc;
22021         char **argv;
22022 {
22023
22024         /* pthread test function */
22025 #ifndef PTHREAD_CREATE_DETACHED
22026 #define PTHREAD_CREATE_DETACHED 1
22027 #endif
22028         pthread_t t;
22029         int status;
22030         int detach = PTHREAD_CREATE_DETACHED;
22031
22032 #if HAVE_PTHREADS > 4
22033         /* Final pthreads */
22034         pthread_attr_t attr;
22035
22036         status = pthread_attr_init(&attr);
22037         if( status ) return status;
22038
22039 #if HAVE_PTHREADS < 7
22040         status = pthread_attr_setdetachstate(&attr, &detach);
22041         if( status < 0 ) status = errno;
22042 #else
22043         status = pthread_attr_setdetachstate(&attr, detach);
22044 #endif
22045         if( status ) return status;
22046         status = pthread_create( &t, &attr, task, NULL );
22047 #if HAVE_PTHREADS < 7
22048         if( status < 0 ) status = errno;
22049 #endif
22050         if( status ) return status;
22051 #else
22052         /* Draft 4 pthreads */
22053         status = pthread_create( &t, pthread_attr_default, task, NULL );
22054         if( status ) return errno;
22055
22056         /* give thread a chance to complete */
22057         /* it should remain joinable and hence detachable */
22058         sleep( 1 );
22059
22060         status = pthread_detach( &t );
22061         if( status ) return errno;
22062 #endif
22063
22064 #ifdef HAVE_LINUX_THREADS
22065         pthread_kill_other_threads_np();
22066 #endif
22067
22068         return 0;
22069
22070 }
22071
22072 _ACEOF
22073 rm -f conftest$ac_exeext
22074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22075   (eval $ac_link) 2>&5
22076   ac_status=$?
22077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080   (eval $ac_try) 2>&5
22081   ac_status=$?
22082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083   (exit $ac_status); }; }; then
22084   ol_cv_pthread_lpthread_lmach_lexc=yes
22085 else
22086   echo "$as_me: program exited with status $ac_status" >&5
22087 echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22089
22090 ( exit $ac_status )
22091 ol_cv_pthread_lpthread_lmach_lexc=no
22092 fi
22093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22094 fi
22095
22096                 # restore the LIBS
22097                 LIBS="$ol_LIBS"
22098
22099 fi
22100 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22101 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22102
22103         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22104                 ol_link_pthreads="-lpthread -lmach -lexc"
22105                 ol_link_threads=posix
22106         fi
22107 fi
22108
22109
22110                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22111 if test "$ol_link_threads" = no ; then
22112         # try -lpthread -Wl,-woff,85
22113         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22114 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22115 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22116   echo $ECHO_N "(cached) $ECHO_C" >&6
22117 else
22118
22119                 # save the flags
22120                 ol_LIBS="$LIBS"
22121                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22122
22123                 if test "$cross_compiling" = yes; then
22124   cat >conftest.$ac_ext <<_ACEOF
22125 /* confdefs.h.  */
22126 _ACEOF
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h.  */
22130
22131 /* pthread test headers */
22132 #include <pthread.h>
22133 #if HAVE_PTHREADS < 7
22134 #include <errno.h>
22135 #endif
22136 #ifndef NULL
22137 #define NULL (void*)0
22138 #endif
22139
22140 static void *task(p)
22141         void *p;
22142 {
22143         return (void *) (p == NULL);
22144 }
22145
22146 int
22147 main ()
22148 {
22149
22150         /* pthread test function */
22151 #ifndef PTHREAD_CREATE_DETACHED
22152 #define PTHREAD_CREATE_DETACHED 1
22153 #endif
22154         pthread_t t;
22155         int status;
22156         int detach = PTHREAD_CREATE_DETACHED;
22157
22158 #if HAVE_PTHREADS > 4
22159         /* Final pthreads */
22160         pthread_attr_t attr;
22161
22162         status = pthread_attr_init(&attr);
22163         if( status ) return status;
22164
22165 #if HAVE_PTHREADS < 7
22166         status = pthread_attr_setdetachstate(&attr, &detach);
22167         if( status < 0 ) status = errno;
22168 #else
22169         status = pthread_attr_setdetachstate(&attr, detach);
22170 #endif
22171         if( status ) return status;
22172         status = pthread_create( &t, &attr, task, NULL );
22173 #if HAVE_PTHREADS < 7
22174         if( status < 0 ) status = errno;
22175 #endif
22176         if( status ) return status;
22177 #else
22178         /* Draft 4 pthreads */
22179         status = pthread_create( &t, pthread_attr_default, task, NULL );
22180         if( status ) return errno;
22181
22182         /* give thread a chance to complete */
22183         /* it should remain joinable and hence detachable */
22184         sleep( 1 );
22185
22186         status = pthread_detach( &t );
22187         if( status ) return errno;
22188 #endif
22189
22190 #ifdef HAVE_LINUX_THREADS
22191         pthread_kill_other_threads_np();
22192 #endif
22193
22194         return 0;
22195
22196   ;
22197   return 0;
22198 }
22199 _ACEOF
22200 rm -f conftest.$ac_objext conftest$ac_exeext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22202   (eval $ac_link) 2>conftest.er1
22203   ac_status=$?
22204   grep -v '^ *+' conftest.er1 >conftest.err
22205   rm -f conftest.er1
22206   cat conftest.err >&5
22207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208   (exit $ac_status); } &&
22209          { ac_try='test -z "$ac_c_werror_flag"
22210                          || test ! -s conftest.err'
22211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212   (eval $ac_try) 2>&5
22213   ac_status=$?
22214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215   (exit $ac_status); }; } &&
22216          { ac_try='test -s conftest$ac_exeext'
22217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218   (eval $ac_try) 2>&5
22219   ac_status=$?
22220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); }; }; then
22222   ol_cv_pthread_lib_lpthread_woff=yes
22223 else
22224   echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22226
22227 ol_cv_pthread_lib_lpthread_woff=no
22228 fi
22229 rm -f conftest.err conftest.$ac_objext \
22230       conftest$ac_exeext conftest.$ac_ext
22231 else
22232   cat >conftest.$ac_ext <<_ACEOF
22233 /* confdefs.h.  */
22234 _ACEOF
22235 cat confdefs.h >>conftest.$ac_ext
22236 cat >>conftest.$ac_ext <<_ACEOF
22237 /* end confdefs.h.  */
22238
22239 /* pthread test headers */
22240 #include <pthread.h>
22241 #if HAVE_PTHREADS < 7
22242 #include <errno.h>
22243 #endif
22244 #ifndef NULL
22245 #define NULL (void*)0
22246 #endif
22247
22248 static void *task(p)
22249         void *p;
22250 {
22251         return (void *) (p == NULL);
22252 }
22253
22254
22255 int main(argc, argv)
22256         int argc;
22257         char **argv;
22258 {
22259
22260         /* pthread test function */
22261 #ifndef PTHREAD_CREATE_DETACHED
22262 #define PTHREAD_CREATE_DETACHED 1
22263 #endif
22264         pthread_t t;
22265         int status;
22266         int detach = PTHREAD_CREATE_DETACHED;
22267
22268 #if HAVE_PTHREADS > 4
22269         /* Final pthreads */
22270         pthread_attr_t attr;
22271
22272         status = pthread_attr_init(&attr);
22273         if( status ) return status;
22274
22275 #if HAVE_PTHREADS < 7
22276         status = pthread_attr_setdetachstate(&attr, &detach);
22277         if( status < 0 ) status = errno;
22278 #else
22279         status = pthread_attr_setdetachstate(&attr, detach);
22280 #endif
22281         if( status ) return status;
22282         status = pthread_create( &t, &attr, task, NULL );
22283 #if HAVE_PTHREADS < 7
22284         if( status < 0 ) status = errno;
22285 #endif
22286         if( status ) return status;
22287 #else
22288         /* Draft 4 pthreads */
22289         status = pthread_create( &t, pthread_attr_default, task, NULL );
22290         if( status ) return errno;
22291
22292         /* give thread a chance to complete */
22293         /* it should remain joinable and hence detachable */
22294         sleep( 1 );
22295
22296         status = pthread_detach( &t );
22297         if( status ) return errno;
22298 #endif
22299
22300 #ifdef HAVE_LINUX_THREADS
22301         pthread_kill_other_threads_np();
22302 #endif
22303
22304         return 0;
22305
22306 }
22307
22308 _ACEOF
22309 rm -f conftest$ac_exeext
22310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22311   (eval $ac_link) 2>&5
22312   ac_status=$?
22313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22316   (eval $ac_try) 2>&5
22317   ac_status=$?
22318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319   (exit $ac_status); }; }; then
22320   ol_cv_pthread_lib_lpthread_woff=yes
22321 else
22322   echo "$as_me: program exited with status $ac_status" >&5
22323 echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22325
22326 ( exit $ac_status )
22327 ol_cv_pthread_lib_lpthread_woff=no
22328 fi
22329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22330 fi
22331
22332                 # restore the LIBS
22333                 LIBS="$ol_LIBS"
22334
22335 fi
22336 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22337 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22338
22339         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22340                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22341                 ol_link_threads=posix
22342         fi
22343 fi
22344
22345
22346                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22347 if test "$ol_link_threads" = no ; then
22348         # try -lpthread
22349         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22350 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22351 if test "${ol_cv_pthread_lpthread+set}" = set; then
22352   echo $ECHO_N "(cached) $ECHO_C" >&6
22353 else
22354
22355                 # save the flags
22356                 ol_LIBS="$LIBS"
22357                 LIBS="-lpthread $LIBS"
22358
22359                 if test "$cross_compiling" = yes; then
22360   cat >conftest.$ac_ext <<_ACEOF
22361 /* confdefs.h.  */
22362 _ACEOF
22363 cat confdefs.h >>conftest.$ac_ext
22364 cat >>conftest.$ac_ext <<_ACEOF
22365 /* end confdefs.h.  */
22366
22367 /* pthread test headers */
22368 #include <pthread.h>
22369 #if HAVE_PTHREADS < 7
22370 #include <errno.h>
22371 #endif
22372 #ifndef NULL
22373 #define NULL (void*)0
22374 #endif
22375
22376 static void *task(p)
22377         void *p;
22378 {
22379         return (void *) (p == NULL);
22380 }
22381
22382 int
22383 main ()
22384 {
22385
22386         /* pthread test function */
22387 #ifndef PTHREAD_CREATE_DETACHED
22388 #define PTHREAD_CREATE_DETACHED 1
22389 #endif
22390         pthread_t t;
22391         int status;
22392         int detach = PTHREAD_CREATE_DETACHED;
22393
22394 #if HAVE_PTHREADS > 4
22395         /* Final pthreads */
22396         pthread_attr_t attr;
22397
22398         status = pthread_attr_init(&attr);
22399         if( status ) return status;
22400
22401 #if HAVE_PTHREADS < 7
22402         status = pthread_attr_setdetachstate(&attr, &detach);
22403         if( status < 0 ) status = errno;
22404 #else
22405         status = pthread_attr_setdetachstate(&attr, detach);
22406 #endif
22407         if( status ) return status;
22408         status = pthread_create( &t, &attr, task, NULL );
22409 #if HAVE_PTHREADS < 7
22410         if( status < 0 ) status = errno;
22411 #endif
22412         if( status ) return status;
22413 #else
22414         /* Draft 4 pthreads */
22415         status = pthread_create( &t, pthread_attr_default, task, NULL );
22416         if( status ) return errno;
22417
22418         /* give thread a chance to complete */
22419         /* it should remain joinable and hence detachable */
22420         sleep( 1 );
22421
22422         status = pthread_detach( &t );
22423         if( status ) return errno;
22424 #endif
22425
22426 #ifdef HAVE_LINUX_THREADS
22427         pthread_kill_other_threads_np();
22428 #endif
22429
22430         return 0;
22431
22432   ;
22433   return 0;
22434 }
22435 _ACEOF
22436 rm -f conftest.$ac_objext conftest$ac_exeext
22437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22438   (eval $ac_link) 2>conftest.er1
22439   ac_status=$?
22440   grep -v '^ *+' conftest.er1 >conftest.err
22441   rm -f conftest.er1
22442   cat conftest.err >&5
22443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444   (exit $ac_status); } &&
22445          { ac_try='test -z "$ac_c_werror_flag"
22446                          || test ! -s conftest.err'
22447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22448   (eval $ac_try) 2>&5
22449   ac_status=$?
22450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451   (exit $ac_status); }; } &&
22452          { ac_try='test -s conftest$ac_exeext'
22453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454   (eval $ac_try) 2>&5
22455   ac_status=$?
22456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457   (exit $ac_status); }; }; then
22458   ol_cv_pthread_lpthread=yes
22459 else
22460   echo "$as_me: failed program was:" >&5
22461 sed 's/^/| /' conftest.$ac_ext >&5
22462
22463 ol_cv_pthread_lpthread=no
22464 fi
22465 rm -f conftest.err conftest.$ac_objext \
22466       conftest$ac_exeext conftest.$ac_ext
22467 else
22468   cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h.  */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h.  */
22474
22475 /* pthread test headers */
22476 #include <pthread.h>
22477 #if HAVE_PTHREADS < 7
22478 #include <errno.h>
22479 #endif
22480 #ifndef NULL
22481 #define NULL (void*)0
22482 #endif
22483
22484 static void *task(p)
22485         void *p;
22486 {
22487         return (void *) (p == NULL);
22488 }
22489
22490
22491 int main(argc, argv)
22492         int argc;
22493         char **argv;
22494 {
22495
22496         /* pthread test function */
22497 #ifndef PTHREAD_CREATE_DETACHED
22498 #define PTHREAD_CREATE_DETACHED 1
22499 #endif
22500         pthread_t t;
22501         int status;
22502         int detach = PTHREAD_CREATE_DETACHED;
22503
22504 #if HAVE_PTHREADS > 4
22505         /* Final pthreads */
22506         pthread_attr_t attr;
22507
22508         status = pthread_attr_init(&attr);
22509         if( status ) return status;
22510
22511 #if HAVE_PTHREADS < 7
22512         status = pthread_attr_setdetachstate(&attr, &detach);
22513         if( status < 0 ) status = errno;
22514 #else
22515         status = pthread_attr_setdetachstate(&attr, detach);
22516 #endif
22517         if( status ) return status;
22518         status = pthread_create( &t, &attr, task, NULL );
22519 #if HAVE_PTHREADS < 7
22520         if( status < 0 ) status = errno;
22521 #endif
22522         if( status ) return status;
22523 #else
22524         /* Draft 4 pthreads */
22525         status = pthread_create( &t, pthread_attr_default, task, NULL );
22526         if( status ) return errno;
22527
22528         /* give thread a chance to complete */
22529         /* it should remain joinable and hence detachable */
22530         sleep( 1 );
22531
22532         status = pthread_detach( &t );
22533         if( status ) return errno;
22534 #endif
22535
22536 #ifdef HAVE_LINUX_THREADS
22537         pthread_kill_other_threads_np();
22538 #endif
22539
22540         return 0;
22541
22542 }
22543
22544 _ACEOF
22545 rm -f conftest$ac_exeext
22546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22547   (eval $ac_link) 2>&5
22548   ac_status=$?
22549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552   (eval $ac_try) 2>&5
22553   ac_status=$?
22554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555   (exit $ac_status); }; }; then
22556   ol_cv_pthread_lpthread=yes
22557 else
22558   echo "$as_me: program exited with status $ac_status" >&5
22559 echo "$as_me: failed program was:" >&5
22560 sed 's/^/| /' conftest.$ac_ext >&5
22561
22562 ( exit $ac_status )
22563 ol_cv_pthread_lpthread=no
22564 fi
22565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22566 fi
22567
22568                 # restore the LIBS
22569                 LIBS="$ol_LIBS"
22570
22571 fi
22572 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22573 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22574
22575         if test $ol_cv_pthread_lpthread = yes ; then
22576                 ol_link_pthreads="-lpthread"
22577                 ol_link_threads=posix
22578         fi
22579 fi
22580
22581                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22582 if test "$ol_link_threads" = no ; then
22583         # try -lc_r
22584         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22585 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22586 if test "${ol_cv_pthread_lc_r+set}" = set; then
22587   echo $ECHO_N "(cached) $ECHO_C" >&6
22588 else
22589
22590                 # save the flags
22591                 ol_LIBS="$LIBS"
22592                 LIBS="-lc_r $LIBS"
22593
22594                 if test "$cross_compiling" = yes; then
22595   cat >conftest.$ac_ext <<_ACEOF
22596 /* confdefs.h.  */
22597 _ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h.  */
22601
22602 /* pthread test headers */
22603 #include <pthread.h>
22604 #if HAVE_PTHREADS < 7
22605 #include <errno.h>
22606 #endif
22607 #ifndef NULL
22608 #define NULL (void*)0
22609 #endif
22610
22611 static void *task(p)
22612         void *p;
22613 {
22614         return (void *) (p == NULL);
22615 }
22616
22617 int
22618 main ()
22619 {
22620
22621         /* pthread test function */
22622 #ifndef PTHREAD_CREATE_DETACHED
22623 #define PTHREAD_CREATE_DETACHED 1
22624 #endif
22625         pthread_t t;
22626         int status;
22627         int detach = PTHREAD_CREATE_DETACHED;
22628
22629 #if HAVE_PTHREADS > 4
22630         /* Final pthreads */
22631         pthread_attr_t attr;
22632
22633         status = pthread_attr_init(&attr);
22634         if( status ) return status;
22635
22636 #if HAVE_PTHREADS < 7
22637         status = pthread_attr_setdetachstate(&attr, &detach);
22638         if( status < 0 ) status = errno;
22639 #else
22640         status = pthread_attr_setdetachstate(&attr, detach);
22641 #endif
22642         if( status ) return status;
22643         status = pthread_create( &t, &attr, task, NULL );
22644 #if HAVE_PTHREADS < 7
22645         if( status < 0 ) status = errno;
22646 #endif
22647         if( status ) return status;
22648 #else
22649         /* Draft 4 pthreads */
22650         status = pthread_create( &t, pthread_attr_default, task, NULL );
22651         if( status ) return errno;
22652
22653         /* give thread a chance to complete */
22654         /* it should remain joinable and hence detachable */
22655         sleep( 1 );
22656
22657         status = pthread_detach( &t );
22658         if( status ) return errno;
22659 #endif
22660
22661 #ifdef HAVE_LINUX_THREADS
22662         pthread_kill_other_threads_np();
22663 #endif
22664
22665         return 0;
22666
22667   ;
22668   return 0;
22669 }
22670 _ACEOF
22671 rm -f conftest.$ac_objext conftest$ac_exeext
22672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22673   (eval $ac_link) 2>conftest.er1
22674   ac_status=$?
22675   grep -v '^ *+' conftest.er1 >conftest.err
22676   rm -f conftest.er1
22677   cat conftest.err >&5
22678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679   (exit $ac_status); } &&
22680          { ac_try='test -z "$ac_c_werror_flag"
22681                          || test ! -s conftest.err'
22682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683   (eval $ac_try) 2>&5
22684   ac_status=$?
22685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686   (exit $ac_status); }; } &&
22687          { ac_try='test -s conftest$ac_exeext'
22688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689   (eval $ac_try) 2>&5
22690   ac_status=$?
22691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692   (exit $ac_status); }; }; then
22693   ol_cv_pthread_lc_r=yes
22694 else
22695   echo "$as_me: failed program was:" >&5
22696 sed 's/^/| /' conftest.$ac_ext >&5
22697
22698 ol_cv_pthread_lc_r=no
22699 fi
22700 rm -f conftest.err conftest.$ac_objext \
22701       conftest$ac_exeext conftest.$ac_ext
22702 else
22703   cat >conftest.$ac_ext <<_ACEOF
22704 /* confdefs.h.  */
22705 _ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h.  */
22709
22710 /* pthread test headers */
22711 #include <pthread.h>
22712 #if HAVE_PTHREADS < 7
22713 #include <errno.h>
22714 #endif
22715 #ifndef NULL
22716 #define NULL (void*)0
22717 #endif
22718
22719 static void *task(p)
22720         void *p;
22721 {
22722         return (void *) (p == NULL);
22723 }
22724
22725
22726 int main(argc, argv)
22727         int argc;
22728         char **argv;
22729 {
22730
22731         /* pthread test function */
22732 #ifndef PTHREAD_CREATE_DETACHED
22733 #define PTHREAD_CREATE_DETACHED 1
22734 #endif
22735         pthread_t t;
22736         int status;
22737         int detach = PTHREAD_CREATE_DETACHED;
22738
22739 #if HAVE_PTHREADS > 4
22740         /* Final pthreads */
22741         pthread_attr_t attr;
22742
22743         status = pthread_attr_init(&attr);
22744         if( status ) return status;
22745
22746 #if HAVE_PTHREADS < 7
22747         status = pthread_attr_setdetachstate(&attr, &detach);
22748         if( status < 0 ) status = errno;
22749 #else
22750         status = pthread_attr_setdetachstate(&attr, detach);
22751 #endif
22752         if( status ) return status;
22753         status = pthread_create( &t, &attr, task, NULL );
22754 #if HAVE_PTHREADS < 7
22755         if( status < 0 ) status = errno;
22756 #endif
22757         if( status ) return status;
22758 #else
22759         /* Draft 4 pthreads */
22760         status = pthread_create( &t, pthread_attr_default, task, NULL );
22761         if( status ) return errno;
22762
22763         /* give thread a chance to complete */
22764         /* it should remain joinable and hence detachable */
22765         sleep( 1 );
22766
22767         status = pthread_detach( &t );
22768         if( status ) return errno;
22769 #endif
22770
22771 #ifdef HAVE_LINUX_THREADS
22772         pthread_kill_other_threads_np();
22773 #endif
22774
22775         return 0;
22776
22777 }
22778
22779 _ACEOF
22780 rm -f conftest$ac_exeext
22781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22782   (eval $ac_link) 2>&5
22783   ac_status=$?
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22787   (eval $ac_try) 2>&5
22788   ac_status=$?
22789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790   (exit $ac_status); }; }; then
22791   ol_cv_pthread_lc_r=yes
22792 else
22793   echo "$as_me: program exited with status $ac_status" >&5
22794 echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22796
22797 ( exit $ac_status )
22798 ol_cv_pthread_lc_r=no
22799 fi
22800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22801 fi
22802
22803                 # restore the LIBS
22804                 LIBS="$ol_LIBS"
22805
22806 fi
22807 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22808 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22809
22810         if test $ol_cv_pthread_lc_r = yes ; then
22811                 ol_link_pthreads="-lc_r"
22812                 ol_link_threads=posix
22813         fi
22814 fi
22815
22816
22817                 # Pthread try link: -threads (ol_cv_pthread_threads)
22818 if test "$ol_link_threads" = no ; then
22819         # try -threads
22820         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22821 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22822 if test "${ol_cv_pthread_threads+set}" = set; then
22823   echo $ECHO_N "(cached) $ECHO_C" >&6
22824 else
22825
22826                 # save the flags
22827                 ol_LIBS="$LIBS"
22828                 LIBS="-threads $LIBS"
22829
22830                 if test "$cross_compiling" = yes; then
22831   cat >conftest.$ac_ext <<_ACEOF
22832 /* confdefs.h.  */
22833 _ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h.  */
22837
22838 /* pthread test headers */
22839 #include <pthread.h>
22840 #if HAVE_PTHREADS < 7
22841 #include <errno.h>
22842 #endif
22843 #ifndef NULL
22844 #define NULL (void*)0
22845 #endif
22846
22847 static void *task(p)
22848         void *p;
22849 {
22850         return (void *) (p == NULL);
22851 }
22852
22853 int
22854 main ()
22855 {
22856
22857         /* pthread test function */
22858 #ifndef PTHREAD_CREATE_DETACHED
22859 #define PTHREAD_CREATE_DETACHED 1
22860 #endif
22861         pthread_t t;
22862         int status;
22863         int detach = PTHREAD_CREATE_DETACHED;
22864
22865 #if HAVE_PTHREADS > 4
22866         /* Final pthreads */
22867         pthread_attr_t attr;
22868
22869         status = pthread_attr_init(&attr);
22870         if( status ) return status;
22871
22872 #if HAVE_PTHREADS < 7
22873         status = pthread_attr_setdetachstate(&attr, &detach);
22874         if( status < 0 ) status = errno;
22875 #else
22876         status = pthread_attr_setdetachstate(&attr, detach);
22877 #endif
22878         if( status ) return status;
22879         status = pthread_create( &t, &attr, task, NULL );
22880 #if HAVE_PTHREADS < 7
22881         if( status < 0 ) status = errno;
22882 #endif
22883         if( status ) return status;
22884 #else
22885         /* Draft 4 pthreads */
22886         status = pthread_create( &t, pthread_attr_default, task, NULL );
22887         if( status ) return errno;
22888
22889         /* give thread a chance to complete */
22890         /* it should remain joinable and hence detachable */
22891         sleep( 1 );
22892
22893         status = pthread_detach( &t );
22894         if( status ) return errno;
22895 #endif
22896
22897 #ifdef HAVE_LINUX_THREADS
22898         pthread_kill_other_threads_np();
22899 #endif
22900
22901         return 0;
22902
22903   ;
22904   return 0;
22905 }
22906 _ACEOF
22907 rm -f conftest.$ac_objext conftest$ac_exeext
22908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22909   (eval $ac_link) 2>conftest.er1
22910   ac_status=$?
22911   grep -v '^ *+' conftest.er1 >conftest.err
22912   rm -f conftest.er1
22913   cat conftest.err >&5
22914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915   (exit $ac_status); } &&
22916          { ac_try='test -z "$ac_c_werror_flag"
22917                          || test ! -s conftest.err'
22918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919   (eval $ac_try) 2>&5
22920   ac_status=$?
22921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922   (exit $ac_status); }; } &&
22923          { ac_try='test -s conftest$ac_exeext'
22924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925   (eval $ac_try) 2>&5
22926   ac_status=$?
22927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928   (exit $ac_status); }; }; then
22929   ol_cv_pthread_threads=yes
22930 else
22931   echo "$as_me: failed program was:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22933
22934 ol_cv_pthread_threads=no
22935 fi
22936 rm -f conftest.err conftest.$ac_objext \
22937       conftest$ac_exeext conftest.$ac_ext
22938 else
22939   cat >conftest.$ac_ext <<_ACEOF
22940 /* confdefs.h.  */
22941 _ACEOF
22942 cat confdefs.h >>conftest.$ac_ext
22943 cat >>conftest.$ac_ext <<_ACEOF
22944 /* end confdefs.h.  */
22945
22946 /* pthread test headers */
22947 #include <pthread.h>
22948 #if HAVE_PTHREADS < 7
22949 #include <errno.h>
22950 #endif
22951 #ifndef NULL
22952 #define NULL (void*)0
22953 #endif
22954
22955 static void *task(p)
22956         void *p;
22957 {
22958         return (void *) (p == NULL);
22959 }
22960
22961
22962 int main(argc, argv)
22963         int argc;
22964         char **argv;
22965 {
22966
22967         /* pthread test function */
22968 #ifndef PTHREAD_CREATE_DETACHED
22969 #define PTHREAD_CREATE_DETACHED 1
22970 #endif
22971         pthread_t t;
22972         int status;
22973         int detach = PTHREAD_CREATE_DETACHED;
22974
22975 #if HAVE_PTHREADS > 4
22976         /* Final pthreads */
22977         pthread_attr_t attr;
22978
22979         status = pthread_attr_init(&attr);
22980         if( status ) return status;
22981
22982 #if HAVE_PTHREADS < 7
22983         status = pthread_attr_setdetachstate(&attr, &detach);
22984         if( status < 0 ) status = errno;
22985 #else
22986         status = pthread_attr_setdetachstate(&attr, detach);
22987 #endif
22988         if( status ) return status;
22989         status = pthread_create( &t, &attr, task, NULL );
22990 #if HAVE_PTHREADS < 7
22991         if( status < 0 ) status = errno;
22992 #endif
22993         if( status ) return status;
22994 #else
22995         /* Draft 4 pthreads */
22996         status = pthread_create( &t, pthread_attr_default, task, NULL );
22997         if( status ) return errno;
22998
22999         /* give thread a chance to complete */
23000         /* it should remain joinable and hence detachable */
23001         sleep( 1 );
23002
23003         status = pthread_detach( &t );
23004         if( status ) return errno;
23005 #endif
23006
23007 #ifdef HAVE_LINUX_THREADS
23008         pthread_kill_other_threads_np();
23009 #endif
23010
23011         return 0;
23012
23013 }
23014
23015 _ACEOF
23016 rm -f conftest$ac_exeext
23017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23018   (eval $ac_link) 2>&5
23019   ac_status=$?
23020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23023   (eval $ac_try) 2>&5
23024   ac_status=$?
23025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026   (exit $ac_status); }; }; then
23027   ol_cv_pthread_threads=yes
23028 else
23029   echo "$as_me: program exited with status $ac_status" >&5
23030 echo "$as_me: failed program was:" >&5
23031 sed 's/^/| /' conftest.$ac_ext >&5
23032
23033 ( exit $ac_status )
23034 ol_cv_pthread_threads=no
23035 fi
23036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23037 fi
23038
23039                 # restore the LIBS
23040                 LIBS="$ol_LIBS"
23041
23042 fi
23043 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23044 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23045
23046         if test $ol_cv_pthread_threads = yes ; then
23047                 ol_link_pthreads="-threads"
23048                 ol_link_threads=posix
23049         fi
23050 fi
23051
23052
23053                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23054 if test "$ol_link_threads" = no ; then
23055         # try -lpthreads -lmach -lexc -lc_r
23056         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23057 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23058 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23059   echo $ECHO_N "(cached) $ECHO_C" >&6
23060 else
23061
23062                 # save the flags
23063                 ol_LIBS="$LIBS"
23064                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23065
23066                 if test "$cross_compiling" = yes; then
23067   cat >conftest.$ac_ext <<_ACEOF
23068 /* confdefs.h.  */
23069 _ACEOF
23070 cat confdefs.h >>conftest.$ac_ext
23071 cat >>conftest.$ac_ext <<_ACEOF
23072 /* end confdefs.h.  */
23073
23074 /* pthread test headers */
23075 #include <pthread.h>
23076 #if HAVE_PTHREADS < 7
23077 #include <errno.h>
23078 #endif
23079 #ifndef NULL
23080 #define NULL (void*)0
23081 #endif
23082
23083 static void *task(p)
23084         void *p;
23085 {
23086         return (void *) (p == NULL);
23087 }
23088
23089 int
23090 main ()
23091 {
23092
23093         /* pthread test function */
23094 #ifndef PTHREAD_CREATE_DETACHED
23095 #define PTHREAD_CREATE_DETACHED 1
23096 #endif
23097         pthread_t t;
23098         int status;
23099         int detach = PTHREAD_CREATE_DETACHED;
23100
23101 #if HAVE_PTHREADS > 4
23102         /* Final pthreads */
23103         pthread_attr_t attr;
23104
23105         status = pthread_attr_init(&attr);
23106         if( status ) return status;
23107
23108 #if HAVE_PTHREADS < 7
23109         status = pthread_attr_setdetachstate(&attr, &detach);
23110         if( status < 0 ) status = errno;
23111 #else
23112         status = pthread_attr_setdetachstate(&attr, detach);
23113 #endif
23114         if( status ) return status;
23115         status = pthread_create( &t, &attr, task, NULL );
23116 #if HAVE_PTHREADS < 7
23117         if( status < 0 ) status = errno;
23118 #endif
23119         if( status ) return status;
23120 #else
23121         /* Draft 4 pthreads */
23122         status = pthread_create( &t, pthread_attr_default, task, NULL );
23123         if( status ) return errno;
23124
23125         /* give thread a chance to complete */
23126         /* it should remain joinable and hence detachable */
23127         sleep( 1 );
23128
23129         status = pthread_detach( &t );
23130         if( status ) return errno;
23131 #endif
23132
23133 #ifdef HAVE_LINUX_THREADS
23134         pthread_kill_other_threads_np();
23135 #endif
23136
23137         return 0;
23138
23139   ;
23140   return 0;
23141 }
23142 _ACEOF
23143 rm -f conftest.$ac_objext conftest$ac_exeext
23144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23145   (eval $ac_link) 2>conftest.er1
23146   ac_status=$?
23147   grep -v '^ *+' conftest.er1 >conftest.err
23148   rm -f conftest.er1
23149   cat conftest.err >&5
23150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151   (exit $ac_status); } &&
23152          { ac_try='test -z "$ac_c_werror_flag"
23153                          || test ! -s conftest.err'
23154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155   (eval $ac_try) 2>&5
23156   ac_status=$?
23157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158   (exit $ac_status); }; } &&
23159          { ac_try='test -s conftest$ac_exeext'
23160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161   (eval $ac_try) 2>&5
23162   ac_status=$?
23163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164   (exit $ac_status); }; }; then
23165   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23166 else
23167   echo "$as_me: failed program was:" >&5
23168 sed 's/^/| /' conftest.$ac_ext >&5
23169
23170 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23171 fi
23172 rm -f conftest.err conftest.$ac_objext \
23173       conftest$ac_exeext conftest.$ac_ext
23174 else
23175   cat >conftest.$ac_ext <<_ACEOF
23176 /* confdefs.h.  */
23177 _ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h.  */
23181
23182 /* pthread test headers */
23183 #include <pthread.h>
23184 #if HAVE_PTHREADS < 7
23185 #include <errno.h>
23186 #endif
23187 #ifndef NULL
23188 #define NULL (void*)0
23189 #endif
23190
23191 static void *task(p)
23192         void *p;
23193 {
23194         return (void *) (p == NULL);
23195 }
23196
23197
23198 int main(argc, argv)
23199         int argc;
23200         char **argv;
23201 {
23202
23203         /* pthread test function */
23204 #ifndef PTHREAD_CREATE_DETACHED
23205 #define PTHREAD_CREATE_DETACHED 1
23206 #endif
23207         pthread_t t;
23208         int status;
23209         int detach = PTHREAD_CREATE_DETACHED;
23210
23211 #if HAVE_PTHREADS > 4
23212         /* Final pthreads */
23213         pthread_attr_t attr;
23214
23215         status = pthread_attr_init(&attr);
23216         if( status ) return status;
23217
23218 #if HAVE_PTHREADS < 7
23219         status = pthread_attr_setdetachstate(&attr, &detach);
23220         if( status < 0 ) status = errno;
23221 #else
23222         status = pthread_attr_setdetachstate(&attr, detach);
23223 #endif
23224         if( status ) return status;
23225         status = pthread_create( &t, &attr, task, NULL );
23226 #if HAVE_PTHREADS < 7
23227         if( status < 0 ) status = errno;
23228 #endif
23229         if( status ) return status;
23230 #else
23231         /* Draft 4 pthreads */
23232         status = pthread_create( &t, pthread_attr_default, task, NULL );
23233         if( status ) return errno;
23234
23235         /* give thread a chance to complete */
23236         /* it should remain joinable and hence detachable */
23237         sleep( 1 );
23238
23239         status = pthread_detach( &t );
23240         if( status ) return errno;
23241 #endif
23242
23243 #ifdef HAVE_LINUX_THREADS
23244         pthread_kill_other_threads_np();
23245 #endif
23246
23247         return 0;
23248
23249 }
23250
23251 _ACEOF
23252 rm -f conftest$ac_exeext
23253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23254   (eval $ac_link) 2>&5
23255   ac_status=$?
23256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23259   (eval $ac_try) 2>&5
23260   ac_status=$?
23261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262   (exit $ac_status); }; }; then
23263   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23264 else
23265   echo "$as_me: program exited with status $ac_status" >&5
23266 echo "$as_me: failed program was:" >&5
23267 sed 's/^/| /' conftest.$ac_ext >&5
23268
23269 ( exit $ac_status )
23270 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23271 fi
23272 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23273 fi
23274
23275                 # restore the LIBS
23276                 LIBS="$ol_LIBS"
23277
23278 fi
23279 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23280 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23281
23282         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23283                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23284                 ol_link_threads=posix
23285         fi
23286 fi
23287
23288                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23289 if test "$ol_link_threads" = no ; then
23290         # try -lpthreads -lmach -lexc
23291         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23292 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23293 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23294   echo $ECHO_N "(cached) $ECHO_C" >&6
23295 else
23296
23297                 # save the flags
23298                 ol_LIBS="$LIBS"
23299                 LIBS="-lpthreads -lmach -lexc $LIBS"
23300
23301                 if test "$cross_compiling" = yes; then
23302   cat >conftest.$ac_ext <<_ACEOF
23303 /* confdefs.h.  */
23304 _ACEOF
23305 cat confdefs.h >>conftest.$ac_ext
23306 cat >>conftest.$ac_ext <<_ACEOF
23307 /* end confdefs.h.  */
23308
23309 /* pthread test headers */
23310 #include <pthread.h>
23311 #if HAVE_PTHREADS < 7
23312 #include <errno.h>
23313 #endif
23314 #ifndef NULL
23315 #define NULL (void*)0
23316 #endif
23317
23318 static void *task(p)
23319         void *p;
23320 {
23321         return (void *) (p == NULL);
23322 }
23323
23324 int
23325 main ()
23326 {
23327
23328         /* pthread test function */
23329 #ifndef PTHREAD_CREATE_DETACHED
23330 #define PTHREAD_CREATE_DETACHED 1
23331 #endif
23332         pthread_t t;
23333         int status;
23334         int detach = PTHREAD_CREATE_DETACHED;
23335
23336 #if HAVE_PTHREADS > 4
23337         /* Final pthreads */
23338         pthread_attr_t attr;
23339
23340         status = pthread_attr_init(&attr);
23341         if( status ) return status;
23342
23343 #if HAVE_PTHREADS < 7
23344         status = pthread_attr_setdetachstate(&attr, &detach);
23345         if( status < 0 ) status = errno;
23346 #else
23347         status = pthread_attr_setdetachstate(&attr, detach);
23348 #endif
23349         if( status ) return status;
23350         status = pthread_create( &t, &attr, task, NULL );
23351 #if HAVE_PTHREADS < 7
23352         if( status < 0 ) status = errno;
23353 #endif
23354         if( status ) return status;
23355 #else
23356         /* Draft 4 pthreads */
23357         status = pthread_create( &t, pthread_attr_default, task, NULL );
23358         if( status ) return errno;
23359
23360         /* give thread a chance to complete */
23361         /* it should remain joinable and hence detachable */
23362         sleep( 1 );
23363
23364         status = pthread_detach( &t );
23365         if( status ) return errno;
23366 #endif
23367
23368 #ifdef HAVE_LINUX_THREADS
23369         pthread_kill_other_threads_np();
23370 #endif
23371
23372         return 0;
23373
23374   ;
23375   return 0;
23376 }
23377 _ACEOF
23378 rm -f conftest.$ac_objext conftest$ac_exeext
23379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23380   (eval $ac_link) 2>conftest.er1
23381   ac_status=$?
23382   grep -v '^ *+' conftest.er1 >conftest.err
23383   rm -f conftest.er1
23384   cat conftest.err >&5
23385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386   (exit $ac_status); } &&
23387          { ac_try='test -z "$ac_c_werror_flag"
23388                          || test ! -s conftest.err'
23389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390   (eval $ac_try) 2>&5
23391   ac_status=$?
23392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393   (exit $ac_status); }; } &&
23394          { ac_try='test -s conftest$ac_exeext'
23395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396   (eval $ac_try) 2>&5
23397   ac_status=$?
23398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399   (exit $ac_status); }; }; then
23400   ol_cv_pthread_lpthreads_lmach_lexc=yes
23401 else
23402   echo "$as_me: failed program was:" >&5
23403 sed 's/^/| /' conftest.$ac_ext >&5
23404
23405 ol_cv_pthread_lpthreads_lmach_lexc=no
23406 fi
23407 rm -f conftest.err conftest.$ac_objext \
23408       conftest$ac_exeext conftest.$ac_ext
23409 else
23410   cat >conftest.$ac_ext <<_ACEOF
23411 /* confdefs.h.  */
23412 _ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h.  */
23416
23417 /* pthread test headers */
23418 #include <pthread.h>
23419 #if HAVE_PTHREADS < 7
23420 #include <errno.h>
23421 #endif
23422 #ifndef NULL
23423 #define NULL (void*)0
23424 #endif
23425
23426 static void *task(p)
23427         void *p;
23428 {
23429         return (void *) (p == NULL);
23430 }
23431
23432
23433 int main(argc, argv)
23434         int argc;
23435         char **argv;
23436 {
23437
23438         /* pthread test function */
23439 #ifndef PTHREAD_CREATE_DETACHED
23440 #define PTHREAD_CREATE_DETACHED 1
23441 #endif
23442         pthread_t t;
23443         int status;
23444         int detach = PTHREAD_CREATE_DETACHED;
23445
23446 #if HAVE_PTHREADS > 4
23447         /* Final pthreads */
23448         pthread_attr_t attr;
23449
23450         status = pthread_attr_init(&attr);
23451         if( status ) return status;
23452
23453 #if HAVE_PTHREADS < 7
23454         status = pthread_attr_setdetachstate(&attr, &detach);
23455         if( status < 0 ) status = errno;
23456 #else
23457         status = pthread_attr_setdetachstate(&attr, detach);
23458 #endif
23459         if( status ) return status;
23460         status = pthread_create( &t, &attr, task, NULL );
23461 #if HAVE_PTHREADS < 7
23462         if( status < 0 ) status = errno;
23463 #endif
23464         if( status ) return status;
23465 #else
23466         /* Draft 4 pthreads */
23467         status = pthread_create( &t, pthread_attr_default, task, NULL );
23468         if( status ) return errno;
23469
23470         /* give thread a chance to complete */
23471         /* it should remain joinable and hence detachable */
23472         sleep( 1 );
23473
23474         status = pthread_detach( &t );
23475         if( status ) return errno;
23476 #endif
23477
23478 #ifdef HAVE_LINUX_THREADS
23479         pthread_kill_other_threads_np();
23480 #endif
23481
23482         return 0;
23483
23484 }
23485
23486 _ACEOF
23487 rm -f conftest$ac_exeext
23488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23489   (eval $ac_link) 2>&5
23490   ac_status=$?
23491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494   (eval $ac_try) 2>&5
23495   ac_status=$?
23496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497   (exit $ac_status); }; }; then
23498   ol_cv_pthread_lpthreads_lmach_lexc=yes
23499 else
23500   echo "$as_me: program exited with status $ac_status" >&5
23501 echo "$as_me: failed program was:" >&5
23502 sed 's/^/| /' conftest.$ac_ext >&5
23503
23504 ( exit $ac_status )
23505 ol_cv_pthread_lpthreads_lmach_lexc=no
23506 fi
23507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23508 fi
23509
23510                 # restore the LIBS
23511                 LIBS="$ol_LIBS"
23512
23513 fi
23514 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23515 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23516
23517         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23518                 ol_link_pthreads="-lpthreads -lmach -lexc"
23519                 ol_link_threads=posix
23520         fi
23521 fi
23522
23523                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23524 if test "$ol_link_threads" = no ; then
23525         # try -lpthreads -lexc
23526         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23527 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23528 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23529   echo $ECHO_N "(cached) $ECHO_C" >&6
23530 else
23531
23532                 # save the flags
23533                 ol_LIBS="$LIBS"
23534                 LIBS="-lpthreads -lexc $LIBS"
23535
23536                 if test "$cross_compiling" = yes; then
23537   cat >conftest.$ac_ext <<_ACEOF
23538 /* confdefs.h.  */
23539 _ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h.  */
23543
23544 /* pthread test headers */
23545 #include <pthread.h>
23546 #if HAVE_PTHREADS < 7
23547 #include <errno.h>
23548 #endif
23549 #ifndef NULL
23550 #define NULL (void*)0
23551 #endif
23552
23553 static void *task(p)
23554         void *p;
23555 {
23556         return (void *) (p == NULL);
23557 }
23558
23559 int
23560 main ()
23561 {
23562
23563         /* pthread test function */
23564 #ifndef PTHREAD_CREATE_DETACHED
23565 #define PTHREAD_CREATE_DETACHED 1
23566 #endif
23567         pthread_t t;
23568         int status;
23569         int detach = PTHREAD_CREATE_DETACHED;
23570
23571 #if HAVE_PTHREADS > 4
23572         /* Final pthreads */
23573         pthread_attr_t attr;
23574
23575         status = pthread_attr_init(&attr);
23576         if( status ) return status;
23577
23578 #if HAVE_PTHREADS < 7
23579         status = pthread_attr_setdetachstate(&attr, &detach);
23580         if( status < 0 ) status = errno;
23581 #else
23582         status = pthread_attr_setdetachstate(&attr, detach);
23583 #endif
23584         if( status ) return status;
23585         status = pthread_create( &t, &attr, task, NULL );
23586 #if HAVE_PTHREADS < 7
23587         if( status < 0 ) status = errno;
23588 #endif
23589         if( status ) return status;
23590 #else
23591         /* Draft 4 pthreads */
23592         status = pthread_create( &t, pthread_attr_default, task, NULL );
23593         if( status ) return errno;
23594
23595         /* give thread a chance to complete */
23596         /* it should remain joinable and hence detachable */
23597         sleep( 1 );
23598
23599         status = pthread_detach( &t );
23600         if( status ) return errno;
23601 #endif
23602
23603 #ifdef HAVE_LINUX_THREADS
23604         pthread_kill_other_threads_np();
23605 #endif
23606
23607         return 0;
23608
23609   ;
23610   return 0;
23611 }
23612 _ACEOF
23613 rm -f conftest.$ac_objext conftest$ac_exeext
23614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23615   (eval $ac_link) 2>conftest.er1
23616   ac_status=$?
23617   grep -v '^ *+' conftest.er1 >conftest.err
23618   rm -f conftest.er1
23619   cat conftest.err >&5
23620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621   (exit $ac_status); } &&
23622          { ac_try='test -z "$ac_c_werror_flag"
23623                          || test ! -s conftest.err'
23624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23625   (eval $ac_try) 2>&5
23626   ac_status=$?
23627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628   (exit $ac_status); }; } &&
23629          { ac_try='test -s conftest$ac_exeext'
23630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23631   (eval $ac_try) 2>&5
23632   ac_status=$?
23633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634   (exit $ac_status); }; }; then
23635   ol_cv_pthread_lpthreads_lexc=yes
23636 else
23637   echo "$as_me: failed program was:" >&5
23638 sed 's/^/| /' conftest.$ac_ext >&5
23639
23640 ol_cv_pthread_lpthreads_lexc=no
23641 fi
23642 rm -f conftest.err conftest.$ac_objext \
23643       conftest$ac_exeext conftest.$ac_ext
23644 else
23645   cat >conftest.$ac_ext <<_ACEOF
23646 /* confdefs.h.  */
23647 _ACEOF
23648 cat confdefs.h >>conftest.$ac_ext
23649 cat >>conftest.$ac_ext <<_ACEOF
23650 /* end confdefs.h.  */
23651
23652 /* pthread test headers */
23653 #include <pthread.h>
23654 #if HAVE_PTHREADS < 7
23655 #include <errno.h>
23656 #endif
23657 #ifndef NULL
23658 #define NULL (void*)0
23659 #endif
23660
23661 static void *task(p)
23662         void *p;
23663 {
23664         return (void *) (p == NULL);
23665 }
23666
23667
23668 int main(argc, argv)
23669         int argc;
23670         char **argv;
23671 {
23672
23673         /* pthread test function */
23674 #ifndef PTHREAD_CREATE_DETACHED
23675 #define PTHREAD_CREATE_DETACHED 1
23676 #endif
23677         pthread_t t;
23678         int status;
23679         int detach = PTHREAD_CREATE_DETACHED;
23680
23681 #if HAVE_PTHREADS > 4
23682         /* Final pthreads */
23683         pthread_attr_t attr;
23684
23685         status = pthread_attr_init(&attr);
23686         if( status ) return status;
23687
23688 #if HAVE_PTHREADS < 7
23689         status = pthread_attr_setdetachstate(&attr, &detach);
23690         if( status < 0 ) status = errno;
23691 #else
23692         status = pthread_attr_setdetachstate(&attr, detach);
23693 #endif
23694         if( status ) return status;
23695         status = pthread_create( &t, &attr, task, NULL );
23696 #if HAVE_PTHREADS < 7
23697         if( status < 0 ) status = errno;
23698 #endif
23699         if( status ) return status;
23700 #else
23701         /* Draft 4 pthreads */
23702         status = pthread_create( &t, pthread_attr_default, task, NULL );
23703         if( status ) return errno;
23704
23705         /* give thread a chance to complete */
23706         /* it should remain joinable and hence detachable */
23707         sleep( 1 );
23708
23709         status = pthread_detach( &t );
23710         if( status ) return errno;
23711 #endif
23712
23713 #ifdef HAVE_LINUX_THREADS
23714         pthread_kill_other_threads_np();
23715 #endif
23716
23717         return 0;
23718
23719 }
23720
23721 _ACEOF
23722 rm -f conftest$ac_exeext
23723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23724   (eval $ac_link) 2>&5
23725   ac_status=$?
23726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23729   (eval $ac_try) 2>&5
23730   ac_status=$?
23731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732   (exit $ac_status); }; }; then
23733   ol_cv_pthread_lpthreads_lexc=yes
23734 else
23735   echo "$as_me: program exited with status $ac_status" >&5
23736 echo "$as_me: failed program was:" >&5
23737 sed 's/^/| /' conftest.$ac_ext >&5
23738
23739 ( exit $ac_status )
23740 ol_cv_pthread_lpthreads_lexc=no
23741 fi
23742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23743 fi
23744
23745                 # restore the LIBS
23746                 LIBS="$ol_LIBS"
23747
23748 fi
23749 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23750 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23751
23752         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23753                 ol_link_pthreads="-lpthreads -lexc"
23754                 ol_link_threads=posix
23755         fi
23756 fi
23757
23758
23759                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23760 if test "$ol_link_threads" = no ; then
23761         # try -lpthreads
23762         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23763 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23764 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23765   echo $ECHO_N "(cached) $ECHO_C" >&6
23766 else
23767
23768                 # save the flags
23769                 ol_LIBS="$LIBS"
23770                 LIBS="-lpthreads $LIBS"
23771
23772                 if test "$cross_compiling" = yes; then
23773   cat >conftest.$ac_ext <<_ACEOF
23774 /* confdefs.h.  */
23775 _ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h.  */
23779
23780 /* pthread test headers */
23781 #include <pthread.h>
23782 #if HAVE_PTHREADS < 7
23783 #include <errno.h>
23784 #endif
23785 #ifndef NULL
23786 #define NULL (void*)0
23787 #endif
23788
23789 static void *task(p)
23790         void *p;
23791 {
23792         return (void *) (p == NULL);
23793 }
23794
23795 int
23796 main ()
23797 {
23798
23799         /* pthread test function */
23800 #ifndef PTHREAD_CREATE_DETACHED
23801 #define PTHREAD_CREATE_DETACHED 1
23802 #endif
23803         pthread_t t;
23804         int status;
23805         int detach = PTHREAD_CREATE_DETACHED;
23806
23807 #if HAVE_PTHREADS > 4
23808         /* Final pthreads */
23809         pthread_attr_t attr;
23810
23811         status = pthread_attr_init(&attr);
23812         if( status ) return status;
23813
23814 #if HAVE_PTHREADS < 7
23815         status = pthread_attr_setdetachstate(&attr, &detach);
23816         if( status < 0 ) status = errno;
23817 #else
23818         status = pthread_attr_setdetachstate(&attr, detach);
23819 #endif
23820         if( status ) return status;
23821         status = pthread_create( &t, &attr, task, NULL );
23822 #if HAVE_PTHREADS < 7
23823         if( status < 0 ) status = errno;
23824 #endif
23825         if( status ) return status;
23826 #else
23827         /* Draft 4 pthreads */
23828         status = pthread_create( &t, pthread_attr_default, task, NULL );
23829         if( status ) return errno;
23830
23831         /* give thread a chance to complete */
23832         /* it should remain joinable and hence detachable */
23833         sleep( 1 );
23834
23835         status = pthread_detach( &t );
23836         if( status ) return errno;
23837 #endif
23838
23839 #ifdef HAVE_LINUX_THREADS
23840         pthread_kill_other_threads_np();
23841 #endif
23842
23843         return 0;
23844
23845   ;
23846   return 0;
23847 }
23848 _ACEOF
23849 rm -f conftest.$ac_objext conftest$ac_exeext
23850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23851   (eval $ac_link) 2>conftest.er1
23852   ac_status=$?
23853   grep -v '^ *+' conftest.er1 >conftest.err
23854   rm -f conftest.er1
23855   cat conftest.err >&5
23856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857   (exit $ac_status); } &&
23858          { ac_try='test -z "$ac_c_werror_flag"
23859                          || test ! -s conftest.err'
23860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861   (eval $ac_try) 2>&5
23862   ac_status=$?
23863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864   (exit $ac_status); }; } &&
23865          { ac_try='test -s conftest$ac_exeext'
23866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867   (eval $ac_try) 2>&5
23868   ac_status=$?
23869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870   (exit $ac_status); }; }; then
23871   ol_cv_pthread_lib_lpthreads=yes
23872 else
23873   echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23875
23876 ol_cv_pthread_lib_lpthreads=no
23877 fi
23878 rm -f conftest.err conftest.$ac_objext \
23879       conftest$ac_exeext conftest.$ac_ext
23880 else
23881   cat >conftest.$ac_ext <<_ACEOF
23882 /* confdefs.h.  */
23883 _ACEOF
23884 cat confdefs.h >>conftest.$ac_ext
23885 cat >>conftest.$ac_ext <<_ACEOF
23886 /* end confdefs.h.  */
23887
23888 /* pthread test headers */
23889 #include <pthread.h>
23890 #if HAVE_PTHREADS < 7
23891 #include <errno.h>
23892 #endif
23893 #ifndef NULL
23894 #define NULL (void*)0
23895 #endif
23896
23897 static void *task(p)
23898         void *p;
23899 {
23900         return (void *) (p == NULL);
23901 }
23902
23903
23904 int main(argc, argv)
23905         int argc;
23906         char **argv;
23907 {
23908
23909         /* pthread test function */
23910 #ifndef PTHREAD_CREATE_DETACHED
23911 #define PTHREAD_CREATE_DETACHED 1
23912 #endif
23913         pthread_t t;
23914         int status;
23915         int detach = PTHREAD_CREATE_DETACHED;
23916
23917 #if HAVE_PTHREADS > 4
23918         /* Final pthreads */
23919         pthread_attr_t attr;
23920
23921         status = pthread_attr_init(&attr);
23922         if( status ) return status;
23923
23924 #if HAVE_PTHREADS < 7
23925         status = pthread_attr_setdetachstate(&attr, &detach);
23926         if( status < 0 ) status = errno;
23927 #else
23928         status = pthread_attr_setdetachstate(&attr, detach);
23929 #endif
23930         if( status ) return status;
23931         status = pthread_create( &t, &attr, task, NULL );
23932 #if HAVE_PTHREADS < 7
23933         if( status < 0 ) status = errno;
23934 #endif
23935         if( status ) return status;
23936 #else
23937         /* Draft 4 pthreads */
23938         status = pthread_create( &t, pthread_attr_default, task, NULL );
23939         if( status ) return errno;
23940
23941         /* give thread a chance to complete */
23942         /* it should remain joinable and hence detachable */
23943         sleep( 1 );
23944
23945         status = pthread_detach( &t );
23946         if( status ) return errno;
23947 #endif
23948
23949 #ifdef HAVE_LINUX_THREADS
23950         pthread_kill_other_threads_np();
23951 #endif
23952
23953         return 0;
23954
23955 }
23956
23957 _ACEOF
23958 rm -f conftest$ac_exeext
23959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23960   (eval $ac_link) 2>&5
23961   ac_status=$?
23962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23965   (eval $ac_try) 2>&5
23966   ac_status=$?
23967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968   (exit $ac_status); }; }; then
23969   ol_cv_pthread_lib_lpthreads=yes
23970 else
23971   echo "$as_me: program exited with status $ac_status" >&5
23972 echo "$as_me: failed program was:" >&5
23973 sed 's/^/| /' conftest.$ac_ext >&5
23974
23975 ( exit $ac_status )
23976 ol_cv_pthread_lib_lpthreads=no
23977 fi
23978 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23979 fi
23980
23981                 # restore the LIBS
23982                 LIBS="$ol_LIBS"
23983
23984 fi
23985 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23986 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23987
23988         if test $ol_cv_pthread_lib_lpthreads = yes ; then
23989                 ol_link_pthreads="-lpthreads"
23990                 ol_link_threads=posix
23991         fi
23992 fi
23993
23994
23995                 if test $ol_link_threads != no ; then
23996                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23997
23998                                                 save_CPPFLAGS="$CPPFLAGS"
23999                         save_LIBS="$LIBS"
24000                         LIBS="$LTHREAD_LIBS $LIBS"
24001
24002
24003
24004
24005 for ac_func in sched_yield pthread_yield thr_yield
24006 do
24007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24008 echo "$as_me:$LINENO: checking for $ac_func" >&5
24009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24010 if eval "test \"\${$as_ac_var+set}\" = set"; then
24011   echo $ECHO_N "(cached) $ECHO_C" >&6
24012 else
24013   cat >conftest.$ac_ext <<_ACEOF
24014 /* confdefs.h.  */
24015 _ACEOF
24016 cat confdefs.h >>conftest.$ac_ext
24017 cat >>conftest.$ac_ext <<_ACEOF
24018 /* end confdefs.h.  */
24019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24021 #define $ac_func innocuous_$ac_func
24022
24023 /* System header to define __stub macros and hopefully few prototypes,
24024     which can conflict with char $ac_func (); below.
24025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24026     <limits.h> exists even on freestanding compilers.  */
24027
24028 #ifdef __STDC__
24029 # include <limits.h>
24030 #else
24031 # include <assert.h>
24032 #endif
24033
24034 #undef $ac_func
24035
24036 /* Override any gcc2 internal prototype to avoid an error.  */
24037 #ifdef __cplusplus
24038 extern "C"
24039 {
24040 #endif
24041 /* We use char because int might match the return type of a gcc2
24042    builtin and then its argument prototype would still apply.  */
24043 char $ac_func ();
24044 /* The GNU C library defines this for functions which it implements
24045     to always fail with ENOSYS.  Some functions are actually named
24046     something starting with __ and the normal name is an alias.  */
24047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24048 choke me
24049 #else
24050 char (*f) () = $ac_func;
24051 #endif
24052 #ifdef __cplusplus
24053 }
24054 #endif
24055
24056 int
24057 main ()
24058 {
24059 return f != $ac_func;
24060   ;
24061   return 0;
24062 }
24063 _ACEOF
24064 rm -f conftest.$ac_objext conftest$ac_exeext
24065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24066   (eval $ac_link) 2>conftest.er1
24067   ac_status=$?
24068   grep -v '^ *+' conftest.er1 >conftest.err
24069   rm -f conftest.er1
24070   cat conftest.err >&5
24071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072   (exit $ac_status); } &&
24073          { ac_try='test -z "$ac_c_werror_flag"
24074                          || test ! -s conftest.err'
24075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24076   (eval $ac_try) 2>&5
24077   ac_status=$?
24078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079   (exit $ac_status); }; } &&
24080          { ac_try='test -s conftest$ac_exeext'
24081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24082   (eval $ac_try) 2>&5
24083   ac_status=$?
24084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085   (exit $ac_status); }; }; then
24086   eval "$as_ac_var=yes"
24087 else
24088   echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24090
24091 eval "$as_ac_var=no"
24092 fi
24093 rm -f conftest.err conftest.$ac_objext \
24094       conftest$ac_exeext conftest.$ac_ext
24095 fi
24096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24098 if test `eval echo '${'$as_ac_var'}'` = yes; then
24099   cat >>confdefs.h <<_ACEOF
24100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24101 _ACEOF
24102
24103 fi
24104 done
24105
24106
24107                         if test $ac_cv_func_sched_yield = no &&
24108                            test $ac_cv_func_pthread_yield = no &&
24109                            test $ac_cv_func_thr_yield = no ; then
24110                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24111 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24112 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24113   echo $ECHO_N "(cached) $ECHO_C" >&6
24114 else
24115   ac_check_lib_save_LIBS=$LIBS
24116 LIBS="-lrt  $LIBS"
24117 cat >conftest.$ac_ext <<_ACEOF
24118 /* confdefs.h.  */
24119 _ACEOF
24120 cat confdefs.h >>conftest.$ac_ext
24121 cat >>conftest.$ac_ext <<_ACEOF
24122 /* end confdefs.h.  */
24123
24124 /* Override any gcc2 internal prototype to avoid an error.  */
24125 #ifdef __cplusplus
24126 extern "C"
24127 #endif
24128 /* We use char because int might match the return type of a gcc2
24129    builtin and then its argument prototype would still apply.  */
24130 char sched_yield ();
24131 int
24132 main ()
24133 {
24134 sched_yield ();
24135   ;
24136   return 0;
24137 }
24138 _ACEOF
24139 rm -f conftest.$ac_objext conftest$ac_exeext
24140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24141   (eval $ac_link) 2>conftest.er1
24142   ac_status=$?
24143   grep -v '^ *+' conftest.er1 >conftest.err
24144   rm -f conftest.er1
24145   cat conftest.err >&5
24146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147   (exit $ac_status); } &&
24148          { ac_try='test -z "$ac_c_werror_flag"
24149                          || test ! -s conftest.err'
24150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24151   (eval $ac_try) 2>&5
24152   ac_status=$?
24153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154   (exit $ac_status); }; } &&
24155          { ac_try='test -s conftest$ac_exeext'
24156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24157   (eval $ac_try) 2>&5
24158   ac_status=$?
24159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160   (exit $ac_status); }; }; then
24161   ac_cv_lib_rt_sched_yield=yes
24162 else
24163   echo "$as_me: failed program was:" >&5
24164 sed 's/^/| /' conftest.$ac_ext >&5
24165
24166 ac_cv_lib_rt_sched_yield=no
24167 fi
24168 rm -f conftest.err conftest.$ac_objext \
24169       conftest$ac_exeext conftest.$ac_ext
24170 LIBS=$ac_check_lib_save_LIBS
24171 fi
24172 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24173 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24174 if test $ac_cv_lib_rt_sched_yield = yes; then
24175   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24176
24177 cat >>confdefs.h <<\_ACEOF
24178 #define HAVE_SCHED_YIELD 1
24179 _ACEOF
24180
24181                                         ac_cv_func_sched_yield=yes
24182 else
24183   ac_cv_func_sched_yield=no
24184 fi
24185
24186                         fi
24187                         if test $ac_cv_func_sched_yield = no &&
24188                            test $ac_cv_func_pthread_yield = no &&
24189                            test "$ac_cv_func_thr_yield" = no ; then
24190                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24191 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24192                         fi
24193
24194
24195
24196 for ac_func in pthread_kill pthread_rwlock_destroy
24197 do
24198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24199 echo "$as_me:$LINENO: checking for $ac_func" >&5
24200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24201 if eval "test \"\${$as_ac_var+set}\" = set"; then
24202   echo $ECHO_N "(cached) $ECHO_C" >&6
24203 else
24204   cat >conftest.$ac_ext <<_ACEOF
24205 /* confdefs.h.  */
24206 _ACEOF
24207 cat confdefs.h >>conftest.$ac_ext
24208 cat >>conftest.$ac_ext <<_ACEOF
24209 /* end confdefs.h.  */
24210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24212 #define $ac_func innocuous_$ac_func
24213
24214 /* System header to define __stub macros and hopefully few prototypes,
24215     which can conflict with char $ac_func (); below.
24216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24217     <limits.h> exists even on freestanding compilers.  */
24218
24219 #ifdef __STDC__
24220 # include <limits.h>
24221 #else
24222 # include <assert.h>
24223 #endif
24224
24225 #undef $ac_func
24226
24227 /* Override any gcc2 internal prototype to avoid an error.  */
24228 #ifdef __cplusplus
24229 extern "C"
24230 {
24231 #endif
24232 /* We use char because int might match the return type of a gcc2
24233    builtin and then its argument prototype would still apply.  */
24234 char $ac_func ();
24235 /* The GNU C library defines this for functions which it implements
24236     to always fail with ENOSYS.  Some functions are actually named
24237     something starting with __ and the normal name is an alias.  */
24238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24239 choke me
24240 #else
24241 char (*f) () = $ac_func;
24242 #endif
24243 #ifdef __cplusplus
24244 }
24245 #endif
24246
24247 int
24248 main ()
24249 {
24250 return f != $ac_func;
24251   ;
24252   return 0;
24253 }
24254 _ACEOF
24255 rm -f conftest.$ac_objext conftest$ac_exeext
24256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24257   (eval $ac_link) 2>conftest.er1
24258   ac_status=$?
24259   grep -v '^ *+' conftest.er1 >conftest.err
24260   rm -f conftest.er1
24261   cat conftest.err >&5
24262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263   (exit $ac_status); } &&
24264          { ac_try='test -z "$ac_c_werror_flag"
24265                          || test ! -s conftest.err'
24266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24267   (eval $ac_try) 2>&5
24268   ac_status=$?
24269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270   (exit $ac_status); }; } &&
24271          { ac_try='test -s conftest$ac_exeext'
24272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24273   (eval $ac_try) 2>&5
24274   ac_status=$?
24275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276   (exit $ac_status); }; }; then
24277   eval "$as_ac_var=yes"
24278 else
24279   echo "$as_me: failed program was:" >&5
24280 sed 's/^/| /' conftest.$ac_ext >&5
24281
24282 eval "$as_ac_var=no"
24283 fi
24284 rm -f conftest.err conftest.$ac_objext \
24285       conftest$ac_exeext conftest.$ac_ext
24286 fi
24287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24289 if test `eval echo '${'$as_ac_var'}'` = yes; then
24290   cat >>confdefs.h <<_ACEOF
24291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24292 _ACEOF
24293
24294 fi
24295 done
24296
24297
24298                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24299 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24300 if test "${ol_cv_func_pthread_detach+set}" = set; then
24301   echo $ECHO_N "(cached) $ECHO_C" >&6
24302 else
24303
24304                                                                 cat >conftest.$ac_ext <<_ACEOF
24305 /* confdefs.h.  */
24306 _ACEOF
24307 cat confdefs.h >>conftest.$ac_ext
24308 cat >>conftest.$ac_ext <<_ACEOF
24309 /* end confdefs.h.  */
24310
24311 #include <pthread.h>
24312 #ifndef NULL
24313 #define NULL (void*)0
24314 #endif
24315
24316 int
24317 main ()
24318 {
24319 pthread_detach(NULL);
24320   ;
24321   return 0;
24322 }
24323 _ACEOF
24324 rm -f conftest.$ac_objext conftest$ac_exeext
24325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24326   (eval $ac_link) 2>conftest.er1
24327   ac_status=$?
24328   grep -v '^ *+' conftest.er1 >conftest.err
24329   rm -f conftest.er1
24330   cat conftest.err >&5
24331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332   (exit $ac_status); } &&
24333          { ac_try='test -z "$ac_c_werror_flag"
24334                          || test ! -s conftest.err'
24335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24336   (eval $ac_try) 2>&5
24337   ac_status=$?
24338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339   (exit $ac_status); }; } &&
24340          { ac_try='test -s conftest$ac_exeext'
24341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24342   (eval $ac_try) 2>&5
24343   ac_status=$?
24344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345   (exit $ac_status); }; }; then
24346   ol_cv_func_pthread_detach=yes
24347 else
24348   echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.$ac_ext >&5
24350
24351 ol_cv_func_pthread_detach=no
24352 fi
24353 rm -f conftest.err conftest.$ac_objext \
24354       conftest$ac_exeext conftest.$ac_ext
24355
24356 fi
24357 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24358 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24359
24360                         if test $ol_cv_func_pthread_detach = no ; then
24361                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24362 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24363    { (exit 1); exit 1; }; }
24364                         fi
24365
24366
24367 cat >>confdefs.h <<\_ACEOF
24368 #define HAVE_PTHREAD_DETACH 1
24369 _ACEOF
24370
24371
24372
24373
24374
24375
24376 for ac_func in \
24377                                 pthread_setconcurrency \
24378                                 pthread_getconcurrency \
24379                                 thr_setconcurrency \
24380                                 thr_getconcurrency \
24381
24382 do
24383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24384 echo "$as_me:$LINENO: checking for $ac_func" >&5
24385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24386 if eval "test \"\${$as_ac_var+set}\" = set"; then
24387   echo $ECHO_N "(cached) $ECHO_C" >&6
24388 else
24389   cat >conftest.$ac_ext <<_ACEOF
24390 /* confdefs.h.  */
24391 _ACEOF
24392 cat confdefs.h >>conftest.$ac_ext
24393 cat >>conftest.$ac_ext <<_ACEOF
24394 /* end confdefs.h.  */
24395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24397 #define $ac_func innocuous_$ac_func
24398
24399 /* System header to define __stub macros and hopefully few prototypes,
24400     which can conflict with char $ac_func (); below.
24401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24402     <limits.h> exists even on freestanding compilers.  */
24403
24404 #ifdef __STDC__
24405 # include <limits.h>
24406 #else
24407 # include <assert.h>
24408 #endif
24409
24410 #undef $ac_func
24411
24412 /* Override any gcc2 internal prototype to avoid an error.  */
24413 #ifdef __cplusplus
24414 extern "C"
24415 {
24416 #endif
24417 /* We use char because int might match the return type of a gcc2
24418    builtin and then its argument prototype would still apply.  */
24419 char $ac_func ();
24420 /* The GNU C library defines this for functions which it implements
24421     to always fail with ENOSYS.  Some functions are actually named
24422     something starting with __ and the normal name is an alias.  */
24423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24424 choke me
24425 #else
24426 char (*f) () = $ac_func;
24427 #endif
24428 #ifdef __cplusplus
24429 }
24430 #endif
24431
24432 int
24433 main ()
24434 {
24435 return f != $ac_func;
24436   ;
24437   return 0;
24438 }
24439 _ACEOF
24440 rm -f conftest.$ac_objext conftest$ac_exeext
24441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24442   (eval $ac_link) 2>conftest.er1
24443   ac_status=$?
24444   grep -v '^ *+' conftest.er1 >conftest.err
24445   rm -f conftest.er1
24446   cat conftest.err >&5
24447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448   (exit $ac_status); } &&
24449          { ac_try='test -z "$ac_c_werror_flag"
24450                          || test ! -s conftest.err'
24451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24452   (eval $ac_try) 2>&5
24453   ac_status=$?
24454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455   (exit $ac_status); }; } &&
24456          { ac_try='test -s conftest$ac_exeext'
24457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24458   (eval $ac_try) 2>&5
24459   ac_status=$?
24460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461   (exit $ac_status); }; }; then
24462   eval "$as_ac_var=yes"
24463 else
24464   echo "$as_me: failed program was:" >&5
24465 sed 's/^/| /' conftest.$ac_ext >&5
24466
24467 eval "$as_ac_var=no"
24468 fi
24469 rm -f conftest.err conftest.$ac_objext \
24470       conftest$ac_exeext conftest.$ac_ext
24471 fi
24472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24474 if test `eval echo '${'$as_ac_var'}'` = yes; then
24475   cat >>confdefs.h <<_ACEOF
24476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24477 _ACEOF
24478
24479 fi
24480 done
24481
24482
24483
24484
24485 for ac_func in pthread_kill_other_threads_np
24486 do
24487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24488 echo "$as_me:$LINENO: checking for $ac_func" >&5
24489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24490 if eval "test \"\${$as_ac_var+set}\" = set"; then
24491   echo $ECHO_N "(cached) $ECHO_C" >&6
24492 else
24493   cat >conftest.$ac_ext <<_ACEOF
24494 /* confdefs.h.  */
24495 _ACEOF
24496 cat confdefs.h >>conftest.$ac_ext
24497 cat >>conftest.$ac_ext <<_ACEOF
24498 /* end confdefs.h.  */
24499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24501 #define $ac_func innocuous_$ac_func
24502
24503 /* System header to define __stub macros and hopefully few prototypes,
24504     which can conflict with char $ac_func (); below.
24505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24506     <limits.h> exists even on freestanding compilers.  */
24507
24508 #ifdef __STDC__
24509 # include <limits.h>
24510 #else
24511 # include <assert.h>
24512 #endif
24513
24514 #undef $ac_func
24515
24516 /* Override any gcc2 internal prototype to avoid an error.  */
24517 #ifdef __cplusplus
24518 extern "C"
24519 {
24520 #endif
24521 /* We use char because int might match the return type of a gcc2
24522    builtin and then its argument prototype would still apply.  */
24523 char $ac_func ();
24524 /* The GNU C library defines this for functions which it implements
24525     to always fail with ENOSYS.  Some functions are actually named
24526     something starting with __ and the normal name is an alias.  */
24527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24528 choke me
24529 #else
24530 char (*f) () = $ac_func;
24531 #endif
24532 #ifdef __cplusplus
24533 }
24534 #endif
24535
24536 int
24537 main ()
24538 {
24539 return f != $ac_func;
24540   ;
24541   return 0;
24542 }
24543 _ACEOF
24544 rm -f conftest.$ac_objext conftest$ac_exeext
24545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24546   (eval $ac_link) 2>conftest.er1
24547   ac_status=$?
24548   grep -v '^ *+' conftest.er1 >conftest.err
24549   rm -f conftest.er1
24550   cat conftest.err >&5
24551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552   (exit $ac_status); } &&
24553          { ac_try='test -z "$ac_c_werror_flag"
24554                          || test ! -s conftest.err'
24555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24556   (eval $ac_try) 2>&5
24557   ac_status=$?
24558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559   (exit $ac_status); }; } &&
24560          { ac_try='test -s conftest$ac_exeext'
24561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24562   (eval $ac_try) 2>&5
24563   ac_status=$?
24564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565   (exit $ac_status); }; }; then
24566   eval "$as_ac_var=yes"
24567 else
24568   echo "$as_me: failed program was:" >&5
24569 sed 's/^/| /' conftest.$ac_ext >&5
24570
24571 eval "$as_ac_var=no"
24572 fi
24573 rm -f conftest.err conftest.$ac_objext \
24574       conftest$ac_exeext conftest.$ac_ext
24575 fi
24576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24578 if test `eval echo '${'$as_ac_var'}'` = yes; then
24579   cat >>confdefs.h <<_ACEOF
24580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24581 _ACEOF
24582
24583 fi
24584 done
24585
24586         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24587 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24588 if test "${ol_cv_sys_linux_threads+set}" = set; then
24589   echo $ECHO_N "(cached) $ECHO_C" >&6
24590 else
24591   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24592 fi
24593 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24594 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24595
24596
24597
24598
24599         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24600 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24601 if test "${ol_cv_linux_threads+set}" = set; then
24602   echo $ECHO_N "(cached) $ECHO_C" >&6
24603 else
24604
24605                 if test $ol_cv_header_linux_threads = yes &&
24606                    test $ol_cv_sys_linux_threads = yes; then
24607                         ol_cv_linux_threads=yes
24608                 elif test $ol_cv_header_linux_threads = no &&
24609                      test $ol_cv_sys_linux_threads = no; then
24610                         ol_cv_linux_threads=no
24611                 else
24612                         ol_cv_linux_threads=error
24613                 fi
24614
24615 fi
24616 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24617 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24618
24619
24620                         if test $ol_cv_linux_threads = error; then
24621                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24622 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24623    { (exit 1); exit 1; }; };
24624                         fi
24625
24626                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24627 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24628 if test "${ol_cv_pthread_create_works+set}" = set; then
24629   echo $ECHO_N "(cached) $ECHO_C" >&6
24630 else
24631
24632                         if test "$cross_compiling" = yes; then
24633                                 ol_cv_pthread_create_works=yes
24634 else
24635   cat >conftest.$ac_ext <<_ACEOF
24636 /* confdefs.h.  */
24637 _ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h.  */
24641
24642 /* pthread test headers */
24643 #include <pthread.h>
24644 #if HAVE_PTHREADS < 7
24645 #include <errno.h>
24646 #endif
24647 #ifndef NULL
24648 #define NULL (void*)0
24649 #endif
24650
24651 static void *task(p)
24652         void *p;
24653 {
24654         return (void *) (p == NULL);
24655 }
24656
24657
24658 int main(argc, argv)
24659         int argc;
24660         char **argv;
24661 {
24662
24663         /* pthread test function */
24664 #ifndef PTHREAD_CREATE_DETACHED
24665 #define PTHREAD_CREATE_DETACHED 1
24666 #endif
24667         pthread_t t;
24668         int status;
24669         int detach = PTHREAD_CREATE_DETACHED;
24670
24671 #if HAVE_PTHREADS > 4
24672         /* Final pthreads */
24673         pthread_attr_t attr;
24674
24675         status = pthread_attr_init(&attr);
24676         if( status ) return status;
24677
24678 #if HAVE_PTHREADS < 7
24679         status = pthread_attr_setdetachstate(&attr, &detach);
24680         if( status < 0 ) status = errno;
24681 #else
24682         status = pthread_attr_setdetachstate(&attr, detach);
24683 #endif
24684         if( status ) return status;
24685         status = pthread_create( &t, &attr, task, NULL );
24686 #if HAVE_PTHREADS < 7
24687         if( status < 0 ) status = errno;
24688 #endif
24689         if( status ) return status;
24690 #else
24691         /* Draft 4 pthreads */
24692         status = pthread_create( &t, pthread_attr_default, task, NULL );
24693         if( status ) return errno;
24694
24695         /* give thread a chance to complete */
24696         /* it should remain joinable and hence detachable */
24697         sleep( 1 );
24698
24699         status = pthread_detach( &t );
24700         if( status ) return errno;
24701 #endif
24702
24703 #ifdef HAVE_LINUX_THREADS
24704         pthread_kill_other_threads_np();
24705 #endif
24706
24707         return 0;
24708
24709 }
24710
24711 _ACEOF
24712 rm -f conftest$ac_exeext
24713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24714   (eval $ac_link) 2>&5
24715   ac_status=$?
24716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24719   (eval $ac_try) 2>&5
24720   ac_status=$?
24721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722   (exit $ac_status); }; }; then
24723   ol_cv_pthread_create_works=yes
24724 else
24725   echo "$as_me: program exited with status $ac_status" >&5
24726 echo "$as_me: failed program was:" >&5
24727 sed 's/^/| /' conftest.$ac_ext >&5
24728
24729 ( exit $ac_status )
24730 ol_cv_pthread_create_works=no
24731 fi
24732 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24733 fi
24734 fi
24735 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24736 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24737
24738                         if test $ol_cv_pthread_create_works = no ; then
24739                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24740 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24741    { (exit 1); exit 1; }; }
24742                         fi
24743
24744                                                 if test $ol_with_yielding_select = auto ; then
24745                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24746 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24747 if test "${ol_cv_pthread_select_yields+set}" = set; then
24748   echo $ECHO_N "(cached) $ECHO_C" >&6
24749 else
24750
24751                                 if test "$cross_compiling" = yes; then
24752   ol_cv_pthread_select_yields=cross
24753 else
24754   cat >conftest.$ac_ext <<_ACEOF
24755 /* confdefs.h.  */
24756 _ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h.  */
24760
24761 #include <sys/types.h>
24762 #include <sys/time.h>
24763 #include <unistd.h>
24764 #include <pthread.h>
24765 #ifndef NULL
24766 #define NULL (void*) 0
24767 #endif
24768
24769 static int fildes[2];
24770
24771 static void *task(p)
24772         void *p;
24773 {
24774         int i;
24775         struct timeval tv;
24776
24777         fd_set rfds;
24778
24779         tv.tv_sec=10;
24780         tv.tv_usec=0;
24781
24782         FD_ZERO(&rfds);
24783         FD_SET(fildes[0], &rfds);
24784
24785         /* we're not interested in any fds */
24786         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24787
24788         if(i < 0) {
24789                 perror("select");
24790                 exit(10);
24791         }
24792
24793         exit(0); /* if we exit here, the select blocked the whole process */
24794 }
24795
24796 int main(argc, argv)
24797         int argc;
24798         char **argv;
24799 {
24800         pthread_t t;
24801
24802         /* create a pipe to select */
24803         if(pipe(&fildes[0])) {
24804                 perror("select");
24805                 exit(1);
24806         }
24807
24808 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24809         (void) pthread_setconcurrency(2);
24810 #else
24811 #ifdef HAVE_THR_SETCONCURRENCY
24812         /* Set Solaris LWP concurrency to 2 */
24813         thr_setconcurrency(2);
24814 #endif
24815 #endif
24816
24817 #if HAVE_PTHREADS < 6
24818         pthread_create(&t, pthread_attr_default, task, NULL);
24819 #else
24820         pthread_create(&t, NULL, task, NULL);
24821 #endif
24822
24823         /* make sure task runs first */
24824 #if HAVE_THR_YIELD
24825         thr_yield();
24826 #elif defined( HAVE_SCHED_YIELD )
24827         sched_yield();
24828 #elif defined( HAVE_PTHREAD_YIELD )
24829         pthread_yield();
24830 #endif
24831
24832         exit(2);
24833 }
24834 _ACEOF
24835 rm -f conftest$ac_exeext
24836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24837   (eval $ac_link) 2>&5
24838   ac_status=$?
24839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842   (eval $ac_try) 2>&5
24843   ac_status=$?
24844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845   (exit $ac_status); }; }; then
24846   ol_cv_pthread_select_yields=no
24847 else
24848   echo "$as_me: program exited with status $ac_status" >&5
24849 echo "$as_me: failed program was:" >&5
24850 sed 's/^/| /' conftest.$ac_ext >&5
24851
24852 ( exit $ac_status )
24853 ol_cv_pthread_select_yields=yes
24854 fi
24855 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24856 fi
24857 fi
24858 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24859 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24860
24861                                 if test $ol_cv_pthread_select_yields = cross ; then
24862                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24863 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24864    { (exit 1); exit 1; }; }
24865                                 fi
24866
24867                                 if test $ol_cv_pthread_select_yields = yes ; then
24868                                         ol_with_yielding_select=yes
24869                                 fi
24870                         fi
24871
24872                                                 CPPFLAGS="$save_CPPFLAGS"
24873                         LIBS="$save_LIBS"
24874                 else
24875                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24876 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24877    { (exit 1); exit 1; }; }
24878                 fi
24879         fi
24880
24881         if test $ol_with_threads = posix ; then
24882                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24883 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24884    { (exit 1); exit 1; }; }
24885         fi
24886         ;;
24887 esac
24888
24889 case $ol_with_threads in auto | yes | mach)
24890
24891
24892
24893 for ac_header in mach/cthreads.h cthreads.h
24894 do
24895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24897   echo "$as_me:$LINENO: checking for $ac_header" >&5
24898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24900   echo $ECHO_N "(cached) $ECHO_C" >&6
24901 fi
24902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24904 else
24905   # Is the header compilable?
24906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24908 cat >conftest.$ac_ext <<_ACEOF
24909 /* confdefs.h.  */
24910 _ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h.  */
24914 $ac_includes_default
24915 #include <$ac_header>
24916 _ACEOF
24917 rm -f conftest.$ac_objext
24918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24919   (eval $ac_compile) 2>conftest.er1
24920   ac_status=$?
24921   grep -v '^ *+' conftest.er1 >conftest.err
24922   rm -f conftest.er1
24923   cat conftest.err >&5
24924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925   (exit $ac_status); } &&
24926          { ac_try='test -z "$ac_c_werror_flag"
24927                          || test ! -s conftest.err'
24928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929   (eval $ac_try) 2>&5
24930   ac_status=$?
24931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932   (exit $ac_status); }; } &&
24933          { ac_try='test -s conftest.$ac_objext'
24934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935   (eval $ac_try) 2>&5
24936   ac_status=$?
24937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938   (exit $ac_status); }; }; then
24939   ac_header_compiler=yes
24940 else
24941   echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24943
24944 ac_header_compiler=no
24945 fi
24946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24948 echo "${ECHO_T}$ac_header_compiler" >&6
24949
24950 # Is the header present?
24951 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24953 cat >conftest.$ac_ext <<_ACEOF
24954 /* confdefs.h.  */
24955 _ACEOF
24956 cat confdefs.h >>conftest.$ac_ext
24957 cat >>conftest.$ac_ext <<_ACEOF
24958 /* end confdefs.h.  */
24959 #include <$ac_header>
24960 _ACEOF
24961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24962   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24963   ac_status=$?
24964   grep -v '^ *+' conftest.er1 >conftest.err
24965   rm -f conftest.er1
24966   cat conftest.err >&5
24967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968   (exit $ac_status); } >/dev/null; then
24969   if test -s conftest.err; then
24970     ac_cpp_err=$ac_c_preproc_warn_flag
24971     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24972   else
24973     ac_cpp_err=
24974   fi
24975 else
24976   ac_cpp_err=yes
24977 fi
24978 if test -z "$ac_cpp_err"; then
24979   ac_header_preproc=yes
24980 else
24981   echo "$as_me: failed program was:" >&5
24982 sed 's/^/| /' conftest.$ac_ext >&5
24983
24984   ac_header_preproc=no
24985 fi
24986 rm -f conftest.err conftest.$ac_ext
24987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24988 echo "${ECHO_T}$ac_header_preproc" >&6
24989
24990 # So?  What about this header?
24991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24992   yes:no: )
24993     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24997     ac_header_preproc=yes
24998     ;;
24999   no:yes:* )
25000     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25002     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25003 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25004     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25006     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25007 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25010     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25012     (
25013       cat <<\_ASBOX
25014 ## ------------------------------------------ ##
25015 ## Report this to the AC_PACKAGE_NAME lists.  ##
25016 ## ------------------------------------------ ##
25017 _ASBOX
25018     ) |
25019       sed "s/^/$as_me: WARNING:     /" >&2
25020     ;;
25021 esac
25022 echo "$as_me:$LINENO: checking for $ac_header" >&5
25023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25025   echo $ECHO_N "(cached) $ECHO_C" >&6
25026 else
25027   eval "$as_ac_Header=\$ac_header_preproc"
25028 fi
25029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25031
25032 fi
25033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25034   cat >>confdefs.h <<_ACEOF
25035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25036 _ACEOF
25037
25038 fi
25039
25040 done
25041
25042         if test $ac_cv_header_mach_cthreads_h = yes ; then
25043                 ol_with_threads=found
25044
25045                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25046 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25047 if test "${ac_cv_func_cthread_fork+set}" = set; then
25048   echo $ECHO_N "(cached) $ECHO_C" >&6
25049 else
25050   cat >conftest.$ac_ext <<_ACEOF
25051 /* confdefs.h.  */
25052 _ACEOF
25053 cat confdefs.h >>conftest.$ac_ext
25054 cat >>conftest.$ac_ext <<_ACEOF
25055 /* end confdefs.h.  */
25056 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25058 #define cthread_fork innocuous_cthread_fork
25059
25060 /* System header to define __stub macros and hopefully few prototypes,
25061     which can conflict with char cthread_fork (); below.
25062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25063     <limits.h> exists even on freestanding compilers.  */
25064
25065 #ifdef __STDC__
25066 # include <limits.h>
25067 #else
25068 # include <assert.h>
25069 #endif
25070
25071 #undef cthread_fork
25072
25073 /* Override any gcc2 internal prototype to avoid an error.  */
25074 #ifdef __cplusplus
25075 extern "C"
25076 {
25077 #endif
25078 /* We use char because int might match the return type of a gcc2
25079    builtin and then its argument prototype would still apply.  */
25080 char cthread_fork ();
25081 /* The GNU C library defines this for functions which it implements
25082     to always fail with ENOSYS.  Some functions are actually named
25083     something starting with __ and the normal name is an alias.  */
25084 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25085 choke me
25086 #else
25087 char (*f) () = cthread_fork;
25088 #endif
25089 #ifdef __cplusplus
25090 }
25091 #endif
25092
25093 int
25094 main ()
25095 {
25096 return f != cthread_fork;
25097   ;
25098   return 0;
25099 }
25100 _ACEOF
25101 rm -f conftest.$ac_objext conftest$ac_exeext
25102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25103   (eval $ac_link) 2>conftest.er1
25104   ac_status=$?
25105   grep -v '^ *+' conftest.er1 >conftest.err
25106   rm -f conftest.er1
25107   cat conftest.err >&5
25108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109   (exit $ac_status); } &&
25110          { ac_try='test -z "$ac_c_werror_flag"
25111                          || test ! -s conftest.err'
25112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25113   (eval $ac_try) 2>&5
25114   ac_status=$?
25115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116   (exit $ac_status); }; } &&
25117          { ac_try='test -s conftest$ac_exeext'
25118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25119   (eval $ac_try) 2>&5
25120   ac_status=$?
25121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122   (exit $ac_status); }; }; then
25123   ac_cv_func_cthread_fork=yes
25124 else
25125   echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25127
25128 ac_cv_func_cthread_fork=no
25129 fi
25130 rm -f conftest.err conftest.$ac_objext \
25131       conftest$ac_exeext conftest.$ac_ext
25132 fi
25133 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25134 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25135 if test $ac_cv_func_cthread_fork = yes; then
25136   ol_link_threads=yes
25137 fi
25138
25139
25140                 if test $ol_link_threads = no ; then
25141                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25142 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25143 if test "${ol_cv_cthread_all_load+set}" = set; then
25144   echo $ECHO_N "(cached) $ECHO_C" >&6
25145 else
25146
25147                                                                 save_LIBS="$LIBS"
25148                                 LIBS="-all_load $LIBS"
25149                                 cat >conftest.$ac_ext <<_ACEOF
25150 /* confdefs.h.  */
25151 _ACEOF
25152 cat confdefs.h >>conftest.$ac_ext
25153 cat >>conftest.$ac_ext <<_ACEOF
25154 /* end confdefs.h.  */
25155 #include <mach/cthreads.h>
25156 int
25157 main ()
25158 {
25159
25160                                         cthread_fork((void *)0, (void *)0);
25161
25162   ;
25163   return 0;
25164 }
25165 _ACEOF
25166 rm -f conftest.$ac_objext conftest$ac_exeext
25167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25168   (eval $ac_link) 2>conftest.er1
25169   ac_status=$?
25170   grep -v '^ *+' conftest.er1 >conftest.err
25171   rm -f conftest.er1
25172   cat conftest.err >&5
25173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174   (exit $ac_status); } &&
25175          { ac_try='test -z "$ac_c_werror_flag"
25176                          || test ! -s conftest.err'
25177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25178   (eval $ac_try) 2>&5
25179   ac_status=$?
25180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181   (exit $ac_status); }; } &&
25182          { ac_try='test -s conftest$ac_exeext'
25183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25184   (eval $ac_try) 2>&5
25185   ac_status=$?
25186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187   (exit $ac_status); }; }; then
25188   ol_cv_cthread_all_load=yes
25189 else
25190   echo "$as_me: failed program was:" >&5
25191 sed 's/^/| /' conftest.$ac_ext >&5
25192
25193 ol_cv_cthread_all_load=no
25194 fi
25195 rm -f conftest.err conftest.$ac_objext \
25196       conftest$ac_exeext conftest.$ac_ext
25197                                                                 LIBS="$save_LIBS"
25198
25199 fi
25200 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25201 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25202
25203                         if test $ol_cv_cthread_all_load = yes ; then
25204                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25205                                 ol_link_threads=mach
25206                                 ol_with_threads=found
25207                         fi
25208                 fi
25209
25210         elif test $ac_cv_header_cthreads_h = yes ; then
25211
25212                 ol_with_threads=found
25213
25214                                 save_LIBS="$LIBS"
25215                 LIBS="$LIBS -lthreads"
25216                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25217 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25218 if test "${ac_cv_func_cthread_fork+set}" = set; then
25219   echo $ECHO_N "(cached) $ECHO_C" >&6
25220 else
25221   cat >conftest.$ac_ext <<_ACEOF
25222 /* confdefs.h.  */
25223 _ACEOF
25224 cat confdefs.h >>conftest.$ac_ext
25225 cat >>conftest.$ac_ext <<_ACEOF
25226 /* end confdefs.h.  */
25227 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25229 #define cthread_fork innocuous_cthread_fork
25230
25231 /* System header to define __stub macros and hopefully few prototypes,
25232     which can conflict with char cthread_fork (); below.
25233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25234     <limits.h> exists even on freestanding compilers.  */
25235
25236 #ifdef __STDC__
25237 # include <limits.h>
25238 #else
25239 # include <assert.h>
25240 #endif
25241
25242 #undef cthread_fork
25243
25244 /* Override any gcc2 internal prototype to avoid an error.  */
25245 #ifdef __cplusplus
25246 extern "C"
25247 {
25248 #endif
25249 /* We use char because int might match the return type of a gcc2
25250    builtin and then its argument prototype would still apply.  */
25251 char cthread_fork ();
25252 /* The GNU C library defines this for functions which it implements
25253     to always fail with ENOSYS.  Some functions are actually named
25254     something starting with __ and the normal name is an alias.  */
25255 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25256 choke me
25257 #else
25258 char (*f) () = cthread_fork;
25259 #endif
25260 #ifdef __cplusplus
25261 }
25262 #endif
25263
25264 int
25265 main ()
25266 {
25267 return f != cthread_fork;
25268   ;
25269   return 0;
25270 }
25271 _ACEOF
25272 rm -f conftest.$ac_objext conftest$ac_exeext
25273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25274   (eval $ac_link) 2>conftest.er1
25275   ac_status=$?
25276   grep -v '^ *+' conftest.er1 >conftest.err
25277   rm -f conftest.er1
25278   cat conftest.err >&5
25279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280   (exit $ac_status); } &&
25281          { ac_try='test -z "$ac_c_werror_flag"
25282                          || test ! -s conftest.err'
25283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25284   (eval $ac_try) 2>&5
25285   ac_status=$?
25286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287   (exit $ac_status); }; } &&
25288          { ac_try='test -s conftest$ac_exeext'
25289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25290   (eval $ac_try) 2>&5
25291   ac_status=$?
25292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293   (exit $ac_status); }; }; then
25294   ac_cv_func_cthread_fork=yes
25295 else
25296   echo "$as_me: failed program was:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25298
25299 ac_cv_func_cthread_fork=no
25300 fi
25301 rm -f conftest.err conftest.$ac_objext \
25302       conftest$ac_exeext conftest.$ac_ext
25303 fi
25304 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25305 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25306 if test $ac_cv_func_cthread_fork = yes; then
25307   ol_link_threads=yes
25308 fi
25309
25310                 LIBS="$save_LIBS"
25311
25312                 if test $ol_link_threads = yes ; then
25313                         LTHREAD_LIBS="-lthreads"
25314                         ol_link_threads=mach
25315                         ol_with_threads=found
25316                 else
25317                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25318 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25319    { (exit 1); exit 1; }; }
25320                 fi
25321
25322         elif test $ol_with_threads = mach ; then
25323                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25324 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25325    { (exit 1); exit 1; }; }
25326         fi
25327
25328         if test $ol_link_threads = mach ; then
25329
25330 cat >>confdefs.h <<\_ACEOF
25331 #define HAVE_MACH_CTHREADS 1
25332 _ACEOF
25333
25334         elif test $ol_with_threads = found ; then
25335                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25336 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25337    { (exit 1); exit 1; }; }
25338         fi
25339         ;;
25340 esac
25341
25342 case $ol_with_threads in auto | yes | pth)
25343
25344
25345 for ac_header in pth.h
25346 do
25347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25349   echo "$as_me:$LINENO: checking for $ac_header" >&5
25350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25352   echo $ECHO_N "(cached) $ECHO_C" >&6
25353 fi
25354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25356 else
25357   # Is the header compilable?
25358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25360 cat >conftest.$ac_ext <<_ACEOF
25361 /* confdefs.h.  */
25362 _ACEOF
25363 cat confdefs.h >>conftest.$ac_ext
25364 cat >>conftest.$ac_ext <<_ACEOF
25365 /* end confdefs.h.  */
25366 $ac_includes_default
25367 #include <$ac_header>
25368 _ACEOF
25369 rm -f conftest.$ac_objext
25370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25371   (eval $ac_compile) 2>conftest.er1
25372   ac_status=$?
25373   grep -v '^ *+' conftest.er1 >conftest.err
25374   rm -f conftest.er1
25375   cat conftest.err >&5
25376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377   (exit $ac_status); } &&
25378          { ac_try='test -z "$ac_c_werror_flag"
25379                          || test ! -s conftest.err'
25380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25381   (eval $ac_try) 2>&5
25382   ac_status=$?
25383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384   (exit $ac_status); }; } &&
25385          { ac_try='test -s conftest.$ac_objext'
25386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25387   (eval $ac_try) 2>&5
25388   ac_status=$?
25389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390   (exit $ac_status); }; }; then
25391   ac_header_compiler=yes
25392 else
25393   echo "$as_me: failed program was:" >&5
25394 sed 's/^/| /' conftest.$ac_ext >&5
25395
25396 ac_header_compiler=no
25397 fi
25398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25400 echo "${ECHO_T}$ac_header_compiler" >&6
25401
25402 # Is the header present?
25403 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25405 cat >conftest.$ac_ext <<_ACEOF
25406 /* confdefs.h.  */
25407 _ACEOF
25408 cat confdefs.h >>conftest.$ac_ext
25409 cat >>conftest.$ac_ext <<_ACEOF
25410 /* end confdefs.h.  */
25411 #include <$ac_header>
25412 _ACEOF
25413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25414   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25415   ac_status=$?
25416   grep -v '^ *+' conftest.er1 >conftest.err
25417   rm -f conftest.er1
25418   cat conftest.err >&5
25419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420   (exit $ac_status); } >/dev/null; then
25421   if test -s conftest.err; then
25422     ac_cpp_err=$ac_c_preproc_warn_flag
25423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25424   else
25425     ac_cpp_err=
25426   fi
25427 else
25428   ac_cpp_err=yes
25429 fi
25430 if test -z "$ac_cpp_err"; then
25431   ac_header_preproc=yes
25432 else
25433   echo "$as_me: failed program was:" >&5
25434 sed 's/^/| /' conftest.$ac_ext >&5
25435
25436   ac_header_preproc=no
25437 fi
25438 rm -f conftest.err conftest.$ac_ext
25439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25440 echo "${ECHO_T}$ac_header_preproc" >&6
25441
25442 # So?  What about this header?
25443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25444   yes:no: )
25445     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25449     ac_header_preproc=yes
25450     ;;
25451   no:yes:* )
25452     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25454     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25455 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25456     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25458     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25459 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25462     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25464     (
25465       cat <<\_ASBOX
25466 ## ------------------------------------------ ##
25467 ## Report this to the AC_PACKAGE_NAME lists.  ##
25468 ## ------------------------------------------ ##
25469 _ASBOX
25470     ) |
25471       sed "s/^/$as_me: WARNING:     /" >&2
25472     ;;
25473 esac
25474 echo "$as_me:$LINENO: checking for $ac_header" >&5
25475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25477   echo $ECHO_N "(cached) $ECHO_C" >&6
25478 else
25479   eval "$as_ac_Header=\$ac_header_preproc"
25480 fi
25481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25483
25484 fi
25485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25486   cat >>confdefs.h <<_ACEOF
25487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25488 _ACEOF
25489
25490 fi
25491
25492 done
25493
25494
25495         if test $ac_cv_header_pth_h = yes ; then
25496                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25497 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25498 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25499   echo $ECHO_N "(cached) $ECHO_C" >&6
25500 else
25501   ac_check_lib_save_LIBS=$LIBS
25502 LIBS="-lpth  $LIBS"
25503 cat >conftest.$ac_ext <<_ACEOF
25504 /* confdefs.h.  */
25505 _ACEOF
25506 cat confdefs.h >>conftest.$ac_ext
25507 cat >>conftest.$ac_ext <<_ACEOF
25508 /* end confdefs.h.  */
25509
25510 /* Override any gcc2 internal prototype to avoid an error.  */
25511 #ifdef __cplusplus
25512 extern "C"
25513 #endif
25514 /* We use char because int might match the return type of a gcc2
25515    builtin and then its argument prototype would still apply.  */
25516 char pth_version ();
25517 int
25518 main ()
25519 {
25520 pth_version ();
25521   ;
25522   return 0;
25523 }
25524 _ACEOF
25525 rm -f conftest.$ac_objext conftest$ac_exeext
25526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25527   (eval $ac_link) 2>conftest.er1
25528   ac_status=$?
25529   grep -v '^ *+' conftest.er1 >conftest.err
25530   rm -f conftest.er1
25531   cat conftest.err >&5
25532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533   (exit $ac_status); } &&
25534          { ac_try='test -z "$ac_c_werror_flag"
25535                          || test ! -s conftest.err'
25536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25537   (eval $ac_try) 2>&5
25538   ac_status=$?
25539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540   (exit $ac_status); }; } &&
25541          { ac_try='test -s conftest$ac_exeext'
25542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25543   (eval $ac_try) 2>&5
25544   ac_status=$?
25545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546   (exit $ac_status); }; }; then
25547   ac_cv_lib_pth_pth_version=yes
25548 else
25549   echo "$as_me: failed program was:" >&5
25550 sed 's/^/| /' conftest.$ac_ext >&5
25551
25552 ac_cv_lib_pth_pth_version=no
25553 fi
25554 rm -f conftest.err conftest.$ac_objext \
25555       conftest$ac_exeext conftest.$ac_ext
25556 LIBS=$ac_check_lib_save_LIBS
25557 fi
25558 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25559 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25560 if test $ac_cv_lib_pth_pth_version = yes; then
25561   have_pth=yes
25562 else
25563   have_pth=no
25564 fi
25565
25566
25567                 if test $have_pth = yes ; then
25568
25569 cat >>confdefs.h <<\_ACEOF
25570 #define HAVE_GNU_PTH 1
25571 _ACEOF
25572
25573                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25574                         ol_link_threads=pth
25575                         ol_with_threads=found
25576
25577                         if test $ol_with_yielding_select = auto ; then
25578                                 ol_with_yielding_select=yes
25579                         fi
25580                 fi
25581         fi
25582         ;;
25583 esac
25584
25585 case $ol_with_threads in auto | yes | lwp)
25586
25587
25588
25589 for ac_header in thread.h synch.h
25590 do
25591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25593   echo "$as_me:$LINENO: checking for $ac_header" >&5
25594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25596   echo $ECHO_N "(cached) $ECHO_C" >&6
25597 fi
25598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25600 else
25601   # Is the header compilable?
25602 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25604 cat >conftest.$ac_ext <<_ACEOF
25605 /* confdefs.h.  */
25606 _ACEOF
25607 cat confdefs.h >>conftest.$ac_ext
25608 cat >>conftest.$ac_ext <<_ACEOF
25609 /* end confdefs.h.  */
25610 $ac_includes_default
25611 #include <$ac_header>
25612 _ACEOF
25613 rm -f conftest.$ac_objext
25614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25615   (eval $ac_compile) 2>conftest.er1
25616   ac_status=$?
25617   grep -v '^ *+' conftest.er1 >conftest.err
25618   rm -f conftest.er1
25619   cat conftest.err >&5
25620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621   (exit $ac_status); } &&
25622          { ac_try='test -z "$ac_c_werror_flag"
25623                          || test ! -s conftest.err'
25624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25625   (eval $ac_try) 2>&5
25626   ac_status=$?
25627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628   (exit $ac_status); }; } &&
25629          { ac_try='test -s conftest.$ac_objext'
25630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25631   (eval $ac_try) 2>&5
25632   ac_status=$?
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); }; }; then
25635   ac_header_compiler=yes
25636 else
25637   echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25639
25640 ac_header_compiler=no
25641 fi
25642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25644 echo "${ECHO_T}$ac_header_compiler" >&6
25645
25646 # Is the header present?
25647 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25649 cat >conftest.$ac_ext <<_ACEOF
25650 /* confdefs.h.  */
25651 _ACEOF
25652 cat confdefs.h >>conftest.$ac_ext
25653 cat >>conftest.$ac_ext <<_ACEOF
25654 /* end confdefs.h.  */
25655 #include <$ac_header>
25656 _ACEOF
25657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25658   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25659   ac_status=$?
25660   grep -v '^ *+' conftest.er1 >conftest.err
25661   rm -f conftest.er1
25662   cat conftest.err >&5
25663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664   (exit $ac_status); } >/dev/null; then
25665   if test -s conftest.err; then
25666     ac_cpp_err=$ac_c_preproc_warn_flag
25667     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25668   else
25669     ac_cpp_err=
25670   fi
25671 else
25672   ac_cpp_err=yes
25673 fi
25674 if test -z "$ac_cpp_err"; then
25675   ac_header_preproc=yes
25676 else
25677   echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25679
25680   ac_header_preproc=no
25681 fi
25682 rm -f conftest.err conftest.$ac_ext
25683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25684 echo "${ECHO_T}$ac_header_preproc" >&6
25685
25686 # So?  What about this header?
25687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25688   yes:no: )
25689     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25693     ac_header_preproc=yes
25694     ;;
25695   no:yes:* )
25696     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25698     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25699 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25700     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25702     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25703 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25706     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25708     (
25709       cat <<\_ASBOX
25710 ## ------------------------------------------ ##
25711 ## Report this to the AC_PACKAGE_NAME lists.  ##
25712 ## ------------------------------------------ ##
25713 _ASBOX
25714     ) |
25715       sed "s/^/$as_me: WARNING:     /" >&2
25716     ;;
25717 esac
25718 echo "$as_me:$LINENO: checking for $ac_header" >&5
25719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25721   echo $ECHO_N "(cached) $ECHO_C" >&6
25722 else
25723   eval "$as_ac_Header=\$ac_header_preproc"
25724 fi
25725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25727
25728 fi
25729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25730   cat >>confdefs.h <<_ACEOF
25731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25732 _ACEOF
25733
25734 fi
25735
25736 done
25737
25738         if test $ac_cv_header_thread_h = yes &&
25739            test $ac_cv_header_synch_h = yes ; then
25740                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25741 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25742 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25743   echo $ECHO_N "(cached) $ECHO_C" >&6
25744 else
25745   ac_check_lib_save_LIBS=$LIBS
25746 LIBS="-lthread  $LIBS"
25747 cat >conftest.$ac_ext <<_ACEOF
25748 /* confdefs.h.  */
25749 _ACEOF
25750 cat confdefs.h >>conftest.$ac_ext
25751 cat >>conftest.$ac_ext <<_ACEOF
25752 /* end confdefs.h.  */
25753
25754 /* Override any gcc2 internal prototype to avoid an error.  */
25755 #ifdef __cplusplus
25756 extern "C"
25757 #endif
25758 /* We use char because int might match the return type of a gcc2
25759    builtin and then its argument prototype would still apply.  */
25760 char thr_create ();
25761 int
25762 main ()
25763 {
25764 thr_create ();
25765   ;
25766   return 0;
25767 }
25768 _ACEOF
25769 rm -f conftest.$ac_objext conftest$ac_exeext
25770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25771   (eval $ac_link) 2>conftest.er1
25772   ac_status=$?
25773   grep -v '^ *+' conftest.er1 >conftest.err
25774   rm -f conftest.er1
25775   cat conftest.err >&5
25776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777   (exit $ac_status); } &&
25778          { ac_try='test -z "$ac_c_werror_flag"
25779                          || test ! -s conftest.err'
25780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25781   (eval $ac_try) 2>&5
25782   ac_status=$?
25783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784   (exit $ac_status); }; } &&
25785          { ac_try='test -s conftest$ac_exeext'
25786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25787   (eval $ac_try) 2>&5
25788   ac_status=$?
25789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790   (exit $ac_status); }; }; then
25791   ac_cv_lib_thread_thr_create=yes
25792 else
25793   echo "$as_me: failed program was:" >&5
25794 sed 's/^/| /' conftest.$ac_ext >&5
25795
25796 ac_cv_lib_thread_thr_create=no
25797 fi
25798 rm -f conftest.err conftest.$ac_objext \
25799       conftest$ac_exeext conftest.$ac_ext
25800 LIBS=$ac_check_lib_save_LIBS
25801 fi
25802 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25803 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25804 if test $ac_cv_lib_thread_thr_create = yes; then
25805   have_thr=yes
25806 else
25807   have_thr=no
25808 fi
25809
25810
25811                 if test $have_thr = yes ; then
25812
25813 cat >>confdefs.h <<\_ACEOF
25814 #define HAVE_THR 1
25815 _ACEOF
25816
25817                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25818                         ol_link_threads=thr
25819
25820                         if test $ol_with_yielding_select = auto ; then
25821                                 ol_with_yielding_select=yes
25822                         fi
25823
25824
25825
25826 for ac_func in \
25827                                 thr_setconcurrency \
25828                                 thr_getconcurrency \
25829
25830 do
25831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25832 echo "$as_me:$LINENO: checking for $ac_func" >&5
25833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25834 if eval "test \"\${$as_ac_var+set}\" = set"; then
25835   echo $ECHO_N "(cached) $ECHO_C" >&6
25836 else
25837   cat >conftest.$ac_ext <<_ACEOF
25838 /* confdefs.h.  */
25839 _ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h.  */
25843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25845 #define $ac_func innocuous_$ac_func
25846
25847 /* System header to define __stub macros and hopefully few prototypes,
25848     which can conflict with char $ac_func (); below.
25849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25850     <limits.h> exists even on freestanding compilers.  */
25851
25852 #ifdef __STDC__
25853 # include <limits.h>
25854 #else
25855 # include <assert.h>
25856 #endif
25857
25858 #undef $ac_func
25859
25860 /* Override any gcc2 internal prototype to avoid an error.  */
25861 #ifdef __cplusplus
25862 extern "C"
25863 {
25864 #endif
25865 /* We use char because int might match the return type of a gcc2
25866    builtin and then its argument prototype would still apply.  */
25867 char $ac_func ();
25868 /* The GNU C library defines this for functions which it implements
25869     to always fail with ENOSYS.  Some functions are actually named
25870     something starting with __ and the normal name is an alias.  */
25871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25872 choke me
25873 #else
25874 char (*f) () = $ac_func;
25875 #endif
25876 #ifdef __cplusplus
25877 }
25878 #endif
25879
25880 int
25881 main ()
25882 {
25883 return f != $ac_func;
25884   ;
25885   return 0;
25886 }
25887 _ACEOF
25888 rm -f conftest.$ac_objext conftest$ac_exeext
25889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25890   (eval $ac_link) 2>conftest.er1
25891   ac_status=$?
25892   grep -v '^ *+' conftest.er1 >conftest.err
25893   rm -f conftest.er1
25894   cat conftest.err >&5
25895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896   (exit $ac_status); } &&
25897          { ac_try='test -z "$ac_c_werror_flag"
25898                          || test ! -s conftest.err'
25899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25900   (eval $ac_try) 2>&5
25901   ac_status=$?
25902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903   (exit $ac_status); }; } &&
25904          { ac_try='test -s conftest$ac_exeext'
25905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25906   (eval $ac_try) 2>&5
25907   ac_status=$?
25908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909   (exit $ac_status); }; }; then
25910   eval "$as_ac_var=yes"
25911 else
25912   echo "$as_me: failed program was:" >&5
25913 sed 's/^/| /' conftest.$ac_ext >&5
25914
25915 eval "$as_ac_var=no"
25916 fi
25917 rm -f conftest.err conftest.$ac_objext \
25918       conftest$ac_exeext conftest.$ac_ext
25919 fi
25920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25922 if test `eval echo '${'$as_ac_var'}'` = yes; then
25923   cat >>confdefs.h <<_ACEOF
25924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25925 _ACEOF
25926
25927 fi
25928 done
25929
25930                 fi
25931         fi
25932
25933
25934 for ac_header in lwp/lwp.h
25935 do
25936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25938   echo "$as_me:$LINENO: checking for $ac_header" >&5
25939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25941   echo $ECHO_N "(cached) $ECHO_C" >&6
25942 fi
25943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25945 else
25946   # Is the header compilable?
25947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25949 cat >conftest.$ac_ext <<_ACEOF
25950 /* confdefs.h.  */
25951 _ACEOF
25952 cat confdefs.h >>conftest.$ac_ext
25953 cat >>conftest.$ac_ext <<_ACEOF
25954 /* end confdefs.h.  */
25955 $ac_includes_default
25956 #include <$ac_header>
25957 _ACEOF
25958 rm -f conftest.$ac_objext
25959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25960   (eval $ac_compile) 2>conftest.er1
25961   ac_status=$?
25962   grep -v '^ *+' conftest.er1 >conftest.err
25963   rm -f conftest.er1
25964   cat conftest.err >&5
25965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966   (exit $ac_status); } &&
25967          { ac_try='test -z "$ac_c_werror_flag"
25968                          || test ! -s conftest.err'
25969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25970   (eval $ac_try) 2>&5
25971   ac_status=$?
25972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973   (exit $ac_status); }; } &&
25974          { ac_try='test -s conftest.$ac_objext'
25975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25976   (eval $ac_try) 2>&5
25977   ac_status=$?
25978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979   (exit $ac_status); }; }; then
25980   ac_header_compiler=yes
25981 else
25982   echo "$as_me: failed program was:" >&5
25983 sed 's/^/| /' conftest.$ac_ext >&5
25984
25985 ac_header_compiler=no
25986 fi
25987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25989 echo "${ECHO_T}$ac_header_compiler" >&6
25990
25991 # Is the header present?
25992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25994 cat >conftest.$ac_ext <<_ACEOF
25995 /* confdefs.h.  */
25996 _ACEOF
25997 cat confdefs.h >>conftest.$ac_ext
25998 cat >>conftest.$ac_ext <<_ACEOF
25999 /* end confdefs.h.  */
26000 #include <$ac_header>
26001 _ACEOF
26002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26003   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26004   ac_status=$?
26005   grep -v '^ *+' conftest.er1 >conftest.err
26006   rm -f conftest.er1
26007   cat conftest.err >&5
26008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009   (exit $ac_status); } >/dev/null; then
26010   if test -s conftest.err; then
26011     ac_cpp_err=$ac_c_preproc_warn_flag
26012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26013   else
26014     ac_cpp_err=
26015   fi
26016 else
26017   ac_cpp_err=yes
26018 fi
26019 if test -z "$ac_cpp_err"; then
26020   ac_header_preproc=yes
26021 else
26022   echo "$as_me: failed program was:" >&5
26023 sed 's/^/| /' conftest.$ac_ext >&5
26024
26025   ac_header_preproc=no
26026 fi
26027 rm -f conftest.err conftest.$ac_ext
26028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26029 echo "${ECHO_T}$ac_header_preproc" >&6
26030
26031 # So?  What about this header?
26032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26033   yes:no: )
26034     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26038     ac_header_preproc=yes
26039     ;;
26040   no:yes:* )
26041     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26043     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26044 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26045     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26047     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26048 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26051     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26053     (
26054       cat <<\_ASBOX
26055 ## ------------------------------------------ ##
26056 ## Report this to the AC_PACKAGE_NAME lists.  ##
26057 ## ------------------------------------------ ##
26058 _ASBOX
26059     ) |
26060       sed "s/^/$as_me: WARNING:     /" >&2
26061     ;;
26062 esac
26063 echo "$as_me:$LINENO: checking for $ac_header" >&5
26064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26066   echo $ECHO_N "(cached) $ECHO_C" >&6
26067 else
26068   eval "$as_ac_Header=\$ac_header_preproc"
26069 fi
26070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26072
26073 fi
26074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26075   cat >>confdefs.h <<_ACEOF
26076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26077 _ACEOF
26078
26079 fi
26080
26081 done
26082
26083         if test $ac_cv_header_lwp_lwp_h = yes ; then
26084                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26085 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26086 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26087   echo $ECHO_N "(cached) $ECHO_C" >&6
26088 else
26089   ac_check_lib_save_LIBS=$LIBS
26090 LIBS="-llwp  $LIBS"
26091 cat >conftest.$ac_ext <<_ACEOF
26092 /* confdefs.h.  */
26093 _ACEOF
26094 cat confdefs.h >>conftest.$ac_ext
26095 cat >>conftest.$ac_ext <<_ACEOF
26096 /* end confdefs.h.  */
26097
26098 /* Override any gcc2 internal prototype to avoid an error.  */
26099 #ifdef __cplusplus
26100 extern "C"
26101 #endif
26102 /* We use char because int might match the return type of a gcc2
26103    builtin and then its argument prototype would still apply.  */
26104 char lwp_create ();
26105 int
26106 main ()
26107 {
26108 lwp_create ();
26109   ;
26110   return 0;
26111 }
26112 _ACEOF
26113 rm -f conftest.$ac_objext conftest$ac_exeext
26114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26115   (eval $ac_link) 2>conftest.er1
26116   ac_status=$?
26117   grep -v '^ *+' conftest.er1 >conftest.err
26118   rm -f conftest.er1
26119   cat conftest.err >&5
26120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121   (exit $ac_status); } &&
26122          { ac_try='test -z "$ac_c_werror_flag"
26123                          || test ! -s conftest.err'
26124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125   (eval $ac_try) 2>&5
26126   ac_status=$?
26127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128   (exit $ac_status); }; } &&
26129          { ac_try='test -s conftest$ac_exeext'
26130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26131   (eval $ac_try) 2>&5
26132   ac_status=$?
26133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134   (exit $ac_status); }; }; then
26135   ac_cv_lib_lwp_lwp_create=yes
26136 else
26137   echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26139
26140 ac_cv_lib_lwp_lwp_create=no
26141 fi
26142 rm -f conftest.err conftest.$ac_objext \
26143       conftest$ac_exeext conftest.$ac_ext
26144 LIBS=$ac_check_lib_save_LIBS
26145 fi
26146 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26147 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26148 if test $ac_cv_lib_lwp_lwp_create = yes; then
26149   have_lwp=yes
26150 else
26151   have_lwp=no
26152 fi
26153
26154
26155                 if test $have_lwp = yes ; then
26156
26157 cat >>confdefs.h <<\_ACEOF
26158 #define HAVE_LWP 1
26159 _ACEOF
26160
26161                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26162                         ol_link_threads=lwp
26163
26164                         if test $ol_with_yielding_select = auto ; then
26165                                 ol_with_yielding_select=no
26166                         fi
26167                 fi
26168         fi
26169         ;;
26170 esac
26171
26172 if test $ol_with_yielding_select = yes ; then
26173
26174 cat >>confdefs.h <<\_ACEOF
26175 #define HAVE_YIELDING_SELECT 1
26176 _ACEOF
26177
26178 fi
26179
26180 if test $ol_with_threads = manual ; then
26181                 ol_link_threads=yes
26182
26183         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26184 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26185
26186
26187
26188 for ac_header in pthread.h sched.h
26189 do
26190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26192   echo "$as_me:$LINENO: checking for $ac_header" >&5
26193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26195   echo $ECHO_N "(cached) $ECHO_C" >&6
26196 fi
26197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26199 else
26200   # Is the header compilable?
26201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26203 cat >conftest.$ac_ext <<_ACEOF
26204 /* confdefs.h.  */
26205 _ACEOF
26206 cat confdefs.h >>conftest.$ac_ext
26207 cat >>conftest.$ac_ext <<_ACEOF
26208 /* end confdefs.h.  */
26209 $ac_includes_default
26210 #include <$ac_header>
26211 _ACEOF
26212 rm -f conftest.$ac_objext
26213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26214   (eval $ac_compile) 2>conftest.er1
26215   ac_status=$?
26216   grep -v '^ *+' conftest.er1 >conftest.err
26217   rm -f conftest.er1
26218   cat conftest.err >&5
26219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220   (exit $ac_status); } &&
26221          { ac_try='test -z "$ac_c_werror_flag"
26222                          || test ! -s conftest.err'
26223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26224   (eval $ac_try) 2>&5
26225   ac_status=$?
26226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227   (exit $ac_status); }; } &&
26228          { ac_try='test -s conftest.$ac_objext'
26229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26230   (eval $ac_try) 2>&5
26231   ac_status=$?
26232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233   (exit $ac_status); }; }; then
26234   ac_header_compiler=yes
26235 else
26236   echo "$as_me: failed program was:" >&5
26237 sed 's/^/| /' conftest.$ac_ext >&5
26238
26239 ac_header_compiler=no
26240 fi
26241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26243 echo "${ECHO_T}$ac_header_compiler" >&6
26244
26245 # Is the header present?
26246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26248 cat >conftest.$ac_ext <<_ACEOF
26249 /* confdefs.h.  */
26250 _ACEOF
26251 cat confdefs.h >>conftest.$ac_ext
26252 cat >>conftest.$ac_ext <<_ACEOF
26253 /* end confdefs.h.  */
26254 #include <$ac_header>
26255 _ACEOF
26256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26258   ac_status=$?
26259   grep -v '^ *+' conftest.er1 >conftest.err
26260   rm -f conftest.er1
26261   cat conftest.err >&5
26262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263   (exit $ac_status); } >/dev/null; then
26264   if test -s conftest.err; then
26265     ac_cpp_err=$ac_c_preproc_warn_flag
26266     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26267   else
26268     ac_cpp_err=
26269   fi
26270 else
26271   ac_cpp_err=yes
26272 fi
26273 if test -z "$ac_cpp_err"; then
26274   ac_header_preproc=yes
26275 else
26276   echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26278
26279   ac_header_preproc=no
26280 fi
26281 rm -f conftest.err conftest.$ac_ext
26282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26283 echo "${ECHO_T}$ac_header_preproc" >&6
26284
26285 # So?  What about this header?
26286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26287   yes:no: )
26288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26292     ac_header_preproc=yes
26293     ;;
26294   no:yes:* )
26295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26307     (
26308       cat <<\_ASBOX
26309 ## ------------------------------------------ ##
26310 ## Report this to the AC_PACKAGE_NAME lists.  ##
26311 ## ------------------------------------------ ##
26312 _ASBOX
26313     ) |
26314       sed "s/^/$as_me: WARNING:     /" >&2
26315     ;;
26316 esac
26317 echo "$as_me:$LINENO: checking for $ac_header" >&5
26318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26320   echo $ECHO_N "(cached) $ECHO_C" >&6
26321 else
26322   eval "$as_ac_Header=\$ac_header_preproc"
26323 fi
26324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26326
26327 fi
26328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26329   cat >>confdefs.h <<_ACEOF
26330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26331 _ACEOF
26332
26333 fi
26334
26335 done
26336
26337
26338
26339 for ac_func in sched_yield pthread_yield
26340 do
26341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26342 echo "$as_me:$LINENO: checking for $ac_func" >&5
26343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26344 if eval "test \"\${$as_ac_var+set}\" = set"; then
26345   echo $ECHO_N "(cached) $ECHO_C" >&6
26346 else
26347   cat >conftest.$ac_ext <<_ACEOF
26348 /* confdefs.h.  */
26349 _ACEOF
26350 cat confdefs.h >>conftest.$ac_ext
26351 cat >>conftest.$ac_ext <<_ACEOF
26352 /* end confdefs.h.  */
26353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26355 #define $ac_func innocuous_$ac_func
26356
26357 /* System header to define __stub macros and hopefully few prototypes,
26358     which can conflict with char $ac_func (); below.
26359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26360     <limits.h> exists even on freestanding compilers.  */
26361
26362 #ifdef __STDC__
26363 # include <limits.h>
26364 #else
26365 # include <assert.h>
26366 #endif
26367
26368 #undef $ac_func
26369
26370 /* Override any gcc2 internal prototype to avoid an error.  */
26371 #ifdef __cplusplus
26372 extern "C"
26373 {
26374 #endif
26375 /* We use char because int might match the return type of a gcc2
26376    builtin and then its argument prototype would still apply.  */
26377 char $ac_func ();
26378 /* The GNU C library defines this for functions which it implements
26379     to always fail with ENOSYS.  Some functions are actually named
26380     something starting with __ and the normal name is an alias.  */
26381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26382 choke me
26383 #else
26384 char (*f) () = $ac_func;
26385 #endif
26386 #ifdef __cplusplus
26387 }
26388 #endif
26389
26390 int
26391 main ()
26392 {
26393 return f != $ac_func;
26394   ;
26395   return 0;
26396 }
26397 _ACEOF
26398 rm -f conftest.$ac_objext conftest$ac_exeext
26399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26400   (eval $ac_link) 2>conftest.er1
26401   ac_status=$?
26402   grep -v '^ *+' conftest.er1 >conftest.err
26403   rm -f conftest.er1
26404   cat conftest.err >&5
26405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406   (exit $ac_status); } &&
26407          { ac_try='test -z "$ac_c_werror_flag"
26408                          || test ! -s conftest.err'
26409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26410   (eval $ac_try) 2>&5
26411   ac_status=$?
26412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413   (exit $ac_status); }; } &&
26414          { ac_try='test -s conftest$ac_exeext'
26415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26416   (eval $ac_try) 2>&5
26417   ac_status=$?
26418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419   (exit $ac_status); }; }; then
26420   eval "$as_ac_var=yes"
26421 else
26422   echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26424
26425 eval "$as_ac_var=no"
26426 fi
26427 rm -f conftest.err conftest.$ac_objext \
26428       conftest$ac_exeext conftest.$ac_ext
26429 fi
26430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26432 if test `eval echo '${'$as_ac_var'}'` = yes; then
26433   cat >>confdefs.h <<_ACEOF
26434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26435 _ACEOF
26436
26437 fi
26438 done
26439
26440
26441         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26442 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26443 if test "${ol_cv_header_linux_threads+set}" = set; then
26444   echo $ECHO_N "(cached) $ECHO_C" >&6
26445 else
26446   cat >conftest.$ac_ext <<_ACEOF
26447 /* confdefs.h.  */
26448 _ACEOF
26449 cat confdefs.h >>conftest.$ac_ext
26450 cat >>conftest.$ac_ext <<_ACEOF
26451 /* end confdefs.h.  */
26452 #include <pthread.h>
26453 _ACEOF
26454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26455   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26456   ol_cv_header_linux_threads=yes
26457 else
26458   ol_cv_header_linux_threads=no
26459 fi
26460 rm -f conftest*
26461
26462
26463 fi
26464 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26465 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26466         if test $ol_cv_header_linux_threads = yes; then
26467
26468 cat >>confdefs.h <<\_ACEOF
26469 #define HAVE_LINUX_THREADS 1
26470 _ACEOF
26471
26472         fi
26473
26474
26475
26476 for ac_header in mach/cthreads.h
26477 do
26478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26480   echo "$as_me:$LINENO: checking for $ac_header" >&5
26481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26483   echo $ECHO_N "(cached) $ECHO_C" >&6
26484 fi
26485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26487 else
26488   # Is the header compilable?
26489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26491 cat >conftest.$ac_ext <<_ACEOF
26492 /* confdefs.h.  */
26493 _ACEOF
26494 cat confdefs.h >>conftest.$ac_ext
26495 cat >>conftest.$ac_ext <<_ACEOF
26496 /* end confdefs.h.  */
26497 $ac_includes_default
26498 #include <$ac_header>
26499 _ACEOF
26500 rm -f conftest.$ac_objext
26501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26502   (eval $ac_compile) 2>conftest.er1
26503   ac_status=$?
26504   grep -v '^ *+' conftest.er1 >conftest.err
26505   rm -f conftest.er1
26506   cat conftest.err >&5
26507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508   (exit $ac_status); } &&
26509          { ac_try='test -z "$ac_c_werror_flag"
26510                          || test ! -s conftest.err'
26511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512   (eval $ac_try) 2>&5
26513   ac_status=$?
26514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515   (exit $ac_status); }; } &&
26516          { ac_try='test -s conftest.$ac_objext'
26517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518   (eval $ac_try) 2>&5
26519   ac_status=$?
26520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521   (exit $ac_status); }; }; then
26522   ac_header_compiler=yes
26523 else
26524   echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26526
26527 ac_header_compiler=no
26528 fi
26529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26531 echo "${ECHO_T}$ac_header_compiler" >&6
26532
26533 # Is the header present?
26534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26536 cat >conftest.$ac_ext <<_ACEOF
26537 /* confdefs.h.  */
26538 _ACEOF
26539 cat confdefs.h >>conftest.$ac_ext
26540 cat >>conftest.$ac_ext <<_ACEOF
26541 /* end confdefs.h.  */
26542 #include <$ac_header>
26543 _ACEOF
26544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26545   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26546   ac_status=$?
26547   grep -v '^ *+' conftest.er1 >conftest.err
26548   rm -f conftest.er1
26549   cat conftest.err >&5
26550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551   (exit $ac_status); } >/dev/null; then
26552   if test -s conftest.err; then
26553     ac_cpp_err=$ac_c_preproc_warn_flag
26554     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26555   else
26556     ac_cpp_err=
26557   fi
26558 else
26559   ac_cpp_err=yes
26560 fi
26561 if test -z "$ac_cpp_err"; then
26562   ac_header_preproc=yes
26563 else
26564   echo "$as_me: failed program was:" >&5
26565 sed 's/^/| /' conftest.$ac_ext >&5
26566
26567   ac_header_preproc=no
26568 fi
26569 rm -f conftest.err conftest.$ac_ext
26570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26571 echo "${ECHO_T}$ac_header_preproc" >&6
26572
26573 # So?  What about this header?
26574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26575   yes:no: )
26576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26580     ac_header_preproc=yes
26581     ;;
26582   no:yes:* )
26583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26595     (
26596       cat <<\_ASBOX
26597 ## ------------------------------------------ ##
26598 ## Report this to the AC_PACKAGE_NAME lists.  ##
26599 ## ------------------------------------------ ##
26600 _ASBOX
26601     ) |
26602       sed "s/^/$as_me: WARNING:     /" >&2
26603     ;;
26604 esac
26605 echo "$as_me:$LINENO: checking for $ac_header" >&5
26606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26608   echo $ECHO_N "(cached) $ECHO_C" >&6
26609 else
26610   eval "$as_ac_Header=\$ac_header_preproc"
26611 fi
26612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26614
26615 fi
26616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26617   cat >>confdefs.h <<_ACEOF
26618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26619 _ACEOF
26620
26621 fi
26622
26623 done
26624
26625
26626 for ac_header in lwp/lwp.h
26627 do
26628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26630   echo "$as_me:$LINENO: checking for $ac_header" >&5
26631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26633   echo $ECHO_N "(cached) $ECHO_C" >&6
26634 fi
26635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26637 else
26638   # Is the header compilable?
26639 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26641 cat >conftest.$ac_ext <<_ACEOF
26642 /* confdefs.h.  */
26643 _ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h.  */
26647 $ac_includes_default
26648 #include <$ac_header>
26649 _ACEOF
26650 rm -f conftest.$ac_objext
26651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26652   (eval $ac_compile) 2>conftest.er1
26653   ac_status=$?
26654   grep -v '^ *+' conftest.er1 >conftest.err
26655   rm -f conftest.er1
26656   cat conftest.err >&5
26657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658   (exit $ac_status); } &&
26659          { ac_try='test -z "$ac_c_werror_flag"
26660                          || test ! -s conftest.err'
26661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662   (eval $ac_try) 2>&5
26663   ac_status=$?
26664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665   (exit $ac_status); }; } &&
26666          { ac_try='test -s conftest.$ac_objext'
26667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26668   (eval $ac_try) 2>&5
26669   ac_status=$?
26670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671   (exit $ac_status); }; }; then
26672   ac_header_compiler=yes
26673 else
26674   echo "$as_me: failed program was:" >&5
26675 sed 's/^/| /' conftest.$ac_ext >&5
26676
26677 ac_header_compiler=no
26678 fi
26679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26681 echo "${ECHO_T}$ac_header_compiler" >&6
26682
26683 # Is the header present?
26684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26686 cat >conftest.$ac_ext <<_ACEOF
26687 /* confdefs.h.  */
26688 _ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h.  */
26692 #include <$ac_header>
26693 _ACEOF
26694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26696   ac_status=$?
26697   grep -v '^ *+' conftest.er1 >conftest.err
26698   rm -f conftest.er1
26699   cat conftest.err >&5
26700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701   (exit $ac_status); } >/dev/null; then
26702   if test -s conftest.err; then
26703     ac_cpp_err=$ac_c_preproc_warn_flag
26704     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26705   else
26706     ac_cpp_err=
26707   fi
26708 else
26709   ac_cpp_err=yes
26710 fi
26711 if test -z "$ac_cpp_err"; then
26712   ac_header_preproc=yes
26713 else
26714   echo "$as_me: failed program was:" >&5
26715 sed 's/^/| /' conftest.$ac_ext >&5
26716
26717   ac_header_preproc=no
26718 fi
26719 rm -f conftest.err conftest.$ac_ext
26720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26721 echo "${ECHO_T}$ac_header_preproc" >&6
26722
26723 # So?  What about this header?
26724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26725   yes:no: )
26726     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26730     ac_header_preproc=yes
26731     ;;
26732   no:yes:* )
26733     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26735     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26736 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26737     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26739     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26740 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26743     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26745     (
26746       cat <<\_ASBOX
26747 ## ------------------------------------------ ##
26748 ## Report this to the AC_PACKAGE_NAME lists.  ##
26749 ## ------------------------------------------ ##
26750 _ASBOX
26751     ) |
26752       sed "s/^/$as_me: WARNING:     /" >&2
26753     ;;
26754 esac
26755 echo "$as_me:$LINENO: checking for $ac_header" >&5
26756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26758   echo $ECHO_N "(cached) $ECHO_C" >&6
26759 else
26760   eval "$as_ac_Header=\$ac_header_preproc"
26761 fi
26762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26764
26765 fi
26766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26767   cat >>confdefs.h <<_ACEOF
26768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26769 _ACEOF
26770
26771 fi
26772
26773 done
26774
26775
26776
26777 for ac_header in thread.h synch.h
26778 do
26779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26781   echo "$as_me:$LINENO: checking for $ac_header" >&5
26782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26784   echo $ECHO_N "(cached) $ECHO_C" >&6
26785 fi
26786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26788 else
26789   # Is the header compilable?
26790 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26792 cat >conftest.$ac_ext <<_ACEOF
26793 /* confdefs.h.  */
26794 _ACEOF
26795 cat confdefs.h >>conftest.$ac_ext
26796 cat >>conftest.$ac_ext <<_ACEOF
26797 /* end confdefs.h.  */
26798 $ac_includes_default
26799 #include <$ac_header>
26800 _ACEOF
26801 rm -f conftest.$ac_objext
26802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26803   (eval $ac_compile) 2>conftest.er1
26804   ac_status=$?
26805   grep -v '^ *+' conftest.er1 >conftest.err
26806   rm -f conftest.er1
26807   cat conftest.err >&5
26808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809   (exit $ac_status); } &&
26810          { ac_try='test -z "$ac_c_werror_flag"
26811                          || test ! -s conftest.err'
26812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26813   (eval $ac_try) 2>&5
26814   ac_status=$?
26815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816   (exit $ac_status); }; } &&
26817          { ac_try='test -s conftest.$ac_objext'
26818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26819   (eval $ac_try) 2>&5
26820   ac_status=$?
26821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822   (exit $ac_status); }; }; then
26823   ac_header_compiler=yes
26824 else
26825   echo "$as_me: failed program was:" >&5
26826 sed 's/^/| /' conftest.$ac_ext >&5
26827
26828 ac_header_compiler=no
26829 fi
26830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26832 echo "${ECHO_T}$ac_header_compiler" >&6
26833
26834 # Is the header present?
26835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26837 cat >conftest.$ac_ext <<_ACEOF
26838 /* confdefs.h.  */
26839 _ACEOF
26840 cat confdefs.h >>conftest.$ac_ext
26841 cat >>conftest.$ac_ext <<_ACEOF
26842 /* end confdefs.h.  */
26843 #include <$ac_header>
26844 _ACEOF
26845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26846   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26847   ac_status=$?
26848   grep -v '^ *+' conftest.er1 >conftest.err
26849   rm -f conftest.er1
26850   cat conftest.err >&5
26851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852   (exit $ac_status); } >/dev/null; then
26853   if test -s conftest.err; then
26854     ac_cpp_err=$ac_c_preproc_warn_flag
26855     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26856   else
26857     ac_cpp_err=
26858   fi
26859 else
26860   ac_cpp_err=yes
26861 fi
26862 if test -z "$ac_cpp_err"; then
26863   ac_header_preproc=yes
26864 else
26865   echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26867
26868   ac_header_preproc=no
26869 fi
26870 rm -f conftest.err conftest.$ac_ext
26871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26872 echo "${ECHO_T}$ac_header_preproc" >&6
26873
26874 # So?  What about this header?
26875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26876   yes:no: )
26877     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26881     ac_header_preproc=yes
26882     ;;
26883   no:yes:* )
26884     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26886     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26887 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26888     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26890     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26891 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26894     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26896     (
26897       cat <<\_ASBOX
26898 ## ------------------------------------------ ##
26899 ## Report this to the AC_PACKAGE_NAME lists.  ##
26900 ## ------------------------------------------ ##
26901 _ASBOX
26902     ) |
26903       sed "s/^/$as_me: WARNING:     /" >&2
26904     ;;
26905 esac
26906 echo "$as_me:$LINENO: checking for $ac_header" >&5
26907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26909   echo $ECHO_N "(cached) $ECHO_C" >&6
26910 else
26911   eval "$as_ac_Header=\$ac_header_preproc"
26912 fi
26913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26915
26916 fi
26917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26918   cat >>confdefs.h <<_ACEOF
26919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26920 _ACEOF
26921
26922 fi
26923
26924 done
26925
26926 fi
26927
26928 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26929                         cat >>confdefs.h <<\_ACEOF
26930 #define REENTRANT 1
26931 _ACEOF
26932
26933         cat >>confdefs.h <<\_ACEOF
26934 #define _REENTRANT 1
26935 _ACEOF
26936
26937         cat >>confdefs.h <<\_ACEOF
26938 #define THREAD_SAFE 1
26939 _ACEOF
26940
26941         cat >>confdefs.h <<\_ACEOF
26942 #define _THREAD_SAFE 1
26943 _ACEOF
26944
26945         cat >>confdefs.h <<\_ACEOF
26946 #define THREADSAFE 1
26947 _ACEOF
26948
26949         cat >>confdefs.h <<\_ACEOF
26950 #define _THREADSAFE 1
26951 _ACEOF
26952
26953         cat >>confdefs.h <<\_ACEOF
26954 #define _SGI_MP_SOURCE 1
26955 _ACEOF
26956
26957
26958                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
26959 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26960 if test "${ol_cv_errno_thread_specific+set}" = set; then
26961   echo $ECHO_N "(cached) $ECHO_C" >&6
26962 else
26963
26964                 cat >conftest.$ac_ext <<_ACEOF
26965 /* confdefs.h.  */
26966 _ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h.  */
26970 #include <errno.h>
26971 int
26972 main ()
26973 {
26974 errno = 0;
26975   ;
26976   return 0;
26977 }
26978 _ACEOF
26979 rm -f conftest.$ac_objext conftest$ac_exeext
26980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26981   (eval $ac_link) 2>conftest.er1
26982   ac_status=$?
26983   grep -v '^ *+' conftest.er1 >conftest.err
26984   rm -f conftest.er1
26985   cat conftest.err >&5
26986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987   (exit $ac_status); } &&
26988          { ac_try='test -z "$ac_c_werror_flag"
26989                          || test ! -s conftest.err'
26990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26991   (eval $ac_try) 2>&5
26992   ac_status=$?
26993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994   (exit $ac_status); }; } &&
26995          { ac_try='test -s conftest$ac_exeext'
26996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26997   (eval $ac_try) 2>&5
26998   ac_status=$?
26999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000   (exit $ac_status); }; }; then
27001   ol_cv_errno_thread_specific=yes
27002 else
27003   echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27005
27006 ol_cv_errno_thread_specific=no
27007 fi
27008 rm -f conftest.err conftest.$ac_objext \
27009       conftest$ac_exeext conftest.$ac_ext
27010
27011 fi
27012 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27013 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27014
27015                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27016 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27017 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27018   echo $ECHO_N "(cached) $ECHO_C" >&6
27019 else
27020
27021                 cat >conftest.$ac_ext <<_ACEOF
27022 /* confdefs.h.  */
27023 _ACEOF
27024 cat confdefs.h >>conftest.$ac_ext
27025 cat >>conftest.$ac_ext <<_ACEOF
27026 /* end confdefs.h.  */
27027 #include <netdb.h>
27028 int
27029 main ()
27030 {
27031 h_errno = 0;
27032   ;
27033   return 0;
27034 }
27035 _ACEOF
27036 rm -f conftest.$ac_objext conftest$ac_exeext
27037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27038   (eval $ac_link) 2>conftest.er1
27039   ac_status=$?
27040   grep -v '^ *+' conftest.er1 >conftest.err
27041   rm -f conftest.er1
27042   cat conftest.err >&5
27043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044   (exit $ac_status); } &&
27045          { ac_try='test -z "$ac_c_werror_flag"
27046                          || test ! -s conftest.err'
27047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27048   (eval $ac_try) 2>&5
27049   ac_status=$?
27050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051   (exit $ac_status); }; } &&
27052          { ac_try='test -s conftest$ac_exeext'
27053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27054   (eval $ac_try) 2>&5
27055   ac_status=$?
27056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057   (exit $ac_status); }; }; then
27058   ol_cv_h_errno_thread_specific=yes
27059 else
27060   echo "$as_me: failed program was:" >&5
27061 sed 's/^/| /' conftest.$ac_ext >&5
27062
27063 ol_cv_h_errno_thread_specific=no
27064 fi
27065 rm -f conftest.err conftest.$ac_objext \
27066       conftest$ac_exeext conftest.$ac_ext
27067
27068 fi
27069 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27070 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27071
27072         if test $ol_cv_errno_thread_specific != yes ||
27073            test $ol_cv_h_errno_thread_specific != yes ; then
27074                 LIBS="$LTHREAD_LIBS $LIBS"
27075                 LTHREAD_LIBS=""
27076         fi
27077
27078 fi
27079
27080 if test $ol_link_threads = no ; then
27081         if test $ol_with_threads = yes ; then
27082                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27083 echo "$as_me: error: no suitable thread support" >&2;}
27084    { (exit 1); exit 1; }; }
27085         fi
27086
27087         if test $ol_with_threads = auto ; then
27088                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27089 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27090                 ol_with_threads=no
27091         fi
27092
27093
27094 cat >>confdefs.h <<\_ACEOF
27095 #define NO_THREADS 1
27096 _ACEOF
27097
27098         LTHREAD_LIBS=""
27099 fi
27100
27101 if test $ol_link_threads != no ; then
27102
27103 cat >>confdefs.h <<\_ACEOF
27104 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27105 _ACEOF
27106
27107 fi
27108
27109
27110
27111
27112 for ac_func in \
27113         ctime_r                 \
27114         gethostbyname_r gethostbyaddr_r \
27115
27116 do
27117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27118 echo "$as_me:$LINENO: checking for $ac_func" >&5
27119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27120 if eval "test \"\${$as_ac_var+set}\" = set"; then
27121   echo $ECHO_N "(cached) $ECHO_C" >&6
27122 else
27123   cat >conftest.$ac_ext <<_ACEOF
27124 /* confdefs.h.  */
27125 _ACEOF
27126 cat confdefs.h >>conftest.$ac_ext
27127 cat >>conftest.$ac_ext <<_ACEOF
27128 /* end confdefs.h.  */
27129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27131 #define $ac_func innocuous_$ac_func
27132
27133 /* System header to define __stub macros and hopefully few prototypes,
27134     which can conflict with char $ac_func (); below.
27135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27136     <limits.h> exists even on freestanding compilers.  */
27137
27138 #ifdef __STDC__
27139 # include <limits.h>
27140 #else
27141 # include <assert.h>
27142 #endif
27143
27144 #undef $ac_func
27145
27146 /* Override any gcc2 internal prototype to avoid an error.  */
27147 #ifdef __cplusplus
27148 extern "C"
27149 {
27150 #endif
27151 /* We use char because int might match the return type of a gcc2
27152    builtin and then its argument prototype would still apply.  */
27153 char $ac_func ();
27154 /* The GNU C library defines this for functions which it implements
27155     to always fail with ENOSYS.  Some functions are actually named
27156     something starting with __ and the normal name is an alias.  */
27157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27158 choke me
27159 #else
27160 char (*f) () = $ac_func;
27161 #endif
27162 #ifdef __cplusplus
27163 }
27164 #endif
27165
27166 int
27167 main ()
27168 {
27169 return f != $ac_func;
27170   ;
27171   return 0;
27172 }
27173 _ACEOF
27174 rm -f conftest.$ac_objext conftest$ac_exeext
27175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27176   (eval $ac_link) 2>conftest.er1
27177   ac_status=$?
27178   grep -v '^ *+' conftest.er1 >conftest.err
27179   rm -f conftest.er1
27180   cat conftest.err >&5
27181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182   (exit $ac_status); } &&
27183          { ac_try='test -z "$ac_c_werror_flag"
27184                          || test ! -s conftest.err'
27185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27186   (eval $ac_try) 2>&5
27187   ac_status=$?
27188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189   (exit $ac_status); }; } &&
27190          { ac_try='test -s conftest$ac_exeext'
27191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192   (eval $ac_try) 2>&5
27193   ac_status=$?
27194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195   (exit $ac_status); }; }; then
27196   eval "$as_ac_var=yes"
27197 else
27198   echo "$as_me: failed program was:" >&5
27199 sed 's/^/| /' conftest.$ac_ext >&5
27200
27201 eval "$as_ac_var=no"
27202 fi
27203 rm -f conftest.err conftest.$ac_objext \
27204       conftest$ac_exeext conftest.$ac_ext
27205 fi
27206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27208 if test `eval echo '${'$as_ac_var'}'` = yes; then
27209   cat >>confdefs.h <<_ACEOF
27210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27211 _ACEOF
27212
27213 fi
27214 done
27215
27216
27217 if test "$ac_cv_func_ctime_r" = no ; then
27218         ol_cv_func_ctime_r_nargs=0
27219 else
27220         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27221 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27222 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27223   echo $ECHO_N "(cached) $ECHO_C" >&6
27224 else
27225   cat >conftest.$ac_ext <<_ACEOF
27226 /* confdefs.h.  */
27227 _ACEOF
27228 cat confdefs.h >>conftest.$ac_ext
27229 cat >>conftest.$ac_ext <<_ACEOF
27230 /* end confdefs.h.  */
27231 #include <time.h>
27232 int
27233 main ()
27234 {
27235 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27236   ;
27237   return 0;
27238 }
27239 _ACEOF
27240 rm -f conftest.$ac_objext
27241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27242   (eval $ac_compile) 2>conftest.er1
27243   ac_status=$?
27244   grep -v '^ *+' conftest.er1 >conftest.err
27245   rm -f conftest.er1
27246   cat conftest.err >&5
27247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248   (exit $ac_status); } &&
27249          { ac_try='test -z "$ac_c_werror_flag"
27250                          || test ! -s conftest.err'
27251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27252   (eval $ac_try) 2>&5
27253   ac_status=$?
27254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255   (exit $ac_status); }; } &&
27256          { ac_try='test -s conftest.$ac_objext'
27257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258   (eval $ac_try) 2>&5
27259   ac_status=$?
27260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261   (exit $ac_status); }; }; then
27262   ol_cv_func_ctime_r_nargs3=yes
27263 else
27264   echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27266
27267 ol_cv_func_ctime_r_nargs3=no
27268 fi
27269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27270
27271         cat >conftest.$ac_ext <<_ACEOF
27272 /* confdefs.h.  */
27273 _ACEOF
27274 cat confdefs.h >>conftest.$ac_ext
27275 cat >>conftest.$ac_ext <<_ACEOF
27276 /* end confdefs.h.  */
27277 #include <time.h>
27278 int
27279 main ()
27280 {
27281 time_t ti; char *buffer; ctime_r(&ti,buffer);
27282   ;
27283   return 0;
27284 }
27285 _ACEOF
27286 rm -f conftest.$ac_objext
27287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27288   (eval $ac_compile) 2>conftest.er1
27289   ac_status=$?
27290   grep -v '^ *+' conftest.er1 >conftest.err
27291   rm -f conftest.er1
27292   cat conftest.err >&5
27293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294   (exit $ac_status); } &&
27295          { ac_try='test -z "$ac_c_werror_flag"
27296                          || test ! -s conftest.err'
27297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27298   (eval $ac_try) 2>&5
27299   ac_status=$?
27300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301   (exit $ac_status); }; } &&
27302          { ac_try='test -s conftest.$ac_objext'
27303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27304   (eval $ac_try) 2>&5
27305   ac_status=$?
27306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307   (exit $ac_status); }; }; then
27308   ol_cv_func_ctime_r_nargs2=yes
27309 else
27310   echo "$as_me: failed program was:" >&5
27311 sed 's/^/| /' conftest.$ac_ext >&5
27312
27313 ol_cv_func_ctime_r_nargs2=no
27314 fi
27315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27316
27317         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27318            test $ol_cv_func_ctime_r_nargs2 = no ; then
27319
27320                 ol_cv_func_ctime_r_nargs=3
27321
27322         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27323              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27324
27325                 ol_cv_func_ctime_r_nargs=2
27326
27327         else
27328                 ol_cv_func_ctime_r_nargs=0
27329         fi
27330
27331 fi
27332 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27333 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27334
27335   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27336
27337 cat >>confdefs.h <<_ACEOF
27338 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27339 _ACEOF
27340
27341   fi
27342
27343 fi
27344
27345 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27346         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27347 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27348 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27349   echo $ECHO_N "(cached) $ECHO_C" >&6
27350 else
27351   cat >conftest.$ac_ext <<_ACEOF
27352 /* confdefs.h.  */
27353 _ACEOF
27354 cat confdefs.h >>conftest.$ac_ext
27355 cat >>conftest.$ac_ext <<_ACEOF
27356 /* end confdefs.h.  */
27357 #include <sys/types.h>
27358 #include <sys/socket.h>
27359 #include <netinet/in.h>
27360 #include <netdb.h>
27361 #define BUFSIZE (sizeof(struct hostent)+10)
27362 int
27363 main ()
27364 {
27365 struct hostent hent; char buffer[BUFSIZE];
27366                 int bufsize=BUFSIZE;int h_errno;
27367                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27368                         buffer, bufsize, &h_errno);
27369   ;
27370   return 0;
27371 }
27372 _ACEOF
27373 rm -f conftest.$ac_objext
27374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27375   (eval $ac_compile) 2>conftest.er1
27376   ac_status=$?
27377   grep -v '^ *+' conftest.er1 >conftest.err
27378   rm -f conftest.er1
27379   cat conftest.err >&5
27380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381   (exit $ac_status); } &&
27382          { ac_try='test -z "$ac_c_werror_flag"
27383                          || test ! -s conftest.err'
27384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27385   (eval $ac_try) 2>&5
27386   ac_status=$?
27387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388   (exit $ac_status); }; } &&
27389          { ac_try='test -s conftest.$ac_objext'
27390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27391   (eval $ac_try) 2>&5
27392   ac_status=$?
27393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394   (exit $ac_status); }; }; then
27395   ol_cv_func_gethostbyname_r_nargs5=yes
27396 else
27397   echo "$as_me: failed program was:" >&5
27398 sed 's/^/| /' conftest.$ac_ext >&5
27399
27400 ol_cv_func_gethostbyname_r_nargs5=no
27401 fi
27402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27403
27404         cat >conftest.$ac_ext <<_ACEOF
27405 /* confdefs.h.  */
27406 _ACEOF
27407 cat confdefs.h >>conftest.$ac_ext
27408 cat >>conftest.$ac_ext <<_ACEOF
27409 /* end confdefs.h.  */
27410 #include <sys/types.h>
27411 #include <sys/socket.h>
27412 #include <netinet/in.h>
27413 #include <netdb.h>
27414 #define BUFSIZE (sizeof(struct hostent)+10)
27415 int
27416 main ()
27417 {
27418 struct hostent hent;struct hostent *rhent;
27419                 char buffer[BUFSIZE];
27420                 int bufsize=BUFSIZE;int h_errno;
27421                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27422                         &rhent, &h_errno);
27423   ;
27424   return 0;
27425 }
27426 _ACEOF
27427 rm -f conftest.$ac_objext
27428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27429   (eval $ac_compile) 2>conftest.er1
27430   ac_status=$?
27431   grep -v '^ *+' conftest.er1 >conftest.err
27432   rm -f conftest.er1
27433   cat conftest.err >&5
27434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27435   (exit $ac_status); } &&
27436          { ac_try='test -z "$ac_c_werror_flag"
27437                          || test ! -s conftest.err'
27438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27439   (eval $ac_try) 2>&5
27440   ac_status=$?
27441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442   (exit $ac_status); }; } &&
27443          { ac_try='test -s conftest.$ac_objext'
27444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27445   (eval $ac_try) 2>&5
27446   ac_status=$?
27447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448   (exit $ac_status); }; }; then
27449   ol_cv_func_gethostbyname_r_nargs6=yes
27450 else
27451   echo "$as_me: failed program was:" >&5
27452 sed 's/^/| /' conftest.$ac_ext >&5
27453
27454 ol_cv_func_gethostbyname_r_nargs6=no
27455 fi
27456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27457
27458         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27459            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27460
27461                 ol_cv_func_gethostbyname_r_nargs=5
27462
27463         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27464              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27465
27466                 ol_cv_func_gethostbyname_r_nargs=6
27467
27468         else
27469                 ol_cv_func_gethostbyname_r_nargs=0
27470         fi
27471
27472 fi
27473 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27474 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27475   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27476
27477 cat >>confdefs.h <<_ACEOF
27478 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27479 _ACEOF
27480
27481   fi
27482
27483 else
27484         ol_cv_func_gethostbyname_r_nargs=0
27485 fi
27486
27487 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27488         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27489 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27490 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27491   echo $ECHO_N "(cached) $ECHO_C" >&6
27492 else
27493   cat >conftest.$ac_ext <<_ACEOF
27494 /* confdefs.h.  */
27495 _ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h.  */
27499 #include <sys/types.h>
27500 #include <sys/socket.h>
27501 #include <netinet/in.h>
27502 #include <netdb.h>
27503 #define BUFSIZE (sizeof(struct hostent)+10)
27504 int
27505 main ()
27506 {
27507 struct hostent hent; char buffer[BUFSIZE];
27508             struct in_addr add;
27509             size_t alen=sizeof(struct in_addr);
27510             int bufsize=BUFSIZE;int h_errno;
27511                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27512                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27513   ;
27514   return 0;
27515 }
27516 _ACEOF
27517 rm -f conftest.$ac_objext
27518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27519   (eval $ac_compile) 2>conftest.er1
27520   ac_status=$?
27521   grep -v '^ *+' conftest.er1 >conftest.err
27522   rm -f conftest.er1
27523   cat conftest.err >&5
27524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525   (exit $ac_status); } &&
27526          { ac_try='test -z "$ac_c_werror_flag"
27527                          || test ! -s conftest.err'
27528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27529   (eval $ac_try) 2>&5
27530   ac_status=$?
27531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532   (exit $ac_status); }; } &&
27533          { ac_try='test -s conftest.$ac_objext'
27534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27535   (eval $ac_try) 2>&5
27536   ac_status=$?
27537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538   (exit $ac_status); }; }; then
27539   ol_cv_func_gethostbyaddr_r_nargs7=yes
27540 else
27541   echo "$as_me: failed program was:" >&5
27542 sed 's/^/| /' conftest.$ac_ext >&5
27543
27544 ol_cv_func_gethostbyaddr_r_nargs7=no
27545 fi
27546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27547
27548         cat >conftest.$ac_ext <<_ACEOF
27549 /* confdefs.h.  */
27550 _ACEOF
27551 cat confdefs.h >>conftest.$ac_ext
27552 cat >>conftest.$ac_ext <<_ACEOF
27553 /* end confdefs.h.  */
27554 #include <sys/types.h>
27555 #include <sys/socket.h>
27556 #include <netinet/in.h>
27557 #include <netdb.h>
27558 #define BUFSIZE (sizeof(struct hostent)+10)
27559 int
27560 main ()
27561 {
27562 struct hostent hent;
27563                 struct hostent *rhent; char buffer[BUFSIZE];
27564                 struct in_addr add;
27565                 size_t alen=sizeof(struct in_addr);
27566                 int bufsize=BUFSIZE;int h_errno;
27567                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27568                         alen, AF_INET, &hent, buffer, bufsize,
27569                         &rhent, &h_errno);
27570   ;
27571   return 0;
27572 }
27573 _ACEOF
27574 rm -f conftest.$ac_objext
27575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27576   (eval $ac_compile) 2>conftest.er1
27577   ac_status=$?
27578   grep -v '^ *+' conftest.er1 >conftest.err
27579   rm -f conftest.er1
27580   cat conftest.err >&5
27581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582   (exit $ac_status); } &&
27583          { ac_try='test -z "$ac_c_werror_flag"
27584                          || test ! -s conftest.err'
27585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27586   (eval $ac_try) 2>&5
27587   ac_status=$?
27588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589   (exit $ac_status); }; } &&
27590          { ac_try='test -s conftest.$ac_objext'
27591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27592   (eval $ac_try) 2>&5
27593   ac_status=$?
27594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595   (exit $ac_status); }; }; then
27596   ol_cv_func_gethostbyaddr_r_nargs8=yes
27597 else
27598   echo "$as_me: failed program was:" >&5
27599 sed 's/^/| /' conftest.$ac_ext >&5
27600
27601 ol_cv_func_gethostbyaddr_r_nargs8=no
27602 fi
27603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27604
27605         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27606            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27607
27608                 ol_cv_func_gethostbyaddr_r_nargs=7
27609
27610         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27611              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27612
27613                 ol_cv_func_gethostbyaddr_r_nargs=8
27614
27615         else
27616                 ol_cv_func_gethostbyaddr_r_nargs=0
27617         fi
27618
27619 fi
27620 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27621 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27622   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27623
27624 cat >>confdefs.h <<_ACEOF
27625 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27626 _ACEOF
27627
27628   fi
27629
27630 else
27631         ol_cv_func_gethostbyaddr_r_nargs=0
27632 fi
27633
27634 ol_link_ldbm=no
27635
27636 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27637
27638         if test $ol_enable_ldbm_api = bcompat; then \
27639
27640
27641 for ac_header in db_185.h db.h
27642 do
27643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27645   echo "$as_me:$LINENO: checking for $ac_header" >&5
27646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27648   echo $ECHO_N "(cached) $ECHO_C" >&6
27649 fi
27650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27652 else
27653   # Is the header compilable?
27654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27656 cat >conftest.$ac_ext <<_ACEOF
27657 /* confdefs.h.  */
27658 _ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h.  */
27662 $ac_includes_default
27663 #include <$ac_header>
27664 _ACEOF
27665 rm -f conftest.$ac_objext
27666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27667   (eval $ac_compile) 2>conftest.er1
27668   ac_status=$?
27669   grep -v '^ *+' conftest.er1 >conftest.err
27670   rm -f conftest.er1
27671   cat conftest.err >&5
27672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673   (exit $ac_status); } &&
27674          { ac_try='test -z "$ac_c_werror_flag"
27675                          || test ! -s conftest.err'
27676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27677   (eval $ac_try) 2>&5
27678   ac_status=$?
27679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680   (exit $ac_status); }; } &&
27681          { ac_try='test -s conftest.$ac_objext'
27682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27683   (eval $ac_try) 2>&5
27684   ac_status=$?
27685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686   (exit $ac_status); }; }; then
27687   ac_header_compiler=yes
27688 else
27689   echo "$as_me: failed program was:" >&5
27690 sed 's/^/| /' conftest.$ac_ext >&5
27691
27692 ac_header_compiler=no
27693 fi
27694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27696 echo "${ECHO_T}$ac_header_compiler" >&6
27697
27698 # Is the header present?
27699 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27701 cat >conftest.$ac_ext <<_ACEOF
27702 /* confdefs.h.  */
27703 _ACEOF
27704 cat confdefs.h >>conftest.$ac_ext
27705 cat >>conftest.$ac_ext <<_ACEOF
27706 /* end confdefs.h.  */
27707 #include <$ac_header>
27708 _ACEOF
27709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27710   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27711   ac_status=$?
27712   grep -v '^ *+' conftest.er1 >conftest.err
27713   rm -f conftest.er1
27714   cat conftest.err >&5
27715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716   (exit $ac_status); } >/dev/null; then
27717   if test -s conftest.err; then
27718     ac_cpp_err=$ac_c_preproc_warn_flag
27719     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27720   else
27721     ac_cpp_err=
27722   fi
27723 else
27724   ac_cpp_err=yes
27725 fi
27726 if test -z "$ac_cpp_err"; then
27727   ac_header_preproc=yes
27728 else
27729   echo "$as_me: failed program was:" >&5
27730 sed 's/^/| /' conftest.$ac_ext >&5
27731
27732   ac_header_preproc=no
27733 fi
27734 rm -f conftest.err conftest.$ac_ext
27735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27736 echo "${ECHO_T}$ac_header_preproc" >&6
27737
27738 # So?  What about this header?
27739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27740   yes:no: )
27741     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27745     ac_header_preproc=yes
27746     ;;
27747   no:yes:* )
27748     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27750     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27751 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27752     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27754     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27755 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27758     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27760     (
27761       cat <<\_ASBOX
27762 ## ------------------------------------------ ##
27763 ## Report this to the AC_PACKAGE_NAME lists.  ##
27764 ## ------------------------------------------ ##
27765 _ASBOX
27766     ) |
27767       sed "s/^/$as_me: WARNING:     /" >&2
27768     ;;
27769 esac
27770 echo "$as_me:$LINENO: checking for $ac_header" >&5
27771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27773   echo $ECHO_N "(cached) $ECHO_C" >&6
27774 else
27775   eval "$as_ac_Header=\$ac_header_preproc"
27776 fi
27777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27779
27780 fi
27781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27782   cat >>confdefs.h <<_ACEOF
27783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27784 _ACEOF
27785
27786 fi
27787
27788 done
27789
27790 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27791         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27792 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27793 if test "${ol_cv_header_db1+set}" = set; then
27794   echo $ECHO_N "(cached) $ECHO_C" >&6
27795 else
27796
27797                 cat >conftest.$ac_ext <<_ACEOF
27798 /* confdefs.h.  */
27799 _ACEOF
27800 cat confdefs.h >>conftest.$ac_ext
27801 cat >>conftest.$ac_ext <<_ACEOF
27802 /* end confdefs.h.  */
27803
27804 #if HAVE_DB_185_H
27805 #       include <db_185.h>
27806 #else
27807 #       include <db.h>
27808 #endif
27809
27810  /* this check could be improved */
27811 #ifndef DB_VERSION_MAJOR
27812 #       define DB_VERSION_MAJOR 1
27813 #endif
27814
27815 #if DB_VERSION_MAJOR == 1
27816         __db_version_1
27817 #endif
27818
27819 _ACEOF
27820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27821   $EGREP "__db_version_1" >/dev/null 2>&1; then
27822   ol_cv_header_db1=yes
27823 else
27824   ol_cv_header_db1=no
27825 fi
27826 rm -f conftest*
27827
27828 fi
27829 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27830 echo "${ECHO_T}$ol_cv_header_db1" >&6
27831
27832         if test $ol_cv_header_db1 = yes ; then
27833                 ol_cv_lib_db=no
27834 if test $ol_cv_lib_db = no ; then
27835         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
27836 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
27837 if test "${ol_cv_db_none+set}" = set; then
27838   echo $ECHO_N "(cached) $ECHO_C" >&6
27839 else
27840
27841         ol_DB_LIB=
27842         ol_LIBS=$LIBS
27843         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27844
27845         cat >conftest.$ac_ext <<_ACEOF
27846 /* confdefs.h.  */
27847 _ACEOF
27848 cat confdefs.h >>conftest.$ac_ext
27849 cat >>conftest.$ac_ext <<_ACEOF
27850 /* end confdefs.h.  */
27851
27852 #ifdef HAVE_DB_185_H
27853 # include <db_185.h>
27854 #else
27855 # include <db.h>
27856 #endif
27857
27858 #ifndef DB_VERSION_MAJOR
27859 # define DB_VERSION_MAJOR 1
27860 #endif
27861
27862 #ifndef NULL
27863 #define NULL ((void*)0)
27864 #endif
27865
27866 int
27867 main ()
27868 {
27869
27870 #if DB_VERSION_MAJOR > 1
27871         {
27872                 char *version;
27873                 int major, minor, patch;
27874
27875                 version = db_version( &major, &minor, &patch );
27876
27877                 if( major != DB_VERSION_MAJOR ||
27878                         minor < DB_VERSION_MINOR )
27879                 {
27880                         printf("Berkeley DB version mismatch\n"
27881                                 "\theader: %s\n\tlibrary: %s\n",
27882                                 DB_VERSION_STRING, version);
27883                         return 1;
27884                 }
27885         }
27886 #endif
27887
27888 #if DB_VERSION_MAJOR > 2
27889         db_env_create( NULL, 0 );
27890 #elif DB_VERSION_MAJOR > 1
27891         db_appexit( NULL );
27892 #else
27893         (void) dbopen( NULL, 0, 0, 0, NULL);
27894 #endif
27895
27896   ;
27897   return 0;
27898 }
27899 _ACEOF
27900 rm -f conftest.$ac_objext conftest$ac_exeext
27901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27902   (eval $ac_link) 2>conftest.er1
27903   ac_status=$?
27904   grep -v '^ *+' conftest.er1 >conftest.err
27905   rm -f conftest.er1
27906   cat conftest.err >&5
27907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908   (exit $ac_status); } &&
27909          { ac_try='test -z "$ac_c_werror_flag"
27910                          || test ! -s conftest.err'
27911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912   (eval $ac_try) 2>&5
27913   ac_status=$?
27914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915   (exit $ac_status); }; } &&
27916          { ac_try='test -s conftest$ac_exeext'
27917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27918   (eval $ac_try) 2>&5
27919   ac_status=$?
27920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921   (exit $ac_status); }; }; then
27922   ol_cv_db_none=yes
27923 else
27924   echo "$as_me: failed program was:" >&5
27925 sed 's/^/| /' conftest.$ac_ext >&5
27926
27927 ol_cv_db_none=no
27928 fi
27929 rm -f conftest.err conftest.$ac_objext \
27930       conftest$ac_exeext conftest.$ac_ext
27931
27932         LIBS="$ol_LIBS"
27933
27934 fi
27935 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
27936 echo "${ECHO_T}$ol_cv_db_none" >&6
27937
27938         if test $ol_cv_db_none = yes ; then
27939                 ol_cv_lib_db=yes
27940         fi
27941 fi
27942
27943 if test $ol_cv_lib_db = no ; then
27944         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
27945 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
27946 if test "${ol_cv_db_db43+set}" = set; then
27947   echo $ECHO_N "(cached) $ECHO_C" >&6
27948 else
27949
27950         ol_DB_LIB=-ldb43
27951         ol_LIBS=$LIBS
27952         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27953
27954         cat >conftest.$ac_ext <<_ACEOF
27955 /* confdefs.h.  */
27956 _ACEOF
27957 cat confdefs.h >>conftest.$ac_ext
27958 cat >>conftest.$ac_ext <<_ACEOF
27959 /* end confdefs.h.  */
27960
27961 #ifdef HAVE_DB_185_H
27962 # include <db_185.h>
27963 #else
27964 # include <db.h>
27965 #endif
27966
27967 #ifndef DB_VERSION_MAJOR
27968 # define DB_VERSION_MAJOR 1
27969 #endif
27970
27971 #ifndef NULL
27972 #define NULL ((void*)0)
27973 #endif
27974
27975 int
27976 main ()
27977 {
27978
27979 #if DB_VERSION_MAJOR > 1
27980         {
27981                 char *version;
27982                 int major, minor, patch;
27983
27984                 version = db_version( &major, &minor, &patch );
27985
27986                 if( major != DB_VERSION_MAJOR ||
27987                         minor < DB_VERSION_MINOR )
27988                 {
27989                         printf("Berkeley DB version mismatch\n"
27990                                 "\theader: %s\n\tlibrary: %s\n",
27991                                 DB_VERSION_STRING, version);
27992                         return 1;
27993                 }
27994         }
27995 #endif
27996
27997 #if DB_VERSION_MAJOR > 2
27998         db_env_create( NULL, 0 );
27999 #elif DB_VERSION_MAJOR > 1
28000         db_appexit( NULL );
28001 #else
28002         (void) dbopen( NULL, 0, 0, 0, NULL);
28003 #endif
28004
28005   ;
28006   return 0;
28007 }
28008 _ACEOF
28009 rm -f conftest.$ac_objext conftest$ac_exeext
28010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28011   (eval $ac_link) 2>conftest.er1
28012   ac_status=$?
28013   grep -v '^ *+' conftest.er1 >conftest.err
28014   rm -f conftest.er1
28015   cat conftest.err >&5
28016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017   (exit $ac_status); } &&
28018          { ac_try='test -z "$ac_c_werror_flag"
28019                          || test ! -s conftest.err'
28020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28021   (eval $ac_try) 2>&5
28022   ac_status=$?
28023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024   (exit $ac_status); }; } &&
28025          { ac_try='test -s conftest$ac_exeext'
28026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28027   (eval $ac_try) 2>&5
28028   ac_status=$?
28029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030   (exit $ac_status); }; }; then
28031   ol_cv_db_db43=yes
28032 else
28033   echo "$as_me: failed program was:" >&5
28034 sed 's/^/| /' conftest.$ac_ext >&5
28035
28036 ol_cv_db_db43=no
28037 fi
28038 rm -f conftest.err conftest.$ac_objext \
28039       conftest$ac_exeext conftest.$ac_ext
28040
28041         LIBS="$ol_LIBS"
28042
28043 fi
28044 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28045 echo "${ECHO_T}$ol_cv_db_db43" >&6
28046
28047         if test $ol_cv_db_db43 = yes ; then
28048                 ol_cv_lib_db=-ldb43
28049         fi
28050 fi
28051
28052 if test $ol_cv_lib_db = no ; then
28053         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28054 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28055 if test "${ol_cv_db_db_43+set}" = set; then
28056   echo $ECHO_N "(cached) $ECHO_C" >&6
28057 else
28058
28059         ol_DB_LIB=-ldb-43
28060         ol_LIBS=$LIBS
28061         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28062
28063         cat >conftest.$ac_ext <<_ACEOF
28064 /* confdefs.h.  */
28065 _ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h.  */
28069
28070 #ifdef HAVE_DB_185_H
28071 # include <db_185.h>
28072 #else
28073 # include <db.h>
28074 #endif
28075
28076 #ifndef DB_VERSION_MAJOR
28077 # define DB_VERSION_MAJOR 1
28078 #endif
28079
28080 #ifndef NULL
28081 #define NULL ((void*)0)
28082 #endif
28083
28084 int
28085 main ()
28086 {
28087
28088 #if DB_VERSION_MAJOR > 1
28089         {
28090                 char *version;
28091                 int major, minor, patch;
28092
28093                 version = db_version( &major, &minor, &patch );
28094
28095                 if( major != DB_VERSION_MAJOR ||
28096                         minor < DB_VERSION_MINOR )
28097                 {
28098                         printf("Berkeley DB version mismatch\n"
28099                                 "\theader: %s\n\tlibrary: %s\n",
28100                                 DB_VERSION_STRING, version);
28101                         return 1;
28102                 }
28103         }
28104 #endif
28105
28106 #if DB_VERSION_MAJOR > 2
28107         db_env_create( NULL, 0 );
28108 #elif DB_VERSION_MAJOR > 1
28109         db_appexit( NULL );
28110 #else
28111         (void) dbopen( NULL, 0, 0, 0, NULL);
28112 #endif
28113
28114   ;
28115   return 0;
28116 }
28117 _ACEOF
28118 rm -f conftest.$ac_objext conftest$ac_exeext
28119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28120   (eval $ac_link) 2>conftest.er1
28121   ac_status=$?
28122   grep -v '^ *+' conftest.er1 >conftest.err
28123   rm -f conftest.er1
28124   cat conftest.err >&5
28125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126   (exit $ac_status); } &&
28127          { ac_try='test -z "$ac_c_werror_flag"
28128                          || test ! -s conftest.err'
28129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130   (eval $ac_try) 2>&5
28131   ac_status=$?
28132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133   (exit $ac_status); }; } &&
28134          { ac_try='test -s conftest$ac_exeext'
28135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136   (eval $ac_try) 2>&5
28137   ac_status=$?
28138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139   (exit $ac_status); }; }; then
28140   ol_cv_db_db_43=yes
28141 else
28142   echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.$ac_ext >&5
28144
28145 ol_cv_db_db_43=no
28146 fi
28147 rm -f conftest.err conftest.$ac_objext \
28148       conftest$ac_exeext conftest.$ac_ext
28149
28150         LIBS="$ol_LIBS"
28151
28152 fi
28153 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28154 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28155
28156         if test $ol_cv_db_db_43 = yes ; then
28157                 ol_cv_lib_db=-ldb-43
28158         fi
28159 fi
28160
28161 if test $ol_cv_lib_db = no ; then
28162         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28163 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28164 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28165   echo $ECHO_N "(cached) $ECHO_C" >&6
28166 else
28167
28168         ol_DB_LIB=-ldb-4.3
28169         ol_LIBS=$LIBS
28170         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28171
28172         cat >conftest.$ac_ext <<_ACEOF
28173 /* confdefs.h.  */
28174 _ACEOF
28175 cat confdefs.h >>conftest.$ac_ext
28176 cat >>conftest.$ac_ext <<_ACEOF
28177 /* end confdefs.h.  */
28178
28179 #ifdef HAVE_DB_185_H
28180 # include <db_185.h>
28181 #else
28182 # include <db.h>
28183 #endif
28184
28185 #ifndef DB_VERSION_MAJOR
28186 # define DB_VERSION_MAJOR 1
28187 #endif
28188
28189 #ifndef NULL
28190 #define NULL ((void*)0)
28191 #endif
28192
28193 int
28194 main ()
28195 {
28196
28197 #if DB_VERSION_MAJOR > 1
28198         {
28199                 char *version;
28200                 int major, minor, patch;
28201
28202                 version = db_version( &major, &minor, &patch );
28203
28204                 if( major != DB_VERSION_MAJOR ||
28205                         minor < DB_VERSION_MINOR )
28206                 {
28207                         printf("Berkeley DB version mismatch\n"
28208                                 "\theader: %s\n\tlibrary: %s\n",
28209                                 DB_VERSION_STRING, version);
28210                         return 1;
28211                 }
28212         }
28213 #endif
28214
28215 #if DB_VERSION_MAJOR > 2
28216         db_env_create( NULL, 0 );
28217 #elif DB_VERSION_MAJOR > 1
28218         db_appexit( NULL );
28219 #else
28220         (void) dbopen( NULL, 0, 0, 0, NULL);
28221 #endif
28222
28223   ;
28224   return 0;
28225 }
28226 _ACEOF
28227 rm -f conftest.$ac_objext conftest$ac_exeext
28228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28229   (eval $ac_link) 2>conftest.er1
28230   ac_status=$?
28231   grep -v '^ *+' conftest.er1 >conftest.err
28232   rm -f conftest.er1
28233   cat conftest.err >&5
28234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235   (exit $ac_status); } &&
28236          { ac_try='test -z "$ac_c_werror_flag"
28237                          || test ! -s conftest.err'
28238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28239   (eval $ac_try) 2>&5
28240   ac_status=$?
28241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242   (exit $ac_status); }; } &&
28243          { ac_try='test -s conftest$ac_exeext'
28244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28245   (eval $ac_try) 2>&5
28246   ac_status=$?
28247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248   (exit $ac_status); }; }; then
28249   ol_cv_db_db_4_dot_3=yes
28250 else
28251   echo "$as_me: failed program was:" >&5
28252 sed 's/^/| /' conftest.$ac_ext >&5
28253
28254 ol_cv_db_db_4_dot_3=no
28255 fi
28256 rm -f conftest.err conftest.$ac_objext \
28257       conftest$ac_exeext conftest.$ac_ext
28258
28259         LIBS="$ol_LIBS"
28260
28261 fi
28262 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28263 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28264
28265         if test $ol_cv_db_db_4_dot_3 = yes ; then
28266                 ol_cv_lib_db=-ldb-4.3
28267         fi
28268 fi
28269
28270 if test $ol_cv_lib_db = no ; then
28271         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28272 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28273 if test "${ol_cv_db_db_4_3+set}" = set; then
28274   echo $ECHO_N "(cached) $ECHO_C" >&6
28275 else
28276
28277         ol_DB_LIB=-ldb-4-3
28278         ol_LIBS=$LIBS
28279         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28280
28281         cat >conftest.$ac_ext <<_ACEOF
28282 /* confdefs.h.  */
28283 _ACEOF
28284 cat confdefs.h >>conftest.$ac_ext
28285 cat >>conftest.$ac_ext <<_ACEOF
28286 /* end confdefs.h.  */
28287
28288 #ifdef HAVE_DB_185_H
28289 # include <db_185.h>
28290 #else
28291 # include <db.h>
28292 #endif
28293
28294 #ifndef DB_VERSION_MAJOR
28295 # define DB_VERSION_MAJOR 1
28296 #endif
28297
28298 #ifndef NULL
28299 #define NULL ((void*)0)
28300 #endif
28301
28302 int
28303 main ()
28304 {
28305
28306 #if DB_VERSION_MAJOR > 1
28307         {
28308                 char *version;
28309                 int major, minor, patch;
28310
28311                 version = db_version( &major, &minor, &patch );
28312
28313                 if( major != DB_VERSION_MAJOR ||
28314                         minor < DB_VERSION_MINOR )
28315                 {
28316                         printf("Berkeley DB version mismatch\n"
28317                                 "\theader: %s\n\tlibrary: %s\n",
28318                                 DB_VERSION_STRING, version);
28319                         return 1;
28320                 }
28321         }
28322 #endif
28323
28324 #if DB_VERSION_MAJOR > 2
28325         db_env_create( NULL, 0 );
28326 #elif DB_VERSION_MAJOR > 1
28327         db_appexit( NULL );
28328 #else
28329         (void) dbopen( NULL, 0, 0, 0, NULL);
28330 #endif
28331
28332   ;
28333   return 0;
28334 }
28335 _ACEOF
28336 rm -f conftest.$ac_objext conftest$ac_exeext
28337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28338   (eval $ac_link) 2>conftest.er1
28339   ac_status=$?
28340   grep -v '^ *+' conftest.er1 >conftest.err
28341   rm -f conftest.er1
28342   cat conftest.err >&5
28343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344   (exit $ac_status); } &&
28345          { ac_try='test -z "$ac_c_werror_flag"
28346                          || test ! -s conftest.err'
28347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28348   (eval $ac_try) 2>&5
28349   ac_status=$?
28350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351   (exit $ac_status); }; } &&
28352          { ac_try='test -s conftest$ac_exeext'
28353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28354   (eval $ac_try) 2>&5
28355   ac_status=$?
28356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357   (exit $ac_status); }; }; then
28358   ol_cv_db_db_4_3=yes
28359 else
28360   echo "$as_me: failed program was:" >&5
28361 sed 's/^/| /' conftest.$ac_ext >&5
28362
28363 ol_cv_db_db_4_3=no
28364 fi
28365 rm -f conftest.err conftest.$ac_objext \
28366       conftest$ac_exeext conftest.$ac_ext
28367
28368         LIBS="$ol_LIBS"
28369
28370 fi
28371 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
28372 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
28373
28374         if test $ol_cv_db_db_4_3 = yes ; then
28375                 ol_cv_lib_db=-ldb-4-3
28376         fi
28377 fi
28378
28379 if test $ol_cv_lib_db = no ; then
28380         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
28381 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
28382 if test "${ol_cv_db_db42+set}" = set; then
28383   echo $ECHO_N "(cached) $ECHO_C" >&6
28384 else
28385
28386         ol_DB_LIB=-ldb42
28387         ol_LIBS=$LIBS
28388         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28389
28390         cat >conftest.$ac_ext <<_ACEOF
28391 /* confdefs.h.  */
28392 _ACEOF
28393 cat confdefs.h >>conftest.$ac_ext
28394 cat >>conftest.$ac_ext <<_ACEOF
28395 /* end confdefs.h.  */
28396
28397 #ifdef HAVE_DB_185_H
28398 # include <db_185.h>
28399 #else
28400 # include <db.h>
28401 #endif
28402
28403 #ifndef DB_VERSION_MAJOR
28404 # define DB_VERSION_MAJOR 1
28405 #endif
28406
28407 #ifndef NULL
28408 #define NULL ((void*)0)
28409 #endif
28410
28411 int
28412 main ()
28413 {
28414
28415 #if DB_VERSION_MAJOR > 1
28416         {
28417                 char *version;
28418                 int major, minor, patch;
28419
28420                 version = db_version( &major, &minor, &patch );
28421
28422                 if( major != DB_VERSION_MAJOR ||
28423                         minor < DB_VERSION_MINOR )
28424                 {
28425                         printf("Berkeley DB version mismatch\n"
28426                                 "\theader: %s\n\tlibrary: %s\n",
28427                                 DB_VERSION_STRING, version);
28428                         return 1;
28429                 }
28430         }
28431 #endif
28432
28433 #if DB_VERSION_MAJOR > 2
28434         db_env_create( NULL, 0 );
28435 #elif DB_VERSION_MAJOR > 1
28436         db_appexit( NULL );
28437 #else
28438         (void) dbopen( NULL, 0, 0, 0, NULL);
28439 #endif
28440
28441   ;
28442   return 0;
28443 }
28444 _ACEOF
28445 rm -f conftest.$ac_objext conftest$ac_exeext
28446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28447   (eval $ac_link) 2>conftest.er1
28448   ac_status=$?
28449   grep -v '^ *+' conftest.er1 >conftest.err
28450   rm -f conftest.er1
28451   cat conftest.err >&5
28452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453   (exit $ac_status); } &&
28454          { ac_try='test -z "$ac_c_werror_flag"
28455                          || test ! -s conftest.err'
28456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28457   (eval $ac_try) 2>&5
28458   ac_status=$?
28459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460   (exit $ac_status); }; } &&
28461          { ac_try='test -s conftest$ac_exeext'
28462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28463   (eval $ac_try) 2>&5
28464   ac_status=$?
28465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466   (exit $ac_status); }; }; then
28467   ol_cv_db_db42=yes
28468 else
28469   echo "$as_me: failed program was:" >&5
28470 sed 's/^/| /' conftest.$ac_ext >&5
28471
28472 ol_cv_db_db42=no
28473 fi
28474 rm -f conftest.err conftest.$ac_objext \
28475       conftest$ac_exeext conftest.$ac_ext
28476
28477         LIBS="$ol_LIBS"
28478
28479 fi
28480 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
28481 echo "${ECHO_T}$ol_cv_db_db42" >&6
28482
28483         if test $ol_cv_db_db42 = yes ; then
28484                 ol_cv_lib_db=-ldb42
28485         fi
28486 fi
28487
28488 if test $ol_cv_lib_db = no ; then
28489         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
28490 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
28491 if test "${ol_cv_db_db_42+set}" = set; then
28492   echo $ECHO_N "(cached) $ECHO_C" >&6
28493 else
28494
28495         ol_DB_LIB=-ldb-42
28496         ol_LIBS=$LIBS
28497         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28498
28499         cat >conftest.$ac_ext <<_ACEOF
28500 /* confdefs.h.  */
28501 _ACEOF
28502 cat confdefs.h >>conftest.$ac_ext
28503 cat >>conftest.$ac_ext <<_ACEOF
28504 /* end confdefs.h.  */
28505
28506 #ifdef HAVE_DB_185_H
28507 # include <db_185.h>
28508 #else
28509 # include <db.h>
28510 #endif
28511
28512 #ifndef DB_VERSION_MAJOR
28513 # define DB_VERSION_MAJOR 1
28514 #endif
28515
28516 #ifndef NULL
28517 #define NULL ((void*)0)
28518 #endif
28519
28520 int
28521 main ()
28522 {
28523
28524 #if DB_VERSION_MAJOR > 1
28525         {
28526                 char *version;
28527                 int major, minor, patch;
28528
28529                 version = db_version( &major, &minor, &patch );
28530
28531                 if( major != DB_VERSION_MAJOR ||
28532                         minor < DB_VERSION_MINOR )
28533                 {
28534                         printf("Berkeley DB version mismatch\n"
28535                                 "\theader: %s\n\tlibrary: %s\n",
28536                                 DB_VERSION_STRING, version);
28537                         return 1;
28538                 }
28539         }
28540 #endif
28541
28542 #if DB_VERSION_MAJOR > 2
28543         db_env_create( NULL, 0 );
28544 #elif DB_VERSION_MAJOR > 1
28545         db_appexit( NULL );
28546 #else
28547         (void) dbopen( NULL, 0, 0, 0, NULL);
28548 #endif
28549
28550   ;
28551   return 0;
28552 }
28553 _ACEOF
28554 rm -f conftest.$ac_objext conftest$ac_exeext
28555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28556   (eval $ac_link) 2>conftest.er1
28557   ac_status=$?
28558   grep -v '^ *+' conftest.er1 >conftest.err
28559   rm -f conftest.er1
28560   cat conftest.err >&5
28561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562   (exit $ac_status); } &&
28563          { ac_try='test -z "$ac_c_werror_flag"
28564                          || test ! -s conftest.err'
28565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28566   (eval $ac_try) 2>&5
28567   ac_status=$?
28568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569   (exit $ac_status); }; } &&
28570          { ac_try='test -s conftest$ac_exeext'
28571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28572   (eval $ac_try) 2>&5
28573   ac_status=$?
28574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575   (exit $ac_status); }; }; then
28576   ol_cv_db_db_42=yes
28577 else
28578   echo "$as_me: failed program was:" >&5
28579 sed 's/^/| /' conftest.$ac_ext >&5
28580
28581 ol_cv_db_db_42=no
28582 fi
28583 rm -f conftest.err conftest.$ac_objext \
28584       conftest$ac_exeext conftest.$ac_ext
28585
28586         LIBS="$ol_LIBS"
28587
28588 fi
28589 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
28590 echo "${ECHO_T}$ol_cv_db_db_42" >&6
28591
28592         if test $ol_cv_db_db_42 = yes ; then
28593                 ol_cv_lib_db=-ldb-42
28594         fi
28595 fi
28596
28597 if test $ol_cv_lib_db = no ; then
28598         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
28599 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
28600 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
28601   echo $ECHO_N "(cached) $ECHO_C" >&6
28602 else
28603
28604         ol_DB_LIB=-ldb-4.2
28605         ol_LIBS=$LIBS
28606         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28607
28608         cat >conftest.$ac_ext <<_ACEOF
28609 /* confdefs.h.  */
28610 _ACEOF
28611 cat confdefs.h >>conftest.$ac_ext
28612 cat >>conftest.$ac_ext <<_ACEOF
28613 /* end confdefs.h.  */
28614
28615 #ifdef HAVE_DB_185_H
28616 # include <db_185.h>
28617 #else
28618 # include <db.h>
28619 #endif
28620
28621 #ifndef DB_VERSION_MAJOR
28622 # define DB_VERSION_MAJOR 1
28623 #endif
28624
28625 #ifndef NULL
28626 #define NULL ((void*)0)
28627 #endif
28628
28629 int
28630 main ()
28631 {
28632
28633 #if DB_VERSION_MAJOR > 1
28634         {
28635                 char *version;
28636                 int major, minor, patch;
28637
28638                 version = db_version( &major, &minor, &patch );
28639
28640                 if( major != DB_VERSION_MAJOR ||
28641                         minor < DB_VERSION_MINOR )
28642                 {
28643                         printf("Berkeley DB version mismatch\n"
28644                                 "\theader: %s\n\tlibrary: %s\n",
28645                                 DB_VERSION_STRING, version);
28646                         return 1;
28647                 }
28648         }
28649 #endif
28650
28651 #if DB_VERSION_MAJOR > 2
28652         db_env_create( NULL, 0 );
28653 #elif DB_VERSION_MAJOR > 1
28654         db_appexit( NULL );
28655 #else
28656         (void) dbopen( NULL, 0, 0, 0, NULL);
28657 #endif
28658
28659   ;
28660   return 0;
28661 }
28662 _ACEOF
28663 rm -f conftest.$ac_objext conftest$ac_exeext
28664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28665   (eval $ac_link) 2>conftest.er1
28666   ac_status=$?
28667   grep -v '^ *+' conftest.er1 >conftest.err
28668   rm -f conftest.er1
28669   cat conftest.err >&5
28670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671   (exit $ac_status); } &&
28672          { ac_try='test -z "$ac_c_werror_flag"
28673                          || test ! -s conftest.err'
28674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675   (eval $ac_try) 2>&5
28676   ac_status=$?
28677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678   (exit $ac_status); }; } &&
28679          { ac_try='test -s conftest$ac_exeext'
28680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28681   (eval $ac_try) 2>&5
28682   ac_status=$?
28683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684   (exit $ac_status); }; }; then
28685   ol_cv_db_db_4_dot_2=yes
28686 else
28687   echo "$as_me: failed program was:" >&5
28688 sed 's/^/| /' conftest.$ac_ext >&5
28689
28690 ol_cv_db_db_4_dot_2=no
28691 fi
28692 rm -f conftest.err conftest.$ac_objext \
28693       conftest$ac_exeext conftest.$ac_ext
28694
28695         LIBS="$ol_LIBS"
28696
28697 fi
28698 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
28699 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
28700
28701         if test $ol_cv_db_db_4_dot_2 = yes ; then
28702                 ol_cv_lib_db=-ldb-4.2
28703         fi
28704 fi
28705
28706 if test $ol_cv_lib_db = no ; then
28707         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
28708 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
28709 if test "${ol_cv_db_db_4_2+set}" = set; then
28710   echo $ECHO_N "(cached) $ECHO_C" >&6
28711 else
28712
28713         ol_DB_LIB=-ldb-4-2
28714         ol_LIBS=$LIBS
28715         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28716
28717         cat >conftest.$ac_ext <<_ACEOF
28718 /* confdefs.h.  */
28719 _ACEOF
28720 cat confdefs.h >>conftest.$ac_ext
28721 cat >>conftest.$ac_ext <<_ACEOF
28722 /* end confdefs.h.  */
28723
28724 #ifdef HAVE_DB_185_H
28725 # include <db_185.h>
28726 #else
28727 # include <db.h>
28728 #endif
28729
28730 #ifndef DB_VERSION_MAJOR
28731 # define DB_VERSION_MAJOR 1
28732 #endif
28733
28734 #ifndef NULL
28735 #define NULL ((void*)0)
28736 #endif
28737
28738 int
28739 main ()
28740 {
28741
28742 #if DB_VERSION_MAJOR > 1
28743         {
28744                 char *version;
28745                 int major, minor, patch;
28746
28747                 version = db_version( &major, &minor, &patch );
28748
28749                 if( major != DB_VERSION_MAJOR ||
28750                         minor < DB_VERSION_MINOR )
28751                 {
28752                         printf("Berkeley DB version mismatch\n"
28753                                 "\theader: %s\n\tlibrary: %s\n",
28754                                 DB_VERSION_STRING, version);
28755                         return 1;
28756                 }
28757         }
28758 #endif
28759
28760 #if DB_VERSION_MAJOR > 2
28761         db_env_create( NULL, 0 );
28762 #elif DB_VERSION_MAJOR > 1
28763         db_appexit( NULL );
28764 #else
28765         (void) dbopen( NULL, 0, 0, 0, NULL);
28766 #endif
28767
28768   ;
28769   return 0;
28770 }
28771 _ACEOF
28772 rm -f conftest.$ac_objext conftest$ac_exeext
28773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28774   (eval $ac_link) 2>conftest.er1
28775   ac_status=$?
28776   grep -v '^ *+' conftest.er1 >conftest.err
28777   rm -f conftest.er1
28778   cat conftest.err >&5
28779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780   (exit $ac_status); } &&
28781          { ac_try='test -z "$ac_c_werror_flag"
28782                          || test ! -s conftest.err'
28783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784   (eval $ac_try) 2>&5
28785   ac_status=$?
28786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787   (exit $ac_status); }; } &&
28788          { ac_try='test -s conftest$ac_exeext'
28789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28790   (eval $ac_try) 2>&5
28791   ac_status=$?
28792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793   (exit $ac_status); }; }; then
28794   ol_cv_db_db_4_2=yes
28795 else
28796   echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.$ac_ext >&5
28798
28799 ol_cv_db_db_4_2=no
28800 fi
28801 rm -f conftest.err conftest.$ac_objext \
28802       conftest$ac_exeext conftest.$ac_ext
28803
28804         LIBS="$ol_LIBS"
28805
28806 fi
28807 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
28808 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
28809
28810         if test $ol_cv_db_db_4_2 = yes ; then
28811                 ol_cv_lib_db=-ldb-4-2
28812         fi
28813 fi
28814
28815 if test $ol_cv_lib_db = no ; then
28816         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28817 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28818 if test "${ol_cv_db_db_4+set}" = set; then
28819   echo $ECHO_N "(cached) $ECHO_C" >&6
28820 else
28821
28822         ol_DB_LIB=-ldb-4
28823         ol_LIBS=$LIBS
28824         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28825
28826         cat >conftest.$ac_ext <<_ACEOF
28827 /* confdefs.h.  */
28828 _ACEOF
28829 cat confdefs.h >>conftest.$ac_ext
28830 cat >>conftest.$ac_ext <<_ACEOF
28831 /* end confdefs.h.  */
28832
28833 #ifdef HAVE_DB_185_H
28834 # include <db_185.h>
28835 #else
28836 # include <db.h>
28837 #endif
28838
28839 #ifndef DB_VERSION_MAJOR
28840 # define DB_VERSION_MAJOR 1
28841 #endif
28842
28843 #ifndef NULL
28844 #define NULL ((void*)0)
28845 #endif
28846
28847 int
28848 main ()
28849 {
28850
28851 #if DB_VERSION_MAJOR > 1
28852         {
28853                 char *version;
28854                 int major, minor, patch;
28855
28856                 version = db_version( &major, &minor, &patch );
28857
28858                 if( major != DB_VERSION_MAJOR ||
28859                         minor < DB_VERSION_MINOR )
28860                 {
28861                         printf("Berkeley DB version mismatch\n"
28862                                 "\theader: %s\n\tlibrary: %s\n",
28863                                 DB_VERSION_STRING, version);
28864                         return 1;
28865                 }
28866         }
28867 #endif
28868
28869 #if DB_VERSION_MAJOR > 2
28870         db_env_create( NULL, 0 );
28871 #elif DB_VERSION_MAJOR > 1
28872         db_appexit( NULL );
28873 #else
28874         (void) dbopen( NULL, 0, 0, 0, NULL);
28875 #endif
28876
28877   ;
28878   return 0;
28879 }
28880 _ACEOF
28881 rm -f conftest.$ac_objext conftest$ac_exeext
28882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28883   (eval $ac_link) 2>conftest.er1
28884   ac_status=$?
28885   grep -v '^ *+' conftest.er1 >conftest.err
28886   rm -f conftest.er1
28887   cat conftest.err >&5
28888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889   (exit $ac_status); } &&
28890          { ac_try='test -z "$ac_c_werror_flag"
28891                          || test ! -s conftest.err'
28892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28893   (eval $ac_try) 2>&5
28894   ac_status=$?
28895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896   (exit $ac_status); }; } &&
28897          { ac_try='test -s conftest$ac_exeext'
28898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899   (eval $ac_try) 2>&5
28900   ac_status=$?
28901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902   (exit $ac_status); }; }; then
28903   ol_cv_db_db_4=yes
28904 else
28905   echo "$as_me: failed program was:" >&5
28906 sed 's/^/| /' conftest.$ac_ext >&5
28907
28908 ol_cv_db_db_4=no
28909 fi
28910 rm -f conftest.err conftest.$ac_objext \
28911       conftest$ac_exeext conftest.$ac_ext
28912
28913         LIBS="$ol_LIBS"
28914
28915 fi
28916 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28917 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28918
28919         if test $ol_cv_db_db_4 = yes ; then
28920                 ol_cv_lib_db=-ldb-4
28921         fi
28922 fi
28923
28924 if test $ol_cv_lib_db = no ; then
28925         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28926 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28927 if test "${ol_cv_db_db4+set}" = set; then
28928   echo $ECHO_N "(cached) $ECHO_C" >&6
28929 else
28930
28931         ol_DB_LIB=-ldb4
28932         ol_LIBS=$LIBS
28933         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28934
28935         cat >conftest.$ac_ext <<_ACEOF
28936 /* confdefs.h.  */
28937 _ACEOF
28938 cat confdefs.h >>conftest.$ac_ext
28939 cat >>conftest.$ac_ext <<_ACEOF
28940 /* end confdefs.h.  */
28941
28942 #ifdef HAVE_DB_185_H
28943 # include <db_185.h>
28944 #else
28945 # include <db.h>
28946 #endif
28947
28948 #ifndef DB_VERSION_MAJOR
28949 # define DB_VERSION_MAJOR 1
28950 #endif
28951
28952 #ifndef NULL
28953 #define NULL ((void*)0)
28954 #endif
28955
28956 int
28957 main ()
28958 {
28959
28960 #if DB_VERSION_MAJOR > 1
28961         {
28962                 char *version;
28963                 int major, minor, patch;
28964
28965                 version = db_version( &major, &minor, &patch );
28966
28967                 if( major != DB_VERSION_MAJOR ||
28968                         minor < DB_VERSION_MINOR )
28969                 {
28970                         printf("Berkeley DB version mismatch\n"
28971                                 "\theader: %s\n\tlibrary: %s\n",
28972                                 DB_VERSION_STRING, version);
28973                         return 1;
28974                 }
28975         }
28976 #endif
28977
28978 #if DB_VERSION_MAJOR > 2
28979         db_env_create( NULL, 0 );
28980 #elif DB_VERSION_MAJOR > 1
28981         db_appexit( NULL );
28982 #else
28983         (void) dbopen( NULL, 0, 0, 0, NULL);
28984 #endif
28985
28986   ;
28987   return 0;
28988 }
28989 _ACEOF
28990 rm -f conftest.$ac_objext conftest$ac_exeext
28991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28992   (eval $ac_link) 2>conftest.er1
28993   ac_status=$?
28994   grep -v '^ *+' conftest.er1 >conftest.err
28995   rm -f conftest.er1
28996   cat conftest.err >&5
28997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998   (exit $ac_status); } &&
28999          { ac_try='test -z "$ac_c_werror_flag"
29000                          || test ! -s conftest.err'
29001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002   (eval $ac_try) 2>&5
29003   ac_status=$?
29004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005   (exit $ac_status); }; } &&
29006          { ac_try='test -s conftest$ac_exeext'
29007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29008   (eval $ac_try) 2>&5
29009   ac_status=$?
29010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011   (exit $ac_status); }; }; then
29012   ol_cv_db_db4=yes
29013 else
29014   echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29016
29017 ol_cv_db_db4=no
29018 fi
29019 rm -f conftest.err conftest.$ac_objext \
29020       conftest$ac_exeext conftest.$ac_ext
29021
29022         LIBS="$ol_LIBS"
29023
29024 fi
29025 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29026 echo "${ECHO_T}$ol_cv_db_db4" >&6
29027
29028         if test $ol_cv_db_db4 = yes ; then
29029                 ol_cv_lib_db=-ldb4
29030         fi
29031 fi
29032
29033 if test $ol_cv_lib_db = no ; then
29034         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29035 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29036 if test "${ol_cv_db_db+set}" = set; then
29037   echo $ECHO_N "(cached) $ECHO_C" >&6
29038 else
29039
29040         ol_DB_LIB=-ldb
29041         ol_LIBS=$LIBS
29042         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29043
29044         cat >conftest.$ac_ext <<_ACEOF
29045 /* confdefs.h.  */
29046 _ACEOF
29047 cat confdefs.h >>conftest.$ac_ext
29048 cat >>conftest.$ac_ext <<_ACEOF
29049 /* end confdefs.h.  */
29050
29051 #ifdef HAVE_DB_185_H
29052 # include <db_185.h>
29053 #else
29054 # include <db.h>
29055 #endif
29056
29057 #ifndef DB_VERSION_MAJOR
29058 # define DB_VERSION_MAJOR 1
29059 #endif
29060
29061 #ifndef NULL
29062 #define NULL ((void*)0)
29063 #endif
29064
29065 int
29066 main ()
29067 {
29068
29069 #if DB_VERSION_MAJOR > 1
29070         {
29071                 char *version;
29072                 int major, minor, patch;
29073
29074                 version = db_version( &major, &minor, &patch );
29075
29076                 if( major != DB_VERSION_MAJOR ||
29077                         minor < DB_VERSION_MINOR )
29078                 {
29079                         printf("Berkeley DB version mismatch\n"
29080                                 "\theader: %s\n\tlibrary: %s\n",
29081                                 DB_VERSION_STRING, version);
29082                         return 1;
29083                 }
29084         }
29085 #endif
29086
29087 #if DB_VERSION_MAJOR > 2
29088         db_env_create( NULL, 0 );
29089 #elif DB_VERSION_MAJOR > 1
29090         db_appexit( NULL );
29091 #else
29092         (void) dbopen( NULL, 0, 0, 0, NULL);
29093 #endif
29094
29095   ;
29096   return 0;
29097 }
29098 _ACEOF
29099 rm -f conftest.$ac_objext conftest$ac_exeext
29100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29101   (eval $ac_link) 2>conftest.er1
29102   ac_status=$?
29103   grep -v '^ *+' conftest.er1 >conftest.err
29104   rm -f conftest.er1
29105   cat conftest.err >&5
29106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107   (exit $ac_status); } &&
29108          { ac_try='test -z "$ac_c_werror_flag"
29109                          || test ! -s conftest.err'
29110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29111   (eval $ac_try) 2>&5
29112   ac_status=$?
29113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114   (exit $ac_status); }; } &&
29115          { ac_try='test -s conftest$ac_exeext'
29116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29117   (eval $ac_try) 2>&5
29118   ac_status=$?
29119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120   (exit $ac_status); }; }; then
29121   ol_cv_db_db=yes
29122 else
29123   echo "$as_me: failed program was:" >&5
29124 sed 's/^/| /' conftest.$ac_ext >&5
29125
29126 ol_cv_db_db=no
29127 fi
29128 rm -f conftest.err conftest.$ac_objext \
29129       conftest$ac_exeext conftest.$ac_ext
29130
29131         LIBS="$ol_LIBS"
29132
29133 fi
29134 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29135 echo "${ECHO_T}$ol_cv_db_db" >&6
29136
29137         if test $ol_cv_db_db = yes ; then
29138                 ol_cv_lib_db=-ldb
29139         fi
29140 fi
29141
29142 if test $ol_cv_lib_db = no ; then
29143         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29144 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29145 if test "${ol_cv_db_db41+set}" = set; then
29146   echo $ECHO_N "(cached) $ECHO_C" >&6
29147 else
29148
29149         ol_DB_LIB=-ldb41
29150         ol_LIBS=$LIBS
29151         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29152
29153         cat >conftest.$ac_ext <<_ACEOF
29154 /* confdefs.h.  */
29155 _ACEOF
29156 cat confdefs.h >>conftest.$ac_ext
29157 cat >>conftest.$ac_ext <<_ACEOF
29158 /* end confdefs.h.  */
29159
29160 #ifdef HAVE_DB_185_H
29161 # include <db_185.h>
29162 #else
29163 # include <db.h>
29164 #endif
29165
29166 #ifndef DB_VERSION_MAJOR
29167 # define DB_VERSION_MAJOR 1
29168 #endif
29169
29170 #ifndef NULL
29171 #define NULL ((void*)0)
29172 #endif
29173
29174 int
29175 main ()
29176 {
29177
29178 #if DB_VERSION_MAJOR > 1
29179         {
29180                 char *version;
29181                 int major, minor, patch;
29182
29183                 version = db_version( &major, &minor, &patch );
29184
29185                 if( major != DB_VERSION_MAJOR ||
29186                         minor < DB_VERSION_MINOR )
29187                 {
29188                         printf("Berkeley DB version mismatch\n"
29189                                 "\theader: %s\n\tlibrary: %s\n",
29190                                 DB_VERSION_STRING, version);
29191                         return 1;
29192                 }
29193         }
29194 #endif
29195
29196 #if DB_VERSION_MAJOR > 2
29197         db_env_create( NULL, 0 );
29198 #elif DB_VERSION_MAJOR > 1
29199         db_appexit( NULL );
29200 #else
29201         (void) dbopen( NULL, 0, 0, 0, NULL);
29202 #endif
29203
29204   ;
29205   return 0;
29206 }
29207 _ACEOF
29208 rm -f conftest.$ac_objext conftest$ac_exeext
29209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29210   (eval $ac_link) 2>conftest.er1
29211   ac_status=$?
29212   grep -v '^ *+' conftest.er1 >conftest.err
29213   rm -f conftest.er1
29214   cat conftest.err >&5
29215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29216   (exit $ac_status); } &&
29217          { ac_try='test -z "$ac_c_werror_flag"
29218                          || test ! -s conftest.err'
29219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29220   (eval $ac_try) 2>&5
29221   ac_status=$?
29222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223   (exit $ac_status); }; } &&
29224          { ac_try='test -s conftest$ac_exeext'
29225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29226   (eval $ac_try) 2>&5
29227   ac_status=$?
29228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229   (exit $ac_status); }; }; then
29230   ol_cv_db_db41=yes
29231 else
29232   echo "$as_me: failed program was:" >&5
29233 sed 's/^/| /' conftest.$ac_ext >&5
29234
29235 ol_cv_db_db41=no
29236 fi
29237 rm -f conftest.err conftest.$ac_objext \
29238       conftest$ac_exeext conftest.$ac_ext
29239
29240         LIBS="$ol_LIBS"
29241
29242 fi
29243 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29244 echo "${ECHO_T}$ol_cv_db_db41" >&6
29245
29246         if test $ol_cv_db_db41 = yes ; then
29247                 ol_cv_lib_db=-ldb41
29248         fi
29249 fi
29250
29251 if test $ol_cv_lib_db = no ; then
29252         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29253 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29254 if test "${ol_cv_db_db_41+set}" = set; then
29255   echo $ECHO_N "(cached) $ECHO_C" >&6
29256 else
29257
29258         ol_DB_LIB=-ldb-41
29259         ol_LIBS=$LIBS
29260         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29261
29262         cat >conftest.$ac_ext <<_ACEOF
29263 /* confdefs.h.  */
29264 _ACEOF
29265 cat confdefs.h >>conftest.$ac_ext
29266 cat >>conftest.$ac_ext <<_ACEOF
29267 /* end confdefs.h.  */
29268
29269 #ifdef HAVE_DB_185_H
29270 # include <db_185.h>
29271 #else
29272 # include <db.h>
29273 #endif
29274
29275 #ifndef DB_VERSION_MAJOR
29276 # define DB_VERSION_MAJOR 1
29277 #endif
29278
29279 #ifndef NULL
29280 #define NULL ((void*)0)
29281 #endif
29282
29283 int
29284 main ()
29285 {
29286
29287 #if DB_VERSION_MAJOR > 1
29288         {
29289                 char *version;
29290                 int major, minor, patch;
29291
29292                 version = db_version( &major, &minor, &patch );
29293
29294                 if( major != DB_VERSION_MAJOR ||
29295                         minor < DB_VERSION_MINOR )
29296                 {
29297                         printf("Berkeley DB version mismatch\n"
29298                                 "\theader: %s\n\tlibrary: %s\n",
29299                                 DB_VERSION_STRING, version);
29300                         return 1;
29301                 }
29302         }
29303 #endif
29304
29305 #if DB_VERSION_MAJOR > 2
29306         db_env_create( NULL, 0 );
29307 #elif DB_VERSION_MAJOR > 1
29308         db_appexit( NULL );
29309 #else
29310         (void) dbopen( NULL, 0, 0, 0, NULL);
29311 #endif
29312
29313   ;
29314   return 0;
29315 }
29316 _ACEOF
29317 rm -f conftest.$ac_objext conftest$ac_exeext
29318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29319   (eval $ac_link) 2>conftest.er1
29320   ac_status=$?
29321   grep -v '^ *+' conftest.er1 >conftest.err
29322   rm -f conftest.er1
29323   cat conftest.err >&5
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); } &&
29326          { ac_try='test -z "$ac_c_werror_flag"
29327                          || test ! -s conftest.err'
29328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329   (eval $ac_try) 2>&5
29330   ac_status=$?
29331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332   (exit $ac_status); }; } &&
29333          { ac_try='test -s conftest$ac_exeext'
29334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335   (eval $ac_try) 2>&5
29336   ac_status=$?
29337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338   (exit $ac_status); }; }; then
29339   ol_cv_db_db_41=yes
29340 else
29341   echo "$as_me: failed program was:" >&5
29342 sed 's/^/| /' conftest.$ac_ext >&5
29343
29344 ol_cv_db_db_41=no
29345 fi
29346 rm -f conftest.err conftest.$ac_objext \
29347       conftest$ac_exeext conftest.$ac_ext
29348
29349         LIBS="$ol_LIBS"
29350
29351 fi
29352 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29353 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29354
29355         if test $ol_cv_db_db_41 = yes ; then
29356                 ol_cv_lib_db=-ldb-41
29357         fi
29358 fi
29359
29360 if test $ol_cv_lib_db = no ; then
29361         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29362 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29363 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29364   echo $ECHO_N "(cached) $ECHO_C" >&6
29365 else
29366
29367         ol_DB_LIB=-ldb-4.1
29368         ol_LIBS=$LIBS
29369         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29370
29371         cat >conftest.$ac_ext <<_ACEOF
29372 /* confdefs.h.  */
29373 _ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h.  */
29377
29378 #ifdef HAVE_DB_185_H
29379 # include <db_185.h>
29380 #else
29381 # include <db.h>
29382 #endif
29383
29384 #ifndef DB_VERSION_MAJOR
29385 # define DB_VERSION_MAJOR 1
29386 #endif
29387
29388 #ifndef NULL
29389 #define NULL ((void*)0)
29390 #endif
29391
29392 int
29393 main ()
29394 {
29395
29396 #if DB_VERSION_MAJOR > 1
29397         {
29398                 char *version;
29399                 int major, minor, patch;
29400
29401                 version = db_version( &major, &minor, &patch );
29402
29403                 if( major != DB_VERSION_MAJOR ||
29404                         minor < DB_VERSION_MINOR )
29405                 {
29406                         printf("Berkeley DB version mismatch\n"
29407                                 "\theader: %s\n\tlibrary: %s\n",
29408                                 DB_VERSION_STRING, version);
29409                         return 1;
29410                 }
29411         }
29412 #endif
29413
29414 #if DB_VERSION_MAJOR > 2
29415         db_env_create( NULL, 0 );
29416 #elif DB_VERSION_MAJOR > 1
29417         db_appexit( NULL );
29418 #else
29419         (void) dbopen( NULL, 0, 0, 0, NULL);
29420 #endif
29421
29422   ;
29423   return 0;
29424 }
29425 _ACEOF
29426 rm -f conftest.$ac_objext conftest$ac_exeext
29427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29428   (eval $ac_link) 2>conftest.er1
29429   ac_status=$?
29430   grep -v '^ *+' conftest.er1 >conftest.err
29431   rm -f conftest.er1
29432   cat conftest.err >&5
29433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434   (exit $ac_status); } &&
29435          { ac_try='test -z "$ac_c_werror_flag"
29436                          || test ! -s conftest.err'
29437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438   (eval $ac_try) 2>&5
29439   ac_status=$?
29440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441   (exit $ac_status); }; } &&
29442          { ac_try='test -s conftest$ac_exeext'
29443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29444   (eval $ac_try) 2>&5
29445   ac_status=$?
29446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447   (exit $ac_status); }; }; then
29448   ol_cv_db_db_4_dot_1=yes
29449 else
29450   echo "$as_me: failed program was:" >&5
29451 sed 's/^/| /' conftest.$ac_ext >&5
29452
29453 ol_cv_db_db_4_dot_1=no
29454 fi
29455 rm -f conftest.err conftest.$ac_objext \
29456       conftest$ac_exeext conftest.$ac_ext
29457
29458         LIBS="$ol_LIBS"
29459
29460 fi
29461 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29462 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29463
29464         if test $ol_cv_db_db_4_dot_1 = yes ; then
29465                 ol_cv_lib_db=-ldb-4.1
29466         fi
29467 fi
29468
29469 if test $ol_cv_lib_db = no ; then
29470         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29471 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29472 if test "${ol_cv_db_db_4_1+set}" = set; then
29473   echo $ECHO_N "(cached) $ECHO_C" >&6
29474 else
29475
29476         ol_DB_LIB=-ldb-4-1
29477         ol_LIBS=$LIBS
29478         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29479
29480         cat >conftest.$ac_ext <<_ACEOF
29481 /* confdefs.h.  */
29482 _ACEOF
29483 cat confdefs.h >>conftest.$ac_ext
29484 cat >>conftest.$ac_ext <<_ACEOF
29485 /* end confdefs.h.  */
29486
29487 #ifdef HAVE_DB_185_H
29488 # include <db_185.h>
29489 #else
29490 # include <db.h>
29491 #endif
29492
29493 #ifndef DB_VERSION_MAJOR
29494 # define DB_VERSION_MAJOR 1
29495 #endif
29496
29497 #ifndef NULL
29498 #define NULL ((void*)0)
29499 #endif
29500
29501 int
29502 main ()
29503 {
29504
29505 #if DB_VERSION_MAJOR > 1
29506         {
29507                 char *version;
29508                 int major, minor, patch;
29509
29510                 version = db_version( &major, &minor, &patch );
29511
29512                 if( major != DB_VERSION_MAJOR ||
29513                         minor < DB_VERSION_MINOR )
29514                 {
29515                         printf("Berkeley DB version mismatch\n"
29516                                 "\theader: %s\n\tlibrary: %s\n",
29517                                 DB_VERSION_STRING, version);
29518                         return 1;
29519                 }
29520         }
29521 #endif
29522
29523 #if DB_VERSION_MAJOR > 2
29524         db_env_create( NULL, 0 );
29525 #elif DB_VERSION_MAJOR > 1
29526         db_appexit( NULL );
29527 #else
29528         (void) dbopen( NULL, 0, 0, 0, NULL);
29529 #endif
29530
29531   ;
29532   return 0;
29533 }
29534 _ACEOF
29535 rm -f conftest.$ac_objext conftest$ac_exeext
29536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29537   (eval $ac_link) 2>conftest.er1
29538   ac_status=$?
29539   grep -v '^ *+' conftest.er1 >conftest.err
29540   rm -f conftest.er1
29541   cat conftest.err >&5
29542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543   (exit $ac_status); } &&
29544          { ac_try='test -z "$ac_c_werror_flag"
29545                          || test ! -s conftest.err'
29546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29547   (eval $ac_try) 2>&5
29548   ac_status=$?
29549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550   (exit $ac_status); }; } &&
29551          { ac_try='test -s conftest$ac_exeext'
29552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29553   (eval $ac_try) 2>&5
29554   ac_status=$?
29555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556   (exit $ac_status); }; }; then
29557   ol_cv_db_db_4_1=yes
29558 else
29559   echo "$as_me: failed program was:" >&5
29560 sed 's/^/| /' conftest.$ac_ext >&5
29561
29562 ol_cv_db_db_4_1=no
29563 fi
29564 rm -f conftest.err conftest.$ac_objext \
29565       conftest$ac_exeext conftest.$ac_ext
29566
29567         LIBS="$ol_LIBS"
29568
29569 fi
29570 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29571 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29572
29573         if test $ol_cv_db_db_4_1 = yes ; then
29574                 ol_cv_lib_db=-ldb-4-1
29575         fi
29576 fi
29577
29578 if test $ol_cv_lib_db = no ; then
29579         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
29580 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
29581 if test "${ol_cv_db_db3+set}" = set; then
29582   echo $ECHO_N "(cached) $ECHO_C" >&6
29583 else
29584
29585         ol_DB_LIB=-ldb3
29586         ol_LIBS=$LIBS
29587         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29588
29589         cat >conftest.$ac_ext <<_ACEOF
29590 /* confdefs.h.  */
29591 _ACEOF
29592 cat confdefs.h >>conftest.$ac_ext
29593 cat >>conftest.$ac_ext <<_ACEOF
29594 /* end confdefs.h.  */
29595
29596 #ifdef HAVE_DB_185_H
29597 # include <db_185.h>
29598 #else
29599 # include <db.h>
29600 #endif
29601
29602 #ifndef DB_VERSION_MAJOR
29603 # define DB_VERSION_MAJOR 1
29604 #endif
29605
29606 #ifndef NULL
29607 #define NULL ((void*)0)
29608 #endif
29609
29610 int
29611 main ()
29612 {
29613
29614 #if DB_VERSION_MAJOR > 1
29615         {
29616                 char *version;
29617                 int major, minor, patch;
29618
29619                 version = db_version( &major, &minor, &patch );
29620
29621                 if( major != DB_VERSION_MAJOR ||
29622                         minor < DB_VERSION_MINOR )
29623                 {
29624                         printf("Berkeley DB version mismatch\n"
29625                                 "\theader: %s\n\tlibrary: %s\n",
29626                                 DB_VERSION_STRING, version);
29627                         return 1;
29628                 }
29629         }
29630 #endif
29631
29632 #if DB_VERSION_MAJOR > 2
29633         db_env_create( NULL, 0 );
29634 #elif DB_VERSION_MAJOR > 1
29635         db_appexit( NULL );
29636 #else
29637         (void) dbopen( NULL, 0, 0, 0, NULL);
29638 #endif
29639
29640   ;
29641   return 0;
29642 }
29643 _ACEOF
29644 rm -f conftest.$ac_objext conftest$ac_exeext
29645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29646   (eval $ac_link) 2>conftest.er1
29647   ac_status=$?
29648   grep -v '^ *+' conftest.er1 >conftest.err
29649   rm -f conftest.er1
29650   cat conftest.err >&5
29651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652   (exit $ac_status); } &&
29653          { ac_try='test -z "$ac_c_werror_flag"
29654                          || test ! -s conftest.err'
29655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656   (eval $ac_try) 2>&5
29657   ac_status=$?
29658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659   (exit $ac_status); }; } &&
29660          { ac_try='test -s conftest$ac_exeext'
29661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29662   (eval $ac_try) 2>&5
29663   ac_status=$?
29664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665   (exit $ac_status); }; }; then
29666   ol_cv_db_db3=yes
29667 else
29668   echo "$as_me: failed program was:" >&5
29669 sed 's/^/| /' conftest.$ac_ext >&5
29670
29671 ol_cv_db_db3=no
29672 fi
29673 rm -f conftest.err conftest.$ac_objext \
29674       conftest$ac_exeext conftest.$ac_ext
29675
29676         LIBS="$ol_LIBS"
29677
29678 fi
29679 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
29680 echo "${ECHO_T}$ol_cv_db_db3" >&6
29681
29682         if test $ol_cv_db_db3 = yes ; then
29683                 ol_cv_lib_db=-ldb3
29684         fi
29685 fi
29686
29687 if test $ol_cv_lib_db = no ; then
29688         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
29689 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
29690 if test "${ol_cv_db_db_3+set}" = set; then
29691   echo $ECHO_N "(cached) $ECHO_C" >&6
29692 else
29693
29694         ol_DB_LIB=-ldb-3
29695         ol_LIBS=$LIBS
29696         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29697
29698         cat >conftest.$ac_ext <<_ACEOF
29699 /* confdefs.h.  */
29700 _ACEOF
29701 cat confdefs.h >>conftest.$ac_ext
29702 cat >>conftest.$ac_ext <<_ACEOF
29703 /* end confdefs.h.  */
29704
29705 #ifdef HAVE_DB_185_H
29706 # include <db_185.h>
29707 #else
29708 # include <db.h>
29709 #endif
29710
29711 #ifndef DB_VERSION_MAJOR
29712 # define DB_VERSION_MAJOR 1
29713 #endif
29714
29715 #ifndef NULL
29716 #define NULL ((void*)0)
29717 #endif
29718
29719 int
29720 main ()
29721 {
29722
29723 #if DB_VERSION_MAJOR > 1
29724         {
29725                 char *version;
29726                 int major, minor, patch;
29727
29728                 version = db_version( &major, &minor, &patch );
29729
29730                 if( major != DB_VERSION_MAJOR ||
29731                         minor < DB_VERSION_MINOR )
29732                 {
29733                         printf("Berkeley DB version mismatch\n"
29734                                 "\theader: %s\n\tlibrary: %s\n",
29735                                 DB_VERSION_STRING, version);
29736                         return 1;
29737                 }
29738         }
29739 #endif
29740
29741 #if DB_VERSION_MAJOR > 2
29742         db_env_create( NULL, 0 );
29743 #elif DB_VERSION_MAJOR > 1
29744         db_appexit( NULL );
29745 #else
29746         (void) dbopen( NULL, 0, 0, 0, NULL);
29747 #endif
29748
29749   ;
29750   return 0;
29751 }
29752 _ACEOF
29753 rm -f conftest.$ac_objext conftest$ac_exeext
29754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29755   (eval $ac_link) 2>conftest.er1
29756   ac_status=$?
29757   grep -v '^ *+' conftest.er1 >conftest.err
29758   rm -f conftest.er1
29759   cat conftest.err >&5
29760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761   (exit $ac_status); } &&
29762          { ac_try='test -z "$ac_c_werror_flag"
29763                          || test ! -s conftest.err'
29764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29765   (eval $ac_try) 2>&5
29766   ac_status=$?
29767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768   (exit $ac_status); }; } &&
29769          { ac_try='test -s conftest$ac_exeext'
29770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29771   (eval $ac_try) 2>&5
29772   ac_status=$?
29773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774   (exit $ac_status); }; }; then
29775   ol_cv_db_db_3=yes
29776 else
29777   echo "$as_me: failed program was:" >&5
29778 sed 's/^/| /' conftest.$ac_ext >&5
29779
29780 ol_cv_db_db_3=no
29781 fi
29782 rm -f conftest.err conftest.$ac_objext \
29783       conftest$ac_exeext conftest.$ac_ext
29784
29785         LIBS="$ol_LIBS"
29786
29787 fi
29788 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
29789 echo "${ECHO_T}$ol_cv_db_db_3" >&6
29790
29791         if test $ol_cv_db_db_3 = yes ; then
29792                 ol_cv_lib_db=-ldb-3
29793         fi
29794 fi
29795
29796 if test $ol_cv_lib_db = no ; then
29797         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
29798 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
29799 if test "${ol_cv_db_db2+set}" = set; then
29800   echo $ECHO_N "(cached) $ECHO_C" >&6
29801 else
29802
29803         ol_DB_LIB=-ldb2
29804         ol_LIBS=$LIBS
29805         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29806
29807         cat >conftest.$ac_ext <<_ACEOF
29808 /* confdefs.h.  */
29809 _ACEOF
29810 cat confdefs.h >>conftest.$ac_ext
29811 cat >>conftest.$ac_ext <<_ACEOF
29812 /* end confdefs.h.  */
29813
29814 #ifdef HAVE_DB_185_H
29815 # include <db_185.h>
29816 #else
29817 # include <db.h>
29818 #endif
29819
29820 #ifndef DB_VERSION_MAJOR
29821 # define DB_VERSION_MAJOR 1
29822 #endif
29823
29824 #ifndef NULL
29825 #define NULL ((void*)0)
29826 #endif
29827
29828 int
29829 main ()
29830 {
29831
29832 #if DB_VERSION_MAJOR > 1
29833         {
29834                 char *version;
29835                 int major, minor, patch;
29836
29837                 version = db_version( &major, &minor, &patch );
29838
29839                 if( major != DB_VERSION_MAJOR ||
29840                         minor < DB_VERSION_MINOR )
29841                 {
29842                         printf("Berkeley DB version mismatch\n"
29843                                 "\theader: %s\n\tlibrary: %s\n",
29844                                 DB_VERSION_STRING, version);
29845                         return 1;
29846                 }
29847         }
29848 #endif
29849
29850 #if DB_VERSION_MAJOR > 2
29851         db_env_create( NULL, 0 );
29852 #elif DB_VERSION_MAJOR > 1
29853         db_appexit( NULL );
29854 #else
29855         (void) dbopen( NULL, 0, 0, 0, NULL);
29856 #endif
29857
29858   ;
29859   return 0;
29860 }
29861 _ACEOF
29862 rm -f conftest.$ac_objext conftest$ac_exeext
29863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29864   (eval $ac_link) 2>conftest.er1
29865   ac_status=$?
29866   grep -v '^ *+' conftest.er1 >conftest.err
29867   rm -f conftest.er1
29868   cat conftest.err >&5
29869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870   (exit $ac_status); } &&
29871          { ac_try='test -z "$ac_c_werror_flag"
29872                          || test ! -s conftest.err'
29873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29874   (eval $ac_try) 2>&5
29875   ac_status=$?
29876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877   (exit $ac_status); }; } &&
29878          { ac_try='test -s conftest$ac_exeext'
29879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29880   (eval $ac_try) 2>&5
29881   ac_status=$?
29882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883   (exit $ac_status); }; }; then
29884   ol_cv_db_db2=yes
29885 else
29886   echo "$as_me: failed program was:" >&5
29887 sed 's/^/| /' conftest.$ac_ext >&5
29888
29889 ol_cv_db_db2=no
29890 fi
29891 rm -f conftest.err conftest.$ac_objext \
29892       conftest$ac_exeext conftest.$ac_ext
29893
29894         LIBS="$ol_LIBS"
29895
29896 fi
29897 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
29898 echo "${ECHO_T}$ol_cv_db_db2" >&6
29899
29900         if test $ol_cv_db_db2 = yes ; then
29901                 ol_cv_lib_db=-ldb2
29902         fi
29903 fi
29904
29905 if test $ol_cv_lib_db = no ; then
29906         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
29907 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
29908 if test "${ol_cv_db_db_2+set}" = set; then
29909   echo $ECHO_N "(cached) $ECHO_C" >&6
29910 else
29911
29912         ol_DB_LIB=-ldb-2
29913         ol_LIBS=$LIBS
29914         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29915
29916         cat >conftest.$ac_ext <<_ACEOF
29917 /* confdefs.h.  */
29918 _ACEOF
29919 cat confdefs.h >>conftest.$ac_ext
29920 cat >>conftest.$ac_ext <<_ACEOF
29921 /* end confdefs.h.  */
29922
29923 #ifdef HAVE_DB_185_H
29924 # include <db_185.h>
29925 #else
29926 # include <db.h>
29927 #endif
29928
29929 #ifndef DB_VERSION_MAJOR
29930 # define DB_VERSION_MAJOR 1
29931 #endif
29932
29933 #ifndef NULL
29934 #define NULL ((void*)0)
29935 #endif
29936
29937 int
29938 main ()
29939 {
29940
29941 #if DB_VERSION_MAJOR > 1
29942         {
29943                 char *version;
29944                 int major, minor, patch;
29945
29946                 version = db_version( &major, &minor, &patch );
29947
29948                 if( major != DB_VERSION_MAJOR ||
29949                         minor < DB_VERSION_MINOR )
29950                 {
29951                         printf("Berkeley DB version mismatch\n"
29952                                 "\theader: %s\n\tlibrary: %s\n",
29953                                 DB_VERSION_STRING, version);
29954                         return 1;
29955                 }
29956         }
29957 #endif
29958
29959 #if DB_VERSION_MAJOR > 2
29960         db_env_create( NULL, 0 );
29961 #elif DB_VERSION_MAJOR > 1
29962         db_appexit( NULL );
29963 #else
29964         (void) dbopen( NULL, 0, 0, 0, NULL);
29965 #endif
29966
29967   ;
29968   return 0;
29969 }
29970 _ACEOF
29971 rm -f conftest.$ac_objext conftest$ac_exeext
29972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29973   (eval $ac_link) 2>conftest.er1
29974   ac_status=$?
29975   grep -v '^ *+' conftest.er1 >conftest.err
29976   rm -f conftest.er1
29977   cat conftest.err >&5
29978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979   (exit $ac_status); } &&
29980          { ac_try='test -z "$ac_c_werror_flag"
29981                          || test ! -s conftest.err'
29982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983   (eval $ac_try) 2>&5
29984   ac_status=$?
29985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986   (exit $ac_status); }; } &&
29987          { ac_try='test -s conftest$ac_exeext'
29988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29989   (eval $ac_try) 2>&5
29990   ac_status=$?
29991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); }; }; then
29993   ol_cv_db_db_2=yes
29994 else
29995   echo "$as_me: failed program was:" >&5
29996 sed 's/^/| /' conftest.$ac_ext >&5
29997
29998 ol_cv_db_db_2=no
29999 fi
30000 rm -f conftest.err conftest.$ac_objext \
30001       conftest$ac_exeext conftest.$ac_ext
30002
30003         LIBS="$ol_LIBS"
30004
30005 fi
30006 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30007 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30008
30009         if test $ol_cv_db_db_2 = yes ; then
30010                 ol_cv_lib_db=-ldb-2
30011         fi
30012 fi
30013
30014 if test $ol_cv_lib_db = no ; then
30015         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30016 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30017 if test "${ol_cv_db_db1+set}" = set; then
30018   echo $ECHO_N "(cached) $ECHO_C" >&6
30019 else
30020
30021         ol_DB_LIB=-ldb1
30022         ol_LIBS=$LIBS
30023         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30024
30025         cat >conftest.$ac_ext <<_ACEOF
30026 /* confdefs.h.  */
30027 _ACEOF
30028 cat confdefs.h >>conftest.$ac_ext
30029 cat >>conftest.$ac_ext <<_ACEOF
30030 /* end confdefs.h.  */
30031
30032 #ifdef HAVE_DB_185_H
30033 # include <db_185.h>
30034 #else
30035 # include <db.h>
30036 #endif
30037
30038 #ifndef DB_VERSION_MAJOR
30039 # define DB_VERSION_MAJOR 1
30040 #endif
30041
30042 #ifndef NULL
30043 #define NULL ((void*)0)
30044 #endif
30045
30046 int
30047 main ()
30048 {
30049
30050 #if DB_VERSION_MAJOR > 1
30051         {
30052                 char *version;
30053                 int major, minor, patch;
30054
30055                 version = db_version( &major, &minor, &patch );
30056
30057                 if( major != DB_VERSION_MAJOR ||
30058                         minor < DB_VERSION_MINOR )
30059                 {
30060                         printf("Berkeley DB version mismatch\n"
30061                                 "\theader: %s\n\tlibrary: %s\n",
30062                                 DB_VERSION_STRING, version);
30063                         return 1;
30064                 }
30065         }
30066 #endif
30067
30068 #if DB_VERSION_MAJOR > 2
30069         db_env_create( NULL, 0 );
30070 #elif DB_VERSION_MAJOR > 1
30071         db_appexit( NULL );
30072 #else
30073         (void) dbopen( NULL, 0, 0, 0, NULL);
30074 #endif
30075
30076   ;
30077   return 0;
30078 }
30079 _ACEOF
30080 rm -f conftest.$ac_objext conftest$ac_exeext
30081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30082   (eval $ac_link) 2>conftest.er1
30083   ac_status=$?
30084   grep -v '^ *+' conftest.er1 >conftest.err
30085   rm -f conftest.er1
30086   cat conftest.err >&5
30087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088   (exit $ac_status); } &&
30089          { ac_try='test -z "$ac_c_werror_flag"
30090                          || test ! -s conftest.err'
30091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30092   (eval $ac_try) 2>&5
30093   ac_status=$?
30094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095   (exit $ac_status); }; } &&
30096          { ac_try='test -s conftest$ac_exeext'
30097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30098   (eval $ac_try) 2>&5
30099   ac_status=$?
30100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101   (exit $ac_status); }; }; then
30102   ol_cv_db_db1=yes
30103 else
30104   echo "$as_me: failed program was:" >&5
30105 sed 's/^/| /' conftest.$ac_ext >&5
30106
30107 ol_cv_db_db1=no
30108 fi
30109 rm -f conftest.err conftest.$ac_objext \
30110       conftest$ac_exeext conftest.$ac_ext
30111
30112         LIBS="$ol_LIBS"
30113
30114 fi
30115 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30116 echo "${ECHO_T}$ol_cv_db_db1" >&6
30117
30118         if test $ol_cv_db_db1 = yes ; then
30119                 ol_cv_lib_db=-ldb1
30120         fi
30121 fi
30122
30123 if test $ol_cv_lib_db = no ; then
30124         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30125 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30126 if test "${ol_cv_db_db_1+set}" = set; then
30127   echo $ECHO_N "(cached) $ECHO_C" >&6
30128 else
30129
30130         ol_DB_LIB=-ldb-1
30131         ol_LIBS=$LIBS
30132         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30133
30134         cat >conftest.$ac_ext <<_ACEOF
30135 /* confdefs.h.  */
30136 _ACEOF
30137 cat confdefs.h >>conftest.$ac_ext
30138 cat >>conftest.$ac_ext <<_ACEOF
30139 /* end confdefs.h.  */
30140
30141 #ifdef HAVE_DB_185_H
30142 # include <db_185.h>
30143 #else
30144 # include <db.h>
30145 #endif
30146
30147 #ifndef DB_VERSION_MAJOR
30148 # define DB_VERSION_MAJOR 1
30149 #endif
30150
30151 #ifndef NULL
30152 #define NULL ((void*)0)
30153 #endif
30154
30155 int
30156 main ()
30157 {
30158
30159 #if DB_VERSION_MAJOR > 1
30160         {
30161                 char *version;
30162                 int major, minor, patch;
30163
30164                 version = db_version( &major, &minor, &patch );
30165
30166                 if( major != DB_VERSION_MAJOR ||
30167                         minor < DB_VERSION_MINOR )
30168                 {
30169                         printf("Berkeley DB version mismatch\n"
30170                                 "\theader: %s\n\tlibrary: %s\n",
30171                                 DB_VERSION_STRING, version);
30172                         return 1;
30173                 }
30174         }
30175 #endif
30176
30177 #if DB_VERSION_MAJOR > 2
30178         db_env_create( NULL, 0 );
30179 #elif DB_VERSION_MAJOR > 1
30180         db_appexit( NULL );
30181 #else
30182         (void) dbopen( NULL, 0, 0, 0, NULL);
30183 #endif
30184
30185   ;
30186   return 0;
30187 }
30188 _ACEOF
30189 rm -f conftest.$ac_objext conftest$ac_exeext
30190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30191   (eval $ac_link) 2>conftest.er1
30192   ac_status=$?
30193   grep -v '^ *+' conftest.er1 >conftest.err
30194   rm -f conftest.er1
30195   cat conftest.err >&5
30196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197   (exit $ac_status); } &&
30198          { ac_try='test -z "$ac_c_werror_flag"
30199                          || test ! -s conftest.err'
30200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30201   (eval $ac_try) 2>&5
30202   ac_status=$?
30203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204   (exit $ac_status); }; } &&
30205          { ac_try='test -s conftest$ac_exeext'
30206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30207   (eval $ac_try) 2>&5
30208   ac_status=$?
30209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210   (exit $ac_status); }; }; then
30211   ol_cv_db_db_1=yes
30212 else
30213   echo "$as_me: failed program was:" >&5
30214 sed 's/^/| /' conftest.$ac_ext >&5
30215
30216 ol_cv_db_db_1=no
30217 fi
30218 rm -f conftest.err conftest.$ac_objext \
30219       conftest$ac_exeext conftest.$ac_ext
30220
30221         LIBS="$ol_LIBS"
30222
30223 fi
30224 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30225 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30226
30227         if test $ol_cv_db_db_1 = yes ; then
30228                 ol_cv_lib_db=-ldb-1
30229         fi
30230 fi
30231
30232
30233                 if test "$ol_cv_lib_db" != no ; then
30234                         ol_cv_berkeley_db=yes
30235                 fi
30236         fi
30237 fi
30238
30239         else
30240                 ol_cv_berkeley_db=no
30241
30242 for ac_header in db.h
30243 do
30244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30246   echo "$as_me:$LINENO: checking for $ac_header" >&5
30247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30249   echo $ECHO_N "(cached) $ECHO_C" >&6
30250 fi
30251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30253 else
30254   # Is the header compilable?
30255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30257 cat >conftest.$ac_ext <<_ACEOF
30258 /* confdefs.h.  */
30259 _ACEOF
30260 cat confdefs.h >>conftest.$ac_ext
30261 cat >>conftest.$ac_ext <<_ACEOF
30262 /* end confdefs.h.  */
30263 $ac_includes_default
30264 #include <$ac_header>
30265 _ACEOF
30266 rm -f conftest.$ac_objext
30267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30268   (eval $ac_compile) 2>conftest.er1
30269   ac_status=$?
30270   grep -v '^ *+' conftest.er1 >conftest.err
30271   rm -f conftest.er1
30272   cat conftest.err >&5
30273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274   (exit $ac_status); } &&
30275          { ac_try='test -z "$ac_c_werror_flag"
30276                          || test ! -s conftest.err'
30277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30278   (eval $ac_try) 2>&5
30279   ac_status=$?
30280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281   (exit $ac_status); }; } &&
30282          { ac_try='test -s conftest.$ac_objext'
30283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30284   (eval $ac_try) 2>&5
30285   ac_status=$?
30286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287   (exit $ac_status); }; }; then
30288   ac_header_compiler=yes
30289 else
30290   echo "$as_me: failed program was:" >&5
30291 sed 's/^/| /' conftest.$ac_ext >&5
30292
30293 ac_header_compiler=no
30294 fi
30295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30297 echo "${ECHO_T}$ac_header_compiler" >&6
30298
30299 # Is the header present?
30300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30302 cat >conftest.$ac_ext <<_ACEOF
30303 /* confdefs.h.  */
30304 _ACEOF
30305 cat confdefs.h >>conftest.$ac_ext
30306 cat >>conftest.$ac_ext <<_ACEOF
30307 /* end confdefs.h.  */
30308 #include <$ac_header>
30309 _ACEOF
30310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30312   ac_status=$?
30313   grep -v '^ *+' conftest.er1 >conftest.err
30314   rm -f conftest.er1
30315   cat conftest.err >&5
30316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317   (exit $ac_status); } >/dev/null; then
30318   if test -s conftest.err; then
30319     ac_cpp_err=$ac_c_preproc_warn_flag
30320     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30321   else
30322     ac_cpp_err=
30323   fi
30324 else
30325   ac_cpp_err=yes
30326 fi
30327 if test -z "$ac_cpp_err"; then
30328   ac_header_preproc=yes
30329 else
30330   echo "$as_me: failed program was:" >&5
30331 sed 's/^/| /' conftest.$ac_ext >&5
30332
30333   ac_header_preproc=no
30334 fi
30335 rm -f conftest.err conftest.$ac_ext
30336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30337 echo "${ECHO_T}$ac_header_preproc" >&6
30338
30339 # So?  What about this header?
30340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30341   yes:no: )
30342     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30346     ac_header_preproc=yes
30347     ;;
30348   no:yes:* )
30349     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30351     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30352 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30353     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30355     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30356 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30359     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30361     (
30362       cat <<\_ASBOX
30363 ## ------------------------------------------ ##
30364 ## Report this to the AC_PACKAGE_NAME lists.  ##
30365 ## ------------------------------------------ ##
30366 _ASBOX
30367     ) |
30368       sed "s/^/$as_me: WARNING:     /" >&2
30369     ;;
30370 esac
30371 echo "$as_me:$LINENO: checking for $ac_header" >&5
30372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30374   echo $ECHO_N "(cached) $ECHO_C" >&6
30375 else
30376   eval "$as_ac_Header=\$ac_header_preproc"
30377 fi
30378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30380
30381 fi
30382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30383   cat >>confdefs.h <<_ACEOF
30384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30385 _ACEOF
30386
30387 fi
30388
30389 done
30390
30391 if test $ac_cv_header_db_h = yes; then
30392         ol_cv_lib_db=no
30393 if test $ol_cv_lib_db = no ; then
30394         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30395 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30396 if test "${ol_cv_db_none+set}" = set; then
30397   echo $ECHO_N "(cached) $ECHO_C" >&6
30398 else
30399
30400         ol_DB_LIB=
30401         ol_LIBS=$LIBS
30402         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30403
30404         cat >conftest.$ac_ext <<_ACEOF
30405 /* confdefs.h.  */
30406 _ACEOF
30407 cat confdefs.h >>conftest.$ac_ext
30408 cat >>conftest.$ac_ext <<_ACEOF
30409 /* end confdefs.h.  */
30410
30411 #ifdef HAVE_DB_185_H
30412 # include <db_185.h>
30413 #else
30414 # include <db.h>
30415 #endif
30416
30417 #ifndef DB_VERSION_MAJOR
30418 # define DB_VERSION_MAJOR 1
30419 #endif
30420
30421 #ifndef NULL
30422 #define NULL ((void*)0)
30423 #endif
30424
30425 int
30426 main ()
30427 {
30428
30429 #if DB_VERSION_MAJOR > 1
30430         {
30431                 char *version;
30432                 int major, minor, patch;
30433
30434                 version = db_version( &major, &minor, &patch );
30435
30436                 if( major != DB_VERSION_MAJOR ||
30437                         minor < DB_VERSION_MINOR )
30438                 {
30439                         printf("Berkeley DB version mismatch\n"
30440                                 "\theader: %s\n\tlibrary: %s\n",
30441                                 DB_VERSION_STRING, version);
30442                         return 1;
30443                 }
30444         }
30445 #endif
30446
30447 #if DB_VERSION_MAJOR > 2
30448         db_env_create( NULL, 0 );
30449 #elif DB_VERSION_MAJOR > 1
30450         db_appexit( NULL );
30451 #else
30452         (void) dbopen( NULL, 0, 0, 0, NULL);
30453 #endif
30454
30455   ;
30456   return 0;
30457 }
30458 _ACEOF
30459 rm -f conftest.$ac_objext conftest$ac_exeext
30460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30461   (eval $ac_link) 2>conftest.er1
30462   ac_status=$?
30463   grep -v '^ *+' conftest.er1 >conftest.err
30464   rm -f conftest.er1
30465   cat conftest.err >&5
30466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30467   (exit $ac_status); } &&
30468          { ac_try='test -z "$ac_c_werror_flag"
30469                          || test ! -s conftest.err'
30470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30471   (eval $ac_try) 2>&5
30472   ac_status=$?
30473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474   (exit $ac_status); }; } &&
30475          { ac_try='test -s conftest$ac_exeext'
30476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30477   (eval $ac_try) 2>&5
30478   ac_status=$?
30479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480   (exit $ac_status); }; }; then
30481   ol_cv_db_none=yes
30482 else
30483   echo "$as_me: failed program was:" >&5
30484 sed 's/^/| /' conftest.$ac_ext >&5
30485
30486 ol_cv_db_none=no
30487 fi
30488 rm -f conftest.err conftest.$ac_objext \
30489       conftest$ac_exeext conftest.$ac_ext
30490
30491         LIBS="$ol_LIBS"
30492
30493 fi
30494 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30495 echo "${ECHO_T}$ol_cv_db_none" >&6
30496
30497         if test $ol_cv_db_none = yes ; then
30498                 ol_cv_lib_db=yes
30499         fi
30500 fi
30501
30502 if test $ol_cv_lib_db = no ; then
30503         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
30504 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
30505 if test "${ol_cv_db_db43+set}" = set; then
30506   echo $ECHO_N "(cached) $ECHO_C" >&6
30507 else
30508
30509         ol_DB_LIB=-ldb43
30510         ol_LIBS=$LIBS
30511         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30512
30513         cat >conftest.$ac_ext <<_ACEOF
30514 /* confdefs.h.  */
30515 _ACEOF
30516 cat confdefs.h >>conftest.$ac_ext
30517 cat >>conftest.$ac_ext <<_ACEOF
30518 /* end confdefs.h.  */
30519
30520 #ifdef HAVE_DB_185_H
30521 # include <db_185.h>
30522 #else
30523 # include <db.h>
30524 #endif
30525
30526 #ifndef DB_VERSION_MAJOR
30527 # define DB_VERSION_MAJOR 1
30528 #endif
30529
30530 #ifndef NULL
30531 #define NULL ((void*)0)
30532 #endif
30533
30534 int
30535 main ()
30536 {
30537
30538 #if DB_VERSION_MAJOR > 1
30539         {
30540                 char *version;
30541                 int major, minor, patch;
30542
30543                 version = db_version( &major, &minor, &patch );
30544
30545                 if( major != DB_VERSION_MAJOR ||
30546                         minor < DB_VERSION_MINOR )
30547                 {
30548                         printf("Berkeley DB version mismatch\n"
30549                                 "\theader: %s\n\tlibrary: %s\n",
30550                                 DB_VERSION_STRING, version);
30551                         return 1;
30552                 }
30553         }
30554 #endif
30555
30556 #if DB_VERSION_MAJOR > 2
30557         db_env_create( NULL, 0 );
30558 #elif DB_VERSION_MAJOR > 1
30559         db_appexit( NULL );
30560 #else
30561         (void) dbopen( NULL, 0, 0, 0, NULL);
30562 #endif
30563
30564   ;
30565   return 0;
30566 }
30567 _ACEOF
30568 rm -f conftest.$ac_objext conftest$ac_exeext
30569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30570   (eval $ac_link) 2>conftest.er1
30571   ac_status=$?
30572   grep -v '^ *+' conftest.er1 >conftest.err
30573   rm -f conftest.er1
30574   cat conftest.err >&5
30575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576   (exit $ac_status); } &&
30577          { ac_try='test -z "$ac_c_werror_flag"
30578                          || test ! -s conftest.err'
30579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30580   (eval $ac_try) 2>&5
30581   ac_status=$?
30582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583   (exit $ac_status); }; } &&
30584          { ac_try='test -s conftest$ac_exeext'
30585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30586   (eval $ac_try) 2>&5
30587   ac_status=$?
30588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30589   (exit $ac_status); }; }; then
30590   ol_cv_db_db43=yes
30591 else
30592   echo "$as_me: failed program was:" >&5
30593 sed 's/^/| /' conftest.$ac_ext >&5
30594
30595 ol_cv_db_db43=no
30596 fi
30597 rm -f conftest.err conftest.$ac_objext \
30598       conftest$ac_exeext conftest.$ac_ext
30599
30600         LIBS="$ol_LIBS"
30601
30602 fi
30603 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
30604 echo "${ECHO_T}$ol_cv_db_db43" >&6
30605
30606         if test $ol_cv_db_db43 = yes ; then
30607                 ol_cv_lib_db=-ldb43
30608         fi
30609 fi
30610
30611 if test $ol_cv_lib_db = no ; then
30612         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
30613 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
30614 if test "${ol_cv_db_db_43+set}" = set; then
30615   echo $ECHO_N "(cached) $ECHO_C" >&6
30616 else
30617
30618         ol_DB_LIB=-ldb-43
30619         ol_LIBS=$LIBS
30620         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30621
30622         cat >conftest.$ac_ext <<_ACEOF
30623 /* confdefs.h.  */
30624 _ACEOF
30625 cat confdefs.h >>conftest.$ac_ext
30626 cat >>conftest.$ac_ext <<_ACEOF
30627 /* end confdefs.h.  */
30628
30629 #ifdef HAVE_DB_185_H
30630 # include <db_185.h>
30631 #else
30632 # include <db.h>
30633 #endif
30634
30635 #ifndef DB_VERSION_MAJOR
30636 # define DB_VERSION_MAJOR 1
30637 #endif
30638
30639 #ifndef NULL
30640 #define NULL ((void*)0)
30641 #endif
30642
30643 int
30644 main ()
30645 {
30646
30647 #if DB_VERSION_MAJOR > 1
30648         {
30649                 char *version;
30650                 int major, minor, patch;
30651
30652                 version = db_version( &major, &minor, &patch );
30653
30654                 if( major != DB_VERSION_MAJOR ||
30655                         minor < DB_VERSION_MINOR )
30656                 {
30657                         printf("Berkeley DB version mismatch\n"
30658                                 "\theader: %s\n\tlibrary: %s\n",
30659                                 DB_VERSION_STRING, version);
30660                         return 1;
30661                 }
30662         }
30663 #endif
30664
30665 #if DB_VERSION_MAJOR > 2
30666         db_env_create( NULL, 0 );
30667 #elif DB_VERSION_MAJOR > 1
30668         db_appexit( NULL );
30669 #else
30670         (void) dbopen( NULL, 0, 0, 0, NULL);
30671 #endif
30672
30673   ;
30674   return 0;
30675 }
30676 _ACEOF
30677 rm -f conftest.$ac_objext conftest$ac_exeext
30678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30679   (eval $ac_link) 2>conftest.er1
30680   ac_status=$?
30681   grep -v '^ *+' conftest.er1 >conftest.err
30682   rm -f conftest.er1
30683   cat conftest.err >&5
30684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685   (exit $ac_status); } &&
30686          { ac_try='test -z "$ac_c_werror_flag"
30687                          || test ! -s conftest.err'
30688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30689   (eval $ac_try) 2>&5
30690   ac_status=$?
30691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692   (exit $ac_status); }; } &&
30693          { ac_try='test -s conftest$ac_exeext'
30694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30695   (eval $ac_try) 2>&5
30696   ac_status=$?
30697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30698   (exit $ac_status); }; }; then
30699   ol_cv_db_db_43=yes
30700 else
30701   echo "$as_me: failed program was:" >&5
30702 sed 's/^/| /' conftest.$ac_ext >&5
30703
30704 ol_cv_db_db_43=no
30705 fi
30706 rm -f conftest.err conftest.$ac_objext \
30707       conftest$ac_exeext conftest.$ac_ext
30708
30709         LIBS="$ol_LIBS"
30710
30711 fi
30712 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
30713 echo "${ECHO_T}$ol_cv_db_db_43" >&6
30714
30715         if test $ol_cv_db_db_43 = yes ; then
30716                 ol_cv_lib_db=-ldb-43
30717         fi
30718 fi
30719
30720 if test $ol_cv_lib_db = no ; then
30721         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
30722 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
30723 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
30724   echo $ECHO_N "(cached) $ECHO_C" >&6
30725 else
30726
30727         ol_DB_LIB=-ldb-4.3
30728         ol_LIBS=$LIBS
30729         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30730
30731         cat >conftest.$ac_ext <<_ACEOF
30732 /* confdefs.h.  */
30733 _ACEOF
30734 cat confdefs.h >>conftest.$ac_ext
30735 cat >>conftest.$ac_ext <<_ACEOF
30736 /* end confdefs.h.  */
30737
30738 #ifdef HAVE_DB_185_H
30739 # include <db_185.h>
30740 #else
30741 # include <db.h>
30742 #endif
30743
30744 #ifndef DB_VERSION_MAJOR
30745 # define DB_VERSION_MAJOR 1
30746 #endif
30747
30748 #ifndef NULL
30749 #define NULL ((void*)0)
30750 #endif
30751
30752 int
30753 main ()
30754 {
30755
30756 #if DB_VERSION_MAJOR > 1
30757         {
30758                 char *version;
30759                 int major, minor, patch;
30760
30761                 version = db_version( &major, &minor, &patch );
30762
30763                 if( major != DB_VERSION_MAJOR ||
30764                         minor < DB_VERSION_MINOR )
30765                 {
30766                         printf("Berkeley DB version mismatch\n"
30767                                 "\theader: %s\n\tlibrary: %s\n",
30768                                 DB_VERSION_STRING, version);
30769                         return 1;
30770                 }
30771         }
30772 #endif
30773
30774 #if DB_VERSION_MAJOR > 2
30775         db_env_create( NULL, 0 );
30776 #elif DB_VERSION_MAJOR > 1
30777         db_appexit( NULL );
30778 #else
30779         (void) dbopen( NULL, 0, 0, 0, NULL);
30780 #endif
30781
30782   ;
30783   return 0;
30784 }
30785 _ACEOF
30786 rm -f conftest.$ac_objext conftest$ac_exeext
30787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30788   (eval $ac_link) 2>conftest.er1
30789   ac_status=$?
30790   grep -v '^ *+' conftest.er1 >conftest.err
30791   rm -f conftest.er1
30792   cat conftest.err >&5
30793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794   (exit $ac_status); } &&
30795          { ac_try='test -z "$ac_c_werror_flag"
30796                          || test ! -s conftest.err'
30797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30798   (eval $ac_try) 2>&5
30799   ac_status=$?
30800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801   (exit $ac_status); }; } &&
30802          { ac_try='test -s conftest$ac_exeext'
30803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30804   (eval $ac_try) 2>&5
30805   ac_status=$?
30806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807   (exit $ac_status); }; }; then
30808   ol_cv_db_db_4_dot_3=yes
30809 else
30810   echo "$as_me: failed program was:" >&5
30811 sed 's/^/| /' conftest.$ac_ext >&5
30812
30813 ol_cv_db_db_4_dot_3=no
30814 fi
30815 rm -f conftest.err conftest.$ac_objext \
30816       conftest$ac_exeext conftest.$ac_ext
30817
30818         LIBS="$ol_LIBS"
30819
30820 fi
30821 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
30822 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
30823
30824         if test $ol_cv_db_db_4_dot_3 = yes ; then
30825                 ol_cv_lib_db=-ldb-4.3
30826         fi
30827 fi
30828
30829 if test $ol_cv_lib_db = no ; then
30830         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
30831 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
30832 if test "${ol_cv_db_db_4_3+set}" = set; then
30833   echo $ECHO_N "(cached) $ECHO_C" >&6
30834 else
30835
30836         ol_DB_LIB=-ldb-4-3
30837         ol_LIBS=$LIBS
30838         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30839
30840         cat >conftest.$ac_ext <<_ACEOF
30841 /* confdefs.h.  */
30842 _ACEOF
30843 cat confdefs.h >>conftest.$ac_ext
30844 cat >>conftest.$ac_ext <<_ACEOF
30845 /* end confdefs.h.  */
30846
30847 #ifdef HAVE_DB_185_H
30848 # include <db_185.h>
30849 #else
30850 # include <db.h>
30851 #endif
30852
30853 #ifndef DB_VERSION_MAJOR
30854 # define DB_VERSION_MAJOR 1
30855 #endif
30856
30857 #ifndef NULL
30858 #define NULL ((void*)0)
30859 #endif
30860
30861 int
30862 main ()
30863 {
30864
30865 #if DB_VERSION_MAJOR > 1
30866         {
30867                 char *version;
30868                 int major, minor, patch;
30869
30870                 version = db_version( &major, &minor, &patch );
30871
30872                 if( major != DB_VERSION_MAJOR ||
30873                         minor < DB_VERSION_MINOR )
30874                 {
30875                         printf("Berkeley DB version mismatch\n"
30876                                 "\theader: %s\n\tlibrary: %s\n",
30877                                 DB_VERSION_STRING, version);
30878                         return 1;
30879                 }
30880         }
30881 #endif
30882
30883 #if DB_VERSION_MAJOR > 2
30884         db_env_create( NULL, 0 );
30885 #elif DB_VERSION_MAJOR > 1
30886         db_appexit( NULL );
30887 #else
30888         (void) dbopen( NULL, 0, 0, 0, NULL);
30889 #endif
30890
30891   ;
30892   return 0;
30893 }
30894 _ACEOF
30895 rm -f conftest.$ac_objext conftest$ac_exeext
30896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30897   (eval $ac_link) 2>conftest.er1
30898   ac_status=$?
30899   grep -v '^ *+' conftest.er1 >conftest.err
30900   rm -f conftest.er1
30901   cat conftest.err >&5
30902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30903   (exit $ac_status); } &&
30904          { ac_try='test -z "$ac_c_werror_flag"
30905                          || test ! -s conftest.err'
30906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30907   (eval $ac_try) 2>&5
30908   ac_status=$?
30909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910   (exit $ac_status); }; } &&
30911          { ac_try='test -s conftest$ac_exeext'
30912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30913   (eval $ac_try) 2>&5
30914   ac_status=$?
30915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916   (exit $ac_status); }; }; then
30917   ol_cv_db_db_4_3=yes
30918 else
30919   echo "$as_me: failed program was:" >&5
30920 sed 's/^/| /' conftest.$ac_ext >&5
30921
30922 ol_cv_db_db_4_3=no
30923 fi
30924 rm -f conftest.err conftest.$ac_objext \
30925       conftest$ac_exeext conftest.$ac_ext
30926
30927         LIBS="$ol_LIBS"
30928
30929 fi
30930 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
30931 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
30932
30933         if test $ol_cv_db_db_4_3 = yes ; then
30934                 ol_cv_lib_db=-ldb-4-3
30935         fi
30936 fi
30937
30938 if test $ol_cv_lib_db = no ; then
30939         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
30940 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
30941 if test "${ol_cv_db_db42+set}" = set; then
30942   echo $ECHO_N "(cached) $ECHO_C" >&6
30943 else
30944
30945         ol_DB_LIB=-ldb42
30946         ol_LIBS=$LIBS
30947         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30948
30949         cat >conftest.$ac_ext <<_ACEOF
30950 /* confdefs.h.  */
30951 _ACEOF
30952 cat confdefs.h >>conftest.$ac_ext
30953 cat >>conftest.$ac_ext <<_ACEOF
30954 /* end confdefs.h.  */
30955
30956 #ifdef HAVE_DB_185_H
30957 # include <db_185.h>
30958 #else
30959 # include <db.h>
30960 #endif
30961
30962 #ifndef DB_VERSION_MAJOR
30963 # define DB_VERSION_MAJOR 1
30964 #endif
30965
30966 #ifndef NULL
30967 #define NULL ((void*)0)
30968 #endif
30969
30970 int
30971 main ()
30972 {
30973
30974 #if DB_VERSION_MAJOR > 1
30975         {
30976                 char *version;
30977                 int major, minor, patch;
30978
30979                 version = db_version( &major, &minor, &patch );
30980
30981                 if( major != DB_VERSION_MAJOR ||
30982                         minor < DB_VERSION_MINOR )
30983                 {
30984                         printf("Berkeley DB version mismatch\n"
30985                                 "\theader: %s\n\tlibrary: %s\n",
30986                                 DB_VERSION_STRING, version);
30987                         return 1;
30988                 }
30989         }
30990 #endif
30991
30992 #if DB_VERSION_MAJOR > 2
30993         db_env_create( NULL, 0 );
30994 #elif DB_VERSION_MAJOR > 1
30995         db_appexit( NULL );
30996 #else
30997         (void) dbopen( NULL, 0, 0, 0, NULL);
30998 #endif
30999
31000   ;
31001   return 0;
31002 }
31003 _ACEOF
31004 rm -f conftest.$ac_objext conftest$ac_exeext
31005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31006   (eval $ac_link) 2>conftest.er1
31007   ac_status=$?
31008   grep -v '^ *+' conftest.er1 >conftest.err
31009   rm -f conftest.er1
31010   cat conftest.err >&5
31011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31012   (exit $ac_status); } &&
31013          { ac_try='test -z "$ac_c_werror_flag"
31014                          || test ! -s conftest.err'
31015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31016   (eval $ac_try) 2>&5
31017   ac_status=$?
31018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019   (exit $ac_status); }; } &&
31020          { ac_try='test -s conftest$ac_exeext'
31021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31022   (eval $ac_try) 2>&5
31023   ac_status=$?
31024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025   (exit $ac_status); }; }; then
31026   ol_cv_db_db42=yes
31027 else
31028   echo "$as_me: failed program was:" >&5
31029 sed 's/^/| /' conftest.$ac_ext >&5
31030
31031 ol_cv_db_db42=no
31032 fi
31033 rm -f conftest.err conftest.$ac_objext \
31034       conftest$ac_exeext conftest.$ac_ext
31035
31036         LIBS="$ol_LIBS"
31037
31038 fi
31039 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
31040 echo "${ECHO_T}$ol_cv_db_db42" >&6
31041
31042         if test $ol_cv_db_db42 = yes ; then
31043                 ol_cv_lib_db=-ldb42
31044         fi
31045 fi
31046
31047 if test $ol_cv_lib_db = no ; then
31048         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
31049 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
31050 if test "${ol_cv_db_db_42+set}" = set; then
31051   echo $ECHO_N "(cached) $ECHO_C" >&6
31052 else
31053
31054         ol_DB_LIB=-ldb-42
31055         ol_LIBS=$LIBS
31056         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31057
31058         cat >conftest.$ac_ext <<_ACEOF
31059 /* confdefs.h.  */
31060 _ACEOF
31061 cat confdefs.h >>conftest.$ac_ext
31062 cat >>conftest.$ac_ext <<_ACEOF
31063 /* end confdefs.h.  */
31064
31065 #ifdef HAVE_DB_185_H
31066 # include <db_185.h>
31067 #else
31068 # include <db.h>
31069 #endif
31070
31071 #ifndef DB_VERSION_MAJOR
31072 # define DB_VERSION_MAJOR 1
31073 #endif
31074
31075 #ifndef NULL
31076 #define NULL ((void*)0)
31077 #endif
31078
31079 int
31080 main ()
31081 {
31082
31083 #if DB_VERSION_MAJOR > 1
31084         {
31085                 char *version;
31086                 int major, minor, patch;
31087
31088                 version = db_version( &major, &minor, &patch );
31089
31090                 if( major != DB_VERSION_MAJOR ||
31091                         minor < DB_VERSION_MINOR )
31092                 {
31093                         printf("Berkeley DB version mismatch\n"
31094                                 "\theader: %s\n\tlibrary: %s\n",
31095                                 DB_VERSION_STRING, version);
31096                         return 1;
31097                 }
31098         }
31099 #endif
31100
31101 #if DB_VERSION_MAJOR > 2
31102         db_env_create( NULL, 0 );
31103 #elif DB_VERSION_MAJOR > 1
31104         db_appexit( NULL );
31105 #else
31106         (void) dbopen( NULL, 0, 0, 0, NULL);
31107 #endif
31108
31109   ;
31110   return 0;
31111 }
31112 _ACEOF
31113 rm -f conftest.$ac_objext conftest$ac_exeext
31114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31115   (eval $ac_link) 2>conftest.er1
31116   ac_status=$?
31117   grep -v '^ *+' conftest.er1 >conftest.err
31118   rm -f conftest.er1
31119   cat conftest.err >&5
31120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121   (exit $ac_status); } &&
31122          { ac_try='test -z "$ac_c_werror_flag"
31123                          || test ! -s conftest.err'
31124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31125   (eval $ac_try) 2>&5
31126   ac_status=$?
31127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128   (exit $ac_status); }; } &&
31129          { ac_try='test -s conftest$ac_exeext'
31130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31131   (eval $ac_try) 2>&5
31132   ac_status=$?
31133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134   (exit $ac_status); }; }; then
31135   ol_cv_db_db_42=yes
31136 else
31137   echo "$as_me: failed program was:" >&5
31138 sed 's/^/| /' conftest.$ac_ext >&5
31139
31140 ol_cv_db_db_42=no
31141 fi
31142 rm -f conftest.err conftest.$ac_objext \
31143       conftest$ac_exeext conftest.$ac_ext
31144
31145         LIBS="$ol_LIBS"
31146
31147 fi
31148 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
31149 echo "${ECHO_T}$ol_cv_db_db_42" >&6
31150
31151         if test $ol_cv_db_db_42 = yes ; then
31152                 ol_cv_lib_db=-ldb-42
31153         fi
31154 fi
31155
31156 if test $ol_cv_lib_db = no ; then
31157         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
31158 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
31159 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
31160   echo $ECHO_N "(cached) $ECHO_C" >&6
31161 else
31162
31163         ol_DB_LIB=-ldb-4.2
31164         ol_LIBS=$LIBS
31165         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31166
31167         cat >conftest.$ac_ext <<_ACEOF
31168 /* confdefs.h.  */
31169 _ACEOF
31170 cat confdefs.h >>conftest.$ac_ext
31171 cat >>conftest.$ac_ext <<_ACEOF
31172 /* end confdefs.h.  */
31173
31174 #ifdef HAVE_DB_185_H
31175 # include <db_185.h>
31176 #else
31177 # include <db.h>
31178 #endif
31179
31180 #ifndef DB_VERSION_MAJOR
31181 # define DB_VERSION_MAJOR 1
31182 #endif
31183
31184 #ifndef NULL
31185 #define NULL ((void*)0)
31186 #endif
31187
31188 int
31189 main ()
31190 {
31191
31192 #if DB_VERSION_MAJOR > 1
31193         {
31194                 char *version;
31195                 int major, minor, patch;
31196
31197                 version = db_version( &major, &minor, &patch );
31198
31199                 if( major != DB_VERSION_MAJOR ||
31200                         minor < DB_VERSION_MINOR )
31201                 {
31202                         printf("Berkeley DB version mismatch\n"
31203                                 "\theader: %s\n\tlibrary: %s\n",
31204                                 DB_VERSION_STRING, version);
31205                         return 1;
31206                 }
31207         }
31208 #endif
31209
31210 #if DB_VERSION_MAJOR > 2
31211         db_env_create( NULL, 0 );
31212 #elif DB_VERSION_MAJOR > 1
31213         db_appexit( NULL );
31214 #else
31215         (void) dbopen( NULL, 0, 0, 0, NULL);
31216 #endif
31217
31218   ;
31219   return 0;
31220 }
31221 _ACEOF
31222 rm -f conftest.$ac_objext conftest$ac_exeext
31223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31224   (eval $ac_link) 2>conftest.er1
31225   ac_status=$?
31226   grep -v '^ *+' conftest.er1 >conftest.err
31227   rm -f conftest.er1
31228   cat conftest.err >&5
31229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230   (exit $ac_status); } &&
31231          { ac_try='test -z "$ac_c_werror_flag"
31232                          || test ! -s conftest.err'
31233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31234   (eval $ac_try) 2>&5
31235   ac_status=$?
31236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237   (exit $ac_status); }; } &&
31238          { ac_try='test -s conftest$ac_exeext'
31239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31240   (eval $ac_try) 2>&5
31241   ac_status=$?
31242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243   (exit $ac_status); }; }; then
31244   ol_cv_db_db_4_dot_2=yes
31245 else
31246   echo "$as_me: failed program was:" >&5
31247 sed 's/^/| /' conftest.$ac_ext >&5
31248
31249 ol_cv_db_db_4_dot_2=no
31250 fi
31251 rm -f conftest.err conftest.$ac_objext \
31252       conftest$ac_exeext conftest.$ac_ext
31253
31254         LIBS="$ol_LIBS"
31255
31256 fi
31257 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
31258 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
31259
31260         if test $ol_cv_db_db_4_dot_2 = yes ; then
31261                 ol_cv_lib_db=-ldb-4.2
31262         fi
31263 fi
31264
31265 if test $ol_cv_lib_db = no ; then
31266         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
31267 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
31268 if test "${ol_cv_db_db_4_2+set}" = set; then
31269   echo $ECHO_N "(cached) $ECHO_C" >&6
31270 else
31271
31272         ol_DB_LIB=-ldb-4-2
31273         ol_LIBS=$LIBS
31274         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31275
31276         cat >conftest.$ac_ext <<_ACEOF
31277 /* confdefs.h.  */
31278 _ACEOF
31279 cat confdefs.h >>conftest.$ac_ext
31280 cat >>conftest.$ac_ext <<_ACEOF
31281 /* end confdefs.h.  */
31282
31283 #ifdef HAVE_DB_185_H
31284 # include <db_185.h>
31285 #else
31286 # include <db.h>
31287 #endif
31288
31289 #ifndef DB_VERSION_MAJOR
31290 # define DB_VERSION_MAJOR 1
31291 #endif
31292
31293 #ifndef NULL
31294 #define NULL ((void*)0)
31295 #endif
31296
31297 int
31298 main ()
31299 {
31300
31301 #if DB_VERSION_MAJOR > 1
31302         {
31303                 char *version;
31304                 int major, minor, patch;
31305
31306                 version = db_version( &major, &minor, &patch );
31307
31308                 if( major != DB_VERSION_MAJOR ||
31309                         minor < DB_VERSION_MINOR )
31310                 {
31311                         printf("Berkeley DB version mismatch\n"
31312                                 "\theader: %s\n\tlibrary: %s\n",
31313                                 DB_VERSION_STRING, version);
31314                         return 1;
31315                 }
31316         }
31317 #endif
31318
31319 #if DB_VERSION_MAJOR > 2
31320         db_env_create( NULL, 0 );
31321 #elif DB_VERSION_MAJOR > 1
31322         db_appexit( NULL );
31323 #else
31324         (void) dbopen( NULL, 0, 0, 0, NULL);
31325 #endif
31326
31327   ;
31328   return 0;
31329 }
31330 _ACEOF
31331 rm -f conftest.$ac_objext conftest$ac_exeext
31332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31333   (eval $ac_link) 2>conftest.er1
31334   ac_status=$?
31335   grep -v '^ *+' conftest.er1 >conftest.err
31336   rm -f conftest.er1
31337   cat conftest.err >&5
31338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339   (exit $ac_status); } &&
31340          { ac_try='test -z "$ac_c_werror_flag"
31341                          || test ! -s conftest.err'
31342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31343   (eval $ac_try) 2>&5
31344   ac_status=$?
31345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346   (exit $ac_status); }; } &&
31347          { ac_try='test -s conftest$ac_exeext'
31348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31349   (eval $ac_try) 2>&5
31350   ac_status=$?
31351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352   (exit $ac_status); }; }; then
31353   ol_cv_db_db_4_2=yes
31354 else
31355   echo "$as_me: failed program was:" >&5
31356 sed 's/^/| /' conftest.$ac_ext >&5
31357
31358 ol_cv_db_db_4_2=no
31359 fi
31360 rm -f conftest.err conftest.$ac_objext \
31361       conftest$ac_exeext conftest.$ac_ext
31362
31363         LIBS="$ol_LIBS"
31364
31365 fi
31366 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
31367 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
31368
31369         if test $ol_cv_db_db_4_2 = yes ; then
31370                 ol_cv_lib_db=-ldb-4-2
31371         fi
31372 fi
31373
31374 if test $ol_cv_lib_db = no ; then
31375         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
31376 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
31377 if test "${ol_cv_db_db_4+set}" = set; then
31378   echo $ECHO_N "(cached) $ECHO_C" >&6
31379 else
31380
31381         ol_DB_LIB=-ldb-4
31382         ol_LIBS=$LIBS
31383         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31384
31385         cat >conftest.$ac_ext <<_ACEOF
31386 /* confdefs.h.  */
31387 _ACEOF
31388 cat confdefs.h >>conftest.$ac_ext
31389 cat >>conftest.$ac_ext <<_ACEOF
31390 /* end confdefs.h.  */
31391
31392 #ifdef HAVE_DB_185_H
31393 # include <db_185.h>
31394 #else
31395 # include <db.h>
31396 #endif
31397
31398 #ifndef DB_VERSION_MAJOR
31399 # define DB_VERSION_MAJOR 1
31400 #endif
31401
31402 #ifndef NULL
31403 #define NULL ((void*)0)
31404 #endif
31405
31406 int
31407 main ()
31408 {
31409
31410 #if DB_VERSION_MAJOR > 1
31411         {
31412                 char *version;
31413                 int major, minor, patch;
31414
31415                 version = db_version( &major, &minor, &patch );
31416
31417                 if( major != DB_VERSION_MAJOR ||
31418                         minor < DB_VERSION_MINOR )
31419                 {
31420                         printf("Berkeley DB version mismatch\n"
31421                                 "\theader: %s\n\tlibrary: %s\n",
31422                                 DB_VERSION_STRING, version);
31423                         return 1;
31424                 }
31425         }
31426 #endif
31427
31428 #if DB_VERSION_MAJOR > 2
31429         db_env_create( NULL, 0 );
31430 #elif DB_VERSION_MAJOR > 1
31431         db_appexit( NULL );
31432 #else
31433         (void) dbopen( NULL, 0, 0, 0, NULL);
31434 #endif
31435
31436   ;
31437   return 0;
31438 }
31439 _ACEOF
31440 rm -f conftest.$ac_objext conftest$ac_exeext
31441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31442   (eval $ac_link) 2>conftest.er1
31443   ac_status=$?
31444   grep -v '^ *+' conftest.er1 >conftest.err
31445   rm -f conftest.er1
31446   cat conftest.err >&5
31447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448   (exit $ac_status); } &&
31449          { ac_try='test -z "$ac_c_werror_flag"
31450                          || test ! -s conftest.err'
31451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31452   (eval $ac_try) 2>&5
31453   ac_status=$?
31454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455   (exit $ac_status); }; } &&
31456          { ac_try='test -s conftest$ac_exeext'
31457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31458   (eval $ac_try) 2>&5
31459   ac_status=$?
31460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461   (exit $ac_status); }; }; then
31462   ol_cv_db_db_4=yes
31463 else
31464   echo "$as_me: failed program was:" >&5
31465 sed 's/^/| /' conftest.$ac_ext >&5
31466
31467 ol_cv_db_db_4=no
31468 fi
31469 rm -f conftest.err conftest.$ac_objext \
31470       conftest$ac_exeext conftest.$ac_ext
31471
31472         LIBS="$ol_LIBS"
31473
31474 fi
31475 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
31476 echo "${ECHO_T}$ol_cv_db_db_4" >&6
31477
31478         if test $ol_cv_db_db_4 = yes ; then
31479                 ol_cv_lib_db=-ldb-4
31480         fi
31481 fi
31482
31483 if test $ol_cv_lib_db = no ; then
31484         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
31485 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
31486 if test "${ol_cv_db_db4+set}" = set; then
31487   echo $ECHO_N "(cached) $ECHO_C" >&6
31488 else
31489
31490         ol_DB_LIB=-ldb4
31491         ol_LIBS=$LIBS
31492         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31493
31494         cat >conftest.$ac_ext <<_ACEOF
31495 /* confdefs.h.  */
31496 _ACEOF
31497 cat confdefs.h >>conftest.$ac_ext
31498 cat >>conftest.$ac_ext <<_ACEOF
31499 /* end confdefs.h.  */
31500
31501 #ifdef HAVE_DB_185_H
31502 # include <db_185.h>
31503 #else
31504 # include <db.h>
31505 #endif
31506
31507 #ifndef DB_VERSION_MAJOR
31508 # define DB_VERSION_MAJOR 1
31509 #endif
31510
31511 #ifndef NULL
31512 #define NULL ((void*)0)
31513 #endif
31514
31515 int
31516 main ()
31517 {
31518
31519 #if DB_VERSION_MAJOR > 1
31520         {
31521                 char *version;
31522                 int major, minor, patch;
31523
31524                 version = db_version( &major, &minor, &patch );
31525
31526                 if( major != DB_VERSION_MAJOR ||
31527                         minor < DB_VERSION_MINOR )
31528                 {
31529                         printf("Berkeley DB version mismatch\n"
31530                                 "\theader: %s\n\tlibrary: %s\n",
31531                                 DB_VERSION_STRING, version);
31532                         return 1;
31533                 }
31534         }
31535 #endif
31536
31537 #if DB_VERSION_MAJOR > 2
31538         db_env_create( NULL, 0 );
31539 #elif DB_VERSION_MAJOR > 1
31540         db_appexit( NULL );
31541 #else
31542         (void) dbopen( NULL, 0, 0, 0, NULL);
31543 #endif
31544
31545   ;
31546   return 0;
31547 }
31548 _ACEOF
31549 rm -f conftest.$ac_objext conftest$ac_exeext
31550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31551   (eval $ac_link) 2>conftest.er1
31552   ac_status=$?
31553   grep -v '^ *+' conftest.er1 >conftest.err
31554   rm -f conftest.er1
31555   cat conftest.err >&5
31556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557   (exit $ac_status); } &&
31558          { ac_try='test -z "$ac_c_werror_flag"
31559                          || test ! -s conftest.err'
31560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31561   (eval $ac_try) 2>&5
31562   ac_status=$?
31563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564   (exit $ac_status); }; } &&
31565          { ac_try='test -s conftest$ac_exeext'
31566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31567   (eval $ac_try) 2>&5
31568   ac_status=$?
31569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31570   (exit $ac_status); }; }; then
31571   ol_cv_db_db4=yes
31572 else
31573   echo "$as_me: failed program was:" >&5
31574 sed 's/^/| /' conftest.$ac_ext >&5
31575
31576 ol_cv_db_db4=no
31577 fi
31578 rm -f conftest.err conftest.$ac_objext \
31579       conftest$ac_exeext conftest.$ac_ext
31580
31581         LIBS="$ol_LIBS"
31582
31583 fi
31584 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
31585 echo "${ECHO_T}$ol_cv_db_db4" >&6
31586
31587         if test $ol_cv_db_db4 = yes ; then
31588                 ol_cv_lib_db=-ldb4
31589         fi
31590 fi
31591
31592 if test $ol_cv_lib_db = no ; then
31593         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
31594 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
31595 if test "${ol_cv_db_db+set}" = set; then
31596   echo $ECHO_N "(cached) $ECHO_C" >&6
31597 else
31598
31599         ol_DB_LIB=-ldb
31600         ol_LIBS=$LIBS
31601         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31602
31603         cat >conftest.$ac_ext <<_ACEOF
31604 /* confdefs.h.  */
31605 _ACEOF
31606 cat confdefs.h >>conftest.$ac_ext
31607 cat >>conftest.$ac_ext <<_ACEOF
31608 /* end confdefs.h.  */
31609
31610 #ifdef HAVE_DB_185_H
31611 # include <db_185.h>
31612 #else
31613 # include <db.h>
31614 #endif
31615
31616 #ifndef DB_VERSION_MAJOR
31617 # define DB_VERSION_MAJOR 1
31618 #endif
31619
31620 #ifndef NULL
31621 #define NULL ((void*)0)
31622 #endif
31623
31624 int
31625 main ()
31626 {
31627
31628 #if DB_VERSION_MAJOR > 1
31629         {
31630                 char *version;
31631                 int major, minor, patch;
31632
31633                 version = db_version( &major, &minor, &patch );
31634
31635                 if( major != DB_VERSION_MAJOR ||
31636                         minor < DB_VERSION_MINOR )
31637                 {
31638                         printf("Berkeley DB version mismatch\n"
31639                                 "\theader: %s\n\tlibrary: %s\n",
31640                                 DB_VERSION_STRING, version);
31641                         return 1;
31642                 }
31643         }
31644 #endif
31645
31646 #if DB_VERSION_MAJOR > 2
31647         db_env_create( NULL, 0 );
31648 #elif DB_VERSION_MAJOR > 1
31649         db_appexit( NULL );
31650 #else
31651         (void) dbopen( NULL, 0, 0, 0, NULL);
31652 #endif
31653
31654   ;
31655   return 0;
31656 }
31657 _ACEOF
31658 rm -f conftest.$ac_objext conftest$ac_exeext
31659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31660   (eval $ac_link) 2>conftest.er1
31661   ac_status=$?
31662   grep -v '^ *+' conftest.er1 >conftest.err
31663   rm -f conftest.er1
31664   cat conftest.err >&5
31665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666   (exit $ac_status); } &&
31667          { ac_try='test -z "$ac_c_werror_flag"
31668                          || test ! -s conftest.err'
31669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31670   (eval $ac_try) 2>&5
31671   ac_status=$?
31672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673   (exit $ac_status); }; } &&
31674          { ac_try='test -s conftest$ac_exeext'
31675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31676   (eval $ac_try) 2>&5
31677   ac_status=$?
31678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31679   (exit $ac_status); }; }; then
31680   ol_cv_db_db=yes
31681 else
31682   echo "$as_me: failed program was:" >&5
31683 sed 's/^/| /' conftest.$ac_ext >&5
31684
31685 ol_cv_db_db=no
31686 fi
31687 rm -f conftest.err conftest.$ac_objext \
31688       conftest$ac_exeext conftest.$ac_ext
31689
31690         LIBS="$ol_LIBS"
31691
31692 fi
31693 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
31694 echo "${ECHO_T}$ol_cv_db_db" >&6
31695
31696         if test $ol_cv_db_db = yes ; then
31697                 ol_cv_lib_db=-ldb
31698         fi
31699 fi
31700
31701 if test $ol_cv_lib_db = no ; then
31702         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
31703 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
31704 if test "${ol_cv_db_db41+set}" = set; then
31705   echo $ECHO_N "(cached) $ECHO_C" >&6
31706 else
31707
31708         ol_DB_LIB=-ldb41
31709         ol_LIBS=$LIBS
31710         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31711
31712         cat >conftest.$ac_ext <<_ACEOF
31713 /* confdefs.h.  */
31714 _ACEOF
31715 cat confdefs.h >>conftest.$ac_ext
31716 cat >>conftest.$ac_ext <<_ACEOF
31717 /* end confdefs.h.  */
31718
31719 #ifdef HAVE_DB_185_H
31720 # include <db_185.h>
31721 #else
31722 # include <db.h>
31723 #endif
31724
31725 #ifndef DB_VERSION_MAJOR
31726 # define DB_VERSION_MAJOR 1
31727 #endif
31728
31729 #ifndef NULL
31730 #define NULL ((void*)0)
31731 #endif
31732
31733 int
31734 main ()
31735 {
31736
31737 #if DB_VERSION_MAJOR > 1
31738         {
31739                 char *version;
31740                 int major, minor, patch;
31741
31742                 version = db_version( &major, &minor, &patch );
31743
31744                 if( major != DB_VERSION_MAJOR ||
31745                         minor < DB_VERSION_MINOR )
31746                 {
31747                         printf("Berkeley DB version mismatch\n"
31748                                 "\theader: %s\n\tlibrary: %s\n",
31749                                 DB_VERSION_STRING, version);
31750                         return 1;
31751                 }
31752         }
31753 #endif
31754
31755 #if DB_VERSION_MAJOR > 2
31756         db_env_create( NULL, 0 );
31757 #elif DB_VERSION_MAJOR > 1
31758         db_appexit( NULL );
31759 #else
31760         (void) dbopen( NULL, 0, 0, 0, NULL);
31761 #endif
31762
31763   ;
31764   return 0;
31765 }
31766 _ACEOF
31767 rm -f conftest.$ac_objext conftest$ac_exeext
31768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31769   (eval $ac_link) 2>conftest.er1
31770   ac_status=$?
31771   grep -v '^ *+' conftest.er1 >conftest.err
31772   rm -f conftest.er1
31773   cat conftest.err >&5
31774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775   (exit $ac_status); } &&
31776          { ac_try='test -z "$ac_c_werror_flag"
31777                          || test ! -s conftest.err'
31778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31779   (eval $ac_try) 2>&5
31780   ac_status=$?
31781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782   (exit $ac_status); }; } &&
31783          { ac_try='test -s conftest$ac_exeext'
31784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31785   (eval $ac_try) 2>&5
31786   ac_status=$?
31787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788   (exit $ac_status); }; }; then
31789   ol_cv_db_db41=yes
31790 else
31791   echo "$as_me: failed program was:" >&5
31792 sed 's/^/| /' conftest.$ac_ext >&5
31793
31794 ol_cv_db_db41=no
31795 fi
31796 rm -f conftest.err conftest.$ac_objext \
31797       conftest$ac_exeext conftest.$ac_ext
31798
31799         LIBS="$ol_LIBS"
31800
31801 fi
31802 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
31803 echo "${ECHO_T}$ol_cv_db_db41" >&6
31804
31805         if test $ol_cv_db_db41 = yes ; then
31806                 ol_cv_lib_db=-ldb41
31807         fi
31808 fi
31809
31810 if test $ol_cv_lib_db = no ; then
31811         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
31812 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
31813 if test "${ol_cv_db_db_41+set}" = set; then
31814   echo $ECHO_N "(cached) $ECHO_C" >&6
31815 else
31816
31817         ol_DB_LIB=-ldb-41
31818         ol_LIBS=$LIBS
31819         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31820
31821         cat >conftest.$ac_ext <<_ACEOF
31822 /* confdefs.h.  */
31823 _ACEOF
31824 cat confdefs.h >>conftest.$ac_ext
31825 cat >>conftest.$ac_ext <<_ACEOF
31826 /* end confdefs.h.  */
31827
31828 #ifdef HAVE_DB_185_H
31829 # include <db_185.h>
31830 #else
31831 # include <db.h>
31832 #endif
31833
31834 #ifndef DB_VERSION_MAJOR
31835 # define DB_VERSION_MAJOR 1
31836 #endif
31837
31838 #ifndef NULL
31839 #define NULL ((void*)0)
31840 #endif
31841
31842 int
31843 main ()
31844 {
31845
31846 #if DB_VERSION_MAJOR > 1
31847         {
31848                 char *version;
31849                 int major, minor, patch;
31850
31851                 version = db_version( &major, &minor, &patch );
31852
31853                 if( major != DB_VERSION_MAJOR ||
31854                         minor < DB_VERSION_MINOR )
31855                 {
31856                         printf("Berkeley DB version mismatch\n"
31857                                 "\theader: %s\n\tlibrary: %s\n",
31858                                 DB_VERSION_STRING, version);
31859                         return 1;
31860                 }
31861         }
31862 #endif
31863
31864 #if DB_VERSION_MAJOR > 2
31865         db_env_create( NULL, 0 );
31866 #elif DB_VERSION_MAJOR > 1
31867         db_appexit( NULL );
31868 #else
31869         (void) dbopen( NULL, 0, 0, 0, NULL);
31870 #endif
31871
31872   ;
31873   return 0;
31874 }
31875 _ACEOF
31876 rm -f conftest.$ac_objext conftest$ac_exeext
31877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31878   (eval $ac_link) 2>conftest.er1
31879   ac_status=$?
31880   grep -v '^ *+' conftest.er1 >conftest.err
31881   rm -f conftest.er1
31882   cat conftest.err >&5
31883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884   (exit $ac_status); } &&
31885          { ac_try='test -z "$ac_c_werror_flag"
31886                          || test ! -s conftest.err'
31887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31888   (eval $ac_try) 2>&5
31889   ac_status=$?
31890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891   (exit $ac_status); }; } &&
31892          { ac_try='test -s conftest$ac_exeext'
31893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894   (eval $ac_try) 2>&5
31895   ac_status=$?
31896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897   (exit $ac_status); }; }; then
31898   ol_cv_db_db_41=yes
31899 else
31900   echo "$as_me: failed program was:" >&5
31901 sed 's/^/| /' conftest.$ac_ext >&5
31902
31903 ol_cv_db_db_41=no
31904 fi
31905 rm -f conftest.err conftest.$ac_objext \
31906       conftest$ac_exeext conftest.$ac_ext
31907
31908         LIBS="$ol_LIBS"
31909
31910 fi
31911 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
31912 echo "${ECHO_T}$ol_cv_db_db_41" >&6
31913
31914         if test $ol_cv_db_db_41 = yes ; then
31915                 ol_cv_lib_db=-ldb-41
31916         fi
31917 fi
31918
31919 if test $ol_cv_lib_db = no ; then
31920         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
31921 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
31922 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
31923   echo $ECHO_N "(cached) $ECHO_C" >&6
31924 else
31925
31926         ol_DB_LIB=-ldb-4.1
31927         ol_LIBS=$LIBS
31928         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31929
31930         cat >conftest.$ac_ext <<_ACEOF
31931 /* confdefs.h.  */
31932 _ACEOF
31933 cat confdefs.h >>conftest.$ac_ext
31934 cat >>conftest.$ac_ext <<_ACEOF
31935 /* end confdefs.h.  */
31936
31937 #ifdef HAVE_DB_185_H
31938 # include <db_185.h>
31939 #else
31940 # include <db.h>
31941 #endif
31942
31943 #ifndef DB_VERSION_MAJOR
31944 # define DB_VERSION_MAJOR 1
31945 #endif
31946
31947 #ifndef NULL
31948 #define NULL ((void*)0)
31949 #endif
31950
31951 int
31952 main ()
31953 {
31954
31955 #if DB_VERSION_MAJOR > 1
31956         {
31957                 char *version;
31958                 int major, minor, patch;
31959
31960                 version = db_version( &major, &minor, &patch );
31961
31962                 if( major != DB_VERSION_MAJOR ||
31963                         minor < DB_VERSION_MINOR )
31964                 {
31965                         printf("Berkeley DB version mismatch\n"
31966                                 "\theader: %s\n\tlibrary: %s\n",
31967                                 DB_VERSION_STRING, version);
31968                         return 1;
31969                 }
31970         }
31971 #endif
31972
31973 #if DB_VERSION_MAJOR > 2
31974         db_env_create( NULL, 0 );
31975 #elif DB_VERSION_MAJOR > 1
31976         db_appexit( NULL );
31977 #else
31978         (void) dbopen( NULL, 0, 0, 0, NULL);
31979 #endif
31980
31981   ;
31982   return 0;
31983 }
31984 _ACEOF
31985 rm -f conftest.$ac_objext conftest$ac_exeext
31986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31987   (eval $ac_link) 2>conftest.er1
31988   ac_status=$?
31989   grep -v '^ *+' conftest.er1 >conftest.err
31990   rm -f conftest.er1
31991   cat conftest.err >&5
31992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993   (exit $ac_status); } &&
31994          { ac_try='test -z "$ac_c_werror_flag"
31995                          || test ! -s conftest.err'
31996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31997   (eval $ac_try) 2>&5
31998   ac_status=$?
31999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000   (exit $ac_status); }; } &&
32001          { ac_try='test -s conftest$ac_exeext'
32002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32003   (eval $ac_try) 2>&5
32004   ac_status=$?
32005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006   (exit $ac_status); }; }; then
32007   ol_cv_db_db_4_dot_1=yes
32008 else
32009   echo "$as_me: failed program was:" >&5
32010 sed 's/^/| /' conftest.$ac_ext >&5
32011
32012 ol_cv_db_db_4_dot_1=no
32013 fi
32014 rm -f conftest.err conftest.$ac_objext \
32015       conftest$ac_exeext conftest.$ac_ext
32016
32017         LIBS="$ol_LIBS"
32018
32019 fi
32020 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
32021 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
32022
32023         if test $ol_cv_db_db_4_dot_1 = yes ; then
32024                 ol_cv_lib_db=-ldb-4.1
32025         fi
32026 fi
32027
32028 if test $ol_cv_lib_db = no ; then
32029         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
32030 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
32031 if test "${ol_cv_db_db_4_1+set}" = set; then
32032   echo $ECHO_N "(cached) $ECHO_C" >&6
32033 else
32034
32035         ol_DB_LIB=-ldb-4-1
32036         ol_LIBS=$LIBS
32037         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32038
32039         cat >conftest.$ac_ext <<_ACEOF
32040 /* confdefs.h.  */
32041 _ACEOF
32042 cat confdefs.h >>conftest.$ac_ext
32043 cat >>conftest.$ac_ext <<_ACEOF
32044 /* end confdefs.h.  */
32045
32046 #ifdef HAVE_DB_185_H
32047 # include <db_185.h>
32048 #else
32049 # include <db.h>
32050 #endif
32051
32052 #ifndef DB_VERSION_MAJOR
32053 # define DB_VERSION_MAJOR 1
32054 #endif
32055
32056 #ifndef NULL
32057 #define NULL ((void*)0)
32058 #endif
32059
32060 int
32061 main ()
32062 {
32063
32064 #if DB_VERSION_MAJOR > 1
32065         {
32066                 char *version;
32067                 int major, minor, patch;
32068
32069                 version = db_version( &major, &minor, &patch );
32070
32071                 if( major != DB_VERSION_MAJOR ||
32072                         minor < DB_VERSION_MINOR )
32073                 {
32074                         printf("Berkeley DB version mismatch\n"
32075                                 "\theader: %s\n\tlibrary: %s\n",
32076                                 DB_VERSION_STRING, version);
32077                         return 1;
32078                 }
32079         }
32080 #endif
32081
32082 #if DB_VERSION_MAJOR > 2
32083         db_env_create( NULL, 0 );
32084 #elif DB_VERSION_MAJOR > 1
32085         db_appexit( NULL );
32086 #else
32087         (void) dbopen( NULL, 0, 0, 0, NULL);
32088 #endif
32089
32090   ;
32091   return 0;
32092 }
32093 _ACEOF
32094 rm -f conftest.$ac_objext conftest$ac_exeext
32095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32096   (eval $ac_link) 2>conftest.er1
32097   ac_status=$?
32098   grep -v '^ *+' conftest.er1 >conftest.err
32099   rm -f conftest.er1
32100   cat conftest.err >&5
32101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102   (exit $ac_status); } &&
32103          { ac_try='test -z "$ac_c_werror_flag"
32104                          || test ! -s conftest.err'
32105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32106   (eval $ac_try) 2>&5
32107   ac_status=$?
32108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109   (exit $ac_status); }; } &&
32110          { ac_try='test -s conftest$ac_exeext'
32111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32112   (eval $ac_try) 2>&5
32113   ac_status=$?
32114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115   (exit $ac_status); }; }; then
32116   ol_cv_db_db_4_1=yes
32117 else
32118   echo "$as_me: failed program was:" >&5
32119 sed 's/^/| /' conftest.$ac_ext >&5
32120
32121 ol_cv_db_db_4_1=no
32122 fi
32123 rm -f conftest.err conftest.$ac_objext \
32124       conftest$ac_exeext conftest.$ac_ext
32125
32126         LIBS="$ol_LIBS"
32127
32128 fi
32129 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
32130 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
32131
32132         if test $ol_cv_db_db_4_1 = yes ; then
32133                 ol_cv_lib_db=-ldb-4-1
32134         fi
32135 fi
32136
32137 if test $ol_cv_lib_db = no ; then
32138         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
32139 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
32140 if test "${ol_cv_db_db3+set}" = set; then
32141   echo $ECHO_N "(cached) $ECHO_C" >&6
32142 else
32143
32144         ol_DB_LIB=-ldb3
32145         ol_LIBS=$LIBS
32146         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32147
32148         cat >conftest.$ac_ext <<_ACEOF
32149 /* confdefs.h.  */
32150 _ACEOF
32151 cat confdefs.h >>conftest.$ac_ext
32152 cat >>conftest.$ac_ext <<_ACEOF
32153 /* end confdefs.h.  */
32154
32155 #ifdef HAVE_DB_185_H
32156 # include <db_185.h>
32157 #else
32158 # include <db.h>
32159 #endif
32160
32161 #ifndef DB_VERSION_MAJOR
32162 # define DB_VERSION_MAJOR 1
32163 #endif
32164
32165 #ifndef NULL
32166 #define NULL ((void*)0)
32167 #endif
32168
32169 int
32170 main ()
32171 {
32172
32173 #if DB_VERSION_MAJOR > 1
32174         {
32175                 char *version;
32176                 int major, minor, patch;
32177
32178                 version = db_version( &major, &minor, &patch );
32179
32180                 if( major != DB_VERSION_MAJOR ||
32181                         minor < DB_VERSION_MINOR )
32182                 {
32183                         printf("Berkeley DB version mismatch\n"
32184                                 "\theader: %s\n\tlibrary: %s\n",
32185                                 DB_VERSION_STRING, version);
32186                         return 1;
32187                 }
32188         }
32189 #endif
32190
32191 #if DB_VERSION_MAJOR > 2
32192         db_env_create( NULL, 0 );
32193 #elif DB_VERSION_MAJOR > 1
32194         db_appexit( NULL );
32195 #else
32196         (void) dbopen( NULL, 0, 0, 0, NULL);
32197 #endif
32198
32199   ;
32200   return 0;
32201 }
32202 _ACEOF
32203 rm -f conftest.$ac_objext conftest$ac_exeext
32204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32205   (eval $ac_link) 2>conftest.er1
32206   ac_status=$?
32207   grep -v '^ *+' conftest.er1 >conftest.err
32208   rm -f conftest.er1
32209   cat conftest.err >&5
32210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211   (exit $ac_status); } &&
32212          { ac_try='test -z "$ac_c_werror_flag"
32213                          || test ! -s conftest.err'
32214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32215   (eval $ac_try) 2>&5
32216   ac_status=$?
32217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32218   (exit $ac_status); }; } &&
32219          { ac_try='test -s conftest$ac_exeext'
32220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32221   (eval $ac_try) 2>&5
32222   ac_status=$?
32223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224   (exit $ac_status); }; }; then
32225   ol_cv_db_db3=yes
32226 else
32227   echo "$as_me: failed program was:" >&5
32228 sed 's/^/| /' conftest.$ac_ext >&5
32229
32230 ol_cv_db_db3=no
32231 fi
32232 rm -f conftest.err conftest.$ac_objext \
32233       conftest$ac_exeext conftest.$ac_ext
32234
32235         LIBS="$ol_LIBS"
32236
32237 fi
32238 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
32239 echo "${ECHO_T}$ol_cv_db_db3" >&6
32240
32241         if test $ol_cv_db_db3 = yes ; then
32242                 ol_cv_lib_db=-ldb3
32243         fi
32244 fi
32245
32246 if test $ol_cv_lib_db = no ; then
32247         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
32248 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
32249 if test "${ol_cv_db_db_3+set}" = set; then
32250   echo $ECHO_N "(cached) $ECHO_C" >&6
32251 else
32252
32253         ol_DB_LIB=-ldb-3
32254         ol_LIBS=$LIBS
32255         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32256
32257         cat >conftest.$ac_ext <<_ACEOF
32258 /* confdefs.h.  */
32259 _ACEOF
32260 cat confdefs.h >>conftest.$ac_ext
32261 cat >>conftest.$ac_ext <<_ACEOF
32262 /* end confdefs.h.  */
32263
32264 #ifdef HAVE_DB_185_H
32265 # include <db_185.h>
32266 #else
32267 # include <db.h>
32268 #endif
32269
32270 #ifndef DB_VERSION_MAJOR
32271 # define DB_VERSION_MAJOR 1
32272 #endif
32273
32274 #ifndef NULL
32275 #define NULL ((void*)0)
32276 #endif
32277
32278 int
32279 main ()
32280 {
32281
32282 #if DB_VERSION_MAJOR > 1
32283         {
32284                 char *version;
32285                 int major, minor, patch;
32286
32287                 version = db_version( &major, &minor, &patch );
32288
32289                 if( major != DB_VERSION_MAJOR ||
32290                         minor < DB_VERSION_MINOR )
32291                 {
32292                         printf("Berkeley DB version mismatch\n"
32293                                 "\theader: %s\n\tlibrary: %s\n",
32294                                 DB_VERSION_STRING, version);
32295                         return 1;
32296                 }
32297         }
32298 #endif
32299
32300 #if DB_VERSION_MAJOR > 2
32301         db_env_create( NULL, 0 );
32302 #elif DB_VERSION_MAJOR > 1
32303         db_appexit( NULL );
32304 #else
32305         (void) dbopen( NULL, 0, 0, 0, NULL);
32306 #endif
32307
32308   ;
32309   return 0;
32310 }
32311 _ACEOF
32312 rm -f conftest.$ac_objext conftest$ac_exeext
32313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32314   (eval $ac_link) 2>conftest.er1
32315   ac_status=$?
32316   grep -v '^ *+' conftest.er1 >conftest.err
32317   rm -f conftest.er1
32318   cat conftest.err >&5
32319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32320   (exit $ac_status); } &&
32321          { ac_try='test -z "$ac_c_werror_flag"
32322                          || test ! -s conftest.err'
32323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32324   (eval $ac_try) 2>&5
32325   ac_status=$?
32326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327   (exit $ac_status); }; } &&
32328          { ac_try='test -s conftest$ac_exeext'
32329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32330   (eval $ac_try) 2>&5
32331   ac_status=$?
32332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333   (exit $ac_status); }; }; then
32334   ol_cv_db_db_3=yes
32335 else
32336   echo "$as_me: failed program was:" >&5
32337 sed 's/^/| /' conftest.$ac_ext >&5
32338
32339 ol_cv_db_db_3=no
32340 fi
32341 rm -f conftest.err conftest.$ac_objext \
32342       conftest$ac_exeext conftest.$ac_ext
32343
32344         LIBS="$ol_LIBS"
32345
32346 fi
32347 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
32348 echo "${ECHO_T}$ol_cv_db_db_3" >&6
32349
32350         if test $ol_cv_db_db_3 = yes ; then
32351                 ol_cv_lib_db=-ldb-3
32352         fi
32353 fi
32354
32355 if test $ol_cv_lib_db = no ; then
32356         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
32357 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
32358 if test "${ol_cv_db_db2+set}" = set; then
32359   echo $ECHO_N "(cached) $ECHO_C" >&6
32360 else
32361
32362         ol_DB_LIB=-ldb2
32363         ol_LIBS=$LIBS
32364         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32365
32366         cat >conftest.$ac_ext <<_ACEOF
32367 /* confdefs.h.  */
32368 _ACEOF
32369 cat confdefs.h >>conftest.$ac_ext
32370 cat >>conftest.$ac_ext <<_ACEOF
32371 /* end confdefs.h.  */
32372
32373 #ifdef HAVE_DB_185_H
32374 # include <db_185.h>
32375 #else
32376 # include <db.h>
32377 #endif
32378
32379 #ifndef DB_VERSION_MAJOR
32380 # define DB_VERSION_MAJOR 1
32381 #endif
32382
32383 #ifndef NULL
32384 #define NULL ((void*)0)
32385 #endif
32386
32387 int
32388 main ()
32389 {
32390
32391 #if DB_VERSION_MAJOR > 1
32392         {
32393                 char *version;
32394                 int major, minor, patch;
32395
32396                 version = db_version( &major, &minor, &patch );
32397
32398                 if( major != DB_VERSION_MAJOR ||
32399                         minor < DB_VERSION_MINOR )
32400                 {
32401                         printf("Berkeley DB version mismatch\n"
32402                                 "\theader: %s\n\tlibrary: %s\n",
32403                                 DB_VERSION_STRING, version);
32404                         return 1;
32405                 }
32406         }
32407 #endif
32408
32409 #if DB_VERSION_MAJOR > 2
32410         db_env_create( NULL, 0 );
32411 #elif DB_VERSION_MAJOR > 1
32412         db_appexit( NULL );
32413 #else
32414         (void) dbopen( NULL, 0, 0, 0, NULL);
32415 #endif
32416
32417   ;
32418   return 0;
32419 }
32420 _ACEOF
32421 rm -f conftest.$ac_objext conftest$ac_exeext
32422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32423   (eval $ac_link) 2>conftest.er1
32424   ac_status=$?
32425   grep -v '^ *+' conftest.er1 >conftest.err
32426   rm -f conftest.er1
32427   cat conftest.err >&5
32428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32429   (exit $ac_status); } &&
32430          { ac_try='test -z "$ac_c_werror_flag"
32431                          || test ! -s conftest.err'
32432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32433   (eval $ac_try) 2>&5
32434   ac_status=$?
32435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436   (exit $ac_status); }; } &&
32437          { ac_try='test -s conftest$ac_exeext'
32438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32439   (eval $ac_try) 2>&5
32440   ac_status=$?
32441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442   (exit $ac_status); }; }; then
32443   ol_cv_db_db2=yes
32444 else
32445   echo "$as_me: failed program was:" >&5
32446 sed 's/^/| /' conftest.$ac_ext >&5
32447
32448 ol_cv_db_db2=no
32449 fi
32450 rm -f conftest.err conftest.$ac_objext \
32451       conftest$ac_exeext conftest.$ac_ext
32452
32453         LIBS="$ol_LIBS"
32454
32455 fi
32456 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
32457 echo "${ECHO_T}$ol_cv_db_db2" >&6
32458
32459         if test $ol_cv_db_db2 = yes ; then
32460                 ol_cv_lib_db=-ldb2
32461         fi
32462 fi
32463
32464 if test $ol_cv_lib_db = no ; then
32465         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
32466 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
32467 if test "${ol_cv_db_db_2+set}" = set; then
32468   echo $ECHO_N "(cached) $ECHO_C" >&6
32469 else
32470
32471         ol_DB_LIB=-ldb-2
32472         ol_LIBS=$LIBS
32473         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32474
32475         cat >conftest.$ac_ext <<_ACEOF
32476 /* confdefs.h.  */
32477 _ACEOF
32478 cat confdefs.h >>conftest.$ac_ext
32479 cat >>conftest.$ac_ext <<_ACEOF
32480 /* end confdefs.h.  */
32481
32482 #ifdef HAVE_DB_185_H
32483 # include <db_185.h>
32484 #else
32485 # include <db.h>
32486 #endif
32487
32488 #ifndef DB_VERSION_MAJOR
32489 # define DB_VERSION_MAJOR 1
32490 #endif
32491
32492 #ifndef NULL
32493 #define NULL ((void*)0)
32494 #endif
32495
32496 int
32497 main ()
32498 {
32499
32500 #if DB_VERSION_MAJOR > 1
32501         {
32502                 char *version;
32503                 int major, minor, patch;
32504
32505                 version = db_version( &major, &minor, &patch );
32506
32507                 if( major != DB_VERSION_MAJOR ||
32508                         minor < DB_VERSION_MINOR )
32509                 {
32510                         printf("Berkeley DB version mismatch\n"
32511                                 "\theader: %s\n\tlibrary: %s\n",
32512                                 DB_VERSION_STRING, version);
32513                         return 1;
32514                 }
32515         }
32516 #endif
32517
32518 #if DB_VERSION_MAJOR > 2
32519         db_env_create( NULL, 0 );
32520 #elif DB_VERSION_MAJOR > 1
32521         db_appexit( NULL );
32522 #else
32523         (void) dbopen( NULL, 0, 0, 0, NULL);
32524 #endif
32525
32526   ;
32527   return 0;
32528 }
32529 _ACEOF
32530 rm -f conftest.$ac_objext conftest$ac_exeext
32531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32532   (eval $ac_link) 2>conftest.er1
32533   ac_status=$?
32534   grep -v '^ *+' conftest.er1 >conftest.err
32535   rm -f conftest.er1
32536   cat conftest.err >&5
32537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538   (exit $ac_status); } &&
32539          { ac_try='test -z "$ac_c_werror_flag"
32540                          || test ! -s conftest.err'
32541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32542   (eval $ac_try) 2>&5
32543   ac_status=$?
32544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545   (exit $ac_status); }; } &&
32546          { ac_try='test -s conftest$ac_exeext'
32547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32548   (eval $ac_try) 2>&5
32549   ac_status=$?
32550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551   (exit $ac_status); }; }; then
32552   ol_cv_db_db_2=yes
32553 else
32554   echo "$as_me: failed program was:" >&5
32555 sed 's/^/| /' conftest.$ac_ext >&5
32556
32557 ol_cv_db_db_2=no
32558 fi
32559 rm -f conftest.err conftest.$ac_objext \
32560       conftest$ac_exeext conftest.$ac_ext
32561
32562         LIBS="$ol_LIBS"
32563
32564 fi
32565 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
32566 echo "${ECHO_T}$ol_cv_db_db_2" >&6
32567
32568         if test $ol_cv_db_db_2 = yes ; then
32569                 ol_cv_lib_db=-ldb-2
32570         fi
32571 fi
32572
32573 if test $ol_cv_lib_db = no ; then
32574         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
32575 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
32576 if test "${ol_cv_db_db1+set}" = set; then
32577   echo $ECHO_N "(cached) $ECHO_C" >&6
32578 else
32579
32580         ol_DB_LIB=-ldb1
32581         ol_LIBS=$LIBS
32582         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32583
32584         cat >conftest.$ac_ext <<_ACEOF
32585 /* confdefs.h.  */
32586 _ACEOF
32587 cat confdefs.h >>conftest.$ac_ext
32588 cat >>conftest.$ac_ext <<_ACEOF
32589 /* end confdefs.h.  */
32590
32591 #ifdef HAVE_DB_185_H
32592 # include <db_185.h>
32593 #else
32594 # include <db.h>
32595 #endif
32596
32597 #ifndef DB_VERSION_MAJOR
32598 # define DB_VERSION_MAJOR 1
32599 #endif
32600
32601 #ifndef NULL
32602 #define NULL ((void*)0)
32603 #endif
32604
32605 int
32606 main ()
32607 {
32608
32609 #if DB_VERSION_MAJOR > 1
32610         {
32611                 char *version;
32612                 int major, minor, patch;
32613
32614                 version = db_version( &major, &minor, &patch );
32615
32616                 if( major != DB_VERSION_MAJOR ||
32617                         minor < DB_VERSION_MINOR )
32618                 {
32619                         printf("Berkeley DB version mismatch\n"
32620                                 "\theader: %s\n\tlibrary: %s\n",
32621                                 DB_VERSION_STRING, version);
32622                         return 1;
32623                 }
32624         }
32625 #endif
32626
32627 #if DB_VERSION_MAJOR > 2
32628         db_env_create( NULL, 0 );
32629 #elif DB_VERSION_MAJOR > 1
32630         db_appexit( NULL );
32631 #else
32632         (void) dbopen( NULL, 0, 0, 0, NULL);
32633 #endif
32634
32635   ;
32636   return 0;
32637 }
32638 _ACEOF
32639 rm -f conftest.$ac_objext conftest$ac_exeext
32640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32641   (eval $ac_link) 2>conftest.er1
32642   ac_status=$?
32643   grep -v '^ *+' conftest.er1 >conftest.err
32644   rm -f conftest.er1
32645   cat conftest.err >&5
32646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32647   (exit $ac_status); } &&
32648          { ac_try='test -z "$ac_c_werror_flag"
32649                          || test ! -s conftest.err'
32650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32651   (eval $ac_try) 2>&5
32652   ac_status=$?
32653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654   (exit $ac_status); }; } &&
32655          { ac_try='test -s conftest$ac_exeext'
32656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32657   (eval $ac_try) 2>&5
32658   ac_status=$?
32659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660   (exit $ac_status); }; }; then
32661   ol_cv_db_db1=yes
32662 else
32663   echo "$as_me: failed program was:" >&5
32664 sed 's/^/| /' conftest.$ac_ext >&5
32665
32666 ol_cv_db_db1=no
32667 fi
32668 rm -f conftest.err conftest.$ac_objext \
32669       conftest$ac_exeext conftest.$ac_ext
32670
32671         LIBS="$ol_LIBS"
32672
32673 fi
32674 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
32675 echo "${ECHO_T}$ol_cv_db_db1" >&6
32676
32677         if test $ol_cv_db_db1 = yes ; then
32678                 ol_cv_lib_db=-ldb1
32679         fi
32680 fi
32681
32682 if test $ol_cv_lib_db = no ; then
32683         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
32684 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
32685 if test "${ol_cv_db_db_1+set}" = set; then
32686   echo $ECHO_N "(cached) $ECHO_C" >&6
32687 else
32688
32689         ol_DB_LIB=-ldb-1
32690         ol_LIBS=$LIBS
32691         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32692
32693         cat >conftest.$ac_ext <<_ACEOF
32694 /* confdefs.h.  */
32695 _ACEOF
32696 cat confdefs.h >>conftest.$ac_ext
32697 cat >>conftest.$ac_ext <<_ACEOF
32698 /* end confdefs.h.  */
32699
32700 #ifdef HAVE_DB_185_H
32701 # include <db_185.h>
32702 #else
32703 # include <db.h>
32704 #endif
32705
32706 #ifndef DB_VERSION_MAJOR
32707 # define DB_VERSION_MAJOR 1
32708 #endif
32709
32710 #ifndef NULL
32711 #define NULL ((void*)0)
32712 #endif
32713
32714 int
32715 main ()
32716 {
32717
32718 #if DB_VERSION_MAJOR > 1
32719         {
32720                 char *version;
32721                 int major, minor, patch;
32722
32723                 version = db_version( &major, &minor, &patch );
32724
32725                 if( major != DB_VERSION_MAJOR ||
32726                         minor < DB_VERSION_MINOR )
32727                 {
32728                         printf("Berkeley DB version mismatch\n"
32729                                 "\theader: %s\n\tlibrary: %s\n",
32730                                 DB_VERSION_STRING, version);
32731                         return 1;
32732                 }
32733         }
32734 #endif
32735
32736 #if DB_VERSION_MAJOR > 2
32737         db_env_create( NULL, 0 );
32738 #elif DB_VERSION_MAJOR > 1
32739         db_appexit( NULL );
32740 #else
32741         (void) dbopen( NULL, 0, 0, 0, NULL);
32742 #endif
32743
32744   ;
32745   return 0;
32746 }
32747 _ACEOF
32748 rm -f conftest.$ac_objext conftest$ac_exeext
32749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32750   (eval $ac_link) 2>conftest.er1
32751   ac_status=$?
32752   grep -v '^ *+' conftest.er1 >conftest.err
32753   rm -f conftest.er1
32754   cat conftest.err >&5
32755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756   (exit $ac_status); } &&
32757          { ac_try='test -z "$ac_c_werror_flag"
32758                          || test ! -s conftest.err'
32759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32760   (eval $ac_try) 2>&5
32761   ac_status=$?
32762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763   (exit $ac_status); }; } &&
32764          { ac_try='test -s conftest$ac_exeext'
32765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32766   (eval $ac_try) 2>&5
32767   ac_status=$?
32768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769   (exit $ac_status); }; }; then
32770   ol_cv_db_db_1=yes
32771 else
32772   echo "$as_me: failed program was:" >&5
32773 sed 's/^/| /' conftest.$ac_ext >&5
32774
32775 ol_cv_db_db_1=no
32776 fi
32777 rm -f conftest.err conftest.$ac_objext \
32778       conftest$ac_exeext conftest.$ac_ext
32779
32780         LIBS="$ol_LIBS"
32781
32782 fi
32783 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
32784 echo "${ECHO_T}$ol_cv_db_db_1" >&6
32785
32786         if test $ol_cv_db_db_1 = yes ; then
32787                 ol_cv_lib_db=-ldb-1
32788         fi
32789 fi
32790
32791
32792         if test "$ol_cv_lib_db" != no ; then
32793                 ol_cv_berkeley_db=yes
32794                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
32795 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
32796 if test "${ol_cv_berkeley_db_version+set}" = set; then
32797   echo $ECHO_N "(cached) $ECHO_C" >&6
32798 else
32799
32800         ol_LIBS="$LIBS"
32801         LIBS="$LTHREAD_LIBS $LIBS"
32802         if test $ol_cv_lib_db != yes ; then
32803                 LIBS="$ol_cv_lib_db $LIBS"
32804         fi
32805
32806         if test "$cross_compiling" = yes; then
32807   ol_cv_berkeley_db_version=cross
32808 else
32809   cat >conftest.$ac_ext <<_ACEOF
32810 /* confdefs.h.  */
32811 _ACEOF
32812 cat confdefs.h >>conftest.$ac_ext
32813 cat >>conftest.$ac_ext <<_ACEOF
32814 /* end confdefs.h.  */
32815
32816 #ifdef HAVE_DB_185_H
32817         choke me;
32818 #else
32819 #include <db.h>
32820 #endif
32821 #ifndef DB_VERSION_MAJOR
32822 # define DB_VERSION_MAJOR 1
32823 #endif
32824 #ifndef NULL
32825 #define NULL ((void *)0)
32826 #endif
32827 main()
32828 {
32829 #if DB_VERSION_MAJOR > 1
32830         char *version;
32831         int major, minor, patch;
32832
32833         version = db_version( &major, &minor, &patch );
32834
32835         if( major != DB_VERSION_MAJOR ||
32836                 minor != DB_VERSION_MINOR ||
32837                 patch != DB_VERSION_PATCH )
32838         {
32839                 printf("Berkeley DB version mismatch\n"
32840                         "\theader: %s\n\tlibrary: %s\n",
32841                         DB_VERSION_STRING, version);
32842                 return 1;
32843         }
32844 #endif
32845
32846         return 0;
32847 }
32848 _ACEOF
32849 rm -f conftest$ac_exeext
32850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32851   (eval $ac_link) 2>&5
32852   ac_status=$?
32853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32856   (eval $ac_try) 2>&5
32857   ac_status=$?
32858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32859   (exit $ac_status); }; }; then
32860   ol_cv_berkeley_db_version=yes
32861 else
32862   echo "$as_me: program exited with status $ac_status" >&5
32863 echo "$as_me: failed program was:" >&5
32864 sed 's/^/| /' conftest.$ac_ext >&5
32865
32866 ( exit $ac_status )
32867 ol_cv_berkeley_db_version=no
32868 fi
32869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32870 fi
32871
32872         LIBS="$ol_LIBS"
32873
32874 fi
32875 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
32876 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
32877
32878         if test $ol_cv_berkeley_db_version = no ; then
32879                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
32880 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
32881    { (exit 1); exit 1; }; }
32882         fi
32883
32884                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
32885 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
32886 if test "${ol_cv_berkeley_db_thread+set}" = set; then
32887   echo $ECHO_N "(cached) $ECHO_C" >&6
32888 else
32889
32890         ol_LIBS="$LIBS"
32891         LIBS="$LTHREAD_LIBS $LIBS"
32892         if test $ol_cv_lib_db != yes ; then
32893                 LIBS="$ol_cv_lib_db $LIBS"
32894         fi
32895
32896         if test "$cross_compiling" = yes; then
32897   ol_cv_berkeley_db_thread=cross
32898 else
32899   cat >conftest.$ac_ext <<_ACEOF
32900 /* confdefs.h.  */
32901 _ACEOF
32902 cat confdefs.h >>conftest.$ac_ext
32903 cat >>conftest.$ac_ext <<_ACEOF
32904 /* end confdefs.h.  */
32905
32906 #ifdef HAVE_DB_185_H
32907         choke me;
32908 #else
32909 #include <db.h>
32910 #endif
32911 #ifndef NULL
32912 #define NULL ((void *)0)
32913 #endif
32914 main()
32915 {
32916         int rc;
32917         u_int32_t flags = DB_CREATE |
32918 #ifdef DB_PRIVATE
32919                 DB_PRIVATE |
32920 #endif
32921                 DB_THREAD;
32922
32923 #if DB_VERSION_MAJOR > 2
32924         DB_ENV *env = NULL;
32925
32926         rc = db_env_create( &env, 0 );
32927
32928         flags |= DB_INIT_MPOOL;
32929 #ifdef DB_MPOOL_PRIVATE
32930         flags |= DB_MPOOL_PRIVATE;
32931 #endif
32932
32933         if( rc ) {
32934                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
32935                 return rc;
32936         }
32937
32938 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
32939         rc = env->open( env, NULL, flags, 0 );
32940 #else
32941         rc = env->open( env, NULL, NULL, flags, 0 );
32942 #endif
32943
32944         if ( rc == 0 ) {
32945                 rc = env->close( env, 0 );
32946         }
32947
32948         if( rc ) {
32949                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
32950                 return rc;
32951         }
32952
32953 #else
32954         DB_ENV env;
32955         memset( &env, '\0', sizeof(env) );
32956
32957         rc = db_appinit( NULL, NULL, &env, flags );
32958
32959         if( rc == 0 ) {
32960                 db_appexit( &env );
32961         }
32962
32963         unlink("__db_mpool.share");
32964         unlink("__db_lock.share");
32965 #endif
32966
32967         return rc;
32968 }
32969 _ACEOF
32970 rm -f conftest$ac_exeext
32971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32972   (eval $ac_link) 2>&5
32973   ac_status=$?
32974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32977   (eval $ac_try) 2>&5
32978   ac_status=$?
32979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980   (exit $ac_status); }; }; then
32981   ol_cv_berkeley_db_thread=yes
32982 else
32983   echo "$as_me: program exited with status $ac_status" >&5
32984 echo "$as_me: failed program was:" >&5
32985 sed 's/^/| /' conftest.$ac_ext >&5
32986
32987 ( exit $ac_status )
32988 ol_cv_berkeley_db_thread=no
32989 fi
32990 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32991 fi
32992
32993         LIBS="$ol_LIBS"
32994
32995 fi
32996 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
32997 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
32998
32999         if test $ol_cv_berkeley_db_thread != no ; then
33000
33001 cat >>confdefs.h <<\_ACEOF
33002 #define HAVE_BERKELEY_DB_THREAD 1
33003 _ACEOF
33004
33005         fi
33006
33007         fi
33008 fi
33009
33010         fi
33011
33012         if test $ol_cv_berkeley_db != no ; then
33013
33014 cat >>confdefs.h <<\_ACEOF
33015 #define HAVE_BERKELEY_DB 1
33016 _ACEOF
33017
33018
33019                 ol_link_ldbm=berkeley
33020                 ol_enable_ldbm_api=berkeley
33021
33022                 if test $ol_enable_ldbm_type = hash ; then
33023
33024 cat >>confdefs.h <<\_ACEOF
33025 #define LDBM_USE_DBHASH 1
33026 _ACEOF
33027
33028                 else
33029
33030 cat >>confdefs.h <<\_ACEOF
33031 #define LDBM_USE_DBBTREE 1
33032 _ACEOF
33033
33034                 fi
33035
33036                                                 if test $ol_cv_lib_db != yes ; then
33037                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
33038                 fi
33039         fi
33040         ;;
33041 esac
33042
33043 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
33044         if test $ol_link_ldbm != berkeley ; then
33045                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
33046 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
33047    { (exit 1); exit 1; }; }
33048         else
33049                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
33050 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
33051 if test "${ol_cv_bdb_compat+set}" = set; then
33052   echo $ECHO_N "(cached) $ECHO_C" >&6
33053 else
33054
33055         cat >conftest.$ac_ext <<_ACEOF
33056 /* confdefs.h.  */
33057 _ACEOF
33058 cat confdefs.h >>conftest.$ac_ext
33059 cat >>conftest.$ac_ext <<_ACEOF
33060 /* end confdefs.h.  */
33061
33062 #include <db.h>
33063
33064  /* this check could be improved */
33065 #ifndef DB_VERSION_MAJOR
33066 #       define DB_VERSION_MAJOR 1
33067 #endif
33068 #ifndef DB_VERSION_MINOR
33069 #       define DB_VERSION_MINOR 0
33070 #endif
33071
33072 /* require 4.2 or later */
33073 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
33074         __db_version_compat
33075 #endif
33076
33077 _ACEOF
33078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33079   $EGREP "__db_version_compat" >/dev/null 2>&1; then
33080   ol_cv_bdb_compat=yes
33081 else
33082   ol_cv_bdb_compat=no
33083 fi
33084 rm -f conftest*
33085
33086 fi
33087 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
33088 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
33089
33090
33091                 if test $ol_cv_bdb_compat != yes ; then
33092                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
33093 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
33094    { (exit 1); exit 1; }; }
33095                 fi
33096         fi
33097 fi
33098
33099 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
33100         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
33101 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
33102         ol_enable_ldbm_api=none
33103 fi
33104
33105 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
33106         echo "$as_me:$LINENO: checking for MDBM library" >&5
33107 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
33108 if test "${ol_cv_lib_mdbm+set}" = set; then
33109   echo $ECHO_N "(cached) $ECHO_C" >&6
33110 else
33111         ol_LIBS="$LIBS"
33112         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
33113 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
33114 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
33115   echo $ECHO_N "(cached) $ECHO_C" >&6
33116 else
33117   cat >conftest.$ac_ext <<_ACEOF
33118 /* confdefs.h.  */
33119 _ACEOF
33120 cat confdefs.h >>conftest.$ac_ext
33121 cat >>conftest.$ac_ext <<_ACEOF
33122 /* end confdefs.h.  */
33123 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
33124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33125 #define mdbm_set_chain innocuous_mdbm_set_chain
33126
33127 /* System header to define __stub macros and hopefully few prototypes,
33128     which can conflict with char mdbm_set_chain (); below.
33129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33130     <limits.h> exists even on freestanding compilers.  */
33131
33132 #ifdef __STDC__
33133 # include <limits.h>
33134 #else
33135 # include <assert.h>
33136 #endif
33137
33138 #undef mdbm_set_chain
33139
33140 /* Override any gcc2 internal prototype to avoid an error.  */
33141 #ifdef __cplusplus
33142 extern "C"
33143 {
33144 #endif
33145 /* We use char because int might match the return type of a gcc2
33146    builtin and then its argument prototype would still apply.  */
33147 char mdbm_set_chain ();
33148 /* The GNU C library defines this for functions which it implements
33149     to always fail with ENOSYS.  Some functions are actually named
33150     something starting with __ and the normal name is an alias.  */
33151 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
33152 choke me
33153 #else
33154 char (*f) () = mdbm_set_chain;
33155 #endif
33156 #ifdef __cplusplus
33157 }
33158 #endif
33159
33160 int
33161 main ()
33162 {
33163 return f != mdbm_set_chain;
33164   ;
33165   return 0;
33166 }
33167 _ACEOF
33168 rm -f conftest.$ac_objext conftest$ac_exeext
33169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33170   (eval $ac_link) 2>conftest.er1
33171   ac_status=$?
33172   grep -v '^ *+' conftest.er1 >conftest.err
33173   rm -f conftest.er1
33174   cat conftest.err >&5
33175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176   (exit $ac_status); } &&
33177          { ac_try='test -z "$ac_c_werror_flag"
33178                          || test ! -s conftest.err'
33179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33180   (eval $ac_try) 2>&5
33181   ac_status=$?
33182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33183   (exit $ac_status); }; } &&
33184          { ac_try='test -s conftest$ac_exeext'
33185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33186   (eval $ac_try) 2>&5
33187   ac_status=$?
33188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189   (exit $ac_status); }; }; then
33190   ac_cv_func_mdbm_set_chain=yes
33191 else
33192   echo "$as_me: failed program was:" >&5
33193 sed 's/^/| /' conftest.$ac_ext >&5
33194
33195 ac_cv_func_mdbm_set_chain=no
33196 fi
33197 rm -f conftest.err conftest.$ac_objext \
33198       conftest$ac_exeext conftest.$ac_ext
33199 fi
33200 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
33201 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
33202 if test $ac_cv_func_mdbm_set_chain = yes; then
33203   ol_cv_lib_mdbm=yes
33204 else
33205
33206                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
33207 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
33208 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
33209   echo $ECHO_N "(cached) $ECHO_C" >&6
33210 else
33211   ac_check_lib_save_LIBS=$LIBS
33212 LIBS="-lmdbm  $LIBS"
33213 cat >conftest.$ac_ext <<_ACEOF
33214 /* confdefs.h.  */
33215 _ACEOF
33216 cat confdefs.h >>conftest.$ac_ext
33217 cat >>conftest.$ac_ext <<_ACEOF
33218 /* end confdefs.h.  */
33219
33220 /* Override any gcc2 internal prototype to avoid an error.  */
33221 #ifdef __cplusplus
33222 extern "C"
33223 #endif
33224 /* We use char because int might match the return type of a gcc2
33225    builtin and then its argument prototype would still apply.  */
33226 char mdbm_set_chain ();
33227 int
33228 main ()
33229 {
33230 mdbm_set_chain ();
33231   ;
33232   return 0;
33233 }
33234 _ACEOF
33235 rm -f conftest.$ac_objext conftest$ac_exeext
33236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33237   (eval $ac_link) 2>conftest.er1
33238   ac_status=$?
33239   grep -v '^ *+' conftest.er1 >conftest.err
33240   rm -f conftest.er1
33241   cat conftest.err >&5
33242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243   (exit $ac_status); } &&
33244          { ac_try='test -z "$ac_c_werror_flag"
33245                          || test ! -s conftest.err'
33246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33247   (eval $ac_try) 2>&5
33248   ac_status=$?
33249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250   (exit $ac_status); }; } &&
33251          { ac_try='test -s conftest$ac_exeext'
33252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33253   (eval $ac_try) 2>&5
33254   ac_status=$?
33255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256   (exit $ac_status); }; }; then
33257   ac_cv_lib_mdbm_mdbm_set_chain=yes
33258 else
33259   echo "$as_me: failed program was:" >&5
33260 sed 's/^/| /' conftest.$ac_ext >&5
33261
33262 ac_cv_lib_mdbm_mdbm_set_chain=no
33263 fi
33264 rm -f conftest.err conftest.$ac_objext \
33265       conftest$ac_exeext conftest.$ac_ext
33266 LIBS=$ac_check_lib_save_LIBS
33267 fi
33268 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
33269 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
33270 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
33271   ol_cv_lib_mdbm=-lmdbm
33272 else
33273   ol_cv_lib_mdbm=no
33274 fi
33275
33276
33277 fi
33278
33279         LIBS="$ol_LIBS"
33280
33281 fi
33282 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
33283 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
33284
33285
33286
33287 for ac_header in mdbm.h
33288 do
33289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33291   echo "$as_me:$LINENO: checking for $ac_header" >&5
33292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33294   echo $ECHO_N "(cached) $ECHO_C" >&6
33295 fi
33296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33298 else
33299   # Is the header compilable?
33300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33302 cat >conftest.$ac_ext <<_ACEOF
33303 /* confdefs.h.  */
33304 _ACEOF
33305 cat confdefs.h >>conftest.$ac_ext
33306 cat >>conftest.$ac_ext <<_ACEOF
33307 /* end confdefs.h.  */
33308 $ac_includes_default
33309 #include <$ac_header>
33310 _ACEOF
33311 rm -f conftest.$ac_objext
33312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33313   (eval $ac_compile) 2>conftest.er1
33314   ac_status=$?
33315   grep -v '^ *+' conftest.er1 >conftest.err
33316   rm -f conftest.er1
33317   cat conftest.err >&5
33318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319   (exit $ac_status); } &&
33320          { ac_try='test -z "$ac_c_werror_flag"
33321                          || test ! -s conftest.err'
33322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33323   (eval $ac_try) 2>&5
33324   ac_status=$?
33325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326   (exit $ac_status); }; } &&
33327          { ac_try='test -s conftest.$ac_objext'
33328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33329   (eval $ac_try) 2>&5
33330   ac_status=$?
33331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332   (exit $ac_status); }; }; then
33333   ac_header_compiler=yes
33334 else
33335   echo "$as_me: failed program was:" >&5
33336 sed 's/^/| /' conftest.$ac_ext >&5
33337
33338 ac_header_compiler=no
33339 fi
33340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33342 echo "${ECHO_T}$ac_header_compiler" >&6
33343
33344 # Is the header present?
33345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33347 cat >conftest.$ac_ext <<_ACEOF
33348 /* confdefs.h.  */
33349 _ACEOF
33350 cat confdefs.h >>conftest.$ac_ext
33351 cat >>conftest.$ac_ext <<_ACEOF
33352 /* end confdefs.h.  */
33353 #include <$ac_header>
33354 _ACEOF
33355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33356   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33357   ac_status=$?
33358   grep -v '^ *+' conftest.er1 >conftest.err
33359   rm -f conftest.er1
33360   cat conftest.err >&5
33361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362   (exit $ac_status); } >/dev/null; then
33363   if test -s conftest.err; then
33364     ac_cpp_err=$ac_c_preproc_warn_flag
33365     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33366   else
33367     ac_cpp_err=
33368   fi
33369 else
33370   ac_cpp_err=yes
33371 fi
33372 if test -z "$ac_cpp_err"; then
33373   ac_header_preproc=yes
33374 else
33375   echo "$as_me: failed program was:" >&5
33376 sed 's/^/| /' conftest.$ac_ext >&5
33377
33378   ac_header_preproc=no
33379 fi
33380 rm -f conftest.err conftest.$ac_ext
33381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33382 echo "${ECHO_T}$ac_header_preproc" >&6
33383
33384 # So?  What about this header?
33385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33386   yes:no: )
33387     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33391     ac_header_preproc=yes
33392     ;;
33393   no:yes:* )
33394     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33396     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33397 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33398     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33400     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33401 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33404     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33406     (
33407       cat <<\_ASBOX
33408 ## ------------------------------------------ ##
33409 ## Report this to the AC_PACKAGE_NAME lists.  ##
33410 ## ------------------------------------------ ##
33411 _ASBOX
33412     ) |
33413       sed "s/^/$as_me: WARNING:     /" >&2
33414     ;;
33415 esac
33416 echo "$as_me:$LINENO: checking for $ac_header" >&5
33417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33419   echo $ECHO_N "(cached) $ECHO_C" >&6
33420 else
33421   eval "$as_ac_Header=\$ac_header_preproc"
33422 fi
33423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33425
33426 fi
33427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33428   cat >>confdefs.h <<_ACEOF
33429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33430 _ACEOF
33431
33432 fi
33433
33434 done
33435
33436  echo "$as_me:$LINENO: checking for db" >&5
33437 echo $ECHO_N "checking for db... $ECHO_C" >&6
33438 if test "${ol_cv_mdbm+set}" = set; then
33439   echo $ECHO_N "(cached) $ECHO_C" >&6
33440 else
33441
33442         if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
33443                 ol_cv_mdbm=no
33444         else
33445                 ol_cv_mdbm=yes
33446         fi
33447
33448 fi
33449 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
33450 echo "${ECHO_T}$ol_cv_mdbm" >&6
33451  if test $ol_cv_mdbm = yes ; then
33452
33453 cat >>confdefs.h <<\_ACEOF
33454 #define HAVE_MDBM 1
33455 _ACEOF
33456
33457  fi
33458
33459
33460         if test $ol_cv_mdbm = yes ; then
33461                 ol_link_ldbm=mdbm
33462                 ol_enable_ldbm_api=mdbm
33463                 if test $ol_cv_lib_mdbm != yes ; then
33464                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
33465                 fi
33466         fi
33467 fi
33468
33469 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
33470         echo "$as_me:$LINENO: checking for GDBM library" >&5
33471 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
33472 if test "${ol_cv_lib_gdbm+set}" = set; then
33473   echo $ECHO_N "(cached) $ECHO_C" >&6
33474 else
33475         ol_LIBS="$LIBS"
33476         echo "$as_me:$LINENO: checking for gdbm_open" >&5
33477 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
33478 if test "${ac_cv_func_gdbm_open+set}" = set; then
33479   echo $ECHO_N "(cached) $ECHO_C" >&6
33480 else
33481   cat >conftest.$ac_ext <<_ACEOF
33482 /* confdefs.h.  */
33483 _ACEOF
33484 cat confdefs.h >>conftest.$ac_ext
33485 cat >>conftest.$ac_ext <<_ACEOF
33486 /* end confdefs.h.  */
33487 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
33488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33489 #define gdbm_open innocuous_gdbm_open
33490
33491 /* System header to define __stub macros and hopefully few prototypes,
33492     which can conflict with char gdbm_open (); below.
33493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33494     <limits.h> exists even on freestanding compilers.  */
33495
33496 #ifdef __STDC__
33497 # include <limits.h>
33498 #else
33499 # include <assert.h>
33500 #endif
33501
33502 #undef gdbm_open
33503
33504 /* Override any gcc2 internal prototype to avoid an error.  */
33505 #ifdef __cplusplus
33506 extern "C"
33507 {
33508 #endif
33509 /* We use char because int might match the return type of a gcc2
33510    builtin and then its argument prototype would still apply.  */
33511 char gdbm_open ();
33512 /* The GNU C library defines this for functions which it implements
33513     to always fail with ENOSYS.  Some functions are actually named
33514     something starting with __ and the normal name is an alias.  */
33515 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
33516 choke me
33517 #else
33518 char (*f) () = gdbm_open;
33519 #endif
33520 #ifdef __cplusplus
33521 }
33522 #endif
33523
33524 int
33525 main ()
33526 {
33527 return f != gdbm_open;
33528   ;
33529   return 0;
33530 }
33531 _ACEOF
33532 rm -f conftest.$ac_objext conftest$ac_exeext
33533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33534   (eval $ac_link) 2>conftest.er1
33535   ac_status=$?
33536   grep -v '^ *+' conftest.er1 >conftest.err
33537   rm -f conftest.er1
33538   cat conftest.err >&5
33539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540   (exit $ac_status); } &&
33541          { ac_try='test -z "$ac_c_werror_flag"
33542                          || test ! -s conftest.err'
33543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33544   (eval $ac_try) 2>&5
33545   ac_status=$?
33546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33547   (exit $ac_status); }; } &&
33548          { ac_try='test -s conftest$ac_exeext'
33549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33550   (eval $ac_try) 2>&5
33551   ac_status=$?
33552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553   (exit $ac_status); }; }; then
33554   ac_cv_func_gdbm_open=yes
33555 else
33556   echo "$as_me: failed program was:" >&5
33557 sed 's/^/| /' conftest.$ac_ext >&5
33558
33559 ac_cv_func_gdbm_open=no
33560 fi
33561 rm -f conftest.err conftest.$ac_objext \
33562       conftest$ac_exeext conftest.$ac_ext
33563 fi
33564 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
33565 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
33566 if test $ac_cv_func_gdbm_open = yes; then
33567   ol_cv_lib_gdbm=yes
33568 else
33569
33570                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
33571 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
33572 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
33573   echo $ECHO_N "(cached) $ECHO_C" >&6
33574 else
33575   ac_check_lib_save_LIBS=$LIBS
33576 LIBS="-lgdbm  $LIBS"
33577 cat >conftest.$ac_ext <<_ACEOF
33578 /* confdefs.h.  */
33579 _ACEOF
33580 cat confdefs.h >>conftest.$ac_ext
33581 cat >>conftest.$ac_ext <<_ACEOF
33582 /* end confdefs.h.  */
33583
33584 /* Override any gcc2 internal prototype to avoid an error.  */
33585 #ifdef __cplusplus
33586 extern "C"
33587 #endif
33588 /* We use char because int might match the return type of a gcc2
33589    builtin and then its argument prototype would still apply.  */
33590 char gdbm_open ();
33591 int
33592 main ()
33593 {
33594 gdbm_open ();
33595   ;
33596   return 0;
33597 }
33598 _ACEOF
33599 rm -f conftest.$ac_objext conftest$ac_exeext
33600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33601   (eval $ac_link) 2>conftest.er1
33602   ac_status=$?
33603   grep -v '^ *+' conftest.er1 >conftest.err
33604   rm -f conftest.er1
33605   cat conftest.err >&5
33606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607   (exit $ac_status); } &&
33608          { ac_try='test -z "$ac_c_werror_flag"
33609                          || test ! -s conftest.err'
33610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33611   (eval $ac_try) 2>&5
33612   ac_status=$?
33613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614   (exit $ac_status); }; } &&
33615          { ac_try='test -s conftest$ac_exeext'
33616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33617   (eval $ac_try) 2>&5
33618   ac_status=$?
33619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620   (exit $ac_status); }; }; then
33621   ac_cv_lib_gdbm_gdbm_open=yes
33622 else
33623   echo "$as_me: failed program was:" >&5
33624 sed 's/^/| /' conftest.$ac_ext >&5
33625
33626 ac_cv_lib_gdbm_gdbm_open=no
33627 fi
33628 rm -f conftest.err conftest.$ac_objext \
33629       conftest$ac_exeext conftest.$ac_ext
33630 LIBS=$ac_check_lib_save_LIBS
33631 fi
33632 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
33633 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
33634 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
33635   ol_cv_lib_gdbm=-lgdbm
33636 else
33637   ol_cv_lib_gdbm=no
33638 fi
33639
33640
33641 fi
33642
33643         LIBS="$ol_LIBS"
33644
33645 fi
33646 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
33647 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
33648
33649
33650
33651 for ac_header in gdbm.h
33652 do
33653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33655   echo "$as_me:$LINENO: checking for $ac_header" >&5
33656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33658   echo $ECHO_N "(cached) $ECHO_C" >&6
33659 fi
33660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33662 else
33663   # Is the header compilable?
33664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33666 cat >conftest.$ac_ext <<_ACEOF
33667 /* confdefs.h.  */
33668 _ACEOF
33669 cat confdefs.h >>conftest.$ac_ext
33670 cat >>conftest.$ac_ext <<_ACEOF
33671 /* end confdefs.h.  */
33672 $ac_includes_default
33673 #include <$ac_header>
33674 _ACEOF
33675 rm -f conftest.$ac_objext
33676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33677   (eval $ac_compile) 2>conftest.er1
33678   ac_status=$?
33679   grep -v '^ *+' conftest.er1 >conftest.err
33680   rm -f conftest.er1
33681   cat conftest.err >&5
33682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683   (exit $ac_status); } &&
33684          { ac_try='test -z "$ac_c_werror_flag"
33685                          || test ! -s conftest.err'
33686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33687   (eval $ac_try) 2>&5
33688   ac_status=$?
33689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33690   (exit $ac_status); }; } &&
33691          { ac_try='test -s conftest.$ac_objext'
33692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33693   (eval $ac_try) 2>&5
33694   ac_status=$?
33695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33696   (exit $ac_status); }; }; then
33697   ac_header_compiler=yes
33698 else
33699   echo "$as_me: failed program was:" >&5
33700 sed 's/^/| /' conftest.$ac_ext >&5
33701
33702 ac_header_compiler=no
33703 fi
33704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33706 echo "${ECHO_T}$ac_header_compiler" >&6
33707
33708 # Is the header present?
33709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33711 cat >conftest.$ac_ext <<_ACEOF
33712 /* confdefs.h.  */
33713 _ACEOF
33714 cat confdefs.h >>conftest.$ac_ext
33715 cat >>conftest.$ac_ext <<_ACEOF
33716 /* end confdefs.h.  */
33717 #include <$ac_header>
33718 _ACEOF
33719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33720   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33721   ac_status=$?
33722   grep -v '^ *+' conftest.er1 >conftest.err
33723   rm -f conftest.er1
33724   cat conftest.err >&5
33725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726   (exit $ac_status); } >/dev/null; then
33727   if test -s conftest.err; then
33728     ac_cpp_err=$ac_c_preproc_warn_flag
33729     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33730   else
33731     ac_cpp_err=
33732   fi
33733 else
33734   ac_cpp_err=yes
33735 fi
33736 if test -z "$ac_cpp_err"; then
33737   ac_header_preproc=yes
33738 else
33739   echo "$as_me: failed program was:" >&5
33740 sed 's/^/| /' conftest.$ac_ext >&5
33741
33742   ac_header_preproc=no
33743 fi
33744 rm -f conftest.err conftest.$ac_ext
33745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33746 echo "${ECHO_T}$ac_header_preproc" >&6
33747
33748 # So?  What about this header?
33749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33750   yes:no: )
33751     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33755     ac_header_preproc=yes
33756     ;;
33757   no:yes:* )
33758     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33760     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33761 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33762     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33764     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33765 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33768     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33770     (
33771       cat <<\_ASBOX
33772 ## ------------------------------------------ ##
33773 ## Report this to the AC_PACKAGE_NAME lists.  ##
33774 ## ------------------------------------------ ##
33775 _ASBOX
33776     ) |
33777       sed "s/^/$as_me: WARNING:     /" >&2
33778     ;;
33779 esac
33780 echo "$as_me:$LINENO: checking for $ac_header" >&5
33781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33783   echo $ECHO_N "(cached) $ECHO_C" >&6
33784 else
33785   eval "$as_ac_Header=\$ac_header_preproc"
33786 fi
33787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33789
33790 fi
33791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33792   cat >>confdefs.h <<_ACEOF
33793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33794 _ACEOF
33795
33796 fi
33797
33798 done
33799
33800  echo "$as_me:$LINENO: checking for db" >&5
33801 echo $ECHO_N "checking for db... $ECHO_C" >&6
33802 if test "${ol_cv_gdbm+set}" = set; then
33803   echo $ECHO_N "(cached) $ECHO_C" >&6
33804 else
33805
33806         if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
33807                 ol_cv_gdbm=no
33808         else
33809                 ol_cv_gdbm=yes
33810         fi
33811
33812 fi
33813 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
33814 echo "${ECHO_T}$ol_cv_gdbm" >&6
33815  if test $ol_cv_gdbm = yes ; then
33816
33817 cat >>confdefs.h <<\_ACEOF
33818 #define HAVE_GDBM 1
33819 _ACEOF
33820
33821  fi
33822
33823
33824         if test $ol_cv_gdbm = yes ; then
33825                 ol_link_ldbm=gdbm
33826                 ol_enable_ldbm_api=gdbm
33827
33828                 if test $ol_cv_lib_gdbm != yes ; then
33829                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
33830                 fi
33831         fi
33832 fi
33833
33834 if test $ol_enable_ldbm_api = ndbm ; then
33835         echo "$as_me:$LINENO: checking for NDBM library" >&5
33836 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
33837 if test "${ol_cv_lib_ndbm+set}" = set; then
33838   echo $ECHO_N "(cached) $ECHO_C" >&6
33839 else
33840         ol_LIBS="$LIBS"
33841         echo "$as_me:$LINENO: checking for dbm_open" >&5
33842 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
33843 if test "${ac_cv_func_dbm_open+set}" = set; then
33844   echo $ECHO_N "(cached) $ECHO_C" >&6
33845 else
33846   cat >conftest.$ac_ext <<_ACEOF
33847 /* confdefs.h.  */
33848 _ACEOF
33849 cat confdefs.h >>conftest.$ac_ext
33850 cat >>conftest.$ac_ext <<_ACEOF
33851 /* end confdefs.h.  */
33852 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
33853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33854 #define dbm_open innocuous_dbm_open
33855
33856 /* System header to define __stub macros and hopefully few prototypes,
33857     which can conflict with char dbm_open (); below.
33858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33859     <limits.h> exists even on freestanding compilers.  */
33860
33861 #ifdef __STDC__
33862 # include <limits.h>
33863 #else
33864 # include <assert.h>
33865 #endif
33866
33867 #undef dbm_open
33868
33869 /* Override any gcc2 internal prototype to avoid an error.  */
33870 #ifdef __cplusplus
33871 extern "C"
33872 {
33873 #endif
33874 /* We use char because int might match the return type of a gcc2
33875    builtin and then its argument prototype would still apply.  */
33876 char dbm_open ();
33877 /* The GNU C library defines this for functions which it implements
33878     to always fail with ENOSYS.  Some functions are actually named
33879     something starting with __ and the normal name is an alias.  */
33880 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
33881 choke me
33882 #else
33883 char (*f) () = dbm_open;
33884 #endif
33885 #ifdef __cplusplus
33886 }
33887 #endif
33888
33889 int
33890 main ()
33891 {
33892 return f != dbm_open;
33893   ;
33894   return 0;
33895 }
33896 _ACEOF
33897 rm -f conftest.$ac_objext conftest$ac_exeext
33898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33899   (eval $ac_link) 2>conftest.er1
33900   ac_status=$?
33901   grep -v '^ *+' conftest.er1 >conftest.err
33902   rm -f conftest.er1
33903   cat conftest.err >&5
33904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905   (exit $ac_status); } &&
33906          { ac_try='test -z "$ac_c_werror_flag"
33907                          || test ! -s conftest.err'
33908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33909   (eval $ac_try) 2>&5
33910   ac_status=$?
33911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33912   (exit $ac_status); }; } &&
33913          { ac_try='test -s conftest$ac_exeext'
33914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33915   (eval $ac_try) 2>&5
33916   ac_status=$?
33917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33918   (exit $ac_status); }; }; then
33919   ac_cv_func_dbm_open=yes
33920 else
33921   echo "$as_me: failed program was:" >&5
33922 sed 's/^/| /' conftest.$ac_ext >&5
33923
33924 ac_cv_func_dbm_open=no
33925 fi
33926 rm -f conftest.err conftest.$ac_objext \
33927       conftest$ac_exeext conftest.$ac_ext
33928 fi
33929 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
33930 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
33931 if test $ac_cv_func_dbm_open = yes; then
33932   ol_cv_lib_ndbm=yes
33933 else
33934
33935                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
33936 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
33937 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
33938   echo $ECHO_N "(cached) $ECHO_C" >&6
33939 else
33940   ac_check_lib_save_LIBS=$LIBS
33941 LIBS="-lndbm  $LIBS"
33942 cat >conftest.$ac_ext <<_ACEOF
33943 /* confdefs.h.  */
33944 _ACEOF
33945 cat confdefs.h >>conftest.$ac_ext
33946 cat >>conftest.$ac_ext <<_ACEOF
33947 /* end confdefs.h.  */
33948
33949 /* Override any gcc2 internal prototype to avoid an error.  */
33950 #ifdef __cplusplus
33951 extern "C"
33952 #endif
33953 /* We use char because int might match the return type of a gcc2
33954    builtin and then its argument prototype would still apply.  */
33955 char dbm_open ();
33956 int
33957 main ()
33958 {
33959 dbm_open ();
33960   ;
33961   return 0;
33962 }
33963 _ACEOF
33964 rm -f conftest.$ac_objext conftest$ac_exeext
33965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33966   (eval $ac_link) 2>conftest.er1
33967   ac_status=$?
33968   grep -v '^ *+' conftest.er1 >conftest.err
33969   rm -f conftest.er1
33970   cat conftest.err >&5
33971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33972   (exit $ac_status); } &&
33973          { ac_try='test -z "$ac_c_werror_flag"
33974                          || test ! -s conftest.err'
33975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33976   (eval $ac_try) 2>&5
33977   ac_status=$?
33978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979   (exit $ac_status); }; } &&
33980          { ac_try='test -s conftest$ac_exeext'
33981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33982   (eval $ac_try) 2>&5
33983   ac_status=$?
33984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985   (exit $ac_status); }; }; then
33986   ac_cv_lib_ndbm_dbm_open=yes
33987 else
33988   echo "$as_me: failed program was:" >&5
33989 sed 's/^/| /' conftest.$ac_ext >&5
33990
33991 ac_cv_lib_ndbm_dbm_open=no
33992 fi
33993 rm -f conftest.err conftest.$ac_objext \
33994       conftest$ac_exeext conftest.$ac_ext
33995 LIBS=$ac_check_lib_save_LIBS
33996 fi
33997 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
33998 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
33999 if test $ac_cv_lib_ndbm_dbm_open = yes; then
34000   ol_cv_lib_ndbm=-lndbm
34001 else
34002
34003                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
34004 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
34005 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
34006   echo $ECHO_N "(cached) $ECHO_C" >&6
34007 else
34008   ac_check_lib_save_LIBS=$LIBS
34009 LIBS="-ldbm  $LIBS"
34010 cat >conftest.$ac_ext <<_ACEOF
34011 /* confdefs.h.  */
34012 _ACEOF
34013 cat confdefs.h >>conftest.$ac_ext
34014 cat >>conftest.$ac_ext <<_ACEOF
34015 /* end confdefs.h.  */
34016
34017 /* Override any gcc2 internal prototype to avoid an error.  */
34018 #ifdef __cplusplus
34019 extern "C"
34020 #endif
34021 /* We use char because int might match the return type of a gcc2
34022    builtin and then its argument prototype would still apply.  */
34023 char dbm_open ();
34024 int
34025 main ()
34026 {
34027 dbm_open ();
34028   ;
34029   return 0;
34030 }
34031 _ACEOF
34032 rm -f conftest.$ac_objext conftest$ac_exeext
34033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34034   (eval $ac_link) 2>conftest.er1
34035   ac_status=$?
34036   grep -v '^ *+' conftest.er1 >conftest.err
34037   rm -f conftest.er1
34038   cat conftest.err >&5
34039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040   (exit $ac_status); } &&
34041          { ac_try='test -z "$ac_c_werror_flag"
34042                          || test ! -s conftest.err'
34043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34044   (eval $ac_try) 2>&5
34045   ac_status=$?
34046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047   (exit $ac_status); }; } &&
34048          { ac_try='test -s conftest$ac_exeext'
34049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34050   (eval $ac_try) 2>&5
34051   ac_status=$?
34052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053   (exit $ac_status); }; }; then
34054   ac_cv_lib_dbm_dbm_open=yes
34055 else
34056   echo "$as_me: failed program was:" >&5
34057 sed 's/^/| /' conftest.$ac_ext >&5
34058
34059 ac_cv_lib_dbm_dbm_open=no
34060 fi
34061 rm -f conftest.err conftest.$ac_objext \
34062       conftest$ac_exeext conftest.$ac_ext
34063 LIBS=$ac_check_lib_save_LIBS
34064 fi
34065 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
34066 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
34067 if test $ac_cv_lib_dbm_dbm_open = yes; then
34068   ol_cv_lib_ndbm=-ldbm
34069 else
34070   ol_cv_lib_ndbm=no
34071 fi
34072
34073 fi
34074
34075
34076 fi
34077
34078         LIBS="$ol_LIBS"
34079
34080 fi
34081 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
34082 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
34083
34084
34085
34086 for ac_header in ndbm.h
34087 do
34088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34090   echo "$as_me:$LINENO: checking for $ac_header" >&5
34091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34093   echo $ECHO_N "(cached) $ECHO_C" >&6
34094 fi
34095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34097 else
34098   # Is the header compilable?
34099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34101 cat >conftest.$ac_ext <<_ACEOF
34102 /* confdefs.h.  */
34103 _ACEOF
34104 cat confdefs.h >>conftest.$ac_ext
34105 cat >>conftest.$ac_ext <<_ACEOF
34106 /* end confdefs.h.  */
34107 $ac_includes_default
34108 #include <$ac_header>
34109 _ACEOF
34110 rm -f conftest.$ac_objext
34111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34112   (eval $ac_compile) 2>conftest.er1
34113   ac_status=$?
34114   grep -v '^ *+' conftest.er1 >conftest.err
34115   rm -f conftest.er1
34116   cat conftest.err >&5
34117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118   (exit $ac_status); } &&
34119          { ac_try='test -z "$ac_c_werror_flag"
34120                          || test ! -s conftest.err'
34121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34122   (eval $ac_try) 2>&5
34123   ac_status=$?
34124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34125   (exit $ac_status); }; } &&
34126          { ac_try='test -s conftest.$ac_objext'
34127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34128   (eval $ac_try) 2>&5
34129   ac_status=$?
34130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34131   (exit $ac_status); }; }; then
34132   ac_header_compiler=yes
34133 else
34134   echo "$as_me: failed program was:" >&5
34135 sed 's/^/| /' conftest.$ac_ext >&5
34136
34137 ac_header_compiler=no
34138 fi
34139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34141 echo "${ECHO_T}$ac_header_compiler" >&6
34142
34143 # Is the header present?
34144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34146 cat >conftest.$ac_ext <<_ACEOF
34147 /* confdefs.h.  */
34148 _ACEOF
34149 cat confdefs.h >>conftest.$ac_ext
34150 cat >>conftest.$ac_ext <<_ACEOF
34151 /* end confdefs.h.  */
34152 #include <$ac_header>
34153 _ACEOF
34154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34155   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34156   ac_status=$?
34157   grep -v '^ *+' conftest.er1 >conftest.err
34158   rm -f conftest.er1
34159   cat conftest.err >&5
34160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34161   (exit $ac_status); } >/dev/null; then
34162   if test -s conftest.err; then
34163     ac_cpp_err=$ac_c_preproc_warn_flag
34164     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34165   else
34166     ac_cpp_err=
34167   fi
34168 else
34169   ac_cpp_err=yes
34170 fi
34171 if test -z "$ac_cpp_err"; then
34172   ac_header_preproc=yes
34173 else
34174   echo "$as_me: failed program was:" >&5
34175 sed 's/^/| /' conftest.$ac_ext >&5
34176
34177   ac_header_preproc=no
34178 fi
34179 rm -f conftest.err conftest.$ac_ext
34180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34181 echo "${ECHO_T}$ac_header_preproc" >&6
34182
34183 # So?  What about this header?
34184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34185   yes:no: )
34186     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34190     ac_header_preproc=yes
34191     ;;
34192   no:yes:* )
34193     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34195     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34196 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34197     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34199     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34200 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34203     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34205     (
34206       cat <<\_ASBOX
34207 ## ------------------------------------------ ##
34208 ## Report this to the AC_PACKAGE_NAME lists.  ##
34209 ## ------------------------------------------ ##
34210 _ASBOX
34211     ) |
34212       sed "s/^/$as_me: WARNING:     /" >&2
34213     ;;
34214 esac
34215 echo "$as_me:$LINENO: checking for $ac_header" >&5
34216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34218   echo $ECHO_N "(cached) $ECHO_C" >&6
34219 else
34220   eval "$as_ac_Header=\$ac_header_preproc"
34221 fi
34222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34224
34225 fi
34226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34227   cat >>confdefs.h <<_ACEOF
34228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34229 _ACEOF
34230
34231 fi
34232
34233 done
34234
34235  echo "$as_me:$LINENO: checking for db" >&5
34236 echo $ECHO_N "checking for db... $ECHO_C" >&6
34237 if test "${ol_cv_ndbm+set}" = set; then
34238   echo $ECHO_N "(cached) $ECHO_C" >&6
34239 else
34240
34241         if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
34242                 ol_cv_ndbm=no
34243         else
34244                 ol_cv_ndbm=yes
34245         fi
34246
34247 fi
34248 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
34249 echo "${ECHO_T}$ol_cv_ndbm" >&6
34250  if test $ol_cv_ndbm = yes ; then
34251
34252 cat >>confdefs.h <<\_ACEOF
34253 #define HAVE_NDBM 1
34254 _ACEOF
34255
34256  fi
34257
34258
34259         if test $ol_cv_ndbm = yes ; then
34260                 ol_link_ldbm=ndbm
34261                 ol_enable_ldbm_api=ndbm
34262
34263                 if test $ol_cv_lib_ndbm != yes ; then
34264                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
34265                 fi
34266         fi
34267 fi
34268
34269 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
34270         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
34271 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
34272    { (exit 1); exit 1; }; }
34273 fi
34274
34275 if test $ol_enable_bdb = yes ||
34276    test $ol_enable_hdb = yes ||
34277    test $ol_enable_ldbm = yes ; then
34278         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
34279 fi
34280
34281
34282 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
34283         BUILD_LIBS_DYNAMIC=shared
34284
34285 cat >>confdefs.h <<\_ACEOF
34286 #define LDAP_LIBS_DYNAMIC 1
34287 _ACEOF
34288
34289         LTSTATIC=""
34290 else
34291         BUILD_LIBS_DYNAMIC=static
34292         LTSTATIC="-static"
34293 fi
34294
34295 if test $ol_enable_wrappers != no ; then
34296
34297 for ac_header in tcpd.h
34298 do
34299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34301   echo "$as_me:$LINENO: checking for $ac_header" >&5
34302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34304   echo $ECHO_N "(cached) $ECHO_C" >&6
34305 fi
34306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34308 else
34309   # Is the header compilable?
34310 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34312 cat >conftest.$ac_ext <<_ACEOF
34313 /* confdefs.h.  */
34314 _ACEOF
34315 cat confdefs.h >>conftest.$ac_ext
34316 cat >>conftest.$ac_ext <<_ACEOF
34317 /* end confdefs.h.  */
34318 $ac_includes_default
34319 #include <$ac_header>
34320 _ACEOF
34321 rm -f conftest.$ac_objext
34322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34323   (eval $ac_compile) 2>conftest.er1
34324   ac_status=$?
34325   grep -v '^ *+' conftest.er1 >conftest.err
34326   rm -f conftest.er1
34327   cat conftest.err >&5
34328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329   (exit $ac_status); } &&
34330          { ac_try='test -z "$ac_c_werror_flag"
34331                          || test ! -s conftest.err'
34332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34333   (eval $ac_try) 2>&5
34334   ac_status=$?
34335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336   (exit $ac_status); }; } &&
34337          { ac_try='test -s conftest.$ac_objext'
34338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34339   (eval $ac_try) 2>&5
34340   ac_status=$?
34341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342   (exit $ac_status); }; }; then
34343   ac_header_compiler=yes
34344 else
34345   echo "$as_me: failed program was:" >&5
34346 sed 's/^/| /' conftest.$ac_ext >&5
34347
34348 ac_header_compiler=no
34349 fi
34350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34352 echo "${ECHO_T}$ac_header_compiler" >&6
34353
34354 # Is the header present?
34355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34357 cat >conftest.$ac_ext <<_ACEOF
34358 /* confdefs.h.  */
34359 _ACEOF
34360 cat confdefs.h >>conftest.$ac_ext
34361 cat >>conftest.$ac_ext <<_ACEOF
34362 /* end confdefs.h.  */
34363 #include <$ac_header>
34364 _ACEOF
34365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34366   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34367   ac_status=$?
34368   grep -v '^ *+' conftest.er1 >conftest.err
34369   rm -f conftest.er1
34370   cat conftest.err >&5
34371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372   (exit $ac_status); } >/dev/null; then
34373   if test -s conftest.err; then
34374     ac_cpp_err=$ac_c_preproc_warn_flag
34375     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34376   else
34377     ac_cpp_err=
34378   fi
34379 else
34380   ac_cpp_err=yes
34381 fi
34382 if test -z "$ac_cpp_err"; then
34383   ac_header_preproc=yes
34384 else
34385   echo "$as_me: failed program was:" >&5
34386 sed 's/^/| /' conftest.$ac_ext >&5
34387
34388   ac_header_preproc=no
34389 fi
34390 rm -f conftest.err conftest.$ac_ext
34391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34392 echo "${ECHO_T}$ac_header_preproc" >&6
34393
34394 # So?  What about this header?
34395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34396   yes:no: )
34397     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34401     ac_header_preproc=yes
34402     ;;
34403   no:yes:* )
34404     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34406     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34407 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34408     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34410     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34411 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34414     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34416     (
34417       cat <<\_ASBOX
34418 ## ------------------------------------------ ##
34419 ## Report this to the AC_PACKAGE_NAME lists.  ##
34420 ## ------------------------------------------ ##
34421 _ASBOX
34422     ) |
34423       sed "s/^/$as_me: WARNING:     /" >&2
34424     ;;
34425 esac
34426 echo "$as_me:$LINENO: checking for $ac_header" >&5
34427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34429   echo $ECHO_N "(cached) $ECHO_C" >&6
34430 else
34431   eval "$as_ac_Header=\$ac_header_preproc"
34432 fi
34433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34435
34436 fi
34437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34438   cat >>confdefs.h <<_ACEOF
34439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34440 _ACEOF
34441
34442                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
34443 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
34444                 save_LIBS="$LIBS"
34445                 LIBS="$LIBS -lwrap"
34446                 cat >conftest.$ac_ext <<_ACEOF
34447 /* confdefs.h.  */
34448 _ACEOF
34449 cat confdefs.h >>conftest.$ac_ext
34450 cat >>conftest.$ac_ext <<_ACEOF
34451 /* end confdefs.h.  */
34452
34453 #include <tcpd.h>
34454 int allow_severity = 0;
34455 int deny_severity  = 0;
34456
34457 struct request_info *req;
34458
34459 int
34460 main ()
34461 {
34462
34463 hosts_access(req)
34464
34465   ;
34466   return 0;
34467 }
34468 _ACEOF
34469 rm -f conftest.$ac_objext conftest$ac_exeext
34470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34471   (eval $ac_link) 2>conftest.er1
34472   ac_status=$?
34473   grep -v '^ *+' conftest.er1 >conftest.err
34474   rm -f conftest.er1
34475   cat conftest.err >&5
34476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477   (exit $ac_status); } &&
34478          { ac_try='test -z "$ac_c_werror_flag"
34479                          || test ! -s conftest.err'
34480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34481   (eval $ac_try) 2>&5
34482   ac_status=$?
34483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484   (exit $ac_status); }; } &&
34485          { ac_try='test -s conftest$ac_exeext'
34486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34487   (eval $ac_try) 2>&5
34488   ac_status=$?
34489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490   (exit $ac_status); }; }; then
34491   echo "$as_me:$LINENO: result: -lwrap" >&5
34492 echo "${ECHO_T}-lwrap" >&6
34493                 have_wrappers=yes
34494                 LIBS="$save_LIBS"
34495 else
34496   echo "$as_me: failed program was:" >&5
34497 sed 's/^/| /' conftest.$ac_ext >&5
34498
34499
34500                                 LIBS="$LIBS -lnsl"
34501                 cat >conftest.$ac_ext <<_ACEOF
34502 /* confdefs.h.  */
34503 _ACEOF
34504 cat confdefs.h >>conftest.$ac_ext
34505 cat >>conftest.$ac_ext <<_ACEOF
34506 /* end confdefs.h.  */
34507
34508 #include <tcpd.h>
34509 int allow_severity = 0;
34510 int deny_severity  = 0;
34511
34512 struct request_info *req;
34513
34514 int
34515 main ()
34516 {
34517
34518 hosts_access(req)
34519
34520   ;
34521   return 0;
34522 }
34523 _ACEOF
34524 rm -f conftest.$ac_objext conftest$ac_exeext
34525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34526   (eval $ac_link) 2>conftest.er1
34527   ac_status=$?
34528   grep -v '^ *+' conftest.er1 >conftest.err
34529   rm -f conftest.er1
34530   cat conftest.err >&5
34531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532   (exit $ac_status); } &&
34533          { ac_try='test -z "$ac_c_werror_flag"
34534                          || test ! -s conftest.err'
34535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34536   (eval $ac_try) 2>&5
34537   ac_status=$?
34538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34539   (exit $ac_status); }; } &&
34540          { ac_try='test -s conftest$ac_exeext'
34541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34542   (eval $ac_try) 2>&5
34543   ac_status=$?
34544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34545   (exit $ac_status); }; }; then
34546   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
34547 echo "${ECHO_T}-lwrap -lnsl" >&6
34548                 have_wrappers=yes
34549                 LIBS="$save_LIBS -lnsl"
34550 else
34551   echo "$as_me: failed program was:" >&5
34552 sed 's/^/| /' conftest.$ac_ext >&5
34553
34554
34555                 echo "$as_me:$LINENO: result: no" >&5
34556 echo "${ECHO_T}no" >&6
34557                 have_wrappers=no
34558                 LIBS=$save_LIBS
34559 fi
34560 rm -f conftest.err conftest.$ac_objext \
34561       conftest$ac_exeext conftest.$ac_ext
34562 fi
34563 rm -f conftest.err conftest.$ac_objext \
34564       conftest$ac_exeext conftest.$ac_ext
34565 else
34566   have_wrappers=no
34567 fi
34568
34569 done
34570
34571
34572         if test $have_wrappers = yes ; then
34573
34574 cat >>confdefs.h <<\_ACEOF
34575 #define HAVE_TCPD 1
34576 _ACEOF
34577
34578                 WRAP_LIBS="-lwrap"
34579         elif test $ol_enable_wrappers = yes ; then
34580                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
34581 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
34582    { (exit 1); exit 1; }; }
34583         else
34584                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
34585 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
34586                 WRAP_LIBS=""
34587         fi
34588 fi
34589
34590 if test $ol_enable_syslog != no ; then
34591         echo "$as_me:$LINENO: checking for openlog" >&5
34592 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
34593 if test "${ac_cv_func_openlog+set}" = set; then
34594   echo $ECHO_N "(cached) $ECHO_C" >&6
34595 else
34596   cat >conftest.$ac_ext <<_ACEOF
34597 /* confdefs.h.  */
34598 _ACEOF
34599 cat confdefs.h >>conftest.$ac_ext
34600 cat >>conftest.$ac_ext <<_ACEOF
34601 /* end confdefs.h.  */
34602 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
34603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34604 #define openlog innocuous_openlog
34605
34606 /* System header to define __stub macros and hopefully few prototypes,
34607     which can conflict with char openlog (); below.
34608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34609     <limits.h> exists even on freestanding compilers.  */
34610
34611 #ifdef __STDC__
34612 # include <limits.h>
34613 #else
34614 # include <assert.h>
34615 #endif
34616
34617 #undef openlog
34618
34619 /* Override any gcc2 internal prototype to avoid an error.  */
34620 #ifdef __cplusplus
34621 extern "C"
34622 {
34623 #endif
34624 /* We use char because int might match the return type of a gcc2
34625    builtin and then its argument prototype would still apply.  */
34626 char openlog ();
34627 /* The GNU C library defines this for functions which it implements
34628     to always fail with ENOSYS.  Some functions are actually named
34629     something starting with __ and the normal name is an alias.  */
34630 #if defined (__stub_openlog) || defined (__stub___openlog)
34631 choke me
34632 #else
34633 char (*f) () = openlog;
34634 #endif
34635 #ifdef __cplusplus
34636 }
34637 #endif
34638
34639 int
34640 main ()
34641 {
34642 return f != openlog;
34643   ;
34644   return 0;
34645 }
34646 _ACEOF
34647 rm -f conftest.$ac_objext conftest$ac_exeext
34648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34649   (eval $ac_link) 2>conftest.er1
34650   ac_status=$?
34651   grep -v '^ *+' conftest.er1 >conftest.err
34652   rm -f conftest.er1
34653   cat conftest.err >&5
34654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34655   (exit $ac_status); } &&
34656          { ac_try='test -z "$ac_c_werror_flag"
34657                          || test ! -s conftest.err'
34658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34659   (eval $ac_try) 2>&5
34660   ac_status=$?
34661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662   (exit $ac_status); }; } &&
34663          { ac_try='test -s conftest$ac_exeext'
34664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34665   (eval $ac_try) 2>&5
34666   ac_status=$?
34667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668   (exit $ac_status); }; }; then
34669   ac_cv_func_openlog=yes
34670 else
34671   echo "$as_me: failed program was:" >&5
34672 sed 's/^/| /' conftest.$ac_ext >&5
34673
34674 ac_cv_func_openlog=no
34675 fi
34676 rm -f conftest.err conftest.$ac_objext \
34677       conftest$ac_exeext conftest.$ac_ext
34678 fi
34679 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
34680 echo "${ECHO_T}$ac_cv_func_openlog" >&6
34681
34682         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
34683                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
34684 echo "$as_me: error: could not find syslog" >&2;}
34685    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
34686         fi
34687         ol_enable_syslog=$ac_cv_func_openlog
34688 fi
34689
34690 ol_link_sql=no
34691 if test $ol_enable_sql != no ; then
34692
34693
34694 for ac_header in sql.h sqlext.h
34695 do
34696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34698   echo "$as_me:$LINENO: checking for $ac_header" >&5
34699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34701   echo $ECHO_N "(cached) $ECHO_C" >&6
34702 fi
34703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34705 else
34706   # Is the header compilable?
34707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34709 cat >conftest.$ac_ext <<_ACEOF
34710 /* confdefs.h.  */
34711 _ACEOF
34712 cat confdefs.h >>conftest.$ac_ext
34713 cat >>conftest.$ac_ext <<_ACEOF
34714 /* end confdefs.h.  */
34715 $ac_includes_default
34716 #include <$ac_header>
34717 _ACEOF
34718 rm -f conftest.$ac_objext
34719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34720   (eval $ac_compile) 2>conftest.er1
34721   ac_status=$?
34722   grep -v '^ *+' conftest.er1 >conftest.err
34723   rm -f conftest.er1
34724   cat conftest.err >&5
34725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726   (exit $ac_status); } &&
34727          { ac_try='test -z "$ac_c_werror_flag"
34728                          || test ! -s conftest.err'
34729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34730   (eval $ac_try) 2>&5
34731   ac_status=$?
34732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34733   (exit $ac_status); }; } &&
34734          { ac_try='test -s conftest.$ac_objext'
34735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34736   (eval $ac_try) 2>&5
34737   ac_status=$?
34738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739   (exit $ac_status); }; }; then
34740   ac_header_compiler=yes
34741 else
34742   echo "$as_me: failed program was:" >&5
34743 sed 's/^/| /' conftest.$ac_ext >&5
34744
34745 ac_header_compiler=no
34746 fi
34747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34749 echo "${ECHO_T}$ac_header_compiler" >&6
34750
34751 # Is the header present?
34752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34754 cat >conftest.$ac_ext <<_ACEOF
34755 /* confdefs.h.  */
34756 _ACEOF
34757 cat confdefs.h >>conftest.$ac_ext
34758 cat >>conftest.$ac_ext <<_ACEOF
34759 /* end confdefs.h.  */
34760 #include <$ac_header>
34761 _ACEOF
34762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34764   ac_status=$?
34765   grep -v '^ *+' conftest.er1 >conftest.err
34766   rm -f conftest.er1
34767   cat conftest.err >&5
34768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769   (exit $ac_status); } >/dev/null; then
34770   if test -s conftest.err; then
34771     ac_cpp_err=$ac_c_preproc_warn_flag
34772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34773   else
34774     ac_cpp_err=
34775   fi
34776 else
34777   ac_cpp_err=yes
34778 fi
34779 if test -z "$ac_cpp_err"; then
34780   ac_header_preproc=yes
34781 else
34782   echo "$as_me: failed program was:" >&5
34783 sed 's/^/| /' conftest.$ac_ext >&5
34784
34785   ac_header_preproc=no
34786 fi
34787 rm -f conftest.err conftest.$ac_ext
34788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34789 echo "${ECHO_T}$ac_header_preproc" >&6
34790
34791 # So?  What about this header?
34792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34793   yes:no: )
34794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34798     ac_header_preproc=yes
34799     ;;
34800   no:yes:* )
34801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34803     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34804 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34805     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34807     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34808 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34811     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34813     (
34814       cat <<\_ASBOX
34815 ## ------------------------------------------ ##
34816 ## Report this to the AC_PACKAGE_NAME lists.  ##
34817 ## ------------------------------------------ ##
34818 _ASBOX
34819     ) |
34820       sed "s/^/$as_me: WARNING:     /" >&2
34821     ;;
34822 esac
34823 echo "$as_me:$LINENO: checking for $ac_header" >&5
34824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34826   echo $ECHO_N "(cached) $ECHO_C" >&6
34827 else
34828   eval "$as_ac_Header=\$ac_header_preproc"
34829 fi
34830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34832
34833 fi
34834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34835   cat >>confdefs.h <<_ACEOF
34836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34837 _ACEOF
34838
34839 else
34840
34841                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
34842 echo "$as_me: error: could not locate SQL headers" >&2;}
34843    { (exit 1); exit 1; }; }
34844
34845 fi
34846
34847 done
34848
34849
34850         sql_LIBS="$LIBS"
34851         LIBS="$LTHREAD_LIBS"
34852
34853         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
34854 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
34855 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
34856   echo $ECHO_N "(cached) $ECHO_C" >&6
34857 else
34858   ac_check_lib_save_LIBS=$LIBS
34859 LIBS="-liodbc  $LIBS"
34860 cat >conftest.$ac_ext <<_ACEOF
34861 /* confdefs.h.  */
34862 _ACEOF
34863 cat confdefs.h >>conftest.$ac_ext
34864 cat >>conftest.$ac_ext <<_ACEOF
34865 /* end confdefs.h.  */
34866
34867 /* Override any gcc2 internal prototype to avoid an error.  */
34868 #ifdef __cplusplus
34869 extern "C"
34870 #endif
34871 /* We use char because int might match the return type of a gcc2
34872    builtin and then its argument prototype would still apply.  */
34873 char SQLDriverConnect ();
34874 int
34875 main ()
34876 {
34877 SQLDriverConnect ();
34878   ;
34879   return 0;
34880 }
34881 _ACEOF
34882 rm -f conftest.$ac_objext conftest$ac_exeext
34883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34884   (eval $ac_link) 2>conftest.er1
34885   ac_status=$?
34886   grep -v '^ *+' conftest.er1 >conftest.err
34887   rm -f conftest.er1
34888   cat conftest.err >&5
34889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34890   (exit $ac_status); } &&
34891          { ac_try='test -z "$ac_c_werror_flag"
34892                          || test ! -s conftest.err'
34893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34894   (eval $ac_try) 2>&5
34895   ac_status=$?
34896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897   (exit $ac_status); }; } &&
34898          { ac_try='test -s conftest$ac_exeext'
34899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34900   (eval $ac_try) 2>&5
34901   ac_status=$?
34902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903   (exit $ac_status); }; }; then
34904   ac_cv_lib_iodbc_SQLDriverConnect=yes
34905 else
34906   echo "$as_me: failed program was:" >&5
34907 sed 's/^/| /' conftest.$ac_ext >&5
34908
34909 ac_cv_lib_iodbc_SQLDriverConnect=no
34910 fi
34911 rm -f conftest.err conftest.$ac_objext \
34912       conftest$ac_exeext conftest.$ac_ext
34913 LIBS=$ac_check_lib_save_LIBS
34914 fi
34915 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
34916 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
34917 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
34918   have_iodbc=yes
34919 else
34920   have_iodbc=no
34921 fi
34922
34923         if test $have_iodbc = yes ; then
34924                 ol_link_sql="-liodbc"
34925         else
34926                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
34927 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
34928 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
34929   echo $ECHO_N "(cached) $ECHO_C" >&6
34930 else
34931   ac_check_lib_save_LIBS=$LIBS
34932 LIBS="-lodbc  $LIBS"
34933 cat >conftest.$ac_ext <<_ACEOF
34934 /* confdefs.h.  */
34935 _ACEOF
34936 cat confdefs.h >>conftest.$ac_ext
34937 cat >>conftest.$ac_ext <<_ACEOF
34938 /* end confdefs.h.  */
34939
34940 /* Override any gcc2 internal prototype to avoid an error.  */
34941 #ifdef __cplusplus
34942 extern "C"
34943 #endif
34944 /* We use char because int might match the return type of a gcc2
34945    builtin and then its argument prototype would still apply.  */
34946 char SQLDriverConnect ();
34947 int
34948 main ()
34949 {
34950 SQLDriverConnect ();
34951   ;
34952   return 0;
34953 }
34954 _ACEOF
34955 rm -f conftest.$ac_objext conftest$ac_exeext
34956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34957   (eval $ac_link) 2>conftest.er1
34958   ac_status=$?
34959   grep -v '^ *+' conftest.er1 >conftest.err
34960   rm -f conftest.er1
34961   cat conftest.err >&5
34962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963   (exit $ac_status); } &&
34964          { ac_try='test -z "$ac_c_werror_flag"
34965                          || test ! -s conftest.err'
34966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34967   (eval $ac_try) 2>&5
34968   ac_status=$?
34969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34970   (exit $ac_status); }; } &&
34971          { ac_try='test -s conftest$ac_exeext'
34972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34973   (eval $ac_try) 2>&5
34974   ac_status=$?
34975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34976   (exit $ac_status); }; }; then
34977   ac_cv_lib_odbc_SQLDriverConnect=yes
34978 else
34979   echo "$as_me: failed program was:" >&5
34980 sed 's/^/| /' conftest.$ac_ext >&5
34981
34982 ac_cv_lib_odbc_SQLDriverConnect=no
34983 fi
34984 rm -f conftest.err conftest.$ac_objext \
34985       conftest$ac_exeext conftest.$ac_ext
34986 LIBS=$ac_check_lib_save_LIBS
34987 fi
34988 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
34989 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
34990 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
34991   have_odbc=yes
34992 else
34993   have_odbc=no
34994 fi
34995
34996                 if test $have_odbc = yes ; then
34997                         ol_link_sql="-lodbc"
34998                 fi
34999         fi
35000
35001         LIBS="$sql_LIBS"
35002
35003         if test $ol_link_sql != no ; then
35004                 SLAPD_SQL_LIBS="$ol_link_sql"
35005
35006         elif test $ol_enable_sql != auto ; then
35007                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
35008 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
35009    { (exit 1); exit 1; }; }
35010         fi
35011 fi
35012
35013 WITH_SASL=no
35014 ol_link_sasl=no
35015 ol_link_spasswd=no
35016 if test $ol_with_cyrus_sasl != no ; then
35017
35018
35019 for ac_header in sasl/sasl.h sasl.h
35020 do
35021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35023   echo "$as_me:$LINENO: checking for $ac_header" >&5
35024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35026   echo $ECHO_N "(cached) $ECHO_C" >&6
35027 fi
35028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35030 else
35031   # Is the header compilable?
35032 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35034 cat >conftest.$ac_ext <<_ACEOF
35035 /* confdefs.h.  */
35036 _ACEOF
35037 cat confdefs.h >>conftest.$ac_ext
35038 cat >>conftest.$ac_ext <<_ACEOF
35039 /* end confdefs.h.  */
35040 $ac_includes_default
35041 #include <$ac_header>
35042 _ACEOF
35043 rm -f conftest.$ac_objext
35044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35045   (eval $ac_compile) 2>conftest.er1
35046   ac_status=$?
35047   grep -v '^ *+' conftest.er1 >conftest.err
35048   rm -f conftest.er1
35049   cat conftest.err >&5
35050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051   (exit $ac_status); } &&
35052          { ac_try='test -z "$ac_c_werror_flag"
35053                          || test ! -s conftest.err'
35054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35055   (eval $ac_try) 2>&5
35056   ac_status=$?
35057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35058   (exit $ac_status); }; } &&
35059          { ac_try='test -s conftest.$ac_objext'
35060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35061   (eval $ac_try) 2>&5
35062   ac_status=$?
35063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35064   (exit $ac_status); }; }; then
35065   ac_header_compiler=yes
35066 else
35067   echo "$as_me: failed program was:" >&5
35068 sed 's/^/| /' conftest.$ac_ext >&5
35069
35070 ac_header_compiler=no
35071 fi
35072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35074 echo "${ECHO_T}$ac_header_compiler" >&6
35075
35076 # Is the header present?
35077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35079 cat >conftest.$ac_ext <<_ACEOF
35080 /* confdefs.h.  */
35081 _ACEOF
35082 cat confdefs.h >>conftest.$ac_ext
35083 cat >>conftest.$ac_ext <<_ACEOF
35084 /* end confdefs.h.  */
35085 #include <$ac_header>
35086 _ACEOF
35087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35089   ac_status=$?
35090   grep -v '^ *+' conftest.er1 >conftest.err
35091   rm -f conftest.er1
35092   cat conftest.err >&5
35093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094   (exit $ac_status); } >/dev/null; then
35095   if test -s conftest.err; then
35096     ac_cpp_err=$ac_c_preproc_warn_flag
35097     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35098   else
35099     ac_cpp_err=
35100   fi
35101 else
35102   ac_cpp_err=yes
35103 fi
35104 if test -z "$ac_cpp_err"; then
35105   ac_header_preproc=yes
35106 else
35107   echo "$as_me: failed program was:" >&5
35108 sed 's/^/| /' conftest.$ac_ext >&5
35109
35110   ac_header_preproc=no
35111 fi
35112 rm -f conftest.err conftest.$ac_ext
35113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35114 echo "${ECHO_T}$ac_header_preproc" >&6
35115
35116 # So?  What about this header?
35117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35118   yes:no: )
35119     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35123     ac_header_preproc=yes
35124     ;;
35125   no:yes:* )
35126     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35128     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35129 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35130     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35132     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35133 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35136     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35138     (
35139       cat <<\_ASBOX
35140 ## ------------------------------------------ ##
35141 ## Report this to the AC_PACKAGE_NAME lists.  ##
35142 ## ------------------------------------------ ##
35143 _ASBOX
35144     ) |
35145       sed "s/^/$as_me: WARNING:     /" >&2
35146     ;;
35147 esac
35148 echo "$as_me:$LINENO: checking for $ac_header" >&5
35149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35151   echo $ECHO_N "(cached) $ECHO_C" >&6
35152 else
35153   eval "$as_ac_Header=\$ac_header_preproc"
35154 fi
35155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35157
35158 fi
35159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35160   cat >>confdefs.h <<_ACEOF
35161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35162 _ACEOF
35163
35164 fi
35165
35166 done
35167
35168
35169         if test $ac_cv_header_sasl_sasl_h = yes ||
35170            test $ac_cv_header_sasl_h = yes; then
35171                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
35172 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
35173 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
35174   echo $ECHO_N "(cached) $ECHO_C" >&6
35175 else
35176   ac_check_lib_save_LIBS=$LIBS
35177 LIBS="-lsasl2  $LIBS"
35178 cat >conftest.$ac_ext <<_ACEOF
35179 /* confdefs.h.  */
35180 _ACEOF
35181 cat confdefs.h >>conftest.$ac_ext
35182 cat >>conftest.$ac_ext <<_ACEOF
35183 /* end confdefs.h.  */
35184
35185 /* Override any gcc2 internal prototype to avoid an error.  */
35186 #ifdef __cplusplus
35187 extern "C"
35188 #endif
35189 /* We use char because int might match the return type of a gcc2
35190    builtin and then its argument prototype would still apply.  */
35191 char sasl_client_init ();
35192 int
35193 main ()
35194 {
35195 sasl_client_init ();
35196   ;
35197   return 0;
35198 }
35199 _ACEOF
35200 rm -f conftest.$ac_objext conftest$ac_exeext
35201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35202   (eval $ac_link) 2>conftest.er1
35203   ac_status=$?
35204   grep -v '^ *+' conftest.er1 >conftest.err
35205   rm -f conftest.er1
35206   cat conftest.err >&5
35207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208   (exit $ac_status); } &&
35209          { ac_try='test -z "$ac_c_werror_flag"
35210                          || test ! -s conftest.err'
35211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35212   (eval $ac_try) 2>&5
35213   ac_status=$?
35214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35215   (exit $ac_status); }; } &&
35216          { ac_try='test -s conftest$ac_exeext'
35217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35218   (eval $ac_try) 2>&5
35219   ac_status=$?
35220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35221   (exit $ac_status); }; }; then
35222   ac_cv_lib_sasl2_sasl_client_init=yes
35223 else
35224   echo "$as_me: failed program was:" >&5
35225 sed 's/^/| /' conftest.$ac_ext >&5
35226
35227 ac_cv_lib_sasl2_sasl_client_init=no
35228 fi
35229 rm -f conftest.err conftest.$ac_objext \
35230       conftest$ac_exeext conftest.$ac_ext
35231 LIBS=$ac_check_lib_save_LIBS
35232 fi
35233 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
35234 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
35235 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
35236   ol_link_sasl="-lsasl2"
35237 else
35238   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
35239 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
35240 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
35241   echo $ECHO_N "(cached) $ECHO_C" >&6
35242 else
35243   ac_check_lib_save_LIBS=$LIBS
35244 LIBS="-lsasl  $LIBS"
35245 cat >conftest.$ac_ext <<_ACEOF
35246 /* confdefs.h.  */
35247 _ACEOF
35248 cat confdefs.h >>conftest.$ac_ext
35249 cat >>conftest.$ac_ext <<_ACEOF
35250 /* end confdefs.h.  */
35251
35252 /* Override any gcc2 internal prototype to avoid an error.  */
35253 #ifdef __cplusplus
35254 extern "C"
35255 #endif
35256 /* We use char because int might match the return type of a gcc2
35257    builtin and then its argument prototype would still apply.  */
35258 char sasl_client_init ();
35259 int
35260 main ()
35261 {
35262 sasl_client_init ();
35263   ;
35264   return 0;
35265 }
35266 _ACEOF
35267 rm -f conftest.$ac_objext conftest$ac_exeext
35268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35269   (eval $ac_link) 2>conftest.er1
35270   ac_status=$?
35271   grep -v '^ *+' conftest.er1 >conftest.err
35272   rm -f conftest.er1
35273   cat conftest.err >&5
35274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275   (exit $ac_status); } &&
35276          { ac_try='test -z "$ac_c_werror_flag"
35277                          || test ! -s conftest.err'
35278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35279   (eval $ac_try) 2>&5
35280   ac_status=$?
35281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35282   (exit $ac_status); }; } &&
35283          { ac_try='test -s conftest$ac_exeext'
35284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35285   (eval $ac_try) 2>&5
35286   ac_status=$?
35287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35288   (exit $ac_status); }; }; then
35289   ac_cv_lib_sasl_sasl_client_init=yes
35290 else
35291   echo "$as_me: failed program was:" >&5
35292 sed 's/^/| /' conftest.$ac_ext >&5
35293
35294 ac_cv_lib_sasl_sasl_client_init=no
35295 fi
35296 rm -f conftest.err conftest.$ac_objext \
35297       conftest$ac_exeext conftest.$ac_ext
35298 LIBS=$ac_check_lib_save_LIBS
35299 fi
35300 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
35301 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
35302 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
35303   ol_link_sasl="-lsasl"
35304 fi
35305
35306 fi
35307
35308         fi
35309
35310         if test $ol_link_sasl = no ; then
35311                 if test $ol_with_cyrus_sasl != auto ; then
35312                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
35313 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
35314    { (exit 1); exit 1; }; }
35315                 else
35316                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
35317 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
35318                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35319 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35320                         if test $ol_link_tls = no ; then
35321                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35322 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35323                         fi
35324                 fi
35325         else
35326                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
35327 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
35328 if test "${ol_cv_sasl_compat+set}" = set; then
35329   echo $ECHO_N "(cached) $ECHO_C" >&6
35330 else
35331
35332         cat >conftest.$ac_ext <<_ACEOF
35333 /* confdefs.h.  */
35334 _ACEOF
35335 cat confdefs.h >>conftest.$ac_ext
35336 cat >>conftest.$ac_ext <<_ACEOF
35337 /* end confdefs.h.  */
35338
35339 #ifdef HAVE_SASL_SASL_H
35340 #include <sasl/sasl.h>
35341 #else
35342 #include <sasl.h>
35343 #endif
35344
35345 /* Require 2.1.15+ */
35346 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
35347         char *__sasl_compat = "2.2+ or better okay (we guess)";
35348 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
35349         && SASL_VERSION_STEP >=15
35350         char *__sasl_compat = "2.1.15+ or better okay";
35351 #endif
35352
35353 _ACEOF
35354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35355   $EGREP "__sasl_compat" >/dev/null 2>&1; then
35356   ol_cv_sasl_compat=yes
35357 else
35358   ol_cv_sasl_compat=no
35359 fi
35360 rm -f conftest*
35361
35362 fi
35363 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
35364 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
35365
35366                 if test $ol_cv_sasl_compat = no ; then
35367                         ol_link_sasl=no
35368                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
35369 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
35370    { (exit 1); exit 1; }; }
35371                 fi
35372
35373
35374 cat >>confdefs.h <<\_ACEOF
35375 #define HAVE_CYRUS_SASL 1
35376 _ACEOF
35377
35378                 SASL_LIBS="$ol_link_sasl"
35379                 if test $ol_enable_spasswd != no ; then
35380                         ol_link_spasswd=yes
35381                 fi
35382
35383                 ac_save_LIBS="$LIBS"
35384                 LIBS="$LIBS $ol_link_sasl"
35385                 echo "$as_me:$LINENO: checking for sasl_version" >&5
35386 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
35387 if test "${ac_cv_func_sasl_version+set}" = set; then
35388   echo $ECHO_N "(cached) $ECHO_C" >&6
35389 else
35390   cat >conftest.$ac_ext <<_ACEOF
35391 /* confdefs.h.  */
35392 _ACEOF
35393 cat confdefs.h >>conftest.$ac_ext
35394 cat >>conftest.$ac_ext <<_ACEOF
35395 /* end confdefs.h.  */
35396 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
35397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35398 #define sasl_version innocuous_sasl_version
35399
35400 /* System header to define __stub macros and hopefully few prototypes,
35401     which can conflict with char sasl_version (); below.
35402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35403     <limits.h> exists even on freestanding compilers.  */
35404
35405 #ifdef __STDC__
35406 # include <limits.h>
35407 #else
35408 # include <assert.h>
35409 #endif
35410
35411 #undef sasl_version
35412
35413 /* Override any gcc2 internal prototype to avoid an error.  */
35414 #ifdef __cplusplus
35415 extern "C"
35416 {
35417 #endif
35418 /* We use char because int might match the return type of a gcc2
35419    builtin and then its argument prototype would still apply.  */
35420 char sasl_version ();
35421 /* The GNU C library defines this for functions which it implements
35422     to always fail with ENOSYS.  Some functions are actually named
35423     something starting with __ and the normal name is an alias.  */
35424 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
35425 choke me
35426 #else
35427 char (*f) () = sasl_version;
35428 #endif
35429 #ifdef __cplusplus
35430 }
35431 #endif
35432
35433 int
35434 main ()
35435 {
35436 return f != sasl_version;
35437   ;
35438   return 0;
35439 }
35440 _ACEOF
35441 rm -f conftest.$ac_objext conftest$ac_exeext
35442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35443   (eval $ac_link) 2>conftest.er1
35444   ac_status=$?
35445   grep -v '^ *+' conftest.er1 >conftest.err
35446   rm -f conftest.er1
35447   cat conftest.err >&5
35448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35449   (exit $ac_status); } &&
35450          { ac_try='test -z "$ac_c_werror_flag"
35451                          || test ! -s conftest.err'
35452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35453   (eval $ac_try) 2>&5
35454   ac_status=$?
35455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35456   (exit $ac_status); }; } &&
35457          { ac_try='test -s conftest$ac_exeext'
35458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35459   (eval $ac_try) 2>&5
35460   ac_status=$?
35461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35462   (exit $ac_status); }; }; then
35463   ac_cv_func_sasl_version=yes
35464 else
35465   echo "$as_me: failed program was:" >&5
35466 sed 's/^/| /' conftest.$ac_ext >&5
35467
35468 ac_cv_func_sasl_version=no
35469 fi
35470 rm -f conftest.err conftest.$ac_objext \
35471       conftest$ac_exeext conftest.$ac_ext
35472 fi
35473 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
35474 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
35475 if test $ac_cv_func_sasl_version = yes; then
35476
35477 cat >>confdefs.h <<\_ACEOF
35478 #define HAVE_SASL_VERSION 1
35479 _ACEOF
35480
35481 fi
35482
35483                 LIBS="$ac_save_LIBS"
35484
35485                 WITH_SASL=yes
35486         fi
35487
35488 else
35489         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35490 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35491         if test $ol_link_tls = no ; then
35492                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35493 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35494         fi
35495 fi
35496
35497 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
35498         dev=no
35499         if test -r /dev/urandom ; then
35500                 dev="/dev/urandom";
35501         elif test -r /idev/urandom ; then
35502                 dev="/idev/urandom";
35503         elif test -r /dev/srandom ; then
35504                 dev="/dev/srandom";
35505         elif test -r /dev/random ; then
35506                 dev="/dev/random";
35507         elif test -r /idev/random ; then
35508                 dev="/idev/random";
35509         fi
35510
35511         if test $dev != no ; then
35512
35513 cat >>confdefs.h <<_ACEOF
35514 #define URANDOM_DEVICE "$dev"
35515 _ACEOF
35516
35517         fi
35518 fi
35519
35520 ol_link_fetch=no
35521 if test $ol_with_fetch != no ; then
35522         ol_LIBS=$LIBS
35523 LIBS="-lfetch -lcom_err $LIBS"
35524 echo "$as_me:$LINENO: checking fetch(3) library" >&5
35525 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
35526 if test "${ol_cv_lib_fetch+set}" = set; then
35527   echo $ECHO_N "(cached) $ECHO_C" >&6
35528 else
35529
35530         cat >conftest.$ac_ext <<_ACEOF
35531 /* confdefs.h.  */
35532 _ACEOF
35533 cat confdefs.h >>conftest.$ac_ext
35534 cat >>conftest.$ac_ext <<_ACEOF
35535 /* end confdefs.h.  */
35536
35537 #include <sys/param.h>
35538 #include <stdio.h>
35539 #include <fetch.h>
35540 int
35541 main ()
35542 {
35543 struct url *u = fetchParseURL("file:///");
35544   ;
35545   return 0;
35546 }
35547 _ACEOF
35548 rm -f conftest.$ac_objext conftest$ac_exeext
35549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35550   (eval $ac_link) 2>conftest.er1
35551   ac_status=$?
35552   grep -v '^ *+' conftest.er1 >conftest.err
35553   rm -f conftest.er1
35554   cat conftest.err >&5
35555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35556   (exit $ac_status); } &&
35557          { ac_try='test -z "$ac_c_werror_flag"
35558                          || test ! -s conftest.err'
35559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35560   (eval $ac_try) 2>&5
35561   ac_status=$?
35562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35563   (exit $ac_status); }; } &&
35564          { ac_try='test -s conftest$ac_exeext'
35565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35566   (eval $ac_try) 2>&5
35567   ac_status=$?
35568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35569   (exit $ac_status); }; }; then
35570   ol_cv_lib_fetch=yes
35571 else
35572   echo "$as_me: failed program was:" >&5
35573 sed 's/^/| /' conftest.$ac_ext >&5
35574
35575 ol_cv_lib_fetch=no
35576 fi
35577 rm -f conftest.err conftest.$ac_objext \
35578       conftest$ac_exeext conftest.$ac_ext
35579 fi
35580 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
35581 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
35582 LIBS=$ol_LIBS
35583 if test $ol_cv_lib_fetch != no ; then
35584         ol_link_fetch="-lfetch -lcom_err"
35585
35586 cat >>confdefs.h <<\_ACEOF
35587 #define HAVE_FETCH 1
35588 _ACEOF
35589
35590 fi
35591
35592
35593         if test $ol_cv_lib_fetch != no ; then
35594                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
35595                 ol_link_fetch=freebsd
35596
35597         elif test $ol_with_fetch != auto ; then
35598                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
35599 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
35600    { (exit 1); exit 1; }; }
35601         fi
35602 fi
35603
35604 if test $ol_enable_crypt != no ; then
35605         save_LIBS="$LIBS"
35606         LIBS="$TLS_LIBS $LIBS"
35607
35608         echo "$as_me:$LINENO: checking for crypt" >&5
35609 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
35610 if test "${ac_cv_func_crypt+set}" = set; then
35611   echo $ECHO_N "(cached) $ECHO_C" >&6
35612 else
35613   cat >conftest.$ac_ext <<_ACEOF
35614 /* confdefs.h.  */
35615 _ACEOF
35616 cat confdefs.h >>conftest.$ac_ext
35617 cat >>conftest.$ac_ext <<_ACEOF
35618 /* end confdefs.h.  */
35619 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
35620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35621 #define crypt innocuous_crypt
35622
35623 /* System header to define __stub macros and hopefully few prototypes,
35624     which can conflict with char crypt (); below.
35625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35626     <limits.h> exists even on freestanding compilers.  */
35627
35628 #ifdef __STDC__
35629 # include <limits.h>
35630 #else
35631 # include <assert.h>
35632 #endif
35633
35634 #undef crypt
35635
35636 /* Override any gcc2 internal prototype to avoid an error.  */
35637 #ifdef __cplusplus
35638 extern "C"
35639 {
35640 #endif
35641 /* We use char because int might match the return type of a gcc2
35642    builtin and then its argument prototype would still apply.  */
35643 char crypt ();
35644 /* The GNU C library defines this for functions which it implements
35645     to always fail with ENOSYS.  Some functions are actually named
35646     something starting with __ and the normal name is an alias.  */
35647 #if defined (__stub_crypt) || defined (__stub___crypt)
35648 choke me
35649 #else
35650 char (*f) () = crypt;
35651 #endif
35652 #ifdef __cplusplus
35653 }
35654 #endif
35655
35656 int
35657 main ()
35658 {
35659 return f != crypt;
35660   ;
35661   return 0;
35662 }
35663 _ACEOF
35664 rm -f conftest.$ac_objext conftest$ac_exeext
35665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35666   (eval $ac_link) 2>conftest.er1
35667   ac_status=$?
35668   grep -v '^ *+' conftest.er1 >conftest.err
35669   rm -f conftest.er1
35670   cat conftest.err >&5
35671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35672   (exit $ac_status); } &&
35673          { ac_try='test -z "$ac_c_werror_flag"
35674                          || test ! -s conftest.err'
35675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35676   (eval $ac_try) 2>&5
35677   ac_status=$?
35678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679   (exit $ac_status); }; } &&
35680          { ac_try='test -s conftest$ac_exeext'
35681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35682   (eval $ac_try) 2>&5
35683   ac_status=$?
35684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685   (exit $ac_status); }; }; then
35686   ac_cv_func_crypt=yes
35687 else
35688   echo "$as_me: failed program was:" >&5
35689 sed 's/^/| /' conftest.$ac_ext >&5
35690
35691 ac_cv_func_crypt=no
35692 fi
35693 rm -f conftest.err conftest.$ac_objext \
35694       conftest$ac_exeext conftest.$ac_ext
35695 fi
35696 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
35697 echo "${ECHO_T}$ac_cv_func_crypt" >&6
35698 if test $ac_cv_func_crypt = yes; then
35699   have_crypt=yes
35700 else
35701
35702                 LIBS="$save_LIBS"
35703                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
35704 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
35705 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
35706   echo $ECHO_N "(cached) $ECHO_C" >&6
35707 else
35708   ac_check_lib_save_LIBS=$LIBS
35709 LIBS="-lcrypt  $LIBS"
35710 cat >conftest.$ac_ext <<_ACEOF
35711 /* confdefs.h.  */
35712 _ACEOF
35713 cat confdefs.h >>conftest.$ac_ext
35714 cat >>conftest.$ac_ext <<_ACEOF
35715 /* end confdefs.h.  */
35716
35717 /* Override any gcc2 internal prototype to avoid an error.  */
35718 #ifdef __cplusplus
35719 extern "C"
35720 #endif
35721 /* We use char because int might match the return type of a gcc2
35722    builtin and then its argument prototype would still apply.  */
35723 char crypt ();
35724 int
35725 main ()
35726 {
35727 crypt ();
35728   ;
35729   return 0;
35730 }
35731 _ACEOF
35732 rm -f conftest.$ac_objext conftest$ac_exeext
35733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35734   (eval $ac_link) 2>conftest.er1
35735   ac_status=$?
35736   grep -v '^ *+' conftest.er1 >conftest.err
35737   rm -f conftest.er1
35738   cat conftest.err >&5
35739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35740   (exit $ac_status); } &&
35741          { ac_try='test -z "$ac_c_werror_flag"
35742                          || test ! -s conftest.err'
35743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35744   (eval $ac_try) 2>&5
35745   ac_status=$?
35746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35747   (exit $ac_status); }; } &&
35748          { ac_try='test -s conftest$ac_exeext'
35749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35750   (eval $ac_try) 2>&5
35751   ac_status=$?
35752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753   (exit $ac_status); }; }; then
35754   ac_cv_lib_crypt_crypt=yes
35755 else
35756   echo "$as_me: failed program was:" >&5
35757 sed 's/^/| /' conftest.$ac_ext >&5
35758
35759 ac_cv_lib_crypt_crypt=no
35760 fi
35761 rm -f conftest.err conftest.$ac_objext \
35762       conftest$ac_exeext conftest.$ac_ext
35763 LIBS=$ac_check_lib_save_LIBS
35764 fi
35765 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
35766 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
35767 if test $ac_cv_lib_crypt_crypt = yes; then
35768   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
35769                         have_crypt=yes
35770 else
35771   have_crypt=no
35772 fi
35773
35774 fi
35775
35776
35777         LIBS="$save_LIBS"
35778
35779         if test $have_crypt = yes ; then
35780
35781 cat >>confdefs.h <<\_ACEOF
35782 #define HAVE_CRYPT 1
35783 _ACEOF
35784
35785         else
35786                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
35787 echo "$as_me: WARNING: could not find crypt" >&2;}
35788                 if test $ol_enable_crypt = yes ; then
35789                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
35790 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
35791    { (exit 1); exit 1; }; }
35792                 fi
35793
35794                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
35795 echo "$as_me: WARNING: disabling crypt support" >&2;}
35796                 ol_enable_crypt=no
35797         fi
35798 fi
35799
35800 if test $ol_enable_proctitle != no ; then
35801         echo "$as_me:$LINENO: checking for setproctitle" >&5
35802 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
35803 if test "${ac_cv_func_setproctitle+set}" = set; then
35804   echo $ECHO_N "(cached) $ECHO_C" >&6
35805 else
35806   cat >conftest.$ac_ext <<_ACEOF
35807 /* confdefs.h.  */
35808 _ACEOF
35809 cat confdefs.h >>conftest.$ac_ext
35810 cat >>conftest.$ac_ext <<_ACEOF
35811 /* end confdefs.h.  */
35812 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
35813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35814 #define setproctitle innocuous_setproctitle
35815
35816 /* System header to define __stub macros and hopefully few prototypes,
35817     which can conflict with char setproctitle (); below.
35818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35819     <limits.h> exists even on freestanding compilers.  */
35820
35821 #ifdef __STDC__
35822 # include <limits.h>
35823 #else
35824 # include <assert.h>
35825 #endif
35826
35827 #undef setproctitle
35828
35829 /* Override any gcc2 internal prototype to avoid an error.  */
35830 #ifdef __cplusplus
35831 extern "C"
35832 {
35833 #endif
35834 /* We use char because int might match the return type of a gcc2
35835    builtin and then its argument prototype would still apply.  */
35836 char setproctitle ();
35837 /* The GNU C library defines this for functions which it implements
35838     to always fail with ENOSYS.  Some functions are actually named
35839     something starting with __ and the normal name is an alias.  */
35840 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
35841 choke me
35842 #else
35843 char (*f) () = setproctitle;
35844 #endif
35845 #ifdef __cplusplus
35846 }
35847 #endif
35848
35849 int
35850 main ()
35851 {
35852 return f != setproctitle;
35853   ;
35854   return 0;
35855 }
35856 _ACEOF
35857 rm -f conftest.$ac_objext conftest$ac_exeext
35858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35859   (eval $ac_link) 2>conftest.er1
35860   ac_status=$?
35861   grep -v '^ *+' conftest.er1 >conftest.err
35862   rm -f conftest.er1
35863   cat conftest.err >&5
35864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865   (exit $ac_status); } &&
35866          { ac_try='test -z "$ac_c_werror_flag"
35867                          || test ! -s conftest.err'
35868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35869   (eval $ac_try) 2>&5
35870   ac_status=$?
35871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35872   (exit $ac_status); }; } &&
35873          { ac_try='test -s conftest$ac_exeext'
35874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35875   (eval $ac_try) 2>&5
35876   ac_status=$?
35877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878   (exit $ac_status); }; }; then
35879   ac_cv_func_setproctitle=yes
35880 else
35881   echo "$as_me: failed program was:" >&5
35882 sed 's/^/| /' conftest.$ac_ext >&5
35883
35884 ac_cv_func_setproctitle=no
35885 fi
35886 rm -f conftest.err conftest.$ac_objext \
35887       conftest$ac_exeext conftest.$ac_ext
35888 fi
35889 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
35890 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
35891 if test $ac_cv_func_setproctitle = yes; then
35892   have_setproctitle=yes
35893 else
35894
35895                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
35896 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
35897 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
35898   echo $ECHO_N "(cached) $ECHO_C" >&6
35899 else
35900   ac_check_lib_save_LIBS=$LIBS
35901 LIBS="-lutil  $LIBS"
35902 cat >conftest.$ac_ext <<_ACEOF
35903 /* confdefs.h.  */
35904 _ACEOF
35905 cat confdefs.h >>conftest.$ac_ext
35906 cat >>conftest.$ac_ext <<_ACEOF
35907 /* end confdefs.h.  */
35908
35909 /* Override any gcc2 internal prototype to avoid an error.  */
35910 #ifdef __cplusplus
35911 extern "C"
35912 #endif
35913 /* We use char because int might match the return type of a gcc2
35914    builtin and then its argument prototype would still apply.  */
35915 char setproctitle ();
35916 int
35917 main ()
35918 {
35919 setproctitle ();
35920   ;
35921   return 0;
35922 }
35923 _ACEOF
35924 rm -f conftest.$ac_objext conftest$ac_exeext
35925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35926   (eval $ac_link) 2>conftest.er1
35927   ac_status=$?
35928   grep -v '^ *+' conftest.er1 >conftest.err
35929   rm -f conftest.er1
35930   cat conftest.err >&5
35931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932   (exit $ac_status); } &&
35933          { ac_try='test -z "$ac_c_werror_flag"
35934                          || test ! -s conftest.err'
35935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35936   (eval $ac_try) 2>&5
35937   ac_status=$?
35938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35939   (exit $ac_status); }; } &&
35940          { ac_try='test -s conftest$ac_exeext'
35941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35942   (eval $ac_try) 2>&5
35943   ac_status=$?
35944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35945   (exit $ac_status); }; }; then
35946   ac_cv_lib_util_setproctitle=yes
35947 else
35948   echo "$as_me: failed program was:" >&5
35949 sed 's/^/| /' conftest.$ac_ext >&5
35950
35951 ac_cv_lib_util_setproctitle=no
35952 fi
35953 rm -f conftest.err conftest.$ac_objext \
35954       conftest$ac_exeext conftest.$ac_ext
35955 LIBS=$ac_check_lib_save_LIBS
35956 fi
35957 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
35958 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
35959 if test $ac_cv_lib_util_setproctitle = yes; then
35960   have_setproctitle=yes
35961                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
35962 else
35963   have_setproctitle=no
35964                         case $LIBOBJS in
35965     "setproctitle.$ac_objext"   | \
35966   *" setproctitle.$ac_objext"   | \
35967     "setproctitle.$ac_objext "* | \
35968   *" setproctitle.$ac_objext "* ) ;;
35969   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
35970 esac
35971
35972                         LIBSRCS="$LIBSRCS setproctitle.c"
35973 fi
35974
35975 fi
35976
35977
35978         if test $have_setproctitle = yes ; then
35979
35980 cat >>confdefs.h <<\_ACEOF
35981 #define HAVE_SETPROCTITLE 1
35982 _ACEOF
35983
35984         fi
35985 fi
35986
35987 if test $ol_enable_slp != no ; then
35988
35989 for ac_header in slp.h
35990 do
35991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35993   echo "$as_me:$LINENO: checking for $ac_header" >&5
35994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35996   echo $ECHO_N "(cached) $ECHO_C" >&6
35997 fi
35998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36000 else
36001   # Is the header compilable?
36002 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36004 cat >conftest.$ac_ext <<_ACEOF
36005 /* confdefs.h.  */
36006 _ACEOF
36007 cat confdefs.h >>conftest.$ac_ext
36008 cat >>conftest.$ac_ext <<_ACEOF
36009 /* end confdefs.h.  */
36010 $ac_includes_default
36011 #include <$ac_header>
36012 _ACEOF
36013 rm -f conftest.$ac_objext
36014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36015   (eval $ac_compile) 2>conftest.er1
36016   ac_status=$?
36017   grep -v '^ *+' conftest.er1 >conftest.err
36018   rm -f conftest.er1
36019   cat conftest.err >&5
36020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021   (exit $ac_status); } &&
36022          { ac_try='test -z "$ac_c_werror_flag"
36023                          || test ! -s conftest.err'
36024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36025   (eval $ac_try) 2>&5
36026   ac_status=$?
36027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36028   (exit $ac_status); }; } &&
36029          { ac_try='test -s conftest.$ac_objext'
36030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36031   (eval $ac_try) 2>&5
36032   ac_status=$?
36033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034   (exit $ac_status); }; }; then
36035   ac_header_compiler=yes
36036 else
36037   echo "$as_me: failed program was:" >&5
36038 sed 's/^/| /' conftest.$ac_ext >&5
36039
36040 ac_header_compiler=no
36041 fi
36042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36043 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36044 echo "${ECHO_T}$ac_header_compiler" >&6
36045
36046 # Is the header present?
36047 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36049 cat >conftest.$ac_ext <<_ACEOF
36050 /* confdefs.h.  */
36051 _ACEOF
36052 cat confdefs.h >>conftest.$ac_ext
36053 cat >>conftest.$ac_ext <<_ACEOF
36054 /* end confdefs.h.  */
36055 #include <$ac_header>
36056 _ACEOF
36057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36058   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36059   ac_status=$?
36060   grep -v '^ *+' conftest.er1 >conftest.err
36061   rm -f conftest.er1
36062   cat conftest.err >&5
36063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064   (exit $ac_status); } >/dev/null; then
36065   if test -s conftest.err; then
36066     ac_cpp_err=$ac_c_preproc_warn_flag
36067     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36068   else
36069     ac_cpp_err=
36070   fi
36071 else
36072   ac_cpp_err=yes
36073 fi
36074 if test -z "$ac_cpp_err"; then
36075   ac_header_preproc=yes
36076 else
36077   echo "$as_me: failed program was:" >&5
36078 sed 's/^/| /' conftest.$ac_ext >&5
36079
36080   ac_header_preproc=no
36081 fi
36082 rm -f conftest.err conftest.$ac_ext
36083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36084 echo "${ECHO_T}$ac_header_preproc" >&6
36085
36086 # So?  What about this header?
36087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36088   yes:no: )
36089     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36093     ac_header_preproc=yes
36094     ;;
36095   no:yes:* )
36096     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36098     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36099 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36100     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36102     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36103 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36104     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36106     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36108     (
36109       cat <<\_ASBOX
36110 ## ------------------------------------------ ##
36111 ## Report this to the AC_PACKAGE_NAME lists.  ##
36112 ## ------------------------------------------ ##
36113 _ASBOX
36114     ) |
36115       sed "s/^/$as_me: WARNING:     /" >&2
36116     ;;
36117 esac
36118 echo "$as_me:$LINENO: checking for $ac_header" >&5
36119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36121   echo $ECHO_N "(cached) $ECHO_C" >&6
36122 else
36123   eval "$as_ac_Header=\$ac_header_preproc"
36124 fi
36125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36127
36128 fi
36129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36130   cat >>confdefs.h <<_ACEOF
36131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36132 _ACEOF
36133
36134 fi
36135
36136 done
36137
36138
36139         if test $ac_cv_header_slp_h = yes ; then
36140                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
36141 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
36142 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
36143   echo $ECHO_N "(cached) $ECHO_C" >&6
36144 else
36145   ac_check_lib_save_LIBS=$LIBS
36146 LIBS="-lslp  $LIBS"
36147 cat >conftest.$ac_ext <<_ACEOF
36148 /* confdefs.h.  */
36149 _ACEOF
36150 cat confdefs.h >>conftest.$ac_ext
36151 cat >>conftest.$ac_ext <<_ACEOF
36152 /* end confdefs.h.  */
36153
36154 /* Override any gcc2 internal prototype to avoid an error.  */
36155 #ifdef __cplusplus
36156 extern "C"
36157 #endif
36158 /* We use char because int might match the return type of a gcc2
36159    builtin and then its argument prototype would still apply.  */
36160 char SLPOpen ();
36161 int
36162 main ()
36163 {
36164 SLPOpen ();
36165   ;
36166   return 0;
36167 }
36168 _ACEOF
36169 rm -f conftest.$ac_objext conftest$ac_exeext
36170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36171   (eval $ac_link) 2>conftest.er1
36172   ac_status=$?
36173   grep -v '^ *+' conftest.er1 >conftest.err
36174   rm -f conftest.er1
36175   cat conftest.err >&5
36176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36177   (exit $ac_status); } &&
36178          { ac_try='test -z "$ac_c_werror_flag"
36179                          || test ! -s conftest.err'
36180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36181   (eval $ac_try) 2>&5
36182   ac_status=$?
36183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36184   (exit $ac_status); }; } &&
36185          { ac_try='test -s conftest$ac_exeext'
36186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36187   (eval $ac_try) 2>&5
36188   ac_status=$?
36189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36190   (exit $ac_status); }; }; then
36191   ac_cv_lib_slp_SLPOpen=yes
36192 else
36193   echo "$as_me: failed program was:" >&5
36194 sed 's/^/| /' conftest.$ac_ext >&5
36195
36196 ac_cv_lib_slp_SLPOpen=no
36197 fi
36198 rm -f conftest.err conftest.$ac_objext \
36199       conftest$ac_exeext conftest.$ac_ext
36200 LIBS=$ac_check_lib_save_LIBS
36201 fi
36202 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
36203 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
36204 if test $ac_cv_lib_slp_SLPOpen = yes; then
36205   have_slp=yes
36206 else
36207   have_slp=no
36208 fi
36209
36210                 if test $have_slp = yes ; then
36211
36212 cat >>confdefs.h <<\_ACEOF
36213 #define HAVE_SLP 1
36214 _ACEOF
36215
36216                         SLAPD_SLP_LIBS=-lslp
36217                 fi
36218
36219         elif test $ol_enable_slp = yes ; then
36220                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
36221 echo "$as_me: error: SLP not found" >&2;}
36222    { (exit 1); exit 1; }; }
36223         fi
36224 fi
36225
36226 if test "$ol_with_multiple_precision" != "no" ; then
36227         ol_have_bignum=no
36228         ol_have_gmp=no
36229
36230
36231
36232 for ac_header in openssl/bn.h bn.h
36233 do
36234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36236   echo "$as_me:$LINENO: checking for $ac_header" >&5
36237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36239   echo $ECHO_N "(cached) $ECHO_C" >&6
36240 fi
36241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36243 else
36244   # Is the header compilable?
36245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36247 cat >conftest.$ac_ext <<_ACEOF
36248 /* confdefs.h.  */
36249 _ACEOF
36250 cat confdefs.h >>conftest.$ac_ext
36251 cat >>conftest.$ac_ext <<_ACEOF
36252 /* end confdefs.h.  */
36253 $ac_includes_default
36254 #include <$ac_header>
36255 _ACEOF
36256 rm -f conftest.$ac_objext
36257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36258   (eval $ac_compile) 2>conftest.er1
36259   ac_status=$?
36260   grep -v '^ *+' conftest.er1 >conftest.err
36261   rm -f conftest.er1
36262   cat conftest.err >&5
36263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36264   (exit $ac_status); } &&
36265          { ac_try='test -z "$ac_c_werror_flag"
36266                          || test ! -s conftest.err'
36267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36268   (eval $ac_try) 2>&5
36269   ac_status=$?
36270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36271   (exit $ac_status); }; } &&
36272          { ac_try='test -s conftest.$ac_objext'
36273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36274   (eval $ac_try) 2>&5
36275   ac_status=$?
36276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277   (exit $ac_status); }; }; then
36278   ac_header_compiler=yes
36279 else
36280   echo "$as_me: failed program was:" >&5
36281 sed 's/^/| /' conftest.$ac_ext >&5
36282
36283 ac_header_compiler=no
36284 fi
36285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36287 echo "${ECHO_T}$ac_header_compiler" >&6
36288
36289 # Is the header present?
36290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36292 cat >conftest.$ac_ext <<_ACEOF
36293 /* confdefs.h.  */
36294 _ACEOF
36295 cat confdefs.h >>conftest.$ac_ext
36296 cat >>conftest.$ac_ext <<_ACEOF
36297 /* end confdefs.h.  */
36298 #include <$ac_header>
36299 _ACEOF
36300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36302   ac_status=$?
36303   grep -v '^ *+' conftest.er1 >conftest.err
36304   rm -f conftest.er1
36305   cat conftest.err >&5
36306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307   (exit $ac_status); } >/dev/null; then
36308   if test -s conftest.err; then
36309     ac_cpp_err=$ac_c_preproc_warn_flag
36310     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36311   else
36312     ac_cpp_err=
36313   fi
36314 else
36315   ac_cpp_err=yes
36316 fi
36317 if test -z "$ac_cpp_err"; then
36318   ac_header_preproc=yes
36319 else
36320   echo "$as_me: failed program was:" >&5
36321 sed 's/^/| /' conftest.$ac_ext >&5
36322
36323   ac_header_preproc=no
36324 fi
36325 rm -f conftest.err conftest.$ac_ext
36326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36327 echo "${ECHO_T}$ac_header_preproc" >&6
36328
36329 # So?  What about this header?
36330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36331   yes:no: )
36332     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36336     ac_header_preproc=yes
36337     ;;
36338   no:yes:* )
36339     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36341     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36342 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36343     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36345     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36346 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36349     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36351     (
36352       cat <<\_ASBOX
36353 ## ------------------------------------------ ##
36354 ## Report this to the AC_PACKAGE_NAME lists.  ##
36355 ## ------------------------------------------ ##
36356 _ASBOX
36357     ) |
36358       sed "s/^/$as_me: WARNING:     /" >&2
36359     ;;
36360 esac
36361 echo "$as_me:$LINENO: checking for $ac_header" >&5
36362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36364   echo $ECHO_N "(cached) $ECHO_C" >&6
36365 else
36366   eval "$as_ac_Header=\$ac_header_preproc"
36367 fi
36368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36370
36371 fi
36372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36373   cat >>confdefs.h <<_ACEOF
36374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36375 _ACEOF
36376
36377 fi
36378
36379 done
36380
36381
36382
36383 for ac_header in openssl/crypto.h crypto.h
36384 do
36385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36387   echo "$as_me:$LINENO: checking for $ac_header" >&5
36388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36390   echo $ECHO_N "(cached) $ECHO_C" >&6
36391 fi
36392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36394 else
36395   # Is the header compilable?
36396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36398 cat >conftest.$ac_ext <<_ACEOF
36399 /* confdefs.h.  */
36400 _ACEOF
36401 cat confdefs.h >>conftest.$ac_ext
36402 cat >>conftest.$ac_ext <<_ACEOF
36403 /* end confdefs.h.  */
36404 $ac_includes_default
36405 #include <$ac_header>
36406 _ACEOF
36407 rm -f conftest.$ac_objext
36408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36409   (eval $ac_compile) 2>conftest.er1
36410   ac_status=$?
36411   grep -v '^ *+' conftest.er1 >conftest.err
36412   rm -f conftest.er1
36413   cat conftest.err >&5
36414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415   (exit $ac_status); } &&
36416          { ac_try='test -z "$ac_c_werror_flag"
36417                          || test ! -s conftest.err'
36418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36419   (eval $ac_try) 2>&5
36420   ac_status=$?
36421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422   (exit $ac_status); }; } &&
36423          { ac_try='test -s conftest.$ac_objext'
36424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36425   (eval $ac_try) 2>&5
36426   ac_status=$?
36427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428   (exit $ac_status); }; }; then
36429   ac_header_compiler=yes
36430 else
36431   echo "$as_me: failed program was:" >&5
36432 sed 's/^/| /' conftest.$ac_ext >&5
36433
36434 ac_header_compiler=no
36435 fi
36436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36438 echo "${ECHO_T}$ac_header_compiler" >&6
36439
36440 # Is the header present?
36441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36443 cat >conftest.$ac_ext <<_ACEOF
36444 /* confdefs.h.  */
36445 _ACEOF
36446 cat confdefs.h >>conftest.$ac_ext
36447 cat >>conftest.$ac_ext <<_ACEOF
36448 /* end confdefs.h.  */
36449 #include <$ac_header>
36450 _ACEOF
36451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36453   ac_status=$?
36454   grep -v '^ *+' conftest.er1 >conftest.err
36455   rm -f conftest.er1
36456   cat conftest.err >&5
36457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458   (exit $ac_status); } >/dev/null; then
36459   if test -s conftest.err; then
36460     ac_cpp_err=$ac_c_preproc_warn_flag
36461     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36462   else
36463     ac_cpp_err=
36464   fi
36465 else
36466   ac_cpp_err=yes
36467 fi
36468 if test -z "$ac_cpp_err"; then
36469   ac_header_preproc=yes
36470 else
36471   echo "$as_me: failed program was:" >&5
36472 sed 's/^/| /' conftest.$ac_ext >&5
36473
36474   ac_header_preproc=no
36475 fi
36476 rm -f conftest.err conftest.$ac_ext
36477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36478 echo "${ECHO_T}$ac_header_preproc" >&6
36479
36480 # So?  What about this header?
36481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36482   yes:no: )
36483     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36487     ac_header_preproc=yes
36488     ;;
36489   no:yes:* )
36490     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36492     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36493 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36494     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36496     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36497 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36500     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36502     (
36503       cat <<\_ASBOX
36504 ## ------------------------------------------ ##
36505 ## Report this to the AC_PACKAGE_NAME lists.  ##
36506 ## ------------------------------------------ ##
36507 _ASBOX
36508     ) |
36509       sed "s/^/$as_me: WARNING:     /" >&2
36510     ;;
36511 esac
36512 echo "$as_me:$LINENO: checking for $ac_header" >&5
36513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36515   echo $ECHO_N "(cached) $ECHO_C" >&6
36516 else
36517   eval "$as_ac_Header=\$ac_header_preproc"
36518 fi
36519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36521
36522 fi
36523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36524   cat >>confdefs.h <<_ACEOF
36525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36526 _ACEOF
36527
36528 fi
36529
36530 done
36531
36532
36533 for ac_header in gmp.h
36534 do
36535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36537   echo "$as_me:$LINENO: checking for $ac_header" >&5
36538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36540   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
36545   # Is the header compilable?
36546 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36548 cat >conftest.$ac_ext <<_ACEOF
36549 /* confdefs.h.  */
36550 _ACEOF
36551 cat confdefs.h >>conftest.$ac_ext
36552 cat >>conftest.$ac_ext <<_ACEOF
36553 /* end confdefs.h.  */
36554 $ac_includes_default
36555 #include <$ac_header>
36556 _ACEOF
36557 rm -f conftest.$ac_objext
36558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36559   (eval $ac_compile) 2>conftest.er1
36560   ac_status=$?
36561   grep -v '^ *+' conftest.er1 >conftest.err
36562   rm -f conftest.er1
36563   cat conftest.err >&5
36564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36565   (exit $ac_status); } &&
36566          { ac_try='test -z "$ac_c_werror_flag"
36567                          || test ! -s conftest.err'
36568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36569   (eval $ac_try) 2>&5
36570   ac_status=$?
36571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36572   (exit $ac_status); }; } &&
36573          { ac_try='test -s conftest.$ac_objext'
36574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36575   (eval $ac_try) 2>&5
36576   ac_status=$?
36577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578   (exit $ac_status); }; }; then
36579   ac_header_compiler=yes
36580 else
36581   echo "$as_me: failed program was:" >&5
36582 sed 's/^/| /' conftest.$ac_ext >&5
36583
36584 ac_header_compiler=no
36585 fi
36586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36588 echo "${ECHO_T}$ac_header_compiler" >&6
36589
36590 # Is the header present?
36591 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36593 cat >conftest.$ac_ext <<_ACEOF
36594 /* confdefs.h.  */
36595 _ACEOF
36596 cat confdefs.h >>conftest.$ac_ext
36597 cat >>conftest.$ac_ext <<_ACEOF
36598 /* end confdefs.h.  */
36599 #include <$ac_header>
36600 _ACEOF
36601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36602   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36603   ac_status=$?
36604   grep -v '^ *+' conftest.er1 >conftest.err
36605   rm -f conftest.er1
36606   cat conftest.err >&5
36607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36608   (exit $ac_status); } >/dev/null; then
36609   if test -s conftest.err; then
36610     ac_cpp_err=$ac_c_preproc_warn_flag
36611     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36612   else
36613     ac_cpp_err=
36614   fi
36615 else
36616   ac_cpp_err=yes
36617 fi
36618 if test -z "$ac_cpp_err"; then
36619   ac_header_preproc=yes
36620 else
36621   echo "$as_me: failed program was:" >&5
36622 sed 's/^/| /' conftest.$ac_ext >&5
36623
36624   ac_header_preproc=no
36625 fi
36626 rm -f conftest.err conftest.$ac_ext
36627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36628 echo "${ECHO_T}$ac_header_preproc" >&6
36629
36630 # So?  What about this header?
36631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36632   yes:no: )
36633     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36637     ac_header_preproc=yes
36638     ;;
36639   no:yes:* )
36640     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36642     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36643 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36644     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36646     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36647 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36648     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36650     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36652     (
36653       cat <<\_ASBOX
36654 ## ------------------------------------------ ##
36655 ## Report this to the AC_PACKAGE_NAME lists.  ##
36656 ## ------------------------------------------ ##
36657 _ASBOX
36658     ) |
36659       sed "s/^/$as_me: WARNING:     /" >&2
36660     ;;
36661 esac
36662 echo "$as_me:$LINENO: checking for $ac_header" >&5
36663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36665   echo $ECHO_N "(cached) $ECHO_C" >&6
36666 else
36667   eval "$as_ac_Header=\$ac_header_preproc"
36668 fi
36669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36671
36672 fi
36673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36674   cat >>confdefs.h <<_ACEOF
36675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36676 _ACEOF
36677
36678 fi
36679
36680 done
36681
36682
36683         if test "$ol_with_tls" = "found" ; then
36684                 ol_have_bn_h=no
36685                 ol_have_crypto_h=no
36686
36687                 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
36688                    test "$ac_cv_header_bn_h" = "yes" ; then
36689                         ol_have_bn_h=yes
36690                 fi
36691
36692                 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
36693                    test "$ac_cv_header_crypto_h" = "yes" ; then
36694                         ol_have_crypto_h=yes
36695                 fi
36696
36697                 if test "$ol_have_bn_h" = "yes" &&
36698                    test "$ol_have_crypto_h" = "yes" ; then
36699                         ol_have_bignum=yes
36700                 fi
36701         fi
36702
36703         if test $ac_cv_header_gmp_h = yes ; then
36704                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36705 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36706 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36707   echo $ECHO_N "(cached) $ECHO_C" >&6
36708 else
36709   ac_check_lib_save_LIBS=$LIBS
36710 LIBS="-lgmp  $LIBS"
36711 cat >conftest.$ac_ext <<_ACEOF
36712 /* confdefs.h.  */
36713 _ACEOF
36714 cat confdefs.h >>conftest.$ac_ext
36715 cat >>conftest.$ac_ext <<_ACEOF
36716 /* end confdefs.h.  */
36717
36718 /* Override any gcc2 internal prototype to avoid an error.  */
36719 #ifdef __cplusplus
36720 extern "C"
36721 #endif
36722 /* We use char because int might match the return type of a gcc2
36723    builtin and then its argument prototype would still apply.  */
36724 char __gmpz_add_ui ();
36725 int
36726 main ()
36727 {
36728 __gmpz_add_ui ();
36729   ;
36730   return 0;
36731 }
36732 _ACEOF
36733 rm -f conftest.$ac_objext conftest$ac_exeext
36734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36735   (eval $ac_link) 2>conftest.er1
36736   ac_status=$?
36737   grep -v '^ *+' conftest.er1 >conftest.err
36738   rm -f conftest.er1
36739   cat conftest.err >&5
36740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36741   (exit $ac_status); } &&
36742          { ac_try='test -z "$ac_c_werror_flag"
36743                          || test ! -s conftest.err'
36744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36745   (eval $ac_try) 2>&5
36746   ac_status=$?
36747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36748   (exit $ac_status); }; } &&
36749          { ac_try='test -s conftest$ac_exeext'
36750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36751   (eval $ac_try) 2>&5
36752   ac_status=$?
36753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36754   (exit $ac_status); }; }; then
36755   ac_cv_lib_gmp___gmpz_add_ui=yes
36756 else
36757   echo "$as_me: failed program was:" >&5
36758 sed 's/^/| /' conftest.$ac_ext >&5
36759
36760 ac_cv_lib_gmp___gmpz_add_ui=no
36761 fi
36762 rm -f conftest.err conftest.$ac_objext \
36763       conftest$ac_exeext conftest.$ac_ext
36764 LIBS=$ac_check_lib_save_LIBS
36765 fi
36766 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36767 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36768 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36769   have_gmp=yes
36770 else
36771   have_gmp=no
36772 fi
36773
36774                 if test $have_gmp = yes ; then
36775                         ol_have_gmp=yes
36776                 fi
36777         fi
36778
36779         echo "$as_me:$LINENO: checking for multiple precision support" >&5
36780 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
36781
36782         ol_mp_support="none"
36783         case "$ol_with_multiple_precision" in
36784         auto)
36785                                                                                 if test "$ol_have_bignum" = "yes" ; then
36786                         ol_mp_support="bignum"
36787                 else
36788                         if test "$ol_have_gmp" = "yes" ; then
36789                                 ol_mp_support="gmp"
36790                         fi
36791                 fi
36792                 ;;
36793         bignum)
36794                 if test "$ol_have_bignum" != "yes" ; then
36795                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
36796 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
36797    { (exit 1); exit 1; }; }
36798                 fi
36799                 ol_mp_support="bignum"
36800                 ;;
36801         gmp)
36802                 if test "$ol_have_gmp" != "yes" ; then
36803                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
36804 echo "$as_me: error: GMP not available" >&2;}
36805    { (exit 1); exit 1; }; }
36806                 fi
36807                 ol_mp_support="gmp"
36808                 ;;
36809         yes)
36810                 if test "$ol_have_bignum" = "yes" ; then
36811                         ol_mp_support="bignum"
36812                 elif test "$ol_have_gmp" = "yes" ; then
36813                         ol_mp_support="gmp"
36814                 else
36815                         { { echo "$as_me:$LINENO: error: not available" >&5
36816 echo "$as_me: error: not available" >&2;}
36817    { (exit 1); exit 1; }; }
36818                 fi
36819                 ;;
36820         esac
36821
36822         case "$ol_mp_support" in
36823         bignum)
36824
36825 cat >>confdefs.h <<\_ACEOF
36826 #define HAVE_BIGNUM 1
36827 _ACEOF
36828
36829                 ;;
36830         gmp)
36831
36832 cat >>confdefs.h <<\_ACEOF
36833 #define HAVE_GMP 1
36834 _ACEOF
36835
36836                 SLAPD_GMP_LIBS=-lgmp
36837                 ;;
36838         none)
36839                 ;;
36840         esac
36841
36842         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
36843 echo "${ECHO_T}$ol_mp_support" >&6
36844 fi
36845
36846
36847 echo "$as_me:$LINENO: checking for mode_t" >&5
36848 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
36849 if test "${ac_cv_type_mode_t+set}" = set; then
36850   echo $ECHO_N "(cached) $ECHO_C" >&6
36851 else
36852   cat >conftest.$ac_ext <<_ACEOF
36853 /* confdefs.h.  */
36854 _ACEOF
36855 cat confdefs.h >>conftest.$ac_ext
36856 cat >>conftest.$ac_ext <<_ACEOF
36857 /* end confdefs.h.  */
36858 $ac_includes_default
36859 int
36860 main ()
36861 {
36862 if ((mode_t *) 0)
36863   return 0;
36864 if (sizeof (mode_t))
36865   return 0;
36866   ;
36867   return 0;
36868 }
36869 _ACEOF
36870 rm -f conftest.$ac_objext
36871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36872   (eval $ac_compile) 2>conftest.er1
36873   ac_status=$?
36874   grep -v '^ *+' conftest.er1 >conftest.err
36875   rm -f conftest.er1
36876   cat conftest.err >&5
36877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36878   (exit $ac_status); } &&
36879          { ac_try='test -z "$ac_c_werror_flag"
36880                          || test ! -s conftest.err'
36881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36882   (eval $ac_try) 2>&5
36883   ac_status=$?
36884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36885   (exit $ac_status); }; } &&
36886          { ac_try='test -s conftest.$ac_objext'
36887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36888   (eval $ac_try) 2>&5
36889   ac_status=$?
36890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36891   (exit $ac_status); }; }; then
36892   ac_cv_type_mode_t=yes
36893 else
36894   echo "$as_me: failed program was:" >&5
36895 sed 's/^/| /' conftest.$ac_ext >&5
36896
36897 ac_cv_type_mode_t=no
36898 fi
36899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36900 fi
36901 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36902 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
36903 if test $ac_cv_type_mode_t = yes; then
36904   :
36905 else
36906
36907 cat >>confdefs.h <<_ACEOF
36908 #define mode_t int
36909 _ACEOF
36910
36911 fi
36912
36913 echo "$as_me:$LINENO: checking for off_t" >&5
36914 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
36915 if test "${ac_cv_type_off_t+set}" = set; then
36916   echo $ECHO_N "(cached) $ECHO_C" >&6
36917 else
36918   cat >conftest.$ac_ext <<_ACEOF
36919 /* confdefs.h.  */
36920 _ACEOF
36921 cat confdefs.h >>conftest.$ac_ext
36922 cat >>conftest.$ac_ext <<_ACEOF
36923 /* end confdefs.h.  */
36924 $ac_includes_default
36925 int
36926 main ()
36927 {
36928 if ((off_t *) 0)
36929   return 0;
36930 if (sizeof (off_t))
36931   return 0;
36932   ;
36933   return 0;
36934 }
36935 _ACEOF
36936 rm -f conftest.$ac_objext
36937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36938   (eval $ac_compile) 2>conftest.er1
36939   ac_status=$?
36940   grep -v '^ *+' conftest.er1 >conftest.err
36941   rm -f conftest.er1
36942   cat conftest.err >&5
36943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36944   (exit $ac_status); } &&
36945          { ac_try='test -z "$ac_c_werror_flag"
36946                          || test ! -s conftest.err'
36947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36948   (eval $ac_try) 2>&5
36949   ac_status=$?
36950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36951   (exit $ac_status); }; } &&
36952          { ac_try='test -s conftest.$ac_objext'
36953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36954   (eval $ac_try) 2>&5
36955   ac_status=$?
36956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36957   (exit $ac_status); }; }; then
36958   ac_cv_type_off_t=yes
36959 else
36960   echo "$as_me: failed program was:" >&5
36961 sed 's/^/| /' conftest.$ac_ext >&5
36962
36963 ac_cv_type_off_t=no
36964 fi
36965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36966 fi
36967 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
36968 echo "${ECHO_T}$ac_cv_type_off_t" >&6
36969 if test $ac_cv_type_off_t = yes; then
36970   :
36971 else
36972
36973 cat >>confdefs.h <<_ACEOF
36974 #define off_t long
36975 _ACEOF
36976
36977 fi
36978
36979 echo "$as_me:$LINENO: checking for pid_t" >&5
36980 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
36981 if test "${ac_cv_type_pid_t+set}" = set; then
36982   echo $ECHO_N "(cached) $ECHO_C" >&6
36983 else
36984   cat >conftest.$ac_ext <<_ACEOF
36985 /* confdefs.h.  */
36986 _ACEOF
36987 cat confdefs.h >>conftest.$ac_ext
36988 cat >>conftest.$ac_ext <<_ACEOF
36989 /* end confdefs.h.  */
36990 $ac_includes_default
36991 int
36992 main ()
36993 {
36994 if ((pid_t *) 0)
36995   return 0;
36996 if (sizeof (pid_t))
36997   return 0;
36998   ;
36999   return 0;
37000 }
37001 _ACEOF
37002 rm -f conftest.$ac_objext
37003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37004   (eval $ac_compile) 2>conftest.er1
37005   ac_status=$?
37006   grep -v '^ *+' conftest.er1 >conftest.err
37007   rm -f conftest.er1
37008   cat conftest.err >&5
37009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010   (exit $ac_status); } &&
37011          { ac_try='test -z "$ac_c_werror_flag"
37012                          || test ! -s conftest.err'
37013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37014   (eval $ac_try) 2>&5
37015   ac_status=$?
37016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37017   (exit $ac_status); }; } &&
37018          { ac_try='test -s conftest.$ac_objext'
37019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37020   (eval $ac_try) 2>&5
37021   ac_status=$?
37022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37023   (exit $ac_status); }; }; then
37024   ac_cv_type_pid_t=yes
37025 else
37026   echo "$as_me: failed program was:" >&5
37027 sed 's/^/| /' conftest.$ac_ext >&5
37028
37029 ac_cv_type_pid_t=no
37030 fi
37031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37032 fi
37033 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37034 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
37035 if test $ac_cv_type_pid_t = yes; then
37036   :
37037 else
37038
37039 cat >>confdefs.h <<_ACEOF
37040 #define pid_t int
37041 _ACEOF
37042
37043 fi
37044
37045 echo "$as_me:$LINENO: checking for ssize_t" >&5
37046 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
37047 if test "${ac_cv_type_ssize_t+set}" = set; then
37048   echo $ECHO_N "(cached) $ECHO_C" >&6
37049 else
37050   cat >conftest.$ac_ext <<_ACEOF
37051 /* confdefs.h.  */
37052 _ACEOF
37053 cat confdefs.h >>conftest.$ac_ext
37054 cat >>conftest.$ac_ext <<_ACEOF
37055 /* end confdefs.h.  */
37056 $ac_includes_default
37057 int
37058 main ()
37059 {
37060 if ((ssize_t *) 0)
37061   return 0;
37062 if (sizeof (ssize_t))
37063   return 0;
37064   ;
37065   return 0;
37066 }
37067 _ACEOF
37068 rm -f conftest.$ac_objext
37069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37070   (eval $ac_compile) 2>conftest.er1
37071   ac_status=$?
37072   grep -v '^ *+' conftest.er1 >conftest.err
37073   rm -f conftest.er1
37074   cat conftest.err >&5
37075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37076   (exit $ac_status); } &&
37077          { ac_try='test -z "$ac_c_werror_flag"
37078                          || test ! -s conftest.err'
37079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37080   (eval $ac_try) 2>&5
37081   ac_status=$?
37082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37083   (exit $ac_status); }; } &&
37084          { ac_try='test -s conftest.$ac_objext'
37085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37086   (eval $ac_try) 2>&5
37087   ac_status=$?
37088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37089   (exit $ac_status); }; }; then
37090   ac_cv_type_ssize_t=yes
37091 else
37092   echo "$as_me: failed program was:" >&5
37093 sed 's/^/| /' conftest.$ac_ext >&5
37094
37095 ac_cv_type_ssize_t=no
37096 fi
37097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37098 fi
37099 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37100 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
37101 if test $ac_cv_type_ssize_t = yes; then
37102   :
37103 else
37104
37105 cat >>confdefs.h <<_ACEOF
37106 #define ssize_t signed int
37107 _ACEOF
37108
37109 fi
37110
37111 echo "$as_me:$LINENO: checking for caddr_t" >&5
37112 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
37113 if test "${ac_cv_type_caddr_t+set}" = set; then
37114   echo $ECHO_N "(cached) $ECHO_C" >&6
37115 else
37116   cat >conftest.$ac_ext <<_ACEOF
37117 /* confdefs.h.  */
37118 _ACEOF
37119 cat confdefs.h >>conftest.$ac_ext
37120 cat >>conftest.$ac_ext <<_ACEOF
37121 /* end confdefs.h.  */
37122 $ac_includes_default
37123 int
37124 main ()
37125 {
37126 if ((caddr_t *) 0)
37127   return 0;
37128 if (sizeof (caddr_t))
37129   return 0;
37130   ;
37131   return 0;
37132 }
37133 _ACEOF
37134 rm -f conftest.$ac_objext
37135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37136   (eval $ac_compile) 2>conftest.er1
37137   ac_status=$?
37138   grep -v '^ *+' conftest.er1 >conftest.err
37139   rm -f conftest.er1
37140   cat conftest.err >&5
37141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37142   (exit $ac_status); } &&
37143          { ac_try='test -z "$ac_c_werror_flag"
37144                          || test ! -s conftest.err'
37145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37146   (eval $ac_try) 2>&5
37147   ac_status=$?
37148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37149   (exit $ac_status); }; } &&
37150          { ac_try='test -s conftest.$ac_objext'
37151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37152   (eval $ac_try) 2>&5
37153   ac_status=$?
37154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155   (exit $ac_status); }; }; then
37156   ac_cv_type_caddr_t=yes
37157 else
37158   echo "$as_me: failed program was:" >&5
37159 sed 's/^/| /' conftest.$ac_ext >&5
37160
37161 ac_cv_type_caddr_t=no
37162 fi
37163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37164 fi
37165 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
37166 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
37167 if test $ac_cv_type_caddr_t = yes; then
37168   :
37169 else
37170
37171 cat >>confdefs.h <<_ACEOF
37172 #define caddr_t char *
37173 _ACEOF
37174
37175 fi
37176
37177 echo "$as_me:$LINENO: checking for size_t" >&5
37178 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
37179 if test "${ac_cv_type_size_t+set}" = set; then
37180   echo $ECHO_N "(cached) $ECHO_C" >&6
37181 else
37182   cat >conftest.$ac_ext <<_ACEOF
37183 /* confdefs.h.  */
37184 _ACEOF
37185 cat confdefs.h >>conftest.$ac_ext
37186 cat >>conftest.$ac_ext <<_ACEOF
37187 /* end confdefs.h.  */
37188 $ac_includes_default
37189 int
37190 main ()
37191 {
37192 if ((size_t *) 0)
37193   return 0;
37194 if (sizeof (size_t))
37195   return 0;
37196   ;
37197   return 0;
37198 }
37199 _ACEOF
37200 rm -f conftest.$ac_objext
37201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37202   (eval $ac_compile) 2>conftest.er1
37203   ac_status=$?
37204   grep -v '^ *+' conftest.er1 >conftest.err
37205   rm -f conftest.er1
37206   cat conftest.err >&5
37207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37208   (exit $ac_status); } &&
37209          { ac_try='test -z "$ac_c_werror_flag"
37210                          || test ! -s conftest.err'
37211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37212   (eval $ac_try) 2>&5
37213   ac_status=$?
37214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37215   (exit $ac_status); }; } &&
37216          { ac_try='test -s conftest.$ac_objext'
37217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37218   (eval $ac_try) 2>&5
37219   ac_status=$?
37220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37221   (exit $ac_status); }; }; then
37222   ac_cv_type_size_t=yes
37223 else
37224   echo "$as_me: failed program was:" >&5
37225 sed 's/^/| /' conftest.$ac_ext >&5
37226
37227 ac_cv_type_size_t=no
37228 fi
37229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37230 fi
37231 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37232 echo "${ECHO_T}$ac_cv_type_size_t" >&6
37233 if test $ac_cv_type_size_t = yes; then
37234   :
37235 else
37236
37237 cat >>confdefs.h <<_ACEOF
37238 #define size_t unsigned
37239 _ACEOF
37240
37241 fi
37242
37243
37244 echo "$as_me:$LINENO: checking for long long" >&5
37245 echo $ECHO_N "checking for long long... $ECHO_C" >&6
37246 if test "${ac_cv_type_long_long+set}" = set; then
37247   echo $ECHO_N "(cached) $ECHO_C" >&6
37248 else
37249   cat >conftest.$ac_ext <<_ACEOF
37250 /* confdefs.h.  */
37251 _ACEOF
37252 cat confdefs.h >>conftest.$ac_ext
37253 cat >>conftest.$ac_ext <<_ACEOF
37254 /* end confdefs.h.  */
37255 $ac_includes_default
37256 int
37257 main ()
37258 {
37259 if ((long long *) 0)
37260   return 0;
37261 if (sizeof (long long))
37262   return 0;
37263   ;
37264   return 0;
37265 }
37266 _ACEOF
37267 rm -f conftest.$ac_objext
37268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37269   (eval $ac_compile) 2>conftest.er1
37270   ac_status=$?
37271   grep -v '^ *+' conftest.er1 >conftest.err
37272   rm -f conftest.er1
37273   cat conftest.err >&5
37274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37275   (exit $ac_status); } &&
37276          { ac_try='test -z "$ac_c_werror_flag"
37277                          || test ! -s conftest.err'
37278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37279   (eval $ac_try) 2>&5
37280   ac_status=$?
37281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37282   (exit $ac_status); }; } &&
37283          { ac_try='test -s conftest.$ac_objext'
37284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37285   (eval $ac_try) 2>&5
37286   ac_status=$?
37287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37288   (exit $ac_status); }; }; then
37289   ac_cv_type_long_long=yes
37290 else
37291   echo "$as_me: failed program was:" >&5
37292 sed 's/^/| /' conftest.$ac_ext >&5
37293
37294 ac_cv_type_long_long=no
37295 fi
37296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37297 fi
37298 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
37299 echo "${ECHO_T}$ac_cv_type_long_long" >&6
37300 if test $ac_cv_type_long_long = yes; then
37301
37302 cat >>confdefs.h <<_ACEOF
37303 #define HAVE_LONG_LONG 1
37304 _ACEOF
37305
37306
37307 fi
37308
37309 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
37310 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
37311 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
37312   echo $ECHO_N "(cached) $ECHO_C" >&6
37313 else
37314   cat >conftest.$ac_ext <<_ACEOF
37315 /* confdefs.h.  */
37316 _ACEOF
37317 cat confdefs.h >>conftest.$ac_ext
37318 cat >>conftest.$ac_ext <<_ACEOF
37319 /* end confdefs.h.  */
37320 $ac_includes_default
37321 int
37322 main ()
37323 {
37324 if ((ptrdiff_t *) 0)
37325   return 0;
37326 if (sizeof (ptrdiff_t))
37327   return 0;
37328   ;
37329   return 0;
37330 }
37331 _ACEOF
37332 rm -f conftest.$ac_objext
37333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37334   (eval $ac_compile) 2>conftest.er1
37335   ac_status=$?
37336   grep -v '^ *+' conftest.er1 >conftest.err
37337   rm -f conftest.er1
37338   cat conftest.err >&5
37339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37340   (exit $ac_status); } &&
37341          { ac_try='test -z "$ac_c_werror_flag"
37342                          || test ! -s conftest.err'
37343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37344   (eval $ac_try) 2>&5
37345   ac_status=$?
37346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37347   (exit $ac_status); }; } &&
37348          { ac_try='test -s conftest.$ac_objext'
37349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37350   (eval $ac_try) 2>&5
37351   ac_status=$?
37352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353   (exit $ac_status); }; }; then
37354   ac_cv_type_ptrdiff_t=yes
37355 else
37356   echo "$as_me: failed program was:" >&5
37357 sed 's/^/| /' conftest.$ac_ext >&5
37358
37359 ac_cv_type_ptrdiff_t=no
37360 fi
37361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37362 fi
37363 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
37364 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
37365 if test $ac_cv_type_ptrdiff_t = yes; then
37366
37367 cat >>confdefs.h <<_ACEOF
37368 #define HAVE_PTRDIFF_T 1
37369 _ACEOF
37370
37371
37372 fi
37373
37374
37375 echo "$as_me:$LINENO: checking for socklen_t" >&5
37376 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
37377 if test "${ac_cv_type_socklen_t+set}" = set; then
37378   echo $ECHO_N "(cached) $ECHO_C" >&6
37379 else
37380   cat >conftest.$ac_ext <<_ACEOF
37381 /* confdefs.h.  */
37382 _ACEOF
37383 cat confdefs.h >>conftest.$ac_ext
37384 cat >>conftest.$ac_ext <<_ACEOF
37385 /* end confdefs.h.  */
37386 $ac_includes_default
37387 #ifdef HAVE_SYS_SOCKET_H
37388 #include <sys/socket.h>
37389 #endif
37390
37391
37392 int
37393 main ()
37394 {
37395 if ((socklen_t *) 0)
37396   return 0;
37397 if (sizeof (socklen_t))
37398   return 0;
37399   ;
37400   return 0;
37401 }
37402 _ACEOF
37403 rm -f conftest.$ac_objext
37404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37405   (eval $ac_compile) 2>conftest.er1
37406   ac_status=$?
37407   grep -v '^ *+' conftest.er1 >conftest.err
37408   rm -f conftest.er1
37409   cat conftest.err >&5
37410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37411   (exit $ac_status); } &&
37412          { ac_try='test -z "$ac_c_werror_flag"
37413                          || test ! -s conftest.err'
37414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37415   (eval $ac_try) 2>&5
37416   ac_status=$?
37417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37418   (exit $ac_status); }; } &&
37419          { ac_try='test -s conftest.$ac_objext'
37420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37421   (eval $ac_try) 2>&5
37422   ac_status=$?
37423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424   (exit $ac_status); }; }; then
37425   ac_cv_type_socklen_t=yes
37426 else
37427   echo "$as_me: failed program was:" >&5
37428 sed 's/^/| /' conftest.$ac_ext >&5
37429
37430 ac_cv_type_socklen_t=no
37431 fi
37432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37433 fi
37434 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
37435 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
37436 if test $ac_cv_type_socklen_t = yes; then
37437   :
37438 else
37439
37440 cat >>confdefs.h <<_ACEOF
37441 #define socklen_t int
37442 _ACEOF
37443
37444 fi
37445
37446
37447 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
37448 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
37449 if test "${ac_cv_type_signal+set}" = set; then
37450   echo $ECHO_N "(cached) $ECHO_C" >&6
37451 else
37452   cat >conftest.$ac_ext <<_ACEOF
37453 /* confdefs.h.  */
37454 _ACEOF
37455 cat confdefs.h >>conftest.$ac_ext
37456 cat >>conftest.$ac_ext <<_ACEOF
37457 /* end confdefs.h.  */
37458 #include <sys/types.h>
37459 #include <signal.h>
37460 #ifdef signal
37461 # undef signal
37462 #endif
37463 #ifdef __cplusplus
37464 extern "C" void (*signal (int, void (*)(int)))(int);
37465 #else
37466 void (*signal ()) ();
37467 #endif
37468
37469 int
37470 main ()
37471 {
37472 int i;
37473   ;
37474   return 0;
37475 }
37476 _ACEOF
37477 rm -f conftest.$ac_objext
37478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37479   (eval $ac_compile) 2>conftest.er1
37480   ac_status=$?
37481   grep -v '^ *+' conftest.er1 >conftest.err
37482   rm -f conftest.er1
37483   cat conftest.err >&5
37484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37485   (exit $ac_status); } &&
37486          { ac_try='test -z "$ac_c_werror_flag"
37487                          || test ! -s conftest.err'
37488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37489   (eval $ac_try) 2>&5
37490   ac_status=$?
37491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37492   (exit $ac_status); }; } &&
37493          { ac_try='test -s conftest.$ac_objext'
37494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37495   (eval $ac_try) 2>&5
37496   ac_status=$?
37497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498   (exit $ac_status); }; }; then
37499   ac_cv_type_signal=void
37500 else
37501   echo "$as_me: failed program was:" >&5
37502 sed 's/^/| /' conftest.$ac_ext >&5
37503
37504 ac_cv_type_signal=int
37505 fi
37506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37507 fi
37508 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
37509 echo "${ECHO_T}$ac_cv_type_signal" >&6
37510
37511 cat >>confdefs.h <<_ACEOF
37512 #define RETSIGTYPE $ac_cv_type_signal
37513 _ACEOF
37514
37515
37516
37517 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
37518 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
37519 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
37520   echo $ECHO_N "(cached) $ECHO_C" >&6
37521 else
37522   cat >conftest.$ac_ext <<_ACEOF
37523 /* confdefs.h.  */
37524 _ACEOF
37525 cat confdefs.h >>conftest.$ac_ext
37526 cat >>conftest.$ac_ext <<_ACEOF
37527 /* end confdefs.h.  */
37528 $ac_includes_default
37529 #include <signal.h>
37530
37531
37532 int
37533 main ()
37534 {
37535 if ((sig_atomic_t *) 0)
37536   return 0;
37537 if (sizeof (sig_atomic_t))
37538   return 0;
37539   ;
37540   return 0;
37541 }
37542 _ACEOF
37543 rm -f conftest.$ac_objext
37544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37545   (eval $ac_compile) 2>conftest.er1
37546   ac_status=$?
37547   grep -v '^ *+' conftest.er1 >conftest.err
37548   rm -f conftest.er1
37549   cat conftest.err >&5
37550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37551   (exit $ac_status); } &&
37552          { ac_try='test -z "$ac_c_werror_flag"
37553                          || test ! -s conftest.err'
37554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37555   (eval $ac_try) 2>&5
37556   ac_status=$?
37557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558   (exit $ac_status); }; } &&
37559          { ac_try='test -s conftest.$ac_objext'
37560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37561   (eval $ac_try) 2>&5
37562   ac_status=$?
37563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37564   (exit $ac_status); }; }; then
37565   ac_cv_type_sig_atomic_t=yes
37566 else
37567   echo "$as_me: failed program was:" >&5
37568 sed 's/^/| /' conftest.$ac_ext >&5
37569
37570 ac_cv_type_sig_atomic_t=no
37571 fi
37572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37573 fi
37574 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
37575 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
37576 if test $ac_cv_type_sig_atomic_t = yes; then
37577   :
37578 else
37579
37580 cat >>confdefs.h <<_ACEOF
37581 #define sig_atomic_t int
37582 _ACEOF
37583
37584 fi
37585
37586
37587 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37588 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
37589 if test "${ac_cv_type_uid_t+set}" = set; then
37590   echo $ECHO_N "(cached) $ECHO_C" >&6
37591 else
37592   cat >conftest.$ac_ext <<_ACEOF
37593 /* confdefs.h.  */
37594 _ACEOF
37595 cat confdefs.h >>conftest.$ac_ext
37596 cat >>conftest.$ac_ext <<_ACEOF
37597 /* end confdefs.h.  */
37598 #include <sys/types.h>
37599
37600 _ACEOF
37601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37602   $EGREP "uid_t" >/dev/null 2>&1; then
37603   ac_cv_type_uid_t=yes
37604 else
37605   ac_cv_type_uid_t=no
37606 fi
37607 rm -f conftest*
37608
37609 fi
37610 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37611 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
37612 if test $ac_cv_type_uid_t = no; then
37613
37614 cat >>confdefs.h <<\_ACEOF
37615 #define uid_t int
37616 _ACEOF
37617
37618
37619 cat >>confdefs.h <<\_ACEOF
37620 #define gid_t int
37621 _ACEOF
37622
37623 fi
37624
37625
37626 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37627 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
37628 if test "${ac_cv_header_time+set}" = set; then
37629   echo $ECHO_N "(cached) $ECHO_C" >&6
37630 else
37631   cat >conftest.$ac_ext <<_ACEOF
37632 /* confdefs.h.  */
37633 _ACEOF
37634 cat confdefs.h >>conftest.$ac_ext
37635 cat >>conftest.$ac_ext <<_ACEOF
37636 /* end confdefs.h.  */
37637 #include <sys/types.h>
37638 #include <sys/time.h>
37639 #include <time.h>
37640
37641 int
37642 main ()
37643 {
37644 if ((struct tm *) 0)
37645 return 0;
37646   ;
37647   return 0;
37648 }
37649 _ACEOF
37650 rm -f conftest.$ac_objext
37651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37652   (eval $ac_compile) 2>conftest.er1
37653   ac_status=$?
37654   grep -v '^ *+' conftest.er1 >conftest.err
37655   rm -f conftest.er1
37656   cat conftest.err >&5
37657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37658   (exit $ac_status); } &&
37659          { ac_try='test -z "$ac_c_werror_flag"
37660                          || test ! -s conftest.err'
37661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37662   (eval $ac_try) 2>&5
37663   ac_status=$?
37664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37665   (exit $ac_status); }; } &&
37666          { ac_try='test -s conftest.$ac_objext'
37667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37668   (eval $ac_try) 2>&5
37669   ac_status=$?
37670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671   (exit $ac_status); }; }; then
37672   ac_cv_header_time=yes
37673 else
37674   echo "$as_me: failed program was:" >&5
37675 sed 's/^/| /' conftest.$ac_ext >&5
37676
37677 ac_cv_header_time=no
37678 fi
37679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37680 fi
37681 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
37682 echo "${ECHO_T}$ac_cv_header_time" >&6
37683 if test $ac_cv_header_time = yes; then
37684
37685 cat >>confdefs.h <<\_ACEOF
37686 #define TIME_WITH_SYS_TIME 1
37687 _ACEOF
37688
37689 fi
37690
37691 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
37692 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
37693 if test "${ac_cv_struct_tm+set}" = set; then
37694   echo $ECHO_N "(cached) $ECHO_C" >&6
37695 else
37696   cat >conftest.$ac_ext <<_ACEOF
37697 /* confdefs.h.  */
37698 _ACEOF
37699 cat confdefs.h >>conftest.$ac_ext
37700 cat >>conftest.$ac_ext <<_ACEOF
37701 /* end confdefs.h.  */
37702 #include <sys/types.h>
37703 #include <time.h>
37704
37705 int
37706 main ()
37707 {
37708 struct tm *tp; tp->tm_sec;
37709   ;
37710   return 0;
37711 }
37712 _ACEOF
37713 rm -f conftest.$ac_objext
37714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37715   (eval $ac_compile) 2>conftest.er1
37716   ac_status=$?
37717   grep -v '^ *+' conftest.er1 >conftest.err
37718   rm -f conftest.er1
37719   cat conftest.err >&5
37720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37721   (exit $ac_status); } &&
37722          { ac_try='test -z "$ac_c_werror_flag"
37723                          || test ! -s conftest.err'
37724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37725   (eval $ac_try) 2>&5
37726   ac_status=$?
37727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37728   (exit $ac_status); }; } &&
37729          { ac_try='test -s conftest.$ac_objext'
37730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37731   (eval $ac_try) 2>&5
37732   ac_status=$?
37733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37734   (exit $ac_status); }; }; then
37735   ac_cv_struct_tm=time.h
37736 else
37737   echo "$as_me: failed program was:" >&5
37738 sed 's/^/| /' conftest.$ac_ext >&5
37739
37740 ac_cv_struct_tm=sys/time.h
37741 fi
37742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37743 fi
37744 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
37745 echo "${ECHO_T}$ac_cv_struct_tm" >&6
37746 if test $ac_cv_struct_tm = sys/time.h; then
37747
37748 cat >>confdefs.h <<\_ACEOF
37749 #define TM_IN_SYS_TIME 1
37750 _ACEOF
37751
37752 fi
37753
37754 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37755 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
37756 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37757   echo $ECHO_N "(cached) $ECHO_C" >&6
37758 else
37759   cat >conftest.$ac_ext <<_ACEOF
37760 /* confdefs.h.  */
37761 _ACEOF
37762 cat confdefs.h >>conftest.$ac_ext
37763 cat >>conftest.$ac_ext <<_ACEOF
37764 /* end confdefs.h.  */
37765 $ac_includes_default
37766 int
37767 main ()
37768 {
37769 static struct stat ac_aggr;
37770 if (ac_aggr.st_blksize)
37771 return 0;
37772   ;
37773   return 0;
37774 }
37775 _ACEOF
37776 rm -f conftest.$ac_objext
37777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37778   (eval $ac_compile) 2>conftest.er1
37779   ac_status=$?
37780   grep -v '^ *+' conftest.er1 >conftest.err
37781   rm -f conftest.er1
37782   cat conftest.err >&5
37783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37784   (exit $ac_status); } &&
37785          { ac_try='test -z "$ac_c_werror_flag"
37786                          || test ! -s conftest.err'
37787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37788   (eval $ac_try) 2>&5
37789   ac_status=$?
37790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37791   (exit $ac_status); }; } &&
37792          { ac_try='test -s conftest.$ac_objext'
37793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37794   (eval $ac_try) 2>&5
37795   ac_status=$?
37796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37797   (exit $ac_status); }; }; then
37798   ac_cv_member_struct_stat_st_blksize=yes
37799 else
37800   echo "$as_me: failed program was:" >&5
37801 sed 's/^/| /' conftest.$ac_ext >&5
37802
37803 cat >conftest.$ac_ext <<_ACEOF
37804 /* confdefs.h.  */
37805 _ACEOF
37806 cat confdefs.h >>conftest.$ac_ext
37807 cat >>conftest.$ac_ext <<_ACEOF
37808 /* end confdefs.h.  */
37809 $ac_includes_default
37810 int
37811 main ()
37812 {
37813 static struct stat ac_aggr;
37814 if (sizeof ac_aggr.st_blksize)
37815 return 0;
37816   ;
37817   return 0;
37818 }
37819 _ACEOF
37820 rm -f conftest.$ac_objext
37821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37822   (eval $ac_compile) 2>conftest.er1
37823   ac_status=$?
37824   grep -v '^ *+' conftest.er1 >conftest.err
37825   rm -f conftest.er1
37826   cat conftest.err >&5
37827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37828   (exit $ac_status); } &&
37829          { ac_try='test -z "$ac_c_werror_flag"
37830                          || test ! -s conftest.err'
37831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37832   (eval $ac_try) 2>&5
37833   ac_status=$?
37834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37835   (exit $ac_status); }; } &&
37836          { ac_try='test -s conftest.$ac_objext'
37837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37838   (eval $ac_try) 2>&5
37839   ac_status=$?
37840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37841   (exit $ac_status); }; }; then
37842   ac_cv_member_struct_stat_st_blksize=yes
37843 else
37844   echo "$as_me: failed program was:" >&5
37845 sed 's/^/| /' conftest.$ac_ext >&5
37846
37847 ac_cv_member_struct_stat_st_blksize=no
37848 fi
37849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37850 fi
37851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37852 fi
37853 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
37854 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
37855 if test $ac_cv_member_struct_stat_st_blksize = yes; then
37856
37857 cat >>confdefs.h <<_ACEOF
37858 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
37859 _ACEOF
37860
37861
37862 fi
37863
37864 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
37865 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
37866 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
37867   echo $ECHO_N "(cached) $ECHO_C" >&6
37868 else
37869   cat >conftest.$ac_ext <<_ACEOF
37870 /* confdefs.h.  */
37871 _ACEOF
37872 cat confdefs.h >>conftest.$ac_ext
37873 cat >>conftest.$ac_ext <<_ACEOF
37874 /* end confdefs.h.  */
37875 $ac_includes_default
37876 #include <pwd.h>
37877
37878 int
37879 main ()
37880 {
37881 static struct passwd ac_aggr;
37882 if (ac_aggr.pw_gecos)
37883 return 0;
37884   ;
37885   return 0;
37886 }
37887 _ACEOF
37888 rm -f conftest.$ac_objext
37889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37890   (eval $ac_compile) 2>conftest.er1
37891   ac_status=$?
37892   grep -v '^ *+' conftest.er1 >conftest.err
37893   rm -f conftest.er1
37894   cat conftest.err >&5
37895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37896   (exit $ac_status); } &&
37897          { ac_try='test -z "$ac_c_werror_flag"
37898                          || test ! -s conftest.err'
37899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37900   (eval $ac_try) 2>&5
37901   ac_status=$?
37902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37903   (exit $ac_status); }; } &&
37904          { ac_try='test -s conftest.$ac_objext'
37905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37906   (eval $ac_try) 2>&5
37907   ac_status=$?
37908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909   (exit $ac_status); }; }; then
37910   ac_cv_member_struct_passwd_pw_gecos=yes
37911 else
37912   echo "$as_me: failed program was:" >&5
37913 sed 's/^/| /' conftest.$ac_ext >&5
37914
37915 cat >conftest.$ac_ext <<_ACEOF
37916 /* confdefs.h.  */
37917 _ACEOF
37918 cat confdefs.h >>conftest.$ac_ext
37919 cat >>conftest.$ac_ext <<_ACEOF
37920 /* end confdefs.h.  */
37921 $ac_includes_default
37922 #include <pwd.h>
37923
37924 int
37925 main ()
37926 {
37927 static struct passwd ac_aggr;
37928 if (sizeof ac_aggr.pw_gecos)
37929 return 0;
37930   ;
37931   return 0;
37932 }
37933 _ACEOF
37934 rm -f conftest.$ac_objext
37935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37936   (eval $ac_compile) 2>conftest.er1
37937   ac_status=$?
37938   grep -v '^ *+' conftest.er1 >conftest.err
37939   rm -f conftest.er1
37940   cat conftest.err >&5
37941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37942   (exit $ac_status); } &&
37943          { ac_try='test -z "$ac_c_werror_flag"
37944                          || test ! -s conftest.err'
37945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37946   (eval $ac_try) 2>&5
37947   ac_status=$?
37948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37949   (exit $ac_status); }; } &&
37950          { ac_try='test -s conftest.$ac_objext'
37951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37952   (eval $ac_try) 2>&5
37953   ac_status=$?
37954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37955   (exit $ac_status); }; }; then
37956   ac_cv_member_struct_passwd_pw_gecos=yes
37957 else
37958   echo "$as_me: failed program was:" >&5
37959 sed 's/^/| /' conftest.$ac_ext >&5
37960
37961 ac_cv_member_struct_passwd_pw_gecos=no
37962 fi
37963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37964 fi
37965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37966 fi
37967 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
37968 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
37969 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
37970
37971 cat >>confdefs.h <<_ACEOF
37972 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
37973 _ACEOF
37974
37975
37976 fi
37977
37978 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
37979 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
37980 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
37981   echo $ECHO_N "(cached) $ECHO_C" >&6
37982 else
37983   cat >conftest.$ac_ext <<_ACEOF
37984 /* confdefs.h.  */
37985 _ACEOF
37986 cat confdefs.h >>conftest.$ac_ext
37987 cat >>conftest.$ac_ext <<_ACEOF
37988 /* end confdefs.h.  */
37989 $ac_includes_default
37990 #include <pwd.h>
37991
37992 int
37993 main ()
37994 {
37995 static struct passwd ac_aggr;
37996 if (ac_aggr.pw_passwd)
37997 return 0;
37998   ;
37999   return 0;
38000 }
38001 _ACEOF
38002 rm -f conftest.$ac_objext
38003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38004   (eval $ac_compile) 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); } &&
38011          { ac_try='test -z "$ac_c_werror_flag"
38012                          || test ! -s conftest.err'
38013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38014   (eval $ac_try) 2>&5
38015   ac_status=$?
38016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38017   (exit $ac_status); }; } &&
38018          { ac_try='test -s conftest.$ac_objext'
38019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38020   (eval $ac_try) 2>&5
38021   ac_status=$?
38022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023   (exit $ac_status); }; }; then
38024   ac_cv_member_struct_passwd_pw_passwd=yes
38025 else
38026   echo "$as_me: failed program was:" >&5
38027 sed 's/^/| /' conftest.$ac_ext >&5
38028
38029 cat >conftest.$ac_ext <<_ACEOF
38030 /* confdefs.h.  */
38031 _ACEOF
38032 cat confdefs.h >>conftest.$ac_ext
38033 cat >>conftest.$ac_ext <<_ACEOF
38034 /* end confdefs.h.  */
38035 $ac_includes_default
38036 #include <pwd.h>
38037
38038 int
38039 main ()
38040 {
38041 static struct passwd ac_aggr;
38042 if (sizeof ac_aggr.pw_passwd)
38043 return 0;
38044   ;
38045   return 0;
38046 }
38047 _ACEOF
38048 rm -f conftest.$ac_objext
38049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38050   (eval $ac_compile) 2>conftest.er1
38051   ac_status=$?
38052   grep -v '^ *+' conftest.er1 >conftest.err
38053   rm -f conftest.er1
38054   cat conftest.err >&5
38055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38056   (exit $ac_status); } &&
38057          { ac_try='test -z "$ac_c_werror_flag"
38058                          || test ! -s conftest.err'
38059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38060   (eval $ac_try) 2>&5
38061   ac_status=$?
38062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38063   (exit $ac_status); }; } &&
38064          { ac_try='test -s conftest.$ac_objext'
38065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38066   (eval $ac_try) 2>&5
38067   ac_status=$?
38068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069   (exit $ac_status); }; }; then
38070   ac_cv_member_struct_passwd_pw_passwd=yes
38071 else
38072   echo "$as_me: failed program was:" >&5
38073 sed 's/^/| /' conftest.$ac_ext >&5
38074
38075 ac_cv_member_struct_passwd_pw_passwd=no
38076 fi
38077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38078 fi
38079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38080 fi
38081 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
38082 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
38083 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
38084
38085 cat >>confdefs.h <<_ACEOF
38086 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
38087 _ACEOF
38088
38089
38090 fi
38091
38092
38093 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
38094 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
38095 if test "${ol_cv_c_upper_lower+set}" = set; then
38096   echo $ECHO_N "(cached) $ECHO_C" >&6
38097 else
38098
38099         if test "$cross_compiling" = yes; then
38100   ol_cv_c_upper_lower=safe
38101 else
38102   cat >conftest.$ac_ext <<_ACEOF
38103 /* confdefs.h.  */
38104 _ACEOF
38105 cat confdefs.h >>conftest.$ac_ext
38106 cat >>conftest.$ac_ext <<_ACEOF
38107 /* end confdefs.h.  */
38108
38109 #include <ctype.h>
38110 main()
38111 {
38112         if ('C' == toupper('C'))
38113                 exit(0);
38114         else
38115                 exit(1);
38116 }
38117 _ACEOF
38118 rm -f conftest$ac_exeext
38119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38120   (eval $ac_link) 2>&5
38121   ac_status=$?
38122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38123   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38125   (eval $ac_try) 2>&5
38126   ac_status=$?
38127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38128   (exit $ac_status); }; }; then
38129   ol_cv_c_upper_lower=no
38130 else
38131   echo "$as_me: program exited with status $ac_status" >&5
38132 echo "$as_me: failed program was:" >&5
38133 sed 's/^/| /' conftest.$ac_ext >&5
38134
38135 ( exit $ac_status )
38136 ol_cv_c_upper_lower=yes
38137 fi
38138 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38139 fi
38140 fi
38141 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
38142 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
38143 if test $ol_cv_c_upper_lower != no ; then
38144
38145 cat >>confdefs.h <<\_ACEOF
38146 #define C_UPPER_LOWER 1
38147 _ACEOF
38148
38149 fi
38150
38151 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
38152 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
38153 if test "${ac_cv_c_const+set}" = set; then
38154   echo $ECHO_N "(cached) $ECHO_C" >&6
38155 else
38156   cat >conftest.$ac_ext <<_ACEOF
38157 /* confdefs.h.  */
38158 _ACEOF
38159 cat confdefs.h >>conftest.$ac_ext
38160 cat >>conftest.$ac_ext <<_ACEOF
38161 /* end confdefs.h.  */
38162
38163 int
38164 main ()
38165 {
38166 /* FIXME: Include the comments suggested by Paul. */
38167 #ifndef __cplusplus
38168   /* Ultrix mips cc rejects this.  */
38169   typedef int charset[2];
38170   const charset x;
38171   /* SunOS 4.1.1 cc rejects this.  */
38172   char const *const *ccp;
38173   char **p;
38174   /* NEC SVR4.0.2 mips cc rejects this.  */
38175   struct point {int x, y;};
38176   static struct point const zero = {0,0};
38177   /* AIX XL C 1.02.0.0 rejects this.
38178      It does not let you subtract one const X* pointer from another in
38179      an arm of an if-expression whose if-part is not a constant
38180      expression */
38181   const char *g = "string";
38182   ccp = &g + (g ? g-g : 0);
38183   /* HPUX 7.0 cc rejects these. */
38184   ++ccp;
38185   p = (char**) ccp;
38186   ccp = (char const *const *) p;
38187   { /* SCO 3.2v4 cc rejects this.  */
38188     char *t;
38189     char const *s = 0 ? (char *) 0 : (char const *) 0;
38190
38191     *t++ = 0;
38192   }
38193   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
38194     int x[] = {25, 17};
38195     const int *foo = &x[0];
38196     ++foo;
38197   }
38198   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
38199     typedef const int *iptr;
38200     iptr p = 0;
38201     ++p;
38202   }
38203   { /* AIX XL C 1.02.0.0 rejects this saying
38204        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
38205     struct s { int j; const int *ap[3]; };
38206     struct s *b; b->j = 5;
38207   }
38208   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
38209     const int foo = 10;
38210   }
38211 #endif
38212
38213   ;
38214   return 0;
38215 }
38216 _ACEOF
38217 rm -f conftest.$ac_objext
38218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38219   (eval $ac_compile) 2>conftest.er1
38220   ac_status=$?
38221   grep -v '^ *+' conftest.er1 >conftest.err
38222   rm -f conftest.er1
38223   cat conftest.err >&5
38224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38225   (exit $ac_status); } &&
38226          { ac_try='test -z "$ac_c_werror_flag"
38227                          || test ! -s conftest.err'
38228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38229   (eval $ac_try) 2>&5
38230   ac_status=$?
38231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38232   (exit $ac_status); }; } &&
38233          { ac_try='test -s conftest.$ac_objext'
38234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38235   (eval $ac_try) 2>&5
38236   ac_status=$?
38237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38238   (exit $ac_status); }; }; then
38239   ac_cv_c_const=yes
38240 else
38241   echo "$as_me: failed program was:" >&5
38242 sed 's/^/| /' conftest.$ac_ext >&5
38243
38244 ac_cv_c_const=no
38245 fi
38246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38247 fi
38248 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
38249 echo "${ECHO_T}$ac_cv_c_const" >&6
38250 if test $ac_cv_c_const = no; then
38251
38252 cat >>confdefs.h <<\_ACEOF
38253 #define const
38254 _ACEOF
38255
38256 fi
38257
38258 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
38259 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
38260 if test "${ol_cv_c_volatile+set}" = set; then
38261   echo $ECHO_N "(cached) $ECHO_C" >&6
38262 else
38263   cat >conftest.$ac_ext <<_ACEOF
38264 /* confdefs.h.  */
38265 _ACEOF
38266 cat confdefs.h >>conftest.$ac_ext
38267 cat >>conftest.$ac_ext <<_ACEOF
38268 /* end confdefs.h.  */
38269 int x, y, z;
38270 int
38271 main ()
38272 {
38273 volatile int a; int * volatile b = x ? &y : &z;
38274       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
38275       *b = 0;
38276   ;
38277   return 0;
38278 }
38279 _ACEOF
38280 rm -f conftest.$ac_objext
38281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38282   (eval $ac_compile) 2>conftest.er1
38283   ac_status=$?
38284   grep -v '^ *+' conftest.er1 >conftest.err
38285   rm -f conftest.er1
38286   cat conftest.err >&5
38287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288   (exit $ac_status); } &&
38289          { ac_try='test -z "$ac_c_werror_flag"
38290                          || test ! -s conftest.err'
38291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38292   (eval $ac_try) 2>&5
38293   ac_status=$?
38294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38295   (exit $ac_status); }; } &&
38296          { ac_try='test -s conftest.$ac_objext'
38297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38298   (eval $ac_try) 2>&5
38299   ac_status=$?
38300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38301   (exit $ac_status); }; }; then
38302   ol_cv_c_volatile=yes
38303 else
38304   echo "$as_me: failed program was:" >&5
38305 sed 's/^/| /' conftest.$ac_ext >&5
38306
38307 ol_cv_c_volatile=no
38308 fi
38309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38310 fi
38311 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
38312 echo "${ECHO_T}$ol_cv_c_volatile" >&6
38313   if test $ol_cv_c_volatile = yes; then
38314     :
38315   else
38316
38317 cat >>confdefs.h <<\_ACEOF
38318 #define volatile
38319 _ACEOF
38320
38321   fi
38322
38323
38324 if test $cross_compiling = yes ; then
38325         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
38326 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
38327
38328 cat >>confdefs.h <<\_ACEOF
38329 #define CROSS_COMPILING 1
38330 _ACEOF
38331
38332 else
38333         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
38334 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
38335 if test "${ac_cv_c_bigendian+set}" = set; then
38336   echo $ECHO_N "(cached) $ECHO_C" >&6
38337 else
38338   # See if sys/param.h defines the BYTE_ORDER macro.
38339 cat >conftest.$ac_ext <<_ACEOF
38340 /* confdefs.h.  */
38341 _ACEOF
38342 cat confdefs.h >>conftest.$ac_ext
38343 cat >>conftest.$ac_ext <<_ACEOF
38344 /* end confdefs.h.  */
38345 #include <sys/types.h>
38346 #include <sys/param.h>
38347
38348 int
38349 main ()
38350 {
38351 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
38352  bogus endian macros
38353 #endif
38354
38355   ;
38356   return 0;
38357 }
38358 _ACEOF
38359 rm -f conftest.$ac_objext
38360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38361   (eval $ac_compile) 2>conftest.er1
38362   ac_status=$?
38363   grep -v '^ *+' conftest.er1 >conftest.err
38364   rm -f conftest.er1
38365   cat conftest.err >&5
38366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38367   (exit $ac_status); } &&
38368          { ac_try='test -z "$ac_c_werror_flag"
38369                          || test ! -s conftest.err'
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); }; } &&
38375          { ac_try='test -s conftest.$ac_objext'
38376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38377   (eval $ac_try) 2>&5
38378   ac_status=$?
38379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380   (exit $ac_status); }; }; then
38381   # It does; now see whether it defined to BIG_ENDIAN or not.
38382 cat >conftest.$ac_ext <<_ACEOF
38383 /* confdefs.h.  */
38384 _ACEOF
38385 cat confdefs.h >>conftest.$ac_ext
38386 cat >>conftest.$ac_ext <<_ACEOF
38387 /* end confdefs.h.  */
38388 #include <sys/types.h>
38389 #include <sys/param.h>
38390
38391 int
38392 main ()
38393 {
38394 #if BYTE_ORDER != BIG_ENDIAN
38395  not big endian
38396 #endif
38397
38398   ;
38399   return 0;
38400 }
38401 _ACEOF
38402 rm -f conftest.$ac_objext
38403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38404   (eval $ac_compile) 2>conftest.er1
38405   ac_status=$?
38406   grep -v '^ *+' conftest.er1 >conftest.err
38407   rm -f conftest.er1
38408   cat conftest.err >&5
38409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38410   (exit $ac_status); } &&
38411          { ac_try='test -z "$ac_c_werror_flag"
38412                          || test ! -s conftest.err'
38413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38414   (eval $ac_try) 2>&5
38415   ac_status=$?
38416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38417   (exit $ac_status); }; } &&
38418          { ac_try='test -s conftest.$ac_objext'
38419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38420   (eval $ac_try) 2>&5
38421   ac_status=$?
38422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38423   (exit $ac_status); }; }; then
38424   ac_cv_c_bigendian=yes
38425 else
38426   echo "$as_me: failed program was:" >&5
38427 sed 's/^/| /' conftest.$ac_ext >&5
38428
38429 ac_cv_c_bigendian=no
38430 fi
38431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38432 else
38433   echo "$as_me: failed program was:" >&5
38434 sed 's/^/| /' conftest.$ac_ext >&5
38435
38436 # It does not; compile a test program.
38437 if test "$cross_compiling" = yes; then
38438   # try to guess the endianness by grepping values into an object file
38439   ac_cv_c_bigendian=unknown
38440   cat >conftest.$ac_ext <<_ACEOF
38441 /* confdefs.h.  */
38442 _ACEOF
38443 cat confdefs.h >>conftest.$ac_ext
38444 cat >>conftest.$ac_ext <<_ACEOF
38445 /* end confdefs.h.  */
38446 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
38447 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
38448 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
38449 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
38450 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
38451 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
38452 int
38453 main ()
38454 {
38455  _ascii (); _ebcdic ();
38456   ;
38457   return 0;
38458 }
38459 _ACEOF
38460 rm -f conftest.$ac_objext
38461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38462   (eval $ac_compile) 2>conftest.er1
38463   ac_status=$?
38464   grep -v '^ *+' conftest.er1 >conftest.err
38465   rm -f conftest.er1
38466   cat conftest.err >&5
38467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38468   (exit $ac_status); } &&
38469          { ac_try='test -z "$ac_c_werror_flag"
38470                          || test ! -s conftest.err'
38471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38472   (eval $ac_try) 2>&5
38473   ac_status=$?
38474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38475   (exit $ac_status); }; } &&
38476          { ac_try='test -s conftest.$ac_objext'
38477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38478   (eval $ac_try) 2>&5
38479   ac_status=$?
38480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38481   (exit $ac_status); }; }; then
38482   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
38483   ac_cv_c_bigendian=yes
38484 fi
38485 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
38486   if test "$ac_cv_c_bigendian" = unknown; then
38487     ac_cv_c_bigendian=no
38488   else
38489     # finding both strings is unlikely to happen, but who knows?
38490     ac_cv_c_bigendian=unknown
38491   fi
38492 fi
38493 else
38494   echo "$as_me: failed program was:" >&5
38495 sed 's/^/| /' conftest.$ac_ext >&5
38496
38497 fi
38498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38499 else
38500   cat >conftest.$ac_ext <<_ACEOF
38501 /* confdefs.h.  */
38502 _ACEOF
38503 cat confdefs.h >>conftest.$ac_ext
38504 cat >>conftest.$ac_ext <<_ACEOF
38505 /* end confdefs.h.  */
38506 int
38507 main ()
38508 {
38509   /* Are we little or big endian?  From Harbison&Steele.  */
38510   union
38511   {
38512     long l;
38513     char c[sizeof (long)];
38514   } u;
38515   u.l = 1;
38516   exit (u.c[sizeof (long) - 1] == 1);
38517 }
38518 _ACEOF
38519 rm -f conftest$ac_exeext
38520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38521   (eval $ac_link) 2>&5
38522   ac_status=$?
38523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38524   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38526   (eval $ac_try) 2>&5
38527   ac_status=$?
38528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38529   (exit $ac_status); }; }; then
38530   ac_cv_c_bigendian=no
38531 else
38532   echo "$as_me: program exited with status $ac_status" >&5
38533 echo "$as_me: failed program was:" >&5
38534 sed 's/^/| /' conftest.$ac_ext >&5
38535
38536 ( exit $ac_status )
38537 ac_cv_c_bigendian=yes
38538 fi
38539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38540 fi
38541 fi
38542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38543 fi
38544 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
38545 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
38546 case $ac_cv_c_bigendian in
38547   yes)
38548
38549 cat >>confdefs.h <<\_ACEOF
38550 #define WORDS_BIGENDIAN 1
38551 _ACEOF
38552  ;;
38553   no)
38554      ;;
38555   *)
38556     { { echo "$as_me:$LINENO: error: unknown endianness
38557 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
38558 echo "$as_me: error: unknown endianness
38559 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
38560    { (exit 1); exit 1; }; } ;;
38561 esac
38562
38563 fi
38564
38565 echo "$as_me:$LINENO: checking for short" >&5
38566 echo $ECHO_N "checking for short... $ECHO_C" >&6
38567 if test "${ac_cv_type_short+set}" = set; then
38568   echo $ECHO_N "(cached) $ECHO_C" >&6
38569 else
38570   cat >conftest.$ac_ext <<_ACEOF
38571 /* confdefs.h.  */
38572 _ACEOF
38573 cat confdefs.h >>conftest.$ac_ext
38574 cat >>conftest.$ac_ext <<_ACEOF
38575 /* end confdefs.h.  */
38576 $ac_includes_default
38577 int
38578 main ()
38579 {
38580 if ((short *) 0)
38581   return 0;
38582 if (sizeof (short))
38583   return 0;
38584   ;
38585   return 0;
38586 }
38587 _ACEOF
38588 rm -f conftest.$ac_objext
38589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38590   (eval $ac_compile) 2>conftest.er1
38591   ac_status=$?
38592   grep -v '^ *+' conftest.er1 >conftest.err
38593   rm -f conftest.er1
38594   cat conftest.err >&5
38595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38596   (exit $ac_status); } &&
38597          { ac_try='test -z "$ac_c_werror_flag"
38598                          || test ! -s conftest.err'
38599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38600   (eval $ac_try) 2>&5
38601   ac_status=$?
38602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38603   (exit $ac_status); }; } &&
38604          { ac_try='test -s conftest.$ac_objext'
38605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38606   (eval $ac_try) 2>&5
38607   ac_status=$?
38608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38609   (exit $ac_status); }; }; then
38610   ac_cv_type_short=yes
38611 else
38612   echo "$as_me: failed program was:" >&5
38613 sed 's/^/| /' conftest.$ac_ext >&5
38614
38615 ac_cv_type_short=no
38616 fi
38617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38618 fi
38619 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
38620 echo "${ECHO_T}$ac_cv_type_short" >&6
38621
38622 echo "$as_me:$LINENO: checking size of short" >&5
38623 echo $ECHO_N "checking size of short... $ECHO_C" >&6
38624 if test "${ac_cv_sizeof_short+set}" = set; then
38625   echo $ECHO_N "(cached) $ECHO_C" >&6
38626 else
38627   if test "$ac_cv_type_short" = yes; then
38628   # The cast to unsigned long works around a bug in the HP C Compiler
38629   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38630   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38631   # This bug is HP SR number 8606223364.
38632   if test "$cross_compiling" = yes; then
38633   # Depending upon the size, compute the lo and hi bounds.
38634 cat >conftest.$ac_ext <<_ACEOF
38635 /* confdefs.h.  */
38636 _ACEOF
38637 cat confdefs.h >>conftest.$ac_ext
38638 cat >>conftest.$ac_ext <<_ACEOF
38639 /* end confdefs.h.  */
38640 $ac_includes_default
38641 int
38642 main ()
38643 {
38644 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
38645 test_array [0] = 0
38646
38647   ;
38648   return 0;
38649 }
38650 _ACEOF
38651 rm -f conftest.$ac_objext
38652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38653   (eval $ac_compile) 2>conftest.er1
38654   ac_status=$?
38655   grep -v '^ *+' conftest.er1 >conftest.err
38656   rm -f conftest.er1
38657   cat conftest.err >&5
38658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38659   (exit $ac_status); } &&
38660          { ac_try='test -z "$ac_c_werror_flag"
38661                          || test ! -s conftest.err'
38662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38663   (eval $ac_try) 2>&5
38664   ac_status=$?
38665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38666   (exit $ac_status); }; } &&
38667          { ac_try='test -s conftest.$ac_objext'
38668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38669   (eval $ac_try) 2>&5
38670   ac_status=$?
38671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672   (exit $ac_status); }; }; then
38673   ac_lo=0 ac_mid=0
38674   while :; do
38675     cat >conftest.$ac_ext <<_ACEOF
38676 /* confdefs.h.  */
38677 _ACEOF
38678 cat confdefs.h >>conftest.$ac_ext
38679 cat >>conftest.$ac_ext <<_ACEOF
38680 /* end confdefs.h.  */
38681 $ac_includes_default
38682 int
38683 main ()
38684 {
38685 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38686 test_array [0] = 0
38687
38688   ;
38689   return 0;
38690 }
38691 _ACEOF
38692 rm -f conftest.$ac_objext
38693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38694   (eval $ac_compile) 2>conftest.er1
38695   ac_status=$?
38696   grep -v '^ *+' conftest.er1 >conftest.err
38697   rm -f conftest.er1
38698   cat conftest.err >&5
38699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700   (exit $ac_status); } &&
38701          { ac_try='test -z "$ac_c_werror_flag"
38702                          || test ! -s conftest.err'
38703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38704   (eval $ac_try) 2>&5
38705   ac_status=$?
38706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38707   (exit $ac_status); }; } &&
38708          { ac_try='test -s conftest.$ac_objext'
38709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38710   (eval $ac_try) 2>&5
38711   ac_status=$?
38712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38713   (exit $ac_status); }; }; then
38714   ac_hi=$ac_mid; break
38715 else
38716   echo "$as_me: failed program was:" >&5
38717 sed 's/^/| /' conftest.$ac_ext >&5
38718
38719 ac_lo=`expr $ac_mid + 1`
38720                     if test $ac_lo -le $ac_mid; then
38721                       ac_lo= ac_hi=
38722                       break
38723                     fi
38724                     ac_mid=`expr 2 '*' $ac_mid + 1`
38725 fi
38726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38727   done
38728 else
38729   echo "$as_me: failed program was:" >&5
38730 sed 's/^/| /' conftest.$ac_ext >&5
38731
38732 cat >conftest.$ac_ext <<_ACEOF
38733 /* confdefs.h.  */
38734 _ACEOF
38735 cat confdefs.h >>conftest.$ac_ext
38736 cat >>conftest.$ac_ext <<_ACEOF
38737 /* end confdefs.h.  */
38738 $ac_includes_default
38739 int
38740 main ()
38741 {
38742 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
38743 test_array [0] = 0
38744
38745   ;
38746   return 0;
38747 }
38748 _ACEOF
38749 rm -f conftest.$ac_objext
38750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38751   (eval $ac_compile) 2>conftest.er1
38752   ac_status=$?
38753   grep -v '^ *+' conftest.er1 >conftest.err
38754   rm -f conftest.er1
38755   cat conftest.err >&5
38756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38757   (exit $ac_status); } &&
38758          { ac_try='test -z "$ac_c_werror_flag"
38759                          || test ! -s conftest.err'
38760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38761   (eval $ac_try) 2>&5
38762   ac_status=$?
38763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38764   (exit $ac_status); }; } &&
38765          { ac_try='test -s conftest.$ac_objext'
38766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38767   (eval $ac_try) 2>&5
38768   ac_status=$?
38769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38770   (exit $ac_status); }; }; then
38771   ac_hi=-1 ac_mid=-1
38772   while :; do
38773     cat >conftest.$ac_ext <<_ACEOF
38774 /* confdefs.h.  */
38775 _ACEOF
38776 cat confdefs.h >>conftest.$ac_ext
38777 cat >>conftest.$ac_ext <<_ACEOF
38778 /* end confdefs.h.  */
38779 $ac_includes_default
38780 int
38781 main ()
38782 {
38783 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
38784 test_array [0] = 0
38785
38786   ;
38787   return 0;
38788 }
38789 _ACEOF
38790 rm -f conftest.$ac_objext
38791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38792   (eval $ac_compile) 2>conftest.er1
38793   ac_status=$?
38794   grep -v '^ *+' conftest.er1 >conftest.err
38795   rm -f conftest.er1
38796   cat conftest.err >&5
38797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38798   (exit $ac_status); } &&
38799          { ac_try='test -z "$ac_c_werror_flag"
38800                          || test ! -s conftest.err'
38801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38802   (eval $ac_try) 2>&5
38803   ac_status=$?
38804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38805   (exit $ac_status); }; } &&
38806          { ac_try='test -s conftest.$ac_objext'
38807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38808   (eval $ac_try) 2>&5
38809   ac_status=$?
38810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38811   (exit $ac_status); }; }; then
38812   ac_lo=$ac_mid; break
38813 else
38814   echo "$as_me: failed program was:" >&5
38815 sed 's/^/| /' conftest.$ac_ext >&5
38816
38817 ac_hi=`expr '(' $ac_mid ')' - 1`
38818                        if test $ac_mid -le $ac_hi; then
38819                          ac_lo= ac_hi=
38820                          break
38821                        fi
38822                        ac_mid=`expr 2 '*' $ac_mid`
38823 fi
38824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38825   done
38826 else
38827   echo "$as_me: failed program was:" >&5
38828 sed 's/^/| /' conftest.$ac_ext >&5
38829
38830 ac_lo= ac_hi=
38831 fi
38832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38833 fi
38834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38835 # Binary search between lo and hi bounds.
38836 while test "x$ac_lo" != "x$ac_hi"; do
38837   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38838   cat >conftest.$ac_ext <<_ACEOF
38839 /* confdefs.h.  */
38840 _ACEOF
38841 cat confdefs.h >>conftest.$ac_ext
38842 cat >>conftest.$ac_ext <<_ACEOF
38843 /* end confdefs.h.  */
38844 $ac_includes_default
38845 int
38846 main ()
38847 {
38848 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38849 test_array [0] = 0
38850
38851   ;
38852   return 0;
38853 }
38854 _ACEOF
38855 rm -f conftest.$ac_objext
38856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38857   (eval $ac_compile) 2>conftest.er1
38858   ac_status=$?
38859   grep -v '^ *+' conftest.er1 >conftest.err
38860   rm -f conftest.er1
38861   cat conftest.err >&5
38862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38863   (exit $ac_status); } &&
38864          { ac_try='test -z "$ac_c_werror_flag"
38865                          || test ! -s conftest.err'
38866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38867   (eval $ac_try) 2>&5
38868   ac_status=$?
38869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38870   (exit $ac_status); }; } &&
38871          { ac_try='test -s conftest.$ac_objext'
38872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38873   (eval $ac_try) 2>&5
38874   ac_status=$?
38875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38876   (exit $ac_status); }; }; then
38877   ac_hi=$ac_mid
38878 else
38879   echo "$as_me: failed program was:" >&5
38880 sed 's/^/| /' conftest.$ac_ext >&5
38881
38882 ac_lo=`expr '(' $ac_mid ')' + 1`
38883 fi
38884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38885 done
38886 case $ac_lo in
38887 ?*) ac_cv_sizeof_short=$ac_lo;;
38888 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
38889 See \`config.log' for more details." >&5
38890 echo "$as_me: error: cannot compute sizeof (short), 77
38891 See \`config.log' for more details." >&2;}
38892    { (exit 1); exit 1; }; } ;;
38893 esac
38894 else
38895   if test "$cross_compiling" = yes; then
38896   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38897 See \`config.log' for more details." >&5
38898 echo "$as_me: error: cannot run test program while cross compiling
38899 See \`config.log' for more details." >&2;}
38900    { (exit 1); exit 1; }; }
38901 else
38902   cat >conftest.$ac_ext <<_ACEOF
38903 /* confdefs.h.  */
38904 _ACEOF
38905 cat confdefs.h >>conftest.$ac_ext
38906 cat >>conftest.$ac_ext <<_ACEOF
38907 /* end confdefs.h.  */
38908 $ac_includes_default
38909 long longval () { return (long) (sizeof (short)); }
38910 unsigned long ulongval () { return (long) (sizeof (short)); }
38911 #include <stdio.h>
38912 #include <stdlib.h>
38913 int
38914 main ()
38915 {
38916
38917   FILE *f = fopen ("conftest.val", "w");
38918   if (! f)
38919     exit (1);
38920   if (((long) (sizeof (short))) < 0)
38921     {
38922       long i = longval ();
38923       if (i != ((long) (sizeof (short))))
38924         exit (1);
38925       fprintf (f, "%ld\n", i);
38926     }
38927   else
38928     {
38929       unsigned long i = ulongval ();
38930       if (i != ((long) (sizeof (short))))
38931         exit (1);
38932       fprintf (f, "%lu\n", i);
38933     }
38934   exit (ferror (f) || fclose (f) != 0);
38935
38936   ;
38937   return 0;
38938 }
38939 _ACEOF
38940 rm -f conftest$ac_exeext
38941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38942   (eval $ac_link) 2>&5
38943   ac_status=$?
38944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38947   (eval $ac_try) 2>&5
38948   ac_status=$?
38949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38950   (exit $ac_status); }; }; then
38951   ac_cv_sizeof_short=`cat conftest.val`
38952 else
38953   echo "$as_me: program exited with status $ac_status" >&5
38954 echo "$as_me: failed program was:" >&5
38955 sed 's/^/| /' conftest.$ac_ext >&5
38956
38957 ( exit $ac_status )
38958 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
38959 See \`config.log' for more details." >&5
38960 echo "$as_me: error: cannot compute sizeof (short), 77
38961 See \`config.log' for more details." >&2;}
38962    { (exit 1); exit 1; }; }
38963 fi
38964 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38965 fi
38966 fi
38967 rm -f conftest.val
38968 else
38969   ac_cv_sizeof_short=0
38970 fi
38971 fi
38972 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
38973 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
38974 cat >>confdefs.h <<_ACEOF
38975 #define SIZEOF_SHORT $ac_cv_sizeof_short
38976 _ACEOF
38977
38978
38979 echo "$as_me:$LINENO: checking for int" >&5
38980 echo $ECHO_N "checking for int... $ECHO_C" >&6
38981 if test "${ac_cv_type_int+set}" = set; then
38982   echo $ECHO_N "(cached) $ECHO_C" >&6
38983 else
38984   cat >conftest.$ac_ext <<_ACEOF
38985 /* confdefs.h.  */
38986 _ACEOF
38987 cat confdefs.h >>conftest.$ac_ext
38988 cat >>conftest.$ac_ext <<_ACEOF
38989 /* end confdefs.h.  */
38990 $ac_includes_default
38991 int
38992 main ()
38993 {
38994 if ((int *) 0)
38995   return 0;
38996 if (sizeof (int))
38997   return 0;
38998   ;
38999   return 0;
39000 }
39001 _ACEOF
39002 rm -f conftest.$ac_objext
39003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39004   (eval $ac_compile) 2>conftest.er1
39005   ac_status=$?
39006   grep -v '^ *+' conftest.er1 >conftest.err
39007   rm -f conftest.er1
39008   cat conftest.err >&5
39009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39010   (exit $ac_status); } &&
39011          { ac_try='test -z "$ac_c_werror_flag"
39012                          || test ! -s conftest.err'
39013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39014   (eval $ac_try) 2>&5
39015   ac_status=$?
39016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39017   (exit $ac_status); }; } &&
39018          { ac_try='test -s conftest.$ac_objext'
39019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39020   (eval $ac_try) 2>&5
39021   ac_status=$?
39022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39023   (exit $ac_status); }; }; then
39024   ac_cv_type_int=yes
39025 else
39026   echo "$as_me: failed program was:" >&5
39027 sed 's/^/| /' conftest.$ac_ext >&5
39028
39029 ac_cv_type_int=no
39030 fi
39031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39032 fi
39033 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
39034 echo "${ECHO_T}$ac_cv_type_int" >&6
39035
39036 echo "$as_me:$LINENO: checking size of int" >&5
39037 echo $ECHO_N "checking size of int... $ECHO_C" >&6
39038 if test "${ac_cv_sizeof_int+set}" = set; then
39039   echo $ECHO_N "(cached) $ECHO_C" >&6
39040 else
39041   if test "$ac_cv_type_int" = yes; then
39042   # The cast to unsigned long works around a bug in the HP C Compiler
39043   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39044   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39045   # This bug is HP SR number 8606223364.
39046   if test "$cross_compiling" = yes; then
39047   # Depending upon the size, compute the lo and hi bounds.
39048 cat >conftest.$ac_ext <<_ACEOF
39049 /* confdefs.h.  */
39050 _ACEOF
39051 cat confdefs.h >>conftest.$ac_ext
39052 cat >>conftest.$ac_ext <<_ACEOF
39053 /* end confdefs.h.  */
39054 $ac_includes_default
39055 int
39056 main ()
39057 {
39058 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
39059 test_array [0] = 0
39060
39061   ;
39062   return 0;
39063 }
39064 _ACEOF
39065 rm -f conftest.$ac_objext
39066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39067   (eval $ac_compile) 2>conftest.er1
39068   ac_status=$?
39069   grep -v '^ *+' conftest.er1 >conftest.err
39070   rm -f conftest.er1
39071   cat conftest.err >&5
39072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39073   (exit $ac_status); } &&
39074          { ac_try='test -z "$ac_c_werror_flag"
39075                          || test ! -s conftest.err'
39076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39077   (eval $ac_try) 2>&5
39078   ac_status=$?
39079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39080   (exit $ac_status); }; } &&
39081          { ac_try='test -s conftest.$ac_objext'
39082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39083   (eval $ac_try) 2>&5
39084   ac_status=$?
39085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39086   (exit $ac_status); }; }; then
39087   ac_lo=0 ac_mid=0
39088   while :; do
39089     cat >conftest.$ac_ext <<_ACEOF
39090 /* confdefs.h.  */
39091 _ACEOF
39092 cat confdefs.h >>conftest.$ac_ext
39093 cat >>conftest.$ac_ext <<_ACEOF
39094 /* end confdefs.h.  */
39095 $ac_includes_default
39096 int
39097 main ()
39098 {
39099 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39100 test_array [0] = 0
39101
39102   ;
39103   return 0;
39104 }
39105 _ACEOF
39106 rm -f conftest.$ac_objext
39107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39108   (eval $ac_compile) 2>conftest.er1
39109   ac_status=$?
39110   grep -v '^ *+' conftest.er1 >conftest.err
39111   rm -f conftest.er1
39112   cat conftest.err >&5
39113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39114   (exit $ac_status); } &&
39115          { ac_try='test -z "$ac_c_werror_flag"
39116                          || test ! -s conftest.err'
39117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39118   (eval $ac_try) 2>&5
39119   ac_status=$?
39120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39121   (exit $ac_status); }; } &&
39122          { ac_try='test -s conftest.$ac_objext'
39123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39124   (eval $ac_try) 2>&5
39125   ac_status=$?
39126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39127   (exit $ac_status); }; }; then
39128   ac_hi=$ac_mid; break
39129 else
39130   echo "$as_me: failed program was:" >&5
39131 sed 's/^/| /' conftest.$ac_ext >&5
39132
39133 ac_lo=`expr $ac_mid + 1`
39134                     if test $ac_lo -le $ac_mid; then
39135                       ac_lo= ac_hi=
39136                       break
39137                     fi
39138                     ac_mid=`expr 2 '*' $ac_mid + 1`
39139 fi
39140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39141   done
39142 else
39143   echo "$as_me: failed program was:" >&5
39144 sed 's/^/| /' conftest.$ac_ext >&5
39145
39146 cat >conftest.$ac_ext <<_ACEOF
39147 /* confdefs.h.  */
39148 _ACEOF
39149 cat confdefs.h >>conftest.$ac_ext
39150 cat >>conftest.$ac_ext <<_ACEOF
39151 /* end confdefs.h.  */
39152 $ac_includes_default
39153 int
39154 main ()
39155 {
39156 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
39157 test_array [0] = 0
39158
39159   ;
39160   return 0;
39161 }
39162 _ACEOF
39163 rm -f conftest.$ac_objext
39164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39165   (eval $ac_compile) 2>conftest.er1
39166   ac_status=$?
39167   grep -v '^ *+' conftest.er1 >conftest.err
39168   rm -f conftest.er1
39169   cat conftest.err >&5
39170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39171   (exit $ac_status); } &&
39172          { ac_try='test -z "$ac_c_werror_flag"
39173                          || test ! -s conftest.err'
39174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39175   (eval $ac_try) 2>&5
39176   ac_status=$?
39177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178   (exit $ac_status); }; } &&
39179          { ac_try='test -s conftest.$ac_objext'
39180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39181   (eval $ac_try) 2>&5
39182   ac_status=$?
39183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39184   (exit $ac_status); }; }; then
39185   ac_hi=-1 ac_mid=-1
39186   while :; do
39187     cat >conftest.$ac_ext <<_ACEOF
39188 /* confdefs.h.  */
39189 _ACEOF
39190 cat confdefs.h >>conftest.$ac_ext
39191 cat >>conftest.$ac_ext <<_ACEOF
39192 /* end confdefs.h.  */
39193 $ac_includes_default
39194 int
39195 main ()
39196 {
39197 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
39198 test_array [0] = 0
39199
39200   ;
39201   return 0;
39202 }
39203 _ACEOF
39204 rm -f conftest.$ac_objext
39205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39206   (eval $ac_compile) 2>conftest.er1
39207   ac_status=$?
39208   grep -v '^ *+' conftest.er1 >conftest.err
39209   rm -f conftest.er1
39210   cat conftest.err >&5
39211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39212   (exit $ac_status); } &&
39213          { ac_try='test -z "$ac_c_werror_flag"
39214                          || test ! -s conftest.err'
39215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39216   (eval $ac_try) 2>&5
39217   ac_status=$?
39218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219   (exit $ac_status); }; } &&
39220          { ac_try='test -s conftest.$ac_objext'
39221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39222   (eval $ac_try) 2>&5
39223   ac_status=$?
39224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225   (exit $ac_status); }; }; then
39226   ac_lo=$ac_mid; break
39227 else
39228   echo "$as_me: failed program was:" >&5
39229 sed 's/^/| /' conftest.$ac_ext >&5
39230
39231 ac_hi=`expr '(' $ac_mid ')' - 1`
39232                        if test $ac_mid -le $ac_hi; then
39233                          ac_lo= ac_hi=
39234                          break
39235                        fi
39236                        ac_mid=`expr 2 '*' $ac_mid`
39237 fi
39238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39239   done
39240 else
39241   echo "$as_me: failed program was:" >&5
39242 sed 's/^/| /' conftest.$ac_ext >&5
39243
39244 ac_lo= ac_hi=
39245 fi
39246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39247 fi
39248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39249 # Binary search between lo and hi bounds.
39250 while test "x$ac_lo" != "x$ac_hi"; do
39251   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39252   cat >conftest.$ac_ext <<_ACEOF
39253 /* confdefs.h.  */
39254 _ACEOF
39255 cat confdefs.h >>conftest.$ac_ext
39256 cat >>conftest.$ac_ext <<_ACEOF
39257 /* end confdefs.h.  */
39258 $ac_includes_default
39259 int
39260 main ()
39261 {
39262 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39263 test_array [0] = 0
39264
39265   ;
39266   return 0;
39267 }
39268 _ACEOF
39269 rm -f conftest.$ac_objext
39270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39271   (eval $ac_compile) 2>conftest.er1
39272   ac_status=$?
39273   grep -v '^ *+' conftest.er1 >conftest.err
39274   rm -f conftest.er1
39275   cat conftest.err >&5
39276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277   (exit $ac_status); } &&
39278          { ac_try='test -z "$ac_c_werror_flag"
39279                          || test ! -s conftest.err'
39280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39281   (eval $ac_try) 2>&5
39282   ac_status=$?
39283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284   (exit $ac_status); }; } &&
39285          { ac_try='test -s conftest.$ac_objext'
39286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39287   (eval $ac_try) 2>&5
39288   ac_status=$?
39289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39290   (exit $ac_status); }; }; then
39291   ac_hi=$ac_mid
39292 else
39293   echo "$as_me: failed program was:" >&5
39294 sed 's/^/| /' conftest.$ac_ext >&5
39295
39296 ac_lo=`expr '(' $ac_mid ')' + 1`
39297 fi
39298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39299 done
39300 case $ac_lo in
39301 ?*) ac_cv_sizeof_int=$ac_lo;;
39302 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39303 See \`config.log' for more details." >&5
39304 echo "$as_me: error: cannot compute sizeof (int), 77
39305 See \`config.log' for more details." >&2;}
39306    { (exit 1); exit 1; }; } ;;
39307 esac
39308 else
39309   if test "$cross_compiling" = yes; then
39310   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39311 See \`config.log' for more details." >&5
39312 echo "$as_me: error: cannot run test program while cross compiling
39313 See \`config.log' for more details." >&2;}
39314    { (exit 1); exit 1; }; }
39315 else
39316   cat >conftest.$ac_ext <<_ACEOF
39317 /* confdefs.h.  */
39318 _ACEOF
39319 cat confdefs.h >>conftest.$ac_ext
39320 cat >>conftest.$ac_ext <<_ACEOF
39321 /* end confdefs.h.  */
39322 $ac_includes_default
39323 long longval () { return (long) (sizeof (int)); }
39324 unsigned long ulongval () { return (long) (sizeof (int)); }
39325 #include <stdio.h>
39326 #include <stdlib.h>
39327 int
39328 main ()
39329 {
39330
39331   FILE *f = fopen ("conftest.val", "w");
39332   if (! f)
39333     exit (1);
39334   if (((long) (sizeof (int))) < 0)
39335     {
39336       long i = longval ();
39337       if (i != ((long) (sizeof (int))))
39338         exit (1);
39339       fprintf (f, "%ld\n", i);
39340     }
39341   else
39342     {
39343       unsigned long i = ulongval ();
39344       if (i != ((long) (sizeof (int))))
39345         exit (1);
39346       fprintf (f, "%lu\n", i);
39347     }
39348   exit (ferror (f) || fclose (f) != 0);
39349
39350   ;
39351   return 0;
39352 }
39353 _ACEOF
39354 rm -f conftest$ac_exeext
39355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39356   (eval $ac_link) 2>&5
39357   ac_status=$?
39358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
39365   ac_cv_sizeof_int=`cat conftest.val`
39366 else
39367   echo "$as_me: program exited with status $ac_status" >&5
39368 echo "$as_me: failed program was:" >&5
39369 sed 's/^/| /' conftest.$ac_ext >&5
39370
39371 ( exit $ac_status )
39372 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39373 See \`config.log' for more details." >&5
39374 echo "$as_me: error: cannot compute sizeof (int), 77
39375 See \`config.log' for more details." >&2;}
39376    { (exit 1); exit 1; }; }
39377 fi
39378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39379 fi
39380 fi
39381 rm -f conftest.val
39382 else
39383   ac_cv_sizeof_int=0
39384 fi
39385 fi
39386 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
39387 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
39388 cat >>confdefs.h <<_ACEOF
39389 #define SIZEOF_INT $ac_cv_sizeof_int
39390 _ACEOF
39391
39392
39393 echo "$as_me:$LINENO: checking for long" >&5
39394 echo $ECHO_N "checking for long... $ECHO_C" >&6
39395 if test "${ac_cv_type_long+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 $ac_includes_default
39405 int
39406 main ()
39407 {
39408 if ((long *) 0)
39409   return 0;
39410 if (sizeof (long))
39411   return 0;
39412   ;
39413   return 0;
39414 }
39415 _ACEOF
39416 rm -f conftest.$ac_objext
39417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39418   (eval $ac_compile) 2>conftest.er1
39419   ac_status=$?
39420   grep -v '^ *+' conftest.er1 >conftest.err
39421   rm -f conftest.er1
39422   cat conftest.err >&5
39423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39424   (exit $ac_status); } &&
39425          { ac_try='test -z "$ac_c_werror_flag"
39426                          || test ! -s conftest.err'
39427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39428   (eval $ac_try) 2>&5
39429   ac_status=$?
39430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39431   (exit $ac_status); }; } &&
39432          { ac_try='test -s conftest.$ac_objext'
39433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39434   (eval $ac_try) 2>&5
39435   ac_status=$?
39436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39437   (exit $ac_status); }; }; then
39438   ac_cv_type_long=yes
39439 else
39440   echo "$as_me: failed program was:" >&5
39441 sed 's/^/| /' conftest.$ac_ext >&5
39442
39443 ac_cv_type_long=no
39444 fi
39445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39446 fi
39447 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
39448 echo "${ECHO_T}$ac_cv_type_long" >&6
39449
39450 echo "$as_me:$LINENO: checking size of long" >&5
39451 echo $ECHO_N "checking size of long... $ECHO_C" >&6
39452 if test "${ac_cv_sizeof_long+set}" = set; then
39453   echo $ECHO_N "(cached) $ECHO_C" >&6
39454 else
39455   if test "$ac_cv_type_long" = yes; then
39456   # The cast to unsigned long works around a bug in the HP C Compiler
39457   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39458   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39459   # This bug is HP SR number 8606223364.
39460   if test "$cross_compiling" = yes; then
39461   # Depending upon the size, compute the lo and hi bounds.
39462 cat >conftest.$ac_ext <<_ACEOF
39463 /* confdefs.h.  */
39464 _ACEOF
39465 cat confdefs.h >>conftest.$ac_ext
39466 cat >>conftest.$ac_ext <<_ACEOF
39467 /* end confdefs.h.  */
39468 $ac_includes_default
39469 int
39470 main ()
39471 {
39472 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
39473 test_array [0] = 0
39474
39475   ;
39476   return 0;
39477 }
39478 _ACEOF
39479 rm -f conftest.$ac_objext
39480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39481   (eval $ac_compile) 2>conftest.er1
39482   ac_status=$?
39483   grep -v '^ *+' conftest.er1 >conftest.err
39484   rm -f conftest.er1
39485   cat conftest.err >&5
39486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39487   (exit $ac_status); } &&
39488          { ac_try='test -z "$ac_c_werror_flag"
39489                          || test ! -s conftest.err'
39490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39491   (eval $ac_try) 2>&5
39492   ac_status=$?
39493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39494   (exit $ac_status); }; } &&
39495          { ac_try='test -s conftest.$ac_objext'
39496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39497   (eval $ac_try) 2>&5
39498   ac_status=$?
39499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39500   (exit $ac_status); }; }; then
39501   ac_lo=0 ac_mid=0
39502   while :; do
39503     cat >conftest.$ac_ext <<_ACEOF
39504 /* confdefs.h.  */
39505 _ACEOF
39506 cat confdefs.h >>conftest.$ac_ext
39507 cat >>conftest.$ac_ext <<_ACEOF
39508 /* end confdefs.h.  */
39509 $ac_includes_default
39510 int
39511 main ()
39512 {
39513 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39514 test_array [0] = 0
39515
39516   ;
39517   return 0;
39518 }
39519 _ACEOF
39520 rm -f conftest.$ac_objext
39521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39522   (eval $ac_compile) 2>conftest.er1
39523   ac_status=$?
39524   grep -v '^ *+' conftest.er1 >conftest.err
39525   rm -f conftest.er1
39526   cat conftest.err >&5
39527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39528   (exit $ac_status); } &&
39529          { ac_try='test -z "$ac_c_werror_flag"
39530                          || test ! -s conftest.err'
39531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39532   (eval $ac_try) 2>&5
39533   ac_status=$?
39534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39535   (exit $ac_status); }; } &&
39536          { ac_try='test -s conftest.$ac_objext'
39537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39538   (eval $ac_try) 2>&5
39539   ac_status=$?
39540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39541   (exit $ac_status); }; }; then
39542   ac_hi=$ac_mid; break
39543 else
39544   echo "$as_me: failed program was:" >&5
39545 sed 's/^/| /' conftest.$ac_ext >&5
39546
39547 ac_lo=`expr $ac_mid + 1`
39548                     if test $ac_lo -le $ac_mid; then
39549                       ac_lo= ac_hi=
39550                       break
39551                     fi
39552                     ac_mid=`expr 2 '*' $ac_mid + 1`
39553 fi
39554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39555   done
39556 else
39557   echo "$as_me: failed program was:" >&5
39558 sed 's/^/| /' conftest.$ac_ext >&5
39559
39560 cat >conftest.$ac_ext <<_ACEOF
39561 /* confdefs.h.  */
39562 _ACEOF
39563 cat confdefs.h >>conftest.$ac_ext
39564 cat >>conftest.$ac_ext <<_ACEOF
39565 /* end confdefs.h.  */
39566 $ac_includes_default
39567 int
39568 main ()
39569 {
39570 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
39571 test_array [0] = 0
39572
39573   ;
39574   return 0;
39575 }
39576 _ACEOF
39577 rm -f conftest.$ac_objext
39578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39579   (eval $ac_compile) 2>conftest.er1
39580   ac_status=$?
39581   grep -v '^ *+' conftest.er1 >conftest.err
39582   rm -f conftest.er1
39583   cat conftest.err >&5
39584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39585   (exit $ac_status); } &&
39586          { ac_try='test -z "$ac_c_werror_flag"
39587                          || test ! -s conftest.err'
39588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39589   (eval $ac_try) 2>&5
39590   ac_status=$?
39591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592   (exit $ac_status); }; } &&
39593          { ac_try='test -s conftest.$ac_objext'
39594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39595   (eval $ac_try) 2>&5
39596   ac_status=$?
39597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39598   (exit $ac_status); }; }; then
39599   ac_hi=-1 ac_mid=-1
39600   while :; do
39601     cat >conftest.$ac_ext <<_ACEOF
39602 /* confdefs.h.  */
39603 _ACEOF
39604 cat confdefs.h >>conftest.$ac_ext
39605 cat >>conftest.$ac_ext <<_ACEOF
39606 /* end confdefs.h.  */
39607 $ac_includes_default
39608 int
39609 main ()
39610 {
39611 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
39612 test_array [0] = 0
39613
39614   ;
39615   return 0;
39616 }
39617 _ACEOF
39618 rm -f conftest.$ac_objext
39619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39620   (eval $ac_compile) 2>conftest.er1
39621   ac_status=$?
39622   grep -v '^ *+' conftest.er1 >conftest.err
39623   rm -f conftest.er1
39624   cat conftest.err >&5
39625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39626   (exit $ac_status); } &&
39627          { ac_try='test -z "$ac_c_werror_flag"
39628                          || test ! -s conftest.err'
39629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39630   (eval $ac_try) 2>&5
39631   ac_status=$?
39632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39633   (exit $ac_status); }; } &&
39634          { ac_try='test -s conftest.$ac_objext'
39635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39636   (eval $ac_try) 2>&5
39637   ac_status=$?
39638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39639   (exit $ac_status); }; }; then
39640   ac_lo=$ac_mid; break
39641 else
39642   echo "$as_me: failed program was:" >&5
39643 sed 's/^/| /' conftest.$ac_ext >&5
39644
39645 ac_hi=`expr '(' $ac_mid ')' - 1`
39646                        if test $ac_mid -le $ac_hi; then
39647                          ac_lo= ac_hi=
39648                          break
39649                        fi
39650                        ac_mid=`expr 2 '*' $ac_mid`
39651 fi
39652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39653   done
39654 else
39655   echo "$as_me: failed program was:" >&5
39656 sed 's/^/| /' conftest.$ac_ext >&5
39657
39658 ac_lo= ac_hi=
39659 fi
39660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39661 fi
39662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39663 # Binary search between lo and hi bounds.
39664 while test "x$ac_lo" != "x$ac_hi"; do
39665   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39666   cat >conftest.$ac_ext <<_ACEOF
39667 /* confdefs.h.  */
39668 _ACEOF
39669 cat confdefs.h >>conftest.$ac_ext
39670 cat >>conftest.$ac_ext <<_ACEOF
39671 /* end confdefs.h.  */
39672 $ac_includes_default
39673 int
39674 main ()
39675 {
39676 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39677 test_array [0] = 0
39678
39679   ;
39680   return 0;
39681 }
39682 _ACEOF
39683 rm -f conftest.$ac_objext
39684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39685   (eval $ac_compile) 2>conftest.er1
39686   ac_status=$?
39687   grep -v '^ *+' conftest.er1 >conftest.err
39688   rm -f conftest.er1
39689   cat conftest.err >&5
39690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39691   (exit $ac_status); } &&
39692          { ac_try='test -z "$ac_c_werror_flag"
39693                          || test ! -s conftest.err'
39694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39695   (eval $ac_try) 2>&5
39696   ac_status=$?
39697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39698   (exit $ac_status); }; } &&
39699          { ac_try='test -s conftest.$ac_objext'
39700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39701   (eval $ac_try) 2>&5
39702   ac_status=$?
39703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39704   (exit $ac_status); }; }; then
39705   ac_hi=$ac_mid
39706 else
39707   echo "$as_me: failed program was:" >&5
39708 sed 's/^/| /' conftest.$ac_ext >&5
39709
39710 ac_lo=`expr '(' $ac_mid ')' + 1`
39711 fi
39712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39713 done
39714 case $ac_lo in
39715 ?*) ac_cv_sizeof_long=$ac_lo;;
39716 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39717 See \`config.log' for more details." >&5
39718 echo "$as_me: error: cannot compute sizeof (long), 77
39719 See \`config.log' for more details." >&2;}
39720    { (exit 1); exit 1; }; } ;;
39721 esac
39722 else
39723   if test "$cross_compiling" = yes; then
39724   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39725 See \`config.log' for more details." >&5
39726 echo "$as_me: error: cannot run test program while cross compiling
39727 See \`config.log' for more details." >&2;}
39728    { (exit 1); exit 1; }; }
39729 else
39730   cat >conftest.$ac_ext <<_ACEOF
39731 /* confdefs.h.  */
39732 _ACEOF
39733 cat confdefs.h >>conftest.$ac_ext
39734 cat >>conftest.$ac_ext <<_ACEOF
39735 /* end confdefs.h.  */
39736 $ac_includes_default
39737 long longval () { return (long) (sizeof (long)); }
39738 unsigned long ulongval () { return (long) (sizeof (long)); }
39739 #include <stdio.h>
39740 #include <stdlib.h>
39741 int
39742 main ()
39743 {
39744
39745   FILE *f = fopen ("conftest.val", "w");
39746   if (! f)
39747     exit (1);
39748   if (((long) (sizeof (long))) < 0)
39749     {
39750       long i = longval ();
39751       if (i != ((long) (sizeof (long))))
39752         exit (1);
39753       fprintf (f, "%ld\n", i);
39754     }
39755   else
39756     {
39757       unsigned long i = ulongval ();
39758       if (i != ((long) (sizeof (long))))
39759         exit (1);
39760       fprintf (f, "%lu\n", i);
39761     }
39762   exit (ferror (f) || fclose (f) != 0);
39763
39764   ;
39765   return 0;
39766 }
39767 _ACEOF
39768 rm -f conftest$ac_exeext
39769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39770   (eval $ac_link) 2>&5
39771   ac_status=$?
39772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39773   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39775   (eval $ac_try) 2>&5
39776   ac_status=$?
39777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39778   (exit $ac_status); }; }; then
39779   ac_cv_sizeof_long=`cat conftest.val`
39780 else
39781   echo "$as_me: program exited with status $ac_status" >&5
39782 echo "$as_me: failed program was:" >&5
39783 sed 's/^/| /' conftest.$ac_ext >&5
39784
39785 ( exit $ac_status )
39786 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39787 See \`config.log' for more details." >&5
39788 echo "$as_me: error: cannot compute sizeof (long), 77
39789 See \`config.log' for more details." >&2;}
39790    { (exit 1); exit 1; }; }
39791 fi
39792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39793 fi
39794 fi
39795 rm -f conftest.val
39796 else
39797   ac_cv_sizeof_long=0
39798 fi
39799 fi
39800 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
39801 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
39802 cat >>confdefs.h <<_ACEOF
39803 #define SIZEOF_LONG $ac_cv_sizeof_long
39804 _ACEOF
39805
39806
39807 echo "$as_me:$LINENO: checking for wchar_t" >&5
39808 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
39809 if test "${ac_cv_type_wchar_t+set}" = set; then
39810   echo $ECHO_N "(cached) $ECHO_C" >&6
39811 else
39812   cat >conftest.$ac_ext <<_ACEOF
39813 /* confdefs.h.  */
39814 _ACEOF
39815 cat confdefs.h >>conftest.$ac_ext
39816 cat >>conftest.$ac_ext <<_ACEOF
39817 /* end confdefs.h.  */
39818 $ac_includes_default
39819 int
39820 main ()
39821 {
39822 if ((wchar_t *) 0)
39823   return 0;
39824 if (sizeof (wchar_t))
39825   return 0;
39826   ;
39827   return 0;
39828 }
39829 _ACEOF
39830 rm -f conftest.$ac_objext
39831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39832   (eval $ac_compile) 2>conftest.er1
39833   ac_status=$?
39834   grep -v '^ *+' conftest.er1 >conftest.err
39835   rm -f conftest.er1
39836   cat conftest.err >&5
39837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838   (exit $ac_status); } &&
39839          { ac_try='test -z "$ac_c_werror_flag"
39840                          || test ! -s conftest.err'
39841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39842   (eval $ac_try) 2>&5
39843   ac_status=$?
39844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845   (exit $ac_status); }; } &&
39846          { ac_try='test -s conftest.$ac_objext'
39847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39848   (eval $ac_try) 2>&5
39849   ac_status=$?
39850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851   (exit $ac_status); }; }; then
39852   ac_cv_type_wchar_t=yes
39853 else
39854   echo "$as_me: failed program was:" >&5
39855 sed 's/^/| /' conftest.$ac_ext >&5
39856
39857 ac_cv_type_wchar_t=no
39858 fi
39859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39860 fi
39861 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
39862 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
39863
39864 echo "$as_me:$LINENO: checking size of wchar_t" >&5
39865 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
39866 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
39867   echo $ECHO_N "(cached) $ECHO_C" >&6
39868 else
39869   if test "$ac_cv_type_wchar_t" = yes; then
39870   # The cast to unsigned long works around a bug in the HP C Compiler
39871   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39872   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39873   # This bug is HP SR number 8606223364.
39874   if test "$cross_compiling" = yes; then
39875   # Depending upon the size, compute the lo and hi bounds.
39876 cat >conftest.$ac_ext <<_ACEOF
39877 /* confdefs.h.  */
39878 _ACEOF
39879 cat confdefs.h >>conftest.$ac_ext
39880 cat >>conftest.$ac_ext <<_ACEOF
39881 /* end confdefs.h.  */
39882 $ac_includes_default
39883 int
39884 main ()
39885 {
39886 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
39887 test_array [0] = 0
39888
39889   ;
39890   return 0;
39891 }
39892 _ACEOF
39893 rm -f conftest.$ac_objext
39894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39895   (eval $ac_compile) 2>conftest.er1
39896   ac_status=$?
39897   grep -v '^ *+' conftest.er1 >conftest.err
39898   rm -f conftest.er1
39899   cat conftest.err >&5
39900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39901   (exit $ac_status); } &&
39902          { ac_try='test -z "$ac_c_werror_flag"
39903                          || test ! -s conftest.err'
39904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39905   (eval $ac_try) 2>&5
39906   ac_status=$?
39907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39908   (exit $ac_status); }; } &&
39909          { ac_try='test -s conftest.$ac_objext'
39910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39911   (eval $ac_try) 2>&5
39912   ac_status=$?
39913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39914   (exit $ac_status); }; }; then
39915   ac_lo=0 ac_mid=0
39916   while :; do
39917     cat >conftest.$ac_ext <<_ACEOF
39918 /* confdefs.h.  */
39919 _ACEOF
39920 cat confdefs.h >>conftest.$ac_ext
39921 cat >>conftest.$ac_ext <<_ACEOF
39922 /* end confdefs.h.  */
39923 $ac_includes_default
39924 int
39925 main ()
39926 {
39927 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
39928 test_array [0] = 0
39929
39930   ;
39931   return 0;
39932 }
39933 _ACEOF
39934 rm -f conftest.$ac_objext
39935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39936   (eval $ac_compile) 2>conftest.er1
39937   ac_status=$?
39938   grep -v '^ *+' conftest.er1 >conftest.err
39939   rm -f conftest.er1
39940   cat conftest.err >&5
39941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39942   (exit $ac_status); } &&
39943          { ac_try='test -z "$ac_c_werror_flag"
39944                          || test ! -s conftest.err'
39945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39946   (eval $ac_try) 2>&5
39947   ac_status=$?
39948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39949   (exit $ac_status); }; } &&
39950          { ac_try='test -s conftest.$ac_objext'
39951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39952   (eval $ac_try) 2>&5
39953   ac_status=$?
39954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39955   (exit $ac_status); }; }; then
39956   ac_hi=$ac_mid; break
39957 else
39958   echo "$as_me: failed program was:" >&5
39959 sed 's/^/| /' conftest.$ac_ext >&5
39960
39961 ac_lo=`expr $ac_mid + 1`
39962                     if test $ac_lo -le $ac_mid; then
39963                       ac_lo= ac_hi=
39964                       break
39965                     fi
39966                     ac_mid=`expr 2 '*' $ac_mid + 1`
39967 fi
39968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39969   done
39970 else
39971   echo "$as_me: failed program was:" >&5
39972 sed 's/^/| /' conftest.$ac_ext >&5
39973
39974 cat >conftest.$ac_ext <<_ACEOF
39975 /* confdefs.h.  */
39976 _ACEOF
39977 cat confdefs.h >>conftest.$ac_ext
39978 cat >>conftest.$ac_ext <<_ACEOF
39979 /* end confdefs.h.  */
39980 $ac_includes_default
39981 int
39982 main ()
39983 {
39984 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
39985 test_array [0] = 0
39986
39987   ;
39988   return 0;
39989 }
39990 _ACEOF
39991 rm -f conftest.$ac_objext
39992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39993   (eval $ac_compile) 2>conftest.er1
39994   ac_status=$?
39995   grep -v '^ *+' conftest.er1 >conftest.err
39996   rm -f conftest.er1
39997   cat conftest.err >&5
39998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39999   (exit $ac_status); } &&
40000          { ac_try='test -z "$ac_c_werror_flag"
40001                          || test ! -s conftest.err'
40002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40003   (eval $ac_try) 2>&5
40004   ac_status=$?
40005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40006   (exit $ac_status); }; } &&
40007          { ac_try='test -s conftest.$ac_objext'
40008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40009   (eval $ac_try) 2>&5
40010   ac_status=$?
40011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40012   (exit $ac_status); }; }; then
40013   ac_hi=-1 ac_mid=-1
40014   while :; do
40015     cat >conftest.$ac_ext <<_ACEOF
40016 /* confdefs.h.  */
40017 _ACEOF
40018 cat confdefs.h >>conftest.$ac_ext
40019 cat >>conftest.$ac_ext <<_ACEOF
40020 /* end confdefs.h.  */
40021 $ac_includes_default
40022 int
40023 main ()
40024 {
40025 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
40026 test_array [0] = 0
40027
40028   ;
40029   return 0;
40030 }
40031 _ACEOF
40032 rm -f conftest.$ac_objext
40033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40034   (eval $ac_compile) 2>conftest.er1
40035   ac_status=$?
40036   grep -v '^ *+' conftest.er1 >conftest.err
40037   rm -f conftest.er1
40038   cat conftest.err >&5
40039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40040   (exit $ac_status); } &&
40041          { ac_try='test -z "$ac_c_werror_flag"
40042                          || test ! -s conftest.err'
40043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40044   (eval $ac_try) 2>&5
40045   ac_status=$?
40046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047   (exit $ac_status); }; } &&
40048          { ac_try='test -s conftest.$ac_objext'
40049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40050   (eval $ac_try) 2>&5
40051   ac_status=$?
40052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053   (exit $ac_status); }; }; then
40054   ac_lo=$ac_mid; break
40055 else
40056   echo "$as_me: failed program was:" >&5
40057 sed 's/^/| /' conftest.$ac_ext >&5
40058
40059 ac_hi=`expr '(' $ac_mid ')' - 1`
40060                        if test $ac_mid -le $ac_hi; then
40061                          ac_lo= ac_hi=
40062                          break
40063                        fi
40064                        ac_mid=`expr 2 '*' $ac_mid`
40065 fi
40066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40067   done
40068 else
40069   echo "$as_me: failed program was:" >&5
40070 sed 's/^/| /' conftest.$ac_ext >&5
40071
40072 ac_lo= ac_hi=
40073 fi
40074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40075 fi
40076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40077 # Binary search between lo and hi bounds.
40078 while test "x$ac_lo" != "x$ac_hi"; do
40079   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40080   cat >conftest.$ac_ext <<_ACEOF
40081 /* confdefs.h.  */
40082 _ACEOF
40083 cat confdefs.h >>conftest.$ac_ext
40084 cat >>conftest.$ac_ext <<_ACEOF
40085 /* end confdefs.h.  */
40086 $ac_includes_default
40087 int
40088 main ()
40089 {
40090 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
40091 test_array [0] = 0
40092
40093   ;
40094   return 0;
40095 }
40096 _ACEOF
40097 rm -f conftest.$ac_objext
40098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40099   (eval $ac_compile) 2>conftest.er1
40100   ac_status=$?
40101   grep -v '^ *+' conftest.er1 >conftest.err
40102   rm -f conftest.er1
40103   cat conftest.err >&5
40104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105   (exit $ac_status); } &&
40106          { ac_try='test -z "$ac_c_werror_flag"
40107                          || test ! -s conftest.err'
40108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40109   (eval $ac_try) 2>&5
40110   ac_status=$?
40111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40112   (exit $ac_status); }; } &&
40113          { ac_try='test -s conftest.$ac_objext'
40114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40115   (eval $ac_try) 2>&5
40116   ac_status=$?
40117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40118   (exit $ac_status); }; }; then
40119   ac_hi=$ac_mid
40120 else
40121   echo "$as_me: failed program was:" >&5
40122 sed 's/^/| /' conftest.$ac_ext >&5
40123
40124 ac_lo=`expr '(' $ac_mid ')' + 1`
40125 fi
40126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40127 done
40128 case $ac_lo in
40129 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
40130 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40131 See \`config.log' for more details." >&5
40132 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40133 See \`config.log' for more details." >&2;}
40134    { (exit 1); exit 1; }; } ;;
40135 esac
40136 else
40137   if test "$cross_compiling" = yes; then
40138   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40139 See \`config.log' for more details." >&5
40140 echo "$as_me: error: cannot run test program while cross compiling
40141 See \`config.log' for more details." >&2;}
40142    { (exit 1); exit 1; }; }
40143 else
40144   cat >conftest.$ac_ext <<_ACEOF
40145 /* confdefs.h.  */
40146 _ACEOF
40147 cat confdefs.h >>conftest.$ac_ext
40148 cat >>conftest.$ac_ext <<_ACEOF
40149 /* end confdefs.h.  */
40150 $ac_includes_default
40151 long longval () { return (long) (sizeof (wchar_t)); }
40152 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
40153 #include <stdio.h>
40154 #include <stdlib.h>
40155 int
40156 main ()
40157 {
40158
40159   FILE *f = fopen ("conftest.val", "w");
40160   if (! f)
40161     exit (1);
40162   if (((long) (sizeof (wchar_t))) < 0)
40163     {
40164       long i = longval ();
40165       if (i != ((long) (sizeof (wchar_t))))
40166         exit (1);
40167       fprintf (f, "%ld\n", i);
40168     }
40169   else
40170     {
40171       unsigned long i = ulongval ();
40172       if (i != ((long) (sizeof (wchar_t))))
40173         exit (1);
40174       fprintf (f, "%lu\n", i);
40175     }
40176   exit (ferror (f) || fclose (f) != 0);
40177
40178   ;
40179   return 0;
40180 }
40181 _ACEOF
40182 rm -f conftest$ac_exeext
40183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40184   (eval $ac_link) 2>&5
40185   ac_status=$?
40186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40187   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40189   (eval $ac_try) 2>&5
40190   ac_status=$?
40191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40192   (exit $ac_status); }; }; then
40193   ac_cv_sizeof_wchar_t=`cat conftest.val`
40194 else
40195   echo "$as_me: program exited with status $ac_status" >&5
40196 echo "$as_me: failed program was:" >&5
40197 sed 's/^/| /' conftest.$ac_ext >&5
40198
40199 ( exit $ac_status )
40200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40201 See \`config.log' for more details." >&5
40202 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40203 See \`config.log' for more details." >&2;}
40204    { (exit 1); exit 1; }; }
40205 fi
40206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40207 fi
40208 fi
40209 rm -f conftest.val
40210 else
40211   ac_cv_sizeof_wchar_t=0
40212 fi
40213 fi
40214 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
40215 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
40216 cat >>confdefs.h <<_ACEOF
40217 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
40218 _ACEOF
40219
40220
40221
40222 if test "$ac_cv_sizeof_int" -lt 4 ; then
40223         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
40224 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
40225
40226
40227 cat >>confdefs.h <<\_ACEOF
40228 #define LBER_INT_T long
40229 _ACEOF
40230
40231 else
40232
40233 cat >>confdefs.h <<\_ACEOF
40234 #define LBER_INT_T int
40235 _ACEOF
40236
40237 fi
40238
40239
40240 cat >>confdefs.h <<\_ACEOF
40241 #define LBER_LEN_T long
40242 _ACEOF
40243
40244
40245 cat >>confdefs.h <<\_ACEOF
40246 #define LBER_SOCKET_T int
40247 _ACEOF
40248
40249
40250 cat >>confdefs.h <<\_ACEOF
40251 #define LBER_TAG_T long
40252 _ACEOF
40253
40254
40255 echo "$as_me:$LINENO: checking for working memcmp" >&5
40256 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
40257 if test "${ac_cv_func_memcmp_working+set}" = set; then
40258   echo $ECHO_N "(cached) $ECHO_C" >&6
40259 else
40260   if test "$cross_compiling" = yes; then
40261   ac_cv_func_memcmp_working=no
40262 else
40263   cat >conftest.$ac_ext <<_ACEOF
40264 /* confdefs.h.  */
40265 _ACEOF
40266 cat confdefs.h >>conftest.$ac_ext
40267 cat >>conftest.$ac_ext <<_ACEOF
40268 /* end confdefs.h.  */
40269 $ac_includes_default
40270 int
40271 main ()
40272 {
40273
40274   /* Some versions of memcmp are not 8-bit clean.  */
40275   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
40276   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
40277     exit (1);
40278
40279   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
40280      or more and with at least one buffer not starting on a 4-byte boundary.
40281      William Lewis provided this test program.   */
40282   {
40283     char foo[21];
40284     char bar[21];
40285     int i;
40286     for (i = 0; i < 4; i++)
40287       {
40288         char *a = foo + i;
40289         char *b = bar + i;
40290         strcpy (a, "--------01111111");
40291         strcpy (b, "--------10000000");
40292         if (memcmp (a, b, 16) >= 0)
40293           exit (1);
40294       }
40295     exit (0);
40296   }
40297
40298   ;
40299   return 0;
40300 }
40301 _ACEOF
40302 rm -f conftest$ac_exeext
40303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40304   (eval $ac_link) 2>&5
40305   ac_status=$?
40306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40307   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40309   (eval $ac_try) 2>&5
40310   ac_status=$?
40311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40312   (exit $ac_status); }; }; then
40313   ac_cv_func_memcmp_working=yes
40314 else
40315   echo "$as_me: program exited with status $ac_status" >&5
40316 echo "$as_me: failed program was:" >&5
40317 sed 's/^/| /' conftest.$ac_ext >&5
40318
40319 ( exit $ac_status )
40320 ac_cv_func_memcmp_working=no
40321 fi
40322 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40323 fi
40324 fi
40325 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
40326 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
40327 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
40328     "memcmp.$ac_objext"   | \
40329   *" memcmp.$ac_objext"   | \
40330     "memcmp.$ac_objext "* | \
40331   *" memcmp.$ac_objext "* ) ;;
40332   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
40333 esac
40334
40335
40336
40337 if test $ac_cv_func_memcmp_working = no ; then
40338
40339 cat >>confdefs.h <<\_ACEOF
40340 #define NEED_MEMCMP_REPLACEMENT 1
40341 _ACEOF
40342
40343 fi
40344
40345
40346 for ac_func in strftime
40347 do
40348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40349 echo "$as_me:$LINENO: checking for $ac_func" >&5
40350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40351 if eval "test \"\${$as_ac_var+set}\" = set"; then
40352   echo $ECHO_N "(cached) $ECHO_C" >&6
40353 else
40354   cat >conftest.$ac_ext <<_ACEOF
40355 /* confdefs.h.  */
40356 _ACEOF
40357 cat confdefs.h >>conftest.$ac_ext
40358 cat >>conftest.$ac_ext <<_ACEOF
40359 /* end confdefs.h.  */
40360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40362 #define $ac_func innocuous_$ac_func
40363
40364 /* System header to define __stub macros and hopefully few prototypes,
40365     which can conflict with char $ac_func (); below.
40366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40367     <limits.h> exists even on freestanding compilers.  */
40368
40369 #ifdef __STDC__
40370 # include <limits.h>
40371 #else
40372 # include <assert.h>
40373 #endif
40374
40375 #undef $ac_func
40376
40377 /* Override any gcc2 internal prototype to avoid an error.  */
40378 #ifdef __cplusplus
40379 extern "C"
40380 {
40381 #endif
40382 /* We use char because int might match the return type of a gcc2
40383    builtin and then its argument prototype would still apply.  */
40384 char $ac_func ();
40385 /* The GNU C library defines this for functions which it implements
40386     to always fail with ENOSYS.  Some functions are actually named
40387     something starting with __ and the normal name is an alias.  */
40388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40389 choke me
40390 #else
40391 char (*f) () = $ac_func;
40392 #endif
40393 #ifdef __cplusplus
40394 }
40395 #endif
40396
40397 int
40398 main ()
40399 {
40400 return f != $ac_func;
40401   ;
40402   return 0;
40403 }
40404 _ACEOF
40405 rm -f conftest.$ac_objext conftest$ac_exeext
40406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40407   (eval $ac_link) 2>conftest.er1
40408   ac_status=$?
40409   grep -v '^ *+' conftest.er1 >conftest.err
40410   rm -f conftest.er1
40411   cat conftest.err >&5
40412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40413   (exit $ac_status); } &&
40414          { ac_try='test -z "$ac_c_werror_flag"
40415                          || test ! -s conftest.err'
40416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40417   (eval $ac_try) 2>&5
40418   ac_status=$?
40419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420   (exit $ac_status); }; } &&
40421          { ac_try='test -s conftest$ac_exeext'
40422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40423   (eval $ac_try) 2>&5
40424   ac_status=$?
40425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40426   (exit $ac_status); }; }; then
40427   eval "$as_ac_var=yes"
40428 else
40429   echo "$as_me: failed program was:" >&5
40430 sed 's/^/| /' conftest.$ac_ext >&5
40431
40432 eval "$as_ac_var=no"
40433 fi
40434 rm -f conftest.err conftest.$ac_objext \
40435       conftest$ac_exeext conftest.$ac_ext
40436 fi
40437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40439 if test `eval echo '${'$as_ac_var'}'` = yes; then
40440   cat >>confdefs.h <<_ACEOF
40441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40442 _ACEOF
40443
40444 else
40445   # strftime is in -lintl on SCO UNIX.
40446 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
40447 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
40448 if test "${ac_cv_lib_intl_strftime+set}" = set; then
40449   echo $ECHO_N "(cached) $ECHO_C" >&6
40450 else
40451   ac_check_lib_save_LIBS=$LIBS
40452 LIBS="-lintl  $LIBS"
40453 cat >conftest.$ac_ext <<_ACEOF
40454 /* confdefs.h.  */
40455 _ACEOF
40456 cat confdefs.h >>conftest.$ac_ext
40457 cat >>conftest.$ac_ext <<_ACEOF
40458 /* end confdefs.h.  */
40459
40460 /* Override any gcc2 internal prototype to avoid an error.  */
40461 #ifdef __cplusplus
40462 extern "C"
40463 #endif
40464 /* We use char because int might match the return type of a gcc2
40465    builtin and then its argument prototype would still apply.  */
40466 char strftime ();
40467 int
40468 main ()
40469 {
40470 strftime ();
40471   ;
40472   return 0;
40473 }
40474 _ACEOF
40475 rm -f conftest.$ac_objext conftest$ac_exeext
40476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40477   (eval $ac_link) 2>conftest.er1
40478   ac_status=$?
40479   grep -v '^ *+' conftest.er1 >conftest.err
40480   rm -f conftest.er1
40481   cat conftest.err >&5
40482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40483   (exit $ac_status); } &&
40484          { ac_try='test -z "$ac_c_werror_flag"
40485                          || test ! -s conftest.err'
40486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40487   (eval $ac_try) 2>&5
40488   ac_status=$?
40489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40490   (exit $ac_status); }; } &&
40491          { ac_try='test -s conftest$ac_exeext'
40492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40493   (eval $ac_try) 2>&5
40494   ac_status=$?
40495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40496   (exit $ac_status); }; }; then
40497   ac_cv_lib_intl_strftime=yes
40498 else
40499   echo "$as_me: failed program was:" >&5
40500 sed 's/^/| /' conftest.$ac_ext >&5
40501
40502 ac_cv_lib_intl_strftime=no
40503 fi
40504 rm -f conftest.err conftest.$ac_objext \
40505       conftest$ac_exeext conftest.$ac_ext
40506 LIBS=$ac_check_lib_save_LIBS
40507 fi
40508 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
40509 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
40510 if test $ac_cv_lib_intl_strftime = yes; then
40511   cat >>confdefs.h <<\_ACEOF
40512 #define HAVE_STRFTIME 1
40513 _ACEOF
40514
40515 LIBS="-lintl $LIBS"
40516 fi
40517
40518 fi
40519 done
40520
40521
40522 echo "$as_me:$LINENO: checking for inet_aton()" >&5
40523 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
40524 if test "${ol_cv_func_inet_aton+set}" = set; then
40525   echo $ECHO_N "(cached) $ECHO_C" >&6
40526 else
40527   cat >conftest.$ac_ext <<_ACEOF
40528 /* confdefs.h.  */
40529 _ACEOF
40530 cat confdefs.h >>conftest.$ac_ext
40531 cat >>conftest.$ac_ext <<_ACEOF
40532 /* end confdefs.h.  */
40533
40534 #ifdef HAVE_SYS_TYPES_H
40535 #       include <sys/types.h>
40536 #endif
40537 #ifdef HAVE_SYS_SOCKET_H
40538 #       include <sys/socket.h>
40539 #       ifdef HAVE_SYS_SELECT_H
40540 #               include <sys/select.h>
40541 #       endif
40542 #       include <netinet/in.h>
40543 #       ifdef HAVE_ARPA_INET_H
40544 #               include <arpa/inet.h>
40545 #       endif
40546 #endif
40547
40548 int
40549 main ()
40550 {
40551 struct in_addr in;
40552 int rc = inet_aton( "255.255.255.255", &in );
40553   ;
40554   return 0;
40555 }
40556 _ACEOF
40557 rm -f conftest.$ac_objext conftest$ac_exeext
40558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40559   (eval $ac_link) 2>conftest.er1
40560   ac_status=$?
40561   grep -v '^ *+' conftest.er1 >conftest.err
40562   rm -f conftest.er1
40563   cat conftest.err >&5
40564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40565   (exit $ac_status); } &&
40566          { ac_try='test -z "$ac_c_werror_flag"
40567                          || test ! -s conftest.err'
40568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40569   (eval $ac_try) 2>&5
40570   ac_status=$?
40571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40572   (exit $ac_status); }; } &&
40573          { ac_try='test -s conftest$ac_exeext'
40574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40575   (eval $ac_try) 2>&5
40576   ac_status=$?
40577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40578   (exit $ac_status); }; }; then
40579   ol_cv_func_inet_aton=yes
40580 else
40581   echo "$as_me: failed program was:" >&5
40582 sed 's/^/| /' conftest.$ac_ext >&5
40583
40584 ol_cv_func_inet_aton=no
40585 fi
40586 rm -f conftest.err conftest.$ac_objext \
40587       conftest$ac_exeext conftest.$ac_ext
40588 fi
40589 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
40590 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
40591   if test $ol_cv_func_inet_aton != no; then
40592
40593 cat >>confdefs.h <<\_ACEOF
40594 #define HAVE_INET_ATON 1
40595 _ACEOF
40596
40597   fi
40598
40599
40600 echo "$as_me:$LINENO: checking for _spawnlp" >&5
40601 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
40602 if test "${ac_cv_func__spawnlp+set}" = set; then
40603   echo $ECHO_N "(cached) $ECHO_C" >&6
40604 else
40605   cat >conftest.$ac_ext <<_ACEOF
40606 /* confdefs.h.  */
40607 _ACEOF
40608 cat confdefs.h >>conftest.$ac_ext
40609 cat >>conftest.$ac_ext <<_ACEOF
40610 /* end confdefs.h.  */
40611 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
40612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40613 #define _spawnlp innocuous__spawnlp
40614
40615 /* System header to define __stub macros and hopefully few prototypes,
40616     which can conflict with char _spawnlp (); below.
40617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40618     <limits.h> exists even on freestanding compilers.  */
40619
40620 #ifdef __STDC__
40621 # include <limits.h>
40622 #else
40623 # include <assert.h>
40624 #endif
40625
40626 #undef _spawnlp
40627
40628 /* Override any gcc2 internal prototype to avoid an error.  */
40629 #ifdef __cplusplus
40630 extern "C"
40631 {
40632 #endif
40633 /* We use char because int might match the return type of a gcc2
40634    builtin and then its argument prototype would still apply.  */
40635 char _spawnlp ();
40636 /* The GNU C library defines this for functions which it implements
40637     to always fail with ENOSYS.  Some functions are actually named
40638     something starting with __ and the normal name is an alias.  */
40639 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
40640 choke me
40641 #else
40642 char (*f) () = _spawnlp;
40643 #endif
40644 #ifdef __cplusplus
40645 }
40646 #endif
40647
40648 int
40649 main ()
40650 {
40651 return f != _spawnlp;
40652   ;
40653   return 0;
40654 }
40655 _ACEOF
40656 rm -f conftest.$ac_objext conftest$ac_exeext
40657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40658   (eval $ac_link) 2>conftest.er1
40659   ac_status=$?
40660   grep -v '^ *+' conftest.er1 >conftest.err
40661   rm -f conftest.er1
40662   cat conftest.err >&5
40663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40664   (exit $ac_status); } &&
40665          { ac_try='test -z "$ac_c_werror_flag"
40666                          || test ! -s conftest.err'
40667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40668   (eval $ac_try) 2>&5
40669   ac_status=$?
40670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40671   (exit $ac_status); }; } &&
40672          { ac_try='test -s conftest$ac_exeext'
40673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40674   (eval $ac_try) 2>&5
40675   ac_status=$?
40676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40677   (exit $ac_status); }; }; then
40678   ac_cv_func__spawnlp=yes
40679 else
40680   echo "$as_me: failed program was:" >&5
40681 sed 's/^/| /' conftest.$ac_ext >&5
40682
40683 ac_cv_func__spawnlp=no
40684 fi
40685 rm -f conftest.err conftest.$ac_objext \
40686       conftest$ac_exeext conftest.$ac_ext
40687 fi
40688 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
40689 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
40690 if test $ac_cv_func__spawnlp = yes; then
40691
40692 cat >>confdefs.h <<\_ACEOF
40693 #define HAVE_SPAWNLP 1
40694 _ACEOF
40695
40696 fi
40697
40698
40699 echo "$as_me:$LINENO: checking for _snprintf" >&5
40700 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
40701 if test "${ac_cv_func__snprintf+set}" = set; then
40702   echo $ECHO_N "(cached) $ECHO_C" >&6
40703 else
40704   cat >conftest.$ac_ext <<_ACEOF
40705 /* confdefs.h.  */
40706 _ACEOF
40707 cat confdefs.h >>conftest.$ac_ext
40708 cat >>conftest.$ac_ext <<_ACEOF
40709 /* end confdefs.h.  */
40710 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
40711    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40712 #define _snprintf innocuous__snprintf
40713
40714 /* System header to define __stub macros and hopefully few prototypes,
40715     which can conflict with char _snprintf (); below.
40716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40717     <limits.h> exists even on freestanding compilers.  */
40718
40719 #ifdef __STDC__
40720 # include <limits.h>
40721 #else
40722 # include <assert.h>
40723 #endif
40724
40725 #undef _snprintf
40726
40727 /* Override any gcc2 internal prototype to avoid an error.  */
40728 #ifdef __cplusplus
40729 extern "C"
40730 {
40731 #endif
40732 /* We use char because int might match the return type of a gcc2
40733    builtin and then its argument prototype would still apply.  */
40734 char _snprintf ();
40735 /* The GNU C library defines this for functions which it implements
40736     to always fail with ENOSYS.  Some functions are actually named
40737     something starting with __ and the normal name is an alias.  */
40738 #if defined (__stub__snprintf) || defined (__stub____snprintf)
40739 choke me
40740 #else
40741 char (*f) () = _snprintf;
40742 #endif
40743 #ifdef __cplusplus
40744 }
40745 #endif
40746
40747 int
40748 main ()
40749 {
40750 return f != _snprintf;
40751   ;
40752   return 0;
40753 }
40754 _ACEOF
40755 rm -f conftest.$ac_objext conftest$ac_exeext
40756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40757   (eval $ac_link) 2>conftest.er1
40758   ac_status=$?
40759   grep -v '^ *+' conftest.er1 >conftest.err
40760   rm -f conftest.er1
40761   cat conftest.err >&5
40762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40763   (exit $ac_status); } &&
40764          { ac_try='test -z "$ac_c_werror_flag"
40765                          || test ! -s conftest.err'
40766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40767   (eval $ac_try) 2>&5
40768   ac_status=$?
40769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40770   (exit $ac_status); }; } &&
40771          { ac_try='test -s conftest$ac_exeext'
40772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40773   (eval $ac_try) 2>&5
40774   ac_status=$?
40775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40776   (exit $ac_status); }; }; then
40777   ac_cv_func__snprintf=yes
40778 else
40779   echo "$as_me: failed program was:" >&5
40780 sed 's/^/| /' conftest.$ac_ext >&5
40781
40782 ac_cv_func__snprintf=no
40783 fi
40784 rm -f conftest.err conftest.$ac_objext \
40785       conftest$ac_exeext conftest.$ac_ext
40786 fi
40787 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
40788 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
40789 if test $ac_cv_func__snprintf = yes; then
40790   ac_cv_func_snprintf=yes
40791
40792 cat >>confdefs.h <<\_ACEOF
40793 #define snprintf _snprintf
40794 _ACEOF
40795
40796
40797 fi
40798
40799
40800 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
40801 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
40802 if test "${ac_cv_func__vsnprintf+set}" = set; then
40803   echo $ECHO_N "(cached) $ECHO_C" >&6
40804 else
40805   cat >conftest.$ac_ext <<_ACEOF
40806 /* confdefs.h.  */
40807 _ACEOF
40808 cat confdefs.h >>conftest.$ac_ext
40809 cat >>conftest.$ac_ext <<_ACEOF
40810 /* end confdefs.h.  */
40811 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
40812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40813 #define _vsnprintf innocuous__vsnprintf
40814
40815 /* System header to define __stub macros and hopefully few prototypes,
40816     which can conflict with char _vsnprintf (); below.
40817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40818     <limits.h> exists even on freestanding compilers.  */
40819
40820 #ifdef __STDC__
40821 # include <limits.h>
40822 #else
40823 # include <assert.h>
40824 #endif
40825
40826 #undef _vsnprintf
40827
40828 /* Override any gcc2 internal prototype to avoid an error.  */
40829 #ifdef __cplusplus
40830 extern "C"
40831 {
40832 #endif
40833 /* We use char because int might match the return type of a gcc2
40834    builtin and then its argument prototype would still apply.  */
40835 char _vsnprintf ();
40836 /* The GNU C library defines this for functions which it implements
40837     to always fail with ENOSYS.  Some functions are actually named
40838     something starting with __ and the normal name is an alias.  */
40839 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
40840 choke me
40841 #else
40842 char (*f) () = _vsnprintf;
40843 #endif
40844 #ifdef __cplusplus
40845 }
40846 #endif
40847
40848 int
40849 main ()
40850 {
40851 return f != _vsnprintf;
40852   ;
40853   return 0;
40854 }
40855 _ACEOF
40856 rm -f conftest.$ac_objext conftest$ac_exeext
40857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40858   (eval $ac_link) 2>conftest.er1
40859   ac_status=$?
40860   grep -v '^ *+' conftest.er1 >conftest.err
40861   rm -f conftest.er1
40862   cat conftest.err >&5
40863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40864   (exit $ac_status); } &&
40865          { ac_try='test -z "$ac_c_werror_flag"
40866                          || test ! -s conftest.err'
40867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40868   (eval $ac_try) 2>&5
40869   ac_status=$?
40870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40871   (exit $ac_status); }; } &&
40872          { ac_try='test -s conftest$ac_exeext'
40873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40874   (eval $ac_try) 2>&5
40875   ac_status=$?
40876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40877   (exit $ac_status); }; }; then
40878   ac_cv_func__vsnprintf=yes
40879 else
40880   echo "$as_me: failed program was:" >&5
40881 sed 's/^/| /' conftest.$ac_ext >&5
40882
40883 ac_cv_func__vsnprintf=no
40884 fi
40885 rm -f conftest.err conftest.$ac_objext \
40886       conftest$ac_exeext conftest.$ac_ext
40887 fi
40888 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
40889 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
40890 if test $ac_cv_func__vsnprintf = yes; then
40891   ac_cv_func_vsnprintf=yes
40892
40893 cat >>confdefs.h <<\_ACEOF
40894 #define vsnprintf _vsnprintf
40895 _ACEOF
40896
40897
40898 fi
40899
40900
40901
40902 for ac_func in vprintf
40903 do
40904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40905 echo "$as_me:$LINENO: checking for $ac_func" >&5
40906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40907 if eval "test \"\${$as_ac_var+set}\" = set"; then
40908   echo $ECHO_N "(cached) $ECHO_C" >&6
40909 else
40910   cat >conftest.$ac_ext <<_ACEOF
40911 /* confdefs.h.  */
40912 _ACEOF
40913 cat confdefs.h >>conftest.$ac_ext
40914 cat >>conftest.$ac_ext <<_ACEOF
40915 /* end confdefs.h.  */
40916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40917    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40918 #define $ac_func innocuous_$ac_func
40919
40920 /* System header to define __stub macros and hopefully few prototypes,
40921     which can conflict with char $ac_func (); below.
40922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40923     <limits.h> exists even on freestanding compilers.  */
40924
40925 #ifdef __STDC__
40926 # include <limits.h>
40927 #else
40928 # include <assert.h>
40929 #endif
40930
40931 #undef $ac_func
40932
40933 /* Override any gcc2 internal prototype to avoid an error.  */
40934 #ifdef __cplusplus
40935 extern "C"
40936 {
40937 #endif
40938 /* We use char because int might match the return type of a gcc2
40939    builtin and then its argument prototype would still apply.  */
40940 char $ac_func ();
40941 /* The GNU C library defines this for functions which it implements
40942     to always fail with ENOSYS.  Some functions are actually named
40943     something starting with __ and the normal name is an alias.  */
40944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40945 choke me
40946 #else
40947 char (*f) () = $ac_func;
40948 #endif
40949 #ifdef __cplusplus
40950 }
40951 #endif
40952
40953 int
40954 main ()
40955 {
40956 return f != $ac_func;
40957   ;
40958   return 0;
40959 }
40960 _ACEOF
40961 rm -f conftest.$ac_objext conftest$ac_exeext
40962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40963   (eval $ac_link) 2>conftest.er1
40964   ac_status=$?
40965   grep -v '^ *+' conftest.er1 >conftest.err
40966   rm -f conftest.er1
40967   cat conftest.err >&5
40968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969   (exit $ac_status); } &&
40970          { ac_try='test -z "$ac_c_werror_flag"
40971                          || test ! -s conftest.err'
40972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40973   (eval $ac_try) 2>&5
40974   ac_status=$?
40975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40976   (exit $ac_status); }; } &&
40977          { ac_try='test -s conftest$ac_exeext'
40978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40979   (eval $ac_try) 2>&5
40980   ac_status=$?
40981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40982   (exit $ac_status); }; }; then
40983   eval "$as_ac_var=yes"
40984 else
40985   echo "$as_me: failed program was:" >&5
40986 sed 's/^/| /' conftest.$ac_ext >&5
40987
40988 eval "$as_ac_var=no"
40989 fi
40990 rm -f conftest.err conftest.$ac_objext \
40991       conftest$ac_exeext conftest.$ac_ext
40992 fi
40993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40995 if test `eval echo '${'$as_ac_var'}'` = yes; then
40996   cat >>confdefs.h <<_ACEOF
40997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40998 _ACEOF
40999
41000 echo "$as_me:$LINENO: checking for _doprnt" >&5
41001 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
41002 if test "${ac_cv_func__doprnt+set}" = set; then
41003   echo $ECHO_N "(cached) $ECHO_C" >&6
41004 else
41005   cat >conftest.$ac_ext <<_ACEOF
41006 /* confdefs.h.  */
41007 _ACEOF
41008 cat confdefs.h >>conftest.$ac_ext
41009 cat >>conftest.$ac_ext <<_ACEOF
41010 /* end confdefs.h.  */
41011 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
41012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41013 #define _doprnt innocuous__doprnt
41014
41015 /* System header to define __stub macros and hopefully few prototypes,
41016     which can conflict with char _doprnt (); below.
41017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41018     <limits.h> exists even on freestanding compilers.  */
41019
41020 #ifdef __STDC__
41021 # include <limits.h>
41022 #else
41023 # include <assert.h>
41024 #endif
41025
41026 #undef _doprnt
41027
41028 /* Override any gcc2 internal prototype to avoid an error.  */
41029 #ifdef __cplusplus
41030 extern "C"
41031 {
41032 #endif
41033 /* We use char because int might match the return type of a gcc2
41034    builtin and then its argument prototype would still apply.  */
41035 char _doprnt ();
41036 /* The GNU C library defines this for functions which it implements
41037     to always fail with ENOSYS.  Some functions are actually named
41038     something starting with __ and the normal name is an alias.  */
41039 #if defined (__stub__doprnt) || defined (__stub____doprnt)
41040 choke me
41041 #else
41042 char (*f) () = _doprnt;
41043 #endif
41044 #ifdef __cplusplus
41045 }
41046 #endif
41047
41048 int
41049 main ()
41050 {
41051 return f != _doprnt;
41052   ;
41053   return 0;
41054 }
41055 _ACEOF
41056 rm -f conftest.$ac_objext conftest$ac_exeext
41057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41058   (eval $ac_link) 2>conftest.er1
41059   ac_status=$?
41060   grep -v '^ *+' conftest.er1 >conftest.err
41061   rm -f conftest.er1
41062   cat conftest.err >&5
41063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41064   (exit $ac_status); } &&
41065          { ac_try='test -z "$ac_c_werror_flag"
41066                          || test ! -s conftest.err'
41067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41068   (eval $ac_try) 2>&5
41069   ac_status=$?
41070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071   (exit $ac_status); }; } &&
41072          { ac_try='test -s conftest$ac_exeext'
41073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41074   (eval $ac_try) 2>&5
41075   ac_status=$?
41076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41077   (exit $ac_status); }; }; then
41078   ac_cv_func__doprnt=yes
41079 else
41080   echo "$as_me: failed program was:" >&5
41081 sed 's/^/| /' conftest.$ac_ext >&5
41082
41083 ac_cv_func__doprnt=no
41084 fi
41085 rm -f conftest.err conftest.$ac_objext \
41086       conftest$ac_exeext conftest.$ac_ext
41087 fi
41088 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
41089 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
41090 if test $ac_cv_func__doprnt = yes; then
41091
41092 cat >>confdefs.h <<\_ACEOF
41093 #define HAVE_DOPRNT 1
41094 _ACEOF
41095
41096 fi
41097
41098 fi
41099 done
41100
41101
41102
41103 if test $ac_cv_func_vprintf = yes ; then
41104
41105
41106 for ac_func in snprintf vsnprintf
41107 do
41108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41109 echo "$as_me:$LINENO: checking for $ac_func" >&5
41110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41111 if eval "test \"\${$as_ac_var+set}\" = set"; then
41112   echo $ECHO_N "(cached) $ECHO_C" >&6
41113 else
41114   cat >conftest.$ac_ext <<_ACEOF
41115 /* confdefs.h.  */
41116 _ACEOF
41117 cat confdefs.h >>conftest.$ac_ext
41118 cat >>conftest.$ac_ext <<_ACEOF
41119 /* end confdefs.h.  */
41120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41122 #define $ac_func innocuous_$ac_func
41123
41124 /* System header to define __stub macros and hopefully few prototypes,
41125     which can conflict with char $ac_func (); below.
41126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41127     <limits.h> exists even on freestanding compilers.  */
41128
41129 #ifdef __STDC__
41130 # include <limits.h>
41131 #else
41132 # include <assert.h>
41133 #endif
41134
41135 #undef $ac_func
41136
41137 /* Override any gcc2 internal prototype to avoid an error.  */
41138 #ifdef __cplusplus
41139 extern "C"
41140 {
41141 #endif
41142 /* We use char because int might match the return type of a gcc2
41143    builtin and then its argument prototype would still apply.  */
41144 char $ac_func ();
41145 /* The GNU C library defines this for functions which it implements
41146     to always fail with ENOSYS.  Some functions are actually named
41147     something starting with __ and the normal name is an alias.  */
41148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41149 choke me
41150 #else
41151 char (*f) () = $ac_func;
41152 #endif
41153 #ifdef __cplusplus
41154 }
41155 #endif
41156
41157 int
41158 main ()
41159 {
41160 return f != $ac_func;
41161   ;
41162   return 0;
41163 }
41164 _ACEOF
41165 rm -f conftest.$ac_objext conftest$ac_exeext
41166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41167   (eval $ac_link) 2>conftest.er1
41168   ac_status=$?
41169   grep -v '^ *+' conftest.er1 >conftest.err
41170   rm -f conftest.er1
41171   cat conftest.err >&5
41172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41173   (exit $ac_status); } &&
41174          { ac_try='test -z "$ac_c_werror_flag"
41175                          || test ! -s conftest.err'
41176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41177   (eval $ac_try) 2>&5
41178   ac_status=$?
41179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41180   (exit $ac_status); }; } &&
41181          { ac_try='test -s conftest$ac_exeext'
41182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41183   (eval $ac_try) 2>&5
41184   ac_status=$?
41185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41186   (exit $ac_status); }; }; then
41187   eval "$as_ac_var=yes"
41188 else
41189   echo "$as_me: failed program was:" >&5
41190 sed 's/^/| /' conftest.$ac_ext >&5
41191
41192 eval "$as_ac_var=no"
41193 fi
41194 rm -f conftest.err conftest.$ac_objext \
41195       conftest$ac_exeext conftest.$ac_ext
41196 fi
41197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41199 if test `eval echo '${'$as_ac_var'}'` = yes; then
41200   cat >>confdefs.h <<_ACEOF
41201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41202 _ACEOF
41203
41204 fi
41205 done
41206
41207 fi
41208
41209
41210
41211
41212
41213
41214
41215
41216
41217
41218
41219
41220
41221
41222
41223
41224
41225
41226
41227
41228
41229
41230
41231
41232
41233
41234
41235
41236
41237
41238
41239
41240
41241
41242
41243
41244
41245
41246
41247
41248
41249
41250
41251
41252
41253
41254
41255
41256
41257
41258
41259
41260
41261
41262
41263
41264 for ac_func in \
41265         bcopy                   \
41266         closesocket             \
41267         chroot                  \
41268         endgrent                \
41269         endpwent                \
41270         fcntl                   \
41271         flock                   \
41272         fstat                   \
41273         getdtablesize   \
41274         getgrgid                \
41275         gethostname             \
41276         getpass                 \
41277         getpassphrase   \
41278         getpwuid                \
41279         getpwnam                \
41280         getspnam                \
41281         gettimeofday    \
41282         initgroups              \
41283         inet_ntoa_b             \
41284         lockf                   \
41285         memcpy                  \
41286         memmove                 \
41287         memrchr                 \
41288         mkstemp                 \
41289         mktemp                  \
41290         pipe                    \
41291         read                    \
41292         recv                    \
41293         recvfrom                \
41294         setpwfile               \
41295         setgid                  \
41296         setegid                 \
41297         setsid                  \
41298         setuid                  \
41299         seteuid                 \
41300         signal                  \
41301         strdup                  \
41302         strpbrk                 \
41303         strrchr                 \
41304         strsep                  \
41305         strstr                  \
41306         strtol                  \
41307         strtoul                 \
41308         strtoq                  \
41309         strtouq                 \
41310         strtoll                 \
41311         strspn                  \
41312         sysconf                 \
41313         usleep                  \
41314         waitpid                 \
41315         wait4                   \
41316         write                   \
41317         send                    \
41318         sendmsg                 \
41319         sendto                  \
41320
41321 do
41322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41323 echo "$as_me:$LINENO: checking for $ac_func" >&5
41324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41325 if eval "test \"\${$as_ac_var+set}\" = set"; then
41326   echo $ECHO_N "(cached) $ECHO_C" >&6
41327 else
41328   cat >conftest.$ac_ext <<_ACEOF
41329 /* confdefs.h.  */
41330 _ACEOF
41331 cat confdefs.h >>conftest.$ac_ext
41332 cat >>conftest.$ac_ext <<_ACEOF
41333 /* end confdefs.h.  */
41334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41336 #define $ac_func innocuous_$ac_func
41337
41338 /* System header to define __stub macros and hopefully few prototypes,
41339     which can conflict with char $ac_func (); below.
41340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41341     <limits.h> exists even on freestanding compilers.  */
41342
41343 #ifdef __STDC__
41344 # include <limits.h>
41345 #else
41346 # include <assert.h>
41347 #endif
41348
41349 #undef $ac_func
41350
41351 /* Override any gcc2 internal prototype to avoid an error.  */
41352 #ifdef __cplusplus
41353 extern "C"
41354 {
41355 #endif
41356 /* We use char because int might match the return type of a gcc2
41357    builtin and then its argument prototype would still apply.  */
41358 char $ac_func ();
41359 /* The GNU C library defines this for functions which it implements
41360     to always fail with ENOSYS.  Some functions are actually named
41361     something starting with __ and the normal name is an alias.  */
41362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41363 choke me
41364 #else
41365 char (*f) () = $ac_func;
41366 #endif
41367 #ifdef __cplusplus
41368 }
41369 #endif
41370
41371 int
41372 main ()
41373 {
41374 return f != $ac_func;
41375   ;
41376   return 0;
41377 }
41378 _ACEOF
41379 rm -f conftest.$ac_objext conftest$ac_exeext
41380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41381   (eval $ac_link) 2>conftest.er1
41382   ac_status=$?
41383   grep -v '^ *+' conftest.er1 >conftest.err
41384   rm -f conftest.er1
41385   cat conftest.err >&5
41386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41387   (exit $ac_status); } &&
41388          { ac_try='test -z "$ac_c_werror_flag"
41389                          || test ! -s conftest.err'
41390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41391   (eval $ac_try) 2>&5
41392   ac_status=$?
41393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41394   (exit $ac_status); }; } &&
41395          { ac_try='test -s conftest$ac_exeext'
41396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41397   (eval $ac_try) 2>&5
41398   ac_status=$?
41399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41400   (exit $ac_status); }; }; then
41401   eval "$as_ac_var=yes"
41402 else
41403   echo "$as_me: failed program was:" >&5
41404 sed 's/^/| /' conftest.$ac_ext >&5
41405
41406 eval "$as_ac_var=no"
41407 fi
41408 rm -f conftest.err conftest.$ac_objext \
41409       conftest$ac_exeext conftest.$ac_ext
41410 fi
41411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41413 if test `eval echo '${'$as_ac_var'}'` = yes; then
41414   cat >>confdefs.h <<_ACEOF
41415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41416 _ACEOF
41417
41418 fi
41419 done
41420
41421
41422
41423
41424 for ac_func in getopt getpeereid
41425 do
41426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41427 echo "$as_me:$LINENO: checking for $ac_func" >&5
41428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41429 if eval "test \"\${$as_ac_var+set}\" = set"; then
41430   echo $ECHO_N "(cached) $ECHO_C" >&6
41431 else
41432   cat >conftest.$ac_ext <<_ACEOF
41433 /* confdefs.h.  */
41434 _ACEOF
41435 cat confdefs.h >>conftest.$ac_ext
41436 cat >>conftest.$ac_ext <<_ACEOF
41437 /* end confdefs.h.  */
41438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41440 #define $ac_func innocuous_$ac_func
41441
41442 /* System header to define __stub macros and hopefully few prototypes,
41443     which can conflict with char $ac_func (); below.
41444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41445     <limits.h> exists even on freestanding compilers.  */
41446
41447 #ifdef __STDC__
41448 # include <limits.h>
41449 #else
41450 # include <assert.h>
41451 #endif
41452
41453 #undef $ac_func
41454
41455 /* Override any gcc2 internal prototype to avoid an error.  */
41456 #ifdef __cplusplus
41457 extern "C"
41458 {
41459 #endif
41460 /* We use char because int might match the return type of a gcc2
41461    builtin and then its argument prototype would still apply.  */
41462 char $ac_func ();
41463 /* The GNU C library defines this for functions which it implements
41464     to always fail with ENOSYS.  Some functions are actually named
41465     something starting with __ and the normal name is an alias.  */
41466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41467 choke me
41468 #else
41469 char (*f) () = $ac_func;
41470 #endif
41471 #ifdef __cplusplus
41472 }
41473 #endif
41474
41475 int
41476 main ()
41477 {
41478 return f != $ac_func;
41479   ;
41480   return 0;
41481 }
41482 _ACEOF
41483 rm -f conftest.$ac_objext conftest$ac_exeext
41484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41485   (eval $ac_link) 2>conftest.er1
41486   ac_status=$?
41487   grep -v '^ *+' conftest.er1 >conftest.err
41488   rm -f conftest.er1
41489   cat conftest.err >&5
41490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41491   (exit $ac_status); } &&
41492          { ac_try='test -z "$ac_c_werror_flag"
41493                          || test ! -s conftest.err'
41494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41495   (eval $ac_try) 2>&5
41496   ac_status=$?
41497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41498   (exit $ac_status); }; } &&
41499          { ac_try='test -s conftest$ac_exeext'
41500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41501   (eval $ac_try) 2>&5
41502   ac_status=$?
41503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504   (exit $ac_status); }; }; then
41505   eval "$as_ac_var=yes"
41506 else
41507   echo "$as_me: failed program was:" >&5
41508 sed 's/^/| /' conftest.$ac_ext >&5
41509
41510 eval "$as_ac_var=no"
41511 fi
41512 rm -f conftest.err conftest.$ac_objext \
41513       conftest$ac_exeext conftest.$ac_ext
41514 fi
41515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41517 if test `eval echo '${'$as_ac_var'}'` = yes; then
41518   cat >>confdefs.h <<_ACEOF
41519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41520 _ACEOF
41521
41522 else
41523   case $LIBOBJS in
41524     "$ac_func.$ac_objext"   | \
41525   *" $ac_func.$ac_objext"   | \
41526     "$ac_func.$ac_objext "* | \
41527   *" $ac_func.$ac_objext "* ) ;;
41528   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
41529 esac
41530
41531 fi
41532 done
41533
41534
41535
41536 if test "$ac_cv_func_getopt" != yes; then
41537         LIBSRCS="$LIBSRCS getopt.c"
41538 fi
41539 if test "$ac_cv_func_getpeereid" != yes; then
41540         echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
41541 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
41542 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
41543   echo $ECHO_N "(cached) $ECHO_C" >&6
41544 else
41545   cat >conftest.$ac_ext <<_ACEOF
41546 /* confdefs.h.  */
41547 _ACEOF
41548 cat confdefs.h >>conftest.$ac_ext
41549 cat >>conftest.$ac_ext <<_ACEOF
41550 /* end confdefs.h.  */
41551 $ac_includes_default
41552 #ifdef HAVE_SYS_SOCKET_H
41553 #include <sys/socket.h>
41554 #endif
41555
41556 int
41557 main ()
41558 {
41559 static struct msghdr ac_aggr;
41560 if (ac_aggr.msg_accrightslen)
41561 return 0;
41562   ;
41563   return 0;
41564 }
41565 _ACEOF
41566 rm -f conftest.$ac_objext
41567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41568   (eval $ac_compile) 2>conftest.er1
41569   ac_status=$?
41570   grep -v '^ *+' conftest.er1 >conftest.err
41571   rm -f conftest.er1
41572   cat conftest.err >&5
41573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41574   (exit $ac_status); } &&
41575          { ac_try='test -z "$ac_c_werror_flag"
41576                          || test ! -s conftest.err'
41577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41578   (eval $ac_try) 2>&5
41579   ac_status=$?
41580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41581   (exit $ac_status); }; } &&
41582          { ac_try='test -s conftest.$ac_objext'
41583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41584   (eval $ac_try) 2>&5
41585   ac_status=$?
41586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41587   (exit $ac_status); }; }; then
41588   ac_cv_member_struct_msghdr_msg_accrightslen=yes
41589 else
41590   echo "$as_me: failed program was:" >&5
41591 sed 's/^/| /' conftest.$ac_ext >&5
41592
41593 cat >conftest.$ac_ext <<_ACEOF
41594 /* confdefs.h.  */
41595 _ACEOF
41596 cat confdefs.h >>conftest.$ac_ext
41597 cat >>conftest.$ac_ext <<_ACEOF
41598 /* end confdefs.h.  */
41599 $ac_includes_default
41600 #ifdef HAVE_SYS_SOCKET_H
41601 #include <sys/socket.h>
41602 #endif
41603
41604 int
41605 main ()
41606 {
41607 static struct msghdr ac_aggr;
41608 if (sizeof ac_aggr.msg_accrightslen)
41609 return 0;
41610   ;
41611   return 0;
41612 }
41613 _ACEOF
41614 rm -f conftest.$ac_objext
41615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41616   (eval $ac_compile) 2>conftest.er1
41617   ac_status=$?
41618   grep -v '^ *+' conftest.er1 >conftest.err
41619   rm -f conftest.er1
41620   cat conftest.err >&5
41621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41622   (exit $ac_status); } &&
41623          { ac_try='test -z "$ac_c_werror_flag"
41624                          || test ! -s conftest.err'
41625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41626   (eval $ac_try) 2>&5
41627   ac_status=$?
41628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41629   (exit $ac_status); }; } &&
41630          { ac_try='test -s conftest.$ac_objext'
41631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41632   (eval $ac_try) 2>&5
41633   ac_status=$?
41634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41635   (exit $ac_status); }; }; then
41636   ac_cv_member_struct_msghdr_msg_accrightslen=yes
41637 else
41638   echo "$as_me: failed program was:" >&5
41639 sed 's/^/| /' conftest.$ac_ext >&5
41640
41641 ac_cv_member_struct_msghdr_msg_accrightslen=no
41642 fi
41643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41644 fi
41645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41646 fi
41647 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
41648 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
41649 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
41650
41651 cat >>confdefs.h <<_ACEOF
41652 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
41653 _ACEOF
41654
41655
41656 fi
41657
41658         if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
41659                 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
41660 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
41661 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
41662   echo $ECHO_N "(cached) $ECHO_C" >&6
41663 else
41664   cat >conftest.$ac_ext <<_ACEOF
41665 /* confdefs.h.  */
41666 _ACEOF
41667 cat confdefs.h >>conftest.$ac_ext
41668 cat >>conftest.$ac_ext <<_ACEOF
41669 /* end confdefs.h.  */
41670 $ac_includes_default
41671 #ifdef HAVE_SYS_SOCKET_H
41672 #include <sys/socket.h>
41673 #endif
41674
41675 int
41676 main ()
41677 {
41678 static struct msghdr ac_aggr;
41679 if (ac_aggr.msg_control)
41680 return 0;
41681   ;
41682   return 0;
41683 }
41684 _ACEOF
41685 rm -f conftest.$ac_objext
41686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41687   (eval $ac_compile) 2>conftest.er1
41688   ac_status=$?
41689   grep -v '^ *+' conftest.er1 >conftest.err
41690   rm -f conftest.er1
41691   cat conftest.err >&5
41692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41693   (exit $ac_status); } &&
41694          { ac_try='test -z "$ac_c_werror_flag"
41695                          || test ! -s conftest.err'
41696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41697   (eval $ac_try) 2>&5
41698   ac_status=$?
41699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41700   (exit $ac_status); }; } &&
41701          { ac_try='test -s conftest.$ac_objext'
41702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41703   (eval $ac_try) 2>&5
41704   ac_status=$?
41705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41706   (exit $ac_status); }; }; then
41707   ac_cv_member_struct_msghdr_msg_control=yes
41708 else
41709   echo "$as_me: failed program was:" >&5
41710 sed 's/^/| /' conftest.$ac_ext >&5
41711
41712 cat >conftest.$ac_ext <<_ACEOF
41713 /* confdefs.h.  */
41714 _ACEOF
41715 cat confdefs.h >>conftest.$ac_ext
41716 cat >>conftest.$ac_ext <<_ACEOF
41717 /* end confdefs.h.  */
41718 $ac_includes_default
41719 #ifdef HAVE_SYS_SOCKET_H
41720 #include <sys/socket.h>
41721 #endif
41722
41723 int
41724 main ()
41725 {
41726 static struct msghdr ac_aggr;
41727 if (sizeof ac_aggr.msg_control)
41728 return 0;
41729   ;
41730   return 0;
41731 }
41732 _ACEOF
41733 rm -f conftest.$ac_objext
41734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41735   (eval $ac_compile) 2>conftest.er1
41736   ac_status=$?
41737   grep -v '^ *+' conftest.er1 >conftest.err
41738   rm -f conftest.er1
41739   cat conftest.err >&5
41740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41741   (exit $ac_status); } &&
41742          { ac_try='test -z "$ac_c_werror_flag"
41743                          || test ! -s conftest.err'
41744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41745   (eval $ac_try) 2>&5
41746   ac_status=$?
41747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41748   (exit $ac_status); }; } &&
41749          { ac_try='test -s conftest.$ac_objext'
41750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41751   (eval $ac_try) 2>&5
41752   ac_status=$?
41753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41754   (exit $ac_status); }; }; then
41755   ac_cv_member_struct_msghdr_msg_control=yes
41756 else
41757   echo "$as_me: failed program was:" >&5
41758 sed 's/^/| /' conftest.$ac_ext >&5
41759
41760 ac_cv_member_struct_msghdr_msg_control=no
41761 fi
41762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41763 fi
41764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41765 fi
41766 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
41767 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
41768 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
41769
41770 cat >>confdefs.h <<_ACEOF
41771 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
41772 _ACEOF
41773
41774
41775 fi
41776
41777         fi
41778         LIBSRCS="$LIBSRCS getpeereid.c"
41779 fi
41780 if test "$ac_cv_func_snprintf" != yes ||
41781    test "$ac_cv_func_vsnprintf" != yes; then
41782         if test "$ac_cv_func_snprintf" != yes; then
41783
41784 cat >>confdefs.h <<\_ACEOF
41785 #define snprintf ber_pvt_snprintf
41786 _ACEOF
41787
41788         fi
41789         if test "$ac_cv_func_vsnprintf" != yes; then
41790
41791 cat >>confdefs.h <<\_ACEOF
41792 #define vsnprintf ber_pvt_vsnprintf
41793 _ACEOF
41794
41795         fi
41796 fi
41797
41798
41799 if test "$ol_enable_slapi" != no ; then
41800
41801 for ac_header in ltdl.h
41802 do
41803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41805   echo "$as_me:$LINENO: checking for $ac_header" >&5
41806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41808   echo $ECHO_N "(cached) $ECHO_C" >&6
41809 fi
41810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41812 else
41813   # Is the header compilable?
41814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41816 cat >conftest.$ac_ext <<_ACEOF
41817 /* confdefs.h.  */
41818 _ACEOF
41819 cat confdefs.h >>conftest.$ac_ext
41820 cat >>conftest.$ac_ext <<_ACEOF
41821 /* end confdefs.h.  */
41822 $ac_includes_default
41823 #include <$ac_header>
41824 _ACEOF
41825 rm -f conftest.$ac_objext
41826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41827   (eval $ac_compile) 2>conftest.er1
41828   ac_status=$?
41829   grep -v '^ *+' conftest.er1 >conftest.err
41830   rm -f conftest.er1
41831   cat conftest.err >&5
41832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41833   (exit $ac_status); } &&
41834          { ac_try='test -z "$ac_c_werror_flag"
41835                          || test ! -s conftest.err'
41836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41837   (eval $ac_try) 2>&5
41838   ac_status=$?
41839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41840   (exit $ac_status); }; } &&
41841          { ac_try='test -s conftest.$ac_objext'
41842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41843   (eval $ac_try) 2>&5
41844   ac_status=$?
41845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41846   (exit $ac_status); }; }; then
41847   ac_header_compiler=yes
41848 else
41849   echo "$as_me: failed program was:" >&5
41850 sed 's/^/| /' conftest.$ac_ext >&5
41851
41852 ac_header_compiler=no
41853 fi
41854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41856 echo "${ECHO_T}$ac_header_compiler" >&6
41857
41858 # Is the header present?
41859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41861 cat >conftest.$ac_ext <<_ACEOF
41862 /* confdefs.h.  */
41863 _ACEOF
41864 cat confdefs.h >>conftest.$ac_ext
41865 cat >>conftest.$ac_ext <<_ACEOF
41866 /* end confdefs.h.  */
41867 #include <$ac_header>
41868 _ACEOF
41869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41870   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41871   ac_status=$?
41872   grep -v '^ *+' conftest.er1 >conftest.err
41873   rm -f conftest.er1
41874   cat conftest.err >&5
41875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41876   (exit $ac_status); } >/dev/null; then
41877   if test -s conftest.err; then
41878     ac_cpp_err=$ac_c_preproc_warn_flag
41879     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41880   else
41881     ac_cpp_err=
41882   fi
41883 else
41884   ac_cpp_err=yes
41885 fi
41886 if test -z "$ac_cpp_err"; then
41887   ac_header_preproc=yes
41888 else
41889   echo "$as_me: failed program was:" >&5
41890 sed 's/^/| /' conftest.$ac_ext >&5
41891
41892   ac_header_preproc=no
41893 fi
41894 rm -f conftest.err conftest.$ac_ext
41895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41896 echo "${ECHO_T}$ac_header_preproc" >&6
41897
41898 # So?  What about this header?
41899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41900   yes:no: )
41901     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41903     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41905     ac_header_preproc=yes
41906     ;;
41907   no:yes:* )
41908     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41910     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41911 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41912     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41914     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41915 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41918     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41920     (
41921       cat <<\_ASBOX
41922 ## ------------------------------------------ ##
41923 ## Report this to the AC_PACKAGE_NAME lists.  ##
41924 ## ------------------------------------------ ##
41925 _ASBOX
41926     ) |
41927       sed "s/^/$as_me: WARNING:     /" >&2
41928     ;;
41929 esac
41930 echo "$as_me:$LINENO: checking for $ac_header" >&5
41931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41933   echo $ECHO_N "(cached) $ECHO_C" >&6
41934 else
41935   eval "$as_ac_Header=\$ac_header_preproc"
41936 fi
41937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41939
41940 fi
41941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41942   cat >>confdefs.h <<_ACEOF
41943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41944 _ACEOF
41945
41946 fi
41947
41948 done
41949
41950
41951         if test $ac_cv_header_ltdl_h != yes ; then
41952                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
41953 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
41954    { (exit 1); exit 1; }; }
41955         fi
41956         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
41957 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
41958 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
41959   echo $ECHO_N "(cached) $ECHO_C" >&6
41960 else
41961   ac_check_lib_save_LIBS=$LIBS
41962 LIBS="-lltdl  $LIBS"
41963 cat >conftest.$ac_ext <<_ACEOF
41964 /* confdefs.h.  */
41965 _ACEOF
41966 cat confdefs.h >>conftest.$ac_ext
41967 cat >>conftest.$ac_ext <<_ACEOF
41968 /* end confdefs.h.  */
41969
41970 /* Override any gcc2 internal prototype to avoid an error.  */
41971 #ifdef __cplusplus
41972 extern "C"
41973 #endif
41974 /* We use char because int might match the return type of a gcc2
41975    builtin and then its argument prototype would still apply.  */
41976 char lt_dlinit ();
41977 int
41978 main ()
41979 {
41980 lt_dlinit ();
41981   ;
41982   return 0;
41983 }
41984 _ACEOF
41985 rm -f conftest.$ac_objext conftest$ac_exeext
41986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41987   (eval $ac_link) 2>conftest.er1
41988   ac_status=$?
41989   grep -v '^ *+' conftest.er1 >conftest.err
41990   rm -f conftest.er1
41991   cat conftest.err >&5
41992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41993   (exit $ac_status); } &&
41994          { ac_try='test -z "$ac_c_werror_flag"
41995                          || test ! -s conftest.err'
41996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41997   (eval $ac_try) 2>&5
41998   ac_status=$?
41999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42000   (exit $ac_status); }; } &&
42001          { ac_try='test -s conftest$ac_exeext'
42002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42003   (eval $ac_try) 2>&5
42004   ac_status=$?
42005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42006   (exit $ac_status); }; }; then
42007   ac_cv_lib_ltdl_lt_dlinit=yes
42008 else
42009   echo "$as_me: failed program was:" >&5
42010 sed 's/^/| /' conftest.$ac_ext >&5
42011
42012 ac_cv_lib_ltdl_lt_dlinit=no
42013 fi
42014 rm -f conftest.err conftest.$ac_objext \
42015       conftest$ac_exeext conftest.$ac_ext
42016 LIBS=$ac_check_lib_save_LIBS
42017 fi
42018 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
42019 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
42020 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
42021
42022                 SLAPI_LIBS=-lltdl
42023                 LIBSLAPI=libslapi.a
42024                 LIBSLAPITOOLS=../libslapi.a
42025
42026 cat >>confdefs.h <<\_ACEOF
42027 #define HAVE_LIBLTDL 1
42028 _ACEOF
42029
42030
42031 else
42032   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
42033 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
42034    { (exit 1); exit 1; }; }
42035 fi
42036
42037
42038
42039 cat >>confdefs.h <<\_ACEOF
42040 #define LDAP_SLAPI 1
42041 _ACEOF
42042
42043 fi
42044
42045 if test "$ol_enable_debug" != no ; then
42046
42047 cat >>confdefs.h <<\_ACEOF
42048 #define LDAP_DEBUG 1
42049 _ACEOF
42050
42051 fi
42052 if test "$ol_enable_syslog" = yes ; then
42053
42054 cat >>confdefs.h <<\_ACEOF
42055 #define LDAP_SYSLOG 1
42056 _ACEOF
42057
42058 fi
42059 if test "$ol_link_kbind" != no ; then
42060
42061 cat >>confdefs.h <<\_ACEOF
42062 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
42063 _ACEOF
42064
42065 fi
42066 if test "$ol_enable_proctitle" != no ; then
42067
42068 cat >>confdefs.h <<\_ACEOF
42069 #define LDAP_PROCTITLE 1
42070 _ACEOF
42071
42072 fi
42073 if test "$ol_enable_referrals" != no ; then
42074
42075 cat >>confdefs.h <<\_ACEOF
42076 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
42077 _ACEOF
42078
42079 fi
42080 if test "$ol_enable_local" != no; then
42081
42082 cat >>confdefs.h <<\_ACEOF
42083 #define LDAP_PF_LOCAL 1
42084 _ACEOF
42085
42086 fi
42087 if test "$ol_link_ipv6" != no; then
42088
42089 cat >>confdefs.h <<\_ACEOF
42090 #define LDAP_PF_INET6 1
42091 _ACEOF
42092
42093 fi
42094 if test "$ol_enable_cleartext" != no ; then
42095
42096 cat >>confdefs.h <<\_ACEOF
42097 #define SLAPD_CLEARTEXT 1
42098 _ACEOF
42099
42100 fi
42101 if test "$ol_enable_crypt" != no ; then
42102
42103 cat >>confdefs.h <<\_ACEOF
42104 #define SLAPD_CRYPT 1
42105 _ACEOF
42106
42107 fi
42108 if test "$ol_link_spasswd" != no ; then
42109
42110 cat >>confdefs.h <<\_ACEOF
42111 #define SLAPD_SPASSWD 1
42112 _ACEOF
42113
42114 fi
42115 if test "$ol_enable_multimaster" != no ; then
42116
42117 cat >>confdefs.h <<\_ACEOF
42118 #define SLAPD_MULTIMASTER 1
42119 _ACEOF
42120
42121 fi
42122 if test "$ol_enable_rlookups" != no ; then
42123
42124 cat >>confdefs.h <<\_ACEOF
42125 #define SLAPD_RLOOKUPS 1
42126 _ACEOF
42127
42128 fi
42129 if test "$ol_enable_aci" != no ; then
42130
42131 cat >>confdefs.h <<\_ACEOF
42132 #define SLAPD_ACI_ENABLED 1
42133 _ACEOF
42134
42135         WITH_ACI_ENABLED=yes
42136 else
42137         WITH_ACI_ENABLED=no
42138 fi
42139
42140 if test "$ol_link_modules" != no ; then
42141
42142 cat >>confdefs.h <<\_ACEOF
42143 #define SLAPD_MODULES 1
42144 _ACEOF
42145
42146         BUILD_SLAPD=yes
42147         SLAPD_MODULES_LDFLAGS="-dlopen self"
42148 fi
42149
42150
42151 cat >>confdefs.h <<\_ACEOF
42152 #define SLAPD_MOD_STATIC 1
42153 _ACEOF
42154
42155
42156 cat >>confdefs.h <<\_ACEOF
42157 #define SLAPD_MOD_DYNAMIC 2
42158 _ACEOF
42159
42160
42161 if test "$ol_enable_bdb" != no ; then
42162         BUILD_SLAPD=yes
42163         BUILD_BDB=$ol_enable_bdb
42164         if test "$ol_enable_bdb" = mod ; then
42165                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
42166                 MFLAG=SLAPD_MOD_DYNAMIC
42167         else
42168                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
42169                 MFLAG=SLAPD_MOD_STATIC
42170         fi
42171
42172 cat >>confdefs.h <<_ACEOF
42173 #define SLAPD_BDB $MFLAG
42174 _ACEOF
42175
42176 fi
42177
42178 if test "$ol_enable_dnssrv" != no ; then
42179         BUILD_SLAPD=yes
42180         BUILD_DNSSRV=$ol_enable_dnssrv
42181         if test "$ol_enable_dnssrv" = mod ; then
42182                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
42183                 MFLAG=SLAPD_MOD_DYNAMIC
42184         else
42185                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
42186                 MFLAG=SLAPD_MOD_STATIC
42187         fi
42188
42189 cat >>confdefs.h <<_ACEOF
42190 #define SLAPD_DNSSRV $MFLAG
42191 _ACEOF
42192
42193 fi
42194
42195 if test "$ol_enable_hdb" != no ; then
42196         BUILD_SLAPD=yes
42197         BUILD_HDB=$ol_enable_hdb
42198         if test "$ol_enable_hdb" = mod ; then
42199                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
42200                 MFLAG=SLAPD_MOD_DYNAMIC
42201         else
42202                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
42203                 MFLAG=SLAPD_MOD_STATIC
42204         fi
42205
42206 cat >>confdefs.h <<_ACEOF
42207 #define SLAPD_HDB $MFLAG
42208 _ACEOF
42209
42210 fi
42211
42212 if test "$ol_enable_ldap" != no ; then
42213         BUILD_SLAPD=yes
42214         BUILD_LDAP=$ol_enable_ldap
42215         if test "$ol_enable_ldap" = mod ; then
42216                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
42217                 MFLAG=SLAPD_MOD_DYNAMIC
42218         else
42219                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
42220                 MFLAG=SLAPD_MOD_STATIC
42221         fi
42222
42223 cat >>confdefs.h <<_ACEOF
42224 #define SLAPD_LDAP $MFLAG
42225 _ACEOF
42226
42227 fi
42228
42229 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
42230         BUILD_SLAPD=yes
42231         BUILD_LDBM=$ol_enable_ldbm
42232         if test "$ol_enable_ldbm" = mod ; then
42233                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
42234                 MFLAG=SLAPD_MOD_DYNAMIC
42235         else
42236                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
42237                 MFLAG=SLAPD_MOD_STATIC
42238         fi
42239
42240 cat >>confdefs.h <<_ACEOF
42241 #define SLAPD_LDBM $MFLAG
42242 _ACEOF
42243
42244 fi
42245
42246 if test "$ol_enable_meta" != no ; then
42247         BUILD_SLAPD=yes
42248         BUILD_META=$ol_enable_meta
42249         BUILD_REWRITE=yes
42250         if test "$ol_enable_meta" = mod ; then
42251                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
42252                 MFLAG=SLAPD_MOD_DYNAMIC
42253         else
42254                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
42255                 MFLAG=SLAPD_MOD_STATIC
42256         fi
42257
42258 cat >>confdefs.h <<_ACEOF
42259 #define SLAPD_META $MFLAG
42260 _ACEOF
42261
42262 fi
42263
42264 if test "$ol_enable_monitor" != no ; then
42265         BUILD_SLAPD=yes
42266         BUILD_MONITOR=$ol_enable_monitor
42267         if test "$ol_enable_monitor" = mod ; then
42268                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
42269                 MFLAG=SLAPD_MOD_DYNAMIC
42270         else
42271                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
42272                 MFLAG=SLAPD_MOD_STATIC
42273         fi
42274
42275 cat >>confdefs.h <<_ACEOF
42276 #define SLAPD_MONITOR $MFLAG
42277 _ACEOF
42278
42279 fi
42280
42281 if test "$ol_enable_null" != no ; then
42282         BUILD_SLAPD=yes
42283         BUILD_NULL=$ol_enable_null
42284         if test "$ol_enable_null" = mod ; then
42285                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
42286                 MFLAG=SLAPD_MOD_DYNAMIC
42287         else
42288                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
42289                 MFLAG=SLAPD_MOD_STATIC
42290         fi
42291
42292 cat >>confdefs.h <<_ACEOF
42293 #define SLAPD_NULL $MFLAG
42294 _ACEOF
42295
42296 fi
42297
42298 if test "$ol_enable_passwd" != no ; then
42299         BUILD_SLAPD=yes
42300         BUILD_PASSWD=$ol_enable_passwd
42301         if test "$ol_enable_passwd" = mod ; then
42302                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
42303                 MFLAG=SLAPD_MOD_DYNAMIC
42304         else
42305                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
42306                 MFLAG=SLAPD_MOD_STATIC
42307         fi
42308
42309 cat >>confdefs.h <<_ACEOF
42310 #define SLAPD_PASSWD $MFLAG
42311 _ACEOF
42312
42313 fi
42314
42315 if test "$ol_link_perl" != no ; then
42316         BUILD_SLAPD=yes
42317         BUILD_PERL=$ol_enable_perl
42318         if test "$ol_enable_perl" = mod ; then
42319                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
42320                 MFLAG=SLAPD_MOD_DYNAMIC
42321         else
42322                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
42323                 MFLAG=SLAPD_MOD_STATIC
42324         fi
42325
42326 cat >>confdefs.h <<_ACEOF
42327 #define SLAPD_PERL $MFLAG
42328 _ACEOF
42329
42330 fi
42331
42332 if test "$ol_enable_relay" != no ; then
42333         BUILD_SLAPD=yes
42334         BUILD_RELAY=$ol_enable_relay
42335         if test "$ol_enable_relay" = mod ; then
42336                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
42337                 MFLAG=SLAPD_MOD_DYNAMIC
42338         else
42339                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
42340                 MFLAG=SLAPD_MOD_STATIC
42341         fi
42342
42343 cat >>confdefs.h <<_ACEOF
42344 #define SLAPD_RELAY $MFLAG
42345 _ACEOF
42346
42347 fi
42348
42349 if test "$ol_enable_shell" != no ; then
42350         if test "$ol_link_threads" != no ; then
42351                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
42352 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
42353         fi
42354         BUILD_SLAPD=yes
42355         BUILD_SHELL=$ol_enable_shell
42356         if test "$ol_enable_shell" = mod ; then
42357                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
42358                 MFLAG=SLAPD_MOD_DYNAMIC
42359         else
42360                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
42361                 MFLAG=SLAPD_MOD_STATIC
42362         fi
42363
42364 cat >>confdefs.h <<_ACEOF
42365 #define SLAPD_SHELL $MFLAG
42366 _ACEOF
42367
42368 fi
42369
42370 if test "$ol_link_sql" != no ; then
42371         BUILD_SLAPD=yes
42372         BUILD_SQL=$ol_enable_sql
42373         if test "$ol_enable_sql" = mod; then
42374                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
42375                 MFLAG=SLAPD_MOD_DYNAMIC
42376         else
42377                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
42378                 MFLAG=SLAPD_MOD_STATIC
42379         fi
42380
42381 cat >>confdefs.h <<_ACEOF
42382 #define SLAPD_SQL $MFLAG
42383 _ACEOF
42384
42385 fi
42386
42387 if test "$ol_enable_accesslog" != no ; then
42388         BUILD_ACCESSLOG=$ol_enable_accesslog
42389         if test "$ol_enable_accesslog" = mod ; then
42390                 MFLAG=SLAPD_MOD_DYNAMIC
42391                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
42392         else
42393                 MFLAG=SLAPD_MOD_STATIC
42394                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
42395         fi
42396
42397 cat >>confdefs.h <<_ACEOF
42398 #define SLAPD_OVER_ACCESSLOG $MFLAG
42399 _ACEOF
42400
42401 fi
42402
42403 if test "$ol_enable_denyop" != no ; then
42404         BUILD_DENYOP=$ol_enable_denyop
42405         if test "$ol_enable_denyop" = mod ; then
42406                 MFLAG=SLAPD_MOD_DYNAMIC
42407                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
42408         else
42409                 MFLAG=SLAPD_MOD_STATIC
42410                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
42411         fi
42412
42413 cat >>confdefs.h <<_ACEOF
42414 #define SLAPD_OVER_DENYOP $MFLAG
42415 _ACEOF
42416
42417 fi
42418
42419 if test "$ol_enable_dyngroup" != no ; then
42420         BUILD_DYNGROUP=$ol_enable_dyngroup
42421         if test "$ol_enable_dyngroup" = mod ; then
42422                 MFLAG=SLAPD_MOD_DYNAMIC
42423                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
42424         else
42425                 MFLAG=SLAPD_MOD_STATIC
42426                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
42427         fi
42428
42429 cat >>confdefs.h <<_ACEOF
42430 #define SLAPD_OVER_DYNGROUP $MFLAG
42431 _ACEOF
42432
42433 fi
42434
42435 if test "$ol_enable_dynlist" != no ; then
42436         BUILD_DYNLIST=$ol_enable_dynlist
42437         if test "$ol_enable_dynlist" = mod ; then
42438                 MFLAG=SLAPD_MOD_DYNAMIC
42439                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
42440         else
42441                 MFLAG=SLAPD_MOD_STATIC
42442                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
42443         fi
42444
42445 cat >>confdefs.h <<_ACEOF
42446 #define SLAPD_OVER_DYNLIST $MFLAG
42447 _ACEOF
42448
42449 fi
42450
42451 if test "$ol_enable_lastmod" != no ; then
42452         BUILD_LASTMOD=$ol_enable_lastmod
42453         if test "$ol_enable_lastmod" = mod ; then
42454                 MFLAG=SLAPD_MOD_DYNAMIC
42455                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
42456         else
42457                 MFLAG=SLAPD_MOD_STATIC
42458                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
42459         fi
42460
42461 cat >>confdefs.h <<_ACEOF
42462 #define SLAPD_OVER_LASTMOD $MFLAG
42463 _ACEOF
42464
42465 fi
42466
42467 if test "$ol_enable_ppolicy" != no ; then
42468         BUILD_PPOLICY=$ol_enable_ppolicy
42469         if test "$ol_enable_ppolicy" = mod ; then
42470                 MFLAG=SLAPD_MOD_DYNAMIC
42471                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
42472         else
42473                 MFLAG=SLAPD_MOD_STATIC
42474                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
42475         fi
42476
42477 cat >>confdefs.h <<_ACEOF
42478 #define SLAPD_OVER_PPOLICY $MFLAG
42479 _ACEOF
42480
42481 fi
42482
42483 if test "$ol_enable_proxycache" != no ; then
42484         BUILD_PROXYCACHE=$ol_enable_proxycache
42485         if test "$ol_enable_proxycache" = mod ; then
42486                 MFLAG=SLAPD_MOD_DYNAMIC
42487                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
42488         else
42489                 MFLAG=SLAPD_MOD_STATIC
42490                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
42491         fi
42492
42493 cat >>confdefs.h <<_ACEOF
42494 #define SLAPD_OVER_PROXYCACHE $MFLAG
42495 _ACEOF
42496
42497 fi
42498
42499 if test "$ol_enable_refint" != no ; then
42500         BUILD_REFINT=$ol_enable_refint
42501         if test "$ol_enable_refint" = mod ; then
42502                 MFLAG=SLAPD_MOD_DYNAMIC
42503                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
42504         else
42505                 MFLAG=SLAPD_MOD_STATIC
42506                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
42507         fi
42508
42509 cat >>confdefs.h <<_ACEOF
42510 #define SLAPD_OVER_REFINT $MFLAG
42511 _ACEOF
42512
42513 fi
42514
42515 if test "$ol_enable_retcode" != no ; then
42516         BUILD_RETCODE=$ol_enable_retcode
42517         if test "$ol_enable_retcode" = mod ; then
42518                 MFLAG=SLAPD_MOD_DYNAMIC
42519                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
42520         else
42521                 MFLAG=SLAPD_MOD_STATIC
42522                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
42523         fi
42524
42525 cat >>confdefs.h <<_ACEOF
42526 #define SLAPD_OVER_RETCODE $MFLAG
42527 _ACEOF
42528
42529 fi
42530
42531 if test "$ol_enable_rwm" != no ; then
42532         BUILD_REWRITE=yes
42533         BUILD_RWM=$ol_enable_rwm
42534         if test "$ol_enable_rwm" = mod ; then
42535                 MFLAG=SLAPD_MOD_DYNAMIC
42536                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
42537         else
42538                 MFLAG=SLAPD_MOD_STATIC
42539                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
42540         fi
42541
42542 cat >>confdefs.h <<_ACEOF
42543 #define SLAPD_OVER_RWM $MFLAG
42544 _ACEOF
42545
42546 fi
42547
42548 if test "$ol_enable_syncprov" != no ; then
42549         BUILD_SYNCPROV=$ol_enable_syncprov
42550         if test "$ol_enable_syncprov" = mod ; then
42551                 MFLAG=SLAPD_MOD_DYNAMIC
42552                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
42553         else
42554                 MFLAG=SLAPD_MOD_STATIC
42555                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
42556         fi
42557
42558 cat >>confdefs.h <<_ACEOF
42559 #define SLAPD_OVER_SYNCPROV $MFLAG
42560 _ACEOF
42561
42562 fi
42563
42564 if test "$ol_enable_translucent" != no ; then
42565         BUILD_TRANSLUCENT=$ol_enable_translucent
42566         if test "$ol_enable_translucent" = mod ; then
42567                 MFLAG=SLAPD_MOD_DYNAMIC
42568                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
42569         else
42570                 MFLAG=SLAPD_MOD_STATIC
42571                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
42572         fi
42573
42574 cat >>confdefs.h <<_ACEOF
42575 #define SLAPD_OVER_TRANSLUCENT $MFLAG
42576 _ACEOF
42577
42578 fi
42579
42580 if test "$ol_enable_unique" != no ; then
42581         BUILD_UNIQUE=$ol_enable_unique
42582         if test "$ol_enable_unique" = mod ; then
42583                 MFLAG=SLAPD_MOD_DYNAMIC
42584                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
42585         else
42586                 MFLAG=SLAPD_MOD_STATIC
42587                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
42588         fi
42589
42590 cat >>confdefs.h <<_ACEOF
42591 #define SLAPD_OVER_UNIQUE $MFLAG
42592 _ACEOF
42593
42594 fi
42595
42596 if test "$ol_enable_valsort" != no ; then
42597         BUILD_VALSORT=$ol_enable_valsort
42598         if test "$ol_enable_valsort" = mod ; then
42599                 MFLAG=SLAPD_MOD_DYNAMIC
42600                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
42601         else
42602                 MFLAG=SLAPD_MOD_STATIC
42603                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
42604         fi
42605
42606 cat >>confdefs.h <<_ACEOF
42607 #define SLAPD_OVER_VALSORT $MFLAG
42608 _ACEOF
42609
42610 fi
42611
42612 if test "$ol_enable_slurpd" != no &&
42613    test "$ol_link_threads" != no &&
42614    test $BUILD_SLAPD = yes ; then
42615         BUILD_SLURPD=yes
42616 fi
42617
42618 if test "$ol_enable_rewrite" != no ; then
42619
42620 cat >>confdefs.h <<\_ACEOF
42621 #define ENABLE_REWRITE 1
42622 _ACEOF
42623
42624         BUILD_REWRITE=yes
42625 fi
42626
42627 if test "$ol_enable_slapi" != no ; then
42628
42629 cat >>confdefs.h <<\_ACEOF
42630 #define ENABLE_SLAPI 1
42631 _ACEOF
42632
42633         BUILD_SLAPI=yes
42634         SLAPD_SLAPI_DEPEND=libslapi.a
42635 fi
42636
42637
42638
42639 if test "$ac_cv_mingw32" = yes ; then
42640         PLAT=NT
42641         SLAPD_MODULES_LDFLAGS=
42642 else
42643         PLAT=UNIX
42644 fi
42645
42646
42647
42648
42649
42650
42651
42652
42653
42654
42655
42656
42657
42658
42659
42660
42661
42662
42663
42664
42665
42666
42667
42668
42669
42670
42671
42672
42673
42674
42675
42676
42677
42678
42679
42680
42681
42682
42683
42684
42685
42686
42687
42688
42689
42690
42691
42692
42693
42694
42695
42696
42697
42698
42699
42700
42701
42702
42703
42704
42705
42706
42707
42708
42709
42710
42711
42712
42713
42714
42715
42716
42717
42718
42719
42720
42721
42722
42723
42724
42725 # Check whether --with-xxinstall or --without-xxinstall was given.
42726 if test "${with_xxinstall+set}" = set; then
42727   withval="$with_xxinstall"
42728
42729 fi;
42730
42731
42732                                                                                                                                                                                                                                                                                                                                                                                                                 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"
42733
42734
42735           ac_config_commands="$ac_config_commands default"
42736
42737
42738
42739 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42740 # Let make expand exec_prefix.
42741 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42742
42743 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42744 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42745 # trailing colons and then remove the whole line if VPATH becomes empty
42746 # (actually we leave an empty line to preserve line numbers).
42747 if test "x$srcdir" = x.; then
42748   ac_vpsub='/^[  ]*VPATH[        ]*=/{
42749 s/:*\$(srcdir):*/:/;
42750 s/:*\${srcdir}:*/:/;
42751 s/:*@srcdir@:*/:/;
42752 s/^\([^=]*=[     ]*\):*/\1/;
42753 s/:*$//;
42754 s/^[^=]*=[       ]*$//;
42755 }'
42756 fi
42757
42758 DEFS=-DHAVE_CONFIG_H
42759
42760 ac_libobjs=
42761 ac_ltlibobjs=
42762 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42763   # 1. Remove the extension, and $U if already installed.
42764   ac_i=`echo "$ac_i" |
42765          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
42766   # 2. Add them.
42767   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42768   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42769 done
42770 LIBOBJS=$ac_libobjs
42771
42772 LTLIBOBJS=$ac_ltlibobjs
42773
42774
42775 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42776   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42777 Usually this means the macro was only invoked conditionally." >&5
42778 echo "$as_me: error: conditional \"AMDEP\" was never defined.
42779 Usually this means the macro was only invoked conditionally." >&2;}
42780    { (exit 1); exit 1; }; }
42781 fi
42782 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42783   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42784 Usually this means the macro was only invoked conditionally." >&5
42785 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42786 Usually this means the macro was only invoked conditionally." >&2;}
42787    { (exit 1); exit 1; }; }
42788 fi
42789 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42790   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42791 Usually this means the macro was only invoked conditionally." >&5
42792 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42793 Usually this means the macro was only invoked conditionally." >&2;}
42794    { (exit 1); exit 1; }; }
42795 fi
42796
42797 : ${CONFIG_STATUS=./config.status}
42798 ac_clean_files_save=$ac_clean_files
42799 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42800 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42801 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42802 cat >$CONFIG_STATUS <<_ACEOF
42803 #! $SHELL
42804 # Generated by $as_me.
42805 # Run this file to recreate the current configuration.
42806 # Compiler output produced by configure, useful for debugging
42807 # configure, is in config.log if it exists.
42808
42809 debug=false
42810 ac_cs_recheck=false
42811 ac_cs_silent=false
42812 SHELL=\${CONFIG_SHELL-$SHELL}
42813 _ACEOF
42814
42815 cat >>$CONFIG_STATUS <<\_ACEOF
42816 ## --------------------- ##
42817 ## M4sh Initialization.  ##
42818 ## --------------------- ##
42819
42820 # Be Bourne compatible
42821 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42822   emulate sh
42823   NULLCMD=:
42824   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42825   # is contrary to our usage.  Disable this feature.
42826   alias -g '${1+"$@"}'='"$@"'
42827 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42828   set -o posix
42829 fi
42830 DUALCASE=1; export DUALCASE # for MKS sh
42831
42832 # Support unset when possible.
42833 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42834   as_unset=unset
42835 else
42836   as_unset=false
42837 fi
42838
42839
42840 # Work around bugs in pre-3.0 UWIN ksh.
42841 $as_unset ENV MAIL MAILPATH
42842 PS1='$ '
42843 PS2='> '
42844 PS4='+ '
42845
42846 # NLS nuisances.
42847 for as_var in \
42848   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42849   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42850   LC_TELEPHONE LC_TIME
42851 do
42852   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42853     eval $as_var=C; export $as_var
42854   else
42855     $as_unset $as_var
42856   fi
42857 done
42858
42859 # Required to use basename.
42860 if expr a : '\(a\)' >/dev/null 2>&1; then
42861   as_expr=expr
42862 else
42863   as_expr=false
42864 fi
42865
42866 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42867   as_basename=basename
42868 else
42869   as_basename=false
42870 fi
42871
42872
42873 # Name of the executable.
42874 as_me=`$as_basename "$0" ||
42875 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42876          X"$0" : 'X\(//\)$' \| \
42877          X"$0" : 'X\(/\)$' \| \
42878          .     : '\(.\)' 2>/dev/null ||
42879 echo X/"$0" |
42880     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42881           /^X\/\(\/\/\)$/{ s//\1/; q; }
42882           /^X\/\(\/\).*/{ s//\1/; q; }
42883           s/.*/./; q'`
42884
42885
42886 # PATH needs CR, and LINENO needs CR and PATH.
42887 # Avoid depending upon Character Ranges.
42888 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42889 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42890 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42891 as_cr_digits='0123456789'
42892 as_cr_alnum=$as_cr_Letters$as_cr_digits
42893
42894 # The user is always right.
42895 if test "${PATH_SEPARATOR+set}" != set; then
42896   echo "#! /bin/sh" >conf$$.sh
42897   echo  "exit 0"   >>conf$$.sh
42898   chmod +x conf$$.sh
42899   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42900     PATH_SEPARATOR=';'
42901   else
42902     PATH_SEPARATOR=:
42903   fi
42904   rm -f conf$$.sh
42905 fi
42906
42907
42908   as_lineno_1=$LINENO
42909   as_lineno_2=$LINENO
42910   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42911   test "x$as_lineno_1" != "x$as_lineno_2" &&
42912   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
42913   # Find who we are.  Look in the path if we contain no path at all
42914   # relative or not.
42915   case $0 in
42916     *[\\/]* ) as_myself=$0 ;;
42917     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42918 for as_dir in $PATH
42919 do
42920   IFS=$as_save_IFS
42921   test -z "$as_dir" && as_dir=.
42922   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42923 done
42924
42925        ;;
42926   esac
42927   # We did not find ourselves, most probably we were run as `sh COMMAND'
42928   # in which case we are not to be found in the path.
42929   if test "x$as_myself" = x; then
42930     as_myself=$0
42931   fi
42932   if test ! -f "$as_myself"; then
42933     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42934 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42935    { (exit 1); exit 1; }; }
42936   fi
42937   case $CONFIG_SHELL in
42938   '')
42939     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42940 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42941 do
42942   IFS=$as_save_IFS
42943   test -z "$as_dir" && as_dir=.
42944   for as_base in sh bash ksh sh5; do
42945          case $as_dir in
42946          /*)
42947            if ("$as_dir/$as_base" -c '
42948   as_lineno_1=$LINENO
42949   as_lineno_2=$LINENO
42950   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42951   test "x$as_lineno_1" != "x$as_lineno_2" &&
42952   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
42953              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42954              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42955              CONFIG_SHELL=$as_dir/$as_base
42956              export CONFIG_SHELL
42957              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42958            fi;;
42959          esac
42960        done
42961 done
42962 ;;
42963   esac
42964
42965   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42966   # uniformly replaced by the line number.  The first 'sed' inserts a
42967   # line-number line before each line; the second 'sed' does the real
42968   # work.  The second script uses 'N' to pair each line-number line
42969   # with the numbered line, and appends trailing '-' during
42970   # substitution so that $LINENO is not a special case at line end.
42971   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42972   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
42973   sed '=' <$as_myself |
42974     sed '
42975       N
42976       s,$,-,
42977       : loop
42978       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42979       t loop
42980       s,-$,,
42981       s,^['$as_cr_digits']*\n,,
42982     ' >$as_me.lineno &&
42983   chmod +x $as_me.lineno ||
42984     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42985 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42986    { (exit 1); exit 1; }; }
42987
42988   # Don't try to exec as it changes $[0], causing all sort of problems
42989   # (the dirname of $[0] is not the place where we might find the
42990   # original and so on.  Autoconf is especially sensible to this).
42991   . ./$as_me.lineno
42992   # Exit status is that of the last command.
42993   exit
42994 }
42995
42996
42997 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42998   *c*,-n*) ECHO_N= ECHO_C='
42999 ' ECHO_T='      ' ;;
43000   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43001   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
43002 esac
43003
43004 if expr a : '\(a\)' >/dev/null 2>&1; then
43005   as_expr=expr
43006 else
43007   as_expr=false
43008 fi
43009
43010 rm -f conf$$ conf$$.exe conf$$.file
43011 echo >conf$$.file
43012 if ln -s conf$$.file conf$$ 2>/dev/null; then
43013   # We could just check for DJGPP; but this test a) works b) is more generic
43014   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43015   if test -f conf$$.exe; then
43016     # Don't use ln at all; we don't have any links
43017     as_ln_s='cp -p'
43018   else
43019     as_ln_s='ln -s'
43020   fi
43021 elif ln conf$$.file conf$$ 2>/dev/null; then
43022   as_ln_s=ln
43023 else
43024   as_ln_s='cp -p'
43025 fi
43026 rm -f conf$$ conf$$.exe conf$$.file
43027
43028 if mkdir -p . 2>/dev/null; then
43029   as_mkdir_p=:
43030 else
43031   test -d ./-p && rmdir ./-p
43032   as_mkdir_p=false
43033 fi
43034
43035 as_executable_p="test -f"
43036
43037 # Sed expression to map a string onto a valid CPP name.
43038 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43039
43040 # Sed expression to map a string onto a valid variable name.
43041 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43042
43043
43044 # IFS
43045 # We need space, tab and new line, in precisely that order.
43046 as_nl='
43047 '
43048 IFS="   $as_nl"
43049
43050 # CDPATH.
43051 $as_unset CDPATH
43052
43053 exec 6>&1
43054
43055 # Open the log real soon, to keep \$[0] and so on meaningful, and to
43056 # report actual input values of CONFIG_FILES etc. instead of their
43057 # values after options handling.  Logging --version etc. is OK.
43058 exec 5>>config.log
43059 {
43060   echo
43061   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43062 ## Running $as_me. ##
43063 _ASBOX
43064 } >&5
43065 cat >&5 <<_CSEOF
43066
43067 This file was extended by $as_me, which was
43068 generated by GNU Autoconf 2.59.  Invocation command line was
43069
43070   CONFIG_FILES    = $CONFIG_FILES
43071   CONFIG_HEADERS  = $CONFIG_HEADERS
43072   CONFIG_LINKS    = $CONFIG_LINKS
43073   CONFIG_COMMANDS = $CONFIG_COMMANDS
43074   $ $0 $@
43075
43076 _CSEOF
43077 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43078 echo >&5
43079 _ACEOF
43080
43081 # Files that config.status was made for.
43082 if test -n "$ac_config_files"; then
43083   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43084 fi
43085
43086 if test -n "$ac_config_headers"; then
43087   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43088 fi
43089
43090 if test -n "$ac_config_links"; then
43091   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43092 fi
43093
43094 if test -n "$ac_config_commands"; then
43095   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43096 fi
43097
43098 cat >>$CONFIG_STATUS <<\_ACEOF
43099
43100 ac_cs_usage="\
43101 \`$as_me' instantiates files from templates according to the
43102 current configuration.
43103
43104 Usage: $0 [OPTIONS] [FILE]...
43105
43106   -h, --help       print this help, then exit
43107   -V, --version    print version number, then exit
43108   -q, --quiet      do not print progress messages
43109   -d, --debug      don't remove temporary files
43110       --recheck    update $as_me by reconfiguring in the same conditions
43111   --file=FILE[:TEMPLATE]
43112                    instantiate the configuration file FILE
43113   --header=FILE[:TEMPLATE]
43114                    instantiate the configuration header FILE
43115
43116 Configuration files:
43117 $config_files
43118
43119 Configuration headers:
43120 $config_headers
43121
43122 Configuration commands:
43123 $config_commands
43124
43125 Report bugs to <bug-autoconf@gnu.org>."
43126 _ACEOF
43127
43128 cat >>$CONFIG_STATUS <<_ACEOF
43129 ac_cs_version="\\
43130 config.status
43131 configured by $0, generated by GNU Autoconf 2.59,
43132   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43133
43134 Copyright (C) 2003 Free Software Foundation, Inc.
43135 This config.status script is free software; the Free Software Foundation
43136 gives unlimited permission to copy, distribute and modify it."
43137 srcdir=$srcdir
43138 INSTALL="$INSTALL"
43139 _ACEOF
43140
43141 cat >>$CONFIG_STATUS <<\_ACEOF
43142 # If no file are specified by the user, then we need to provide default
43143 # value.  By we need to know if files were specified by the user.
43144 ac_need_defaults=:
43145 while test $# != 0
43146 do
43147   case $1 in
43148   --*=*)
43149     ac_option=`expr "x$1" : 'x\([^=]*\)='`
43150     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43151     ac_shift=:
43152     ;;
43153   -*)
43154     ac_option=$1
43155     ac_optarg=$2
43156     ac_shift=shift
43157     ;;
43158   *) # This is not an option, so the user has probably given explicit
43159      # arguments.
43160      ac_option=$1
43161      ac_need_defaults=false;;
43162   esac
43163
43164   case $ac_option in
43165   # Handling of the options.
43166 _ACEOF
43167 cat >>$CONFIG_STATUS <<\_ACEOF
43168   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43169     ac_cs_recheck=: ;;
43170   --version | --vers* | -V )
43171     echo "$ac_cs_version"; exit 0 ;;
43172   --he | --h)
43173     # Conflict between --help and --header
43174     { { echo "$as_me:$LINENO: error: ambiguous option: $1
43175 Try \`$0 --help' for more information." >&5
43176 echo "$as_me: error: ambiguous option: $1
43177 Try \`$0 --help' for more information." >&2;}
43178    { (exit 1); exit 1; }; };;
43179   --help | --hel | -h )
43180     echo "$ac_cs_usage"; exit 0 ;;
43181   --debug | --d* | -d )
43182     debug=: ;;
43183   --file | --fil | --fi | --f )
43184     $ac_shift
43185     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43186     ac_need_defaults=false;;
43187   --header | --heade | --head | --hea )
43188     $ac_shift
43189     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43190     ac_need_defaults=false;;
43191   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43192   | -silent | --silent | --silen | --sile | --sil | --si | --s)
43193     ac_cs_silent=: ;;
43194
43195   # This is an error.
43196   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43197 Try \`$0 --help' for more information." >&5
43198 echo "$as_me: error: unrecognized option: $1
43199 Try \`$0 --help' for more information." >&2;}
43200    { (exit 1); exit 1; }; } ;;
43201
43202   *) ac_config_targets="$ac_config_targets $1" ;;
43203
43204   esac
43205   shift
43206 done
43207
43208 ac_configure_extra_args=
43209
43210 if $ac_cs_silent; then
43211   exec 6>/dev/null
43212   ac_configure_extra_args="$ac_configure_extra_args --silent"
43213 fi
43214
43215 _ACEOF
43216 cat >>$CONFIG_STATUS <<_ACEOF
43217 if \$ac_cs_recheck; then
43218   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43219   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43220 fi
43221
43222 _ACEOF
43223
43224 cat >>$CONFIG_STATUS <<_ACEOF
43225 #
43226 # INIT-COMMANDS section.
43227 #
43228
43229 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
43230 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
43231
43232 _ACEOF
43233
43234
43235
43236 cat >>$CONFIG_STATUS <<\_ACEOF
43237 for ac_config_target in $ac_config_targets
43238 do
43239   case "$ac_config_target" in
43240   # Handling of arguments.
43241   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
43242   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
43243   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
43244   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
43245   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
43246   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
43247   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
43248   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
43249   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
43250   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
43251   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
43252   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43253   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43254   "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" ;;
43255   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43256   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43257   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43258   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
43259   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
43260   "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" ;;
43261   "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" ;;
43262   "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" ;;
43263   "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" ;;
43264   "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" ;;
43265   "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" ;;
43266   "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" ;;
43267   "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" ;;
43268   "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" ;;
43269   "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" ;;
43270   "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" ;;
43271   "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" ;;
43272   "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" ;;
43273   "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" ;;
43274   "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" ;;
43275   "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" ;;
43276   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
43277   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
43278   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
43279   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
43280   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
43281   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
43282   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43283   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
43284   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
43285   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
43286   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43287 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43288    { (exit 1); exit 1; }; };;
43289   esac
43290 done
43291
43292 # If the user did not use the arguments to specify the items to instantiate,
43293 # then the envvar interface is used.  Set only those that are not.
43294 # We use the long form for the default assignment because of an extremely
43295 # bizarre bug on SunOS 4.1.3.
43296 if $ac_need_defaults; then
43297   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43298   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43299   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43300 fi
43301
43302 # Have a temporary directory for convenience.  Make it in the build tree
43303 # simply because there is no reason to put it here, and in addition,
43304 # creating and moving files from /tmp can sometimes cause problems.
43305 # Create a temporary directory, and hook for its removal unless debugging.
43306 $debug ||
43307 {
43308   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43309   trap '{ (exit 1); exit 1; }' 1 2 13 15
43310 }
43311
43312 # Create a (secure) tmp directory for tmp files.
43313
43314 {
43315   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43316   test -n "$tmp" && test -d "$tmp"
43317 }  ||
43318 {
43319   tmp=./confstat$$-$RANDOM
43320   (umask 077 && mkdir $tmp)
43321 } ||
43322 {
43323    echo "$me: cannot create a temporary directory in ." >&2
43324    { (exit 1); exit 1; }
43325 }
43326
43327 _ACEOF
43328
43329 cat >>$CONFIG_STATUS <<_ACEOF
43330
43331 #
43332 # CONFIG_FILES section.
43333 #
43334
43335 # No need to generate the scripts if there are no CONFIG_FILES.
43336 # This happens for instance when ./config.status config.h
43337 if test -n "\$CONFIG_FILES"; then
43338   # Protect against being on the right side of a sed subst in config.status.
43339   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43340    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43341 s,@SHELL@,$SHELL,;t t
43342 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43343 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43344 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43345 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43346 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43347 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43348 s,@exec_prefix@,$exec_prefix,;t t
43349 s,@prefix@,$prefix,;t t
43350 s,@program_transform_name@,$program_transform_name,;t t
43351 s,@bindir@,$bindir,;t t
43352 s,@sbindir@,$sbindir,;t t
43353 s,@libexecdir@,$libexecdir,;t t
43354 s,@datadir@,$datadir,;t t
43355 s,@sysconfdir@,$sysconfdir,;t t
43356 s,@sharedstatedir@,$sharedstatedir,;t t
43357 s,@localstatedir@,$localstatedir,;t t
43358 s,@libdir@,$libdir,;t t
43359 s,@includedir@,$includedir,;t t
43360 s,@oldincludedir@,$oldincludedir,;t t
43361 s,@infodir@,$infodir,;t t
43362 s,@mandir@,$mandir,;t t
43363 s,@build_alias@,$build_alias,;t t
43364 s,@host_alias@,$host_alias,;t t
43365 s,@target_alias@,$target_alias,;t t
43366 s,@DEFS@,$DEFS,;t t
43367 s,@ECHO_C@,$ECHO_C,;t t
43368 s,@ECHO_N@,$ECHO_N,;t t
43369 s,@ECHO_T@,$ECHO_T,;t t
43370 s,@LIBS@,$LIBS,;t t
43371 s,@build@,$build,;t t
43372 s,@build_cpu@,$build_cpu,;t t
43373 s,@build_vendor@,$build_vendor,;t t
43374 s,@build_os@,$build_os,;t t
43375 s,@host@,$host,;t t
43376 s,@host_cpu@,$host_cpu,;t t
43377 s,@host_vendor@,$host_vendor,;t t
43378 s,@host_os@,$host_os,;t t
43379 s,@target@,$target,;t t
43380 s,@target_cpu@,$target_cpu,;t t
43381 s,@target_vendor@,$target_vendor,;t t
43382 s,@target_os@,$target_os,;t t
43383 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43384 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43385 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43386 s,@CYGPATH_W@,$CYGPATH_W,;t t
43387 s,@PACKAGE@,$PACKAGE,;t t
43388 s,@VERSION@,$VERSION,;t t
43389 s,@ACLOCAL@,$ACLOCAL,;t t
43390 s,@AUTOCONF@,$AUTOCONF,;t t
43391 s,@AUTOMAKE@,$AUTOMAKE,;t t
43392 s,@AUTOHEADER@,$AUTOHEADER,;t t
43393 s,@MAKEINFO@,$MAKEINFO,;t t
43394 s,@install_sh@,$install_sh,;t t
43395 s,@STRIP@,$STRIP,;t t
43396 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43397 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
43398 s,@mkdir_p@,$mkdir_p,;t t
43399 s,@AWK@,$AWK,;t t
43400 s,@SET_MAKE@,$SET_MAKE,;t t
43401 s,@am__leading_dot@,$am__leading_dot,;t t
43402 s,@AMTAR@,$AMTAR,;t t
43403 s,@am__tar@,$am__tar,;t t
43404 s,@am__untar@,$am__untar,;t t
43405 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
43406 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
43407 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
43408 s,@top_builddir@,$top_builddir,;t t
43409 s,@ldap_subdir@,$ldap_subdir,;t t
43410 s,@CC@,$CC,;t t
43411 s,@AR@,$AR,;t t
43412 s,@CFLAGS@,$CFLAGS,;t t
43413 s,@LDFLAGS@,$LDFLAGS,;t t
43414 s,@CPPFLAGS@,$CPPFLAGS,;t t
43415 s,@ac_ct_CC@,$ac_ct_CC,;t t
43416 s,@EXEEXT@,$EXEEXT,;t t
43417 s,@OBJEXT@,$OBJEXT,;t t
43418 s,@DEPDIR@,$DEPDIR,;t t
43419 s,@am__include@,$am__include,;t t
43420 s,@am__quote@,$am__quote,;t t
43421 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
43422 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
43423 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
43424 s,@CCDEPMODE@,$CCDEPMODE,;t t
43425 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
43426 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
43427 s,@EGREP@,$EGREP,;t t
43428 s,@LN_S@,$LN_S,;t t
43429 s,@ECHO@,$ECHO,;t t
43430 s,@ac_ct_AR@,$ac_ct_AR,;t t
43431 s,@RANLIB@,$RANLIB,;t t
43432 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43433 s,@DLLTOOL@,$DLLTOOL,;t t
43434 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
43435 s,@AS@,$AS,;t t
43436 s,@ac_ct_AS@,$ac_ct_AS,;t t
43437 s,@OBJDUMP@,$OBJDUMP,;t t
43438 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
43439 s,@CPP@,$CPP,;t t
43440 s,@LIBTOOL@,$LIBTOOL,;t t
43441 s,@PERLBIN@,$PERLBIN,;t t
43442 s,@OL_MKDEP@,$OL_MKDEP,;t t
43443 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
43444 s,@LTSTATIC@,$LTSTATIC,;t t
43445 s,@LIBOBJS@,$LIBOBJS,;t t
43446 s,@LIBSRCS@,$LIBSRCS,;t t
43447 s,@PLAT@,$PLAT,;t t
43448 s,@WITH_SASL@,$WITH_SASL,;t t
43449 s,@WITH_TLS@,$WITH_TLS,;t t
43450 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
43451 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
43452 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
43453 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
43454 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
43455 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
43456 s,@BUILD_BDB@,$BUILD_BDB,;t t
43457 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
43458 s,@BUILD_HDB@,$BUILD_HDB,;t t
43459 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
43460 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
43461 s,@BUILD_META@,$BUILD_META,;t t
43462 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
43463 s,@BUILD_NULL@,$BUILD_NULL,;t t
43464 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
43465 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
43466 s,@BUILD_PERL@,$BUILD_PERL,;t t
43467 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
43468 s,@BUILD_SQL@,$BUILD_SQL,;t t
43469 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
43470 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
43471 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
43472 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
43473 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
43474 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
43475 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
43476 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
43477 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
43478 s,@BUILD_RWM@,$BUILD_RWM,;t t
43479 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
43480 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
43481 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
43482 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
43483 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
43484 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
43485 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
43486 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
43487 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
43488 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
43489 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
43490 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
43491 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
43492 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
43493 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
43494 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
43495 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
43496 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
43497 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
43498 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
43499 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
43500 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
43501 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
43502 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
43503 s,@SASL_LIBS@,$SASL_LIBS,;t t
43504 s,@TLS_LIBS@,$TLS_LIBS,;t t
43505 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
43506 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
43507 s,@LIBSLAPI@,$LIBSLAPI,;t t
43508 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
43509 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
43510 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
43511 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
43512 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
43513 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
43514 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
43515 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43516 CEOF
43517
43518 _ACEOF
43519
43520   cat >>$CONFIG_STATUS <<\_ACEOF
43521   # Split the substitutions into bite-sized pieces for seds with
43522   # small command number limits, like on Digital OSF/1 and HP-UX.
43523   ac_max_sed_lines=48
43524   ac_sed_frag=1 # Number of current file.
43525   ac_beg=1 # First line for current file.
43526   ac_end=$ac_max_sed_lines # Line after last line for current file.
43527   ac_more_lines=:
43528   ac_sed_cmds=
43529   while $ac_more_lines; do
43530     if test $ac_beg -gt 1; then
43531       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43532     else
43533       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43534     fi
43535     if test ! -s $tmp/subs.frag; then
43536       ac_more_lines=false
43537     else
43538       # The purpose of the label and of the branching condition is to
43539       # speed up the sed processing (if there are no `@' at all, there
43540       # is no need to browse any of the substitutions).
43541       # These are the two extra sed commands mentioned above.
43542       (echo ':t
43543   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43544       if test -z "$ac_sed_cmds"; then
43545         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
43546       else
43547         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
43548       fi
43549       ac_sed_frag=`expr $ac_sed_frag + 1`
43550       ac_beg=$ac_end
43551       ac_end=`expr $ac_end + $ac_max_sed_lines`
43552     fi
43553   done
43554   if test -z "$ac_sed_cmds"; then
43555     ac_sed_cmds=cat
43556   fi
43557 fi # test -n "$CONFIG_FILES"
43558
43559 _ACEOF
43560 cat >>$CONFIG_STATUS <<\_ACEOF
43561 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43562   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43563   case $ac_file in
43564   - | *:- | *:-:* ) # input from stdin
43565         cat >$tmp/stdin
43566         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43567         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43568   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43569         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43570   * )   ac_file_in=$ac_file.in ;;
43571   esac
43572
43573   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43574   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43575 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43576          X"$ac_file" : 'X\(//\)[^/]' \| \
43577          X"$ac_file" : 'X\(//\)$' \| \
43578          X"$ac_file" : 'X\(/\)' \| \
43579          .     : '\(.\)' 2>/dev/null ||
43580 echo X"$ac_file" |
43581     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43582           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43583           /^X\(\/\/\)$/{ s//\1/; q; }
43584           /^X\(\/\).*/{ s//\1/; q; }
43585           s/.*/./; q'`
43586   { if $as_mkdir_p; then
43587     mkdir -p "$ac_dir"
43588   else
43589     as_dir="$ac_dir"
43590     as_dirs=
43591     while test ! -d "$as_dir"; do
43592       as_dirs="$as_dir $as_dirs"
43593       as_dir=`(dirname "$as_dir") 2>/dev/null ||
43594 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43595          X"$as_dir" : 'X\(//\)[^/]' \| \
43596          X"$as_dir" : 'X\(//\)$' \| \
43597          X"$as_dir" : 'X\(/\)' \| \
43598          .     : '\(.\)' 2>/dev/null ||
43599 echo X"$as_dir" |
43600     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43601           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43602           /^X\(\/\/\)$/{ s//\1/; q; }
43603           /^X\(\/\).*/{ s//\1/; q; }
43604           s/.*/./; q'`
43605     done
43606     test ! -n "$as_dirs" || mkdir $as_dirs
43607   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43608 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43609    { (exit 1); exit 1; }; }; }
43610
43611   ac_builddir=.
43612
43613 if test "$ac_dir" != .; then
43614   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43615   # A "../" for each directory in $ac_dir_suffix.
43616   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43617 else
43618   ac_dir_suffix= ac_top_builddir=
43619 fi
43620
43621 case $srcdir in
43622   .)  # No --srcdir option.  We are building in place.
43623     ac_srcdir=.
43624     if test -z "$ac_top_builddir"; then
43625        ac_top_srcdir=.
43626     else
43627        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43628     fi ;;
43629   [\\/]* | ?:[\\/]* )  # Absolute path.
43630     ac_srcdir=$srcdir$ac_dir_suffix;
43631     ac_top_srcdir=$srcdir ;;
43632   *) # Relative path.
43633     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43634     ac_top_srcdir=$ac_top_builddir$srcdir ;;
43635 esac
43636
43637 # Do not use `cd foo && pwd` to compute absolute paths, because
43638 # the directories may not exist.
43639 case `pwd` in
43640 .) ac_abs_builddir="$ac_dir";;
43641 *)
43642   case "$ac_dir" in
43643   .) ac_abs_builddir=`pwd`;;
43644   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43645   *) ac_abs_builddir=`pwd`/"$ac_dir";;
43646   esac;;
43647 esac
43648 case $ac_abs_builddir in
43649 .) ac_abs_top_builddir=${ac_top_builddir}.;;
43650 *)
43651   case ${ac_top_builddir}. in
43652   .) ac_abs_top_builddir=$ac_abs_builddir;;
43653   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43654   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43655   esac;;
43656 esac
43657 case $ac_abs_builddir in
43658 .) ac_abs_srcdir=$ac_srcdir;;
43659 *)
43660   case $ac_srcdir in
43661   .) ac_abs_srcdir=$ac_abs_builddir;;
43662   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43663   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43664   esac;;
43665 esac
43666 case $ac_abs_builddir in
43667 .) ac_abs_top_srcdir=$ac_top_srcdir;;
43668 *)
43669   case $ac_top_srcdir in
43670   .) ac_abs_top_srcdir=$ac_abs_builddir;;
43671   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43672   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43673   esac;;
43674 esac
43675
43676
43677   case $INSTALL in
43678   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43679   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43680   esac
43681
43682   if test x"$ac_file" != x-; then
43683     { echo "$as_me:$LINENO: creating $ac_file" >&5
43684 echo "$as_me: creating $ac_file" >&6;}
43685     rm -f "$ac_file"
43686   fi
43687   # Let's still pretend it is `configure' which instantiates (i.e., don't
43688   # use $as_me), people would be surprised to read:
43689   #    /* config.h.  Generated by config.status.  */
43690   if test x"$ac_file" = x-; then
43691     configure_input=
43692   else
43693     configure_input="$ac_file.  "
43694   fi
43695   configure_input=$configure_input"Generated from `echo $ac_file_in |
43696                                      sed 's,.*/,,'` by configure."
43697
43698   # First look for the input files in the build tree, otherwise in the
43699   # src tree.
43700   ac_file_inputs=`IFS=:
43701     for f in $ac_file_in; do
43702       case $f in
43703       -) echo $tmp/stdin ;;
43704       [\\/$]*)
43705          # Absolute (can't be DOS-style, as IFS=:)
43706          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43707 echo "$as_me: error: cannot find input file: $f" >&2;}
43708    { (exit 1); exit 1; }; }
43709          echo "$f";;
43710       *) # Relative
43711          if test -f "$f"; then
43712            # Build tree
43713            echo "$f"
43714          elif test -f "$srcdir/$f"; then
43715            # Source tree
43716            echo "$srcdir/$f"
43717          else
43718            # /dev/null tree
43719            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43720 echo "$as_me: error: cannot find input file: $f" >&2;}
43721    { (exit 1); exit 1; }; }
43722          fi;;
43723       esac
43724     done` || { (exit 1); exit 1; }
43725 _ACEOF
43726 cat >>$CONFIG_STATUS <<_ACEOF
43727   sed "$ac_vpsub
43728 $extrasub
43729 _ACEOF
43730 cat >>$CONFIG_STATUS <<\_ACEOF
43731 :t
43732 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43733 s,@configure_input@,$configure_input,;t t
43734 s,@srcdir@,$ac_srcdir,;t t
43735 s,@abs_srcdir@,$ac_abs_srcdir,;t t
43736 s,@top_srcdir@,$ac_top_srcdir,;t t
43737 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43738 s,@builddir@,$ac_builddir,;t t
43739 s,@abs_builddir@,$ac_abs_builddir,;t t
43740 s,@top_builddir@,$ac_top_builddir,;t t
43741 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43742 s,@INSTALL@,$ac_INSTALL,;t t
43743 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43744   rm -f $tmp/stdin
43745   if test x"$ac_file" != x-; then
43746     mv $tmp/out $ac_file
43747   else
43748     cat $tmp/out
43749     rm -f $tmp/out
43750   fi
43751
43752 done
43753 _ACEOF
43754 cat >>$CONFIG_STATUS <<\_ACEOF
43755
43756 #
43757 # CONFIG_HEADER section.
43758 #
43759
43760 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43761 # NAME is the cpp macro being defined and VALUE is the value it is being given.
43762 #
43763 # ac_d sets the value in "#define NAME VALUE" lines.
43764 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
43765 ac_dB='[         ].*$,\1#\2'
43766 ac_dC=' '
43767 ac_dD=',;t'
43768 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
43769 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
43770 ac_uB='$,\1#\2define\3'
43771 ac_uC=' '
43772 ac_uD=',;t'
43773
43774 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43775   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43776   case $ac_file in
43777   - | *:- | *:-:* ) # input from stdin
43778         cat >$tmp/stdin
43779         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43780         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43781   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43782         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43783   * )   ac_file_in=$ac_file.in ;;
43784   esac
43785
43786   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43787 echo "$as_me: creating $ac_file" >&6;}
43788
43789   # First look for the input files in the build tree, otherwise in the
43790   # src tree.
43791   ac_file_inputs=`IFS=:
43792     for f in $ac_file_in; do
43793       case $f in
43794       -) echo $tmp/stdin ;;
43795       [\\/$]*)
43796          # Absolute (can't be DOS-style, as IFS=:)
43797          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43798 echo "$as_me: error: cannot find input file: $f" >&2;}
43799    { (exit 1); exit 1; }; }
43800          # Do quote $f, to prevent DOS paths from being IFS'd.
43801          echo "$f";;
43802       *) # Relative
43803          if test -f "$f"; then
43804            # Build tree
43805            echo "$f"
43806          elif test -f "$srcdir/$f"; then
43807            # Source tree
43808            echo "$srcdir/$f"
43809          else
43810            # /dev/null tree
43811            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43812 echo "$as_me: error: cannot find input file: $f" >&2;}
43813    { (exit 1); exit 1; }; }
43814          fi;;
43815       esac
43816     done` || { (exit 1); exit 1; }
43817   # Remove the trailing spaces.
43818   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
43819
43820 _ACEOF
43821
43822 # Transform confdefs.h into two sed scripts, `conftest.defines' and
43823 # `conftest.undefs', that substitutes the proper values into
43824 # config.h.in to produce config.h.  The first handles `#define'
43825 # templates, and the second `#undef' templates.
43826 # And first: Protect against being on the right side of a sed subst in
43827 # config.status.  Protect against being in an unquoted here document
43828 # in config.status.
43829 rm -f conftest.defines conftest.undefs
43830 # Using a here document instead of a string reduces the quoting nightmare.
43831 # Putting comments in sed scripts is not portable.
43832 #
43833 # `end' is used to avoid that the second main sed command (meant for
43834 # 0-ary CPP macros) applies to n-ary macro definitions.
43835 # See the Autoconf documentation for `clear'.
43836 cat >confdef2sed.sed <<\_ACEOF
43837 s/[\\&,]/\\&/g
43838 s,[\\$`],\\&,g
43839 t clear
43840 : clear
43841 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
43842 t end
43843 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
43844 : end
43845 _ACEOF
43846 # If some macros were called several times there might be several times
43847 # the same #defines, which is useless.  Nevertheless, we may not want to
43848 # sort them, since we want the *last* AC-DEFINE to be honored.
43849 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43850 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43851 rm -f confdef2sed.sed
43852
43853 # This sed command replaces #undef with comments.  This is necessary, for
43854 # example, in the case of _POSIX_SOURCE, which is predefined and required
43855 # on some systems where configure will not decide to define it.
43856 cat >>conftest.undefs <<\_ACEOF
43857 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
43858 _ACEOF
43859
43860 # Break up conftest.defines because some shells have a limit on the size
43861 # of here documents, and old seds have small limits too (100 cmds).
43862 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
43863 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
43864 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43865 echo '  :' >>$CONFIG_STATUS
43866 rm -f conftest.tail
43867 while grep . conftest.defines >/dev/null
43868 do
43869   # Write a limited-size here document to $tmp/defines.sed.
43870   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43871   # Speed up: don't consider the non `#define' lines.
43872   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
43873   # Work around the forget-to-reset-the-flag bug.
43874   echo 't clr' >>$CONFIG_STATUS
43875   echo ': clr' >>$CONFIG_STATUS
43876   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43877   echo 'CEOF
43878   sed -f $tmp/defines.sed $tmp/in >$tmp/out
43879   rm -f $tmp/in
43880   mv $tmp/out $tmp/in
43881 ' >>$CONFIG_STATUS
43882   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43883   rm -f conftest.defines
43884   mv conftest.tail conftest.defines
43885 done
43886 rm -f conftest.defines
43887 echo '  fi # grep' >>$CONFIG_STATUS
43888 echo >>$CONFIG_STATUS
43889
43890 # Break up conftest.undefs because some shells have a limit on the size
43891 # of here documents, and old seds have small limits too (100 cmds).
43892 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
43893 rm -f conftest.tail
43894 while grep . conftest.undefs >/dev/null
43895 do
43896   # Write a limited-size here document to $tmp/undefs.sed.
43897   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43898   # Speed up: don't consider the non `#undef'
43899   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
43900   # Work around the forget-to-reset-the-flag bug.
43901   echo 't clr' >>$CONFIG_STATUS
43902   echo ': clr' >>$CONFIG_STATUS
43903   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43904   echo 'CEOF
43905   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43906   rm -f $tmp/in
43907   mv $tmp/out $tmp/in
43908 ' >>$CONFIG_STATUS
43909   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43910   rm -f conftest.undefs
43911   mv conftest.tail conftest.undefs
43912 done
43913 rm -f conftest.undefs
43914
43915 cat >>$CONFIG_STATUS <<\_ACEOF
43916   # Let's still pretend it is `configure' which instantiates (i.e., don't
43917   # use $as_me), people would be surprised to read:
43918   #    /* config.h.  Generated by config.status.  */
43919   if test x"$ac_file" = x-; then
43920     echo "/* Generated by configure.  */" >$tmp/config.h
43921   else
43922     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
43923   fi
43924   cat $tmp/in >>$tmp/config.h
43925   rm -f $tmp/in
43926   if test x"$ac_file" != x-; then
43927     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43928       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43929 echo "$as_me: $ac_file is unchanged" >&6;}
43930     else
43931       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43933          X"$ac_file" : 'X\(//\)[^/]' \| \
43934          X"$ac_file" : 'X\(//\)$' \| \
43935          X"$ac_file" : 'X\(/\)' \| \
43936          .     : '\(.\)' 2>/dev/null ||
43937 echo X"$ac_file" |
43938     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43939           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43940           /^X\(\/\/\)$/{ s//\1/; q; }
43941           /^X\(\/\).*/{ s//\1/; q; }
43942           s/.*/./; q'`
43943       { if $as_mkdir_p; then
43944     mkdir -p "$ac_dir"
43945   else
43946     as_dir="$ac_dir"
43947     as_dirs=
43948     while test ! -d "$as_dir"; do
43949       as_dirs="$as_dir $as_dirs"
43950       as_dir=`(dirname "$as_dir") 2>/dev/null ||
43951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43952          X"$as_dir" : 'X\(//\)[^/]' \| \
43953          X"$as_dir" : 'X\(//\)$' \| \
43954          X"$as_dir" : 'X\(/\)' \| \
43955          .     : '\(.\)' 2>/dev/null ||
43956 echo X"$as_dir" |
43957     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43958           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43959           /^X\(\/\/\)$/{ s//\1/; q; }
43960           /^X\(\/\).*/{ s//\1/; q; }
43961           s/.*/./; q'`
43962     done
43963     test ! -n "$as_dirs" || mkdir $as_dirs
43964   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43965 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43966    { (exit 1); exit 1; }; }; }
43967
43968       rm -f $ac_file
43969       mv $tmp/config.h $ac_file
43970     fi
43971   else
43972     cat $tmp/config.h
43973     rm -f $tmp/config.h
43974   fi
43975 # Compute $ac_file's index in $config_headers.
43976 _am_stamp_count=1
43977 for _am_header in $config_headers :; do
43978   case $_am_header in
43979     $ac_file | $ac_file:* )
43980       break ;;
43981     * )
43982       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43983   esac
43984 done
43985 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
43986 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43987          X$ac_file : 'X\(//\)[^/]' \| \
43988          X$ac_file : 'X\(//\)$' \| \
43989          X$ac_file : 'X\(/\)' \| \
43990          .     : '\(.\)' 2>/dev/null ||
43991 echo X$ac_file |
43992     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43993           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43994           /^X\(\/\/\)$/{ s//\1/; q; }
43995           /^X\(\/\).*/{ s//\1/; q; }
43996           s/.*/./; q'`/stamp-h$_am_stamp_count
43997 done
43998 _ACEOF
43999 cat >>$CONFIG_STATUS <<\_ACEOF
44000
44001 #
44002 # CONFIG_COMMANDS section.
44003 #
44004 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44005   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44006   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44007   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44008 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44009          X"$ac_dest" : 'X\(//\)[^/]' \| \
44010          X"$ac_dest" : 'X\(//\)$' \| \
44011          X"$ac_dest" : 'X\(/\)' \| \
44012          .     : '\(.\)' 2>/dev/null ||
44013 echo X"$ac_dest" |
44014     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44015           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44016           /^X\(\/\/\)$/{ s//\1/; q; }
44017           /^X\(\/\).*/{ s//\1/; q; }
44018           s/.*/./; q'`
44019   { if $as_mkdir_p; then
44020     mkdir -p "$ac_dir"
44021   else
44022     as_dir="$ac_dir"
44023     as_dirs=
44024     while test ! -d "$as_dir"; do
44025       as_dirs="$as_dir $as_dirs"
44026       as_dir=`(dirname "$as_dir") 2>/dev/null ||
44027 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44028          X"$as_dir" : 'X\(//\)[^/]' \| \
44029          X"$as_dir" : 'X\(//\)$' \| \
44030          X"$as_dir" : 'X\(/\)' \| \
44031          .     : '\(.\)' 2>/dev/null ||
44032 echo X"$as_dir" |
44033     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44034           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44035           /^X\(\/\/\)$/{ s//\1/; q; }
44036           /^X\(\/\).*/{ s//\1/; q; }
44037           s/.*/./; q'`
44038     done
44039     test ! -n "$as_dirs" || mkdir $as_dirs
44040   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44041 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44042    { (exit 1); exit 1; }; }; }
44043
44044   ac_builddir=.
44045
44046 if test "$ac_dir" != .; then
44047   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44048   # A "../" for each directory in $ac_dir_suffix.
44049   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44050 else
44051   ac_dir_suffix= ac_top_builddir=
44052 fi
44053
44054 case $srcdir in
44055   .)  # No --srcdir option.  We are building in place.
44056     ac_srcdir=.
44057     if test -z "$ac_top_builddir"; then
44058        ac_top_srcdir=.
44059     else
44060        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44061     fi ;;
44062   [\\/]* | ?:[\\/]* )  # Absolute path.
44063     ac_srcdir=$srcdir$ac_dir_suffix;
44064     ac_top_srcdir=$srcdir ;;
44065   *) # Relative path.
44066     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44067     ac_top_srcdir=$ac_top_builddir$srcdir ;;
44068 esac
44069
44070 # Do not use `cd foo && pwd` to compute absolute paths, because
44071 # the directories may not exist.
44072 case `pwd` in
44073 .) ac_abs_builddir="$ac_dir";;
44074 *)
44075   case "$ac_dir" in
44076   .) ac_abs_builddir=`pwd`;;
44077   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44078   *) ac_abs_builddir=`pwd`/"$ac_dir";;
44079   esac;;
44080 esac
44081 case $ac_abs_builddir in
44082 .) ac_abs_top_builddir=${ac_top_builddir}.;;
44083 *)
44084   case ${ac_top_builddir}. in
44085   .) ac_abs_top_builddir=$ac_abs_builddir;;
44086   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44087   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44088   esac;;
44089 esac
44090 case $ac_abs_builddir in
44091 .) ac_abs_srcdir=$ac_srcdir;;
44092 *)
44093   case $ac_srcdir in
44094   .) ac_abs_srcdir=$ac_abs_builddir;;
44095   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44096   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44097   esac;;
44098 esac
44099 case $ac_abs_builddir in
44100 .) ac_abs_top_srcdir=$ac_top_srcdir;;
44101 *)
44102   case $ac_top_srcdir in
44103   .) ac_abs_top_srcdir=$ac_abs_builddir;;
44104   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44105   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44106   esac;;
44107 esac
44108
44109
44110   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44111 echo "$as_me: executing $ac_dest commands" >&6;}
44112   case $ac_dest in
44113     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
44114   # Strip MF so we end up with the name of the file.
44115   mf=`echo "$mf" | sed -e 's/:.*$//'`
44116   # Check whether this is an Automake generated Makefile or not.
44117   # We used to match only the files named `Makefile.in', but
44118   # some people rename them; so instead we look at the file content.
44119   # Grep'ing the first line is not enough: some people post-process
44120   # each Makefile.in and add a new line on top of each file to say so.
44121   # So let's grep whole file.
44122   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
44123     dirpart=`(dirname "$mf") 2>/dev/null ||
44124 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44125          X"$mf" : 'X\(//\)[^/]' \| \
44126          X"$mf" : 'X\(//\)$' \| \
44127          X"$mf" : 'X\(/\)' \| \
44128          .     : '\(.\)' 2>/dev/null ||
44129 echo X"$mf" |
44130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44131           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44132           /^X\(\/\/\)$/{ s//\1/; q; }
44133           /^X\(\/\).*/{ s//\1/; q; }
44134           s/.*/./; q'`
44135   else
44136     continue
44137   fi
44138   # Extract the definition of DEPDIR, am__include, and am__quote
44139   # from the Makefile without running `make'.
44140   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
44141   test -z "$DEPDIR" && continue
44142   am__include=`sed -n 's/^am__include = //p' < "$mf"`
44143   test -z "am__include" && continue
44144   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
44145   # When using ansi2knr, U may be empty or an underscore; expand it
44146   U=`sed -n 's/^U = //p' < "$mf"`
44147   # Find all dependency output files, they are included files with
44148   # $(DEPDIR) in their names.  We invoke sed twice because it is the
44149   # simplest approach to changing $(DEPDIR) to its actual value in the
44150   # expansion.
44151   for file in `sed -n "
44152     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
44153        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
44154     # Make sure the directory exists.
44155     test -f "$dirpart/$file" && continue
44156     fdir=`(dirname "$file") 2>/dev/null ||
44157 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44158          X"$file" : 'X\(//\)[^/]' \| \
44159          X"$file" : 'X\(//\)$' \| \
44160          X"$file" : 'X\(/\)' \| \
44161          .     : '\(.\)' 2>/dev/null ||
44162 echo X"$file" |
44163     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44164           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44165           /^X\(\/\/\)$/{ s//\1/; q; }
44166           /^X\(\/\).*/{ s//\1/; q; }
44167           s/.*/./; q'`
44168     { if $as_mkdir_p; then
44169     mkdir -p $dirpart/$fdir
44170   else
44171     as_dir=$dirpart/$fdir
44172     as_dirs=
44173     while test ! -d "$as_dir"; do
44174       as_dirs="$as_dir $as_dirs"
44175       as_dir=`(dirname "$as_dir") 2>/dev/null ||
44176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44177          X"$as_dir" : 'X\(//\)[^/]' \| \
44178          X"$as_dir" : 'X\(//\)$' \| \
44179          X"$as_dir" : 'X\(/\)' \| \
44180          .     : '\(.\)' 2>/dev/null ||
44181 echo X"$as_dir" |
44182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44183           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44184           /^X\(\/\/\)$/{ s//\1/; q; }
44185           /^X\(\/\).*/{ s//\1/; q; }
44186           s/.*/./; q'`
44187     done
44188     test ! -n "$as_dirs" || mkdir $as_dirs
44189   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
44190 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
44191    { (exit 1); exit 1; }; }; }
44192
44193     # echo "creating $dirpart/$file"
44194     echo '# dummy' > "$dirpart/$file"
44195   done
44196 done
44197  ;;
44198     default )
44199 chmod +x tests/run
44200 date > stamp-h
44201 BACKENDSC="servers/slapd/backends.c"
44202 echo "Making $BACKENDSC"
44203 rm -f $BACKENDSC
44204 cat > $BACKENDSC << ENDX
44205 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
44206  *
44207  * Copyright 1998-2005 The OpenLDAP Foundation.
44208  * All rights reserved.
44209  *
44210  * Redistribution and use in source and binary forms, with or without
44211  * modification, are permitted only as authorized by the OpenLDAP
44212  * Public License.
44213  *
44214  * A copy of this license is available in the file LICENSE in the
44215  * top-level directory of the distribution or, alternatively, at
44216  * <http://www.OpenLDAP.org/license.html>.
44217  */
44218 /* This file is automatically generated by configure; please do not edit. */
44219
44220 #include "portable.h"
44221 #include "slap.h"
44222
44223 ENDX
44224 if test "${STATIC_BACKENDS}"; then
44225         for b in config ${STATIC_BACKENDS}; do
44226                 bb=`echo "${b}" | sed -e 's/back-//'`
44227                 cat >> $BACKENDSC << ENDX
44228 extern BI_init ${bb}_back_initialize;
44229 ENDX
44230         done
44231
44232         cat >> $BACKENDSC << ENDX
44233
44234 BackendInfo slap_binfo[] = {
44235 ENDX
44236
44237         for b in config ${STATIC_BACKENDS}; do
44238                 bb=`echo "${b}" | sed -e 's/back-//'`
44239                 echo "    Add ${bb} ..."
44240                 cat >> $BACKENDSC << ENDX
44241         { "${bb}", ${bb}_back_initialize },
44242 ENDX
44243         done
44244
44245         cat >> $BACKENDSC << ENDX
44246         { NULL, NULL },
44247 };
44248
44249 /* end of generated file */
44250 ENDX
44251 fi
44252
44253 echo Please run \"make depend\" to build dependencies
44254  ;;
44255   esac
44256 done
44257 _ACEOF
44258
44259 cat >>$CONFIG_STATUS <<\_ACEOF
44260
44261 { (exit 0); exit 0; }
44262 _ACEOF
44263 chmod +x $CONFIG_STATUS
44264 ac_clean_files=$ac_clean_files_save
44265
44266
44267 # configure is writing to config.log, and then calls config.status.
44268 # config.status does its own redirection, appending to config.log.
44269 # Unfortunately, on DOS this fails, as config.log is still kept open
44270 # by configure, so config.status won't be able to write to it; its
44271 # output is simply discarded.  So we exec the FD to /dev/null,
44272 # effectively closing config.log, so it can be properly (re)opened and
44273 # appended to by config.status.  When coming back to configure, we
44274 # need to make the FD available again.
44275 if test "$no_create" != yes; then
44276   ac_cs_success=:
44277   ac_config_status_args=
44278   test "$silent" = yes &&
44279     ac_config_status_args="$ac_config_status_args --quiet"
44280   exec 5>/dev/null
44281   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44282   exec 5>>config.log
44283   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44284   # would make configure fail if this is the last instruction.
44285   $ac_cs_success || { (exit 1); exit 1; }
44286 fi
44287