]> git.sur5r.net Git - openldap/blob - configure
c6ce7b0265adbaf468abc4ca99aad6b41d42c26b
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in.
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 tagnames=${tagnames+${tagnames},}CXX
399
400 tagnames=${tagnames+${tagnames},}F77
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME=
427 PACKAGE_TARNAME=
428 PACKAGE_VERSION=
429 PACKAGE_STRING=
430 PACKAGE_BUGREPORT=
431
432 ac_unique_file="OpenLDAP"
433 ac_unique_file="build/version.sh"
434 ac_default_prefix=/usr/local
435 # Factoring default headers for most tests.
436 ac_includes_default="\
437 #include <stdio.h>
438 #if HAVE_SYS_TYPES_H
439 # include <sys/types.h>
440 #endif
441 #if HAVE_SYS_STAT_H
442 # include <sys/stat.h>
443 #endif
444 #if STDC_HEADERS
445 # include <stdlib.h>
446 # include <stddef.h>
447 #else
448 # if HAVE_STDLIB_H
449 #  include <stdlib.h>
450 # endif
451 #endif
452 #if HAVE_STRING_H
453 # if !STDC_HEADERS && HAVE_MEMORY_H
454 #  include <memory.h>
455 # endif
456 # include <string.h>
457 #endif
458 #if HAVE_STRINGS_H
459 # include <strings.h>
460 #endif
461 #if HAVE_INTTYPES_H
462 # include <inttypes.h>
463 #else
464 # if HAVE_STDINT_H
465 #  include <stdint.h>
466 # endif
467 #endif
468 #if HAVE_UNISTD_H
469 # include <unistd.h>
470 #endif"
471
472 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_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_GLUE BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE 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'
473 ac_subst_files=''
474
475 # Initialize some variables set by options.
476 ac_init_help=
477 ac_init_version=false
478 # The variables have the same names as the options, with
479 # dashes changed to underlines.
480 cache_file=/dev/null
481 exec_prefix=NONE
482 no_create=
483 no_recursion=
484 prefix=NONE
485 program_prefix=NONE
486 program_suffix=NONE
487 program_transform_name=s,x,x,
488 silent=
489 site=
490 srcdir=
491 verbose=
492 x_includes=NONE
493 x_libraries=NONE
494
495 # Installation directory options.
496 # These are left unexpanded so users can "make install exec_prefix=/foo"
497 # and all the variables that are supposed to be based on exec_prefix
498 # by default will actually change.
499 # Use braces instead of parens because sh, perl, etc. also accept them.
500 bindir='${exec_prefix}/bin'
501 sbindir='${exec_prefix}/sbin'
502 libexecdir='${exec_prefix}/libexec'
503 datadir='${prefix}/share'
504 sysconfdir='${prefix}/etc'
505 sharedstatedir='${prefix}/com'
506 localstatedir='${prefix}/var'
507 libdir='${exec_prefix}/lib'
508 includedir='${prefix}/include'
509 oldincludedir='/usr/include'
510 infodir='${prefix}/info'
511 mandir='${prefix}/man'
512
513 ac_prev=
514 for ac_option
515 do
516   # If the previous option needs an argument, assign it.
517   if test -n "$ac_prev"; then
518     eval "$ac_prev=\$ac_option"
519     ac_prev=
520     continue
521   fi
522
523   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524
525   # Accept the important Cygnus configure options, so we can diagnose typos.
526
527   case $ac_option in
528
529   -bindir | --bindir | --bindi | --bind | --bin | --bi)
530     ac_prev=bindir ;;
531   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532     bindir=$ac_optarg ;;
533
534   -build | --build | --buil | --bui | --bu)
535     ac_prev=build_alias ;;
536   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
537     build_alias=$ac_optarg ;;
538
539   -cache-file | --cache-file | --cache-fil | --cache-fi \
540   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541     ac_prev=cache_file ;;
542   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
544     cache_file=$ac_optarg ;;
545
546   --config-cache | -C)
547     cache_file=config.cache ;;
548
549   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550     ac_prev=datadir ;;
551   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552   | --da=*)
553     datadir=$ac_optarg ;;
554
555   -disable-* | --disable-*)
556     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
557     # Reject names that are not valid shell variable names.
558     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560    { (exit 1); exit 1; }; }
561     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562     eval "enable_$ac_feature=no" ;;
563
564   -enable-* | --enable-*)
565     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
566     # Reject names that are not valid shell variable names.
567     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
569    { (exit 1); exit 1; }; }
570     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571     case $ac_option in
572       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573       *) ac_optarg=yes ;;
574     esac
575     eval "enable_$ac_feature='$ac_optarg'" ;;
576
577   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
578   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579   | --exec | --exe | --ex)
580     ac_prev=exec_prefix ;;
581   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
582   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
583   | --exec=* | --exe=* | --ex=*)
584     exec_prefix=$ac_optarg ;;
585
586   -gas | --gas | --ga | --g)
587     # Obsolete; use --with-gas.
588     with_gas=yes ;;
589
590   -help | --help | --hel | --he | -h)
591     ac_init_help=long ;;
592   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
593     ac_init_help=recursive ;;
594   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
595     ac_init_help=short ;;
596
597   -host | --host | --hos | --ho)
598     ac_prev=host_alias ;;
599   -host=* | --host=* | --hos=* | --ho=*)
600     host_alias=$ac_optarg ;;
601
602   -includedir | --includedir | --includedi | --included | --include \
603   | --includ | --inclu | --incl | --inc)
604     ac_prev=includedir ;;
605   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
606   | --includ=* | --inclu=* | --incl=* | --inc=*)
607     includedir=$ac_optarg ;;
608
609   -infodir | --infodir | --infodi | --infod | --info | --inf)
610     ac_prev=infodir ;;
611   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
612     infodir=$ac_optarg ;;
613
614   -libdir | --libdir | --libdi | --libd)
615     ac_prev=libdir ;;
616   -libdir=* | --libdir=* | --libdi=* | --libd=*)
617     libdir=$ac_optarg ;;
618
619   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
620   | --libexe | --libex | --libe)
621     ac_prev=libexecdir ;;
622   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
623   | --libexe=* | --libex=* | --libe=*)
624     libexecdir=$ac_optarg ;;
625
626   -localstatedir | --localstatedir | --localstatedi | --localstated \
627   | --localstate | --localstat | --localsta | --localst \
628   | --locals | --local | --loca | --loc | --lo)
629     ac_prev=localstatedir ;;
630   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
632   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
633     localstatedir=$ac_optarg ;;
634
635   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636     ac_prev=mandir ;;
637   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638     mandir=$ac_optarg ;;
639
640   -nfp | --nfp | --nf)
641     # Obsolete; use --without-fp.
642     with_fp=no ;;
643
644   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
645   | --no-cr | --no-c | -n)
646     no_create=yes ;;
647
648   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
649   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650     no_recursion=yes ;;
651
652   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
653   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
654   | --oldin | --oldi | --old | --ol | --o)
655     ac_prev=oldincludedir ;;
656   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
657   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
658   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
659     oldincludedir=$ac_optarg ;;
660
661   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662     ac_prev=prefix ;;
663   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664     prefix=$ac_optarg ;;
665
666   -program-prefix | --program-prefix | --program-prefi | --program-pref \
667   | --program-pre | --program-pr | --program-p)
668     ac_prev=program_prefix ;;
669   -program-prefix=* | --program-prefix=* | --program-prefi=* \
670   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
671     program_prefix=$ac_optarg ;;
672
673   -program-suffix | --program-suffix | --program-suffi | --program-suff \
674   | --program-suf | --program-su | --program-s)
675     ac_prev=program_suffix ;;
676   -program-suffix=* | --program-suffix=* | --program-suffi=* \
677   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
678     program_suffix=$ac_optarg ;;
679
680   -program-transform-name | --program-transform-name \
681   | --program-transform-nam | --program-transform-na \
682   | --program-transform-n | --program-transform- \
683   | --program-transform | --program-transfor \
684   | --program-transfo | --program-transf \
685   | --program-trans | --program-tran \
686   | --progr-tra | --program-tr | --program-t)
687     ac_prev=program_transform_name ;;
688   -program-transform-name=* | --program-transform-name=* \
689   | --program-transform-nam=* | --program-transform-na=* \
690   | --program-transform-n=* | --program-transform-=* \
691   | --program-transform=* | --program-transfor=* \
692   | --program-transfo=* | --program-transf=* \
693   | --program-trans=* | --program-tran=* \
694   | --progr-tra=* | --program-tr=* | --program-t=*)
695     program_transform_name=$ac_optarg ;;
696
697   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
698   | -silent | --silent | --silen | --sile | --sil)
699     silent=yes ;;
700
701   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702     ac_prev=sbindir ;;
703   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704   | --sbi=* | --sb=*)
705     sbindir=$ac_optarg ;;
706
707   -sharedstatedir | --sharedstatedir | --sharedstatedi \
708   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
709   | --sharedst | --shareds | --shared | --share | --shar \
710   | --sha | --sh)
711     ac_prev=sharedstatedir ;;
712   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
713   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
714   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715   | --sha=* | --sh=*)
716     sharedstatedir=$ac_optarg ;;
717
718   -site | --site | --sit)
719     ac_prev=site ;;
720   -site=* | --site=* | --sit=*)
721     site=$ac_optarg ;;
722
723   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724     ac_prev=srcdir ;;
725   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726     srcdir=$ac_optarg ;;
727
728   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
729   | --syscon | --sysco | --sysc | --sys | --sy)
730     ac_prev=sysconfdir ;;
731   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
732   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
733     sysconfdir=$ac_optarg ;;
734
735   -target | --target | --targe | --targ | --tar | --ta | --t)
736     ac_prev=target_alias ;;
737   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
738     target_alias=$ac_optarg ;;
739
740   -v | -verbose | --verbose | --verbos | --verbo | --verb)
741     verbose=yes ;;
742
743   -version | --version | --versio | --versi | --vers | -V)
744     ac_init_version=: ;;
745
746   -with-* | --with-*)
747     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
748     # Reject names that are not valid shell variable names.
749     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750       { echo "$as_me: error: invalid package name: $ac_package" >&2
751    { (exit 1); exit 1; }; }
752     ac_package=`echo $ac_package| sed 's/-/_/g'`
753     case $ac_option in
754       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755       *) ac_optarg=yes ;;
756     esac
757     eval "with_$ac_package='$ac_optarg'" ;;
758
759   -without-* | --without-*)
760     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
761     # Reject names that are not valid shell variable names.
762     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763       { echo "$as_me: error: invalid package name: $ac_package" >&2
764    { (exit 1); exit 1; }; }
765     ac_package=`echo $ac_package | sed 's/-/_/g'`
766     eval "with_$ac_package=no" ;;
767
768   --x)
769     # Obsolete; use --with-x.
770     with_x=yes ;;
771
772   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773   | --x-incl | --x-inc | --x-in | --x-i)
774     ac_prev=x_includes ;;
775   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
777     x_includes=$ac_optarg ;;
778
779   -x-libraries | --x-libraries | --x-librarie | --x-librari \
780   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781     ac_prev=x_libraries ;;
782   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
784     x_libraries=$ac_optarg ;;
785
786   -*) { echo "$as_me: error: unrecognized option: $ac_option
787 Try \`$0 --help' for more information." >&2
788    { (exit 1); exit 1; }; }
789     ;;
790
791   *=*)
792     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
793     # Reject names that are not valid shell variable names.
794     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
795       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
796    { (exit 1); exit 1; }; }
797     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
798     eval "$ac_envvar='$ac_optarg'"
799     export $ac_envvar ;;
800
801   *)
802     # FIXME: should be removed in autoconf 3.0.
803     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
804     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
806     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807     ;;
808
809   esac
810 done
811
812 if test -n "$ac_prev"; then
813   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
814   { echo "$as_me: error: missing argument to $ac_option" >&2
815    { (exit 1); exit 1; }; }
816 fi
817
818 # Be sure to have absolute paths.
819 for ac_var in exec_prefix prefix
820 do
821   eval ac_val=$`echo $ac_var`
822   case $ac_val in
823     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
824     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825    { (exit 1); exit 1; }; };;
826   esac
827 done
828
829 # Be sure to have absolute paths.
830 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
831               localstatedir libdir includedir oldincludedir infodir mandir
832 do
833   eval ac_val=$`echo $ac_var`
834   case $ac_val in
835     [\\/$]* | ?:[\\/]* ) ;;
836     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837    { (exit 1); exit 1; }; };;
838   esac
839 done
840
841 # There might be people who depend on the old broken behavior: `$host'
842 # used to hold the argument of --host etc.
843 # FIXME: To remove some day.
844 build=$build_alias
845 host=$host_alias
846 target=$target_alias
847
848 # FIXME: To remove some day.
849 if test "x$host_alias" != x; then
850   if test "x$build_alias" = x; then
851     cross_compiling=maybe
852     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
853     If a cross compiler is detected then cross compile mode will be used." >&2
854   elif test "x$build_alias" != "x$host_alias"; then
855     cross_compiling=yes
856   fi
857 fi
858
859 ac_tool_prefix=
860 test -n "$host_alias" && ac_tool_prefix=$host_alias-
861
862 test "$silent" = yes && exec 6>/dev/null
863
864
865 # Find the source files, if location was not specified.
866 if test -z "$srcdir"; then
867   ac_srcdir_defaulted=yes
868   # Try the directory containing this script, then its parent.
869   ac_confdir=`(dirname "$0") 2>/dev/null ||
870 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
871          X"$0" : 'X\(//\)[^/]' \| \
872          X"$0" : 'X\(//\)$' \| \
873          X"$0" : 'X\(/\)' \| \
874          .     : '\(.\)' 2>/dev/null ||
875 echo X"$0" |
876     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
877           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
878           /^X\(\/\/\)$/{ s//\1/; q; }
879           /^X\(\/\).*/{ s//\1/; q; }
880           s/.*/./; q'`
881   srcdir=$ac_confdir
882   if test ! -r $srcdir/$ac_unique_file; then
883     srcdir=..
884   fi
885 else
886   ac_srcdir_defaulted=no
887 fi
888 if test ! -r $srcdir/$ac_unique_file; then
889   if test "$ac_srcdir_defaulted" = yes; then
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
891    { (exit 1); exit 1; }; }
892   else
893     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
894    { (exit 1); exit 1; }; }
895   fi
896 fi
897 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
898   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
899    { (exit 1); exit 1; }; }
900 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
901 ac_env_build_alias_set=${build_alias+set}
902 ac_env_build_alias_value=$build_alias
903 ac_cv_env_build_alias_set=${build_alias+set}
904 ac_cv_env_build_alias_value=$build_alias
905 ac_env_host_alias_set=${host_alias+set}
906 ac_env_host_alias_value=$host_alias
907 ac_cv_env_host_alias_set=${host_alias+set}
908 ac_cv_env_host_alias_value=$host_alias
909 ac_env_target_alias_set=${target_alias+set}
910 ac_env_target_alias_value=$target_alias
911 ac_cv_env_target_alias_set=${target_alias+set}
912 ac_cv_env_target_alias_value=$target_alias
913 ac_env_CC_set=${CC+set}
914 ac_env_CC_value=$CC
915 ac_cv_env_CC_set=${CC+set}
916 ac_cv_env_CC_value=$CC
917 ac_env_CFLAGS_set=${CFLAGS+set}
918 ac_env_CFLAGS_value=$CFLAGS
919 ac_cv_env_CFLAGS_set=${CFLAGS+set}
920 ac_cv_env_CFLAGS_value=$CFLAGS
921 ac_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_env_LDFLAGS_value=$LDFLAGS
923 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
924 ac_cv_env_LDFLAGS_value=$LDFLAGS
925 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_env_CPPFLAGS_value=$CPPFLAGS
927 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
928 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
929 ac_env_CPP_set=${CPP+set}
930 ac_env_CPP_value=$CPP
931 ac_cv_env_CPP_set=${CPP+set}
932 ac_cv_env_CPP_value=$CPP
933 ac_env_CXX_set=${CXX+set}
934 ac_env_CXX_value=$CXX
935 ac_cv_env_CXX_set=${CXX+set}
936 ac_cv_env_CXX_value=$CXX
937 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_env_CXXFLAGS_value=$CXXFLAGS
939 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
940 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
941 ac_env_CXXCPP_set=${CXXCPP+set}
942 ac_env_CXXCPP_value=$CXXCPP
943 ac_cv_env_CXXCPP_set=${CXXCPP+set}
944 ac_cv_env_CXXCPP_value=$CXXCPP
945 ac_env_F77_set=${F77+set}
946 ac_env_F77_value=$F77
947 ac_cv_env_F77_set=${F77+set}
948 ac_cv_env_F77_value=$F77
949 ac_env_FFLAGS_set=${FFLAGS+set}
950 ac_env_FFLAGS_value=$FFLAGS
951 ac_cv_env_FFLAGS_set=${FFLAGS+set}
952 ac_cv_env_FFLAGS_value=$FFLAGS
953
954 #
955 # Report the --help message.
956 #
957 if test "$ac_init_help" = "long"; then
958   # Omit some internal or obsolete options to make the list less imposing.
959   # This message is too long to be a string in the A/UX 3.1 sh.
960   cat <<_ACEOF
961 \`configure' configures this package to adapt to many kinds of systems.
962
963 Usage: $0 [OPTION]... [VAR=VALUE]...
964
965 To assign environment variables (e.g., CC, CFLAGS...), specify them as
966 VAR=VALUE.  See below for descriptions of some of the useful variables.
967
968 Defaults for the options are specified in brackets.
969
970 Configuration:
971   -h, --help              display this help and exit
972       --help=short        display options specific to this package
973       --help=recursive    display the short help of all the included packages
974   -V, --version           display version information and exit
975   -q, --quiet, --silent   do not print \`checking...' messages
976       --cache-file=FILE   cache test results in FILE [disabled]
977   -C, --config-cache      alias for \`--cache-file=config.cache'
978   -n, --no-create         do not create output files
979       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
980
981 _ACEOF
982
983   cat <<_ACEOF
984 Installation directories:
985   --prefix=PREFIX         install architecture-independent files in PREFIX
986                           [$ac_default_prefix]
987   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
988                           [PREFIX]
989
990 By default, \`make install' will install all the files in
991 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
992 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
993 for instance \`--prefix=\$HOME'.
994
995 For better control, use the options below.
996
997 Fine tuning of the installation directories:
998   --bindir=DIR           user executables [EPREFIX/bin]
999   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1000   --libexecdir=DIR       program executables [EPREFIX/libexec]
1001   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1002   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1003   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1004   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1005   --libdir=DIR           object code libraries [EPREFIX/lib]
1006   --includedir=DIR       C header files [PREFIX/include]
1007   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1008   --infodir=DIR          info documentation [PREFIX/info]
1009   --mandir=DIR           man documentation [PREFIX/man]
1010 _ACEOF
1011
1012   cat <<\_ACEOF
1013
1014 Program names:
1015   --program-prefix=PREFIX            prepend PREFIX to installed program names
1016   --program-suffix=SUFFIX            append SUFFIX to installed program names
1017   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1018
1019 System types:
1020   --build=BUILD     configure for building on BUILD [guessed]
1021   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1022   --target=TARGET   configure for building compilers for TARGET [HOST]
1023 _ACEOF
1024 fi
1025
1026 if test -n "$ac_init_help"; then
1027
1028   cat <<\_ACEOF
1029
1030 Optional Features:
1031   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1032   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1033   --enable-debug          enable debugging yes
1034   --enable-dynamic        enable linking built binaries with dynamic libs no
1035   --enable-syslog         enable syslog support auto
1036   --enable-proctitle      enable proctitle support yes
1037   --enable-ipv6           enable IPv6 support auto
1038   --enable-local          enable AF_LOCAL (AF_UNIX) socket support auto
1039   --enable-slapd          enable building slapd yes
1040     --enable-aci          enable per-object ACIs (experimental) no
1041     --enable-cleartext    enable cleartext passwords yes
1042     --enable-crypt        enable crypt(3) passwords no
1043     --enable-lmpasswd     enable LAN Manager passwords no
1044     --enable-spasswd      enable (Cyrus) SASL password verification no
1045     --enable-modules      enable dynamic module support no
1046     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay auto
1047     --enable-rlookups     enable reverse lookups of client hostnames no
1048     --enable-slapi        enable SLAPI support (experimental) no
1049     --enable-slp          enable SLPv2 support no
1050     --enable-wrappers     enable tcp wrapper support no
1051     --enable-backends     enable all available backends no|yes|mod
1052     --enable-bdb          enable Berkeley DB backend no|yes|mod ${ol_dflt_backends-yes}
1053     --enable-dnssrv       enable dnssrv backend no|yes|mod ${ol_dflt_backends-no}
1054     --enable-hdb          enable Hierarchical DB backend no|yes|mod ${ol_dflt_backends-yes}
1055     --enable-ldap         enable ldap backend no|yes|mod ${ol_dflt_backends-no}
1056     --enable-ldbm         enable ldbm backend no|yes|mod ${ol_dflt_backends-no}
1057     --enable-meta         enable metadirectory backend no|yes|mod ${ol_dflt_backends-no}
1058     --enable-monitor      enable monitor backend no|yes|mod ${ol_dflt_backends-yes}
1059     --enable-null         enable null backend no|yes|mod ${ol_dflt_backends-no}
1060     --enable-passwd       enable passwd backend no|yes|mod ${ol_dflt_backends-no}
1061     --enable-perl         enable perl backend no|yes|mod ${ol_dflt_backends-no}
1062     --enable-relay        enable relay backend no|yes|mod ${ol_dflt_backends-yes}
1063     --enable-shell        enable shell backend no|yes|mod ${ol_dflt_backends-no}
1064     --enable-sql          enable sql backend no|yes|mod ${ol_dflt_backends-no}
1065     --enable-overlays     enable all available overlays no|yes|mod
1066     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod ${ol_dflt_overlays-no}
1067     --enable-denyop       Deny Operation overlay no|yes|mod ${ol_dflt_overlays-no}
1068     --enable-dyngroup     Dynamic Group overlay no|yes|mod ${ol_dflt_overlays-no}
1069     --enable-dynlist      Dynamic List overlay no|yes|mod ${ol_dflt_overlays-no}
1070     --enable-glue         Backend Glue overlay no|yes|mod ${ol_dflt_overlays-yes}
1071     --enable-lastmod      Last Modification overlay no|yes|mod ${ol_dflt_overlays-no}
1072     --enable-ppolicy      Password Policy overlay no|yes|mod ${ol_dflt_overlays-no}
1073     --enable-proxycache   Proxy Cache overlay no|yes|mod ${ol_dflt_overlays-no}
1074     --enable-refint       Referential Integrity overlay no|yes|mod ${ol_dflt_overlays-no}
1075     --enable-retcode      Return Code testing overlay no|yes|mod ${ol_dflt_overlays-no}
1076     --enable-rwm          Rewrite/Remap overlay no|yes|mod ${ol_dflt_overlays-no}
1077     --enable-syncprov     Syncrepl Provider overlay no|yes|mod ${ol_dflt_overlays-yes}
1078     --enable-translucent  Translucent Proxy overlay no|yes|mod ${ol_dflt_overlays-no}
1079     --enable-unique       Attribute Uniqueness overlay no|yes|mod ${ol_dflt_overlays-no}
1080   --enable-slurpd         enable building slurpd auto
1081   --enable-static[=PKGS]
1082                           build static libraries [default=yes]
1083   --enable-shared[=PKGS]
1084                           build shared libraries [default=yes]
1085   --enable-fast-install[=PKGS]
1086                           optimize for fast installation [default=yes]
1087   --disable-dependency-tracking  speeds up one-time build
1088   --enable-dependency-tracking   do not reject slow dependency extractors
1089   --disable-libtool-lock  avoid locking (might break parallel builds)
1090
1091 Optional Packages:
1092   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1093   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1094   --with-subdir=DIR       change default subdirectory used for installs
1095   --with-cyrus-sasl       with Cyrus SASL support auto
1096   --with-fetch            with fetch(3) URL support auto
1097   --with-threads          with threads auto
1098   --with-tls              with TLS/SSL support auto
1099   --with-yielding-select  with implicitly yielding select auto
1100   --with-multiple-precision
1101                           multiple precision support for statistics
1102                           auto|bignum|gmp auto
1103
1104 SLAPD (Standalone LDAP Daemon) Options:
1105
1106 SLAPD Backend Options:
1107       --with-ldbm-api     with LDBM API auto|berkeley|bcompat|mdbm|gdbm auto
1108       --with-ldbm-type    use LDBM type auto|btree|hash auto
1109
1110 SLAPD Overlay Options:
1111
1112 SLURPD (Replication Daemon) Options:
1113
1114 Library Generation & Linking Options
1115   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1116   --with-pic              try to use only PIC/non-PIC objects [default=use
1117                           both]
1118   --with-tags[=TAGS]
1119                           include additional configurations [automatic]
1120
1121 See INSTALL file for further details.
1122
1123 Some influential environment variables:
1124   CC          C compiler command
1125   CFLAGS      C compiler flags
1126   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1127               nonstandard directory <lib dir>
1128   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1129               headers in a nonstandard directory <include dir>
1130   CPP         C preprocessor
1131   CXX         C++ compiler command
1132   CXXFLAGS    C++ compiler flags
1133   CXXCPP      C++ preprocessor
1134   F77         Fortran 77 compiler command
1135   FFLAGS      Fortran 77 compiler flags
1136
1137 Use these variables to override the choices made by `configure' or to help
1138 it to find libraries and programs with nonstandard names/locations.
1139
1140 _ACEOF
1141 fi
1142
1143 if test "$ac_init_help" = "recursive"; then
1144   # If there are subdirs, report their specific --help.
1145   ac_popdir=`pwd`
1146   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1147     test -d $ac_dir || continue
1148     ac_builddir=.
1149
1150 if test "$ac_dir" != .; then
1151   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1152   # A "../" for each directory in $ac_dir_suffix.
1153   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1154 else
1155   ac_dir_suffix= ac_top_builddir=
1156 fi
1157
1158 case $srcdir in
1159   .)  # No --srcdir option.  We are building in place.
1160     ac_srcdir=.
1161     if test -z "$ac_top_builddir"; then
1162        ac_top_srcdir=.
1163     else
1164        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1165     fi ;;
1166   [\\/]* | ?:[\\/]* )  # Absolute path.
1167     ac_srcdir=$srcdir$ac_dir_suffix;
1168     ac_top_srcdir=$srcdir ;;
1169   *) # Relative path.
1170     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1171     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1172 esac
1173
1174 # Do not use `cd foo && pwd` to compute absolute paths, because
1175 # the directories may not exist.
1176 case `pwd` in
1177 .) ac_abs_builddir="$ac_dir";;
1178 *)
1179   case "$ac_dir" in
1180   .) ac_abs_builddir=`pwd`;;
1181   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1182   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1183   esac;;
1184 esac
1185 case $ac_abs_builddir in
1186 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1187 *)
1188   case ${ac_top_builddir}. in
1189   .) ac_abs_top_builddir=$ac_abs_builddir;;
1190   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1191   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1192   esac;;
1193 esac
1194 case $ac_abs_builddir in
1195 .) ac_abs_srcdir=$ac_srcdir;;
1196 *)
1197   case $ac_srcdir in
1198   .) ac_abs_srcdir=$ac_abs_builddir;;
1199   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1200   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1201   esac;;
1202 esac
1203 case $ac_abs_builddir in
1204 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1205 *)
1206   case $ac_top_srcdir in
1207   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1208   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1209   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1210   esac;;
1211 esac
1212
1213     cd $ac_dir
1214     # Check for guested configure; otherwise get Cygnus style configure.
1215     if test -f $ac_srcdir/configure.gnu; then
1216       echo
1217       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1218     elif test -f $ac_srcdir/configure; then
1219       echo
1220       $SHELL $ac_srcdir/configure  --help=recursive
1221     elif test -f $ac_srcdir/configure.ac ||
1222            test -f $ac_srcdir/configure.in; then
1223       echo
1224       $ac_configure --help
1225     else
1226       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1227     fi
1228     cd $ac_popdir
1229   done
1230 fi
1231
1232 test -n "$ac_init_help" && exit 0
1233 if $ac_init_version; then
1234   cat <<\_ACEOF
1235
1236 Copyright (C) 2003 Free Software Foundation, Inc.
1237 This configure script is free software; the Free Software Foundation
1238 gives unlimited permission to copy, distribute and modify it.
1239
1240 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1241 Restrictions apply, see COPYRIGHT and LICENSE files.
1242 _ACEOF
1243   exit 0
1244 fi
1245 exec 5>config.log
1246 cat >&5 <<_ACEOF
1247 This file contains any messages produced by compilers while
1248 running configure, to aid debugging if configure makes a mistake.
1249
1250 It was created by $as_me, which was
1251 generated by GNU Autoconf 2.59.  Invocation command line was
1252
1253   $ $0 $@
1254
1255 _ACEOF
1256 {
1257 cat <<_ASUNAME
1258 ## --------- ##
1259 ## Platform. ##
1260 ## --------- ##
1261
1262 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1263 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1264 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1265 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1266 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1267
1268 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1269 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1270
1271 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1272 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1273 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1274 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1275 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1276 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1277 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1278
1279 _ASUNAME
1280
1281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1282 for as_dir in $PATH
1283 do
1284   IFS=$as_save_IFS
1285   test -z "$as_dir" && as_dir=.
1286   echo "PATH: $as_dir"
1287 done
1288
1289 } >&5
1290
1291 cat >&5 <<_ACEOF
1292
1293
1294 ## ----------- ##
1295 ## Core tests. ##
1296 ## ----------- ##
1297
1298 _ACEOF
1299
1300
1301 # Keep a trace of the command line.
1302 # Strip out --no-create and --no-recursion so they do not pile up.
1303 # Strip out --silent because we don't want to record it for future runs.
1304 # Also quote any args containing shell meta-characters.
1305 # Make two passes to allow for proper duplicate-argument suppression.
1306 ac_configure_args=
1307 ac_configure_args0=
1308 ac_configure_args1=
1309 ac_sep=
1310 ac_must_keep_next=false
1311 for ac_pass in 1 2
1312 do
1313   for ac_arg
1314   do
1315     case $ac_arg in
1316     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1317     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1318     | -silent | --silent | --silen | --sile | --sil)
1319       continue ;;
1320     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1322     esac
1323     case $ac_pass in
1324     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1325     2)
1326       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1327       if test $ac_must_keep_next = true; then
1328         ac_must_keep_next=false # Got value, back to normal.
1329       else
1330         case $ac_arg in
1331           *=* | --config-cache | -C | -disable-* | --disable-* \
1332           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1333           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1334           | -with-* | --with-* | -without-* | --without-* | --x)
1335             case "$ac_configure_args0 " in
1336               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1337             esac
1338             ;;
1339           -* ) ac_must_keep_next=true ;;
1340         esac
1341       fi
1342       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1343       # Get rid of the leading space.
1344       ac_sep=" "
1345       ;;
1346     esac
1347   done
1348 done
1349 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1350 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1351
1352 # When interrupted or exit'd, cleanup temporary files, and complete
1353 # config.log.  We remove comments because anyway the quotes in there
1354 # would cause problems or look ugly.
1355 # WARNING: Be sure not to use single quotes in there, as some shells,
1356 # such as our DU 5.0 friend, will then `close' the trap.
1357 trap 'exit_status=$?
1358   # Save into config.log some information that might help in debugging.
1359   {
1360     echo
1361
1362     cat <<\_ASBOX
1363 ## ---------------- ##
1364 ## Cache variables. ##
1365 ## ---------------- ##
1366 _ASBOX
1367     echo
1368     # The following way of writing the cache mishandles newlines in values,
1369 {
1370   (set) 2>&1 |
1371     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1372     *ac_space=\ *)
1373       sed -n \
1374         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1375           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1376       ;;
1377     *)
1378       sed -n \
1379         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1380       ;;
1381     esac;
1382 }
1383     echo
1384
1385     cat <<\_ASBOX
1386 ## ----------------- ##
1387 ## Output variables. ##
1388 ## ----------------- ##
1389 _ASBOX
1390     echo
1391     for ac_var in $ac_subst_vars
1392     do
1393       eval ac_val=$`echo $ac_var`
1394       echo "$ac_var='"'"'$ac_val'"'"'"
1395     done | sort
1396     echo
1397
1398     if test -n "$ac_subst_files"; then
1399       cat <<\_ASBOX
1400 ## ------------- ##
1401 ## Output files. ##
1402 ## ------------- ##
1403 _ASBOX
1404       echo
1405       for ac_var in $ac_subst_files
1406       do
1407         eval ac_val=$`echo $ac_var`
1408         echo "$ac_var='"'"'$ac_val'"'"'"
1409       done | sort
1410       echo
1411     fi
1412
1413     if test -s confdefs.h; then
1414       cat <<\_ASBOX
1415 ## ----------- ##
1416 ## confdefs.h. ##
1417 ## ----------- ##
1418 _ASBOX
1419       echo
1420       sed "/^$/d" confdefs.h | sort
1421       echo
1422     fi
1423     test "$ac_signal" != 0 &&
1424       echo "$as_me: caught signal $ac_signal"
1425     echo "$as_me: exit $exit_status"
1426   } >&5
1427   rm -f core *.core &&
1428   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1429     exit $exit_status
1430      ' 0
1431 for ac_signal in 1 2 13 15; do
1432   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1433 done
1434 ac_signal=0
1435
1436 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1437 rm -rf conftest* confdefs.h
1438 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1439 echo >confdefs.h
1440
1441 # Predefined preprocessor variables.
1442
1443 cat >>confdefs.h <<_ACEOF
1444 #define PACKAGE_NAME "$PACKAGE_NAME"
1445 _ACEOF
1446
1447
1448 cat >>confdefs.h <<_ACEOF
1449 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1450 _ACEOF
1451
1452
1453 cat >>confdefs.h <<_ACEOF
1454 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1455 _ACEOF
1456
1457
1458 cat >>confdefs.h <<_ACEOF
1459 #define PACKAGE_STRING "$PACKAGE_STRING"
1460 _ACEOF
1461
1462
1463 cat >>confdefs.h <<_ACEOF
1464 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1465 _ACEOF
1466
1467
1468 # Let the site file select an alternate cache file if it wants to.
1469 # Prefer explicitly selected file to automatically selected ones.
1470 if test -z "$CONFIG_SITE"; then
1471   if test "x$prefix" != xNONE; then
1472     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1473   else
1474     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1475   fi
1476 fi
1477 for ac_site_file in $CONFIG_SITE; do
1478   if test -r "$ac_site_file"; then
1479     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1480 echo "$as_me: loading site script $ac_site_file" >&6;}
1481     sed 's/^/| /' "$ac_site_file" >&5
1482     . "$ac_site_file"
1483   fi
1484 done
1485
1486
1487 # Check that the precious variables saved in the cache have kept the same
1488 # value.
1489 ac_cache_corrupted=false
1490 for ac_var in `(set) 2>&1 |
1491                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1492   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493   eval ac_new_set=\$ac_env_${ac_var}_set
1494   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495   eval ac_new_val="\$ac_env_${ac_var}_value"
1496   case $ac_old_set,$ac_new_set in
1497     set,)
1498       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500       ac_cache_corrupted=: ;;
1501     ,set)
1502       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504       ac_cache_corrupted=: ;;
1505     ,);;
1506     *)
1507       if test "x$ac_old_val" != "x$ac_new_val"; then
1508         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1511 echo "$as_me:   former value:  $ac_old_val" >&2;}
1512         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1513 echo "$as_me:   current value: $ac_new_val" >&2;}
1514         ac_cache_corrupted=:
1515       fi;;
1516   esac
1517   # Pass precious variables to config.status.
1518   if test "$ac_new_set" = set; then
1519     case $ac_new_val in
1520     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522     *) ac_arg=$ac_var=$ac_new_val ;;
1523     esac
1524     case " $ac_configure_args " in
1525       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1526       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527     esac
1528   fi
1529 done
1530 if $ac_cache_corrupted; then
1531   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535    { (exit 1); exit 1; }; }
1536 fi
1537
1538 ac_ext=c
1539 ac_cpp='$CPP $CPPFLAGS'
1540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584 # set unset (borrowed from autoconf 2.49c)
1585 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
1586   ol_unset=unset
1587 else
1588   ol_unset=false
1589 fi
1590 # unset CDPATH
1591 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1592
1593 ac_aux_dir=
1594 for ac_dir in build $srcdir/build; do
1595   if test -f $ac_dir/install-sh; then
1596     ac_aux_dir=$ac_dir
1597     ac_install_sh="$ac_aux_dir/install-sh -c"
1598     break
1599   elif test -f $ac_dir/install.sh; then
1600     ac_aux_dir=$ac_dir
1601     ac_install_sh="$ac_aux_dir/install.sh -c"
1602     break
1603   elif test -f $ac_dir/shtool; then
1604     ac_aux_dir=$ac_dir
1605     ac_install_sh="$ac_aux_dir/shtool install -c"
1606     break
1607   fi
1608 done
1609 if test -z "$ac_aux_dir"; then
1610   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1611 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1612    { (exit 1); exit 1; }; }
1613 fi
1614 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1615 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1616 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1617
1618 eval `$ac_aux_dir/version.sh`
1619 if test -z "$OL_STRING"; then
1620         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1621 echo "$as_me: error: could not determine version" >&2;}
1622    { (exit 1); exit 1; }; }
1623 fi
1624
1625 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1626         ac_cv_shtool="$ac_aux_dir/shtool"
1627 else
1628         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1629 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1630    { (exit 1); exit 1; }; }
1631 fi
1632
1633 SHTOOL="$ac_cv_shtool"
1634
1635 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1636 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1637
1638 OPENLDAP_CVS=""
1639 if test -d $ac_aux_dir/CVS; then
1640         OPENLDAP_CVS="(from CVS sources) "
1641 fi
1642
1643 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1644
1645 # Make sure we can run config.sub.
1646 $ac_config_sub sun4 >/dev/null 2>&1 ||
1647   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1648 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1649    { (exit 1); exit 1; }; }
1650
1651 echo "$as_me:$LINENO: checking build system type" >&5
1652 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1653 if test "${ac_cv_build+set}" = set; then
1654   echo $ECHO_N "(cached) $ECHO_C" >&6
1655 else
1656   ac_cv_build_alias=$build_alias
1657 test -z "$ac_cv_build_alias" &&
1658   ac_cv_build_alias=`$ac_config_guess`
1659 test -z "$ac_cv_build_alias" &&
1660   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1661 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1662    { (exit 1); exit 1; }; }
1663 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1664   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1665 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1666    { (exit 1); exit 1; }; }
1667
1668 fi
1669 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1670 echo "${ECHO_T}$ac_cv_build" >&6
1671 build=$ac_cv_build
1672 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1673 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1674 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1675
1676
1677 echo "$as_me:$LINENO: checking host system type" >&5
1678 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1679 if test "${ac_cv_host+set}" = set; then
1680   echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682   ac_cv_host_alias=$host_alias
1683 test -z "$ac_cv_host_alias" &&
1684   ac_cv_host_alias=$ac_cv_build_alias
1685 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1686   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1687 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1688    { (exit 1); exit 1; }; }
1689
1690 fi
1691 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1692 echo "${ECHO_T}$ac_cv_host" >&6
1693 host=$ac_cv_host
1694 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1695 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1696 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1697
1698
1699 echo "$as_me:$LINENO: checking target system type" >&5
1700 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1701 if test "${ac_cv_target+set}" = set; then
1702   echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704   ac_cv_target_alias=$target_alias
1705 test "x$ac_cv_target_alias" = "x" &&
1706   ac_cv_target_alias=$ac_cv_host_alias
1707 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1708   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1709 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1710    { (exit 1); exit 1; }; }
1711
1712 fi
1713 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1714 echo "${ECHO_T}$ac_cv_target" >&6
1715 target=$ac_cv_target
1716 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1717 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1718 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1719
1720
1721 # The aliases save the names the user supplied, while $host etc.
1722 # will get canonicalized.
1723 test -n "$target_alias" &&
1724   test "$program_prefix$program_suffix$program_transform_name" = \
1725     NONENONEs,x,x, &&
1726   program_prefix=${target_alias}-
1727
1728 am__api_version="1.9"
1729 # Find a good install program.  We prefer a C program (faster),
1730 # so one script is as good as another.  But avoid the broken or
1731 # incompatible versions:
1732 # SysV /etc/install, /usr/sbin/install
1733 # SunOS /usr/etc/install
1734 # IRIX /sbin/install
1735 # AIX /bin/install
1736 # AmigaOS /C/install, which installs bootblocks on floppy discs
1737 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1738 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1739 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1740 # OS/2's system install, which has a completely different semantic
1741 # ./install, which can be erroneously created by make from ./install.sh.
1742 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1743 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1744 if test -z "$INSTALL"; then
1745 if test "${ac_cv_path_install+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751   IFS=$as_save_IFS
1752   test -z "$as_dir" && as_dir=.
1753   # Account for people who put trailing slashes in PATH elements.
1754 case $as_dir/ in
1755   ./ | .// | /cC/* | \
1756   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1757   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1758   /usr/ucb/* ) ;;
1759   *)
1760     # OSF1 and SCO ODT 3.0 have their own names for install.
1761     # Don't use installbsd from OSF since it installs stuff as root
1762     # by default.
1763     for ac_prog in ginstall scoinst install; do
1764       for ac_exec_ext in '' $ac_executable_extensions; do
1765         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1766           if test $ac_prog = install &&
1767             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1768             # AIX install.  It has an incompatible calling convention.
1769             :
1770           elif test $ac_prog = install &&
1771             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1772             # program-specific install script used by HP pwplus--don't use.
1773             :
1774           else
1775             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1776             break 3
1777           fi
1778         fi
1779       done
1780     done
1781     ;;
1782 esac
1783 done
1784
1785
1786 fi
1787   if test "${ac_cv_path_install+set}" = set; then
1788     INSTALL=$ac_cv_path_install
1789   else
1790     # As a last resort, use the slow shell script.  We don't cache a
1791     # path for INSTALL within a source directory, because that will
1792     # break other packages using the cache if that directory is
1793     # removed, or if the path is relative.
1794     INSTALL=$ac_install_sh
1795   fi
1796 fi
1797 echo "$as_me:$LINENO: result: $INSTALL" >&5
1798 echo "${ECHO_T}$INSTALL" >&6
1799
1800 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1801 # It thinks the first close brace ends the variable substitution.
1802 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1803
1804 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1805
1806 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1807
1808 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1809 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1810 # Just in case
1811 sleep 1
1812 echo timestamp > conftest.file
1813 # Do `set' in a subshell so we don't clobber the current shell's
1814 # arguments.  Must try -L first in case configure is actually a
1815 # symlink; some systems play weird games with the mod time of symlinks
1816 # (eg FreeBSD returns the mod time of the symlink's containing
1817 # directory).
1818 if (
1819    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1820    if test "$*" = "X"; then
1821       # -L didn't work.
1822       set X `ls -t $srcdir/configure conftest.file`
1823    fi
1824    rm -f conftest.file
1825    if test "$*" != "X $srcdir/configure conftest.file" \
1826       && test "$*" != "X conftest.file $srcdir/configure"; then
1827
1828       # If neither matched, then we have a broken ls.  This can happen
1829       # if, for instance, CONFIG_SHELL is bash and it inherits a
1830       # broken ls alias from the environment.  This has actually
1831       # happened.  Such a system could not be considered "sane".
1832       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1833 alias in your environment" >&5
1834 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1835 alias in your environment" >&2;}
1836    { (exit 1); exit 1; }; }
1837    fi
1838
1839    test "$2" = conftest.file
1840    )
1841 then
1842    # Ok.
1843    :
1844 else
1845    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1846 Check your system clock" >&5
1847 echo "$as_me: error: newly created file is older than distributed files!
1848 Check your system clock" >&2;}
1849    { (exit 1); exit 1; }; }
1850 fi
1851 echo "$as_me:$LINENO: result: yes" >&5
1852 echo "${ECHO_T}yes" >&6
1853 test "$program_prefix" != NONE &&
1854   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1855 # Use a double $ so make ignores it.
1856 test "$program_suffix" != NONE &&
1857   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1858 # Double any \ or $.  echo might interpret backslashes.
1859 # By default was `s,x,x', remove it if useless.
1860 cat <<\_ACEOF >conftest.sed
1861 s/[\\$]/&&/g;s/;s,x,x,$//
1862 _ACEOF
1863 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1864 rm conftest.sed
1865
1866 # expand $ac_aux_dir to an absolute path
1867 am_aux_dir=`cd $ac_aux_dir && pwd`
1868
1869 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1870 # Use eval to expand $SHELL
1871 if eval "$MISSING --run true"; then
1872   am_missing_run="$MISSING --run "
1873 else
1874   am_missing_run=
1875   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1876 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1877 fi
1878
1879 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1880   # We used to keeping the `.' as first argument, in order to
1881   # allow $(mkdir_p) to be used without argument.  As in
1882   #   $(mkdir_p) $(somedir)
1883   # where $(somedir) is conditionally defined.  However this is wrong
1884   # for two reasons:
1885   #  1. if the package is installed by a user who cannot write `.'
1886   #     make install will fail,
1887   #  2. the above comment should most certainly read
1888   #     $(mkdir_p) $(DESTDIR)$(somedir)
1889   #     so it does not work when $(somedir) is undefined and
1890   #     $(DESTDIR) is not.
1891   #  To support the latter case, we have to write
1892   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1893   #  so the `.' trick is pointless.
1894   mkdir_p='mkdir -p --'
1895 else
1896   # On NextStep and OpenStep, the `mkdir' command does not
1897   # recognize any option.  It will interpret all options as
1898   # directories to create, and then abort because `.' already
1899   # exists.
1900   for d in ./-p ./--version;
1901   do
1902     test -d $d && rmdir $d
1903   done
1904   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1905   if test -f "$ac_aux_dir/mkinstalldirs"; then
1906     mkdir_p='$(mkinstalldirs)'
1907   else
1908     mkdir_p='$(install_sh) -d'
1909   fi
1910 fi
1911
1912 for ac_prog in gawk mawk nawk awk
1913 do
1914   # Extract the first word of "$ac_prog", so it can be a program name with args.
1915 set dummy $ac_prog; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_AWK+set}" = set; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   if test -n "$AWK"; then
1922   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927   IFS=$as_save_IFS
1928   test -z "$as_dir" && as_dir=.
1929   for ac_exec_ext in '' $ac_executable_extensions; do
1930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931     ac_cv_prog_AWK="$ac_prog"
1932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933     break 2
1934   fi
1935 done
1936 done
1937
1938 fi
1939 fi
1940 AWK=$ac_cv_prog_AWK
1941 if test -n "$AWK"; then
1942   echo "$as_me:$LINENO: result: $AWK" >&5
1943 echo "${ECHO_T}$AWK" >&6
1944 else
1945   echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947 fi
1948
1949   test -n "$AWK" && break
1950 done
1951
1952 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1953 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1954 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1955 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   cat >conftest.make <<\_ACEOF
1959 all:
1960         @echo 'ac_maketemp="$(MAKE)"'
1961 _ACEOF
1962 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1963 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1964 if test -n "$ac_maketemp"; then
1965   eval ac_cv_prog_make_${ac_make}_set=yes
1966 else
1967   eval ac_cv_prog_make_${ac_make}_set=no
1968 fi
1969 rm -f conftest.make
1970 fi
1971 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1972   echo "$as_me:$LINENO: result: yes" >&5
1973 echo "${ECHO_T}yes" >&6
1974   SET_MAKE=
1975 else
1976   echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1978   SET_MAKE="MAKE=${MAKE-make}"
1979 fi
1980
1981 rm -rf .tst 2>/dev/null
1982 mkdir .tst 2>/dev/null
1983 if test -d .tst; then
1984   am__leading_dot=.
1985 else
1986   am__leading_dot=_
1987 fi
1988 rmdir .tst 2>/dev/null
1989
1990 # test to see if srcdir already configured
1991 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1992    test -f $srcdir/config.status; then
1993   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1994 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1995    { (exit 1); exit 1; }; }
1996 fi
1997
1998 # test whether we have cygpath
1999 if test -z "$CYGPATH_W"; then
2000   if (cygpath --version) >/dev/null 2>/dev/null; then
2001     CYGPATH_W='cygpath -w'
2002   else
2003     CYGPATH_W=echo
2004   fi
2005 fi
2006
2007
2008 # Define the identity of the package.
2009  PACKAGE=$OL_PACKAGE
2010  VERSION=$OL_VERSION
2011
2012
2013 # Some tools Automake needs.
2014
2015 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2016
2017
2018 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2019
2020
2021 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2022
2023
2024 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2025
2026
2027 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2028
2029 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2030
2031 # Installed binaries are usually stripped using `strip' when the user
2032 # run `make install-strip'.  However `strip' might not be the right
2033 # tool to use in cross-compilation environments, therefore Automake
2034 # will honor the `STRIP' environment variable to overrule this program.
2035 if test "$cross_compiling" != no; then
2036   if test -n "$ac_tool_prefix"; then
2037   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2038 set dummy ${ac_tool_prefix}strip; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_STRIP+set}" = set; then
2042   echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044   if test -n "$STRIP"; then
2045   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2046 else
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050   IFS=$as_save_IFS
2051   test -z "$as_dir" && as_dir=.
2052   for ac_exec_ext in '' $ac_executable_extensions; do
2053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056     break 2
2057   fi
2058 done
2059 done
2060
2061 fi
2062 fi
2063 STRIP=$ac_cv_prog_STRIP
2064 if test -n "$STRIP"; then
2065   echo "$as_me:$LINENO: result: $STRIP" >&5
2066 echo "${ECHO_T}$STRIP" >&6
2067 else
2068   echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2070 fi
2071
2072 fi
2073 if test -z "$ac_cv_prog_STRIP"; then
2074   ac_ct_STRIP=$STRIP
2075   # Extract the first word of "strip", so it can be a program name with args.
2076 set dummy strip; ac_word=$2
2077 echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2080   echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082   if test -n "$ac_ct_STRIP"; then
2083   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2084 else
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088   IFS=$as_save_IFS
2089   test -z "$as_dir" && as_dir=.
2090   for ac_exec_ext in '' $ac_executable_extensions; do
2091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092     ac_cv_prog_ac_ct_STRIP="strip"
2093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094     break 2
2095   fi
2096 done
2097 done
2098
2099   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2100 fi
2101 fi
2102 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2103 if test -n "$ac_ct_STRIP"; then
2104   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2105 echo "${ECHO_T}$ac_ct_STRIP" >&6
2106 else
2107   echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6
2109 fi
2110
2111   STRIP=$ac_ct_STRIP
2112 else
2113   STRIP="$ac_cv_prog_STRIP"
2114 fi
2115
2116 fi
2117 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2118
2119 # We need awk for the "check" target.  The system "awk" is bad on
2120 # some platforms.
2121 # Always define AMTAR for backward compatibility.
2122
2123 AMTAR=${AMTAR-"${am_missing_run}tar"}
2124
2125 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2126
2127
2128
2129
2130
2131 cat >>confdefs.h <<_ACEOF
2132 #define OPENLDAP_PACKAGE "$PACKAGE"
2133 _ACEOF
2134
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define OPENLDAP_VERSION "$VERSION"
2138 _ACEOF
2139
2140
2141
2142 cat >>confdefs.h <<_ACEOF
2143 #define LDAP_VENDOR_VERSION $OL_API_INC
2144 _ACEOF
2145
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2149 _ACEOF
2150
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2154 _ACEOF
2155
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2159 _ACEOF
2160
2161
2162 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2163
2164 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2165
2166 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2167
2168
2169
2170
2171
2172
2173
2174           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2175
2176           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2177
2178           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2179
2180
2181 echo "$as_me:$LINENO: checking configure arguments" >&5
2182 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2183
2184
2185 top_builddir=`pwd`
2186
2187 ldap_subdir="/openldap"
2188
2189
2190 # Check whether --with-subdir or --without-subdir was given.
2191 if test "${with_subdir+set}" = set; then
2192   withval="$with_subdir"
2193   case "$withval" in
2194         no) ldap_subdir=""
2195                 ;;
2196         yes)
2197                 ;;
2198         /*|\\*)
2199                 ldap_subdir="$withval"
2200                 ;;
2201         *)
2202                 ldap_subdir="/$withval"
2203                 ;;
2204 esac
2205
2206 fi;
2207
2208 # OpenLDAP --enable-debug
2209         # Check whether --enable-debug or --disable-debug was given.
2210 if test "${enable_debug+set}" = set; then
2211   enableval="$enable_debug"
2212
2213         ol_arg=invalid
2214         for ol_val in auto yes no ; do
2215                 if test "$enableval" = "$ol_val" ; then
2216                         ol_arg="$ol_val"
2217                 fi
2218         done
2219         if test "$ol_arg" = "invalid" ; then
2220                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2221 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2222    { (exit 1); exit 1; }; }
2223         fi
2224         ol_enable_debug="$ol_arg"
2225
2226 else
2227         ol_enable_debug="yes"
2228 fi; # end --enable-debug
2229 # OpenLDAP --enable-dynamic
2230         # Check whether --enable-dynamic or --disable-dynamic was given.
2231 if test "${enable_dynamic+set}" = set; then
2232   enableval="$enable_dynamic"
2233
2234         ol_arg=invalid
2235         for ol_val in auto yes no ; do
2236                 if test "$enableval" = "$ol_val" ; then
2237                         ol_arg="$ol_val"
2238                 fi
2239         done
2240         if test "$ol_arg" = "invalid" ; then
2241                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2242 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2243    { (exit 1); exit 1; }; }
2244         fi
2245         ol_enable_dynamic="$ol_arg"
2246
2247 else
2248         ol_enable_dynamic="no"
2249 fi; # end --enable-dynamic
2250 # OpenLDAP --enable-syslog
2251         # Check whether --enable-syslog or --disable-syslog was given.
2252 if test "${enable_syslog+set}" = set; then
2253   enableval="$enable_syslog"
2254
2255         ol_arg=invalid
2256         for ol_val in auto yes no ; do
2257                 if test "$enableval" = "$ol_val" ; then
2258                         ol_arg="$ol_val"
2259                 fi
2260         done
2261         if test "$ol_arg" = "invalid" ; then
2262                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2263 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2264    { (exit 1); exit 1; }; }
2265         fi
2266         ol_enable_syslog="$ol_arg"
2267
2268 else
2269         ol_enable_syslog="auto"
2270 fi; # end --enable-syslog
2271 # OpenLDAP --enable-proctitle
2272         # Check whether --enable-proctitle or --disable-proctitle was given.
2273 if test "${enable_proctitle+set}" = set; then
2274   enableval="$enable_proctitle"
2275
2276         ol_arg=invalid
2277         for ol_val in auto yes no ; do
2278                 if test "$enableval" = "$ol_val" ; then
2279                         ol_arg="$ol_val"
2280                 fi
2281         done
2282         if test "$ol_arg" = "invalid" ; then
2283                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2284 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2285    { (exit 1); exit 1; }; }
2286         fi
2287         ol_enable_proctitle="$ol_arg"
2288
2289 else
2290         ol_enable_proctitle="yes"
2291 fi; # end --enable-proctitle
2292 ol_enable_referrals=${ol_enable_referrals-no}
2293 ol_enable_kbind=${ol_enable_kbind-no}
2294 # OpenLDAP --enable-ipv6
2295         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2296 if test "${enable_ipv6+set}" = set; then
2297   enableval="$enable_ipv6"
2298
2299         ol_arg=invalid
2300         for ol_val in auto yes no ; do
2301                 if test "$enableval" = "$ol_val" ; then
2302                         ol_arg="$ol_val"
2303                 fi
2304         done
2305         if test "$ol_arg" = "invalid" ; then
2306                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2307 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2308    { (exit 1); exit 1; }; }
2309         fi
2310         ol_enable_ipv6="$ol_arg"
2311
2312 else
2313         ol_enable_ipv6="auto"
2314 fi; # end --enable-ipv6
2315 # OpenLDAP --enable-local
2316         # Check whether --enable-local or --disable-local was given.
2317 if test "${enable_local+set}" = set; then
2318   enableval="$enable_local"
2319
2320         ol_arg=invalid
2321         for ol_val in auto yes no ; do
2322                 if test "$enableval" = "$ol_val" ; then
2323                         ol_arg="$ol_val"
2324                 fi
2325         done
2326         if test "$ol_arg" = "invalid" ; then
2327                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2328 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2329    { (exit 1); exit 1; }; }
2330         fi
2331         ol_enable_local="$ol_arg"
2332
2333 else
2334         ol_enable_local="auto"
2335 fi; # end --enable-local
2336
2337
2338 # OpenLDAP --with-cyrus_sasl
2339
2340 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2341 if test "${with_cyrus_sasl+set}" = set; then
2342   withval="$with_cyrus_sasl"
2343
2344         ol_arg=invalid
2345         for ol_val in auto yes no  ; do
2346                 if test "$withval" = "$ol_val" ; then
2347                         ol_arg="$ol_val"
2348                 fi
2349         done
2350         if test "$ol_arg" = "invalid" ; then
2351                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2352 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2353    { (exit 1); exit 1; }; }
2354         fi
2355         ol_with_cyrus_sasl="$ol_arg"
2356
2357 else
2358         ol_with_cyrus_sasl="auto"
2359 fi; # end --with-cyrus_sasl
2360
2361 # OpenLDAP --with-fetch
2362
2363 # Check whether --with-fetch or --without-fetch was given.
2364 if test "${with_fetch+set}" = set; then
2365   withval="$with_fetch"
2366
2367         ol_arg=invalid
2368         for ol_val in auto yes no  ; do
2369                 if test "$withval" = "$ol_val" ; then
2370                         ol_arg="$ol_val"
2371                 fi
2372         done
2373         if test "$ol_arg" = "invalid" ; then
2374                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2375 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2376    { (exit 1); exit 1; }; }
2377         fi
2378         ol_with_fetch="$ol_arg"
2379
2380 else
2381         ol_with_fetch="auto"
2382 fi; # end --with-fetch
2383
2384 ol_with_kerberos=${ol_with_kerberos-auto}
2385 # OpenLDAP --with-threads
2386
2387 # Check whether --with-threads or --without-threads was given.
2388 if test "${with_threads+set}" = set; then
2389   withval="$with_threads"
2390
2391         ol_arg=invalid
2392         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2393                 if test "$withval" = "$ol_val" ; then
2394                         ol_arg="$ol_val"
2395                 fi
2396         done
2397         if test "$ol_arg" = "invalid" ; then
2398                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2399 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2400    { (exit 1); exit 1; }; }
2401         fi
2402         ol_with_threads="$ol_arg"
2403
2404 else
2405         ol_with_threads="auto"
2406 fi; # end --with-threads
2407
2408 # OpenLDAP --with-tls
2409
2410 # Check whether --with-tls or --without-tls was given.
2411 if test "${with_tls+set}" = set; then
2412   withval="$with_tls"
2413
2414         ol_arg=invalid
2415         for ol_val in auto ssleay openssl yes no  ; do
2416                 if test "$withval" = "$ol_val" ; then
2417                         ol_arg="$ol_val"
2418                 fi
2419         done
2420         if test "$ol_arg" = "invalid" ; then
2421                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2422 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2423    { (exit 1); exit 1; }; }
2424         fi
2425         ol_with_tls="$ol_arg"
2426
2427 else
2428         ol_with_tls="auto"
2429 fi; # end --with-tls
2430
2431 # OpenLDAP --with-yielding_select
2432
2433 # Check whether --with-yielding_select or --without-yielding_select was given.
2434 if test "${with_yielding_select+set}" = set; then
2435   withval="$with_yielding_select"
2436
2437         ol_arg=invalid
2438         for ol_val in auto yes no manual  ; do
2439                 if test "$withval" = "$ol_val" ; then
2440                         ol_arg="$ol_val"
2441                 fi
2442         done
2443         if test "$ol_arg" = "invalid" ; then
2444                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2445 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2446    { (exit 1); exit 1; }; }
2447         fi
2448         ol_with_yielding_select="$ol_arg"
2449
2450 else
2451         ol_with_yielding_select="auto"
2452 fi; # end --with-yielding_select
2453
2454 # OpenLDAP --with-multiple_precision
2455
2456 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2457 if test "${with_multiple_precision+set}" = set; then
2458   withval="$with_multiple_precision"
2459
2460         ol_arg=invalid
2461         for ol_val in auto bignum gmp yes no  ; do
2462                 if test "$withval" = "$ol_val" ; then
2463                         ol_arg="$ol_val"
2464                 fi
2465         done
2466         if test "$ol_arg" = "invalid" ; then
2467                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2468 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2469    { (exit 1); exit 1; }; }
2470         fi
2471         ol_with_multiple_precision="$ol_arg"
2472
2473 else
2474         ol_with_multiple_precision="auto"
2475 fi; # end --with-multiple_precision
2476
2477
2478
2479
2480 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2481 if test "${with_xxslapdoptions+set}" = set; then
2482   withval="$with_xxslapdoptions"
2483
2484 fi;
2485 # OpenLDAP --enable-slapd
2486         # Check whether --enable-slapd or --disable-slapd was given.
2487 if test "${enable_slapd+set}" = set; then
2488   enableval="$enable_slapd"
2489
2490         ol_arg=invalid
2491         for ol_val in auto yes no ; do
2492                 if test "$enableval" = "$ol_val" ; then
2493                         ol_arg="$ol_val"
2494                 fi
2495         done
2496         if test "$ol_arg" = "invalid" ; then
2497                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2498 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2499    { (exit 1); exit 1; }; }
2500         fi
2501         ol_enable_slapd="$ol_arg"
2502
2503 else
2504         ol_enable_slapd="yes"
2505 fi; # end --enable-slapd
2506 # OpenLDAP --enable-aci
2507         # Check whether --enable-aci or --disable-aci was given.
2508 if test "${enable_aci+set}" = set; then
2509   enableval="$enable_aci"
2510
2511         ol_arg=invalid
2512         for ol_val in auto yes no ; do
2513                 if test "$enableval" = "$ol_val" ; then
2514                         ol_arg="$ol_val"
2515                 fi
2516         done
2517         if test "$ol_arg" = "invalid" ; then
2518                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2519 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2520    { (exit 1); exit 1; }; }
2521         fi
2522         ol_enable_aci="$ol_arg"
2523
2524 else
2525         ol_enable_aci="no"
2526 fi; # end --enable-aci
2527 # OpenLDAP --enable-cleartext
2528         # Check whether --enable-cleartext or --disable-cleartext was given.
2529 if test "${enable_cleartext+set}" = set; then
2530   enableval="$enable_cleartext"
2531
2532         ol_arg=invalid
2533         for ol_val in auto yes no ; do
2534                 if test "$enableval" = "$ol_val" ; then
2535                         ol_arg="$ol_val"
2536                 fi
2537         done
2538         if test "$ol_arg" = "invalid" ; then
2539                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2540 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2541    { (exit 1); exit 1; }; }
2542         fi
2543         ol_enable_cleartext="$ol_arg"
2544
2545 else
2546         ol_enable_cleartext="yes"
2547 fi; # end --enable-cleartext
2548 # OpenLDAP --enable-crypt
2549         # Check whether --enable-crypt or --disable-crypt was given.
2550 if test "${enable_crypt+set}" = set; then
2551   enableval="$enable_crypt"
2552
2553         ol_arg=invalid
2554         for ol_val in auto yes no ; do
2555                 if test "$enableval" = "$ol_val" ; then
2556                         ol_arg="$ol_val"
2557                 fi
2558         done
2559         if test "$ol_arg" = "invalid" ; then
2560                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2561 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2562    { (exit 1); exit 1; }; }
2563         fi
2564         ol_enable_crypt="$ol_arg"
2565
2566 else
2567         ol_enable_crypt="no"
2568 fi; # end --enable-crypt
2569 # OpenLDAP --enable-lmpasswd
2570         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2571 if test "${enable_lmpasswd+set}" = set; then
2572   enableval="$enable_lmpasswd"
2573
2574         ol_arg=invalid
2575         for ol_val in auto yes no ; do
2576                 if test "$enableval" = "$ol_val" ; then
2577                         ol_arg="$ol_val"
2578                 fi
2579         done
2580         if test "$ol_arg" = "invalid" ; then
2581                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2582 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2583    { (exit 1); exit 1; }; }
2584         fi
2585         ol_enable_lmpasswd="$ol_arg"
2586
2587 else
2588         ol_enable_lmpasswd="no"
2589 fi; # end --enable-lmpasswd
2590 # OpenLDAP --enable-spasswd
2591         # Check whether --enable-spasswd or --disable-spasswd was given.
2592 if test "${enable_spasswd+set}" = set; then
2593   enableval="$enable_spasswd"
2594
2595         ol_arg=invalid
2596         for ol_val in auto yes no ; do
2597                 if test "$enableval" = "$ol_val" ; then
2598                         ol_arg="$ol_val"
2599                 fi
2600         done
2601         if test "$ol_arg" = "invalid" ; then
2602                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2603 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2604    { (exit 1); exit 1; }; }
2605         fi
2606         ol_enable_spasswd="$ol_arg"
2607
2608 else
2609         ol_enable_spasswd="no"
2610 fi; # end --enable-spasswd
2611 # OpenLDAP --enable-modules
2612         # Check whether --enable-modules or --disable-modules was given.
2613 if test "${enable_modules+set}" = set; then
2614   enableval="$enable_modules"
2615
2616         ol_arg=invalid
2617         for ol_val in auto yes no ; do
2618                 if test "$enableval" = "$ol_val" ; then
2619                         ol_arg="$ol_val"
2620                 fi
2621         done
2622         if test "$ol_arg" = "invalid" ; then
2623                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2624 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2625    { (exit 1); exit 1; }; }
2626         fi
2627         ol_enable_modules="$ol_arg"
2628
2629 else
2630         ol_enable_modules="no"
2631 fi; # end --enable-modules
2632 ol_enable_multimaster=${ol_enable_multimaster-no}
2633 # OpenLDAP --enable-rewrite
2634         # Check whether --enable-rewrite or --disable-rewrite was given.
2635 if test "${enable_rewrite+set}" = set; then
2636   enableval="$enable_rewrite"
2637
2638         ol_arg=invalid
2639         for ol_val in auto yes no ; do
2640                 if test "$enableval" = "$ol_val" ; then
2641                         ol_arg="$ol_val"
2642                 fi
2643         done
2644         if test "$ol_arg" = "invalid" ; then
2645                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2646 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2647    { (exit 1); exit 1; }; }
2648         fi
2649         ol_enable_rewrite="$ol_arg"
2650
2651 else
2652         ol_enable_rewrite="auto"
2653 fi; # end --enable-rewrite
2654 # OpenLDAP --enable-rlookups
2655         # Check whether --enable-rlookups or --disable-rlookups was given.
2656 if test "${enable_rlookups+set}" = set; then
2657   enableval="$enable_rlookups"
2658
2659         ol_arg=invalid
2660         for ol_val in auto yes no ; do
2661                 if test "$enableval" = "$ol_val" ; then
2662                         ol_arg="$ol_val"
2663                 fi
2664         done
2665         if test "$ol_arg" = "invalid" ; then
2666                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2667 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2668    { (exit 1); exit 1; }; }
2669         fi
2670         ol_enable_rlookups="$ol_arg"
2671
2672 else
2673         ol_enable_rlookups="no"
2674 fi; # end --enable-rlookups
2675 # OpenLDAP --enable-slapi
2676         # Check whether --enable-slapi or --disable-slapi was given.
2677 if test "${enable_slapi+set}" = set; then
2678   enableval="$enable_slapi"
2679
2680         ol_arg=invalid
2681         for ol_val in auto yes no ; do
2682                 if test "$enableval" = "$ol_val" ; then
2683                         ol_arg="$ol_val"
2684                 fi
2685         done
2686         if test "$ol_arg" = "invalid" ; then
2687                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2688 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2689    { (exit 1); exit 1; }; }
2690         fi
2691         ol_enable_slapi="$ol_arg"
2692
2693 else
2694         ol_enable_slapi="no"
2695 fi; # end --enable-slapi
2696 # OpenLDAP --enable-slp
2697         # Check whether --enable-slp or --disable-slp was given.
2698 if test "${enable_slp+set}" = set; then
2699   enableval="$enable_slp"
2700
2701         ol_arg=invalid
2702         for ol_val in auto yes no ; do
2703                 if test "$enableval" = "$ol_val" ; then
2704                         ol_arg="$ol_val"
2705                 fi
2706         done
2707         if test "$ol_arg" = "invalid" ; then
2708                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2709 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2710    { (exit 1); exit 1; }; }
2711         fi
2712         ol_enable_slp="$ol_arg"
2713
2714 else
2715         ol_enable_slp="no"
2716 fi; # end --enable-slp
2717 # OpenLDAP --enable-wrappers
2718         # Check whether --enable-wrappers or --disable-wrappers was given.
2719 if test "${enable_wrappers+set}" = set; then
2720   enableval="$enable_wrappers"
2721
2722         ol_arg=invalid
2723         for ol_val in auto yes no ; do
2724                 if test "$enableval" = "$ol_val" ; then
2725                         ol_arg="$ol_val"
2726                 fi
2727         done
2728         if test "$ol_arg" = "invalid" ; then
2729                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2730 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2731    { (exit 1); exit 1; }; }
2732         fi
2733         ol_enable_wrappers="$ol_arg"
2734
2735 else
2736         ol_enable_wrappers="no"
2737 fi; # end --enable-wrappers
2738
2739 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2740         passwd perl relay shell sql"
2741
2742
2743 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2744 if test "${with_xxslapbackends+set}" = set; then
2745   withval="$with_xxslapbackends"
2746
2747 fi;
2748
2749 # OpenLDAP --enable-backends
2750         # Check whether --enable-backends or --disable-backends was given.
2751 if test "${enable_backends+set}" = set; then
2752   enableval="$enable_backends"
2753
2754         ol_arg=invalid
2755         for ol_val in no yes mod ; do
2756                 if test "$enableval" = "$ol_val" ; then
2757                         ol_arg="$ol_val"
2758                 fi
2759         done
2760         if test "$ol_arg" = "invalid" ; then
2761                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2762 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2763    { (exit 1); exit 1; }; }
2764         fi
2765         ol_enable_backends="$ol_arg"
2766
2767 fi; # end --enable-backends
2768 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2769 # OpenLDAP --enable-bdb
2770         # Check whether --enable-bdb or --disable-bdb was given.
2771 if test "${enable_bdb+set}" = set; then
2772   enableval="$enable_bdb"
2773
2774         ol_arg=invalid
2775         for ol_val in no yes mod ; do
2776                 if test "$enableval" = "$ol_val" ; then
2777                         ol_arg="$ol_val"
2778                 fi
2779         done
2780         if test "$ol_arg" = "invalid" ; then
2781                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2782 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2783    { (exit 1); exit 1; }; }
2784         fi
2785         ol_enable_bdb="$ol_arg"
2786
2787 else
2788         ol_enable_bdb="${ol_dflt_backends-yes}"
2789 fi; # end --enable-bdb
2790 # OpenLDAP --enable-dnssrv
2791         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2792 if test "${enable_dnssrv+set}" = set; then
2793   enableval="$enable_dnssrv"
2794
2795         ol_arg=invalid
2796         for ol_val in no yes mod ; do
2797                 if test "$enableval" = "$ol_val" ; then
2798                         ol_arg="$ol_val"
2799                 fi
2800         done
2801         if test "$ol_arg" = "invalid" ; then
2802                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2803 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2804    { (exit 1); exit 1; }; }
2805         fi
2806         ol_enable_dnssrv="$ol_arg"
2807
2808 else
2809         ol_enable_dnssrv="${ol_dflt_backends-no}"
2810 fi; # end --enable-dnssrv
2811 # OpenLDAP --enable-hdb
2812         # Check whether --enable-hdb or --disable-hdb was given.
2813 if test "${enable_hdb+set}" = set; then
2814   enableval="$enable_hdb"
2815
2816         ol_arg=invalid
2817         for ol_val in no yes mod ; do
2818                 if test "$enableval" = "$ol_val" ; then
2819                         ol_arg="$ol_val"
2820                 fi
2821         done
2822         if test "$ol_arg" = "invalid" ; then
2823                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2824 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2825    { (exit 1); exit 1; }; }
2826         fi
2827         ol_enable_hdb="$ol_arg"
2828
2829 else
2830         ol_enable_hdb="${ol_dflt_backends-yes}"
2831 fi; # end --enable-hdb
2832 # OpenLDAP --enable-ldap
2833         # Check whether --enable-ldap or --disable-ldap was given.
2834 if test "${enable_ldap+set}" = set; then
2835   enableval="$enable_ldap"
2836
2837         ol_arg=invalid
2838         for ol_val in no yes mod ; do
2839                 if test "$enableval" = "$ol_val" ; then
2840                         ol_arg="$ol_val"
2841                 fi
2842         done
2843         if test "$ol_arg" = "invalid" ; then
2844                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2845 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2846    { (exit 1); exit 1; }; }
2847         fi
2848         ol_enable_ldap="$ol_arg"
2849
2850 else
2851         ol_enable_ldap="${ol_dflt_backends-no}"
2852 fi; # end --enable-ldap
2853 # OpenLDAP --enable-ldbm
2854         # Check whether --enable-ldbm or --disable-ldbm was given.
2855 if test "${enable_ldbm+set}" = set; then
2856   enableval="$enable_ldbm"
2857
2858         ol_arg=invalid
2859         for ol_val in no yes mod ; do
2860                 if test "$enableval" = "$ol_val" ; then
2861                         ol_arg="$ol_val"
2862                 fi
2863         done
2864         if test "$ol_arg" = "invalid" ; then
2865                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2866 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2867    { (exit 1); exit 1; }; }
2868         fi
2869         ol_enable_ldbm="$ol_arg"
2870
2871 else
2872         ol_enable_ldbm="${ol_dflt_backends-no}"
2873 fi; # end --enable-ldbm
2874 # OpenLDAP --with-ldbm_api
2875
2876 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2877 if test "${with_ldbm_api+set}" = set; then
2878   withval="$with_ldbm_api"
2879
2880         ol_arg=invalid
2881         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2882                 if test "$withval" = "$ol_val" ; then
2883                         ol_arg="$ol_val"
2884                 fi
2885         done
2886         if test "$ol_arg" = "invalid" ; then
2887                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2888 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2889    { (exit 1); exit 1; }; }
2890         fi
2891         ol_with_ldbm_api="$ol_arg"
2892
2893 else
2894         ol_with_ldbm_api="auto"
2895 fi; # end --with-ldbm_api
2896
2897 # OpenLDAP --with-ldbm_type
2898
2899 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2900 if test "${with_ldbm_type+set}" = set; then
2901   withval="$with_ldbm_type"
2902
2903         ol_arg=invalid
2904         for ol_val in auto btree hash ; do
2905                 if test "$withval" = "$ol_val" ; then
2906                         ol_arg="$ol_val"
2907                 fi
2908         done
2909         if test "$ol_arg" = "invalid" ; then
2910                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2911 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2912    { (exit 1); exit 1; }; }
2913         fi
2914         ol_with_ldbm_type="$ol_arg"
2915
2916 else
2917         ol_with_ldbm_type="auto"
2918 fi; # end --with-ldbm_type
2919
2920 # OpenLDAP --enable-meta
2921         # Check whether --enable-meta or --disable-meta was given.
2922 if test "${enable_meta+set}" = set; then
2923   enableval="$enable_meta"
2924
2925         ol_arg=invalid
2926         for ol_val in no yes mod ; do
2927                 if test "$enableval" = "$ol_val" ; then
2928                         ol_arg="$ol_val"
2929                 fi
2930         done
2931         if test "$ol_arg" = "invalid" ; then
2932                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2933 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2934    { (exit 1); exit 1; }; }
2935         fi
2936         ol_enable_meta="$ol_arg"
2937
2938 else
2939         ol_enable_meta="${ol_dflt_backends-no}"
2940 fi; # end --enable-meta
2941 # OpenLDAP --enable-monitor
2942         # Check whether --enable-monitor or --disable-monitor was given.
2943 if test "${enable_monitor+set}" = set; then
2944   enableval="$enable_monitor"
2945
2946         ol_arg=invalid
2947         for ol_val in no yes mod ; do
2948                 if test "$enableval" = "$ol_val" ; then
2949                         ol_arg="$ol_val"
2950                 fi
2951         done
2952         if test "$ol_arg" = "invalid" ; then
2953                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2954 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2955    { (exit 1); exit 1; }; }
2956         fi
2957         ol_enable_monitor="$ol_arg"
2958
2959 else
2960         ol_enable_monitor="${ol_dflt_backends-yes}"
2961 fi; # end --enable-monitor
2962 # OpenLDAP --enable-null
2963         # Check whether --enable-null or --disable-null was given.
2964 if test "${enable_null+set}" = set; then
2965   enableval="$enable_null"
2966
2967         ol_arg=invalid
2968         for ol_val in no yes mod ; do
2969                 if test "$enableval" = "$ol_val" ; then
2970                         ol_arg="$ol_val"
2971                 fi
2972         done
2973         if test "$ol_arg" = "invalid" ; then
2974                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2975 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2976    { (exit 1); exit 1; }; }
2977         fi
2978         ol_enable_null="$ol_arg"
2979
2980 else
2981         ol_enable_null="${ol_dflt_backends-no}"
2982 fi; # end --enable-null
2983 # OpenLDAP --enable-passwd
2984         # Check whether --enable-passwd or --disable-passwd was given.
2985 if test "${enable_passwd+set}" = set; then
2986   enableval="$enable_passwd"
2987
2988         ol_arg=invalid
2989         for ol_val in no yes mod ; do
2990                 if test "$enableval" = "$ol_val" ; then
2991                         ol_arg="$ol_val"
2992                 fi
2993         done
2994         if test "$ol_arg" = "invalid" ; then
2995                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2996 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2997    { (exit 1); exit 1; }; }
2998         fi
2999         ol_enable_passwd="$ol_arg"
3000
3001 else
3002         ol_enable_passwd="${ol_dflt_backends-no}"
3003 fi; # end --enable-passwd
3004 # OpenLDAP --enable-perl
3005         # Check whether --enable-perl or --disable-perl was given.
3006 if test "${enable_perl+set}" = set; then
3007   enableval="$enable_perl"
3008
3009         ol_arg=invalid
3010         for ol_val in no yes mod ; do
3011                 if test "$enableval" = "$ol_val" ; then
3012                         ol_arg="$ol_val"
3013                 fi
3014         done
3015         if test "$ol_arg" = "invalid" ; then
3016                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3017 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3018    { (exit 1); exit 1; }; }
3019         fi
3020         ol_enable_perl="$ol_arg"
3021
3022 else
3023         ol_enable_perl="${ol_dflt_backends-no}"
3024 fi; # end --enable-perl
3025 # OpenLDAP --enable-relay
3026         # Check whether --enable-relay or --disable-relay was given.
3027 if test "${enable_relay+set}" = set; then
3028   enableval="$enable_relay"
3029
3030         ol_arg=invalid
3031         for ol_val in no yes mod ; do
3032                 if test "$enableval" = "$ol_val" ; then
3033                         ol_arg="$ol_val"
3034                 fi
3035         done
3036         if test "$ol_arg" = "invalid" ; then
3037                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3038 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3039    { (exit 1); exit 1; }; }
3040         fi
3041         ol_enable_relay="$ol_arg"
3042
3043 else
3044         ol_enable_relay="${ol_dflt_backends-yes}"
3045 fi; # end --enable-relay
3046 # OpenLDAP --enable-shell
3047         # Check whether --enable-shell or --disable-shell was given.
3048 if test "${enable_shell+set}" = set; then
3049   enableval="$enable_shell"
3050
3051         ol_arg=invalid
3052         for ol_val in no yes mod ; do
3053                 if test "$enableval" = "$ol_val" ; then
3054                         ol_arg="$ol_val"
3055                 fi
3056         done
3057         if test "$ol_arg" = "invalid" ; then
3058                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3059 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3060    { (exit 1); exit 1; }; }
3061         fi
3062         ol_enable_shell="$ol_arg"
3063
3064 else
3065         ol_enable_shell="${ol_dflt_backends-no}"
3066 fi; # end --enable-shell
3067 # OpenLDAP --enable-sql
3068         # Check whether --enable-sql or --disable-sql was given.
3069 if test "${enable_sql+set}" = set; then
3070   enableval="$enable_sql"
3071
3072         ol_arg=invalid
3073         for ol_val in no yes mod ; do
3074                 if test "$enableval" = "$ol_val" ; then
3075                         ol_arg="$ol_val"
3076                 fi
3077         done
3078         if test "$ol_arg" = "invalid" ; then
3079                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3080 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3081    { (exit 1); exit 1; }; }
3082         fi
3083         ol_enable_sql="$ol_arg"
3084
3085 else
3086         ol_enable_sql="${ol_dflt_backends-no}"
3087 fi; # end --enable-sql
3088
3089 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3090         refint retcode rwm syncprov translucent unique"
3091
3092
3093 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3094 if test "${with_xxslapoverlays+set}" = set; then
3095   withval="$with_xxslapoverlays"
3096
3097 fi;
3098
3099 # OpenLDAP --enable-overlays
3100         # Check whether --enable-overlays or --disable-overlays was given.
3101 if test "${enable_overlays+set}" = set; then
3102   enableval="$enable_overlays"
3103
3104         ol_arg=invalid
3105         for ol_val in no yes mod ; do
3106                 if test "$enableval" = "$ol_val" ; then
3107                         ol_arg="$ol_val"
3108                 fi
3109         done
3110         if test "$ol_arg" = "invalid" ; then
3111                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3112 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3113    { (exit 1); exit 1; }; }
3114         fi
3115         ol_enable_overlays="$ol_arg"
3116
3117 fi; # end --enable-overlays
3118 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3119 # OpenLDAP --enable-accesslog
3120         # Check whether --enable-accesslog or --disable-accesslog was given.
3121 if test "${enable_accesslog+set}" = set; then
3122   enableval="$enable_accesslog"
3123
3124         ol_arg=invalid
3125         for ol_val in no yes mod ; do
3126                 if test "$enableval" = "$ol_val" ; then
3127                         ol_arg="$ol_val"
3128                 fi
3129         done
3130         if test "$ol_arg" = "invalid" ; then
3131                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3132 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3133    { (exit 1); exit 1; }; }
3134         fi
3135         ol_enable_accesslog="$ol_arg"
3136
3137 else
3138         ol_enable_accesslog="${ol_dflt_overlays-no}"
3139 fi; # end --enable-accesslog
3140
3141 # OpenLDAP --enable-denyop
3142         # Check whether --enable-denyop or --disable-denyop was given.
3143 if test "${enable_denyop+set}" = set; then
3144   enableval="$enable_denyop"
3145
3146         ol_arg=invalid
3147         for ol_val in no yes mod ; do
3148                 if test "$enableval" = "$ol_val" ; then
3149                         ol_arg="$ol_val"
3150                 fi
3151         done
3152         if test "$ol_arg" = "invalid" ; then
3153                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3154 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3155    { (exit 1); exit 1; }; }
3156         fi
3157         ol_enable_denyop="$ol_arg"
3158
3159 else
3160         ol_enable_denyop="${ol_dflt_overlays-no}"
3161 fi; # end --enable-denyop
3162
3163 # OpenLDAP --enable-dyngroup
3164         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3165 if test "${enable_dyngroup+set}" = set; then
3166   enableval="$enable_dyngroup"
3167
3168         ol_arg=invalid
3169         for ol_val in no yes mod ; do
3170                 if test "$enableval" = "$ol_val" ; then
3171                         ol_arg="$ol_val"
3172                 fi
3173         done
3174         if test "$ol_arg" = "invalid" ; then
3175                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3176 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3177    { (exit 1); exit 1; }; }
3178         fi
3179         ol_enable_dyngroup="$ol_arg"
3180
3181 else
3182         ol_enable_dyngroup="${ol_dflt_overlays-no}"
3183 fi; # end --enable-dyngroup
3184
3185 # OpenLDAP --enable-dynlist
3186         # Check whether --enable-dynlist or --disable-dynlist was given.
3187 if test "${enable_dynlist+set}" = set; then
3188   enableval="$enable_dynlist"
3189
3190         ol_arg=invalid
3191         for ol_val in no yes mod ; do
3192                 if test "$enableval" = "$ol_val" ; then
3193                         ol_arg="$ol_val"
3194                 fi
3195         done
3196         if test "$ol_arg" = "invalid" ; then
3197                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3198 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3199    { (exit 1); exit 1; }; }
3200         fi
3201         ol_enable_dynlist="$ol_arg"
3202
3203 else
3204         ol_enable_dynlist="${ol_dflt_overlays-no}"
3205 fi; # end --enable-dynlist
3206
3207 # OpenLDAP --enable-glue
3208         # Check whether --enable-glue or --disable-glue was given.
3209 if test "${enable_glue+set}" = set; then
3210   enableval="$enable_glue"
3211
3212         ol_arg=invalid
3213         for ol_val in no yes mod ; do
3214                 if test "$enableval" = "$ol_val" ; then
3215                         ol_arg="$ol_val"
3216                 fi
3217         done
3218         if test "$ol_arg" = "invalid" ; then
3219                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3220 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3221    { (exit 1); exit 1; }; }
3222         fi
3223         ol_enable_glue="$ol_arg"
3224
3225 else
3226         ol_enable_glue="${ol_dflt_overlays-yes}"
3227 fi; # end --enable-glue
3228
3229 # OpenLDAP --enable-lastmod
3230         # Check whether --enable-lastmod or --disable-lastmod was given.
3231 if test "${enable_lastmod+set}" = set; then
3232   enableval="$enable_lastmod"
3233
3234         ol_arg=invalid
3235         for ol_val in no yes mod ; do
3236                 if test "$enableval" = "$ol_val" ; then
3237                         ol_arg="$ol_val"
3238                 fi
3239         done
3240         if test "$ol_arg" = "invalid" ; then
3241                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3242 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3243    { (exit 1); exit 1; }; }
3244         fi
3245         ol_enable_lastmod="$ol_arg"
3246
3247 else
3248         ol_enable_lastmod="${ol_dflt_overlays-no}"
3249 fi; # end --enable-lastmod
3250
3251 # OpenLDAP --enable-ppolicy
3252         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3253 if test "${enable_ppolicy+set}" = set; then
3254   enableval="$enable_ppolicy"
3255
3256         ol_arg=invalid
3257         for ol_val in no yes mod ; do
3258                 if test "$enableval" = "$ol_val" ; then
3259                         ol_arg="$ol_val"
3260                 fi
3261         done
3262         if test "$ol_arg" = "invalid" ; then
3263                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3264 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3265    { (exit 1); exit 1; }; }
3266         fi
3267         ol_enable_ppolicy="$ol_arg"
3268
3269 else
3270         ol_enable_ppolicy="${ol_dflt_overlays-no}"
3271 fi; # end --enable-ppolicy
3272
3273 # OpenLDAP --enable-proxycache
3274         # Check whether --enable-proxycache or --disable-proxycache was given.
3275 if test "${enable_proxycache+set}" = set; then
3276   enableval="$enable_proxycache"
3277
3278         ol_arg=invalid
3279         for ol_val in no yes mod ; do
3280                 if test "$enableval" = "$ol_val" ; then
3281                         ol_arg="$ol_val"
3282                 fi
3283         done
3284         if test "$ol_arg" = "invalid" ; then
3285                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3286 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3287    { (exit 1); exit 1; }; }
3288         fi
3289         ol_enable_proxycache="$ol_arg"
3290
3291 else
3292         ol_enable_proxycache="${ol_dflt_overlays-no}"
3293 fi; # end --enable-proxycache
3294
3295 # OpenLDAP --enable-refint
3296         # Check whether --enable-refint or --disable-refint was given.
3297 if test "${enable_refint+set}" = set; then
3298   enableval="$enable_refint"
3299
3300         ol_arg=invalid
3301         for ol_val in no yes mod ; do
3302                 if test "$enableval" = "$ol_val" ; then
3303                         ol_arg="$ol_val"
3304                 fi
3305         done
3306         if test "$ol_arg" = "invalid" ; then
3307                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3308 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3309    { (exit 1); exit 1; }; }
3310         fi
3311         ol_enable_refint="$ol_arg"
3312
3313 else
3314         ol_enable_refint="${ol_dflt_overlays-no}"
3315 fi; # end --enable-refint
3316
3317 # OpenLDAP --enable-retcode
3318         # Check whether --enable-retcode or --disable-retcode was given.
3319 if test "${enable_retcode+set}" = set; then
3320   enableval="$enable_retcode"
3321
3322         ol_arg=invalid
3323         for ol_val in no yes mod ; do
3324                 if test "$enableval" = "$ol_val" ; then
3325                         ol_arg="$ol_val"
3326                 fi
3327         done
3328         if test "$ol_arg" = "invalid" ; then
3329                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3330 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3331    { (exit 1); exit 1; }; }
3332         fi
3333         ol_enable_retcode="$ol_arg"
3334
3335 else
3336         ol_enable_retcode="${ol_dflt_overlays-no}"
3337 fi; # end --enable-retcode
3338
3339 # OpenLDAP --enable-rwm
3340         # Check whether --enable-rwm or --disable-rwm was given.
3341 if test "${enable_rwm+set}" = set; then
3342   enableval="$enable_rwm"
3343
3344         ol_arg=invalid
3345         for ol_val in no yes mod ; do
3346                 if test "$enableval" = "$ol_val" ; then
3347                         ol_arg="$ol_val"
3348                 fi
3349         done
3350         if test "$ol_arg" = "invalid" ; then
3351                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3352 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3353    { (exit 1); exit 1; }; }
3354         fi
3355         ol_enable_rwm="$ol_arg"
3356
3357 else
3358         ol_enable_rwm="${ol_dflt_overlays-no}"
3359 fi; # end --enable-rwm
3360
3361 # OpenLDAP --enable-syncprov
3362         # Check whether --enable-syncprov or --disable-syncprov was given.
3363 if test "${enable_syncprov+set}" = set; then
3364   enableval="$enable_syncprov"
3365
3366         ol_arg=invalid
3367         for ol_val in no yes mod ; do
3368                 if test "$enableval" = "$ol_val" ; then
3369                         ol_arg="$ol_val"
3370                 fi
3371         done
3372         if test "$ol_arg" = "invalid" ; then
3373                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3374 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3375    { (exit 1); exit 1; }; }
3376         fi
3377         ol_enable_syncprov="$ol_arg"
3378
3379 else
3380         ol_enable_syncprov="${ol_dflt_overlays-yes}"
3381 fi; # end --enable-syncprov
3382
3383 # OpenLDAP --enable-translucent
3384         # Check whether --enable-translucent or --disable-translucent was given.
3385 if test "${enable_translucent+set}" = set; then
3386   enableval="$enable_translucent"
3387
3388         ol_arg=invalid
3389         for ol_val in no yes mod ; do
3390                 if test "$enableval" = "$ol_val" ; then
3391                         ol_arg="$ol_val"
3392                 fi
3393         done
3394         if test "$ol_arg" = "invalid" ; then
3395                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3396 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3397    { (exit 1); exit 1; }; }
3398         fi
3399         ol_enable_translucent="$ol_arg"
3400
3401 else
3402         ol_enable_translucent="${ol_dflt_overlays-no}"
3403 fi; # end --enable-translucent
3404
3405 # OpenLDAP --enable-unique
3406         # Check whether --enable-unique or --disable-unique was given.
3407 if test "${enable_unique+set}" = set; then
3408   enableval="$enable_unique"
3409
3410         ol_arg=invalid
3411         for ol_val in no yes mod ; do
3412                 if test "$enableval" = "$ol_val" ; then
3413                         ol_arg="$ol_val"
3414                 fi
3415         done
3416         if test "$ol_arg" = "invalid" ; then
3417                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3418 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3419    { (exit 1); exit 1; }; }
3420         fi
3421         ol_enable_unique="$ol_arg"
3422
3423 else
3424         ol_enable_unique="${ol_dflt_overlays-no}"
3425 fi; # end --enable-unique
3426
3427
3428
3429
3430 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3431 if test "${with_xxslurpdoptions+set}" = set; then
3432   withval="$with_xxslurpdoptions"
3433
3434 fi;
3435 # OpenLDAP --enable-slurpd
3436         # Check whether --enable-slurpd or --disable-slurpd was given.
3437 if test "${enable_slurpd+set}" = set; then
3438   enableval="$enable_slurpd"
3439
3440         ol_arg=invalid
3441         for ol_val in auto yes no ; do
3442                 if test "$enableval" = "$ol_val" ; then
3443                         ol_arg="$ol_val"
3444                 fi
3445         done
3446         if test "$ol_arg" = "invalid" ; then
3447                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3448 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3449    { (exit 1); exit 1; }; }
3450         fi
3451         ol_enable_slurpd="$ol_arg"
3452
3453 else
3454         ol_enable_slurpd="auto"
3455 fi; # end --enable-slurpd
3456
3457
3458 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3459 if test "${with_xxliboptions+set}" = set; then
3460   withval="$with_xxliboptions"
3461
3462 fi;
3463 # Check whether --enable-static or --disable-static was given.
3464 if test "${enable_static+set}" = set; then
3465   enableval="$enable_static"
3466   p=${PACKAGE-default}
3467     case $enableval in
3468     yes) enable_static=yes ;;
3469     no) enable_static=no ;;
3470     *)
3471      enable_static=no
3472       # Look at the argument we got.  We use all the common list separators.
3473       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3474       for pkg in $enableval; do
3475         IFS="$lt_save_ifs"
3476         if test "X$pkg" = "X$p"; then
3477           enable_static=yes
3478         fi
3479       done
3480       IFS="$lt_save_ifs"
3481       ;;
3482     esac
3483 else
3484   enable_static=yes
3485 fi;
3486
3487 # Check whether --enable-shared or --disable-shared was given.
3488 if test "${enable_shared+set}" = set; then
3489   enableval="$enable_shared"
3490   p=${PACKAGE-default}
3491     case $enableval in
3492     yes) enable_shared=yes ;;
3493     no) enable_shared=no ;;
3494     *)
3495       enable_shared=no
3496       # Look at the argument we got.  We use all the common list separators.
3497       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3498       for pkg in $enableval; do
3499         IFS="$lt_save_ifs"
3500         if test "X$pkg" = "X$p"; then
3501           enable_shared=yes
3502         fi
3503       done
3504       IFS="$lt_save_ifs"
3505       ;;
3506     esac
3507 else
3508   enable_shared=yes
3509 fi;
3510
3511
3512
3513 # validate options
3514 if test $ol_enable_slapd = no ; then
3515                 if test $ol_enable_slapi = yes ; then
3516                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3517 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3518         fi
3519         case "$ol_enable_backends" in yes | mod)
3520                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3521 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3522         esac
3523         for i in $Backends; do
3524                 eval "ol_tmp=\$ol_enable_$i"
3525                 if test $ol_tmp != no ; then
3526                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3527 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3528                         eval "ol_enable_$i=no"
3529                 fi
3530         done
3531         if test $ol_enable_modules = yes ; then
3532                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3533 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3534         fi
3535         if test $ol_enable_multimaster = yes ; then
3536                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3537 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3538         fi
3539         if test $ol_enable_wrappers = yes ; then
3540                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3541 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3542         fi
3543         if test $ol_enable_rlookups = yes ; then
3544                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3545 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3546         fi
3547         if test $ol_enable_aci = yes ; then
3548                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3549 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3550         fi
3551         if test $ol_with_ldbm_api != auto ; then
3552                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3553 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3554         fi
3555         if test $ol_with_ldbm_type != auto ; then
3556                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3557 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3558         fi
3559         if test $ol_enable_slurpd = yes ; then
3560                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3561 echo "$as_me: error: slurpd requires slapd" >&2;}
3562    { (exit 1); exit 1; }; }
3563         fi
3564         if test $ol_enable_rewrite = yes ; then
3565                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3566 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3567         fi
3568                 case "$ol_enable_overlays" in yes | mod)
3569                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3570 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3571         esac
3572         for i in $Overlays; do
3573                 eval "ol_tmp=\$ol_enable_$i"
3574                 if test $ol_tmp != no ; then
3575                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3576 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3577                         eval "ol_enable_$i=no"
3578                 fi
3579         done
3580
3581         # force settings to no
3582         ol_enable_slapi=no
3583
3584         ol_enable_backends=
3585         ol_enable_overlays=
3586         ol_enable_modules=no
3587         ol_enable_multimaster=no
3588         ol_enable_rlookups=no
3589         ol_enable_aci=no
3590         ol_enable_wrappers=no
3591
3592         ol_with_ldbm_api=no
3593         ol_with_ldbm_type=no
3594
3595         ol_enable_slurpd=no
3596
3597         ol_enable_rewrite=no
3598
3599 elif test $ol_enable_ldbm = no ; then
3600
3601         if test $ol_with_ldbm_api != auto ; then
3602                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3603 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3604         fi
3605
3606         if test $ol_with_ldbm_type != auto ; then
3607                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3608 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3609         fi
3610
3611         if test $ol_enable_modules != yes -a \
3612                 $ol_enable_bdb = no -a \
3613                 $ol_enable_dnssrv = no -a \
3614                 $ol_enable_hdb = no -a \
3615                 $ol_enable_ldap = no -a \
3616                 $ol_enable_meta = no -a \
3617                 $ol_enable_monitor = no -a \
3618                 $ol_enable_null = no -a \
3619                 $ol_enable_passwd = no -a \
3620                 $ol_enable_perl = no -a \
3621                 $ol_enable_relay = no -a \
3622                 $ol_enable_shell = no -a \
3623                 $ol_enable_sql = no ; then
3624
3625                 if test $ol_enable_slapd = yes ; then
3626                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3627 echo "$as_me: error: slapd requires a backend" >&2;}
3628    { (exit 1); exit 1; }; }
3629                 else
3630                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3631 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3632                         ol_enable_slapd=no
3633                 fi
3634         fi
3635
3636         ol_with_ldbm_api=no
3637         ol_with_ldbm_type=no
3638
3639         if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3640                 ol_with_ldbm_api=berkeley
3641         fi
3642
3643 else
3644                 if test $ol_with_ldbm_api = gdbm -a \
3645                 $ol_with_ldbm_type = btree ; then
3646                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3647 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3648    { (exit 1); exit 1; }; }
3649         fi
3650         if test $ol_with_ldbm_api = mdbm -a \
3651                 $ol_with_ldbm_type = btree ; then
3652                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3653 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3654    { (exit 1); exit 1; }; }
3655         fi
3656         if test $ol_with_ldbm_api = ndbm -a \
3657                 $ol_with_ldbm_type = btree ; then
3658                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3659 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3660    { (exit 1); exit 1; }; }
3661         fi
3662
3663         if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3664                 if test $ol_with_ldbm_api = auto ; then
3665                         ol_with_ldbm_api=berkeley
3666                 elif test $ol_with_ldbm_api != berkeley ; then
3667                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3668 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3669    { (exit 1); exit 1; }; }
3670                 fi
3671         fi
3672 fi
3673
3674 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3675         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3676 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3677    { (exit 1); exit 1; }; }
3678 fi
3679
3680 if test $ol_enable_slurpd = yes ; then
3681                 if test $ol_with_threads = no ; then
3682                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3683 echo "$as_me: error: slurpd requires threads" >&2;}
3684    { (exit 1); exit 1; }; }
3685         fi
3686 fi
3687
3688 if test $ol_enable_lmpasswd = yes ; then
3689         if test $ol_with_tls = no ; then
3690                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3691 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3692    { (exit 1); exit 1; }; }
3693         fi
3694 fi
3695
3696 if test $ol_enable_kbind = yes ; then
3697         if test $ol_with_kerberos = no ; then
3698                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3699 echo "$as_me: error: options require --with-kerberos" >&2;}
3700    { (exit 1); exit 1; }; }
3701         elif test $ol_with_kerberos = auto ; then
3702                 ol_with_kerberos=yes
3703         fi
3704
3705 elif test $ol_enable_kbind = no ; then
3706         if test $ol_with_kerberos = auto ; then
3707                 ol_with_kerberos=no
3708         elif test $ol_with_kerberos != no ; then
3709                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3710 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3711                 ol_with_kerberos=no
3712         fi
3713 fi
3714
3715 if test $ol_enable_spasswd = yes ; then
3716         if test $ol_with_cyrus_sasl = no ; then
3717                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3718 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3719    { (exit 1); exit 1; }; }
3720         fi
3721         ol_with_cyrus_sasl=yes
3722 fi
3723
3724 echo "$as_me:$LINENO: result: done" >&5
3725 echo "${ECHO_T}done" >&6
3726
3727 LDAP_LIBS=
3728 LDBM_LIBS=
3729 LTHREAD_LIBS=
3730 LUTIL_LIBS=
3731
3732 SLAPD_LIBS=
3733 SLURPD_LIBS=
3734
3735 BUILD_SLAPD=no
3736 BUILD_SLURPD=no
3737
3738 BUILD_THREAD=no
3739
3740 BUILD_SLAPI=no
3741 SLAPD_SLAPI_DEPEND=
3742
3743 BUILD_BDB=no
3744 BUILD_DNSSRV=no
3745 BUILD_HDB=no
3746 BUILD_LDAP=no
3747 BUILD_LDBM=no
3748 BUILD_META=no
3749 BUILD_MONITOR=no
3750 BUILD_NULL=no
3751 BUILD_PASSWD=no
3752 BUILD_PERL=no
3753 BUILD_RELAY=no
3754 BUILD_SHELL=no
3755 BUILD_SQL=no
3756
3757 BUILD_ACCESSLOG=no
3758 BUILD_DENYOP=no
3759 BUILD_DYNGROUP=no
3760 BUILD_DYNLIST=no
3761 BUILD_GLUE=no
3762 BUILD_LASTMOD=no
3763 BUILD_PPOLICY=no
3764 BUILD_PROXYCACHE=no
3765 BUILD_REFINT=no
3766 BUILD_RETCODE=no
3767 BUILD_RWM=no
3768 BUILD_SYNCPROV=no
3769 BUILD_TRANSLUCENT=no
3770 BUILD_UNIQUE=no
3771
3772 SLAPD_STATIC_OVERLAYS=
3773 SLAPD_DYNAMIC_OVERLAYS=
3774
3775 SLAPD_MODULES_LDFLAGS=
3776 SLAPD_MODULES_CPPFLAGS=
3777
3778 SLAPD_STATIC_BACKENDS=back-ldif
3779 SLAPD_DYNAMIC_BACKENDS=
3780
3781 SLAPD_PERL_LDFLAGS=
3782 MOD_PERL_LDFLAGS=
3783 PERL_CPPFLAGS=
3784
3785 SLAPD_SQL_LDFLAGS=
3786 SLAPD_SQL_LIBS=
3787 SLAPD_SQL_INCLUDES=
3788
3789 KRB4_LIBS=
3790 KRB5_LIBS=
3791 SASL_LIBS=
3792 TLS_LIBS=
3793 MODULES_LIBS=
3794 SLAPI_LIBS=
3795 LIBSLAPI=
3796 LIBSLAPITOOLS=
3797 AUTH_LIBS=
3798
3799 SLAPD_SLP_LIBS=
3800 SLAPD_GMP_LIBS=
3801
3802
3803
3804 cat >>confdefs.h <<\_ACEOF
3805 #define HAVE_MKVERSION 1
3806 _ACEOF
3807
3808
3809
3810
3811 ol_aix_threads=no
3812 case "$target" in
3813 *-*-aix*)       if test -z "$CC" ; then
3814                 case "$ol_with_threads" in
3815                 auto | yes |  posix) ol_aix_threads=yes ;;
3816                 esac
3817         fi
3818 ;;
3819 esac
3820
3821 if test $ol_aix_threads = yes ; then
3822         if test -z "${CC}" ; then
3823                 for ac_prog in cc_r xlc_r cc
3824 do
3825   # Extract the first word of "$ac_prog", so it can be a program name with args.
3826 set dummy $ac_prog; ac_word=$2
3827 echo "$as_me:$LINENO: checking for $ac_word" >&5
3828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3829 if test "${ac_cv_prog_CC+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   if test -n "$CC"; then
3833   ac_cv_prog_CC="$CC" # Let the user override the test.
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3837 do
3838   IFS=$as_save_IFS
3839   test -z "$as_dir" && as_dir=.
3840   for ac_exec_ext in '' $ac_executable_extensions; do
3841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842     ac_cv_prog_CC="$ac_prog"
3843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844     break 2
3845   fi
3846 done
3847 done
3848
3849 fi
3850 fi
3851 CC=$ac_cv_prog_CC
3852 if test -n "$CC"; then
3853   echo "$as_me:$LINENO: result: $CC" >&5
3854 echo "${ECHO_T}$CC" >&6
3855 else
3856   echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3858 fi
3859
3860   test -n "$CC" && break
3861 done
3862
3863
3864                 if test "$CC" = cc ; then
3865                                                 if test $ol_with_threads != auto ; then
3866                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3867 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3868    { (exit 1); exit 1; }; }
3869                         else
3870                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3871 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3872                         fi
3873                         ol_with_threads=no
3874                 fi
3875         fi
3876
3877         if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3878                 ol_with_threads=posix
3879                 ol_cv_pthread_create=yes
3880         fi
3881 fi
3882
3883 if test -z "${CC}"; then
3884         for ac_prog in cc gcc
3885 do
3886   # Extract the first word of "$ac_prog", so it can be a program name with args.
3887 set dummy $ac_prog; ac_word=$2
3888 echo "$as_me:$LINENO: checking for $ac_word" >&5
3889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3890 if test "${ac_cv_prog_CC+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   if test -n "$CC"; then
3894   ac_cv_prog_CC="$CC" # Let the user override the test.
3895 else
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH
3898 do
3899   IFS=$as_save_IFS
3900   test -z "$as_dir" && as_dir=.
3901   for ac_exec_ext in '' $ac_executable_extensions; do
3902   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3903     ac_cv_prog_CC="$ac_prog"
3904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3905     break 2
3906   fi
3907 done
3908 done
3909
3910 fi
3911 fi
3912 CC=$ac_cv_prog_CC
3913 if test -n "$CC"; then
3914   echo "$as_me:$LINENO: result: $CC" >&5
3915 echo "${ECHO_T}$CC" >&6
3916 else
3917   echo "$as_me:$LINENO: result: no" >&5
3918 echo "${ECHO_T}no" >&6
3919 fi
3920
3921   test -n "$CC" && break
3922 done
3923 test -n "$CC" || CC="missing"
3924
3925
3926         if test "${CC}" = "missing" ; then
3927                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3928 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3929    { (exit 1); exit 1; }; }
3930         fi
3931 fi
3932
3933 if test -z "${AR}"; then
3934         for ac_prog in ar gar
3935 do
3936   # Extract the first word of "$ac_prog", so it can be a program name with args.
3937 set dummy $ac_prog; ac_word=$2
3938 echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_prog_AR+set}" = set; then
3941   echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943   if test -n "$AR"; then
3944   ac_cv_prog_AR="$AR" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949   IFS=$as_save_IFS
3950   test -z "$as_dir" && as_dir=.
3951   for ac_exec_ext in '' $ac_executable_extensions; do
3952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953     ac_cv_prog_AR="$ac_prog"
3954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955     break 2
3956   fi
3957 done
3958 done
3959
3960 fi
3961 fi
3962 AR=$ac_cv_prog_AR
3963 if test -n "$AR"; then
3964   echo "$as_me:$LINENO: result: $AR" >&5
3965 echo "${ECHO_T}$AR" >&6
3966 else
3967   echo "$as_me:$LINENO: result: no" >&5
3968 echo "${ECHO_T}no" >&6
3969 fi
3970
3971   test -n "$AR" && break
3972 done
3973 test -n "$AR" || AR="missing"
3974
3975
3976         if test "${AR}" = "missing" ; then
3977                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
3978 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
3979    { (exit 1); exit 1; }; }
3980         fi
3981 fi
3982
3983
3984
3985
3986
3987 # Check whether --enable-fast-install or --disable-fast-install was given.
3988 if test "${enable_fast_install+set}" = set; then
3989   enableval="$enable_fast_install"
3990   p=${PACKAGE-default}
3991     case $enableval in
3992     yes) enable_fast_install=yes ;;
3993     no) enable_fast_install=no ;;
3994     *)
3995       enable_fast_install=no
3996       # Look at the argument we got.  We use all the common list separators.
3997       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3998       for pkg in $enableval; do
3999         IFS="$lt_save_ifs"
4000         if test "X$pkg" = "X$p"; then
4001           enable_fast_install=yes
4002         fi
4003       done
4004       IFS="$lt_save_ifs"
4005       ;;
4006     esac
4007 else
4008   enable_fast_install=yes
4009 fi;
4010
4011 DEPDIR="${am__leading_dot}deps"
4012
4013           ac_config_commands="$ac_config_commands depfiles"
4014
4015
4016 am_make=${MAKE-make}
4017 cat > confinc << 'END'
4018 am__doit:
4019         @echo done
4020 .PHONY: am__doit
4021 END
4022 # If we don't find an include directive, just comment out the code.
4023 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4024 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4025 am__include="#"
4026 am__quote=
4027 _am_result=none
4028 # First try GNU make style include.
4029 echo "include confinc" > confmf
4030 # We grep out `Entering directory' and `Leaving directory'
4031 # messages which can occur if `w' ends up in MAKEFLAGS.
4032 # In particular we don't look at `^make:' because GNU make might
4033 # be invoked under some other name (usually "gmake"), in which
4034 # case it prints its new name instead of `make'.
4035 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4036    am__include=include
4037    am__quote=
4038    _am_result=GNU
4039 fi
4040 # Now try BSD make style include.
4041 if test "$am__include" = "#"; then
4042    echo '.include "confinc"' > confmf
4043    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4044       am__include=.include
4045       am__quote="\""
4046       _am_result=BSD
4047    fi
4048 fi
4049
4050
4051 echo "$as_me:$LINENO: result: $_am_result" >&5
4052 echo "${ECHO_T}$_am_result" >&6
4053 rm -f confinc confmf
4054
4055 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4056 if test "${enable_dependency_tracking+set}" = set; then
4057   enableval="$enable_dependency_tracking"
4058
4059 fi;
4060 if test "x$enable_dependency_tracking" != xno; then
4061   am_depcomp="$ac_aux_dir/depcomp"
4062   AMDEPBACKSLASH='\'
4063 fi
4064
4065
4066 if test "x$enable_dependency_tracking" != xno; then
4067   AMDEP_TRUE=
4068   AMDEP_FALSE='#'
4069 else
4070   AMDEP_TRUE='#'
4071   AMDEP_FALSE=
4072 fi
4073
4074
4075
4076 ac_ext=c
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081 if test -n "$ac_tool_prefix"; then
4082   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4083 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_CC+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if test -n "$CC"; then
4090   ac_cv_prog_CC="$CC" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097   for ac_exec_ext in '' $ac_executable_extensions; do
4098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101     break 2
4102   fi
4103 done
4104 done
4105
4106 fi
4107 fi
4108 CC=$ac_cv_prog_CC
4109 if test -n "$CC"; then
4110   echo "$as_me:$LINENO: result: $CC" >&5
4111 echo "${ECHO_T}$CC" >&6
4112 else
4113   echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4115 fi
4116
4117 fi
4118 if test -z "$ac_cv_prog_CC"; then
4119   ac_ct_CC=$CC
4120   # Extract the first word of "gcc", so it can be a program name with args.
4121 set dummy gcc; ac_word=$2
4122 echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   if test -n "$ac_ct_CC"; then
4128   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4132 do
4133   IFS=$as_save_IFS
4134   test -z "$as_dir" && as_dir=.
4135   for ac_exec_ext in '' $ac_executable_extensions; do
4136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137     ac_cv_prog_ac_ct_CC="gcc"
4138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139     break 2
4140   fi
4141 done
4142 done
4143
4144 fi
4145 fi
4146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4147 if test -n "$ac_ct_CC"; then
4148   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4149 echo "${ECHO_T}$ac_ct_CC" >&6
4150 else
4151   echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6
4153 fi
4154
4155   CC=$ac_ct_CC
4156 else
4157   CC="$ac_cv_prog_CC"
4158 fi
4159
4160 if test -z "$CC"; then
4161   if test -n "$ac_tool_prefix"; then
4162   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4163 set dummy ${ac_tool_prefix}cc; ac_word=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_prog_CC+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169   if test -n "$CC"; then
4170   ac_cv_prog_CC="$CC" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4174 do
4175   IFS=$as_save_IFS
4176   test -z "$as_dir" && as_dir=.
4177   for ac_exec_ext in '' $ac_executable_extensions; do
4178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179     ac_cv_prog_CC="${ac_tool_prefix}cc"
4180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181     break 2
4182   fi
4183 done
4184 done
4185
4186 fi
4187 fi
4188 CC=$ac_cv_prog_CC
4189 if test -n "$CC"; then
4190   echo "$as_me:$LINENO: result: $CC" >&5
4191 echo "${ECHO_T}$CC" >&6
4192 else
4193   echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6
4195 fi
4196
4197 fi
4198 if test -z "$ac_cv_prog_CC"; then
4199   ac_ct_CC=$CC
4200   # Extract the first word of "cc", so it can be a program name with args.
4201 set dummy cc; ac_word=$2
4202 echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4204 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4205   echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207   if test -n "$ac_ct_CC"; then
4208   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4212 do
4213   IFS=$as_save_IFS
4214   test -z "$as_dir" && as_dir=.
4215   for ac_exec_ext in '' $ac_executable_extensions; do
4216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217     ac_cv_prog_ac_ct_CC="cc"
4218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219     break 2
4220   fi
4221 done
4222 done
4223
4224 fi
4225 fi
4226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4227 if test -n "$ac_ct_CC"; then
4228   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4229 echo "${ECHO_T}$ac_ct_CC" >&6
4230 else
4231   echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6
4233 fi
4234
4235   CC=$ac_ct_CC
4236 else
4237   CC="$ac_cv_prog_CC"
4238 fi
4239
4240 fi
4241 if test -z "$CC"; then
4242   # Extract the first word of "cc", so it can be a program name with args.
4243 set dummy cc; ac_word=$2
4244 echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246 if test "${ac_cv_prog_CC+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   if test -n "$CC"; then
4250   ac_cv_prog_CC="$CC" # Let the user override the test.
4251 else
4252   ac_prog_rejected=no
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4255 do
4256   IFS=$as_save_IFS
4257   test -z "$as_dir" && as_dir=.
4258   for ac_exec_ext in '' $ac_executable_extensions; do
4259   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4261        ac_prog_rejected=yes
4262        continue
4263      fi
4264     ac_cv_prog_CC="cc"
4265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266     break 2
4267   fi
4268 done
4269 done
4270
4271 if test $ac_prog_rejected = yes; then
4272   # We found a bogon in the path, so make sure we never use it.
4273   set dummy $ac_cv_prog_CC
4274   shift
4275   if test $# != 0; then
4276     # We chose a different compiler from the bogus one.
4277     # However, it has the same basename, so the bogon will be chosen
4278     # first if we set CC to just the basename; use the full file name.
4279     shift
4280     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4281   fi
4282 fi
4283 fi
4284 fi
4285 CC=$ac_cv_prog_CC
4286 if test -n "$CC"; then
4287   echo "$as_me:$LINENO: result: $CC" >&5
4288 echo "${ECHO_T}$CC" >&6
4289 else
4290   echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6
4292 fi
4293
4294 fi
4295 if test -z "$CC"; then
4296   if test -n "$ac_tool_prefix"; then
4297   for ac_prog in cl
4298   do
4299     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4301 echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4303 if test "${ac_cv_prog_CC+set}" = set; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   if test -n "$CC"; then
4307   ac_cv_prog_CC="$CC" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4311 do
4312   IFS=$as_save_IFS
4313   test -z "$as_dir" && as_dir=.
4314   for ac_exec_ext in '' $ac_executable_extensions; do
4315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318     break 2
4319   fi
4320 done
4321 done
4322
4323 fi
4324 fi
4325 CC=$ac_cv_prog_CC
4326 if test -n "$CC"; then
4327   echo "$as_me:$LINENO: result: $CC" >&5
4328 echo "${ECHO_T}$CC" >&6
4329 else
4330   echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6
4332 fi
4333
4334     test -n "$CC" && break
4335   done
4336 fi
4337 if test -z "$CC"; then
4338   ac_ct_CC=$CC
4339   for ac_prog in cl
4340 do
4341   # Extract the first word of "$ac_prog", so it can be a program name with args.
4342 set dummy $ac_prog; ac_word=$2
4343 echo "$as_me:$LINENO: checking for $ac_word" >&5
4344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4346   echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348   if test -n "$ac_ct_CC"; then
4349   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4350 else
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4353 do
4354   IFS=$as_save_IFS
4355   test -z "$as_dir" && as_dir=.
4356   for ac_exec_ext in '' $ac_executable_extensions; do
4357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4358     ac_cv_prog_ac_ct_CC="$ac_prog"
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 fi
4366 fi
4367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4368 if test -n "$ac_ct_CC"; then
4369   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4370 echo "${ECHO_T}$ac_ct_CC" >&6
4371 else
4372   echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6
4374 fi
4375
4376   test -n "$ac_ct_CC" && break
4377 done
4378
4379   CC=$ac_ct_CC
4380 fi
4381
4382 fi
4383
4384
4385 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4386 See \`config.log' for more details." >&5
4387 echo "$as_me: error: no acceptable C compiler found in \$PATH
4388 See \`config.log' for more details." >&2;}
4389    { (exit 1); exit 1; }; }
4390
4391 # Provide some information about the compiler.
4392 echo "$as_me:$LINENO:" \
4393      "checking for C compiler version" >&5
4394 ac_compiler=`set X $ac_compile; echo $2`
4395 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4396   (eval $ac_compiler --version </dev/null >&5) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }
4400 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4401   (eval $ac_compiler -v </dev/null >&5) 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); }
4405 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4406   (eval $ac_compiler -V </dev/null >&5) 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }
4410
4411 cat >conftest.$ac_ext <<_ACEOF
4412 /* confdefs.h.  */
4413 _ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h.  */
4417
4418 int
4419 main ()
4420 {
4421
4422   ;
4423   return 0;
4424 }
4425 _ACEOF
4426 ac_clean_files_save=$ac_clean_files
4427 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4428 # Try to create an executable without -o first, disregard a.out.
4429 # It will help us diagnose broken compilers, and finding out an intuition
4430 # of exeext.
4431 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4432 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4433 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4434 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4435   (eval $ac_link_default) 2>&5
4436   ac_status=$?
4437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438   (exit $ac_status); }; then
4439   # Find the output, starting from the most likely.  This scheme is
4440 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4441 # resort.
4442
4443 # Be careful to initialize this variable, since it used to be cached.
4444 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4445 ac_cv_exeext=
4446 # b.out is created by i960 compilers.
4447 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4448 do
4449   test -f "$ac_file" || continue
4450   case $ac_file in
4451     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4452         ;;
4453     conftest.$ac_ext )
4454         # This is the source file.
4455         ;;
4456     [ab].out )
4457         # We found the default executable, but exeext='' is most
4458         # certainly right.
4459         break;;
4460     *.* )
4461         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4462         # FIXME: I believe we export ac_cv_exeext for Libtool,
4463         # but it would be cool to find out if it's true.  Does anybody
4464         # maintain Libtool? --akim.
4465         export ac_cv_exeext
4466         break;;
4467     * )
4468         break;;
4469   esac
4470 done
4471 else
4472   echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4474
4475 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4476 See \`config.log' for more details." >&5
4477 echo "$as_me: error: C compiler cannot create executables
4478 See \`config.log' for more details." >&2;}
4479    { (exit 77); exit 77; }; }
4480 fi
4481
4482 ac_exeext=$ac_cv_exeext
4483 echo "$as_me:$LINENO: result: $ac_file" >&5
4484 echo "${ECHO_T}$ac_file" >&6
4485
4486 # Check the compiler produces executables we can run.  If not, either
4487 # the compiler is broken, or we cross compile.
4488 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4489 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4490 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4491 # If not cross compiling, check that we can run a simple program.
4492 if test "$cross_compiling" != yes; then
4493   if { ac_try='./$ac_file'
4494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495   (eval $ac_try) 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); }; }; then
4499     cross_compiling=no
4500   else
4501     if test "$cross_compiling" = maybe; then
4502         cross_compiling=yes
4503     else
4504         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4505 If you meant to cross compile, use \`--host'.
4506 See \`config.log' for more details." >&5
4507 echo "$as_me: error: cannot run C compiled programs.
4508 If you meant to cross compile, use \`--host'.
4509 See \`config.log' for more details." >&2;}
4510    { (exit 1); exit 1; }; }
4511     fi
4512   fi
4513 fi
4514 echo "$as_me:$LINENO: result: yes" >&5
4515 echo "${ECHO_T}yes" >&6
4516
4517 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4518 ac_clean_files=$ac_clean_files_save
4519 # Check the compiler produces executables we can run.  If not, either
4520 # the compiler is broken, or we cross compile.
4521 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4522 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4523 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4524 echo "${ECHO_T}$cross_compiling" >&6
4525
4526 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4527 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4529   (eval $ac_link) 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; then
4533   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4534 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4535 # work properly (i.e., refer to `conftest.exe'), while it won't with
4536 # `rm'.
4537 for ac_file in conftest.exe conftest conftest.*; do
4538   test -f "$ac_file" || continue
4539   case $ac_file in
4540     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4541     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4542           export ac_cv_exeext
4543           break;;
4544     * ) break;;
4545   esac
4546 done
4547 else
4548   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4549 See \`config.log' for more details." >&5
4550 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4551 See \`config.log' for more details." >&2;}
4552    { (exit 1); exit 1; }; }
4553 fi
4554
4555 rm -f conftest$ac_cv_exeext
4556 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4557 echo "${ECHO_T}$ac_cv_exeext" >&6
4558
4559 rm -f conftest.$ac_ext
4560 EXEEXT=$ac_cv_exeext
4561 ac_exeext=$EXEEXT
4562 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4563 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4564 if test "${ac_cv_objext+set}" = set; then
4565   echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567   cat >conftest.$ac_ext <<_ACEOF
4568 /* confdefs.h.  */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h.  */
4573
4574 int
4575 main ()
4576 {
4577
4578   ;
4579   return 0;
4580 }
4581 _ACEOF
4582 rm -f conftest.o conftest.obj
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584   (eval $ac_compile) 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); }; then
4588   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4589   case $ac_file in
4590     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4591     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4592        break;;
4593   esac
4594 done
4595 else
4596   echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4600 See \`config.log' for more details." >&5
4601 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4602 See \`config.log' for more details." >&2;}
4603    { (exit 1); exit 1; }; }
4604 fi
4605
4606 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4607 fi
4608 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4609 echo "${ECHO_T}$ac_cv_objext" >&6
4610 OBJEXT=$ac_cv_objext
4611 ac_objext=$OBJEXT
4612 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4613 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4614 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h.  */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h.  */
4623
4624 int
4625 main ()
4626 {
4627 #ifndef __GNUC__
4628        choke me
4629 #endif
4630
4631   ;
4632   return 0;
4633 }
4634 _ACEOF
4635 rm -f conftest.$ac_objext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637   (eval $ac_compile) 2>conftest.er1
4638   ac_status=$?
4639   grep -v '^ *+' conftest.er1 >conftest.err
4640   rm -f conftest.er1
4641   cat conftest.err >&5
4642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643   (exit $ac_status); } &&
4644          { ac_try='test -z "$ac_c_werror_flag"
4645                          || test ! -s conftest.err'
4646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647   (eval $ac_try) 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); }; } &&
4651          { ac_try='test -s conftest.$ac_objext'
4652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653   (eval $ac_try) 2>&5
4654   ac_status=$?
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); }; }; then
4657   ac_compiler_gnu=yes
4658 else
4659   echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 ac_compiler_gnu=no
4663 fi
4664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4665 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4666
4667 fi
4668 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4669 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4670 GCC=`test $ac_compiler_gnu = yes && echo yes`
4671 ac_test_CFLAGS=${CFLAGS+set}
4672 ac_save_CFLAGS=$CFLAGS
4673 CFLAGS="-g"
4674 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4675 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4676 if test "${ac_cv_prog_cc_g+set}" = set; then
4677   echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679   cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h.  */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h.  */
4685
4686 int
4687 main ()
4688 {
4689
4690   ;
4691   return 0;
4692 }
4693 _ACEOF
4694 rm -f conftest.$ac_objext
4695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4696   (eval $ac_compile) 2>conftest.er1
4697   ac_status=$?
4698   grep -v '^ *+' conftest.er1 >conftest.err
4699   rm -f conftest.er1
4700   cat conftest.err >&5
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); } &&
4703          { ac_try='test -z "$ac_c_werror_flag"
4704                          || test ! -s conftest.err'
4705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706   (eval $ac_try) 2>&5
4707   ac_status=$?
4708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709   (exit $ac_status); }; } &&
4710          { ac_try='test -s conftest.$ac_objext'
4711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712   (eval $ac_try) 2>&5
4713   ac_status=$?
4714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); }; }; then
4716   ac_cv_prog_cc_g=yes
4717 else
4718   echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4720
4721 ac_cv_prog_cc_g=no
4722 fi
4723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4724 fi
4725 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4726 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4727 if test "$ac_test_CFLAGS" = set; then
4728   CFLAGS=$ac_save_CFLAGS
4729 elif test $ac_cv_prog_cc_g = yes; then
4730   if test "$GCC" = yes; then
4731     CFLAGS="-g -O2"
4732   else
4733     CFLAGS="-g"
4734   fi
4735 else
4736   if test "$GCC" = yes; then
4737     CFLAGS="-O2"
4738   else
4739     CFLAGS=
4740   fi
4741 fi
4742 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4743 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4744 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   ac_cv_prog_cc_stdc=no
4748 ac_save_CC=$CC
4749 cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h.  */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h.  */
4755 #include <stdarg.h>
4756 #include <stdio.h>
4757 #include <sys/types.h>
4758 #include <sys/stat.h>
4759 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4760 struct buf { int x; };
4761 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4762 static char *e (p, i)
4763      char **p;
4764      int i;
4765 {
4766   return p[i];
4767 }
4768 static char *f (char * (*g) (char **, int), char **p, ...)
4769 {
4770   char *s;
4771   va_list v;
4772   va_start (v,p);
4773   s = g (p, va_arg (v,int));
4774   va_end (v);
4775   return s;
4776 }
4777
4778 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4779    function prototypes and stuff, but not '\xHH' hex character constants.
4780    These don't provoke an error unfortunately, instead are silently treated
4781    as 'x'.  The following induces an error, until -std1 is added to get
4782    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4783    array size at least.  It's necessary to write '\x00'==0 to get something
4784    that's true only with -std1.  */
4785 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4786
4787 int test (int i, double x);
4788 struct s1 {int (*f) (int a);};
4789 struct s2 {int (*f) (double a);};
4790 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4791 int argc;
4792 char **argv;
4793 int
4794 main ()
4795 {
4796 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4797   ;
4798   return 0;
4799 }
4800 _ACEOF
4801 # Don't try gcc -ansi; that turns off useful extensions and
4802 # breaks some systems' header files.
4803 # AIX                   -qlanglvl=ansi
4804 # Ultrix and OSF/1      -std1
4805 # HP-UX 10.20 and later -Ae
4806 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4807 # SVR4                  -Xc -D__EXTENSIONS__
4808 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4809 do
4810   CC="$ac_save_CC $ac_arg"
4811   rm -f conftest.$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813   (eval $ac_compile) 2>conftest.er1
4814   ac_status=$?
4815   grep -v '^ *+' conftest.er1 >conftest.err
4816   rm -f conftest.er1
4817   cat conftest.err >&5
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); } &&
4820          { ac_try='test -z "$ac_c_werror_flag"
4821                          || test ! -s conftest.err'
4822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823   (eval $ac_try) 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; } &&
4827          { ac_try='test -s conftest.$ac_objext'
4828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829   (eval $ac_try) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); }; }; then
4833   ac_cv_prog_cc_stdc=$ac_arg
4834 break
4835 else
4836   echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839 fi
4840 rm -f conftest.err conftest.$ac_objext
4841 done
4842 rm -f conftest.$ac_ext conftest.$ac_objext
4843 CC=$ac_save_CC
4844
4845 fi
4846
4847 case "x$ac_cv_prog_cc_stdc" in
4848   x|xno)
4849     echo "$as_me:$LINENO: result: none needed" >&5
4850 echo "${ECHO_T}none needed" >&6 ;;
4851   *)
4852     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4853 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4854     CC="$CC $ac_cv_prog_cc_stdc" ;;
4855 esac
4856
4857 # Some people use a C++ compiler to compile C.  Since we use `exit',
4858 # in C++ we need to declare it.  In case someone uses the same compiler
4859 # for both compiling C and C++ we need to have the C++ compiler decide
4860 # the declaration of exit, since it's the most demanding environment.
4861 cat >conftest.$ac_ext <<_ACEOF
4862 #ifndef __cplusplus
4863   choke me
4864 #endif
4865 _ACEOF
4866 rm -f conftest.$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868   (eval $ac_compile) 2>conftest.er1
4869   ac_status=$?
4870   grep -v '^ *+' conftest.er1 >conftest.err
4871   rm -f conftest.er1
4872   cat conftest.err >&5
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); } &&
4875          { ac_try='test -z "$ac_c_werror_flag"
4876                          || test ! -s conftest.err'
4877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878   (eval $ac_try) 2>&5
4879   ac_status=$?
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); }; } &&
4882          { ac_try='test -s conftest.$ac_objext'
4883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884   (eval $ac_try) 2>&5
4885   ac_status=$?
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); }; }; then
4888   for ac_declaration in \
4889    '' \
4890    'extern "C" void std::exit (int) throw (); using std::exit;' \
4891    'extern "C" void std::exit (int); using std::exit;' \
4892    'extern "C" void exit (int) throw ();' \
4893    'extern "C" void exit (int);' \
4894    'void exit (int);'
4895 do
4896   cat >conftest.$ac_ext <<_ACEOF
4897 /* confdefs.h.  */
4898 _ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h.  */
4902 $ac_declaration
4903 #include <stdlib.h>
4904 int
4905 main ()
4906 {
4907 exit (42);
4908   ;
4909   return 0;
4910 }
4911 _ACEOF
4912 rm -f conftest.$ac_objext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914   (eval $ac_compile) 2>conftest.er1
4915   ac_status=$?
4916   grep -v '^ *+' conftest.er1 >conftest.err
4917   rm -f conftest.er1
4918   cat conftest.err >&5
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); } &&
4921          { ac_try='test -z "$ac_c_werror_flag"
4922                          || test ! -s conftest.err'
4923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924   (eval $ac_try) 2>&5
4925   ac_status=$?
4926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927   (exit $ac_status); }; } &&
4928          { ac_try='test -s conftest.$ac_objext'
4929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930   (eval $ac_try) 2>&5
4931   ac_status=$?
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); }; }; then
4934   :
4935 else
4936   echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4938
4939 continue
4940 fi
4941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4942   cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h.  */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h.  */
4948 $ac_declaration
4949 int
4950 main ()
4951 {
4952 exit (42);
4953   ;
4954   return 0;
4955 }
4956 _ACEOF
4957 rm -f conftest.$ac_objext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959   (eval $ac_compile) 2>conftest.er1
4960   ac_status=$?
4961   grep -v '^ *+' conftest.er1 >conftest.err
4962   rm -f conftest.er1
4963   cat conftest.err >&5
4964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965   (exit $ac_status); } &&
4966          { ac_try='test -z "$ac_c_werror_flag"
4967                          || test ! -s conftest.err'
4968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969   (eval $ac_try) 2>&5
4970   ac_status=$?
4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); }; } &&
4973          { ac_try='test -s conftest.$ac_objext'
4974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975   (eval $ac_try) 2>&5
4976   ac_status=$?
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); }; }; then
4979   break
4980 else
4981   echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4983
4984 fi
4985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4986 done
4987 rm -f conftest*
4988 if test -n "$ac_declaration"; then
4989   echo '#ifdef __cplusplus' >>confdefs.h
4990   echo $ac_declaration      >>confdefs.h
4991   echo '#endif'             >>confdefs.h
4992 fi
4993
4994 else
4995   echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4997
4998 fi
4999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5000 ac_ext=c
5001 ac_cpp='$CPP $CPPFLAGS'
5002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5005
5006 depcc="$CC"   am_compiler_list=
5007
5008 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5009 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5010 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5011   echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5014   # We make a subdir and do the tests there.  Otherwise we can end up
5015   # making bogus files that we don't know about and never remove.  For
5016   # instance it was reported that on HP-UX the gcc test will end up
5017   # making a dummy file named `D' -- because `-MD' means `put the output
5018   # in D'.
5019   mkdir conftest.dir
5020   # Copy depcomp to subdir because otherwise we won't find it if we're
5021   # using a relative directory.
5022   cp "$am_depcomp" conftest.dir
5023   cd conftest.dir
5024   # We will build objects and dependencies in a subdirectory because
5025   # it helps to detect inapplicable dependency modes.  For instance
5026   # both Tru64's cc and ICC support -MD to output dependencies as a
5027   # side effect of compilation, but ICC will put the dependencies in
5028   # the current directory while Tru64 will put them in the object
5029   # directory.
5030   mkdir sub
5031
5032   am_cv_CC_dependencies_compiler_type=none
5033   if test "$am_compiler_list" = ""; then
5034      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5035   fi
5036   for depmode in $am_compiler_list; do
5037     # Setup a source with many dependencies, because some compilers
5038     # like to wrap large dependency lists on column 80 (with \), and
5039     # we should not choose a depcomp mode which is confused by this.
5040     #
5041     # We need to recreate these files for each test, as the compiler may
5042     # overwrite some of them when testing with obscure command lines.
5043     # This happens at least with the AIX C compiler.
5044     : > sub/conftest.c
5045     for i in 1 2 3 4 5 6; do
5046       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5047       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5048       # Solaris 8's {/usr,}/bin/sh.
5049       touch sub/conftst$i.h
5050     done
5051     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5052
5053     case $depmode in
5054     nosideeffect)
5055       # after this tag, mechanisms are not by side-effect, so they'll
5056       # only be used when explicitly requested
5057       if test "x$enable_dependency_tracking" = xyes; then
5058         continue
5059       else
5060         break
5061       fi
5062       ;;
5063     none) break ;;
5064     esac
5065     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5066     # mode.  It turns out that the SunPro C++ compiler does not properly
5067     # handle `-M -o', and we need to detect this.
5068     if depmode=$depmode \
5069        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5070        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5071        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5072          >/dev/null 2>conftest.err &&
5073        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5074        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5075        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5076       # icc doesn't choke on unknown options, it will just issue warnings
5077       # or remarks (even with -Werror).  So we grep stderr for any message
5078       # that says an option was ignored or not supported.
5079       # When given -MP, icc 7.0 and 7.1 complain thusly:
5080       #   icc: Command line warning: ignoring option '-M'; no argument required
5081       # The diagnosis changed in icc 8.0:
5082       #   icc: Command line remark: option '-MP' not supported
5083       if (grep 'ignoring option' conftest.err ||
5084           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5085         am_cv_CC_dependencies_compiler_type=$depmode
5086         break
5087       fi
5088     fi
5089   done
5090
5091   cd ..
5092   rm -rf conftest.dir
5093 else
5094   am_cv_CC_dependencies_compiler_type=none
5095 fi
5096
5097 fi
5098 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5099 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5100 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5101
5102
5103
5104 if
5105   test "x$enable_dependency_tracking" != xno \
5106   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5107   am__fastdepCC_TRUE=
5108   am__fastdepCC_FALSE='#'
5109 else
5110   am__fastdepCC_TRUE='#'
5111   am__fastdepCC_FALSE=
5112 fi
5113
5114
5115 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5116 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5117 if test "${lt_cv_path_SED+set}" = set; then
5118   echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120   # Loop through the user's path and test for sed and gsed.
5121 # Then use that list of sed's as ones to test for truncation.
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125   IFS=$as_save_IFS
5126   test -z "$as_dir" && as_dir=.
5127   for lt_ac_prog in sed gsed; do
5128     for ac_exec_ext in '' $ac_executable_extensions; do
5129       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5130         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5131       fi
5132     done
5133   done
5134 done
5135 lt_ac_max=0
5136 lt_ac_count=0
5137 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5138 # along with /bin/sed that truncates output.
5139 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5140   test ! -f $lt_ac_sed && continue
5141   cat /dev/null > conftest.in
5142   lt_ac_count=0
5143   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5144   # Check for GNU sed and select it if it is found.
5145   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5146     lt_cv_path_SED=$lt_ac_sed
5147     break
5148   fi
5149   while true; do
5150     cat conftest.in conftest.in >conftest.tmp
5151     mv conftest.tmp conftest.in
5152     cp conftest.in conftest.nl
5153     echo >>conftest.nl
5154     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5155     cmp -s conftest.out conftest.nl || break
5156     # 10000 chars as input seems more than enough
5157     test $lt_ac_count -gt 10 && break
5158     lt_ac_count=`expr $lt_ac_count + 1`
5159     if test $lt_ac_count -gt $lt_ac_max; then
5160       lt_ac_max=$lt_ac_count
5161       lt_cv_path_SED=$lt_ac_sed
5162     fi
5163   done
5164 done
5165
5166 fi
5167
5168 SED=$lt_cv_path_SED
5169 echo "$as_me:$LINENO: result: $SED" >&5
5170 echo "${ECHO_T}$SED" >&6
5171
5172 echo "$as_me:$LINENO: checking for egrep" >&5
5173 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5174 if test "${ac_cv_prog_egrep+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5178     then ac_cv_prog_egrep='grep -E'
5179     else ac_cv_prog_egrep='egrep'
5180     fi
5181 fi
5182 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5183 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5184  EGREP=$ac_cv_prog_egrep
5185
5186
5187
5188 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5189 if test "${with_gnu_ld+set}" = set; then
5190   withval="$with_gnu_ld"
5191   test "$withval" = no || with_gnu_ld=yes
5192 else
5193   with_gnu_ld=no
5194 fi;
5195 ac_prog=ld
5196 if test "$GCC" = yes; then
5197   # Check if gcc -print-prog-name=ld gives a path.
5198   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5199 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5200   case $host in
5201   *-*-mingw*)
5202     # gcc leaves a trailing carriage return which upsets mingw
5203     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5204   *)
5205     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5206   esac
5207   case $ac_prog in
5208     # Accept absolute paths.
5209     [\\/]* | ?:[\\/]*)
5210       re_direlt='/[^/][^/]*/\.\./'
5211       # Canonicalize the pathname of ld
5212       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5213       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5214         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5215       done
5216       test -z "$LD" && LD="$ac_prog"
5217       ;;
5218   "")
5219     # If it fails, then pretend we aren't using GCC.
5220     ac_prog=ld
5221     ;;
5222   *)
5223     # If it is relative, then search for the first ld in PATH.
5224     with_gnu_ld=unknown
5225     ;;
5226   esac
5227 elif test "$with_gnu_ld" = yes; then
5228   echo "$as_me:$LINENO: checking for GNU ld" >&5
5229 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5230 else
5231   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5232 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5233 fi
5234 if test "${lt_cv_path_LD+set}" = set; then
5235   echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237   if test -z "$LD"; then
5238   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5239   for ac_dir in $PATH; do
5240     IFS="$lt_save_ifs"
5241     test -z "$ac_dir" && ac_dir=.
5242     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5243       lt_cv_path_LD="$ac_dir/$ac_prog"
5244       # Check to see if the program is GNU ld.  I'd rather use --version,
5245       # but apparently some GNU ld's only accept -v.
5246       # Break only if it was the GNU/non-GNU ld that we prefer.
5247       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5248       *GNU* | *'with BFD'*)
5249         test "$with_gnu_ld" != no && break
5250         ;;
5251       *)
5252         test "$with_gnu_ld" != yes && break
5253         ;;
5254       esac
5255     fi
5256   done
5257   IFS="$lt_save_ifs"
5258 else
5259   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5260 fi
5261 fi
5262
5263 LD="$lt_cv_path_LD"
5264 if test -n "$LD"; then
5265   echo "$as_me:$LINENO: result: $LD" >&5
5266 echo "${ECHO_T}$LD" >&6
5267 else
5268   echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5270 fi
5271 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5272 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5273    { (exit 1); exit 1; }; }
5274 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5275 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5276 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5280 case `$LD -v 2>&1 </dev/null` in
5281 *GNU* | *'with BFD'*)
5282   lt_cv_prog_gnu_ld=yes
5283   ;;
5284 *)
5285   lt_cv_prog_gnu_ld=no
5286   ;;
5287 esac
5288 fi
5289 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5290 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5291 with_gnu_ld=$lt_cv_prog_gnu_ld
5292
5293
5294 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5295 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5296 if test "${lt_cv_ld_reload_flag+set}" = set; then
5297   echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299   lt_cv_ld_reload_flag='-r'
5300 fi
5301 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5302 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5303 reload_flag=$lt_cv_ld_reload_flag
5304 case $reload_flag in
5305 "" | " "*) ;;
5306 *) reload_flag=" $reload_flag" ;;
5307 esac
5308 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5309 case $host_os in
5310   darwin*)
5311     if test "$GCC" = yes; then
5312       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5313     else
5314       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5315     fi
5316     ;;
5317 esac
5318
5319 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5320 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5321 if test "${lt_cv_path_NM+set}" = set; then
5322   echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324   if test -n "$NM"; then
5325   # Let the user override the test.
5326   lt_cv_path_NM="$NM"
5327 else
5328   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5329   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5330     IFS="$lt_save_ifs"
5331     test -z "$ac_dir" && ac_dir=.
5332     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5333     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5334       # Check to see if the nm accepts a BSD-compat flag.
5335       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5336       #   nm: unknown option "B" ignored
5337       # Tru64's nm complains that /dev/null is an invalid object file
5338       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5339       */dev/null* | *'Invalid file or object type'*)
5340         lt_cv_path_NM="$tmp_nm -B"
5341         break
5342         ;;
5343       *)
5344         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5345         */dev/null*)
5346           lt_cv_path_NM="$tmp_nm -p"
5347           break
5348           ;;
5349         *)
5350           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5351           continue # so that we can try to find one that supports BSD flags
5352           ;;
5353         esac
5354       esac
5355     fi
5356   done
5357   IFS="$lt_save_ifs"
5358   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5359 fi
5360 fi
5361 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5362 echo "${ECHO_T}$lt_cv_path_NM" >&6
5363 NM="$lt_cv_path_NM"
5364
5365 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5366 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5367 LN_S=$as_ln_s
5368 if test "$LN_S" = "ln -s"; then
5369   echo "$as_me:$LINENO: result: yes" >&5
5370 echo "${ECHO_T}yes" >&6
5371 else
5372   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5373 echo "${ECHO_T}no, using $LN_S" >&6
5374 fi
5375
5376 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5377 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5378 if test "${lt_cv_deplibs_check_method+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   lt_cv_file_magic_cmd='$MAGIC_CMD'
5382 lt_cv_file_magic_test_file=
5383 lt_cv_deplibs_check_method='unknown'
5384 # Need to set the preceding variable on all platforms that support
5385 # interlibrary dependencies.
5386 # 'none' -- dependencies not supported.
5387 # `unknown' -- same as none, but documents that we really don't know.
5388 # 'pass_all' -- all dependencies passed with no checks.
5389 # 'test_compile' -- check by making test program.
5390 # 'file_magic [[regex]]' -- check by looking for files in library path
5391 # which responds to the $file_magic_cmd with a given extended regex.
5392 # If you have `file' or equivalent on your system and you're not sure
5393 # whether `pass_all' will *always* work, you probably want this one.
5394
5395 case $host_os in
5396 aix4* | aix5*)
5397   lt_cv_deplibs_check_method=pass_all
5398   ;;
5399
5400 beos*)
5401   lt_cv_deplibs_check_method=pass_all
5402   ;;
5403
5404 bsdi[45]*)
5405   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5406   lt_cv_file_magic_cmd='/usr/bin/file -L'
5407   lt_cv_file_magic_test_file=/shlib/libc.so
5408   ;;
5409
5410 cygwin*)
5411   # func_win32_libid is a shell function defined in ltmain.sh
5412   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5413   lt_cv_file_magic_cmd='func_win32_libid'
5414   ;;
5415
5416 mingw* | pw32*)
5417   # Base MSYS/MinGW do not provide the 'file' command needed by
5418   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5419   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5420   lt_cv_file_magic_cmd='$OBJDUMP -f'
5421   ;;
5422
5423 darwin* | rhapsody*)
5424   lt_cv_deplibs_check_method=pass_all
5425   ;;
5426
5427 freebsd* | kfreebsd*-gnu | dragonfly*)
5428   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5429     case $host_cpu in
5430     i*86 )
5431       # Not sure whether the presence of OpenBSD here was a mistake.
5432       # Let's accept both of them until this is cleared up.
5433       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5434       lt_cv_file_magic_cmd=/usr/bin/file
5435       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5436       ;;
5437     esac
5438   else
5439     lt_cv_deplibs_check_method=pass_all
5440   fi
5441   ;;
5442
5443 gnu*)
5444   lt_cv_deplibs_check_method=pass_all
5445   ;;
5446
5447 hpux10.20* | hpux11*)
5448   lt_cv_file_magic_cmd=/usr/bin/file
5449   case "$host_cpu" in
5450   ia64*)
5451     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5452     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5453     ;;
5454   hppa*64*)
5455     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]'
5456     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5457     ;;
5458   *)
5459     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5460     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5461     ;;
5462   esac
5463   ;;
5464
5465 irix5* | irix6* | nonstopux*)
5466   case $LD in
5467   *-32|*"-32 ") libmagic=32-bit;;
5468   *-n32|*"-n32 ") libmagic=N32;;
5469   *-64|*"-64 ") libmagic=64-bit;;
5470   *) libmagic=never-match;;
5471   esac
5472   lt_cv_deplibs_check_method=pass_all
5473   ;;
5474
5475 # This must be Linux ELF.
5476 linux*)
5477   lt_cv_deplibs_check_method=pass_all
5478   ;;
5479
5480 netbsd*)
5481   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5482     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5483   else
5484     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5485   fi
5486   ;;
5487
5488 newos6*)
5489   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5490   lt_cv_file_magic_cmd=/usr/bin/file
5491   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5492   ;;
5493
5494 nto-qnx*)
5495   lt_cv_deplibs_check_method=unknown
5496   ;;
5497
5498 openbsd*)
5499   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5500     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5501   else
5502     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5503   fi
5504   ;;
5505
5506 osf3* | osf4* | osf5*)
5507   lt_cv_deplibs_check_method=pass_all
5508   ;;
5509
5510 sco3.2v5*)
5511   lt_cv_deplibs_check_method=pass_all
5512   ;;
5513
5514 solaris*)
5515   lt_cv_deplibs_check_method=pass_all
5516   ;;
5517
5518 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5519   case $host_vendor in
5520   motorola)
5521     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]'
5522     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5523     ;;
5524   ncr)
5525     lt_cv_deplibs_check_method=pass_all
5526     ;;
5527   sequent)
5528     lt_cv_file_magic_cmd='/bin/file'
5529     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5530     ;;
5531   sni)
5532     lt_cv_file_magic_cmd='/bin/file'
5533     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5534     lt_cv_file_magic_test_file=/lib/libc.so
5535     ;;
5536   siemens)
5537     lt_cv_deplibs_check_method=pass_all
5538     ;;
5539   esac
5540   ;;
5541
5542 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5543   lt_cv_deplibs_check_method=pass_all
5544   ;;
5545 esac
5546
5547 fi
5548 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5549 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5550 file_magic_cmd=$lt_cv_file_magic_cmd
5551 deplibs_check_method=$lt_cv_deplibs_check_method
5552 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5553
5554
5555
5556
5557 # If no C compiler was specified, use CC.
5558 LTCC=${LTCC-"$CC"}
5559
5560 # Allow CC to be a program name with arguments.
5561 compiler=$CC
5562
5563
5564 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5565 if test "${enable_libtool_lock+set}" = set; then
5566   enableval="$enable_libtool_lock"
5567
5568 fi;
5569 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5570
5571 # Some flags need to be propagated to the compiler or linker for good
5572 # libtool support.
5573 case $host in
5574 ia64-*-hpux*)
5575   # Find out which ABI we are using.
5576   echo 'int i;' > conftest.$ac_ext
5577   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5578   (eval $ac_compile) 2>&5
5579   ac_status=$?
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); }; then
5582     case `/usr/bin/file conftest.$ac_objext` in
5583     *ELF-32*)
5584       HPUX_IA64_MODE="32"
5585       ;;
5586     *ELF-64*)
5587       HPUX_IA64_MODE="64"
5588       ;;
5589     esac
5590   fi
5591   rm -rf conftest*
5592   ;;
5593 *-*-irix6*)
5594   # Find out which ABI we are using.
5595   echo '#line 5595 "configure"' > conftest.$ac_ext
5596   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5597   (eval $ac_compile) 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); }; then
5601    if test "$lt_cv_prog_gnu_ld" = yes; then
5602     case `/usr/bin/file conftest.$ac_objext` in
5603     *32-bit*)
5604       LD="${LD-ld} -melf32bsmip"
5605       ;;
5606     *N32*)
5607       LD="${LD-ld} -melf32bmipn32"
5608       ;;
5609     *64-bit*)
5610       LD="${LD-ld} -melf64bmip"
5611       ;;
5612     esac
5613    else
5614     case `/usr/bin/file conftest.$ac_objext` in
5615     *32-bit*)
5616       LD="${LD-ld} -32"
5617       ;;
5618     *N32*)
5619       LD="${LD-ld} -n32"
5620       ;;
5621     *64-bit*)
5622       LD="${LD-ld} -64"
5623       ;;
5624     esac
5625    fi
5626   fi
5627   rm -rf conftest*
5628   ;;
5629
5630 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5631   # Find out which ABI we are using.
5632   echo 'int i;' > conftest.$ac_ext
5633   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634   (eval $ac_compile) 2>&5
5635   ac_status=$?
5636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637   (exit $ac_status); }; then
5638     case "`/usr/bin/file conftest.o`" in
5639     *32-bit*)
5640       case $host in
5641         x86_64-*linux*)
5642           LD="${LD-ld} -m elf_i386"
5643           ;;
5644         ppc64-*linux*|powerpc64-*linux*)
5645           LD="${LD-ld} -m elf32ppclinux"
5646           ;;
5647         s390x-*linux*)
5648           LD="${LD-ld} -m elf_s390"
5649           ;;
5650         sparc64-*linux*)
5651           LD="${LD-ld} -m elf32_sparc"
5652           ;;
5653       esac
5654       ;;
5655     *64-bit*)
5656       case $host in
5657         x86_64-*linux*)
5658           LD="${LD-ld} -m elf_x86_64"
5659           ;;
5660         ppc*-*linux*|powerpc*-*linux*)
5661           LD="${LD-ld} -m elf64ppc"
5662           ;;
5663         s390*-*linux*)
5664           LD="${LD-ld} -m elf64_s390"
5665           ;;
5666         sparc*-*linux*)
5667           LD="${LD-ld} -m elf64_sparc"
5668           ;;
5669       esac
5670       ;;
5671     esac
5672   fi
5673   rm -rf conftest*
5674   ;;
5675
5676 *-*-sco3.2v5*)
5677   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5678   SAVE_CFLAGS="$CFLAGS"
5679   CFLAGS="$CFLAGS -belf"
5680   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5681 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5682 if test "${lt_cv_cc_needs_belf+set}" = set; then
5683   echo $ECHO_N "(cached) $ECHO_C" >&6
5684 else
5685   ac_ext=c
5686 ac_cpp='$CPP $CPPFLAGS'
5687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5690
5691      cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h.  */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h.  */
5697
5698 int
5699 main ()
5700 {
5701
5702   ;
5703   return 0;
5704 }
5705 _ACEOF
5706 rm -f conftest.$ac_objext conftest$ac_exeext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5708   (eval $ac_link) 2>conftest.er1
5709   ac_status=$?
5710   grep -v '^ *+' conftest.er1 >conftest.err
5711   rm -f conftest.er1
5712   cat conftest.err >&5
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); } &&
5715          { ac_try='test -z "$ac_c_werror_flag"
5716                          || test ! -s conftest.err'
5717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718   (eval $ac_try) 2>&5
5719   ac_status=$?
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); }; } &&
5722          { ac_try='test -s conftest$ac_exeext'
5723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724   (eval $ac_try) 2>&5
5725   ac_status=$?
5726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); }; }; then
5728   lt_cv_cc_needs_belf=yes
5729 else
5730   echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5732
5733 lt_cv_cc_needs_belf=no
5734 fi
5735 rm -f conftest.err conftest.$ac_objext \
5736       conftest$ac_exeext conftest.$ac_ext
5737      ac_ext=c
5738 ac_cpp='$CPP $CPPFLAGS'
5739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5742
5743 fi
5744 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5745 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5746   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5747     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5748     CFLAGS="$SAVE_CFLAGS"
5749   fi
5750   ;;
5751 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5752   if test -n "$ac_tool_prefix"; then
5753   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5754 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5755 echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5757 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   if test -n "$DLLTOOL"; then
5761   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766   IFS=$as_save_IFS
5767   test -z "$as_dir" && as_dir=.
5768   for ac_exec_ext in '' $ac_executable_extensions; do
5769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772     break 2
5773   fi
5774 done
5775 done
5776
5777 fi
5778 fi
5779 DLLTOOL=$ac_cv_prog_DLLTOOL
5780 if test -n "$DLLTOOL"; then
5781   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5782 echo "${ECHO_T}$DLLTOOL" >&6
5783 else
5784   echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6
5786 fi
5787
5788 fi
5789 if test -z "$ac_cv_prog_DLLTOOL"; then
5790   ac_ct_DLLTOOL=$DLLTOOL
5791   # Extract the first word of "dlltool", so it can be a program name with args.
5792 set dummy dlltool; ac_word=$2
5793 echo "$as_me:$LINENO: checking for $ac_word" >&5
5794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5795 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   if test -n "$ac_ct_DLLTOOL"; then
5799   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5800 else
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804   IFS=$as_save_IFS
5805   test -z "$as_dir" && as_dir=.
5806   for ac_exec_ext in '' $ac_executable_extensions; do
5807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5808     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5810     break 2
5811   fi
5812 done
5813 done
5814
5815   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5816 fi
5817 fi
5818 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5819 if test -n "$ac_ct_DLLTOOL"; then
5820   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5821 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5822 else
5823   echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6
5825 fi
5826
5827   DLLTOOL=$ac_ct_DLLTOOL
5828 else
5829   DLLTOOL="$ac_cv_prog_DLLTOOL"
5830 fi
5831
5832   if test -n "$ac_tool_prefix"; then
5833   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5834 set dummy ${ac_tool_prefix}as; ac_word=$2
5835 echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5837 if test "${ac_cv_prog_AS+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   if test -n "$AS"; then
5841   ac_cv_prog_AS="$AS" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846   IFS=$as_save_IFS
5847   test -z "$as_dir" && as_dir=.
5848   for ac_exec_ext in '' $ac_executable_extensions; do
5849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850     ac_cv_prog_AS="${ac_tool_prefix}as"
5851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852     break 2
5853   fi
5854 done
5855 done
5856
5857 fi
5858 fi
5859 AS=$ac_cv_prog_AS
5860 if test -n "$AS"; then
5861   echo "$as_me:$LINENO: result: $AS" >&5
5862 echo "${ECHO_T}$AS" >&6
5863 else
5864   echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5866 fi
5867
5868 fi
5869 if test -z "$ac_cv_prog_AS"; then
5870   ac_ct_AS=$AS
5871   # Extract the first word of "as", so it can be a program name with args.
5872 set dummy as; ac_word=$2
5873 echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5875 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   if test -n "$ac_ct_AS"; then
5879   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884   IFS=$as_save_IFS
5885   test -z "$as_dir" && as_dir=.
5886   for ac_exec_ext in '' $ac_executable_extensions; do
5887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888     ac_cv_prog_ac_ct_AS="as"
5889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890     break 2
5891   fi
5892 done
5893 done
5894
5895   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5896 fi
5897 fi
5898 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5899 if test -n "$ac_ct_AS"; then
5900   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5901 echo "${ECHO_T}$ac_ct_AS" >&6
5902 else
5903   echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6
5905 fi
5906
5907   AS=$ac_ct_AS
5908 else
5909   AS="$ac_cv_prog_AS"
5910 fi
5911
5912   if test -n "$ac_tool_prefix"; then
5913   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5914 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5915 echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5918   echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920   if test -n "$OBJDUMP"; then
5921   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926   IFS=$as_save_IFS
5927   test -z "$as_dir" && as_dir=.
5928   for ac_exec_ext in '' $ac_executable_extensions; do
5929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932     break 2
5933   fi
5934 done
5935 done
5936
5937 fi
5938 fi
5939 OBJDUMP=$ac_cv_prog_OBJDUMP
5940 if test -n "$OBJDUMP"; then
5941   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5942 echo "${ECHO_T}$OBJDUMP" >&6
5943 else
5944   echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5946 fi
5947
5948 fi
5949 if test -z "$ac_cv_prog_OBJDUMP"; then
5950   ac_ct_OBJDUMP=$OBJDUMP
5951   # Extract the first word of "objdump", so it can be a program name with args.
5952 set dummy objdump; ac_word=$2
5953 echo "$as_me:$LINENO: checking for $ac_word" >&5
5954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5955 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5956   echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958   if test -n "$ac_ct_OBJDUMP"; then
5959   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964   IFS=$as_save_IFS
5965   test -z "$as_dir" && as_dir=.
5966   for ac_exec_ext in '' $ac_executable_extensions; do
5967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970     break 2
5971   fi
5972 done
5973 done
5974
5975   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5976 fi
5977 fi
5978 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5979 if test -n "$ac_ct_OBJDUMP"; then
5980   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5981 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5982 else
5983   echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6
5985 fi
5986
5987   OBJDUMP=$ac_ct_OBJDUMP
5988 else
5989   OBJDUMP="$ac_cv_prog_OBJDUMP"
5990 fi
5991
5992   ;;
5993
5994 esac
5995
5996 need_locks="$enable_libtool_lock"
5997
5998
5999 ac_ext=c
6000 ac_cpp='$CPP $CPPFLAGS'
6001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6004 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6005 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6006 # On Suns, sometimes $CPP names a directory.
6007 if test -n "$CPP" && test -d "$CPP"; then
6008   CPP=
6009 fi
6010 if test -z "$CPP"; then
6011   if test "${ac_cv_prog_CPP+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014       # Double quotes because CPP needs to be expanded
6015     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6016     do
6017       ac_preproc_ok=false
6018 for ac_c_preproc_warn_flag in '' yes
6019 do
6020   # Use a header file that comes with gcc, so configuring glibc
6021   # with a fresh cross-compiler works.
6022   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6023   # <limits.h> exists even on freestanding compilers.
6024   # On the NeXT, cc -E runs the code through the compiler's parser,
6025   # not just through cpp. "Syntax error" is here to catch this case.
6026   cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h.  */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h.  */
6032 #ifdef __STDC__
6033 # include <limits.h>
6034 #else
6035 # include <assert.h>
6036 #endif
6037                      Syntax error
6038 _ACEOF
6039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6040   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6041   ac_status=$?
6042   grep -v '^ *+' conftest.er1 >conftest.err
6043   rm -f conftest.er1
6044   cat conftest.err >&5
6045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046   (exit $ac_status); } >/dev/null; then
6047   if test -s conftest.err; then
6048     ac_cpp_err=$ac_c_preproc_warn_flag
6049     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6050   else
6051     ac_cpp_err=
6052   fi
6053 else
6054   ac_cpp_err=yes
6055 fi
6056 if test -z "$ac_cpp_err"; then
6057   :
6058 else
6059   echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062   # Broken: fails on valid input.
6063 continue
6064 fi
6065 rm -f conftest.err conftest.$ac_ext
6066
6067   # OK, works on sane cases.  Now check whether non-existent headers
6068   # can be detected and how.
6069   cat >conftest.$ac_ext <<_ACEOF
6070 /* confdefs.h.  */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h.  */
6075 #include <ac_nonexistent.h>
6076 _ACEOF
6077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6078   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6079   ac_status=$?
6080   grep -v '^ *+' conftest.er1 >conftest.err
6081   rm -f conftest.er1
6082   cat conftest.err >&5
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); } >/dev/null; then
6085   if test -s conftest.err; then
6086     ac_cpp_err=$ac_c_preproc_warn_flag
6087     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6088   else
6089     ac_cpp_err=
6090   fi
6091 else
6092   ac_cpp_err=yes
6093 fi
6094 if test -z "$ac_cpp_err"; then
6095   # Broken: success on invalid input.
6096 continue
6097 else
6098   echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101   # Passes both tests.
6102 ac_preproc_ok=:
6103 break
6104 fi
6105 rm -f conftest.err conftest.$ac_ext
6106
6107 done
6108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6109 rm -f conftest.err conftest.$ac_ext
6110 if $ac_preproc_ok; then
6111   break
6112 fi
6113
6114     done
6115     ac_cv_prog_CPP=$CPP
6116
6117 fi
6118   CPP=$ac_cv_prog_CPP
6119 else
6120   ac_cv_prog_CPP=$CPP
6121 fi
6122 echo "$as_me:$LINENO: result: $CPP" >&5
6123 echo "${ECHO_T}$CPP" >&6
6124 ac_preproc_ok=false
6125 for ac_c_preproc_warn_flag in '' yes
6126 do
6127   # Use a header file that comes with gcc, so configuring glibc
6128   # with a fresh cross-compiler works.
6129   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6130   # <limits.h> exists even on freestanding compilers.
6131   # On the NeXT, cc -E runs the code through the compiler's parser,
6132   # not just through cpp. "Syntax error" is here to catch this case.
6133   cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h.  */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h.  */
6139 #ifdef __STDC__
6140 # include <limits.h>
6141 #else
6142 # include <assert.h>
6143 #endif
6144                      Syntax error
6145 _ACEOF
6146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6147   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6148   ac_status=$?
6149   grep -v '^ *+' conftest.er1 >conftest.err
6150   rm -f conftest.er1
6151   cat conftest.err >&5
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); } >/dev/null; then
6154   if test -s conftest.err; then
6155     ac_cpp_err=$ac_c_preproc_warn_flag
6156     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6157   else
6158     ac_cpp_err=
6159   fi
6160 else
6161   ac_cpp_err=yes
6162 fi
6163 if test -z "$ac_cpp_err"; then
6164   :
6165 else
6166   echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6168
6169   # Broken: fails on valid input.
6170 continue
6171 fi
6172 rm -f conftest.err conftest.$ac_ext
6173
6174   # OK, works on sane cases.  Now check whether non-existent headers
6175   # can be detected and how.
6176   cat >conftest.$ac_ext <<_ACEOF
6177 /* confdefs.h.  */
6178 _ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h.  */
6182 #include <ac_nonexistent.h>
6183 _ACEOF
6184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6185   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6186   ac_status=$?
6187   grep -v '^ *+' conftest.er1 >conftest.err
6188   rm -f conftest.er1
6189   cat conftest.err >&5
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); } >/dev/null; then
6192   if test -s conftest.err; then
6193     ac_cpp_err=$ac_c_preproc_warn_flag
6194     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6195   else
6196     ac_cpp_err=
6197   fi
6198 else
6199   ac_cpp_err=yes
6200 fi
6201 if test -z "$ac_cpp_err"; then
6202   # Broken: success on invalid input.
6203 continue
6204 else
6205   echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208   # Passes both tests.
6209 ac_preproc_ok=:
6210 break
6211 fi
6212 rm -f conftest.err conftest.$ac_ext
6213
6214 done
6215 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6216 rm -f conftest.err conftest.$ac_ext
6217 if $ac_preproc_ok; then
6218   :
6219 else
6220   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6221 See \`config.log' for more details." >&5
6222 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6223 See \`config.log' for more details." >&2;}
6224    { (exit 1); exit 1; }; }
6225 fi
6226
6227 ac_ext=c
6228 ac_cpp='$CPP $CPPFLAGS'
6229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6232
6233
6234 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6235 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6236 if test "${ac_cv_header_stdc+set}" = set; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h.  */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h.  */
6245 #include <stdlib.h>
6246 #include <stdarg.h>
6247 #include <string.h>
6248 #include <float.h>
6249
6250 int
6251 main ()
6252 {
6253
6254   ;
6255   return 0;
6256 }
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6260   (eval $ac_compile) 2>conftest.er1
6261   ac_status=$?
6262   grep -v '^ *+' conftest.er1 >conftest.err
6263   rm -f conftest.er1
6264   cat conftest.err >&5
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); } &&
6267          { ac_try='test -z "$ac_c_werror_flag"
6268                          || test ! -s conftest.err'
6269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270   (eval $ac_try) 2>&5
6271   ac_status=$?
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); }; } &&
6274          { ac_try='test -s conftest.$ac_objext'
6275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276   (eval $ac_try) 2>&5
6277   ac_status=$?
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); }; }; then
6280   ac_cv_header_stdc=yes
6281 else
6282   echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6284
6285 ac_cv_header_stdc=no
6286 fi
6287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6288
6289 if test $ac_cv_header_stdc = yes; then
6290   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6291   cat >conftest.$ac_ext <<_ACEOF
6292 /* confdefs.h.  */
6293 _ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h.  */
6297 #include <string.h>
6298
6299 _ACEOF
6300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6301   $EGREP "memchr" >/dev/null 2>&1; then
6302   :
6303 else
6304   ac_cv_header_stdc=no
6305 fi
6306 rm -f conftest*
6307
6308 fi
6309
6310 if test $ac_cv_header_stdc = yes; then
6311   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6312   cat >conftest.$ac_ext <<_ACEOF
6313 /* confdefs.h.  */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h.  */
6318 #include <stdlib.h>
6319
6320 _ACEOF
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322   $EGREP "free" >/dev/null 2>&1; then
6323   :
6324 else
6325   ac_cv_header_stdc=no
6326 fi
6327 rm -f conftest*
6328
6329 fi
6330
6331 if test $ac_cv_header_stdc = yes; then
6332   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6333   if test "$cross_compiling" = yes; then
6334   :
6335 else
6336   cat >conftest.$ac_ext <<_ACEOF
6337 /* confdefs.h.  */
6338 _ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h.  */
6342 #include <ctype.h>
6343 #if ((' ' & 0x0FF) == 0x020)
6344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6346 #else
6347 # define ISLOWER(c) \
6348                    (('a' <= (c) && (c) <= 'i') \
6349                      || ('j' <= (c) && (c) <= 'r') \
6350                      || ('s' <= (c) && (c) <= 'z'))
6351 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6352 #endif
6353
6354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6355 int
6356 main ()
6357 {
6358   int i;
6359   for (i = 0; i < 256; i++)
6360     if (XOR (islower (i), ISLOWER (i))
6361         || toupper (i) != TOUPPER (i))
6362       exit(2);
6363   exit (0);
6364 }
6365 _ACEOF
6366 rm -f conftest$ac_exeext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6368   (eval $ac_link) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373   (eval $ac_try) 2>&5
6374   ac_status=$?
6375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376   (exit $ac_status); }; }; then
6377   :
6378 else
6379   echo "$as_me: program exited with status $ac_status" >&5
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6382
6383 ( exit $ac_status )
6384 ac_cv_header_stdc=no
6385 fi
6386 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6387 fi
6388 fi
6389 fi
6390 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6391 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6392 if test $ac_cv_header_stdc = yes; then
6393
6394 cat >>confdefs.h <<\_ACEOF
6395 #define STDC_HEADERS 1
6396 _ACEOF
6397
6398 fi
6399
6400 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6411                   inttypes.h stdint.h unistd.h
6412 do
6413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6414 echo "$as_me:$LINENO: checking for $ac_header" >&5
6415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6417   echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419   cat >conftest.$ac_ext <<_ACEOF
6420 /* confdefs.h.  */
6421 _ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h.  */
6425 $ac_includes_default
6426
6427 #include <$ac_header>
6428 _ACEOF
6429 rm -f conftest.$ac_objext
6430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6431   (eval $ac_compile) 2>conftest.er1
6432   ac_status=$?
6433   grep -v '^ *+' conftest.er1 >conftest.err
6434   rm -f conftest.er1
6435   cat conftest.err >&5
6436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437   (exit $ac_status); } &&
6438          { ac_try='test -z "$ac_c_werror_flag"
6439                          || test ! -s conftest.err'
6440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441   (eval $ac_try) 2>&5
6442   ac_status=$?
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); }; } &&
6445          { ac_try='test -s conftest.$ac_objext'
6446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447   (eval $ac_try) 2>&5
6448   ac_status=$?
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); }; }; then
6451   eval "$as_ac_Header=yes"
6452 else
6453   echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6455
6456 eval "$as_ac_Header=no"
6457 fi
6458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6459 fi
6460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6463   cat >>confdefs.h <<_ACEOF
6464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6465 _ACEOF
6466
6467 fi
6468
6469 done
6470
6471
6472
6473 for ac_header in dlfcn.h
6474 do
6475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6477   echo "$as_me:$LINENO: checking for $ac_header" >&5
6478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6480   echo $ECHO_N "(cached) $ECHO_C" >&6
6481 fi
6482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6484 else
6485   # Is the header compilable?
6486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6488 cat >conftest.$ac_ext <<_ACEOF
6489 /* confdefs.h.  */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h.  */
6494 $ac_includes_default
6495 #include <$ac_header>
6496 _ACEOF
6497 rm -f conftest.$ac_objext
6498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6499   (eval $ac_compile) 2>conftest.er1
6500   ac_status=$?
6501   grep -v '^ *+' conftest.er1 >conftest.err
6502   rm -f conftest.er1
6503   cat conftest.err >&5
6504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505   (exit $ac_status); } &&
6506          { ac_try='test -z "$ac_c_werror_flag"
6507                          || test ! -s conftest.err'
6508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509   (eval $ac_try) 2>&5
6510   ac_status=$?
6511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512   (exit $ac_status); }; } &&
6513          { ac_try='test -s conftest.$ac_objext'
6514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515   (eval $ac_try) 2>&5
6516   ac_status=$?
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); }; }; then
6519   ac_header_compiler=yes
6520 else
6521   echo "$as_me: failed program was:" >&5
6522 sed 's/^/| /' conftest.$ac_ext >&5
6523
6524 ac_header_compiler=no
6525 fi
6526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6528 echo "${ECHO_T}$ac_header_compiler" >&6
6529
6530 # Is the header present?
6531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6533 cat >conftest.$ac_ext <<_ACEOF
6534 /* confdefs.h.  */
6535 _ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h.  */
6539 #include <$ac_header>
6540 _ACEOF
6541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6542   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6543   ac_status=$?
6544   grep -v '^ *+' conftest.er1 >conftest.err
6545   rm -f conftest.er1
6546   cat conftest.err >&5
6547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548   (exit $ac_status); } >/dev/null; then
6549   if test -s conftest.err; then
6550     ac_cpp_err=$ac_c_preproc_warn_flag
6551     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6552   else
6553     ac_cpp_err=
6554   fi
6555 else
6556   ac_cpp_err=yes
6557 fi
6558 if test -z "$ac_cpp_err"; then
6559   ac_header_preproc=yes
6560 else
6561   echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6563
6564   ac_header_preproc=no
6565 fi
6566 rm -f conftest.err conftest.$ac_ext
6567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6568 echo "${ECHO_T}$ac_header_preproc" >&6
6569
6570 # So?  What about this header?
6571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6572   yes:no: )
6573     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6575     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6577     ac_header_preproc=yes
6578     ;;
6579   no:yes:* )
6580     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6582     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6583 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6584     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6586     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6587 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6590     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6592     (
6593       cat <<\_ASBOX
6594 ## ------------------------------------------ ##
6595 ## Report this to the AC_PACKAGE_NAME lists.  ##
6596 ## ------------------------------------------ ##
6597 _ASBOX
6598     ) |
6599       sed "s/^/$as_me: WARNING:     /" >&2
6600     ;;
6601 esac
6602 echo "$as_me:$LINENO: checking for $ac_header" >&5
6603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6605   echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607   eval "$as_ac_Header=\$ac_header_preproc"
6608 fi
6609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6611
6612 fi
6613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6614   cat >>confdefs.h <<_ACEOF
6615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6616 _ACEOF
6617
6618 fi
6619
6620 done
6621
6622 ac_ext=cc
6623 ac_cpp='$CXXCPP $CPPFLAGS'
6624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6627 if test -n "$ac_tool_prefix"; then
6628   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6629   do
6630     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6631 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6632 echo "$as_me:$LINENO: checking for $ac_word" >&5
6633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6634 if test "${ac_cv_prog_CXX+set}" = set; then
6635   echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637   if test -n "$CXX"; then
6638   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6642 do
6643   IFS=$as_save_IFS
6644   test -z "$as_dir" && as_dir=.
6645   for ac_exec_ext in '' $ac_executable_extensions; do
6646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6647     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649     break 2
6650   fi
6651 done
6652 done
6653
6654 fi
6655 fi
6656 CXX=$ac_cv_prog_CXX
6657 if test -n "$CXX"; then
6658   echo "$as_me:$LINENO: result: $CXX" >&5
6659 echo "${ECHO_T}$CXX" >&6
6660 else
6661   echo "$as_me:$LINENO: result: no" >&5
6662 echo "${ECHO_T}no" >&6
6663 fi
6664
6665     test -n "$CXX" && break
6666   done
6667 fi
6668 if test -z "$CXX"; then
6669   ac_ct_CXX=$CXX
6670   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6671 do
6672   # Extract the first word of "$ac_prog", so it can be a program name with args.
6673 set dummy $ac_prog; ac_word=$2
6674 echo "$as_me:$LINENO: checking for $ac_word" >&5
6675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6676 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6677   echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679   if test -n "$ac_ct_CXX"; then
6680   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6681 else
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 for as_dir in $PATH
6684 do
6685   IFS=$as_save_IFS
6686   test -z "$as_dir" && as_dir=.
6687   for ac_exec_ext in '' $ac_executable_extensions; do
6688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6689     ac_cv_prog_ac_ct_CXX="$ac_prog"
6690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6691     break 2
6692   fi
6693 done
6694 done
6695
6696 fi
6697 fi
6698 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6699 if test -n "$ac_ct_CXX"; then
6700   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6701 echo "${ECHO_T}$ac_ct_CXX" >&6
6702 else
6703   echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6
6705 fi
6706
6707   test -n "$ac_ct_CXX" && break
6708 done
6709 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6710
6711   CXX=$ac_ct_CXX
6712 fi
6713
6714
6715 # Provide some information about the compiler.
6716 echo "$as_me:$LINENO:" \
6717      "checking for C++ compiler version" >&5
6718 ac_compiler=`set X $ac_compile; echo $2`
6719 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6720   (eval $ac_compiler --version </dev/null >&5) 2>&5
6721   ac_status=$?
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); }
6724 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6725   (eval $ac_compiler -v </dev/null >&5) 2>&5
6726   ac_status=$?
6727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728   (exit $ac_status); }
6729 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6730   (eval $ac_compiler -V </dev/null >&5) 2>&5
6731   ac_status=$?
6732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); }
6734
6735 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6736 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6737 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   cat >conftest.$ac_ext <<_ACEOF
6741 /* confdefs.h.  */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h.  */
6746
6747 int
6748 main ()
6749 {
6750 #ifndef __GNUC__
6751        choke me
6752 #endif
6753
6754   ;
6755   return 0;
6756 }
6757 _ACEOF
6758 rm -f conftest.$ac_objext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760   (eval $ac_compile) 2>conftest.er1
6761   ac_status=$?
6762   grep -v '^ *+' conftest.er1 >conftest.err
6763   rm -f conftest.er1
6764   cat conftest.err >&5
6765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766   (exit $ac_status); } &&
6767          { ac_try='test -z "$ac_cxx_werror_flag"
6768                          || test ! -s conftest.err'
6769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770   (eval $ac_try) 2>&5
6771   ac_status=$?
6772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773   (exit $ac_status); }; } &&
6774          { ac_try='test -s conftest.$ac_objext'
6775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776   (eval $ac_try) 2>&5
6777   ac_status=$?
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); }; }; then
6780   ac_compiler_gnu=yes
6781 else
6782   echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6784
6785 ac_compiler_gnu=no
6786 fi
6787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6788 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6789
6790 fi
6791 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6792 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6793 GXX=`test $ac_compiler_gnu = yes && echo yes`
6794 ac_test_CXXFLAGS=${CXXFLAGS+set}
6795 ac_save_CXXFLAGS=$CXXFLAGS
6796 CXXFLAGS="-g"
6797 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6798 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6799 if test "${ac_cv_prog_cxx_g+set}" = set; then
6800   echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802   cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h.  */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h.  */
6808
6809 int
6810 main ()
6811 {
6812
6813   ;
6814   return 0;
6815 }
6816 _ACEOF
6817 rm -f conftest.$ac_objext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6819   (eval $ac_compile) 2>conftest.er1
6820   ac_status=$?
6821   grep -v '^ *+' conftest.er1 >conftest.err
6822   rm -f conftest.er1
6823   cat conftest.err >&5
6824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825   (exit $ac_status); } &&
6826          { ac_try='test -z "$ac_cxx_werror_flag"
6827                          || test ! -s conftest.err'
6828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829   (eval $ac_try) 2>&5
6830   ac_status=$?
6831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832   (exit $ac_status); }; } &&
6833          { ac_try='test -s conftest.$ac_objext'
6834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835   (eval $ac_try) 2>&5
6836   ac_status=$?
6837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838   (exit $ac_status); }; }; then
6839   ac_cv_prog_cxx_g=yes
6840 else
6841   echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6843
6844 ac_cv_prog_cxx_g=no
6845 fi
6846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6847 fi
6848 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6849 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6850 if test "$ac_test_CXXFLAGS" = set; then
6851   CXXFLAGS=$ac_save_CXXFLAGS
6852 elif test $ac_cv_prog_cxx_g = yes; then
6853   if test "$GXX" = yes; then
6854     CXXFLAGS="-g -O2"
6855   else
6856     CXXFLAGS="-g"
6857   fi
6858 else
6859   if test "$GXX" = yes; then
6860     CXXFLAGS="-O2"
6861   else
6862     CXXFLAGS=
6863   fi
6864 fi
6865 for ac_declaration in \
6866    '' \
6867    'extern "C" void std::exit (int) throw (); using std::exit;' \
6868    'extern "C" void std::exit (int); using std::exit;' \
6869    'extern "C" void exit (int) throw ();' \
6870    'extern "C" void exit (int);' \
6871    'void exit (int);'
6872 do
6873   cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h.  */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h.  */
6879 $ac_declaration
6880 #include <stdlib.h>
6881 int
6882 main ()
6883 {
6884 exit (42);
6885   ;
6886   return 0;
6887 }
6888 _ACEOF
6889 rm -f conftest.$ac_objext
6890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891   (eval $ac_compile) 2>conftest.er1
6892   ac_status=$?
6893   grep -v '^ *+' conftest.er1 >conftest.err
6894   rm -f conftest.er1
6895   cat conftest.err >&5
6896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); } &&
6898          { ac_try='test -z "$ac_cxx_werror_flag"
6899                          || test ! -s conftest.err'
6900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901   (eval $ac_try) 2>&5
6902   ac_status=$?
6903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904   (exit $ac_status); }; } &&
6905          { ac_try='test -s conftest.$ac_objext'
6906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907   (eval $ac_try) 2>&5
6908   ac_status=$?
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); }; }; then
6911   :
6912 else
6913   echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6915
6916 continue
6917 fi
6918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6919   cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h.  */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h.  */
6925 $ac_declaration
6926 int
6927 main ()
6928 {
6929 exit (42);
6930   ;
6931   return 0;
6932 }
6933 _ACEOF
6934 rm -f conftest.$ac_objext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6936   (eval $ac_compile) 2>conftest.er1
6937   ac_status=$?
6938   grep -v '^ *+' conftest.er1 >conftest.err
6939   rm -f conftest.er1
6940   cat conftest.err >&5
6941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942   (exit $ac_status); } &&
6943          { ac_try='test -z "$ac_cxx_werror_flag"
6944                          || test ! -s conftest.err'
6945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946   (eval $ac_try) 2>&5
6947   ac_status=$?
6948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949   (exit $ac_status); }; } &&
6950          { ac_try='test -s conftest.$ac_objext'
6951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952   (eval $ac_try) 2>&5
6953   ac_status=$?
6954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955   (exit $ac_status); }; }; then
6956   break
6957 else
6958   echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6960
6961 fi
6962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6963 done
6964 rm -f conftest*
6965 if test -n "$ac_declaration"; then
6966   echo '#ifdef __cplusplus' >>confdefs.h
6967   echo $ac_declaration      >>confdefs.h
6968   echo '#endif'             >>confdefs.h
6969 fi
6970
6971 ac_ext=cc
6972 ac_cpp='$CXXCPP $CPPFLAGS'
6973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6976
6977 depcc="$CXX"  am_compiler_list=
6978
6979 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6980 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6981 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6982   echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6985   # We make a subdir and do the tests there.  Otherwise we can end up
6986   # making bogus files that we don't know about and never remove.  For
6987   # instance it was reported that on HP-UX the gcc test will end up
6988   # making a dummy file named `D' -- because `-MD' means `put the output
6989   # in D'.
6990   mkdir conftest.dir
6991   # Copy depcomp to subdir because otherwise we won't find it if we're
6992   # using a relative directory.
6993   cp "$am_depcomp" conftest.dir
6994   cd conftest.dir
6995   # We will build objects and dependencies in a subdirectory because
6996   # it helps to detect inapplicable dependency modes.  For instance
6997   # both Tru64's cc and ICC support -MD to output dependencies as a
6998   # side effect of compilation, but ICC will put the dependencies in
6999   # the current directory while Tru64 will put them in the object
7000   # directory.
7001   mkdir sub
7002
7003   am_cv_CXX_dependencies_compiler_type=none
7004   if test "$am_compiler_list" = ""; then
7005      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7006   fi
7007   for depmode in $am_compiler_list; do
7008     # Setup a source with many dependencies, because some compilers
7009     # like to wrap large dependency lists on column 80 (with \), and
7010     # we should not choose a depcomp mode which is confused by this.
7011     #
7012     # We need to recreate these files for each test, as the compiler may
7013     # overwrite some of them when testing with obscure command lines.
7014     # This happens at least with the AIX C compiler.
7015     : > sub/conftest.c
7016     for i in 1 2 3 4 5 6; do
7017       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7018       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7019       # Solaris 8's {/usr,}/bin/sh.
7020       touch sub/conftst$i.h
7021     done
7022     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7023
7024     case $depmode in
7025     nosideeffect)
7026       # after this tag, mechanisms are not by side-effect, so they'll
7027       # only be used when explicitly requested
7028       if test "x$enable_dependency_tracking" = xyes; then
7029         continue
7030       else
7031         break
7032       fi
7033       ;;
7034     none) break ;;
7035     esac
7036     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7037     # mode.  It turns out that the SunPro C++ compiler does not properly
7038     # handle `-M -o', and we need to detect this.
7039     if depmode=$depmode \
7040        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7041        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7042        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7043          >/dev/null 2>conftest.err &&
7044        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7045        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7046        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7047       # icc doesn't choke on unknown options, it will just issue warnings
7048       # or remarks (even with -Werror).  So we grep stderr for any message
7049       # that says an option was ignored or not supported.
7050       # When given -MP, icc 7.0 and 7.1 complain thusly:
7051       #   icc: Command line warning: ignoring option '-M'; no argument required
7052       # The diagnosis changed in icc 8.0:
7053       #   icc: Command line remark: option '-MP' not supported
7054       if (grep 'ignoring option' conftest.err ||
7055           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7056         am_cv_CXX_dependencies_compiler_type=$depmode
7057         break
7058       fi
7059     fi
7060   done
7061
7062   cd ..
7063   rm -rf conftest.dir
7064 else
7065   am_cv_CXX_dependencies_compiler_type=none
7066 fi
7067
7068 fi
7069 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7070 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7071 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7072
7073
7074
7075 if
7076   test "x$enable_dependency_tracking" != xno \
7077   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7078   am__fastdepCXX_TRUE=
7079   am__fastdepCXX_FALSE='#'
7080 else
7081   am__fastdepCXX_TRUE='#'
7082   am__fastdepCXX_FALSE=
7083 fi
7084
7085
7086
7087
7088 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7089     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7090     (test "X$CXX" != "Xg++"))) ; then
7091   ac_ext=cc
7092 ac_cpp='$CXXCPP $CPPFLAGS'
7093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7096 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7097 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7098 if test -z "$CXXCPP"; then
7099   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7100   echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102       # Double quotes because CXXCPP needs to be expanded
7103     for CXXCPP in "$CXX -E" "/lib/cpp"
7104     do
7105       ac_preproc_ok=false
7106 for ac_cxx_preproc_warn_flag in '' yes
7107 do
7108   # Use a header file that comes with gcc, so configuring glibc
7109   # with a fresh cross-compiler works.
7110   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7111   # <limits.h> exists even on freestanding compilers.
7112   # On the NeXT, cc -E runs the code through the compiler's parser,
7113   # not just through cpp. "Syntax error" is here to catch this case.
7114   cat >conftest.$ac_ext <<_ACEOF
7115 /* confdefs.h.  */
7116 _ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h.  */
7120 #ifdef __STDC__
7121 # include <limits.h>
7122 #else
7123 # include <assert.h>
7124 #endif
7125                      Syntax error
7126 _ACEOF
7127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7129   ac_status=$?
7130   grep -v '^ *+' conftest.er1 >conftest.err
7131   rm -f conftest.er1
7132   cat conftest.err >&5
7133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134   (exit $ac_status); } >/dev/null; then
7135   if test -s conftest.err; then
7136     ac_cpp_err=$ac_cxx_preproc_warn_flag
7137     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7138   else
7139     ac_cpp_err=
7140   fi
7141 else
7142   ac_cpp_err=yes
7143 fi
7144 if test -z "$ac_cpp_err"; then
7145   :
7146 else
7147   echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7149
7150   # Broken: fails on valid input.
7151 continue
7152 fi
7153 rm -f conftest.err conftest.$ac_ext
7154
7155   # OK, works on sane cases.  Now check whether non-existent headers
7156   # can be detected and how.
7157   cat >conftest.$ac_ext <<_ACEOF
7158 /* confdefs.h.  */
7159 _ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h.  */
7163 #include <ac_nonexistent.h>
7164 _ACEOF
7165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7167   ac_status=$?
7168   grep -v '^ *+' conftest.er1 >conftest.err
7169   rm -f conftest.er1
7170   cat conftest.err >&5
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); } >/dev/null; then
7173   if test -s conftest.err; then
7174     ac_cpp_err=$ac_cxx_preproc_warn_flag
7175     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7176   else
7177     ac_cpp_err=
7178   fi
7179 else
7180   ac_cpp_err=yes
7181 fi
7182 if test -z "$ac_cpp_err"; then
7183   # Broken: success on invalid input.
7184 continue
7185 else
7186   echo "$as_me: failed program was:" >&5
7187 sed 's/^/| /' conftest.$ac_ext >&5
7188
7189   # Passes both tests.
7190 ac_preproc_ok=:
7191 break
7192 fi
7193 rm -f conftest.err conftest.$ac_ext
7194
7195 done
7196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7197 rm -f conftest.err conftest.$ac_ext
7198 if $ac_preproc_ok; then
7199   break
7200 fi
7201
7202     done
7203     ac_cv_prog_CXXCPP=$CXXCPP
7204
7205 fi
7206   CXXCPP=$ac_cv_prog_CXXCPP
7207 else
7208   ac_cv_prog_CXXCPP=$CXXCPP
7209 fi
7210 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7211 echo "${ECHO_T}$CXXCPP" >&6
7212 ac_preproc_ok=false
7213 for ac_cxx_preproc_warn_flag in '' yes
7214 do
7215   # Use a header file that comes with gcc, so configuring glibc
7216   # with a fresh cross-compiler works.
7217   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7218   # <limits.h> exists even on freestanding compilers.
7219   # On the NeXT, cc -E runs the code through the compiler's parser,
7220   # not just through cpp. "Syntax error" is here to catch this case.
7221   cat >conftest.$ac_ext <<_ACEOF
7222 /* confdefs.h.  */
7223 _ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h.  */
7227 #ifdef __STDC__
7228 # include <limits.h>
7229 #else
7230 # include <assert.h>
7231 #endif
7232                      Syntax error
7233 _ACEOF
7234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7235   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7236   ac_status=$?
7237   grep -v '^ *+' conftest.er1 >conftest.err
7238   rm -f conftest.er1
7239   cat conftest.err >&5
7240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241   (exit $ac_status); } >/dev/null; then
7242   if test -s conftest.err; then
7243     ac_cpp_err=$ac_cxx_preproc_warn_flag
7244     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7245   else
7246     ac_cpp_err=
7247   fi
7248 else
7249   ac_cpp_err=yes
7250 fi
7251 if test -z "$ac_cpp_err"; then
7252   :
7253 else
7254   echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7256
7257   # Broken: fails on valid input.
7258 continue
7259 fi
7260 rm -f conftest.err conftest.$ac_ext
7261
7262   # OK, works on sane cases.  Now check whether non-existent headers
7263   # can be detected and how.
7264   cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h.  */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h.  */
7270 #include <ac_nonexistent.h>
7271 _ACEOF
7272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7273   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7274   ac_status=$?
7275   grep -v '^ *+' conftest.er1 >conftest.err
7276   rm -f conftest.er1
7277   cat conftest.err >&5
7278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279   (exit $ac_status); } >/dev/null; then
7280   if test -s conftest.err; then
7281     ac_cpp_err=$ac_cxx_preproc_warn_flag
7282     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7283   else
7284     ac_cpp_err=
7285   fi
7286 else
7287   ac_cpp_err=yes
7288 fi
7289 if test -z "$ac_cpp_err"; then
7290   # Broken: success on invalid input.
7291 continue
7292 else
7293   echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7295
7296   # Passes both tests.
7297 ac_preproc_ok=:
7298 break
7299 fi
7300 rm -f conftest.err conftest.$ac_ext
7301
7302 done
7303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7304 rm -f conftest.err conftest.$ac_ext
7305 if $ac_preproc_ok; then
7306   :
7307 else
7308   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7309 See \`config.log' for more details." >&5
7310 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7311 See \`config.log' for more details." >&2;}
7312    { (exit 1); exit 1; }; }
7313 fi
7314
7315 ac_ext=cc
7316 ac_cpp='$CXXCPP $CPPFLAGS'
7317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7320
7321 fi
7322
7323
7324 ac_ext=f
7325 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7326 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7327 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7328 if test -n "$ac_tool_prefix"; then
7329   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7330   do
7331     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7333 echo "$as_me:$LINENO: checking for $ac_word" >&5
7334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7335 if test "${ac_cv_prog_F77+set}" = set; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   if test -n "$F77"; then
7339   ac_cv_prog_F77="$F77" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344   IFS=$as_save_IFS
7345   test -z "$as_dir" && as_dir=.
7346   for ac_exec_ext in '' $ac_executable_extensions; do
7347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7350     break 2
7351   fi
7352 done
7353 done
7354
7355 fi
7356 fi
7357 F77=$ac_cv_prog_F77
7358 if test -n "$F77"; then
7359   echo "$as_me:$LINENO: result: $F77" >&5
7360 echo "${ECHO_T}$F77" >&6
7361 else
7362   echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6
7364 fi
7365
7366     test -n "$F77" && break
7367   done
7368 fi
7369 if test -z "$F77"; then
7370   ac_ct_F77=$F77
7371   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7372 do
7373   # Extract the first word of "$ac_prog", so it can be a program name with args.
7374 set dummy $ac_prog; ac_word=$2
7375 echo "$as_me:$LINENO: checking for $ac_word" >&5
7376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7377 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7378   echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380   if test -n "$ac_ct_F77"; then
7381   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386   IFS=$as_save_IFS
7387   test -z "$as_dir" && as_dir=.
7388   for ac_exec_ext in '' $ac_executable_extensions; do
7389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390     ac_cv_prog_ac_ct_F77="$ac_prog"
7391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392     break 2
7393   fi
7394 done
7395 done
7396
7397 fi
7398 fi
7399 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7400 if test -n "$ac_ct_F77"; then
7401   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7402 echo "${ECHO_T}$ac_ct_F77" >&6
7403 else
7404   echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6
7406 fi
7407
7408   test -n "$ac_ct_F77" && break
7409 done
7410
7411   F77=$ac_ct_F77
7412 fi
7413
7414
7415 # Provide some information about the compiler.
7416 echo "$as_me:7416:" \
7417      "checking for Fortran 77 compiler version" >&5
7418 ac_compiler=`set X $ac_compile; echo $2`
7419 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7420   (eval $ac_compiler --version </dev/null >&5) 2>&5
7421   ac_status=$?
7422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423   (exit $ac_status); }
7424 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7425   (eval $ac_compiler -v </dev/null >&5) 2>&5
7426   ac_status=$?
7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); }
7429 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7430   (eval $ac_compiler -V </dev/null >&5) 2>&5
7431   ac_status=$?
7432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433   (exit $ac_status); }
7434 rm -f a.out
7435
7436 # If we don't use `.F' as extension, the preprocessor is not run on the
7437 # input file.  (Note that this only needs to work for GNU compilers.)
7438 ac_save_ext=$ac_ext
7439 ac_ext=F
7440 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7441 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7442 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7443   echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445   cat >conftest.$ac_ext <<_ACEOF
7446       program main
7447 #ifndef __GNUC__
7448        choke me
7449 #endif
7450
7451       end
7452 _ACEOF
7453 rm -f conftest.$ac_objext
7454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7455   (eval $ac_compile) 2>conftest.er1
7456   ac_status=$?
7457   grep -v '^ *+' conftest.er1 >conftest.err
7458   rm -f conftest.er1
7459   cat conftest.err >&5
7460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461   (exit $ac_status); } &&
7462          { ac_try='test -z "$ac_f77_werror_flag"
7463                          || test ! -s conftest.err'
7464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465   (eval $ac_try) 2>&5
7466   ac_status=$?
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); }; } &&
7469          { ac_try='test -s conftest.$ac_objext'
7470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471   (eval $ac_try) 2>&5
7472   ac_status=$?
7473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474   (exit $ac_status); }; }; then
7475   ac_compiler_gnu=yes
7476 else
7477   echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7479
7480 ac_compiler_gnu=no
7481 fi
7482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7483 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7484
7485 fi
7486 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7487 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7488 ac_ext=$ac_save_ext
7489 ac_test_FFLAGS=${FFLAGS+set}
7490 ac_save_FFLAGS=$FFLAGS
7491 FFLAGS=
7492 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7493 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7494 if test "${ac_cv_prog_f77_g+set}" = set; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497   FFLAGS=-g
7498 cat >conftest.$ac_ext <<_ACEOF
7499       program main
7500
7501       end
7502 _ACEOF
7503 rm -f conftest.$ac_objext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505   (eval $ac_compile) 2>conftest.er1
7506   ac_status=$?
7507   grep -v '^ *+' conftest.er1 >conftest.err
7508   rm -f conftest.er1
7509   cat conftest.err >&5
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); } &&
7512          { ac_try='test -z "$ac_f77_werror_flag"
7513                          || test ! -s conftest.err'
7514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515   (eval $ac_try) 2>&5
7516   ac_status=$?
7517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); }; } &&
7519          { ac_try='test -s conftest.$ac_objext'
7520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521   (eval $ac_try) 2>&5
7522   ac_status=$?
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); }; }; then
7525   ac_cv_prog_f77_g=yes
7526 else
7527   echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7529
7530 ac_cv_prog_f77_g=no
7531 fi
7532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7533
7534 fi
7535 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7536 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7537 if test "$ac_test_FFLAGS" = set; then
7538   FFLAGS=$ac_save_FFLAGS
7539 elif test $ac_cv_prog_f77_g = yes; then
7540   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7541     FFLAGS="-g -O2"
7542   else
7543     FFLAGS="-g"
7544   fi
7545 else
7546   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7547     FFLAGS="-O2"
7548   else
7549     FFLAGS=
7550   fi
7551 fi
7552
7553 G77=`test $ac_compiler_gnu = yes && echo yes`
7554 ac_ext=c
7555 ac_cpp='$CPP $CPPFLAGS'
7556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7559
7560
7561
7562 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7563
7564 # find the maximum length of command line arguments
7565 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7566 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7567 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7568   echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570     i=0
7571   teststring="ABCD"
7572
7573   case $build_os in
7574   msdosdjgpp*)
7575     # On DJGPP, this test can blow up pretty badly due to problems in libc
7576     # (any single argument exceeding 2000 bytes causes a buffer overrun
7577     # during glob expansion).  Even if it were fixed, the result of this
7578     # check would be larger than it should be.
7579     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7580     ;;
7581
7582   gnu*)
7583     # Under GNU Hurd, this test is not required because there is
7584     # no limit to the length of command line arguments.
7585     # Libtool will interpret -1 as no limit whatsoever
7586     lt_cv_sys_max_cmd_len=-1;
7587     ;;
7588
7589   cygwin* | mingw*)
7590     # On Win9x/ME, this test blows up -- it succeeds, but takes
7591     # about 5 minutes as the teststring grows exponentially.
7592     # Worse, since 9x/ME are not pre-emptively multitasking,
7593     # you end up with a "frozen" computer, even though with patience
7594     # the test eventually succeeds (with a max line length of 256k).
7595     # Instead, let's just punt: use the minimum linelength reported by
7596     # all of the supported platforms: 8192 (on NT/2K/XP).
7597     lt_cv_sys_max_cmd_len=8192;
7598     ;;
7599
7600   amigaos*)
7601     # On AmigaOS with pdksh, this test takes hours, literally.
7602     # So we just punt and use a minimum line length of 8192.
7603     lt_cv_sys_max_cmd_len=8192;
7604     ;;
7605
7606   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7607     # This has been around since 386BSD, at least.  Likely further.
7608     if test -x /sbin/sysctl; then
7609       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7610     elif test -x /usr/sbin/sysctl; then
7611       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7612     else
7613       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7614     fi
7615     # And add a safety zone
7616     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7617     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7618     ;;
7619   osf*)
7620     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7621     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7622     # nice to cause kernel panics so lets avoid the loop below.
7623     # First set a reasonable default.
7624     lt_cv_sys_max_cmd_len=16384
7625     #
7626     if test -x /sbin/sysconfig; then
7627       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7628         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7629       esac
7630     fi
7631     ;;
7632   *)
7633     # If test is not a shell built-in, we'll probably end up computing a
7634     # maximum length that is only half of the actual maximum length, but
7635     # we can't tell.
7636     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7637     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7638                = "XX$teststring") >/dev/null 2>&1 &&
7639             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7640             lt_cv_sys_max_cmd_len=$new_result &&
7641             test $i != 17 # 1/2 MB should be enough
7642     do
7643       i=`expr $i + 1`
7644       teststring=$teststring$teststring
7645     done
7646     teststring=
7647     # Add a significant safety factor because C++ compilers can tack on massive
7648     # amounts of additional arguments before passing them to the linker.
7649     # It appears as though 1/2 is a usable value.
7650     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7651     ;;
7652   esac
7653
7654 fi
7655
7656 if test -n $lt_cv_sys_max_cmd_len ; then
7657   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7658 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7659 else
7660   echo "$as_me:$LINENO: result: none" >&5
7661 echo "${ECHO_T}none" >&6
7662 fi
7663
7664
7665
7666
7667 # Check for command to grab the raw symbol name followed by C symbol from nm.
7668 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7669 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7670 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7671   echo $ECHO_N "(cached) $ECHO_C" >&6
7672 else
7673
7674 # These are sane defaults that work on at least a few old systems.
7675 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7676
7677 # Character class describing NM global symbol codes.
7678 symcode='[BCDEGRST]'
7679
7680 # Regexp to match symbols that can be accessed directly from C.
7681 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7682
7683 # Transform an extracted symbol line into a proper C declaration
7684 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7685
7686 # Transform an extracted symbol line into symbol name and symbol address
7687 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'"
7688
7689 # Define system-specific variables.
7690 case $host_os in
7691 aix*)
7692   symcode='[BCDT]'
7693   ;;
7694 cygwin* | mingw* | pw32*)
7695   symcode='[ABCDGISTW]'
7696   ;;
7697 hpux*) # Its linker distinguishes data from code symbols
7698   if test "$host_cpu" = ia64; then
7699     symcode='[ABCDEGRST]'
7700   fi
7701   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7702   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'"
7703   ;;
7704 linux*)
7705   if test "$host_cpu" = ia64; then
7706     symcode='[ABCDGIRSTW]'
7707     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7708     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'"
7709   fi
7710   ;;
7711 irix* | nonstopux*)
7712   symcode='[BCDEGRST]'
7713   ;;
7714 osf*)
7715   symcode='[BCDEGQRST]'
7716   ;;
7717 solaris* | sysv5*)
7718   symcode='[BDRT]'
7719   ;;
7720 sysv4)
7721   symcode='[DFNSTU]'
7722   ;;
7723 esac
7724
7725 # Handle CRLF in mingw tool chain
7726 opt_cr=
7727 case $build_os in
7728 mingw*)
7729   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7730   ;;
7731 esac
7732
7733 # If we're using GNU nm, then use its standard symbol codes.
7734 case `$NM -V 2>&1` in
7735 *GNU* | *'with BFD'*)
7736   symcode='[ABCDGIRSTW]' ;;
7737 esac
7738
7739 # Try without a prefix undercore, then with it.
7740 for ac_symprfx in "" "_"; do
7741
7742   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7743   symxfrm="\\1 $ac_symprfx\\2 \\2"
7744
7745   # Write the raw and C identifiers.
7746   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7747
7748   # Check to see that the pipe works correctly.
7749   pipe_works=no
7750
7751   rm -f conftest*
7752   cat > conftest.$ac_ext <<EOF
7753 #ifdef __cplusplus
7754 extern "C" {
7755 #endif
7756 char nm_test_var;
7757 void nm_test_func(){}
7758 #ifdef __cplusplus
7759 }
7760 #endif
7761 int main(){nm_test_var='a';nm_test_func();return(0);}
7762 EOF
7763
7764   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7765   (eval $ac_compile) 2>&5
7766   ac_status=$?
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); }; then
7769     # Now try to grab the symbols.
7770     nlist=conftest.nm
7771     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7772   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7773   ac_status=$?
7774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775   (exit $ac_status); } && test -s "$nlist"; then
7776       # Try sorting and uniquifying the output.
7777       if sort "$nlist" | uniq > "$nlist"T; then
7778         mv -f "$nlist"T "$nlist"
7779       else
7780         rm -f "$nlist"T
7781       fi
7782
7783       # Make sure that we snagged all the symbols we need.
7784       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7785         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7786           cat <<EOF > conftest.$ac_ext
7787 #ifdef __cplusplus
7788 extern "C" {
7789 #endif
7790
7791 EOF
7792           # Now generate the symbol file.
7793           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7794
7795           cat <<EOF >> conftest.$ac_ext
7796 #if defined (__STDC__) && __STDC__
7797 # define lt_ptr_t void *
7798 #else
7799 # define lt_ptr_t char *
7800 # define const
7801 #endif
7802
7803 /* The mapping between symbol names and symbols. */
7804 const struct {
7805   const char *name;
7806   lt_ptr_t address;
7807 }
7808 lt_preloaded_symbols[] =
7809 {
7810 EOF
7811           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7812           cat <<\EOF >> conftest.$ac_ext
7813   {0, (lt_ptr_t) 0}
7814 };
7815
7816 #ifdef __cplusplus
7817 }
7818 #endif
7819 EOF
7820           # Now try linking the two files.
7821           mv conftest.$ac_objext conftstm.$ac_objext
7822           lt_save_LIBS="$LIBS"
7823           lt_save_CFLAGS="$CFLAGS"
7824           LIBS="conftstm.$ac_objext"
7825           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7826           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827   (eval $ac_link) 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7831             pipe_works=yes
7832           fi
7833           LIBS="$lt_save_LIBS"
7834           CFLAGS="$lt_save_CFLAGS"
7835         else
7836           echo "cannot find nm_test_func in $nlist" >&5
7837         fi
7838       else
7839         echo "cannot find nm_test_var in $nlist" >&5
7840       fi
7841     else
7842       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7843     fi
7844   else
7845     echo "$progname: failed program was:" >&5
7846     cat conftest.$ac_ext >&5
7847   fi
7848   rm -f conftest* conftst*
7849
7850   # Do not use the global_symbol_pipe unless it works.
7851   if test "$pipe_works" = yes; then
7852     break
7853   else
7854     lt_cv_sys_global_symbol_pipe=
7855   fi
7856 done
7857
7858 fi
7859
7860 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7861   lt_cv_sys_global_symbol_to_cdecl=
7862 fi
7863 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7864   echo "$as_me:$LINENO: result: failed" >&5
7865 echo "${ECHO_T}failed" >&6
7866 else
7867   echo "$as_me:$LINENO: result: ok" >&5
7868 echo "${ECHO_T}ok" >&6
7869 fi
7870
7871 echo "$as_me:$LINENO: checking for objdir" >&5
7872 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7873 if test "${lt_cv_objdir+set}" = set; then
7874   echo $ECHO_N "(cached) $ECHO_C" >&6
7875 else
7876   rm -f .libs 2>/dev/null
7877 mkdir .libs 2>/dev/null
7878 if test -d .libs; then
7879   lt_cv_objdir=.libs
7880 else
7881   # MS-DOS does not allow filenames that begin with a dot.
7882   lt_cv_objdir=_libs
7883 fi
7884 rmdir .libs 2>/dev/null
7885 fi
7886 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7887 echo "${ECHO_T}$lt_cv_objdir" >&6
7888 objdir=$lt_cv_objdir
7889
7890
7891
7892
7893
7894 case $host_os in
7895 aix3*)
7896   # AIX sometimes has problems with the GCC collect2 program.  For some
7897   # reason, if we set the COLLECT_NAMES environment variable, the problems
7898   # vanish in a puff of smoke.
7899   if test "X${COLLECT_NAMES+set}" != Xset; then
7900     COLLECT_NAMES=
7901     export COLLECT_NAMES
7902   fi
7903   ;;
7904 esac
7905
7906 # Sed substitution that helps us do robust quoting.  It backslashifies
7907 # metacharacters that are still active within double-quoted strings.
7908 Xsed='sed -e 1s/^X//'
7909 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7910
7911 # Same as above, but do not quote variable references.
7912 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7913
7914 # Sed substitution to delay expansion of an escaped shell variable in a
7915 # double_quote_subst'ed string.
7916 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7917
7918 # Sed substitution to avoid accidental globbing in evaled expressions
7919 no_glob_subst='s/\*/\\\*/g'
7920
7921 # Constants:
7922 rm="rm -f"
7923
7924 # Global variables:
7925 default_ofile=libtool
7926 can_build_shared=yes
7927
7928 # All known linkers require a `.a' archive for static linking (except M$VC,
7929 # which needs '.lib').
7930 libext=a
7931 ltmain="$ac_aux_dir/ltmain.sh"
7932 ofile="$default_ofile"
7933 with_gnu_ld="$lt_cv_prog_gnu_ld"
7934
7935 if test -n "$ac_tool_prefix"; then
7936   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7937 set dummy ${ac_tool_prefix}ar; ac_word=$2
7938 echo "$as_me:$LINENO: checking for $ac_word" >&5
7939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7940 if test "${ac_cv_prog_AR+set}" = set; then
7941   echo $ECHO_N "(cached) $ECHO_C" >&6
7942 else
7943   if test -n "$AR"; then
7944   ac_cv_prog_AR="$AR" # Let the user override the test.
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7948 do
7949   IFS=$as_save_IFS
7950   test -z "$as_dir" && as_dir=.
7951   for ac_exec_ext in '' $ac_executable_extensions; do
7952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7953     ac_cv_prog_AR="${ac_tool_prefix}ar"
7954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7955     break 2
7956   fi
7957 done
7958 done
7959
7960 fi
7961 fi
7962 AR=$ac_cv_prog_AR
7963 if test -n "$AR"; then
7964   echo "$as_me:$LINENO: result: $AR" >&5
7965 echo "${ECHO_T}$AR" >&6
7966 else
7967   echo "$as_me:$LINENO: result: no" >&5
7968 echo "${ECHO_T}no" >&6
7969 fi
7970
7971 fi
7972 if test -z "$ac_cv_prog_AR"; then
7973   ac_ct_AR=$AR
7974   # Extract the first word of "ar", so it can be a program name with args.
7975 set dummy ar; ac_word=$2
7976 echo "$as_me:$LINENO: checking for $ac_word" >&5
7977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7978 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7979   echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981   if test -n "$ac_ct_AR"; then
7982   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7983 else
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987   IFS=$as_save_IFS
7988   test -z "$as_dir" && as_dir=.
7989   for ac_exec_ext in '' $ac_executable_extensions; do
7990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7991     ac_cv_prog_ac_ct_AR="ar"
7992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7993     break 2
7994   fi
7995 done
7996 done
7997
7998   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7999 fi
8000 fi
8001 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8002 if test -n "$ac_ct_AR"; then
8003   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8004 echo "${ECHO_T}$ac_ct_AR" >&6
8005 else
8006   echo "$as_me:$LINENO: result: no" >&5
8007 echo "${ECHO_T}no" >&6
8008 fi
8009
8010   AR=$ac_ct_AR
8011 else
8012   AR="$ac_cv_prog_AR"
8013 fi
8014
8015 if test -n "$ac_tool_prefix"; then
8016   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8017 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8018 echo "$as_me:$LINENO: checking for $ac_word" >&5
8019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8020 if test "${ac_cv_prog_RANLIB+set}" = set; then
8021   echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023   if test -n "$RANLIB"; then
8024   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029   IFS=$as_save_IFS
8030   test -z "$as_dir" && as_dir=.
8031   for ac_exec_ext in '' $ac_executable_extensions; do
8032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8033     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8035     break 2
8036   fi
8037 done
8038 done
8039
8040 fi
8041 fi
8042 RANLIB=$ac_cv_prog_RANLIB
8043 if test -n "$RANLIB"; then
8044   echo "$as_me:$LINENO: result: $RANLIB" >&5
8045 echo "${ECHO_T}$RANLIB" >&6
8046 else
8047   echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6
8049 fi
8050
8051 fi
8052 if test -z "$ac_cv_prog_RANLIB"; then
8053   ac_ct_RANLIB=$RANLIB
8054   # Extract the first word of "ranlib", so it can be a program name with args.
8055 set dummy ranlib; ac_word=$2
8056 echo "$as_me:$LINENO: checking for $ac_word" >&5
8057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8058 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8059   echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061   if test -n "$ac_ct_RANLIB"; then
8062   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8063 else
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8066 do
8067   IFS=$as_save_IFS
8068   test -z "$as_dir" && as_dir=.
8069   for ac_exec_ext in '' $ac_executable_extensions; do
8070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071     ac_cv_prog_ac_ct_RANLIB="ranlib"
8072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8073     break 2
8074   fi
8075 done
8076 done
8077
8078   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8079 fi
8080 fi
8081 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8082 if test -n "$ac_ct_RANLIB"; then
8083   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8084 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8085 else
8086   echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6
8088 fi
8089
8090   RANLIB=$ac_ct_RANLIB
8091 else
8092   RANLIB="$ac_cv_prog_RANLIB"
8093 fi
8094
8095 if test -n "$ac_tool_prefix"; then
8096   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8097 set dummy ${ac_tool_prefix}strip; ac_word=$2
8098 echo "$as_me:$LINENO: checking for $ac_word" >&5
8099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8100 if test "${ac_cv_prog_STRIP+set}" = set; then
8101   echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103   if test -n "$STRIP"; then
8104   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8105 else
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 for as_dir in $PATH
8108 do
8109   IFS=$as_save_IFS
8110   test -z "$as_dir" && as_dir=.
8111   for ac_exec_ext in '' $ac_executable_extensions; do
8112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8113     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8115     break 2
8116   fi
8117 done
8118 done
8119
8120 fi
8121 fi
8122 STRIP=$ac_cv_prog_STRIP
8123 if test -n "$STRIP"; then
8124   echo "$as_me:$LINENO: result: $STRIP" >&5
8125 echo "${ECHO_T}$STRIP" >&6
8126 else
8127   echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6
8129 fi
8130
8131 fi
8132 if test -z "$ac_cv_prog_STRIP"; then
8133   ac_ct_STRIP=$STRIP
8134   # Extract the first word of "strip", so it can be a program name with args.
8135 set dummy strip; ac_word=$2
8136 echo "$as_me:$LINENO: checking for $ac_word" >&5
8137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8138 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8139   echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141   if test -n "$ac_ct_STRIP"; then
8142   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8143 else
8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 for as_dir in $PATH
8146 do
8147   IFS=$as_save_IFS
8148   test -z "$as_dir" && as_dir=.
8149   for ac_exec_ext in '' $ac_executable_extensions; do
8150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8151     ac_cv_prog_ac_ct_STRIP="strip"
8152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8153     break 2
8154   fi
8155 done
8156 done
8157
8158   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8159 fi
8160 fi
8161 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8162 if test -n "$ac_ct_STRIP"; then
8163   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8164 echo "${ECHO_T}$ac_ct_STRIP" >&6
8165 else
8166   echo "$as_me:$LINENO: result: no" >&5
8167 echo "${ECHO_T}no" >&6
8168 fi
8169
8170   STRIP=$ac_ct_STRIP
8171 else
8172   STRIP="$ac_cv_prog_STRIP"
8173 fi
8174
8175
8176 old_CC="$CC"
8177 old_CFLAGS="$CFLAGS"
8178
8179 # Set sane defaults for various variables
8180 test -z "$AR" && AR=ar
8181 test -z "$AR_FLAGS" && AR_FLAGS=cru
8182 test -z "$AS" && AS=as
8183 test -z "$CC" && CC=cc
8184 test -z "$LTCC" && LTCC=$CC
8185 test -z "$DLLTOOL" && DLLTOOL=dlltool
8186 test -z "$LD" && LD=ld
8187 test -z "$LN_S" && LN_S="ln -s"
8188 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8189 test -z "$NM" && NM=nm
8190 test -z "$SED" && SED=sed
8191 test -z "$OBJDUMP" && OBJDUMP=objdump
8192 test -z "$RANLIB" && RANLIB=:
8193 test -z "$STRIP" && STRIP=:
8194 test -z "$ac_objext" && ac_objext=o
8195
8196 # Determine commands to create old-style static archives.
8197 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8198 old_postinstall_cmds='chmod 644 $oldlib'
8199 old_postuninstall_cmds=
8200
8201 if test -n "$RANLIB"; then
8202   case $host_os in
8203   openbsd*)
8204     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8205     ;;
8206   *)
8207     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8208     ;;
8209   esac
8210   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8211 fi
8212
8213 for cc_temp in $compiler""; do
8214   case $cc_temp in
8215     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8216     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8217     \-*) ;;
8218     *) break;;
8219   esac
8220 done
8221 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8222
8223
8224 # Only perform the check for file, if the check method requires it
8225 case $deplibs_check_method in
8226 file_magic*)
8227   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8228     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8229 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8230 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8231   echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233   case $MAGIC_CMD in
8234 [\\/*] |  ?:[\\/]*)
8235   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8236   ;;
8237 *)
8238   lt_save_MAGIC_CMD="$MAGIC_CMD"
8239   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8240   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8241   for ac_dir in $ac_dummy; do
8242     IFS="$lt_save_ifs"
8243     test -z "$ac_dir" && ac_dir=.
8244     if test -f $ac_dir/${ac_tool_prefix}file; then
8245       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8246       if test -n "$file_magic_test_file"; then
8247         case $deplibs_check_method in
8248         "file_magic "*)
8249           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8250           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8251           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8252             $EGREP "$file_magic_regex" > /dev/null; then
8253             :
8254           else
8255             cat <<EOF 1>&2
8256
8257 *** Warning: the command libtool uses to detect shared libraries,
8258 *** $file_magic_cmd, produces output that libtool cannot recognize.
8259 *** The result is that libtool may fail to recognize shared libraries
8260 *** as such.  This will affect the creation of libtool libraries that
8261 *** depend on shared libraries, but programs linked with such libtool
8262 *** libraries will work regardless of this problem.  Nevertheless, you
8263 *** may want to report the problem to your system manager and/or to
8264 *** bug-libtool@gnu.org
8265
8266 EOF
8267           fi ;;
8268         esac
8269       fi
8270       break
8271     fi
8272   done
8273   IFS="$lt_save_ifs"
8274   MAGIC_CMD="$lt_save_MAGIC_CMD"
8275   ;;
8276 esac
8277 fi
8278
8279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8280 if test -n "$MAGIC_CMD"; then
8281   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8282 echo "${ECHO_T}$MAGIC_CMD" >&6
8283 else
8284   echo "$as_me:$LINENO: result: no" >&5
8285 echo "${ECHO_T}no" >&6
8286 fi
8287
8288 if test -z "$lt_cv_path_MAGIC_CMD"; then
8289   if test -n "$ac_tool_prefix"; then
8290     echo "$as_me:$LINENO: checking for file" >&5
8291 echo $ECHO_N "checking for file... $ECHO_C" >&6
8292 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8293   echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295   case $MAGIC_CMD in
8296 [\\/*] |  ?:[\\/]*)
8297   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8298   ;;
8299 *)
8300   lt_save_MAGIC_CMD="$MAGIC_CMD"
8301   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8302   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8303   for ac_dir in $ac_dummy; do
8304     IFS="$lt_save_ifs"
8305     test -z "$ac_dir" && ac_dir=.
8306     if test -f $ac_dir/file; then
8307       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8308       if test -n "$file_magic_test_file"; then
8309         case $deplibs_check_method in
8310         "file_magic "*)
8311           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8312           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8313           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8314             $EGREP "$file_magic_regex" > /dev/null; then
8315             :
8316           else
8317             cat <<EOF 1>&2
8318
8319 *** Warning: the command libtool uses to detect shared libraries,
8320 *** $file_magic_cmd, produces output that libtool cannot recognize.
8321 *** The result is that libtool may fail to recognize shared libraries
8322 *** as such.  This will affect the creation of libtool libraries that
8323 *** depend on shared libraries, but programs linked with such libtool
8324 *** libraries will work regardless of this problem.  Nevertheless, you
8325 *** may want to report the problem to your system manager and/or to
8326 *** bug-libtool@gnu.org
8327
8328 EOF
8329           fi ;;
8330         esac
8331       fi
8332       break
8333     fi
8334   done
8335   IFS="$lt_save_ifs"
8336   MAGIC_CMD="$lt_save_MAGIC_CMD"
8337   ;;
8338 esac
8339 fi
8340
8341 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8342 if test -n "$MAGIC_CMD"; then
8343   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8344 echo "${ECHO_T}$MAGIC_CMD" >&6
8345 else
8346   echo "$as_me:$LINENO: result: no" >&5
8347 echo "${ECHO_T}no" >&6
8348 fi
8349
8350   else
8351     MAGIC_CMD=:
8352   fi
8353 fi
8354
8355   fi
8356   ;;
8357 esac
8358
8359 enable_dlopen=yes
8360 enable_win32_dll=yes
8361
8362 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8363 if test "${enable_libtool_lock+set}" = set; then
8364   enableval="$enable_libtool_lock"
8365
8366 fi;
8367 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8368
8369
8370 # Check whether --with-pic or --without-pic was given.
8371 if test "${with_pic+set}" = set; then
8372   withval="$with_pic"
8373   pic_mode="$withval"
8374 else
8375   pic_mode=default
8376 fi;
8377 test -z "$pic_mode" && pic_mode=default
8378
8379 # Use C for the default configuration in the libtool script
8380 tagname=
8381 lt_save_CC="$CC"
8382 ac_ext=c
8383 ac_cpp='$CPP $CPPFLAGS'
8384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8387
8388
8389 # Source file extension for C test sources.
8390 ac_ext=c
8391
8392 # Object file extension for compiled C test sources.
8393 objext=o
8394 objext=$objext
8395
8396 # Code to be used in simple compile tests
8397 lt_simple_compile_test_code="int some_variable = 0;\n"
8398
8399 # Code to be used in simple link tests
8400 lt_simple_link_test_code='int main(){return(0);}\n'
8401
8402
8403 # If no C compiler was specified, use CC.
8404 LTCC=${LTCC-"$CC"}
8405
8406 # Allow CC to be a program name with arguments.
8407 compiler=$CC
8408
8409
8410 # save warnings/boilerplate of simple test code
8411 ac_outfile=conftest.$ac_objext
8412 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8413 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8414 _lt_compiler_boilerplate=`cat conftest.err`
8415 $rm conftest*
8416
8417 ac_outfile=conftest.$ac_objext
8418 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8419 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8420 _lt_linker_boilerplate=`cat conftest.err`
8421 $rm conftest*
8422
8423
8424 #
8425 # Check for any special shared library compilation flags.
8426 #
8427 lt_prog_cc_shlib=
8428 if test "$GCC" = no; then
8429   case $host_os in
8430   sco3.2v5*)
8431     lt_prog_cc_shlib='-belf'
8432     ;;
8433   esac
8434 fi
8435 if test -n "$lt_prog_cc_shlib"; then
8436   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8437 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8438   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8439   else
8440     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8441 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8442     lt_cv_prog_cc_can_build_shared=no
8443   fi
8444 fi
8445
8446
8447 #
8448 # Check to make sure the static flag actually works.
8449 #
8450 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8451 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8452 if test "${lt_prog_compiler_static_works+set}" = set; then
8453   echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455   lt_prog_compiler_static_works=no
8456    save_LDFLAGS="$LDFLAGS"
8457    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8458    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8459    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8460      # The compiler can only warn and ignore the option if not recognized
8461      # So say no if there are warnings
8462      if test -s conftest.err; then
8463        # Append any errors to the config.log.
8464        cat conftest.err 1>&5
8465        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8466        $SED '/^$/d' conftest.err >conftest.er2
8467        if diff conftest.exp conftest.er2 >/dev/null; then
8468          lt_prog_compiler_static_works=yes
8469        fi
8470      else
8471        lt_prog_compiler_static_works=yes
8472      fi
8473    fi
8474    $rm conftest*
8475    LDFLAGS="$save_LDFLAGS"
8476
8477 fi
8478 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8479 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8480
8481 if test x"$lt_prog_compiler_static_works" = xyes; then
8482     :
8483 else
8484     lt_prog_compiler_static=
8485 fi
8486
8487
8488
8489
8490 lt_prog_compiler_no_builtin_flag=
8491
8492 if test "$GCC" = yes; then
8493   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8494
8495
8496 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8497 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8498 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8499   echo $ECHO_N "(cached) $ECHO_C" >&6
8500 else
8501   lt_cv_prog_compiler_rtti_exceptions=no
8502   ac_outfile=conftest.$ac_objext
8503    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8504    lt_compiler_flag="-fno-rtti -fno-exceptions"
8505    # Insert the option either (1) after the last *FLAGS variable, or
8506    # (2) before a word containing "conftest.", or (3) at the end.
8507    # Note that $ac_compile itself does not contain backslashes and begins
8508    # with a dollar sign (not a hyphen), so the echo should work correctly.
8509    # The option is referenced via a variable to avoid confusing sed.
8510    lt_compile=`echo "$ac_compile" | $SED \
8511    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8512    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8513    -e 's:$: $lt_compiler_flag:'`
8514    (eval echo "\"\$as_me:8514: $lt_compile\"" >&5)
8515    (eval "$lt_compile" 2>conftest.err)
8516    ac_status=$?
8517    cat conftest.err >&5
8518    echo "$as_me:8518: \$? = $ac_status" >&5
8519    if (exit $ac_status) && test -s "$ac_outfile"; then
8520      # The compiler can only warn and ignore the option if not recognized
8521      # So say no if there are warnings other than the usual output.
8522      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8523      $SED '/^$/d' conftest.err >conftest.er2
8524      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8525        lt_cv_prog_compiler_rtti_exceptions=yes
8526      fi
8527    fi
8528    $rm conftest*
8529
8530 fi
8531 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8532 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8533
8534 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8535     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8536 else
8537     :
8538 fi
8539
8540 fi
8541
8542 lt_prog_compiler_wl=
8543 lt_prog_compiler_pic=
8544 lt_prog_compiler_static=
8545
8546 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8547 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8548
8549   if test "$GCC" = yes; then
8550     lt_prog_compiler_wl='-Wl,'
8551     lt_prog_compiler_static='-static'
8552
8553     case $host_os in
8554       aix*)
8555       # All AIX code is PIC.
8556       if test "$host_cpu" = ia64; then
8557         # AIX 5 now supports IA64 processor
8558         lt_prog_compiler_static='-Bstatic'
8559       fi
8560       ;;
8561
8562     amigaos*)
8563       # FIXME: we need at least 68020 code to build shared libraries, but
8564       # adding the `-m68020' flag to GCC prevents building anything better,
8565       # like `-m68040'.
8566       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8567       ;;
8568
8569     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8570       # PIC is the default for these OSes.
8571       ;;
8572
8573     mingw* | pw32* | os2*)
8574       # This hack is so that the source file can tell whether it is being
8575       # built for inclusion in a dll (and should export symbols for example).
8576       lt_prog_compiler_pic='-DDLL_EXPORT'
8577       ;;
8578
8579     darwin* | rhapsody*)
8580       # PIC is the default on this platform
8581       # Common symbols not allowed in MH_DYLIB files
8582       lt_prog_compiler_pic='-fno-common'
8583       ;;
8584
8585     msdosdjgpp*)
8586       # Just because we use GCC doesn't mean we suddenly get shared libraries
8587       # on systems that don't support them.
8588       lt_prog_compiler_can_build_shared=no
8589       enable_shared=no
8590       ;;
8591
8592     sysv4*MP*)
8593       if test -d /usr/nec; then
8594         lt_prog_compiler_pic=-Kconform_pic
8595       fi
8596       ;;
8597
8598     hpux*)
8599       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8600       # not for PA HP-UX.
8601       case "$host_cpu" in
8602       hppa*64*|ia64*)
8603         # +Z the default
8604         ;;
8605       *)
8606         lt_prog_compiler_pic='-fPIC'
8607         ;;
8608       esac
8609       ;;
8610
8611     *)
8612       lt_prog_compiler_pic='-fPIC'
8613       ;;
8614     esac
8615   else
8616     # PORTME Check for flag to pass linker flags through the system compiler.
8617     case $host_os in
8618     aix*)
8619       lt_prog_compiler_wl='-Wl,'
8620       if test "$host_cpu" = ia64; then
8621         # AIX 5 now supports IA64 processor
8622         lt_prog_compiler_static='-Bstatic'
8623       else
8624         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8625       fi
8626       ;;
8627       darwin*)
8628         # PIC is the default on this platform
8629         # Common symbols not allowed in MH_DYLIB files
8630        case $cc_basename in
8631          xlc*)
8632          lt_prog_compiler_pic='-qnocommon'
8633          lt_prog_compiler_wl='-Wl,'
8634          ;;
8635        esac
8636        ;;
8637
8638     mingw* | pw32* | os2*)
8639       # This hack is so that the source file can tell whether it is being
8640       # built for inclusion in a dll (and should export symbols for example).
8641       lt_prog_compiler_pic='-DDLL_EXPORT'
8642       ;;
8643
8644     hpux9* | hpux10* | hpux11*)
8645       lt_prog_compiler_wl='-Wl,'
8646       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8647       # not for PA HP-UX.
8648       case "$host_cpu" in
8649       hppa*64*|ia64*)
8650         # +Z the default
8651         ;;
8652       *)
8653         lt_prog_compiler_pic='+Z'
8654         ;;
8655       esac
8656       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8657       lt_prog_compiler_static='${wl}-a ${wl}archive'
8658       ;;
8659
8660     irix5* | irix6* | nonstopux*)
8661       lt_prog_compiler_wl='-Wl,'
8662       # PIC (with -KPIC) is the default.
8663       lt_prog_compiler_static='-non_shared'
8664       ;;
8665
8666     newsos6)
8667       lt_prog_compiler_pic='-KPIC'
8668       lt_prog_compiler_static='-Bstatic'
8669       ;;
8670
8671     linux*)
8672       case $cc_basename in
8673       icc* | ecc*)
8674         lt_prog_compiler_wl='-Wl,'
8675         lt_prog_compiler_pic='-KPIC'
8676         lt_prog_compiler_static='-static'
8677         ;;
8678       pgcc* | pgf77* | pgf90*)
8679         # Portland Group compilers (*not* the Pentium gcc compiler,
8680         # which looks to be a dead project)
8681         lt_prog_compiler_wl='-Wl,'
8682         lt_prog_compiler_pic='-fpic'
8683         lt_prog_compiler_static='-static'
8684         ;;
8685       ccc*)
8686         lt_prog_compiler_wl='-Wl,'
8687         # All Alpha code is PIC.
8688         lt_prog_compiler_static='-non_shared'
8689         ;;
8690       esac
8691       ;;
8692
8693     osf3* | osf4* | osf5*)
8694       lt_prog_compiler_wl='-Wl,'
8695       # All OSF/1 code is PIC.
8696       lt_prog_compiler_static='-non_shared'
8697       ;;
8698
8699     sco3.2v5*)
8700       lt_prog_compiler_pic='-Kpic'
8701       lt_prog_compiler_static='-dn'
8702       ;;
8703
8704     solaris*)
8705       lt_prog_compiler_pic='-KPIC'
8706       lt_prog_compiler_static='-Bstatic'
8707       case $cc_basename in
8708       f77* | f90* | f95*)
8709         lt_prog_compiler_wl='-Qoption ld ';;
8710       *)
8711         lt_prog_compiler_wl='-Wl,';;
8712       esac
8713       ;;
8714
8715     sunos4*)
8716       lt_prog_compiler_wl='-Qoption ld '
8717       lt_prog_compiler_pic='-PIC'
8718       lt_prog_compiler_static='-Bstatic'
8719       ;;
8720
8721     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8722       lt_prog_compiler_wl='-Wl,'
8723       lt_prog_compiler_pic='-KPIC'
8724       lt_prog_compiler_static='-Bstatic'
8725       ;;
8726
8727     sysv4*MP*)
8728       if test -d /usr/nec ;then
8729         lt_prog_compiler_pic='-Kconform_pic'
8730         lt_prog_compiler_static='-Bstatic'
8731       fi
8732       ;;
8733
8734     unicos*)
8735       lt_prog_compiler_wl='-Wl,'
8736       lt_prog_compiler_can_build_shared=no
8737       ;;
8738
8739     uts4*)
8740       lt_prog_compiler_pic='-pic'
8741       lt_prog_compiler_static='-Bstatic'
8742       ;;
8743
8744     *)
8745       lt_prog_compiler_can_build_shared=no
8746       ;;
8747     esac
8748   fi
8749
8750 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8751 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8752
8753 #
8754 # Check to make sure the PIC flag actually works.
8755 #
8756 if test -n "$lt_prog_compiler_pic"; then
8757
8758 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8759 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8760 if test "${lt_prog_compiler_pic_works+set}" = set; then
8761   echo $ECHO_N "(cached) $ECHO_C" >&6
8762 else
8763   lt_prog_compiler_pic_works=no
8764   ac_outfile=conftest.$ac_objext
8765    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8766    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8767    # Insert the option either (1) after the last *FLAGS variable, or
8768    # (2) before a word containing "conftest.", or (3) at the end.
8769    # Note that $ac_compile itself does not contain backslashes and begins
8770    # with a dollar sign (not a hyphen), so the echo should work correctly.
8771    # The option is referenced via a variable to avoid confusing sed.
8772    lt_compile=`echo "$ac_compile" | $SED \
8773    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8774    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8775    -e 's:$: $lt_compiler_flag:'`
8776    (eval echo "\"\$as_me:8776: $lt_compile\"" >&5)
8777    (eval "$lt_compile" 2>conftest.err)
8778    ac_status=$?
8779    cat conftest.err >&5
8780    echo "$as_me:8780: \$? = $ac_status" >&5
8781    if (exit $ac_status) && test -s "$ac_outfile"; then
8782      # The compiler can only warn and ignore the option if not recognized
8783      # So say no if there are warnings other than the usual output.
8784      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8785      $SED '/^$/d' conftest.err >conftest.er2
8786      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8787        lt_prog_compiler_pic_works=yes
8788      fi
8789    fi
8790    $rm conftest*
8791
8792 fi
8793 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8794 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8795
8796 if test x"$lt_prog_compiler_pic_works" = xyes; then
8797     case $lt_prog_compiler_pic in
8798      "" | " "*) ;;
8799      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8800      esac
8801 else
8802     lt_prog_compiler_pic=
8803      lt_prog_compiler_can_build_shared=no
8804 fi
8805
8806 fi
8807 case "$host_os" in
8808   # For platforms which do not support PIC, -DPIC is meaningless:
8809   *djgpp*)
8810     lt_prog_compiler_pic=
8811     ;;
8812   *)
8813     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8814     ;;
8815 esac
8816
8817 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8818 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8819 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8820   echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822   lt_cv_prog_compiler_c_o=no
8823    $rm -r conftest 2>/dev/null
8824    mkdir conftest
8825    cd conftest
8826    mkdir out
8827    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8828
8829    lt_compiler_flag="-o out/conftest2.$ac_objext"
8830    # Insert the option either (1) after the last *FLAGS variable, or
8831    # (2) before a word containing "conftest.", or (3) at the end.
8832    # Note that $ac_compile itself does not contain backslashes and begins
8833    # with a dollar sign (not a hyphen), so the echo should work correctly.
8834    lt_compile=`echo "$ac_compile" | $SED \
8835    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8836    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8837    -e 's:$: $lt_compiler_flag:'`
8838    (eval echo "\"\$as_me:8838: $lt_compile\"" >&5)
8839    (eval "$lt_compile" 2>out/conftest.err)
8840    ac_status=$?
8841    cat out/conftest.err >&5
8842    echo "$as_me:8842: \$? = $ac_status" >&5
8843    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8844    then
8845      # The compiler can only warn and ignore the option if not recognized
8846      # So say no if there are warnings
8847      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8848      $SED '/^$/d' out/conftest.err >out/conftest.er2
8849      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8850        lt_cv_prog_compiler_c_o=yes
8851      fi
8852    fi
8853    chmod u+w .
8854    $rm conftest*
8855    # SGI C++ compiler will create directory out/ii_files/ for
8856    # template instantiation
8857    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8858    $rm out/* && rmdir out
8859    cd ..
8860    rmdir conftest
8861    $rm conftest*
8862
8863 fi
8864 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8866
8867
8868 hard_links="nottested"
8869 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8870   # do not overwrite the value of need_locks provided by the user
8871   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8872 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8873   hard_links=yes
8874   $rm conftest*
8875   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8876   touch conftest.a
8877   ln conftest.a conftest.b 2>&5 || hard_links=no
8878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8879   echo "$as_me:$LINENO: result: $hard_links" >&5
8880 echo "${ECHO_T}$hard_links" >&6
8881   if test "$hard_links" = no; then
8882     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8883 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8884     need_locks=warn
8885   fi
8886 else
8887   need_locks=no
8888 fi
8889
8890 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8891 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8892
8893   runpath_var=
8894   allow_undefined_flag=
8895   enable_shared_with_static_runtimes=no
8896   archive_cmds=
8897   archive_expsym_cmds=
8898   old_archive_From_new_cmds=
8899   old_archive_from_expsyms_cmds=
8900   export_dynamic_flag_spec=
8901   whole_archive_flag_spec=
8902   thread_safe_flag_spec=
8903   hardcode_libdir_flag_spec=
8904   hardcode_libdir_flag_spec_ld=
8905   hardcode_libdir_separator=
8906   hardcode_direct=no
8907   hardcode_minus_L=no
8908   hardcode_shlibpath_var=unsupported
8909   link_all_deplibs=unknown
8910   hardcode_automatic=no
8911   module_cmds=
8912   module_expsym_cmds=
8913   always_export_symbols=no
8914   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8915   # include_expsyms should be a list of space-separated symbols to be *always*
8916   # included in the symbol list
8917   include_expsyms=
8918   # exclude_expsyms can be an extended regexp of symbols to exclude
8919   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8920   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8921   # as well as any symbol that contains `d'.
8922   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8923   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8924   # platforms (ab)use it in PIC code, but their linkers get confused if
8925   # the symbol is explicitly referenced.  Since portable code cannot
8926   # rely on this symbol name, it's probably fine to never include it in
8927   # preloaded symbol tables.
8928   extract_expsyms_cmds=
8929   # Just being paranoid about ensuring that cc_basename is set.
8930   for cc_temp in $compiler""; do
8931   case $cc_temp in
8932     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8933     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8934     \-*) ;;
8935     *) break;;
8936   esac
8937 done
8938 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8939
8940   case $host_os in
8941   cygwin* | mingw* | pw32*)
8942     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8943     # When not using gcc, we currently assume that we are using
8944     # Microsoft Visual C++.
8945     if test "$GCC" != yes; then
8946       with_gnu_ld=no
8947     fi
8948     ;;
8949   openbsd*)
8950     with_gnu_ld=no
8951     ;;
8952   esac
8953
8954   ld_shlibs=yes
8955   if test "$with_gnu_ld" = yes; then
8956     # If archive_cmds runs LD, not CC, wlarc should be empty
8957     wlarc='${wl}'
8958
8959     # Set some defaults for GNU ld with shared library support. These
8960     # are reset later if shared libraries are not supported. Putting them
8961     # here allows them to be overridden if necessary.
8962     runpath_var=LD_RUN_PATH
8963     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8964     export_dynamic_flag_spec='${wl}--export-dynamic'
8965     # ancient GNU ld didn't support --whole-archive et. al.
8966     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8967         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8968       else
8969         whole_archive_flag_spec=
8970     fi
8971     supports_anon_versioning=no
8972     case `$LD -v 2>/dev/null` in
8973       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8974       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8975       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8976       *\ 2.11.*) ;; # other 2.11 versions
8977       *) supports_anon_versioning=yes ;;
8978     esac
8979
8980     # See if GNU ld supports shared libraries.
8981     case $host_os in
8982     aix3* | aix4* | aix5*)
8983       # On AIX/PPC, the GNU linker is very broken
8984       if test "$host_cpu" != ia64; then
8985         ld_shlibs=no
8986         cat <<EOF 1>&2
8987
8988 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8989 *** to be unable to reliably create shared libraries on AIX.
8990 *** Therefore, libtool is disabling shared libraries support.  If you
8991 *** really care for shared libraries, you may want to modify your PATH
8992 *** so that a non-GNU linker is found, and then restart.
8993
8994 EOF
8995       fi
8996       ;;
8997
8998     amigaos*)
8999       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)'
9000       hardcode_libdir_flag_spec='-L$libdir'
9001       hardcode_minus_L=yes
9002
9003       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9004       # that the semantics of dynamic libraries on AmigaOS, at least up
9005       # to version 4, is to share data among multiple programs linked
9006       # with the same dynamic library.  Since this doesn't match the
9007       # behavior of shared libraries on other platforms, we can't use
9008       # them.
9009       ld_shlibs=no
9010       ;;
9011
9012     beos*)
9013       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9014         allow_undefined_flag=unsupported
9015         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9016         # support --undefined.  This deserves some investigation.  FIXME
9017         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9018       else
9019         ld_shlibs=no
9020       fi
9021       ;;
9022
9023     cygwin* | mingw* | pw32*)
9024       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9025       # as there is no search path for DLLs.
9026       hardcode_libdir_flag_spec='-L$libdir'
9027       allow_undefined_flag=unsupported
9028       always_export_symbols=no
9029       enable_shared_with_static_runtimes=yes
9030       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9031
9032       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9033         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9034         # If the export-symbols file already is a .def file (1st line
9035         # is EXPORTS), use it as is; otherwise, prepend...
9036         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9037           cp $export_symbols $output_objdir/$soname.def;
9038         else
9039           echo EXPORTS > $output_objdir/$soname.def;
9040           cat $export_symbols >> $output_objdir/$soname.def;
9041         fi~
9042         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9043       else
9044         ld_shlibs=no
9045       fi
9046       ;;
9047
9048     linux*)
9049       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9050         tmp_addflag=
9051         case $cc_basename,$host_cpu in
9052         pgcc*)                          # Portland Group C compiler
9053           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'
9054           tmp_addflag=' $pic_flag'
9055           ;;
9056         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
9057           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'
9058           tmp_addflag=' $pic_flag -Mnomain' ;;
9059         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9060           tmp_addflag=' -i_dynamic' ;;
9061         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9062           tmp_addflag=' -i_dynamic -nofor_main' ;;
9063         ifc* | ifort*)                  # Intel Fortran compiler
9064           tmp_addflag=' -nofor_main' ;;
9065         esac
9066         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9067
9068         if test $supports_anon_versioning = yes; then
9069           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9070   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9071   $echo "local: *; };" >> $output_objdir/$libname.ver~
9072           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9073         fi
9074       else
9075         ld_shlibs=no
9076       fi
9077       ;;
9078
9079     netbsd*)
9080       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9081         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9082         wlarc=
9083       else
9084         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9085         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9086       fi
9087       ;;
9088
9089     solaris* | sysv5*)
9090       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9091         ld_shlibs=no
9092         cat <<EOF 1>&2
9093
9094 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9095 *** create shared libraries on Solaris systems.  Therefore, libtool
9096 *** is disabling shared libraries support.  We urge you to upgrade GNU
9097 *** binutils to release 2.9.1 or newer.  Another option is to modify
9098 *** your PATH or compiler configuration so that the native linker is
9099 *** used, and then restart.
9100
9101 EOF
9102       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9103         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9104         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9105       else
9106         ld_shlibs=no
9107       fi
9108       ;;
9109
9110     sunos4*)
9111       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9112       wlarc=
9113       hardcode_direct=yes
9114       hardcode_shlibpath_var=no
9115       ;;
9116
9117     *)
9118       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9119         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9120         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9121       else
9122         ld_shlibs=no
9123       fi
9124       ;;
9125     esac
9126
9127     if test "$ld_shlibs" = no; then
9128       runpath_var=
9129       hardcode_libdir_flag_spec=
9130       export_dynamic_flag_spec=
9131       whole_archive_flag_spec=
9132     fi
9133   else
9134     # PORTME fill in a description of your system's linker (not GNU ld)
9135     case $host_os in
9136     aix3*)
9137       allow_undefined_flag=unsupported
9138       always_export_symbols=yes
9139       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'
9140       # Note: this linker hardcodes the directories in LIBPATH if there
9141       # are no directories specified by -L.
9142       hardcode_minus_L=yes
9143       if test "$GCC" = yes && test -z "$link_static_flag"; then
9144         # Neither direct hardcoding nor static linking is supported with a
9145         # broken collect2.
9146         hardcode_direct=unsupported
9147       fi
9148       ;;
9149
9150     aix4* | aix5*)
9151       if test "$host_cpu" = ia64; then
9152         # On IA64, the linker does run time linking by default, so we don't
9153         # have to do anything special.
9154         aix_use_runtimelinking=no
9155         exp_sym_flag='-Bexport'
9156         no_entry_flag=""
9157       else
9158         # If we're using GNU nm, then we don't want the "-C" option.
9159         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9160         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9161           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'
9162         else
9163           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'
9164         fi
9165         aix_use_runtimelinking=no
9166
9167         # Test if we are trying to use run time linking or normal
9168         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9169         # need to do runtime linking.
9170         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9171           for ld_flag in $LDFLAGS; do
9172           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9173             aix_use_runtimelinking=yes
9174             break
9175           fi
9176           done
9177         esac
9178
9179         exp_sym_flag='-bexport'
9180         no_entry_flag='-bnoentry'
9181       fi
9182
9183       # When large executables or shared objects are built, AIX ld can
9184       # have problems creating the table of contents.  If linking a library
9185       # or program results in "error TOC overflow" add -mminimal-toc to
9186       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9187       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9188
9189       archive_cmds=''
9190       hardcode_direct=yes
9191       hardcode_libdir_separator=':'
9192       link_all_deplibs=yes
9193
9194       if test "$GCC" = yes; then
9195         case $host_os in aix4.[012]|aix4.[012].*)
9196         # We only want to do this on AIX 4.2 and lower, the check
9197         # below for broken collect2 doesn't work under 4.3+
9198           collect2name=`${CC} -print-prog-name=collect2`
9199           if test -f "$collect2name" && \
9200            strings "$collect2name" | grep resolve_lib_name >/dev/null
9201           then
9202           # We have reworked collect2
9203           hardcode_direct=yes
9204           else
9205           # We have old collect2
9206           hardcode_direct=unsupported
9207           # It fails to find uninstalled libraries when the uninstalled
9208           # path is not listed in the libpath.  Setting hardcode_minus_L
9209           # to unsupported forces relinking
9210           hardcode_minus_L=yes
9211           hardcode_libdir_flag_spec='-L$libdir'
9212           hardcode_libdir_separator=
9213           fi
9214         esac
9215         shared_flag='-shared'
9216         if test "$aix_use_runtimelinking" = yes; then
9217           shared_flag="$shared_flag "'${wl}-G'
9218         fi
9219       else
9220         # not using gcc
9221         if test "$host_cpu" = ia64; then
9222         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9223         # chokes on -Wl,-G. The following line is correct:
9224           shared_flag='-G'
9225         else
9226         if test "$aix_use_runtimelinking" = yes; then
9227             shared_flag='${wl}-G'
9228           else
9229             shared_flag='${wl}-bM:SRE'
9230         fi
9231         fi
9232       fi
9233
9234       # It seems that -bexpall does not export symbols beginning with
9235       # underscore (_), so it is better to generate a list of symbols to export.
9236       always_export_symbols=yes
9237       if test "$aix_use_runtimelinking" = yes; then
9238         # Warning - without using the other runtime loading flags (-brtl),
9239         # -berok will link without error, but may produce a broken library.
9240         allow_undefined_flag='-berok'
9241        # Determine the default libpath from the value encoded in an empty executable.
9242        cat >conftest.$ac_ext <<_ACEOF
9243 /* confdefs.h.  */
9244 _ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h.  */
9248
9249 int
9250 main ()
9251 {
9252
9253   ;
9254   return 0;
9255 }
9256 _ACEOF
9257 rm -f conftest.$ac_objext conftest$ac_exeext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9259   (eval $ac_link) 2>conftest.er1
9260   ac_status=$?
9261   grep -v '^ *+' conftest.er1 >conftest.err
9262   rm -f conftest.er1
9263   cat conftest.err >&5
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); } &&
9266          { ac_try='test -z "$ac_c_werror_flag"
9267                          || test ! -s conftest.err'
9268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269   (eval $ac_try) 2>&5
9270   ac_status=$?
9271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272   (exit $ac_status); }; } &&
9273          { ac_try='test -s conftest$ac_exeext'
9274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275   (eval $ac_try) 2>&5
9276   ac_status=$?
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); }; }; then
9279
9280 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9281 }'`
9282 # Check for a 64-bit object if we didn't find anything.
9283 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; }
9284 }'`; fi
9285 else
9286   echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9288
9289 fi
9290 rm -f conftest.err conftest.$ac_objext \
9291       conftest$ac_exeext conftest.$ac_ext
9292 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9293
9294        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9295         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"
9296        else
9297         if test "$host_cpu" = ia64; then
9298           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9299           allow_undefined_flag="-z nodefs"
9300           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"
9301         else
9302          # Determine the default libpath from the value encoded in an empty executable.
9303          cat >conftest.$ac_ext <<_ACEOF
9304 /* confdefs.h.  */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h.  */
9309
9310 int
9311 main ()
9312 {
9313
9314   ;
9315   return 0;
9316 }
9317 _ACEOF
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320   (eval $ac_link) 2>conftest.er1
9321   ac_status=$?
9322   grep -v '^ *+' conftest.er1 >conftest.err
9323   rm -f conftest.er1
9324   cat conftest.err >&5
9325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); } &&
9327          { ac_try='test -z "$ac_c_werror_flag"
9328                          || test ! -s conftest.err'
9329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330   (eval $ac_try) 2>&5
9331   ac_status=$?
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); }; } &&
9334          { ac_try='test -s conftest$ac_exeext'
9335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336   (eval $ac_try) 2>&5
9337   ac_status=$?
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); }; }; then
9340
9341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9342 }'`
9343 # Check for a 64-bit object if we didn't find anything.
9344 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; }
9345 }'`; fi
9346 else
9347   echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9349
9350 fi
9351 rm -f conftest.err conftest.$ac_objext \
9352       conftest$ac_exeext conftest.$ac_ext
9353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9354
9355          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9356           # Warning - without using the other run time loading flags,
9357           # -berok will link without error, but may produce a broken library.
9358           no_undefined_flag=' ${wl}-bernotok'
9359           allow_undefined_flag=' ${wl}-berok'
9360           # -bexpall does not export symbols beginning with underscore (_)
9361           always_export_symbols=yes
9362           # Exported symbols can be pulled into shared objects from archives
9363           whole_archive_flag_spec=' '
9364           archive_cmds_need_lc=yes
9365           # This is similar to how AIX traditionally builds it's shared libraries.
9366           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'
9367         fi
9368       fi
9369       ;;
9370
9371     amigaos*)
9372       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)'
9373       hardcode_libdir_flag_spec='-L$libdir'
9374       hardcode_minus_L=yes
9375       # see comment about different semantics on the GNU ld section
9376       ld_shlibs=no
9377       ;;
9378
9379     bsdi[45]*)
9380       export_dynamic_flag_spec=-rdynamic
9381       ;;
9382
9383     cygwin* | mingw* | pw32*)
9384       # When not using gcc, we currently assume that we are using
9385       # Microsoft Visual C++.
9386       # hardcode_libdir_flag_spec is actually meaningless, as there is
9387       # no search path for DLLs.
9388       hardcode_libdir_flag_spec=' '
9389       allow_undefined_flag=unsupported
9390       # Tell ltmain to make .lib files, not .a files.
9391       libext=lib
9392       # Tell ltmain to make .dll files, not .so files.
9393       shrext_cmds=".dll"
9394       # FIXME: Setting linknames here is a bad hack.
9395       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9396       # The linker will automatically build a .lib file if we build a DLL.
9397       old_archive_From_new_cmds='true'
9398       # FIXME: Should let the user specify the lib program.
9399       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9400       fix_srcfile_path='`cygpath -w "$srcfile"`'
9401       enable_shared_with_static_runtimes=yes
9402       ;;
9403
9404     darwin* | rhapsody*)
9405       case "$host_os" in
9406         rhapsody* | darwin1.[012])
9407          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9408          ;;
9409        *) # Darwin 1.3 on
9410          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9411            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9412          else
9413            case ${MACOSX_DEPLOYMENT_TARGET} in
9414              10.[012])
9415                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9416                ;;
9417              10.*)
9418                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9419                ;;
9420            esac
9421          fi
9422          ;;
9423       esac
9424       archive_cmds_need_lc=no
9425       hardcode_direct=no
9426       hardcode_automatic=yes
9427       hardcode_shlibpath_var=unsupported
9428       whole_archive_flag_spec=''
9429       link_all_deplibs=yes
9430     if test "$GCC" = yes ; then
9431         output_verbose_link_cmd='echo'
9432         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9433       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9434       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9435       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}'
9436       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}'
9437     else
9438       case $cc_basename in
9439         xlc*)
9440          output_verbose_link_cmd='echo'
9441          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9442          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9443           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9444          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}'
9445           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}'
9446           ;;
9447        *)
9448          ld_shlibs=no
9449           ;;
9450       esac
9451     fi
9452       ;;
9453
9454     dgux*)
9455       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9456       hardcode_libdir_flag_spec='-L$libdir'
9457       hardcode_shlibpath_var=no
9458       ;;
9459
9460     freebsd1*)
9461       ld_shlibs=no
9462       ;;
9463
9464     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9465     # support.  Future versions do this automatically, but an explicit c++rt0.o
9466     # does not break anything, and helps significantly (at the cost of a little
9467     # extra space).
9468     freebsd2.2*)
9469       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9470       hardcode_libdir_flag_spec='-R$libdir'
9471       hardcode_direct=yes
9472       hardcode_shlibpath_var=no
9473       ;;
9474
9475     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9476     freebsd2*)
9477       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9478       hardcode_direct=yes
9479       hardcode_minus_L=yes
9480       hardcode_shlibpath_var=no
9481       ;;
9482
9483     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9484     freebsd* | kfreebsd*-gnu | dragonfly*)
9485       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9486       hardcode_libdir_flag_spec='-R$libdir'
9487       hardcode_direct=yes
9488       hardcode_shlibpath_var=no
9489       ;;
9490
9491     hpux9*)
9492       if test "$GCC" = yes; then
9493         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'
9494       else
9495         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'
9496       fi
9497       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9498       hardcode_libdir_separator=:
9499       hardcode_direct=yes
9500
9501       # hardcode_minus_L: Not really in the search PATH,
9502       # but as the default location of the library.
9503       hardcode_minus_L=yes
9504       export_dynamic_flag_spec='${wl}-E'
9505       ;;
9506
9507     hpux10* | hpux11*)
9508       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9509         case "$host_cpu" in
9510         hppa*64*|ia64*)
9511           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9512           ;;
9513         *)
9514           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9515           ;;
9516         esac
9517       else
9518         case "$host_cpu" in
9519         hppa*64*|ia64*)
9520           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9521           ;;
9522         *)
9523           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9524           ;;
9525         esac
9526       fi
9527       if test "$with_gnu_ld" = no; then
9528         case "$host_cpu" in
9529         hppa*64*)
9530           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9531           hardcode_libdir_flag_spec_ld='+b $libdir'
9532           hardcode_libdir_separator=:
9533           hardcode_direct=no
9534           hardcode_shlibpath_var=no
9535           ;;
9536         ia64*)
9537           hardcode_libdir_flag_spec='-L$libdir'
9538           hardcode_direct=no
9539           hardcode_shlibpath_var=no
9540
9541           # hardcode_minus_L: Not really in the search PATH,
9542           # but as the default location of the library.
9543           hardcode_minus_L=yes
9544           ;;
9545         *)
9546           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9547           hardcode_libdir_separator=:
9548           hardcode_direct=yes
9549           export_dynamic_flag_spec='${wl}-E'
9550
9551           # hardcode_minus_L: Not really in the search PATH,
9552           # but as the default location of the library.
9553           hardcode_minus_L=yes
9554           ;;
9555         esac
9556       fi
9557       ;;
9558
9559     irix5* | irix6* | nonstopux*)
9560       if test "$GCC" = yes; then
9561         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'
9562       else
9563         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'
9564         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9565       fi
9566       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9567       hardcode_libdir_separator=:
9568       link_all_deplibs=yes
9569       ;;
9570
9571     netbsd*)
9572       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9573         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9574       else
9575         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9576       fi
9577       hardcode_libdir_flag_spec='-R$libdir'
9578       hardcode_direct=yes
9579       hardcode_shlibpath_var=no
9580       ;;
9581
9582     newsos6)
9583       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9584       hardcode_direct=yes
9585       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9586       hardcode_libdir_separator=:
9587       hardcode_shlibpath_var=no
9588       ;;
9589
9590     openbsd*)
9591       hardcode_direct=yes
9592       hardcode_shlibpath_var=no
9593       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9594         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9595         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9596         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9597         export_dynamic_flag_spec='${wl}-E'
9598       else
9599        case $host_os in
9600          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9601            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9602            hardcode_libdir_flag_spec='-R$libdir'
9603            ;;
9604          *)
9605            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9606            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9607            ;;
9608        esac
9609       fi
9610       ;;
9611
9612     os2*)
9613       hardcode_libdir_flag_spec='-L$libdir'
9614       hardcode_minus_L=yes
9615       allow_undefined_flag=unsupported
9616       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'
9617       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9618       ;;
9619
9620     osf3*)
9621       if test "$GCC" = yes; then
9622         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9623         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'
9624       else
9625         allow_undefined_flag=' -expect_unresolved \*'
9626         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'
9627       fi
9628       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9629       hardcode_libdir_separator=:
9630       ;;
9631
9632     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9633       if test "$GCC" = yes; then
9634         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9635         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'
9636         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9637       else
9638         allow_undefined_flag=' -expect_unresolved \*'
9639         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'
9640         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9641         $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'
9642
9643         # Both c and cxx compiler support -rpath directly
9644         hardcode_libdir_flag_spec='-rpath $libdir'
9645       fi
9646       hardcode_libdir_separator=:
9647       ;;
9648
9649     sco3.2v5*)
9650       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651       hardcode_shlibpath_var=no
9652       export_dynamic_flag_spec='${wl}-Bexport'
9653       runpath_var=LD_RUN_PATH
9654       hardcode_runpath_var=yes
9655       ;;
9656
9657     solaris*)
9658       no_undefined_flag=' -z text'
9659       if test "$GCC" = yes; then
9660         wlarc='${wl}'
9661         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9662         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9663           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9664       else
9665         wlarc=''
9666         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9668         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9669       fi
9670       hardcode_libdir_flag_spec='-R$libdir'
9671       hardcode_shlibpath_var=no
9672       case $host_os in
9673       solaris2.[0-5] | solaris2.[0-5].*) ;;
9674       *)
9675         # The compiler driver will combine linker options so we
9676         # cannot just pass the convience library names through
9677         # without $wl, iff we do not link with $LD.
9678         # Luckily, gcc supports the same syntax we need for Sun Studio.
9679         # Supported since Solaris 2.6 (maybe 2.5.1?)
9680         case $wlarc in
9681         '')
9682           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9683         *)
9684           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' ;;
9685         esac ;;
9686       esac
9687       link_all_deplibs=yes
9688       ;;
9689
9690     sunos4*)
9691       if test "x$host_vendor" = xsequent; then
9692         # Use $CC to link under sequent, because it throws in some extra .o
9693         # files that make .init and .fini sections work.
9694         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9695       else
9696         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9697       fi
9698       hardcode_libdir_flag_spec='-L$libdir'
9699       hardcode_direct=yes
9700       hardcode_minus_L=yes
9701       hardcode_shlibpath_var=no
9702       ;;
9703
9704     sysv4)
9705       case $host_vendor in
9706         sni)
9707           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708           hardcode_direct=yes # is this really true???
9709         ;;
9710         siemens)
9711           ## LD is ld it makes a PLAMLIB
9712           ## CC just makes a GrossModule.
9713           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9714           reload_cmds='$CC -r -o $output$reload_objs'
9715           hardcode_direct=no
9716         ;;
9717         motorola)
9718           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9719           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9720         ;;
9721       esac
9722       runpath_var='LD_RUN_PATH'
9723       hardcode_shlibpath_var=no
9724       ;;
9725
9726     sysv4.3*)
9727       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728       hardcode_shlibpath_var=no
9729       export_dynamic_flag_spec='-Bexport'
9730       ;;
9731
9732     sysv4*MP*)
9733       if test -d /usr/nec; then
9734         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735         hardcode_shlibpath_var=no
9736         runpath_var=LD_RUN_PATH
9737         hardcode_runpath_var=yes
9738         ld_shlibs=yes
9739       fi
9740       ;;
9741
9742     sysv4.2uw2*)
9743       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9744       hardcode_direct=yes
9745       hardcode_minus_L=no
9746       hardcode_shlibpath_var=no
9747       hardcode_runpath_var=yes
9748       runpath_var=LD_RUN_PATH
9749       ;;
9750
9751    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9752       no_undefined_flag='${wl}-z ${wl}text'
9753       if test "$GCC" = yes; then
9754         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9755       else
9756         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9757       fi
9758       runpath_var='LD_RUN_PATH'
9759       hardcode_shlibpath_var=no
9760       ;;
9761
9762     sysv5*)
9763       no_undefined_flag=' -z text'
9764       # $CC -shared without GNU ld will not create a library from C++
9765       # object files and a static libstdc++, better avoid it by now
9766       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9767       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9768                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9769       hardcode_libdir_flag_spec=
9770       hardcode_shlibpath_var=no
9771       runpath_var='LD_RUN_PATH'
9772       ;;
9773
9774     uts4*)
9775       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776       hardcode_libdir_flag_spec='-L$libdir'
9777       hardcode_shlibpath_var=no
9778       ;;
9779
9780     *)
9781       ld_shlibs=no
9782       ;;
9783     esac
9784   fi
9785
9786 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9787 echo "${ECHO_T}$ld_shlibs" >&6
9788 test "$ld_shlibs" = no && can_build_shared=no
9789
9790 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9791 if test "$GCC" = yes; then
9792   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9793 fi
9794
9795 #
9796 # Do we need to explicitly link libc?
9797 #
9798 case "x$archive_cmds_need_lc" in
9799 x|xyes)
9800   # Assume -lc should be added
9801   archive_cmds_need_lc=yes
9802
9803   if test "$enable_shared" = yes && test "$GCC" = yes; then
9804     case $archive_cmds in
9805     *'~'*)
9806       # FIXME: we may have to deal with multi-command sequences.
9807       ;;
9808     '$CC '*)
9809       # Test whether the compiler implicitly links with -lc since on some
9810       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9811       # to ld, don't add -lc before -lgcc.
9812       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9813 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9814       $rm conftest*
9815       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9816
9817       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818   (eval $ac_compile) 2>&5
9819   ac_status=$?
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); } 2>conftest.err; then
9822         soname=conftest
9823         lib=conftest
9824         libobjs=conftest.$ac_objext
9825         deplibs=
9826         wl=$lt_prog_compiler_wl
9827         compiler_flags=-v
9828         linker_flags=-v
9829         verstring=
9830         output_objdir=.
9831         libname=conftest
9832         lt_save_allow_undefined_flag=$allow_undefined_flag
9833         allow_undefined_flag=
9834         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9835   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9836   ac_status=$?
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); }
9839         then
9840           archive_cmds_need_lc=no
9841         else
9842           archive_cmds_need_lc=yes
9843         fi
9844         allow_undefined_flag=$lt_save_allow_undefined_flag
9845       else
9846         cat conftest.err 1>&5
9847       fi
9848       $rm conftest*
9849       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9850 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9851       ;;
9852     esac
9853   fi
9854   ;;
9855 esac
9856
9857 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9858 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9859 library_names_spec=
9860 libname_spec='lib$name'
9861 soname_spec=
9862 shrext_cmds=".so"
9863 postinstall_cmds=
9864 postuninstall_cmds=
9865 finish_cmds=
9866 finish_eval=
9867 shlibpath_var=
9868 shlibpath_overrides_runpath=unknown
9869 version_type=none
9870 dynamic_linker="$host_os ld.so"
9871 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9872 if test "$GCC" = yes; then
9873   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9874   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9875     # if the path contains ";" then we assume it to be the separator
9876     # otherwise default to the standard path separator (i.e. ":") - it is
9877     # assumed that no part of a normal pathname contains ";" but that should
9878     # okay in the real world where ";" in dirpaths is itself problematic.
9879     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9880   else
9881     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9882   fi
9883 else
9884   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9885 fi
9886 need_lib_prefix=unknown
9887 hardcode_into_libs=no
9888
9889 # when you set need_version to no, make sure it does not cause -set_version
9890 # flags to be left without arguments
9891 need_version=unknown
9892
9893 case $host_os in
9894 aix3*)
9895   version_type=linux
9896   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9897   shlibpath_var=LIBPATH
9898
9899   # AIX 3 has no versioning support, so we append a major version to the name.
9900   soname_spec='${libname}${release}${shared_ext}$major'
9901   ;;
9902
9903 aix4* | aix5*)
9904   version_type=linux
9905   need_lib_prefix=no
9906   need_version=no
9907   hardcode_into_libs=yes
9908   if test "$host_cpu" = ia64; then
9909     # AIX 5 supports IA64
9910     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9911     shlibpath_var=LD_LIBRARY_PATH
9912   else
9913     # With GCC up to 2.95.x, collect2 would create an import file
9914     # for dependence libraries.  The import file would start with
9915     # the line `#! .'.  This would cause the generated library to
9916     # depend on `.', always an invalid library.  This was fixed in
9917     # development snapshots of GCC prior to 3.0.
9918     case $host_os in
9919       aix4 | aix4.[01] | aix4.[01].*)
9920       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9921            echo ' yes '
9922            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9923         :
9924       else
9925         can_build_shared=no
9926       fi
9927       ;;
9928     esac
9929     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9930     # soname into executable. Probably we can add versioning support to
9931     # collect2, so additional links can be useful in future.
9932     if test "$aix_use_runtimelinking" = yes; then
9933       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9934       # instead of lib<name>.a to let people know that these are not
9935       # typical AIX shared libraries.
9936       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937     else
9938       # We preserve .a as extension for shared libraries through AIX4.2
9939       # and later when we are not doing run time linking.
9940       library_names_spec='${libname}${release}.a $libname.a'
9941       soname_spec='${libname}${release}${shared_ext}$major'
9942     fi
9943     shlibpath_var=LIBPATH
9944   fi
9945   ;;
9946
9947 amigaos*)
9948   library_names_spec='$libname.ixlibrary $libname.a'
9949   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9950   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'
9951   ;;
9952
9953 beos*)
9954   library_names_spec='${libname}${shared_ext}'
9955   dynamic_linker="$host_os ld.so"
9956   shlibpath_var=LIBRARY_PATH
9957   ;;
9958
9959 bsdi[45]*)
9960   version_type=linux
9961   need_version=no
9962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9963   soname_spec='${libname}${release}${shared_ext}$major'
9964   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9965   shlibpath_var=LD_LIBRARY_PATH
9966   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9967   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9968   # the default ld.so.conf also contains /usr/contrib/lib and
9969   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9970   # libtool to hard-code these into programs
9971   ;;
9972
9973 cygwin* | mingw* | pw32*)
9974   version_type=windows
9975   shrext_cmds=".dll"
9976   need_version=no
9977   need_lib_prefix=no
9978
9979   case $GCC,$host_os in
9980   yes,cygwin* | yes,mingw* | yes,pw32*)
9981     library_names_spec='$libname.dll.a'
9982     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9983     postinstall_cmds='base_file=`basename \${file}`~
9984       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9985       dldir=$destdir/`dirname \$dlpath`~
9986       test -d \$dldir || mkdir -p \$dldir~
9987       $install_prog $dir/$dlname \$dldir/$dlname'
9988     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9989       dlpath=$dir/\$dldll~
9990        $rm \$dlpath'
9991     shlibpath_overrides_runpath=yes
9992
9993     case $host_os in
9994     cygwin*)
9995       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9996       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9997       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9998       ;;
9999     mingw*)
10000       # MinGW DLLs use traditional 'lib' prefix
10001       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10002       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10003       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10004         # It is most probably a Windows format PATH printed by
10005         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10006         # path with ; separators, and with drive letters. We can handle the
10007         # drive letters (cygwin fileutils understands them), so leave them,
10008         # especially as we might pass files found there to a mingw objdump,
10009         # which wouldn't understand a cygwinified path. Ahh.
10010         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10011       else
10012         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10013       fi
10014       ;;
10015     pw32*)
10016       # pw32 DLLs use 'pw' prefix rather than 'lib'
10017       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10018       ;;
10019     esac
10020     ;;
10021
10022   *)
10023     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10024     ;;
10025   esac
10026   dynamic_linker='Win32 ld.exe'
10027   # FIXME: first we should search . and the directory the executable is in
10028   shlibpath_var=PATH
10029   ;;
10030
10031 darwin* | rhapsody*)
10032   dynamic_linker="$host_os dyld"
10033   version_type=darwin
10034   need_lib_prefix=no
10035   need_version=no
10036   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10037   soname_spec='${libname}${release}${major}$shared_ext'
10038   shlibpath_overrides_runpath=yes
10039   shlibpath_var=DYLD_LIBRARY_PATH
10040   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10041   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10042   if test "$GCC" = yes; then
10043     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"`
10044   else
10045     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10046   fi
10047   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10048   ;;
10049
10050 dgux*)
10051   version_type=linux
10052   need_lib_prefix=no
10053   need_version=no
10054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10055   soname_spec='${libname}${release}${shared_ext}$major'
10056   shlibpath_var=LD_LIBRARY_PATH
10057   ;;
10058
10059 freebsd1*)
10060   dynamic_linker=no
10061   ;;
10062
10063 kfreebsd*-gnu)
10064   version_type=linux
10065   need_lib_prefix=no
10066   need_version=no
10067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10068   soname_spec='${libname}${release}${shared_ext}$major'
10069   shlibpath_var=LD_LIBRARY_PATH
10070   shlibpath_overrides_runpath=no
10071   hardcode_into_libs=yes
10072   dynamic_linker='GNU ld.so'
10073   ;;
10074
10075 freebsd* | dragonfly*)
10076   # DragonFly does not have aout.  When/if they implement a new
10077   # versioning mechanism, adjust this.
10078   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10079   version_type=freebsd-$objformat
10080   case $version_type in
10081     freebsd-elf*)
10082       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10083       need_version=no
10084       need_lib_prefix=no
10085       ;;
10086     freebsd-*)
10087       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10088       need_version=yes
10089       ;;
10090   esac
10091   shlibpath_var=LD_LIBRARY_PATH
10092   case $host_os in
10093   freebsd2*)
10094     shlibpath_overrides_runpath=yes
10095     ;;
10096   freebsd3.[01]* | freebsdelf3.[01]*)
10097     shlibpath_overrides_runpath=yes
10098     hardcode_into_libs=yes
10099     ;;
10100   *) # from 3.2 on
10101     shlibpath_overrides_runpath=no
10102     hardcode_into_libs=yes
10103     ;;
10104   esac
10105   ;;
10106
10107 gnu*)
10108   version_type=linux
10109   need_lib_prefix=no
10110   need_version=no
10111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10112   soname_spec='${libname}${release}${shared_ext}$major'
10113   shlibpath_var=LD_LIBRARY_PATH
10114   hardcode_into_libs=yes
10115   ;;
10116
10117 hpux9* | hpux10* | hpux11*)
10118   # Give a soname corresponding to the major version so that dld.sl refuses to
10119   # link against other versions.
10120   version_type=sunos
10121   need_lib_prefix=no
10122   need_version=no
10123   case "$host_cpu" in
10124   ia64*)
10125     shrext_cmds='.so'
10126     hardcode_into_libs=yes
10127     dynamic_linker="$host_os dld.so"
10128     shlibpath_var=LD_LIBRARY_PATH
10129     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10130     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131     soname_spec='${libname}${release}${shared_ext}$major'
10132     if test "X$HPUX_IA64_MODE" = X32; then
10133       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10134     else
10135       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10136     fi
10137     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10138     ;;
10139    hppa*64*)
10140      shrext_cmds='.sl'
10141      hardcode_into_libs=yes
10142      dynamic_linker="$host_os dld.sl"
10143      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10144      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10145      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146      soname_spec='${libname}${release}${shared_ext}$major'
10147      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10148      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10149      ;;
10150    *)
10151     shrext_cmds='.sl'
10152     dynamic_linker="$host_os dld.sl"
10153     shlibpath_var=SHLIB_PATH
10154     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156     soname_spec='${libname}${release}${shared_ext}$major'
10157     ;;
10158   esac
10159   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10160   postinstall_cmds='chmod 555 $lib'
10161   ;;
10162
10163 irix5* | irix6* | nonstopux*)
10164   case $host_os in
10165     nonstopux*) version_type=nonstopux ;;
10166     *)
10167         if test "$lt_cv_prog_gnu_ld" = yes; then
10168                 version_type=linux
10169         else
10170                 version_type=irix
10171         fi ;;
10172   esac
10173   need_lib_prefix=no
10174   need_version=no
10175   soname_spec='${libname}${release}${shared_ext}$major'
10176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10177   case $host_os in
10178   irix5* | nonstopux*)
10179     libsuff= shlibsuff=
10180     ;;
10181   *)
10182     case $LD in # libtool.m4 will add one of these switches to LD
10183     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10184       libsuff= shlibsuff= libmagic=32-bit;;
10185     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10186       libsuff=32 shlibsuff=N32 libmagic=N32;;
10187     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10188       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10189     *) libsuff= shlibsuff= libmagic=never-match;;
10190     esac
10191     ;;
10192   esac
10193   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10194   shlibpath_overrides_runpath=no
10195   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10196   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10197   hardcode_into_libs=yes
10198   ;;
10199
10200 # No shared lib support for Linux oldld, aout, or coff.
10201 linux*oldld* | linux*aout* | linux*coff*)
10202   dynamic_linker=no
10203   ;;
10204
10205 # This must be Linux ELF.
10206 linux*)
10207   version_type=linux
10208   need_lib_prefix=no
10209   need_version=no
10210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211   soname_spec='${libname}${release}${shared_ext}$major'
10212   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10213   shlibpath_var=LD_LIBRARY_PATH
10214   shlibpath_overrides_runpath=no
10215   # This implies no fast_install, which is unacceptable.
10216   # Some rework will be needed to allow for fast_install
10217   # before this can be enabled.
10218   hardcode_into_libs=yes
10219
10220   # Append ld.so.conf contents to the search path
10221   if test -f /etc/ld.so.conf; then
10222     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' ' '`
10223     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10224   fi
10225
10226   # We used to test for /lib/ld.so.1 and disable shared libraries on
10227   # powerpc, because MkLinux only supported shared libraries with the
10228   # GNU dynamic linker.  Since this was broken with cross compilers,
10229   # most powerpc-linux boxes support dynamic linking these days and
10230   # people can always --disable-shared, the test was removed, and we
10231   # assume the GNU/Linux dynamic linker is in use.
10232   dynamic_linker='GNU/Linux ld.so'
10233   ;;
10234
10235 knetbsd*-gnu)
10236   version_type=linux
10237   need_lib_prefix=no
10238   need_version=no
10239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10240   soname_spec='${libname}${release}${shared_ext}$major'
10241   shlibpath_var=LD_LIBRARY_PATH
10242   shlibpath_overrides_runpath=no
10243   hardcode_into_libs=yes
10244   dynamic_linker='GNU ld.so'
10245   ;;
10246
10247 netbsd*)
10248   version_type=sunos
10249   need_lib_prefix=no
10250   need_version=no
10251   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10253     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10254     dynamic_linker='NetBSD (a.out) ld.so'
10255   else
10256     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10257     soname_spec='${libname}${release}${shared_ext}$major'
10258     dynamic_linker='NetBSD ld.elf_so'
10259   fi
10260   shlibpath_var=LD_LIBRARY_PATH
10261   shlibpath_overrides_runpath=yes
10262   hardcode_into_libs=yes
10263   ;;
10264
10265 newsos6)
10266   version_type=linux
10267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10268   shlibpath_var=LD_LIBRARY_PATH
10269   shlibpath_overrides_runpath=yes
10270   ;;
10271
10272 nto-qnx*)
10273   version_type=linux
10274   need_lib_prefix=no
10275   need_version=no
10276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277   soname_spec='${libname}${release}${shared_ext}$major'
10278   shlibpath_var=LD_LIBRARY_PATH
10279   shlibpath_overrides_runpath=yes
10280   ;;
10281
10282 openbsd*)
10283   version_type=sunos
10284   need_lib_prefix=no
10285   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10286   case $host_os in
10287     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10288     *)                         need_version=no  ;;
10289   esac
10290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10291   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10292   shlibpath_var=LD_LIBRARY_PATH
10293   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10294     case $host_os in
10295       openbsd2.[89] | openbsd2.[89].*)
10296         shlibpath_overrides_runpath=no
10297         ;;
10298       *)
10299         shlibpath_overrides_runpath=yes
10300         ;;
10301       esac
10302   else
10303     shlibpath_overrides_runpath=yes
10304   fi
10305   ;;
10306
10307 os2*)
10308   libname_spec='$name'
10309   shrext_cmds=".dll"
10310   need_lib_prefix=no
10311   library_names_spec='$libname${shared_ext} $libname.a'
10312   dynamic_linker='OS/2 ld.exe'
10313   shlibpath_var=LIBPATH
10314   ;;
10315
10316 osf3* | osf4* | osf5*)
10317   version_type=osf
10318   need_lib_prefix=no
10319   need_version=no
10320   soname_spec='${libname}${release}${shared_ext}$major'
10321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322   shlibpath_var=LD_LIBRARY_PATH
10323   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10324   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10325   ;;
10326
10327 sco3.2v5*)
10328   version_type=osf
10329   soname_spec='${libname}${release}${shared_ext}$major'
10330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331   shlibpath_var=LD_LIBRARY_PATH
10332   ;;
10333
10334 solaris*)
10335   version_type=linux
10336   need_lib_prefix=no
10337   need_version=no
10338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339   soname_spec='${libname}${release}${shared_ext}$major'
10340   shlibpath_var=LD_LIBRARY_PATH
10341   shlibpath_overrides_runpath=yes
10342   hardcode_into_libs=yes
10343   # ldd complains unless libraries are executable
10344   postinstall_cmds='chmod +x $lib'
10345   ;;
10346
10347 sunos4*)
10348   version_type=sunos
10349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10350   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10351   shlibpath_var=LD_LIBRARY_PATH
10352   shlibpath_overrides_runpath=yes
10353   if test "$with_gnu_ld" = yes; then
10354     need_lib_prefix=no
10355   fi
10356   need_version=yes
10357   ;;
10358
10359 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10360   version_type=linux
10361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362   soname_spec='${libname}${release}${shared_ext}$major'
10363   shlibpath_var=LD_LIBRARY_PATH
10364   case $host_vendor in
10365     sni)
10366       shlibpath_overrides_runpath=no
10367       need_lib_prefix=no
10368       export_dynamic_flag_spec='${wl}-Blargedynsym'
10369       runpath_var=LD_RUN_PATH
10370       ;;
10371     siemens)
10372       need_lib_prefix=no
10373       ;;
10374     motorola)
10375       need_lib_prefix=no
10376       need_version=no
10377       shlibpath_overrides_runpath=no
10378       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10379       ;;
10380   esac
10381   ;;
10382
10383 sysv4*MP*)
10384   if test -d /usr/nec ;then
10385     version_type=linux
10386     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10387     soname_spec='$libname${shared_ext}.$major'
10388     shlibpath_var=LD_LIBRARY_PATH
10389   fi
10390   ;;
10391
10392 uts4*)
10393   version_type=linux
10394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395   soname_spec='${libname}${release}${shared_ext}$major'
10396   shlibpath_var=LD_LIBRARY_PATH
10397   ;;
10398
10399 *)
10400   dynamic_linker=no
10401   ;;
10402 esac
10403 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10404 echo "${ECHO_T}$dynamic_linker" >&6
10405 test "$dynamic_linker" = no && can_build_shared=no
10406
10407 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10408 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10409 hardcode_action=
10410 if test -n "$hardcode_libdir_flag_spec" || \
10411    test -n "$runpath_var" || \
10412    test "X$hardcode_automatic" = "Xyes" ; then
10413
10414   # We can hardcode non-existant directories.
10415   if test "$hardcode_direct" != no &&
10416      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10417      # have to relink, otherwise we might link with an installed library
10418      # when we should be linking with a yet-to-be-installed one
10419      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10420      test "$hardcode_minus_L" != no; then
10421     # Linking always hardcodes the temporary library directory.
10422     hardcode_action=relink
10423   else
10424     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10425     hardcode_action=immediate
10426   fi
10427 else
10428   # We cannot hardcode anything, or else we can only hardcode existing
10429   # directories.
10430   hardcode_action=unsupported
10431 fi
10432 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10433 echo "${ECHO_T}$hardcode_action" >&6
10434
10435 if test "$hardcode_action" = relink; then
10436   # Fast installation is not supported
10437   enable_fast_install=no
10438 elif test "$shlibpath_overrides_runpath" = yes ||
10439      test "$enable_shared" = no; then
10440   # Fast installation is not necessary
10441   enable_fast_install=needless
10442 fi
10443
10444 striplib=
10445 old_striplib=
10446 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10447 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10448 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10449   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10450   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10451   echo "$as_me:$LINENO: result: yes" >&5
10452 echo "${ECHO_T}yes" >&6
10453 else
10454 # FIXME - insert some real tests, host_os isn't really good enough
10455   case $host_os in
10456    darwin*)
10457        if test -n "$STRIP" ; then
10458          striplib="$STRIP -x"
10459          echo "$as_me:$LINENO: result: yes" >&5
10460 echo "${ECHO_T}yes" >&6
10461        else
10462   echo "$as_me:$LINENO: result: no" >&5
10463 echo "${ECHO_T}no" >&6
10464 fi
10465        ;;
10466    *)
10467   echo "$as_me:$LINENO: result: no" >&5
10468 echo "${ECHO_T}no" >&6
10469     ;;
10470   esac
10471 fi
10472
10473 if test "x$enable_dlopen" != xyes; then
10474   enable_dlopen=unknown
10475   enable_dlopen_self=unknown
10476   enable_dlopen_self_static=unknown
10477 else
10478   lt_cv_dlopen=no
10479   lt_cv_dlopen_libs=
10480
10481   case $host_os in
10482   beos*)
10483     lt_cv_dlopen="load_add_on"
10484     lt_cv_dlopen_libs=
10485     lt_cv_dlopen_self=yes
10486     ;;
10487
10488   mingw* | pw32*)
10489     lt_cv_dlopen="LoadLibrary"
10490     lt_cv_dlopen_libs=
10491    ;;
10492
10493   cygwin*)
10494     lt_cv_dlopen="dlopen"
10495     lt_cv_dlopen_libs=
10496    ;;
10497
10498   darwin*)
10499   # if libdl is installed we need to link against it
10500     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10501 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10502 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10503   echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505   ac_check_lib_save_LIBS=$LIBS
10506 LIBS="-ldl  $LIBS"
10507 cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h.  */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h.  */
10513
10514 /* Override any gcc2 internal prototype to avoid an error.  */
10515 #ifdef __cplusplus
10516 extern "C"
10517 #endif
10518 /* We use char because int might match the return type of a gcc2
10519    builtin and then its argument prototype would still apply.  */
10520 char dlopen ();
10521 int
10522 main ()
10523 {
10524 dlopen ();
10525   ;
10526   return 0;
10527 }
10528 _ACEOF
10529 rm -f conftest.$ac_objext conftest$ac_exeext
10530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10531   (eval $ac_link) 2>conftest.er1
10532   ac_status=$?
10533   grep -v '^ *+' conftest.er1 >conftest.err
10534   rm -f conftest.er1
10535   cat conftest.err >&5
10536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537   (exit $ac_status); } &&
10538          { ac_try='test -z "$ac_c_werror_flag"
10539                          || test ! -s conftest.err'
10540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541   (eval $ac_try) 2>&5
10542   ac_status=$?
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); }; } &&
10545          { ac_try='test -s conftest$ac_exeext'
10546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547   (eval $ac_try) 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); }; }; then
10551   ac_cv_lib_dl_dlopen=yes
10552 else
10553   echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10555
10556 ac_cv_lib_dl_dlopen=no
10557 fi
10558 rm -f conftest.err conftest.$ac_objext \
10559       conftest$ac_exeext conftest.$ac_ext
10560 LIBS=$ac_check_lib_save_LIBS
10561 fi
10562 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10563 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10564 if test $ac_cv_lib_dl_dlopen = yes; then
10565   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10566 else
10567
10568     lt_cv_dlopen="dyld"
10569     lt_cv_dlopen_libs=
10570     lt_cv_dlopen_self=yes
10571
10572 fi
10573
10574    ;;
10575
10576   *)
10577     echo "$as_me:$LINENO: checking for shl_load" >&5
10578 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10579 if test "${ac_cv_func_shl_load+set}" = set; then
10580   echo $ECHO_N "(cached) $ECHO_C" >&6
10581 else
10582   cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h.  */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h.  */
10588 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10589    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10590 #define shl_load innocuous_shl_load
10591
10592 /* System header to define __stub macros and hopefully few prototypes,
10593     which can conflict with char shl_load (); below.
10594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10595     <limits.h> exists even on freestanding compilers.  */
10596
10597 #ifdef __STDC__
10598 # include <limits.h>
10599 #else
10600 # include <assert.h>
10601 #endif
10602
10603 #undef shl_load
10604
10605 /* Override any gcc2 internal prototype to avoid an error.  */
10606 #ifdef __cplusplus
10607 extern "C"
10608 {
10609 #endif
10610 /* We use char because int might match the return type of a gcc2
10611    builtin and then its argument prototype would still apply.  */
10612 char shl_load ();
10613 /* The GNU C library defines this for functions which it implements
10614     to always fail with ENOSYS.  Some functions are actually named
10615     something starting with __ and the normal name is an alias.  */
10616 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10617 choke me
10618 #else
10619 char (*f) () = shl_load;
10620 #endif
10621 #ifdef __cplusplus
10622 }
10623 #endif
10624
10625 int
10626 main ()
10627 {
10628 return f != shl_load;
10629   ;
10630   return 0;
10631 }
10632 _ACEOF
10633 rm -f conftest.$ac_objext conftest$ac_exeext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635   (eval $ac_link) 2>conftest.er1
10636   ac_status=$?
10637   grep -v '^ *+' conftest.er1 >conftest.err
10638   rm -f conftest.er1
10639   cat conftest.err >&5
10640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641   (exit $ac_status); } &&
10642          { ac_try='test -z "$ac_c_werror_flag"
10643                          || test ! -s conftest.err'
10644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645   (eval $ac_try) 2>&5
10646   ac_status=$?
10647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648   (exit $ac_status); }; } &&
10649          { ac_try='test -s conftest$ac_exeext'
10650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651   (eval $ac_try) 2>&5
10652   ac_status=$?
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); }; }; then
10655   ac_cv_func_shl_load=yes
10656 else
10657   echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10659
10660 ac_cv_func_shl_load=no
10661 fi
10662 rm -f conftest.err conftest.$ac_objext \
10663       conftest$ac_exeext conftest.$ac_ext
10664 fi
10665 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10666 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10667 if test $ac_cv_func_shl_load = yes; then
10668   lt_cv_dlopen="shl_load"
10669 else
10670   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10671 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10672 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10673   echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675   ac_check_lib_save_LIBS=$LIBS
10676 LIBS="-ldld  $LIBS"
10677 cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h.  */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h.  */
10683
10684 /* Override any gcc2 internal prototype to avoid an error.  */
10685 #ifdef __cplusplus
10686 extern "C"
10687 #endif
10688 /* We use char because int might match the return type of a gcc2
10689    builtin and then its argument prototype would still apply.  */
10690 char shl_load ();
10691 int
10692 main ()
10693 {
10694 shl_load ();
10695   ;
10696   return 0;
10697 }
10698 _ACEOF
10699 rm -f conftest.$ac_objext conftest$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701   (eval $ac_link) 2>conftest.er1
10702   ac_status=$?
10703   grep -v '^ *+' conftest.er1 >conftest.err
10704   rm -f conftest.er1
10705   cat conftest.err >&5
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); } &&
10708          { ac_try='test -z "$ac_c_werror_flag"
10709                          || test ! -s conftest.err'
10710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711   (eval $ac_try) 2>&5
10712   ac_status=$?
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); }; } &&
10715          { ac_try='test -s conftest$ac_exeext'
10716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717   (eval $ac_try) 2>&5
10718   ac_status=$?
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); }; }; then
10721   ac_cv_lib_dld_shl_load=yes
10722 else
10723   echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10725
10726 ac_cv_lib_dld_shl_load=no
10727 fi
10728 rm -f conftest.err conftest.$ac_objext \
10729       conftest$ac_exeext conftest.$ac_ext
10730 LIBS=$ac_check_lib_save_LIBS
10731 fi
10732 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10733 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10734 if test $ac_cv_lib_dld_shl_load = yes; then
10735   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10736 else
10737   echo "$as_me:$LINENO: checking for dlopen" >&5
10738 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10739 if test "${ac_cv_func_dlopen+set}" = set; then
10740   echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742   cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h.  */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h.  */
10748 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10750 #define dlopen innocuous_dlopen
10751
10752 /* System header to define __stub macros and hopefully few prototypes,
10753     which can conflict with char dlopen (); below.
10754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10755     <limits.h> exists even on freestanding compilers.  */
10756
10757 #ifdef __STDC__
10758 # include <limits.h>
10759 #else
10760 # include <assert.h>
10761 #endif
10762
10763 #undef dlopen
10764
10765 /* Override any gcc2 internal prototype to avoid an error.  */
10766 #ifdef __cplusplus
10767 extern "C"
10768 {
10769 #endif
10770 /* We use char because int might match the return type of a gcc2
10771    builtin and then its argument prototype would still apply.  */
10772 char dlopen ();
10773 /* The GNU C library defines this for functions which it implements
10774     to always fail with ENOSYS.  Some functions are actually named
10775     something starting with __ and the normal name is an alias.  */
10776 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10777 choke me
10778 #else
10779 char (*f) () = dlopen;
10780 #endif
10781 #ifdef __cplusplus
10782 }
10783 #endif
10784
10785 int
10786 main ()
10787 {
10788 return f != dlopen;
10789   ;
10790   return 0;
10791 }
10792 _ACEOF
10793 rm -f conftest.$ac_objext conftest$ac_exeext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10795   (eval $ac_link) 2>conftest.er1
10796   ac_status=$?
10797   grep -v '^ *+' conftest.er1 >conftest.err
10798   rm -f conftest.er1
10799   cat conftest.err >&5
10800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801   (exit $ac_status); } &&
10802          { ac_try='test -z "$ac_c_werror_flag"
10803                          || test ! -s conftest.err'
10804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805   (eval $ac_try) 2>&5
10806   ac_status=$?
10807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808   (exit $ac_status); }; } &&
10809          { ac_try='test -s conftest$ac_exeext'
10810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811   (eval $ac_try) 2>&5
10812   ac_status=$?
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); }; }; then
10815   ac_cv_func_dlopen=yes
10816 else
10817   echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10819
10820 ac_cv_func_dlopen=no
10821 fi
10822 rm -f conftest.err conftest.$ac_objext \
10823       conftest$ac_exeext conftest.$ac_ext
10824 fi
10825 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10826 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10827 if test $ac_cv_func_dlopen = yes; then
10828   lt_cv_dlopen="dlopen"
10829 else
10830   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10831 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10832 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10833   echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835   ac_check_lib_save_LIBS=$LIBS
10836 LIBS="-ldl  $LIBS"
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h.  */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h.  */
10843
10844 /* Override any gcc2 internal prototype to avoid an error.  */
10845 #ifdef __cplusplus
10846 extern "C"
10847 #endif
10848 /* We use char because int might match the return type of a gcc2
10849    builtin and then its argument prototype would still apply.  */
10850 char dlopen ();
10851 int
10852 main ()
10853 {
10854 dlopen ();
10855   ;
10856   return 0;
10857 }
10858 _ACEOF
10859 rm -f conftest.$ac_objext conftest$ac_exeext
10860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10861   (eval $ac_link) 2>conftest.er1
10862   ac_status=$?
10863   grep -v '^ *+' conftest.er1 >conftest.err
10864   rm -f conftest.er1
10865   cat conftest.err >&5
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); } &&
10868          { ac_try='test -z "$ac_c_werror_flag"
10869                          || test ! -s conftest.err'
10870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871   (eval $ac_try) 2>&5
10872   ac_status=$?
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); }; } &&
10875          { ac_try='test -s conftest$ac_exeext'
10876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877   (eval $ac_try) 2>&5
10878   ac_status=$?
10879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880   (exit $ac_status); }; }; then
10881   ac_cv_lib_dl_dlopen=yes
10882 else
10883   echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10885
10886 ac_cv_lib_dl_dlopen=no
10887 fi
10888 rm -f conftest.err conftest.$ac_objext \
10889       conftest$ac_exeext conftest.$ac_ext
10890 LIBS=$ac_check_lib_save_LIBS
10891 fi
10892 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10893 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10894 if test $ac_cv_lib_dl_dlopen = yes; then
10895   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10896 else
10897   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10898 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10899 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10900   echo $ECHO_N "(cached) $ECHO_C" >&6
10901 else
10902   ac_check_lib_save_LIBS=$LIBS
10903 LIBS="-lsvld  $LIBS"
10904 cat >conftest.$ac_ext <<_ACEOF
10905 /* confdefs.h.  */
10906 _ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h.  */
10910
10911 /* Override any gcc2 internal prototype to avoid an error.  */
10912 #ifdef __cplusplus
10913 extern "C"
10914 #endif
10915 /* We use char because int might match the return type of a gcc2
10916    builtin and then its argument prototype would still apply.  */
10917 char dlopen ();
10918 int
10919 main ()
10920 {
10921 dlopen ();
10922   ;
10923   return 0;
10924 }
10925 _ACEOF
10926 rm -f conftest.$ac_objext conftest$ac_exeext
10927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10928   (eval $ac_link) 2>conftest.er1
10929   ac_status=$?
10930   grep -v '^ *+' conftest.er1 >conftest.err
10931   rm -f conftest.er1
10932   cat conftest.err >&5
10933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   (exit $ac_status); } &&
10935          { ac_try='test -z "$ac_c_werror_flag"
10936                          || test ! -s conftest.err'
10937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938   (eval $ac_try) 2>&5
10939   ac_status=$?
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); }; } &&
10942          { ac_try='test -s conftest$ac_exeext'
10943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944   (eval $ac_try) 2>&5
10945   ac_status=$?
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); }; }; then
10948   ac_cv_lib_svld_dlopen=yes
10949 else
10950   echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10952
10953 ac_cv_lib_svld_dlopen=no
10954 fi
10955 rm -f conftest.err conftest.$ac_objext \
10956       conftest$ac_exeext conftest.$ac_ext
10957 LIBS=$ac_check_lib_save_LIBS
10958 fi
10959 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10960 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10961 if test $ac_cv_lib_svld_dlopen = yes; then
10962   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10963 else
10964   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10965 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10966 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10967   echo $ECHO_N "(cached) $ECHO_C" >&6
10968 else
10969   ac_check_lib_save_LIBS=$LIBS
10970 LIBS="-ldld  $LIBS"
10971 cat >conftest.$ac_ext <<_ACEOF
10972 /* confdefs.h.  */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h.  */
10977
10978 /* Override any gcc2 internal prototype to avoid an error.  */
10979 #ifdef __cplusplus
10980 extern "C"
10981 #endif
10982 /* We use char because int might match the return type of a gcc2
10983    builtin and then its argument prototype would still apply.  */
10984 char dld_link ();
10985 int
10986 main ()
10987 {
10988 dld_link ();
10989   ;
10990   return 0;
10991 }
10992 _ACEOF
10993 rm -f conftest.$ac_objext conftest$ac_exeext
10994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10995   (eval $ac_link) 2>conftest.er1
10996   ac_status=$?
10997   grep -v '^ *+' conftest.er1 >conftest.err
10998   rm -f conftest.er1
10999   cat conftest.err >&5
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); } &&
11002          { ac_try='test -z "$ac_c_werror_flag"
11003                          || test ! -s conftest.err'
11004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005   (eval $ac_try) 2>&5
11006   ac_status=$?
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); }; } &&
11009          { ac_try='test -s conftest$ac_exeext'
11010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011   (eval $ac_try) 2>&5
11012   ac_status=$?
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); }; }; then
11015   ac_cv_lib_dld_dld_link=yes
11016 else
11017   echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11019
11020 ac_cv_lib_dld_dld_link=no
11021 fi
11022 rm -f conftest.err conftest.$ac_objext \
11023       conftest$ac_exeext conftest.$ac_ext
11024 LIBS=$ac_check_lib_save_LIBS
11025 fi
11026 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11027 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11028 if test $ac_cv_lib_dld_dld_link = yes; then
11029   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11030 fi
11031
11032
11033 fi
11034
11035
11036 fi
11037
11038
11039 fi
11040
11041
11042 fi
11043
11044
11045 fi
11046
11047     ;;
11048   esac
11049
11050   if test "x$lt_cv_dlopen" != xno; then
11051     enable_dlopen=yes
11052   else
11053     enable_dlopen=no
11054   fi
11055
11056   case $lt_cv_dlopen in
11057   dlopen)
11058     save_CPPFLAGS="$CPPFLAGS"
11059     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11060
11061     save_LDFLAGS="$LDFLAGS"
11062     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11063
11064     save_LIBS="$LIBS"
11065     LIBS="$lt_cv_dlopen_libs $LIBS"
11066
11067     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11068 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11069 if test "${lt_cv_dlopen_self+set}" = set; then
11070   echo $ECHO_N "(cached) $ECHO_C" >&6
11071 else
11072           if test "$cross_compiling" = yes; then :
11073   lt_cv_dlopen_self=cross
11074 else
11075   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11076   lt_status=$lt_dlunknown
11077   cat > conftest.$ac_ext <<EOF
11078 #line 11078 "configure"
11079 #include "confdefs.h"
11080
11081 #if HAVE_DLFCN_H
11082 #include <dlfcn.h>
11083 #endif
11084
11085 #include <stdio.h>
11086
11087 #ifdef RTLD_GLOBAL
11088 #  define LT_DLGLOBAL           RTLD_GLOBAL
11089 #else
11090 #  ifdef DL_GLOBAL
11091 #    define LT_DLGLOBAL         DL_GLOBAL
11092 #  else
11093 #    define LT_DLGLOBAL         0
11094 #  endif
11095 #endif
11096
11097 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11098    find out it does not work in some platform. */
11099 #ifndef LT_DLLAZY_OR_NOW
11100 #  ifdef RTLD_LAZY
11101 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11102 #  else
11103 #    ifdef DL_LAZY
11104 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11105 #    else
11106 #      ifdef RTLD_NOW
11107 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11108 #      else
11109 #        ifdef DL_NOW
11110 #          define LT_DLLAZY_OR_NOW      DL_NOW
11111 #        else
11112 #          define LT_DLLAZY_OR_NOW      0
11113 #        endif
11114 #      endif
11115 #    endif
11116 #  endif
11117 #endif
11118
11119 #ifdef __cplusplus
11120 extern "C" void exit (int);
11121 #endif
11122
11123 void fnord() { int i=42;}
11124 int main ()
11125 {
11126   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11127   int status = $lt_dlunknown;
11128
11129   if (self)
11130     {
11131       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11132       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11133       /* dlclose (self); */
11134     }
11135
11136     exit (status);
11137 }
11138 EOF
11139   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11140   (eval $ac_link) 2>&5
11141   ac_status=$?
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11144     (./conftest; exit; ) 2>/dev/null
11145     lt_status=$?
11146     case x$lt_status in
11147       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11148       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11149       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11150     esac
11151   else :
11152     # compilation failed
11153     lt_cv_dlopen_self=no
11154   fi
11155 fi
11156 rm -fr conftest*
11157
11158
11159 fi
11160 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11161 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11162
11163     if test "x$lt_cv_dlopen_self" = xyes; then
11164       LDFLAGS="$LDFLAGS $link_static_flag"
11165       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11166 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11167 if test "${lt_cv_dlopen_self_static+set}" = set; then
11168   echo $ECHO_N "(cached) $ECHO_C" >&6
11169 else
11170           if test "$cross_compiling" = yes; then :
11171   lt_cv_dlopen_self_static=cross
11172 else
11173   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11174   lt_status=$lt_dlunknown
11175   cat > conftest.$ac_ext <<EOF
11176 #line 11176 "configure"
11177 #include "confdefs.h"
11178
11179 #if HAVE_DLFCN_H
11180 #include <dlfcn.h>
11181 #endif
11182
11183 #include <stdio.h>
11184
11185 #ifdef RTLD_GLOBAL
11186 #  define LT_DLGLOBAL           RTLD_GLOBAL
11187 #else
11188 #  ifdef DL_GLOBAL
11189 #    define LT_DLGLOBAL         DL_GLOBAL
11190 #  else
11191 #    define LT_DLGLOBAL         0
11192 #  endif
11193 #endif
11194
11195 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11196    find out it does not work in some platform. */
11197 #ifndef LT_DLLAZY_OR_NOW
11198 #  ifdef RTLD_LAZY
11199 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11200 #  else
11201 #    ifdef DL_LAZY
11202 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11203 #    else
11204 #      ifdef RTLD_NOW
11205 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11206 #      else
11207 #        ifdef DL_NOW
11208 #          define LT_DLLAZY_OR_NOW      DL_NOW
11209 #        else
11210 #          define LT_DLLAZY_OR_NOW      0
11211 #        endif
11212 #      endif
11213 #    endif
11214 #  endif
11215 #endif
11216
11217 #ifdef __cplusplus
11218 extern "C" void exit (int);
11219 #endif
11220
11221 void fnord() { int i=42;}
11222 int main ()
11223 {
11224   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11225   int status = $lt_dlunknown;
11226
11227   if (self)
11228     {
11229       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11230       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11231       /* dlclose (self); */
11232     }
11233
11234     exit (status);
11235 }
11236 EOF
11237   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11238   (eval $ac_link) 2>&5
11239   ac_status=$?
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11242     (./conftest; exit; ) 2>/dev/null
11243     lt_status=$?
11244     case x$lt_status in
11245       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11246       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11247       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11248     esac
11249   else :
11250     # compilation failed
11251     lt_cv_dlopen_self_static=no
11252   fi
11253 fi
11254 rm -fr conftest*
11255
11256
11257 fi
11258 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11259 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11260     fi
11261
11262     CPPFLAGS="$save_CPPFLAGS"
11263     LDFLAGS="$save_LDFLAGS"
11264     LIBS="$save_LIBS"
11265     ;;
11266   esac
11267
11268   case $lt_cv_dlopen_self in
11269   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11270   *) enable_dlopen_self=unknown ;;
11271   esac
11272
11273   case $lt_cv_dlopen_self_static in
11274   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11275   *) enable_dlopen_self_static=unknown ;;
11276   esac
11277 fi
11278
11279
11280 # Report which librarie types wil actually be built
11281 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11282 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11283 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11284 echo "${ECHO_T}$can_build_shared" >&6
11285
11286 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11287 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11288 test "$can_build_shared" = "no" && enable_shared=no
11289
11290 # On AIX, shared libraries and static libraries use the same namespace, and
11291 # are all built from PIC.
11292 case "$host_os" in
11293 aix3*)
11294   test "$enable_shared" = yes && enable_static=no
11295   if test -n "$RANLIB"; then
11296     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11297     postinstall_cmds='$RANLIB $lib'
11298   fi
11299   ;;
11300
11301 aix4* | aix5*)
11302   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11303     test "$enable_shared" = yes && enable_static=no
11304   fi
11305     ;;
11306 esac
11307 echo "$as_me:$LINENO: result: $enable_shared" >&5
11308 echo "${ECHO_T}$enable_shared" >&6
11309
11310 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11311 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11312 # Make sure either enable_shared or enable_static is yes.
11313 test "$enable_shared" = yes || enable_static=yes
11314 echo "$as_me:$LINENO: result: $enable_static" >&5
11315 echo "${ECHO_T}$enable_static" >&6
11316
11317 # The else clause should only fire when bootstrapping the
11318 # libtool distribution, otherwise you forgot to ship ltmain.sh
11319 # with your package, and you will get complaints that there are
11320 # no rules to generate ltmain.sh.
11321 if test -f "$ltmain"; then
11322   # See if we are running on zsh, and set the options which allow our commands through
11323   # without removal of \ escapes.
11324   if test -n "${ZSH_VERSION+set}" ; then
11325     setopt NO_GLOB_SUBST
11326   fi
11327   # Now quote all the things that may contain metacharacters while being
11328   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11329   # variables and quote the copies for generation of the libtool script.
11330   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11331     SED SHELL STRIP \
11332     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11333     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11334     deplibs_check_method reload_flag reload_cmds need_locks \
11335     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11336     lt_cv_sys_global_symbol_to_c_name_address \
11337     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11338     old_postinstall_cmds old_postuninstall_cmds \
11339     compiler \
11340     CC \
11341     LD \
11342     lt_prog_compiler_wl \
11343     lt_prog_compiler_pic \
11344     lt_prog_compiler_static \
11345     lt_prog_compiler_no_builtin_flag \
11346     export_dynamic_flag_spec \
11347     thread_safe_flag_spec \
11348     whole_archive_flag_spec \
11349     enable_shared_with_static_runtimes \
11350     old_archive_cmds \
11351     old_archive_from_new_cmds \
11352     predep_objects \
11353     postdep_objects \
11354     predeps \
11355     postdeps \
11356     compiler_lib_search_path \
11357     archive_cmds \
11358     archive_expsym_cmds \
11359     postinstall_cmds \
11360     postuninstall_cmds \
11361     old_archive_from_expsyms_cmds \
11362     allow_undefined_flag \
11363     no_undefined_flag \
11364     export_symbols_cmds \
11365     hardcode_libdir_flag_spec \
11366     hardcode_libdir_flag_spec_ld \
11367     hardcode_libdir_separator \
11368     hardcode_automatic \
11369     module_cmds \
11370     module_expsym_cmds \
11371     lt_cv_prog_compiler_c_o \
11372     exclude_expsyms \
11373     include_expsyms; do
11374
11375     case $var in
11376     old_archive_cmds | \
11377     old_archive_from_new_cmds | \
11378     archive_cmds | \
11379     archive_expsym_cmds | \
11380     module_cmds | \
11381     module_expsym_cmds | \
11382     old_archive_from_expsyms_cmds | \
11383     export_symbols_cmds | \
11384     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11385     postinstall_cmds | postuninstall_cmds | \
11386     old_postinstall_cmds | old_postuninstall_cmds | \
11387     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11388       # Double-quote double-evaled strings.
11389       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11390       ;;
11391     *)
11392       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11393       ;;
11394     esac
11395   done
11396
11397   case $lt_echo in
11398   *'\$0 --fallback-echo"')
11399     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11400     ;;
11401   esac
11402
11403 cfgfile="${ofile}T"
11404   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11405   $rm -f "$cfgfile"
11406   { echo "$as_me:$LINENO: creating $ofile" >&5
11407 echo "$as_me: creating $ofile" >&6;}
11408
11409   cat <<__EOF__ >> "$cfgfile"
11410 #! $SHELL
11411
11412 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11413 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11414 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11415 #
11416 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11417 # Free Software Foundation, Inc.
11418 #
11419 # This file is part of GNU Libtool:
11420 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11421 #
11422 # This program is free software; you can redistribute it and/or modify
11423 # it under the terms of the GNU General Public License as published by
11424 # the Free Software Foundation; either version 2 of the License, or
11425 # (at your option) any later version.
11426 #
11427 # This program is distributed in the hope that it will be useful, but
11428 # WITHOUT ANY WARRANTY; without even the implied warranty of
11429 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11430 # General Public License for more details.
11431 #
11432 # You should have received a copy of the GNU General Public License
11433 # along with this program; if not, write to the Free Software
11434 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11435 #
11436 # As a special exception to the GNU General Public License, if you
11437 # distribute this file as part of a program that contains a
11438 # configuration script generated by Autoconf, you may include it under
11439 # the same distribution terms that you use for the rest of that program.
11440
11441 # A sed program that does not truncate output.
11442 SED=$lt_SED
11443
11444 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11445 Xsed="$SED -e 1s/^X//"
11446
11447 # The HP-UX ksh and POSIX shell print the target directory to stdout
11448 # if CDPATH is set.
11449 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11450
11451 # The names of the tagged configurations supported by this script.
11452 available_tags=
11453
11454 # ### BEGIN LIBTOOL CONFIG
11455
11456 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11457
11458 # Shell to use when invoking shell scripts.
11459 SHELL=$lt_SHELL
11460
11461 # Whether or not to build shared libraries.
11462 build_libtool_libs=$enable_shared
11463
11464 # Whether or not to build static libraries.
11465 build_old_libs=$enable_static
11466
11467 # Whether or not to add -lc for building shared libraries.
11468 build_libtool_need_lc=$archive_cmds_need_lc
11469
11470 # Whether or not to disallow shared libs when runtime libs are static
11471 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11472
11473 # Whether or not to optimize for fast installation.
11474 fast_install=$enable_fast_install
11475
11476 # The host system.
11477 host_alias=$host_alias
11478 host=$host
11479 host_os=$host_os
11480
11481 # The build system.
11482 build_alias=$build_alias
11483 build=$build
11484 build_os=$build_os
11485
11486 # An echo program that does not interpret backslashes.
11487 echo=$lt_echo
11488
11489 # The archiver.
11490 AR=$lt_AR
11491 AR_FLAGS=$lt_AR_FLAGS
11492
11493 # A C compiler.
11494 LTCC=$lt_LTCC
11495
11496 # A language-specific compiler.
11497 CC=$lt_compiler
11498
11499 # Is the compiler the GNU C compiler?
11500 with_gcc=$GCC
11501
11502 # An ERE matcher.
11503 EGREP=$lt_EGREP
11504
11505 # The linker used to build libraries.
11506 LD=$lt_LD
11507
11508 # Whether we need hard or soft links.
11509 LN_S=$lt_LN_S
11510
11511 # A BSD-compatible nm program.
11512 NM=$lt_NM
11513
11514 # A symbol stripping program
11515 STRIP=$lt_STRIP
11516
11517 # Used to examine libraries when file_magic_cmd begins "file"
11518 MAGIC_CMD=$MAGIC_CMD
11519
11520 # Used on cygwin: DLL creation program.
11521 DLLTOOL="$DLLTOOL"
11522
11523 # Used on cygwin: object dumper.
11524 OBJDUMP="$OBJDUMP"
11525
11526 # Used on cygwin: assembler.
11527 AS="$AS"
11528
11529 # The name of the directory that contains temporary libtool files.
11530 objdir=$objdir
11531
11532 # How to create reloadable object files.
11533 reload_flag=$lt_reload_flag
11534 reload_cmds=$lt_reload_cmds
11535
11536 # How to pass a linker flag through the compiler.
11537 wl=$lt_lt_prog_compiler_wl
11538
11539 # Object file suffix (normally "o").
11540 objext="$ac_objext"
11541
11542 # Old archive suffix (normally "a").
11543 libext="$libext"
11544
11545 # Shared library suffix (normally ".so").
11546 shrext_cmds='$shrext_cmds'
11547
11548 # Executable file suffix (normally "").
11549 exeext="$exeext"
11550
11551 # Additional compiler flags for building library objects.
11552 pic_flag=$lt_lt_prog_compiler_pic
11553 pic_mode=$pic_mode
11554
11555 # What is the maximum length of a command?
11556 max_cmd_len=$lt_cv_sys_max_cmd_len
11557
11558 # Does compiler simultaneously support -c and -o options?
11559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11560
11561 # Must we lock files when doing compilation?
11562 need_locks=$lt_need_locks
11563
11564 # Do we need the lib prefix for modules?
11565 need_lib_prefix=$need_lib_prefix
11566
11567 # Do we need a version for libraries?
11568 need_version=$need_version
11569
11570 # Whether dlopen is supported.
11571 dlopen_support=$enable_dlopen
11572
11573 # Whether dlopen of programs is supported.
11574 dlopen_self=$enable_dlopen_self
11575
11576 # Whether dlopen of statically linked programs is supported.
11577 dlopen_self_static=$enable_dlopen_self_static
11578
11579 # Compiler flag to prevent dynamic linking.
11580 link_static_flag=$lt_lt_prog_compiler_static
11581
11582 # Compiler flag to turn off builtin functions.
11583 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11584
11585 # Compiler flag to allow reflexive dlopens.
11586 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11587
11588 # Compiler flag to generate shared objects directly from archives.
11589 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11590
11591 # Compiler flag to generate thread-safe objects.
11592 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11593
11594 # Library versioning type.
11595 version_type=$version_type
11596
11597 # Format of library name prefix.
11598 libname_spec=$lt_libname_spec
11599
11600 # List of archive names.  First name is the real one, the rest are links.
11601 # The last name is the one that the linker finds with -lNAME.
11602 library_names_spec=$lt_library_names_spec
11603
11604 # The coded name of the library, if different from the real name.
11605 soname_spec=$lt_soname_spec
11606
11607 # Commands used to build and install an old-style archive.
11608 RANLIB=$lt_RANLIB
11609 old_archive_cmds=$lt_old_archive_cmds
11610 old_postinstall_cmds=$lt_old_postinstall_cmds
11611 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11612
11613 # Create an old-style archive from a shared archive.
11614 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11615
11616 # Create a temporary old-style archive to link instead of a shared archive.
11617 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11618
11619 # Commands used to build and install a shared archive.
11620 archive_cmds=$lt_archive_cmds
11621 archive_expsym_cmds=$lt_archive_expsym_cmds
11622 postinstall_cmds=$lt_postinstall_cmds
11623 postuninstall_cmds=$lt_postuninstall_cmds
11624
11625 # Commands used to build a loadable module (assumed same as above if empty)
11626 module_cmds=$lt_module_cmds
11627 module_expsym_cmds=$lt_module_expsym_cmds
11628
11629 # Commands to strip libraries.
11630 old_striplib=$lt_old_striplib
11631 striplib=$lt_striplib
11632
11633 # Dependencies to place before the objects being linked to create a
11634 # shared library.
11635 predep_objects=$lt_predep_objects
11636
11637 # Dependencies to place after the objects being linked to create a
11638 # shared library.
11639 postdep_objects=$lt_postdep_objects
11640
11641 # Dependencies to place before the objects being linked to create a
11642 # shared library.
11643 predeps=$lt_predeps
11644
11645 # Dependencies to place after the objects being linked to create a
11646 # shared library.
11647 postdeps=$lt_postdeps
11648
11649 # The library search path used internally by the compiler when linking
11650 # a shared library.
11651 compiler_lib_search_path=$lt_compiler_lib_search_path
11652
11653 # Method to check whether dependent libraries are shared objects.
11654 deplibs_check_method=$lt_deplibs_check_method
11655
11656 # Command to use when deplibs_check_method == file_magic.
11657 file_magic_cmd=$lt_file_magic_cmd
11658
11659 # Flag that allows shared libraries with undefined symbols to be built.
11660 allow_undefined_flag=$lt_allow_undefined_flag
11661
11662 # Flag that forces no undefined symbols.
11663 no_undefined_flag=$lt_no_undefined_flag
11664
11665 # Commands used to finish a libtool library installation in a directory.
11666 finish_cmds=$lt_finish_cmds
11667
11668 # Same as above, but a single script fragment to be evaled but not shown.
11669 finish_eval=$lt_finish_eval
11670
11671 # Take the output of nm and produce a listing of raw symbols and C names.
11672 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11673
11674 # Transform the output of nm in a proper C declaration
11675 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11676
11677 # Transform the output of nm in a C name address pair
11678 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11679
11680 # This is the shared library runtime path variable.
11681 runpath_var=$runpath_var
11682
11683 # This is the shared library path variable.
11684 shlibpath_var=$shlibpath_var
11685
11686 # Is shlibpath searched before the hard-coded library search path?
11687 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11688
11689 # How to hardcode a shared library path into an executable.
11690 hardcode_action=$hardcode_action
11691
11692 # Whether we should hardcode library paths into libraries.
11693 hardcode_into_libs=$hardcode_into_libs
11694
11695 # Flag to hardcode \$libdir into a binary during linking.
11696 # This must work even if \$libdir does not exist.
11697 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11698
11699 # If ld is used when linking, flag to hardcode \$libdir into
11700 # a binary during linking. This must work even if \$libdir does
11701 # not exist.
11702 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11703
11704 # Whether we need a single -rpath flag with a separated argument.
11705 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11706
11707 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11708 # resulting binary.
11709 hardcode_direct=$hardcode_direct
11710
11711 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11712 # resulting binary.
11713 hardcode_minus_L=$hardcode_minus_L
11714
11715 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11716 # the resulting binary.
11717 hardcode_shlibpath_var=$hardcode_shlibpath_var
11718
11719 # Set to yes if building a shared library automatically hardcodes DIR into the library
11720 # and all subsequent libraries and executables linked against it.
11721 hardcode_automatic=$hardcode_automatic
11722
11723 # Variables whose values should be saved in libtool wrapper scripts and
11724 # restored at relink time.
11725 variables_saved_for_relink="$variables_saved_for_relink"
11726
11727 # Whether libtool must link a program against all its dependency libraries.
11728 link_all_deplibs=$link_all_deplibs
11729
11730 # Compile-time system search path for libraries
11731 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11732
11733 # Run-time system search path for libraries
11734 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11735
11736 # Fix the shell variable \$srcfile for the compiler.
11737 fix_srcfile_path="$fix_srcfile_path"
11738
11739 # Set to yes if exported symbols are required.
11740 always_export_symbols=$always_export_symbols
11741
11742 # The commands to list exported symbols.
11743 export_symbols_cmds=$lt_export_symbols_cmds
11744
11745 # The commands to extract the exported symbol list from a shared archive.
11746 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11747
11748 # Symbols that should not be listed in the preloaded symbols.
11749 exclude_expsyms=$lt_exclude_expsyms
11750
11751 # Symbols that must always be exported.
11752 include_expsyms=$lt_include_expsyms
11753
11754 # ### END LIBTOOL CONFIG
11755
11756 __EOF__
11757
11758
11759   case $host_os in
11760   aix3*)
11761     cat <<\EOF >> "$cfgfile"
11762
11763 # AIX sometimes has problems with the GCC collect2 program.  For some
11764 # reason, if we set the COLLECT_NAMES environment variable, the problems
11765 # vanish in a puff of smoke.
11766 if test "X${COLLECT_NAMES+set}" != Xset; then
11767   COLLECT_NAMES=
11768   export COLLECT_NAMES
11769 fi
11770 EOF
11771     ;;
11772   esac
11773
11774   # We use sed instead of cat because bash on DJGPP gets confused if
11775   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11776   # text mode, it properly converts lines to CR/LF.  This bash problem
11777   # is reportedly fixed, but why not run on old versions too?
11778   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11779
11780   mv -f "$cfgfile" "$ofile" || \
11781     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11782   chmod +x "$ofile"
11783
11784 else
11785   # If there is no Makefile yet, we rely on a make rule to execute
11786   # `config.status --recheck' to rerun these tests and create the
11787   # libtool script then.
11788   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11789   if test -f "$ltmain_in"; then
11790     test -f Makefile && make "$ltmain"
11791   fi
11792 fi
11793
11794
11795 ac_ext=c
11796 ac_cpp='$CPP $CPPFLAGS'
11797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11800
11801 CC="$lt_save_CC"
11802
11803
11804 # Check whether --with-tags or --without-tags was given.
11805 if test "${with_tags+set}" = set; then
11806   withval="$with_tags"
11807   tagnames="$withval"
11808 fi;
11809
11810 if test -f "$ltmain" && test -n "$tagnames"; then
11811   if test ! -f "${ofile}"; then
11812     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11813 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11814   fi
11815
11816   if test -z "$LTCC"; then
11817     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11818     if test -z "$LTCC"; then
11819       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11820 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11821     else
11822       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11823 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11824     fi
11825   fi
11826
11827   # Extract list of available tagged configurations in $ofile.
11828   # Note that this assumes the entire list is on one line.
11829   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11830
11831   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11832   for tagname in $tagnames; do
11833     IFS="$lt_save_ifs"
11834     # Check whether tagname contains only valid characters
11835     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11836     "") ;;
11837     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11838 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11839    { (exit 1); exit 1; }; }
11840         ;;
11841     esac
11842
11843     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11844     then
11845       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11846 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11847    { (exit 1); exit 1; }; }
11848     fi
11849
11850     # Update the list of available tags.
11851     if test -n "$tagname"; then
11852       echo appending configuration tag \"$tagname\" to $ofile
11853
11854       case $tagname in
11855       CXX)
11856         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11857             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11858             (test "X$CXX" != "Xg++"))) ; then
11859           ac_ext=cc
11860 ac_cpp='$CXXCPP $CPPFLAGS'
11861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11864
11865
11866
11867
11868 archive_cmds_need_lc_CXX=no
11869 allow_undefined_flag_CXX=
11870 always_export_symbols_CXX=no
11871 archive_expsym_cmds_CXX=
11872 export_dynamic_flag_spec_CXX=
11873 hardcode_direct_CXX=no
11874 hardcode_libdir_flag_spec_CXX=
11875 hardcode_libdir_flag_spec_ld_CXX=
11876 hardcode_libdir_separator_CXX=
11877 hardcode_minus_L_CXX=no
11878 hardcode_automatic_CXX=no
11879 module_cmds_CXX=
11880 module_expsym_cmds_CXX=
11881 link_all_deplibs_CXX=unknown
11882 old_archive_cmds_CXX=$old_archive_cmds
11883 no_undefined_flag_CXX=
11884 whole_archive_flag_spec_CXX=
11885 enable_shared_with_static_runtimes_CXX=no
11886
11887 # Dependencies to place before and after the object being linked:
11888 predep_objects_CXX=
11889 postdep_objects_CXX=
11890 predeps_CXX=
11891 postdeps_CXX=
11892 compiler_lib_search_path_CXX=
11893
11894 # Source file extension for C++ test sources.
11895 ac_ext=cc
11896
11897 # Object file extension for compiled C++ test sources.
11898 objext=o
11899 objext_CXX=$objext
11900
11901 # Code to be used in simple compile tests
11902 lt_simple_compile_test_code="int some_variable = 0;\n"
11903
11904 # Code to be used in simple link tests
11905 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11906
11907 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11908
11909 # If no C compiler was specified, use CC.
11910 LTCC=${LTCC-"$CC"}
11911
11912 # Allow CC to be a program name with arguments.
11913 compiler=$CC
11914
11915
11916 # save warnings/boilerplate of simple test code
11917 ac_outfile=conftest.$ac_objext
11918 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11919 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11920 _lt_compiler_boilerplate=`cat conftest.err`
11921 $rm conftest*
11922
11923 ac_outfile=conftest.$ac_objext
11924 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11925 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11926 _lt_linker_boilerplate=`cat conftest.err`
11927 $rm conftest*
11928
11929
11930 # Allow CC to be a program name with arguments.
11931 lt_save_CC=$CC
11932 lt_save_LD=$LD
11933 lt_save_GCC=$GCC
11934 GCC=$GXX
11935 lt_save_with_gnu_ld=$with_gnu_ld
11936 lt_save_path_LD=$lt_cv_path_LD
11937 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11938   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11939 else
11940   unset lt_cv_prog_gnu_ld
11941 fi
11942 if test -n "${lt_cv_path_LDCXX+set}"; then
11943   lt_cv_path_LD=$lt_cv_path_LDCXX
11944 else
11945   unset lt_cv_path_LD
11946 fi
11947 test -z "${LDCXX+set}" || LD=$LDCXX
11948 CC=${CXX-"c++"}
11949 compiler=$CC
11950 compiler_CXX=$CC
11951 for cc_temp in $compiler""; do
11952   case $cc_temp in
11953     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11954     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11955     \-*) ;;
11956     *) break;;
11957   esac
11958 done
11959 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11960
11961
11962 # We don't want -fno-exception wen compiling C++ code, so set the
11963 # no_builtin_flag separately
11964 if test "$GXX" = yes; then
11965   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11966 else
11967   lt_prog_compiler_no_builtin_flag_CXX=
11968 fi
11969
11970 if test "$GXX" = yes; then
11971   # Set up default GNU C++ configuration
11972
11973
11974 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11975 if test "${with_gnu_ld+set}" = set; then
11976   withval="$with_gnu_ld"
11977   test "$withval" = no || with_gnu_ld=yes
11978 else
11979   with_gnu_ld=no
11980 fi;
11981 ac_prog=ld
11982 if test "$GCC" = yes; then
11983   # Check if gcc -print-prog-name=ld gives a path.
11984   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11985 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11986   case $host in
11987   *-*-mingw*)
11988     # gcc leaves a trailing carriage return which upsets mingw
11989     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11990   *)
11991     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11992   esac
11993   case $ac_prog in
11994     # Accept absolute paths.
11995     [\\/]* | ?:[\\/]*)
11996       re_direlt='/[^/][^/]*/\.\./'
11997       # Canonicalize the pathname of ld
11998       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11999       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12000         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12001       done
12002       test -z "$LD" && LD="$ac_prog"
12003       ;;
12004   "")
12005     # If it fails, then pretend we aren't using GCC.
12006     ac_prog=ld
12007     ;;
12008   *)
12009     # If it is relative, then search for the first ld in PATH.
12010     with_gnu_ld=unknown
12011     ;;
12012   esac
12013 elif test "$with_gnu_ld" = yes; then
12014   echo "$as_me:$LINENO: checking for GNU ld" >&5
12015 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12016 else
12017   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12018 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12019 fi
12020 if test "${lt_cv_path_LD+set}" = set; then
12021   echo $ECHO_N "(cached) $ECHO_C" >&6
12022 else
12023   if test -z "$LD"; then
12024   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12025   for ac_dir in $PATH; do
12026     IFS="$lt_save_ifs"
12027     test -z "$ac_dir" && ac_dir=.
12028     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12029       lt_cv_path_LD="$ac_dir/$ac_prog"
12030       # Check to see if the program is GNU ld.  I'd rather use --version,
12031       # but apparently some GNU ld's only accept -v.
12032       # Break only if it was the GNU/non-GNU ld that we prefer.
12033       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12034       *GNU* | *'with BFD'*)
12035         test "$with_gnu_ld" != no && break
12036         ;;
12037       *)
12038         test "$with_gnu_ld" != yes && break
12039         ;;
12040       esac
12041     fi
12042   done
12043   IFS="$lt_save_ifs"
12044 else
12045   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12046 fi
12047 fi
12048
12049 LD="$lt_cv_path_LD"
12050 if test -n "$LD"; then
12051   echo "$as_me:$LINENO: result: $LD" >&5
12052 echo "${ECHO_T}$LD" >&6
12053 else
12054   echo "$as_me:$LINENO: result: no" >&5
12055 echo "${ECHO_T}no" >&6
12056 fi
12057 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12058 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12059    { (exit 1); exit 1; }; }
12060 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12061 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12062 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12063   echo $ECHO_N "(cached) $ECHO_C" >&6
12064 else
12065   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12066 case `$LD -v 2>&1 </dev/null` in
12067 *GNU* | *'with BFD'*)
12068   lt_cv_prog_gnu_ld=yes
12069   ;;
12070 *)
12071   lt_cv_prog_gnu_ld=no
12072   ;;
12073 esac
12074 fi
12075 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12076 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12077 with_gnu_ld=$lt_cv_prog_gnu_ld
12078
12079
12080
12081   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12082   # archiving commands below assume that GNU ld is being used.
12083   if test "$with_gnu_ld" = yes; then
12084     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12085     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12086
12087     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12088     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12089
12090     # If archive_cmds runs LD, not CC, wlarc should be empty
12091     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12092     #     investigate it a little bit more. (MM)
12093     wlarc='${wl}'
12094
12095     # ancient GNU ld didn't support --whole-archive et. al.
12096     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12097         grep 'no-whole-archive' > /dev/null; then
12098       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12099     else
12100       whole_archive_flag_spec_CXX=
12101     fi
12102   else
12103     with_gnu_ld=no
12104     wlarc=
12105
12106     # A generic and very simple default shared library creation
12107     # command for GNU C++ for the case where it uses the native
12108     # linker, instead of GNU ld.  If possible, this setting should
12109     # overridden to take advantage of the native linker features on
12110     # the platform it is being used on.
12111     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12112   fi
12113
12114   # Commands to make compiler produce verbose output that lists
12115   # what "hidden" libraries, object files and flags are used when
12116   # linking a shared library.
12117   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12118
12119 else
12120   GXX=no
12121   with_gnu_ld=no
12122   wlarc=
12123 fi
12124
12125 # PORTME: fill in a description of your system's C++ link characteristics
12126 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12127 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12128 ld_shlibs_CXX=yes
12129 case $host_os in
12130   aix3*)
12131     # FIXME: insert proper C++ library support
12132     ld_shlibs_CXX=no
12133     ;;
12134   aix4* | aix5*)
12135     if test "$host_cpu" = ia64; then
12136       # On IA64, the linker does run time linking by default, so we don't
12137       # have to do anything special.
12138       aix_use_runtimelinking=no
12139       exp_sym_flag='-Bexport'
12140       no_entry_flag=""
12141     else
12142       aix_use_runtimelinking=no
12143
12144       # Test if we are trying to use run time linking or normal
12145       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12146       # need to do runtime linking.
12147       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12148         for ld_flag in $LDFLAGS; do
12149           case $ld_flag in
12150           *-brtl*)
12151             aix_use_runtimelinking=yes
12152             break
12153             ;;
12154           esac
12155         done
12156       esac
12157
12158       exp_sym_flag='-bexport'
12159       no_entry_flag='-bnoentry'
12160     fi
12161
12162     # When large executables or shared objects are built, AIX ld can
12163     # have problems creating the table of contents.  If linking a library
12164     # or program results in "error TOC overflow" add -mminimal-toc to
12165     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12166     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12167
12168     archive_cmds_CXX=''
12169     hardcode_direct_CXX=yes
12170     hardcode_libdir_separator_CXX=':'
12171     link_all_deplibs_CXX=yes
12172
12173     if test "$GXX" = yes; then
12174       case $host_os in aix4.[012]|aix4.[012].*)
12175       # We only want to do this on AIX 4.2 and lower, the check
12176       # below for broken collect2 doesn't work under 4.3+
12177         collect2name=`${CC} -print-prog-name=collect2`
12178         if test -f "$collect2name" && \
12179            strings "$collect2name" | grep resolve_lib_name >/dev/null
12180         then
12181           # We have reworked collect2
12182           hardcode_direct_CXX=yes
12183         else
12184           # We have old collect2
12185           hardcode_direct_CXX=unsupported
12186           # It fails to find uninstalled libraries when the uninstalled
12187           # path is not listed in the libpath.  Setting hardcode_minus_L
12188           # to unsupported forces relinking
12189           hardcode_minus_L_CXX=yes
12190           hardcode_libdir_flag_spec_CXX='-L$libdir'
12191           hardcode_libdir_separator_CXX=
12192         fi
12193       esac
12194       shared_flag='-shared'
12195       if test "$aix_use_runtimelinking" = yes; then
12196         shared_flag="$shared_flag "'${wl}-G'
12197       fi
12198     else
12199       # not using gcc
12200       if test "$host_cpu" = ia64; then
12201         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12202         # chokes on -Wl,-G. The following line is correct:
12203         shared_flag='-G'
12204       else
12205         if test "$aix_use_runtimelinking" = yes; then
12206           shared_flag='${wl}-G'
12207         else
12208           shared_flag='${wl}-bM:SRE'
12209         fi
12210       fi
12211     fi
12212
12213     # It seems that -bexpall does not export symbols beginning with
12214     # underscore (_), so it is better to generate a list of symbols to export.
12215     always_export_symbols_CXX=yes
12216     if test "$aix_use_runtimelinking" = yes; then
12217       # Warning - without using the other runtime loading flags (-brtl),
12218       # -berok will link without error, but may produce a broken library.
12219       allow_undefined_flag_CXX='-berok'
12220       # Determine the default libpath from the value encoded in an empty executable.
12221       cat >conftest.$ac_ext <<_ACEOF
12222 /* confdefs.h.  */
12223 _ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h.  */
12227
12228 int
12229 main ()
12230 {
12231
12232   ;
12233   return 0;
12234 }
12235 _ACEOF
12236 rm -f conftest.$ac_objext conftest$ac_exeext
12237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12238   (eval $ac_link) 2>conftest.er1
12239   ac_status=$?
12240   grep -v '^ *+' conftest.er1 >conftest.err
12241   rm -f conftest.er1
12242   cat conftest.err >&5
12243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244   (exit $ac_status); } &&
12245          { ac_try='test -z "$ac_cxx_werror_flag"
12246                          || test ! -s conftest.err'
12247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248   (eval $ac_try) 2>&5
12249   ac_status=$?
12250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); }; } &&
12252          { ac_try='test -s conftest$ac_exeext'
12253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254   (eval $ac_try) 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); }; }; then
12258
12259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12260 }'`
12261 # Check for a 64-bit object if we didn't find anything.
12262 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; }
12263 }'`; fi
12264 else
12265   echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12267
12268 fi
12269 rm -f conftest.err conftest.$ac_objext \
12270       conftest$ac_exeext conftest.$ac_ext
12271 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12272
12273       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12274
12275       archive_expsym_cmds_CXX="\$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"
12276      else
12277       if test "$host_cpu" = ia64; then
12278         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12279         allow_undefined_flag_CXX="-z nodefs"
12280         archive_expsym_cmds_CXX="\$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"
12281       else
12282         # Determine the default libpath from the value encoded in an empty executable.
12283         cat >conftest.$ac_ext <<_ACEOF
12284 /* confdefs.h.  */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h.  */
12289
12290 int
12291 main ()
12292 {
12293
12294   ;
12295   return 0;
12296 }
12297 _ACEOF
12298 rm -f conftest.$ac_objext conftest$ac_exeext
12299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12300   (eval $ac_link) 2>conftest.er1
12301   ac_status=$?
12302   grep -v '^ *+' conftest.er1 >conftest.err
12303   rm -f conftest.er1
12304   cat conftest.err >&5
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); } &&
12307          { ac_try='test -z "$ac_cxx_werror_flag"
12308                          || test ! -s conftest.err'
12309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310   (eval $ac_try) 2>&5
12311   ac_status=$?
12312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313   (exit $ac_status); }; } &&
12314          { ac_try='test -s conftest$ac_exeext'
12315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316   (eval $ac_try) 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); }; }; then
12320
12321 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12322 }'`
12323 # Check for a 64-bit object if we didn't find anything.
12324 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; }
12325 }'`; fi
12326 else
12327   echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12329
12330 fi
12331 rm -f conftest.err conftest.$ac_objext \
12332       conftest$ac_exeext conftest.$ac_ext
12333 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12334
12335         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12336         # Warning - without using the other run time loading flags,
12337         # -berok will link without error, but may produce a broken library.
12338         no_undefined_flag_CXX=' ${wl}-bernotok'
12339         allow_undefined_flag_CXX=' ${wl}-berok'
12340         # -bexpall does not export symbols beginning with underscore (_)
12341         always_export_symbols_CXX=yes
12342         # Exported symbols can be pulled into shared objects from archives
12343         whole_archive_flag_spec_CXX=' '
12344         archive_cmds_need_lc_CXX=yes
12345         # This is similar to how AIX traditionally builds it's shared libraries.
12346         archive_expsym_cmds_CXX="\$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'
12347       fi
12348     fi
12349     ;;
12350   chorus*)
12351     case $cc_basename in
12352       *)
12353         # FIXME: insert proper C++ library support
12354         ld_shlibs_CXX=no
12355         ;;
12356     esac
12357     ;;
12358
12359
12360   cygwin* | mingw* | pw32*)
12361     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12362     # as there is no search path for DLLs.
12363     hardcode_libdir_flag_spec_CXX='-L$libdir'
12364     allow_undefined_flag_CXX=unsupported
12365     always_export_symbols_CXX=no
12366     enable_shared_with_static_runtimes_CXX=yes
12367
12368     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12369       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12370       # If the export-symbols file already is a .def file (1st line
12371       # is EXPORTS), use it as is; otherwise, prepend...
12372       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12373         cp $export_symbols $output_objdir/$soname.def;
12374       else
12375         echo EXPORTS > $output_objdir/$soname.def;
12376         cat $export_symbols >> $output_objdir/$soname.def;
12377       fi~
12378       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12379     else
12380       ld_shlibs_CXX=no
12381     fi
12382   ;;
12383       darwin* | rhapsody*)
12384         case "$host_os" in
12385         rhapsody* | darwin1.[012])
12386          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12387          ;;
12388        *) # Darwin 1.3 on
12389          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12390            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12391          else
12392            case ${MACOSX_DEPLOYMENT_TARGET} in
12393              10.[012])
12394                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12395                ;;
12396              10.*)
12397                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12398                ;;
12399            esac
12400          fi
12401          ;;
12402         esac
12403       archive_cmds_need_lc_CXX=no
12404       hardcode_direct_CXX=no
12405       hardcode_automatic_CXX=yes
12406       hardcode_shlibpath_var_CXX=unsupported
12407       whole_archive_flag_spec_CXX=''
12408       link_all_deplibs_CXX=yes
12409
12410     if test "$GXX" = yes ; then
12411       lt_int_apple_cc_single_mod=no
12412       output_verbose_link_cmd='echo'
12413       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12414        lt_int_apple_cc_single_mod=yes
12415       fi
12416       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12417        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12418       else
12419           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12420         fi
12421         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12422         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12423           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12424             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12425           else
12426             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12427           fi
12428             module_expsym_cmds_CXX='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}'
12429       else
12430       case $cc_basename in
12431         xlc*)
12432          output_verbose_link_cmd='echo'
12433           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12434           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12435           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12436           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12437           module_expsym_cmds_CXX='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}'
12438           ;;
12439        *)
12440          ld_shlibs_CXX=no
12441           ;;
12442       esac
12443       fi
12444         ;;
12445
12446   dgux*)
12447     case $cc_basename in
12448       ec++*)
12449         # FIXME: insert proper C++ library support
12450         ld_shlibs_CXX=no
12451         ;;
12452       ghcx*)
12453         # Green Hills C++ Compiler
12454         # FIXME: insert proper C++ library support
12455         ld_shlibs_CXX=no
12456         ;;
12457       *)
12458         # FIXME: insert proper C++ library support
12459         ld_shlibs_CXX=no
12460         ;;
12461     esac
12462     ;;
12463   freebsd[12]*)
12464     # C++ shared libraries reported to be fairly broken before switch to ELF
12465     ld_shlibs_CXX=no
12466     ;;
12467   freebsd-elf*)
12468     archive_cmds_need_lc_CXX=no
12469     ;;
12470   freebsd* | kfreebsd*-gnu | dragonfly*)
12471     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12472     # conventions
12473     ld_shlibs_CXX=yes
12474     ;;
12475   gnu*)
12476     ;;
12477   hpux9*)
12478     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12479     hardcode_libdir_separator_CXX=:
12480     export_dynamic_flag_spec_CXX='${wl}-E'
12481     hardcode_direct_CXX=yes
12482     hardcode_minus_L_CXX=yes # Not in the search PATH,
12483                                 # but as the default
12484                                 # location of the library.
12485
12486     case $cc_basename in
12487     CC*)
12488       # FIXME: insert proper C++ library support
12489       ld_shlibs_CXX=no
12490       ;;
12491     aCC*)
12492       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12493       # Commands to make compiler produce verbose output that lists
12494       # what "hidden" libraries, object files and flags are used when
12495       # linking a shared library.
12496       #
12497       # There doesn't appear to be a way to prevent this compiler from
12498       # explicitly linking system object files so we need to strip them
12499       # from the output so that they don't get included in the library
12500       # dependencies.
12501       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12502       ;;
12503     *)
12504       if test "$GXX" = yes; then
12505         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12506       else
12507         # FIXME: insert proper C++ library support
12508         ld_shlibs_CXX=no
12509       fi
12510       ;;
12511     esac
12512     ;;
12513   hpux10*|hpux11*)
12514     if test $with_gnu_ld = no; then
12515       case "$host_cpu" in
12516       hppa*64*)
12517         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12518         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12519         hardcode_libdir_separator_CXX=:
12520         ;;
12521       ia64*)
12522         hardcode_libdir_flag_spec_CXX='-L$libdir'
12523         ;;
12524       *)
12525         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12526         hardcode_libdir_separator_CXX=:
12527         export_dynamic_flag_spec_CXX='${wl}-E'
12528         ;;
12529       esac
12530     fi
12531     case "$host_cpu" in
12532     hppa*64*)
12533       hardcode_direct_CXX=no
12534       hardcode_shlibpath_var_CXX=no
12535       ;;
12536     ia64*)
12537       hardcode_direct_CXX=no
12538       hardcode_shlibpath_var_CXX=no
12539       hardcode_minus_L_CXX=yes # Not in the search PATH,
12540                                               # but as the default
12541                                               # location of the library.
12542       ;;
12543     *)
12544       hardcode_direct_CXX=yes
12545       hardcode_minus_L_CXX=yes # Not in the search PATH,
12546                                               # but as the default
12547                                               # location of the library.
12548       ;;
12549     esac
12550
12551     case $cc_basename in
12552       CC*)
12553         # FIXME: insert proper C++ library support
12554         ld_shlibs_CXX=no
12555         ;;
12556       aCC*)
12557         case "$host_cpu" in
12558         hppa*64*|ia64*)
12559           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12560           ;;
12561         *)
12562           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12563           ;;
12564         esac
12565         # Commands to make compiler produce verbose output that lists
12566         # what "hidden" libraries, object files and flags are used when
12567         # linking a shared library.
12568         #
12569         # There doesn't appear to be a way to prevent this compiler from
12570         # explicitly linking system object files so we need to strip them
12571         # from the output so that they don't get included in the library
12572         # dependencies.
12573         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12574         ;;
12575       *)
12576         if test "$GXX" = yes; then
12577           if test $with_gnu_ld = no; then
12578             case "$host_cpu" in
12579             ia64*|hppa*64*)
12580               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12581               ;;
12582             *)
12583               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12584               ;;
12585             esac
12586           fi
12587         else
12588           # FIXME: insert proper C++ library support
12589           ld_shlibs_CXX=no
12590         fi
12591         ;;
12592     esac
12593     ;;
12594   irix5* | irix6*)
12595     case $cc_basename in
12596       CC*)
12597         # SGI C++
12598         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12599
12600         # Archives containing C++ object files must be created using
12601         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12602         # necessary to make sure instantiated templates are included
12603         # in the archive.
12604         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12605         ;;
12606       *)
12607         if test "$GXX" = yes; then
12608           if test "$with_gnu_ld" = no; then
12609             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12610           else
12611             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12612           fi
12613         fi
12614         link_all_deplibs_CXX=yes
12615         ;;
12616     esac
12617     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12618     hardcode_libdir_separator_CXX=:
12619     ;;
12620   linux*)
12621     case $cc_basename in
12622       KCC*)
12623         # Kuck and Associates, Inc. (KAI) C++ Compiler
12624
12625         # KCC will only create a shared library if the output file
12626         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12627         # to its proper name (with version) after linking.
12628         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12629         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12630         # Commands to make compiler produce verbose output that lists
12631         # what "hidden" libraries, object files and flags are used when
12632         # linking a shared library.
12633         #
12634         # There doesn't appear to be a way to prevent this compiler from
12635         # explicitly linking system object files so we need to strip them
12636         # from the output so that they don't get included in the library
12637         # dependencies.
12638         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12639
12640         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12641         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12642
12643         # Archives containing C++ object files must be created using
12644         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12645         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12646         ;;
12647       icpc*)
12648         # Intel C++
12649         with_gnu_ld=yes
12650         # version 8.0 and above of icpc choke on multiply defined symbols
12651         # if we add $predep_objects and $postdep_objects, however 7.1 and
12652         # earlier do not add the objects themselves.
12653         case `$CC -V 2>&1` in
12654         *"Version 7."*)
12655           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12656           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12657           ;;
12658         *)  # Version 8.0 or newer
12659           tmp_idyn=
12660           case $host_cpu in
12661             ia64*) tmp_idyn=' -i_dynamic';;
12662           esac
12663           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12664           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12665           ;;
12666         esac
12667         archive_cmds_need_lc_CXX=no
12668         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12669         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12670         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12671         ;;
12672       pgCC*)
12673         # Portland Group C++ compiler
12674         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12675         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12676
12677         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12678         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12679         whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12680         ;;
12681       cxx*)
12682         # Compaq C++
12683         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12684         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12685
12686         runpath_var=LD_RUN_PATH
12687         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12688         hardcode_libdir_separator_CXX=:
12689
12690         # Commands to make compiler produce verbose output that lists
12691         # what "hidden" libraries, object files and flags are used when
12692         # linking a shared library.
12693         #
12694         # There doesn't appear to be a way to prevent this compiler from
12695         # explicitly linking system object files so we need to strip them
12696         # from the output so that they don't get included in the library
12697         # dependencies.
12698         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12699         ;;
12700     esac
12701     ;;
12702   lynxos*)
12703     # FIXME: insert proper C++ library support
12704     ld_shlibs_CXX=no
12705     ;;
12706   m88k*)
12707     # FIXME: insert proper C++ library support
12708     ld_shlibs_CXX=no
12709     ;;
12710   mvs*)
12711     case $cc_basename in
12712       cxx*)
12713         # FIXME: insert proper C++ library support
12714         ld_shlibs_CXX=no
12715         ;;
12716       *)
12717         # FIXME: insert proper C++ library support
12718         ld_shlibs_CXX=no
12719         ;;
12720     esac
12721     ;;
12722   netbsd*)
12723     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12724       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12725       wlarc=
12726       hardcode_libdir_flag_spec_CXX='-R$libdir'
12727       hardcode_direct_CXX=yes
12728       hardcode_shlibpath_var_CXX=no
12729     fi
12730     # Workaround some broken pre-1.5 toolchains
12731     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12732     ;;
12733   openbsd2*)
12734     # C++ shared libraries are fairly broken
12735     ld_shlibs_CXX=no
12736     ;;
12737   openbsd*)
12738     hardcode_direct_CXX=yes
12739     hardcode_shlibpath_var_CXX=no
12740     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12741     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12742     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12743       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12744       export_dynamic_flag_spec_CXX='${wl}-E'
12745       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12746     fi
12747     output_verbose_link_cmd='echo'
12748     ;;
12749   osf3*)
12750     case $cc_basename in
12751       KCC*)
12752         # Kuck and Associates, Inc. (KAI) C++ Compiler
12753
12754         # KCC will only create a shared library if the output file
12755         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12756         # to its proper name (with version) after linking.
12757         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12758
12759         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12760         hardcode_libdir_separator_CXX=:
12761
12762         # Archives containing C++ object files must be created using
12763         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12764         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12765
12766         ;;
12767       RCC*)
12768         # Rational C++ 2.4.1
12769         # FIXME: insert proper C++ library support
12770         ld_shlibs_CXX=no
12771         ;;
12772       cxx*)
12773         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12774         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12775
12776         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12777         hardcode_libdir_separator_CXX=:
12778
12779         # Commands to make compiler produce verbose output that lists
12780         # what "hidden" libraries, object files and flags are used when
12781         # linking a shared library.
12782         #
12783         # There doesn't appear to be a way to prevent this compiler from
12784         # explicitly linking system object files so we need to strip them
12785         # from the output so that they don't get included in the library
12786         # dependencies.
12787         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12788         ;;
12789       *)
12790         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12791           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12792           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12793
12794           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12795           hardcode_libdir_separator_CXX=:
12796
12797           # Commands to make compiler produce verbose output that lists
12798           # what "hidden" libraries, object files and flags are used when
12799           # linking a shared library.
12800           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12801
12802         else
12803           # FIXME: insert proper C++ library support
12804           ld_shlibs_CXX=no
12805         fi
12806         ;;
12807     esac
12808     ;;
12809   osf4* | osf5*)
12810     case $cc_basename in
12811       KCC*)
12812         # Kuck and Associates, Inc. (KAI) C++ Compiler
12813
12814         # KCC will only create a shared library if the output file
12815         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12816         # to its proper name (with version) after linking.
12817         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12818
12819         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12820         hardcode_libdir_separator_CXX=:
12821
12822         # Archives containing C++ object files must be created using
12823         # the KAI C++ compiler.
12824         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12825         ;;
12826       RCC*)
12827         # Rational C++ 2.4.1
12828         # FIXME: insert proper C++ library support
12829         ld_shlibs_CXX=no
12830         ;;
12831       cxx*)
12832         allow_undefined_flag_CXX=' -expect_unresolved \*'
12833         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12834         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12835           echo "-hidden">> $lib.exp~
12836           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12837           $rm $lib.exp'
12838
12839         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12840         hardcode_libdir_separator_CXX=:
12841
12842         # Commands to make compiler produce verbose output that lists
12843         # what "hidden" libraries, object files and flags are used when
12844         # linking a shared library.
12845         #
12846         # There doesn't appear to be a way to prevent this compiler from
12847         # explicitly linking system object files so we need to strip them
12848         # from the output so that they don't get included in the library
12849         # dependencies.
12850         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12851         ;;
12852       *)
12853         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12854           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12855          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12856
12857           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12858           hardcode_libdir_separator_CXX=:
12859
12860           # Commands to make compiler produce verbose output that lists
12861           # what "hidden" libraries, object files and flags are used when
12862           # linking a shared library.
12863           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12864
12865         else
12866           # FIXME: insert proper C++ library support
12867           ld_shlibs_CXX=no
12868         fi
12869         ;;
12870     esac
12871     ;;
12872   psos*)
12873     # FIXME: insert proper C++ library support
12874     ld_shlibs_CXX=no
12875     ;;
12876   sco*)
12877     archive_cmds_need_lc_CXX=no
12878     case $cc_basename in
12879       CC*)
12880         # FIXME: insert proper C++ library support
12881         ld_shlibs_CXX=no
12882         ;;
12883       *)
12884         # FIXME: insert proper C++ library support
12885         ld_shlibs_CXX=no
12886         ;;
12887     esac
12888     ;;
12889   sunos4*)
12890     case $cc_basename in
12891       CC*)
12892         # Sun C++ 4.x
12893         # FIXME: insert proper C++ library support
12894         ld_shlibs_CXX=no
12895         ;;
12896       lcc*)
12897         # Lucid
12898         # FIXME: insert proper C++ library support
12899         ld_shlibs_CXX=no
12900         ;;
12901       *)
12902         # FIXME: insert proper C++ library support
12903         ld_shlibs_CXX=no
12904         ;;
12905     esac
12906     ;;
12907   solaris*)
12908     case $cc_basename in
12909       CC*)
12910         # Sun C++ 4.2, 5.x and Centerline C++
12911         no_undefined_flag_CXX=' -zdefs'
12912         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12913         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12914         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12915
12916         hardcode_libdir_flag_spec_CXX='-R$libdir'
12917         hardcode_shlibpath_var_CXX=no
12918         case $host_os in
12919           solaris2.[0-5] | solaris2.[0-5].*) ;;
12920           *)
12921             # The C++ compiler is used as linker so we must use $wl
12922             # flag to pass the commands to the underlying system
12923             # linker. We must also pass each convience library through
12924             # to the system linker between allextract/defaultextract.
12925             # The C++ compiler will combine linker options so we
12926             # cannot just pass the convience library names through
12927             # without $wl.
12928             # Supported since Solaris 2.6 (maybe 2.5.1?)
12929             whole_archive_flag_spec_CXX='${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'
12930             ;;
12931         esac
12932         link_all_deplibs_CXX=yes
12933
12934         # Commands to make compiler produce verbose output that lists
12935         # what "hidden" libraries, object files and flags are used when
12936         # linking a shared library.
12937         #
12938         # There doesn't appear to be a way to prevent this compiler from
12939         # explicitly linking system object files so we need to strip them
12940         # from the output so that they don't get included in the library
12941         # dependencies.
12942         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12943
12944         # Archives containing C++ object files must be created using
12945         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12946         # necessary to make sure instantiated templates are included
12947         # in the archive.
12948         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12949         ;;
12950       gcx*)
12951         # Green Hills C++ Compiler
12952         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12953
12954         # The C++ compiler must be used to create the archive.
12955         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12956         ;;
12957       *)
12958         # GNU C++ compiler with Solaris linker
12959         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12960           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12961           if $CC --version | grep -v '^2\.7' > /dev/null; then
12962             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12963             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12964                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12965
12966             # Commands to make compiler produce verbose output that lists
12967             # what "hidden" libraries, object files and flags are used when
12968             # linking a shared library.
12969             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12970           else
12971             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12972             # platform.
12973             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12974             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12975                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12976
12977             # Commands to make compiler produce verbose output that lists
12978             # what "hidden" libraries, object files and flags are used when
12979             # linking a shared library.
12980             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12981           fi
12982
12983           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12984         fi
12985         ;;
12986     esac
12987     ;;
12988   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12989     archive_cmds_need_lc_CXX=no
12990     ;;
12991   tandem*)
12992     case $cc_basename in
12993       NCC*)
12994         # NonStop-UX NCC 3.20
12995         # FIXME: insert proper C++ library support
12996         ld_shlibs_CXX=no
12997         ;;
12998       *)
12999         # FIXME: insert proper C++ library support
13000         ld_shlibs_CXX=no
13001         ;;
13002     esac
13003     ;;
13004   vxworks*)
13005     # FIXME: insert proper C++ library support
13006     ld_shlibs_CXX=no
13007     ;;
13008   *)
13009     # FIXME: insert proper C++ library support
13010     ld_shlibs_CXX=no
13011     ;;
13012 esac
13013 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13014 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13015 test "$ld_shlibs_CXX" = no && can_build_shared=no
13016
13017 GCC_CXX="$GXX"
13018 LD_CXX="$LD"
13019
13020
13021 cat > conftest.$ac_ext <<EOF
13022 class Foo
13023 {
13024 public:
13025   Foo (void) { a = 0; }
13026 private:
13027   int a;
13028 };
13029 EOF
13030
13031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13032   (eval $ac_compile) 2>&5
13033   ac_status=$?
13034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035   (exit $ac_status); }; then
13036   # Parse the compiler output and extract the necessary
13037   # objects, libraries and library flags.
13038
13039   # Sentinel used to keep track of whether or not we are before
13040   # the conftest object file.
13041   pre_test_object_deps_done=no
13042
13043   # The `*' in the case matches for architectures that use `case' in
13044   # $output_verbose_cmd can trigger glob expansion during the loop
13045   # eval without this substitution.
13046   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13047
13048   for p in `eval $output_verbose_link_cmd`; do
13049     case $p in
13050
13051     -L* | -R* | -l*)
13052        # Some compilers place space between "-{L,R}" and the path.
13053        # Remove the space.
13054        if test $p = "-L" \
13055           || test $p = "-R"; then
13056          prev=$p
13057          continue
13058        else
13059          prev=
13060        fi
13061
13062        if test "$pre_test_object_deps_done" = no; then
13063          case $p in
13064          -L* | -R*)
13065            # Internal compiler library paths should come after those
13066            # provided the user.  The postdeps already come after the
13067            # user supplied libs so there is no need to process them.
13068            if test -z "$compiler_lib_search_path_CXX"; then
13069              compiler_lib_search_path_CXX="${prev}${p}"
13070            else
13071              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13072            fi
13073            ;;
13074          # The "-l" case would never come before the object being
13075          # linked, so don't bother handling this case.
13076          esac
13077        else
13078          if test -z "$postdeps_CXX"; then
13079            postdeps_CXX="${prev}${p}"
13080          else
13081            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13082          fi
13083        fi
13084        ;;
13085
13086     *.$objext)
13087        # This assumes that the test object file only shows up
13088        # once in the compiler output.
13089        if test "$p" = "conftest.$objext"; then
13090          pre_test_object_deps_done=yes
13091          continue
13092        fi
13093
13094        if test "$pre_test_object_deps_done" = no; then
13095          if test -z "$predep_objects_CXX"; then
13096            predep_objects_CXX="$p"
13097          else
13098            predep_objects_CXX="$predep_objects_CXX $p"
13099          fi
13100        else
13101          if test -z "$postdep_objects_CXX"; then
13102            postdep_objects_CXX="$p"
13103          else
13104            postdep_objects_CXX="$postdep_objects_CXX $p"
13105          fi
13106        fi
13107        ;;
13108
13109     *) ;; # Ignore the rest.
13110
13111     esac
13112   done
13113
13114   # Clean up.
13115   rm -f a.out a.exe
13116 else
13117   echo "libtool.m4: error: problem compiling CXX test program"
13118 fi
13119
13120 $rm -f confest.$objext
13121
13122 case " $postdeps_CXX " in
13123 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13124 esac
13125
13126 lt_prog_compiler_wl_CXX=
13127 lt_prog_compiler_pic_CXX=
13128 lt_prog_compiler_static_CXX=
13129
13130 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13131 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13132
13133   # C++ specific cases for pic, static, wl, etc.
13134   if test "$GXX" = yes; then
13135     lt_prog_compiler_wl_CXX='-Wl,'
13136     lt_prog_compiler_static_CXX='-static'
13137
13138     case $host_os in
13139     aix*)
13140       # All AIX code is PIC.
13141       if test "$host_cpu" = ia64; then
13142         # AIX 5 now supports IA64 processor
13143         lt_prog_compiler_static_CXX='-Bstatic'
13144       fi
13145       ;;
13146     amigaos*)
13147       # FIXME: we need at least 68020 code to build shared libraries, but
13148       # adding the `-m68020' flag to GCC prevents building anything better,
13149       # like `-m68040'.
13150       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13151       ;;
13152     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13153       # PIC is the default for these OSes.
13154       ;;
13155     mingw* | os2* | pw32*)
13156       # This hack is so that the source file can tell whether it is being
13157       # built for inclusion in a dll (and should export symbols for example).
13158       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13159       ;;
13160     darwin* | rhapsody*)
13161       # PIC is the default on this platform
13162       # Common symbols not allowed in MH_DYLIB files
13163       lt_prog_compiler_pic_CXX='-fno-common'
13164       ;;
13165     *djgpp*)
13166       # DJGPP does not support shared libraries at all
13167       lt_prog_compiler_pic_CXX=
13168       ;;
13169     sysv4*MP*)
13170       if test -d /usr/nec; then
13171         lt_prog_compiler_pic_CXX=-Kconform_pic
13172       fi
13173       ;;
13174     hpux*)
13175       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13176       # not for PA HP-UX.
13177       case "$host_cpu" in
13178       hppa*64*|ia64*)
13179         ;;
13180       *)
13181         lt_prog_compiler_pic_CXX='-fPIC'
13182         ;;
13183       esac
13184       ;;
13185     *)
13186       lt_prog_compiler_pic_CXX='-fPIC'
13187       ;;
13188     esac
13189   else
13190     case $host_os in
13191       aix4* | aix5*)
13192         # All AIX code is PIC.
13193         if test "$host_cpu" = ia64; then
13194           # AIX 5 now supports IA64 processor
13195           lt_prog_compiler_static_CXX='-Bstatic'
13196         else
13197           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13198         fi
13199         ;;
13200       chorus*)
13201         case $cc_basename in
13202         cxch68*)
13203           # Green Hills C++ Compiler
13204           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13205           ;;
13206         esac
13207         ;;
13208        darwin*)
13209          # PIC is the default on this platform
13210          # Common symbols not allowed in MH_DYLIB files
13211          case $cc_basename in
13212            xlc*)
13213            lt_prog_compiler_pic_CXX='-qnocommon'
13214            lt_prog_compiler_wl_CXX='-Wl,'
13215            ;;
13216          esac
13217        ;;
13218       dgux*)
13219         case $cc_basename in
13220           ec++*)
13221             lt_prog_compiler_pic_CXX='-KPIC'
13222             ;;
13223           ghcx*)
13224             # Green Hills C++ Compiler
13225             lt_prog_compiler_pic_CXX='-pic'
13226             ;;
13227           *)
13228             ;;
13229         esac
13230         ;;
13231       freebsd* | kfreebsd*-gnu | dragonfly*)
13232         # FreeBSD uses GNU C++
13233         ;;
13234       hpux9* | hpux10* | hpux11*)
13235         case $cc_basename in
13236           CC*)
13237             lt_prog_compiler_wl_CXX='-Wl,'
13238             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13239             if test "$host_cpu" != ia64; then
13240               lt_prog_compiler_pic_CXX='+Z'
13241             fi
13242             ;;
13243           aCC*)
13244             lt_prog_compiler_wl_CXX='-Wl,'
13245             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13246             case "$host_cpu" in
13247             hppa*64*|ia64*)
13248               # +Z the default
13249               ;;
13250             *)
13251               lt_prog_compiler_pic_CXX='+Z'
13252               ;;
13253             esac
13254             ;;
13255           *)
13256             ;;
13257         esac
13258         ;;
13259       irix5* | irix6* | nonstopux*)
13260         case $cc_basename in
13261           CC*)
13262             lt_prog_compiler_wl_CXX='-Wl,'
13263             lt_prog_compiler_static_CXX='-non_shared'
13264             # CC pic flag -KPIC is the default.
13265             ;;
13266           *)
13267             ;;
13268         esac
13269         ;;
13270       linux*)
13271         case $cc_basename in
13272           KCC*)
13273             # KAI C++ Compiler
13274             lt_prog_compiler_wl_CXX='--backend -Wl,'
13275             lt_prog_compiler_pic_CXX='-fPIC'
13276             ;;
13277           icpc* | ecpc*)
13278             # Intel C++
13279             lt_prog_compiler_wl_CXX='-Wl,'
13280             lt_prog_compiler_pic_CXX='-KPIC'
13281             lt_prog_compiler_static_CXX='-static'
13282             ;;
13283           pgCC*)
13284             # Portland Group C++ compiler.
13285             lt_prog_compiler_wl_CXX='-Wl,'
13286             lt_prog_compiler_pic_CXX='-fpic'
13287             lt_prog_compiler_static_CXX='-static'
13288             ;;
13289           cxx*)
13290             # Compaq C++
13291             # Make sure the PIC flag is empty.  It appears that all Alpha
13292             # Linux and Compaq Tru64 Unix objects are PIC.
13293             lt_prog_compiler_pic_CXX=
13294             lt_prog_compiler_static_CXX='-non_shared'
13295             ;;
13296           *)
13297             ;;
13298         esac
13299         ;;
13300       lynxos*)
13301         ;;
13302       m88k*)
13303         ;;
13304       mvs*)
13305         case $cc_basename in
13306           cxx*)
13307             lt_prog_compiler_pic_CXX='-W c,exportall'
13308             ;;
13309           *)
13310             ;;
13311         esac
13312         ;;
13313       netbsd*)
13314         ;;
13315       osf3* | osf4* | osf5*)
13316         case $cc_basename in
13317           KCC*)
13318             lt_prog_compiler_wl_CXX='--backend -Wl,'
13319             ;;
13320           RCC*)
13321             # Rational C++ 2.4.1
13322             lt_prog_compiler_pic_CXX='-pic'
13323             ;;
13324           cxx*)
13325             # Digital/Compaq C++
13326             lt_prog_compiler_wl_CXX='-Wl,'
13327             # Make sure the PIC flag is empty.  It appears that all Alpha
13328             # Linux and Compaq Tru64 Unix objects are PIC.
13329             lt_prog_compiler_pic_CXX=
13330             lt_prog_compiler_static_CXX='-non_shared'
13331             ;;
13332           *)
13333             ;;
13334         esac
13335         ;;
13336       psos*)
13337         ;;
13338       sco*)
13339         case $cc_basename in
13340           CC*)
13341             lt_prog_compiler_pic_CXX='-fPIC'
13342             ;;
13343           *)
13344             ;;
13345         esac
13346         ;;
13347       solaris*)
13348         case $cc_basename in
13349           CC*)
13350             # Sun C++ 4.2, 5.x and Centerline C++
13351             lt_prog_compiler_pic_CXX='-KPIC'
13352             lt_prog_compiler_static_CXX='-Bstatic'
13353             lt_prog_compiler_wl_CXX='-Qoption ld '
13354             ;;
13355           gcx*)
13356             # Green Hills C++ Compiler
13357             lt_prog_compiler_pic_CXX='-PIC'
13358             ;;
13359           *)
13360             ;;
13361         esac
13362         ;;
13363       sunos4*)
13364         case $cc_basename in
13365           CC*)
13366             # Sun C++ 4.x
13367             lt_prog_compiler_pic_CXX='-pic'
13368             lt_prog_compiler_static_CXX='-Bstatic'
13369             ;;
13370           lcc*)
13371             # Lucid
13372             lt_prog_compiler_pic_CXX='-pic'
13373             ;;
13374           *)
13375             ;;
13376         esac
13377         ;;
13378       tandem*)
13379         case $cc_basename in
13380           NCC*)
13381             # NonStop-UX NCC 3.20
13382             lt_prog_compiler_pic_CXX='-KPIC'
13383             ;;
13384           *)
13385             ;;
13386         esac
13387         ;;
13388       unixware*)
13389         ;;
13390       vxworks*)
13391         ;;
13392       *)
13393         lt_prog_compiler_can_build_shared_CXX=no
13394         ;;
13395     esac
13396   fi
13397
13398 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13399 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13400
13401 #
13402 # Check to make sure the PIC flag actually works.
13403 #
13404 if test -n "$lt_prog_compiler_pic_CXX"; then
13405
13406 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13407 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13408 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13409   echo $ECHO_N "(cached) $ECHO_C" >&6
13410 else
13411   lt_prog_compiler_pic_works_CXX=no
13412   ac_outfile=conftest.$ac_objext
13413    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13414    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13415    # Insert the option either (1) after the last *FLAGS variable, or
13416    # (2) before a word containing "conftest.", or (3) at the end.
13417    # Note that $ac_compile itself does not contain backslashes and begins
13418    # with a dollar sign (not a hyphen), so the echo should work correctly.
13419    # The option is referenced via a variable to avoid confusing sed.
13420    lt_compile=`echo "$ac_compile" | $SED \
13421    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13422    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13423    -e 's:$: $lt_compiler_flag:'`
13424    (eval echo "\"\$as_me:13424: $lt_compile\"" >&5)
13425    (eval "$lt_compile" 2>conftest.err)
13426    ac_status=$?
13427    cat conftest.err >&5
13428    echo "$as_me:13428: \$? = $ac_status" >&5
13429    if (exit $ac_status) && test -s "$ac_outfile"; then
13430      # The compiler can only warn and ignore the option if not recognized
13431      # So say no if there are warnings other than the usual output.
13432      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13433      $SED '/^$/d' conftest.err >conftest.er2
13434      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13435        lt_prog_compiler_pic_works_CXX=yes
13436      fi
13437    fi
13438    $rm conftest*
13439
13440 fi
13441 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13442 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13443
13444 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13445     case $lt_prog_compiler_pic_CXX in
13446      "" | " "*) ;;
13447      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13448      esac
13449 else
13450     lt_prog_compiler_pic_CXX=
13451      lt_prog_compiler_can_build_shared_CXX=no
13452 fi
13453
13454 fi
13455 case "$host_os" in
13456   # For platforms which do not support PIC, -DPIC is meaningless:
13457   *djgpp*)
13458     lt_prog_compiler_pic_CXX=
13459     ;;
13460   *)
13461     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13462     ;;
13463 esac
13464
13465 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13466 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13467 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13468   echo $ECHO_N "(cached) $ECHO_C" >&6
13469 else
13470   lt_cv_prog_compiler_c_o_CXX=no
13471    $rm -r conftest 2>/dev/null
13472    mkdir conftest
13473    cd conftest
13474    mkdir out
13475    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13476
13477    lt_compiler_flag="-o out/conftest2.$ac_objext"
13478    # Insert the option either (1) after the last *FLAGS variable, or
13479    # (2) before a word containing "conftest.", or (3) at the end.
13480    # Note that $ac_compile itself does not contain backslashes and begins
13481    # with a dollar sign (not a hyphen), so the echo should work correctly.
13482    lt_compile=`echo "$ac_compile" | $SED \
13483    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13484    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13485    -e 's:$: $lt_compiler_flag:'`
13486    (eval echo "\"\$as_me:13486: $lt_compile\"" >&5)
13487    (eval "$lt_compile" 2>out/conftest.err)
13488    ac_status=$?
13489    cat out/conftest.err >&5
13490    echo "$as_me:13490: \$? = $ac_status" >&5
13491    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13492    then
13493      # The compiler can only warn and ignore the option if not recognized
13494      # So say no if there are warnings
13495      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13496      $SED '/^$/d' out/conftest.err >out/conftest.er2
13497      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13498        lt_cv_prog_compiler_c_o_CXX=yes
13499      fi
13500    fi
13501    chmod u+w .
13502    $rm conftest*
13503    # SGI C++ compiler will create directory out/ii_files/ for
13504    # template instantiation
13505    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13506    $rm out/* && rmdir out
13507    cd ..
13508    rmdir conftest
13509    $rm conftest*
13510
13511 fi
13512 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13513 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13514
13515
13516 hard_links="nottested"
13517 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13518   # do not overwrite the value of need_locks provided by the user
13519   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13520 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13521   hard_links=yes
13522   $rm conftest*
13523   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13524   touch conftest.a
13525   ln conftest.a conftest.b 2>&5 || hard_links=no
13526   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13527   echo "$as_me:$LINENO: result: $hard_links" >&5
13528 echo "${ECHO_T}$hard_links" >&6
13529   if test "$hard_links" = no; then
13530     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13531 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13532     need_locks=warn
13533   fi
13534 else
13535   need_locks=no
13536 fi
13537
13538 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13539 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13540
13541   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13542   case $host_os in
13543   aix4* | aix5*)
13544     # If we're using GNU nm, then we don't want the "-C" option.
13545     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13546     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13547       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13548     else
13549       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13550     fi
13551     ;;
13552   pw32*)
13553     export_symbols_cmds_CXX="$ltdll_cmds"
13554   ;;
13555   cygwin* | mingw*)
13556     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13557   ;;
13558   *)
13559     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13560   ;;
13561   esac
13562
13563 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13564 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13565 test "$ld_shlibs_CXX" = no && can_build_shared=no
13566
13567 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13568 if test "$GCC" = yes; then
13569   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13570 fi
13571
13572 #
13573 # Do we need to explicitly link libc?
13574 #
13575 case "x$archive_cmds_need_lc_CXX" in
13576 x|xyes)
13577   # Assume -lc should be added
13578   archive_cmds_need_lc_CXX=yes
13579
13580   if test "$enable_shared" = yes && test "$GCC" = yes; then
13581     case $archive_cmds_CXX in
13582     *'~'*)
13583       # FIXME: we may have to deal with multi-command sequences.
13584       ;;
13585     '$CC '*)
13586       # Test whether the compiler implicitly links with -lc since on some
13587       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13588       # to ld, don't add -lc before -lgcc.
13589       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13590 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13591       $rm conftest*
13592       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13593
13594       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13595   (eval $ac_compile) 2>&5
13596   ac_status=$?
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); } 2>conftest.err; then
13599         soname=conftest
13600         lib=conftest
13601         libobjs=conftest.$ac_objext
13602         deplibs=
13603         wl=$lt_prog_compiler_wl_CXX
13604         compiler_flags=-v
13605         linker_flags=-v
13606         verstring=
13607         output_objdir=.
13608         libname=conftest
13609         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13610         allow_undefined_flag_CXX=
13611         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13612   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13613   ac_status=$?
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); }
13616         then
13617           archive_cmds_need_lc_CXX=no
13618         else
13619           archive_cmds_need_lc_CXX=yes
13620         fi
13621         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13622       else
13623         cat conftest.err 1>&5
13624       fi
13625       $rm conftest*
13626       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13627 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13628       ;;
13629     esac
13630   fi
13631   ;;
13632 esac
13633
13634 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13635 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13636 library_names_spec=
13637 libname_spec='lib$name'
13638 soname_spec=
13639 shrext_cmds=".so"
13640 postinstall_cmds=
13641 postuninstall_cmds=
13642 finish_cmds=
13643 finish_eval=
13644 shlibpath_var=
13645 shlibpath_overrides_runpath=unknown
13646 version_type=none
13647 dynamic_linker="$host_os ld.so"
13648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13649 if test "$GCC" = yes; then
13650   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13651   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13652     # if the path contains ";" then we assume it to be the separator
13653     # otherwise default to the standard path separator (i.e. ":") - it is
13654     # assumed that no part of a normal pathname contains ";" but that should
13655     # okay in the real world where ";" in dirpaths is itself problematic.
13656     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13657   else
13658     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13659   fi
13660 else
13661   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13662 fi
13663 need_lib_prefix=unknown
13664 hardcode_into_libs=no
13665
13666 # when you set need_version to no, make sure it does not cause -set_version
13667 # flags to be left without arguments
13668 need_version=unknown
13669
13670 case $host_os in
13671 aix3*)
13672   version_type=linux
13673   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13674   shlibpath_var=LIBPATH
13675
13676   # AIX 3 has no versioning support, so we append a major version to the name.
13677   soname_spec='${libname}${release}${shared_ext}$major'
13678   ;;
13679
13680 aix4* | aix5*)
13681   version_type=linux
13682   need_lib_prefix=no
13683   need_version=no
13684   hardcode_into_libs=yes
13685   if test "$host_cpu" = ia64; then
13686     # AIX 5 supports IA64
13687     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13688     shlibpath_var=LD_LIBRARY_PATH
13689   else
13690     # With GCC up to 2.95.x, collect2 would create an import file
13691     # for dependence libraries.  The import file would start with
13692     # the line `#! .'.  This would cause the generated library to
13693     # depend on `.', always an invalid library.  This was fixed in
13694     # development snapshots of GCC prior to 3.0.
13695     case $host_os in
13696       aix4 | aix4.[01] | aix4.[01].*)
13697       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13698            echo ' yes '
13699            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13700         :
13701       else
13702         can_build_shared=no
13703       fi
13704       ;;
13705     esac
13706     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13707     # soname into executable. Probably we can add versioning support to
13708     # collect2, so additional links can be useful in future.
13709     if test "$aix_use_runtimelinking" = yes; then
13710       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13711       # instead of lib<name>.a to let people know that these are not
13712       # typical AIX shared libraries.
13713       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13714     else
13715       # We preserve .a as extension for shared libraries through AIX4.2
13716       # and later when we are not doing run time linking.
13717       library_names_spec='${libname}${release}.a $libname.a'
13718       soname_spec='${libname}${release}${shared_ext}$major'
13719     fi
13720     shlibpath_var=LIBPATH
13721   fi
13722   ;;
13723
13724 amigaos*)
13725   library_names_spec='$libname.ixlibrary $libname.a'
13726   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13727   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'
13728   ;;
13729
13730 beos*)
13731   library_names_spec='${libname}${shared_ext}'
13732   dynamic_linker="$host_os ld.so"
13733   shlibpath_var=LIBRARY_PATH
13734   ;;
13735
13736 bsdi[45]*)
13737   version_type=linux
13738   need_version=no
13739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13740   soname_spec='${libname}${release}${shared_ext}$major'
13741   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13742   shlibpath_var=LD_LIBRARY_PATH
13743   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13744   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13745   # the default ld.so.conf also contains /usr/contrib/lib and
13746   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13747   # libtool to hard-code these into programs
13748   ;;
13749
13750 cygwin* | mingw* | pw32*)
13751   version_type=windows
13752   shrext_cmds=".dll"
13753   need_version=no
13754   need_lib_prefix=no
13755
13756   case $GCC,$host_os in
13757   yes,cygwin* | yes,mingw* | yes,pw32*)
13758     library_names_spec='$libname.dll.a'
13759     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13760     postinstall_cmds='base_file=`basename \${file}`~
13761       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13762       dldir=$destdir/`dirname \$dlpath`~
13763       test -d \$dldir || mkdir -p \$dldir~
13764       $install_prog $dir/$dlname \$dldir/$dlname'
13765     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13766       dlpath=$dir/\$dldll~
13767        $rm \$dlpath'
13768     shlibpath_overrides_runpath=yes
13769
13770     case $host_os in
13771     cygwin*)
13772       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13773       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13774       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13775       ;;
13776     mingw*)
13777       # MinGW DLLs use traditional 'lib' prefix
13778       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13779       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13780       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13781         # It is most probably a Windows format PATH printed by
13782         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13783         # path with ; separators, and with drive letters. We can handle the
13784         # drive letters (cygwin fileutils understands them), so leave them,
13785         # especially as we might pass files found there to a mingw objdump,
13786         # which wouldn't understand a cygwinified path. Ahh.
13787         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13788       else
13789         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13790       fi
13791       ;;
13792     pw32*)
13793       # pw32 DLLs use 'pw' prefix rather than 'lib'
13794       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13795       ;;
13796     esac
13797     ;;
13798
13799   *)
13800     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13801     ;;
13802   esac
13803   dynamic_linker='Win32 ld.exe'
13804   # FIXME: first we should search . and the directory the executable is in
13805   shlibpath_var=PATH
13806   ;;
13807
13808 darwin* | rhapsody*)
13809   dynamic_linker="$host_os dyld"
13810   version_type=darwin
13811   need_lib_prefix=no
13812   need_version=no
13813   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13814   soname_spec='${libname}${release}${major}$shared_ext'
13815   shlibpath_overrides_runpath=yes
13816   shlibpath_var=DYLD_LIBRARY_PATH
13817   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13818   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13819   if test "$GCC" = yes; then
13820     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"`
13821   else
13822     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13823   fi
13824   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13825   ;;
13826
13827 dgux*)
13828   version_type=linux
13829   need_lib_prefix=no
13830   need_version=no
13831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13832   soname_spec='${libname}${release}${shared_ext}$major'
13833   shlibpath_var=LD_LIBRARY_PATH
13834   ;;
13835
13836 freebsd1*)
13837   dynamic_linker=no
13838   ;;
13839
13840 kfreebsd*-gnu)
13841   version_type=linux
13842   need_lib_prefix=no
13843   need_version=no
13844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13845   soname_spec='${libname}${release}${shared_ext}$major'
13846   shlibpath_var=LD_LIBRARY_PATH
13847   shlibpath_overrides_runpath=no
13848   hardcode_into_libs=yes
13849   dynamic_linker='GNU ld.so'
13850   ;;
13851
13852 freebsd* | dragonfly*)
13853   # DragonFly does not have aout.  When/if they implement a new
13854   # versioning mechanism, adjust this.
13855   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13856   version_type=freebsd-$objformat
13857   case $version_type in
13858     freebsd-elf*)
13859       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13860       need_version=no
13861       need_lib_prefix=no
13862       ;;
13863     freebsd-*)
13864       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13865       need_version=yes
13866       ;;
13867   esac
13868   shlibpath_var=LD_LIBRARY_PATH
13869   case $host_os in
13870   freebsd2*)
13871     shlibpath_overrides_runpath=yes
13872     ;;
13873   freebsd3.[01]* | freebsdelf3.[01]*)
13874     shlibpath_overrides_runpath=yes
13875     hardcode_into_libs=yes
13876     ;;
13877   *) # from 3.2 on
13878     shlibpath_overrides_runpath=no
13879     hardcode_into_libs=yes
13880     ;;
13881   esac
13882   ;;
13883
13884 gnu*)
13885   version_type=linux
13886   need_lib_prefix=no
13887   need_version=no
13888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13889   soname_spec='${libname}${release}${shared_ext}$major'
13890   shlibpath_var=LD_LIBRARY_PATH
13891   hardcode_into_libs=yes
13892   ;;
13893
13894 hpux9* | hpux10* | hpux11*)
13895   # Give a soname corresponding to the major version so that dld.sl refuses to
13896   # link against other versions.
13897   version_type=sunos
13898   need_lib_prefix=no
13899   need_version=no
13900   case "$host_cpu" in
13901   ia64*)
13902     shrext_cmds='.so'
13903     hardcode_into_libs=yes
13904     dynamic_linker="$host_os dld.so"
13905     shlibpath_var=LD_LIBRARY_PATH
13906     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13907     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13908     soname_spec='${libname}${release}${shared_ext}$major'
13909     if test "X$HPUX_IA64_MODE" = X32; then
13910       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13911     else
13912       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13913     fi
13914     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13915     ;;
13916    hppa*64*)
13917      shrext_cmds='.sl'
13918      hardcode_into_libs=yes
13919      dynamic_linker="$host_os dld.sl"
13920      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13921      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13922      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13923      soname_spec='${libname}${release}${shared_ext}$major'
13924      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13925      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13926      ;;
13927    *)
13928     shrext_cmds='.sl'
13929     dynamic_linker="$host_os dld.sl"
13930     shlibpath_var=SHLIB_PATH
13931     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13932     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13933     soname_spec='${libname}${release}${shared_ext}$major'
13934     ;;
13935   esac
13936   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13937   postinstall_cmds='chmod 555 $lib'
13938   ;;
13939
13940 irix5* | irix6* | nonstopux*)
13941   case $host_os in
13942     nonstopux*) version_type=nonstopux ;;
13943     *)
13944         if test "$lt_cv_prog_gnu_ld" = yes; then
13945                 version_type=linux
13946         else
13947                 version_type=irix
13948         fi ;;
13949   esac
13950   need_lib_prefix=no
13951   need_version=no
13952   soname_spec='${libname}${release}${shared_ext}$major'
13953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13954   case $host_os in
13955   irix5* | nonstopux*)
13956     libsuff= shlibsuff=
13957     ;;
13958   *)
13959     case $LD in # libtool.m4 will add one of these switches to LD
13960     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13961       libsuff= shlibsuff= libmagic=32-bit;;
13962     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13963       libsuff=32 shlibsuff=N32 libmagic=N32;;
13964     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13965       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13966     *) libsuff= shlibsuff= libmagic=never-match;;
13967     esac
13968     ;;
13969   esac
13970   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13971   shlibpath_overrides_runpath=no
13972   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13973   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13974   hardcode_into_libs=yes
13975   ;;
13976
13977 # No shared lib support for Linux oldld, aout, or coff.
13978 linux*oldld* | linux*aout* | linux*coff*)
13979   dynamic_linker=no
13980   ;;
13981
13982 # This must be Linux ELF.
13983 linux*)
13984   version_type=linux
13985   need_lib_prefix=no
13986   need_version=no
13987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13988   soname_spec='${libname}${release}${shared_ext}$major'
13989   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13990   shlibpath_var=LD_LIBRARY_PATH
13991   shlibpath_overrides_runpath=no
13992   # This implies no fast_install, which is unacceptable.
13993   # Some rework will be needed to allow for fast_install
13994   # before this can be enabled.
13995   hardcode_into_libs=yes
13996
13997   # Append ld.so.conf contents to the search path
13998   if test -f /etc/ld.so.conf; then
13999     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' ' '`
14000     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14001   fi
14002
14003   # We used to test for /lib/ld.so.1 and disable shared libraries on
14004   # powerpc, because MkLinux only supported shared libraries with the
14005   # GNU dynamic linker.  Since this was broken with cross compilers,
14006   # most powerpc-linux boxes support dynamic linking these days and
14007   # people can always --disable-shared, the test was removed, and we
14008   # assume the GNU/Linux dynamic linker is in use.
14009   dynamic_linker='GNU/Linux ld.so'
14010   ;;
14011
14012 knetbsd*-gnu)
14013   version_type=linux
14014   need_lib_prefix=no
14015   need_version=no
14016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14017   soname_spec='${libname}${release}${shared_ext}$major'
14018   shlibpath_var=LD_LIBRARY_PATH
14019   shlibpath_overrides_runpath=no
14020   hardcode_into_libs=yes
14021   dynamic_linker='GNU ld.so'
14022   ;;
14023
14024 netbsd*)
14025   version_type=sunos
14026   need_lib_prefix=no
14027   need_version=no
14028   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14029     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14030     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14031     dynamic_linker='NetBSD (a.out) ld.so'
14032   else
14033     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14034     soname_spec='${libname}${release}${shared_ext}$major'
14035     dynamic_linker='NetBSD ld.elf_so'
14036   fi
14037   shlibpath_var=LD_LIBRARY_PATH
14038   shlibpath_overrides_runpath=yes
14039   hardcode_into_libs=yes
14040   ;;
14041
14042 newsos6)
14043   version_type=linux
14044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14045   shlibpath_var=LD_LIBRARY_PATH
14046   shlibpath_overrides_runpath=yes
14047   ;;
14048
14049 nto-qnx*)
14050   version_type=linux
14051   need_lib_prefix=no
14052   need_version=no
14053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14054   soname_spec='${libname}${release}${shared_ext}$major'
14055   shlibpath_var=LD_LIBRARY_PATH
14056   shlibpath_overrides_runpath=yes
14057   ;;
14058
14059 openbsd*)
14060   version_type=sunos
14061   need_lib_prefix=no
14062   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14063   case $host_os in
14064     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14065     *)                         need_version=no  ;;
14066   esac
14067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14068   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14069   shlibpath_var=LD_LIBRARY_PATH
14070   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14071     case $host_os in
14072       openbsd2.[89] | openbsd2.[89].*)
14073         shlibpath_overrides_runpath=no
14074         ;;
14075       *)
14076         shlibpath_overrides_runpath=yes
14077         ;;
14078       esac
14079   else
14080     shlibpath_overrides_runpath=yes
14081   fi
14082   ;;
14083
14084 os2*)
14085   libname_spec='$name'
14086   shrext_cmds=".dll"
14087   need_lib_prefix=no
14088   library_names_spec='$libname${shared_ext} $libname.a'
14089   dynamic_linker='OS/2 ld.exe'
14090   shlibpath_var=LIBPATH
14091   ;;
14092
14093 osf3* | osf4* | osf5*)
14094   version_type=osf
14095   need_lib_prefix=no
14096   need_version=no
14097   soname_spec='${libname}${release}${shared_ext}$major'
14098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14099   shlibpath_var=LD_LIBRARY_PATH
14100   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14101   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14102   ;;
14103
14104 sco3.2v5*)
14105   version_type=osf
14106   soname_spec='${libname}${release}${shared_ext}$major'
14107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14108   shlibpath_var=LD_LIBRARY_PATH
14109   ;;
14110
14111 solaris*)
14112   version_type=linux
14113   need_lib_prefix=no
14114   need_version=no
14115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14116   soname_spec='${libname}${release}${shared_ext}$major'
14117   shlibpath_var=LD_LIBRARY_PATH
14118   shlibpath_overrides_runpath=yes
14119   hardcode_into_libs=yes
14120   # ldd complains unless libraries are executable
14121   postinstall_cmds='chmod +x $lib'
14122   ;;
14123
14124 sunos4*)
14125   version_type=sunos
14126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14127   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14128   shlibpath_var=LD_LIBRARY_PATH
14129   shlibpath_overrides_runpath=yes
14130   if test "$with_gnu_ld" = yes; then
14131     need_lib_prefix=no
14132   fi
14133   need_version=yes
14134   ;;
14135
14136 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14137   version_type=linux
14138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14139   soname_spec='${libname}${release}${shared_ext}$major'
14140   shlibpath_var=LD_LIBRARY_PATH
14141   case $host_vendor in
14142     sni)
14143       shlibpath_overrides_runpath=no
14144       need_lib_prefix=no
14145       export_dynamic_flag_spec='${wl}-Blargedynsym'
14146       runpath_var=LD_RUN_PATH
14147       ;;
14148     siemens)
14149       need_lib_prefix=no
14150       ;;
14151     motorola)
14152       need_lib_prefix=no
14153       need_version=no
14154       shlibpath_overrides_runpath=no
14155       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14156       ;;
14157   esac
14158   ;;
14159
14160 sysv4*MP*)
14161   if test -d /usr/nec ;then
14162     version_type=linux
14163     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14164     soname_spec='$libname${shared_ext}.$major'
14165     shlibpath_var=LD_LIBRARY_PATH
14166   fi
14167   ;;
14168
14169 uts4*)
14170   version_type=linux
14171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14172   soname_spec='${libname}${release}${shared_ext}$major'
14173   shlibpath_var=LD_LIBRARY_PATH
14174   ;;
14175
14176 *)
14177   dynamic_linker=no
14178   ;;
14179 esac
14180 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14181 echo "${ECHO_T}$dynamic_linker" >&6
14182 test "$dynamic_linker" = no && can_build_shared=no
14183
14184 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14185 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14186 hardcode_action_CXX=
14187 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14188    test -n "$runpath_var_CXX" || \
14189    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14190
14191   # We can hardcode non-existant directories.
14192   if test "$hardcode_direct_CXX" != no &&
14193      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14194      # have to relink, otherwise we might link with an installed library
14195      # when we should be linking with a yet-to-be-installed one
14196      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14197      test "$hardcode_minus_L_CXX" != no; then
14198     # Linking always hardcodes the temporary library directory.
14199     hardcode_action_CXX=relink
14200   else
14201     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14202     hardcode_action_CXX=immediate
14203   fi
14204 else
14205   # We cannot hardcode anything, or else we can only hardcode existing
14206   # directories.
14207   hardcode_action_CXX=unsupported
14208 fi
14209 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14210 echo "${ECHO_T}$hardcode_action_CXX" >&6
14211
14212 if test "$hardcode_action_CXX" = relink; then
14213   # Fast installation is not supported
14214   enable_fast_install=no
14215 elif test "$shlibpath_overrides_runpath" = yes ||
14216      test "$enable_shared" = no; then
14217   # Fast installation is not necessary
14218   enable_fast_install=needless
14219 fi
14220
14221 striplib=
14222 old_striplib=
14223 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14224 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14225 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14226   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14227   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14228   echo "$as_me:$LINENO: result: yes" >&5
14229 echo "${ECHO_T}yes" >&6
14230 else
14231 # FIXME - insert some real tests, host_os isn't really good enough
14232   case $host_os in
14233    darwin*)
14234        if test -n "$STRIP" ; then
14235          striplib="$STRIP -x"
14236          echo "$as_me:$LINENO: result: yes" >&5
14237 echo "${ECHO_T}yes" >&6
14238        else
14239   echo "$as_me:$LINENO: result: no" >&5
14240 echo "${ECHO_T}no" >&6
14241 fi
14242        ;;
14243    *)
14244   echo "$as_me:$LINENO: result: no" >&5
14245 echo "${ECHO_T}no" >&6
14246     ;;
14247   esac
14248 fi
14249
14250 if test "x$enable_dlopen" != xyes; then
14251   enable_dlopen=unknown
14252   enable_dlopen_self=unknown
14253   enable_dlopen_self_static=unknown
14254 else
14255   lt_cv_dlopen=no
14256   lt_cv_dlopen_libs=
14257
14258   case $host_os in
14259   beos*)
14260     lt_cv_dlopen="load_add_on"
14261     lt_cv_dlopen_libs=
14262     lt_cv_dlopen_self=yes
14263     ;;
14264
14265   mingw* | pw32*)
14266     lt_cv_dlopen="LoadLibrary"
14267     lt_cv_dlopen_libs=
14268    ;;
14269
14270   cygwin*)
14271     lt_cv_dlopen="dlopen"
14272     lt_cv_dlopen_libs=
14273    ;;
14274
14275   darwin*)
14276   # if libdl is installed we need to link against it
14277     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14278 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14279 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14280   echo $ECHO_N "(cached) $ECHO_C" >&6
14281 else
14282   ac_check_lib_save_LIBS=$LIBS
14283 LIBS="-ldl  $LIBS"
14284 cat >conftest.$ac_ext <<_ACEOF
14285 /* confdefs.h.  */
14286 _ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h.  */
14290
14291 /* Override any gcc2 internal prototype to avoid an error.  */
14292 #ifdef __cplusplus
14293 extern "C"
14294 #endif
14295 /* We use char because int might match the return type of a gcc2
14296    builtin and then its argument prototype would still apply.  */
14297 char dlopen ();
14298 int
14299 main ()
14300 {
14301 dlopen ();
14302   ;
14303   return 0;
14304 }
14305 _ACEOF
14306 rm -f conftest.$ac_objext conftest$ac_exeext
14307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14308   (eval $ac_link) 2>conftest.er1
14309   ac_status=$?
14310   grep -v '^ *+' conftest.er1 >conftest.err
14311   rm -f conftest.er1
14312   cat conftest.err >&5
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); } &&
14315          { ac_try='test -z "$ac_cxx_werror_flag"
14316                          || test ! -s conftest.err'
14317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318   (eval $ac_try) 2>&5
14319   ac_status=$?
14320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321   (exit $ac_status); }; } &&
14322          { ac_try='test -s conftest$ac_exeext'
14323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324   (eval $ac_try) 2>&5
14325   ac_status=$?
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); }; }; then
14328   ac_cv_lib_dl_dlopen=yes
14329 else
14330   echo "$as_me: failed program was:" >&5
14331 sed 's/^/| /' conftest.$ac_ext >&5
14332
14333 ac_cv_lib_dl_dlopen=no
14334 fi
14335 rm -f conftest.err conftest.$ac_objext \
14336       conftest$ac_exeext conftest.$ac_ext
14337 LIBS=$ac_check_lib_save_LIBS
14338 fi
14339 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14340 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14341 if test $ac_cv_lib_dl_dlopen = yes; then
14342   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14343 else
14344
14345     lt_cv_dlopen="dyld"
14346     lt_cv_dlopen_libs=
14347     lt_cv_dlopen_self=yes
14348
14349 fi
14350
14351    ;;
14352
14353   *)
14354     echo "$as_me:$LINENO: checking for shl_load" >&5
14355 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14356 if test "${ac_cv_func_shl_load+set}" = set; then
14357   echo $ECHO_N "(cached) $ECHO_C" >&6
14358 else
14359   cat >conftest.$ac_ext <<_ACEOF
14360 /* confdefs.h.  */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h.  */
14365 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14367 #define shl_load innocuous_shl_load
14368
14369 /* System header to define __stub macros and hopefully few prototypes,
14370     which can conflict with char shl_load (); below.
14371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14372     <limits.h> exists even on freestanding compilers.  */
14373
14374 #ifdef __STDC__
14375 # include <limits.h>
14376 #else
14377 # include <assert.h>
14378 #endif
14379
14380 #undef shl_load
14381
14382 /* Override any gcc2 internal prototype to avoid an error.  */
14383 #ifdef __cplusplus
14384 extern "C"
14385 {
14386 #endif
14387 /* We use char because int might match the return type of a gcc2
14388    builtin and then its argument prototype would still apply.  */
14389 char shl_load ();
14390 /* The GNU C library defines this for functions which it implements
14391     to always fail with ENOSYS.  Some functions are actually named
14392     something starting with __ and the normal name is an alias.  */
14393 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14394 choke me
14395 #else
14396 char (*f) () = shl_load;
14397 #endif
14398 #ifdef __cplusplus
14399 }
14400 #endif
14401
14402 int
14403 main ()
14404 {
14405 return f != shl_load;
14406   ;
14407   return 0;
14408 }
14409 _ACEOF
14410 rm -f conftest.$ac_objext conftest$ac_exeext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14412   (eval $ac_link) 2>conftest.er1
14413   ac_status=$?
14414   grep -v '^ *+' conftest.er1 >conftest.err
14415   rm -f conftest.er1
14416   cat conftest.err >&5
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); } &&
14419          { ac_try='test -z "$ac_cxx_werror_flag"
14420                          || test ! -s conftest.err'
14421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422   (eval $ac_try) 2>&5
14423   ac_status=$?
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); }; } &&
14426          { ac_try='test -s conftest$ac_exeext'
14427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428   (eval $ac_try) 2>&5
14429   ac_status=$?
14430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431   (exit $ac_status); }; }; then
14432   ac_cv_func_shl_load=yes
14433 else
14434   echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14436
14437 ac_cv_func_shl_load=no
14438 fi
14439 rm -f conftest.err conftest.$ac_objext \
14440       conftest$ac_exeext conftest.$ac_ext
14441 fi
14442 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14443 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14444 if test $ac_cv_func_shl_load = yes; then
14445   lt_cv_dlopen="shl_load"
14446 else
14447   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14448 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14449 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14450   echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452   ac_check_lib_save_LIBS=$LIBS
14453 LIBS="-ldld  $LIBS"
14454 cat >conftest.$ac_ext <<_ACEOF
14455 /* confdefs.h.  */
14456 _ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h.  */
14460
14461 /* Override any gcc2 internal prototype to avoid an error.  */
14462 #ifdef __cplusplus
14463 extern "C"
14464 #endif
14465 /* We use char because int might match the return type of a gcc2
14466    builtin and then its argument prototype would still apply.  */
14467 char shl_load ();
14468 int
14469 main ()
14470 {
14471 shl_load ();
14472   ;
14473   return 0;
14474 }
14475 _ACEOF
14476 rm -f conftest.$ac_objext conftest$ac_exeext
14477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14478   (eval $ac_link) 2>conftest.er1
14479   ac_status=$?
14480   grep -v '^ *+' conftest.er1 >conftest.err
14481   rm -f conftest.er1
14482   cat conftest.err >&5
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); } &&
14485          { ac_try='test -z "$ac_cxx_werror_flag"
14486                          || test ! -s conftest.err'
14487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488   (eval $ac_try) 2>&5
14489   ac_status=$?
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); }; } &&
14492          { ac_try='test -s conftest$ac_exeext'
14493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494   (eval $ac_try) 2>&5
14495   ac_status=$?
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; }; then
14498   ac_cv_lib_dld_shl_load=yes
14499 else
14500   echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14502
14503 ac_cv_lib_dld_shl_load=no
14504 fi
14505 rm -f conftest.err conftest.$ac_objext \
14506       conftest$ac_exeext conftest.$ac_ext
14507 LIBS=$ac_check_lib_save_LIBS
14508 fi
14509 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14510 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14511 if test $ac_cv_lib_dld_shl_load = yes; then
14512   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14513 else
14514   echo "$as_me:$LINENO: checking for dlopen" >&5
14515 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14516 if test "${ac_cv_func_dlopen+set}" = set; then
14517   echo $ECHO_N "(cached) $ECHO_C" >&6
14518 else
14519   cat >conftest.$ac_ext <<_ACEOF
14520 /* confdefs.h.  */
14521 _ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h.  */
14525 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14526    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14527 #define dlopen innocuous_dlopen
14528
14529 /* System header to define __stub macros and hopefully few prototypes,
14530     which can conflict with char dlopen (); below.
14531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14532     <limits.h> exists even on freestanding compilers.  */
14533
14534 #ifdef __STDC__
14535 # include <limits.h>
14536 #else
14537 # include <assert.h>
14538 #endif
14539
14540 #undef dlopen
14541
14542 /* Override any gcc2 internal prototype to avoid an error.  */
14543 #ifdef __cplusplus
14544 extern "C"
14545 {
14546 #endif
14547 /* We use char because int might match the return type of a gcc2
14548    builtin and then its argument prototype would still apply.  */
14549 char dlopen ();
14550 /* The GNU C library defines this for functions which it implements
14551     to always fail with ENOSYS.  Some functions are actually named
14552     something starting with __ and the normal name is an alias.  */
14553 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14554 choke me
14555 #else
14556 char (*f) () = dlopen;
14557 #endif
14558 #ifdef __cplusplus
14559 }
14560 #endif
14561
14562 int
14563 main ()
14564 {
14565 return f != dlopen;
14566   ;
14567   return 0;
14568 }
14569 _ACEOF
14570 rm -f conftest.$ac_objext conftest$ac_exeext
14571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14572   (eval $ac_link) 2>conftest.er1
14573   ac_status=$?
14574   grep -v '^ *+' conftest.er1 >conftest.err
14575   rm -f conftest.er1
14576   cat conftest.err >&5
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); } &&
14579          { ac_try='test -z "$ac_cxx_werror_flag"
14580                          || test ! -s conftest.err'
14581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582   (eval $ac_try) 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); }; } &&
14586          { ac_try='test -s conftest$ac_exeext'
14587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588   (eval $ac_try) 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); }; }; then
14592   ac_cv_func_dlopen=yes
14593 else
14594   echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14596
14597 ac_cv_func_dlopen=no
14598 fi
14599 rm -f conftest.err conftest.$ac_objext \
14600       conftest$ac_exeext conftest.$ac_ext
14601 fi
14602 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14603 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14604 if test $ac_cv_func_dlopen = yes; then
14605   lt_cv_dlopen="dlopen"
14606 else
14607   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14608 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14609 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14610   echo $ECHO_N "(cached) $ECHO_C" >&6
14611 else
14612   ac_check_lib_save_LIBS=$LIBS
14613 LIBS="-ldl  $LIBS"
14614 cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h.  */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h.  */
14620
14621 /* Override any gcc2 internal prototype to avoid an error.  */
14622 #ifdef __cplusplus
14623 extern "C"
14624 #endif
14625 /* We use char because int might match the return type of a gcc2
14626    builtin and then its argument prototype would still apply.  */
14627 char dlopen ();
14628 int
14629 main ()
14630 {
14631 dlopen ();
14632   ;
14633   return 0;
14634 }
14635 _ACEOF
14636 rm -f conftest.$ac_objext conftest$ac_exeext
14637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14638   (eval $ac_link) 2>conftest.er1
14639   ac_status=$?
14640   grep -v '^ *+' conftest.er1 >conftest.err
14641   rm -f conftest.er1
14642   cat conftest.err >&5
14643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); } &&
14645          { ac_try='test -z "$ac_cxx_werror_flag"
14646                          || test ! -s conftest.err'
14647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648   (eval $ac_try) 2>&5
14649   ac_status=$?
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); }; } &&
14652          { ac_try='test -s conftest$ac_exeext'
14653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654   (eval $ac_try) 2>&5
14655   ac_status=$?
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); }; }; then
14658   ac_cv_lib_dl_dlopen=yes
14659 else
14660   echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14662
14663 ac_cv_lib_dl_dlopen=no
14664 fi
14665 rm -f conftest.err conftest.$ac_objext \
14666       conftest$ac_exeext conftest.$ac_ext
14667 LIBS=$ac_check_lib_save_LIBS
14668 fi
14669 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14670 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14671 if test $ac_cv_lib_dl_dlopen = yes; then
14672   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14673 else
14674   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14675 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14676 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14677   echo $ECHO_N "(cached) $ECHO_C" >&6
14678 else
14679   ac_check_lib_save_LIBS=$LIBS
14680 LIBS="-lsvld  $LIBS"
14681 cat >conftest.$ac_ext <<_ACEOF
14682 /* confdefs.h.  */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h.  */
14687
14688 /* Override any gcc2 internal prototype to avoid an error.  */
14689 #ifdef __cplusplus
14690 extern "C"
14691 #endif
14692 /* We use char because int might match the return type of a gcc2
14693    builtin and then its argument prototype would still apply.  */
14694 char dlopen ();
14695 int
14696 main ()
14697 {
14698 dlopen ();
14699   ;
14700   return 0;
14701 }
14702 _ACEOF
14703 rm -f conftest.$ac_objext conftest$ac_exeext
14704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14705   (eval $ac_link) 2>conftest.er1
14706   ac_status=$?
14707   grep -v '^ *+' conftest.er1 >conftest.err
14708   rm -f conftest.er1
14709   cat conftest.err >&5
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); } &&
14712          { ac_try='test -z "$ac_cxx_werror_flag"
14713                          || test ! -s conftest.err'
14714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715   (eval $ac_try) 2>&5
14716   ac_status=$?
14717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718   (exit $ac_status); }; } &&
14719          { ac_try='test -s conftest$ac_exeext'
14720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721   (eval $ac_try) 2>&5
14722   ac_status=$?
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); }; }; then
14725   ac_cv_lib_svld_dlopen=yes
14726 else
14727   echo "$as_me: failed program was:" >&5
14728 sed 's/^/| /' conftest.$ac_ext >&5
14729
14730 ac_cv_lib_svld_dlopen=no
14731 fi
14732 rm -f conftest.err conftest.$ac_objext \
14733       conftest$ac_exeext conftest.$ac_ext
14734 LIBS=$ac_check_lib_save_LIBS
14735 fi
14736 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14737 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14738 if test $ac_cv_lib_svld_dlopen = yes; then
14739   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14740 else
14741   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14742 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14743 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14744   echo $ECHO_N "(cached) $ECHO_C" >&6
14745 else
14746   ac_check_lib_save_LIBS=$LIBS
14747 LIBS="-ldld  $LIBS"
14748 cat >conftest.$ac_ext <<_ACEOF
14749 /* confdefs.h.  */
14750 _ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h.  */
14754
14755 /* Override any gcc2 internal prototype to avoid an error.  */
14756 #ifdef __cplusplus
14757 extern "C"
14758 #endif
14759 /* We use char because int might match the return type of a gcc2
14760    builtin and then its argument prototype would still apply.  */
14761 char dld_link ();
14762 int
14763 main ()
14764 {
14765 dld_link ();
14766   ;
14767   return 0;
14768 }
14769 _ACEOF
14770 rm -f conftest.$ac_objext conftest$ac_exeext
14771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14772   (eval $ac_link) 2>conftest.er1
14773   ac_status=$?
14774   grep -v '^ *+' conftest.er1 >conftest.err
14775   rm -f conftest.er1
14776   cat conftest.err >&5
14777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778   (exit $ac_status); } &&
14779          { ac_try='test -z "$ac_cxx_werror_flag"
14780                          || test ! -s conftest.err'
14781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782   (eval $ac_try) 2>&5
14783   ac_status=$?
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); }; } &&
14786          { ac_try='test -s conftest$ac_exeext'
14787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788   (eval $ac_try) 2>&5
14789   ac_status=$?
14790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); }; }; then
14792   ac_cv_lib_dld_dld_link=yes
14793 else
14794   echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14796
14797 ac_cv_lib_dld_dld_link=no
14798 fi
14799 rm -f conftest.err conftest.$ac_objext \
14800       conftest$ac_exeext conftest.$ac_ext
14801 LIBS=$ac_check_lib_save_LIBS
14802 fi
14803 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14804 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14805 if test $ac_cv_lib_dld_dld_link = yes; then
14806   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14807 fi
14808
14809
14810 fi
14811
14812
14813 fi
14814
14815
14816 fi
14817
14818
14819 fi
14820
14821
14822 fi
14823
14824     ;;
14825   esac
14826
14827   if test "x$lt_cv_dlopen" != xno; then
14828     enable_dlopen=yes
14829   else
14830     enable_dlopen=no
14831   fi
14832
14833   case $lt_cv_dlopen in
14834   dlopen)
14835     save_CPPFLAGS="$CPPFLAGS"
14836     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14837
14838     save_LDFLAGS="$LDFLAGS"
14839     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14840
14841     save_LIBS="$LIBS"
14842     LIBS="$lt_cv_dlopen_libs $LIBS"
14843
14844     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14845 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14846 if test "${lt_cv_dlopen_self+set}" = set; then
14847   echo $ECHO_N "(cached) $ECHO_C" >&6
14848 else
14849           if test "$cross_compiling" = yes; then :
14850   lt_cv_dlopen_self=cross
14851 else
14852   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14853   lt_status=$lt_dlunknown
14854   cat > conftest.$ac_ext <<EOF
14855 #line 14855 "configure"
14856 #include "confdefs.h"
14857
14858 #if HAVE_DLFCN_H
14859 #include <dlfcn.h>
14860 #endif
14861
14862 #include <stdio.h>
14863
14864 #ifdef RTLD_GLOBAL
14865 #  define LT_DLGLOBAL           RTLD_GLOBAL
14866 #else
14867 #  ifdef DL_GLOBAL
14868 #    define LT_DLGLOBAL         DL_GLOBAL
14869 #  else
14870 #    define LT_DLGLOBAL         0
14871 #  endif
14872 #endif
14873
14874 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14875    find out it does not work in some platform. */
14876 #ifndef LT_DLLAZY_OR_NOW
14877 #  ifdef RTLD_LAZY
14878 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14879 #  else
14880 #    ifdef DL_LAZY
14881 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14882 #    else
14883 #      ifdef RTLD_NOW
14884 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14885 #      else
14886 #        ifdef DL_NOW
14887 #          define LT_DLLAZY_OR_NOW      DL_NOW
14888 #        else
14889 #          define LT_DLLAZY_OR_NOW      0
14890 #        endif
14891 #      endif
14892 #    endif
14893 #  endif
14894 #endif
14895
14896 #ifdef __cplusplus
14897 extern "C" void exit (int);
14898 #endif
14899
14900 void fnord() { int i=42;}
14901 int main ()
14902 {
14903   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14904   int status = $lt_dlunknown;
14905
14906   if (self)
14907     {
14908       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14909       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14910       /* dlclose (self); */
14911     }
14912
14913     exit (status);
14914 }
14915 EOF
14916   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14917   (eval $ac_link) 2>&5
14918   ac_status=$?
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14921     (./conftest; exit; ) 2>/dev/null
14922     lt_status=$?
14923     case x$lt_status in
14924       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14925       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14926       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14927     esac
14928   else :
14929     # compilation failed
14930     lt_cv_dlopen_self=no
14931   fi
14932 fi
14933 rm -fr conftest*
14934
14935
14936 fi
14937 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14938 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14939
14940     if test "x$lt_cv_dlopen_self" = xyes; then
14941       LDFLAGS="$LDFLAGS $link_static_flag"
14942       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14943 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14944 if test "${lt_cv_dlopen_self_static+set}" = set; then
14945   echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947           if test "$cross_compiling" = yes; then :
14948   lt_cv_dlopen_self_static=cross
14949 else
14950   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14951   lt_status=$lt_dlunknown
14952   cat > conftest.$ac_ext <<EOF
14953 #line 14953 "configure"
14954 #include "confdefs.h"
14955
14956 #if HAVE_DLFCN_H
14957 #include <dlfcn.h>
14958 #endif
14959
14960 #include <stdio.h>
14961
14962 #ifdef RTLD_GLOBAL
14963 #  define LT_DLGLOBAL           RTLD_GLOBAL
14964 #else
14965 #  ifdef DL_GLOBAL
14966 #    define LT_DLGLOBAL         DL_GLOBAL
14967 #  else
14968 #    define LT_DLGLOBAL         0
14969 #  endif
14970 #endif
14971
14972 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14973    find out it does not work in some platform. */
14974 #ifndef LT_DLLAZY_OR_NOW
14975 #  ifdef RTLD_LAZY
14976 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14977 #  else
14978 #    ifdef DL_LAZY
14979 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14980 #    else
14981 #      ifdef RTLD_NOW
14982 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14983 #      else
14984 #        ifdef DL_NOW
14985 #          define LT_DLLAZY_OR_NOW      DL_NOW
14986 #        else
14987 #          define LT_DLLAZY_OR_NOW      0
14988 #        endif
14989 #      endif
14990 #    endif
14991 #  endif
14992 #endif
14993
14994 #ifdef __cplusplus
14995 extern "C" void exit (int);
14996 #endif
14997
14998 void fnord() { int i=42;}
14999 int main ()
15000 {
15001   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15002   int status = $lt_dlunknown;
15003
15004   if (self)
15005     {
15006       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15007       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15008       /* dlclose (self); */
15009     }
15010
15011     exit (status);
15012 }
15013 EOF
15014   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15015   (eval $ac_link) 2>&5
15016   ac_status=$?
15017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15019     (./conftest; exit; ) 2>/dev/null
15020     lt_status=$?
15021     case x$lt_status in
15022       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15023       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15024       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15025     esac
15026   else :
15027     # compilation failed
15028     lt_cv_dlopen_self_static=no
15029   fi
15030 fi
15031 rm -fr conftest*
15032
15033
15034 fi
15035 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15036 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15037     fi
15038
15039     CPPFLAGS="$save_CPPFLAGS"
15040     LDFLAGS="$save_LDFLAGS"
15041     LIBS="$save_LIBS"
15042     ;;
15043   esac
15044
15045   case $lt_cv_dlopen_self in
15046   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15047   *) enable_dlopen_self=unknown ;;
15048   esac
15049
15050   case $lt_cv_dlopen_self_static in
15051   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15052   *) enable_dlopen_self_static=unknown ;;
15053   esac
15054 fi
15055
15056
15057 # The else clause should only fire when bootstrapping the
15058 # libtool distribution, otherwise you forgot to ship ltmain.sh
15059 # with your package, and you will get complaints that there are
15060 # no rules to generate ltmain.sh.
15061 if test -f "$ltmain"; then
15062   # See if we are running on zsh, and set the options which allow our commands through
15063   # without removal of \ escapes.
15064   if test -n "${ZSH_VERSION+set}" ; then
15065     setopt NO_GLOB_SUBST
15066   fi
15067   # Now quote all the things that may contain metacharacters while being
15068   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15069   # variables and quote the copies for generation of the libtool script.
15070   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15071     SED SHELL STRIP \
15072     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15073     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15074     deplibs_check_method reload_flag reload_cmds need_locks \
15075     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15076     lt_cv_sys_global_symbol_to_c_name_address \
15077     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15078     old_postinstall_cmds old_postuninstall_cmds \
15079     compiler_CXX \
15080     CC_CXX \
15081     LD_CXX \
15082     lt_prog_compiler_wl_CXX \
15083     lt_prog_compiler_pic_CXX \
15084     lt_prog_compiler_static_CXX \
15085     lt_prog_compiler_no_builtin_flag_CXX \
15086     export_dynamic_flag_spec_CXX \
15087     thread_safe_flag_spec_CXX \
15088     whole_archive_flag_spec_CXX \
15089     enable_shared_with_static_runtimes_CXX \
15090     old_archive_cmds_CXX \
15091     old_archive_from_new_cmds_CXX \
15092     predep_objects_CXX \
15093     postdep_objects_CXX \
15094     predeps_CXX \
15095     postdeps_CXX \
15096     compiler_lib_search_path_CXX \
15097     archive_cmds_CXX \
15098     archive_expsym_cmds_CXX \
15099     postinstall_cmds_CXX \
15100     postuninstall_cmds_CXX \
15101     old_archive_from_expsyms_cmds_CXX \
15102     allow_undefined_flag_CXX \
15103     no_undefined_flag_CXX \
15104     export_symbols_cmds_CXX \
15105     hardcode_libdir_flag_spec_CXX \
15106     hardcode_libdir_flag_spec_ld_CXX \
15107     hardcode_libdir_separator_CXX \
15108     hardcode_automatic_CXX \
15109     module_cmds_CXX \
15110     module_expsym_cmds_CXX \
15111     lt_cv_prog_compiler_c_o_CXX \
15112     exclude_expsyms_CXX \
15113     include_expsyms_CXX; do
15114
15115     case $var in
15116     old_archive_cmds_CXX | \
15117     old_archive_from_new_cmds_CXX | \
15118     archive_cmds_CXX | \
15119     archive_expsym_cmds_CXX | \
15120     module_cmds_CXX | \
15121     module_expsym_cmds_CXX | \
15122     old_archive_from_expsyms_cmds_CXX | \
15123     export_symbols_cmds_CXX | \
15124     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15125     postinstall_cmds | postuninstall_cmds | \
15126     old_postinstall_cmds | old_postuninstall_cmds | \
15127     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15128       # Double-quote double-evaled strings.
15129       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15130       ;;
15131     *)
15132       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15133       ;;
15134     esac
15135   done
15136
15137   case $lt_echo in
15138   *'\$0 --fallback-echo"')
15139     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15140     ;;
15141   esac
15142
15143 cfgfile="$ofile"
15144
15145   cat <<__EOF__ >> "$cfgfile"
15146 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15147
15148 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15149
15150 # Shell to use when invoking shell scripts.
15151 SHELL=$lt_SHELL
15152
15153 # Whether or not to build shared libraries.
15154 build_libtool_libs=$enable_shared
15155
15156 # Whether or not to build static libraries.
15157 build_old_libs=$enable_static
15158
15159 # Whether or not to add -lc for building shared libraries.
15160 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15161
15162 # Whether or not to disallow shared libs when runtime libs are static
15163 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15164
15165 # Whether or not to optimize for fast installation.
15166 fast_install=$enable_fast_install
15167
15168 # The host system.
15169 host_alias=$host_alias
15170 host=$host
15171 host_os=$host_os
15172
15173 # The build system.
15174 build_alias=$build_alias
15175 build=$build
15176 build_os=$build_os
15177
15178 # An echo program that does not interpret backslashes.
15179 echo=$lt_echo
15180
15181 # The archiver.
15182 AR=$lt_AR
15183 AR_FLAGS=$lt_AR_FLAGS
15184
15185 # A C compiler.
15186 LTCC=$lt_LTCC
15187
15188 # A language-specific compiler.
15189 CC=$lt_compiler_CXX
15190
15191 # Is the compiler the GNU C compiler?
15192 with_gcc=$GCC_CXX
15193
15194 # An ERE matcher.
15195 EGREP=$lt_EGREP
15196
15197 # The linker used to build libraries.
15198 LD=$lt_LD_CXX
15199
15200 # Whether we need hard or soft links.
15201 LN_S=$lt_LN_S
15202
15203 # A BSD-compatible nm program.
15204 NM=$lt_NM
15205
15206 # A symbol stripping program
15207 STRIP=$lt_STRIP
15208
15209 # Used to examine libraries when file_magic_cmd begins "file"
15210 MAGIC_CMD=$MAGIC_CMD
15211
15212 # Used on cygwin: DLL creation program.
15213 DLLTOOL="$DLLTOOL"
15214
15215 # Used on cygwin: object dumper.
15216 OBJDUMP="$OBJDUMP"
15217
15218 # Used on cygwin: assembler.
15219 AS="$AS"
15220
15221 # The name of the directory that contains temporary libtool files.
15222 objdir=$objdir
15223
15224 # How to create reloadable object files.
15225 reload_flag=$lt_reload_flag
15226 reload_cmds=$lt_reload_cmds
15227
15228 # How to pass a linker flag through the compiler.
15229 wl=$lt_lt_prog_compiler_wl_CXX
15230
15231 # Object file suffix (normally "o").
15232 objext="$ac_objext"
15233
15234 # Old archive suffix (normally "a").
15235 libext="$libext"
15236
15237 # Shared library suffix (normally ".so").
15238 shrext_cmds='$shrext_cmds'
15239
15240 # Executable file suffix (normally "").
15241 exeext="$exeext"
15242
15243 # Additional compiler flags for building library objects.
15244 pic_flag=$lt_lt_prog_compiler_pic_CXX
15245 pic_mode=$pic_mode
15246
15247 # What is the maximum length of a command?
15248 max_cmd_len=$lt_cv_sys_max_cmd_len
15249
15250 # Does compiler simultaneously support -c and -o options?
15251 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15252
15253 # Must we lock files when doing compilation?
15254 need_locks=$lt_need_locks
15255
15256 # Do we need the lib prefix for modules?
15257 need_lib_prefix=$need_lib_prefix
15258
15259 # Do we need a version for libraries?
15260 need_version=$need_version
15261
15262 # Whether dlopen is supported.
15263 dlopen_support=$enable_dlopen
15264
15265 # Whether dlopen of programs is supported.
15266 dlopen_self=$enable_dlopen_self
15267
15268 # Whether dlopen of statically linked programs is supported.
15269 dlopen_self_static=$enable_dlopen_self_static
15270
15271 # Compiler flag to prevent dynamic linking.
15272 link_static_flag=$lt_lt_prog_compiler_static_CXX
15273
15274 # Compiler flag to turn off builtin functions.
15275 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15276
15277 # Compiler flag to allow reflexive dlopens.
15278 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15279
15280 # Compiler flag to generate shared objects directly from archives.
15281 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15282
15283 # Compiler flag to generate thread-safe objects.
15284 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15285
15286 # Library versioning type.
15287 version_type=$version_type
15288
15289 # Format of library name prefix.
15290 libname_spec=$lt_libname_spec
15291
15292 # List of archive names.  First name is the real one, the rest are links.
15293 # The last name is the one that the linker finds with -lNAME.
15294 library_names_spec=$lt_library_names_spec
15295
15296 # The coded name of the library, if different from the real name.
15297 soname_spec=$lt_soname_spec
15298
15299 # Commands used to build and install an old-style archive.
15300 RANLIB=$lt_RANLIB
15301 old_archive_cmds=$lt_old_archive_cmds_CXX
15302 old_postinstall_cmds=$lt_old_postinstall_cmds
15303 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15304
15305 # Create an old-style archive from a shared archive.
15306 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15307
15308 # Create a temporary old-style archive to link instead of a shared archive.
15309 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15310
15311 # Commands used to build and install a shared archive.
15312 archive_cmds=$lt_archive_cmds_CXX
15313 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15314 postinstall_cmds=$lt_postinstall_cmds
15315 postuninstall_cmds=$lt_postuninstall_cmds
15316
15317 # Commands used to build a loadable module (assumed same as above if empty)
15318 module_cmds=$lt_module_cmds_CXX
15319 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15320
15321 # Commands to strip libraries.
15322 old_striplib=$lt_old_striplib
15323 striplib=$lt_striplib
15324
15325 # Dependencies to place before the objects being linked to create a
15326 # shared library.
15327 predep_objects=$lt_predep_objects_CXX
15328
15329 # Dependencies to place after the objects being linked to create a
15330 # shared library.
15331 postdep_objects=$lt_postdep_objects_CXX
15332
15333 # Dependencies to place before the objects being linked to create a
15334 # shared library.
15335 predeps=$lt_predeps_CXX
15336
15337 # Dependencies to place after the objects being linked to create a
15338 # shared library.
15339 postdeps=$lt_postdeps_CXX
15340
15341 # The library search path used internally by the compiler when linking
15342 # a shared library.
15343 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15344
15345 # Method to check whether dependent libraries are shared objects.
15346 deplibs_check_method=$lt_deplibs_check_method
15347
15348 # Command to use when deplibs_check_method == file_magic.
15349 file_magic_cmd=$lt_file_magic_cmd
15350
15351 # Flag that allows shared libraries with undefined symbols to be built.
15352 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15353
15354 # Flag that forces no undefined symbols.
15355 no_undefined_flag=$lt_no_undefined_flag_CXX
15356
15357 # Commands used to finish a libtool library installation in a directory.
15358 finish_cmds=$lt_finish_cmds
15359
15360 # Same as above, but a single script fragment to be evaled but not shown.
15361 finish_eval=$lt_finish_eval
15362
15363 # Take the output of nm and produce a listing of raw symbols and C names.
15364 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15365
15366 # Transform the output of nm in a proper C declaration
15367 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15368
15369 # Transform the output of nm in a C name address pair
15370 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15371
15372 # This is the shared library runtime path variable.
15373 runpath_var=$runpath_var
15374
15375 # This is the shared library path variable.
15376 shlibpath_var=$shlibpath_var
15377
15378 # Is shlibpath searched before the hard-coded library search path?
15379 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15380
15381 # How to hardcode a shared library path into an executable.
15382 hardcode_action=$hardcode_action_CXX
15383
15384 # Whether we should hardcode library paths into libraries.
15385 hardcode_into_libs=$hardcode_into_libs
15386
15387 # Flag to hardcode \$libdir into a binary during linking.
15388 # This must work even if \$libdir does not exist.
15389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15390
15391 # If ld is used when linking, flag to hardcode \$libdir into
15392 # a binary during linking. This must work even if \$libdir does
15393 # not exist.
15394 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15395
15396 # Whether we need a single -rpath flag with a separated argument.
15397 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15398
15399 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15400 # resulting binary.
15401 hardcode_direct=$hardcode_direct_CXX
15402
15403 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15404 # resulting binary.
15405 hardcode_minus_L=$hardcode_minus_L_CXX
15406
15407 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15408 # the resulting binary.
15409 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15410
15411 # Set to yes if building a shared library automatically hardcodes DIR into the library
15412 # and all subsequent libraries and executables linked against it.
15413 hardcode_automatic=$hardcode_automatic_CXX
15414
15415 # Variables whose values should be saved in libtool wrapper scripts and
15416 # restored at relink time.
15417 variables_saved_for_relink="$variables_saved_for_relink"
15418
15419 # Whether libtool must link a program against all its dependency libraries.
15420 link_all_deplibs=$link_all_deplibs_CXX
15421
15422 # Compile-time system search path for libraries
15423 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15424
15425 # Run-time system search path for libraries
15426 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15427
15428 # Fix the shell variable \$srcfile for the compiler.
15429 fix_srcfile_path="$fix_srcfile_path_CXX"
15430
15431 # Set to yes if exported symbols are required.
15432 always_export_symbols=$always_export_symbols_CXX
15433
15434 # The commands to list exported symbols.
15435 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15436
15437 # The commands to extract the exported symbol list from a shared archive.
15438 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15439
15440 # Symbols that should not be listed in the preloaded symbols.
15441 exclude_expsyms=$lt_exclude_expsyms_CXX
15442
15443 # Symbols that must always be exported.
15444 include_expsyms=$lt_include_expsyms_CXX
15445
15446 # ### END LIBTOOL TAG CONFIG: $tagname
15447
15448 __EOF__
15449
15450
15451 else
15452   # If there is no Makefile yet, we rely on a make rule to execute
15453   # `config.status --recheck' to rerun these tests and create the
15454   # libtool script then.
15455   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15456   if test -f "$ltmain_in"; then
15457     test -f Makefile && make "$ltmain"
15458   fi
15459 fi
15460
15461
15462 ac_ext=c
15463 ac_cpp='$CPP $CPPFLAGS'
15464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15467
15468 CC=$lt_save_CC
15469 LDCXX=$LD
15470 LD=$lt_save_LD
15471 GCC=$lt_save_GCC
15472 with_gnu_ldcxx=$with_gnu_ld
15473 with_gnu_ld=$lt_save_with_gnu_ld
15474 lt_cv_path_LDCXX=$lt_cv_path_LD
15475 lt_cv_path_LD=$lt_save_path_LD
15476 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15477 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15478
15479         else
15480           tagname=""
15481         fi
15482         ;;
15483
15484       F77)
15485         if test -n "$F77" && test "X$F77" != "Xno"; then
15486
15487 ac_ext=f
15488 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15489 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15490 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15491
15492
15493 archive_cmds_need_lc_F77=no
15494 allow_undefined_flag_F77=
15495 always_export_symbols_F77=no
15496 archive_expsym_cmds_F77=
15497 export_dynamic_flag_spec_F77=
15498 hardcode_direct_F77=no
15499 hardcode_libdir_flag_spec_F77=
15500 hardcode_libdir_flag_spec_ld_F77=
15501 hardcode_libdir_separator_F77=
15502 hardcode_minus_L_F77=no
15503 hardcode_automatic_F77=no
15504 module_cmds_F77=
15505 module_expsym_cmds_F77=
15506 link_all_deplibs_F77=unknown
15507 old_archive_cmds_F77=$old_archive_cmds
15508 no_undefined_flag_F77=
15509 whole_archive_flag_spec_F77=
15510 enable_shared_with_static_runtimes_F77=no
15511
15512 # Source file extension for f77 test sources.
15513 ac_ext=f
15514
15515 # Object file extension for compiled f77 test sources.
15516 objext=o
15517 objext_F77=$objext
15518
15519 # Code to be used in simple compile tests
15520 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15521
15522 # Code to be used in simple link tests
15523 lt_simple_link_test_code="      program t\n      end\n"
15524
15525 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15526
15527 # If no C compiler was specified, use CC.
15528 LTCC=${LTCC-"$CC"}
15529
15530 # Allow CC to be a program name with arguments.
15531 compiler=$CC
15532
15533
15534 # save warnings/boilerplate of simple test code
15535 ac_outfile=conftest.$ac_objext
15536 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15537 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15538 _lt_compiler_boilerplate=`cat conftest.err`
15539 $rm conftest*
15540
15541 ac_outfile=conftest.$ac_objext
15542 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15543 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15544 _lt_linker_boilerplate=`cat conftest.err`
15545 $rm conftest*
15546
15547
15548 # Allow CC to be a program name with arguments.
15549 lt_save_CC="$CC"
15550 CC=${F77-"f77"}
15551 compiler=$CC
15552 compiler_F77=$CC
15553 for cc_temp in $compiler""; do
15554   case $cc_temp in
15555     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15556     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15557     \-*) ;;
15558     *) break;;
15559   esac
15560 done
15561 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15562
15563
15564 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15565 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15566 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15567 echo "${ECHO_T}$can_build_shared" >&6
15568
15569 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15570 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15571 test "$can_build_shared" = "no" && enable_shared=no
15572
15573 # On AIX, shared libraries and static libraries use the same namespace, and
15574 # are all built from PIC.
15575 case "$host_os" in
15576 aix3*)
15577   test "$enable_shared" = yes && enable_static=no
15578   if test -n "$RANLIB"; then
15579     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15580     postinstall_cmds='$RANLIB $lib'
15581   fi
15582   ;;
15583 aix4* | aix5*)
15584   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15585     test "$enable_shared" = yes && enable_static=no
15586   fi
15587   ;;
15588 esac
15589 echo "$as_me:$LINENO: result: $enable_shared" >&5
15590 echo "${ECHO_T}$enable_shared" >&6
15591
15592 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15593 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15594 # Make sure either enable_shared or enable_static is yes.
15595 test "$enable_shared" = yes || enable_static=yes
15596 echo "$as_me:$LINENO: result: $enable_static" >&5
15597 echo "${ECHO_T}$enable_static" >&6
15598
15599 test "$ld_shlibs_F77" = no && can_build_shared=no
15600
15601 GCC_F77="$G77"
15602 LD_F77="$LD"
15603
15604 lt_prog_compiler_wl_F77=
15605 lt_prog_compiler_pic_F77=
15606 lt_prog_compiler_static_F77=
15607
15608 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15609 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15610
15611   if test "$GCC" = yes; then
15612     lt_prog_compiler_wl_F77='-Wl,'
15613     lt_prog_compiler_static_F77='-static'
15614
15615     case $host_os in
15616       aix*)
15617       # All AIX code is PIC.
15618       if test "$host_cpu" = ia64; then
15619         # AIX 5 now supports IA64 processor
15620         lt_prog_compiler_static_F77='-Bstatic'
15621       fi
15622       ;;
15623
15624     amigaos*)
15625       # FIXME: we need at least 68020 code to build shared libraries, but
15626       # adding the `-m68020' flag to GCC prevents building anything better,
15627       # like `-m68040'.
15628       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15629       ;;
15630
15631     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15632       # PIC is the default for these OSes.
15633       ;;
15634
15635     mingw* | pw32* | os2*)
15636       # This hack is so that the source file can tell whether it is being
15637       # built for inclusion in a dll (and should export symbols for example).
15638       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15639       ;;
15640
15641     darwin* | rhapsody*)
15642       # PIC is the default on this platform
15643       # Common symbols not allowed in MH_DYLIB files
15644       lt_prog_compiler_pic_F77='-fno-common'
15645       ;;
15646
15647     msdosdjgpp*)
15648       # Just because we use GCC doesn't mean we suddenly get shared libraries
15649       # on systems that don't support them.
15650       lt_prog_compiler_can_build_shared_F77=no
15651       enable_shared=no
15652       ;;
15653
15654     sysv4*MP*)
15655       if test -d /usr/nec; then
15656         lt_prog_compiler_pic_F77=-Kconform_pic
15657       fi
15658       ;;
15659
15660     hpux*)
15661       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15662       # not for PA HP-UX.
15663       case "$host_cpu" in
15664       hppa*64*|ia64*)
15665         # +Z the default
15666         ;;
15667       *)
15668         lt_prog_compiler_pic_F77='-fPIC'
15669         ;;
15670       esac
15671       ;;
15672
15673     *)
15674       lt_prog_compiler_pic_F77='-fPIC'
15675       ;;
15676     esac
15677   else
15678     # PORTME Check for flag to pass linker flags through the system compiler.
15679     case $host_os in
15680     aix*)
15681       lt_prog_compiler_wl_F77='-Wl,'
15682       if test "$host_cpu" = ia64; then
15683         # AIX 5 now supports IA64 processor
15684         lt_prog_compiler_static_F77='-Bstatic'
15685       else
15686         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15687       fi
15688       ;;
15689       darwin*)
15690         # PIC is the default on this platform
15691         # Common symbols not allowed in MH_DYLIB files
15692        case $cc_basename in
15693          xlc*)
15694          lt_prog_compiler_pic_F77='-qnocommon'
15695          lt_prog_compiler_wl_F77='-Wl,'
15696          ;;
15697        esac
15698        ;;
15699
15700     mingw* | pw32* | os2*)
15701       # This hack is so that the source file can tell whether it is being
15702       # built for inclusion in a dll (and should export symbols for example).
15703       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15704       ;;
15705
15706     hpux9* | hpux10* | hpux11*)
15707       lt_prog_compiler_wl_F77='-Wl,'
15708       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15709       # not for PA HP-UX.
15710       case "$host_cpu" in
15711       hppa*64*|ia64*)
15712         # +Z the default
15713         ;;
15714       *)
15715         lt_prog_compiler_pic_F77='+Z'
15716         ;;
15717       esac
15718       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15719       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15720       ;;
15721
15722     irix5* | irix6* | nonstopux*)
15723       lt_prog_compiler_wl_F77='-Wl,'
15724       # PIC (with -KPIC) is the default.
15725       lt_prog_compiler_static_F77='-non_shared'
15726       ;;
15727
15728     newsos6)
15729       lt_prog_compiler_pic_F77='-KPIC'
15730       lt_prog_compiler_static_F77='-Bstatic'
15731       ;;
15732
15733     linux*)
15734       case $cc_basename in
15735       icc* | ecc*)
15736         lt_prog_compiler_wl_F77='-Wl,'
15737         lt_prog_compiler_pic_F77='-KPIC'
15738         lt_prog_compiler_static_F77='-static'
15739         ;;
15740       pgcc* | pgf77* | pgf90*)
15741         # Portland Group compilers (*not* the Pentium gcc compiler,
15742         # which looks to be a dead project)
15743         lt_prog_compiler_wl_F77='-Wl,'
15744         lt_prog_compiler_pic_F77='-fpic'
15745         lt_prog_compiler_static_F77='-static'
15746         ;;
15747       ccc*)
15748         lt_prog_compiler_wl_F77='-Wl,'
15749         # All Alpha code is PIC.
15750         lt_prog_compiler_static_F77='-non_shared'
15751         ;;
15752       esac
15753       ;;
15754
15755     osf3* | osf4* | osf5*)
15756       lt_prog_compiler_wl_F77='-Wl,'
15757       # All OSF/1 code is PIC.
15758       lt_prog_compiler_static_F77='-non_shared'
15759       ;;
15760
15761     sco3.2v5*)
15762       lt_prog_compiler_pic_F77='-Kpic'
15763       lt_prog_compiler_static_F77='-dn'
15764       ;;
15765
15766     solaris*)
15767       lt_prog_compiler_pic_F77='-KPIC'
15768       lt_prog_compiler_static_F77='-Bstatic'
15769       case $cc_basename in
15770       f77* | f90* | f95*)
15771         lt_prog_compiler_wl_F77='-Qoption ld ';;
15772       *)
15773         lt_prog_compiler_wl_F77='-Wl,';;
15774       esac
15775       ;;
15776
15777     sunos4*)
15778       lt_prog_compiler_wl_F77='-Qoption ld '
15779       lt_prog_compiler_pic_F77='-PIC'
15780       lt_prog_compiler_static_F77='-Bstatic'
15781       ;;
15782
15783     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15784       lt_prog_compiler_wl_F77='-Wl,'
15785       lt_prog_compiler_pic_F77='-KPIC'
15786       lt_prog_compiler_static_F77='-Bstatic'
15787       ;;
15788
15789     sysv4*MP*)
15790       if test -d /usr/nec ;then
15791         lt_prog_compiler_pic_F77='-Kconform_pic'
15792         lt_prog_compiler_static_F77='-Bstatic'
15793       fi
15794       ;;
15795
15796     unicos*)
15797       lt_prog_compiler_wl_F77='-Wl,'
15798       lt_prog_compiler_can_build_shared_F77=no
15799       ;;
15800
15801     uts4*)
15802       lt_prog_compiler_pic_F77='-pic'
15803       lt_prog_compiler_static_F77='-Bstatic'
15804       ;;
15805
15806     *)
15807       lt_prog_compiler_can_build_shared_F77=no
15808       ;;
15809     esac
15810   fi
15811
15812 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15813 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15814
15815 #
15816 # Check to make sure the PIC flag actually works.
15817 #
15818 if test -n "$lt_prog_compiler_pic_F77"; then
15819
15820 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15821 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15822 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15823   echo $ECHO_N "(cached) $ECHO_C" >&6
15824 else
15825   lt_prog_compiler_pic_works_F77=no
15826   ac_outfile=conftest.$ac_objext
15827    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15828    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15829    # Insert the option either (1) after the last *FLAGS variable, or
15830    # (2) before a word containing "conftest.", or (3) at the end.
15831    # Note that $ac_compile itself does not contain backslashes and begins
15832    # with a dollar sign (not a hyphen), so the echo should work correctly.
15833    # The option is referenced via a variable to avoid confusing sed.
15834    lt_compile=`echo "$ac_compile" | $SED \
15835    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15836    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15837    -e 's:$: $lt_compiler_flag:'`
15838    (eval echo "\"\$as_me:15838: $lt_compile\"" >&5)
15839    (eval "$lt_compile" 2>conftest.err)
15840    ac_status=$?
15841    cat conftest.err >&5
15842    echo "$as_me:15842: \$? = $ac_status" >&5
15843    if (exit $ac_status) && test -s "$ac_outfile"; then
15844      # The compiler can only warn and ignore the option if not recognized
15845      # So say no if there are warnings other than the usual output.
15846      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15847      $SED '/^$/d' conftest.err >conftest.er2
15848      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15849        lt_prog_compiler_pic_works_F77=yes
15850      fi
15851    fi
15852    $rm conftest*
15853
15854 fi
15855 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15856 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15857
15858 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15859     case $lt_prog_compiler_pic_F77 in
15860      "" | " "*) ;;
15861      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15862      esac
15863 else
15864     lt_prog_compiler_pic_F77=
15865      lt_prog_compiler_can_build_shared_F77=no
15866 fi
15867
15868 fi
15869 case "$host_os" in
15870   # For platforms which do not support PIC, -DPIC is meaningless:
15871   *djgpp*)
15872     lt_prog_compiler_pic_F77=
15873     ;;
15874   *)
15875     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15876     ;;
15877 esac
15878
15879 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15880 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15881 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15882   echo $ECHO_N "(cached) $ECHO_C" >&6
15883 else
15884   lt_cv_prog_compiler_c_o_F77=no
15885    $rm -r conftest 2>/dev/null
15886    mkdir conftest
15887    cd conftest
15888    mkdir out
15889    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15890
15891    lt_compiler_flag="-o out/conftest2.$ac_objext"
15892    # Insert the option either (1) after the last *FLAGS variable, or
15893    # (2) before a word containing "conftest.", or (3) at the end.
15894    # Note that $ac_compile itself does not contain backslashes and begins
15895    # with a dollar sign (not a hyphen), so the echo should work correctly.
15896    lt_compile=`echo "$ac_compile" | $SED \
15897    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15898    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15899    -e 's:$: $lt_compiler_flag:'`
15900    (eval echo "\"\$as_me:15900: $lt_compile\"" >&5)
15901    (eval "$lt_compile" 2>out/conftest.err)
15902    ac_status=$?
15903    cat out/conftest.err >&5
15904    echo "$as_me:15904: \$? = $ac_status" >&5
15905    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15906    then
15907      # The compiler can only warn and ignore the option if not recognized
15908      # So say no if there are warnings
15909      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15910      $SED '/^$/d' out/conftest.err >out/conftest.er2
15911      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15912        lt_cv_prog_compiler_c_o_F77=yes
15913      fi
15914    fi
15915    chmod u+w .
15916    $rm conftest*
15917    # SGI C++ compiler will create directory out/ii_files/ for
15918    # template instantiation
15919    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15920    $rm out/* && rmdir out
15921    cd ..
15922    rmdir conftest
15923    $rm conftest*
15924
15925 fi
15926 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15927 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15928
15929
15930 hard_links="nottested"
15931 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15932   # do not overwrite the value of need_locks provided by the user
15933   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15934 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15935   hard_links=yes
15936   $rm conftest*
15937   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15938   touch conftest.a
15939   ln conftest.a conftest.b 2>&5 || hard_links=no
15940   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15941   echo "$as_me:$LINENO: result: $hard_links" >&5
15942 echo "${ECHO_T}$hard_links" >&6
15943   if test "$hard_links" = no; then
15944     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15945 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15946     need_locks=warn
15947   fi
15948 else
15949   need_locks=no
15950 fi
15951
15952 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15953 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15954
15955   runpath_var=
15956   allow_undefined_flag_F77=
15957   enable_shared_with_static_runtimes_F77=no
15958   archive_cmds_F77=
15959   archive_expsym_cmds_F77=
15960   old_archive_From_new_cmds_F77=
15961   old_archive_from_expsyms_cmds_F77=
15962   export_dynamic_flag_spec_F77=
15963   whole_archive_flag_spec_F77=
15964   thread_safe_flag_spec_F77=
15965   hardcode_libdir_flag_spec_F77=
15966   hardcode_libdir_flag_spec_ld_F77=
15967   hardcode_libdir_separator_F77=
15968   hardcode_direct_F77=no
15969   hardcode_minus_L_F77=no
15970   hardcode_shlibpath_var_F77=unsupported
15971   link_all_deplibs_F77=unknown
15972   hardcode_automatic_F77=no
15973   module_cmds_F77=
15974   module_expsym_cmds_F77=
15975   always_export_symbols_F77=no
15976   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15977   # include_expsyms should be a list of space-separated symbols to be *always*
15978   # included in the symbol list
15979   include_expsyms_F77=
15980   # exclude_expsyms can be an extended regexp of symbols to exclude
15981   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15982   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15983   # as well as any symbol that contains `d'.
15984   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15985   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15986   # platforms (ab)use it in PIC code, but their linkers get confused if
15987   # the symbol is explicitly referenced.  Since portable code cannot
15988   # rely on this symbol name, it's probably fine to never include it in
15989   # preloaded symbol tables.
15990   extract_expsyms_cmds=
15991   # Just being paranoid about ensuring that cc_basename is set.
15992   for cc_temp in $compiler""; do
15993   case $cc_temp in
15994     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15995     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15996     \-*) ;;
15997     *) break;;
15998   esac
15999 done
16000 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16001
16002   case $host_os in
16003   cygwin* | mingw* | pw32*)
16004     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16005     # When not using gcc, we currently assume that we are using
16006     # Microsoft Visual C++.
16007     if test "$GCC" != yes; then
16008       with_gnu_ld=no
16009     fi
16010     ;;
16011   openbsd*)
16012     with_gnu_ld=no
16013     ;;
16014   esac
16015
16016   ld_shlibs_F77=yes
16017   if test "$with_gnu_ld" = yes; then
16018     # If archive_cmds runs LD, not CC, wlarc should be empty
16019     wlarc='${wl}'
16020
16021     # Set some defaults for GNU ld with shared library support. These
16022     # are reset later if shared libraries are not supported. Putting them
16023     # here allows them to be overridden if necessary.
16024     runpath_var=LD_RUN_PATH
16025     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16026     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16027     # ancient GNU ld didn't support --whole-archive et. al.
16028     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16029         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16030       else
16031         whole_archive_flag_spec_F77=
16032     fi
16033     supports_anon_versioning=no
16034     case `$LD -v 2>/dev/null` in
16035       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16036       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16037       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16038       *\ 2.11.*) ;; # other 2.11 versions
16039       *) supports_anon_versioning=yes ;;
16040     esac
16041
16042     # See if GNU ld supports shared libraries.
16043     case $host_os in
16044     aix3* | aix4* | aix5*)
16045       # On AIX/PPC, the GNU linker is very broken
16046       if test "$host_cpu" != ia64; then
16047         ld_shlibs_F77=no
16048         cat <<EOF 1>&2
16049
16050 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16051 *** to be unable to reliably create shared libraries on AIX.
16052 *** Therefore, libtool is disabling shared libraries support.  If you
16053 *** really care for shared libraries, you may want to modify your PATH
16054 *** so that a non-GNU linker is found, and then restart.
16055
16056 EOF
16057       fi
16058       ;;
16059
16060     amigaos*)
16061       archive_cmds_F77='$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)'
16062       hardcode_libdir_flag_spec_F77='-L$libdir'
16063       hardcode_minus_L_F77=yes
16064
16065       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16066       # that the semantics of dynamic libraries on AmigaOS, at least up
16067       # to version 4, is to share data among multiple programs linked
16068       # with the same dynamic library.  Since this doesn't match the
16069       # behavior of shared libraries on other platforms, we can't use
16070       # them.
16071       ld_shlibs_F77=no
16072       ;;
16073
16074     beos*)
16075       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16076         allow_undefined_flag_F77=unsupported
16077         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16078         # support --undefined.  This deserves some investigation.  FIXME
16079         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16080       else
16081         ld_shlibs_F77=no
16082       fi
16083       ;;
16084
16085     cygwin* | mingw* | pw32*)
16086       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16087       # as there is no search path for DLLs.
16088       hardcode_libdir_flag_spec_F77='-L$libdir'
16089       allow_undefined_flag_F77=unsupported
16090       always_export_symbols_F77=no
16091       enable_shared_with_static_runtimes_F77=yes
16092       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16093
16094       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16095         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16096         # If the export-symbols file already is a .def file (1st line
16097         # is EXPORTS), use it as is; otherwise, prepend...
16098         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16099           cp $export_symbols $output_objdir/$soname.def;
16100         else
16101           echo EXPORTS > $output_objdir/$soname.def;
16102           cat $export_symbols >> $output_objdir/$soname.def;
16103         fi~
16104         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16105       else
16106         ld_shlibs_F77=no
16107       fi
16108       ;;
16109
16110     linux*)
16111       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16112         tmp_addflag=
16113         case $cc_basename,$host_cpu in
16114         pgcc*)                          # Portland Group C compiler
16115           whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16116           tmp_addflag=' $pic_flag'
16117           ;;
16118         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16119           whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16120           tmp_addflag=' $pic_flag -Mnomain' ;;
16121         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16122           tmp_addflag=' -i_dynamic' ;;
16123         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16124           tmp_addflag=' -i_dynamic -nofor_main' ;;
16125         ifc* | ifort*)                  # Intel Fortran compiler
16126           tmp_addflag=' -nofor_main' ;;
16127         esac
16128         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16129
16130         if test $supports_anon_versioning = yes; then
16131           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16132   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16133   $echo "local: *; };" >> $output_objdir/$libname.ver~
16134           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16135         fi
16136       else
16137         ld_shlibs_F77=no
16138       fi
16139       ;;
16140
16141     netbsd*)
16142       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16143         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16144         wlarc=
16145       else
16146         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16147         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16148       fi
16149       ;;
16150
16151     solaris* | sysv5*)
16152       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16153         ld_shlibs_F77=no
16154         cat <<EOF 1>&2
16155
16156 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16157 *** create shared libraries on Solaris systems.  Therefore, libtool
16158 *** is disabling shared libraries support.  We urge you to upgrade GNU
16159 *** binutils to release 2.9.1 or newer.  Another option is to modify
16160 *** your PATH or compiler configuration so that the native linker is
16161 *** used, and then restart.
16162
16163 EOF
16164       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16165         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16166         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16167       else
16168         ld_shlibs_F77=no
16169       fi
16170       ;;
16171
16172     sunos4*)
16173       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16174       wlarc=
16175       hardcode_direct_F77=yes
16176       hardcode_shlibpath_var_F77=no
16177       ;;
16178
16179     *)
16180       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16181         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16182         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16183       else
16184         ld_shlibs_F77=no
16185       fi
16186       ;;
16187     esac
16188
16189     if test "$ld_shlibs_F77" = no; then
16190       runpath_var=
16191       hardcode_libdir_flag_spec_F77=
16192       export_dynamic_flag_spec_F77=
16193       whole_archive_flag_spec_F77=
16194     fi
16195   else
16196     # PORTME fill in a description of your system's linker (not GNU ld)
16197     case $host_os in
16198     aix3*)
16199       allow_undefined_flag_F77=unsupported
16200       always_export_symbols_F77=yes
16201       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16202       # Note: this linker hardcodes the directories in LIBPATH if there
16203       # are no directories specified by -L.
16204       hardcode_minus_L_F77=yes
16205       if test "$GCC" = yes && test -z "$link_static_flag"; then
16206         # Neither direct hardcoding nor static linking is supported with a
16207         # broken collect2.
16208         hardcode_direct_F77=unsupported
16209       fi
16210       ;;
16211
16212     aix4* | aix5*)
16213       if test "$host_cpu" = ia64; then
16214         # On IA64, the linker does run time linking by default, so we don't
16215         # have to do anything special.
16216         aix_use_runtimelinking=no
16217         exp_sym_flag='-Bexport'
16218         no_entry_flag=""
16219       else
16220         # If we're using GNU nm, then we don't want the "-C" option.
16221         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16222         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16223           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16224         else
16225           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16226         fi
16227         aix_use_runtimelinking=no
16228
16229         # Test if we are trying to use run time linking or normal
16230         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16231         # need to do runtime linking.
16232         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16233           for ld_flag in $LDFLAGS; do
16234           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16235             aix_use_runtimelinking=yes
16236             break
16237           fi
16238           done
16239         esac
16240
16241         exp_sym_flag='-bexport'
16242         no_entry_flag='-bnoentry'
16243       fi
16244
16245       # When large executables or shared objects are built, AIX ld can
16246       # have problems creating the table of contents.  If linking a library
16247       # or program results in "error TOC overflow" add -mminimal-toc to
16248       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16249       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16250
16251       archive_cmds_F77=''
16252       hardcode_direct_F77=yes
16253       hardcode_libdir_separator_F77=':'
16254       link_all_deplibs_F77=yes
16255
16256       if test "$GCC" = yes; then
16257         case $host_os in aix4.[012]|aix4.[012].*)
16258         # We only want to do this on AIX 4.2 and lower, the check
16259         # below for broken collect2 doesn't work under 4.3+
16260           collect2name=`${CC} -print-prog-name=collect2`
16261           if test -f "$collect2name" && \
16262            strings "$collect2name" | grep resolve_lib_name >/dev/null
16263           then
16264           # We have reworked collect2
16265           hardcode_direct_F77=yes
16266           else
16267           # We have old collect2
16268           hardcode_direct_F77=unsupported
16269           # It fails to find uninstalled libraries when the uninstalled
16270           # path is not listed in the libpath.  Setting hardcode_minus_L
16271           # to unsupported forces relinking
16272           hardcode_minus_L_F77=yes
16273           hardcode_libdir_flag_spec_F77='-L$libdir'
16274           hardcode_libdir_separator_F77=
16275           fi
16276         esac
16277         shared_flag='-shared'
16278         if test "$aix_use_runtimelinking" = yes; then
16279           shared_flag="$shared_flag "'${wl}-G'
16280         fi
16281       else
16282         # not using gcc
16283         if test "$host_cpu" = ia64; then
16284         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16285         # chokes on -Wl,-G. The following line is correct:
16286           shared_flag='-G'
16287         else
16288         if test "$aix_use_runtimelinking" = yes; then
16289             shared_flag='${wl}-G'
16290           else
16291             shared_flag='${wl}-bM:SRE'
16292         fi
16293         fi
16294       fi
16295
16296       # It seems that -bexpall does not export symbols beginning with
16297       # underscore (_), so it is better to generate a list of symbols to export.
16298       always_export_symbols_F77=yes
16299       if test "$aix_use_runtimelinking" = yes; then
16300         # Warning - without using the other runtime loading flags (-brtl),
16301         # -berok will link without error, but may produce a broken library.
16302         allow_undefined_flag_F77='-berok'
16303        # Determine the default libpath from the value encoded in an empty executable.
16304        cat >conftest.$ac_ext <<_ACEOF
16305       program main
16306
16307       end
16308 _ACEOF
16309 rm -f conftest.$ac_objext conftest$ac_exeext
16310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16311   (eval $ac_link) 2>conftest.er1
16312   ac_status=$?
16313   grep -v '^ *+' conftest.er1 >conftest.err
16314   rm -f conftest.er1
16315   cat conftest.err >&5
16316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317   (exit $ac_status); } &&
16318          { ac_try='test -z "$ac_f77_werror_flag"
16319                          || test ! -s conftest.err'
16320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321   (eval $ac_try) 2>&5
16322   ac_status=$?
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); }; } &&
16325          { ac_try='test -s conftest$ac_exeext'
16326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16327   (eval $ac_try) 2>&5
16328   ac_status=$?
16329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330   (exit $ac_status); }; }; then
16331
16332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16333 }'`
16334 # Check for a 64-bit object if we didn't find anything.
16335 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; }
16336 }'`; fi
16337 else
16338   echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16340
16341 fi
16342 rm -f conftest.err conftest.$ac_objext \
16343       conftest$ac_exeext conftest.$ac_ext
16344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16345
16346        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16347         archive_expsym_cmds_F77="\$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"
16348        else
16349         if test "$host_cpu" = ia64; then
16350           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16351           allow_undefined_flag_F77="-z nodefs"
16352           archive_expsym_cmds_F77="\$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"
16353         else
16354          # Determine the default libpath from the value encoded in an empty executable.
16355          cat >conftest.$ac_ext <<_ACEOF
16356       program main
16357
16358       end
16359 _ACEOF
16360 rm -f conftest.$ac_objext conftest$ac_exeext
16361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16362   (eval $ac_link) 2>conftest.er1
16363   ac_status=$?
16364   grep -v '^ *+' conftest.er1 >conftest.err
16365   rm -f conftest.er1
16366   cat conftest.err >&5
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); } &&
16369          { ac_try='test -z "$ac_f77_werror_flag"
16370                          || test ! -s conftest.err'
16371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16372   (eval $ac_try) 2>&5
16373   ac_status=$?
16374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375   (exit $ac_status); }; } &&
16376          { ac_try='test -s conftest$ac_exeext'
16377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378   (eval $ac_try) 2>&5
16379   ac_status=$?
16380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381   (exit $ac_status); }; }; then
16382
16383 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16384 }'`
16385 # Check for a 64-bit object if we didn't find anything.
16386 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; }
16387 }'`; fi
16388 else
16389   echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16391
16392 fi
16393 rm -f conftest.err conftest.$ac_objext \
16394       conftest$ac_exeext conftest.$ac_ext
16395 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16396
16397          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16398           # Warning - without using the other run time loading flags,
16399           # -berok will link without error, but may produce a broken library.
16400           no_undefined_flag_F77=' ${wl}-bernotok'
16401           allow_undefined_flag_F77=' ${wl}-berok'
16402           # -bexpall does not export symbols beginning with underscore (_)
16403           always_export_symbols_F77=yes
16404           # Exported symbols can be pulled into shared objects from archives
16405           whole_archive_flag_spec_F77=' '
16406           archive_cmds_need_lc_F77=yes
16407           # This is similar to how AIX traditionally builds it's shared libraries.
16408           archive_expsym_cmds_F77="\$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'
16409         fi
16410       fi
16411       ;;
16412
16413     amigaos*)
16414       archive_cmds_F77='$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)'
16415       hardcode_libdir_flag_spec_F77='-L$libdir'
16416       hardcode_minus_L_F77=yes
16417       # see comment about different semantics on the GNU ld section
16418       ld_shlibs_F77=no
16419       ;;
16420
16421     bsdi[45]*)
16422       export_dynamic_flag_spec_F77=-rdynamic
16423       ;;
16424
16425     cygwin* | mingw* | pw32*)
16426       # When not using gcc, we currently assume that we are using
16427       # Microsoft Visual C++.
16428       # hardcode_libdir_flag_spec is actually meaningless, as there is
16429       # no search path for DLLs.
16430       hardcode_libdir_flag_spec_F77=' '
16431       allow_undefined_flag_F77=unsupported
16432       # Tell ltmain to make .lib files, not .a files.
16433       libext=lib
16434       # Tell ltmain to make .dll files, not .so files.
16435       shrext_cmds=".dll"
16436       # FIXME: Setting linknames here is a bad hack.
16437       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16438       # The linker will automatically build a .lib file if we build a DLL.
16439       old_archive_From_new_cmds_F77='true'
16440       # FIXME: Should let the user specify the lib program.
16441       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16442       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16443       enable_shared_with_static_runtimes_F77=yes
16444       ;;
16445
16446     darwin* | rhapsody*)
16447       case "$host_os" in
16448         rhapsody* | darwin1.[012])
16449          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16450          ;;
16451        *) # Darwin 1.3 on
16452          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16453            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16454          else
16455            case ${MACOSX_DEPLOYMENT_TARGET} in
16456              10.[012])
16457                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16458                ;;
16459              10.*)
16460                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16461                ;;
16462            esac
16463          fi
16464          ;;
16465       esac
16466       archive_cmds_need_lc_F77=no
16467       hardcode_direct_F77=no
16468       hardcode_automatic_F77=yes
16469       hardcode_shlibpath_var_F77=unsupported
16470       whole_archive_flag_spec_F77=''
16471       link_all_deplibs_F77=yes
16472     if test "$GCC" = yes ; then
16473         output_verbose_link_cmd='echo'
16474         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16475       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16476       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16477       archive_expsym_cmds_F77='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}'
16478       module_expsym_cmds_F77='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}'
16479     else
16480       case $cc_basename in
16481         xlc*)
16482          output_verbose_link_cmd='echo'
16483          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16484          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16485           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16486          archive_expsym_cmds_F77='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}'
16487           module_expsym_cmds_F77='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}'
16488           ;;
16489        *)
16490          ld_shlibs_F77=no
16491           ;;
16492       esac
16493     fi
16494       ;;
16495
16496     dgux*)
16497       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16498       hardcode_libdir_flag_spec_F77='-L$libdir'
16499       hardcode_shlibpath_var_F77=no
16500       ;;
16501
16502     freebsd1*)
16503       ld_shlibs_F77=no
16504       ;;
16505
16506     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16507     # support.  Future versions do this automatically, but an explicit c++rt0.o
16508     # does not break anything, and helps significantly (at the cost of a little
16509     # extra space).
16510     freebsd2.2*)
16511       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16512       hardcode_libdir_flag_spec_F77='-R$libdir'
16513       hardcode_direct_F77=yes
16514       hardcode_shlibpath_var_F77=no
16515       ;;
16516
16517     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16518     freebsd2*)
16519       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16520       hardcode_direct_F77=yes
16521       hardcode_minus_L_F77=yes
16522       hardcode_shlibpath_var_F77=no
16523       ;;
16524
16525     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16526     freebsd* | kfreebsd*-gnu | dragonfly*)
16527       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16528       hardcode_libdir_flag_spec_F77='-R$libdir'
16529       hardcode_direct_F77=yes
16530       hardcode_shlibpath_var_F77=no
16531       ;;
16532
16533     hpux9*)
16534       if test "$GCC" = yes; then
16535         archive_cmds_F77='$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'
16536       else
16537         archive_cmds_F77='$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'
16538       fi
16539       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16540       hardcode_libdir_separator_F77=:
16541       hardcode_direct_F77=yes
16542
16543       # hardcode_minus_L: Not really in the search PATH,
16544       # but as the default location of the library.
16545       hardcode_minus_L_F77=yes
16546       export_dynamic_flag_spec_F77='${wl}-E'
16547       ;;
16548
16549     hpux10* | hpux11*)
16550       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16551         case "$host_cpu" in
16552         hppa*64*|ia64*)
16553           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16554           ;;
16555         *)
16556           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16557           ;;
16558         esac
16559       else
16560         case "$host_cpu" in
16561         hppa*64*|ia64*)
16562           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16563           ;;
16564         *)
16565           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16566           ;;
16567         esac
16568       fi
16569       if test "$with_gnu_ld" = no; then
16570         case "$host_cpu" in
16571         hppa*64*)
16572           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16573           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16574           hardcode_libdir_separator_F77=:
16575           hardcode_direct_F77=no
16576           hardcode_shlibpath_var_F77=no
16577           ;;
16578         ia64*)
16579           hardcode_libdir_flag_spec_F77='-L$libdir'
16580           hardcode_direct_F77=no
16581           hardcode_shlibpath_var_F77=no
16582
16583           # hardcode_minus_L: Not really in the search PATH,
16584           # but as the default location of the library.
16585           hardcode_minus_L_F77=yes
16586           ;;
16587         *)
16588           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16589           hardcode_libdir_separator_F77=:
16590           hardcode_direct_F77=yes
16591           export_dynamic_flag_spec_F77='${wl}-E'
16592
16593           # hardcode_minus_L: Not really in the search PATH,
16594           # but as the default location of the library.
16595           hardcode_minus_L_F77=yes
16596           ;;
16597         esac
16598       fi
16599       ;;
16600
16601     irix5* | irix6* | nonstopux*)
16602       if test "$GCC" = yes; then
16603         archive_cmds_F77='$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'
16604       else
16605         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16606         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16607       fi
16608       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16609       hardcode_libdir_separator_F77=:
16610       link_all_deplibs_F77=yes
16611       ;;
16612
16613     netbsd*)
16614       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16615         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16616       else
16617         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16618       fi
16619       hardcode_libdir_flag_spec_F77='-R$libdir'
16620       hardcode_direct_F77=yes
16621       hardcode_shlibpath_var_F77=no
16622       ;;
16623
16624     newsos6)
16625       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16626       hardcode_direct_F77=yes
16627       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16628       hardcode_libdir_separator_F77=:
16629       hardcode_shlibpath_var_F77=no
16630       ;;
16631
16632     openbsd*)
16633       hardcode_direct_F77=yes
16634       hardcode_shlibpath_var_F77=no
16635       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16636         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16637         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16638         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16639         export_dynamic_flag_spec_F77='${wl}-E'
16640       else
16641        case $host_os in
16642          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16643            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16644            hardcode_libdir_flag_spec_F77='-R$libdir'
16645            ;;
16646          *)
16647            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16648            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16649            ;;
16650        esac
16651       fi
16652       ;;
16653
16654     os2*)
16655       hardcode_libdir_flag_spec_F77='-L$libdir'
16656       hardcode_minus_L_F77=yes
16657       allow_undefined_flag_F77=unsupported
16658       archive_cmds_F77='$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'
16659       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16660       ;;
16661
16662     osf3*)
16663       if test "$GCC" = yes; then
16664         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16665         archive_cmds_F77='$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'
16666       else
16667         allow_undefined_flag_F77=' -expect_unresolved \*'
16668         archive_cmds_F77='$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'
16669       fi
16670       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16671       hardcode_libdir_separator_F77=:
16672       ;;
16673
16674     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16675       if test "$GCC" = yes; then
16676         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16677         archive_cmds_F77='$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'
16678         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16679       else
16680         allow_undefined_flag_F77=' -expect_unresolved \*'
16681         archive_cmds_F77='$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'
16682         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16683         $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'
16684
16685         # Both c and cxx compiler support -rpath directly
16686         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16687       fi
16688       hardcode_libdir_separator_F77=:
16689       ;;
16690
16691     sco3.2v5*)
16692       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16693       hardcode_shlibpath_var_F77=no
16694       export_dynamic_flag_spec_F77='${wl}-Bexport'
16695       runpath_var=LD_RUN_PATH
16696       hardcode_runpath_var=yes
16697       ;;
16698
16699     solaris*)
16700       no_undefined_flag_F77=' -z text'
16701       if test "$GCC" = yes; then
16702         wlarc='${wl}'
16703         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16704         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16705           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16706       else
16707         wlarc=''
16708         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16709         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16710         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16711       fi
16712       hardcode_libdir_flag_spec_F77='-R$libdir'
16713       hardcode_shlibpath_var_F77=no
16714       case $host_os in
16715       solaris2.[0-5] | solaris2.[0-5].*) ;;
16716       *)
16717         # The compiler driver will combine linker options so we
16718         # cannot just pass the convience library names through
16719         # without $wl, iff we do not link with $LD.
16720         # Luckily, gcc supports the same syntax we need for Sun Studio.
16721         # Supported since Solaris 2.6 (maybe 2.5.1?)
16722         case $wlarc in
16723         '')
16724           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16725         *)
16726           whole_archive_flag_spec_F77='${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' ;;
16727         esac ;;
16728       esac
16729       link_all_deplibs_F77=yes
16730       ;;
16731
16732     sunos4*)
16733       if test "x$host_vendor" = xsequent; then
16734         # Use $CC to link under sequent, because it throws in some extra .o
16735         # files that make .init and .fini sections work.
16736         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16737       else
16738         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16739       fi
16740       hardcode_libdir_flag_spec_F77='-L$libdir'
16741       hardcode_direct_F77=yes
16742       hardcode_minus_L_F77=yes
16743       hardcode_shlibpath_var_F77=no
16744       ;;
16745
16746     sysv4)
16747       case $host_vendor in
16748         sni)
16749           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16750           hardcode_direct_F77=yes # is this really true???
16751         ;;
16752         siemens)
16753           ## LD is ld it makes a PLAMLIB
16754           ## CC just makes a GrossModule.
16755           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16756           reload_cmds_F77='$CC -r -o $output$reload_objs'
16757           hardcode_direct_F77=no
16758         ;;
16759         motorola)
16760           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16761           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16762         ;;
16763       esac
16764       runpath_var='LD_RUN_PATH'
16765       hardcode_shlibpath_var_F77=no
16766       ;;
16767
16768     sysv4.3*)
16769       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16770       hardcode_shlibpath_var_F77=no
16771       export_dynamic_flag_spec_F77='-Bexport'
16772       ;;
16773
16774     sysv4*MP*)
16775       if test -d /usr/nec; then
16776         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16777         hardcode_shlibpath_var_F77=no
16778         runpath_var=LD_RUN_PATH
16779         hardcode_runpath_var=yes
16780         ld_shlibs_F77=yes
16781       fi
16782       ;;
16783
16784     sysv4.2uw2*)
16785       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16786       hardcode_direct_F77=yes
16787       hardcode_minus_L_F77=no
16788       hardcode_shlibpath_var_F77=no
16789       hardcode_runpath_var=yes
16790       runpath_var=LD_RUN_PATH
16791       ;;
16792
16793    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16794       no_undefined_flag_F77='${wl}-z ${wl}text'
16795       if test "$GCC" = yes; then
16796         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16797       else
16798         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16799       fi
16800       runpath_var='LD_RUN_PATH'
16801       hardcode_shlibpath_var_F77=no
16802       ;;
16803
16804     sysv5*)
16805       no_undefined_flag_F77=' -z text'
16806       # $CC -shared without GNU ld will not create a library from C++
16807       # object files and a static libstdc++, better avoid it by now
16808       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16809       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16810                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16811       hardcode_libdir_flag_spec_F77=
16812       hardcode_shlibpath_var_F77=no
16813       runpath_var='LD_RUN_PATH'
16814       ;;
16815
16816     uts4*)
16817       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16818       hardcode_libdir_flag_spec_F77='-L$libdir'
16819       hardcode_shlibpath_var_F77=no
16820       ;;
16821
16822     *)
16823       ld_shlibs_F77=no
16824       ;;
16825     esac
16826   fi
16827
16828 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16829 echo "${ECHO_T}$ld_shlibs_F77" >&6
16830 test "$ld_shlibs_F77" = no && can_build_shared=no
16831
16832 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16833 if test "$GCC" = yes; then
16834   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16835 fi
16836
16837 #
16838 # Do we need to explicitly link libc?
16839 #
16840 case "x$archive_cmds_need_lc_F77" in
16841 x|xyes)
16842   # Assume -lc should be added
16843   archive_cmds_need_lc_F77=yes
16844
16845   if test "$enable_shared" = yes && test "$GCC" = yes; then
16846     case $archive_cmds_F77 in
16847     *'~'*)
16848       # FIXME: we may have to deal with multi-command sequences.
16849       ;;
16850     '$CC '*)
16851       # Test whether the compiler implicitly links with -lc since on some
16852       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16853       # to ld, don't add -lc before -lgcc.
16854       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16855 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16856       $rm conftest*
16857       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16858
16859       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16860   (eval $ac_compile) 2>&5
16861   ac_status=$?
16862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863   (exit $ac_status); } 2>conftest.err; then
16864         soname=conftest
16865         lib=conftest
16866         libobjs=conftest.$ac_objext
16867         deplibs=
16868         wl=$lt_prog_compiler_wl_F77
16869         compiler_flags=-v
16870         linker_flags=-v
16871         verstring=
16872         output_objdir=.
16873         libname=conftest
16874         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16875         allow_undefined_flag_F77=
16876         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16877   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16878   ac_status=$?
16879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880   (exit $ac_status); }
16881         then
16882           archive_cmds_need_lc_F77=no
16883         else
16884           archive_cmds_need_lc_F77=yes
16885         fi
16886         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16887       else
16888         cat conftest.err 1>&5
16889       fi
16890       $rm conftest*
16891       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16892 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16893       ;;
16894     esac
16895   fi
16896   ;;
16897 esac
16898
16899 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16900 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16901 library_names_spec=
16902 libname_spec='lib$name'
16903 soname_spec=
16904 shrext_cmds=".so"
16905 postinstall_cmds=
16906 postuninstall_cmds=
16907 finish_cmds=
16908 finish_eval=
16909 shlibpath_var=
16910 shlibpath_overrides_runpath=unknown
16911 version_type=none
16912 dynamic_linker="$host_os ld.so"
16913 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16914 if test "$GCC" = yes; then
16915   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16916   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16917     # if the path contains ";" then we assume it to be the separator
16918     # otherwise default to the standard path separator (i.e. ":") - it is
16919     # assumed that no part of a normal pathname contains ";" but that should
16920     # okay in the real world where ";" in dirpaths is itself problematic.
16921     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16922   else
16923     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16924   fi
16925 else
16926   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16927 fi
16928 need_lib_prefix=unknown
16929 hardcode_into_libs=no
16930
16931 # when you set need_version to no, make sure it does not cause -set_version
16932 # flags to be left without arguments
16933 need_version=unknown
16934
16935 case $host_os in
16936 aix3*)
16937   version_type=linux
16938   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16939   shlibpath_var=LIBPATH
16940
16941   # AIX 3 has no versioning support, so we append a major version to the name.
16942   soname_spec='${libname}${release}${shared_ext}$major'
16943   ;;
16944
16945 aix4* | aix5*)
16946   version_type=linux
16947   need_lib_prefix=no
16948   need_version=no
16949   hardcode_into_libs=yes
16950   if test "$host_cpu" = ia64; then
16951     # AIX 5 supports IA64
16952     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16953     shlibpath_var=LD_LIBRARY_PATH
16954   else
16955     # With GCC up to 2.95.x, collect2 would create an import file
16956     # for dependence libraries.  The import file would start with
16957     # the line `#! .'.  This would cause the generated library to
16958     # depend on `.', always an invalid library.  This was fixed in
16959     # development snapshots of GCC prior to 3.0.
16960     case $host_os in
16961       aix4 | aix4.[01] | aix4.[01].*)
16962       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16963            echo ' yes '
16964            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16965         :
16966       else
16967         can_build_shared=no
16968       fi
16969       ;;
16970     esac
16971     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16972     # soname into executable. Probably we can add versioning support to
16973     # collect2, so additional links can be useful in future.
16974     if test "$aix_use_runtimelinking" = yes; then
16975       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16976       # instead of lib<name>.a to let people know that these are not
16977       # typical AIX shared libraries.
16978       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16979     else
16980       # We preserve .a as extension for shared libraries through AIX4.2
16981       # and later when we are not doing run time linking.
16982       library_names_spec='${libname}${release}.a $libname.a'
16983       soname_spec='${libname}${release}${shared_ext}$major'
16984     fi
16985     shlibpath_var=LIBPATH
16986   fi
16987   ;;
16988
16989 amigaos*)
16990   library_names_spec='$libname.ixlibrary $libname.a'
16991   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16992   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'
16993   ;;
16994
16995 beos*)
16996   library_names_spec='${libname}${shared_ext}'
16997   dynamic_linker="$host_os ld.so"
16998   shlibpath_var=LIBRARY_PATH
16999   ;;
17000
17001 bsdi[45]*)
17002   version_type=linux
17003   need_version=no
17004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005   soname_spec='${libname}${release}${shared_ext}$major'
17006   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17007   shlibpath_var=LD_LIBRARY_PATH
17008   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17009   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17010   # the default ld.so.conf also contains /usr/contrib/lib and
17011   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17012   # libtool to hard-code these into programs
17013   ;;
17014
17015 cygwin* | mingw* | pw32*)
17016   version_type=windows
17017   shrext_cmds=".dll"
17018   need_version=no
17019   need_lib_prefix=no
17020
17021   case $GCC,$host_os in
17022   yes,cygwin* | yes,mingw* | yes,pw32*)
17023     library_names_spec='$libname.dll.a'
17024     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17025     postinstall_cmds='base_file=`basename \${file}`~
17026       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17027       dldir=$destdir/`dirname \$dlpath`~
17028       test -d \$dldir || mkdir -p \$dldir~
17029       $install_prog $dir/$dlname \$dldir/$dlname'
17030     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17031       dlpath=$dir/\$dldll~
17032        $rm \$dlpath'
17033     shlibpath_overrides_runpath=yes
17034
17035     case $host_os in
17036     cygwin*)
17037       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17038       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17039       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17040       ;;
17041     mingw*)
17042       # MinGW DLLs use traditional 'lib' prefix
17043       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17044       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17045       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17046         # It is most probably a Windows format PATH printed by
17047         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17048         # path with ; separators, and with drive letters. We can handle the
17049         # drive letters (cygwin fileutils understands them), so leave them,
17050         # especially as we might pass files found there to a mingw objdump,
17051         # which wouldn't understand a cygwinified path. Ahh.
17052         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17053       else
17054         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17055       fi
17056       ;;
17057     pw32*)
17058       # pw32 DLLs use 'pw' prefix rather than 'lib'
17059       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17060       ;;
17061     esac
17062     ;;
17063
17064   *)
17065     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17066     ;;
17067   esac
17068   dynamic_linker='Win32 ld.exe'
17069   # FIXME: first we should search . and the directory the executable is in
17070   shlibpath_var=PATH
17071   ;;
17072
17073 darwin* | rhapsody*)
17074   dynamic_linker="$host_os dyld"
17075   version_type=darwin
17076   need_lib_prefix=no
17077   need_version=no
17078   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17079   soname_spec='${libname}${release}${major}$shared_ext'
17080   shlibpath_overrides_runpath=yes
17081   shlibpath_var=DYLD_LIBRARY_PATH
17082   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17083   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17084   if test "$GCC" = yes; then
17085     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"`
17086   else
17087     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17088   fi
17089   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17090   ;;
17091
17092 dgux*)
17093   version_type=linux
17094   need_lib_prefix=no
17095   need_version=no
17096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17097   soname_spec='${libname}${release}${shared_ext}$major'
17098   shlibpath_var=LD_LIBRARY_PATH
17099   ;;
17100
17101 freebsd1*)
17102   dynamic_linker=no
17103   ;;
17104
17105 kfreebsd*-gnu)
17106   version_type=linux
17107   need_lib_prefix=no
17108   need_version=no
17109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17110   soname_spec='${libname}${release}${shared_ext}$major'
17111   shlibpath_var=LD_LIBRARY_PATH
17112   shlibpath_overrides_runpath=no
17113   hardcode_into_libs=yes
17114   dynamic_linker='GNU ld.so'
17115   ;;
17116
17117 freebsd* | dragonfly*)
17118   # DragonFly does not have aout.  When/if they implement a new
17119   # versioning mechanism, adjust this.
17120   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17121   version_type=freebsd-$objformat
17122   case $version_type in
17123     freebsd-elf*)
17124       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17125       need_version=no
17126       need_lib_prefix=no
17127       ;;
17128     freebsd-*)
17129       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17130       need_version=yes
17131       ;;
17132   esac
17133   shlibpath_var=LD_LIBRARY_PATH
17134   case $host_os in
17135   freebsd2*)
17136     shlibpath_overrides_runpath=yes
17137     ;;
17138   freebsd3.[01]* | freebsdelf3.[01]*)
17139     shlibpath_overrides_runpath=yes
17140     hardcode_into_libs=yes
17141     ;;
17142   *) # from 3.2 on
17143     shlibpath_overrides_runpath=no
17144     hardcode_into_libs=yes
17145     ;;
17146   esac
17147   ;;
17148
17149 gnu*)
17150   version_type=linux
17151   need_lib_prefix=no
17152   need_version=no
17153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17154   soname_spec='${libname}${release}${shared_ext}$major'
17155   shlibpath_var=LD_LIBRARY_PATH
17156   hardcode_into_libs=yes
17157   ;;
17158
17159 hpux9* | hpux10* | hpux11*)
17160   # Give a soname corresponding to the major version so that dld.sl refuses to
17161   # link against other versions.
17162   version_type=sunos
17163   need_lib_prefix=no
17164   need_version=no
17165   case "$host_cpu" in
17166   ia64*)
17167     shrext_cmds='.so'
17168     hardcode_into_libs=yes
17169     dynamic_linker="$host_os dld.so"
17170     shlibpath_var=LD_LIBRARY_PATH
17171     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17173     soname_spec='${libname}${release}${shared_ext}$major'
17174     if test "X$HPUX_IA64_MODE" = X32; then
17175       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17176     else
17177       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17178     fi
17179     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17180     ;;
17181    hppa*64*)
17182      shrext_cmds='.sl'
17183      hardcode_into_libs=yes
17184      dynamic_linker="$host_os dld.sl"
17185      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17186      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17187      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17188      soname_spec='${libname}${release}${shared_ext}$major'
17189      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17190      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17191      ;;
17192    *)
17193     shrext_cmds='.sl'
17194     dynamic_linker="$host_os dld.sl"
17195     shlibpath_var=SHLIB_PATH
17196     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17198     soname_spec='${libname}${release}${shared_ext}$major'
17199     ;;
17200   esac
17201   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17202   postinstall_cmds='chmod 555 $lib'
17203   ;;
17204
17205 irix5* | irix6* | nonstopux*)
17206   case $host_os in
17207     nonstopux*) version_type=nonstopux ;;
17208     *)
17209         if test "$lt_cv_prog_gnu_ld" = yes; then
17210                 version_type=linux
17211         else
17212                 version_type=irix
17213         fi ;;
17214   esac
17215   need_lib_prefix=no
17216   need_version=no
17217   soname_spec='${libname}${release}${shared_ext}$major'
17218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17219   case $host_os in
17220   irix5* | nonstopux*)
17221     libsuff= shlibsuff=
17222     ;;
17223   *)
17224     case $LD in # libtool.m4 will add one of these switches to LD
17225     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17226       libsuff= shlibsuff= libmagic=32-bit;;
17227     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17228       libsuff=32 shlibsuff=N32 libmagic=N32;;
17229     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17230       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17231     *) libsuff= shlibsuff= libmagic=never-match;;
17232     esac
17233     ;;
17234   esac
17235   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17236   shlibpath_overrides_runpath=no
17237   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17238   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17239   hardcode_into_libs=yes
17240   ;;
17241
17242 # No shared lib support for Linux oldld, aout, or coff.
17243 linux*oldld* | linux*aout* | linux*coff*)
17244   dynamic_linker=no
17245   ;;
17246
17247 # This must be Linux ELF.
17248 linux*)
17249   version_type=linux
17250   need_lib_prefix=no
17251   need_version=no
17252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17253   soname_spec='${libname}${release}${shared_ext}$major'
17254   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17255   shlibpath_var=LD_LIBRARY_PATH
17256   shlibpath_overrides_runpath=no
17257   # This implies no fast_install, which is unacceptable.
17258   # Some rework will be needed to allow for fast_install
17259   # before this can be enabled.
17260   hardcode_into_libs=yes
17261
17262   # Append ld.so.conf contents to the search path
17263   if test -f /etc/ld.so.conf; then
17264     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' ' '`
17265     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17266   fi
17267
17268   # We used to test for /lib/ld.so.1 and disable shared libraries on
17269   # powerpc, because MkLinux only supported shared libraries with the
17270   # GNU dynamic linker.  Since this was broken with cross compilers,
17271   # most powerpc-linux boxes support dynamic linking these days and
17272   # people can always --disable-shared, the test was removed, and we
17273   # assume the GNU/Linux dynamic linker is in use.
17274   dynamic_linker='GNU/Linux ld.so'
17275   ;;
17276
17277 knetbsd*-gnu)
17278   version_type=linux
17279   need_lib_prefix=no
17280   need_version=no
17281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17282   soname_spec='${libname}${release}${shared_ext}$major'
17283   shlibpath_var=LD_LIBRARY_PATH
17284   shlibpath_overrides_runpath=no
17285   hardcode_into_libs=yes
17286   dynamic_linker='GNU ld.so'
17287   ;;
17288
17289 netbsd*)
17290   version_type=sunos
17291   need_lib_prefix=no
17292   need_version=no
17293   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17295     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17296     dynamic_linker='NetBSD (a.out) ld.so'
17297   else
17298     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17299     soname_spec='${libname}${release}${shared_ext}$major'
17300     dynamic_linker='NetBSD ld.elf_so'
17301   fi
17302   shlibpath_var=LD_LIBRARY_PATH
17303   shlibpath_overrides_runpath=yes
17304   hardcode_into_libs=yes
17305   ;;
17306
17307 newsos6)
17308   version_type=linux
17309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17310   shlibpath_var=LD_LIBRARY_PATH
17311   shlibpath_overrides_runpath=yes
17312   ;;
17313
17314 nto-qnx*)
17315   version_type=linux
17316   need_lib_prefix=no
17317   need_version=no
17318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17319   soname_spec='${libname}${release}${shared_ext}$major'
17320   shlibpath_var=LD_LIBRARY_PATH
17321   shlibpath_overrides_runpath=yes
17322   ;;
17323
17324 openbsd*)
17325   version_type=sunos
17326   need_lib_prefix=no
17327   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17328   case $host_os in
17329     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17330     *)                         need_version=no  ;;
17331   esac
17332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17333   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17334   shlibpath_var=LD_LIBRARY_PATH
17335   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17336     case $host_os in
17337       openbsd2.[89] | openbsd2.[89].*)
17338         shlibpath_overrides_runpath=no
17339         ;;
17340       *)
17341         shlibpath_overrides_runpath=yes
17342         ;;
17343       esac
17344   else
17345     shlibpath_overrides_runpath=yes
17346   fi
17347   ;;
17348
17349 os2*)
17350   libname_spec='$name'
17351   shrext_cmds=".dll"
17352   need_lib_prefix=no
17353   library_names_spec='$libname${shared_ext} $libname.a'
17354   dynamic_linker='OS/2 ld.exe'
17355   shlibpath_var=LIBPATH
17356   ;;
17357
17358 osf3* | osf4* | osf5*)
17359   version_type=osf
17360   need_lib_prefix=no
17361   need_version=no
17362   soname_spec='${libname}${release}${shared_ext}$major'
17363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364   shlibpath_var=LD_LIBRARY_PATH
17365   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17366   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17367   ;;
17368
17369 sco3.2v5*)
17370   version_type=osf
17371   soname_spec='${libname}${release}${shared_ext}$major'
17372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373   shlibpath_var=LD_LIBRARY_PATH
17374   ;;
17375
17376 solaris*)
17377   version_type=linux
17378   need_lib_prefix=no
17379   need_version=no
17380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17381   soname_spec='${libname}${release}${shared_ext}$major'
17382   shlibpath_var=LD_LIBRARY_PATH
17383   shlibpath_overrides_runpath=yes
17384   hardcode_into_libs=yes
17385   # ldd complains unless libraries are executable
17386   postinstall_cmds='chmod +x $lib'
17387   ;;
17388
17389 sunos4*)
17390   version_type=sunos
17391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17392   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17393   shlibpath_var=LD_LIBRARY_PATH
17394   shlibpath_overrides_runpath=yes
17395   if test "$with_gnu_ld" = yes; then
17396     need_lib_prefix=no
17397   fi
17398   need_version=yes
17399   ;;
17400
17401 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17402   version_type=linux
17403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17404   soname_spec='${libname}${release}${shared_ext}$major'
17405   shlibpath_var=LD_LIBRARY_PATH
17406   case $host_vendor in
17407     sni)
17408       shlibpath_overrides_runpath=no
17409       need_lib_prefix=no
17410       export_dynamic_flag_spec='${wl}-Blargedynsym'
17411       runpath_var=LD_RUN_PATH
17412       ;;
17413     siemens)
17414       need_lib_prefix=no
17415       ;;
17416     motorola)
17417       need_lib_prefix=no
17418       need_version=no
17419       shlibpath_overrides_runpath=no
17420       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17421       ;;
17422   esac
17423   ;;
17424
17425 sysv4*MP*)
17426   if test -d /usr/nec ;then
17427     version_type=linux
17428     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17429     soname_spec='$libname${shared_ext}.$major'
17430     shlibpath_var=LD_LIBRARY_PATH
17431   fi
17432   ;;
17433
17434 uts4*)
17435   version_type=linux
17436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17437   soname_spec='${libname}${release}${shared_ext}$major'
17438   shlibpath_var=LD_LIBRARY_PATH
17439   ;;
17440
17441 *)
17442   dynamic_linker=no
17443   ;;
17444 esac
17445 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17446 echo "${ECHO_T}$dynamic_linker" >&6
17447 test "$dynamic_linker" = no && can_build_shared=no
17448
17449 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17450 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17451 hardcode_action_F77=
17452 if test -n "$hardcode_libdir_flag_spec_F77" || \
17453    test -n "$runpath_var_F77" || \
17454    test "X$hardcode_automatic_F77" = "Xyes" ; then
17455
17456   # We can hardcode non-existant directories.
17457   if test "$hardcode_direct_F77" != no &&
17458      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17459      # have to relink, otherwise we might link with an installed library
17460      # when we should be linking with a yet-to-be-installed one
17461      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17462      test "$hardcode_minus_L_F77" != no; then
17463     # Linking always hardcodes the temporary library directory.
17464     hardcode_action_F77=relink
17465   else
17466     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17467     hardcode_action_F77=immediate
17468   fi
17469 else
17470   # We cannot hardcode anything, or else we can only hardcode existing
17471   # directories.
17472   hardcode_action_F77=unsupported
17473 fi
17474 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17475 echo "${ECHO_T}$hardcode_action_F77" >&6
17476
17477 if test "$hardcode_action_F77" = relink; then
17478   # Fast installation is not supported
17479   enable_fast_install=no
17480 elif test "$shlibpath_overrides_runpath" = yes ||
17481      test "$enable_shared" = no; then
17482   # Fast installation is not necessary
17483   enable_fast_install=needless
17484 fi
17485
17486 striplib=
17487 old_striplib=
17488 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17489 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17490 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17491   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17492   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17493   echo "$as_me:$LINENO: result: yes" >&5
17494 echo "${ECHO_T}yes" >&6
17495 else
17496 # FIXME - insert some real tests, host_os isn't really good enough
17497   case $host_os in
17498    darwin*)
17499        if test -n "$STRIP" ; then
17500          striplib="$STRIP -x"
17501          echo "$as_me:$LINENO: result: yes" >&5
17502 echo "${ECHO_T}yes" >&6
17503        else
17504   echo "$as_me:$LINENO: result: no" >&5
17505 echo "${ECHO_T}no" >&6
17506 fi
17507        ;;
17508    *)
17509   echo "$as_me:$LINENO: result: no" >&5
17510 echo "${ECHO_T}no" >&6
17511     ;;
17512   esac
17513 fi
17514
17515
17516
17517 # The else clause should only fire when bootstrapping the
17518 # libtool distribution, otherwise you forgot to ship ltmain.sh
17519 # with your package, and you will get complaints that there are
17520 # no rules to generate ltmain.sh.
17521 if test -f "$ltmain"; then
17522   # See if we are running on zsh, and set the options which allow our commands through
17523   # without removal of \ escapes.
17524   if test -n "${ZSH_VERSION+set}" ; then
17525     setopt NO_GLOB_SUBST
17526   fi
17527   # Now quote all the things that may contain metacharacters while being
17528   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17529   # variables and quote the copies for generation of the libtool script.
17530   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17531     SED SHELL STRIP \
17532     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17533     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17534     deplibs_check_method reload_flag reload_cmds need_locks \
17535     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17536     lt_cv_sys_global_symbol_to_c_name_address \
17537     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17538     old_postinstall_cmds old_postuninstall_cmds \
17539     compiler_F77 \
17540     CC_F77 \
17541     LD_F77 \
17542     lt_prog_compiler_wl_F77 \
17543     lt_prog_compiler_pic_F77 \
17544     lt_prog_compiler_static_F77 \
17545     lt_prog_compiler_no_builtin_flag_F77 \
17546     export_dynamic_flag_spec_F77 \
17547     thread_safe_flag_spec_F77 \
17548     whole_archive_flag_spec_F77 \
17549     enable_shared_with_static_runtimes_F77 \
17550     old_archive_cmds_F77 \
17551     old_archive_from_new_cmds_F77 \
17552     predep_objects_F77 \
17553     postdep_objects_F77 \
17554     predeps_F77 \
17555     postdeps_F77 \
17556     compiler_lib_search_path_F77 \
17557     archive_cmds_F77 \
17558     archive_expsym_cmds_F77 \
17559     postinstall_cmds_F77 \
17560     postuninstall_cmds_F77 \
17561     old_archive_from_expsyms_cmds_F77 \
17562     allow_undefined_flag_F77 \
17563     no_undefined_flag_F77 \
17564     export_symbols_cmds_F77 \
17565     hardcode_libdir_flag_spec_F77 \
17566     hardcode_libdir_flag_spec_ld_F77 \
17567     hardcode_libdir_separator_F77 \
17568     hardcode_automatic_F77 \
17569     module_cmds_F77 \
17570     module_expsym_cmds_F77 \
17571     lt_cv_prog_compiler_c_o_F77 \
17572     exclude_expsyms_F77 \
17573     include_expsyms_F77; do
17574
17575     case $var in
17576     old_archive_cmds_F77 | \
17577     old_archive_from_new_cmds_F77 | \
17578     archive_cmds_F77 | \
17579     archive_expsym_cmds_F77 | \
17580     module_cmds_F77 | \
17581     module_expsym_cmds_F77 | \
17582     old_archive_from_expsyms_cmds_F77 | \
17583     export_symbols_cmds_F77 | \
17584     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17585     postinstall_cmds | postuninstall_cmds | \
17586     old_postinstall_cmds | old_postuninstall_cmds | \
17587     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17588       # Double-quote double-evaled strings.
17589       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17590       ;;
17591     *)
17592       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17593       ;;
17594     esac
17595   done
17596
17597   case $lt_echo in
17598   *'\$0 --fallback-echo"')
17599     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17600     ;;
17601   esac
17602
17603 cfgfile="$ofile"
17604
17605   cat <<__EOF__ >> "$cfgfile"
17606 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17607
17608 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17609
17610 # Shell to use when invoking shell scripts.
17611 SHELL=$lt_SHELL
17612
17613 # Whether or not to build shared libraries.
17614 build_libtool_libs=$enable_shared
17615
17616 # Whether or not to build static libraries.
17617 build_old_libs=$enable_static
17618
17619 # Whether or not to add -lc for building shared libraries.
17620 build_libtool_need_lc=$archive_cmds_need_lc_F77
17621
17622 # Whether or not to disallow shared libs when runtime libs are static
17623 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17624
17625 # Whether or not to optimize for fast installation.
17626 fast_install=$enable_fast_install
17627
17628 # The host system.
17629 host_alias=$host_alias
17630 host=$host
17631 host_os=$host_os
17632
17633 # The build system.
17634 build_alias=$build_alias
17635 build=$build
17636 build_os=$build_os
17637
17638 # An echo program that does not interpret backslashes.
17639 echo=$lt_echo
17640
17641 # The archiver.
17642 AR=$lt_AR
17643 AR_FLAGS=$lt_AR_FLAGS
17644
17645 # A C compiler.
17646 LTCC=$lt_LTCC
17647
17648 # A language-specific compiler.
17649 CC=$lt_compiler_F77
17650
17651 # Is the compiler the GNU C compiler?
17652 with_gcc=$GCC_F77
17653
17654 # An ERE matcher.
17655 EGREP=$lt_EGREP
17656
17657 # The linker used to build libraries.
17658 LD=$lt_LD_F77
17659
17660 # Whether we need hard or soft links.
17661 LN_S=$lt_LN_S
17662
17663 # A BSD-compatible nm program.
17664 NM=$lt_NM
17665
17666 # A symbol stripping program
17667 STRIP=$lt_STRIP
17668
17669 # Used to examine libraries when file_magic_cmd begins "file"
17670 MAGIC_CMD=$MAGIC_CMD
17671
17672 # Used on cygwin: DLL creation program.
17673 DLLTOOL="$DLLTOOL"
17674
17675 # Used on cygwin: object dumper.
17676 OBJDUMP="$OBJDUMP"
17677
17678 # Used on cygwin: assembler.
17679 AS="$AS"
17680
17681 # The name of the directory that contains temporary libtool files.
17682 objdir=$objdir
17683
17684 # How to create reloadable object files.
17685 reload_flag=$lt_reload_flag
17686 reload_cmds=$lt_reload_cmds
17687
17688 # How to pass a linker flag through the compiler.
17689 wl=$lt_lt_prog_compiler_wl_F77
17690
17691 # Object file suffix (normally "o").
17692 objext="$ac_objext"
17693
17694 # Old archive suffix (normally "a").
17695 libext="$libext"
17696
17697 # Shared library suffix (normally ".so").
17698 shrext_cmds='$shrext_cmds'
17699
17700 # Executable file suffix (normally "").
17701 exeext="$exeext"
17702
17703 # Additional compiler flags for building library objects.
17704 pic_flag=$lt_lt_prog_compiler_pic_F77
17705 pic_mode=$pic_mode
17706
17707 # What is the maximum length of a command?
17708 max_cmd_len=$lt_cv_sys_max_cmd_len
17709
17710 # Does compiler simultaneously support -c and -o options?
17711 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17712
17713 # Must we lock files when doing compilation?
17714 need_locks=$lt_need_locks
17715
17716 # Do we need the lib prefix for modules?
17717 need_lib_prefix=$need_lib_prefix
17718
17719 # Do we need a version for libraries?
17720 need_version=$need_version
17721
17722 # Whether dlopen is supported.
17723 dlopen_support=$enable_dlopen
17724
17725 # Whether dlopen of programs is supported.
17726 dlopen_self=$enable_dlopen_self
17727
17728 # Whether dlopen of statically linked programs is supported.
17729 dlopen_self_static=$enable_dlopen_self_static
17730
17731 # Compiler flag to prevent dynamic linking.
17732 link_static_flag=$lt_lt_prog_compiler_static_F77
17733
17734 # Compiler flag to turn off builtin functions.
17735 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17736
17737 # Compiler flag to allow reflexive dlopens.
17738 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17739
17740 # Compiler flag to generate shared objects directly from archives.
17741 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17742
17743 # Compiler flag to generate thread-safe objects.
17744 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17745
17746 # Library versioning type.
17747 version_type=$version_type
17748
17749 # Format of library name prefix.
17750 libname_spec=$lt_libname_spec
17751
17752 # List of archive names.  First name is the real one, the rest are links.
17753 # The last name is the one that the linker finds with -lNAME.
17754 library_names_spec=$lt_library_names_spec
17755
17756 # The coded name of the library, if different from the real name.
17757 soname_spec=$lt_soname_spec
17758
17759 # Commands used to build and install an old-style archive.
17760 RANLIB=$lt_RANLIB
17761 old_archive_cmds=$lt_old_archive_cmds_F77
17762 old_postinstall_cmds=$lt_old_postinstall_cmds
17763 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17764
17765 # Create an old-style archive from a shared archive.
17766 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17767
17768 # Create a temporary old-style archive to link instead of a shared archive.
17769 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17770
17771 # Commands used to build and install a shared archive.
17772 archive_cmds=$lt_archive_cmds_F77
17773 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17774 postinstall_cmds=$lt_postinstall_cmds
17775 postuninstall_cmds=$lt_postuninstall_cmds
17776
17777 # Commands used to build a loadable module (assumed same as above if empty)
17778 module_cmds=$lt_module_cmds_F77
17779 module_expsym_cmds=$lt_module_expsym_cmds_F77
17780
17781 # Commands to strip libraries.
17782 old_striplib=$lt_old_striplib
17783 striplib=$lt_striplib
17784
17785 # Dependencies to place before the objects being linked to create a
17786 # shared library.
17787 predep_objects=$lt_predep_objects_F77
17788
17789 # Dependencies to place after the objects being linked to create a
17790 # shared library.
17791 postdep_objects=$lt_postdep_objects_F77
17792
17793 # Dependencies to place before the objects being linked to create a
17794 # shared library.
17795 predeps=$lt_predeps_F77
17796
17797 # Dependencies to place after the objects being linked to create a
17798 # shared library.
17799 postdeps=$lt_postdeps_F77
17800
17801 # The library search path used internally by the compiler when linking
17802 # a shared library.
17803 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17804
17805 # Method to check whether dependent libraries are shared objects.
17806 deplibs_check_method=$lt_deplibs_check_method
17807
17808 # Command to use when deplibs_check_method == file_magic.
17809 file_magic_cmd=$lt_file_magic_cmd
17810
17811 # Flag that allows shared libraries with undefined symbols to be built.
17812 allow_undefined_flag=$lt_allow_undefined_flag_F77
17813
17814 # Flag that forces no undefined symbols.
17815 no_undefined_flag=$lt_no_undefined_flag_F77
17816
17817 # Commands used to finish a libtool library installation in a directory.
17818 finish_cmds=$lt_finish_cmds
17819
17820 # Same as above, but a single script fragment to be evaled but not shown.
17821 finish_eval=$lt_finish_eval
17822
17823 # Take the output of nm and produce a listing of raw symbols and C names.
17824 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17825
17826 # Transform the output of nm in a proper C declaration
17827 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17828
17829 # Transform the output of nm in a C name address pair
17830 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17831
17832 # This is the shared library runtime path variable.
17833 runpath_var=$runpath_var
17834
17835 # This is the shared library path variable.
17836 shlibpath_var=$shlibpath_var
17837
17838 # Is shlibpath searched before the hard-coded library search path?
17839 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17840
17841 # How to hardcode a shared library path into an executable.
17842 hardcode_action=$hardcode_action_F77
17843
17844 # Whether we should hardcode library paths into libraries.
17845 hardcode_into_libs=$hardcode_into_libs
17846
17847 # Flag to hardcode \$libdir into a binary during linking.
17848 # This must work even if \$libdir does not exist.
17849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17850
17851 # If ld is used when linking, flag to hardcode \$libdir into
17852 # a binary during linking. This must work even if \$libdir does
17853 # not exist.
17854 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17855
17856 # Whether we need a single -rpath flag with a separated argument.
17857 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17858
17859 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17860 # resulting binary.
17861 hardcode_direct=$hardcode_direct_F77
17862
17863 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17864 # resulting binary.
17865 hardcode_minus_L=$hardcode_minus_L_F77
17866
17867 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17868 # the resulting binary.
17869 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17870
17871 # Set to yes if building a shared library automatically hardcodes DIR into the library
17872 # and all subsequent libraries and executables linked against it.
17873 hardcode_automatic=$hardcode_automatic_F77
17874
17875 # Variables whose values should be saved in libtool wrapper scripts and
17876 # restored at relink time.
17877 variables_saved_for_relink="$variables_saved_for_relink"
17878
17879 # Whether libtool must link a program against all its dependency libraries.
17880 link_all_deplibs=$link_all_deplibs_F77
17881
17882 # Compile-time system search path for libraries
17883 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17884
17885 # Run-time system search path for libraries
17886 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17887
17888 # Fix the shell variable \$srcfile for the compiler.
17889 fix_srcfile_path="$fix_srcfile_path_F77"
17890
17891 # Set to yes if exported symbols are required.
17892 always_export_symbols=$always_export_symbols_F77
17893
17894 # The commands to list exported symbols.
17895 export_symbols_cmds=$lt_export_symbols_cmds_F77
17896
17897 # The commands to extract the exported symbol list from a shared archive.
17898 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17899
17900 # Symbols that should not be listed in the preloaded symbols.
17901 exclude_expsyms=$lt_exclude_expsyms_F77
17902
17903 # Symbols that must always be exported.
17904 include_expsyms=$lt_include_expsyms_F77
17905
17906 # ### END LIBTOOL TAG CONFIG: $tagname
17907
17908 __EOF__
17909
17910
17911 else
17912   # If there is no Makefile yet, we rely on a make rule to execute
17913   # `config.status --recheck' to rerun these tests and create the
17914   # libtool script then.
17915   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17916   if test -f "$ltmain_in"; then
17917     test -f Makefile && make "$ltmain"
17918   fi
17919 fi
17920
17921
17922 ac_ext=c
17923 ac_cpp='$CPP $CPPFLAGS'
17924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17927
17928 CC="$lt_save_CC"
17929
17930         else
17931           tagname=""
17932         fi
17933         ;;
17934
17935       GCJ)
17936         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17937
17938
17939
17940 # Source file extension for Java test sources.
17941 ac_ext=java
17942
17943 # Object file extension for compiled Java test sources.
17944 objext=o
17945 objext_GCJ=$objext
17946
17947 # Code to be used in simple compile tests
17948 lt_simple_compile_test_code="class foo {}\n"
17949
17950 # Code to be used in simple link tests
17951 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17952
17953 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17954
17955 # If no C compiler was specified, use CC.
17956 LTCC=${LTCC-"$CC"}
17957
17958 # Allow CC to be a program name with arguments.
17959 compiler=$CC
17960
17961
17962 # save warnings/boilerplate of simple test code
17963 ac_outfile=conftest.$ac_objext
17964 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17965 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17966 _lt_compiler_boilerplate=`cat conftest.err`
17967 $rm conftest*
17968
17969 ac_outfile=conftest.$ac_objext
17970 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17972 _lt_linker_boilerplate=`cat conftest.err`
17973 $rm conftest*
17974
17975
17976 # Allow CC to be a program name with arguments.
17977 lt_save_CC="$CC"
17978 CC=${GCJ-"gcj"}
17979 compiler=$CC
17980 compiler_GCJ=$CC
17981 for cc_temp in $compiler""; do
17982   case $cc_temp in
17983     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17984     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17985     \-*) ;;
17986     *) break;;
17987   esac
17988 done
17989 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17990
17991
17992 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17993 archive_cmds_need_lc_GCJ=no
17994
17995 old_archive_cmds_GCJ=$old_archive_cmds
17996
17997
17998 lt_prog_compiler_no_builtin_flag_GCJ=
17999
18000 if test "$GCC" = yes; then
18001   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18002
18003
18004 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18005 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18006 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18007   echo $ECHO_N "(cached) $ECHO_C" >&6
18008 else
18009   lt_cv_prog_compiler_rtti_exceptions=no
18010   ac_outfile=conftest.$ac_objext
18011    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18012    lt_compiler_flag="-fno-rtti -fno-exceptions"
18013    # Insert the option either (1) after the last *FLAGS variable, or
18014    # (2) before a word containing "conftest.", or (3) at the end.
18015    # Note that $ac_compile itself does not contain backslashes and begins
18016    # with a dollar sign (not a hyphen), so the echo should work correctly.
18017    # The option is referenced via a variable to avoid confusing sed.
18018    lt_compile=`echo "$ac_compile" | $SED \
18019    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18020    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18021    -e 's:$: $lt_compiler_flag:'`
18022    (eval echo "\"\$as_me:18022: $lt_compile\"" >&5)
18023    (eval "$lt_compile" 2>conftest.err)
18024    ac_status=$?
18025    cat conftest.err >&5
18026    echo "$as_me:18026: \$? = $ac_status" >&5
18027    if (exit $ac_status) && test -s "$ac_outfile"; then
18028      # The compiler can only warn and ignore the option if not recognized
18029      # So say no if there are warnings other than the usual output.
18030      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18031      $SED '/^$/d' conftest.err >conftest.er2
18032      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18033        lt_cv_prog_compiler_rtti_exceptions=yes
18034      fi
18035    fi
18036    $rm conftest*
18037
18038 fi
18039 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18040 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18041
18042 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18043     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18044 else
18045     :
18046 fi
18047
18048 fi
18049
18050 lt_prog_compiler_wl_GCJ=
18051 lt_prog_compiler_pic_GCJ=
18052 lt_prog_compiler_static_GCJ=
18053
18054 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18055 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18056
18057   if test "$GCC" = yes; then
18058     lt_prog_compiler_wl_GCJ='-Wl,'
18059     lt_prog_compiler_static_GCJ='-static'
18060
18061     case $host_os in
18062       aix*)
18063       # All AIX code is PIC.
18064       if test "$host_cpu" = ia64; then
18065         # AIX 5 now supports IA64 processor
18066         lt_prog_compiler_static_GCJ='-Bstatic'
18067       fi
18068       ;;
18069
18070     amigaos*)
18071       # FIXME: we need at least 68020 code to build shared libraries, but
18072       # adding the `-m68020' flag to GCC prevents building anything better,
18073       # like `-m68040'.
18074       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18075       ;;
18076
18077     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18078       # PIC is the default for these OSes.
18079       ;;
18080
18081     mingw* | pw32* | os2*)
18082       # This hack is so that the source file can tell whether it is being
18083       # built for inclusion in a dll (and should export symbols for example).
18084       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18085       ;;
18086
18087     darwin* | rhapsody*)
18088       # PIC is the default on this platform
18089       # Common symbols not allowed in MH_DYLIB files
18090       lt_prog_compiler_pic_GCJ='-fno-common'
18091       ;;
18092
18093     msdosdjgpp*)
18094       # Just because we use GCC doesn't mean we suddenly get shared libraries
18095       # on systems that don't support them.
18096       lt_prog_compiler_can_build_shared_GCJ=no
18097       enable_shared=no
18098       ;;
18099
18100     sysv4*MP*)
18101       if test -d /usr/nec; then
18102         lt_prog_compiler_pic_GCJ=-Kconform_pic
18103       fi
18104       ;;
18105
18106     hpux*)
18107       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18108       # not for PA HP-UX.
18109       case "$host_cpu" in
18110       hppa*64*|ia64*)
18111         # +Z the default
18112         ;;
18113       *)
18114         lt_prog_compiler_pic_GCJ='-fPIC'
18115         ;;
18116       esac
18117       ;;
18118
18119     *)
18120       lt_prog_compiler_pic_GCJ='-fPIC'
18121       ;;
18122     esac
18123   else
18124     # PORTME Check for flag to pass linker flags through the system compiler.
18125     case $host_os in
18126     aix*)
18127       lt_prog_compiler_wl_GCJ='-Wl,'
18128       if test "$host_cpu" = ia64; then
18129         # AIX 5 now supports IA64 processor
18130         lt_prog_compiler_static_GCJ='-Bstatic'
18131       else
18132         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18133       fi
18134       ;;
18135       darwin*)
18136         # PIC is the default on this platform
18137         # Common symbols not allowed in MH_DYLIB files
18138        case $cc_basename in
18139          xlc*)
18140          lt_prog_compiler_pic_GCJ='-qnocommon'
18141          lt_prog_compiler_wl_GCJ='-Wl,'
18142          ;;
18143        esac
18144        ;;
18145
18146     mingw* | pw32* | os2*)
18147       # This hack is so that the source file can tell whether it is being
18148       # built for inclusion in a dll (and should export symbols for example).
18149       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18150       ;;
18151
18152     hpux9* | hpux10* | hpux11*)
18153       lt_prog_compiler_wl_GCJ='-Wl,'
18154       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18155       # not for PA HP-UX.
18156       case "$host_cpu" in
18157       hppa*64*|ia64*)
18158         # +Z the default
18159         ;;
18160       *)
18161         lt_prog_compiler_pic_GCJ='+Z'
18162         ;;
18163       esac
18164       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18165       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18166       ;;
18167
18168     irix5* | irix6* | nonstopux*)
18169       lt_prog_compiler_wl_GCJ='-Wl,'
18170       # PIC (with -KPIC) is the default.
18171       lt_prog_compiler_static_GCJ='-non_shared'
18172       ;;
18173
18174     newsos6)
18175       lt_prog_compiler_pic_GCJ='-KPIC'
18176       lt_prog_compiler_static_GCJ='-Bstatic'
18177       ;;
18178
18179     linux*)
18180       case $cc_basename in
18181       icc* | ecc*)
18182         lt_prog_compiler_wl_GCJ='-Wl,'
18183         lt_prog_compiler_pic_GCJ='-KPIC'
18184         lt_prog_compiler_static_GCJ='-static'
18185         ;;
18186       pgcc* | pgf77* | pgf90*)
18187         # Portland Group compilers (*not* the Pentium gcc compiler,
18188         # which looks to be a dead project)
18189         lt_prog_compiler_wl_GCJ='-Wl,'
18190         lt_prog_compiler_pic_GCJ='-fpic'
18191         lt_prog_compiler_static_GCJ='-static'
18192         ;;
18193       ccc*)
18194         lt_prog_compiler_wl_GCJ='-Wl,'
18195         # All Alpha code is PIC.
18196         lt_prog_compiler_static_GCJ='-non_shared'
18197         ;;
18198       esac
18199       ;;
18200
18201     osf3* | osf4* | osf5*)
18202       lt_prog_compiler_wl_GCJ='-Wl,'
18203       # All OSF/1 code is PIC.
18204       lt_prog_compiler_static_GCJ='-non_shared'
18205       ;;
18206
18207     sco3.2v5*)
18208       lt_prog_compiler_pic_GCJ='-Kpic'
18209       lt_prog_compiler_static_GCJ='-dn'
18210       ;;
18211
18212     solaris*)
18213       lt_prog_compiler_pic_GCJ='-KPIC'
18214       lt_prog_compiler_static_GCJ='-Bstatic'
18215       case $cc_basename in
18216       f77* | f90* | f95*)
18217         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18218       *)
18219         lt_prog_compiler_wl_GCJ='-Wl,';;
18220       esac
18221       ;;
18222
18223     sunos4*)
18224       lt_prog_compiler_wl_GCJ='-Qoption ld '
18225       lt_prog_compiler_pic_GCJ='-PIC'
18226       lt_prog_compiler_static_GCJ='-Bstatic'
18227       ;;
18228
18229     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18230       lt_prog_compiler_wl_GCJ='-Wl,'
18231       lt_prog_compiler_pic_GCJ='-KPIC'
18232       lt_prog_compiler_static_GCJ='-Bstatic'
18233       ;;
18234
18235     sysv4*MP*)
18236       if test -d /usr/nec ;then
18237         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18238         lt_prog_compiler_static_GCJ='-Bstatic'
18239       fi
18240       ;;
18241
18242     unicos*)
18243       lt_prog_compiler_wl_GCJ='-Wl,'
18244       lt_prog_compiler_can_build_shared_GCJ=no
18245       ;;
18246
18247     uts4*)
18248       lt_prog_compiler_pic_GCJ='-pic'
18249       lt_prog_compiler_static_GCJ='-Bstatic'
18250       ;;
18251
18252     *)
18253       lt_prog_compiler_can_build_shared_GCJ=no
18254       ;;
18255     esac
18256   fi
18257
18258 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18259 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18260
18261 #
18262 # Check to make sure the PIC flag actually works.
18263 #
18264 if test -n "$lt_prog_compiler_pic_GCJ"; then
18265
18266 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18267 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18268 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18269   echo $ECHO_N "(cached) $ECHO_C" >&6
18270 else
18271   lt_prog_compiler_pic_works_GCJ=no
18272   ac_outfile=conftest.$ac_objext
18273    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18274    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18275    # Insert the option either (1) after the last *FLAGS variable, or
18276    # (2) before a word containing "conftest.", or (3) at the end.
18277    # Note that $ac_compile itself does not contain backslashes and begins
18278    # with a dollar sign (not a hyphen), so the echo should work correctly.
18279    # The option is referenced via a variable to avoid confusing sed.
18280    lt_compile=`echo "$ac_compile" | $SED \
18281    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18282    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18283    -e 's:$: $lt_compiler_flag:'`
18284    (eval echo "\"\$as_me:18284: $lt_compile\"" >&5)
18285    (eval "$lt_compile" 2>conftest.err)
18286    ac_status=$?
18287    cat conftest.err >&5
18288    echo "$as_me:18288: \$? = $ac_status" >&5
18289    if (exit $ac_status) && test -s "$ac_outfile"; then
18290      # The compiler can only warn and ignore the option if not recognized
18291      # So say no if there are warnings other than the usual output.
18292      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18293      $SED '/^$/d' conftest.err >conftest.er2
18294      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18295        lt_prog_compiler_pic_works_GCJ=yes
18296      fi
18297    fi
18298    $rm conftest*
18299
18300 fi
18301 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18302 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18303
18304 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18305     case $lt_prog_compiler_pic_GCJ in
18306      "" | " "*) ;;
18307      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18308      esac
18309 else
18310     lt_prog_compiler_pic_GCJ=
18311      lt_prog_compiler_can_build_shared_GCJ=no
18312 fi
18313
18314 fi
18315 case "$host_os" in
18316   # For platforms which do not support PIC, -DPIC is meaningless:
18317   *djgpp*)
18318     lt_prog_compiler_pic_GCJ=
18319     ;;
18320   *)
18321     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18322     ;;
18323 esac
18324
18325 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18326 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18327 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18328   echo $ECHO_N "(cached) $ECHO_C" >&6
18329 else
18330   lt_cv_prog_compiler_c_o_GCJ=no
18331    $rm -r conftest 2>/dev/null
18332    mkdir conftest
18333    cd conftest
18334    mkdir out
18335    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18336
18337    lt_compiler_flag="-o out/conftest2.$ac_objext"
18338    # Insert the option either (1) after the last *FLAGS variable, or
18339    # (2) before a word containing "conftest.", or (3) at the end.
18340    # Note that $ac_compile itself does not contain backslashes and begins
18341    # with a dollar sign (not a hyphen), so the echo should work correctly.
18342    lt_compile=`echo "$ac_compile" | $SED \
18343    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18344    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18345    -e 's:$: $lt_compiler_flag:'`
18346    (eval echo "\"\$as_me:18346: $lt_compile\"" >&5)
18347    (eval "$lt_compile" 2>out/conftest.err)
18348    ac_status=$?
18349    cat out/conftest.err >&5
18350    echo "$as_me:18350: \$? = $ac_status" >&5
18351    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18352    then
18353      # The compiler can only warn and ignore the option if not recognized
18354      # So say no if there are warnings
18355      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18356      $SED '/^$/d' out/conftest.err >out/conftest.er2
18357      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18358        lt_cv_prog_compiler_c_o_GCJ=yes
18359      fi
18360    fi
18361    chmod u+w .
18362    $rm conftest*
18363    # SGI C++ compiler will create directory out/ii_files/ for
18364    # template instantiation
18365    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18366    $rm out/* && rmdir out
18367    cd ..
18368    rmdir conftest
18369    $rm conftest*
18370
18371 fi
18372 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18373 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18374
18375
18376 hard_links="nottested"
18377 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18378   # do not overwrite the value of need_locks provided by the user
18379   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18380 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18381   hard_links=yes
18382   $rm conftest*
18383   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18384   touch conftest.a
18385   ln conftest.a conftest.b 2>&5 || hard_links=no
18386   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18387   echo "$as_me:$LINENO: result: $hard_links" >&5
18388 echo "${ECHO_T}$hard_links" >&6
18389   if test "$hard_links" = no; then
18390     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18391 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18392     need_locks=warn
18393   fi
18394 else
18395   need_locks=no
18396 fi
18397
18398 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18399 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18400
18401   runpath_var=
18402   allow_undefined_flag_GCJ=
18403   enable_shared_with_static_runtimes_GCJ=no
18404   archive_cmds_GCJ=
18405   archive_expsym_cmds_GCJ=
18406   old_archive_From_new_cmds_GCJ=
18407   old_archive_from_expsyms_cmds_GCJ=
18408   export_dynamic_flag_spec_GCJ=
18409   whole_archive_flag_spec_GCJ=
18410   thread_safe_flag_spec_GCJ=
18411   hardcode_libdir_flag_spec_GCJ=
18412   hardcode_libdir_flag_spec_ld_GCJ=
18413   hardcode_libdir_separator_GCJ=
18414   hardcode_direct_GCJ=no
18415   hardcode_minus_L_GCJ=no
18416   hardcode_shlibpath_var_GCJ=unsupported
18417   link_all_deplibs_GCJ=unknown
18418   hardcode_automatic_GCJ=no
18419   module_cmds_GCJ=
18420   module_expsym_cmds_GCJ=
18421   always_export_symbols_GCJ=no
18422   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18423   # include_expsyms should be a list of space-separated symbols to be *always*
18424   # included in the symbol list
18425   include_expsyms_GCJ=
18426   # exclude_expsyms can be an extended regexp of symbols to exclude
18427   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18428   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18429   # as well as any symbol that contains `d'.
18430   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18431   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18432   # platforms (ab)use it in PIC code, but their linkers get confused if
18433   # the symbol is explicitly referenced.  Since portable code cannot
18434   # rely on this symbol name, it's probably fine to never include it in
18435   # preloaded symbol tables.
18436   extract_expsyms_cmds=
18437   # Just being paranoid about ensuring that cc_basename is set.
18438   for cc_temp in $compiler""; do
18439   case $cc_temp in
18440     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18441     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18442     \-*) ;;
18443     *) break;;
18444   esac
18445 done
18446 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18447
18448   case $host_os in
18449   cygwin* | mingw* | pw32*)
18450     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18451     # When not using gcc, we currently assume that we are using
18452     # Microsoft Visual C++.
18453     if test "$GCC" != yes; then
18454       with_gnu_ld=no
18455     fi
18456     ;;
18457   openbsd*)
18458     with_gnu_ld=no
18459     ;;
18460   esac
18461
18462   ld_shlibs_GCJ=yes
18463   if test "$with_gnu_ld" = yes; then
18464     # If archive_cmds runs LD, not CC, wlarc should be empty
18465     wlarc='${wl}'
18466
18467     # Set some defaults for GNU ld with shared library support. These
18468     # are reset later if shared libraries are not supported. Putting them
18469     # here allows them to be overridden if necessary.
18470     runpath_var=LD_RUN_PATH
18471     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18472     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18473     # ancient GNU ld didn't support --whole-archive et. al.
18474     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18475         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18476       else
18477         whole_archive_flag_spec_GCJ=
18478     fi
18479     supports_anon_versioning=no
18480     case `$LD -v 2>/dev/null` in
18481       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18482       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18483       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18484       *\ 2.11.*) ;; # other 2.11 versions
18485       *) supports_anon_versioning=yes ;;
18486     esac
18487
18488     # See if GNU ld supports shared libraries.
18489     case $host_os in
18490     aix3* | aix4* | aix5*)
18491       # On AIX/PPC, the GNU linker is very broken
18492       if test "$host_cpu" != ia64; then
18493         ld_shlibs_GCJ=no
18494         cat <<EOF 1>&2
18495
18496 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18497 *** to be unable to reliably create shared libraries on AIX.
18498 *** Therefore, libtool is disabling shared libraries support.  If you
18499 *** really care for shared libraries, you may want to modify your PATH
18500 *** so that a non-GNU linker is found, and then restart.
18501
18502 EOF
18503       fi
18504       ;;
18505
18506     amigaos*)
18507       archive_cmds_GCJ='$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)'
18508       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18509       hardcode_minus_L_GCJ=yes
18510
18511       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18512       # that the semantics of dynamic libraries on AmigaOS, at least up
18513       # to version 4, is to share data among multiple programs linked
18514       # with the same dynamic library.  Since this doesn't match the
18515       # behavior of shared libraries on other platforms, we can't use
18516       # them.
18517       ld_shlibs_GCJ=no
18518       ;;
18519
18520     beos*)
18521       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18522         allow_undefined_flag_GCJ=unsupported
18523         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18524         # support --undefined.  This deserves some investigation.  FIXME
18525         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18526       else
18527         ld_shlibs_GCJ=no
18528       fi
18529       ;;
18530
18531     cygwin* | mingw* | pw32*)
18532       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18533       # as there is no search path for DLLs.
18534       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18535       allow_undefined_flag_GCJ=unsupported
18536       always_export_symbols_GCJ=no
18537       enable_shared_with_static_runtimes_GCJ=yes
18538       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18539
18540       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18541         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18542         # If the export-symbols file already is a .def file (1st line
18543         # is EXPORTS), use it as is; otherwise, prepend...
18544         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18545           cp $export_symbols $output_objdir/$soname.def;
18546         else
18547           echo EXPORTS > $output_objdir/$soname.def;
18548           cat $export_symbols >> $output_objdir/$soname.def;
18549         fi~
18550         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18551       else
18552         ld_shlibs_GCJ=no
18553       fi
18554       ;;
18555
18556     linux*)
18557       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18558         tmp_addflag=
18559         case $cc_basename,$host_cpu in
18560         pgcc*)                          # Portland Group C compiler
18561           whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18562           tmp_addflag=' $pic_flag'
18563           ;;
18564         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
18565           whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18566           tmp_addflag=' $pic_flag -Mnomain' ;;
18567         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18568           tmp_addflag=' -i_dynamic' ;;
18569         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18570           tmp_addflag=' -i_dynamic -nofor_main' ;;
18571         ifc* | ifort*)                  # Intel Fortran compiler
18572           tmp_addflag=' -nofor_main' ;;
18573         esac
18574         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18575
18576         if test $supports_anon_versioning = yes; then
18577           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18578   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18579   $echo "local: *; };" >> $output_objdir/$libname.ver~
18580           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18581         fi
18582       else
18583         ld_shlibs_GCJ=no
18584       fi
18585       ;;
18586
18587     netbsd*)
18588       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18589         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18590         wlarc=
18591       else
18592         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18593         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18594       fi
18595       ;;
18596
18597     solaris* | sysv5*)
18598       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18599         ld_shlibs_GCJ=no
18600         cat <<EOF 1>&2
18601
18602 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18603 *** create shared libraries on Solaris systems.  Therefore, libtool
18604 *** is disabling shared libraries support.  We urge you to upgrade GNU
18605 *** binutils to release 2.9.1 or newer.  Another option is to modify
18606 *** your PATH or compiler configuration so that the native linker is
18607 *** used, and then restart.
18608
18609 EOF
18610       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18611         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18612         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18613       else
18614         ld_shlibs_GCJ=no
18615       fi
18616       ;;
18617
18618     sunos4*)
18619       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18620       wlarc=
18621       hardcode_direct_GCJ=yes
18622       hardcode_shlibpath_var_GCJ=no
18623       ;;
18624
18625     *)
18626       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18627         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18628         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18629       else
18630         ld_shlibs_GCJ=no
18631       fi
18632       ;;
18633     esac
18634
18635     if test "$ld_shlibs_GCJ" = no; then
18636       runpath_var=
18637       hardcode_libdir_flag_spec_GCJ=
18638       export_dynamic_flag_spec_GCJ=
18639       whole_archive_flag_spec_GCJ=
18640     fi
18641   else
18642     # PORTME fill in a description of your system's linker (not GNU ld)
18643     case $host_os in
18644     aix3*)
18645       allow_undefined_flag_GCJ=unsupported
18646       always_export_symbols_GCJ=yes
18647       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18648       # Note: this linker hardcodes the directories in LIBPATH if there
18649       # are no directories specified by -L.
18650       hardcode_minus_L_GCJ=yes
18651       if test "$GCC" = yes && test -z "$link_static_flag"; then
18652         # Neither direct hardcoding nor static linking is supported with a
18653         # broken collect2.
18654         hardcode_direct_GCJ=unsupported
18655       fi
18656       ;;
18657
18658     aix4* | aix5*)
18659       if test "$host_cpu" = ia64; then
18660         # On IA64, the linker does run time linking by default, so we don't
18661         # have to do anything special.
18662         aix_use_runtimelinking=no
18663         exp_sym_flag='-Bexport'
18664         no_entry_flag=""
18665       else
18666         # If we're using GNU nm, then we don't want the "-C" option.
18667         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18668         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18669           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18670         else
18671           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18672         fi
18673         aix_use_runtimelinking=no
18674
18675         # Test if we are trying to use run time linking or normal
18676         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18677         # need to do runtime linking.
18678         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18679           for ld_flag in $LDFLAGS; do
18680           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18681             aix_use_runtimelinking=yes
18682             break
18683           fi
18684           done
18685         esac
18686
18687         exp_sym_flag='-bexport'
18688         no_entry_flag='-bnoentry'
18689       fi
18690
18691       # When large executables or shared objects are built, AIX ld can
18692       # have problems creating the table of contents.  If linking a library
18693       # or program results in "error TOC overflow" add -mminimal-toc to
18694       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18695       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18696
18697       archive_cmds_GCJ=''
18698       hardcode_direct_GCJ=yes
18699       hardcode_libdir_separator_GCJ=':'
18700       link_all_deplibs_GCJ=yes
18701
18702       if test "$GCC" = yes; then
18703         case $host_os in aix4.[012]|aix4.[012].*)
18704         # We only want to do this on AIX 4.2 and lower, the check
18705         # below for broken collect2 doesn't work under 4.3+
18706           collect2name=`${CC} -print-prog-name=collect2`
18707           if test -f "$collect2name" && \
18708            strings "$collect2name" | grep resolve_lib_name >/dev/null
18709           then
18710           # We have reworked collect2
18711           hardcode_direct_GCJ=yes
18712           else
18713           # We have old collect2
18714           hardcode_direct_GCJ=unsupported
18715           # It fails to find uninstalled libraries when the uninstalled
18716           # path is not listed in the libpath.  Setting hardcode_minus_L
18717           # to unsupported forces relinking
18718           hardcode_minus_L_GCJ=yes
18719           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18720           hardcode_libdir_separator_GCJ=
18721           fi
18722         esac
18723         shared_flag='-shared'
18724         if test "$aix_use_runtimelinking" = yes; then
18725           shared_flag="$shared_flag "'${wl}-G'
18726         fi
18727       else
18728         # not using gcc
18729         if test "$host_cpu" = ia64; then
18730         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18731         # chokes on -Wl,-G. The following line is correct:
18732           shared_flag='-G'
18733         else
18734         if test "$aix_use_runtimelinking" = yes; then
18735             shared_flag='${wl}-G'
18736           else
18737             shared_flag='${wl}-bM:SRE'
18738         fi
18739         fi
18740       fi
18741
18742       # It seems that -bexpall does not export symbols beginning with
18743       # underscore (_), so it is better to generate a list of symbols to export.
18744       always_export_symbols_GCJ=yes
18745       if test "$aix_use_runtimelinking" = yes; then
18746         # Warning - without using the other runtime loading flags (-brtl),
18747         # -berok will link without error, but may produce a broken library.
18748         allow_undefined_flag_GCJ='-berok'
18749        # Determine the default libpath from the value encoded in an empty executable.
18750        cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h.  */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h.  */
18756
18757 int
18758 main ()
18759 {
18760
18761   ;
18762   return 0;
18763 }
18764 _ACEOF
18765 rm -f conftest.$ac_objext conftest$ac_exeext
18766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18767   (eval $ac_link) 2>conftest.er1
18768   ac_status=$?
18769   grep -v '^ *+' conftest.er1 >conftest.err
18770   rm -f conftest.er1
18771   cat conftest.err >&5
18772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773   (exit $ac_status); } &&
18774          { ac_try='test -z "$ac_c_werror_flag"
18775                          || test ! -s conftest.err'
18776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777   (eval $ac_try) 2>&5
18778   ac_status=$?
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); }; } &&
18781          { ac_try='test -s conftest$ac_exeext'
18782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783   (eval $ac_try) 2>&5
18784   ac_status=$?
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); }; }; then
18787
18788 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18789 }'`
18790 # Check for a 64-bit object if we didn't find anything.
18791 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; }
18792 }'`; fi
18793 else
18794   echo "$as_me: failed program was:" >&5
18795 sed 's/^/| /' conftest.$ac_ext >&5
18796
18797 fi
18798 rm -f conftest.err conftest.$ac_objext \
18799       conftest$ac_exeext conftest.$ac_ext
18800 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18801
18802        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18803         archive_expsym_cmds_GCJ="\$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"
18804        else
18805         if test "$host_cpu" = ia64; then
18806           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18807           allow_undefined_flag_GCJ="-z nodefs"
18808           archive_expsym_cmds_GCJ="\$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"
18809         else
18810          # Determine the default libpath from the value encoded in an empty executable.
18811          cat >conftest.$ac_ext <<_ACEOF
18812 /* confdefs.h.  */
18813 _ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h.  */
18817
18818 int
18819 main ()
18820 {
18821
18822   ;
18823   return 0;
18824 }
18825 _ACEOF
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18828   (eval $ac_link) 2>conftest.er1
18829   ac_status=$?
18830   grep -v '^ *+' conftest.er1 >conftest.err
18831   rm -f conftest.er1
18832   cat conftest.err >&5
18833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834   (exit $ac_status); } &&
18835          { ac_try='test -z "$ac_c_werror_flag"
18836                          || test ! -s conftest.err'
18837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838   (eval $ac_try) 2>&5
18839   ac_status=$?
18840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841   (exit $ac_status); }; } &&
18842          { ac_try='test -s conftest$ac_exeext'
18843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844   (eval $ac_try) 2>&5
18845   ac_status=$?
18846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847   (exit $ac_status); }; }; then
18848
18849 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18850 }'`
18851 # Check for a 64-bit object if we didn't find anything.
18852 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; }
18853 }'`; fi
18854 else
18855   echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18857
18858 fi
18859 rm -f conftest.err conftest.$ac_objext \
18860       conftest$ac_exeext conftest.$ac_ext
18861 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18862
18863          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18864           # Warning - without using the other run time loading flags,
18865           # -berok will link without error, but may produce a broken library.
18866           no_undefined_flag_GCJ=' ${wl}-bernotok'
18867           allow_undefined_flag_GCJ=' ${wl}-berok'
18868           # -bexpall does not export symbols beginning with underscore (_)
18869           always_export_symbols_GCJ=yes
18870           # Exported symbols can be pulled into shared objects from archives
18871           whole_archive_flag_spec_GCJ=' '
18872           archive_cmds_need_lc_GCJ=yes
18873           # This is similar to how AIX traditionally builds it's shared libraries.
18874           archive_expsym_cmds_GCJ="\$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'
18875         fi
18876       fi
18877       ;;
18878
18879     amigaos*)
18880       archive_cmds_GCJ='$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)'
18881       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18882       hardcode_minus_L_GCJ=yes
18883       # see comment about different semantics on the GNU ld section
18884       ld_shlibs_GCJ=no
18885       ;;
18886
18887     bsdi[45]*)
18888       export_dynamic_flag_spec_GCJ=-rdynamic
18889       ;;
18890
18891     cygwin* | mingw* | pw32*)
18892       # When not using gcc, we currently assume that we are using
18893       # Microsoft Visual C++.
18894       # hardcode_libdir_flag_spec is actually meaningless, as there is
18895       # no search path for DLLs.
18896       hardcode_libdir_flag_spec_GCJ=' '
18897       allow_undefined_flag_GCJ=unsupported
18898       # Tell ltmain to make .lib files, not .a files.
18899       libext=lib
18900       # Tell ltmain to make .dll files, not .so files.
18901       shrext_cmds=".dll"
18902       # FIXME: Setting linknames here is a bad hack.
18903       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18904       # The linker will automatically build a .lib file if we build a DLL.
18905       old_archive_From_new_cmds_GCJ='true'
18906       # FIXME: Should let the user specify the lib program.
18907       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18908       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18909       enable_shared_with_static_runtimes_GCJ=yes
18910       ;;
18911
18912     darwin* | rhapsody*)
18913       case "$host_os" in
18914         rhapsody* | darwin1.[012])
18915          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18916          ;;
18917        *) # Darwin 1.3 on
18918          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18919            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18920          else
18921            case ${MACOSX_DEPLOYMENT_TARGET} in
18922              10.[012])
18923                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18924                ;;
18925              10.*)
18926                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18927                ;;
18928            esac
18929          fi
18930          ;;
18931       esac
18932       archive_cmds_need_lc_GCJ=no
18933       hardcode_direct_GCJ=no
18934       hardcode_automatic_GCJ=yes
18935       hardcode_shlibpath_var_GCJ=unsupported
18936       whole_archive_flag_spec_GCJ=''
18937       link_all_deplibs_GCJ=yes
18938     if test "$GCC" = yes ; then
18939         output_verbose_link_cmd='echo'
18940         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18941       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18942       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18943       archive_expsym_cmds_GCJ='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}'
18944       module_expsym_cmds_GCJ='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}'
18945     else
18946       case $cc_basename in
18947         xlc*)
18948          output_verbose_link_cmd='echo'
18949          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18950          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18951           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18952          archive_expsym_cmds_GCJ='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}'
18953           module_expsym_cmds_GCJ='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}'
18954           ;;
18955        *)
18956          ld_shlibs_GCJ=no
18957           ;;
18958       esac
18959     fi
18960       ;;
18961
18962     dgux*)
18963       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18964       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18965       hardcode_shlibpath_var_GCJ=no
18966       ;;
18967
18968     freebsd1*)
18969       ld_shlibs_GCJ=no
18970       ;;
18971
18972     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18973     # support.  Future versions do this automatically, but an explicit c++rt0.o
18974     # does not break anything, and helps significantly (at the cost of a little
18975     # extra space).
18976     freebsd2.2*)
18977       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18978       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18979       hardcode_direct_GCJ=yes
18980       hardcode_shlibpath_var_GCJ=no
18981       ;;
18982
18983     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18984     freebsd2*)
18985       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18986       hardcode_direct_GCJ=yes
18987       hardcode_minus_L_GCJ=yes
18988       hardcode_shlibpath_var_GCJ=no
18989       ;;
18990
18991     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18992     freebsd* | kfreebsd*-gnu | dragonfly*)
18993       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18994       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18995       hardcode_direct_GCJ=yes
18996       hardcode_shlibpath_var_GCJ=no
18997       ;;
18998
18999     hpux9*)
19000       if test "$GCC" = yes; then
19001         archive_cmds_GCJ='$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'
19002       else
19003         archive_cmds_GCJ='$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'
19004       fi
19005       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19006       hardcode_libdir_separator_GCJ=:
19007       hardcode_direct_GCJ=yes
19008
19009       # hardcode_minus_L: Not really in the search PATH,
19010       # but as the default location of the library.
19011       hardcode_minus_L_GCJ=yes
19012       export_dynamic_flag_spec_GCJ='${wl}-E'
19013       ;;
19014
19015     hpux10* | hpux11*)
19016       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19017         case "$host_cpu" in
19018         hppa*64*|ia64*)
19019           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19020           ;;
19021         *)
19022           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19023           ;;
19024         esac
19025       else
19026         case "$host_cpu" in
19027         hppa*64*|ia64*)
19028           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19029           ;;
19030         *)
19031           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19032           ;;
19033         esac
19034       fi
19035       if test "$with_gnu_ld" = no; then
19036         case "$host_cpu" in
19037         hppa*64*)
19038           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19039           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19040           hardcode_libdir_separator_GCJ=:
19041           hardcode_direct_GCJ=no
19042           hardcode_shlibpath_var_GCJ=no
19043           ;;
19044         ia64*)
19045           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19046           hardcode_direct_GCJ=no
19047           hardcode_shlibpath_var_GCJ=no
19048
19049           # hardcode_minus_L: Not really in the search PATH,
19050           # but as the default location of the library.
19051           hardcode_minus_L_GCJ=yes
19052           ;;
19053         *)
19054           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19055           hardcode_libdir_separator_GCJ=:
19056           hardcode_direct_GCJ=yes
19057           export_dynamic_flag_spec_GCJ='${wl}-E'
19058
19059           # hardcode_minus_L: Not really in the search PATH,
19060           # but as the default location of the library.
19061           hardcode_minus_L_GCJ=yes
19062           ;;
19063         esac
19064       fi
19065       ;;
19066
19067     irix5* | irix6* | nonstopux*)
19068       if test "$GCC" = yes; then
19069         archive_cmds_GCJ='$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'
19070       else
19071         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19072         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19073       fi
19074       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19075       hardcode_libdir_separator_GCJ=:
19076       link_all_deplibs_GCJ=yes
19077       ;;
19078
19079     netbsd*)
19080       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19081         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19082       else
19083         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19084       fi
19085       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19086       hardcode_direct_GCJ=yes
19087       hardcode_shlibpath_var_GCJ=no
19088       ;;
19089
19090     newsos6)
19091       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19092       hardcode_direct_GCJ=yes
19093       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19094       hardcode_libdir_separator_GCJ=:
19095       hardcode_shlibpath_var_GCJ=no
19096       ;;
19097
19098     openbsd*)
19099       hardcode_direct_GCJ=yes
19100       hardcode_shlibpath_var_GCJ=no
19101       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19102         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19103         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19104         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19105         export_dynamic_flag_spec_GCJ='${wl}-E'
19106       else
19107        case $host_os in
19108          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19109            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19110            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19111            ;;
19112          *)
19113            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19114            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19115            ;;
19116        esac
19117       fi
19118       ;;
19119
19120     os2*)
19121       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19122       hardcode_minus_L_GCJ=yes
19123       allow_undefined_flag_GCJ=unsupported
19124       archive_cmds_GCJ='$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'
19125       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19126       ;;
19127
19128     osf3*)
19129       if test "$GCC" = yes; then
19130         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19131         archive_cmds_GCJ='$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'
19132       else
19133         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19134         archive_cmds_GCJ='$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'
19135       fi
19136       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19137       hardcode_libdir_separator_GCJ=:
19138       ;;
19139
19140     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19141       if test "$GCC" = yes; then
19142         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19143         archive_cmds_GCJ='$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'
19144         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19145       else
19146         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19147         archive_cmds_GCJ='$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'
19148         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19149         $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'
19150
19151         # Both c and cxx compiler support -rpath directly
19152         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19153       fi
19154       hardcode_libdir_separator_GCJ=:
19155       ;;
19156
19157     sco3.2v5*)
19158       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19159       hardcode_shlibpath_var_GCJ=no
19160       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19161       runpath_var=LD_RUN_PATH
19162       hardcode_runpath_var=yes
19163       ;;
19164
19165     solaris*)
19166       no_undefined_flag_GCJ=' -z text'
19167       if test "$GCC" = yes; then
19168         wlarc='${wl}'
19169         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19170         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19171           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19172       else
19173         wlarc=''
19174         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19175         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19176         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19177       fi
19178       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19179       hardcode_shlibpath_var_GCJ=no
19180       case $host_os in
19181       solaris2.[0-5] | solaris2.[0-5].*) ;;
19182       *)
19183         # The compiler driver will combine linker options so we
19184         # cannot just pass the convience library names through
19185         # without $wl, iff we do not link with $LD.
19186         # Luckily, gcc supports the same syntax we need for Sun Studio.
19187         # Supported since Solaris 2.6 (maybe 2.5.1?)
19188         case $wlarc in
19189         '')
19190           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19191         *)
19192           whole_archive_flag_spec_GCJ='${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' ;;
19193         esac ;;
19194       esac
19195       link_all_deplibs_GCJ=yes
19196       ;;
19197
19198     sunos4*)
19199       if test "x$host_vendor" = xsequent; then
19200         # Use $CC to link under sequent, because it throws in some extra .o
19201         # files that make .init and .fini sections work.
19202         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19203       else
19204         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19205       fi
19206       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19207       hardcode_direct_GCJ=yes
19208       hardcode_minus_L_GCJ=yes
19209       hardcode_shlibpath_var_GCJ=no
19210       ;;
19211
19212     sysv4)
19213       case $host_vendor in
19214         sni)
19215           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19216           hardcode_direct_GCJ=yes # is this really true???
19217         ;;
19218         siemens)
19219           ## LD is ld it makes a PLAMLIB
19220           ## CC just makes a GrossModule.
19221           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19222           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19223           hardcode_direct_GCJ=no
19224         ;;
19225         motorola)
19226           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19227           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19228         ;;
19229       esac
19230       runpath_var='LD_RUN_PATH'
19231       hardcode_shlibpath_var_GCJ=no
19232       ;;
19233
19234     sysv4.3*)
19235       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19236       hardcode_shlibpath_var_GCJ=no
19237       export_dynamic_flag_spec_GCJ='-Bexport'
19238       ;;
19239
19240     sysv4*MP*)
19241       if test -d /usr/nec; then
19242         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19243         hardcode_shlibpath_var_GCJ=no
19244         runpath_var=LD_RUN_PATH
19245         hardcode_runpath_var=yes
19246         ld_shlibs_GCJ=yes
19247       fi
19248       ;;
19249
19250     sysv4.2uw2*)
19251       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19252       hardcode_direct_GCJ=yes
19253       hardcode_minus_L_GCJ=no
19254       hardcode_shlibpath_var_GCJ=no
19255       hardcode_runpath_var=yes
19256       runpath_var=LD_RUN_PATH
19257       ;;
19258
19259    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19260       no_undefined_flag_GCJ='${wl}-z ${wl}text'
19261       if test "$GCC" = yes; then
19262         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19263       else
19264         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19265       fi
19266       runpath_var='LD_RUN_PATH'
19267       hardcode_shlibpath_var_GCJ=no
19268       ;;
19269
19270     sysv5*)
19271       no_undefined_flag_GCJ=' -z text'
19272       # $CC -shared without GNU ld will not create a library from C++
19273       # object files and a static libstdc++, better avoid it by now
19274       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19275       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19276                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19277       hardcode_libdir_flag_spec_GCJ=
19278       hardcode_shlibpath_var_GCJ=no
19279       runpath_var='LD_RUN_PATH'
19280       ;;
19281
19282     uts4*)
19283       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19284       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19285       hardcode_shlibpath_var_GCJ=no
19286       ;;
19287
19288     *)
19289       ld_shlibs_GCJ=no
19290       ;;
19291     esac
19292   fi
19293
19294 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19295 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19296 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19297
19298 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19299 if test "$GCC" = yes; then
19300   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19301 fi
19302
19303 #
19304 # Do we need to explicitly link libc?
19305 #
19306 case "x$archive_cmds_need_lc_GCJ" in
19307 x|xyes)
19308   # Assume -lc should be added
19309   archive_cmds_need_lc_GCJ=yes
19310
19311   if test "$enable_shared" = yes && test "$GCC" = yes; then
19312     case $archive_cmds_GCJ in
19313     *'~'*)
19314       # FIXME: we may have to deal with multi-command sequences.
19315       ;;
19316     '$CC '*)
19317       # Test whether the compiler implicitly links with -lc since on some
19318       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19319       # to ld, don't add -lc before -lgcc.
19320       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19321 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19322       $rm conftest*
19323       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19324
19325       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19326   (eval $ac_compile) 2>&5
19327   ac_status=$?
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); } 2>conftest.err; then
19330         soname=conftest
19331         lib=conftest
19332         libobjs=conftest.$ac_objext
19333         deplibs=
19334         wl=$lt_prog_compiler_wl_GCJ
19335         compiler_flags=-v
19336         linker_flags=-v
19337         verstring=
19338         output_objdir=.
19339         libname=conftest
19340         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19341         allow_undefined_flag_GCJ=
19342         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19343   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19344   ac_status=$?
19345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346   (exit $ac_status); }
19347         then
19348           archive_cmds_need_lc_GCJ=no
19349         else
19350           archive_cmds_need_lc_GCJ=yes
19351         fi
19352         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19353       else
19354         cat conftest.err 1>&5
19355       fi
19356       $rm conftest*
19357       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19358 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19359       ;;
19360     esac
19361   fi
19362   ;;
19363 esac
19364
19365 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19366 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19367 library_names_spec=
19368 libname_spec='lib$name'
19369 soname_spec=
19370 shrext_cmds=".so"
19371 postinstall_cmds=
19372 postuninstall_cmds=
19373 finish_cmds=
19374 finish_eval=
19375 shlibpath_var=
19376 shlibpath_overrides_runpath=unknown
19377 version_type=none
19378 dynamic_linker="$host_os ld.so"
19379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19380 if test "$GCC" = yes; then
19381   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19382   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19383     # if the path contains ";" then we assume it to be the separator
19384     # otherwise default to the standard path separator (i.e. ":") - it is
19385     # assumed that no part of a normal pathname contains ";" but that should
19386     # okay in the real world where ";" in dirpaths is itself problematic.
19387     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19388   else
19389     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19390   fi
19391 else
19392   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19393 fi
19394 need_lib_prefix=unknown
19395 hardcode_into_libs=no
19396
19397 # when you set need_version to no, make sure it does not cause -set_version
19398 # flags to be left without arguments
19399 need_version=unknown
19400
19401 case $host_os in
19402 aix3*)
19403   version_type=linux
19404   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19405   shlibpath_var=LIBPATH
19406
19407   # AIX 3 has no versioning support, so we append a major version to the name.
19408   soname_spec='${libname}${release}${shared_ext}$major'
19409   ;;
19410
19411 aix4* | aix5*)
19412   version_type=linux
19413   need_lib_prefix=no
19414   need_version=no
19415   hardcode_into_libs=yes
19416   if test "$host_cpu" = ia64; then
19417     # AIX 5 supports IA64
19418     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19419     shlibpath_var=LD_LIBRARY_PATH
19420   else
19421     # With GCC up to 2.95.x, collect2 would create an import file
19422     # for dependence libraries.  The import file would start with
19423     # the line `#! .'.  This would cause the generated library to
19424     # depend on `.', always an invalid library.  This was fixed in
19425     # development snapshots of GCC prior to 3.0.
19426     case $host_os in
19427       aix4 | aix4.[01] | aix4.[01].*)
19428       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19429            echo ' yes '
19430            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19431         :
19432       else
19433         can_build_shared=no
19434       fi
19435       ;;
19436     esac
19437     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19438     # soname into executable. Probably we can add versioning support to
19439     # collect2, so additional links can be useful in future.
19440     if test "$aix_use_runtimelinking" = yes; then
19441       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19442       # instead of lib<name>.a to let people know that these are not
19443       # typical AIX shared libraries.
19444       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19445     else
19446       # We preserve .a as extension for shared libraries through AIX4.2
19447       # and later when we are not doing run time linking.
19448       library_names_spec='${libname}${release}.a $libname.a'
19449       soname_spec='${libname}${release}${shared_ext}$major'
19450     fi
19451     shlibpath_var=LIBPATH
19452   fi
19453   ;;
19454
19455 amigaos*)
19456   library_names_spec='$libname.ixlibrary $libname.a'
19457   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19458   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'
19459   ;;
19460
19461 beos*)
19462   library_names_spec='${libname}${shared_ext}'
19463   dynamic_linker="$host_os ld.so"
19464   shlibpath_var=LIBRARY_PATH
19465   ;;
19466
19467 bsdi[45]*)
19468   version_type=linux
19469   need_version=no
19470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19471   soname_spec='${libname}${release}${shared_ext}$major'
19472   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19473   shlibpath_var=LD_LIBRARY_PATH
19474   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19475   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19476   # the default ld.so.conf also contains /usr/contrib/lib and
19477   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19478   # libtool to hard-code these into programs
19479   ;;
19480
19481 cygwin* | mingw* | pw32*)
19482   version_type=windows
19483   shrext_cmds=".dll"
19484   need_version=no
19485   need_lib_prefix=no
19486
19487   case $GCC,$host_os in
19488   yes,cygwin* | yes,mingw* | yes,pw32*)
19489     library_names_spec='$libname.dll.a'
19490     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19491     postinstall_cmds='base_file=`basename \${file}`~
19492       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19493       dldir=$destdir/`dirname \$dlpath`~
19494       test -d \$dldir || mkdir -p \$dldir~
19495       $install_prog $dir/$dlname \$dldir/$dlname'
19496     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19497       dlpath=$dir/\$dldll~
19498        $rm \$dlpath'
19499     shlibpath_overrides_runpath=yes
19500
19501     case $host_os in
19502     cygwin*)
19503       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19504       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19505       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19506       ;;
19507     mingw*)
19508       # MinGW DLLs use traditional 'lib' prefix
19509       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19510       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19511       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19512         # It is most probably a Windows format PATH printed by
19513         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19514         # path with ; separators, and with drive letters. We can handle the
19515         # drive letters (cygwin fileutils understands them), so leave them,
19516         # especially as we might pass files found there to a mingw objdump,
19517         # which wouldn't understand a cygwinified path. Ahh.
19518         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19519       else
19520         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19521       fi
19522       ;;
19523     pw32*)
19524       # pw32 DLLs use 'pw' prefix rather than 'lib'
19525       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19526       ;;
19527     esac
19528     ;;
19529
19530   *)
19531     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19532     ;;
19533   esac
19534   dynamic_linker='Win32 ld.exe'
19535   # FIXME: first we should search . and the directory the executable is in
19536   shlibpath_var=PATH
19537   ;;
19538
19539 darwin* | rhapsody*)
19540   dynamic_linker="$host_os dyld"
19541   version_type=darwin
19542   need_lib_prefix=no
19543   need_version=no
19544   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19545   soname_spec='${libname}${release}${major}$shared_ext'
19546   shlibpath_overrides_runpath=yes
19547   shlibpath_var=DYLD_LIBRARY_PATH
19548   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19549   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19550   if test "$GCC" = yes; then
19551     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"`
19552   else
19553     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19554   fi
19555   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19556   ;;
19557
19558 dgux*)
19559   version_type=linux
19560   need_lib_prefix=no
19561   need_version=no
19562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19563   soname_spec='${libname}${release}${shared_ext}$major'
19564   shlibpath_var=LD_LIBRARY_PATH
19565   ;;
19566
19567 freebsd1*)
19568   dynamic_linker=no
19569   ;;
19570
19571 kfreebsd*-gnu)
19572   version_type=linux
19573   need_lib_prefix=no
19574   need_version=no
19575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19576   soname_spec='${libname}${release}${shared_ext}$major'
19577   shlibpath_var=LD_LIBRARY_PATH
19578   shlibpath_overrides_runpath=no
19579   hardcode_into_libs=yes
19580   dynamic_linker='GNU ld.so'
19581   ;;
19582
19583 freebsd* | dragonfly*)
19584   # DragonFly does not have aout.  When/if they implement a new
19585   # versioning mechanism, adjust this.
19586   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19587   version_type=freebsd-$objformat
19588   case $version_type in
19589     freebsd-elf*)
19590       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19591       need_version=no
19592       need_lib_prefix=no
19593       ;;
19594     freebsd-*)
19595       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19596       need_version=yes
19597       ;;
19598   esac
19599   shlibpath_var=LD_LIBRARY_PATH
19600   case $host_os in
19601   freebsd2*)
19602     shlibpath_overrides_runpath=yes
19603     ;;
19604   freebsd3.[01]* | freebsdelf3.[01]*)
19605     shlibpath_overrides_runpath=yes
19606     hardcode_into_libs=yes
19607     ;;
19608   *) # from 3.2 on
19609     shlibpath_overrides_runpath=no
19610     hardcode_into_libs=yes
19611     ;;
19612   esac
19613   ;;
19614
19615 gnu*)
19616   version_type=linux
19617   need_lib_prefix=no
19618   need_version=no
19619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19620   soname_spec='${libname}${release}${shared_ext}$major'
19621   shlibpath_var=LD_LIBRARY_PATH
19622   hardcode_into_libs=yes
19623   ;;
19624
19625 hpux9* | hpux10* | hpux11*)
19626   # Give a soname corresponding to the major version so that dld.sl refuses to
19627   # link against other versions.
19628   version_type=sunos
19629   need_lib_prefix=no
19630   need_version=no
19631   case "$host_cpu" in
19632   ia64*)
19633     shrext_cmds='.so'
19634     hardcode_into_libs=yes
19635     dynamic_linker="$host_os dld.so"
19636     shlibpath_var=LD_LIBRARY_PATH
19637     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19638     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19639     soname_spec='${libname}${release}${shared_ext}$major'
19640     if test "X$HPUX_IA64_MODE" = X32; then
19641       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19642     else
19643       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19644     fi
19645     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19646     ;;
19647    hppa*64*)
19648      shrext_cmds='.sl'
19649      hardcode_into_libs=yes
19650      dynamic_linker="$host_os dld.sl"
19651      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19652      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19653      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19654      soname_spec='${libname}${release}${shared_ext}$major'
19655      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19656      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19657      ;;
19658    *)
19659     shrext_cmds='.sl'
19660     dynamic_linker="$host_os dld.sl"
19661     shlibpath_var=SHLIB_PATH
19662     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19663     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19664     soname_spec='${libname}${release}${shared_ext}$major'
19665     ;;
19666   esac
19667   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19668   postinstall_cmds='chmod 555 $lib'
19669   ;;
19670
19671 irix5* | irix6* | nonstopux*)
19672   case $host_os in
19673     nonstopux*) version_type=nonstopux ;;
19674     *)
19675         if test "$lt_cv_prog_gnu_ld" = yes; then
19676                 version_type=linux
19677         else
19678                 version_type=irix
19679         fi ;;
19680   esac
19681   need_lib_prefix=no
19682   need_version=no
19683   soname_spec='${libname}${release}${shared_ext}$major'
19684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19685   case $host_os in
19686   irix5* | nonstopux*)
19687     libsuff= shlibsuff=
19688     ;;
19689   *)
19690     case $LD in # libtool.m4 will add one of these switches to LD
19691     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19692       libsuff= shlibsuff= libmagic=32-bit;;
19693     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19694       libsuff=32 shlibsuff=N32 libmagic=N32;;
19695     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19696       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19697     *) libsuff= shlibsuff= libmagic=never-match;;
19698     esac
19699     ;;
19700   esac
19701   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19702   shlibpath_overrides_runpath=no
19703   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19704   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19705   hardcode_into_libs=yes
19706   ;;
19707
19708 # No shared lib support for Linux oldld, aout, or coff.
19709 linux*oldld* | linux*aout* | linux*coff*)
19710   dynamic_linker=no
19711   ;;
19712
19713 # This must be Linux ELF.
19714 linux*)
19715   version_type=linux
19716   need_lib_prefix=no
19717   need_version=no
19718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19719   soname_spec='${libname}${release}${shared_ext}$major'
19720   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19721   shlibpath_var=LD_LIBRARY_PATH
19722   shlibpath_overrides_runpath=no
19723   # This implies no fast_install, which is unacceptable.
19724   # Some rework will be needed to allow for fast_install
19725   # before this can be enabled.
19726   hardcode_into_libs=yes
19727
19728   # Append ld.so.conf contents to the search path
19729   if test -f /etc/ld.so.conf; then
19730     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' ' '`
19731     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19732   fi
19733
19734   # We used to test for /lib/ld.so.1 and disable shared libraries on
19735   # powerpc, because MkLinux only supported shared libraries with the
19736   # GNU dynamic linker.  Since this was broken with cross compilers,
19737   # most powerpc-linux boxes support dynamic linking these days and
19738   # people can always --disable-shared, the test was removed, and we
19739   # assume the GNU/Linux dynamic linker is in use.
19740   dynamic_linker='GNU/Linux ld.so'
19741   ;;
19742
19743 knetbsd*-gnu)
19744   version_type=linux
19745   need_lib_prefix=no
19746   need_version=no
19747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19748   soname_spec='${libname}${release}${shared_ext}$major'
19749   shlibpath_var=LD_LIBRARY_PATH
19750   shlibpath_overrides_runpath=no
19751   hardcode_into_libs=yes
19752   dynamic_linker='GNU ld.so'
19753   ;;
19754
19755 netbsd*)
19756   version_type=sunos
19757   need_lib_prefix=no
19758   need_version=no
19759   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19760     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19761     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19762     dynamic_linker='NetBSD (a.out) ld.so'
19763   else
19764     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19765     soname_spec='${libname}${release}${shared_ext}$major'
19766     dynamic_linker='NetBSD ld.elf_so'
19767   fi
19768   shlibpath_var=LD_LIBRARY_PATH
19769   shlibpath_overrides_runpath=yes
19770   hardcode_into_libs=yes
19771   ;;
19772
19773 newsos6)
19774   version_type=linux
19775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19776   shlibpath_var=LD_LIBRARY_PATH
19777   shlibpath_overrides_runpath=yes
19778   ;;
19779
19780 nto-qnx*)
19781   version_type=linux
19782   need_lib_prefix=no
19783   need_version=no
19784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19785   soname_spec='${libname}${release}${shared_ext}$major'
19786   shlibpath_var=LD_LIBRARY_PATH
19787   shlibpath_overrides_runpath=yes
19788   ;;
19789
19790 openbsd*)
19791   version_type=sunos
19792   need_lib_prefix=no
19793   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19794   case $host_os in
19795     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19796     *)                         need_version=no  ;;
19797   esac
19798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19799   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19800   shlibpath_var=LD_LIBRARY_PATH
19801   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19802     case $host_os in
19803       openbsd2.[89] | openbsd2.[89].*)
19804         shlibpath_overrides_runpath=no
19805         ;;
19806       *)
19807         shlibpath_overrides_runpath=yes
19808         ;;
19809       esac
19810   else
19811     shlibpath_overrides_runpath=yes
19812   fi
19813   ;;
19814
19815 os2*)
19816   libname_spec='$name'
19817   shrext_cmds=".dll"
19818   need_lib_prefix=no
19819   library_names_spec='$libname${shared_ext} $libname.a'
19820   dynamic_linker='OS/2 ld.exe'
19821   shlibpath_var=LIBPATH
19822   ;;
19823
19824 osf3* | osf4* | osf5*)
19825   version_type=osf
19826   need_lib_prefix=no
19827   need_version=no
19828   soname_spec='${libname}${release}${shared_ext}$major'
19829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19830   shlibpath_var=LD_LIBRARY_PATH
19831   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19832   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19833   ;;
19834
19835 sco3.2v5*)
19836   version_type=osf
19837   soname_spec='${libname}${release}${shared_ext}$major'
19838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19839   shlibpath_var=LD_LIBRARY_PATH
19840   ;;
19841
19842 solaris*)
19843   version_type=linux
19844   need_lib_prefix=no
19845   need_version=no
19846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19847   soname_spec='${libname}${release}${shared_ext}$major'
19848   shlibpath_var=LD_LIBRARY_PATH
19849   shlibpath_overrides_runpath=yes
19850   hardcode_into_libs=yes
19851   # ldd complains unless libraries are executable
19852   postinstall_cmds='chmod +x $lib'
19853   ;;
19854
19855 sunos4*)
19856   version_type=sunos
19857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19858   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19859   shlibpath_var=LD_LIBRARY_PATH
19860   shlibpath_overrides_runpath=yes
19861   if test "$with_gnu_ld" = yes; then
19862     need_lib_prefix=no
19863   fi
19864   need_version=yes
19865   ;;
19866
19867 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19868   version_type=linux
19869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19870   soname_spec='${libname}${release}${shared_ext}$major'
19871   shlibpath_var=LD_LIBRARY_PATH
19872   case $host_vendor in
19873     sni)
19874       shlibpath_overrides_runpath=no
19875       need_lib_prefix=no
19876       export_dynamic_flag_spec='${wl}-Blargedynsym'
19877       runpath_var=LD_RUN_PATH
19878       ;;
19879     siemens)
19880       need_lib_prefix=no
19881       ;;
19882     motorola)
19883       need_lib_prefix=no
19884       need_version=no
19885       shlibpath_overrides_runpath=no
19886       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19887       ;;
19888   esac
19889   ;;
19890
19891 sysv4*MP*)
19892   if test -d /usr/nec ;then
19893     version_type=linux
19894     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19895     soname_spec='$libname${shared_ext}.$major'
19896     shlibpath_var=LD_LIBRARY_PATH
19897   fi
19898   ;;
19899
19900 uts4*)
19901   version_type=linux
19902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19903   soname_spec='${libname}${release}${shared_ext}$major'
19904   shlibpath_var=LD_LIBRARY_PATH
19905   ;;
19906
19907 *)
19908   dynamic_linker=no
19909   ;;
19910 esac
19911 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19912 echo "${ECHO_T}$dynamic_linker" >&6
19913 test "$dynamic_linker" = no && can_build_shared=no
19914
19915 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19916 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19917 hardcode_action_GCJ=
19918 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19919    test -n "$runpath_var_GCJ" || \
19920    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19921
19922   # We can hardcode non-existant directories.
19923   if test "$hardcode_direct_GCJ" != no &&
19924      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19925      # have to relink, otherwise we might link with an installed library
19926      # when we should be linking with a yet-to-be-installed one
19927      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19928      test "$hardcode_minus_L_GCJ" != no; then
19929     # Linking always hardcodes the temporary library directory.
19930     hardcode_action_GCJ=relink
19931   else
19932     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19933     hardcode_action_GCJ=immediate
19934   fi
19935 else
19936   # We cannot hardcode anything, or else we can only hardcode existing
19937   # directories.
19938   hardcode_action_GCJ=unsupported
19939 fi
19940 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19941 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19942
19943 if test "$hardcode_action_GCJ" = relink; then
19944   # Fast installation is not supported
19945   enable_fast_install=no
19946 elif test "$shlibpath_overrides_runpath" = yes ||
19947      test "$enable_shared" = no; then
19948   # Fast installation is not necessary
19949   enable_fast_install=needless
19950 fi
19951
19952 striplib=
19953 old_striplib=
19954 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19955 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19956 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19957   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19958   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19959   echo "$as_me:$LINENO: result: yes" >&5
19960 echo "${ECHO_T}yes" >&6
19961 else
19962 # FIXME - insert some real tests, host_os isn't really good enough
19963   case $host_os in
19964    darwin*)
19965        if test -n "$STRIP" ; then
19966          striplib="$STRIP -x"
19967          echo "$as_me:$LINENO: result: yes" >&5
19968 echo "${ECHO_T}yes" >&6
19969        else
19970   echo "$as_me:$LINENO: result: no" >&5
19971 echo "${ECHO_T}no" >&6
19972 fi
19973        ;;
19974    *)
19975   echo "$as_me:$LINENO: result: no" >&5
19976 echo "${ECHO_T}no" >&6
19977     ;;
19978   esac
19979 fi
19980
19981 if test "x$enable_dlopen" != xyes; then
19982   enable_dlopen=unknown
19983   enable_dlopen_self=unknown
19984   enable_dlopen_self_static=unknown
19985 else
19986   lt_cv_dlopen=no
19987   lt_cv_dlopen_libs=
19988
19989   case $host_os in
19990   beos*)
19991     lt_cv_dlopen="load_add_on"
19992     lt_cv_dlopen_libs=
19993     lt_cv_dlopen_self=yes
19994     ;;
19995
19996   mingw* | pw32*)
19997     lt_cv_dlopen="LoadLibrary"
19998     lt_cv_dlopen_libs=
19999    ;;
20000
20001   cygwin*)
20002     lt_cv_dlopen="dlopen"
20003     lt_cv_dlopen_libs=
20004    ;;
20005
20006   darwin*)
20007   # if libdl is installed we need to link against it
20008     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20009 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20010 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20011   echo $ECHO_N "(cached) $ECHO_C" >&6
20012 else
20013   ac_check_lib_save_LIBS=$LIBS
20014 LIBS="-ldl  $LIBS"
20015 cat >conftest.$ac_ext <<_ACEOF
20016 /* confdefs.h.  */
20017 _ACEOF
20018 cat confdefs.h >>conftest.$ac_ext
20019 cat >>conftest.$ac_ext <<_ACEOF
20020 /* end confdefs.h.  */
20021
20022 /* Override any gcc2 internal prototype to avoid an error.  */
20023 #ifdef __cplusplus
20024 extern "C"
20025 #endif
20026 /* We use char because int might match the return type of a gcc2
20027    builtin and then its argument prototype would still apply.  */
20028 char dlopen ();
20029 int
20030 main ()
20031 {
20032 dlopen ();
20033   ;
20034   return 0;
20035 }
20036 _ACEOF
20037 rm -f conftest.$ac_objext conftest$ac_exeext
20038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20039   (eval $ac_link) 2>conftest.er1
20040   ac_status=$?
20041   grep -v '^ *+' conftest.er1 >conftest.err
20042   rm -f conftest.er1
20043   cat conftest.err >&5
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); } &&
20046          { ac_try='test -z "$ac_c_werror_flag"
20047                          || test ! -s conftest.err'
20048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049   (eval $ac_try) 2>&5
20050   ac_status=$?
20051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); }; } &&
20053          { ac_try='test -s conftest$ac_exeext'
20054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055   (eval $ac_try) 2>&5
20056   ac_status=$?
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); }; }; then
20059   ac_cv_lib_dl_dlopen=yes
20060 else
20061   echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20063
20064 ac_cv_lib_dl_dlopen=no
20065 fi
20066 rm -f conftest.err conftest.$ac_objext \
20067       conftest$ac_exeext conftest.$ac_ext
20068 LIBS=$ac_check_lib_save_LIBS
20069 fi
20070 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20071 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20072 if test $ac_cv_lib_dl_dlopen = yes; then
20073   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20074 else
20075
20076     lt_cv_dlopen="dyld"
20077     lt_cv_dlopen_libs=
20078     lt_cv_dlopen_self=yes
20079
20080 fi
20081
20082    ;;
20083
20084   *)
20085     echo "$as_me:$LINENO: checking for shl_load" >&5
20086 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20087 if test "${ac_cv_func_shl_load+set}" = set; then
20088   echo $ECHO_N "(cached) $ECHO_C" >&6
20089 else
20090   cat >conftest.$ac_ext <<_ACEOF
20091 /* confdefs.h.  */
20092 _ACEOF
20093 cat confdefs.h >>conftest.$ac_ext
20094 cat >>conftest.$ac_ext <<_ACEOF
20095 /* end confdefs.h.  */
20096 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20098 #define shl_load innocuous_shl_load
20099
20100 /* System header to define __stub macros and hopefully few prototypes,
20101     which can conflict with char shl_load (); below.
20102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20103     <limits.h> exists even on freestanding compilers.  */
20104
20105 #ifdef __STDC__
20106 # include <limits.h>
20107 #else
20108 # include <assert.h>
20109 #endif
20110
20111 #undef shl_load
20112
20113 /* Override any gcc2 internal prototype to avoid an error.  */
20114 #ifdef __cplusplus
20115 extern "C"
20116 {
20117 #endif
20118 /* We use char because int might match the return type of a gcc2
20119    builtin and then its argument prototype would still apply.  */
20120 char shl_load ();
20121 /* The GNU C library defines this for functions which it implements
20122     to always fail with ENOSYS.  Some functions are actually named
20123     something starting with __ and the normal name is an alias.  */
20124 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20125 choke me
20126 #else
20127 char (*f) () = shl_load;
20128 #endif
20129 #ifdef __cplusplus
20130 }
20131 #endif
20132
20133 int
20134 main ()
20135 {
20136 return f != shl_load;
20137   ;
20138   return 0;
20139 }
20140 _ACEOF
20141 rm -f conftest.$ac_objext conftest$ac_exeext
20142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20143   (eval $ac_link) 2>conftest.er1
20144   ac_status=$?
20145   grep -v '^ *+' conftest.er1 >conftest.err
20146   rm -f conftest.er1
20147   cat conftest.err >&5
20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); } &&
20150          { ac_try='test -z "$ac_c_werror_flag"
20151                          || test ! -s conftest.err'
20152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153   (eval $ac_try) 2>&5
20154   ac_status=$?
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); }; } &&
20157          { ac_try='test -s conftest$ac_exeext'
20158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159   (eval $ac_try) 2>&5
20160   ac_status=$?
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); }; }; then
20163   ac_cv_func_shl_load=yes
20164 else
20165   echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20167
20168 ac_cv_func_shl_load=no
20169 fi
20170 rm -f conftest.err conftest.$ac_objext \
20171       conftest$ac_exeext conftest.$ac_ext
20172 fi
20173 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20174 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20175 if test $ac_cv_func_shl_load = yes; then
20176   lt_cv_dlopen="shl_load"
20177 else
20178   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20179 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20180 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20181   echo $ECHO_N "(cached) $ECHO_C" >&6
20182 else
20183   ac_check_lib_save_LIBS=$LIBS
20184 LIBS="-ldld  $LIBS"
20185 cat >conftest.$ac_ext <<_ACEOF
20186 /* confdefs.h.  */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h.  */
20191
20192 /* Override any gcc2 internal prototype to avoid an error.  */
20193 #ifdef __cplusplus
20194 extern "C"
20195 #endif
20196 /* We use char because int might match the return type of a gcc2
20197    builtin and then its argument prototype would still apply.  */
20198 char shl_load ();
20199 int
20200 main ()
20201 {
20202 shl_load ();
20203   ;
20204   return 0;
20205 }
20206 _ACEOF
20207 rm -f conftest.$ac_objext conftest$ac_exeext
20208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20209   (eval $ac_link) 2>conftest.er1
20210   ac_status=$?
20211   grep -v '^ *+' conftest.er1 >conftest.err
20212   rm -f conftest.er1
20213   cat conftest.err >&5
20214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); } &&
20216          { ac_try='test -z "$ac_c_werror_flag"
20217                          || test ! -s conftest.err'
20218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219   (eval $ac_try) 2>&5
20220   ac_status=$?
20221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222   (exit $ac_status); }; } &&
20223          { ac_try='test -s conftest$ac_exeext'
20224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225   (eval $ac_try) 2>&5
20226   ac_status=$?
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); }; }; then
20229   ac_cv_lib_dld_shl_load=yes
20230 else
20231   echo "$as_me: failed program was:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20233
20234 ac_cv_lib_dld_shl_load=no
20235 fi
20236 rm -f conftest.err conftest.$ac_objext \
20237       conftest$ac_exeext conftest.$ac_ext
20238 LIBS=$ac_check_lib_save_LIBS
20239 fi
20240 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20241 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20242 if test $ac_cv_lib_dld_shl_load = yes; then
20243   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20244 else
20245   echo "$as_me:$LINENO: checking for dlopen" >&5
20246 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20247 if test "${ac_cv_func_dlopen+set}" = set; then
20248   echo $ECHO_N "(cached) $ECHO_C" >&6
20249 else
20250   cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h.  */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h.  */
20256 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20258 #define dlopen innocuous_dlopen
20259
20260 /* System header to define __stub macros and hopefully few prototypes,
20261     which can conflict with char dlopen (); below.
20262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20263     <limits.h> exists even on freestanding compilers.  */
20264
20265 #ifdef __STDC__
20266 # include <limits.h>
20267 #else
20268 # include <assert.h>
20269 #endif
20270
20271 #undef dlopen
20272
20273 /* Override any gcc2 internal prototype to avoid an error.  */
20274 #ifdef __cplusplus
20275 extern "C"
20276 {
20277 #endif
20278 /* We use char because int might match the return type of a gcc2
20279    builtin and then its argument prototype would still apply.  */
20280 char dlopen ();
20281 /* The GNU C library defines this for functions which it implements
20282     to always fail with ENOSYS.  Some functions are actually named
20283     something starting with __ and the normal name is an alias.  */
20284 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20285 choke me
20286 #else
20287 char (*f) () = dlopen;
20288 #endif
20289 #ifdef __cplusplus
20290 }
20291 #endif
20292
20293 int
20294 main ()
20295 {
20296 return f != dlopen;
20297   ;
20298   return 0;
20299 }
20300 _ACEOF
20301 rm -f conftest.$ac_objext conftest$ac_exeext
20302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20303   (eval $ac_link) 2>conftest.er1
20304   ac_status=$?
20305   grep -v '^ *+' conftest.er1 >conftest.err
20306   rm -f conftest.er1
20307   cat conftest.err >&5
20308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309   (exit $ac_status); } &&
20310          { ac_try='test -z "$ac_c_werror_flag"
20311                          || test ! -s conftest.err'
20312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313   (eval $ac_try) 2>&5
20314   ac_status=$?
20315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316   (exit $ac_status); }; } &&
20317          { ac_try='test -s conftest$ac_exeext'
20318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319   (eval $ac_try) 2>&5
20320   ac_status=$?
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); }; }; then
20323   ac_cv_func_dlopen=yes
20324 else
20325   echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20327
20328 ac_cv_func_dlopen=no
20329 fi
20330 rm -f conftest.err conftest.$ac_objext \
20331       conftest$ac_exeext conftest.$ac_ext
20332 fi
20333 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20334 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20335 if test $ac_cv_func_dlopen = yes; then
20336   lt_cv_dlopen="dlopen"
20337 else
20338   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20339 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20340 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20341   echo $ECHO_N "(cached) $ECHO_C" >&6
20342 else
20343   ac_check_lib_save_LIBS=$LIBS
20344 LIBS="-ldl  $LIBS"
20345 cat >conftest.$ac_ext <<_ACEOF
20346 /* confdefs.h.  */
20347 _ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h.  */
20351
20352 /* Override any gcc2 internal prototype to avoid an error.  */
20353 #ifdef __cplusplus
20354 extern "C"
20355 #endif
20356 /* We use char because int might match the return type of a gcc2
20357    builtin and then its argument prototype would still apply.  */
20358 char dlopen ();
20359 int
20360 main ()
20361 {
20362 dlopen ();
20363   ;
20364   return 0;
20365 }
20366 _ACEOF
20367 rm -f conftest.$ac_objext conftest$ac_exeext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369   (eval $ac_link) 2>conftest.er1
20370   ac_status=$?
20371   grep -v '^ *+' conftest.er1 >conftest.err
20372   rm -f conftest.er1
20373   cat conftest.err >&5
20374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375   (exit $ac_status); } &&
20376          { ac_try='test -z "$ac_c_werror_flag"
20377                          || test ! -s conftest.err'
20378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379   (eval $ac_try) 2>&5
20380   ac_status=$?
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); }; } &&
20383          { ac_try='test -s conftest$ac_exeext'
20384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385   (eval $ac_try) 2>&5
20386   ac_status=$?
20387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388   (exit $ac_status); }; }; then
20389   ac_cv_lib_dl_dlopen=yes
20390 else
20391   echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20393
20394 ac_cv_lib_dl_dlopen=no
20395 fi
20396 rm -f conftest.err conftest.$ac_objext \
20397       conftest$ac_exeext conftest.$ac_ext
20398 LIBS=$ac_check_lib_save_LIBS
20399 fi
20400 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20401 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20402 if test $ac_cv_lib_dl_dlopen = yes; then
20403   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20404 else
20405   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20406 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20407 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20408   echo $ECHO_N "(cached) $ECHO_C" >&6
20409 else
20410   ac_check_lib_save_LIBS=$LIBS
20411 LIBS="-lsvld  $LIBS"
20412 cat >conftest.$ac_ext <<_ACEOF
20413 /* confdefs.h.  */
20414 _ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h.  */
20418
20419 /* Override any gcc2 internal prototype to avoid an error.  */
20420 #ifdef __cplusplus
20421 extern "C"
20422 #endif
20423 /* We use char because int might match the return type of a gcc2
20424    builtin and then its argument prototype would still apply.  */
20425 char dlopen ();
20426 int
20427 main ()
20428 {
20429 dlopen ();
20430   ;
20431   return 0;
20432 }
20433 _ACEOF
20434 rm -f conftest.$ac_objext conftest$ac_exeext
20435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20436   (eval $ac_link) 2>conftest.er1
20437   ac_status=$?
20438   grep -v '^ *+' conftest.er1 >conftest.err
20439   rm -f conftest.er1
20440   cat conftest.err >&5
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); } &&
20443          { ac_try='test -z "$ac_c_werror_flag"
20444                          || test ! -s conftest.err'
20445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446   (eval $ac_try) 2>&5
20447   ac_status=$?
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); }; } &&
20450          { ac_try='test -s conftest$ac_exeext'
20451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452   (eval $ac_try) 2>&5
20453   ac_status=$?
20454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455   (exit $ac_status); }; }; then
20456   ac_cv_lib_svld_dlopen=yes
20457 else
20458   echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20460
20461 ac_cv_lib_svld_dlopen=no
20462 fi
20463 rm -f conftest.err conftest.$ac_objext \
20464       conftest$ac_exeext conftest.$ac_ext
20465 LIBS=$ac_check_lib_save_LIBS
20466 fi
20467 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20468 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20469 if test $ac_cv_lib_svld_dlopen = yes; then
20470   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20471 else
20472   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20473 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20474 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20475   echo $ECHO_N "(cached) $ECHO_C" >&6
20476 else
20477   ac_check_lib_save_LIBS=$LIBS
20478 LIBS="-ldld  $LIBS"
20479 cat >conftest.$ac_ext <<_ACEOF
20480 /* confdefs.h.  */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h.  */
20485
20486 /* Override any gcc2 internal prototype to avoid an error.  */
20487 #ifdef __cplusplus
20488 extern "C"
20489 #endif
20490 /* We use char because int might match the return type of a gcc2
20491    builtin and then its argument prototype would still apply.  */
20492 char dld_link ();
20493 int
20494 main ()
20495 {
20496 dld_link ();
20497   ;
20498   return 0;
20499 }
20500 _ACEOF
20501 rm -f conftest.$ac_objext conftest$ac_exeext
20502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20503   (eval $ac_link) 2>conftest.er1
20504   ac_status=$?
20505   grep -v '^ *+' conftest.er1 >conftest.err
20506   rm -f conftest.er1
20507   cat conftest.err >&5
20508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509   (exit $ac_status); } &&
20510          { ac_try='test -z "$ac_c_werror_flag"
20511                          || test ! -s conftest.err'
20512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513   (eval $ac_try) 2>&5
20514   ac_status=$?
20515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); }; } &&
20517          { ac_try='test -s conftest$ac_exeext'
20518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519   (eval $ac_try) 2>&5
20520   ac_status=$?
20521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522   (exit $ac_status); }; }; then
20523   ac_cv_lib_dld_dld_link=yes
20524 else
20525   echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20527
20528 ac_cv_lib_dld_dld_link=no
20529 fi
20530 rm -f conftest.err conftest.$ac_objext \
20531       conftest$ac_exeext conftest.$ac_ext
20532 LIBS=$ac_check_lib_save_LIBS
20533 fi
20534 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20535 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20536 if test $ac_cv_lib_dld_dld_link = yes; then
20537   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20538 fi
20539
20540
20541 fi
20542
20543
20544 fi
20545
20546
20547 fi
20548
20549
20550 fi
20551
20552
20553 fi
20554
20555     ;;
20556   esac
20557
20558   if test "x$lt_cv_dlopen" != xno; then
20559     enable_dlopen=yes
20560   else
20561     enable_dlopen=no
20562   fi
20563
20564   case $lt_cv_dlopen in
20565   dlopen)
20566     save_CPPFLAGS="$CPPFLAGS"
20567     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20568
20569     save_LDFLAGS="$LDFLAGS"
20570     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20571
20572     save_LIBS="$LIBS"
20573     LIBS="$lt_cv_dlopen_libs $LIBS"
20574
20575     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20576 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20577 if test "${lt_cv_dlopen_self+set}" = set; then
20578   echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580           if test "$cross_compiling" = yes; then :
20581   lt_cv_dlopen_self=cross
20582 else
20583   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20584   lt_status=$lt_dlunknown
20585   cat > conftest.$ac_ext <<EOF
20586 #line 20586 "configure"
20587 #include "confdefs.h"
20588
20589 #if HAVE_DLFCN_H
20590 #include <dlfcn.h>
20591 #endif
20592
20593 #include <stdio.h>
20594
20595 #ifdef RTLD_GLOBAL
20596 #  define LT_DLGLOBAL           RTLD_GLOBAL
20597 #else
20598 #  ifdef DL_GLOBAL
20599 #    define LT_DLGLOBAL         DL_GLOBAL
20600 #  else
20601 #    define LT_DLGLOBAL         0
20602 #  endif
20603 #endif
20604
20605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20606    find out it does not work in some platform. */
20607 #ifndef LT_DLLAZY_OR_NOW
20608 #  ifdef RTLD_LAZY
20609 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20610 #  else
20611 #    ifdef DL_LAZY
20612 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20613 #    else
20614 #      ifdef RTLD_NOW
20615 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20616 #      else
20617 #        ifdef DL_NOW
20618 #          define LT_DLLAZY_OR_NOW      DL_NOW
20619 #        else
20620 #          define LT_DLLAZY_OR_NOW      0
20621 #        endif
20622 #      endif
20623 #    endif
20624 #  endif
20625 #endif
20626
20627 #ifdef __cplusplus
20628 extern "C" void exit (int);
20629 #endif
20630
20631 void fnord() { int i=42;}
20632 int main ()
20633 {
20634   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20635   int status = $lt_dlunknown;
20636
20637   if (self)
20638     {
20639       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20640       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20641       /* dlclose (self); */
20642     }
20643
20644     exit (status);
20645 }
20646 EOF
20647   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20648   (eval $ac_link) 2>&5
20649   ac_status=$?
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20652     (./conftest; exit; ) 2>/dev/null
20653     lt_status=$?
20654     case x$lt_status in
20655       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20656       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20657       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20658     esac
20659   else :
20660     # compilation failed
20661     lt_cv_dlopen_self=no
20662   fi
20663 fi
20664 rm -fr conftest*
20665
20666
20667 fi
20668 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20669 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20670
20671     if test "x$lt_cv_dlopen_self" = xyes; then
20672       LDFLAGS="$LDFLAGS $link_static_flag"
20673       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20674 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20675 if test "${lt_cv_dlopen_self_static+set}" = set; then
20676   echo $ECHO_N "(cached) $ECHO_C" >&6
20677 else
20678           if test "$cross_compiling" = yes; then :
20679   lt_cv_dlopen_self_static=cross
20680 else
20681   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20682   lt_status=$lt_dlunknown
20683   cat > conftest.$ac_ext <<EOF
20684 #line 20684 "configure"
20685 #include "confdefs.h"
20686
20687 #if HAVE_DLFCN_H
20688 #include <dlfcn.h>
20689 #endif
20690
20691 #include <stdio.h>
20692
20693 #ifdef RTLD_GLOBAL
20694 #  define LT_DLGLOBAL           RTLD_GLOBAL
20695 #else
20696 #  ifdef DL_GLOBAL
20697 #    define LT_DLGLOBAL         DL_GLOBAL
20698 #  else
20699 #    define LT_DLGLOBAL         0
20700 #  endif
20701 #endif
20702
20703 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20704    find out it does not work in some platform. */
20705 #ifndef LT_DLLAZY_OR_NOW
20706 #  ifdef RTLD_LAZY
20707 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20708 #  else
20709 #    ifdef DL_LAZY
20710 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20711 #    else
20712 #      ifdef RTLD_NOW
20713 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20714 #      else
20715 #        ifdef DL_NOW
20716 #          define LT_DLLAZY_OR_NOW      DL_NOW
20717 #        else
20718 #          define LT_DLLAZY_OR_NOW      0
20719 #        endif
20720 #      endif
20721 #    endif
20722 #  endif
20723 #endif
20724
20725 #ifdef __cplusplus
20726 extern "C" void exit (int);
20727 #endif
20728
20729 void fnord() { int i=42;}
20730 int main ()
20731 {
20732   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20733   int status = $lt_dlunknown;
20734
20735   if (self)
20736     {
20737       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20738       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20739       /* dlclose (self); */
20740     }
20741
20742     exit (status);
20743 }
20744 EOF
20745   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20746   (eval $ac_link) 2>&5
20747   ac_status=$?
20748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20750     (./conftest; exit; ) 2>/dev/null
20751     lt_status=$?
20752     case x$lt_status in
20753       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20754       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20755       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20756     esac
20757   else :
20758     # compilation failed
20759     lt_cv_dlopen_self_static=no
20760   fi
20761 fi
20762 rm -fr conftest*
20763
20764
20765 fi
20766 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20767 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20768     fi
20769
20770     CPPFLAGS="$save_CPPFLAGS"
20771     LDFLAGS="$save_LDFLAGS"
20772     LIBS="$save_LIBS"
20773     ;;
20774   esac
20775
20776   case $lt_cv_dlopen_self in
20777   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20778   *) enable_dlopen_self=unknown ;;
20779   esac
20780
20781   case $lt_cv_dlopen_self_static in
20782   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20783   *) enable_dlopen_self_static=unknown ;;
20784   esac
20785 fi
20786
20787
20788 # The else clause should only fire when bootstrapping the
20789 # libtool distribution, otherwise you forgot to ship ltmain.sh
20790 # with your package, and you will get complaints that there are
20791 # no rules to generate ltmain.sh.
20792 if test -f "$ltmain"; then
20793   # See if we are running on zsh, and set the options which allow our commands through
20794   # without removal of \ escapes.
20795   if test -n "${ZSH_VERSION+set}" ; then
20796     setopt NO_GLOB_SUBST
20797   fi
20798   # Now quote all the things that may contain metacharacters while being
20799   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20800   # variables and quote the copies for generation of the libtool script.
20801   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20802     SED SHELL STRIP \
20803     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20804     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20805     deplibs_check_method reload_flag reload_cmds need_locks \
20806     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20807     lt_cv_sys_global_symbol_to_c_name_address \
20808     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20809     old_postinstall_cmds old_postuninstall_cmds \
20810     compiler_GCJ \
20811     CC_GCJ \
20812     LD_GCJ \
20813     lt_prog_compiler_wl_GCJ \
20814     lt_prog_compiler_pic_GCJ \
20815     lt_prog_compiler_static_GCJ \
20816     lt_prog_compiler_no_builtin_flag_GCJ \
20817     export_dynamic_flag_spec_GCJ \
20818     thread_safe_flag_spec_GCJ \
20819     whole_archive_flag_spec_GCJ \
20820     enable_shared_with_static_runtimes_GCJ \
20821     old_archive_cmds_GCJ \
20822     old_archive_from_new_cmds_GCJ \
20823     predep_objects_GCJ \
20824     postdep_objects_GCJ \
20825     predeps_GCJ \
20826     postdeps_GCJ \
20827     compiler_lib_search_path_GCJ \
20828     archive_cmds_GCJ \
20829     archive_expsym_cmds_GCJ \
20830     postinstall_cmds_GCJ \
20831     postuninstall_cmds_GCJ \
20832     old_archive_from_expsyms_cmds_GCJ \
20833     allow_undefined_flag_GCJ \
20834     no_undefined_flag_GCJ \
20835     export_symbols_cmds_GCJ \
20836     hardcode_libdir_flag_spec_GCJ \
20837     hardcode_libdir_flag_spec_ld_GCJ \
20838     hardcode_libdir_separator_GCJ \
20839     hardcode_automatic_GCJ \
20840     module_cmds_GCJ \
20841     module_expsym_cmds_GCJ \
20842     lt_cv_prog_compiler_c_o_GCJ \
20843     exclude_expsyms_GCJ \
20844     include_expsyms_GCJ; do
20845
20846     case $var in
20847     old_archive_cmds_GCJ | \
20848     old_archive_from_new_cmds_GCJ | \
20849     archive_cmds_GCJ | \
20850     archive_expsym_cmds_GCJ | \
20851     module_cmds_GCJ | \
20852     module_expsym_cmds_GCJ | \
20853     old_archive_from_expsyms_cmds_GCJ | \
20854     export_symbols_cmds_GCJ | \
20855     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20856     postinstall_cmds | postuninstall_cmds | \
20857     old_postinstall_cmds | old_postuninstall_cmds | \
20858     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20859       # Double-quote double-evaled strings.
20860       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20861       ;;
20862     *)
20863       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20864       ;;
20865     esac
20866   done
20867
20868   case $lt_echo in
20869   *'\$0 --fallback-echo"')
20870     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20871     ;;
20872   esac
20873
20874 cfgfile="$ofile"
20875
20876   cat <<__EOF__ >> "$cfgfile"
20877 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20878
20879 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20880
20881 # Shell to use when invoking shell scripts.
20882 SHELL=$lt_SHELL
20883
20884 # Whether or not to build shared libraries.
20885 build_libtool_libs=$enable_shared
20886
20887 # Whether or not to build static libraries.
20888 build_old_libs=$enable_static
20889
20890 # Whether or not to add -lc for building shared libraries.
20891 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20892
20893 # Whether or not to disallow shared libs when runtime libs are static
20894 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20895
20896 # Whether or not to optimize for fast installation.
20897 fast_install=$enable_fast_install
20898
20899 # The host system.
20900 host_alias=$host_alias
20901 host=$host
20902 host_os=$host_os
20903
20904 # The build system.
20905 build_alias=$build_alias
20906 build=$build
20907 build_os=$build_os
20908
20909 # An echo program that does not interpret backslashes.
20910 echo=$lt_echo
20911
20912 # The archiver.
20913 AR=$lt_AR
20914 AR_FLAGS=$lt_AR_FLAGS
20915
20916 # A C compiler.
20917 LTCC=$lt_LTCC
20918
20919 # A language-specific compiler.
20920 CC=$lt_compiler_GCJ
20921
20922 # Is the compiler the GNU C compiler?
20923 with_gcc=$GCC_GCJ
20924
20925 # An ERE matcher.
20926 EGREP=$lt_EGREP
20927
20928 # The linker used to build libraries.
20929 LD=$lt_LD_GCJ
20930
20931 # Whether we need hard or soft links.
20932 LN_S=$lt_LN_S
20933
20934 # A BSD-compatible nm program.
20935 NM=$lt_NM
20936
20937 # A symbol stripping program
20938 STRIP=$lt_STRIP
20939
20940 # Used to examine libraries when file_magic_cmd begins "file"
20941 MAGIC_CMD=$MAGIC_CMD
20942
20943 # Used on cygwin: DLL creation program.
20944 DLLTOOL="$DLLTOOL"
20945
20946 # Used on cygwin: object dumper.
20947 OBJDUMP="$OBJDUMP"
20948
20949 # Used on cygwin: assembler.
20950 AS="$AS"
20951
20952 # The name of the directory that contains temporary libtool files.
20953 objdir=$objdir
20954
20955 # How to create reloadable object files.
20956 reload_flag=$lt_reload_flag
20957 reload_cmds=$lt_reload_cmds
20958
20959 # How to pass a linker flag through the compiler.
20960 wl=$lt_lt_prog_compiler_wl_GCJ
20961
20962 # Object file suffix (normally "o").
20963 objext="$ac_objext"
20964
20965 # Old archive suffix (normally "a").
20966 libext="$libext"
20967
20968 # Shared library suffix (normally ".so").
20969 shrext_cmds='$shrext_cmds'
20970
20971 # Executable file suffix (normally "").
20972 exeext="$exeext"
20973
20974 # Additional compiler flags for building library objects.
20975 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20976 pic_mode=$pic_mode
20977
20978 # What is the maximum length of a command?
20979 max_cmd_len=$lt_cv_sys_max_cmd_len
20980
20981 # Does compiler simultaneously support -c and -o options?
20982 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20983
20984 # Must we lock files when doing compilation?
20985 need_locks=$lt_need_locks
20986
20987 # Do we need the lib prefix for modules?
20988 need_lib_prefix=$need_lib_prefix
20989
20990 # Do we need a version for libraries?
20991 need_version=$need_version
20992
20993 # Whether dlopen is supported.
20994 dlopen_support=$enable_dlopen
20995
20996 # Whether dlopen of programs is supported.
20997 dlopen_self=$enable_dlopen_self
20998
20999 # Whether dlopen of statically linked programs is supported.
21000 dlopen_self_static=$enable_dlopen_self_static
21001
21002 # Compiler flag to prevent dynamic linking.
21003 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21004
21005 # Compiler flag to turn off builtin functions.
21006 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21007
21008 # Compiler flag to allow reflexive dlopens.
21009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21010
21011 # Compiler flag to generate shared objects directly from archives.
21012 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21013
21014 # Compiler flag to generate thread-safe objects.
21015 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21016
21017 # Library versioning type.
21018 version_type=$version_type
21019
21020 # Format of library name prefix.
21021 libname_spec=$lt_libname_spec
21022
21023 # List of archive names.  First name is the real one, the rest are links.
21024 # The last name is the one that the linker finds with -lNAME.
21025 library_names_spec=$lt_library_names_spec
21026
21027 # The coded name of the library, if different from the real name.
21028 soname_spec=$lt_soname_spec
21029
21030 # Commands used to build and install an old-style archive.
21031 RANLIB=$lt_RANLIB
21032 old_archive_cmds=$lt_old_archive_cmds_GCJ
21033 old_postinstall_cmds=$lt_old_postinstall_cmds
21034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21035
21036 # Create an old-style archive from a shared archive.
21037 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21038
21039 # Create a temporary old-style archive to link instead of a shared archive.
21040 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21041
21042 # Commands used to build and install a shared archive.
21043 archive_cmds=$lt_archive_cmds_GCJ
21044 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21045 postinstall_cmds=$lt_postinstall_cmds
21046 postuninstall_cmds=$lt_postuninstall_cmds
21047
21048 # Commands used to build a loadable module (assumed same as above if empty)
21049 module_cmds=$lt_module_cmds_GCJ
21050 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21051
21052 # Commands to strip libraries.
21053 old_striplib=$lt_old_striplib
21054 striplib=$lt_striplib
21055
21056 # Dependencies to place before the objects being linked to create a
21057 # shared library.
21058 predep_objects=$lt_predep_objects_GCJ
21059
21060 # Dependencies to place after the objects being linked to create a
21061 # shared library.
21062 postdep_objects=$lt_postdep_objects_GCJ
21063
21064 # Dependencies to place before the objects being linked to create a
21065 # shared library.
21066 predeps=$lt_predeps_GCJ
21067
21068 # Dependencies to place after the objects being linked to create a
21069 # shared library.
21070 postdeps=$lt_postdeps_GCJ
21071
21072 # The library search path used internally by the compiler when linking
21073 # a shared library.
21074 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21075
21076 # Method to check whether dependent libraries are shared objects.
21077 deplibs_check_method=$lt_deplibs_check_method
21078
21079 # Command to use when deplibs_check_method == file_magic.
21080 file_magic_cmd=$lt_file_magic_cmd
21081
21082 # Flag that allows shared libraries with undefined symbols to be built.
21083 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21084
21085 # Flag that forces no undefined symbols.
21086 no_undefined_flag=$lt_no_undefined_flag_GCJ
21087
21088 # Commands used to finish a libtool library installation in a directory.
21089 finish_cmds=$lt_finish_cmds
21090
21091 # Same as above, but a single script fragment to be evaled but not shown.
21092 finish_eval=$lt_finish_eval
21093
21094 # Take the output of nm and produce a listing of raw symbols and C names.
21095 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21096
21097 # Transform the output of nm in a proper C declaration
21098 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21099
21100 # Transform the output of nm in a C name address pair
21101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21102
21103 # This is the shared library runtime path variable.
21104 runpath_var=$runpath_var
21105
21106 # This is the shared library path variable.
21107 shlibpath_var=$shlibpath_var
21108
21109 # Is shlibpath searched before the hard-coded library search path?
21110 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21111
21112 # How to hardcode a shared library path into an executable.
21113 hardcode_action=$hardcode_action_GCJ
21114
21115 # Whether we should hardcode library paths into libraries.
21116 hardcode_into_libs=$hardcode_into_libs
21117
21118 # Flag to hardcode \$libdir into a binary during linking.
21119 # This must work even if \$libdir does not exist.
21120 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21121
21122 # If ld is used when linking, flag to hardcode \$libdir into
21123 # a binary during linking. This must work even if \$libdir does
21124 # not exist.
21125 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21126
21127 # Whether we need a single -rpath flag with a separated argument.
21128 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21129
21130 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21131 # resulting binary.
21132 hardcode_direct=$hardcode_direct_GCJ
21133
21134 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21135 # resulting binary.
21136 hardcode_minus_L=$hardcode_minus_L_GCJ
21137
21138 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21139 # the resulting binary.
21140 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21141
21142 # Set to yes if building a shared library automatically hardcodes DIR into the library
21143 # and all subsequent libraries and executables linked against it.
21144 hardcode_automatic=$hardcode_automatic_GCJ
21145
21146 # Variables whose values should be saved in libtool wrapper scripts and
21147 # restored at relink time.
21148 variables_saved_for_relink="$variables_saved_for_relink"
21149
21150 # Whether libtool must link a program against all its dependency libraries.
21151 link_all_deplibs=$link_all_deplibs_GCJ
21152
21153 # Compile-time system search path for libraries
21154 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21155
21156 # Run-time system search path for libraries
21157 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21158
21159 # Fix the shell variable \$srcfile for the compiler.
21160 fix_srcfile_path="$fix_srcfile_path_GCJ"
21161
21162 # Set to yes if exported symbols are required.
21163 always_export_symbols=$always_export_symbols_GCJ
21164
21165 # The commands to list exported symbols.
21166 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21167
21168 # The commands to extract the exported symbol list from a shared archive.
21169 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21170
21171 # Symbols that should not be listed in the preloaded symbols.
21172 exclude_expsyms=$lt_exclude_expsyms_GCJ
21173
21174 # Symbols that must always be exported.
21175 include_expsyms=$lt_include_expsyms_GCJ
21176
21177 # ### END LIBTOOL TAG CONFIG: $tagname
21178
21179 __EOF__
21180
21181
21182 else
21183   # If there is no Makefile yet, we rely on a make rule to execute
21184   # `config.status --recheck' to rerun these tests and create the
21185   # libtool script then.
21186   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21187   if test -f "$ltmain_in"; then
21188     test -f Makefile && make "$ltmain"
21189   fi
21190 fi
21191
21192
21193 ac_ext=c
21194 ac_cpp='$CPP $CPPFLAGS'
21195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21198
21199 CC="$lt_save_CC"
21200
21201         else
21202           tagname=""
21203         fi
21204         ;;
21205
21206       RC)
21207
21208
21209
21210 # Source file extension for RC test sources.
21211 ac_ext=rc
21212
21213 # Object file extension for compiled RC test sources.
21214 objext=o
21215 objext_RC=$objext
21216
21217 # Code to be used in simple compile tests
21218 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21219
21220 # Code to be used in simple link tests
21221 lt_simple_link_test_code="$lt_simple_compile_test_code"
21222
21223 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21224
21225 # If no C compiler was specified, use CC.
21226 LTCC=${LTCC-"$CC"}
21227
21228 # Allow CC to be a program name with arguments.
21229 compiler=$CC
21230
21231
21232 # save warnings/boilerplate of simple test code
21233 ac_outfile=conftest.$ac_objext
21234 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21235 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21236 _lt_compiler_boilerplate=`cat conftest.err`
21237 $rm conftest*
21238
21239 ac_outfile=conftest.$ac_objext
21240 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21241 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21242 _lt_linker_boilerplate=`cat conftest.err`
21243 $rm conftest*
21244
21245
21246 # Allow CC to be a program name with arguments.
21247 lt_save_CC="$CC"
21248 CC=${RC-"windres"}
21249 compiler=$CC
21250 compiler_RC=$CC
21251 for cc_temp in $compiler""; do
21252   case $cc_temp in
21253     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21254     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21255     \-*) ;;
21256     *) break;;
21257   esac
21258 done
21259 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21260
21261 lt_cv_prog_compiler_c_o_RC=yes
21262
21263 # The else clause should only fire when bootstrapping the
21264 # libtool distribution, otherwise you forgot to ship ltmain.sh
21265 # with your package, and you will get complaints that there are
21266 # no rules to generate ltmain.sh.
21267 if test -f "$ltmain"; then
21268   # See if we are running on zsh, and set the options which allow our commands through
21269   # without removal of \ escapes.
21270   if test -n "${ZSH_VERSION+set}" ; then
21271     setopt NO_GLOB_SUBST
21272   fi
21273   # Now quote all the things that may contain metacharacters while being
21274   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21275   # variables and quote the copies for generation of the libtool script.
21276   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21277     SED SHELL STRIP \
21278     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21279     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21280     deplibs_check_method reload_flag reload_cmds need_locks \
21281     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21282     lt_cv_sys_global_symbol_to_c_name_address \
21283     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21284     old_postinstall_cmds old_postuninstall_cmds \
21285     compiler_RC \
21286     CC_RC \
21287     LD_RC \
21288     lt_prog_compiler_wl_RC \
21289     lt_prog_compiler_pic_RC \
21290     lt_prog_compiler_static_RC \
21291     lt_prog_compiler_no_builtin_flag_RC \
21292     export_dynamic_flag_spec_RC \
21293     thread_safe_flag_spec_RC \
21294     whole_archive_flag_spec_RC \
21295     enable_shared_with_static_runtimes_RC \
21296     old_archive_cmds_RC \
21297     old_archive_from_new_cmds_RC \
21298     predep_objects_RC \
21299     postdep_objects_RC \
21300     predeps_RC \
21301     postdeps_RC \
21302     compiler_lib_search_path_RC \
21303     archive_cmds_RC \
21304     archive_expsym_cmds_RC \
21305     postinstall_cmds_RC \
21306     postuninstall_cmds_RC \
21307     old_archive_from_expsyms_cmds_RC \
21308     allow_undefined_flag_RC \
21309     no_undefined_flag_RC \
21310     export_symbols_cmds_RC \
21311     hardcode_libdir_flag_spec_RC \
21312     hardcode_libdir_flag_spec_ld_RC \
21313     hardcode_libdir_separator_RC \
21314     hardcode_automatic_RC \
21315     module_cmds_RC \
21316     module_expsym_cmds_RC \
21317     lt_cv_prog_compiler_c_o_RC \
21318     exclude_expsyms_RC \
21319     include_expsyms_RC; do
21320
21321     case $var in
21322     old_archive_cmds_RC | \
21323     old_archive_from_new_cmds_RC | \
21324     archive_cmds_RC | \
21325     archive_expsym_cmds_RC | \
21326     module_cmds_RC | \
21327     module_expsym_cmds_RC | \
21328     old_archive_from_expsyms_cmds_RC | \
21329     export_symbols_cmds_RC | \
21330     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21331     postinstall_cmds | postuninstall_cmds | \
21332     old_postinstall_cmds | old_postuninstall_cmds | \
21333     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21334       # Double-quote double-evaled strings.
21335       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21336       ;;
21337     *)
21338       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21339       ;;
21340     esac
21341   done
21342
21343   case $lt_echo in
21344   *'\$0 --fallback-echo"')
21345     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21346     ;;
21347   esac
21348
21349 cfgfile="$ofile"
21350
21351   cat <<__EOF__ >> "$cfgfile"
21352 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21353
21354 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21355
21356 # Shell to use when invoking shell scripts.
21357 SHELL=$lt_SHELL
21358
21359 # Whether or not to build shared libraries.
21360 build_libtool_libs=$enable_shared
21361
21362 # Whether or not to build static libraries.
21363 build_old_libs=$enable_static
21364
21365 # Whether or not to add -lc for building shared libraries.
21366 build_libtool_need_lc=$archive_cmds_need_lc_RC
21367
21368 # Whether or not to disallow shared libs when runtime libs are static
21369 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21370
21371 # Whether or not to optimize for fast installation.
21372 fast_install=$enable_fast_install
21373
21374 # The host system.
21375 host_alias=$host_alias
21376 host=$host
21377 host_os=$host_os
21378
21379 # The build system.
21380 build_alias=$build_alias
21381 build=$build
21382 build_os=$build_os
21383
21384 # An echo program that does not interpret backslashes.
21385 echo=$lt_echo
21386
21387 # The archiver.
21388 AR=$lt_AR
21389 AR_FLAGS=$lt_AR_FLAGS
21390
21391 # A C compiler.
21392 LTCC=$lt_LTCC
21393
21394 # A language-specific compiler.
21395 CC=$lt_compiler_RC
21396
21397 # Is the compiler the GNU C compiler?
21398 with_gcc=$GCC_RC
21399
21400 # An ERE matcher.
21401 EGREP=$lt_EGREP
21402
21403 # The linker used to build libraries.
21404 LD=$lt_LD_RC
21405
21406 # Whether we need hard or soft links.
21407 LN_S=$lt_LN_S
21408
21409 # A BSD-compatible nm program.
21410 NM=$lt_NM
21411
21412 # A symbol stripping program
21413 STRIP=$lt_STRIP
21414
21415 # Used to examine libraries when file_magic_cmd begins "file"
21416 MAGIC_CMD=$MAGIC_CMD
21417
21418 # Used on cygwin: DLL creation program.
21419 DLLTOOL="$DLLTOOL"
21420
21421 # Used on cygwin: object dumper.
21422 OBJDUMP="$OBJDUMP"
21423
21424 # Used on cygwin: assembler.
21425 AS="$AS"
21426
21427 # The name of the directory that contains temporary libtool files.
21428 objdir=$objdir
21429
21430 # How to create reloadable object files.
21431 reload_flag=$lt_reload_flag
21432 reload_cmds=$lt_reload_cmds
21433
21434 # How to pass a linker flag through the compiler.
21435 wl=$lt_lt_prog_compiler_wl_RC
21436
21437 # Object file suffix (normally "o").
21438 objext="$ac_objext"
21439
21440 # Old archive suffix (normally "a").
21441 libext="$libext"
21442
21443 # Shared library suffix (normally ".so").
21444 shrext_cmds='$shrext_cmds'
21445
21446 # Executable file suffix (normally "").
21447 exeext="$exeext"
21448
21449 # Additional compiler flags for building library objects.
21450 pic_flag=$lt_lt_prog_compiler_pic_RC
21451 pic_mode=$pic_mode
21452
21453 # What is the maximum length of a command?
21454 max_cmd_len=$lt_cv_sys_max_cmd_len
21455
21456 # Does compiler simultaneously support -c and -o options?
21457 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21458
21459 # Must we lock files when doing compilation?
21460 need_locks=$lt_need_locks
21461
21462 # Do we need the lib prefix for modules?
21463 need_lib_prefix=$need_lib_prefix
21464
21465 # Do we need a version for libraries?
21466 need_version=$need_version
21467
21468 # Whether dlopen is supported.
21469 dlopen_support=$enable_dlopen
21470
21471 # Whether dlopen of programs is supported.
21472 dlopen_self=$enable_dlopen_self
21473
21474 # Whether dlopen of statically linked programs is supported.
21475 dlopen_self_static=$enable_dlopen_self_static
21476
21477 # Compiler flag to prevent dynamic linking.
21478 link_static_flag=$lt_lt_prog_compiler_static_RC
21479
21480 # Compiler flag to turn off builtin functions.
21481 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21482
21483 # Compiler flag to allow reflexive dlopens.
21484 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21485
21486 # Compiler flag to generate shared objects directly from archives.
21487 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21488
21489 # Compiler flag to generate thread-safe objects.
21490 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21491
21492 # Library versioning type.
21493 version_type=$version_type
21494
21495 # Format of library name prefix.
21496 libname_spec=$lt_libname_spec
21497
21498 # List of archive names.  First name is the real one, the rest are links.
21499 # The last name is the one that the linker finds with -lNAME.
21500 library_names_spec=$lt_library_names_spec
21501
21502 # The coded name of the library, if different from the real name.
21503 soname_spec=$lt_soname_spec
21504
21505 # Commands used to build and install an old-style archive.
21506 RANLIB=$lt_RANLIB
21507 old_archive_cmds=$lt_old_archive_cmds_RC
21508 old_postinstall_cmds=$lt_old_postinstall_cmds
21509 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21510
21511 # Create an old-style archive from a shared archive.
21512 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21513
21514 # Create a temporary old-style archive to link instead of a shared archive.
21515 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21516
21517 # Commands used to build and install a shared archive.
21518 archive_cmds=$lt_archive_cmds_RC
21519 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21520 postinstall_cmds=$lt_postinstall_cmds
21521 postuninstall_cmds=$lt_postuninstall_cmds
21522
21523 # Commands used to build a loadable module (assumed same as above if empty)
21524 module_cmds=$lt_module_cmds_RC
21525 module_expsym_cmds=$lt_module_expsym_cmds_RC
21526
21527 # Commands to strip libraries.
21528 old_striplib=$lt_old_striplib
21529 striplib=$lt_striplib
21530
21531 # Dependencies to place before the objects being linked to create a
21532 # shared library.
21533 predep_objects=$lt_predep_objects_RC
21534
21535 # Dependencies to place after the objects being linked to create a
21536 # shared library.
21537 postdep_objects=$lt_postdep_objects_RC
21538
21539 # Dependencies to place before the objects being linked to create a
21540 # shared library.
21541 predeps=$lt_predeps_RC
21542
21543 # Dependencies to place after the objects being linked to create a
21544 # shared library.
21545 postdeps=$lt_postdeps_RC
21546
21547 # The library search path used internally by the compiler when linking
21548 # a shared library.
21549 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21550
21551 # Method to check whether dependent libraries are shared objects.
21552 deplibs_check_method=$lt_deplibs_check_method
21553
21554 # Command to use when deplibs_check_method == file_magic.
21555 file_magic_cmd=$lt_file_magic_cmd
21556
21557 # Flag that allows shared libraries with undefined symbols to be built.
21558 allow_undefined_flag=$lt_allow_undefined_flag_RC
21559
21560 # Flag that forces no undefined symbols.
21561 no_undefined_flag=$lt_no_undefined_flag_RC
21562
21563 # Commands used to finish a libtool library installation in a directory.
21564 finish_cmds=$lt_finish_cmds
21565
21566 # Same as above, but a single script fragment to be evaled but not shown.
21567 finish_eval=$lt_finish_eval
21568
21569 # Take the output of nm and produce a listing of raw symbols and C names.
21570 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21571
21572 # Transform the output of nm in a proper C declaration
21573 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21574
21575 # Transform the output of nm in a C name address pair
21576 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21577
21578 # This is the shared library runtime path variable.
21579 runpath_var=$runpath_var
21580
21581 # This is the shared library path variable.
21582 shlibpath_var=$shlibpath_var
21583
21584 # Is shlibpath searched before the hard-coded library search path?
21585 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21586
21587 # How to hardcode a shared library path into an executable.
21588 hardcode_action=$hardcode_action_RC
21589
21590 # Whether we should hardcode library paths into libraries.
21591 hardcode_into_libs=$hardcode_into_libs
21592
21593 # Flag to hardcode \$libdir into a binary during linking.
21594 # This must work even if \$libdir does not exist.
21595 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21596
21597 # If ld is used when linking, flag to hardcode \$libdir into
21598 # a binary during linking. This must work even if \$libdir does
21599 # not exist.
21600 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21601
21602 # Whether we need a single -rpath flag with a separated argument.
21603 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21604
21605 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21606 # resulting binary.
21607 hardcode_direct=$hardcode_direct_RC
21608
21609 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21610 # resulting binary.
21611 hardcode_minus_L=$hardcode_minus_L_RC
21612
21613 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21614 # the resulting binary.
21615 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21616
21617 # Set to yes if building a shared library automatically hardcodes DIR into the library
21618 # and all subsequent libraries and executables linked against it.
21619 hardcode_automatic=$hardcode_automatic_RC
21620
21621 # Variables whose values should be saved in libtool wrapper scripts and
21622 # restored at relink time.
21623 variables_saved_for_relink="$variables_saved_for_relink"
21624
21625 # Whether libtool must link a program against all its dependency libraries.
21626 link_all_deplibs=$link_all_deplibs_RC
21627
21628 # Compile-time system search path for libraries
21629 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21630
21631 # Run-time system search path for libraries
21632 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21633
21634 # Fix the shell variable \$srcfile for the compiler.
21635 fix_srcfile_path="$fix_srcfile_path_RC"
21636
21637 # Set to yes if exported symbols are required.
21638 always_export_symbols=$always_export_symbols_RC
21639
21640 # The commands to list exported symbols.
21641 export_symbols_cmds=$lt_export_symbols_cmds_RC
21642
21643 # The commands to extract the exported symbol list from a shared archive.
21644 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21645
21646 # Symbols that should not be listed in the preloaded symbols.
21647 exclude_expsyms=$lt_exclude_expsyms_RC
21648
21649 # Symbols that must always be exported.
21650 include_expsyms=$lt_include_expsyms_RC
21651
21652 # ### END LIBTOOL TAG CONFIG: $tagname
21653
21654 __EOF__
21655
21656
21657 else
21658   # If there is no Makefile yet, we rely on a make rule to execute
21659   # `config.status --recheck' to rerun these tests and create the
21660   # libtool script then.
21661   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21662   if test -f "$ltmain_in"; then
21663     test -f Makefile && make "$ltmain"
21664   fi
21665 fi
21666
21667
21668 ac_ext=c
21669 ac_cpp='$CPP $CPPFLAGS'
21670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21673
21674 CC="$lt_save_CC"
21675
21676         ;;
21677
21678       *)
21679         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21680 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21681    { (exit 1); exit 1; }; }
21682         ;;
21683       esac
21684
21685       # Append the new tag name to the list of available tags.
21686       if test -n "$tagname" ; then
21687       available_tags="$available_tags $tagname"
21688     fi
21689     fi
21690   done
21691   IFS="$lt_save_ifs"
21692
21693   # Now substitute the updated list of available tags.
21694   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21695     mv "${ofile}T" "$ofile"
21696     chmod +x "$ofile"
21697   else
21698     rm -f "${ofile}T"
21699     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21700 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21701    { (exit 1); exit 1; }; }
21702   fi
21703 fi
21704
21705
21706
21707 # This can be used to rebuild libtool when needed
21708 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21709
21710 # Always use our own libtool.
21711 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21712
21713 # Prevent multiple expansion
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735 ol_link_perl=no
21736 if test $ol_enable_perl != no ; then
21737         # Extract the first word of "perl", so it can be a program name with args.
21738 set dummy perl; ac_word=$2
21739 echo "$as_me:$LINENO: checking for $ac_word" >&5
21740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21741 if test "${ac_cv_path_PERLBIN+set}" = set; then
21742   echo $ECHO_N "(cached) $ECHO_C" >&6
21743 else
21744   case $PERLBIN in
21745   [\\/]* | ?:[\\/]*)
21746   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21747   ;;
21748   *)
21749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21750 for as_dir in $PATH
21751 do
21752   IFS=$as_save_IFS
21753   test -z "$as_dir" && as_dir=.
21754   for ac_exec_ext in '' $ac_executable_extensions; do
21755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21756     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21758     break 2
21759   fi
21760 done
21761 done
21762
21763   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21764   ;;
21765 esac
21766 fi
21767 PERLBIN=$ac_cv_path_PERLBIN
21768
21769 if test -n "$PERLBIN"; then
21770   echo "$as_me:$LINENO: result: $PERLBIN" >&5
21771 echo "${ECHO_T}$PERLBIN" >&6
21772 else
21773   echo "$as_me:$LINENO: result: no" >&5
21774 echo "${ECHO_T}no" >&6
21775 fi
21776
21777
21778         if test "no$PERLBIN" = "no" ; then
21779                 if test $ol_enable_perl = yes ; then
21780                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21781 echo "$as_me: error: could not locate perl" >&2;}
21782    { (exit 1); exit 1; }; }
21783                 fi
21784
21785         else
21786                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21787                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21788
21789                 if test x"$ol_enable_perl" = "xyes" ; then
21790                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21791                 else
21792                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21793                 fi
21794                                 ol_link_perl=yes
21795         fi
21796 fi
21797
21798 ac_ext=c
21799 ac_cpp='$CPP $CPPFLAGS'
21800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21803 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21804 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21805 # On Suns, sometimes $CPP names a directory.
21806 if test -n "$CPP" && test -d "$CPP"; then
21807   CPP=
21808 fi
21809 if test -z "$CPP"; then
21810   if test "${ac_cv_prog_CPP+set}" = set; then
21811   echo $ECHO_N "(cached) $ECHO_C" >&6
21812 else
21813       # Double quotes because CPP needs to be expanded
21814     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21815     do
21816       ac_preproc_ok=false
21817 for ac_c_preproc_warn_flag in '' yes
21818 do
21819   # Use a header file that comes with gcc, so configuring glibc
21820   # with a fresh cross-compiler works.
21821   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21822   # <limits.h> exists even on freestanding compilers.
21823   # On the NeXT, cc -E runs the code through the compiler's parser,
21824   # not just through cpp. "Syntax error" is here to catch this case.
21825   cat >conftest.$ac_ext <<_ACEOF
21826 /* confdefs.h.  */
21827 _ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h.  */
21831 #ifdef __STDC__
21832 # include <limits.h>
21833 #else
21834 # include <assert.h>
21835 #endif
21836                      Syntax error
21837 _ACEOF
21838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21839   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21840   ac_status=$?
21841   grep -v '^ *+' conftest.er1 >conftest.err
21842   rm -f conftest.er1
21843   cat conftest.err >&5
21844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845   (exit $ac_status); } >/dev/null; then
21846   if test -s conftest.err; then
21847     ac_cpp_err=$ac_c_preproc_warn_flag
21848     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21849   else
21850     ac_cpp_err=
21851   fi
21852 else
21853   ac_cpp_err=yes
21854 fi
21855 if test -z "$ac_cpp_err"; then
21856   :
21857 else
21858   echo "$as_me: failed program was:" >&5
21859 sed 's/^/| /' conftest.$ac_ext >&5
21860
21861   # Broken: fails on valid input.
21862 continue
21863 fi
21864 rm -f conftest.err conftest.$ac_ext
21865
21866   # OK, works on sane cases.  Now check whether non-existent headers
21867   # can be detected and how.
21868   cat >conftest.$ac_ext <<_ACEOF
21869 /* confdefs.h.  */
21870 _ACEOF
21871 cat confdefs.h >>conftest.$ac_ext
21872 cat >>conftest.$ac_ext <<_ACEOF
21873 /* end confdefs.h.  */
21874 #include <ac_nonexistent.h>
21875 _ACEOF
21876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21877   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21878   ac_status=$?
21879   grep -v '^ *+' conftest.er1 >conftest.err
21880   rm -f conftest.er1
21881   cat conftest.err >&5
21882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883   (exit $ac_status); } >/dev/null; then
21884   if test -s conftest.err; then
21885     ac_cpp_err=$ac_c_preproc_warn_flag
21886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21887   else
21888     ac_cpp_err=
21889   fi
21890 else
21891   ac_cpp_err=yes
21892 fi
21893 if test -z "$ac_cpp_err"; then
21894   # Broken: success on invalid input.
21895 continue
21896 else
21897   echo "$as_me: failed program was:" >&5
21898 sed 's/^/| /' conftest.$ac_ext >&5
21899
21900   # Passes both tests.
21901 ac_preproc_ok=:
21902 break
21903 fi
21904 rm -f conftest.err conftest.$ac_ext
21905
21906 done
21907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21908 rm -f conftest.err conftest.$ac_ext
21909 if $ac_preproc_ok; then
21910   break
21911 fi
21912
21913     done
21914     ac_cv_prog_CPP=$CPP
21915
21916 fi
21917   CPP=$ac_cv_prog_CPP
21918 else
21919   ac_cv_prog_CPP=$CPP
21920 fi
21921 echo "$as_me:$LINENO: result: $CPP" >&5
21922 echo "${ECHO_T}$CPP" >&6
21923 ac_preproc_ok=false
21924 for ac_c_preproc_warn_flag in '' yes
21925 do
21926   # Use a header file that comes with gcc, so configuring glibc
21927   # with a fresh cross-compiler works.
21928   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21929   # <limits.h> exists even on freestanding compilers.
21930   # On the NeXT, cc -E runs the code through the compiler's parser,
21931   # not just through cpp. "Syntax error" is here to catch this case.
21932   cat >conftest.$ac_ext <<_ACEOF
21933 /* confdefs.h.  */
21934 _ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h.  */
21938 #ifdef __STDC__
21939 # include <limits.h>
21940 #else
21941 # include <assert.h>
21942 #endif
21943                      Syntax error
21944 _ACEOF
21945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21947   ac_status=$?
21948   grep -v '^ *+' conftest.er1 >conftest.err
21949   rm -f conftest.er1
21950   cat conftest.err >&5
21951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952   (exit $ac_status); } >/dev/null; then
21953   if test -s conftest.err; then
21954     ac_cpp_err=$ac_c_preproc_warn_flag
21955     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21956   else
21957     ac_cpp_err=
21958   fi
21959 else
21960   ac_cpp_err=yes
21961 fi
21962 if test -z "$ac_cpp_err"; then
21963   :
21964 else
21965   echo "$as_me: failed program was:" >&5
21966 sed 's/^/| /' conftest.$ac_ext >&5
21967
21968   # Broken: fails on valid input.
21969 continue
21970 fi
21971 rm -f conftest.err conftest.$ac_ext
21972
21973   # OK, works on sane cases.  Now check whether non-existent headers
21974   # can be detected and how.
21975   cat >conftest.$ac_ext <<_ACEOF
21976 /* confdefs.h.  */
21977 _ACEOF
21978 cat confdefs.h >>conftest.$ac_ext
21979 cat >>conftest.$ac_ext <<_ACEOF
21980 /* end confdefs.h.  */
21981 #include <ac_nonexistent.h>
21982 _ACEOF
21983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21985   ac_status=$?
21986   grep -v '^ *+' conftest.er1 >conftest.err
21987   rm -f conftest.er1
21988   cat conftest.err >&5
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); } >/dev/null; then
21991   if test -s conftest.err; then
21992     ac_cpp_err=$ac_c_preproc_warn_flag
21993     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21994   else
21995     ac_cpp_err=
21996   fi
21997 else
21998   ac_cpp_err=yes
21999 fi
22000 if test -z "$ac_cpp_err"; then
22001   # Broken: success on invalid input.
22002 continue
22003 else
22004   echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22006
22007   # Passes both tests.
22008 ac_preproc_ok=:
22009 break
22010 fi
22011 rm -f conftest.err conftest.$ac_ext
22012
22013 done
22014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22015 rm -f conftest.err conftest.$ac_ext
22016 if $ac_preproc_ok; then
22017   :
22018 else
22019   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22020 See \`config.log' for more details." >&5
22021 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22022 See \`config.log' for more details." >&2;}
22023    { (exit 1); exit 1; }; }
22024 fi
22025
22026 ac_ext=c
22027 ac_cpp='$CPP $CPPFLAGS'
22028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22031
22032
22033
22034
22035
22036
22037 cat >>confdefs.h <<_ACEOF
22038 #define EXEEXT "${EXEEXT}"
22039 _ACEOF
22040
22041
22042 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22043 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22044 if test "${ac_cv_lib_be_be_app+set}" = set; then
22045   echo $ECHO_N "(cached) $ECHO_C" >&6
22046 else
22047   ac_check_lib_save_LIBS=$LIBS
22048 LIBS="-lbe -lroot -lnet $LIBS"
22049 cat >conftest.$ac_ext <<_ACEOF
22050 /* confdefs.h.  */
22051 _ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h.  */
22055
22056 /* Override any gcc2 internal prototype to avoid an error.  */
22057 #ifdef __cplusplus
22058 extern "C"
22059 #endif
22060 /* We use char because int might match the return type of a gcc2
22061    builtin and then its argument prototype would still apply.  */
22062 char be_app ();
22063 int
22064 main ()
22065 {
22066 be_app ();
22067   ;
22068   return 0;
22069 }
22070 _ACEOF
22071 rm -f conftest.$ac_objext conftest$ac_exeext
22072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22073   (eval $ac_link) 2>conftest.er1
22074   ac_status=$?
22075   grep -v '^ *+' conftest.er1 >conftest.err
22076   rm -f conftest.er1
22077   cat conftest.err >&5
22078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079   (exit $ac_status); } &&
22080          { ac_try='test -z "$ac_c_werror_flag"
22081                          || test ! -s conftest.err'
22082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083   (eval $ac_try) 2>&5
22084   ac_status=$?
22085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086   (exit $ac_status); }; } &&
22087          { ac_try='test -s conftest$ac_exeext'
22088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22089   (eval $ac_try) 2>&5
22090   ac_status=$?
22091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092   (exit $ac_status); }; }; then
22093   ac_cv_lib_be_be_app=yes
22094 else
22095   echo "$as_me: failed program was:" >&5
22096 sed 's/^/| /' conftest.$ac_ext >&5
22097
22098 ac_cv_lib_be_be_app=no
22099 fi
22100 rm -f conftest.err conftest.$ac_objext \
22101       conftest$ac_exeext conftest.$ac_ext
22102 LIBS=$ac_check_lib_save_LIBS
22103 fi
22104 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22105 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22106 if test $ac_cv_lib_be_be_app = yes; then
22107   LIBS="$LIBS -lbe -lroot -lnet"
22108 else
22109   :
22110 fi
22111
22112
22113 ac_ext=c
22114 ac_cpp='$CPP $CPPFLAGS'
22115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22118 if test -n "$ac_tool_prefix"; then
22119   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22120 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22121 echo "$as_me:$LINENO: checking for $ac_word" >&5
22122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22123 if test "${ac_cv_prog_CC+set}" = set; then
22124   echo $ECHO_N "(cached) $ECHO_C" >&6
22125 else
22126   if test -n "$CC"; then
22127   ac_cv_prog_CC="$CC" # Let the user override the test.
22128 else
22129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22130 for as_dir in $PATH
22131 do
22132   IFS=$as_save_IFS
22133   test -z "$as_dir" && as_dir=.
22134   for ac_exec_ext in '' $ac_executable_extensions; do
22135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22136     ac_cv_prog_CC="${ac_tool_prefix}gcc"
22137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22138     break 2
22139   fi
22140 done
22141 done
22142
22143 fi
22144 fi
22145 CC=$ac_cv_prog_CC
22146 if test -n "$CC"; then
22147   echo "$as_me:$LINENO: result: $CC" >&5
22148 echo "${ECHO_T}$CC" >&6
22149 else
22150   echo "$as_me:$LINENO: result: no" >&5
22151 echo "${ECHO_T}no" >&6
22152 fi
22153
22154 fi
22155 if test -z "$ac_cv_prog_CC"; then
22156   ac_ct_CC=$CC
22157   # Extract the first word of "gcc", so it can be a program name with args.
22158 set dummy gcc; ac_word=$2
22159 echo "$as_me:$LINENO: checking for $ac_word" >&5
22160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22162   echo $ECHO_N "(cached) $ECHO_C" >&6
22163 else
22164   if test -n "$ac_ct_CC"; then
22165   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22166 else
22167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22168 for as_dir in $PATH
22169 do
22170   IFS=$as_save_IFS
22171   test -z "$as_dir" && as_dir=.
22172   for ac_exec_ext in '' $ac_executable_extensions; do
22173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22174     ac_cv_prog_ac_ct_CC="gcc"
22175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22176     break 2
22177   fi
22178 done
22179 done
22180
22181 fi
22182 fi
22183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22184 if test -n "$ac_ct_CC"; then
22185   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22186 echo "${ECHO_T}$ac_ct_CC" >&6
22187 else
22188   echo "$as_me:$LINENO: result: no" >&5
22189 echo "${ECHO_T}no" >&6
22190 fi
22191
22192   CC=$ac_ct_CC
22193 else
22194   CC="$ac_cv_prog_CC"
22195 fi
22196
22197 if test -z "$CC"; then
22198   if test -n "$ac_tool_prefix"; then
22199   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22200 set dummy ${ac_tool_prefix}cc; ac_word=$2
22201 echo "$as_me:$LINENO: checking for $ac_word" >&5
22202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22203 if test "${ac_cv_prog_CC+set}" = set; then
22204   echo $ECHO_N "(cached) $ECHO_C" >&6
22205 else
22206   if test -n "$CC"; then
22207   ac_cv_prog_CC="$CC" # Let the user override the test.
22208 else
22209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22210 for as_dir in $PATH
22211 do
22212   IFS=$as_save_IFS
22213   test -z "$as_dir" && as_dir=.
22214   for ac_exec_ext in '' $ac_executable_extensions; do
22215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22216     ac_cv_prog_CC="${ac_tool_prefix}cc"
22217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22218     break 2
22219   fi
22220 done
22221 done
22222
22223 fi
22224 fi
22225 CC=$ac_cv_prog_CC
22226 if test -n "$CC"; then
22227   echo "$as_me:$LINENO: result: $CC" >&5
22228 echo "${ECHO_T}$CC" >&6
22229 else
22230   echo "$as_me:$LINENO: result: no" >&5
22231 echo "${ECHO_T}no" >&6
22232 fi
22233
22234 fi
22235 if test -z "$ac_cv_prog_CC"; then
22236   ac_ct_CC=$CC
22237   # Extract the first word of "cc", so it can be a program name with args.
22238 set dummy cc; ac_word=$2
22239 echo "$as_me:$LINENO: checking for $ac_word" >&5
22240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22241 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22242   echo $ECHO_N "(cached) $ECHO_C" >&6
22243 else
22244   if test -n "$ac_ct_CC"; then
22245   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22246 else
22247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22248 for as_dir in $PATH
22249 do
22250   IFS=$as_save_IFS
22251   test -z "$as_dir" && as_dir=.
22252   for ac_exec_ext in '' $ac_executable_extensions; do
22253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22254     ac_cv_prog_ac_ct_CC="cc"
22255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22256     break 2
22257   fi
22258 done
22259 done
22260
22261 fi
22262 fi
22263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22264 if test -n "$ac_ct_CC"; then
22265   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22266 echo "${ECHO_T}$ac_ct_CC" >&6
22267 else
22268   echo "$as_me:$LINENO: result: no" >&5
22269 echo "${ECHO_T}no" >&6
22270 fi
22271
22272   CC=$ac_ct_CC
22273 else
22274   CC="$ac_cv_prog_CC"
22275 fi
22276
22277 fi
22278 if test -z "$CC"; then
22279   # Extract the first word of "cc", so it can be a program name with args.
22280 set dummy cc; ac_word=$2
22281 echo "$as_me:$LINENO: checking for $ac_word" >&5
22282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22283 if test "${ac_cv_prog_CC+set}" = set; then
22284   echo $ECHO_N "(cached) $ECHO_C" >&6
22285 else
22286   if test -n "$CC"; then
22287   ac_cv_prog_CC="$CC" # Let the user override the test.
22288 else
22289   ac_prog_rejected=no
22290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22291 for as_dir in $PATH
22292 do
22293   IFS=$as_save_IFS
22294   test -z "$as_dir" && as_dir=.
22295   for ac_exec_ext in '' $ac_executable_extensions; do
22296   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22297     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22298        ac_prog_rejected=yes
22299        continue
22300      fi
22301     ac_cv_prog_CC="cc"
22302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22303     break 2
22304   fi
22305 done
22306 done
22307
22308 if test $ac_prog_rejected = yes; then
22309   # We found a bogon in the path, so make sure we never use it.
22310   set dummy $ac_cv_prog_CC
22311   shift
22312   if test $# != 0; then
22313     # We chose a different compiler from the bogus one.
22314     # However, it has the same basename, so the bogon will be chosen
22315     # first if we set CC to just the basename; use the full file name.
22316     shift
22317     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22318   fi
22319 fi
22320 fi
22321 fi
22322 CC=$ac_cv_prog_CC
22323 if test -n "$CC"; then
22324   echo "$as_me:$LINENO: result: $CC" >&5
22325 echo "${ECHO_T}$CC" >&6
22326 else
22327   echo "$as_me:$LINENO: result: no" >&5
22328 echo "${ECHO_T}no" >&6
22329 fi
22330
22331 fi
22332 if test -z "$CC"; then
22333   if test -n "$ac_tool_prefix"; then
22334   for ac_prog in cl
22335   do
22336     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22338 echo "$as_me:$LINENO: checking for $ac_word" >&5
22339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22340 if test "${ac_cv_prog_CC+set}" = set; then
22341   echo $ECHO_N "(cached) $ECHO_C" >&6
22342 else
22343   if test -n "$CC"; then
22344   ac_cv_prog_CC="$CC" # Let the user override the test.
22345 else
22346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22347 for as_dir in $PATH
22348 do
22349   IFS=$as_save_IFS
22350   test -z "$as_dir" && as_dir=.
22351   for ac_exec_ext in '' $ac_executable_extensions; do
22352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22353     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22355     break 2
22356   fi
22357 done
22358 done
22359
22360 fi
22361 fi
22362 CC=$ac_cv_prog_CC
22363 if test -n "$CC"; then
22364   echo "$as_me:$LINENO: result: $CC" >&5
22365 echo "${ECHO_T}$CC" >&6
22366 else
22367   echo "$as_me:$LINENO: result: no" >&5
22368 echo "${ECHO_T}no" >&6
22369 fi
22370
22371     test -n "$CC" && break
22372   done
22373 fi
22374 if test -z "$CC"; then
22375   ac_ct_CC=$CC
22376   for ac_prog in cl
22377 do
22378   # Extract the first word of "$ac_prog", so it can be a program name with args.
22379 set dummy $ac_prog; ac_word=$2
22380 echo "$as_me:$LINENO: checking for $ac_word" >&5
22381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22383   echo $ECHO_N "(cached) $ECHO_C" >&6
22384 else
22385   if test -n "$ac_ct_CC"; then
22386   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22387 else
22388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22389 for as_dir in $PATH
22390 do
22391   IFS=$as_save_IFS
22392   test -z "$as_dir" && as_dir=.
22393   for ac_exec_ext in '' $ac_executable_extensions; do
22394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22395     ac_cv_prog_ac_ct_CC="$ac_prog"
22396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22397     break 2
22398   fi
22399 done
22400 done
22401
22402 fi
22403 fi
22404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22405 if test -n "$ac_ct_CC"; then
22406   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22407 echo "${ECHO_T}$ac_ct_CC" >&6
22408 else
22409   echo "$as_me:$LINENO: result: no" >&5
22410 echo "${ECHO_T}no" >&6
22411 fi
22412
22413   test -n "$ac_ct_CC" && break
22414 done
22415
22416   CC=$ac_ct_CC
22417 fi
22418
22419 fi
22420
22421
22422 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22423 See \`config.log' for more details." >&5
22424 echo "$as_me: error: no acceptable C compiler found in \$PATH
22425 See \`config.log' for more details." >&2;}
22426    { (exit 1); exit 1; }; }
22427
22428 # Provide some information about the compiler.
22429 echo "$as_me:$LINENO:" \
22430      "checking for C compiler version" >&5
22431 ac_compiler=`set X $ac_compile; echo $2`
22432 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22433   (eval $ac_compiler --version </dev/null >&5) 2>&5
22434   ac_status=$?
22435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436   (exit $ac_status); }
22437 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22438   (eval $ac_compiler -v </dev/null >&5) 2>&5
22439   ac_status=$?
22440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441   (exit $ac_status); }
22442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22443   (eval $ac_compiler -V </dev/null >&5) 2>&5
22444   ac_status=$?
22445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446   (exit $ac_status); }
22447
22448 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22449 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22451   echo $ECHO_N "(cached) $ECHO_C" >&6
22452 else
22453   cat >conftest.$ac_ext <<_ACEOF
22454 /* confdefs.h.  */
22455 _ACEOF
22456 cat confdefs.h >>conftest.$ac_ext
22457 cat >>conftest.$ac_ext <<_ACEOF
22458 /* end confdefs.h.  */
22459
22460 int
22461 main ()
22462 {
22463 #ifndef __GNUC__
22464        choke me
22465 #endif
22466
22467   ;
22468   return 0;
22469 }
22470 _ACEOF
22471 rm -f conftest.$ac_objext
22472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22473   (eval $ac_compile) 2>conftest.er1
22474   ac_status=$?
22475   grep -v '^ *+' conftest.er1 >conftest.err
22476   rm -f conftest.er1
22477   cat conftest.err >&5
22478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479   (exit $ac_status); } &&
22480          { ac_try='test -z "$ac_c_werror_flag"
22481                          || test ! -s conftest.err'
22482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22483   (eval $ac_try) 2>&5
22484   ac_status=$?
22485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486   (exit $ac_status); }; } &&
22487          { ac_try='test -s conftest.$ac_objext'
22488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489   (eval $ac_try) 2>&5
22490   ac_status=$?
22491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492   (exit $ac_status); }; }; then
22493   ac_compiler_gnu=yes
22494 else
22495   echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22497
22498 ac_compiler_gnu=no
22499 fi
22500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22501 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22502
22503 fi
22504 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22505 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22506 GCC=`test $ac_compiler_gnu = yes && echo yes`
22507 ac_test_CFLAGS=${CFLAGS+set}
22508 ac_save_CFLAGS=$CFLAGS
22509 CFLAGS="-g"
22510 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22511 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22512 if test "${ac_cv_prog_cc_g+set}" = set; then
22513   echo $ECHO_N "(cached) $ECHO_C" >&6
22514 else
22515   cat >conftest.$ac_ext <<_ACEOF
22516 /* confdefs.h.  */
22517 _ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h.  */
22521
22522 int
22523 main ()
22524 {
22525
22526   ;
22527   return 0;
22528 }
22529 _ACEOF
22530 rm -f conftest.$ac_objext
22531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22532   (eval $ac_compile) 2>conftest.er1
22533   ac_status=$?
22534   grep -v '^ *+' conftest.er1 >conftest.err
22535   rm -f conftest.er1
22536   cat conftest.err >&5
22537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538   (exit $ac_status); } &&
22539          { ac_try='test -z "$ac_c_werror_flag"
22540                          || test ! -s conftest.err'
22541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542   (eval $ac_try) 2>&5
22543   ac_status=$?
22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545   (exit $ac_status); }; } &&
22546          { ac_try='test -s conftest.$ac_objext'
22547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548   (eval $ac_try) 2>&5
22549   ac_status=$?
22550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551   (exit $ac_status); }; }; then
22552   ac_cv_prog_cc_g=yes
22553 else
22554   echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22556
22557 ac_cv_prog_cc_g=no
22558 fi
22559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22560 fi
22561 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22562 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22563 if test "$ac_test_CFLAGS" = set; then
22564   CFLAGS=$ac_save_CFLAGS
22565 elif test $ac_cv_prog_cc_g = yes; then
22566   if test "$GCC" = yes; then
22567     CFLAGS="-g -O2"
22568   else
22569     CFLAGS="-g"
22570   fi
22571 else
22572   if test "$GCC" = yes; then
22573     CFLAGS="-O2"
22574   else
22575     CFLAGS=
22576   fi
22577 fi
22578 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22579 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22580 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22581   echo $ECHO_N "(cached) $ECHO_C" >&6
22582 else
22583   ac_cv_prog_cc_stdc=no
22584 ac_save_CC=$CC
22585 cat >conftest.$ac_ext <<_ACEOF
22586 /* confdefs.h.  */
22587 _ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h.  */
22591 #include <stdarg.h>
22592 #include <stdio.h>
22593 #include <sys/types.h>
22594 #include <sys/stat.h>
22595 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
22596 struct buf { int x; };
22597 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22598 static char *e (p, i)
22599      char **p;
22600      int i;
22601 {
22602   return p[i];
22603 }
22604 static char *f (char * (*g) (char **, int), char **p, ...)
22605 {
22606   char *s;
22607   va_list v;
22608   va_start (v,p);
22609   s = g (p, va_arg (v,int));
22610   va_end (v);
22611   return s;
22612 }
22613
22614 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
22615    function prototypes and stuff, but not '\xHH' hex character constants.
22616    These don't provoke an error unfortunately, instead are silently treated
22617    as 'x'.  The following induces an error, until -std1 is added to get
22618    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
22619    array size at least.  It's necessary to write '\x00'==0 to get something
22620    that's true only with -std1.  */
22621 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22622
22623 int test (int i, double x);
22624 struct s1 {int (*f) (int a);};
22625 struct s2 {int (*f) (double a);};
22626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22627 int argc;
22628 char **argv;
22629 int
22630 main ()
22631 {
22632 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
22633   ;
22634   return 0;
22635 }
22636 _ACEOF
22637 # Don't try gcc -ansi; that turns off useful extensions and
22638 # breaks some systems' header files.
22639 # AIX                   -qlanglvl=ansi
22640 # Ultrix and OSF/1      -std1
22641 # HP-UX 10.20 and later -Ae
22642 # HP-UX older versions  -Aa -D_HPUX_SOURCE
22643 # SVR4                  -Xc -D__EXTENSIONS__
22644 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22645 do
22646   CC="$ac_save_CC $ac_arg"
22647   rm -f conftest.$ac_objext
22648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22649   (eval $ac_compile) 2>conftest.er1
22650   ac_status=$?
22651   grep -v '^ *+' conftest.er1 >conftest.err
22652   rm -f conftest.er1
22653   cat conftest.err >&5
22654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655   (exit $ac_status); } &&
22656          { ac_try='test -z "$ac_c_werror_flag"
22657                          || test ! -s conftest.err'
22658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22659   (eval $ac_try) 2>&5
22660   ac_status=$?
22661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662   (exit $ac_status); }; } &&
22663          { ac_try='test -s conftest.$ac_objext'
22664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665   (eval $ac_try) 2>&5
22666   ac_status=$?
22667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668   (exit $ac_status); }; }; then
22669   ac_cv_prog_cc_stdc=$ac_arg
22670 break
22671 else
22672   echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22674
22675 fi
22676 rm -f conftest.err conftest.$ac_objext
22677 done
22678 rm -f conftest.$ac_ext conftest.$ac_objext
22679 CC=$ac_save_CC
22680
22681 fi
22682
22683 case "x$ac_cv_prog_cc_stdc" in
22684   x|xno)
22685     echo "$as_me:$LINENO: result: none needed" >&5
22686 echo "${ECHO_T}none needed" >&6 ;;
22687   *)
22688     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22689 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22690     CC="$CC $ac_cv_prog_cc_stdc" ;;
22691 esac
22692
22693 # Some people use a C++ compiler to compile C.  Since we use `exit',
22694 # in C++ we need to declare it.  In case someone uses the same compiler
22695 # for both compiling C and C++ we need to have the C++ compiler decide
22696 # the declaration of exit, since it's the most demanding environment.
22697 cat >conftest.$ac_ext <<_ACEOF
22698 #ifndef __cplusplus
22699   choke me
22700 #endif
22701 _ACEOF
22702 rm -f conftest.$ac_objext
22703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22704   (eval $ac_compile) 2>conftest.er1
22705   ac_status=$?
22706   grep -v '^ *+' conftest.er1 >conftest.err
22707   rm -f conftest.er1
22708   cat conftest.err >&5
22709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710   (exit $ac_status); } &&
22711          { ac_try='test -z "$ac_c_werror_flag"
22712                          || test ! -s conftest.err'
22713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714   (eval $ac_try) 2>&5
22715   ac_status=$?
22716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717   (exit $ac_status); }; } &&
22718          { ac_try='test -s conftest.$ac_objext'
22719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720   (eval $ac_try) 2>&5
22721   ac_status=$?
22722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723   (exit $ac_status); }; }; then
22724   for ac_declaration in \
22725    '' \
22726    'extern "C" void std::exit (int) throw (); using std::exit;' \
22727    'extern "C" void std::exit (int); using std::exit;' \
22728    'extern "C" void exit (int) throw ();' \
22729    'extern "C" void exit (int);' \
22730    'void exit (int);'
22731 do
22732   cat >conftest.$ac_ext <<_ACEOF
22733 /* confdefs.h.  */
22734 _ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h.  */
22738 $ac_declaration
22739 #include <stdlib.h>
22740 int
22741 main ()
22742 {
22743 exit (42);
22744   ;
22745   return 0;
22746 }
22747 _ACEOF
22748 rm -f conftest.$ac_objext
22749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22750   (eval $ac_compile) 2>conftest.er1
22751   ac_status=$?
22752   grep -v '^ *+' conftest.er1 >conftest.err
22753   rm -f conftest.er1
22754   cat conftest.err >&5
22755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756   (exit $ac_status); } &&
22757          { ac_try='test -z "$ac_c_werror_flag"
22758                          || test ! -s conftest.err'
22759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22760   (eval $ac_try) 2>&5
22761   ac_status=$?
22762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763   (exit $ac_status); }; } &&
22764          { ac_try='test -s conftest.$ac_objext'
22765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22766   (eval $ac_try) 2>&5
22767   ac_status=$?
22768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769   (exit $ac_status); }; }; then
22770   :
22771 else
22772   echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.$ac_ext >&5
22774
22775 continue
22776 fi
22777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22778   cat >conftest.$ac_ext <<_ACEOF
22779 /* confdefs.h.  */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h.  */
22784 $ac_declaration
22785 int
22786 main ()
22787 {
22788 exit (42);
22789   ;
22790   return 0;
22791 }
22792 _ACEOF
22793 rm -f conftest.$ac_objext
22794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22795   (eval $ac_compile) 2>conftest.er1
22796   ac_status=$?
22797   grep -v '^ *+' conftest.er1 >conftest.err
22798   rm -f conftest.er1
22799   cat conftest.err >&5
22800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801   (exit $ac_status); } &&
22802          { ac_try='test -z "$ac_c_werror_flag"
22803                          || test ! -s conftest.err'
22804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22805   (eval $ac_try) 2>&5
22806   ac_status=$?
22807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808   (exit $ac_status); }; } &&
22809          { ac_try='test -s conftest.$ac_objext'
22810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22811   (eval $ac_try) 2>&5
22812   ac_status=$?
22813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814   (exit $ac_status); }; }; then
22815   break
22816 else
22817   echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22819
22820 fi
22821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22822 done
22823 rm -f conftest*
22824 if test -n "$ac_declaration"; then
22825   echo '#ifdef __cplusplus' >>confdefs.h
22826   echo $ac_declaration      >>confdefs.h
22827   echo '#endif'             >>confdefs.h
22828 fi
22829
22830 else
22831   echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22833
22834 fi
22835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22836 ac_ext=c
22837 ac_cpp='$CPP $CPPFLAGS'
22838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22841
22842 depcc="$CC"   am_compiler_list=
22843
22844 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22845 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22846 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22847   echo $ECHO_N "(cached) $ECHO_C" >&6
22848 else
22849   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22850   # We make a subdir and do the tests there.  Otherwise we can end up
22851   # making bogus files that we don't know about and never remove.  For
22852   # instance it was reported that on HP-UX the gcc test will end up
22853   # making a dummy file named `D' -- because `-MD' means `put the output
22854   # in D'.
22855   mkdir conftest.dir
22856   # Copy depcomp to subdir because otherwise we won't find it if we're
22857   # using a relative directory.
22858   cp "$am_depcomp" conftest.dir
22859   cd conftest.dir
22860   # We will build objects and dependencies in a subdirectory because
22861   # it helps to detect inapplicable dependency modes.  For instance
22862   # both Tru64's cc and ICC support -MD to output dependencies as a
22863   # side effect of compilation, but ICC will put the dependencies in
22864   # the current directory while Tru64 will put them in the object
22865   # directory.
22866   mkdir sub
22867
22868   am_cv_CC_dependencies_compiler_type=none
22869   if test "$am_compiler_list" = ""; then
22870      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22871   fi
22872   for depmode in $am_compiler_list; do
22873     # Setup a source with many dependencies, because some compilers
22874     # like to wrap large dependency lists on column 80 (with \), and
22875     # we should not choose a depcomp mode which is confused by this.
22876     #
22877     # We need to recreate these files for each test, as the compiler may
22878     # overwrite some of them when testing with obscure command lines.
22879     # This happens at least with the AIX C compiler.
22880     : > sub/conftest.c
22881     for i in 1 2 3 4 5 6; do
22882       echo '#include "conftst'$i'.h"' >> sub/conftest.c
22883       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22884       # Solaris 8's {/usr,}/bin/sh.
22885       touch sub/conftst$i.h
22886     done
22887     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22888
22889     case $depmode in
22890     nosideeffect)
22891       # after this tag, mechanisms are not by side-effect, so they'll
22892       # only be used when explicitly requested
22893       if test "x$enable_dependency_tracking" = xyes; then
22894         continue
22895       else
22896         break
22897       fi
22898       ;;
22899     none) break ;;
22900     esac
22901     # We check with `-c' and `-o' for the sake of the "dashmstdout"
22902     # mode.  It turns out that the SunPro C++ compiler does not properly
22903     # handle `-M -o', and we need to detect this.
22904     if depmode=$depmode \
22905        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22906        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22907        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22908          >/dev/null 2>conftest.err &&
22909        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22910        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22911        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22912       # icc doesn't choke on unknown options, it will just issue warnings
22913       # or remarks (even with -Werror).  So we grep stderr for any message
22914       # that says an option was ignored or not supported.
22915       # When given -MP, icc 7.0 and 7.1 complain thusly:
22916       #   icc: Command line warning: ignoring option '-M'; no argument required
22917       # The diagnosis changed in icc 8.0:
22918       #   icc: Command line remark: option '-MP' not supported
22919       if (grep 'ignoring option' conftest.err ||
22920           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22921         am_cv_CC_dependencies_compiler_type=$depmode
22922         break
22923       fi
22924     fi
22925   done
22926
22927   cd ..
22928   rm -rf conftest.dir
22929 else
22930   am_cv_CC_dependencies_compiler_type=none
22931 fi
22932
22933 fi
22934 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22935 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22936 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22937
22938
22939
22940 if
22941   test "x$enable_dependency_tracking" != xno \
22942   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22943   am__fastdepCC_TRUE=
22944   am__fastdepCC_FALSE='#'
22945 else
22946   am__fastdepCC_TRUE='#'
22947   am__fastdepCC_FALSE=
22948 fi
22949
22950
22951 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
22952         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22953 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22954    { (exit 1); exit 1; }; }
22955 fi
22956
22957 # test for make depend flag
22958 OL_MKDEP=
22959 OL_MKDEP_FLAGS=
22960 if test -z "${MKDEP}"; then
22961         OL_MKDEP="${CC-cc}"
22962         if test -z "${MKDEP_FLAGS}"; then
22963                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22964 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22965 if test "${ol_cv_mkdep+set}" = set; then
22966   echo $ECHO_N "(cached) $ECHO_C" >&6
22967 else
22968
22969                         ol_cv_mkdep=no
22970                         for flag in "-M" "-xM"; do
22971                                 cat > conftest.c <<EOF
22972  noCode;
22973 EOF
22974                                 if { ac_try='$OL_MKDEP $flag conftest.c'
22975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22976   (eval $ac_try) 2>&5
22977   ac_status=$?
22978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979   (exit $ac_status); }; } \
22980                                         | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22981                                 then
22982                                         if test ! -f conftest."${ac_object}" ; then
22983                                                 ol_cv_mkdep=$flag
22984                                                 OL_MKDEP_FLAGS="$flag"
22985                                                 break
22986                                         fi
22987                                 fi
22988                         done
22989                         rm -f conftest*
22990
22991 fi
22992 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22993 echo "${ECHO_T}$ol_cv_mkdep" >&6
22994         else
22995                 cc_cv_mkdep=yes
22996                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22997         fi
22998 else
22999         cc_cv_mkdep=yes
23000         OL_MKDEP="${MKDEP}"
23001         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
23002 fi
23003
23004
23005
23006 if test "${ol_cv_mkdep}" = no ; then
23007         # this will soon become an error
23008         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
23009 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
23010 fi
23011
23012 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
23013 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
23014 if test "${ac_cv_lib_s_afopen+set}" = set; then
23015   echo $ECHO_N "(cached) $ECHO_C" >&6
23016 else
23017   ac_check_lib_save_LIBS=$LIBS
23018 LIBS="-ls  $LIBS"
23019 cat >conftest.$ac_ext <<_ACEOF
23020 /* confdefs.h.  */
23021 _ACEOF
23022 cat confdefs.h >>conftest.$ac_ext
23023 cat >>conftest.$ac_ext <<_ACEOF
23024 /* end confdefs.h.  */
23025
23026 /* Override any gcc2 internal prototype to avoid an error.  */
23027 #ifdef __cplusplus
23028 extern "C"
23029 #endif
23030 /* We use char because int might match the return type of a gcc2
23031    builtin and then its argument prototype would still apply.  */
23032 char afopen ();
23033 int
23034 main ()
23035 {
23036 afopen ();
23037   ;
23038   return 0;
23039 }
23040 _ACEOF
23041 rm -f conftest.$ac_objext conftest$ac_exeext
23042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23043   (eval $ac_link) 2>conftest.er1
23044   ac_status=$?
23045   grep -v '^ *+' conftest.er1 >conftest.err
23046   rm -f conftest.er1
23047   cat conftest.err >&5
23048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049   (exit $ac_status); } &&
23050          { ac_try='test -z "$ac_c_werror_flag"
23051                          || test ! -s conftest.err'
23052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053   (eval $ac_try) 2>&5
23054   ac_status=$?
23055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056   (exit $ac_status); }; } &&
23057          { ac_try='test -s conftest$ac_exeext'
23058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23059   (eval $ac_try) 2>&5
23060   ac_status=$?
23061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062   (exit $ac_status); }; }; then
23063   ac_cv_lib_s_afopen=yes
23064 else
23065   echo "$as_me: failed program was:" >&5
23066 sed 's/^/| /' conftest.$ac_ext >&5
23067
23068 ac_cv_lib_s_afopen=no
23069 fi
23070 rm -f conftest.err conftest.$ac_objext \
23071       conftest$ac_exeext conftest.$ac_ext
23072 LIBS=$ac_check_lib_save_LIBS
23073 fi
23074 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23075 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23076 if test $ac_cv_lib_s_afopen = yes; then
23077
23078         AUTH_LIBS=-ls
23079
23080 cat >>confdefs.h <<\_ACEOF
23081 #define HAVE_AIX_SECURITY 1
23082 _ACEOF
23083
23084
23085 fi
23086
23087
23088 case "$target" in
23089 *-ibm-openedition)
23090         ac_cv_func_getopt=no
23091
23092 cat >>confdefs.h <<\_ACEOF
23093 #define BOTH_STRINGS_H 1
23094 _ACEOF
23095
23096         ;;
23097 esac
23098
23099 ol_link_modules=no
23100 WITH_MODULES_ENABLED=no
23101 if test $ol_enable_modules != no ; then
23102
23103 for ac_header in ltdl.h
23104 do
23105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23107   echo "$as_me:$LINENO: checking for $ac_header" >&5
23108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23110   echo $ECHO_N "(cached) $ECHO_C" >&6
23111 fi
23112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23114 else
23115   # Is the header compilable?
23116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23118 cat >conftest.$ac_ext <<_ACEOF
23119 /* confdefs.h.  */
23120 _ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h.  */
23124 $ac_includes_default
23125 #include <$ac_header>
23126 _ACEOF
23127 rm -f conftest.$ac_objext
23128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23129   (eval $ac_compile) 2>conftest.er1
23130   ac_status=$?
23131   grep -v '^ *+' conftest.er1 >conftest.err
23132   rm -f conftest.er1
23133   cat conftest.err >&5
23134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135   (exit $ac_status); } &&
23136          { ac_try='test -z "$ac_c_werror_flag"
23137                          || test ! -s conftest.err'
23138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139   (eval $ac_try) 2>&5
23140   ac_status=$?
23141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142   (exit $ac_status); }; } &&
23143          { ac_try='test -s conftest.$ac_objext'
23144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145   (eval $ac_try) 2>&5
23146   ac_status=$?
23147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148   (exit $ac_status); }; }; then
23149   ac_header_compiler=yes
23150 else
23151   echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23153
23154 ac_header_compiler=no
23155 fi
23156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23158 echo "${ECHO_T}$ac_header_compiler" >&6
23159
23160 # Is the header present?
23161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23163 cat >conftest.$ac_ext <<_ACEOF
23164 /* confdefs.h.  */
23165 _ACEOF
23166 cat confdefs.h >>conftest.$ac_ext
23167 cat >>conftest.$ac_ext <<_ACEOF
23168 /* end confdefs.h.  */
23169 #include <$ac_header>
23170 _ACEOF
23171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23172   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23173   ac_status=$?
23174   grep -v '^ *+' conftest.er1 >conftest.err
23175   rm -f conftest.er1
23176   cat conftest.err >&5
23177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178   (exit $ac_status); } >/dev/null; then
23179   if test -s conftest.err; then
23180     ac_cpp_err=$ac_c_preproc_warn_flag
23181     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23182   else
23183     ac_cpp_err=
23184   fi
23185 else
23186   ac_cpp_err=yes
23187 fi
23188 if test -z "$ac_cpp_err"; then
23189   ac_header_preproc=yes
23190 else
23191   echo "$as_me: failed program was:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23193
23194   ac_header_preproc=no
23195 fi
23196 rm -f conftest.err conftest.$ac_ext
23197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23198 echo "${ECHO_T}$ac_header_preproc" >&6
23199
23200 # So?  What about this header?
23201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23202   yes:no: )
23203     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23207     ac_header_preproc=yes
23208     ;;
23209   no:yes:* )
23210     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23212     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23213 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23214     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23216     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23217 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23220     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23222     (
23223       cat <<\_ASBOX
23224 ## ------------------------------------------ ##
23225 ## Report this to the AC_PACKAGE_NAME lists.  ##
23226 ## ------------------------------------------ ##
23227 _ASBOX
23228     ) |
23229       sed "s/^/$as_me: WARNING:     /" >&2
23230     ;;
23231 esac
23232 echo "$as_me:$LINENO: checking for $ac_header" >&5
23233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23235   echo $ECHO_N "(cached) $ECHO_C" >&6
23236 else
23237   eval "$as_ac_Header=\$ac_header_preproc"
23238 fi
23239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23241
23242 fi
23243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23244   cat >>confdefs.h <<_ACEOF
23245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23246 _ACEOF
23247
23248 fi
23249
23250 done
23251
23252
23253         if test $ac_cv_header_ltdl_h = no ; then
23254                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23255 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23256    { (exit 1); exit 1; }; }
23257         fi
23258
23259         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23260 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23261 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23262   echo $ECHO_N "(cached) $ECHO_C" >&6
23263 else
23264   ac_check_lib_save_LIBS=$LIBS
23265 LIBS="-lltdl  $LIBS"
23266 cat >conftest.$ac_ext <<_ACEOF
23267 /* confdefs.h.  */
23268 _ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h.  */
23272
23273 /* Override any gcc2 internal prototype to avoid an error.  */
23274 #ifdef __cplusplus
23275 extern "C"
23276 #endif
23277 /* We use char because int might match the return type of a gcc2
23278    builtin and then its argument prototype would still apply.  */
23279 char lt_dlinit ();
23280 int
23281 main ()
23282 {
23283 lt_dlinit ();
23284   ;
23285   return 0;
23286 }
23287 _ACEOF
23288 rm -f conftest.$ac_objext conftest$ac_exeext
23289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23290   (eval $ac_link) 2>conftest.er1
23291   ac_status=$?
23292   grep -v '^ *+' conftest.er1 >conftest.err
23293   rm -f conftest.er1
23294   cat conftest.err >&5
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); } &&
23297          { ac_try='test -z "$ac_c_werror_flag"
23298                          || test ! -s conftest.err'
23299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23300   (eval $ac_try) 2>&5
23301   ac_status=$?
23302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303   (exit $ac_status); }; } &&
23304          { ac_try='test -s conftest$ac_exeext'
23305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23306   (eval $ac_try) 2>&5
23307   ac_status=$?
23308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309   (exit $ac_status); }; }; then
23310   ac_cv_lib_ltdl_lt_dlinit=yes
23311 else
23312   echo "$as_me: failed program was:" >&5
23313 sed 's/^/| /' conftest.$ac_ext >&5
23314
23315 ac_cv_lib_ltdl_lt_dlinit=no
23316 fi
23317 rm -f conftest.err conftest.$ac_objext \
23318       conftest$ac_exeext conftest.$ac_ext
23319 LIBS=$ac_check_lib_save_LIBS
23320 fi
23321 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23322 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23323 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23324
23325                 MODULES_LIBS=-lltdl
23326
23327 cat >>confdefs.h <<\_ACEOF
23328 #define HAVE_LIBLTDL 1
23329 _ACEOF
23330
23331
23332 fi
23333
23334
23335         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23336                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23337 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23338    { (exit 1); exit 1; }; }
23339         fi
23340         ol_link_modules=yes
23341         WITH_MODULES_ENABLED=yes
23342
23343 else
23344         for i in $Backends; do
23345                 eval "ol_tmp=\$ol_enable_$i"
23346                 if test $ol_tmp = mod ; then
23347                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23348 echo "$as_me: WARNING: building static $i backend" >&2;}
23349                         eval "ol_enable_$i=yes"
23350                 fi
23351         done
23352         for i in $Overlays; do
23353                 eval "ol_tmp=\$ol_enable_$i"
23354                 if test $ol_tmp = mod ; then
23355                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23356 echo "$as_me: WARNING: building static $i overlay" >&2;}
23357                         eval "ol_enable_$i=yes"
23358                 fi
23359         done
23360 fi
23361
23362 # test for EBCDIC
23363 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23364 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23365 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23366   echo $ECHO_N "(cached) $ECHO_C" >&6
23367 else
23368
23369         cat >conftest.$ac_ext <<_ACEOF
23370 /* confdefs.h.  */
23371 _ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h.  */
23375
23376 #if !('M' == 0xd4)
23377 #include <__ASCII__/generate_error.h>
23378 #endif
23379
23380 _ACEOF
23381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23382   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23383   ac_status=$?
23384   grep -v '^ *+' conftest.er1 >conftest.err
23385   rm -f conftest.er1
23386   cat conftest.err >&5
23387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388   (exit $ac_status); } >/dev/null; then
23389   if test -s conftest.err; then
23390     ac_cpp_err=$ac_c_preproc_warn_flag
23391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23392   else
23393     ac_cpp_err=
23394   fi
23395 else
23396   ac_cpp_err=yes
23397 fi
23398 if test -z "$ac_cpp_err"; then
23399   ol_cv_cpp_ebcdic=yes
23400 else
23401   echo "$as_me: failed program was:" >&5
23402 sed 's/^/| /' conftest.$ac_ext >&5
23403
23404   ol_cv_cpp_ebcdic=no
23405 fi
23406 rm -f conftest.err conftest.$ac_ext
23407 fi
23408 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23409 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23410 if test $ol_cv_cpp_ebcdic = yes ; then
23411
23412 cat >>confdefs.h <<\_ACEOF
23413 #define HAVE_EBCDIC 1
23414 _ACEOF
23415
23416 fi
23417
23418 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23420 if test "${ol_cv_header_stdc+set}" = set; then
23421   echo $ECHO_N "(cached) $ECHO_C" >&6
23422 else
23423   cat >conftest.$ac_ext <<_ACEOF
23424 /* confdefs.h.  */
23425 _ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h.  */
23429 #include <stdlib.h>
23430 #include <stdarg.h>
23431 #include <string.h>
23432 #include <float.h>
23433 _ACEOF
23434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23436   ac_status=$?
23437   grep -v '^ *+' conftest.er1 >conftest.err
23438   rm -f conftest.er1
23439   cat conftest.err >&5
23440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441   (exit $ac_status); } >/dev/null; then
23442   if test -s conftest.err; then
23443     ac_cpp_err=$ac_c_preproc_warn_flag
23444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23445   else
23446     ac_cpp_err=
23447   fi
23448 else
23449   ac_cpp_err=yes
23450 fi
23451 if test -z "$ac_cpp_err"; then
23452   ol_cv_header_stdc=yes
23453 else
23454   echo "$as_me: failed program was:" >&5
23455 sed 's/^/| /' conftest.$ac_ext >&5
23456
23457   ol_cv_header_stdc=no
23458 fi
23459 rm -f conftest.err conftest.$ac_ext
23460
23461 if test $ol_cv_header_stdc = yes; then
23462   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23463 cat >conftest.$ac_ext <<_ACEOF
23464 /* confdefs.h.  */
23465 _ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h.  */
23469 #include <string.h>
23470
23471 _ACEOF
23472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23473   $EGREP "memchr" >/dev/null 2>&1; then
23474   :
23475 else
23476   ol_cv_header_stdc=no
23477 fi
23478 rm -f conftest*
23479
23480 fi
23481
23482 if test $ol_cv_header_stdc = yes; then
23483   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23484 cat >conftest.$ac_ext <<_ACEOF
23485 /* confdefs.h.  */
23486 _ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h.  */
23490 #include <stdlib.h>
23491
23492 _ACEOF
23493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23494   $EGREP "free" >/dev/null 2>&1; then
23495   :
23496 else
23497   ol_cv_header_stdc=no
23498 fi
23499 rm -f conftest*
23500
23501 fi
23502
23503 if test $ol_cv_header_stdc = yes; then
23504   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23505 if test "$cross_compiling" = yes; then
23506   :
23507 else
23508   cat >conftest.$ac_ext <<_ACEOF
23509 /* confdefs.h.  */
23510 _ACEOF
23511 cat confdefs.h >>conftest.$ac_ext
23512 cat >>conftest.$ac_ext <<_ACEOF
23513 /* end confdefs.h.  */
23514 #include <ctype.h>
23515 #ifndef HAVE_EBCDIC
23516 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23517 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23518 #else
23519 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23520                 || ('j' <= (c) && (c) <= 'r') \
23521                 || ('s' <= (c) && (c) <= 'z'))
23522 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
23523 #endif
23524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23525 int main () { int i; for (i = 0; i < 256; i++)
23526 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23527 exit (0); }
23528
23529 _ACEOF
23530 rm -f conftest$ac_exeext
23531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23532   (eval $ac_link) 2>&5
23533   ac_status=$?
23534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23537   (eval $ac_try) 2>&5
23538   ac_status=$?
23539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540   (exit $ac_status); }; }; then
23541   :
23542 else
23543   echo "$as_me: program exited with status $ac_status" >&5
23544 echo "$as_me: failed program was:" >&5
23545 sed 's/^/| /' conftest.$ac_ext >&5
23546
23547 ( exit $ac_status )
23548 ol_cv_header_stdc=no
23549 fi
23550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23551 fi
23552 fi
23553 fi
23554 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23555 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23556 if test $ol_cv_header_stdc = yes; then
23557   cat >>confdefs.h <<\_ACEOF
23558 #define STDC_HEADERS 1
23559 _ACEOF
23560
23561 fi
23562 ac_cv_header_stdc=disable
23563
23564
23565 if test $ol_cv_header_stdc != yes; then
23566         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23567 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23568 fi
23569
23570
23571
23572
23573
23574
23575 ac_header_dirent=no
23576 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23577   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23578 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23579 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23581   echo $ECHO_N "(cached) $ECHO_C" >&6
23582 else
23583   cat >conftest.$ac_ext <<_ACEOF
23584 /* confdefs.h.  */
23585 _ACEOF
23586 cat confdefs.h >>conftest.$ac_ext
23587 cat >>conftest.$ac_ext <<_ACEOF
23588 /* end confdefs.h.  */
23589 #include <sys/types.h>
23590 #include <$ac_hdr>
23591
23592 int
23593 main ()
23594 {
23595 if ((DIR *) 0)
23596 return 0;
23597   ;
23598   return 0;
23599 }
23600 _ACEOF
23601 rm -f conftest.$ac_objext
23602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23603   (eval $ac_compile) 2>conftest.er1
23604   ac_status=$?
23605   grep -v '^ *+' conftest.er1 >conftest.err
23606   rm -f conftest.er1
23607   cat conftest.err >&5
23608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609   (exit $ac_status); } &&
23610          { ac_try='test -z "$ac_c_werror_flag"
23611                          || test ! -s conftest.err'
23612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23613   (eval $ac_try) 2>&5
23614   ac_status=$?
23615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616   (exit $ac_status); }; } &&
23617          { ac_try='test -s conftest.$ac_objext'
23618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23619   (eval $ac_try) 2>&5
23620   ac_status=$?
23621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622   (exit $ac_status); }; }; then
23623   eval "$as_ac_Header=yes"
23624 else
23625   echo "$as_me: failed program was:" >&5
23626 sed 's/^/| /' conftest.$ac_ext >&5
23627
23628 eval "$as_ac_Header=no"
23629 fi
23630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23631 fi
23632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23635   cat >>confdefs.h <<_ACEOF
23636 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23637 _ACEOF
23638
23639 ac_header_dirent=$ac_hdr; break
23640 fi
23641
23642 done
23643 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23644 if test $ac_header_dirent = dirent.h; then
23645   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23646 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23647 if test "${ac_cv_search_opendir+set}" = set; then
23648   echo $ECHO_N "(cached) $ECHO_C" >&6
23649 else
23650   ac_func_search_save_LIBS=$LIBS
23651 ac_cv_search_opendir=no
23652 cat >conftest.$ac_ext <<_ACEOF
23653 /* confdefs.h.  */
23654 _ACEOF
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h.  */
23658
23659 /* Override any gcc2 internal prototype to avoid an error.  */
23660 #ifdef __cplusplus
23661 extern "C"
23662 #endif
23663 /* We use char because int might match the return type of a gcc2
23664    builtin and then its argument prototype would still apply.  */
23665 char opendir ();
23666 int
23667 main ()
23668 {
23669 opendir ();
23670   ;
23671   return 0;
23672 }
23673 _ACEOF
23674 rm -f conftest.$ac_objext conftest$ac_exeext
23675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23676   (eval $ac_link) 2>conftest.er1
23677   ac_status=$?
23678   grep -v '^ *+' conftest.er1 >conftest.err
23679   rm -f conftest.er1
23680   cat conftest.err >&5
23681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682   (exit $ac_status); } &&
23683          { ac_try='test -z "$ac_c_werror_flag"
23684                          || test ! -s conftest.err'
23685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23686   (eval $ac_try) 2>&5
23687   ac_status=$?
23688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689   (exit $ac_status); }; } &&
23690          { ac_try='test -s conftest$ac_exeext'
23691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23692   (eval $ac_try) 2>&5
23693   ac_status=$?
23694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695   (exit $ac_status); }; }; then
23696   ac_cv_search_opendir="none required"
23697 else
23698   echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.$ac_ext >&5
23700
23701 fi
23702 rm -f conftest.err conftest.$ac_objext \
23703       conftest$ac_exeext conftest.$ac_ext
23704 if test "$ac_cv_search_opendir" = no; then
23705   for ac_lib in dir; do
23706     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23707     cat >conftest.$ac_ext <<_ACEOF
23708 /* confdefs.h.  */
23709 _ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h.  */
23713
23714 /* Override any gcc2 internal prototype to avoid an error.  */
23715 #ifdef __cplusplus
23716 extern "C"
23717 #endif
23718 /* We use char because int might match the return type of a gcc2
23719    builtin and then its argument prototype would still apply.  */
23720 char opendir ();
23721 int
23722 main ()
23723 {
23724 opendir ();
23725   ;
23726   return 0;
23727 }
23728 _ACEOF
23729 rm -f conftest.$ac_objext conftest$ac_exeext
23730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23731   (eval $ac_link) 2>conftest.er1
23732   ac_status=$?
23733   grep -v '^ *+' conftest.er1 >conftest.err
23734   rm -f conftest.er1
23735   cat conftest.err >&5
23736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737   (exit $ac_status); } &&
23738          { ac_try='test -z "$ac_c_werror_flag"
23739                          || test ! -s conftest.err'
23740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23741   (eval $ac_try) 2>&5
23742   ac_status=$?
23743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744   (exit $ac_status); }; } &&
23745          { ac_try='test -s conftest$ac_exeext'
23746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23747   (eval $ac_try) 2>&5
23748   ac_status=$?
23749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750   (exit $ac_status); }; }; then
23751   ac_cv_search_opendir="-l$ac_lib"
23752 break
23753 else
23754   echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23756
23757 fi
23758 rm -f conftest.err conftest.$ac_objext \
23759       conftest$ac_exeext conftest.$ac_ext
23760   done
23761 fi
23762 LIBS=$ac_func_search_save_LIBS
23763 fi
23764 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23765 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23766 if test "$ac_cv_search_opendir" != no; then
23767   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23768
23769 fi
23770
23771 else
23772   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23773 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23774 if test "${ac_cv_search_opendir+set}" = set; then
23775   echo $ECHO_N "(cached) $ECHO_C" >&6
23776 else
23777   ac_func_search_save_LIBS=$LIBS
23778 ac_cv_search_opendir=no
23779 cat >conftest.$ac_ext <<_ACEOF
23780 /* confdefs.h.  */
23781 _ACEOF
23782 cat confdefs.h >>conftest.$ac_ext
23783 cat >>conftest.$ac_ext <<_ACEOF
23784 /* end confdefs.h.  */
23785
23786 /* Override any gcc2 internal prototype to avoid an error.  */
23787 #ifdef __cplusplus
23788 extern "C"
23789 #endif
23790 /* We use char because int might match the return type of a gcc2
23791    builtin and then its argument prototype would still apply.  */
23792 char opendir ();
23793 int
23794 main ()
23795 {
23796 opendir ();
23797   ;
23798   return 0;
23799 }
23800 _ACEOF
23801 rm -f conftest.$ac_objext conftest$ac_exeext
23802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23803   (eval $ac_link) 2>conftest.er1
23804   ac_status=$?
23805   grep -v '^ *+' conftest.er1 >conftest.err
23806   rm -f conftest.er1
23807   cat conftest.err >&5
23808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809   (exit $ac_status); } &&
23810          { ac_try='test -z "$ac_c_werror_flag"
23811                          || test ! -s conftest.err'
23812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813   (eval $ac_try) 2>&5
23814   ac_status=$?
23815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816   (exit $ac_status); }; } &&
23817          { ac_try='test -s conftest$ac_exeext'
23818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819   (eval $ac_try) 2>&5
23820   ac_status=$?
23821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822   (exit $ac_status); }; }; then
23823   ac_cv_search_opendir="none required"
23824 else
23825   echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23827
23828 fi
23829 rm -f conftest.err conftest.$ac_objext \
23830       conftest$ac_exeext conftest.$ac_ext
23831 if test "$ac_cv_search_opendir" = no; then
23832   for ac_lib in x; do
23833     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23834     cat >conftest.$ac_ext <<_ACEOF
23835 /* confdefs.h.  */
23836 _ACEOF
23837 cat confdefs.h >>conftest.$ac_ext
23838 cat >>conftest.$ac_ext <<_ACEOF
23839 /* end confdefs.h.  */
23840
23841 /* Override any gcc2 internal prototype to avoid an error.  */
23842 #ifdef __cplusplus
23843 extern "C"
23844 #endif
23845 /* We use char because int might match the return type of a gcc2
23846    builtin and then its argument prototype would still apply.  */
23847 char opendir ();
23848 int
23849 main ()
23850 {
23851 opendir ();
23852   ;
23853   return 0;
23854 }
23855 _ACEOF
23856 rm -f conftest.$ac_objext conftest$ac_exeext
23857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23858   (eval $ac_link) 2>conftest.er1
23859   ac_status=$?
23860   grep -v '^ *+' conftest.er1 >conftest.err
23861   rm -f conftest.er1
23862   cat conftest.err >&5
23863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864   (exit $ac_status); } &&
23865          { ac_try='test -z "$ac_c_werror_flag"
23866                          || test ! -s conftest.err'
23867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23868   (eval $ac_try) 2>&5
23869   ac_status=$?
23870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871   (exit $ac_status); }; } &&
23872          { ac_try='test -s conftest$ac_exeext'
23873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23874   (eval $ac_try) 2>&5
23875   ac_status=$?
23876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877   (exit $ac_status); }; }; then
23878   ac_cv_search_opendir="-l$ac_lib"
23879 break
23880 else
23881   echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.$ac_ext >&5
23883
23884 fi
23885 rm -f conftest.err conftest.$ac_objext \
23886       conftest$ac_exeext conftest.$ac_ext
23887   done
23888 fi
23889 LIBS=$ac_func_search_save_LIBS
23890 fi
23891 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23892 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23893 if test "$ac_cv_search_opendir" != no; then
23894   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23895
23896 fi
23897
23898 fi
23899
23900 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23901 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23902 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23903   echo $ECHO_N "(cached) $ECHO_C" >&6
23904 else
23905   cat >conftest.$ac_ext <<_ACEOF
23906 /* confdefs.h.  */
23907 _ACEOF
23908 cat confdefs.h >>conftest.$ac_ext
23909 cat >>conftest.$ac_ext <<_ACEOF
23910 /* end confdefs.h.  */
23911 #include <sys/types.h>
23912 #include <sys/wait.h>
23913 #ifndef WEXITSTATUS
23914 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23915 #endif
23916 #ifndef WIFEXITED
23917 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23918 #endif
23919
23920 int
23921 main ()
23922 {
23923   int s;
23924   wait (&s);
23925   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23926   ;
23927   return 0;
23928 }
23929 _ACEOF
23930 rm -f conftest.$ac_objext
23931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23932   (eval $ac_compile) 2>conftest.er1
23933   ac_status=$?
23934   grep -v '^ *+' conftest.er1 >conftest.err
23935   rm -f conftest.er1
23936   cat conftest.err >&5
23937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938   (exit $ac_status); } &&
23939          { ac_try='test -z "$ac_c_werror_flag"
23940                          || test ! -s conftest.err'
23941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23942   (eval $ac_try) 2>&5
23943   ac_status=$?
23944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945   (exit $ac_status); }; } &&
23946          { ac_try='test -s conftest.$ac_objext'
23947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23948   (eval $ac_try) 2>&5
23949   ac_status=$?
23950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951   (exit $ac_status); }; }; then
23952   ac_cv_header_sys_wait_h=yes
23953 else
23954   echo "$as_me: failed program was:" >&5
23955 sed 's/^/| /' conftest.$ac_ext >&5
23956
23957 ac_cv_header_sys_wait_h=no
23958 fi
23959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23960 fi
23961 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23962 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23963 if test $ac_cv_header_sys_wait_h = yes; then
23964
23965 cat >>confdefs.h <<\_ACEOF
23966 #define HAVE_SYS_WAIT_H 1
23967 _ACEOF
23968
23969 fi
23970
23971 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
23972 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
23973 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
23974   echo $ECHO_N "(cached) $ECHO_C" >&6
23975 else
23976   cat >conftest.$ac_ext <<_ACEOF
23977 /* confdefs.h.  */
23978 _ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h.  */
23982 #include <sys/types.h>
23983 #include <termios.h>
23984 #ifdef TIOCGWINSZ
23985   yes
23986 #endif
23987
23988 _ACEOF
23989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23990   $EGREP "yes" >/dev/null 2>&1; then
23991   ac_cv_sys_tiocgwinsz_in_termios_h=yes
23992 else
23993   ac_cv_sys_tiocgwinsz_in_termios_h=no
23994 fi
23995 rm -f conftest*
23996
23997 fi
23998 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23999 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
24000
24001 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
24002   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
24003 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
24004 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
24005   echo $ECHO_N "(cached) $ECHO_C" >&6
24006 else
24007   cat >conftest.$ac_ext <<_ACEOF
24008 /* confdefs.h.  */
24009 _ACEOF
24010 cat confdefs.h >>conftest.$ac_ext
24011 cat >>conftest.$ac_ext <<_ACEOF
24012 /* end confdefs.h.  */
24013 #include <sys/types.h>
24014 #include <sys/ioctl.h>
24015 #ifdef TIOCGWINSZ
24016   yes
24017 #endif
24018
24019 _ACEOF
24020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24021   $EGREP "yes" >/dev/null 2>&1; then
24022   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
24023 else
24024   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24025 fi
24026 rm -f conftest*
24027
24028 fi
24029 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24030 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24031
24032   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24033
24034 cat >>confdefs.h <<\_ACEOF
24035 #define GWINSZ_IN_SYS_IOCTL 1
24036 _ACEOF
24037
24038   fi
24039 fi
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083
24084
24085
24086
24087
24088
24089
24090
24091 for ac_header in \
24092         arpa/inet.h             \
24093         arpa/nameser.h          \
24094         assert.h                \
24095         bits/types.h            \
24096         conio.h                 \
24097         crypt.h                 \
24098         direct.h                \
24099         errno.h                 \
24100         fcntl.h                 \
24101         filio.h                 \
24102         getopt.h                \
24103         grp.h                   \
24104         io.h                    \
24105         libutil.h               \
24106         limits.h                \
24107         locale.h                \
24108         netinet/tcp.h           \
24109         malloc.h                \
24110         memory.h                \
24111         psap.h                  \
24112         pwd.h                   \
24113         process.h               \
24114         resolv.h                \
24115         sgtty.h                 \
24116         shadow.h                \
24117         stddef.h                \
24118         string.h                \
24119         strings.h               \
24120         sysexits.h              \
24121         sys/file.h              \
24122         sys/filio.h             \
24123         sys/errno.h             \
24124         sys/ioctl.h             \
24125         sys/param.h             \
24126         sys/resource.h          \
24127         sys/select.h            \
24128         sys/socket.h            \
24129         sys/stat.h              \
24130         sys/syslog.h            \
24131         sys/time.h              \
24132         sys/types.h             \
24133         sys/ucred.h             \
24134         sys/uio.h               \
24135         syslog.h                \
24136         termios.h               \
24137         unistd.h                \
24138         utime.h                 \
24139         winsock.h               \
24140         winsock2.h              \
24141
24142 do
24143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24145   echo "$as_me:$LINENO: checking for $ac_header" >&5
24146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24148   echo $ECHO_N "(cached) $ECHO_C" >&6
24149 fi
24150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24152 else
24153   # Is the header compilable?
24154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24156 cat >conftest.$ac_ext <<_ACEOF
24157 /* confdefs.h.  */
24158 _ACEOF
24159 cat confdefs.h >>conftest.$ac_ext
24160 cat >>conftest.$ac_ext <<_ACEOF
24161 /* end confdefs.h.  */
24162 $ac_includes_default
24163 #include <$ac_header>
24164 _ACEOF
24165 rm -f conftest.$ac_objext
24166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24167   (eval $ac_compile) 2>conftest.er1
24168   ac_status=$?
24169   grep -v '^ *+' conftest.er1 >conftest.err
24170   rm -f conftest.er1
24171   cat conftest.err >&5
24172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173   (exit $ac_status); } &&
24174          { ac_try='test -z "$ac_c_werror_flag"
24175                          || test ! -s conftest.err'
24176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24177   (eval $ac_try) 2>&5
24178   ac_status=$?
24179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180   (exit $ac_status); }; } &&
24181          { ac_try='test -s conftest.$ac_objext'
24182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24183   (eval $ac_try) 2>&5
24184   ac_status=$?
24185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186   (exit $ac_status); }; }; then
24187   ac_header_compiler=yes
24188 else
24189   echo "$as_me: failed program was:" >&5
24190 sed 's/^/| /' conftest.$ac_ext >&5
24191
24192 ac_header_compiler=no
24193 fi
24194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24196 echo "${ECHO_T}$ac_header_compiler" >&6
24197
24198 # Is the header present?
24199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24201 cat >conftest.$ac_ext <<_ACEOF
24202 /* confdefs.h.  */
24203 _ACEOF
24204 cat confdefs.h >>conftest.$ac_ext
24205 cat >>conftest.$ac_ext <<_ACEOF
24206 /* end confdefs.h.  */
24207 #include <$ac_header>
24208 _ACEOF
24209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24210   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24211   ac_status=$?
24212   grep -v '^ *+' conftest.er1 >conftest.err
24213   rm -f conftest.er1
24214   cat conftest.err >&5
24215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216   (exit $ac_status); } >/dev/null; then
24217   if test -s conftest.err; then
24218     ac_cpp_err=$ac_c_preproc_warn_flag
24219     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24220   else
24221     ac_cpp_err=
24222   fi
24223 else
24224   ac_cpp_err=yes
24225 fi
24226 if test -z "$ac_cpp_err"; then
24227   ac_header_preproc=yes
24228 else
24229   echo "$as_me: failed program was:" >&5
24230 sed 's/^/| /' conftest.$ac_ext >&5
24231
24232   ac_header_preproc=no
24233 fi
24234 rm -f conftest.err conftest.$ac_ext
24235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24236 echo "${ECHO_T}$ac_header_preproc" >&6
24237
24238 # So?  What about this header?
24239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24240   yes:no: )
24241     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24245     ac_header_preproc=yes
24246     ;;
24247   no:yes:* )
24248     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24250     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24251 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24252     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24254     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24255 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24258     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24260     (
24261       cat <<\_ASBOX
24262 ## ------------------------------------------ ##
24263 ## Report this to the AC_PACKAGE_NAME lists.  ##
24264 ## ------------------------------------------ ##
24265 _ASBOX
24266     ) |
24267       sed "s/^/$as_me: WARNING:     /" >&2
24268     ;;
24269 esac
24270 echo "$as_me:$LINENO: checking for $ac_header" >&5
24271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24273   echo $ECHO_N "(cached) $ECHO_C" >&6
24274 else
24275   eval "$as_ac_Header=\$ac_header_preproc"
24276 fi
24277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24279
24280 fi
24281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24282   cat >>confdefs.h <<_ACEOF
24283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24284 _ACEOF
24285
24286 fi
24287
24288 done
24289
24290
24291
24292
24293
24294 for ac_func in sigaction sigset
24295 do
24296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24297 echo "$as_me:$LINENO: checking for $ac_func" >&5
24298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24299 if eval "test \"\${$as_ac_var+set}\" = set"; then
24300   echo $ECHO_N "(cached) $ECHO_C" >&6
24301 else
24302   cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h.  */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h.  */
24308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24310 #define $ac_func innocuous_$ac_func
24311
24312 /* System header to define __stub macros and hopefully few prototypes,
24313     which can conflict with char $ac_func (); below.
24314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24315     <limits.h> exists even on freestanding compilers.  */
24316
24317 #ifdef __STDC__
24318 # include <limits.h>
24319 #else
24320 # include <assert.h>
24321 #endif
24322
24323 #undef $ac_func
24324
24325 /* Override any gcc2 internal prototype to avoid an error.  */
24326 #ifdef __cplusplus
24327 extern "C"
24328 {
24329 #endif
24330 /* We use char because int might match the return type of a gcc2
24331    builtin and then its argument prototype would still apply.  */
24332 char $ac_func ();
24333 /* The GNU C library defines this for functions which it implements
24334     to always fail with ENOSYS.  Some functions are actually named
24335     something starting with __ and the normal name is an alias.  */
24336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24337 choke me
24338 #else
24339 char (*f) () = $ac_func;
24340 #endif
24341 #ifdef __cplusplus
24342 }
24343 #endif
24344
24345 int
24346 main ()
24347 {
24348 return f != $ac_func;
24349   ;
24350   return 0;
24351 }
24352 _ACEOF
24353 rm -f conftest.$ac_objext conftest$ac_exeext
24354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24355   (eval $ac_link) 2>conftest.er1
24356   ac_status=$?
24357   grep -v '^ *+' conftest.er1 >conftest.err
24358   rm -f conftest.er1
24359   cat conftest.err >&5
24360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361   (exit $ac_status); } &&
24362          { ac_try='test -z "$ac_c_werror_flag"
24363                          || test ! -s conftest.err'
24364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24365   (eval $ac_try) 2>&5
24366   ac_status=$?
24367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368   (exit $ac_status); }; } &&
24369          { ac_try='test -s conftest$ac_exeext'
24370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24371   (eval $ac_try) 2>&5
24372   ac_status=$?
24373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374   (exit $ac_status); }; }; then
24375   eval "$as_ac_var=yes"
24376 else
24377   echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24379
24380 eval "$as_ac_var=no"
24381 fi
24382 rm -f conftest.err conftest.$ac_objext \
24383       conftest$ac_exeext conftest.$ac_ext
24384 fi
24385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24387 if test `eval echo '${'$as_ac_var'}'` = yes; then
24388   cat >>confdefs.h <<_ACEOF
24389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24390 _ACEOF
24391
24392 fi
24393 done
24394
24395
24396 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24397
24398 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24399 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24400 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24401   echo $ECHO_N "(cached) $ECHO_C" >&6
24402 else
24403   ac_check_lib_save_LIBS=$LIBS
24404 LIBS="-lV3  $LIBS"
24405 cat >conftest.$ac_ext <<_ACEOF
24406 /* confdefs.h.  */
24407 _ACEOF
24408 cat confdefs.h >>conftest.$ac_ext
24409 cat >>conftest.$ac_ext <<_ACEOF
24410 /* end confdefs.h.  */
24411
24412 /* Override any gcc2 internal prototype to avoid an error.  */
24413 #ifdef __cplusplus
24414 extern "C"
24415 #endif
24416 /* We use char because int might match the return type of a gcc2
24417    builtin and then its argument prototype would still apply.  */
24418 char sigset ();
24419 int
24420 main ()
24421 {
24422 sigset ();
24423   ;
24424   return 0;
24425 }
24426 _ACEOF
24427 rm -f conftest.$ac_objext conftest$ac_exeext
24428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24429   (eval $ac_link) 2>conftest.er1
24430   ac_status=$?
24431   grep -v '^ *+' conftest.er1 >conftest.err
24432   rm -f conftest.er1
24433   cat conftest.err >&5
24434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435   (exit $ac_status); } &&
24436          { ac_try='test -z "$ac_c_werror_flag"
24437                          || test ! -s conftest.err'
24438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24439   (eval $ac_try) 2>&5
24440   ac_status=$?
24441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442   (exit $ac_status); }; } &&
24443          { ac_try='test -s conftest$ac_exeext'
24444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24445   (eval $ac_try) 2>&5
24446   ac_status=$?
24447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448   (exit $ac_status); }; }; then
24449   ac_cv_lib_V3_sigset=yes
24450 else
24451   echo "$as_me: failed program was:" >&5
24452 sed 's/^/| /' conftest.$ac_ext >&5
24453
24454 ac_cv_lib_V3_sigset=no
24455 fi
24456 rm -f conftest.err conftest.$ac_objext \
24457       conftest$ac_exeext conftest.$ac_ext
24458 LIBS=$ac_check_lib_save_LIBS
24459 fi
24460 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24461 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24462 if test $ac_cv_lib_V3_sigset = yes; then
24463   cat >>confdefs.h <<_ACEOF
24464 #define HAVE_LIBV3 1
24465 _ACEOF
24466
24467   LIBS="-lV3 $LIBS"
24468
24469 fi
24470
24471 fi
24472
24473 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24474 echo "$as_me:$LINENO: checking for winsock" >&5
24475 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24476 if test "${ol_cv_winsock+set}" = set; then
24477   echo $ECHO_N "(cached) $ECHO_C" >&6
24478 else
24479   save_LIBS="$LIBS"
24480 for curlib in ws2_32 wsock32; do
24481         LIBS="$LIBS -l$curlib"
24482         cat >conftest.$ac_ext <<_ACEOF
24483 /* confdefs.h.  */
24484 _ACEOF
24485 cat confdefs.h >>conftest.$ac_ext
24486 cat >>conftest.$ac_ext <<_ACEOF
24487 /* end confdefs.h.  */
24488 #include <winsock.h>
24489
24490 int
24491 main ()
24492 {
24493
24494                         socket(0,0,0);
24495                         select(0,NULL,NULL,NULL,NULL);
24496                         closesocket(0);
24497                         gethostname(NULL,0);
24498
24499   ;
24500   return 0;
24501 }
24502 _ACEOF
24503 rm -f conftest.$ac_objext conftest$ac_exeext
24504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24505   (eval $ac_link) 2>conftest.er1
24506   ac_status=$?
24507   grep -v '^ *+' conftest.er1 >conftest.err
24508   rm -f conftest.er1
24509   cat conftest.err >&5
24510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511   (exit $ac_status); } &&
24512          { ac_try='test -z "$ac_c_werror_flag"
24513                          || test ! -s conftest.err'
24514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24515   (eval $ac_try) 2>&5
24516   ac_status=$?
24517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518   (exit $ac_status); }; } &&
24519          { ac_try='test -s conftest$ac_exeext'
24520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24521   (eval $ac_try) 2>&5
24522   ac_status=$?
24523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524   (exit $ac_status); }; }; then
24525   ol_cv_winsock=yes
24526 else
24527   echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.$ac_ext >&5
24529
24530 ol_cv_winsock=no
24531 fi
24532 rm -f conftest.err conftest.$ac_objext \
24533       conftest$ac_exeext conftest.$ac_ext
24534
24535         if test $ol_cv_winsock = yes; then
24536
24537 cat >>confdefs.h <<\_ACEOF
24538 #define HAVE_WINSOCK 1
24539 _ACEOF
24540
24541                 ac_cv_func_socket=yes
24542                 ac_cv_func_select=yes
24543                 ac_cv_func_closesocket=yes
24544                 ac_cv_func_gethostname=yes
24545                 if test $curlib = ws2_32; then
24546                         ol_cv_winsock=winsock2
24547
24548 cat >>confdefs.h <<\_ACEOF
24549 #define HAVE_WINSOCK2 1
24550 _ACEOF
24551
24552                 fi
24553                 break
24554         fi
24555         LIBS="$save_LIBS"
24556 done
24557 fi
24558 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24559 echo "${ECHO_T}$ol_cv_winsock" >&6
24560 fi
24561
24562
24563 echo "$as_me:$LINENO: checking for socket" >&5
24564 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24565 if test "${ac_cv_func_socket+set}" = set; then
24566   echo $ECHO_N "(cached) $ECHO_C" >&6
24567 else
24568   cat >conftest.$ac_ext <<_ACEOF
24569 /* confdefs.h.  */
24570 _ACEOF
24571 cat confdefs.h >>conftest.$ac_ext
24572 cat >>conftest.$ac_ext <<_ACEOF
24573 /* end confdefs.h.  */
24574 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24576 #define socket innocuous_socket
24577
24578 /* System header to define __stub macros and hopefully few prototypes,
24579     which can conflict with char socket (); below.
24580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24581     <limits.h> exists even on freestanding compilers.  */
24582
24583 #ifdef __STDC__
24584 # include <limits.h>
24585 #else
24586 # include <assert.h>
24587 #endif
24588
24589 #undef socket
24590
24591 /* Override any gcc2 internal prototype to avoid an error.  */
24592 #ifdef __cplusplus
24593 extern "C"
24594 {
24595 #endif
24596 /* We use char because int might match the return type of a gcc2
24597    builtin and then its argument prototype would still apply.  */
24598 char socket ();
24599 /* The GNU C library defines this for functions which it implements
24600     to always fail with ENOSYS.  Some functions are actually named
24601     something starting with __ and the normal name is an alias.  */
24602 #if defined (__stub_socket) || defined (__stub___socket)
24603 choke me
24604 #else
24605 char (*f) () = socket;
24606 #endif
24607 #ifdef __cplusplus
24608 }
24609 #endif
24610
24611 int
24612 main ()
24613 {
24614 return f != socket;
24615   ;
24616   return 0;
24617 }
24618 _ACEOF
24619 rm -f conftest.$ac_objext conftest$ac_exeext
24620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24621   (eval $ac_link) 2>conftest.er1
24622   ac_status=$?
24623   grep -v '^ *+' conftest.er1 >conftest.err
24624   rm -f conftest.er1
24625   cat conftest.err >&5
24626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627   (exit $ac_status); } &&
24628          { ac_try='test -z "$ac_c_werror_flag"
24629                          || test ! -s conftest.err'
24630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24631   (eval $ac_try) 2>&5
24632   ac_status=$?
24633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634   (exit $ac_status); }; } &&
24635          { ac_try='test -s conftest$ac_exeext'
24636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24637   (eval $ac_try) 2>&5
24638   ac_status=$?
24639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640   (exit $ac_status); }; }; then
24641   ac_cv_func_socket=yes
24642 else
24643   echo "$as_me: failed program was:" >&5
24644 sed 's/^/| /' conftest.$ac_ext >&5
24645
24646 ac_cv_func_socket=no
24647 fi
24648 rm -f conftest.err conftest.$ac_objext \
24649       conftest$ac_exeext conftest.$ac_ext
24650 fi
24651 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24652 echo "${ECHO_T}$ac_cv_func_socket" >&6
24653 if test $ac_cv_func_socket = yes; then
24654   :
24655 else
24656
24657
24658 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24659 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24660 if test "${ac_cv_lib_socket_main+set}" = set; then
24661   echo $ECHO_N "(cached) $ECHO_C" >&6
24662 else
24663   ac_check_lib_save_LIBS=$LIBS
24664 LIBS="-lsocket  $LIBS"
24665 cat >conftest.$ac_ext <<_ACEOF
24666 /* confdefs.h.  */
24667 _ACEOF
24668 cat confdefs.h >>conftest.$ac_ext
24669 cat >>conftest.$ac_ext <<_ACEOF
24670 /* end confdefs.h.  */
24671
24672
24673 int
24674 main ()
24675 {
24676 main ();
24677   ;
24678   return 0;
24679 }
24680 _ACEOF
24681 rm -f conftest.$ac_objext conftest$ac_exeext
24682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24683   (eval $ac_link) 2>conftest.er1
24684   ac_status=$?
24685   grep -v '^ *+' conftest.er1 >conftest.err
24686   rm -f conftest.er1
24687   cat conftest.err >&5
24688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689   (exit $ac_status); } &&
24690          { ac_try='test -z "$ac_c_werror_flag"
24691                          || test ! -s conftest.err'
24692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24693   (eval $ac_try) 2>&5
24694   ac_status=$?
24695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24696   (exit $ac_status); }; } &&
24697          { ac_try='test -s conftest$ac_exeext'
24698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24699   (eval $ac_try) 2>&5
24700   ac_status=$?
24701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702   (exit $ac_status); }; }; then
24703   ac_cv_lib_socket_main=yes
24704 else
24705   echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24707
24708 ac_cv_lib_socket_main=no
24709 fi
24710 rm -f conftest.err conftest.$ac_objext \
24711       conftest$ac_exeext conftest.$ac_ext
24712 LIBS=$ac_check_lib_save_LIBS
24713 fi
24714 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24715 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24716 if test $ac_cv_lib_socket_main = yes; then
24717   cat >>confdefs.h <<_ACEOF
24718 #define HAVE_LIBSOCKET 1
24719 _ACEOF
24720
24721   LIBS="-lsocket $LIBS"
24722
24723 fi
24724
24725
24726 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24727 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24728 if test "${ac_cv_lib_net_main+set}" = set; then
24729   echo $ECHO_N "(cached) $ECHO_C" >&6
24730 else
24731   ac_check_lib_save_LIBS=$LIBS
24732 LIBS="-lnet  $LIBS"
24733 cat >conftest.$ac_ext <<_ACEOF
24734 /* confdefs.h.  */
24735 _ACEOF
24736 cat confdefs.h >>conftest.$ac_ext
24737 cat >>conftest.$ac_ext <<_ACEOF
24738 /* end confdefs.h.  */
24739
24740
24741 int
24742 main ()
24743 {
24744 main ();
24745   ;
24746   return 0;
24747 }
24748 _ACEOF
24749 rm -f conftest.$ac_objext conftest$ac_exeext
24750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24751   (eval $ac_link) 2>conftest.er1
24752   ac_status=$?
24753   grep -v '^ *+' conftest.er1 >conftest.err
24754   rm -f conftest.er1
24755   cat conftest.err >&5
24756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757   (exit $ac_status); } &&
24758          { ac_try='test -z "$ac_c_werror_flag"
24759                          || test ! -s conftest.err'
24760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24761   (eval $ac_try) 2>&5
24762   ac_status=$?
24763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764   (exit $ac_status); }; } &&
24765          { ac_try='test -s conftest$ac_exeext'
24766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24767   (eval $ac_try) 2>&5
24768   ac_status=$?
24769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770   (exit $ac_status); }; }; then
24771   ac_cv_lib_net_main=yes
24772 else
24773   echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24775
24776 ac_cv_lib_net_main=no
24777 fi
24778 rm -f conftest.err conftest.$ac_objext \
24779       conftest$ac_exeext conftest.$ac_ext
24780 LIBS=$ac_check_lib_save_LIBS
24781 fi
24782 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24783 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24784 if test $ac_cv_lib_net_main = yes; then
24785   cat >>confdefs.h <<_ACEOF
24786 #define HAVE_LIBNET 1
24787 _ACEOF
24788
24789   LIBS="-lnet $LIBS"
24790
24791 fi
24792
24793
24794 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24795 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24796 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24797   echo $ECHO_N "(cached) $ECHO_C" >&6
24798 else
24799   ac_check_lib_save_LIBS=$LIBS
24800 LIBS="-lnsl_s  $LIBS"
24801 cat >conftest.$ac_ext <<_ACEOF
24802 /* confdefs.h.  */
24803 _ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h.  */
24807
24808
24809 int
24810 main ()
24811 {
24812 main ();
24813   ;
24814   return 0;
24815 }
24816 _ACEOF
24817 rm -f conftest.$ac_objext conftest$ac_exeext
24818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24819   (eval $ac_link) 2>conftest.er1
24820   ac_status=$?
24821   grep -v '^ *+' conftest.er1 >conftest.err
24822   rm -f conftest.er1
24823   cat conftest.err >&5
24824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825   (exit $ac_status); } &&
24826          { ac_try='test -z "$ac_c_werror_flag"
24827                          || test ! -s conftest.err'
24828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24829   (eval $ac_try) 2>&5
24830   ac_status=$?
24831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832   (exit $ac_status); }; } &&
24833          { ac_try='test -s conftest$ac_exeext'
24834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835   (eval $ac_try) 2>&5
24836   ac_status=$?
24837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838   (exit $ac_status); }; }; then
24839   ac_cv_lib_nsl_s_main=yes
24840 else
24841   echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24843
24844 ac_cv_lib_nsl_s_main=no
24845 fi
24846 rm -f conftest.err conftest.$ac_objext \
24847       conftest$ac_exeext conftest.$ac_ext
24848 LIBS=$ac_check_lib_save_LIBS
24849 fi
24850 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24851 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24852 if test $ac_cv_lib_nsl_s_main = yes; then
24853   cat >>confdefs.h <<_ACEOF
24854 #define HAVE_LIBNSL_S 1
24855 _ACEOF
24856
24857   LIBS="-lnsl_s $LIBS"
24858
24859 fi
24860
24861
24862 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24863 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24864 if test "${ac_cv_lib_nsl_main+set}" = set; then
24865   echo $ECHO_N "(cached) $ECHO_C" >&6
24866 else
24867   ac_check_lib_save_LIBS=$LIBS
24868 LIBS="-lnsl  $LIBS"
24869 cat >conftest.$ac_ext <<_ACEOF
24870 /* confdefs.h.  */
24871 _ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h.  */
24875
24876
24877 int
24878 main ()
24879 {
24880 main ();
24881   ;
24882   return 0;
24883 }
24884 _ACEOF
24885 rm -f conftest.$ac_objext conftest$ac_exeext
24886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24887   (eval $ac_link) 2>conftest.er1
24888   ac_status=$?
24889   grep -v '^ *+' conftest.er1 >conftest.err
24890   rm -f conftest.er1
24891   cat conftest.err >&5
24892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893   (exit $ac_status); } &&
24894          { ac_try='test -z "$ac_c_werror_flag"
24895                          || test ! -s conftest.err'
24896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24897   (eval $ac_try) 2>&5
24898   ac_status=$?
24899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900   (exit $ac_status); }; } &&
24901          { ac_try='test -s conftest$ac_exeext'
24902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24903   (eval $ac_try) 2>&5
24904   ac_status=$?
24905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906   (exit $ac_status); }; }; then
24907   ac_cv_lib_nsl_main=yes
24908 else
24909   echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.$ac_ext >&5
24911
24912 ac_cv_lib_nsl_main=no
24913 fi
24914 rm -f conftest.err conftest.$ac_objext \
24915       conftest$ac_exeext conftest.$ac_ext
24916 LIBS=$ac_check_lib_save_LIBS
24917 fi
24918 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24919 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24920 if test $ac_cv_lib_nsl_main = yes; then
24921   cat >>confdefs.h <<_ACEOF
24922 #define HAVE_LIBNSL 1
24923 _ACEOF
24924
24925   LIBS="-lnsl $LIBS"
24926
24927 fi
24928
24929
24930 echo "$as_me:$LINENO: checking for socket in -linet" >&5
24931 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
24932 if test "${ac_cv_lib_inet_socket+set}" = set; then
24933   echo $ECHO_N "(cached) $ECHO_C" >&6
24934 else
24935   ac_check_lib_save_LIBS=$LIBS
24936 LIBS="-linet  $LIBS"
24937 cat >conftest.$ac_ext <<_ACEOF
24938 /* confdefs.h.  */
24939 _ACEOF
24940 cat confdefs.h >>conftest.$ac_ext
24941 cat >>conftest.$ac_ext <<_ACEOF
24942 /* end confdefs.h.  */
24943
24944 /* Override any gcc2 internal prototype to avoid an error.  */
24945 #ifdef __cplusplus
24946 extern "C"
24947 #endif
24948 /* We use char because int might match the return type of a gcc2
24949    builtin and then its argument prototype would still apply.  */
24950 char socket ();
24951 int
24952 main ()
24953 {
24954 socket ();
24955   ;
24956   return 0;
24957 }
24958 _ACEOF
24959 rm -f conftest.$ac_objext conftest$ac_exeext
24960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24961   (eval $ac_link) 2>conftest.er1
24962   ac_status=$?
24963   grep -v '^ *+' conftest.er1 >conftest.err
24964   rm -f conftest.er1
24965   cat conftest.err >&5
24966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967   (exit $ac_status); } &&
24968          { ac_try='test -z "$ac_c_werror_flag"
24969                          || test ! -s conftest.err'
24970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24971   (eval $ac_try) 2>&5
24972   ac_status=$?
24973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974   (exit $ac_status); }; } &&
24975          { ac_try='test -s conftest$ac_exeext'
24976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24977   (eval $ac_try) 2>&5
24978   ac_status=$?
24979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980   (exit $ac_status); }; }; then
24981   ac_cv_lib_inet_socket=yes
24982 else
24983   echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24985
24986 ac_cv_lib_inet_socket=no
24987 fi
24988 rm -f conftest.err conftest.$ac_objext \
24989       conftest$ac_exeext conftest.$ac_ext
24990 LIBS=$ac_check_lib_save_LIBS
24991 fi
24992 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
24993 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
24994 if test $ac_cv_lib_inet_socket = yes; then
24995   cat >>confdefs.h <<_ACEOF
24996 #define HAVE_LIBINET 1
24997 _ACEOF
24998
24999   LIBS="-linet $LIBS"
25000
25001 fi
25002
25003
25004 echo "$as_me:$LINENO: checking for main in -lgen" >&5
25005 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
25006 if test "${ac_cv_lib_gen_main+set}" = set; then
25007   echo $ECHO_N "(cached) $ECHO_C" >&6
25008 else
25009   ac_check_lib_save_LIBS=$LIBS
25010 LIBS="-lgen  $LIBS"
25011 cat >conftest.$ac_ext <<_ACEOF
25012 /* confdefs.h.  */
25013 _ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h.  */
25017
25018
25019 int
25020 main ()
25021 {
25022 main ();
25023   ;
25024   return 0;
25025 }
25026 _ACEOF
25027 rm -f conftest.$ac_objext conftest$ac_exeext
25028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25029   (eval $ac_link) 2>conftest.er1
25030   ac_status=$?
25031   grep -v '^ *+' conftest.er1 >conftest.err
25032   rm -f conftest.er1
25033   cat conftest.err >&5
25034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035   (exit $ac_status); } &&
25036          { ac_try='test -z "$ac_c_werror_flag"
25037                          || test ! -s conftest.err'
25038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25039   (eval $ac_try) 2>&5
25040   ac_status=$?
25041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042   (exit $ac_status); }; } &&
25043          { ac_try='test -s conftest$ac_exeext'
25044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25045   (eval $ac_try) 2>&5
25046   ac_status=$?
25047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048   (exit $ac_status); }; }; then
25049   ac_cv_lib_gen_main=yes
25050 else
25051   echo "$as_me: failed program was:" >&5
25052 sed 's/^/| /' conftest.$ac_ext >&5
25053
25054 ac_cv_lib_gen_main=no
25055 fi
25056 rm -f conftest.err conftest.$ac_objext \
25057       conftest$ac_exeext conftest.$ac_ext
25058 LIBS=$ac_check_lib_save_LIBS
25059 fi
25060 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25061 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25062 if test $ac_cv_lib_gen_main = yes; then
25063   cat >>confdefs.h <<_ACEOF
25064 #define HAVE_LIBGEN 1
25065 _ACEOF
25066
25067   LIBS="-lgen $LIBS"
25068
25069 fi
25070
25071
25072 fi
25073
25074
25075 echo "$as_me:$LINENO: checking for select" >&5
25076 echo $ECHO_N "checking for select... $ECHO_C" >&6
25077 if test "${ac_cv_func_select+set}" = set; then
25078   echo $ECHO_N "(cached) $ECHO_C" >&6
25079 else
25080   cat >conftest.$ac_ext <<_ACEOF
25081 /* confdefs.h.  */
25082 _ACEOF
25083 cat confdefs.h >>conftest.$ac_ext
25084 cat >>conftest.$ac_ext <<_ACEOF
25085 /* end confdefs.h.  */
25086 /* Define select to an innocuous variant, in case <limits.h> declares select.
25087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25088 #define select innocuous_select
25089
25090 /* System header to define __stub macros and hopefully few prototypes,
25091     which can conflict with char select (); below.
25092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25093     <limits.h> exists even on freestanding compilers.  */
25094
25095 #ifdef __STDC__
25096 # include <limits.h>
25097 #else
25098 # include <assert.h>
25099 #endif
25100
25101 #undef select
25102
25103 /* Override any gcc2 internal prototype to avoid an error.  */
25104 #ifdef __cplusplus
25105 extern "C"
25106 {
25107 #endif
25108 /* We use char because int might match the return type of a gcc2
25109    builtin and then its argument prototype would still apply.  */
25110 char select ();
25111 /* The GNU C library defines this for functions which it implements
25112     to always fail with ENOSYS.  Some functions are actually named
25113     something starting with __ and the normal name is an alias.  */
25114 #if defined (__stub_select) || defined (__stub___select)
25115 choke me
25116 #else
25117 char (*f) () = select;
25118 #endif
25119 #ifdef __cplusplus
25120 }
25121 #endif
25122
25123 int
25124 main ()
25125 {
25126 return f != select;
25127   ;
25128   return 0;
25129 }
25130 _ACEOF
25131 rm -f conftest.$ac_objext conftest$ac_exeext
25132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25133   (eval $ac_link) 2>conftest.er1
25134   ac_status=$?
25135   grep -v '^ *+' conftest.er1 >conftest.err
25136   rm -f conftest.er1
25137   cat conftest.err >&5
25138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139   (exit $ac_status); } &&
25140          { ac_try='test -z "$ac_c_werror_flag"
25141                          || test ! -s conftest.err'
25142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25143   (eval $ac_try) 2>&5
25144   ac_status=$?
25145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146   (exit $ac_status); }; } &&
25147          { ac_try='test -s conftest$ac_exeext'
25148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25149   (eval $ac_try) 2>&5
25150   ac_status=$?
25151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152   (exit $ac_status); }; }; then
25153   ac_cv_func_select=yes
25154 else
25155   echo "$as_me: failed program was:" >&5
25156 sed 's/^/| /' conftest.$ac_ext >&5
25157
25158 ac_cv_func_select=no
25159 fi
25160 rm -f conftest.err conftest.$ac_objext \
25161       conftest$ac_exeext conftest.$ac_ext
25162 fi
25163 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25164 echo "${ECHO_T}$ac_cv_func_select" >&6
25165 if test $ac_cv_func_select = yes; then
25166   :
25167 else
25168   { { echo "$as_me:$LINENO: error: select() required." >&5
25169 echo "$as_me: error: select() required." >&2;}
25170    { (exit 1); exit 1; }; }
25171 fi
25172
25173
25174 if test "${ac_cv_header_winsock_h}" != yes; then
25175
25176
25177 for ac_header in sys/select.h sys/socket.h
25178 do
25179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25181   echo "$as_me:$LINENO: checking for $ac_header" >&5
25182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25184   echo $ECHO_N "(cached) $ECHO_C" >&6
25185 fi
25186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25188 else
25189   # Is the header compilable?
25190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25192 cat >conftest.$ac_ext <<_ACEOF
25193 /* confdefs.h.  */
25194 _ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h.  */
25198 $ac_includes_default
25199 #include <$ac_header>
25200 _ACEOF
25201 rm -f conftest.$ac_objext
25202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25203   (eval $ac_compile) 2>conftest.er1
25204   ac_status=$?
25205   grep -v '^ *+' conftest.er1 >conftest.err
25206   rm -f conftest.er1
25207   cat conftest.err >&5
25208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209   (exit $ac_status); } &&
25210          { ac_try='test -z "$ac_c_werror_flag"
25211                          || test ! -s conftest.err'
25212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25213   (eval $ac_try) 2>&5
25214   ac_status=$?
25215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216   (exit $ac_status); }; } &&
25217          { ac_try='test -s conftest.$ac_objext'
25218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219   (eval $ac_try) 2>&5
25220   ac_status=$?
25221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222   (exit $ac_status); }; }; then
25223   ac_header_compiler=yes
25224 else
25225   echo "$as_me: failed program was:" >&5
25226 sed 's/^/| /' conftest.$ac_ext >&5
25227
25228 ac_header_compiler=no
25229 fi
25230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25232 echo "${ECHO_T}$ac_header_compiler" >&6
25233
25234 # Is the header present?
25235 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25237 cat >conftest.$ac_ext <<_ACEOF
25238 /* confdefs.h.  */
25239 _ACEOF
25240 cat confdefs.h >>conftest.$ac_ext
25241 cat >>conftest.$ac_ext <<_ACEOF
25242 /* end confdefs.h.  */
25243 #include <$ac_header>
25244 _ACEOF
25245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25247   ac_status=$?
25248   grep -v '^ *+' conftest.er1 >conftest.err
25249   rm -f conftest.er1
25250   cat conftest.err >&5
25251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252   (exit $ac_status); } >/dev/null; then
25253   if test -s conftest.err; then
25254     ac_cpp_err=$ac_c_preproc_warn_flag
25255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25256   else
25257     ac_cpp_err=
25258   fi
25259 else
25260   ac_cpp_err=yes
25261 fi
25262 if test -z "$ac_cpp_err"; then
25263   ac_header_preproc=yes
25264 else
25265   echo "$as_me: failed program was:" >&5
25266 sed 's/^/| /' conftest.$ac_ext >&5
25267
25268   ac_header_preproc=no
25269 fi
25270 rm -f conftest.err conftest.$ac_ext
25271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25272 echo "${ECHO_T}$ac_header_preproc" >&6
25273
25274 # So?  What about this header?
25275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25276   yes:no: )
25277     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25281     ac_header_preproc=yes
25282     ;;
25283   no:yes:* )
25284     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25286     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25287 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25288     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25290     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25291 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25294     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25296     (
25297       cat <<\_ASBOX
25298 ## ------------------------------------------ ##
25299 ## Report this to the AC_PACKAGE_NAME lists.  ##
25300 ## ------------------------------------------ ##
25301 _ASBOX
25302     ) |
25303       sed "s/^/$as_me: WARNING:     /" >&2
25304     ;;
25305 esac
25306 echo "$as_me:$LINENO: checking for $ac_header" >&5
25307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25309   echo $ECHO_N "(cached) $ECHO_C" >&6
25310 else
25311   eval "$as_ac_Header=\$ac_header_preproc"
25312 fi
25313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25315
25316 fi
25317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25318   cat >>confdefs.h <<_ACEOF
25319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25320 _ACEOF
25321
25322 fi
25323
25324 done
25325
25326 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25327 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25328 if test "${ac_cv_func_select_args+set}" = set; then
25329   echo $ECHO_N "(cached) $ECHO_C" >&6
25330 else
25331   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25332  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25333   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25334    cat >conftest.$ac_ext <<_ACEOF
25335 /* confdefs.h.  */
25336 _ACEOF
25337 cat confdefs.h >>conftest.$ac_ext
25338 cat >>conftest.$ac_ext <<_ACEOF
25339 /* end confdefs.h.  */
25340 $ac_includes_default
25341 #if HAVE_SYS_SELECT_H
25342 # include <sys/select.h>
25343 #endif
25344 #if HAVE_SYS_SOCKET_H
25345 # include <sys/socket.h>
25346 #endif
25347
25348 int
25349 main ()
25350 {
25351 extern int select ($ac_arg1,
25352                                             $ac_arg234, $ac_arg234, $ac_arg234,
25353                                             $ac_arg5);
25354   ;
25355   return 0;
25356 }
25357 _ACEOF
25358 rm -f conftest.$ac_objext
25359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25360   (eval $ac_compile) 2>conftest.er1
25361   ac_status=$?
25362   grep -v '^ *+' conftest.er1 >conftest.err
25363   rm -f conftest.er1
25364   cat conftest.err >&5
25365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366   (exit $ac_status); } &&
25367          { ac_try='test -z "$ac_c_werror_flag"
25368                          || test ! -s conftest.err'
25369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25370   (eval $ac_try) 2>&5
25371   ac_status=$?
25372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373   (exit $ac_status); }; } &&
25374          { ac_try='test -s conftest.$ac_objext'
25375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25376   (eval $ac_try) 2>&5
25377   ac_status=$?
25378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379   (exit $ac_status); }; }; then
25380   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25381 else
25382   echo "$as_me: failed program was:" >&5
25383 sed 's/^/| /' conftest.$ac_ext >&5
25384
25385 fi
25386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25387   done
25388  done
25389 done
25390 # Provide a safe default value.
25391 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25392
25393 fi
25394 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25395 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25396 ac_save_IFS=$IFS; IFS=','
25397 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25398 IFS=$ac_save_IFS
25399 shift
25400
25401 cat >>confdefs.h <<_ACEOF
25402 #define SELECT_TYPE_ARG1 $1
25403 _ACEOF
25404
25405
25406 cat >>confdefs.h <<_ACEOF
25407 #define SELECT_TYPE_ARG234 ($2)
25408 _ACEOF
25409
25410
25411 cat >>confdefs.h <<_ACEOF
25412 #define SELECT_TYPE_ARG5 ($3)
25413 _ACEOF
25414
25415 rm -f conftest*
25416
25417 fi
25418
25419
25420
25421 for ac_func in poll
25422 do
25423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25424 echo "$as_me:$LINENO: checking for $ac_func" >&5
25425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25426 if eval "test \"\${$as_ac_var+set}\" = set"; then
25427   echo $ECHO_N "(cached) $ECHO_C" >&6
25428 else
25429   cat >conftest.$ac_ext <<_ACEOF
25430 /* confdefs.h.  */
25431 _ACEOF
25432 cat confdefs.h >>conftest.$ac_ext
25433 cat >>conftest.$ac_ext <<_ACEOF
25434 /* end confdefs.h.  */
25435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25437 #define $ac_func innocuous_$ac_func
25438
25439 /* System header to define __stub macros and hopefully few prototypes,
25440     which can conflict with char $ac_func (); below.
25441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25442     <limits.h> exists even on freestanding compilers.  */
25443
25444 #ifdef __STDC__
25445 # include <limits.h>
25446 #else
25447 # include <assert.h>
25448 #endif
25449
25450 #undef $ac_func
25451
25452 /* Override any gcc2 internal prototype to avoid an error.  */
25453 #ifdef __cplusplus
25454 extern "C"
25455 {
25456 #endif
25457 /* We use char because int might match the return type of a gcc2
25458    builtin and then its argument prototype would still apply.  */
25459 char $ac_func ();
25460 /* The GNU C library defines this for functions which it implements
25461     to always fail with ENOSYS.  Some functions are actually named
25462     something starting with __ and the normal name is an alias.  */
25463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25464 choke me
25465 #else
25466 char (*f) () = $ac_func;
25467 #endif
25468 #ifdef __cplusplus
25469 }
25470 #endif
25471
25472 int
25473 main ()
25474 {
25475 return f != $ac_func;
25476   ;
25477   return 0;
25478 }
25479 _ACEOF
25480 rm -f conftest.$ac_objext conftest$ac_exeext
25481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25482   (eval $ac_link) 2>conftest.er1
25483   ac_status=$?
25484   grep -v '^ *+' conftest.er1 >conftest.err
25485   rm -f conftest.er1
25486   cat conftest.err >&5
25487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488   (exit $ac_status); } &&
25489          { ac_try='test -z "$ac_c_werror_flag"
25490                          || test ! -s conftest.err'
25491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492   (eval $ac_try) 2>&5
25493   ac_status=$?
25494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495   (exit $ac_status); }; } &&
25496          { ac_try='test -s conftest$ac_exeext'
25497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498   (eval $ac_try) 2>&5
25499   ac_status=$?
25500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501   (exit $ac_status); }; }; then
25502   eval "$as_ac_var=yes"
25503 else
25504   echo "$as_me: failed program was:" >&5
25505 sed 's/^/| /' conftest.$ac_ext >&5
25506
25507 eval "$as_ac_var=no"
25508 fi
25509 rm -f conftest.err conftest.$ac_objext \
25510       conftest$ac_exeext conftest.$ac_ext
25511 fi
25512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25514 if test `eval echo '${'$as_ac_var'}'` = yes; then
25515   cat >>confdefs.h <<_ACEOF
25516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25517 _ACEOF
25518
25519 fi
25520 done
25521
25522
25523 for ac_header in poll.h
25524 do
25525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25527   echo "$as_me:$LINENO: checking for $ac_header" >&5
25528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25530   echo $ECHO_N "(cached) $ECHO_C" >&6
25531 fi
25532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25534 else
25535   # Is the header compilable?
25536 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25538 cat >conftest.$ac_ext <<_ACEOF
25539 /* confdefs.h.  */
25540 _ACEOF
25541 cat confdefs.h >>conftest.$ac_ext
25542 cat >>conftest.$ac_ext <<_ACEOF
25543 /* end confdefs.h.  */
25544 $ac_includes_default
25545 #include <$ac_header>
25546 _ACEOF
25547 rm -f conftest.$ac_objext
25548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25549   (eval $ac_compile) 2>conftest.er1
25550   ac_status=$?
25551   grep -v '^ *+' conftest.er1 >conftest.err
25552   rm -f conftest.er1
25553   cat conftest.err >&5
25554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555   (exit $ac_status); } &&
25556          { ac_try='test -z "$ac_c_werror_flag"
25557                          || test ! -s conftest.err'
25558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25559   (eval $ac_try) 2>&5
25560   ac_status=$?
25561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562   (exit $ac_status); }; } &&
25563          { ac_try='test -s conftest.$ac_objext'
25564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25565   (eval $ac_try) 2>&5
25566   ac_status=$?
25567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568   (exit $ac_status); }; }; then
25569   ac_header_compiler=yes
25570 else
25571   echo "$as_me: failed program was:" >&5
25572 sed 's/^/| /' conftest.$ac_ext >&5
25573
25574 ac_header_compiler=no
25575 fi
25576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25578 echo "${ECHO_T}$ac_header_compiler" >&6
25579
25580 # Is the header present?
25581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25583 cat >conftest.$ac_ext <<_ACEOF
25584 /* confdefs.h.  */
25585 _ACEOF
25586 cat confdefs.h >>conftest.$ac_ext
25587 cat >>conftest.$ac_ext <<_ACEOF
25588 /* end confdefs.h.  */
25589 #include <$ac_header>
25590 _ACEOF
25591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25592   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25593   ac_status=$?
25594   grep -v '^ *+' conftest.er1 >conftest.err
25595   rm -f conftest.er1
25596   cat conftest.err >&5
25597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598   (exit $ac_status); } >/dev/null; then
25599   if test -s conftest.err; then
25600     ac_cpp_err=$ac_c_preproc_warn_flag
25601     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25602   else
25603     ac_cpp_err=
25604   fi
25605 else
25606   ac_cpp_err=yes
25607 fi
25608 if test -z "$ac_cpp_err"; then
25609   ac_header_preproc=yes
25610 else
25611   echo "$as_me: failed program was:" >&5
25612 sed 's/^/| /' conftest.$ac_ext >&5
25613
25614   ac_header_preproc=no
25615 fi
25616 rm -f conftest.err conftest.$ac_ext
25617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25618 echo "${ECHO_T}$ac_header_preproc" >&6
25619
25620 # So?  What about this header?
25621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25622   yes:no: )
25623     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25627     ac_header_preproc=yes
25628     ;;
25629   no:yes:* )
25630     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25632     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25633 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25634     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25636     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25637 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25638     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25640     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25642     (
25643       cat <<\_ASBOX
25644 ## ------------------------------------------ ##
25645 ## Report this to the AC_PACKAGE_NAME lists.  ##
25646 ## ------------------------------------------ ##
25647 _ASBOX
25648     ) |
25649       sed "s/^/$as_me: WARNING:     /" >&2
25650     ;;
25651 esac
25652 echo "$as_me:$LINENO: checking for $ac_header" >&5
25653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25655   echo $ECHO_N "(cached) $ECHO_C" >&6
25656 else
25657   eval "$as_ac_Header=\$ac_header_preproc"
25658 fi
25659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25661
25662 fi
25663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25664   cat >>confdefs.h <<_ACEOF
25665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25666 _ACEOF
25667
25668 fi
25669
25670 done
25671
25672
25673
25674 for ac_header in sys/epoll.h
25675 do
25676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25678   echo "$as_me:$LINENO: checking for $ac_header" >&5
25679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25681   echo $ECHO_N "(cached) $ECHO_C" >&6
25682 fi
25683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25685 else
25686   # Is the header compilable?
25687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25689 cat >conftest.$ac_ext <<_ACEOF
25690 /* confdefs.h.  */
25691 _ACEOF
25692 cat confdefs.h >>conftest.$ac_ext
25693 cat >>conftest.$ac_ext <<_ACEOF
25694 /* end confdefs.h.  */
25695 $ac_includes_default
25696 #include <$ac_header>
25697 _ACEOF
25698 rm -f conftest.$ac_objext
25699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25700   (eval $ac_compile) 2>conftest.er1
25701   ac_status=$?
25702   grep -v '^ *+' conftest.er1 >conftest.err
25703   rm -f conftest.er1
25704   cat conftest.err >&5
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); } &&
25707          { ac_try='test -z "$ac_c_werror_flag"
25708                          || test ! -s conftest.err'
25709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25710   (eval $ac_try) 2>&5
25711   ac_status=$?
25712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713   (exit $ac_status); }; } &&
25714          { ac_try='test -s conftest.$ac_objext'
25715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25716   (eval $ac_try) 2>&5
25717   ac_status=$?
25718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719   (exit $ac_status); }; }; then
25720   ac_header_compiler=yes
25721 else
25722   echo "$as_me: failed program was:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25724
25725 ac_header_compiler=no
25726 fi
25727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25729 echo "${ECHO_T}$ac_header_compiler" >&6
25730
25731 # Is the header present?
25732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25734 cat >conftest.$ac_ext <<_ACEOF
25735 /* confdefs.h.  */
25736 _ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h.  */
25740 #include <$ac_header>
25741 _ACEOF
25742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25743   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25744   ac_status=$?
25745   grep -v '^ *+' conftest.er1 >conftest.err
25746   rm -f conftest.er1
25747   cat conftest.err >&5
25748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749   (exit $ac_status); } >/dev/null; then
25750   if test -s conftest.err; then
25751     ac_cpp_err=$ac_c_preproc_warn_flag
25752     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25753   else
25754     ac_cpp_err=
25755   fi
25756 else
25757   ac_cpp_err=yes
25758 fi
25759 if test -z "$ac_cpp_err"; then
25760   ac_header_preproc=yes
25761 else
25762   echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25764
25765   ac_header_preproc=no
25766 fi
25767 rm -f conftest.err conftest.$ac_ext
25768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25769 echo "${ECHO_T}$ac_header_preproc" >&6
25770
25771 # So?  What about this header?
25772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25773   yes:no: )
25774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25778     ac_header_preproc=yes
25779     ;;
25780   no:yes:* )
25781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25783     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25784 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25785     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25787     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25788 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25791     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25793     (
25794       cat <<\_ASBOX
25795 ## ------------------------------------------ ##
25796 ## Report this to the AC_PACKAGE_NAME lists.  ##
25797 ## ------------------------------------------ ##
25798 _ASBOX
25799     ) |
25800       sed "s/^/$as_me: WARNING:     /" >&2
25801     ;;
25802 esac
25803 echo "$as_me:$LINENO: checking for $ac_header" >&5
25804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25806   echo $ECHO_N "(cached) $ECHO_C" >&6
25807 else
25808   eval "$as_ac_Header=\$ac_header_preproc"
25809 fi
25810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25812
25813 fi
25814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25815   cat >>confdefs.h <<_ACEOF
25816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25817 _ACEOF
25818
25819 fi
25820
25821 done
25822
25823 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25824 echo "$as_me:$LINENO: checking for epoll system call" >&5
25825 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25826 if test "$cross_compiling" = yes; then
25827   echo "$as_me:$LINENO: result: no" >&5
25828 echo "${ECHO_T}no" >&6
25829 else
25830   cat >conftest.$ac_ext <<_ACEOF
25831 /* confdefs.h.  */
25832 _ACEOF
25833 cat confdefs.h >>conftest.$ac_ext
25834 cat >>conftest.$ac_ext <<_ACEOF
25835 /* end confdefs.h.  */
25836 int main(int argc, char *argv)
25837 {
25838         int epfd = epoll_create(256);
25839         exit (epfd == -1 ? 1 : 0);
25840 }
25841 _ACEOF
25842 rm -f conftest$ac_exeext
25843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25844   (eval $ac_link) 2>&5
25845   ac_status=$?
25846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849   (eval $ac_try) 2>&5
25850   ac_status=$?
25851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852   (exit $ac_status); }; }; then
25853   echo "$as_me:$LINENO: result: yes" >&5
25854 echo "${ECHO_T}yes" >&6
25855
25856 cat >>confdefs.h <<\_ACEOF
25857 #define HAVE_EPOLL 1
25858 _ACEOF
25859
25860 else
25861   echo "$as_me: program exited with status $ac_status" >&5
25862 echo "$as_me: failed program was:" >&5
25863 sed 's/^/| /' conftest.$ac_ext >&5
25864
25865 ( exit $ac_status )
25866 echo "$as_me:$LINENO: result: no" >&5
25867 echo "${ECHO_T}no" >&6
25868 fi
25869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25870 fi
25871 fi
25872
25873 # strerror checks
25874 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25875 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
25876 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
25877   echo $ECHO_N "(cached) $ECHO_C" >&6
25878 else
25879
25880         cat >conftest.$ac_ext <<_ACEOF
25881 /* confdefs.h.  */
25882 _ACEOF
25883 cat confdefs.h >>conftest.$ac_ext
25884 cat >>conftest.$ac_ext <<_ACEOF
25885 /* end confdefs.h.  */
25886
25887 #include <stdio.h>
25888 #include <sys/types.h>
25889 #include <errno.h>
25890 #ifdef WINNT
25891 #include <stdlib.h>
25892 #endif
25893 int
25894 main ()
25895 {
25896 char *c = (char *) *sys_errlist
25897   ;
25898   return 0;
25899 }
25900 _ACEOF
25901 rm -f conftest.$ac_objext
25902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25903   (eval $ac_compile) 2>conftest.er1
25904   ac_status=$?
25905   grep -v '^ *+' conftest.er1 >conftest.err
25906   rm -f conftest.er1
25907   cat conftest.err >&5
25908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909   (exit $ac_status); } &&
25910          { ac_try='test -z "$ac_c_werror_flag"
25911                          || test ! -s conftest.err'
25912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25913   (eval $ac_try) 2>&5
25914   ac_status=$?
25915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916   (exit $ac_status); }; } &&
25917          { ac_try='test -s conftest.$ac_objext'
25918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919   (eval $ac_try) 2>&5
25920   ac_status=$?
25921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922   (exit $ac_status); }; }; then
25923   ol_cv_dcl_sys_errlist=yes
25924         ol_cv_have_sys_errlist=yes
25925 else
25926   echo "$as_me: failed program was:" >&5
25927 sed 's/^/| /' conftest.$ac_ext >&5
25928
25929 ol_cv_dcl_sys_errlist=no
25930 fi
25931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25932 fi
25933 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
25934 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
25935 #
25936 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
25937 if test $ol_cv_dcl_sys_errlist = no ; then
25938
25939 cat >>confdefs.h <<\_ACEOF
25940 #define DECL_SYS_ERRLIST 1
25941 _ACEOF
25942
25943
25944         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
25945 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
25946 if test "${ol_cv_have_sys_errlist+set}" = set; then
25947   echo $ECHO_N "(cached) $ECHO_C" >&6
25948 else
25949
25950                 cat >conftest.$ac_ext <<_ACEOF
25951 /* confdefs.h.  */
25952 _ACEOF
25953 cat confdefs.h >>conftest.$ac_ext
25954 cat >>conftest.$ac_ext <<_ACEOF
25955 /* end confdefs.h.  */
25956 #include <errno.h>
25957 int
25958 main ()
25959 {
25960 char *c = (char *) *sys_errlist
25961   ;
25962   return 0;
25963 }
25964 _ACEOF
25965 rm -f conftest.$ac_objext conftest$ac_exeext
25966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25967   (eval $ac_link) 2>conftest.er1
25968   ac_status=$?
25969   grep -v '^ *+' conftest.er1 >conftest.err
25970   rm -f conftest.er1
25971   cat conftest.err >&5
25972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973   (exit $ac_status); } &&
25974          { ac_try='test -z "$ac_c_werror_flag"
25975                          || test ! -s conftest.err'
25976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25977   (eval $ac_try) 2>&5
25978   ac_status=$?
25979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980   (exit $ac_status); }; } &&
25981          { ac_try='test -s conftest$ac_exeext'
25982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25983   (eval $ac_try) 2>&5
25984   ac_status=$?
25985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986   (exit $ac_status); }; }; then
25987   ol_cv_have_sys_errlist=yes
25988 else
25989   echo "$as_me: failed program was:" >&5
25990 sed 's/^/| /' conftest.$ac_ext >&5
25991
25992 ol_cv_have_sys_errlist=no
25993 fi
25994 rm -f conftest.err conftest.$ac_objext \
25995       conftest$ac_exeext conftest.$ac_ext
25996 fi
25997 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
25998 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
25999 fi
26000 if test $ol_cv_have_sys_errlist = yes ; then
26001
26002 cat >>confdefs.h <<\_ACEOF
26003 #define HAVE_SYS_ERRLIST 1
26004 _ACEOF
26005
26006 fi
26007
26008
26009 for ac_func in strerror strerror_r
26010 do
26011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26012 echo "$as_me:$LINENO: checking for $ac_func" >&5
26013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26014 if eval "test \"\${$as_ac_var+set}\" = set"; then
26015   echo $ECHO_N "(cached) $ECHO_C" >&6
26016 else
26017   cat >conftest.$ac_ext <<_ACEOF
26018 /* confdefs.h.  */
26019 _ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h.  */
26023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26025 #define $ac_func innocuous_$ac_func
26026
26027 /* System header to define __stub macros and hopefully few prototypes,
26028     which can conflict with char $ac_func (); below.
26029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26030     <limits.h> exists even on freestanding compilers.  */
26031
26032 #ifdef __STDC__
26033 # include <limits.h>
26034 #else
26035 # include <assert.h>
26036 #endif
26037
26038 #undef $ac_func
26039
26040 /* Override any gcc2 internal prototype to avoid an error.  */
26041 #ifdef __cplusplus
26042 extern "C"
26043 {
26044 #endif
26045 /* We use char because int might match the return type of a gcc2
26046    builtin and then its argument prototype would still apply.  */
26047 char $ac_func ();
26048 /* The GNU C library defines this for functions which it implements
26049     to always fail with ENOSYS.  Some functions are actually named
26050     something starting with __ and the normal name is an alias.  */
26051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26052 choke me
26053 #else
26054 char (*f) () = $ac_func;
26055 #endif
26056 #ifdef __cplusplus
26057 }
26058 #endif
26059
26060 int
26061 main ()
26062 {
26063 return f != $ac_func;
26064   ;
26065   return 0;
26066 }
26067 _ACEOF
26068 rm -f conftest.$ac_objext conftest$ac_exeext
26069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26070   (eval $ac_link) 2>conftest.er1
26071   ac_status=$?
26072   grep -v '^ *+' conftest.er1 >conftest.err
26073   rm -f conftest.er1
26074   cat conftest.err >&5
26075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076   (exit $ac_status); } &&
26077          { ac_try='test -z "$ac_c_werror_flag"
26078                          || test ! -s conftest.err'
26079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26080   (eval $ac_try) 2>&5
26081   ac_status=$?
26082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083   (exit $ac_status); }; } &&
26084          { ac_try='test -s conftest$ac_exeext'
26085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26086   (eval $ac_try) 2>&5
26087   ac_status=$?
26088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089   (exit $ac_status); }; }; then
26090   eval "$as_ac_var=yes"
26091 else
26092   echo "$as_me: failed program was:" >&5
26093 sed 's/^/| /' conftest.$ac_ext >&5
26094
26095 eval "$as_ac_var=no"
26096 fi
26097 rm -f conftest.err conftest.$ac_objext \
26098       conftest$ac_exeext conftest.$ac_ext
26099 fi
26100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26102 if test `eval echo '${'$as_ac_var'}'` = yes; then
26103   cat >>confdefs.h <<_ACEOF
26104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26105 _ACEOF
26106
26107 fi
26108 done
26109
26110 ol_cv_func_strerror_r=no
26111 if test "${ac_cv_func_strerror_r}" = yes ; then
26112         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26113 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26114 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26115   echo $ECHO_N "(cached) $ECHO_C" >&6
26116 else
26117
26118         cat >conftest.$ac_ext <<_ACEOF
26119 /* confdefs.h.  */
26120 _ACEOF
26121 cat confdefs.h >>conftest.$ac_ext
26122 cat >>conftest.$ac_ext <<_ACEOF
26123 /* end confdefs.h.  */
26124 #include <string.h>
26125 _ACEOF
26126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26127   $EGREP "strerror_r" >/dev/null 2>&1; then
26128   ol_decl_strerror_r=yes
26129 else
26130   ol_decl_strerror_r=no
26131 fi
26132 rm -f conftest*
26133
26134         if test $ol_decl_strerror_r = yes ; then
26135                 cat >conftest.$ac_ext <<_ACEOF
26136 /* confdefs.h.  */
26137 _ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h.  */
26141 #include <string.h>
26142 int
26143 main ()
26144 {
26145    /* from autoconf 2.59 */
26146                                 char buf[100];
26147                                 char x = *strerror_r (0, buf, sizeof buf);
26148                                 char *p = strerror_r (0, buf, sizeof buf);
26149
26150   ;
26151   return 0;
26152 }
26153 _ACEOF
26154 rm -f conftest.$ac_objext
26155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26156   (eval $ac_compile) 2>conftest.er1
26157   ac_status=$?
26158   grep -v '^ *+' conftest.er1 >conftest.err
26159   rm -f conftest.er1
26160   cat conftest.err >&5
26161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162   (exit $ac_status); } &&
26163          { ac_try='test -z "$ac_c_werror_flag"
26164                          || test ! -s conftest.err'
26165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26166   (eval $ac_try) 2>&5
26167   ac_status=$?
26168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169   (exit $ac_status); }; } &&
26170          { ac_try='test -s conftest.$ac_objext'
26171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26172   (eval $ac_try) 2>&5
26173   ac_status=$?
26174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); }; }; then
26176   ol_cv_nonposix_strerror_r=yes
26177 else
26178   echo "$as_me: failed program was:" >&5
26179 sed 's/^/| /' conftest.$ac_ext >&5
26180
26181 ol_cv_nonposix_strerror_r=no
26182 fi
26183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26184         else
26185                 if test "$cross_compiling" = yes; then
26186   ol_cv_nonposix_strerror=no
26187 else
26188   cat >conftest.$ac_ext <<_ACEOF
26189 /* confdefs.h.  */
26190 _ACEOF
26191 cat confdefs.h >>conftest.$ac_ext
26192 cat >>conftest.$ac_ext <<_ACEOF
26193 /* end confdefs.h.  */
26194
26195                         main() {
26196                                 char buf[100];
26197                                 buf[0] = 0;
26198                                 strerror_r( 1, buf, sizeof buf );
26199                                 exit( buf[0] == 0 );
26200                         }
26201
26202 _ACEOF
26203 rm -f conftest$ac_exeext
26204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26205   (eval $ac_link) 2>&5
26206   ac_status=$?
26207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26210   (eval $ac_try) 2>&5
26211   ac_status=$?
26212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213   (exit $ac_status); }; }; then
26214   ol_cv_nonposix_strerror_r=yes
26215 else
26216   echo "$as_me: program exited with status $ac_status" >&5
26217 echo "$as_me: failed program was:" >&5
26218 sed 's/^/| /' conftest.$ac_ext >&5
26219
26220 ( exit $ac_status )
26221 ol_cv_nonposix_strerror=no
26222 fi
26223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26224 fi
26225         fi
26226
26227 fi
26228 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26229 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26230 if test $ol_cv_nonposix_strerror_r = yes ; then
26231
26232 cat >>confdefs.h <<\_ACEOF
26233 #define HAVE_NONPOSIX_STRERROR_R 1
26234 _ACEOF
26235
26236 fi
26237
26238 elif test "${ac_cv_func_strerror}" = no ; then
26239         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26240 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26241 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26242   echo $ECHO_N "(cached) $ECHO_C" >&6
26243 else
26244
26245         cat >conftest.$ac_ext <<_ACEOF
26246 /* confdefs.h.  */
26247 _ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h.  */
26251
26252 #include <stdio.h>
26253 #include <sys/types.h>
26254 #include <errno.h>
26255 #ifdef WINNT
26256 #include <stdlib.h>
26257 #endif
26258 int
26259 main ()
26260 {
26261 char *c = (char *) *sys_errlist
26262   ;
26263   return 0;
26264 }
26265 _ACEOF
26266 rm -f conftest.$ac_objext
26267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26268   (eval $ac_compile) 2>conftest.er1
26269   ac_status=$?
26270   grep -v '^ *+' conftest.er1 >conftest.err
26271   rm -f conftest.er1
26272   cat conftest.err >&5
26273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274   (exit $ac_status); } &&
26275          { ac_try='test -z "$ac_c_werror_flag"
26276                          || test ! -s conftest.err'
26277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26278   (eval $ac_try) 2>&5
26279   ac_status=$?
26280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281   (exit $ac_status); }; } &&
26282          { ac_try='test -s conftest.$ac_objext'
26283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26284   (eval $ac_try) 2>&5
26285   ac_status=$?
26286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287   (exit $ac_status); }; }; then
26288   ol_cv_dcl_sys_errlist=yes
26289         ol_cv_have_sys_errlist=yes
26290 else
26291   echo "$as_me: failed program was:" >&5
26292 sed 's/^/| /' conftest.$ac_ext >&5
26293
26294 ol_cv_dcl_sys_errlist=no
26295 fi
26296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26297 fi
26298 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26299 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26300 #
26301 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26302 if test $ol_cv_dcl_sys_errlist = no ; then
26303
26304 cat >>confdefs.h <<\_ACEOF
26305 #define DECL_SYS_ERRLIST 1
26306 _ACEOF
26307
26308
26309         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26310 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26311 if test "${ol_cv_have_sys_errlist+set}" = set; then
26312   echo $ECHO_N "(cached) $ECHO_C" >&6
26313 else
26314
26315                 cat >conftest.$ac_ext <<_ACEOF
26316 /* confdefs.h.  */
26317 _ACEOF
26318 cat confdefs.h >>conftest.$ac_ext
26319 cat >>conftest.$ac_ext <<_ACEOF
26320 /* end confdefs.h.  */
26321 #include <errno.h>
26322 int
26323 main ()
26324 {
26325 char *c = (char *) *sys_errlist
26326   ;
26327   return 0;
26328 }
26329 _ACEOF
26330 rm -f conftest.$ac_objext conftest$ac_exeext
26331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26332   (eval $ac_link) 2>conftest.er1
26333   ac_status=$?
26334   grep -v '^ *+' conftest.er1 >conftest.err
26335   rm -f conftest.er1
26336   cat conftest.err >&5
26337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338   (exit $ac_status); } &&
26339          { ac_try='test -z "$ac_c_werror_flag"
26340                          || test ! -s conftest.err'
26341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26342   (eval $ac_try) 2>&5
26343   ac_status=$?
26344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345   (exit $ac_status); }; } &&
26346          { ac_try='test -s conftest$ac_exeext'
26347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26348   (eval $ac_try) 2>&5
26349   ac_status=$?
26350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351   (exit $ac_status); }; }; then
26352   ol_cv_have_sys_errlist=yes
26353 else
26354   echo "$as_me: failed program was:" >&5
26355 sed 's/^/| /' conftest.$ac_ext >&5
26356
26357 ol_cv_have_sys_errlist=no
26358 fi
26359 rm -f conftest.err conftest.$ac_objext \
26360       conftest$ac_exeext conftest.$ac_ext
26361 fi
26362 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26363 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26364 fi
26365 if test $ol_cv_have_sys_errlist = yes ; then
26366
26367 cat >>confdefs.h <<\_ACEOF
26368 #define HAVE_SYS_ERRLIST 1
26369 _ACEOF
26370
26371 fi
26372
26373 fi
26374
26375
26376
26377 for ac_header in regex.h
26378 do
26379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26381   echo "$as_me:$LINENO: checking for $ac_header" >&5
26382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26384   echo $ECHO_N "(cached) $ECHO_C" >&6
26385 fi
26386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26388 else
26389   # Is the header compilable?
26390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26392 cat >conftest.$ac_ext <<_ACEOF
26393 /* confdefs.h.  */
26394 _ACEOF
26395 cat confdefs.h >>conftest.$ac_ext
26396 cat >>conftest.$ac_ext <<_ACEOF
26397 /* end confdefs.h.  */
26398 $ac_includes_default
26399 #include <$ac_header>
26400 _ACEOF
26401 rm -f conftest.$ac_objext
26402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26403   (eval $ac_compile) 2>conftest.er1
26404   ac_status=$?
26405   grep -v '^ *+' conftest.er1 >conftest.err
26406   rm -f conftest.er1
26407   cat conftest.err >&5
26408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409   (exit $ac_status); } &&
26410          { ac_try='test -z "$ac_c_werror_flag"
26411                          || test ! -s conftest.err'
26412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26413   (eval $ac_try) 2>&5
26414   ac_status=$?
26415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416   (exit $ac_status); }; } &&
26417          { ac_try='test -s conftest.$ac_objext'
26418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26419   (eval $ac_try) 2>&5
26420   ac_status=$?
26421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422   (exit $ac_status); }; }; then
26423   ac_header_compiler=yes
26424 else
26425   echo "$as_me: failed program was:" >&5
26426 sed 's/^/| /' conftest.$ac_ext >&5
26427
26428 ac_header_compiler=no
26429 fi
26430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26432 echo "${ECHO_T}$ac_header_compiler" >&6
26433
26434 # Is the header present?
26435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26437 cat >conftest.$ac_ext <<_ACEOF
26438 /* confdefs.h.  */
26439 _ACEOF
26440 cat confdefs.h >>conftest.$ac_ext
26441 cat >>conftest.$ac_ext <<_ACEOF
26442 /* end confdefs.h.  */
26443 #include <$ac_header>
26444 _ACEOF
26445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26446   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26447   ac_status=$?
26448   grep -v '^ *+' conftest.er1 >conftest.err
26449   rm -f conftest.er1
26450   cat conftest.err >&5
26451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452   (exit $ac_status); } >/dev/null; then
26453   if test -s conftest.err; then
26454     ac_cpp_err=$ac_c_preproc_warn_flag
26455     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26456   else
26457     ac_cpp_err=
26458   fi
26459 else
26460   ac_cpp_err=yes
26461 fi
26462 if test -z "$ac_cpp_err"; then
26463   ac_header_preproc=yes
26464 else
26465   echo "$as_me: failed program was:" >&5
26466 sed 's/^/| /' conftest.$ac_ext >&5
26467
26468   ac_header_preproc=no
26469 fi
26470 rm -f conftest.err conftest.$ac_ext
26471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26472 echo "${ECHO_T}$ac_header_preproc" >&6
26473
26474 # So?  What about this header?
26475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26476   yes:no: )
26477     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26481     ac_header_preproc=yes
26482     ;;
26483   no:yes:* )
26484     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26486     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26487 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26488     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26490     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26491 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26494     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26496     (
26497       cat <<\_ASBOX
26498 ## ------------------------------------------ ##
26499 ## Report this to the AC_PACKAGE_NAME lists.  ##
26500 ## ------------------------------------------ ##
26501 _ASBOX
26502     ) |
26503       sed "s/^/$as_me: WARNING:     /" >&2
26504     ;;
26505 esac
26506 echo "$as_me:$LINENO: checking for $ac_header" >&5
26507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26509   echo $ECHO_N "(cached) $ECHO_C" >&6
26510 else
26511   eval "$as_ac_Header=\$ac_header_preproc"
26512 fi
26513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26515
26516 fi
26517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26518   cat >>confdefs.h <<_ACEOF
26519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26520 _ACEOF
26521
26522 fi
26523
26524 done
26525
26526 if test "$ac_cv_header_regex_h" != yes ; then
26527         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26528 echo "$as_me: error: POSIX regex.h required." >&2;}
26529    { (exit 1); exit 1; }; }
26530 fi
26531 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26532 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26533 if test "${ac_cv_search_regfree+set}" = set; then
26534   echo $ECHO_N "(cached) $ECHO_C" >&6
26535 else
26536   ac_func_search_save_LIBS=$LIBS
26537 ac_cv_search_regfree=no
26538 cat >conftest.$ac_ext <<_ACEOF
26539 /* confdefs.h.  */
26540 _ACEOF
26541 cat confdefs.h >>conftest.$ac_ext
26542 cat >>conftest.$ac_ext <<_ACEOF
26543 /* end confdefs.h.  */
26544
26545 /* Override any gcc2 internal prototype to avoid an error.  */
26546 #ifdef __cplusplus
26547 extern "C"
26548 #endif
26549 /* We use char because int might match the return type of a gcc2
26550    builtin and then its argument prototype would still apply.  */
26551 char regfree ();
26552 int
26553 main ()
26554 {
26555 regfree ();
26556   ;
26557   return 0;
26558 }
26559 _ACEOF
26560 rm -f conftest.$ac_objext conftest$ac_exeext
26561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26562   (eval $ac_link) 2>conftest.er1
26563   ac_status=$?
26564   grep -v '^ *+' conftest.er1 >conftest.err
26565   rm -f conftest.er1
26566   cat conftest.err >&5
26567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568   (exit $ac_status); } &&
26569          { ac_try='test -z "$ac_c_werror_flag"
26570                          || test ! -s conftest.err'
26571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572   (eval $ac_try) 2>&5
26573   ac_status=$?
26574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575   (exit $ac_status); }; } &&
26576          { ac_try='test -s conftest$ac_exeext'
26577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26578   (eval $ac_try) 2>&5
26579   ac_status=$?
26580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581   (exit $ac_status); }; }; then
26582   ac_cv_search_regfree="none required"
26583 else
26584   echo "$as_me: failed program was:" >&5
26585 sed 's/^/| /' conftest.$ac_ext >&5
26586
26587 fi
26588 rm -f conftest.err conftest.$ac_objext \
26589       conftest$ac_exeext conftest.$ac_ext
26590 if test "$ac_cv_search_regfree" = no; then
26591   for ac_lib in regex gnuregex; do
26592     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26593     cat >conftest.$ac_ext <<_ACEOF
26594 /* confdefs.h.  */
26595 _ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h.  */
26599
26600 /* Override any gcc2 internal prototype to avoid an error.  */
26601 #ifdef __cplusplus
26602 extern "C"
26603 #endif
26604 /* We use char because int might match the return type of a gcc2
26605    builtin and then its argument prototype would still apply.  */
26606 char regfree ();
26607 int
26608 main ()
26609 {
26610 regfree ();
26611   ;
26612   return 0;
26613 }
26614 _ACEOF
26615 rm -f conftest.$ac_objext conftest$ac_exeext
26616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26617   (eval $ac_link) 2>conftest.er1
26618   ac_status=$?
26619   grep -v '^ *+' conftest.er1 >conftest.err
26620   rm -f conftest.er1
26621   cat conftest.err >&5
26622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623   (exit $ac_status); } &&
26624          { ac_try='test -z "$ac_c_werror_flag"
26625                          || test ! -s conftest.err'
26626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26627   (eval $ac_try) 2>&5
26628   ac_status=$?
26629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630   (exit $ac_status); }; } &&
26631          { ac_try='test -s conftest$ac_exeext'
26632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26633   (eval $ac_try) 2>&5
26634   ac_status=$?
26635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636   (exit $ac_status); }; }; then
26637   ac_cv_search_regfree="-l$ac_lib"
26638 break
26639 else
26640   echo "$as_me: failed program was:" >&5
26641 sed 's/^/| /' conftest.$ac_ext >&5
26642
26643 fi
26644 rm -f conftest.err conftest.$ac_objext \
26645       conftest$ac_exeext conftest.$ac_ext
26646   done
26647 fi
26648 LIBS=$ac_func_search_save_LIBS
26649 fi
26650 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26651 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26652 if test "$ac_cv_search_regfree" != no; then
26653   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26654   :
26655 else
26656   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26657 echo "$as_me: error: POSIX regex required." >&2;}
26658    { (exit 1); exit 1; }; }
26659 fi
26660
26661
26662
26663 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26664 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26665 if test "${ol_cv_c_posix_regex+set}" = set; then
26666   echo $ECHO_N "(cached) $ECHO_C" >&6
26667 else
26668
26669         if test "$cross_compiling" = yes; then
26670   ol_cv_c_posix_regex=cross
26671 else
26672   cat >conftest.$ac_ext <<_ACEOF
26673 /* confdefs.h.  */
26674 _ACEOF
26675 cat confdefs.h >>conftest.$ac_ext
26676 cat >>conftest.$ac_ext <<_ACEOF
26677 /* end confdefs.h.  */
26678
26679 #include <sys/types.h>
26680 #include <regex.h>
26681 static char *pattern, *string;
26682 main()
26683 {
26684         int rc;
26685         regex_t re;
26686
26687         pattern = "^A";
26688
26689         if(regcomp(&re, pattern, 0)) {
26690                 return -1;
26691         }
26692
26693         string = "ALL MATCH";
26694
26695         rc = regexec(&re, string, 0, (void*)0, 0);
26696
26697         regfree(&re);
26698
26699         return rc;
26700 }
26701 _ACEOF
26702 rm -f conftest$ac_exeext
26703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26704   (eval $ac_link) 2>&5
26705   ac_status=$?
26706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26709   (eval $ac_try) 2>&5
26710   ac_status=$?
26711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712   (exit $ac_status); }; }; then
26713   ol_cv_c_posix_regex=yes
26714 else
26715   echo "$as_me: program exited with status $ac_status" >&5
26716 echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26718
26719 ( exit $ac_status )
26720 ol_cv_c_posix_regex=no
26721 fi
26722 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26723 fi
26724 fi
26725 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26726 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26727
26728 if test "$ol_cv_c_posix_regex" = no ; then
26729         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26730 echo "$as_me: error: broken POSIX regex!" >&2;}
26731    { (exit 1); exit 1; }; }
26732 fi
26733
26734
26735 have_uuid=no
26736
26737 for ac_header in sys/uuid.h
26738 do
26739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26741   echo "$as_me:$LINENO: checking for $ac_header" >&5
26742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26744   echo $ECHO_N "(cached) $ECHO_C" >&6
26745 fi
26746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26748 else
26749   # Is the header compilable?
26750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26752 cat >conftest.$ac_ext <<_ACEOF
26753 /* confdefs.h.  */
26754 _ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h.  */
26758 $ac_includes_default
26759 #include <$ac_header>
26760 _ACEOF
26761 rm -f conftest.$ac_objext
26762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26763   (eval $ac_compile) 2>conftest.er1
26764   ac_status=$?
26765   grep -v '^ *+' conftest.er1 >conftest.err
26766   rm -f conftest.er1
26767   cat conftest.err >&5
26768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769   (exit $ac_status); } &&
26770          { ac_try='test -z "$ac_c_werror_flag"
26771                          || test ! -s conftest.err'
26772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26773   (eval $ac_try) 2>&5
26774   ac_status=$?
26775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776   (exit $ac_status); }; } &&
26777          { ac_try='test -s conftest.$ac_objext'
26778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26779   (eval $ac_try) 2>&5
26780   ac_status=$?
26781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782   (exit $ac_status); }; }; then
26783   ac_header_compiler=yes
26784 else
26785   echo "$as_me: failed program was:" >&5
26786 sed 's/^/| /' conftest.$ac_ext >&5
26787
26788 ac_header_compiler=no
26789 fi
26790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26792 echo "${ECHO_T}$ac_header_compiler" >&6
26793
26794 # Is the header present?
26795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26797 cat >conftest.$ac_ext <<_ACEOF
26798 /* confdefs.h.  */
26799 _ACEOF
26800 cat confdefs.h >>conftest.$ac_ext
26801 cat >>conftest.$ac_ext <<_ACEOF
26802 /* end confdefs.h.  */
26803 #include <$ac_header>
26804 _ACEOF
26805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26807   ac_status=$?
26808   grep -v '^ *+' conftest.er1 >conftest.err
26809   rm -f conftest.er1
26810   cat conftest.err >&5
26811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812   (exit $ac_status); } >/dev/null; then
26813   if test -s conftest.err; then
26814     ac_cpp_err=$ac_c_preproc_warn_flag
26815     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26816   else
26817     ac_cpp_err=
26818   fi
26819 else
26820   ac_cpp_err=yes
26821 fi
26822 if test -z "$ac_cpp_err"; then
26823   ac_header_preproc=yes
26824 else
26825   echo "$as_me: failed program was:" >&5
26826 sed 's/^/| /' conftest.$ac_ext >&5
26827
26828   ac_header_preproc=no
26829 fi
26830 rm -f conftest.err conftest.$ac_ext
26831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26832 echo "${ECHO_T}$ac_header_preproc" >&6
26833
26834 # So?  What about this header?
26835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26836   yes:no: )
26837     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26841     ac_header_preproc=yes
26842     ;;
26843   no:yes:* )
26844     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26846     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26847 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26848     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26850     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26851 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26854     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26856     (
26857       cat <<\_ASBOX
26858 ## ------------------------------------------ ##
26859 ## Report this to the AC_PACKAGE_NAME lists.  ##
26860 ## ------------------------------------------ ##
26861 _ASBOX
26862     ) |
26863       sed "s/^/$as_me: WARNING:     /" >&2
26864     ;;
26865 esac
26866 echo "$as_me:$LINENO: checking for $ac_header" >&5
26867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26869   echo $ECHO_N "(cached) $ECHO_C" >&6
26870 else
26871   eval "$as_ac_Header=\$ac_header_preproc"
26872 fi
26873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26875
26876 fi
26877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26878   cat >>confdefs.h <<_ACEOF
26879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26880 _ACEOF
26881
26882 fi
26883
26884 done
26885
26886 if test $ac_cv_header_sys_uuid_h = yes ; then
26887         save_LIBS="$LIBS"
26888         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
26889 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
26890 if test "${ac_cv_search_uuid_to_str+set}" = set; then
26891   echo $ECHO_N "(cached) $ECHO_C" >&6
26892 else
26893   ac_func_search_save_LIBS=$LIBS
26894 ac_cv_search_uuid_to_str=no
26895 cat >conftest.$ac_ext <<_ACEOF
26896 /* confdefs.h.  */
26897 _ACEOF
26898 cat confdefs.h >>conftest.$ac_ext
26899 cat >>conftest.$ac_ext <<_ACEOF
26900 /* end confdefs.h.  */
26901
26902 /* Override any gcc2 internal prototype to avoid an error.  */
26903 #ifdef __cplusplus
26904 extern "C"
26905 #endif
26906 /* We use char because int might match the return type of a gcc2
26907    builtin and then its argument prototype would still apply.  */
26908 char uuid_to_str ();
26909 int
26910 main ()
26911 {
26912 uuid_to_str ();
26913   ;
26914   return 0;
26915 }
26916 _ACEOF
26917 rm -f conftest.$ac_objext conftest$ac_exeext
26918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26919   (eval $ac_link) 2>conftest.er1
26920   ac_status=$?
26921   grep -v '^ *+' conftest.er1 >conftest.err
26922   rm -f conftest.er1
26923   cat conftest.err >&5
26924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925   (exit $ac_status); } &&
26926          { ac_try='test -z "$ac_c_werror_flag"
26927                          || test ! -s conftest.err'
26928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26929   (eval $ac_try) 2>&5
26930   ac_status=$?
26931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932   (exit $ac_status); }; } &&
26933          { ac_try='test -s conftest$ac_exeext'
26934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935   (eval $ac_try) 2>&5
26936   ac_status=$?
26937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938   (exit $ac_status); }; }; then
26939   ac_cv_search_uuid_to_str="none required"
26940 else
26941   echo "$as_me: failed program was:" >&5
26942 sed 's/^/| /' conftest.$ac_ext >&5
26943
26944 fi
26945 rm -f conftest.err conftest.$ac_objext \
26946       conftest$ac_exeext conftest.$ac_ext
26947 if test "$ac_cv_search_uuid_to_str" = no; then
26948   for ac_lib in uuid; do
26949     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26950     cat >conftest.$ac_ext <<_ACEOF
26951 /* confdefs.h.  */
26952 _ACEOF
26953 cat confdefs.h >>conftest.$ac_ext
26954 cat >>conftest.$ac_ext <<_ACEOF
26955 /* end confdefs.h.  */
26956
26957 /* Override any gcc2 internal prototype to avoid an error.  */
26958 #ifdef __cplusplus
26959 extern "C"
26960 #endif
26961 /* We use char because int might match the return type of a gcc2
26962    builtin and then its argument prototype would still apply.  */
26963 char uuid_to_str ();
26964 int
26965 main ()
26966 {
26967 uuid_to_str ();
26968   ;
26969   return 0;
26970 }
26971 _ACEOF
26972 rm -f conftest.$ac_objext conftest$ac_exeext
26973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26974   (eval $ac_link) 2>conftest.er1
26975   ac_status=$?
26976   grep -v '^ *+' conftest.er1 >conftest.err
26977   rm -f conftest.er1
26978   cat conftest.err >&5
26979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980   (exit $ac_status); } &&
26981          { ac_try='test -z "$ac_c_werror_flag"
26982                          || test ! -s conftest.err'
26983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26984   (eval $ac_try) 2>&5
26985   ac_status=$?
26986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987   (exit $ac_status); }; } &&
26988          { ac_try='test -s conftest$ac_exeext'
26989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26990   (eval $ac_try) 2>&5
26991   ac_status=$?
26992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993   (exit $ac_status); }; }; then
26994   ac_cv_search_uuid_to_str="-l$ac_lib"
26995 break
26996 else
26997   echo "$as_me: failed program was:" >&5
26998 sed 's/^/| /' conftest.$ac_ext >&5
26999
27000 fi
27001 rm -f conftest.err conftest.$ac_objext \
27002       conftest$ac_exeext conftest.$ac_ext
27003   done
27004 fi
27005 LIBS=$ac_func_search_save_LIBS
27006 fi
27007 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
27008 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
27009 if test "$ac_cv_search_uuid_to_str" != no; then
27010   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
27011   have_uuid=yes
27012 else
27013   :
27014 fi
27015
27016         LIBS="$save_LIBS"
27017
27018         if test have_uuid = yes ; then
27019
27020 cat >>confdefs.h <<\_ACEOF
27021 #define HAVE_UUID_TO_STR 1
27022 _ACEOF
27023
27024
27025                 test "$ac_cv_search_uuid_to_str" = "none required" || \
27026                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27027         fi
27028 fi
27029
27030 if test $have_uuid = no ; then
27031         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27032 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27033         save_LIBS="$LIBS"
27034         LIBS="$LIBS -lrpcrt4"
27035         cat >conftest.$ac_ext <<_ACEOF
27036 /* confdefs.h.  */
27037 _ACEOF
27038 cat confdefs.h >>conftest.$ac_ext
27039 cat >>conftest.$ac_ext <<_ACEOF
27040 /* end confdefs.h.  */
27041
27042                 int __stdcall UuidCreate(void *);
27043                 int __stdcall UuidToStringA(void *,void **);
27044
27045 int
27046 main ()
27047 {
27048
27049                 UuidCreate(0);
27050                 UuidToStringA(0,0);
27051
27052   ;
27053   return 0;
27054 }
27055 _ACEOF
27056 rm -f conftest.$ac_objext conftest$ac_exeext
27057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27058   (eval $ac_link) 2>conftest.er1
27059   ac_status=$?
27060   grep -v '^ *+' conftest.er1 >conftest.err
27061   rm -f conftest.er1
27062   cat conftest.err >&5
27063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064   (exit $ac_status); } &&
27065          { ac_try='test -z "$ac_c_werror_flag"
27066                          || test ! -s conftest.err'
27067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27068   (eval $ac_try) 2>&5
27069   ac_status=$?
27070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071   (exit $ac_status); }; } &&
27072          { ac_try='test -s conftest$ac_exeext'
27073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27074   (eval $ac_try) 2>&5
27075   ac_status=$?
27076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077   (exit $ac_status); }; }; then
27078   need_rpcrt=yes
27079 else
27080   echo "$as_me: failed program was:" >&5
27081 sed 's/^/| /' conftest.$ac_ext >&5
27082
27083 need_rpcrt=no
27084 fi
27085 rm -f conftest.err conftest.$ac_objext \
27086       conftest$ac_exeext conftest.$ac_ext
27087         if test $need_rpcrt = yes; then
27088                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27089         fi
27090         LIBS="$save_LIBS"
27091         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27092 echo "${ECHO_T}$need_rpcrt" >&6
27093 fi
27094
27095 ol_cv_lib_resolver=no
27096 if test $ol_cv_lib_resolver = no ; then
27097         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27098 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27099 if test "${ol_cv_resolver_none+set}" = set; then
27100   echo $ECHO_N "(cached) $ECHO_C" >&6
27101 else
27102
27103         ol_RESOLVER_LIB=
27104         ol_LIBS=$LIBS
27105         LIBS="$ol_RESOLVER_LIB $LIBS"
27106
27107         cat >conftest.$ac_ext <<_ACEOF
27108 /* confdefs.h.  */
27109 _ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h.  */
27113
27114 #ifdef HAVE_SYS_TYPES_H
27115 #       include <sys/types.h>
27116 #endif
27117 #include <netinet/in.h>
27118 #ifdef HAVE_ARPA_NAMESER_H
27119 #       include <arpa/nameser.h>
27120 #endif
27121 #ifdef HAVE_RESOLV_H
27122 #       include <resolv.h>
27123 #endif
27124
27125 int
27126 main ()
27127 {
27128 {
27129         int len, status;
27130         char *request = NULL;
27131         unsigned char reply[64*1024];
27132         unsigned char host[64*1024];
27133         unsigned char *p;
27134
27135 #ifdef NS_HFIXEDSZ
27136         /* Bind 8/9 interface */
27137         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27138 #else
27139         /* Bind 4 interface */
27140 # ifndef T_SRV
27141 #  define T_SRV 33
27142 # endif
27143         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27144 #endif
27145         p = reply;
27146 #ifdef NS_HFIXEDSZ
27147         /* Bind 8/9 interface */
27148         p += NS_HFIXEDSZ;
27149 #elif defined(HFIXEDSZ)
27150         /* Bind 4 interface w/ HFIXEDSZ */
27151         p += HFIXEDSZ;
27152 #else
27153         /* Bind 4 interface w/o HFIXEDSZ */
27154         p += sizeof(HEADER);
27155 #endif
27156         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27157 }
27158   ;
27159   return 0;
27160 }
27161 _ACEOF
27162 rm -f conftest.$ac_objext conftest$ac_exeext
27163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27164   (eval $ac_link) 2>conftest.er1
27165   ac_status=$?
27166   grep -v '^ *+' conftest.er1 >conftest.err
27167   rm -f conftest.er1
27168   cat conftest.err >&5
27169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170   (exit $ac_status); } &&
27171          { ac_try='test -z "$ac_c_werror_flag"
27172                          || test ! -s conftest.err'
27173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27174   (eval $ac_try) 2>&5
27175   ac_status=$?
27176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177   (exit $ac_status); }; } &&
27178          { ac_try='test -s conftest$ac_exeext'
27179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27180   (eval $ac_try) 2>&5
27181   ac_status=$?
27182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183   (exit $ac_status); }; }; then
27184   ol_cv_resolver_none=yes
27185 else
27186   echo "$as_me: failed program was:" >&5
27187 sed 's/^/| /' conftest.$ac_ext >&5
27188
27189 ol_cv_resolver_none=no
27190 fi
27191 rm -f conftest.err conftest.$ac_objext \
27192       conftest$ac_exeext conftest.$ac_ext
27193
27194         LIBS="$ol_LIBS"
27195
27196 fi
27197 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27198 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27199
27200         if test $ol_cv_resolver_none = yes ; then
27201                 ol_cv_lib_resolver=yes
27202         fi
27203 fi
27204
27205 if test $ol_cv_lib_resolver = no ; then
27206         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27207 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27208 if test "${ol_cv_resolver_resolv+set}" = set; then
27209   echo $ECHO_N "(cached) $ECHO_C" >&6
27210 else
27211
27212         ol_RESOLVER_LIB=-lresolv
27213         ol_LIBS=$LIBS
27214         LIBS="$ol_RESOLVER_LIB $LIBS"
27215
27216         cat >conftest.$ac_ext <<_ACEOF
27217 /* confdefs.h.  */
27218 _ACEOF
27219 cat confdefs.h >>conftest.$ac_ext
27220 cat >>conftest.$ac_ext <<_ACEOF
27221 /* end confdefs.h.  */
27222
27223 #ifdef HAVE_SYS_TYPES_H
27224 #       include <sys/types.h>
27225 #endif
27226 #include <netinet/in.h>
27227 #ifdef HAVE_ARPA_NAMESER_H
27228 #       include <arpa/nameser.h>
27229 #endif
27230 #ifdef HAVE_RESOLV_H
27231 #       include <resolv.h>
27232 #endif
27233
27234 int
27235 main ()
27236 {
27237 {
27238         int len, status;
27239         char *request = NULL;
27240         unsigned char reply[64*1024];
27241         unsigned char host[64*1024];
27242         unsigned char *p;
27243
27244 #ifdef NS_HFIXEDSZ
27245         /* Bind 8/9 interface */
27246         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27247 #else
27248         /* Bind 4 interface */
27249 # ifndef T_SRV
27250 #  define T_SRV 33
27251 # endif
27252         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27253 #endif
27254         p = reply;
27255 #ifdef NS_HFIXEDSZ
27256         /* Bind 8/9 interface */
27257         p += NS_HFIXEDSZ;
27258 #elif defined(HFIXEDSZ)
27259         /* Bind 4 interface w/ HFIXEDSZ */
27260         p += HFIXEDSZ;
27261 #else
27262         /* Bind 4 interface w/o HFIXEDSZ */
27263         p += sizeof(HEADER);
27264 #endif
27265         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27266 }
27267   ;
27268   return 0;
27269 }
27270 _ACEOF
27271 rm -f conftest.$ac_objext conftest$ac_exeext
27272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27273   (eval $ac_link) 2>conftest.er1
27274   ac_status=$?
27275   grep -v '^ *+' conftest.er1 >conftest.err
27276   rm -f conftest.er1
27277   cat conftest.err >&5
27278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279   (exit $ac_status); } &&
27280          { ac_try='test -z "$ac_c_werror_flag"
27281                          || test ! -s conftest.err'
27282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27283   (eval $ac_try) 2>&5
27284   ac_status=$?
27285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286   (exit $ac_status); }; } &&
27287          { ac_try='test -s conftest$ac_exeext'
27288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27289   (eval $ac_try) 2>&5
27290   ac_status=$?
27291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292   (exit $ac_status); }; }; then
27293   ol_cv_resolver_resolv=yes
27294 else
27295   echo "$as_me: failed program was:" >&5
27296 sed 's/^/| /' conftest.$ac_ext >&5
27297
27298 ol_cv_resolver_resolv=no
27299 fi
27300 rm -f conftest.err conftest.$ac_objext \
27301       conftest$ac_exeext conftest.$ac_ext
27302
27303         LIBS="$ol_LIBS"
27304
27305 fi
27306 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27307 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27308
27309         if test $ol_cv_resolver_resolv = yes ; then
27310                 ol_cv_lib_resolver=-lresolv
27311         fi
27312 fi
27313
27314 if test $ol_cv_lib_resolver = no ; then
27315         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27316 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27317 if test "${ol_cv_resolver_bind+set}" = set; then
27318   echo $ECHO_N "(cached) $ECHO_C" >&6
27319 else
27320
27321         ol_RESOLVER_LIB=-lbind
27322         ol_LIBS=$LIBS
27323         LIBS="$ol_RESOLVER_LIB $LIBS"
27324
27325         cat >conftest.$ac_ext <<_ACEOF
27326 /* confdefs.h.  */
27327 _ACEOF
27328 cat confdefs.h >>conftest.$ac_ext
27329 cat >>conftest.$ac_ext <<_ACEOF
27330 /* end confdefs.h.  */
27331
27332 #ifdef HAVE_SYS_TYPES_H
27333 #       include <sys/types.h>
27334 #endif
27335 #include <netinet/in.h>
27336 #ifdef HAVE_ARPA_NAMESER_H
27337 #       include <arpa/nameser.h>
27338 #endif
27339 #ifdef HAVE_RESOLV_H
27340 #       include <resolv.h>
27341 #endif
27342
27343 int
27344 main ()
27345 {
27346 {
27347         int len, status;
27348         char *request = NULL;
27349         unsigned char reply[64*1024];
27350         unsigned char host[64*1024];
27351         unsigned char *p;
27352
27353 #ifdef NS_HFIXEDSZ
27354         /* Bind 8/9 interface */
27355         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27356 #else
27357         /* Bind 4 interface */
27358 # ifndef T_SRV
27359 #  define T_SRV 33
27360 # endif
27361         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27362 #endif
27363         p = reply;
27364 #ifdef NS_HFIXEDSZ
27365         /* Bind 8/9 interface */
27366         p += NS_HFIXEDSZ;
27367 #elif defined(HFIXEDSZ)
27368         /* Bind 4 interface w/ HFIXEDSZ */
27369         p += HFIXEDSZ;
27370 #else
27371         /* Bind 4 interface w/o HFIXEDSZ */
27372         p += sizeof(HEADER);
27373 #endif
27374         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27375 }
27376   ;
27377   return 0;
27378 }
27379 _ACEOF
27380 rm -f conftest.$ac_objext conftest$ac_exeext
27381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27382   (eval $ac_link) 2>conftest.er1
27383   ac_status=$?
27384   grep -v '^ *+' conftest.er1 >conftest.err
27385   rm -f conftest.er1
27386   cat conftest.err >&5
27387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388   (exit $ac_status); } &&
27389          { ac_try='test -z "$ac_c_werror_flag"
27390                          || test ! -s conftest.err'
27391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27392   (eval $ac_try) 2>&5
27393   ac_status=$?
27394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395   (exit $ac_status); }; } &&
27396          { ac_try='test -s conftest$ac_exeext'
27397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27398   (eval $ac_try) 2>&5
27399   ac_status=$?
27400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401   (exit $ac_status); }; }; then
27402   ol_cv_resolver_bind=yes
27403 else
27404   echo "$as_me: failed program was:" >&5
27405 sed 's/^/| /' conftest.$ac_ext >&5
27406
27407 ol_cv_resolver_bind=no
27408 fi
27409 rm -f conftest.err conftest.$ac_objext \
27410       conftest$ac_exeext conftest.$ac_ext
27411
27412         LIBS="$ol_LIBS"
27413
27414 fi
27415 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27416 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27417
27418         if test $ol_cv_resolver_bind = yes ; then
27419                 ol_cv_lib_resolver=-lbind
27420         fi
27421 fi
27422
27423
27424
27425 ol_link_dnssrv=no
27426 if test "$ol_cv_lib_resolver" != no ; then
27427
27428 cat >>confdefs.h <<\_ACEOF
27429 #define HAVE_RES_QUERY 1
27430 _ACEOF
27431
27432
27433         if test "$ol_enable_dnssrv" != no ; then
27434                 ol_link_dnssrv=yes
27435         fi
27436
27437         if test "$ol_cv_lib_resolver" != yes ; then
27438                 LIBS="$ol_cv_lib_resolver $LIBS"
27439         fi
27440 fi
27441
27442 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27443         if test "$ol_link_dnssrv" = no ; then
27444                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27445 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27446    { (exit 1); exit 1; }; }
27447         fi
27448 else
27449         ol_enable_dnssrv=no
27450 fi
27451
27452
27453 for ac_func in hstrerror
27454 do
27455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27456 echo "$as_me:$LINENO: checking for $ac_func" >&5
27457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27458 if eval "test \"\${$as_ac_var+set}\" = set"; then
27459   echo $ECHO_N "(cached) $ECHO_C" >&6
27460 else
27461   cat >conftest.$ac_ext <<_ACEOF
27462 /* confdefs.h.  */
27463 _ACEOF
27464 cat confdefs.h >>conftest.$ac_ext
27465 cat >>conftest.$ac_ext <<_ACEOF
27466 /* end confdefs.h.  */
27467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27469 #define $ac_func innocuous_$ac_func
27470
27471 /* System header to define __stub macros and hopefully few prototypes,
27472     which can conflict with char $ac_func (); below.
27473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27474     <limits.h> exists even on freestanding compilers.  */
27475
27476 #ifdef __STDC__
27477 # include <limits.h>
27478 #else
27479 # include <assert.h>
27480 #endif
27481
27482 #undef $ac_func
27483
27484 /* Override any gcc2 internal prototype to avoid an error.  */
27485 #ifdef __cplusplus
27486 extern "C"
27487 {
27488 #endif
27489 /* We use char because int might match the return type of a gcc2
27490    builtin and then its argument prototype would still apply.  */
27491 char $ac_func ();
27492 /* The GNU C library defines this for functions which it implements
27493     to always fail with ENOSYS.  Some functions are actually named
27494     something starting with __ and the normal name is an alias.  */
27495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27496 choke me
27497 #else
27498 char (*f) () = $ac_func;
27499 #endif
27500 #ifdef __cplusplus
27501 }
27502 #endif
27503
27504 int
27505 main ()
27506 {
27507 return f != $ac_func;
27508   ;
27509   return 0;
27510 }
27511 _ACEOF
27512 rm -f conftest.$ac_objext conftest$ac_exeext
27513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27514   (eval $ac_link) 2>conftest.er1
27515   ac_status=$?
27516   grep -v '^ *+' conftest.er1 >conftest.err
27517   rm -f conftest.er1
27518   cat conftest.err >&5
27519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520   (exit $ac_status); } &&
27521          { ac_try='test -z "$ac_c_werror_flag"
27522                          || test ! -s conftest.err'
27523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524   (eval $ac_try) 2>&5
27525   ac_status=$?
27526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527   (exit $ac_status); }; } &&
27528          { ac_try='test -s conftest$ac_exeext'
27529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27530   (eval $ac_try) 2>&5
27531   ac_status=$?
27532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533   (exit $ac_status); }; }; then
27534   eval "$as_ac_var=yes"
27535 else
27536   echo "$as_me: failed program was:" >&5
27537 sed 's/^/| /' conftest.$ac_ext >&5
27538
27539 eval "$as_ac_var=no"
27540 fi
27541 rm -f conftest.err conftest.$ac_objext \
27542       conftest$ac_exeext conftest.$ac_ext
27543 fi
27544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27546 if test `eval echo '${'$as_ac_var'}'` = yes; then
27547   cat >>confdefs.h <<_ACEOF
27548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27549 _ACEOF
27550
27551 fi
27552 done
27553
27554
27555
27556
27557
27558
27559 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27560 do
27561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27562 echo "$as_me:$LINENO: checking for $ac_func" >&5
27563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27564 if eval "test \"\${$as_ac_var+set}\" = set"; then
27565   echo $ECHO_N "(cached) $ECHO_C" >&6
27566 else
27567   cat >conftest.$ac_ext <<_ACEOF
27568 /* confdefs.h.  */
27569 _ACEOF
27570 cat confdefs.h >>conftest.$ac_ext
27571 cat >>conftest.$ac_ext <<_ACEOF
27572 /* end confdefs.h.  */
27573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27575 #define $ac_func innocuous_$ac_func
27576
27577 /* System header to define __stub macros and hopefully few prototypes,
27578     which can conflict with char $ac_func (); below.
27579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27580     <limits.h> exists even on freestanding compilers.  */
27581
27582 #ifdef __STDC__
27583 # include <limits.h>
27584 #else
27585 # include <assert.h>
27586 #endif
27587
27588 #undef $ac_func
27589
27590 /* Override any gcc2 internal prototype to avoid an error.  */
27591 #ifdef __cplusplus
27592 extern "C"
27593 {
27594 #endif
27595 /* We use char because int might match the return type of a gcc2
27596    builtin and then its argument prototype would still apply.  */
27597 char $ac_func ();
27598 /* The GNU C library defines this for functions which it implements
27599     to always fail with ENOSYS.  Some functions are actually named
27600     something starting with __ and the normal name is an alias.  */
27601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27602 choke me
27603 #else
27604 char (*f) () = $ac_func;
27605 #endif
27606 #ifdef __cplusplus
27607 }
27608 #endif
27609
27610 int
27611 main ()
27612 {
27613 return f != $ac_func;
27614   ;
27615   return 0;
27616 }
27617 _ACEOF
27618 rm -f conftest.$ac_objext conftest$ac_exeext
27619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27620   (eval $ac_link) 2>conftest.er1
27621   ac_status=$?
27622   grep -v '^ *+' conftest.er1 >conftest.err
27623   rm -f conftest.er1
27624   cat conftest.err >&5
27625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626   (exit $ac_status); } &&
27627          { ac_try='test -z "$ac_c_werror_flag"
27628                          || test ! -s conftest.err'
27629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27630   (eval $ac_try) 2>&5
27631   ac_status=$?
27632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633   (exit $ac_status); }; } &&
27634          { ac_try='test -s conftest$ac_exeext'
27635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636   (eval $ac_try) 2>&5
27637   ac_status=$?
27638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639   (exit $ac_status); }; }; then
27640   eval "$as_ac_var=yes"
27641 else
27642   echo "$as_me: failed program was:" >&5
27643 sed 's/^/| /' conftest.$ac_ext >&5
27644
27645 eval "$as_ac_var=no"
27646 fi
27647 rm -f conftest.err conftest.$ac_objext \
27648       conftest$ac_exeext conftest.$ac_ext
27649 fi
27650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27652 if test `eval echo '${'$as_ac_var'}'` = yes; then
27653   cat >>confdefs.h <<_ACEOF
27654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27655 _ACEOF
27656
27657 fi
27658 done
27659
27660
27661 ol_link_ipv6=no
27662 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27663         if test $ol_enable_ipv6 = yes ; then
27664                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27665 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27666    { (exit 1); exit 1; }; }
27667         fi
27668 elif test $ol_enable_ipv6 != no ; then
27669         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27670 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27671 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27672   echo $ECHO_N "(cached) $ECHO_C" >&6
27673 else
27674
27675                 cat >conftest.$ac_ext <<_ACEOF
27676 /* confdefs.h.  */
27677 _ACEOF
27678 cat confdefs.h >>conftest.$ac_ext
27679 cat >>conftest.$ac_ext <<_ACEOF
27680 /* end confdefs.h.  */
27681
27682 #                       include <netinet/in.h>
27683 #                       ifdef INET6_ADDRSTRLEN
27684                                 __has_inet6_addrstrlen__;
27685 #                       endif
27686
27687 _ACEOF
27688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27689   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27690   ol_cv_inet6_addrstrlen=yes
27691 else
27692   ol_cv_inet6_addrstrlen=no
27693 fi
27694 rm -f conftest*
27695
27696 fi
27697 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27698 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27699
27700
27701         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27702 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27703 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27704   echo $ECHO_N "(cached) $ECHO_C" >&6
27705 else
27706
27707                 cat >conftest.$ac_ext <<_ACEOF
27708 /* confdefs.h.  */
27709 _ACEOF
27710 cat confdefs.h >>conftest.$ac_ext
27711 cat >>conftest.$ac_ext <<_ACEOF
27712 /* end confdefs.h.  */
27713
27714 #include <sys/types.h>
27715 #include <sys/socket.h>
27716
27717 int
27718 main ()
27719 {
27720
27721                         struct sockaddr_storage ss;
27722
27723   ;
27724   return 0;
27725 }
27726 _ACEOF
27727 rm -f conftest.$ac_objext
27728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27729   (eval $ac_compile) 2>conftest.er1
27730   ac_status=$?
27731   grep -v '^ *+' conftest.er1 >conftest.err
27732   rm -f conftest.er1
27733   cat conftest.err >&5
27734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735   (exit $ac_status); } &&
27736          { ac_try='test -z "$ac_c_werror_flag"
27737                          || test ! -s conftest.err'
27738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27739   (eval $ac_try) 2>&5
27740   ac_status=$?
27741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742   (exit $ac_status); }; } &&
27743          { ac_try='test -s conftest.$ac_objext'
27744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27745   (eval $ac_try) 2>&5
27746   ac_status=$?
27747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748   (exit $ac_status); }; }; then
27749   ol_cv_struct_sockaddr_storage=yes
27750 else
27751   echo "$as_me: failed program was:" >&5
27752 sed 's/^/| /' conftest.$ac_ext >&5
27753
27754 ol_cv_struct_sockaddr_storage=no
27755 fi
27756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27757 fi
27758 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27759 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27760
27761         if test $ol_cv_inet6_addrstrlen = yes \
27762                 -a $ol_cv_struct_sockaddr_storage = yes ; then
27763                 ol_link_ipv6=yes
27764         elif test $ol_enable_ipv6 = yes \
27765                         -a $ol_cv_inet6_addrstrlen = no ; then
27766                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27767 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27768    { (exit 1); exit 1; }; }
27769         elif test $ol_enable_ipv6 = yes \
27770                         -a $ol_cv_struct_sockaddr_storage = no ; then
27771                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27772 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27773    { (exit 1); exit 1; }; }
27774         fi
27775 fi
27776
27777 if test $ol_enable_local != no ; then
27778
27779 for ac_header in sys/un.h
27780 do
27781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27783   echo "$as_me:$LINENO: checking for $ac_header" >&5
27784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27786   echo $ECHO_N "(cached) $ECHO_C" >&6
27787 fi
27788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27790 else
27791   # Is the header compilable?
27792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27794 cat >conftest.$ac_ext <<_ACEOF
27795 /* confdefs.h.  */
27796 _ACEOF
27797 cat confdefs.h >>conftest.$ac_ext
27798 cat >>conftest.$ac_ext <<_ACEOF
27799 /* end confdefs.h.  */
27800 $ac_includes_default
27801 #include <$ac_header>
27802 _ACEOF
27803 rm -f conftest.$ac_objext
27804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27805   (eval $ac_compile) 2>conftest.er1
27806   ac_status=$?
27807   grep -v '^ *+' conftest.er1 >conftest.err
27808   rm -f conftest.er1
27809   cat conftest.err >&5
27810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811   (exit $ac_status); } &&
27812          { ac_try='test -z "$ac_c_werror_flag"
27813                          || test ! -s conftest.err'
27814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27815   (eval $ac_try) 2>&5
27816   ac_status=$?
27817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818   (exit $ac_status); }; } &&
27819          { ac_try='test -s conftest.$ac_objext'
27820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27821   (eval $ac_try) 2>&5
27822   ac_status=$?
27823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27824   (exit $ac_status); }; }; then
27825   ac_header_compiler=yes
27826 else
27827   echo "$as_me: failed program was:" >&5
27828 sed 's/^/| /' conftest.$ac_ext >&5
27829
27830 ac_header_compiler=no
27831 fi
27832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27834 echo "${ECHO_T}$ac_header_compiler" >&6
27835
27836 # Is the header present?
27837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27839 cat >conftest.$ac_ext <<_ACEOF
27840 /* confdefs.h.  */
27841 _ACEOF
27842 cat confdefs.h >>conftest.$ac_ext
27843 cat >>conftest.$ac_ext <<_ACEOF
27844 /* end confdefs.h.  */
27845 #include <$ac_header>
27846 _ACEOF
27847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27849   ac_status=$?
27850   grep -v '^ *+' conftest.er1 >conftest.err
27851   rm -f conftest.er1
27852   cat conftest.err >&5
27853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854   (exit $ac_status); } >/dev/null; then
27855   if test -s conftest.err; then
27856     ac_cpp_err=$ac_c_preproc_warn_flag
27857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27858   else
27859     ac_cpp_err=
27860   fi
27861 else
27862   ac_cpp_err=yes
27863 fi
27864 if test -z "$ac_cpp_err"; then
27865   ac_header_preproc=yes
27866 else
27867   echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27869
27870   ac_header_preproc=no
27871 fi
27872 rm -f conftest.err conftest.$ac_ext
27873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27874 echo "${ECHO_T}$ac_header_preproc" >&6
27875
27876 # So?  What about this header?
27877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27878   yes:no: )
27879     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27883     ac_header_preproc=yes
27884     ;;
27885   no:yes:* )
27886     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27888     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27889 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27890     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27892     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27893 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27896     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27898     (
27899       cat <<\_ASBOX
27900 ## ------------------------------------------ ##
27901 ## Report this to the AC_PACKAGE_NAME lists.  ##
27902 ## ------------------------------------------ ##
27903 _ASBOX
27904     ) |
27905       sed "s/^/$as_me: WARNING:     /" >&2
27906     ;;
27907 esac
27908 echo "$as_me:$LINENO: checking for $ac_header" >&5
27909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27911   echo $ECHO_N "(cached) $ECHO_C" >&6
27912 else
27913   eval "$as_ac_Header=\$ac_header_preproc"
27914 fi
27915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27917
27918 fi
27919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27920   cat >>confdefs.h <<_ACEOF
27921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27922 _ACEOF
27923
27924 fi
27925
27926 done
27927
27928
27929         if test $ol_enable_local = auto ; then
27930                 ol_enable_local=$ac_cv_header_sys_un_h
27931         elif test $ac_cv_header_sys_un_h = no ; then
27932                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
27933 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
27934    { (exit 1); exit 1; }; }
27935         fi
27936 fi
27937
27938 ol_link_kbind=no
27939 ol_link_krb5=no
27940 ol_link_krb4=no
27941
27942 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
27943         -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
27944         -o $ol_with_kerberos = k425 ; then
27945
27946
27947 for ac_header in krb5.h
27948 do
27949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27951   echo "$as_me:$LINENO: checking for $ac_header" >&5
27952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27954   echo $ECHO_N "(cached) $ECHO_C" >&6
27955 fi
27956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27958 else
27959   # Is the header compilable?
27960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27962 cat >conftest.$ac_ext <<_ACEOF
27963 /* confdefs.h.  */
27964 _ACEOF
27965 cat confdefs.h >>conftest.$ac_ext
27966 cat >>conftest.$ac_ext <<_ACEOF
27967 /* end confdefs.h.  */
27968 $ac_includes_default
27969 #include <$ac_header>
27970 _ACEOF
27971 rm -f conftest.$ac_objext
27972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27973   (eval $ac_compile) 2>conftest.er1
27974   ac_status=$?
27975   grep -v '^ *+' conftest.er1 >conftest.err
27976   rm -f conftest.er1
27977   cat conftest.err >&5
27978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979   (exit $ac_status); } &&
27980          { ac_try='test -z "$ac_c_werror_flag"
27981                          || test ! -s conftest.err'
27982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27983   (eval $ac_try) 2>&5
27984   ac_status=$?
27985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986   (exit $ac_status); }; } &&
27987          { ac_try='test -s conftest.$ac_objext'
27988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27989   (eval $ac_try) 2>&5
27990   ac_status=$?
27991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992   (exit $ac_status); }; }; then
27993   ac_header_compiler=yes
27994 else
27995   echo "$as_me: failed program was:" >&5
27996 sed 's/^/| /' conftest.$ac_ext >&5
27997
27998 ac_header_compiler=no
27999 fi
28000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28002 echo "${ECHO_T}$ac_header_compiler" >&6
28003
28004 # Is the header present?
28005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28007 cat >conftest.$ac_ext <<_ACEOF
28008 /* confdefs.h.  */
28009 _ACEOF
28010 cat confdefs.h >>conftest.$ac_ext
28011 cat >>conftest.$ac_ext <<_ACEOF
28012 /* end confdefs.h.  */
28013 #include <$ac_header>
28014 _ACEOF
28015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28017   ac_status=$?
28018   grep -v '^ *+' conftest.er1 >conftest.err
28019   rm -f conftest.er1
28020   cat conftest.err >&5
28021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022   (exit $ac_status); } >/dev/null; then
28023   if test -s conftest.err; then
28024     ac_cpp_err=$ac_c_preproc_warn_flag
28025     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28026   else
28027     ac_cpp_err=
28028   fi
28029 else
28030   ac_cpp_err=yes
28031 fi
28032 if test -z "$ac_cpp_err"; then
28033   ac_header_preproc=yes
28034 else
28035   echo "$as_me: failed program was:" >&5
28036 sed 's/^/| /' conftest.$ac_ext >&5
28037
28038   ac_header_preproc=no
28039 fi
28040 rm -f conftest.err conftest.$ac_ext
28041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28042 echo "${ECHO_T}$ac_header_preproc" >&6
28043
28044 # So?  What about this header?
28045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28046   yes:no: )
28047     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28051     ac_header_preproc=yes
28052     ;;
28053   no:yes:* )
28054     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28056     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28057 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28058     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28060     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28061 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28064     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28066     (
28067       cat <<\_ASBOX
28068 ## ------------------------------------------ ##
28069 ## Report this to the AC_PACKAGE_NAME lists.  ##
28070 ## ------------------------------------------ ##
28071 _ASBOX
28072     ) |
28073       sed "s/^/$as_me: WARNING:     /" >&2
28074     ;;
28075 esac
28076 echo "$as_me:$LINENO: checking for $ac_header" >&5
28077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28079   echo $ECHO_N "(cached) $ECHO_C" >&6
28080 else
28081   eval "$as_ac_Header=\$ac_header_preproc"
28082 fi
28083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28085
28086 fi
28087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28088   cat >>confdefs.h <<_ACEOF
28089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28090 _ACEOF
28091
28092 fi
28093
28094 done
28095
28096
28097         if test $ac_cv_header_krb5_h = yes ; then
28098
28099 for ac_header in heim_err.h
28100 do
28101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28103   echo "$as_me:$LINENO: checking for $ac_header" >&5
28104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28106   echo $ECHO_N "(cached) $ECHO_C" >&6
28107 fi
28108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28110 else
28111   # Is the header compilable?
28112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28114 cat >conftest.$ac_ext <<_ACEOF
28115 /* confdefs.h.  */
28116 _ACEOF
28117 cat confdefs.h >>conftest.$ac_ext
28118 cat >>conftest.$ac_ext <<_ACEOF
28119 /* end confdefs.h.  */
28120 $ac_includes_default
28121 #include <$ac_header>
28122 _ACEOF
28123 rm -f conftest.$ac_objext
28124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28125   (eval $ac_compile) 2>conftest.er1
28126   ac_status=$?
28127   grep -v '^ *+' conftest.er1 >conftest.err
28128   rm -f conftest.er1
28129   cat conftest.err >&5
28130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131   (exit $ac_status); } &&
28132          { ac_try='test -z "$ac_c_werror_flag"
28133                          || test ! -s conftest.err'
28134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28135   (eval $ac_try) 2>&5
28136   ac_status=$?
28137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28138   (exit $ac_status); }; } &&
28139          { ac_try='test -s conftest.$ac_objext'
28140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28141   (eval $ac_try) 2>&5
28142   ac_status=$?
28143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28144   (exit $ac_status); }; }; then
28145   ac_header_compiler=yes
28146 else
28147   echo "$as_me: failed program was:" >&5
28148 sed 's/^/| /' conftest.$ac_ext >&5
28149
28150 ac_header_compiler=no
28151 fi
28152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28154 echo "${ECHO_T}$ac_header_compiler" >&6
28155
28156 # Is the header present?
28157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28159 cat >conftest.$ac_ext <<_ACEOF
28160 /* confdefs.h.  */
28161 _ACEOF
28162 cat confdefs.h >>conftest.$ac_ext
28163 cat >>conftest.$ac_ext <<_ACEOF
28164 /* end confdefs.h.  */
28165 #include <$ac_header>
28166 _ACEOF
28167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28169   ac_status=$?
28170   grep -v '^ *+' conftest.er1 >conftest.err
28171   rm -f conftest.er1
28172   cat conftest.err >&5
28173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174   (exit $ac_status); } >/dev/null; then
28175   if test -s conftest.err; then
28176     ac_cpp_err=$ac_c_preproc_warn_flag
28177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28178   else
28179     ac_cpp_err=
28180   fi
28181 else
28182   ac_cpp_err=yes
28183 fi
28184 if test -z "$ac_cpp_err"; then
28185   ac_header_preproc=yes
28186 else
28187   echo "$as_me: failed program was:" >&5
28188 sed 's/^/| /' conftest.$ac_ext >&5
28189
28190   ac_header_preproc=no
28191 fi
28192 rm -f conftest.err conftest.$ac_ext
28193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28194 echo "${ECHO_T}$ac_header_preproc" >&6
28195
28196 # So?  What about this header?
28197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28198   yes:no: )
28199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28203     ac_header_preproc=yes
28204     ;;
28205   no:yes:* )
28206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28218     (
28219       cat <<\_ASBOX
28220 ## ------------------------------------------ ##
28221 ## Report this to the AC_PACKAGE_NAME lists.  ##
28222 ## ------------------------------------------ ##
28223 _ASBOX
28224     ) |
28225       sed "s/^/$as_me: WARNING:     /" >&2
28226     ;;
28227 esac
28228 echo "$as_me:$LINENO: checking for $ac_header" >&5
28229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28231   echo $ECHO_N "(cached) $ECHO_C" >&6
28232 else
28233   eval "$as_ac_Header=\$ac_header_preproc"
28234 fi
28235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28237
28238 fi
28239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28240   cat >>confdefs.h <<_ACEOF
28241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28242 _ACEOF
28243
28244 fi
28245
28246 done
28247
28248                 if test $ac_cv_header_heim_err_h = yes ; then
28249                         krb5_impl=heimdal
28250                 else
28251                         krb5_impl=mit
28252                 fi
28253
28254                 if test $krb5_impl = mit; then
28255                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28256 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28257 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28258   echo $ECHO_N "(cached) $ECHO_C" >&6
28259 else
28260   ac_check_lib_save_LIBS=$LIBS
28261 LIBS="-lk5crypto  $LIBS"
28262 cat >conftest.$ac_ext <<_ACEOF
28263 /* confdefs.h.  */
28264 _ACEOF
28265 cat confdefs.h >>conftest.$ac_ext
28266 cat >>conftest.$ac_ext <<_ACEOF
28267 /* end confdefs.h.  */
28268
28269
28270 int
28271 main ()
28272 {
28273 main ();
28274   ;
28275   return 0;
28276 }
28277 _ACEOF
28278 rm -f conftest.$ac_objext conftest$ac_exeext
28279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28280   (eval $ac_link) 2>conftest.er1
28281   ac_status=$?
28282   grep -v '^ *+' conftest.er1 >conftest.err
28283   rm -f conftest.er1
28284   cat conftest.err >&5
28285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286   (exit $ac_status); } &&
28287          { ac_try='test -z "$ac_c_werror_flag"
28288                          || test ! -s conftest.err'
28289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28290   (eval $ac_try) 2>&5
28291   ac_status=$?
28292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293   (exit $ac_status); }; } &&
28294          { ac_try='test -s conftest$ac_exeext'
28295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28296   (eval $ac_try) 2>&5
28297   ac_status=$?
28298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299   (exit $ac_status); }; }; then
28300   ac_cv_lib_k5crypto_main=yes
28301 else
28302   echo "$as_me: failed program was:" >&5
28303 sed 's/^/| /' conftest.$ac_ext >&5
28304
28305 ac_cv_lib_k5crypto_main=no
28306 fi
28307 rm -f conftest.err conftest.$ac_objext \
28308       conftest$ac_exeext conftest.$ac_ext
28309 LIBS=$ac_check_lib_save_LIBS
28310 fi
28311 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28312 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28313 if test $ac_cv_lib_k5crypto_main = yes; then
28314   krb5crypto=k5crypto
28315 else
28316   krb5crypto=crypto
28317 fi
28318
28319
28320                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28321 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28322 if test "${ac_cv_lib_krb5_main+set}" = set; then
28323   echo $ECHO_N "(cached) $ECHO_C" >&6
28324 else
28325   ac_check_lib_save_LIBS=$LIBS
28326 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28327 cat >conftest.$ac_ext <<_ACEOF
28328 /* confdefs.h.  */
28329 _ACEOF
28330 cat confdefs.h >>conftest.$ac_ext
28331 cat >>conftest.$ac_ext <<_ACEOF
28332 /* end confdefs.h.  */
28333
28334
28335 int
28336 main ()
28337 {
28338 main ();
28339   ;
28340   return 0;
28341 }
28342 _ACEOF
28343 rm -f conftest.$ac_objext conftest$ac_exeext
28344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28345   (eval $ac_link) 2>conftest.er1
28346   ac_status=$?
28347   grep -v '^ *+' conftest.er1 >conftest.err
28348   rm -f conftest.er1
28349   cat conftest.err >&5
28350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351   (exit $ac_status); } &&
28352          { ac_try='test -z "$ac_c_werror_flag"
28353                          || test ! -s conftest.err'
28354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28355   (eval $ac_try) 2>&5
28356   ac_status=$?
28357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358   (exit $ac_status); }; } &&
28359          { ac_try='test -s conftest$ac_exeext'
28360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28361   (eval $ac_try) 2>&5
28362   ac_status=$?
28363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364   (exit $ac_status); }; }; then
28365   ac_cv_lib_krb5_main=yes
28366 else
28367   echo "$as_me: failed program was:" >&5
28368 sed 's/^/| /' conftest.$ac_ext >&5
28369
28370 ac_cv_lib_krb5_main=no
28371 fi
28372 rm -f conftest.err conftest.$ac_objext \
28373       conftest$ac_exeext conftest.$ac_ext
28374 LIBS=$ac_check_lib_save_LIBS
28375 fi
28376 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28377 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28378 if test $ac_cv_lib_krb5_main = yes; then
28379   have_krb5=yes
28380                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28381 else
28382   have_krb5=no
28383 fi
28384
28385
28386                 elif test $krb5_impl = heimdal; then
28387                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
28388 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28389 if test "${ac_cv_lib_des_main+set}" = set; then
28390   echo $ECHO_N "(cached) $ECHO_C" >&6
28391 else
28392   ac_check_lib_save_LIBS=$LIBS
28393 LIBS="-ldes  $LIBS"
28394 cat >conftest.$ac_ext <<_ACEOF
28395 /* confdefs.h.  */
28396 _ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h.  */
28400
28401
28402 int
28403 main ()
28404 {
28405 main ();
28406   ;
28407   return 0;
28408 }
28409 _ACEOF
28410 rm -f conftest.$ac_objext conftest$ac_exeext
28411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28412   (eval $ac_link) 2>conftest.er1
28413   ac_status=$?
28414   grep -v '^ *+' conftest.er1 >conftest.err
28415   rm -f conftest.er1
28416   cat conftest.err >&5
28417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418   (exit $ac_status); } &&
28419          { ac_try='test -z "$ac_c_werror_flag"
28420                          || test ! -s conftest.err'
28421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28422   (eval $ac_try) 2>&5
28423   ac_status=$?
28424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425   (exit $ac_status); }; } &&
28426          { ac_try='test -s conftest$ac_exeext'
28427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28428   (eval $ac_try) 2>&5
28429   ac_status=$?
28430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431   (exit $ac_status); }; }; then
28432   ac_cv_lib_des_main=yes
28433 else
28434   echo "$as_me: failed program was:" >&5
28435 sed 's/^/| /' conftest.$ac_ext >&5
28436
28437 ac_cv_lib_des_main=no
28438 fi
28439 rm -f conftest.err conftest.$ac_objext \
28440       conftest$ac_exeext conftest.$ac_ext
28441 LIBS=$ac_check_lib_save_LIBS
28442 fi
28443 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28444 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28445 if test $ac_cv_lib_des_main = yes; then
28446   krb5crypto=des
28447 else
28448   krb5crypto=crypto
28449 fi
28450
28451
28452                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28453 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28454 if test "${ac_cv_lib_krb5_main+set}" = set; then
28455   echo $ECHO_N "(cached) $ECHO_C" >&6
28456 else
28457   ac_check_lib_save_LIBS=$LIBS
28458 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28459 cat >conftest.$ac_ext <<_ACEOF
28460 /* confdefs.h.  */
28461 _ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h.  */
28465
28466
28467 int
28468 main ()
28469 {
28470 main ();
28471   ;
28472   return 0;
28473 }
28474 _ACEOF
28475 rm -f conftest.$ac_objext conftest$ac_exeext
28476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28477   (eval $ac_link) 2>conftest.er1
28478   ac_status=$?
28479   grep -v '^ *+' conftest.er1 >conftest.err
28480   rm -f conftest.er1
28481   cat conftest.err >&5
28482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483   (exit $ac_status); } &&
28484          { ac_try='test -z "$ac_c_werror_flag"
28485                          || test ! -s conftest.err'
28486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28487   (eval $ac_try) 2>&5
28488   ac_status=$?
28489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490   (exit $ac_status); }; } &&
28491          { ac_try='test -s conftest$ac_exeext'
28492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28493   (eval $ac_try) 2>&5
28494   ac_status=$?
28495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496   (exit $ac_status); }; }; then
28497   ac_cv_lib_krb5_main=yes
28498 else
28499   echo "$as_me: failed program was:" >&5
28500 sed 's/^/| /' conftest.$ac_ext >&5
28501
28502 ac_cv_lib_krb5_main=no
28503 fi
28504 rm -f conftest.err conftest.$ac_objext \
28505       conftest$ac_exeext conftest.$ac_ext
28506 LIBS=$ac_check_lib_save_LIBS
28507 fi
28508 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28509 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28510 if test $ac_cv_lib_krb5_main = yes; then
28511   have_krb5=yes
28512                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28513 else
28514   have_krb5=no
28515 fi
28516
28517
28518
28519 cat >>confdefs.h <<\_ACEOF
28520 #define HAVE_HEIMDAL_KERBEROS 1
28521 _ACEOF
28522
28523
28524                 else
28525                         have_krb5=no
28526                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28527 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28528                 fi
28529
28530                 if test $have_krb5 = yes ; then
28531                         ol_link_krb5=yes
28532
28533
28534 cat >>confdefs.h <<\_ACEOF
28535 #define HAVE_KRB5 1
28536 _ACEOF
28537
28538
28539                         if test $ol_with_kerberos = k5only ; then
28540                                 ol_with_kerberos=found
28541                         fi
28542
28543                 elif test $ol_with_kerberos != auto ; then
28544                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28545 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28546    { (exit 1); exit 1; }; }
28547                 fi
28548
28549         fi
28550 fi
28551
28552 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28553         $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28554
28555
28556
28557 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28558 do
28559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28561   echo "$as_me:$LINENO: checking for $ac_header" >&5
28562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28564   echo $ECHO_N "(cached) $ECHO_C" >&6
28565 fi
28566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28568 else
28569   # Is the header compilable?
28570 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28572 cat >conftest.$ac_ext <<_ACEOF
28573 /* confdefs.h.  */
28574 _ACEOF
28575 cat confdefs.h >>conftest.$ac_ext
28576 cat >>conftest.$ac_ext <<_ACEOF
28577 /* end confdefs.h.  */
28578 $ac_includes_default
28579 #include <$ac_header>
28580 _ACEOF
28581 rm -f conftest.$ac_objext
28582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28583   (eval $ac_compile) 2>conftest.er1
28584   ac_status=$?
28585   grep -v '^ *+' conftest.er1 >conftest.err
28586   rm -f conftest.er1
28587   cat conftest.err >&5
28588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589   (exit $ac_status); } &&
28590          { ac_try='test -z "$ac_c_werror_flag"
28591                          || test ! -s conftest.err'
28592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28593   (eval $ac_try) 2>&5
28594   ac_status=$?
28595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596   (exit $ac_status); }; } &&
28597          { ac_try='test -s conftest.$ac_objext'
28598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28599   (eval $ac_try) 2>&5
28600   ac_status=$?
28601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602   (exit $ac_status); }; }; then
28603   ac_header_compiler=yes
28604 else
28605   echo "$as_me: failed program was:" >&5
28606 sed 's/^/| /' conftest.$ac_ext >&5
28607
28608 ac_header_compiler=no
28609 fi
28610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28612 echo "${ECHO_T}$ac_header_compiler" >&6
28613
28614 # Is the header present?
28615 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28617 cat >conftest.$ac_ext <<_ACEOF
28618 /* confdefs.h.  */
28619 _ACEOF
28620 cat confdefs.h >>conftest.$ac_ext
28621 cat >>conftest.$ac_ext <<_ACEOF
28622 /* end confdefs.h.  */
28623 #include <$ac_header>
28624 _ACEOF
28625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28626   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28627   ac_status=$?
28628   grep -v '^ *+' conftest.er1 >conftest.err
28629   rm -f conftest.er1
28630   cat conftest.err >&5
28631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632   (exit $ac_status); } >/dev/null; then
28633   if test -s conftest.err; then
28634     ac_cpp_err=$ac_c_preproc_warn_flag
28635     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28636   else
28637     ac_cpp_err=
28638   fi
28639 else
28640   ac_cpp_err=yes
28641 fi
28642 if test -z "$ac_cpp_err"; then
28643   ac_header_preproc=yes
28644 else
28645   echo "$as_me: failed program was:" >&5
28646 sed 's/^/| /' conftest.$ac_ext >&5
28647
28648   ac_header_preproc=no
28649 fi
28650 rm -f conftest.err conftest.$ac_ext
28651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28652 echo "${ECHO_T}$ac_header_preproc" >&6
28653
28654 # So?  What about this header?
28655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28656   yes:no: )
28657     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28661     ac_header_preproc=yes
28662     ;;
28663   no:yes:* )
28664     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28666     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28667 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28668     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28670     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28671 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28674     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28676     (
28677       cat <<\_ASBOX
28678 ## ------------------------------------------ ##
28679 ## Report this to the AC_PACKAGE_NAME lists.  ##
28680 ## ------------------------------------------ ##
28681 _ASBOX
28682     ) |
28683       sed "s/^/$as_me: WARNING:     /" >&2
28684     ;;
28685 esac
28686 echo "$as_me:$LINENO: checking for $ac_header" >&5
28687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28689   echo $ECHO_N "(cached) $ECHO_C" >&6
28690 else
28691   eval "$as_ac_Header=\$ac_header_preproc"
28692 fi
28693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28695
28696 fi
28697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28698   cat >>confdefs.h <<_ACEOF
28699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28700 _ACEOF
28701
28702 fi
28703
28704 done
28705
28706
28707         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28708                 if test $krb5_impl = mit; then
28709                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28710 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28711 if test "${ac_cv_lib_krb4_main+set}" = set; then
28712   echo $ECHO_N "(cached) $ECHO_C" >&6
28713 else
28714   ac_check_lib_save_LIBS=$LIBS
28715 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28716 cat >conftest.$ac_ext <<_ACEOF
28717 /* confdefs.h.  */
28718 _ACEOF
28719 cat confdefs.h >>conftest.$ac_ext
28720 cat >>conftest.$ac_ext <<_ACEOF
28721 /* end confdefs.h.  */
28722
28723
28724 int
28725 main ()
28726 {
28727 main ();
28728   ;
28729   return 0;
28730 }
28731 _ACEOF
28732 rm -f conftest.$ac_objext conftest$ac_exeext
28733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28734   (eval $ac_link) 2>conftest.er1
28735   ac_status=$?
28736   grep -v '^ *+' conftest.er1 >conftest.err
28737   rm -f conftest.er1
28738   cat conftest.err >&5
28739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740   (exit $ac_status); } &&
28741          { ac_try='test -z "$ac_c_werror_flag"
28742                          || test ! -s conftest.err'
28743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744   (eval $ac_try) 2>&5
28745   ac_status=$?
28746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747   (exit $ac_status); }; } &&
28748          { ac_try='test -s conftest$ac_exeext'
28749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28750   (eval $ac_try) 2>&5
28751   ac_status=$?
28752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753   (exit $ac_status); }; }; then
28754   ac_cv_lib_krb4_main=yes
28755 else
28756   echo "$as_me: failed program was:" >&5
28757 sed 's/^/| /' conftest.$ac_ext >&5
28758
28759 ac_cv_lib_krb4_main=no
28760 fi
28761 rm -f conftest.err conftest.$ac_objext \
28762       conftest$ac_exeext conftest.$ac_ext
28763 LIBS=$ac_check_lib_save_LIBS
28764 fi
28765 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28766 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28767 if test $ac_cv_lib_krb4_main = yes; then
28768   have_k425=yes
28769                                 KRB4_LIBS="-lkrb4 -ldes425"
28770 else
28771   have_k425=no
28772 fi
28773
28774
28775                 elif test $krb5_impl = heimdal; then
28776                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28777 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28778 if test "${ac_cv_lib_krb4_main+set}" = set; then
28779   echo $ECHO_N "(cached) $ECHO_C" >&6
28780 else
28781   ac_check_lib_save_LIBS=$LIBS
28782 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28783 cat >conftest.$ac_ext <<_ACEOF
28784 /* confdefs.h.  */
28785 _ACEOF
28786 cat confdefs.h >>conftest.$ac_ext
28787 cat >>conftest.$ac_ext <<_ACEOF
28788 /* end confdefs.h.  */
28789
28790
28791 int
28792 main ()
28793 {
28794 main ();
28795   ;
28796   return 0;
28797 }
28798 _ACEOF
28799 rm -f conftest.$ac_objext conftest$ac_exeext
28800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28801   (eval $ac_link) 2>conftest.er1
28802   ac_status=$?
28803   grep -v '^ *+' conftest.er1 >conftest.err
28804   rm -f conftest.er1
28805   cat conftest.err >&5
28806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807   (exit $ac_status); } &&
28808          { ac_try='test -z "$ac_c_werror_flag"
28809                          || test ! -s conftest.err'
28810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28811   (eval $ac_try) 2>&5
28812   ac_status=$?
28813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814   (exit $ac_status); }; } &&
28815          { ac_try='test -s conftest$ac_exeext'
28816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28817   (eval $ac_try) 2>&5
28818   ac_status=$?
28819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820   (exit $ac_status); }; }; then
28821   ac_cv_lib_krb4_main=yes
28822 else
28823   echo "$as_me: failed program was:" >&5
28824 sed 's/^/| /' conftest.$ac_ext >&5
28825
28826 ac_cv_lib_krb4_main=no
28827 fi
28828 rm -f conftest.err conftest.$ac_objext \
28829       conftest$ac_exeext conftest.$ac_ext
28830 LIBS=$ac_check_lib_save_LIBS
28831 fi
28832 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28833 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28834 if test $ac_cv_lib_krb4_main = yes; then
28835   have_k425=yes
28836                                 KRB4_LIBS="-lkrb4"
28837 else
28838   have_k425=no
28839 fi
28840
28841
28842                 else
28843                         have_425=no
28844                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28845 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28846                 fi
28847
28848                 if test $have_k425 = yes ; then
28849                         ol_with_kerberos=found
28850                         ol_link_krb4=yes
28851
28852
28853 cat >>confdefs.h <<\_ACEOF
28854 #define HAVE_KRB425 1
28855 _ACEOF
28856
28857
28858 cat >>confdefs.h <<\_ACEOF
28859 #define HAVE_KRB4 1
28860 _ACEOF
28861
28862
28863                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28864 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28865 if test "${ol_cv_var_des_debug+set}" = set; then
28866   echo $ECHO_N "(cached) $ECHO_C" >&6
28867 else
28868
28869                                                                 save_LIBS="$LIBS"
28870                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28871                                 cat >conftest.$ac_ext <<_ACEOF
28872 /* confdefs.h.  */
28873 _ACEOF
28874 cat confdefs.h >>conftest.$ac_ext
28875 cat >>conftest.$ac_ext <<_ACEOF
28876 /* end confdefs.h.  */
28877
28878 #include <kerberosIV/krb.h>
28879 #include <kerberosIV/des.h>
28880 extern int des_debug;
28881
28882 int
28883 main ()
28884 {
28885
28886 des_debug = 1;
28887
28888   ;
28889   return 0;
28890 }
28891 _ACEOF
28892 rm -f conftest.$ac_objext conftest$ac_exeext
28893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28894   (eval $ac_link) 2>conftest.er1
28895   ac_status=$?
28896   grep -v '^ *+' conftest.er1 >conftest.err
28897   rm -f conftest.er1
28898   cat conftest.err >&5
28899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900   (exit $ac_status); } &&
28901          { ac_try='test -z "$ac_c_werror_flag"
28902                          || test ! -s conftest.err'
28903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28904   (eval $ac_try) 2>&5
28905   ac_status=$?
28906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907   (exit $ac_status); }; } &&
28908          { ac_try='test -s conftest$ac_exeext'
28909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28910   (eval $ac_try) 2>&5
28911   ac_status=$?
28912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913   (exit $ac_status); }; }; then
28914   ol_cv_var_des_debug=yes
28915 else
28916   echo "$as_me: failed program was:" >&5
28917 sed 's/^/| /' conftest.$ac_ext >&5
28918
28919 ol_cv_var_des_debug=no
28920 fi
28921 rm -f conftest.err conftest.$ac_objext \
28922       conftest$ac_exeext conftest.$ac_ext
28923                                                                 LIBS="$save_LIBS"
28924
28925 fi
28926 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
28927 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
28928
28929                         if test $ol_cv_var_des_debug = yes ; then
28930
28931 cat >>confdefs.h <<\_ACEOF
28932 #define HAVE_DES_DEBUG 1
28933 _ACEOF
28934
28935                         fi
28936
28937                         LIBS="$save_LIBS"
28938                 fi
28939         fi
28940 fi
28941
28942 if test $ol_link_krb5 = yes ; then
28943         ol_with_kerberos=found
28944 fi
28945
28946 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28947         -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
28948
28949
28950
28951
28952 for ac_header in krb.h des.h krb-archaeology.h
28953 do
28954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28956   echo "$as_me:$LINENO: checking for $ac_header" >&5
28957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28959   echo $ECHO_N "(cached) $ECHO_C" >&6
28960 fi
28961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28963 else
28964   # Is the header compilable?
28965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28967 cat >conftest.$ac_ext <<_ACEOF
28968 /* confdefs.h.  */
28969 _ACEOF
28970 cat confdefs.h >>conftest.$ac_ext
28971 cat >>conftest.$ac_ext <<_ACEOF
28972 /* end confdefs.h.  */
28973 $ac_includes_default
28974 #include <$ac_header>
28975 _ACEOF
28976 rm -f conftest.$ac_objext
28977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28978   (eval $ac_compile) 2>conftest.er1
28979   ac_status=$?
28980   grep -v '^ *+' conftest.er1 >conftest.err
28981   rm -f conftest.er1
28982   cat conftest.err >&5
28983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984   (exit $ac_status); } &&
28985          { ac_try='test -z "$ac_c_werror_flag"
28986                          || test ! -s conftest.err'
28987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28988   (eval $ac_try) 2>&5
28989   ac_status=$?
28990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991   (exit $ac_status); }; } &&
28992          { ac_try='test -s conftest.$ac_objext'
28993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28994   (eval $ac_try) 2>&5
28995   ac_status=$?
28996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997   (exit $ac_status); }; }; then
28998   ac_header_compiler=yes
28999 else
29000   echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29002
29003 ac_header_compiler=no
29004 fi
29005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29007 echo "${ECHO_T}$ac_header_compiler" >&6
29008
29009 # Is the header present?
29010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29012 cat >conftest.$ac_ext <<_ACEOF
29013 /* confdefs.h.  */
29014 _ACEOF
29015 cat confdefs.h >>conftest.$ac_ext
29016 cat >>conftest.$ac_ext <<_ACEOF
29017 /* end confdefs.h.  */
29018 #include <$ac_header>
29019 _ACEOF
29020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29022   ac_status=$?
29023   grep -v '^ *+' conftest.er1 >conftest.err
29024   rm -f conftest.er1
29025   cat conftest.err >&5
29026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29027   (exit $ac_status); } >/dev/null; then
29028   if test -s conftest.err; then
29029     ac_cpp_err=$ac_c_preproc_warn_flag
29030     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29031   else
29032     ac_cpp_err=
29033   fi
29034 else
29035   ac_cpp_err=yes
29036 fi
29037 if test -z "$ac_cpp_err"; then
29038   ac_header_preproc=yes
29039 else
29040   echo "$as_me: failed program was:" >&5
29041 sed 's/^/| /' conftest.$ac_ext >&5
29042
29043   ac_header_preproc=no
29044 fi
29045 rm -f conftest.err conftest.$ac_ext
29046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29047 echo "${ECHO_T}$ac_header_preproc" >&6
29048
29049 # So?  What about this header?
29050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29051   yes:no: )
29052     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29056     ac_header_preproc=yes
29057     ;;
29058   no:yes:* )
29059     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29061     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29062 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29063     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29065     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29066 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29069     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29071     (
29072       cat <<\_ASBOX
29073 ## ------------------------------------------ ##
29074 ## Report this to the AC_PACKAGE_NAME lists.  ##
29075 ## ------------------------------------------ ##
29076 _ASBOX
29077     ) |
29078       sed "s/^/$as_me: WARNING:     /" >&2
29079     ;;
29080 esac
29081 echo "$as_me:$LINENO: checking for $ac_header" >&5
29082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29084   echo $ECHO_N "(cached) $ECHO_C" >&6
29085 else
29086   eval "$as_ac_Header=\$ac_header_preproc"
29087 fi
29088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29090
29091 fi
29092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29093   cat >>confdefs.h <<_ACEOF
29094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29095 _ACEOF
29096
29097 fi
29098
29099 done
29100
29101
29102         if test $ac_cv_header_krb_h = yes ; then
29103                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29104 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29105 if test "${ac_cv_lib_krb_main+set}" = set; then
29106   echo $ECHO_N "(cached) $ECHO_C" >&6
29107 else
29108   ac_check_lib_save_LIBS=$LIBS
29109 LIBS="-lkrb -ldes $LIBS"
29110 cat >conftest.$ac_ext <<_ACEOF
29111 /* confdefs.h.  */
29112 _ACEOF
29113 cat confdefs.h >>conftest.$ac_ext
29114 cat >>conftest.$ac_ext <<_ACEOF
29115 /* end confdefs.h.  */
29116
29117
29118 int
29119 main ()
29120 {
29121 main ();
29122   ;
29123   return 0;
29124 }
29125 _ACEOF
29126 rm -f conftest.$ac_objext conftest$ac_exeext
29127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29128   (eval $ac_link) 2>conftest.er1
29129   ac_status=$?
29130   grep -v '^ *+' conftest.er1 >conftest.err
29131   rm -f conftest.er1
29132   cat conftest.err >&5
29133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134   (exit $ac_status); } &&
29135          { ac_try='test -z "$ac_c_werror_flag"
29136                          || test ! -s conftest.err'
29137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29138   (eval $ac_try) 2>&5
29139   ac_status=$?
29140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141   (exit $ac_status); }; } &&
29142          { ac_try='test -s conftest$ac_exeext'
29143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29144   (eval $ac_try) 2>&5
29145   ac_status=$?
29146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147   (exit $ac_status); }; }; then
29148   ac_cv_lib_krb_main=yes
29149 else
29150   echo "$as_me: failed program was:" >&5
29151 sed 's/^/| /' conftest.$ac_ext >&5
29152
29153 ac_cv_lib_krb_main=no
29154 fi
29155 rm -f conftest.err conftest.$ac_objext \
29156       conftest$ac_exeext conftest.$ac_ext
29157 LIBS=$ac_check_lib_save_LIBS
29158 fi
29159 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29160 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29161 if test $ac_cv_lib_krb_main = yes; then
29162   have_k4=yes
29163 else
29164   have_k4=no
29165 fi
29166
29167
29168                 if test $have_k4 = yes ; then
29169                         ol_with_kerberos=found
29170                         ol_link_krb4=yes
29171
29172
29173 cat >>confdefs.h <<\_ACEOF
29174 #define HAVE_KRB4 1
29175 _ACEOF
29176
29177
29178                         KRB4_LIBS="-lkrb -ldes"
29179
29180                         if test $ac_cv_header_krb_archaeology_h = yes ; then
29181
29182 cat >>confdefs.h <<\_ACEOF
29183 #define HAVE_KTH_KERBEROS 1
29184 _ACEOF
29185
29186                         fi
29187                 fi
29188         fi
29189 fi
29190
29191 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29192         ol_link_kbind=yes
29193
29194 elif test $ol_enable_kbind = yes ; then
29195         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29196 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29197    { (exit 1); exit 1; }; }
29198 fi
29199
29200 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29201
29202 cat >>confdefs.h <<\_ACEOF
29203 #define HAVE_KERBEROS 1
29204 _ACEOF
29205
29206
29207 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29208         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29209 echo "$as_me: error: Kerberos detection failed" >&2;}
29210    { (exit 1); exit 1; }; }
29211 fi
29212
29213
29214 ol_link_tls=no
29215 if test $ol_with_tls != no ; then
29216
29217
29218 for ac_header in openssl/ssl.h ssl.h
29219 do
29220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29222   echo "$as_me:$LINENO: checking for $ac_header" >&5
29223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29225   echo $ECHO_N "(cached) $ECHO_C" >&6
29226 fi
29227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29229 else
29230   # Is the header compilable?
29231 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29233 cat >conftest.$ac_ext <<_ACEOF
29234 /* confdefs.h.  */
29235 _ACEOF
29236 cat confdefs.h >>conftest.$ac_ext
29237 cat >>conftest.$ac_ext <<_ACEOF
29238 /* end confdefs.h.  */
29239 $ac_includes_default
29240 #include <$ac_header>
29241 _ACEOF
29242 rm -f conftest.$ac_objext
29243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29244   (eval $ac_compile) 2>conftest.er1
29245   ac_status=$?
29246   grep -v '^ *+' conftest.er1 >conftest.err
29247   rm -f conftest.er1
29248   cat conftest.err >&5
29249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250   (exit $ac_status); } &&
29251          { ac_try='test -z "$ac_c_werror_flag"
29252                          || test ! -s conftest.err'
29253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29254   (eval $ac_try) 2>&5
29255   ac_status=$?
29256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257   (exit $ac_status); }; } &&
29258          { ac_try='test -s conftest.$ac_objext'
29259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29260   (eval $ac_try) 2>&5
29261   ac_status=$?
29262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263   (exit $ac_status); }; }; then
29264   ac_header_compiler=yes
29265 else
29266   echo "$as_me: failed program was:" >&5
29267 sed 's/^/| /' conftest.$ac_ext >&5
29268
29269 ac_header_compiler=no
29270 fi
29271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29272 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29273 echo "${ECHO_T}$ac_header_compiler" >&6
29274
29275 # Is the header present?
29276 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29278 cat >conftest.$ac_ext <<_ACEOF
29279 /* confdefs.h.  */
29280 _ACEOF
29281 cat confdefs.h >>conftest.$ac_ext
29282 cat >>conftest.$ac_ext <<_ACEOF
29283 /* end confdefs.h.  */
29284 #include <$ac_header>
29285 _ACEOF
29286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29287   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29288   ac_status=$?
29289   grep -v '^ *+' conftest.er1 >conftest.err
29290   rm -f conftest.er1
29291   cat conftest.err >&5
29292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293   (exit $ac_status); } >/dev/null; then
29294   if test -s conftest.err; then
29295     ac_cpp_err=$ac_c_preproc_warn_flag
29296     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29297   else
29298     ac_cpp_err=
29299   fi
29300 else
29301   ac_cpp_err=yes
29302 fi
29303 if test -z "$ac_cpp_err"; then
29304   ac_header_preproc=yes
29305 else
29306   echo "$as_me: failed program was:" >&5
29307 sed 's/^/| /' conftest.$ac_ext >&5
29308
29309   ac_header_preproc=no
29310 fi
29311 rm -f conftest.err conftest.$ac_ext
29312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29313 echo "${ECHO_T}$ac_header_preproc" >&6
29314
29315 # So?  What about this header?
29316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29317   yes:no: )
29318     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29320     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29322     ac_header_preproc=yes
29323     ;;
29324   no:yes:* )
29325     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29327     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29328 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29329     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29331     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29332 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29335     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29337     (
29338       cat <<\_ASBOX
29339 ## ------------------------------------------ ##
29340 ## Report this to the AC_PACKAGE_NAME lists.  ##
29341 ## ------------------------------------------ ##
29342 _ASBOX
29343     ) |
29344       sed "s/^/$as_me: WARNING:     /" >&2
29345     ;;
29346 esac
29347 echo "$as_me:$LINENO: checking for $ac_header" >&5
29348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29350   echo $ECHO_N "(cached) $ECHO_C" >&6
29351 else
29352   eval "$as_ac_Header=\$ac_header_preproc"
29353 fi
29354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29356
29357 fi
29358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29359   cat >>confdefs.h <<_ACEOF
29360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29361 _ACEOF
29362
29363 fi
29364
29365 done
29366
29367
29368         if test $ac_cv_header_openssl_ssl_h = yes \
29369                 -o $ac_cv_header_ssl_h = yes ; then
29370                 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29371 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29372 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29373   echo $ECHO_N "(cached) $ECHO_C" >&6
29374 else
29375   ac_check_lib_save_LIBS=$LIBS
29376 LIBS="-lssl -lcrypto $LIBS"
29377 cat >conftest.$ac_ext <<_ACEOF
29378 /* confdefs.h.  */
29379 _ACEOF
29380 cat confdefs.h >>conftest.$ac_ext
29381 cat >>conftest.$ac_ext <<_ACEOF
29382 /* end confdefs.h.  */
29383
29384 /* Override any gcc2 internal prototype to avoid an error.  */
29385 #ifdef __cplusplus
29386 extern "C"
29387 #endif
29388 /* We use char because int might match the return type of a gcc2
29389    builtin and then its argument prototype would still apply.  */
29390 char SSLeay_add_ssl_algorithms ();
29391 int
29392 main ()
29393 {
29394 SSLeay_add_ssl_algorithms ();
29395   ;
29396   return 0;
29397 }
29398 _ACEOF
29399 rm -f conftest.$ac_objext conftest$ac_exeext
29400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29401   (eval $ac_link) 2>conftest.er1
29402   ac_status=$?
29403   grep -v '^ *+' conftest.er1 >conftest.err
29404   rm -f conftest.er1
29405   cat conftest.err >&5
29406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407   (exit $ac_status); } &&
29408          { ac_try='test -z "$ac_c_werror_flag"
29409                          || test ! -s conftest.err'
29410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411   (eval $ac_try) 2>&5
29412   ac_status=$?
29413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414   (exit $ac_status); }; } &&
29415          { ac_try='test -s conftest$ac_exeext'
29416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29417   (eval $ac_try) 2>&5
29418   ac_status=$?
29419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29420   (exit $ac_status); }; }; then
29421   ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29422 else
29423   echo "$as_me: failed program was:" >&5
29424 sed 's/^/| /' conftest.$ac_ext >&5
29425
29426 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29427 fi
29428 rm -f conftest.err conftest.$ac_objext \
29429       conftest$ac_exeext conftest.$ac_ext
29430 LIBS=$ac_check_lib_save_LIBS
29431 fi
29432 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29433 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29434 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29435   have_ssleay=yes
29436                         need_rsaref=no
29437 else
29438   have_ssleay=no
29439 fi
29440
29441
29442                 if test $have_ssleay = no ; then
29443                         echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29444 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29445 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29446   echo $ECHO_N "(cached) $ECHO_C" >&6
29447 else
29448   ac_check_lib_save_LIBS=$LIBS
29449 LIBS="-lssl -lcrypto $LIBS"
29450 cat >conftest.$ac_ext <<_ACEOF
29451 /* confdefs.h.  */
29452 _ACEOF
29453 cat confdefs.h >>conftest.$ac_ext
29454 cat >>conftest.$ac_ext <<_ACEOF
29455 /* end confdefs.h.  */
29456
29457 /* Override any gcc2 internal prototype to avoid an error.  */
29458 #ifdef __cplusplus
29459 extern "C"
29460 #endif
29461 /* We use char because int might match the return type of a gcc2
29462    builtin and then its argument prototype would still apply.  */
29463 char SSL_library_init ();
29464 int
29465 main ()
29466 {
29467 SSL_library_init ();
29468   ;
29469   return 0;
29470 }
29471 _ACEOF
29472 rm -f conftest.$ac_objext conftest$ac_exeext
29473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29474   (eval $ac_link) 2>conftest.er1
29475   ac_status=$?
29476   grep -v '^ *+' conftest.er1 >conftest.err
29477   rm -f conftest.er1
29478   cat conftest.err >&5
29479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480   (exit $ac_status); } &&
29481          { ac_try='test -z "$ac_c_werror_flag"
29482                          || test ! -s conftest.err'
29483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29484   (eval $ac_try) 2>&5
29485   ac_status=$?
29486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487   (exit $ac_status); }; } &&
29488          { ac_try='test -s conftest$ac_exeext'
29489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490   (eval $ac_try) 2>&5
29491   ac_status=$?
29492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493   (exit $ac_status); }; }; then
29494   ac_cv_lib_ssl_SSL_library_init=yes
29495 else
29496   echo "$as_me: failed program was:" >&5
29497 sed 's/^/| /' conftest.$ac_ext >&5
29498
29499 ac_cv_lib_ssl_SSL_library_init=no
29500 fi
29501 rm -f conftest.err conftest.$ac_objext \
29502       conftest$ac_exeext conftest.$ac_ext
29503 LIBS=$ac_check_lib_save_LIBS
29504 fi
29505 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29506 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29507 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29508   have_ssleay=yes
29509                                 need_rsaref=no
29510 else
29511   have_ssleay=no
29512 fi
29513
29514                 fi
29515
29516                 if test $have_ssleay = no ; then
29517                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29518 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29519 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29520   echo $ECHO_N "(cached) $ECHO_C" >&6
29521 else
29522   ac_check_lib_save_LIBS=$LIBS
29523 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29524 cat >conftest.$ac_ext <<_ACEOF
29525 /* confdefs.h.  */
29526 _ACEOF
29527 cat confdefs.h >>conftest.$ac_ext
29528 cat >>conftest.$ac_ext <<_ACEOF
29529 /* end confdefs.h.  */
29530
29531 /* Override any gcc2 internal prototype to avoid an error.  */
29532 #ifdef __cplusplus
29533 extern "C"
29534 #endif
29535 /* We use char because int might match the return type of a gcc2
29536    builtin and then its argument prototype would still apply.  */
29537 char ssl3_accept ();
29538 int
29539 main ()
29540 {
29541 ssl3_accept ();
29542   ;
29543   return 0;
29544 }
29545 _ACEOF
29546 rm -f conftest.$ac_objext conftest$ac_exeext
29547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29548   (eval $ac_link) 2>conftest.er1
29549   ac_status=$?
29550   grep -v '^ *+' conftest.er1 >conftest.err
29551   rm -f conftest.er1
29552   cat conftest.err >&5
29553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554   (exit $ac_status); } &&
29555          { ac_try='test -z "$ac_c_werror_flag"
29556                          || test ! -s conftest.err'
29557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29558   (eval $ac_try) 2>&5
29559   ac_status=$?
29560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561   (exit $ac_status); }; } &&
29562          { ac_try='test -s conftest$ac_exeext'
29563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29564   (eval $ac_try) 2>&5
29565   ac_status=$?
29566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567   (exit $ac_status); }; }; then
29568   ac_cv_lib_ssl_ssl3_accept=yes
29569 else
29570   echo "$as_me: failed program was:" >&5
29571 sed 's/^/| /' conftest.$ac_ext >&5
29572
29573 ac_cv_lib_ssl_ssl3_accept=no
29574 fi
29575 rm -f conftest.err conftest.$ac_objext \
29576       conftest$ac_exeext conftest.$ac_ext
29577 LIBS=$ac_check_lib_save_LIBS
29578 fi
29579 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29580 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29581 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29582   have_ssleay=yes
29583                                 need_rsaref=yes
29584 else
29585   have_ssleay=no
29586 fi
29587
29588                 fi
29589
29590                 if test $have_ssleay = yes ; then
29591                         ol_with_tls=found
29592                         ol_link_tls=yes
29593
29594
29595 cat >>confdefs.h <<\_ACEOF
29596 #define HAVE_SSLEAY 1
29597 _ACEOF
29598
29599
29600                         if test $need_rsaref = yes; then
29601
29602 cat >>confdefs.h <<\_ACEOF
29603 #define HAVE_RSAREF 1
29604 _ACEOF
29605
29606
29607                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29608                         else
29609                                 TLS_LIBS="-lssl -lcrypto"
29610                         fi
29611                 fi
29612                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29613 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29614 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29615   echo $ECHO_N "(cached) $ECHO_C" >&6
29616 else
29617
29618         cat >conftest.$ac_ext <<_ACEOF
29619 /* confdefs.h.  */
29620 _ACEOF
29621 cat confdefs.h >>conftest.$ac_ext
29622 cat >>conftest.$ac_ext <<_ACEOF
29623 /* end confdefs.h.  */
29624
29625 #ifdef HAVE_OPENSSL_SSL_H
29626 #include <openssl/ssl.h>
29627 #else
29628 #include <ssl.h>
29629 #endif
29630
29631 /* Require 0.9.7d+ */
29632 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29633         char *__ssl_compat = "0.9.7d";
29634 #endif
29635
29636 _ACEOF
29637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29638   $EGREP "__ssl_compat" >/dev/null 2>&1; then
29639   ol_cv_ssl_crl_compat=yes
29640 else
29641   ol_cv_ssl_crl_compat=no
29642 fi
29643 rm -f conftest*
29644
29645 fi
29646 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29647 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29648
29649                 if test $ol_cv_ssl_crl_compat = no ; then
29650                         ol_link_ssl=no
29651                 else
29652
29653 cat >>confdefs.h <<\_ACEOF
29654 #define HAVE_OPENSSL_CRL 1
29655 _ACEOF
29656
29657                 fi
29658         fi
29659
29660 else
29661         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29662 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29663 fi
29664
29665 WITH_TLS=no
29666 if test $ol_link_tls = yes ; then
29667
29668 cat >>confdefs.h <<\_ACEOF
29669 #define HAVE_TLS 1
29670 _ACEOF
29671
29672         WITH_TLS=yes
29673
29674 elif test $ol_with_tls = auto ; then
29675         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29676 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29677         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29678 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29679
29680 elif test $ol_with_tls != no ; then
29681         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29682 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29683    { (exit 1); exit 1; }; }
29684 fi
29685
29686 if test $ol_enable_lmpasswd != no; then
29687         if test $ol_link_tls != yes ; then
29688                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29689 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29690    { (exit 1); exit 1; }; }
29691         fi
29692
29693
29694 cat >>confdefs.h <<\_ACEOF
29695 #define SLAPD_LMHASH 1
29696 _ACEOF
29697
29698 fi
29699
29700 ol_link_threads=no
29701
29702 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29703         -o $ol_with_threads = nt ; then
29704
29705
29706         echo "$as_me:$LINENO: checking for _beginthread" >&5
29707 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29708 if test "${ac_cv_func__beginthread+set}" = set; then
29709   echo $ECHO_N "(cached) $ECHO_C" >&6
29710 else
29711   cat >conftest.$ac_ext <<_ACEOF
29712 /* confdefs.h.  */
29713 _ACEOF
29714 cat confdefs.h >>conftest.$ac_ext
29715 cat >>conftest.$ac_ext <<_ACEOF
29716 /* end confdefs.h.  */
29717 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29719 #define _beginthread innocuous__beginthread
29720
29721 /* System header to define __stub macros and hopefully few prototypes,
29722     which can conflict with char _beginthread (); below.
29723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29724     <limits.h> exists even on freestanding compilers.  */
29725
29726 #ifdef __STDC__
29727 # include <limits.h>
29728 #else
29729 # include <assert.h>
29730 #endif
29731
29732 #undef _beginthread
29733
29734 /* Override any gcc2 internal prototype to avoid an error.  */
29735 #ifdef __cplusplus
29736 extern "C"
29737 {
29738 #endif
29739 /* We use char because int might match the return type of a gcc2
29740    builtin and then its argument prototype would still apply.  */
29741 char _beginthread ();
29742 /* The GNU C library defines this for functions which it implements
29743     to always fail with ENOSYS.  Some functions are actually named
29744     something starting with __ and the normal name is an alias.  */
29745 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29746 choke me
29747 #else
29748 char (*f) () = _beginthread;
29749 #endif
29750 #ifdef __cplusplus
29751 }
29752 #endif
29753
29754 int
29755 main ()
29756 {
29757 return f != _beginthread;
29758   ;
29759   return 0;
29760 }
29761 _ACEOF
29762 rm -f conftest.$ac_objext conftest$ac_exeext
29763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29764   (eval $ac_link) 2>conftest.er1
29765   ac_status=$?
29766   grep -v '^ *+' conftest.er1 >conftest.err
29767   rm -f conftest.er1
29768   cat conftest.err >&5
29769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770   (exit $ac_status); } &&
29771          { ac_try='test -z "$ac_c_werror_flag"
29772                          || test ! -s conftest.err'
29773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29774   (eval $ac_try) 2>&5
29775   ac_status=$?
29776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777   (exit $ac_status); }; } &&
29778          { ac_try='test -s conftest$ac_exeext'
29779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29780   (eval $ac_try) 2>&5
29781   ac_status=$?
29782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783   (exit $ac_status); }; }; then
29784   ac_cv_func__beginthread=yes
29785 else
29786   echo "$as_me: failed program was:" >&5
29787 sed 's/^/| /' conftest.$ac_ext >&5
29788
29789 ac_cv_func__beginthread=no
29790 fi
29791 rm -f conftest.err conftest.$ac_objext \
29792       conftest$ac_exeext conftest.$ac_ext
29793 fi
29794 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29795 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29796
29797
29798         if test $ac_cv_func__beginthread = yes ; then
29799
29800 cat >>confdefs.h <<\_ACEOF
29801 #define HAVE_NT_THREADS 1
29802 _ACEOF
29803
29804                 ol_cv_nt_threads=yes
29805         fi
29806
29807
29808         if test "$ol_cv_nt_threads" = yes ; then
29809                 ol_link_threads=nt
29810                 ol_with_threads=found
29811                 ol_with_yielding_select=yes
29812
29813
29814 cat >>confdefs.h <<\_ACEOF
29815 #define HAVE_NT_SERVICE_MANAGER 1
29816 _ACEOF
29817
29818
29819 cat >>confdefs.h <<\_ACEOF
29820 #define HAVE_NT_EVENT_LOG 1
29821 _ACEOF
29822
29823         fi
29824
29825         if test $ol_with_threads = nt ; then
29826                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29827 echo "$as_me: error: could not locate NT Threads" >&2;}
29828    { (exit 1); exit 1; }; }
29829         fi
29830 fi
29831
29832 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29833         -o $ol_with_threads = posix ; then
29834
29835
29836 for ac_header in pthread.h
29837 do
29838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29840   echo "$as_me:$LINENO: checking for $ac_header" >&5
29841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29843   echo $ECHO_N "(cached) $ECHO_C" >&6
29844 fi
29845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29847 else
29848   # Is the header compilable?
29849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29851 cat >conftest.$ac_ext <<_ACEOF
29852 /* confdefs.h.  */
29853 _ACEOF
29854 cat confdefs.h >>conftest.$ac_ext
29855 cat >>conftest.$ac_ext <<_ACEOF
29856 /* end confdefs.h.  */
29857 $ac_includes_default
29858 #include <$ac_header>
29859 _ACEOF
29860 rm -f conftest.$ac_objext
29861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29862   (eval $ac_compile) 2>conftest.er1
29863   ac_status=$?
29864   grep -v '^ *+' conftest.er1 >conftest.err
29865   rm -f conftest.er1
29866   cat conftest.err >&5
29867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868   (exit $ac_status); } &&
29869          { ac_try='test -z "$ac_c_werror_flag"
29870                          || test ! -s conftest.err'
29871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29872   (eval $ac_try) 2>&5
29873   ac_status=$?
29874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875   (exit $ac_status); }; } &&
29876          { ac_try='test -s conftest.$ac_objext'
29877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29878   (eval $ac_try) 2>&5
29879   ac_status=$?
29880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881   (exit $ac_status); }; }; then
29882   ac_header_compiler=yes
29883 else
29884   echo "$as_me: failed program was:" >&5
29885 sed 's/^/| /' conftest.$ac_ext >&5
29886
29887 ac_header_compiler=no
29888 fi
29889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29891 echo "${ECHO_T}$ac_header_compiler" >&6
29892
29893 # Is the header present?
29894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29896 cat >conftest.$ac_ext <<_ACEOF
29897 /* confdefs.h.  */
29898 _ACEOF
29899 cat confdefs.h >>conftest.$ac_ext
29900 cat >>conftest.$ac_ext <<_ACEOF
29901 /* end confdefs.h.  */
29902 #include <$ac_header>
29903 _ACEOF
29904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29905   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29906   ac_status=$?
29907   grep -v '^ *+' conftest.er1 >conftest.err
29908   rm -f conftest.er1
29909   cat conftest.err >&5
29910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911   (exit $ac_status); } >/dev/null; then
29912   if test -s conftest.err; then
29913     ac_cpp_err=$ac_c_preproc_warn_flag
29914     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29915   else
29916     ac_cpp_err=
29917   fi
29918 else
29919   ac_cpp_err=yes
29920 fi
29921 if test -z "$ac_cpp_err"; then
29922   ac_header_preproc=yes
29923 else
29924   echo "$as_me: failed program was:" >&5
29925 sed 's/^/| /' conftest.$ac_ext >&5
29926
29927   ac_header_preproc=no
29928 fi
29929 rm -f conftest.err conftest.$ac_ext
29930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29931 echo "${ECHO_T}$ac_header_preproc" >&6
29932
29933 # So?  What about this header?
29934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29935   yes:no: )
29936     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29940     ac_header_preproc=yes
29941     ;;
29942   no:yes:* )
29943     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29945     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29946 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29947     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29949     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29950 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29953     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29955     (
29956       cat <<\_ASBOX
29957 ## ------------------------------------------ ##
29958 ## Report this to the AC_PACKAGE_NAME lists.  ##
29959 ## ------------------------------------------ ##
29960 _ASBOX
29961     ) |
29962       sed "s/^/$as_me: WARNING:     /" >&2
29963     ;;
29964 esac
29965 echo "$as_me:$LINENO: checking for $ac_header" >&5
29966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29968   echo $ECHO_N "(cached) $ECHO_C" >&6
29969 else
29970   eval "$as_ac_Header=\$ac_header_preproc"
29971 fi
29972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29974
29975 fi
29976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29977   cat >>confdefs.h <<_ACEOF
29978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29979 _ACEOF
29980
29981 fi
29982
29983 done
29984
29985
29986         if test $ac_cv_header_pthread_h = yes ; then
29987                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
29988 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
29989 if test "${ol_cv_pthread_version+set}" = set; then
29990   echo $ECHO_N "(cached) $ECHO_C" >&6
29991 else
29992
29993         cat >conftest.$ac_ext <<_ACEOF
29994 /* confdefs.h.  */
29995 _ACEOF
29996 cat confdefs.h >>conftest.$ac_ext
29997 cat >>conftest.$ac_ext <<_ACEOF
29998 /* end confdefs.h.  */
29999
30000 #               include <pthread.h>
30001
30002 int
30003 main ()
30004 {
30005
30006                 int i = PTHREAD_CREATE_JOINABLE;
30007
30008   ;
30009   return 0;
30010 }
30011 _ACEOF
30012 rm -f conftest.$ac_objext
30013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30014   (eval $ac_compile) 2>conftest.er1
30015   ac_status=$?
30016   grep -v '^ *+' conftest.er1 >conftest.err
30017   rm -f conftest.er1
30018   cat conftest.err >&5
30019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30020   (exit $ac_status); } &&
30021          { ac_try='test -z "$ac_c_werror_flag"
30022                          || test ! -s conftest.err'
30023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30024   (eval $ac_try) 2>&5
30025   ac_status=$?
30026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027   (exit $ac_status); }; } &&
30028          { ac_try='test -s conftest.$ac_objext'
30029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30030   (eval $ac_try) 2>&5
30031   ac_status=$?
30032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30033   (exit $ac_status); }; }; then
30034
30035         cat >conftest.$ac_ext <<_ACEOF
30036 /* confdefs.h.  */
30037 _ACEOF
30038 cat confdefs.h >>conftest.$ac_ext
30039 cat >>conftest.$ac_ext <<_ACEOF
30040 /* end confdefs.h.  */
30041 #include <pthread.h>
30042
30043 _ACEOF
30044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30045   $EGREP "pthread_detach" >/dev/null 2>&1; then
30046   ol_cv_pthread_version=10
30047 else
30048   ol_cv_pthread_version=8
30049 fi
30050 rm -f conftest*
30051
30052 else
30053   echo "$as_me: failed program was:" >&5
30054 sed 's/^/| /' conftest.$ac_ext >&5
30055
30056
30057         cat >conftest.$ac_ext <<_ACEOF
30058 /* confdefs.h.  */
30059 _ACEOF
30060 cat confdefs.h >>conftest.$ac_ext
30061 cat >>conftest.$ac_ext <<_ACEOF
30062 /* end confdefs.h.  */
30063
30064 #               include <pthread.h>
30065 #               ifdef PTHREAD_CREATE_UNDETACHED
30066                 draft7
30067 #               endif
30068
30069 _ACEOF
30070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30071   $EGREP "draft7" >/dev/null 2>&1; then
30072   ol_cv_pthread_version=7
30073 else
30074
30075         cat >conftest.$ac_ext <<_ACEOF
30076 /* confdefs.h.  */
30077 _ACEOF
30078 cat confdefs.h >>conftest.$ac_ext
30079 cat >>conftest.$ac_ext <<_ACEOF
30080 /* end confdefs.h.  */
30081 #include <pthread.h>
30082
30083 _ACEOF
30084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30085   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30086   ol_cv_pthread_version=6
30087 else
30088
30089         cat >conftest.$ac_ext <<_ACEOF
30090 /* confdefs.h.  */
30091 _ACEOF
30092 cat confdefs.h >>conftest.$ac_ext
30093 cat >>conftest.$ac_ext <<_ACEOF
30094 /* end confdefs.h.  */
30095
30096 #               include <pthread.h>
30097 #ifdef          PTHREAD_MUTEX_INITIALIZER
30098                 draft5
30099 #endif
30100
30101 _ACEOF
30102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30103   $EGREP "draft5" >/dev/null 2>&1; then
30104   ol_cv_pthread_version=5
30105 else
30106   ol_cv_pthread_version=4
30107 fi
30108 rm -f conftest*
30109
30110 fi
30111 rm -f conftest*
30112
30113 fi
30114 rm -f conftest*
30115
30116 fi
30117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30118
30119 fi
30120 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30121 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30122
30123
30124                 if test $ol_cv_pthread_version != 0 ; then
30125
30126 cat >>confdefs.h <<_ACEOF
30127 #define HAVE_PTHREADS $ol_cv_pthread_version
30128 _ACEOF
30129
30130                 else
30131                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30132 echo "$as_me: error: unknown pthread version" >&2;}
30133    { (exit 1); exit 1; }; }
30134                 fi
30135
30136                 # consider threads found
30137                 ol_with_threads=found
30138
30139
30140         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30141 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30142 if test "${ol_cv_header_linux_threads+set}" = set; then
30143   echo $ECHO_N "(cached) $ECHO_C" >&6
30144 else
30145   cat >conftest.$ac_ext <<_ACEOF
30146 /* confdefs.h.  */
30147 _ACEOF
30148 cat confdefs.h >>conftest.$ac_ext
30149 cat >>conftest.$ac_ext <<_ACEOF
30150 /* end confdefs.h.  */
30151 #include <pthread.h>
30152 _ACEOF
30153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30154   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30155   ol_cv_header_linux_threads=yes
30156 else
30157   ol_cv_header_linux_threads=no
30158 fi
30159 rm -f conftest*
30160
30161
30162 fi
30163 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30164 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30165         if test $ol_cv_header_linux_threads = yes; then
30166
30167 cat >>confdefs.h <<\_ACEOF
30168 #define HAVE_LINUX_THREADS 1
30169 _ACEOF
30170
30171         fi
30172
30173
30174         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30175 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30176 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30177   echo $ECHO_N "(cached) $ECHO_C" >&6
30178 else
30179   cat >conftest.$ac_ext <<_ACEOF
30180 /* confdefs.h.  */
30181 _ACEOF
30182 cat confdefs.h >>conftest.$ac_ext
30183 cat >>conftest.$ac_ext <<_ACEOF
30184 /* end confdefs.h.  */
30185 #include <pthread.h>
30186 #ifdef _POSIX_THREAD_IS_GNU_PTH
30187         __gnu_pth__;
30188 #endif
30189
30190 _ACEOF
30191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30192   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30193   ol_cv_header_gnu_pth_pthread_h=yes
30194 else
30195   ol_cv_header_gnu_pth_pthread_h=no
30196 fi
30197 rm -f conftest*
30198
30199
30200 fi
30201 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30202 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30203
30204
30205                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30206
30207 for ac_header in sched.h
30208 do
30209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30211   echo "$as_me:$LINENO: checking for $ac_header" >&5
30212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30214   echo $ECHO_N "(cached) $ECHO_C" >&6
30215 fi
30216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30218 else
30219   # Is the header compilable?
30220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30222 cat >conftest.$ac_ext <<_ACEOF
30223 /* confdefs.h.  */
30224 _ACEOF
30225 cat confdefs.h >>conftest.$ac_ext
30226 cat >>conftest.$ac_ext <<_ACEOF
30227 /* end confdefs.h.  */
30228 $ac_includes_default
30229 #include <$ac_header>
30230 _ACEOF
30231 rm -f conftest.$ac_objext
30232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30233   (eval $ac_compile) 2>conftest.er1
30234   ac_status=$?
30235   grep -v '^ *+' conftest.er1 >conftest.err
30236   rm -f conftest.er1
30237   cat conftest.err >&5
30238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239   (exit $ac_status); } &&
30240          { ac_try='test -z "$ac_c_werror_flag"
30241                          || test ! -s conftest.err'
30242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30243   (eval $ac_try) 2>&5
30244   ac_status=$?
30245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30246   (exit $ac_status); }; } &&
30247          { ac_try='test -s conftest.$ac_objext'
30248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30249   (eval $ac_try) 2>&5
30250   ac_status=$?
30251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30252   (exit $ac_status); }; }; then
30253   ac_header_compiler=yes
30254 else
30255   echo "$as_me: failed program was:" >&5
30256 sed 's/^/| /' conftest.$ac_ext >&5
30257
30258 ac_header_compiler=no
30259 fi
30260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30262 echo "${ECHO_T}$ac_header_compiler" >&6
30263
30264 # Is the header present?
30265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30267 cat >conftest.$ac_ext <<_ACEOF
30268 /* confdefs.h.  */
30269 _ACEOF
30270 cat confdefs.h >>conftest.$ac_ext
30271 cat >>conftest.$ac_ext <<_ACEOF
30272 /* end confdefs.h.  */
30273 #include <$ac_header>
30274 _ACEOF
30275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30276   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30277   ac_status=$?
30278   grep -v '^ *+' conftest.er1 >conftest.err
30279   rm -f conftest.er1
30280   cat conftest.err >&5
30281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282   (exit $ac_status); } >/dev/null; then
30283   if test -s conftest.err; then
30284     ac_cpp_err=$ac_c_preproc_warn_flag
30285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30286   else
30287     ac_cpp_err=
30288   fi
30289 else
30290   ac_cpp_err=yes
30291 fi
30292 if test -z "$ac_cpp_err"; then
30293   ac_header_preproc=yes
30294 else
30295   echo "$as_me: failed program was:" >&5
30296 sed 's/^/| /' conftest.$ac_ext >&5
30297
30298   ac_header_preproc=no
30299 fi
30300 rm -f conftest.err conftest.$ac_ext
30301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30302 echo "${ECHO_T}$ac_header_preproc" >&6
30303
30304 # So?  What about this header?
30305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30306   yes:no: )
30307     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30311     ac_header_preproc=yes
30312     ;;
30313   no:yes:* )
30314     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30316     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30317 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30318     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30320     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30321 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30322     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30324     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30326     (
30327       cat <<\_ASBOX
30328 ## ------------------------------------------ ##
30329 ## Report this to the AC_PACKAGE_NAME lists.  ##
30330 ## ------------------------------------------ ##
30331 _ASBOX
30332     ) |
30333       sed "s/^/$as_me: WARNING:     /" >&2
30334     ;;
30335 esac
30336 echo "$as_me:$LINENO: checking for $ac_header" >&5
30337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30339   echo $ECHO_N "(cached) $ECHO_C" >&6
30340 else
30341   eval "$as_ac_Header=\$ac_header_preproc"
30342 fi
30343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30345
30346 fi
30347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30348   cat >>confdefs.h <<_ACEOF
30349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30350 _ACEOF
30351
30352 fi
30353
30354 done
30355
30356                 fi
30357
30358
30359                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30360 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30361 if test "${ol_cv_pthread_create+set}" = set; then
30362   echo $ECHO_N "(cached) $ECHO_C" >&6
30363 else
30364
30365                         if test "$cross_compiling" = yes; then
30366   cat >conftest.$ac_ext <<_ACEOF
30367 /* confdefs.h.  */
30368 _ACEOF
30369 cat confdefs.h >>conftest.$ac_ext
30370 cat >>conftest.$ac_ext <<_ACEOF
30371 /* end confdefs.h.  */
30372
30373 /* pthread test headers */
30374 #include <pthread.h>
30375 #if HAVE_PTHREADS < 7
30376 #include <errno.h>
30377 #endif
30378 #ifndef NULL
30379 #define NULL (void*)0
30380 #endif
30381
30382 static void *task(p)
30383         void *p;
30384 {
30385         return (void *) (p == NULL);
30386 }
30387
30388 int
30389 main ()
30390 {
30391
30392         /* pthread test function */
30393 #ifndef PTHREAD_CREATE_DETACHED
30394 #define PTHREAD_CREATE_DETACHED 1
30395 #endif
30396         pthread_t t;
30397         int status;
30398         int detach = PTHREAD_CREATE_DETACHED;
30399
30400 #if HAVE_PTHREADS > 4
30401         /* Final pthreads */
30402         pthread_attr_t attr;
30403
30404         status = pthread_attr_init(&attr);
30405         if( status ) return status;
30406
30407 #if HAVE_PTHREADS < 7
30408         status = pthread_attr_setdetachstate(&attr, &detach);
30409         if( status < 0 ) status = errno;
30410 #else
30411         status = pthread_attr_setdetachstate(&attr, detach);
30412 #endif
30413         if( status ) return status;
30414         status = pthread_create( &t, &attr, task, NULL );
30415 #if HAVE_PTHREADS < 7
30416         if( status < 0 ) status = errno;
30417 #endif
30418         if( status ) return status;
30419 #else
30420         /* Draft 4 pthreads */
30421         status = pthread_create( &t, pthread_attr_default, task, NULL );
30422         if( status ) return errno;
30423
30424         /* give thread a chance to complete */
30425         /* it should remain joinable and hence detachable */
30426         sleep( 1 );
30427
30428         status = pthread_detach( &t );
30429         if( status ) return errno;
30430 #endif
30431
30432 #ifdef HAVE_LINUX_THREADS
30433         pthread_kill_other_threads_np();
30434 #endif
30435
30436         return 0;
30437
30438   ;
30439   return 0;
30440 }
30441 _ACEOF
30442 rm -f conftest.$ac_objext conftest$ac_exeext
30443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30444   (eval $ac_link) 2>conftest.er1
30445   ac_status=$?
30446   grep -v '^ *+' conftest.er1 >conftest.err
30447   rm -f conftest.er1
30448   cat conftest.err >&5
30449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450   (exit $ac_status); } &&
30451          { ac_try='test -z "$ac_c_werror_flag"
30452                          || test ! -s conftest.err'
30453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30454   (eval $ac_try) 2>&5
30455   ac_status=$?
30456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457   (exit $ac_status); }; } &&
30458          { ac_try='test -s conftest$ac_exeext'
30459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30460   (eval $ac_try) 2>&5
30461   ac_status=$?
30462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463   (exit $ac_status); }; }; then
30464   ol_cv_pthread_create=yes
30465 else
30466   echo "$as_me: failed program was:" >&5
30467 sed 's/^/| /' conftest.$ac_ext >&5
30468
30469 ol_cv_pthread_create=no
30470 fi
30471 rm -f conftest.err conftest.$ac_objext \
30472       conftest$ac_exeext conftest.$ac_ext
30473 else
30474   cat >conftest.$ac_ext <<_ACEOF
30475
30476 /* pthread test headers */
30477 #include <pthread.h>
30478 #if HAVE_PTHREADS < 7
30479 #include <errno.h>
30480 #endif
30481 #ifndef NULL
30482 #define NULL (void*)0
30483 #endif
30484
30485 static void *task(p)
30486         void *p;
30487 {
30488         return (void *) (p == NULL);
30489 }
30490
30491
30492 int main(argc, argv)
30493         int argc;
30494         char **argv;
30495 {
30496
30497         /* pthread test function */
30498 #ifndef PTHREAD_CREATE_DETACHED
30499 #define PTHREAD_CREATE_DETACHED 1
30500 #endif
30501         pthread_t t;
30502         int status;
30503         int detach = PTHREAD_CREATE_DETACHED;
30504
30505 #if HAVE_PTHREADS > 4
30506         /* Final pthreads */
30507         pthread_attr_t attr;
30508
30509         status = pthread_attr_init(&attr);
30510         if( status ) return status;
30511
30512 #if HAVE_PTHREADS < 7
30513         status = pthread_attr_setdetachstate(&attr, &detach);
30514         if( status < 0 ) status = errno;
30515 #else
30516         status = pthread_attr_setdetachstate(&attr, detach);
30517 #endif
30518         if( status ) return status;
30519         status = pthread_create( &t, &attr, task, NULL );
30520 #if HAVE_PTHREADS < 7
30521         if( status < 0 ) status = errno;
30522 #endif
30523         if( status ) return status;
30524 #else
30525         /* Draft 4 pthreads */
30526         status = pthread_create( &t, pthread_attr_default, task, NULL );
30527         if( status ) return errno;
30528
30529         /* give thread a chance to complete */
30530         /* it should remain joinable and hence detachable */
30531         sleep( 1 );
30532
30533         status = pthread_detach( &t );
30534         if( status ) return errno;
30535 #endif
30536
30537 #ifdef HAVE_LINUX_THREADS
30538         pthread_kill_other_threads_np();
30539 #endif
30540
30541         return 0;
30542
30543 }
30544
30545 _ACEOF
30546 rm -f conftest$ac_exeext
30547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30548   (eval $ac_link) 2>&5
30549   ac_status=$?
30550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30553   (eval $ac_try) 2>&5
30554   ac_status=$?
30555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556   (exit $ac_status); }; }; then
30557   ol_cv_pthread_create=yes
30558 else
30559   echo "$as_me: program exited with status $ac_status" >&5
30560 echo "$as_me: failed program was:" >&5
30561 sed 's/^/| /' conftest.$ac_ext >&5
30562
30563 ( exit $ac_status )
30564 ol_cv_pthread_create=no
30565 fi
30566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30567 fi
30568 fi
30569 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30570 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30571
30572                 if test $ol_cv_pthread_create != no ; then
30573                         ol_link_threads=posix
30574                         ol_link_pthreads=""
30575                 fi
30576
30577                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30578 if test "$ol_link_threads" = no ; then
30579         # try -kthread
30580         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30581 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30582 if test "${ol_cv_pthread_kthread+set}" = set; then
30583   echo $ECHO_N "(cached) $ECHO_C" >&6
30584 else
30585
30586                 # save the flags
30587                 ol_LIBS="$LIBS"
30588                 LIBS="-kthread $LIBS"
30589
30590                 if test "$cross_compiling" = yes; then
30591   cat >conftest.$ac_ext <<_ACEOF
30592 /* confdefs.h.  */
30593 _ACEOF
30594 cat confdefs.h >>conftest.$ac_ext
30595 cat >>conftest.$ac_ext <<_ACEOF
30596 /* end confdefs.h.  */
30597
30598 /* pthread test headers */
30599 #include <pthread.h>
30600 #if HAVE_PTHREADS < 7
30601 #include <errno.h>
30602 #endif
30603 #ifndef NULL
30604 #define NULL (void*)0
30605 #endif
30606
30607 static void *task(p)
30608         void *p;
30609 {
30610         return (void *) (p == NULL);
30611 }
30612
30613 int
30614 main ()
30615 {
30616
30617         /* pthread test function */
30618 #ifndef PTHREAD_CREATE_DETACHED
30619 #define PTHREAD_CREATE_DETACHED 1
30620 #endif
30621         pthread_t t;
30622         int status;
30623         int detach = PTHREAD_CREATE_DETACHED;
30624
30625 #if HAVE_PTHREADS > 4
30626         /* Final pthreads */
30627         pthread_attr_t attr;
30628
30629         status = pthread_attr_init(&attr);
30630         if( status ) return status;
30631
30632 #if HAVE_PTHREADS < 7
30633         status = pthread_attr_setdetachstate(&attr, &detach);
30634         if( status < 0 ) status = errno;
30635 #else
30636         status = pthread_attr_setdetachstate(&attr, detach);
30637 #endif
30638         if( status ) return status;
30639         status = pthread_create( &t, &attr, task, NULL );
30640 #if HAVE_PTHREADS < 7
30641         if( status < 0 ) status = errno;
30642 #endif
30643         if( status ) return status;
30644 #else
30645         /* Draft 4 pthreads */
30646         status = pthread_create( &t, pthread_attr_default, task, NULL );
30647         if( status ) return errno;
30648
30649         /* give thread a chance to complete */
30650         /* it should remain joinable and hence detachable */
30651         sleep( 1 );
30652
30653         status = pthread_detach( &t );
30654         if( status ) return errno;
30655 #endif
30656
30657 #ifdef HAVE_LINUX_THREADS
30658         pthread_kill_other_threads_np();
30659 #endif
30660
30661         return 0;
30662
30663   ;
30664   return 0;
30665 }
30666 _ACEOF
30667 rm -f conftest.$ac_objext conftest$ac_exeext
30668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30669   (eval $ac_link) 2>conftest.er1
30670   ac_status=$?
30671   grep -v '^ *+' conftest.er1 >conftest.err
30672   rm -f conftest.er1
30673   cat conftest.err >&5
30674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675   (exit $ac_status); } &&
30676          { ac_try='test -z "$ac_c_werror_flag"
30677                          || test ! -s conftest.err'
30678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30679   (eval $ac_try) 2>&5
30680   ac_status=$?
30681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30682   (exit $ac_status); }; } &&
30683          { ac_try='test -s conftest$ac_exeext'
30684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30685   (eval $ac_try) 2>&5
30686   ac_status=$?
30687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688   (exit $ac_status); }; }; then
30689   ol_cv_pthread_kthread=yes
30690 else
30691   echo "$as_me: failed program was:" >&5
30692 sed 's/^/| /' conftest.$ac_ext >&5
30693
30694 ol_cv_pthread_kthread=no
30695 fi
30696 rm -f conftest.err conftest.$ac_objext \
30697       conftest$ac_exeext conftest.$ac_ext
30698 else
30699   cat >conftest.$ac_ext <<_ACEOF
30700
30701 /* pthread test headers */
30702 #include <pthread.h>
30703 #if HAVE_PTHREADS < 7
30704 #include <errno.h>
30705 #endif
30706 #ifndef NULL
30707 #define NULL (void*)0
30708 #endif
30709
30710 static void *task(p)
30711         void *p;
30712 {
30713         return (void *) (p == NULL);
30714 }
30715
30716
30717 int main(argc, argv)
30718         int argc;
30719         char **argv;
30720 {
30721
30722         /* pthread test function */
30723 #ifndef PTHREAD_CREATE_DETACHED
30724 #define PTHREAD_CREATE_DETACHED 1
30725 #endif
30726         pthread_t t;
30727         int status;
30728         int detach = PTHREAD_CREATE_DETACHED;
30729
30730 #if HAVE_PTHREADS > 4
30731         /* Final pthreads */
30732         pthread_attr_t attr;
30733
30734         status = pthread_attr_init(&attr);
30735         if( status ) return status;
30736
30737 #if HAVE_PTHREADS < 7
30738         status = pthread_attr_setdetachstate(&attr, &detach);
30739         if( status < 0 ) status = errno;
30740 #else
30741         status = pthread_attr_setdetachstate(&attr, detach);
30742 #endif
30743         if( status ) return status;
30744         status = pthread_create( &t, &attr, task, NULL );
30745 #if HAVE_PTHREADS < 7
30746         if( status < 0 ) status = errno;
30747 #endif
30748         if( status ) return status;
30749 #else
30750         /* Draft 4 pthreads */
30751         status = pthread_create( &t, pthread_attr_default, task, NULL );
30752         if( status ) return errno;
30753
30754         /* give thread a chance to complete */
30755         /* it should remain joinable and hence detachable */
30756         sleep( 1 );
30757
30758         status = pthread_detach( &t );
30759         if( status ) return errno;
30760 #endif
30761
30762 #ifdef HAVE_LINUX_THREADS
30763         pthread_kill_other_threads_np();
30764 #endif
30765
30766         return 0;
30767
30768 }
30769
30770 _ACEOF
30771 rm -f conftest$ac_exeext
30772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30773   (eval $ac_link) 2>&5
30774   ac_status=$?
30775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30778   (eval $ac_try) 2>&5
30779   ac_status=$?
30780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781   (exit $ac_status); }; }; then
30782   ol_cv_pthread_kthread=yes
30783 else
30784   echo "$as_me: program exited with status $ac_status" >&5
30785 echo "$as_me: failed program was:" >&5
30786 sed 's/^/| /' conftest.$ac_ext >&5
30787
30788 ( exit $ac_status )
30789 ol_cv_pthread_kthread=no
30790 fi
30791 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30792 fi
30793
30794                 # restore the LIBS
30795                 LIBS="$ol_LIBS"
30796
30797 fi
30798 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30799 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30800
30801         if test $ol_cv_pthread_kthread = yes ; then
30802                 ol_link_pthreads="-kthread"
30803                 ol_link_threads=posix
30804         fi
30805 fi
30806
30807                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30808 if test "$ol_link_threads" = no ; then
30809         # try -pthread
30810         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30811 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30812 if test "${ol_cv_pthread_pthread+set}" = set; then
30813   echo $ECHO_N "(cached) $ECHO_C" >&6
30814 else
30815
30816                 # save the flags
30817                 ol_LIBS="$LIBS"
30818                 LIBS="-pthread $LIBS"
30819
30820                 if test "$cross_compiling" = yes; then
30821   cat >conftest.$ac_ext <<_ACEOF
30822 /* confdefs.h.  */
30823 _ACEOF
30824 cat confdefs.h >>conftest.$ac_ext
30825 cat >>conftest.$ac_ext <<_ACEOF
30826 /* end confdefs.h.  */
30827
30828 /* pthread test headers */
30829 #include <pthread.h>
30830 #if HAVE_PTHREADS < 7
30831 #include <errno.h>
30832 #endif
30833 #ifndef NULL
30834 #define NULL (void*)0
30835 #endif
30836
30837 static void *task(p)
30838         void *p;
30839 {
30840         return (void *) (p == NULL);
30841 }
30842
30843 int
30844 main ()
30845 {
30846
30847         /* pthread test function */
30848 #ifndef PTHREAD_CREATE_DETACHED
30849 #define PTHREAD_CREATE_DETACHED 1
30850 #endif
30851         pthread_t t;
30852         int status;
30853         int detach = PTHREAD_CREATE_DETACHED;
30854
30855 #if HAVE_PTHREADS > 4
30856         /* Final pthreads */
30857         pthread_attr_t attr;
30858
30859         status = pthread_attr_init(&attr);
30860         if( status ) return status;
30861
30862 #if HAVE_PTHREADS < 7
30863         status = pthread_attr_setdetachstate(&attr, &detach);
30864         if( status < 0 ) status = errno;
30865 #else
30866         status = pthread_attr_setdetachstate(&attr, detach);
30867 #endif
30868         if( status ) return status;
30869         status = pthread_create( &t, &attr, task, NULL );
30870 #if HAVE_PTHREADS < 7
30871         if( status < 0 ) status = errno;
30872 #endif
30873         if( status ) return status;
30874 #else
30875         /* Draft 4 pthreads */
30876         status = pthread_create( &t, pthread_attr_default, task, NULL );
30877         if( status ) return errno;
30878
30879         /* give thread a chance to complete */
30880         /* it should remain joinable and hence detachable */
30881         sleep( 1 );
30882
30883         status = pthread_detach( &t );
30884         if( status ) return errno;
30885 #endif
30886
30887 #ifdef HAVE_LINUX_THREADS
30888         pthread_kill_other_threads_np();
30889 #endif
30890
30891         return 0;
30892
30893   ;
30894   return 0;
30895 }
30896 _ACEOF
30897 rm -f conftest.$ac_objext conftest$ac_exeext
30898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30899   (eval $ac_link) 2>conftest.er1
30900   ac_status=$?
30901   grep -v '^ *+' conftest.er1 >conftest.err
30902   rm -f conftest.er1
30903   cat conftest.err >&5
30904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905   (exit $ac_status); } &&
30906          { ac_try='test -z "$ac_c_werror_flag"
30907                          || test ! -s conftest.err'
30908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30909   (eval $ac_try) 2>&5
30910   ac_status=$?
30911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912   (exit $ac_status); }; } &&
30913          { ac_try='test -s conftest$ac_exeext'
30914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30915   (eval $ac_try) 2>&5
30916   ac_status=$?
30917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918   (exit $ac_status); }; }; then
30919   ol_cv_pthread_pthread=yes
30920 else
30921   echo "$as_me: failed program was:" >&5
30922 sed 's/^/| /' conftest.$ac_ext >&5
30923
30924 ol_cv_pthread_pthread=no
30925 fi
30926 rm -f conftest.err conftest.$ac_objext \
30927       conftest$ac_exeext conftest.$ac_ext
30928 else
30929   cat >conftest.$ac_ext <<_ACEOF
30930
30931 /* pthread test headers */
30932 #include <pthread.h>
30933 #if HAVE_PTHREADS < 7
30934 #include <errno.h>
30935 #endif
30936 #ifndef NULL
30937 #define NULL (void*)0
30938 #endif
30939
30940 static void *task(p)
30941         void *p;
30942 {
30943         return (void *) (p == NULL);
30944 }
30945
30946
30947 int main(argc, argv)
30948         int argc;
30949         char **argv;
30950 {
30951
30952         /* pthread test function */
30953 #ifndef PTHREAD_CREATE_DETACHED
30954 #define PTHREAD_CREATE_DETACHED 1
30955 #endif
30956         pthread_t t;
30957         int status;
30958         int detach = PTHREAD_CREATE_DETACHED;
30959
30960 #if HAVE_PTHREADS > 4
30961         /* Final pthreads */
30962         pthread_attr_t attr;
30963
30964         status = pthread_attr_init(&attr);
30965         if( status ) return status;
30966
30967 #if HAVE_PTHREADS < 7
30968         status = pthread_attr_setdetachstate(&attr, &detach);
30969         if( status < 0 ) status = errno;
30970 #else
30971         status = pthread_attr_setdetachstate(&attr, detach);
30972 #endif
30973         if( status ) return status;
30974         status = pthread_create( &t, &attr, task, NULL );
30975 #if HAVE_PTHREADS < 7
30976         if( status < 0 ) status = errno;
30977 #endif
30978         if( status ) return status;
30979 #else
30980         /* Draft 4 pthreads */
30981         status = pthread_create( &t, pthread_attr_default, task, NULL );
30982         if( status ) return errno;
30983
30984         /* give thread a chance to complete */
30985         /* it should remain joinable and hence detachable */
30986         sleep( 1 );
30987
30988         status = pthread_detach( &t );
30989         if( status ) return errno;
30990 #endif
30991
30992 #ifdef HAVE_LINUX_THREADS
30993         pthread_kill_other_threads_np();
30994 #endif
30995
30996         return 0;
30997
30998 }
30999
31000 _ACEOF
31001 rm -f conftest$ac_exeext
31002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31003   (eval $ac_link) 2>&5
31004   ac_status=$?
31005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31006   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31008   (eval $ac_try) 2>&5
31009   ac_status=$?
31010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011   (exit $ac_status); }; }; then
31012   ol_cv_pthread_pthread=yes
31013 else
31014   echo "$as_me: program exited with status $ac_status" >&5
31015 echo "$as_me: failed program was:" >&5
31016 sed 's/^/| /' conftest.$ac_ext >&5
31017
31018 ( exit $ac_status )
31019 ol_cv_pthread_pthread=no
31020 fi
31021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31022 fi
31023
31024                 # restore the LIBS
31025                 LIBS="$ol_LIBS"
31026
31027 fi
31028 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31029 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31030
31031         if test $ol_cv_pthread_pthread = yes ; then
31032                 ol_link_pthreads="-pthread"
31033                 ol_link_threads=posix
31034         fi
31035 fi
31036
31037                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31038 if test "$ol_link_threads" = no ; then
31039         # try -pthreads
31040         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31041 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31042 if test "${ol_cv_pthread_pthreads+set}" = set; then
31043   echo $ECHO_N "(cached) $ECHO_C" >&6
31044 else
31045
31046                 # save the flags
31047                 ol_LIBS="$LIBS"
31048                 LIBS="-pthreads $LIBS"
31049
31050                 if test "$cross_compiling" = yes; then
31051   cat >conftest.$ac_ext <<_ACEOF
31052 /* confdefs.h.  */
31053 _ACEOF
31054 cat confdefs.h >>conftest.$ac_ext
31055 cat >>conftest.$ac_ext <<_ACEOF
31056 /* end confdefs.h.  */
31057
31058 /* pthread test headers */
31059 #include <pthread.h>
31060 #if HAVE_PTHREADS < 7
31061 #include <errno.h>
31062 #endif
31063 #ifndef NULL
31064 #define NULL (void*)0
31065 #endif
31066
31067 static void *task(p)
31068         void *p;
31069 {
31070         return (void *) (p == NULL);
31071 }
31072
31073 int
31074 main ()
31075 {
31076
31077         /* pthread test function */
31078 #ifndef PTHREAD_CREATE_DETACHED
31079 #define PTHREAD_CREATE_DETACHED 1
31080 #endif
31081         pthread_t t;
31082         int status;
31083         int detach = PTHREAD_CREATE_DETACHED;
31084
31085 #if HAVE_PTHREADS > 4
31086         /* Final pthreads */
31087         pthread_attr_t attr;
31088
31089         status = pthread_attr_init(&attr);
31090         if( status ) return status;
31091
31092 #if HAVE_PTHREADS < 7
31093         status = pthread_attr_setdetachstate(&attr, &detach);
31094         if( status < 0 ) status = errno;
31095 #else
31096         status = pthread_attr_setdetachstate(&attr, detach);
31097 #endif
31098         if( status ) return status;
31099         status = pthread_create( &t, &attr, task, NULL );
31100 #if HAVE_PTHREADS < 7
31101         if( status < 0 ) status = errno;
31102 #endif
31103         if( status ) return status;
31104 #else
31105         /* Draft 4 pthreads */
31106         status = pthread_create( &t, pthread_attr_default, task, NULL );
31107         if( status ) return errno;
31108
31109         /* give thread a chance to complete */
31110         /* it should remain joinable and hence detachable */
31111         sleep( 1 );
31112
31113         status = pthread_detach( &t );
31114         if( status ) return errno;
31115 #endif
31116
31117 #ifdef HAVE_LINUX_THREADS
31118         pthread_kill_other_threads_np();
31119 #endif
31120
31121         return 0;
31122
31123   ;
31124   return 0;
31125 }
31126 _ACEOF
31127 rm -f conftest.$ac_objext conftest$ac_exeext
31128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31129   (eval $ac_link) 2>conftest.er1
31130   ac_status=$?
31131   grep -v '^ *+' conftest.er1 >conftest.err
31132   rm -f conftest.er1
31133   cat conftest.err >&5
31134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135   (exit $ac_status); } &&
31136          { ac_try='test -z "$ac_c_werror_flag"
31137                          || test ! -s conftest.err'
31138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31139   (eval $ac_try) 2>&5
31140   ac_status=$?
31141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142   (exit $ac_status); }; } &&
31143          { ac_try='test -s conftest$ac_exeext'
31144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31145   (eval $ac_try) 2>&5
31146   ac_status=$?
31147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148   (exit $ac_status); }; }; then
31149   ol_cv_pthread_pthreads=yes
31150 else
31151   echo "$as_me: failed program was:" >&5
31152 sed 's/^/| /' conftest.$ac_ext >&5
31153
31154 ol_cv_pthread_pthreads=no
31155 fi
31156 rm -f conftest.err conftest.$ac_objext \
31157       conftest$ac_exeext conftest.$ac_ext
31158 else
31159   cat >conftest.$ac_ext <<_ACEOF
31160
31161 /* pthread test headers */
31162 #include <pthread.h>
31163 #if HAVE_PTHREADS < 7
31164 #include <errno.h>
31165 #endif
31166 #ifndef NULL
31167 #define NULL (void*)0
31168 #endif
31169
31170 static void *task(p)
31171         void *p;
31172 {
31173         return (void *) (p == NULL);
31174 }
31175
31176
31177 int main(argc, argv)
31178         int argc;
31179         char **argv;
31180 {
31181
31182         /* pthread test function */
31183 #ifndef PTHREAD_CREATE_DETACHED
31184 #define PTHREAD_CREATE_DETACHED 1
31185 #endif
31186         pthread_t t;
31187         int status;
31188         int detach = PTHREAD_CREATE_DETACHED;
31189
31190 #if HAVE_PTHREADS > 4
31191         /* Final pthreads */
31192         pthread_attr_t attr;
31193
31194         status = pthread_attr_init(&attr);
31195         if( status ) return status;
31196
31197 #if HAVE_PTHREADS < 7
31198         status = pthread_attr_setdetachstate(&attr, &detach);
31199         if( status < 0 ) status = errno;
31200 #else
31201         status = pthread_attr_setdetachstate(&attr, detach);
31202 #endif
31203         if( status ) return status;
31204         status = pthread_create( &t, &attr, task, NULL );
31205 #if HAVE_PTHREADS < 7
31206         if( status < 0 ) status = errno;
31207 #endif
31208         if( status ) return status;
31209 #else
31210         /* Draft 4 pthreads */
31211         status = pthread_create( &t, pthread_attr_default, task, NULL );
31212         if( status ) return errno;
31213
31214         /* give thread a chance to complete */
31215         /* it should remain joinable and hence detachable */
31216         sleep( 1 );
31217
31218         status = pthread_detach( &t );
31219         if( status ) return errno;
31220 #endif
31221
31222 #ifdef HAVE_LINUX_THREADS
31223         pthread_kill_other_threads_np();
31224 #endif
31225
31226         return 0;
31227
31228 }
31229
31230 _ACEOF
31231 rm -f conftest$ac_exeext
31232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31233   (eval $ac_link) 2>&5
31234   ac_status=$?
31235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31238   (eval $ac_try) 2>&5
31239   ac_status=$?
31240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241   (exit $ac_status); }; }; then
31242   ol_cv_pthread_pthreads=yes
31243 else
31244   echo "$as_me: program exited with status $ac_status" >&5
31245 echo "$as_me: failed program was:" >&5
31246 sed 's/^/| /' conftest.$ac_ext >&5
31247
31248 ( exit $ac_status )
31249 ol_cv_pthread_pthreads=no
31250 fi
31251 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31252 fi
31253
31254                 # restore the LIBS
31255                 LIBS="$ol_LIBS"
31256
31257 fi
31258 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31259 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31260
31261         if test $ol_cv_pthread_pthreads = yes ; then
31262                 ol_link_pthreads="-pthreads"
31263                 ol_link_threads=posix
31264         fi
31265 fi
31266
31267                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31268 if test "$ol_link_threads" = no ; then
31269         # try -mthreads
31270         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31271 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31272 if test "${ol_cv_pthread_mthreads+set}" = set; then
31273   echo $ECHO_N "(cached) $ECHO_C" >&6
31274 else
31275
31276                 # save the flags
31277                 ol_LIBS="$LIBS"
31278                 LIBS="-mthreads $LIBS"
31279
31280                 if test "$cross_compiling" = yes; then
31281   cat >conftest.$ac_ext <<_ACEOF
31282 /* confdefs.h.  */
31283 _ACEOF
31284 cat confdefs.h >>conftest.$ac_ext
31285 cat >>conftest.$ac_ext <<_ACEOF
31286 /* end confdefs.h.  */
31287
31288 /* pthread test headers */
31289 #include <pthread.h>
31290 #if HAVE_PTHREADS < 7
31291 #include <errno.h>
31292 #endif
31293 #ifndef NULL
31294 #define NULL (void*)0
31295 #endif
31296
31297 static void *task(p)
31298         void *p;
31299 {
31300         return (void *) (p == NULL);
31301 }
31302
31303 int
31304 main ()
31305 {
31306
31307         /* pthread test function */
31308 #ifndef PTHREAD_CREATE_DETACHED
31309 #define PTHREAD_CREATE_DETACHED 1
31310 #endif
31311         pthread_t t;
31312         int status;
31313         int detach = PTHREAD_CREATE_DETACHED;
31314
31315 #if HAVE_PTHREADS > 4
31316         /* Final pthreads */
31317         pthread_attr_t attr;
31318
31319         status = pthread_attr_init(&attr);
31320         if( status ) return status;
31321
31322 #if HAVE_PTHREADS < 7
31323         status = pthread_attr_setdetachstate(&attr, &detach);
31324         if( status < 0 ) status = errno;
31325 #else
31326         status = pthread_attr_setdetachstate(&attr, detach);
31327 #endif
31328         if( status ) return status;
31329         status = pthread_create( &t, &attr, task, NULL );
31330 #if HAVE_PTHREADS < 7
31331         if( status < 0 ) status = errno;
31332 #endif
31333         if( status ) return status;
31334 #else
31335         /* Draft 4 pthreads */
31336         status = pthread_create( &t, pthread_attr_default, task, NULL );
31337         if( status ) return errno;
31338
31339         /* give thread a chance to complete */
31340         /* it should remain joinable and hence detachable */
31341         sleep( 1 );
31342
31343         status = pthread_detach( &t );
31344         if( status ) return errno;
31345 #endif
31346
31347 #ifdef HAVE_LINUX_THREADS
31348         pthread_kill_other_threads_np();
31349 #endif
31350
31351         return 0;
31352
31353   ;
31354   return 0;
31355 }
31356 _ACEOF
31357 rm -f conftest.$ac_objext conftest$ac_exeext
31358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31359   (eval $ac_link) 2>conftest.er1
31360   ac_status=$?
31361   grep -v '^ *+' conftest.er1 >conftest.err
31362   rm -f conftest.er1
31363   cat conftest.err >&5
31364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365   (exit $ac_status); } &&
31366          { ac_try='test -z "$ac_c_werror_flag"
31367                          || test ! -s conftest.err'
31368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31369   (eval $ac_try) 2>&5
31370   ac_status=$?
31371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372   (exit $ac_status); }; } &&
31373          { ac_try='test -s conftest$ac_exeext'
31374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31375   (eval $ac_try) 2>&5
31376   ac_status=$?
31377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378   (exit $ac_status); }; }; then
31379   ol_cv_pthread_mthreads=yes
31380 else
31381   echo "$as_me: failed program was:" >&5
31382 sed 's/^/| /' conftest.$ac_ext >&5
31383
31384 ol_cv_pthread_mthreads=no
31385 fi
31386 rm -f conftest.err conftest.$ac_objext \
31387       conftest$ac_exeext conftest.$ac_ext
31388 else
31389   cat >conftest.$ac_ext <<_ACEOF
31390
31391 /* pthread test headers */
31392 #include <pthread.h>
31393 #if HAVE_PTHREADS < 7
31394 #include <errno.h>
31395 #endif
31396 #ifndef NULL
31397 #define NULL (void*)0
31398 #endif
31399
31400 static void *task(p)
31401         void *p;
31402 {
31403         return (void *) (p == NULL);
31404 }
31405
31406
31407 int main(argc, argv)
31408         int argc;
31409         char **argv;
31410 {
31411
31412         /* pthread test function */
31413 #ifndef PTHREAD_CREATE_DETACHED
31414 #define PTHREAD_CREATE_DETACHED 1
31415 #endif
31416         pthread_t t;
31417         int status;
31418         int detach = PTHREAD_CREATE_DETACHED;
31419
31420 #if HAVE_PTHREADS > 4
31421         /* Final pthreads */
31422         pthread_attr_t attr;
31423
31424         status = pthread_attr_init(&attr);
31425         if( status ) return status;
31426
31427 #if HAVE_PTHREADS < 7
31428         status = pthread_attr_setdetachstate(&attr, &detach);
31429         if( status < 0 ) status = errno;
31430 #else
31431         status = pthread_attr_setdetachstate(&attr, detach);
31432 #endif
31433         if( status ) return status;
31434         status = pthread_create( &t, &attr, task, NULL );
31435 #if HAVE_PTHREADS < 7
31436         if( status < 0 ) status = errno;
31437 #endif
31438         if( status ) return status;
31439 #else
31440         /* Draft 4 pthreads */
31441         status = pthread_create( &t, pthread_attr_default, task, NULL );
31442         if( status ) return errno;
31443
31444         /* give thread a chance to complete */
31445         /* it should remain joinable and hence detachable */
31446         sleep( 1 );
31447
31448         status = pthread_detach( &t );
31449         if( status ) return errno;
31450 #endif
31451
31452 #ifdef HAVE_LINUX_THREADS
31453         pthread_kill_other_threads_np();
31454 #endif
31455
31456         return 0;
31457
31458 }
31459
31460 _ACEOF
31461 rm -f conftest$ac_exeext
31462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31463   (eval $ac_link) 2>&5
31464   ac_status=$?
31465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31468   (eval $ac_try) 2>&5
31469   ac_status=$?
31470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471   (exit $ac_status); }; }; then
31472   ol_cv_pthread_mthreads=yes
31473 else
31474   echo "$as_me: program exited with status $ac_status" >&5
31475 echo "$as_me: failed program was:" >&5
31476 sed 's/^/| /' conftest.$ac_ext >&5
31477
31478 ( exit $ac_status )
31479 ol_cv_pthread_mthreads=no
31480 fi
31481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31482 fi
31483
31484                 # restore the LIBS
31485                 LIBS="$ol_LIBS"
31486
31487 fi
31488 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31489 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31490
31491         if test $ol_cv_pthread_mthreads = yes ; then
31492                 ol_link_pthreads="-mthreads"
31493                 ol_link_threads=posix
31494         fi
31495 fi
31496
31497                 # Pthread try link: -thread (ol_cv_pthread_thread)
31498 if test "$ol_link_threads" = no ; then
31499         # try -thread
31500         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31501 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31502 if test "${ol_cv_pthread_thread+set}" = set; then
31503   echo $ECHO_N "(cached) $ECHO_C" >&6
31504 else
31505
31506                 # save the flags
31507                 ol_LIBS="$LIBS"
31508                 LIBS="-thread $LIBS"
31509
31510                 if test "$cross_compiling" = yes; then
31511   cat >conftest.$ac_ext <<_ACEOF
31512 /* confdefs.h.  */
31513 _ACEOF
31514 cat confdefs.h >>conftest.$ac_ext
31515 cat >>conftest.$ac_ext <<_ACEOF
31516 /* end confdefs.h.  */
31517
31518 /* pthread test headers */
31519 #include <pthread.h>
31520 #if HAVE_PTHREADS < 7
31521 #include <errno.h>
31522 #endif
31523 #ifndef NULL
31524 #define NULL (void*)0
31525 #endif
31526
31527 static void *task(p)
31528         void *p;
31529 {
31530         return (void *) (p == NULL);
31531 }
31532
31533 int
31534 main ()
31535 {
31536
31537         /* pthread test function */
31538 #ifndef PTHREAD_CREATE_DETACHED
31539 #define PTHREAD_CREATE_DETACHED 1
31540 #endif
31541         pthread_t t;
31542         int status;
31543         int detach = PTHREAD_CREATE_DETACHED;
31544
31545 #if HAVE_PTHREADS > 4
31546         /* Final pthreads */
31547         pthread_attr_t attr;
31548
31549         status = pthread_attr_init(&attr);
31550         if( status ) return status;
31551
31552 #if HAVE_PTHREADS < 7
31553         status = pthread_attr_setdetachstate(&attr, &detach);
31554         if( status < 0 ) status = errno;
31555 #else
31556         status = pthread_attr_setdetachstate(&attr, detach);
31557 #endif
31558         if( status ) return status;
31559         status = pthread_create( &t, &attr, task, NULL );
31560 #if HAVE_PTHREADS < 7
31561         if( status < 0 ) status = errno;
31562 #endif
31563         if( status ) return status;
31564 #else
31565         /* Draft 4 pthreads */
31566         status = pthread_create( &t, pthread_attr_default, task, NULL );
31567         if( status ) return errno;
31568
31569         /* give thread a chance to complete */
31570         /* it should remain joinable and hence detachable */
31571         sleep( 1 );
31572
31573         status = pthread_detach( &t );
31574         if( status ) return errno;
31575 #endif
31576
31577 #ifdef HAVE_LINUX_THREADS
31578         pthread_kill_other_threads_np();
31579 #endif
31580
31581         return 0;
31582
31583   ;
31584   return 0;
31585 }
31586 _ACEOF
31587 rm -f conftest.$ac_objext conftest$ac_exeext
31588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31589   (eval $ac_link) 2>conftest.er1
31590   ac_status=$?
31591   grep -v '^ *+' conftest.er1 >conftest.err
31592   rm -f conftest.er1
31593   cat conftest.err >&5
31594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595   (exit $ac_status); } &&
31596          { ac_try='test -z "$ac_c_werror_flag"
31597                          || test ! -s conftest.err'
31598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31599   (eval $ac_try) 2>&5
31600   ac_status=$?
31601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602   (exit $ac_status); }; } &&
31603          { ac_try='test -s conftest$ac_exeext'
31604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31605   (eval $ac_try) 2>&5
31606   ac_status=$?
31607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608   (exit $ac_status); }; }; then
31609   ol_cv_pthread_thread=yes
31610 else
31611   echo "$as_me: failed program was:" >&5
31612 sed 's/^/| /' conftest.$ac_ext >&5
31613
31614 ol_cv_pthread_thread=no
31615 fi
31616 rm -f conftest.err conftest.$ac_objext \
31617       conftest$ac_exeext conftest.$ac_ext
31618 else
31619   cat >conftest.$ac_ext <<_ACEOF
31620
31621 /* pthread test headers */
31622 #include <pthread.h>
31623 #if HAVE_PTHREADS < 7
31624 #include <errno.h>
31625 #endif
31626 #ifndef NULL
31627 #define NULL (void*)0
31628 #endif
31629
31630 static void *task(p)
31631         void *p;
31632 {
31633         return (void *) (p == NULL);
31634 }
31635
31636
31637 int main(argc, argv)
31638         int argc;
31639         char **argv;
31640 {
31641
31642         /* pthread test function */
31643 #ifndef PTHREAD_CREATE_DETACHED
31644 #define PTHREAD_CREATE_DETACHED 1
31645 #endif
31646         pthread_t t;
31647         int status;
31648         int detach = PTHREAD_CREATE_DETACHED;
31649
31650 #if HAVE_PTHREADS > 4
31651         /* Final pthreads */
31652         pthread_attr_t attr;
31653
31654         status = pthread_attr_init(&attr);
31655         if( status ) return status;
31656
31657 #if HAVE_PTHREADS < 7
31658         status = pthread_attr_setdetachstate(&attr, &detach);
31659         if( status < 0 ) status = errno;
31660 #else
31661         status = pthread_attr_setdetachstate(&attr, detach);
31662 #endif
31663         if( status ) return status;
31664         status = pthread_create( &t, &attr, task, NULL );
31665 #if HAVE_PTHREADS < 7
31666         if( status < 0 ) status = errno;
31667 #endif
31668         if( status ) return status;
31669 #else
31670         /* Draft 4 pthreads */
31671         status = pthread_create( &t, pthread_attr_default, task, NULL );
31672         if( status ) return errno;
31673
31674         /* give thread a chance to complete */
31675         /* it should remain joinable and hence detachable */
31676         sleep( 1 );
31677
31678         status = pthread_detach( &t );
31679         if( status ) return errno;
31680 #endif
31681
31682 #ifdef HAVE_LINUX_THREADS
31683         pthread_kill_other_threads_np();
31684 #endif
31685
31686         return 0;
31687
31688 }
31689
31690 _ACEOF
31691 rm -f conftest$ac_exeext
31692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31693   (eval $ac_link) 2>&5
31694   ac_status=$?
31695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31698   (eval $ac_try) 2>&5
31699   ac_status=$?
31700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701   (exit $ac_status); }; }; then
31702   ol_cv_pthread_thread=yes
31703 else
31704   echo "$as_me: program exited with status $ac_status" >&5
31705 echo "$as_me: failed program was:" >&5
31706 sed 's/^/| /' conftest.$ac_ext >&5
31707
31708 ( exit $ac_status )
31709 ol_cv_pthread_thread=no
31710 fi
31711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31712 fi
31713
31714                 # restore the LIBS
31715                 LIBS="$ol_LIBS"
31716
31717 fi
31718 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31719 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31720
31721         if test $ol_cv_pthread_thread = yes ; then
31722                 ol_link_pthreads="-thread"
31723                 ol_link_threads=posix
31724         fi
31725 fi
31726
31727
31728                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31729 if test "$ol_link_threads" = no ; then
31730         # try -lpthread -lmach -lexc -lc_r
31731         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31732 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31733 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31734   echo $ECHO_N "(cached) $ECHO_C" >&6
31735 else
31736
31737                 # save the flags
31738                 ol_LIBS="$LIBS"
31739                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31740
31741                 if test "$cross_compiling" = yes; then
31742   cat >conftest.$ac_ext <<_ACEOF
31743 /* confdefs.h.  */
31744 _ACEOF
31745 cat confdefs.h >>conftest.$ac_ext
31746 cat >>conftest.$ac_ext <<_ACEOF
31747 /* end confdefs.h.  */
31748
31749 /* pthread test headers */
31750 #include <pthread.h>
31751 #if HAVE_PTHREADS < 7
31752 #include <errno.h>
31753 #endif
31754 #ifndef NULL
31755 #define NULL (void*)0
31756 #endif
31757
31758 static void *task(p)
31759         void *p;
31760 {
31761         return (void *) (p == NULL);
31762 }
31763
31764 int
31765 main ()
31766 {
31767
31768         /* pthread test function */
31769 #ifndef PTHREAD_CREATE_DETACHED
31770 #define PTHREAD_CREATE_DETACHED 1
31771 #endif
31772         pthread_t t;
31773         int status;
31774         int detach = PTHREAD_CREATE_DETACHED;
31775
31776 #if HAVE_PTHREADS > 4
31777         /* Final pthreads */
31778         pthread_attr_t attr;
31779
31780         status = pthread_attr_init(&attr);
31781         if( status ) return status;
31782
31783 #if HAVE_PTHREADS < 7
31784         status = pthread_attr_setdetachstate(&attr, &detach);
31785         if( status < 0 ) status = errno;
31786 #else
31787         status = pthread_attr_setdetachstate(&attr, detach);
31788 #endif
31789         if( status ) return status;
31790         status = pthread_create( &t, &attr, task, NULL );
31791 #if HAVE_PTHREADS < 7
31792         if( status < 0 ) status = errno;
31793 #endif
31794         if( status ) return status;
31795 #else
31796         /* Draft 4 pthreads */
31797         status = pthread_create( &t, pthread_attr_default, task, NULL );
31798         if( status ) return errno;
31799
31800         /* give thread a chance to complete */
31801         /* it should remain joinable and hence detachable */
31802         sleep( 1 );
31803
31804         status = pthread_detach( &t );
31805         if( status ) return errno;
31806 #endif
31807
31808 #ifdef HAVE_LINUX_THREADS
31809         pthread_kill_other_threads_np();
31810 #endif
31811
31812         return 0;
31813
31814   ;
31815   return 0;
31816 }
31817 _ACEOF
31818 rm -f conftest.$ac_objext conftest$ac_exeext
31819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31820   (eval $ac_link) 2>conftest.er1
31821   ac_status=$?
31822   grep -v '^ *+' conftest.er1 >conftest.err
31823   rm -f conftest.er1
31824   cat conftest.err >&5
31825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826   (exit $ac_status); } &&
31827          { ac_try='test -z "$ac_c_werror_flag"
31828                          || test ! -s conftest.err'
31829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31830   (eval $ac_try) 2>&5
31831   ac_status=$?
31832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833   (exit $ac_status); }; } &&
31834          { ac_try='test -s conftest$ac_exeext'
31835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31836   (eval $ac_try) 2>&5
31837   ac_status=$?
31838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839   (exit $ac_status); }; }; then
31840   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31841 else
31842   echo "$as_me: failed program was:" >&5
31843 sed 's/^/| /' conftest.$ac_ext >&5
31844
31845 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31846 fi
31847 rm -f conftest.err conftest.$ac_objext \
31848       conftest$ac_exeext conftest.$ac_ext
31849 else
31850   cat >conftest.$ac_ext <<_ACEOF
31851
31852 /* pthread test headers */
31853 #include <pthread.h>
31854 #if HAVE_PTHREADS < 7
31855 #include <errno.h>
31856 #endif
31857 #ifndef NULL
31858 #define NULL (void*)0
31859 #endif
31860
31861 static void *task(p)
31862         void *p;
31863 {
31864         return (void *) (p == NULL);
31865 }
31866
31867
31868 int main(argc, argv)
31869         int argc;
31870         char **argv;
31871 {
31872
31873         /* pthread test function */
31874 #ifndef PTHREAD_CREATE_DETACHED
31875 #define PTHREAD_CREATE_DETACHED 1
31876 #endif
31877         pthread_t t;
31878         int status;
31879         int detach = PTHREAD_CREATE_DETACHED;
31880
31881 #if HAVE_PTHREADS > 4
31882         /* Final pthreads */
31883         pthread_attr_t attr;
31884
31885         status = pthread_attr_init(&attr);
31886         if( status ) return status;
31887
31888 #if HAVE_PTHREADS < 7
31889         status = pthread_attr_setdetachstate(&attr, &detach);
31890         if( status < 0 ) status = errno;
31891 #else
31892         status = pthread_attr_setdetachstate(&attr, detach);
31893 #endif
31894         if( status ) return status;
31895         status = pthread_create( &t, &attr, task, NULL );
31896 #if HAVE_PTHREADS < 7
31897         if( status < 0 ) status = errno;
31898 #endif
31899         if( status ) return status;
31900 #else
31901         /* Draft 4 pthreads */
31902         status = pthread_create( &t, pthread_attr_default, task, NULL );
31903         if( status ) return errno;
31904
31905         /* give thread a chance to complete */
31906         /* it should remain joinable and hence detachable */
31907         sleep( 1 );
31908
31909         status = pthread_detach( &t );
31910         if( status ) return errno;
31911 #endif
31912
31913 #ifdef HAVE_LINUX_THREADS
31914         pthread_kill_other_threads_np();
31915 #endif
31916
31917         return 0;
31918
31919 }
31920
31921 _ACEOF
31922 rm -f conftest$ac_exeext
31923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31924   (eval $ac_link) 2>&5
31925   ac_status=$?
31926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31929   (eval $ac_try) 2>&5
31930   ac_status=$?
31931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932   (exit $ac_status); }; }; then
31933   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31934 else
31935   echo "$as_me: program exited with status $ac_status" >&5
31936 echo "$as_me: failed program was:" >&5
31937 sed 's/^/| /' conftest.$ac_ext >&5
31938
31939 ( exit $ac_status )
31940 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31941 fi
31942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31943 fi
31944
31945                 # restore the LIBS
31946                 LIBS="$ol_LIBS"
31947
31948 fi
31949 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
31950 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
31951
31952         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
31953                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
31954                 ol_link_threads=posix
31955         fi
31956 fi
31957
31958                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
31959 if test "$ol_link_threads" = no ; then
31960         # try -lpthread -lmach -lexc
31961         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
31962 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
31963 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
31964   echo $ECHO_N "(cached) $ECHO_C" >&6
31965 else
31966
31967                 # save the flags
31968                 ol_LIBS="$LIBS"
31969                 LIBS="-lpthread -lmach -lexc $LIBS"
31970
31971                 if test "$cross_compiling" = yes; then
31972   cat >conftest.$ac_ext <<_ACEOF
31973 /* confdefs.h.  */
31974 _ACEOF
31975 cat confdefs.h >>conftest.$ac_ext
31976 cat >>conftest.$ac_ext <<_ACEOF
31977 /* end confdefs.h.  */
31978
31979 /* pthread test headers */
31980 #include <pthread.h>
31981 #if HAVE_PTHREADS < 7
31982 #include <errno.h>
31983 #endif
31984 #ifndef NULL
31985 #define NULL (void*)0
31986 #endif
31987
31988 static void *task(p)
31989         void *p;
31990 {
31991         return (void *) (p == NULL);
31992 }
31993
31994 int
31995 main ()
31996 {
31997
31998         /* pthread test function */
31999 #ifndef PTHREAD_CREATE_DETACHED
32000 #define PTHREAD_CREATE_DETACHED 1
32001 #endif
32002         pthread_t t;
32003         int status;
32004         int detach = PTHREAD_CREATE_DETACHED;
32005
32006 #if HAVE_PTHREADS > 4
32007         /* Final pthreads */
32008         pthread_attr_t attr;
32009
32010         status = pthread_attr_init(&attr);
32011         if( status ) return status;
32012
32013 #if HAVE_PTHREADS < 7
32014         status = pthread_attr_setdetachstate(&attr, &detach);
32015         if( status < 0 ) status = errno;
32016 #else
32017         status = pthread_attr_setdetachstate(&attr, detach);
32018 #endif
32019         if( status ) return status;
32020         status = pthread_create( &t, &attr, task, NULL );
32021 #if HAVE_PTHREADS < 7
32022         if( status < 0 ) status = errno;
32023 #endif
32024         if( status ) return status;
32025 #else
32026         /* Draft 4 pthreads */
32027         status = pthread_create( &t, pthread_attr_default, task, NULL );
32028         if( status ) return errno;
32029
32030         /* give thread a chance to complete */
32031         /* it should remain joinable and hence detachable */
32032         sleep( 1 );
32033
32034         status = pthread_detach( &t );
32035         if( status ) return errno;
32036 #endif
32037
32038 #ifdef HAVE_LINUX_THREADS
32039         pthread_kill_other_threads_np();
32040 #endif
32041
32042         return 0;
32043
32044   ;
32045   return 0;
32046 }
32047 _ACEOF
32048 rm -f conftest.$ac_objext conftest$ac_exeext
32049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32050   (eval $ac_link) 2>conftest.er1
32051   ac_status=$?
32052   grep -v '^ *+' conftest.er1 >conftest.err
32053   rm -f conftest.er1
32054   cat conftest.err >&5
32055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056   (exit $ac_status); } &&
32057          { ac_try='test -z "$ac_c_werror_flag"
32058                          || test ! -s conftest.err'
32059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32060   (eval $ac_try) 2>&5
32061   ac_status=$?
32062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063   (exit $ac_status); }; } &&
32064          { ac_try='test -s conftest$ac_exeext'
32065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32066   (eval $ac_try) 2>&5
32067   ac_status=$?
32068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069   (exit $ac_status); }; }; then
32070   ol_cv_pthread_lpthread_lmach_lexc=yes
32071 else
32072   echo "$as_me: failed program was:" >&5
32073 sed 's/^/| /' conftest.$ac_ext >&5
32074
32075 ol_cv_pthread_lpthread_lmach_lexc=no
32076 fi
32077 rm -f conftest.err conftest.$ac_objext \
32078       conftest$ac_exeext conftest.$ac_ext
32079 else
32080   cat >conftest.$ac_ext <<_ACEOF
32081
32082 /* pthread test headers */
32083 #include <pthread.h>
32084 #if HAVE_PTHREADS < 7
32085 #include <errno.h>
32086 #endif
32087 #ifndef NULL
32088 #define NULL (void*)0
32089 #endif
32090
32091 static void *task(p)
32092         void *p;
32093 {
32094         return (void *) (p == NULL);
32095 }
32096
32097
32098 int main(argc, argv)
32099         int argc;
32100         char **argv;
32101 {
32102
32103         /* pthread test function */
32104 #ifndef PTHREAD_CREATE_DETACHED
32105 #define PTHREAD_CREATE_DETACHED 1
32106 #endif
32107         pthread_t t;
32108         int status;
32109         int detach = PTHREAD_CREATE_DETACHED;
32110
32111 #if HAVE_PTHREADS > 4
32112         /* Final pthreads */
32113         pthread_attr_t attr;
32114
32115         status = pthread_attr_init(&attr);
32116         if( status ) return status;
32117
32118 #if HAVE_PTHREADS < 7
32119         status = pthread_attr_setdetachstate(&attr, &detach);
32120         if( status < 0 ) status = errno;
32121 #else
32122         status = pthread_attr_setdetachstate(&attr, detach);
32123 #endif
32124         if( status ) return status;
32125         status = pthread_create( &t, &attr, task, NULL );
32126 #if HAVE_PTHREADS < 7
32127         if( status < 0 ) status = errno;
32128 #endif
32129         if( status ) return status;
32130 #else
32131         /* Draft 4 pthreads */
32132         status = pthread_create( &t, pthread_attr_default, task, NULL );
32133         if( status ) return errno;
32134
32135         /* give thread a chance to complete */
32136         /* it should remain joinable and hence detachable */
32137         sleep( 1 );
32138
32139         status = pthread_detach( &t );
32140         if( status ) return errno;
32141 #endif
32142
32143 #ifdef HAVE_LINUX_THREADS
32144         pthread_kill_other_threads_np();
32145 #endif
32146
32147         return 0;
32148
32149 }
32150
32151 _ACEOF
32152 rm -f conftest$ac_exeext
32153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32154   (eval $ac_link) 2>&5
32155   ac_status=$?
32156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32159   (eval $ac_try) 2>&5
32160   ac_status=$?
32161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162   (exit $ac_status); }; }; then
32163   ol_cv_pthread_lpthread_lmach_lexc=yes
32164 else
32165   echo "$as_me: program exited with status $ac_status" >&5
32166 echo "$as_me: failed program was:" >&5
32167 sed 's/^/| /' conftest.$ac_ext >&5
32168
32169 ( exit $ac_status )
32170 ol_cv_pthread_lpthread_lmach_lexc=no
32171 fi
32172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32173 fi
32174
32175                 # restore the LIBS
32176                 LIBS="$ol_LIBS"
32177
32178 fi
32179 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32180 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32181
32182         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32183                 ol_link_pthreads="-lpthread -lmach -lexc"
32184                 ol_link_threads=posix
32185         fi
32186 fi
32187
32188
32189                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32190 if test "$ol_link_threads" = no ; then
32191         # try -lpthread -Wl,-woff,85
32192         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32193 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32194 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32195   echo $ECHO_N "(cached) $ECHO_C" >&6
32196 else
32197
32198                 # save the flags
32199                 ol_LIBS="$LIBS"
32200                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32201
32202                 if test "$cross_compiling" = yes; then
32203   cat >conftest.$ac_ext <<_ACEOF
32204 /* confdefs.h.  */
32205 _ACEOF
32206 cat confdefs.h >>conftest.$ac_ext
32207 cat >>conftest.$ac_ext <<_ACEOF
32208 /* end confdefs.h.  */
32209
32210 /* pthread test headers */
32211 #include <pthread.h>
32212 #if HAVE_PTHREADS < 7
32213 #include <errno.h>
32214 #endif
32215 #ifndef NULL
32216 #define NULL (void*)0
32217 #endif
32218
32219 static void *task(p)
32220         void *p;
32221 {
32222         return (void *) (p == NULL);
32223 }
32224
32225 int
32226 main ()
32227 {
32228
32229         /* pthread test function */
32230 #ifndef PTHREAD_CREATE_DETACHED
32231 #define PTHREAD_CREATE_DETACHED 1
32232 #endif
32233         pthread_t t;
32234         int status;
32235         int detach = PTHREAD_CREATE_DETACHED;
32236
32237 #if HAVE_PTHREADS > 4
32238         /* Final pthreads */
32239         pthread_attr_t attr;
32240
32241         status = pthread_attr_init(&attr);
32242         if( status ) return status;
32243
32244 #if HAVE_PTHREADS < 7
32245         status = pthread_attr_setdetachstate(&attr, &detach);
32246         if( status < 0 ) status = errno;
32247 #else
32248         status = pthread_attr_setdetachstate(&attr, detach);
32249 #endif
32250         if( status ) return status;
32251         status = pthread_create( &t, &attr, task, NULL );
32252 #if HAVE_PTHREADS < 7
32253         if( status < 0 ) status = errno;
32254 #endif
32255         if( status ) return status;
32256 #else
32257         /* Draft 4 pthreads */
32258         status = pthread_create( &t, pthread_attr_default, task, NULL );
32259         if( status ) return errno;
32260
32261         /* give thread a chance to complete */
32262         /* it should remain joinable and hence detachable */
32263         sleep( 1 );
32264
32265         status = pthread_detach( &t );
32266         if( status ) return errno;
32267 #endif
32268
32269 #ifdef HAVE_LINUX_THREADS
32270         pthread_kill_other_threads_np();
32271 #endif
32272
32273         return 0;
32274
32275   ;
32276   return 0;
32277 }
32278 _ACEOF
32279 rm -f conftest.$ac_objext conftest$ac_exeext
32280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32281   (eval $ac_link) 2>conftest.er1
32282   ac_status=$?
32283   grep -v '^ *+' conftest.er1 >conftest.err
32284   rm -f conftest.er1
32285   cat conftest.err >&5
32286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287   (exit $ac_status); } &&
32288          { ac_try='test -z "$ac_c_werror_flag"
32289                          || test ! -s conftest.err'
32290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32291   (eval $ac_try) 2>&5
32292   ac_status=$?
32293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294   (exit $ac_status); }; } &&
32295          { ac_try='test -s conftest$ac_exeext'
32296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32297   (eval $ac_try) 2>&5
32298   ac_status=$?
32299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300   (exit $ac_status); }; }; then
32301   ol_cv_pthread_lib_lpthread_woff=yes
32302 else
32303   echo "$as_me: failed program was:" >&5
32304 sed 's/^/| /' conftest.$ac_ext >&5
32305
32306 ol_cv_pthread_lib_lpthread_woff=no
32307 fi
32308 rm -f conftest.err conftest.$ac_objext \
32309       conftest$ac_exeext conftest.$ac_ext
32310 else
32311   cat >conftest.$ac_ext <<_ACEOF
32312
32313 /* pthread test headers */
32314 #include <pthread.h>
32315 #if HAVE_PTHREADS < 7
32316 #include <errno.h>
32317 #endif
32318 #ifndef NULL
32319 #define NULL (void*)0
32320 #endif
32321
32322 static void *task(p)
32323         void *p;
32324 {
32325         return (void *) (p == NULL);
32326 }
32327
32328
32329 int main(argc, argv)
32330         int argc;
32331         char **argv;
32332 {
32333
32334         /* pthread test function */
32335 #ifndef PTHREAD_CREATE_DETACHED
32336 #define PTHREAD_CREATE_DETACHED 1
32337 #endif
32338         pthread_t t;
32339         int status;
32340         int detach = PTHREAD_CREATE_DETACHED;
32341
32342 #if HAVE_PTHREADS > 4
32343         /* Final pthreads */
32344         pthread_attr_t attr;
32345
32346         status = pthread_attr_init(&attr);
32347         if( status ) return status;
32348
32349 #if HAVE_PTHREADS < 7
32350         status = pthread_attr_setdetachstate(&attr, &detach);
32351         if( status < 0 ) status = errno;
32352 #else
32353         status = pthread_attr_setdetachstate(&attr, detach);
32354 #endif
32355         if( status ) return status;
32356         status = pthread_create( &t, &attr, task, NULL );
32357 #if HAVE_PTHREADS < 7
32358         if( status < 0 ) status = errno;
32359 #endif
32360         if( status ) return status;
32361 #else
32362         /* Draft 4 pthreads */
32363         status = pthread_create( &t, pthread_attr_default, task, NULL );
32364         if( status ) return errno;
32365
32366         /* give thread a chance to complete */
32367         /* it should remain joinable and hence detachable */
32368         sleep( 1 );
32369
32370         status = pthread_detach( &t );
32371         if( status ) return errno;
32372 #endif
32373
32374 #ifdef HAVE_LINUX_THREADS
32375         pthread_kill_other_threads_np();
32376 #endif
32377
32378         return 0;
32379
32380 }
32381
32382 _ACEOF
32383 rm -f conftest$ac_exeext
32384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32385   (eval $ac_link) 2>&5
32386   ac_status=$?
32387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32390   (eval $ac_try) 2>&5
32391   ac_status=$?
32392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393   (exit $ac_status); }; }; then
32394   ol_cv_pthread_lib_lpthread_woff=yes
32395 else
32396   echo "$as_me: program exited with status $ac_status" >&5
32397 echo "$as_me: failed program was:" >&5
32398 sed 's/^/| /' conftest.$ac_ext >&5
32399
32400 ( exit $ac_status )
32401 ol_cv_pthread_lib_lpthread_woff=no
32402 fi
32403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32404 fi
32405
32406                 # restore the LIBS
32407                 LIBS="$ol_LIBS"
32408
32409 fi
32410 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32411 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32412
32413         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32414                 ol_link_pthreads="-lpthread -Wl,-woff,85"
32415                 ol_link_threads=posix
32416         fi
32417 fi
32418
32419
32420                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32421 if test "$ol_link_threads" = no ; then
32422         # try -lpthread
32423         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32424 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32425 if test "${ol_cv_pthread_lpthread+set}" = set; then
32426   echo $ECHO_N "(cached) $ECHO_C" >&6
32427 else
32428
32429                 # save the flags
32430                 ol_LIBS="$LIBS"
32431                 LIBS="-lpthread $LIBS"
32432
32433                 if test "$cross_compiling" = yes; then
32434   cat >conftest.$ac_ext <<_ACEOF
32435 /* confdefs.h.  */
32436 _ACEOF
32437 cat confdefs.h >>conftest.$ac_ext
32438 cat >>conftest.$ac_ext <<_ACEOF
32439 /* end confdefs.h.  */
32440
32441 /* pthread test headers */
32442 #include <pthread.h>
32443 #if HAVE_PTHREADS < 7
32444 #include <errno.h>
32445 #endif
32446 #ifndef NULL
32447 #define NULL (void*)0
32448 #endif
32449
32450 static void *task(p)
32451         void *p;
32452 {
32453         return (void *) (p == NULL);
32454 }
32455
32456 int
32457 main ()
32458 {
32459
32460         /* pthread test function */
32461 #ifndef PTHREAD_CREATE_DETACHED
32462 #define PTHREAD_CREATE_DETACHED 1
32463 #endif
32464         pthread_t t;
32465         int status;
32466         int detach = PTHREAD_CREATE_DETACHED;
32467
32468 #if HAVE_PTHREADS > 4
32469         /* Final pthreads */
32470         pthread_attr_t attr;
32471
32472         status = pthread_attr_init(&attr);
32473         if( status ) return status;
32474
32475 #if HAVE_PTHREADS < 7
32476         status = pthread_attr_setdetachstate(&attr, &detach);
32477         if( status < 0 ) status = errno;
32478 #else
32479         status = pthread_attr_setdetachstate(&attr, detach);
32480 #endif
32481         if( status ) return status;
32482         status = pthread_create( &t, &attr, task, NULL );
32483 #if HAVE_PTHREADS < 7
32484         if( status < 0 ) status = errno;
32485 #endif
32486         if( status ) return status;
32487 #else
32488         /* Draft 4 pthreads */
32489         status = pthread_create( &t, pthread_attr_default, task, NULL );
32490         if( status ) return errno;
32491
32492         /* give thread a chance to complete */
32493         /* it should remain joinable and hence detachable */
32494         sleep( 1 );
32495
32496         status = pthread_detach( &t );
32497         if( status ) return errno;
32498 #endif
32499
32500 #ifdef HAVE_LINUX_THREADS
32501         pthread_kill_other_threads_np();
32502 #endif
32503
32504         return 0;
32505
32506   ;
32507   return 0;
32508 }
32509 _ACEOF
32510 rm -f conftest.$ac_objext conftest$ac_exeext
32511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32512   (eval $ac_link) 2>conftest.er1
32513   ac_status=$?
32514   grep -v '^ *+' conftest.er1 >conftest.err
32515   rm -f conftest.er1
32516   cat conftest.err >&5
32517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518   (exit $ac_status); } &&
32519          { ac_try='test -z "$ac_c_werror_flag"
32520                          || test ! -s conftest.err'
32521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32522   (eval $ac_try) 2>&5
32523   ac_status=$?
32524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525   (exit $ac_status); }; } &&
32526          { ac_try='test -s conftest$ac_exeext'
32527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32528   (eval $ac_try) 2>&5
32529   ac_status=$?
32530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531   (exit $ac_status); }; }; then
32532   ol_cv_pthread_lpthread=yes
32533 else
32534   echo "$as_me: failed program was:" >&5
32535 sed 's/^/| /' conftest.$ac_ext >&5
32536
32537 ol_cv_pthread_lpthread=no
32538 fi
32539 rm -f conftest.err conftest.$ac_objext \
32540       conftest$ac_exeext conftest.$ac_ext
32541 else
32542   cat >conftest.$ac_ext <<_ACEOF
32543
32544 /* pthread test headers */
32545 #include <pthread.h>
32546 #if HAVE_PTHREADS < 7
32547 #include <errno.h>
32548 #endif
32549 #ifndef NULL
32550 #define NULL (void*)0
32551 #endif
32552
32553 static void *task(p)
32554         void *p;
32555 {
32556         return (void *) (p == NULL);
32557 }
32558
32559
32560 int main(argc, argv)
32561         int argc;
32562         char **argv;
32563 {
32564
32565         /* pthread test function */
32566 #ifndef PTHREAD_CREATE_DETACHED
32567 #define PTHREAD_CREATE_DETACHED 1
32568 #endif
32569         pthread_t t;
32570         int status;
32571         int detach = PTHREAD_CREATE_DETACHED;
32572
32573 #if HAVE_PTHREADS > 4
32574         /* Final pthreads */
32575         pthread_attr_t attr;
32576
32577         status = pthread_attr_init(&attr);
32578         if( status ) return status;
32579
32580 #if HAVE_PTHREADS < 7
32581         status = pthread_attr_setdetachstate(&attr, &detach);
32582         if( status < 0 ) status = errno;
32583 #else
32584         status = pthread_attr_setdetachstate(&attr, detach);
32585 #endif
32586         if( status ) return status;
32587         status = pthread_create( &t, &attr, task, NULL );
32588 #if HAVE_PTHREADS < 7
32589         if( status < 0 ) status = errno;
32590 #endif
32591         if( status ) return status;
32592 #else
32593         /* Draft 4 pthreads */
32594         status = pthread_create( &t, pthread_attr_default, task, NULL );
32595         if( status ) return errno;
32596
32597         /* give thread a chance to complete */
32598         /* it should remain joinable and hence detachable */
32599         sleep( 1 );
32600
32601         status = pthread_detach( &t );
32602         if( status ) return errno;
32603 #endif
32604
32605 #ifdef HAVE_LINUX_THREADS
32606         pthread_kill_other_threads_np();
32607 #endif
32608
32609         return 0;
32610
32611 }
32612
32613 _ACEOF
32614 rm -f conftest$ac_exeext
32615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32616   (eval $ac_link) 2>&5
32617   ac_status=$?
32618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32621   (eval $ac_try) 2>&5
32622   ac_status=$?
32623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624   (exit $ac_status); }; }; then
32625   ol_cv_pthread_lpthread=yes
32626 else
32627   echo "$as_me: program exited with status $ac_status" >&5
32628 echo "$as_me: failed program was:" >&5
32629 sed 's/^/| /' conftest.$ac_ext >&5
32630
32631 ( exit $ac_status )
32632 ol_cv_pthread_lpthread=no
32633 fi
32634 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32635 fi
32636
32637                 # restore the LIBS
32638                 LIBS="$ol_LIBS"
32639
32640 fi
32641 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32642 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32643
32644         if test $ol_cv_pthread_lpthread = yes ; then
32645                 ol_link_pthreads="-lpthread"
32646                 ol_link_threads=posix
32647         fi
32648 fi
32649
32650                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32651 if test "$ol_link_threads" = no ; then
32652         # try -lc_r
32653         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32654 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32655 if test "${ol_cv_pthread_lc_r+set}" = set; then
32656   echo $ECHO_N "(cached) $ECHO_C" >&6
32657 else
32658
32659                 # save the flags
32660                 ol_LIBS="$LIBS"
32661                 LIBS="-lc_r $LIBS"
32662
32663                 if test "$cross_compiling" = yes; then
32664   cat >conftest.$ac_ext <<_ACEOF
32665 /* confdefs.h.  */
32666 _ACEOF
32667 cat confdefs.h >>conftest.$ac_ext
32668 cat >>conftest.$ac_ext <<_ACEOF
32669 /* end confdefs.h.  */
32670
32671 /* pthread test headers */
32672 #include <pthread.h>
32673 #if HAVE_PTHREADS < 7
32674 #include <errno.h>
32675 #endif
32676 #ifndef NULL
32677 #define NULL (void*)0
32678 #endif
32679
32680 static void *task(p)
32681         void *p;
32682 {
32683         return (void *) (p == NULL);
32684 }
32685
32686 int
32687 main ()
32688 {
32689
32690         /* pthread test function */
32691 #ifndef PTHREAD_CREATE_DETACHED
32692 #define PTHREAD_CREATE_DETACHED 1
32693 #endif
32694         pthread_t t;
32695         int status;
32696         int detach = PTHREAD_CREATE_DETACHED;
32697
32698 #if HAVE_PTHREADS > 4
32699         /* Final pthreads */
32700         pthread_attr_t attr;
32701
32702         status = pthread_attr_init(&attr);
32703         if( status ) return status;
32704
32705 #if HAVE_PTHREADS < 7
32706         status = pthread_attr_setdetachstate(&attr, &detach);
32707         if( status < 0 ) status = errno;
32708 #else
32709         status = pthread_attr_setdetachstate(&attr, detach);
32710 #endif
32711         if( status ) return status;
32712         status = pthread_create( &t, &attr, task, NULL );
32713 #if HAVE_PTHREADS < 7
32714         if( status < 0 ) status = errno;
32715 #endif
32716         if( status ) return status;
32717 #else
32718         /* Draft 4 pthreads */
32719         status = pthread_create( &t, pthread_attr_default, task, NULL );
32720         if( status ) return errno;
32721
32722         /* give thread a chance to complete */
32723         /* it should remain joinable and hence detachable */
32724         sleep( 1 );
32725
32726         status = pthread_detach( &t );
32727         if( status ) return errno;
32728 #endif
32729
32730 #ifdef HAVE_LINUX_THREADS
32731         pthread_kill_other_threads_np();
32732 #endif
32733
32734         return 0;
32735
32736   ;
32737   return 0;
32738 }
32739 _ACEOF
32740 rm -f conftest.$ac_objext conftest$ac_exeext
32741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32742   (eval $ac_link) 2>conftest.er1
32743   ac_status=$?
32744   grep -v '^ *+' conftest.er1 >conftest.err
32745   rm -f conftest.er1
32746   cat conftest.err >&5
32747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748   (exit $ac_status); } &&
32749          { ac_try='test -z "$ac_c_werror_flag"
32750                          || test ! -s conftest.err'
32751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32752   (eval $ac_try) 2>&5
32753   ac_status=$?
32754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755   (exit $ac_status); }; } &&
32756          { ac_try='test -s conftest$ac_exeext'
32757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32758   (eval $ac_try) 2>&5
32759   ac_status=$?
32760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761   (exit $ac_status); }; }; then
32762   ol_cv_pthread_lc_r=yes
32763 else
32764   echo "$as_me: failed program was:" >&5
32765 sed 's/^/| /' conftest.$ac_ext >&5
32766
32767 ol_cv_pthread_lc_r=no
32768 fi
32769 rm -f conftest.err conftest.$ac_objext \
32770       conftest$ac_exeext conftest.$ac_ext
32771 else
32772   cat >conftest.$ac_ext <<_ACEOF
32773
32774 /* pthread test headers */
32775 #include <pthread.h>
32776 #if HAVE_PTHREADS < 7
32777 #include <errno.h>
32778 #endif
32779 #ifndef NULL
32780 #define NULL (void*)0
32781 #endif
32782
32783 static void *task(p)
32784         void *p;
32785 {
32786         return (void *) (p == NULL);
32787 }
32788
32789
32790 int main(argc, argv)
32791         int argc;
32792         char **argv;
32793 {
32794
32795         /* pthread test function */
32796 #ifndef PTHREAD_CREATE_DETACHED
32797 #define PTHREAD_CREATE_DETACHED 1
32798 #endif
32799         pthread_t t;
32800         int status;
32801         int detach = PTHREAD_CREATE_DETACHED;
32802
32803 #if HAVE_PTHREADS > 4
32804         /* Final pthreads */
32805         pthread_attr_t attr;
32806
32807         status = pthread_attr_init(&attr);
32808         if( status ) return status;
32809
32810 #if HAVE_PTHREADS < 7
32811         status = pthread_attr_setdetachstate(&attr, &detach);
32812         if( status < 0 ) status = errno;
32813 #else
32814         status = pthread_attr_setdetachstate(&attr, detach);
32815 #endif
32816         if( status ) return status;
32817         status = pthread_create( &t, &attr, task, NULL );
32818 #if HAVE_PTHREADS < 7
32819         if( status < 0 ) status = errno;
32820 #endif
32821         if( status ) return status;
32822 #else
32823         /* Draft 4 pthreads */
32824         status = pthread_create( &t, pthread_attr_default, task, NULL );
32825         if( status ) return errno;
32826
32827         /* give thread a chance to complete */
32828         /* it should remain joinable and hence detachable */
32829         sleep( 1 );
32830
32831         status = pthread_detach( &t );
32832         if( status ) return errno;
32833 #endif
32834
32835 #ifdef HAVE_LINUX_THREADS
32836         pthread_kill_other_threads_np();
32837 #endif
32838
32839         return 0;
32840
32841 }
32842
32843 _ACEOF
32844 rm -f conftest$ac_exeext
32845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32846   (eval $ac_link) 2>&5
32847   ac_status=$?
32848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32851   (eval $ac_try) 2>&5
32852   ac_status=$?
32853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32854   (exit $ac_status); }; }; then
32855   ol_cv_pthread_lc_r=yes
32856 else
32857   echo "$as_me: program exited with status $ac_status" >&5
32858 echo "$as_me: failed program was:" >&5
32859 sed 's/^/| /' conftest.$ac_ext >&5
32860
32861 ( exit $ac_status )
32862 ol_cv_pthread_lc_r=no
32863 fi
32864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32865 fi
32866
32867                 # restore the LIBS
32868                 LIBS="$ol_LIBS"
32869
32870 fi
32871 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32872 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32873
32874         if test $ol_cv_pthread_lc_r = yes ; then
32875                 ol_link_pthreads="-lc_r"
32876                 ol_link_threads=posix
32877         fi
32878 fi
32879
32880
32881                 # Pthread try link: -threads (ol_cv_pthread_threads)
32882 if test "$ol_link_threads" = no ; then
32883         # try -threads
32884         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
32885 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
32886 if test "${ol_cv_pthread_threads+set}" = set; then
32887   echo $ECHO_N "(cached) $ECHO_C" >&6
32888 else
32889
32890                 # save the flags
32891                 ol_LIBS="$LIBS"
32892                 LIBS="-threads $LIBS"
32893
32894                 if test "$cross_compiling" = yes; then
32895   cat >conftest.$ac_ext <<_ACEOF
32896 /* confdefs.h.  */
32897 _ACEOF
32898 cat confdefs.h >>conftest.$ac_ext
32899 cat >>conftest.$ac_ext <<_ACEOF
32900 /* end confdefs.h.  */
32901
32902 /* pthread test headers */
32903 #include <pthread.h>
32904 #if HAVE_PTHREADS < 7
32905 #include <errno.h>
32906 #endif
32907 #ifndef NULL
32908 #define NULL (void*)0
32909 #endif
32910
32911 static void *task(p)
32912         void *p;
32913 {
32914         return (void *) (p == NULL);
32915 }
32916
32917 int
32918 main ()
32919 {
32920
32921         /* pthread test function */
32922 #ifndef PTHREAD_CREATE_DETACHED
32923 #define PTHREAD_CREATE_DETACHED 1
32924 #endif
32925         pthread_t t;
32926         int status;
32927         int detach = PTHREAD_CREATE_DETACHED;
32928
32929 #if HAVE_PTHREADS > 4
32930         /* Final pthreads */
32931         pthread_attr_t attr;
32932
32933         status = pthread_attr_init(&attr);
32934         if( status ) return status;
32935
32936 #if HAVE_PTHREADS < 7
32937         status = pthread_attr_setdetachstate(&attr, &detach);
32938         if( status < 0 ) status = errno;
32939 #else
32940         status = pthread_attr_setdetachstate(&attr, detach);
32941 #endif
32942         if( status ) return status;
32943         status = pthread_create( &t, &attr, task, NULL );
32944 #if HAVE_PTHREADS < 7
32945         if( status < 0 ) status = errno;
32946 #endif
32947         if( status ) return status;
32948 #else
32949         /* Draft 4 pthreads */
32950         status = pthread_create( &t, pthread_attr_default, task, NULL );
32951         if( status ) return errno;
32952
32953         /* give thread a chance to complete */
32954         /* it should remain joinable and hence detachable */
32955         sleep( 1 );
32956
32957         status = pthread_detach( &t );
32958         if( status ) return errno;
32959 #endif
32960
32961 #ifdef HAVE_LINUX_THREADS
32962         pthread_kill_other_threads_np();
32963 #endif
32964
32965         return 0;
32966
32967   ;
32968   return 0;
32969 }
32970 _ACEOF
32971 rm -f conftest.$ac_objext conftest$ac_exeext
32972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32973   (eval $ac_link) 2>conftest.er1
32974   ac_status=$?
32975   grep -v '^ *+' conftest.er1 >conftest.err
32976   rm -f conftest.er1
32977   cat conftest.err >&5
32978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32979   (exit $ac_status); } &&
32980          { ac_try='test -z "$ac_c_werror_flag"
32981                          || test ! -s conftest.err'
32982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32983   (eval $ac_try) 2>&5
32984   ac_status=$?
32985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986   (exit $ac_status); }; } &&
32987          { ac_try='test -s conftest$ac_exeext'
32988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32989   (eval $ac_try) 2>&5
32990   ac_status=$?
32991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992   (exit $ac_status); }; }; then
32993   ol_cv_pthread_threads=yes
32994 else
32995   echo "$as_me: failed program was:" >&5
32996 sed 's/^/| /' conftest.$ac_ext >&5
32997
32998 ol_cv_pthread_threads=no
32999 fi
33000 rm -f conftest.err conftest.$ac_objext \
33001       conftest$ac_exeext conftest.$ac_ext
33002 else
33003   cat >conftest.$ac_ext <<_ACEOF
33004
33005 /* pthread test headers */
33006 #include <pthread.h>
33007 #if HAVE_PTHREADS < 7
33008 #include <errno.h>
33009 #endif
33010 #ifndef NULL
33011 #define NULL (void*)0
33012 #endif
33013
33014 static void *task(p)
33015         void *p;
33016 {
33017         return (void *) (p == NULL);
33018 }
33019
33020
33021 int main(argc, argv)
33022         int argc;
33023         char **argv;
33024 {
33025
33026         /* pthread test function */
33027 #ifndef PTHREAD_CREATE_DETACHED
33028 #define PTHREAD_CREATE_DETACHED 1
33029 #endif
33030         pthread_t t;
33031         int status;
33032         int detach = PTHREAD_CREATE_DETACHED;
33033
33034 #if HAVE_PTHREADS > 4
33035         /* Final pthreads */
33036         pthread_attr_t attr;
33037
33038         status = pthread_attr_init(&attr);
33039         if( status ) return status;
33040
33041 #if HAVE_PTHREADS < 7
33042         status = pthread_attr_setdetachstate(&attr, &detach);
33043         if( status < 0 ) status = errno;
33044 #else
33045         status = pthread_attr_setdetachstate(&attr, detach);
33046 #endif
33047         if( status ) return status;
33048         status = pthread_create( &t, &attr, task, NULL );
33049 #if HAVE_PTHREADS < 7
33050         if( status < 0 ) status = errno;
33051 #endif
33052         if( status ) return status;
33053 #else
33054         /* Draft 4 pthreads */
33055         status = pthread_create( &t, pthread_attr_default, task, NULL );
33056         if( status ) return errno;
33057
33058         /* give thread a chance to complete */
33059         /* it should remain joinable and hence detachable */
33060         sleep( 1 );
33061
33062         status = pthread_detach( &t );
33063         if( status ) return errno;
33064 #endif
33065
33066 #ifdef HAVE_LINUX_THREADS
33067         pthread_kill_other_threads_np();
33068 #endif
33069
33070         return 0;
33071
33072 }
33073
33074 _ACEOF
33075 rm -f conftest$ac_exeext
33076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33077   (eval $ac_link) 2>&5
33078   ac_status=$?
33079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33082   (eval $ac_try) 2>&5
33083   ac_status=$?
33084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085   (exit $ac_status); }; }; then
33086   ol_cv_pthread_threads=yes
33087 else
33088   echo "$as_me: program exited with status $ac_status" >&5
33089 echo "$as_me: failed program was:" >&5
33090 sed 's/^/| /' conftest.$ac_ext >&5
33091
33092 ( exit $ac_status )
33093 ol_cv_pthread_threads=no
33094 fi
33095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33096 fi
33097
33098                 # restore the LIBS
33099                 LIBS="$ol_LIBS"
33100
33101 fi
33102 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33103 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33104
33105         if test $ol_cv_pthread_threads = yes ; then
33106                 ol_link_pthreads="-threads"
33107                 ol_link_threads=posix
33108         fi
33109 fi
33110
33111
33112                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33113 if test "$ol_link_threads" = no ; then
33114         # try -lpthreads -lmach -lexc -lc_r
33115         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33116 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33117 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33118   echo $ECHO_N "(cached) $ECHO_C" >&6
33119 else
33120
33121                 # save the flags
33122                 ol_LIBS="$LIBS"
33123                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33124
33125                 if test "$cross_compiling" = yes; then
33126   cat >conftest.$ac_ext <<_ACEOF
33127 /* confdefs.h.  */
33128 _ACEOF
33129 cat confdefs.h >>conftest.$ac_ext
33130 cat >>conftest.$ac_ext <<_ACEOF
33131 /* end confdefs.h.  */
33132
33133 /* pthread test headers */
33134 #include <pthread.h>
33135 #if HAVE_PTHREADS < 7
33136 #include <errno.h>
33137 #endif
33138 #ifndef NULL
33139 #define NULL (void*)0
33140 #endif
33141
33142 static void *task(p)
33143         void *p;
33144 {
33145         return (void *) (p == NULL);
33146 }
33147
33148 int
33149 main ()
33150 {
33151
33152         /* pthread test function */
33153 #ifndef PTHREAD_CREATE_DETACHED
33154 #define PTHREAD_CREATE_DETACHED 1
33155 #endif
33156         pthread_t t;
33157         int status;
33158         int detach = PTHREAD_CREATE_DETACHED;
33159
33160 #if HAVE_PTHREADS > 4
33161         /* Final pthreads */
33162         pthread_attr_t attr;
33163
33164         status = pthread_attr_init(&attr);
33165         if( status ) return status;
33166
33167 #if HAVE_PTHREADS < 7
33168         status = pthread_attr_setdetachstate(&attr, &detach);
33169         if( status < 0 ) status = errno;
33170 #else
33171         status = pthread_attr_setdetachstate(&attr, detach);
33172 #endif
33173         if( status ) return status;
33174         status = pthread_create( &t, &attr, task, NULL );
33175 #if HAVE_PTHREADS < 7
33176         if( status < 0 ) status = errno;
33177 #endif
33178         if( status ) return status;
33179 #else
33180         /* Draft 4 pthreads */
33181         status = pthread_create( &t, pthread_attr_default, task, NULL );
33182         if( status ) return errno;
33183
33184         /* give thread a chance to complete */
33185         /* it should remain joinable and hence detachable */
33186         sleep( 1 );
33187
33188         status = pthread_detach( &t );
33189         if( status ) return errno;
33190 #endif
33191
33192 #ifdef HAVE_LINUX_THREADS
33193         pthread_kill_other_threads_np();
33194 #endif
33195
33196         return 0;
33197
33198   ;
33199   return 0;
33200 }
33201 _ACEOF
33202 rm -f conftest.$ac_objext conftest$ac_exeext
33203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33204   (eval $ac_link) 2>conftest.er1
33205   ac_status=$?
33206   grep -v '^ *+' conftest.er1 >conftest.err
33207   rm -f conftest.er1
33208   cat conftest.err >&5
33209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210   (exit $ac_status); } &&
33211          { ac_try='test -z "$ac_c_werror_flag"
33212                          || test ! -s conftest.err'
33213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33214   (eval $ac_try) 2>&5
33215   ac_status=$?
33216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217   (exit $ac_status); }; } &&
33218          { ac_try='test -s conftest$ac_exeext'
33219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220   (eval $ac_try) 2>&5
33221   ac_status=$?
33222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223   (exit $ac_status); }; }; then
33224   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33225 else
33226   echo "$as_me: failed program was:" >&5
33227 sed 's/^/| /' conftest.$ac_ext >&5
33228
33229 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33230 fi
33231 rm -f conftest.err conftest.$ac_objext \
33232       conftest$ac_exeext conftest.$ac_ext
33233 else
33234   cat >conftest.$ac_ext <<_ACEOF
33235
33236 /* pthread test headers */
33237 #include <pthread.h>
33238 #if HAVE_PTHREADS < 7
33239 #include <errno.h>
33240 #endif
33241 #ifndef NULL
33242 #define NULL (void*)0
33243 #endif
33244
33245 static void *task(p)
33246         void *p;
33247 {
33248         return (void *) (p == NULL);
33249 }
33250
33251
33252 int main(argc, argv)
33253         int argc;
33254         char **argv;
33255 {
33256
33257         /* pthread test function */
33258 #ifndef PTHREAD_CREATE_DETACHED
33259 #define PTHREAD_CREATE_DETACHED 1
33260 #endif
33261         pthread_t t;
33262         int status;
33263         int detach = PTHREAD_CREATE_DETACHED;
33264
33265 #if HAVE_PTHREADS > 4
33266         /* Final pthreads */
33267         pthread_attr_t attr;
33268
33269         status = pthread_attr_init(&attr);
33270         if( status ) return status;
33271
33272 #if HAVE_PTHREADS < 7
33273         status = pthread_attr_setdetachstate(&attr, &detach);
33274         if( status < 0 ) status = errno;
33275 #else
33276         status = pthread_attr_setdetachstate(&attr, detach);
33277 #endif
33278         if( status ) return status;
33279         status = pthread_create( &t, &attr, task, NULL );
33280 #if HAVE_PTHREADS < 7
33281         if( status < 0 ) status = errno;
33282 #endif
33283         if( status ) return status;
33284 #else
33285         /* Draft 4 pthreads */
33286         status = pthread_create( &t, pthread_attr_default, task, NULL );
33287         if( status ) return errno;
33288
33289         /* give thread a chance to complete */
33290         /* it should remain joinable and hence detachable */
33291         sleep( 1 );
33292
33293         status = pthread_detach( &t );
33294         if( status ) return errno;
33295 #endif
33296
33297 #ifdef HAVE_LINUX_THREADS
33298         pthread_kill_other_threads_np();
33299 #endif
33300
33301         return 0;
33302
33303 }
33304
33305 _ACEOF
33306 rm -f conftest$ac_exeext
33307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33308   (eval $ac_link) 2>&5
33309   ac_status=$?
33310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33313   (eval $ac_try) 2>&5
33314   ac_status=$?
33315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316   (exit $ac_status); }; }; then
33317   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33318 else
33319   echo "$as_me: program exited with status $ac_status" >&5
33320 echo "$as_me: failed program was:" >&5
33321 sed 's/^/| /' conftest.$ac_ext >&5
33322
33323 ( exit $ac_status )
33324 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33325 fi
33326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33327 fi
33328
33329                 # restore the LIBS
33330                 LIBS="$ol_LIBS"
33331
33332 fi
33333 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33334 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33335
33336         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33337                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33338                 ol_link_threads=posix
33339         fi
33340 fi
33341
33342                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33343 if test "$ol_link_threads" = no ; then
33344         # try -lpthreads -lmach -lexc
33345         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33346 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33347 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33348   echo $ECHO_N "(cached) $ECHO_C" >&6
33349 else
33350
33351                 # save the flags
33352                 ol_LIBS="$LIBS"
33353                 LIBS="-lpthreads -lmach -lexc $LIBS"
33354
33355                 if test "$cross_compiling" = yes; then
33356   cat >conftest.$ac_ext <<_ACEOF
33357 /* confdefs.h.  */
33358 _ACEOF
33359 cat confdefs.h >>conftest.$ac_ext
33360 cat >>conftest.$ac_ext <<_ACEOF
33361 /* end confdefs.h.  */
33362
33363 /* pthread test headers */
33364 #include <pthread.h>
33365 #if HAVE_PTHREADS < 7
33366 #include <errno.h>
33367 #endif
33368 #ifndef NULL
33369 #define NULL (void*)0
33370 #endif
33371
33372 static void *task(p)
33373         void *p;
33374 {
33375         return (void *) (p == NULL);
33376 }
33377
33378 int
33379 main ()
33380 {
33381
33382         /* pthread test function */
33383 #ifndef PTHREAD_CREATE_DETACHED
33384 #define PTHREAD_CREATE_DETACHED 1
33385 #endif
33386         pthread_t t;
33387         int status;
33388         int detach = PTHREAD_CREATE_DETACHED;
33389
33390 #if HAVE_PTHREADS > 4
33391         /* Final pthreads */
33392         pthread_attr_t attr;
33393
33394         status = pthread_attr_init(&attr);
33395         if( status ) return status;
33396
33397 #if HAVE_PTHREADS < 7
33398         status = pthread_attr_setdetachstate(&attr, &detach);
33399         if( status < 0 ) status = errno;
33400 #else
33401         status = pthread_attr_setdetachstate(&attr, detach);
33402 #endif
33403         if( status ) return status;
33404         status = pthread_create( &t, &attr, task, NULL );
33405 #if HAVE_PTHREADS < 7
33406         if( status < 0 ) status = errno;
33407 #endif
33408         if( status ) return status;
33409 #else
33410         /* Draft 4 pthreads */
33411         status = pthread_create( &t, pthread_attr_default, task, NULL );
33412         if( status ) return errno;
33413
33414         /* give thread a chance to complete */
33415         /* it should remain joinable and hence detachable */
33416         sleep( 1 );
33417
33418         status = pthread_detach( &t );
33419         if( status ) return errno;
33420 #endif
33421
33422 #ifdef HAVE_LINUX_THREADS
33423         pthread_kill_other_threads_np();
33424 #endif
33425
33426         return 0;
33427
33428   ;
33429   return 0;
33430 }
33431 _ACEOF
33432 rm -f conftest.$ac_objext conftest$ac_exeext
33433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33434   (eval $ac_link) 2>conftest.er1
33435   ac_status=$?
33436   grep -v '^ *+' conftest.er1 >conftest.err
33437   rm -f conftest.er1
33438   cat conftest.err >&5
33439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440   (exit $ac_status); } &&
33441          { ac_try='test -z "$ac_c_werror_flag"
33442                          || test ! -s conftest.err'
33443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33444   (eval $ac_try) 2>&5
33445   ac_status=$?
33446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447   (exit $ac_status); }; } &&
33448          { ac_try='test -s conftest$ac_exeext'
33449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33450   (eval $ac_try) 2>&5
33451   ac_status=$?
33452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453   (exit $ac_status); }; }; then
33454   ol_cv_pthread_lpthreads_lmach_lexc=yes
33455 else
33456   echo "$as_me: failed program was:" >&5
33457 sed 's/^/| /' conftest.$ac_ext >&5
33458
33459 ol_cv_pthread_lpthreads_lmach_lexc=no
33460 fi
33461 rm -f conftest.err conftest.$ac_objext \
33462       conftest$ac_exeext conftest.$ac_ext
33463 else
33464   cat >conftest.$ac_ext <<_ACEOF
33465
33466 /* pthread test headers */
33467 #include <pthread.h>
33468 #if HAVE_PTHREADS < 7
33469 #include <errno.h>
33470 #endif
33471 #ifndef NULL
33472 #define NULL (void*)0
33473 #endif
33474
33475 static void *task(p)
33476         void *p;
33477 {
33478         return (void *) (p == NULL);
33479 }
33480
33481
33482 int main(argc, argv)
33483         int argc;
33484         char **argv;
33485 {
33486
33487         /* pthread test function */
33488 #ifndef PTHREAD_CREATE_DETACHED
33489 #define PTHREAD_CREATE_DETACHED 1
33490 #endif
33491         pthread_t t;
33492         int status;
33493         int detach = PTHREAD_CREATE_DETACHED;
33494
33495 #if HAVE_PTHREADS > 4
33496         /* Final pthreads */
33497         pthread_attr_t attr;
33498
33499         status = pthread_attr_init(&attr);
33500         if( status ) return status;
33501
33502 #if HAVE_PTHREADS < 7
33503         status = pthread_attr_setdetachstate(&attr, &detach);
33504         if( status < 0 ) status = errno;
33505 #else
33506         status = pthread_attr_setdetachstate(&attr, detach);
33507 #endif
33508         if( status ) return status;
33509         status = pthread_create( &t, &attr, task, NULL );
33510 #if HAVE_PTHREADS < 7
33511         if( status < 0 ) status = errno;
33512 #endif
33513         if( status ) return status;
33514 #else
33515         /* Draft 4 pthreads */
33516         status = pthread_create( &t, pthread_attr_default, task, NULL );
33517         if( status ) return errno;
33518
33519         /* give thread a chance to complete */
33520         /* it should remain joinable and hence detachable */
33521         sleep( 1 );
33522
33523         status = pthread_detach( &t );
33524         if( status ) return errno;
33525 #endif
33526
33527 #ifdef HAVE_LINUX_THREADS
33528         pthread_kill_other_threads_np();
33529 #endif
33530
33531         return 0;
33532
33533 }
33534
33535 _ACEOF
33536 rm -f conftest$ac_exeext
33537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33538   (eval $ac_link) 2>&5
33539   ac_status=$?
33540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33543   (eval $ac_try) 2>&5
33544   ac_status=$?
33545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546   (exit $ac_status); }; }; then
33547   ol_cv_pthread_lpthreads_lmach_lexc=yes
33548 else
33549   echo "$as_me: program exited with status $ac_status" >&5
33550 echo "$as_me: failed program was:" >&5
33551 sed 's/^/| /' conftest.$ac_ext >&5
33552
33553 ( exit $ac_status )
33554 ol_cv_pthread_lpthreads_lmach_lexc=no
33555 fi
33556 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33557 fi
33558
33559                 # restore the LIBS
33560                 LIBS="$ol_LIBS"
33561
33562 fi
33563 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33564 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33565
33566         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33567                 ol_link_pthreads="-lpthreads -lmach -lexc"
33568                 ol_link_threads=posix
33569         fi
33570 fi
33571
33572                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33573 if test "$ol_link_threads" = no ; then
33574         # try -lpthreads -lexc
33575         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33576 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33577 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33578   echo $ECHO_N "(cached) $ECHO_C" >&6
33579 else
33580
33581                 # save the flags
33582                 ol_LIBS="$LIBS"
33583                 LIBS="-lpthreads -lexc $LIBS"
33584
33585                 if test "$cross_compiling" = yes; then
33586   cat >conftest.$ac_ext <<_ACEOF
33587 /* confdefs.h.  */
33588 _ACEOF
33589 cat confdefs.h >>conftest.$ac_ext
33590 cat >>conftest.$ac_ext <<_ACEOF
33591 /* end confdefs.h.  */
33592
33593 /* pthread test headers */
33594 #include <pthread.h>
33595 #if HAVE_PTHREADS < 7
33596 #include <errno.h>
33597 #endif
33598 #ifndef NULL
33599 #define NULL (void*)0
33600 #endif
33601
33602 static void *task(p)
33603         void *p;
33604 {
33605         return (void *) (p == NULL);
33606 }
33607
33608 int
33609 main ()
33610 {
33611
33612         /* pthread test function */
33613 #ifndef PTHREAD_CREATE_DETACHED
33614 #define PTHREAD_CREATE_DETACHED 1
33615 #endif
33616         pthread_t t;
33617         int status;
33618         int detach = PTHREAD_CREATE_DETACHED;
33619
33620 #if HAVE_PTHREADS > 4
33621         /* Final pthreads */
33622         pthread_attr_t attr;
33623
33624         status = pthread_attr_init(&attr);
33625         if( status ) return status;
33626
33627 #if HAVE_PTHREADS < 7
33628         status = pthread_attr_setdetachstate(&attr, &detach);
33629         if( status < 0 ) status = errno;
33630 #else
33631         status = pthread_attr_setdetachstate(&attr, detach);
33632 #endif
33633         if( status ) return status;
33634         status = pthread_create( &t, &attr, task, NULL );
33635 #if HAVE_PTHREADS < 7
33636         if( status < 0 ) status = errno;
33637 #endif
33638         if( status ) return status;
33639 #else
33640         /* Draft 4 pthreads */
33641         status = pthread_create( &t, pthread_attr_default, task, NULL );
33642         if( status ) return errno;
33643
33644         /* give thread a chance to complete */
33645         /* it should remain joinable and hence detachable */
33646         sleep( 1 );
33647
33648         status = pthread_detach( &t );
33649         if( status ) return errno;
33650 #endif
33651
33652 #ifdef HAVE_LINUX_THREADS
33653         pthread_kill_other_threads_np();
33654 #endif
33655
33656         return 0;
33657
33658   ;
33659   return 0;
33660 }
33661 _ACEOF
33662 rm -f conftest.$ac_objext conftest$ac_exeext
33663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33664   (eval $ac_link) 2>conftest.er1
33665   ac_status=$?
33666   grep -v '^ *+' conftest.er1 >conftest.err
33667   rm -f conftest.er1
33668   cat conftest.err >&5
33669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670   (exit $ac_status); } &&
33671          { ac_try='test -z "$ac_c_werror_flag"
33672                          || test ! -s conftest.err'
33673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33674   (eval $ac_try) 2>&5
33675   ac_status=$?
33676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33677   (exit $ac_status); }; } &&
33678          { ac_try='test -s conftest$ac_exeext'
33679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33680   (eval $ac_try) 2>&5
33681   ac_status=$?
33682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683   (exit $ac_status); }; }; then
33684   ol_cv_pthread_lpthreads_lexc=yes
33685 else
33686   echo "$as_me: failed program was:" >&5
33687 sed 's/^/| /' conftest.$ac_ext >&5
33688
33689 ol_cv_pthread_lpthreads_lexc=no
33690 fi
33691 rm -f conftest.err conftest.$ac_objext \
33692       conftest$ac_exeext conftest.$ac_ext
33693 else
33694   cat >conftest.$ac_ext <<_ACEOF
33695
33696 /* pthread test headers */
33697 #include <pthread.h>
33698 #if HAVE_PTHREADS < 7
33699 #include <errno.h>
33700 #endif
33701 #ifndef NULL
33702 #define NULL (void*)0
33703 #endif
33704
33705 static void *task(p)
33706         void *p;
33707 {
33708         return (void *) (p == NULL);
33709 }
33710
33711
33712 int main(argc, argv)
33713         int argc;
33714         char **argv;
33715 {
33716
33717         /* pthread test function */
33718 #ifndef PTHREAD_CREATE_DETACHED
33719 #define PTHREAD_CREATE_DETACHED 1
33720 #endif
33721         pthread_t t;
33722         int status;
33723         int detach = PTHREAD_CREATE_DETACHED;
33724
33725 #if HAVE_PTHREADS > 4
33726         /* Final pthreads */
33727         pthread_attr_t attr;
33728
33729         status = pthread_attr_init(&attr);
33730         if( status ) return status;
33731
33732 #if HAVE_PTHREADS < 7
33733         status = pthread_attr_setdetachstate(&attr, &detach);
33734         if( status < 0 ) status = errno;
33735 #else
33736         status = pthread_attr_setdetachstate(&attr, detach);
33737 #endif
33738         if( status ) return status;
33739         status = pthread_create( &t, &attr, task, NULL );
33740 #if HAVE_PTHREADS < 7
33741         if( status < 0 ) status = errno;
33742 #endif
33743         if( status ) return status;
33744 #else
33745         /* Draft 4 pthreads */
33746         status = pthread_create( &t, pthread_attr_default, task, NULL );
33747         if( status ) return errno;
33748
33749         /* give thread a chance to complete */
33750         /* it should remain joinable and hence detachable */
33751         sleep( 1 );
33752
33753         status = pthread_detach( &t );
33754         if( status ) return errno;
33755 #endif
33756
33757 #ifdef HAVE_LINUX_THREADS
33758         pthread_kill_other_threads_np();
33759 #endif
33760
33761         return 0;
33762
33763 }
33764
33765 _ACEOF
33766 rm -f conftest$ac_exeext
33767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33768   (eval $ac_link) 2>&5
33769   ac_status=$?
33770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33771   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33773   (eval $ac_try) 2>&5
33774   ac_status=$?
33775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776   (exit $ac_status); }; }; then
33777   ol_cv_pthread_lpthreads_lexc=yes
33778 else
33779   echo "$as_me: program exited with status $ac_status" >&5
33780 echo "$as_me: failed program was:" >&5
33781 sed 's/^/| /' conftest.$ac_ext >&5
33782
33783 ( exit $ac_status )
33784 ol_cv_pthread_lpthreads_lexc=no
33785 fi
33786 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33787 fi
33788
33789                 # restore the LIBS
33790                 LIBS="$ol_LIBS"
33791
33792 fi
33793 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33794 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33795
33796         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33797                 ol_link_pthreads="-lpthreads -lexc"
33798                 ol_link_threads=posix
33799         fi
33800 fi
33801
33802
33803                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33804 if test "$ol_link_threads" = no ; then
33805         # try -lpthreads
33806         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33807 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33808 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33809   echo $ECHO_N "(cached) $ECHO_C" >&6
33810 else
33811
33812                 # save the flags
33813                 ol_LIBS="$LIBS"
33814                 LIBS="-lpthreads $LIBS"
33815
33816                 if test "$cross_compiling" = yes; then
33817   cat >conftest.$ac_ext <<_ACEOF
33818 /* confdefs.h.  */
33819 _ACEOF
33820 cat confdefs.h >>conftest.$ac_ext
33821 cat >>conftest.$ac_ext <<_ACEOF
33822 /* end confdefs.h.  */
33823
33824 /* pthread test headers */
33825 #include <pthread.h>
33826 #if HAVE_PTHREADS < 7
33827 #include <errno.h>
33828 #endif
33829 #ifndef NULL
33830 #define NULL (void*)0
33831 #endif
33832
33833 static void *task(p)
33834         void *p;
33835 {
33836         return (void *) (p == NULL);
33837 }
33838
33839 int
33840 main ()
33841 {
33842
33843         /* pthread test function */
33844 #ifndef PTHREAD_CREATE_DETACHED
33845 #define PTHREAD_CREATE_DETACHED 1
33846 #endif
33847         pthread_t t;
33848         int status;
33849         int detach = PTHREAD_CREATE_DETACHED;
33850
33851 #if HAVE_PTHREADS > 4
33852         /* Final pthreads */
33853         pthread_attr_t attr;
33854
33855         status = pthread_attr_init(&attr);
33856         if( status ) return status;
33857
33858 #if HAVE_PTHREADS < 7
33859         status = pthread_attr_setdetachstate(&attr, &detach);
33860         if( status < 0 ) status = errno;
33861 #else
33862         status = pthread_attr_setdetachstate(&attr, detach);
33863 #endif
33864         if( status ) return status;
33865         status = pthread_create( &t, &attr, task, NULL );
33866 #if HAVE_PTHREADS < 7
33867         if( status < 0 ) status = errno;
33868 #endif
33869         if( status ) return status;
33870 #else
33871         /* Draft 4 pthreads */
33872         status = pthread_create( &t, pthread_attr_default, task, NULL );
33873         if( status ) return errno;
33874
33875         /* give thread a chance to complete */
33876         /* it should remain joinable and hence detachable */
33877         sleep( 1 );
33878
33879         status = pthread_detach( &t );
33880         if( status ) return errno;
33881 #endif
33882
33883 #ifdef HAVE_LINUX_THREADS
33884         pthread_kill_other_threads_np();
33885 #endif
33886
33887         return 0;
33888
33889   ;
33890   return 0;
33891 }
33892 _ACEOF
33893 rm -f conftest.$ac_objext conftest$ac_exeext
33894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33895   (eval $ac_link) 2>conftest.er1
33896   ac_status=$?
33897   grep -v '^ *+' conftest.er1 >conftest.err
33898   rm -f conftest.er1
33899   cat conftest.err >&5
33900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33901   (exit $ac_status); } &&
33902          { ac_try='test -z "$ac_c_werror_flag"
33903                          || test ! -s conftest.err'
33904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33905   (eval $ac_try) 2>&5
33906   ac_status=$?
33907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33908   (exit $ac_status); }; } &&
33909          { ac_try='test -s conftest$ac_exeext'
33910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33911   (eval $ac_try) 2>&5
33912   ac_status=$?
33913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33914   (exit $ac_status); }; }; then
33915   ol_cv_pthread_lib_lpthreads=yes
33916 else
33917   echo "$as_me: failed program was:" >&5
33918 sed 's/^/| /' conftest.$ac_ext >&5
33919
33920 ol_cv_pthread_lib_lpthreads=no
33921 fi
33922 rm -f conftest.err conftest.$ac_objext \
33923       conftest$ac_exeext conftest.$ac_ext
33924 else
33925   cat >conftest.$ac_ext <<_ACEOF
33926
33927 /* pthread test headers */
33928 #include <pthread.h>
33929 #if HAVE_PTHREADS < 7
33930 #include <errno.h>
33931 #endif
33932 #ifndef NULL
33933 #define NULL (void*)0
33934 #endif
33935
33936 static void *task(p)
33937         void *p;
33938 {
33939         return (void *) (p == NULL);
33940 }
33941
33942
33943 int main(argc, argv)
33944         int argc;
33945         char **argv;
33946 {
33947
33948         /* pthread test function */
33949 #ifndef PTHREAD_CREATE_DETACHED
33950 #define PTHREAD_CREATE_DETACHED 1
33951 #endif
33952         pthread_t t;
33953         int status;
33954         int detach = PTHREAD_CREATE_DETACHED;
33955
33956 #if HAVE_PTHREADS > 4
33957         /* Final pthreads */
33958         pthread_attr_t attr;
33959
33960         status = pthread_attr_init(&attr);
33961         if( status ) return status;
33962
33963 #if HAVE_PTHREADS < 7
33964         status = pthread_attr_setdetachstate(&attr, &detach);
33965         if( status < 0 ) status = errno;
33966 #else
33967         status = pthread_attr_setdetachstate(&attr, detach);
33968 #endif
33969         if( status ) return status;
33970         status = pthread_create( &t, &attr, task, NULL );
33971 #if HAVE_PTHREADS < 7
33972         if( status < 0 ) status = errno;
33973 #endif
33974         if( status ) return status;
33975 #else
33976         /* Draft 4 pthreads */
33977         status = pthread_create( &t, pthread_attr_default, task, NULL );
33978         if( status ) return errno;
33979
33980         /* give thread a chance to complete */
33981         /* it should remain joinable and hence detachable */
33982         sleep( 1 );
33983
33984         status = pthread_detach( &t );
33985         if( status ) return errno;
33986 #endif
33987
33988 #ifdef HAVE_LINUX_THREADS
33989         pthread_kill_other_threads_np();
33990 #endif
33991
33992         return 0;
33993
33994 }
33995
33996 _ACEOF
33997 rm -f conftest$ac_exeext
33998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33999   (eval $ac_link) 2>&5
34000   ac_status=$?
34001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34004   (eval $ac_try) 2>&5
34005   ac_status=$?
34006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34007   (exit $ac_status); }; }; then
34008   ol_cv_pthread_lib_lpthreads=yes
34009 else
34010   echo "$as_me: program exited with status $ac_status" >&5
34011 echo "$as_me: failed program was:" >&5
34012 sed 's/^/| /' conftest.$ac_ext >&5
34013
34014 ( exit $ac_status )
34015 ol_cv_pthread_lib_lpthreads=no
34016 fi
34017 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34018 fi
34019
34020                 # restore the LIBS
34021                 LIBS="$ol_LIBS"
34022
34023 fi
34024 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34025 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34026
34027         if test $ol_cv_pthread_lib_lpthreads = yes ; then
34028                 ol_link_pthreads="-lpthreads"
34029                 ol_link_threads=posix
34030         fi
34031 fi
34032
34033
34034                 if test $ol_link_threads != no ; then
34035                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34036
34037                                                 save_CPPFLAGS="$CPPFLAGS"
34038                         save_LIBS="$LIBS"
34039                         LIBS="$LTHREAD_LIBS $LIBS"
34040
34041
34042
34043
34044 for ac_func in sched_yield pthread_yield thr_yield
34045 do
34046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34047 echo "$as_me:$LINENO: checking for $ac_func" >&5
34048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34049 if eval "test \"\${$as_ac_var+set}\" = set"; then
34050   echo $ECHO_N "(cached) $ECHO_C" >&6
34051 else
34052   cat >conftest.$ac_ext <<_ACEOF
34053 /* confdefs.h.  */
34054 _ACEOF
34055 cat confdefs.h >>conftest.$ac_ext
34056 cat >>conftest.$ac_ext <<_ACEOF
34057 /* end confdefs.h.  */
34058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34060 #define $ac_func innocuous_$ac_func
34061
34062 /* System header to define __stub macros and hopefully few prototypes,
34063     which can conflict with char $ac_func (); below.
34064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34065     <limits.h> exists even on freestanding compilers.  */
34066
34067 #ifdef __STDC__
34068 # include <limits.h>
34069 #else
34070 # include <assert.h>
34071 #endif
34072
34073 #undef $ac_func
34074
34075 /* Override any gcc2 internal prototype to avoid an error.  */
34076 #ifdef __cplusplus
34077 extern "C"
34078 {
34079 #endif
34080 /* We use char because int might match the return type of a gcc2
34081    builtin and then its argument prototype would still apply.  */
34082 char $ac_func ();
34083 /* The GNU C library defines this for functions which it implements
34084     to always fail with ENOSYS.  Some functions are actually named
34085     something starting with __ and the normal name is an alias.  */
34086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34087 choke me
34088 #else
34089 char (*f) () = $ac_func;
34090 #endif
34091 #ifdef __cplusplus
34092 }
34093 #endif
34094
34095 int
34096 main ()
34097 {
34098 return f != $ac_func;
34099   ;
34100   return 0;
34101 }
34102 _ACEOF
34103 rm -f conftest.$ac_objext conftest$ac_exeext
34104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34105   (eval $ac_link) 2>conftest.er1
34106   ac_status=$?
34107   grep -v '^ *+' conftest.er1 >conftest.err
34108   rm -f conftest.er1
34109   cat conftest.err >&5
34110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34111   (exit $ac_status); } &&
34112          { ac_try='test -z "$ac_c_werror_flag"
34113                          || test ! -s conftest.err'
34114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34115   (eval $ac_try) 2>&5
34116   ac_status=$?
34117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118   (exit $ac_status); }; } &&
34119          { ac_try='test -s conftest$ac_exeext'
34120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34121   (eval $ac_try) 2>&5
34122   ac_status=$?
34123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34124   (exit $ac_status); }; }; then
34125   eval "$as_ac_var=yes"
34126 else
34127   echo "$as_me: failed program was:" >&5
34128 sed 's/^/| /' conftest.$ac_ext >&5
34129
34130 eval "$as_ac_var=no"
34131 fi
34132 rm -f conftest.err conftest.$ac_objext \
34133       conftest$ac_exeext conftest.$ac_ext
34134 fi
34135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34137 if test `eval echo '${'$as_ac_var'}'` = yes; then
34138   cat >>confdefs.h <<_ACEOF
34139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34140 _ACEOF
34141
34142 fi
34143 done
34144
34145
34146                         if test $ac_cv_func_sched_yield = no -a \
34147                                 $ac_cv_func_pthread_yield = no -a \
34148                                 $ac_cv_func_thr_yield = no ; then
34149                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34150 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34151 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34152   echo $ECHO_N "(cached) $ECHO_C" >&6
34153 else
34154   ac_check_lib_save_LIBS=$LIBS
34155 LIBS="-lrt  $LIBS"
34156 cat >conftest.$ac_ext <<_ACEOF
34157 /* confdefs.h.  */
34158 _ACEOF
34159 cat confdefs.h >>conftest.$ac_ext
34160 cat >>conftest.$ac_ext <<_ACEOF
34161 /* end confdefs.h.  */
34162
34163 /* Override any gcc2 internal prototype to avoid an error.  */
34164 #ifdef __cplusplus
34165 extern "C"
34166 #endif
34167 /* We use char because int might match the return type of a gcc2
34168    builtin and then its argument prototype would still apply.  */
34169 char sched_yield ();
34170 int
34171 main ()
34172 {
34173 sched_yield ();
34174   ;
34175   return 0;
34176 }
34177 _ACEOF
34178 rm -f conftest.$ac_objext conftest$ac_exeext
34179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34180   (eval $ac_link) 2>conftest.er1
34181   ac_status=$?
34182   grep -v '^ *+' conftest.er1 >conftest.err
34183   rm -f conftest.er1
34184   cat conftest.err >&5
34185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186   (exit $ac_status); } &&
34187          { ac_try='test -z "$ac_c_werror_flag"
34188                          || test ! -s conftest.err'
34189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34190   (eval $ac_try) 2>&5
34191   ac_status=$?
34192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193   (exit $ac_status); }; } &&
34194          { ac_try='test -s conftest$ac_exeext'
34195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34196   (eval $ac_try) 2>&5
34197   ac_status=$?
34198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199   (exit $ac_status); }; }; then
34200   ac_cv_lib_rt_sched_yield=yes
34201 else
34202   echo "$as_me: failed program was:" >&5
34203 sed 's/^/| /' conftest.$ac_ext >&5
34204
34205 ac_cv_lib_rt_sched_yield=no
34206 fi
34207 rm -f conftest.err conftest.$ac_objext \
34208       conftest$ac_exeext conftest.$ac_ext
34209 LIBS=$ac_check_lib_save_LIBS
34210 fi
34211 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34212 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34213 if test $ac_cv_lib_rt_sched_yield = yes; then
34214   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34215
34216 cat >>confdefs.h <<\_ACEOF
34217 #define HAVE_SCHED_YIELD 1
34218 _ACEOF
34219
34220                                         ac_cv_func_sched_yield=yes
34221 else
34222   ac_cv_func_sched_yield=no
34223 fi
34224
34225                         fi
34226                         if test $ac_cv_func_sched_yield = no -a \
34227                                 $ac_cv_func_pthread_yield = no -a \
34228                                 "$ac_cv_func_thr_yield" = no ; then
34229                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34230 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34231                         fi
34232
34233
34234
34235 for ac_func in pthread_kill pthread_rwlock_destroy
34236 do
34237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34238 echo "$as_me:$LINENO: checking for $ac_func" >&5
34239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34240 if eval "test \"\${$as_ac_var+set}\" = set"; then
34241   echo $ECHO_N "(cached) $ECHO_C" >&6
34242 else
34243   cat >conftest.$ac_ext <<_ACEOF
34244 /* confdefs.h.  */
34245 _ACEOF
34246 cat confdefs.h >>conftest.$ac_ext
34247 cat >>conftest.$ac_ext <<_ACEOF
34248 /* end confdefs.h.  */
34249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34251 #define $ac_func innocuous_$ac_func
34252
34253 /* System header to define __stub macros and hopefully few prototypes,
34254     which can conflict with char $ac_func (); below.
34255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34256     <limits.h> exists even on freestanding compilers.  */
34257
34258 #ifdef __STDC__
34259 # include <limits.h>
34260 #else
34261 # include <assert.h>
34262 #endif
34263
34264 #undef $ac_func
34265
34266 /* Override any gcc2 internal prototype to avoid an error.  */
34267 #ifdef __cplusplus
34268 extern "C"
34269 {
34270 #endif
34271 /* We use char because int might match the return type of a gcc2
34272    builtin and then its argument prototype would still apply.  */
34273 char $ac_func ();
34274 /* The GNU C library defines this for functions which it implements
34275     to always fail with ENOSYS.  Some functions are actually named
34276     something starting with __ and the normal name is an alias.  */
34277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34278 choke me
34279 #else
34280 char (*f) () = $ac_func;
34281 #endif
34282 #ifdef __cplusplus
34283 }
34284 #endif
34285
34286 int
34287 main ()
34288 {
34289 return f != $ac_func;
34290   ;
34291   return 0;
34292 }
34293 _ACEOF
34294 rm -f conftest.$ac_objext conftest$ac_exeext
34295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34296   (eval $ac_link) 2>conftest.er1
34297   ac_status=$?
34298   grep -v '^ *+' conftest.er1 >conftest.err
34299   rm -f conftest.er1
34300   cat conftest.err >&5
34301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302   (exit $ac_status); } &&
34303          { ac_try='test -z "$ac_c_werror_flag"
34304                          || test ! -s conftest.err'
34305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34306   (eval $ac_try) 2>&5
34307   ac_status=$?
34308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34309   (exit $ac_status); }; } &&
34310          { ac_try='test -s conftest$ac_exeext'
34311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34312   (eval $ac_try) 2>&5
34313   ac_status=$?
34314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34315   (exit $ac_status); }; }; then
34316   eval "$as_ac_var=yes"
34317 else
34318   echo "$as_me: failed program was:" >&5
34319 sed 's/^/| /' conftest.$ac_ext >&5
34320
34321 eval "$as_ac_var=no"
34322 fi
34323 rm -f conftest.err conftest.$ac_objext \
34324       conftest$ac_exeext conftest.$ac_ext
34325 fi
34326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34328 if test `eval echo '${'$as_ac_var'}'` = yes; then
34329   cat >>confdefs.h <<_ACEOF
34330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34331 _ACEOF
34332
34333 fi
34334 done
34335
34336
34337                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34338 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34339 if test "${ol_cv_func_pthread_detach+set}" = set; then
34340   echo $ECHO_N "(cached) $ECHO_C" >&6
34341 else
34342
34343                                                                 cat >conftest.$ac_ext <<_ACEOF
34344 /* confdefs.h.  */
34345 _ACEOF
34346 cat confdefs.h >>conftest.$ac_ext
34347 cat >>conftest.$ac_ext <<_ACEOF
34348 /* end confdefs.h.  */
34349
34350 #include <pthread.h>
34351 #ifndef NULL
34352 #define NULL (void*)0
34353 #endif
34354
34355 int
34356 main ()
34357 {
34358 pthread_detach(NULL);
34359   ;
34360   return 0;
34361 }
34362 _ACEOF
34363 rm -f conftest.$ac_objext conftest$ac_exeext
34364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34365   (eval $ac_link) 2>conftest.er1
34366   ac_status=$?
34367   grep -v '^ *+' conftest.er1 >conftest.err
34368   rm -f conftest.er1
34369   cat conftest.err >&5
34370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371   (exit $ac_status); } &&
34372          { ac_try='test -z "$ac_c_werror_flag"
34373                          || test ! -s conftest.err'
34374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34375   (eval $ac_try) 2>&5
34376   ac_status=$?
34377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378   (exit $ac_status); }; } &&
34379          { ac_try='test -s conftest$ac_exeext'
34380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34381   (eval $ac_try) 2>&5
34382   ac_status=$?
34383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384   (exit $ac_status); }; }; then
34385   ol_cv_func_pthread_detach=yes
34386 else
34387   echo "$as_me: failed program was:" >&5
34388 sed 's/^/| /' conftest.$ac_ext >&5
34389
34390 ol_cv_func_pthread_detach=no
34391 fi
34392 rm -f conftest.err conftest.$ac_objext \
34393       conftest$ac_exeext conftest.$ac_ext
34394
34395 fi
34396 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34397 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34398
34399                         if test $ol_cv_func_pthread_detach = no ; then
34400                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34401 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34402    { (exit 1); exit 1; }; }
34403                         fi
34404
34405
34406 cat >>confdefs.h <<\_ACEOF
34407 #define HAVE_PTHREAD_DETACH 1
34408 _ACEOF
34409
34410
34411
34412
34413
34414
34415 for ac_func in \
34416                                 pthread_setconcurrency \
34417                                 pthread_getconcurrency \
34418                                 thr_setconcurrency \
34419                                 thr_getconcurrency \
34420
34421 do
34422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34423 echo "$as_me:$LINENO: checking for $ac_func" >&5
34424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34425 if eval "test \"\${$as_ac_var+set}\" = set"; then
34426   echo $ECHO_N "(cached) $ECHO_C" >&6
34427 else
34428   cat >conftest.$ac_ext <<_ACEOF
34429 /* confdefs.h.  */
34430 _ACEOF
34431 cat confdefs.h >>conftest.$ac_ext
34432 cat >>conftest.$ac_ext <<_ACEOF
34433 /* end confdefs.h.  */
34434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34436 #define $ac_func innocuous_$ac_func
34437
34438 /* System header to define __stub macros and hopefully few prototypes,
34439     which can conflict with char $ac_func (); below.
34440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34441     <limits.h> exists even on freestanding compilers.  */
34442
34443 #ifdef __STDC__
34444 # include <limits.h>
34445 #else
34446 # include <assert.h>
34447 #endif
34448
34449 #undef $ac_func
34450
34451 /* Override any gcc2 internal prototype to avoid an error.  */
34452 #ifdef __cplusplus
34453 extern "C"
34454 {
34455 #endif
34456 /* We use char because int might match the return type of a gcc2
34457    builtin and then its argument prototype would still apply.  */
34458 char $ac_func ();
34459 /* The GNU C library defines this for functions which it implements
34460     to always fail with ENOSYS.  Some functions are actually named
34461     something starting with __ and the normal name is an alias.  */
34462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34463 choke me
34464 #else
34465 char (*f) () = $ac_func;
34466 #endif
34467 #ifdef __cplusplus
34468 }
34469 #endif
34470
34471 int
34472 main ()
34473 {
34474 return f != $ac_func;
34475   ;
34476   return 0;
34477 }
34478 _ACEOF
34479 rm -f conftest.$ac_objext conftest$ac_exeext
34480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34481   (eval $ac_link) 2>conftest.er1
34482   ac_status=$?
34483   grep -v '^ *+' conftest.er1 >conftest.err
34484   rm -f conftest.er1
34485   cat conftest.err >&5
34486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487   (exit $ac_status); } &&
34488          { ac_try='test -z "$ac_c_werror_flag"
34489                          || test ! -s conftest.err'
34490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34491   (eval $ac_try) 2>&5
34492   ac_status=$?
34493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34494   (exit $ac_status); }; } &&
34495          { ac_try='test -s conftest$ac_exeext'
34496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34497   (eval $ac_try) 2>&5
34498   ac_status=$?
34499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500   (exit $ac_status); }; }; then
34501   eval "$as_ac_var=yes"
34502 else
34503   echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34505
34506 eval "$as_ac_var=no"
34507 fi
34508 rm -f conftest.err conftest.$ac_objext \
34509       conftest$ac_exeext conftest.$ac_ext
34510 fi
34511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34513 if test `eval echo '${'$as_ac_var'}'` = yes; then
34514   cat >>confdefs.h <<_ACEOF
34515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34516 _ACEOF
34517
34518 fi
34519 done
34520
34521
34522
34523
34524 for ac_func in pthread_kill_other_threads_np
34525 do
34526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34527 echo "$as_me:$LINENO: checking for $ac_func" >&5
34528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34529 if eval "test \"\${$as_ac_var+set}\" = set"; then
34530   echo $ECHO_N "(cached) $ECHO_C" >&6
34531 else
34532   cat >conftest.$ac_ext <<_ACEOF
34533 /* confdefs.h.  */
34534 _ACEOF
34535 cat confdefs.h >>conftest.$ac_ext
34536 cat >>conftest.$ac_ext <<_ACEOF
34537 /* end confdefs.h.  */
34538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34540 #define $ac_func innocuous_$ac_func
34541
34542 /* System header to define __stub macros and hopefully few prototypes,
34543     which can conflict with char $ac_func (); below.
34544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34545     <limits.h> exists even on freestanding compilers.  */
34546
34547 #ifdef __STDC__
34548 # include <limits.h>
34549 #else
34550 # include <assert.h>
34551 #endif
34552
34553 #undef $ac_func
34554
34555 /* Override any gcc2 internal prototype to avoid an error.  */
34556 #ifdef __cplusplus
34557 extern "C"
34558 {
34559 #endif
34560 /* We use char because int might match the return type of a gcc2
34561    builtin and then its argument prototype would still apply.  */
34562 char $ac_func ();
34563 /* The GNU C library defines this for functions which it implements
34564     to always fail with ENOSYS.  Some functions are actually named
34565     something starting with __ and the normal name is an alias.  */
34566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34567 choke me
34568 #else
34569 char (*f) () = $ac_func;
34570 #endif
34571 #ifdef __cplusplus
34572 }
34573 #endif
34574
34575 int
34576 main ()
34577 {
34578 return f != $ac_func;
34579   ;
34580   return 0;
34581 }
34582 _ACEOF
34583 rm -f conftest.$ac_objext conftest$ac_exeext
34584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34585   (eval $ac_link) 2>conftest.er1
34586   ac_status=$?
34587   grep -v '^ *+' conftest.er1 >conftest.err
34588   rm -f conftest.er1
34589   cat conftest.err >&5
34590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34591   (exit $ac_status); } &&
34592          { ac_try='test -z "$ac_c_werror_flag"
34593                          || test ! -s conftest.err'
34594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34595   (eval $ac_try) 2>&5
34596   ac_status=$?
34597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598   (exit $ac_status); }; } &&
34599          { ac_try='test -s conftest$ac_exeext'
34600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34601   (eval $ac_try) 2>&5
34602   ac_status=$?
34603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34604   (exit $ac_status); }; }; then
34605   eval "$as_ac_var=yes"
34606 else
34607   echo "$as_me: failed program was:" >&5
34608 sed 's/^/| /' conftest.$ac_ext >&5
34609
34610 eval "$as_ac_var=no"
34611 fi
34612 rm -f conftest.err conftest.$ac_objext \
34613       conftest$ac_exeext conftest.$ac_ext
34614 fi
34615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34617 if test `eval echo '${'$as_ac_var'}'` = yes; then
34618   cat >>confdefs.h <<_ACEOF
34619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34620 _ACEOF
34621
34622 fi
34623 done
34624
34625         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34626 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34627 if test "${ol_cv_sys_linux_threads+set}" = set; then
34628   echo $ECHO_N "(cached) $ECHO_C" >&6
34629 else
34630   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34631 fi
34632 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34633 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34634
34635
34636
34637
34638         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34639 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34640 if test "${ol_cv_linux_threads+set}" = set; then
34641   echo $ECHO_N "(cached) $ECHO_C" >&6
34642 else
34643
34644                 if test $ol_cv_header_linux_threads = yes -a \
34645                         $ol_cv_sys_linux_threads = yes; then
34646                         ol_cv_linux_threads=yes
34647                 elif test $ol_cv_header_linux_threads = no -a \
34648                         $ol_cv_sys_linux_threads = no; then
34649                         ol_cv_linux_threads=no
34650                 else
34651                         ol_cv_linux_threads=error
34652                 fi
34653
34654 fi
34655 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34656 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34657
34658
34659                         if test $ol_cv_linux_threads = error; then
34660                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34661 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34662    { (exit 1); exit 1; }; };
34663                         fi
34664
34665                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34666 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34667 if test "${ol_cv_pthread_create_works+set}" = set; then
34668   echo $ECHO_N "(cached) $ECHO_C" >&6
34669 else
34670
34671                         if test "$cross_compiling" = yes; then
34672                                 ol_cv_pthread_create_works=yes
34673 else
34674   cat >conftest.$ac_ext <<_ACEOF
34675
34676 /* pthread test headers */
34677 #include <pthread.h>
34678 #if HAVE_PTHREADS < 7
34679 #include <errno.h>
34680 #endif
34681 #ifndef NULL
34682 #define NULL (void*)0
34683 #endif
34684
34685 static void *task(p)
34686         void *p;
34687 {
34688         return (void *) (p == NULL);
34689 }
34690
34691
34692 int main(argc, argv)
34693         int argc;
34694         char **argv;
34695 {
34696
34697         /* pthread test function */
34698 #ifndef PTHREAD_CREATE_DETACHED
34699 #define PTHREAD_CREATE_DETACHED 1
34700 #endif
34701         pthread_t t;
34702         int status;
34703         int detach = PTHREAD_CREATE_DETACHED;
34704
34705 #if HAVE_PTHREADS > 4
34706         /* Final pthreads */
34707         pthread_attr_t attr;
34708
34709         status = pthread_attr_init(&attr);
34710         if( status ) return status;
34711
34712 #if HAVE_PTHREADS < 7
34713         status = pthread_attr_setdetachstate(&attr, &detach);
34714         if( status < 0 ) status = errno;
34715 #else
34716         status = pthread_attr_setdetachstate(&attr, detach);
34717 #endif
34718         if( status ) return status;
34719         status = pthread_create( &t, &attr, task, NULL );
34720 #if HAVE_PTHREADS < 7
34721         if( status < 0 ) status = errno;
34722 #endif
34723         if( status ) return status;
34724 #else
34725         /* Draft 4 pthreads */
34726         status = pthread_create( &t, pthread_attr_default, task, NULL );
34727         if( status ) return errno;
34728
34729         /* give thread a chance to complete */
34730         /* it should remain joinable and hence detachable */
34731         sleep( 1 );
34732
34733         status = pthread_detach( &t );
34734         if( status ) return errno;
34735 #endif
34736
34737 #ifdef HAVE_LINUX_THREADS
34738         pthread_kill_other_threads_np();
34739 #endif
34740
34741         return 0;
34742
34743 }
34744
34745 _ACEOF
34746 rm -f conftest$ac_exeext
34747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34748   (eval $ac_link) 2>&5
34749   ac_status=$?
34750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34753   (eval $ac_try) 2>&5
34754   ac_status=$?
34755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756   (exit $ac_status); }; }; then
34757   ol_cv_pthread_create_works=yes
34758 else
34759   echo "$as_me: program exited with status $ac_status" >&5
34760 echo "$as_me: failed program was:" >&5
34761 sed 's/^/| /' conftest.$ac_ext >&5
34762
34763 ( exit $ac_status )
34764 ol_cv_pthread_create_works=no
34765 fi
34766 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34767 fi
34768 fi
34769 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34770 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34771
34772                         if test $ol_cv_pthread_create_works = no ; then
34773                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34774 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34775    { (exit 1); exit 1; }; }
34776                         fi
34777
34778                                                 if test $ol_with_yielding_select = auto ; then
34779                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34780 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34781 if test "${ol_cv_pthread_select_yields+set}" = set; then
34782   echo $ECHO_N "(cached) $ECHO_C" >&6
34783 else
34784
34785                                 if test "$cross_compiling" = yes; then
34786   ol_cv_pthread_select_yields=cross
34787 else
34788   cat >conftest.$ac_ext <<_ACEOF
34789 /* confdefs.h.  */
34790 _ACEOF
34791 cat confdefs.h >>conftest.$ac_ext
34792 cat >>conftest.$ac_ext <<_ACEOF
34793 /* end confdefs.h.  */
34794
34795 #include <sys/types.h>
34796 #include <sys/time.h>
34797 #include <unistd.h>
34798 #include <pthread.h>
34799 #ifndef NULL
34800 #define NULL (void*) 0
34801 #endif
34802
34803 static int fildes[2];
34804
34805 static void *task(p)
34806         void *p;
34807 {
34808         int i;
34809         struct timeval tv;
34810
34811         fd_set rfds;
34812
34813         tv.tv_sec=10;
34814         tv.tv_usec=0;
34815
34816         FD_ZERO(&rfds);
34817         FD_SET(fildes[0], &rfds);
34818
34819         /* we're not interested in any fds */
34820         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34821
34822         if(i < 0) {
34823                 perror("select");
34824                 exit(10);
34825         }
34826
34827         exit(0); /* if we exit here, the select blocked the whole process */
34828 }
34829
34830 int main(argc, argv)
34831         int argc;
34832         char **argv;
34833 {
34834         pthread_t t;
34835
34836         /* create a pipe to select */
34837         if(pipe(&fildes[0])) {
34838                 perror("select");
34839                 exit(1);
34840         }
34841
34842 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34843         (void) pthread_setconcurrency(2);
34844 #else
34845 #ifdef HAVE_THR_SETCONCURRENCY
34846         /* Set Solaris LWP concurrency to 2 */
34847         thr_setconcurrency(2);
34848 #endif
34849 #endif
34850
34851 #if HAVE_PTHREADS < 6
34852         pthread_create(&t, pthread_attr_default, task, NULL);
34853 #else
34854         pthread_create(&t, NULL, task, NULL);
34855 #endif
34856
34857         /* make sure task runs first */
34858 #if HAVE_THR_YIELD
34859         thr_yield();
34860 #elif defined( HAVE_SCHED_YIELD )
34861         sched_yield();
34862 #elif defined( HAVE_PTHREAD_YIELD )
34863         pthread_yield();
34864 #endif
34865
34866         exit(2);
34867 }
34868 _ACEOF
34869 rm -f conftest$ac_exeext
34870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34871   (eval $ac_link) 2>&5
34872   ac_status=$?
34873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34876   (eval $ac_try) 2>&5
34877   ac_status=$?
34878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34879   (exit $ac_status); }; }; then
34880   ol_cv_pthread_select_yields=no
34881 else
34882   echo "$as_me: program exited with status $ac_status" >&5
34883 echo "$as_me: failed program was:" >&5
34884 sed 's/^/| /' conftest.$ac_ext >&5
34885
34886 ( exit $ac_status )
34887 ol_cv_pthread_select_yields=yes
34888 fi
34889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34890 fi
34891 fi
34892 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
34893 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
34894
34895                                 if test $ol_cv_pthread_select_yields = cross ; then
34896                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
34897 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
34898    { (exit 1); exit 1; }; }
34899                                 fi
34900
34901                                 if test $ol_cv_pthread_select_yields = yes ; then
34902                                         ol_with_yielding_select=yes
34903                                 fi
34904                         fi
34905
34906                                                 CPPFLAGS="$save_CPPFLAGS"
34907                         LIBS="$save_LIBS"
34908                 else
34909                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
34910 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
34911    { (exit 1); exit 1; }; }
34912                 fi
34913         fi
34914
34915         if test $ol_with_threads = posix ; then
34916                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
34917 echo "$as_me: error: could not locate POSIX Threads" >&2;}
34918    { (exit 1); exit 1; }; }
34919         fi
34920 fi
34921
34922 if test $ol_with_threads = auto -o $ol_with_threads = yes \
34923         -o $ol_with_threads = mach ; then
34924
34925
34926
34927 for ac_header in mach/cthreads.h cthreads.h
34928 do
34929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34931   echo "$as_me:$LINENO: checking for $ac_header" >&5
34932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34934   echo $ECHO_N "(cached) $ECHO_C" >&6
34935 fi
34936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34938 else
34939   # Is the header compilable?
34940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34942 cat >conftest.$ac_ext <<_ACEOF
34943 /* confdefs.h.  */
34944 _ACEOF
34945 cat confdefs.h >>conftest.$ac_ext
34946 cat >>conftest.$ac_ext <<_ACEOF
34947 /* end confdefs.h.  */
34948 $ac_includes_default
34949 #include <$ac_header>
34950 _ACEOF
34951 rm -f conftest.$ac_objext
34952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34953   (eval $ac_compile) 2>conftest.er1
34954   ac_status=$?
34955   grep -v '^ *+' conftest.er1 >conftest.err
34956   rm -f conftest.er1
34957   cat conftest.err >&5
34958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34959   (exit $ac_status); } &&
34960          { ac_try='test -z "$ac_c_werror_flag"
34961                          || test ! -s conftest.err'
34962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34963   (eval $ac_try) 2>&5
34964   ac_status=$?
34965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966   (exit $ac_status); }; } &&
34967          { ac_try='test -s conftest.$ac_objext'
34968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34969   (eval $ac_try) 2>&5
34970   ac_status=$?
34971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34972   (exit $ac_status); }; }; then
34973   ac_header_compiler=yes
34974 else
34975   echo "$as_me: failed program was:" >&5
34976 sed 's/^/| /' conftest.$ac_ext >&5
34977
34978 ac_header_compiler=no
34979 fi
34980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34982 echo "${ECHO_T}$ac_header_compiler" >&6
34983
34984 # Is the header present?
34985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34987 cat >conftest.$ac_ext <<_ACEOF
34988 /* confdefs.h.  */
34989 _ACEOF
34990 cat confdefs.h >>conftest.$ac_ext
34991 cat >>conftest.$ac_ext <<_ACEOF
34992 /* end confdefs.h.  */
34993 #include <$ac_header>
34994 _ACEOF
34995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34997   ac_status=$?
34998   grep -v '^ *+' conftest.er1 >conftest.err
34999   rm -f conftest.er1
35000   cat conftest.err >&5
35001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002   (exit $ac_status); } >/dev/null; then
35003   if test -s conftest.err; then
35004     ac_cpp_err=$ac_c_preproc_warn_flag
35005     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35006   else
35007     ac_cpp_err=
35008   fi
35009 else
35010   ac_cpp_err=yes
35011 fi
35012 if test -z "$ac_cpp_err"; then
35013   ac_header_preproc=yes
35014 else
35015   echo "$as_me: failed program was:" >&5
35016 sed 's/^/| /' conftest.$ac_ext >&5
35017
35018   ac_header_preproc=no
35019 fi
35020 rm -f conftest.err conftest.$ac_ext
35021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35022 echo "${ECHO_T}$ac_header_preproc" >&6
35023
35024 # So?  What about this header?
35025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35026   yes:no: )
35027     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35031     ac_header_preproc=yes
35032     ;;
35033   no:yes:* )
35034     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35036     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35037 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35038     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35040     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35041 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35044     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35046     (
35047       cat <<\_ASBOX
35048 ## ------------------------------------------ ##
35049 ## Report this to the AC_PACKAGE_NAME lists.  ##
35050 ## ------------------------------------------ ##
35051 _ASBOX
35052     ) |
35053       sed "s/^/$as_me: WARNING:     /" >&2
35054     ;;
35055 esac
35056 echo "$as_me:$LINENO: checking for $ac_header" >&5
35057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35059   echo $ECHO_N "(cached) $ECHO_C" >&6
35060 else
35061   eval "$as_ac_Header=\$ac_header_preproc"
35062 fi
35063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35065
35066 fi
35067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35068   cat >>confdefs.h <<_ACEOF
35069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35070 _ACEOF
35071
35072 fi
35073
35074 done
35075
35076         if test $ac_cv_header_mach_cthreads_h = yes ; then
35077                 ol_with_threads=found
35078
35079                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35080 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35081 if test "${ac_cv_func_cthread_fork+set}" = set; then
35082   echo $ECHO_N "(cached) $ECHO_C" >&6
35083 else
35084   cat >conftest.$ac_ext <<_ACEOF
35085 /* confdefs.h.  */
35086 _ACEOF
35087 cat confdefs.h >>conftest.$ac_ext
35088 cat >>conftest.$ac_ext <<_ACEOF
35089 /* end confdefs.h.  */
35090 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35092 #define cthread_fork innocuous_cthread_fork
35093
35094 /* System header to define __stub macros and hopefully few prototypes,
35095     which can conflict with char cthread_fork (); below.
35096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35097     <limits.h> exists even on freestanding compilers.  */
35098
35099 #ifdef __STDC__
35100 # include <limits.h>
35101 #else
35102 # include <assert.h>
35103 #endif
35104
35105 #undef cthread_fork
35106
35107 /* Override any gcc2 internal prototype to avoid an error.  */
35108 #ifdef __cplusplus
35109 extern "C"
35110 {
35111 #endif
35112 /* We use char because int might match the return type of a gcc2
35113    builtin and then its argument prototype would still apply.  */
35114 char cthread_fork ();
35115 /* The GNU C library defines this for functions which it implements
35116     to always fail with ENOSYS.  Some functions are actually named
35117     something starting with __ and the normal name is an alias.  */
35118 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35119 choke me
35120 #else
35121 char (*f) () = cthread_fork;
35122 #endif
35123 #ifdef __cplusplus
35124 }
35125 #endif
35126
35127 int
35128 main ()
35129 {
35130 return f != cthread_fork;
35131   ;
35132   return 0;
35133 }
35134 _ACEOF
35135 rm -f conftest.$ac_objext conftest$ac_exeext
35136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35137   (eval $ac_link) 2>conftest.er1
35138   ac_status=$?
35139   grep -v '^ *+' conftest.er1 >conftest.err
35140   rm -f conftest.er1
35141   cat conftest.err >&5
35142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35143   (exit $ac_status); } &&
35144          { ac_try='test -z "$ac_c_werror_flag"
35145                          || test ! -s conftest.err'
35146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35147   (eval $ac_try) 2>&5
35148   ac_status=$?
35149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35150   (exit $ac_status); }; } &&
35151          { ac_try='test -s conftest$ac_exeext'
35152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35153   (eval $ac_try) 2>&5
35154   ac_status=$?
35155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35156   (exit $ac_status); }; }; then
35157   ac_cv_func_cthread_fork=yes
35158 else
35159   echo "$as_me: failed program was:" >&5
35160 sed 's/^/| /' conftest.$ac_ext >&5
35161
35162 ac_cv_func_cthread_fork=no
35163 fi
35164 rm -f conftest.err conftest.$ac_objext \
35165       conftest$ac_exeext conftest.$ac_ext
35166 fi
35167 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35168 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35169 if test $ac_cv_func_cthread_fork = yes; then
35170   ol_link_threads=yes
35171 fi
35172
35173
35174                 if test $ol_link_threads = no ; then
35175                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35176 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35177 if test "${ol_cv_cthread_all_load+set}" = set; then
35178   echo $ECHO_N "(cached) $ECHO_C" >&6
35179 else
35180
35181                                                                 save_LIBS="$LIBS"
35182                                 LIBS="-all_load $LIBS"
35183                                 cat >conftest.$ac_ext <<_ACEOF
35184 /* confdefs.h.  */
35185 _ACEOF
35186 cat confdefs.h >>conftest.$ac_ext
35187 cat >>conftest.$ac_ext <<_ACEOF
35188 /* end confdefs.h.  */
35189 #include <mach/cthreads.h>
35190 int
35191 main ()
35192 {
35193
35194                                         cthread_fork((void *)0, (void *)0);
35195
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   ol_cv_cthread_all_load=yes
35223 else
35224   echo "$as_me: failed program was:" >&5
35225 sed 's/^/| /' conftest.$ac_ext >&5
35226
35227 ol_cv_cthread_all_load=no
35228 fi
35229 rm -f conftest.err conftest.$ac_objext \
35230       conftest$ac_exeext conftest.$ac_ext
35231                                                                 LIBS="$save_LIBS"
35232
35233 fi
35234 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35235 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35236
35237                         if test $ol_cv_cthread_all_load = yes ; then
35238                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35239                                 ol_link_threads=mach
35240                                 ol_with_threads=found
35241                         fi
35242                 fi
35243
35244         elif test $ac_cv_header_cthreads_h = yes ; then
35245
35246                 ol_with_threads=found
35247
35248                                 save_LIBS="$LIBS"
35249                 LIBS="$LIBS -lthreads"
35250                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35251 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35252 if test "${ac_cv_func_cthread_fork+set}" = set; then
35253   echo $ECHO_N "(cached) $ECHO_C" >&6
35254 else
35255   cat >conftest.$ac_ext <<_ACEOF
35256 /* confdefs.h.  */
35257 _ACEOF
35258 cat confdefs.h >>conftest.$ac_ext
35259 cat >>conftest.$ac_ext <<_ACEOF
35260 /* end confdefs.h.  */
35261 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35263 #define cthread_fork innocuous_cthread_fork
35264
35265 /* System header to define __stub macros and hopefully few prototypes,
35266     which can conflict with char cthread_fork (); below.
35267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35268     <limits.h> exists even on freestanding compilers.  */
35269
35270 #ifdef __STDC__
35271 # include <limits.h>
35272 #else
35273 # include <assert.h>
35274 #endif
35275
35276 #undef cthread_fork
35277
35278 /* Override any gcc2 internal prototype to avoid an error.  */
35279 #ifdef __cplusplus
35280 extern "C"
35281 {
35282 #endif
35283 /* We use char because int might match the return type of a gcc2
35284    builtin and then its argument prototype would still apply.  */
35285 char cthread_fork ();
35286 /* The GNU C library defines this for functions which it implements
35287     to always fail with ENOSYS.  Some functions are actually named
35288     something starting with __ and the normal name is an alias.  */
35289 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35290 choke me
35291 #else
35292 char (*f) () = cthread_fork;
35293 #endif
35294 #ifdef __cplusplus
35295 }
35296 #endif
35297
35298 int
35299 main ()
35300 {
35301 return f != cthread_fork;
35302   ;
35303   return 0;
35304 }
35305 _ACEOF
35306 rm -f conftest.$ac_objext conftest$ac_exeext
35307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35308   (eval $ac_link) 2>conftest.er1
35309   ac_status=$?
35310   grep -v '^ *+' conftest.er1 >conftest.err
35311   rm -f conftest.er1
35312   cat conftest.err >&5
35313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35314   (exit $ac_status); } &&
35315          { ac_try='test -z "$ac_c_werror_flag"
35316                          || test ! -s conftest.err'
35317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35318   (eval $ac_try) 2>&5
35319   ac_status=$?
35320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321   (exit $ac_status); }; } &&
35322          { ac_try='test -s conftest$ac_exeext'
35323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35324   (eval $ac_try) 2>&5
35325   ac_status=$?
35326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35327   (exit $ac_status); }; }; then
35328   ac_cv_func_cthread_fork=yes
35329 else
35330   echo "$as_me: failed program was:" >&5
35331 sed 's/^/| /' conftest.$ac_ext >&5
35332
35333 ac_cv_func_cthread_fork=no
35334 fi
35335 rm -f conftest.err conftest.$ac_objext \
35336       conftest$ac_exeext conftest.$ac_ext
35337 fi
35338 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35339 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35340 if test $ac_cv_func_cthread_fork = yes; then
35341   ol_link_threads=yes
35342 fi
35343
35344                 LIBS="$save_LIBS"
35345
35346                 if test $ol_link_threads = yes ; then
35347                         LTHREAD_LIBS="-lthreads"
35348                         ol_link_threads=mach
35349                         ol_with_threads=found
35350                 else
35351                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35352 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35353    { (exit 1); exit 1; }; }
35354                 fi
35355
35356         elif test $ol_with_threads = mach ; then
35357                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35358 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35359    { (exit 1); exit 1; }; }
35360         fi
35361
35362         if test $ol_link_threads = mach ; then
35363
35364 cat >>confdefs.h <<\_ACEOF
35365 #define HAVE_MACH_CTHREADS 1
35366 _ACEOF
35367
35368         elif test $ol_with_threads = found ; then
35369                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35370 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35371    { (exit 1); exit 1; }; }
35372         fi
35373 fi
35374
35375 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35376         -o $ol_with_threads = pth ; then
35377
35378
35379 for ac_header in pth.h
35380 do
35381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35383   echo "$as_me:$LINENO: checking for $ac_header" >&5
35384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35386   echo $ECHO_N "(cached) $ECHO_C" >&6
35387 fi
35388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35390 else
35391   # Is the header compilable?
35392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35394 cat >conftest.$ac_ext <<_ACEOF
35395 /* confdefs.h.  */
35396 _ACEOF
35397 cat confdefs.h >>conftest.$ac_ext
35398 cat >>conftest.$ac_ext <<_ACEOF
35399 /* end confdefs.h.  */
35400 $ac_includes_default
35401 #include <$ac_header>
35402 _ACEOF
35403 rm -f conftest.$ac_objext
35404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35405   (eval $ac_compile) 2>conftest.er1
35406   ac_status=$?
35407   grep -v '^ *+' conftest.er1 >conftest.err
35408   rm -f conftest.er1
35409   cat conftest.err >&5
35410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35411   (exit $ac_status); } &&
35412          { ac_try='test -z "$ac_c_werror_flag"
35413                          || test ! -s conftest.err'
35414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35415   (eval $ac_try) 2>&5
35416   ac_status=$?
35417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35418   (exit $ac_status); }; } &&
35419          { ac_try='test -s conftest.$ac_objext'
35420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35421   (eval $ac_try) 2>&5
35422   ac_status=$?
35423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35424   (exit $ac_status); }; }; then
35425   ac_header_compiler=yes
35426 else
35427   echo "$as_me: failed program was:" >&5
35428 sed 's/^/| /' conftest.$ac_ext >&5
35429
35430 ac_header_compiler=no
35431 fi
35432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35434 echo "${ECHO_T}$ac_header_compiler" >&6
35435
35436 # Is the header present?
35437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35439 cat >conftest.$ac_ext <<_ACEOF
35440 /* confdefs.h.  */
35441 _ACEOF
35442 cat confdefs.h >>conftest.$ac_ext
35443 cat >>conftest.$ac_ext <<_ACEOF
35444 /* end confdefs.h.  */
35445 #include <$ac_header>
35446 _ACEOF
35447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35448   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35449   ac_status=$?
35450   grep -v '^ *+' conftest.er1 >conftest.err
35451   rm -f conftest.er1
35452   cat conftest.err >&5
35453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35454   (exit $ac_status); } >/dev/null; then
35455   if test -s conftest.err; then
35456     ac_cpp_err=$ac_c_preproc_warn_flag
35457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35458   else
35459     ac_cpp_err=
35460   fi
35461 else
35462   ac_cpp_err=yes
35463 fi
35464 if test -z "$ac_cpp_err"; then
35465   ac_header_preproc=yes
35466 else
35467   echo "$as_me: failed program was:" >&5
35468 sed 's/^/| /' conftest.$ac_ext >&5
35469
35470   ac_header_preproc=no
35471 fi
35472 rm -f conftest.err conftest.$ac_ext
35473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35474 echo "${ECHO_T}$ac_header_preproc" >&6
35475
35476 # So?  What about this header?
35477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35478   yes:no: )
35479     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35483     ac_header_preproc=yes
35484     ;;
35485   no:yes:* )
35486     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35488     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35489 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35490     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35492     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35493 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35496     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35498     (
35499       cat <<\_ASBOX
35500 ## ------------------------------------------ ##
35501 ## Report this to the AC_PACKAGE_NAME lists.  ##
35502 ## ------------------------------------------ ##
35503 _ASBOX
35504     ) |
35505       sed "s/^/$as_me: WARNING:     /" >&2
35506     ;;
35507 esac
35508 echo "$as_me:$LINENO: checking for $ac_header" >&5
35509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35511   echo $ECHO_N "(cached) $ECHO_C" >&6
35512 else
35513   eval "$as_ac_Header=\$ac_header_preproc"
35514 fi
35515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35517
35518 fi
35519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35520   cat >>confdefs.h <<_ACEOF
35521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35522 _ACEOF
35523
35524 fi
35525
35526 done
35527
35528
35529         if test $ac_cv_header_pth_h = yes ; then
35530                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35531 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35532 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35533   echo $ECHO_N "(cached) $ECHO_C" >&6
35534 else
35535   ac_check_lib_save_LIBS=$LIBS
35536 LIBS="-lpth  $LIBS"
35537 cat >conftest.$ac_ext <<_ACEOF
35538 /* confdefs.h.  */
35539 _ACEOF
35540 cat confdefs.h >>conftest.$ac_ext
35541 cat >>conftest.$ac_ext <<_ACEOF
35542 /* end confdefs.h.  */
35543
35544 /* Override any gcc2 internal prototype to avoid an error.  */
35545 #ifdef __cplusplus
35546 extern "C"
35547 #endif
35548 /* We use char because int might match the return type of a gcc2
35549    builtin and then its argument prototype would still apply.  */
35550 char pth_version ();
35551 int
35552 main ()
35553 {
35554 pth_version ();
35555   ;
35556   return 0;
35557 }
35558 _ACEOF
35559 rm -f conftest.$ac_objext conftest$ac_exeext
35560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35561   (eval $ac_link) 2>conftest.er1
35562   ac_status=$?
35563   grep -v '^ *+' conftest.er1 >conftest.err
35564   rm -f conftest.er1
35565   cat conftest.err >&5
35566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35567   (exit $ac_status); } &&
35568          { ac_try='test -z "$ac_c_werror_flag"
35569                          || test ! -s conftest.err'
35570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35571   (eval $ac_try) 2>&5
35572   ac_status=$?
35573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574   (exit $ac_status); }; } &&
35575          { ac_try='test -s conftest$ac_exeext'
35576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35577   (eval $ac_try) 2>&5
35578   ac_status=$?
35579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35580   (exit $ac_status); }; }; then
35581   ac_cv_lib_pth_pth_version=yes
35582 else
35583   echo "$as_me: failed program was:" >&5
35584 sed 's/^/| /' conftest.$ac_ext >&5
35585
35586 ac_cv_lib_pth_pth_version=no
35587 fi
35588 rm -f conftest.err conftest.$ac_objext \
35589       conftest$ac_exeext conftest.$ac_ext
35590 LIBS=$ac_check_lib_save_LIBS
35591 fi
35592 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35593 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35594 if test $ac_cv_lib_pth_pth_version = yes; then
35595   have_pth=yes
35596 else
35597   have_pth=no
35598 fi
35599
35600
35601                 if test $have_pth = yes ; then
35602
35603 cat >>confdefs.h <<\_ACEOF
35604 #define HAVE_GNU_PTH 1
35605 _ACEOF
35606
35607                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35608                         ol_link_threads=pth
35609                         ol_with_threads=found
35610
35611                         if test $ol_with_yielding_select = auto ; then
35612                                 ol_with_yielding_select=yes
35613                         fi
35614                 fi
35615         fi
35616 fi
35617
35618 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35619         -o $ol_with_threads = lwp ; then
35620
35621
35622
35623 for ac_header in thread.h synch.h
35624 do
35625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35627   echo "$as_me:$LINENO: checking for $ac_header" >&5
35628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35630   echo $ECHO_N "(cached) $ECHO_C" >&6
35631 fi
35632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35634 else
35635   # Is the header compilable?
35636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35638 cat >conftest.$ac_ext <<_ACEOF
35639 /* confdefs.h.  */
35640 _ACEOF
35641 cat confdefs.h >>conftest.$ac_ext
35642 cat >>conftest.$ac_ext <<_ACEOF
35643 /* end confdefs.h.  */
35644 $ac_includes_default
35645 #include <$ac_header>
35646 _ACEOF
35647 rm -f conftest.$ac_objext
35648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35649   (eval $ac_compile) 2>conftest.er1
35650   ac_status=$?
35651   grep -v '^ *+' conftest.er1 >conftest.err
35652   rm -f conftest.er1
35653   cat conftest.err >&5
35654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35655   (exit $ac_status); } &&
35656          { ac_try='test -z "$ac_c_werror_flag"
35657                          || test ! -s conftest.err'
35658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35659   (eval $ac_try) 2>&5
35660   ac_status=$?
35661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35662   (exit $ac_status); }; } &&
35663          { ac_try='test -s conftest.$ac_objext'
35664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35665   (eval $ac_try) 2>&5
35666   ac_status=$?
35667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35668   (exit $ac_status); }; }; then
35669   ac_header_compiler=yes
35670 else
35671   echo "$as_me: failed program was:" >&5
35672 sed 's/^/| /' conftest.$ac_ext >&5
35673
35674 ac_header_compiler=no
35675 fi
35676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35678 echo "${ECHO_T}$ac_header_compiler" >&6
35679
35680 # Is the header present?
35681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35683 cat >conftest.$ac_ext <<_ACEOF
35684 /* confdefs.h.  */
35685 _ACEOF
35686 cat confdefs.h >>conftest.$ac_ext
35687 cat >>conftest.$ac_ext <<_ACEOF
35688 /* end confdefs.h.  */
35689 #include <$ac_header>
35690 _ACEOF
35691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35693   ac_status=$?
35694   grep -v '^ *+' conftest.er1 >conftest.err
35695   rm -f conftest.er1
35696   cat conftest.err >&5
35697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698   (exit $ac_status); } >/dev/null; then
35699   if test -s conftest.err; then
35700     ac_cpp_err=$ac_c_preproc_warn_flag
35701     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35702   else
35703     ac_cpp_err=
35704   fi
35705 else
35706   ac_cpp_err=yes
35707 fi
35708 if test -z "$ac_cpp_err"; then
35709   ac_header_preproc=yes
35710 else
35711   echo "$as_me: failed program was:" >&5
35712 sed 's/^/| /' conftest.$ac_ext >&5
35713
35714   ac_header_preproc=no
35715 fi
35716 rm -f conftest.err conftest.$ac_ext
35717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35718 echo "${ECHO_T}$ac_header_preproc" >&6
35719
35720 # So?  What about this header?
35721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35722   yes:no: )
35723     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35727     ac_header_preproc=yes
35728     ;;
35729   no:yes:* )
35730     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35732     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35733 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35734     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35736     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35737 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35740     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35742     (
35743       cat <<\_ASBOX
35744 ## ------------------------------------------ ##
35745 ## Report this to the AC_PACKAGE_NAME lists.  ##
35746 ## ------------------------------------------ ##
35747 _ASBOX
35748     ) |
35749       sed "s/^/$as_me: WARNING:     /" >&2
35750     ;;
35751 esac
35752 echo "$as_me:$LINENO: checking for $ac_header" >&5
35753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35755   echo $ECHO_N "(cached) $ECHO_C" >&6
35756 else
35757   eval "$as_ac_Header=\$ac_header_preproc"
35758 fi
35759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35761
35762 fi
35763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35764   cat >>confdefs.h <<_ACEOF
35765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35766 _ACEOF
35767
35768 fi
35769
35770 done
35771
35772         if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35773                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35774 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35775 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35776   echo $ECHO_N "(cached) $ECHO_C" >&6
35777 else
35778   ac_check_lib_save_LIBS=$LIBS
35779 LIBS="-lthread  $LIBS"
35780 cat >conftest.$ac_ext <<_ACEOF
35781 /* confdefs.h.  */
35782 _ACEOF
35783 cat confdefs.h >>conftest.$ac_ext
35784 cat >>conftest.$ac_ext <<_ACEOF
35785 /* end confdefs.h.  */
35786
35787 /* Override any gcc2 internal prototype to avoid an error.  */
35788 #ifdef __cplusplus
35789 extern "C"
35790 #endif
35791 /* We use char because int might match the return type of a gcc2
35792    builtin and then its argument prototype would still apply.  */
35793 char thr_create ();
35794 int
35795 main ()
35796 {
35797 thr_create ();
35798   ;
35799   return 0;
35800 }
35801 _ACEOF
35802 rm -f conftest.$ac_objext conftest$ac_exeext
35803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35804   (eval $ac_link) 2>conftest.er1
35805   ac_status=$?
35806   grep -v '^ *+' conftest.er1 >conftest.err
35807   rm -f conftest.er1
35808   cat conftest.err >&5
35809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810   (exit $ac_status); } &&
35811          { ac_try='test -z "$ac_c_werror_flag"
35812                          || test ! -s conftest.err'
35813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35814   (eval $ac_try) 2>&5
35815   ac_status=$?
35816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35817   (exit $ac_status); }; } &&
35818          { ac_try='test -s conftest$ac_exeext'
35819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35820   (eval $ac_try) 2>&5
35821   ac_status=$?
35822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35823   (exit $ac_status); }; }; then
35824   ac_cv_lib_thread_thr_create=yes
35825 else
35826   echo "$as_me: failed program was:" >&5
35827 sed 's/^/| /' conftest.$ac_ext >&5
35828
35829 ac_cv_lib_thread_thr_create=no
35830 fi
35831 rm -f conftest.err conftest.$ac_objext \
35832       conftest$ac_exeext conftest.$ac_ext
35833 LIBS=$ac_check_lib_save_LIBS
35834 fi
35835 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35836 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35837 if test $ac_cv_lib_thread_thr_create = yes; then
35838   have_thr=yes
35839 else
35840   have_thr=no
35841 fi
35842
35843
35844                 if test $have_thr = yes ; then
35845
35846 cat >>confdefs.h <<\_ACEOF
35847 #define HAVE_THR 1
35848 _ACEOF
35849
35850                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35851                         ol_link_threads=thr
35852
35853                         if test $ol_with_yielding_select = auto ; then
35854                                 ol_with_yielding_select=yes
35855                         fi
35856
35857
35858
35859 for ac_func in \
35860                                 thr_setconcurrency \
35861                                 thr_getconcurrency \
35862
35863 do
35864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35865 echo "$as_me:$LINENO: checking for $ac_func" >&5
35866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35867 if eval "test \"\${$as_ac_var+set}\" = set"; then
35868   echo $ECHO_N "(cached) $ECHO_C" >&6
35869 else
35870   cat >conftest.$ac_ext <<_ACEOF
35871 /* confdefs.h.  */
35872 _ACEOF
35873 cat confdefs.h >>conftest.$ac_ext
35874 cat >>conftest.$ac_ext <<_ACEOF
35875 /* end confdefs.h.  */
35876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35878 #define $ac_func innocuous_$ac_func
35879
35880 /* System header to define __stub macros and hopefully few prototypes,
35881     which can conflict with char $ac_func (); below.
35882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35883     <limits.h> exists even on freestanding compilers.  */
35884
35885 #ifdef __STDC__
35886 # include <limits.h>
35887 #else
35888 # include <assert.h>
35889 #endif
35890
35891 #undef $ac_func
35892
35893 /* Override any gcc2 internal prototype to avoid an error.  */
35894 #ifdef __cplusplus
35895 extern "C"
35896 {
35897 #endif
35898 /* We use char because int might match the return type of a gcc2
35899    builtin and then its argument prototype would still apply.  */
35900 char $ac_func ();
35901 /* The GNU C library defines this for functions which it implements
35902     to always fail with ENOSYS.  Some functions are actually named
35903     something starting with __ and the normal name is an alias.  */
35904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35905 choke me
35906 #else
35907 char (*f) () = $ac_func;
35908 #endif
35909 #ifdef __cplusplus
35910 }
35911 #endif
35912
35913 int
35914 main ()
35915 {
35916 return f != $ac_func;
35917   ;
35918   return 0;
35919 }
35920 _ACEOF
35921 rm -f conftest.$ac_objext conftest$ac_exeext
35922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35923   (eval $ac_link) 2>conftest.er1
35924   ac_status=$?
35925   grep -v '^ *+' conftest.er1 >conftest.err
35926   rm -f conftest.er1
35927   cat conftest.err >&5
35928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35929   (exit $ac_status); } &&
35930          { ac_try='test -z "$ac_c_werror_flag"
35931                          || test ! -s conftest.err'
35932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35933   (eval $ac_try) 2>&5
35934   ac_status=$?
35935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35936   (exit $ac_status); }; } &&
35937          { ac_try='test -s conftest$ac_exeext'
35938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35939   (eval $ac_try) 2>&5
35940   ac_status=$?
35941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942   (exit $ac_status); }; }; then
35943   eval "$as_ac_var=yes"
35944 else
35945   echo "$as_me: failed program was:" >&5
35946 sed 's/^/| /' conftest.$ac_ext >&5
35947
35948 eval "$as_ac_var=no"
35949 fi
35950 rm -f conftest.err conftest.$ac_objext \
35951       conftest$ac_exeext conftest.$ac_ext
35952 fi
35953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35955 if test `eval echo '${'$as_ac_var'}'` = yes; then
35956   cat >>confdefs.h <<_ACEOF
35957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35958 _ACEOF
35959
35960 fi
35961 done
35962
35963                 fi
35964         fi
35965
35966
35967 for ac_header in lwp/lwp.h
35968 do
35969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35971   echo "$as_me:$LINENO: checking for $ac_header" >&5
35972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35974   echo $ECHO_N "(cached) $ECHO_C" >&6
35975 fi
35976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35978 else
35979   # Is the header compilable?
35980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35982 cat >conftest.$ac_ext <<_ACEOF
35983 /* confdefs.h.  */
35984 _ACEOF
35985 cat confdefs.h >>conftest.$ac_ext
35986 cat >>conftest.$ac_ext <<_ACEOF
35987 /* end confdefs.h.  */
35988 $ac_includes_default
35989 #include <$ac_header>
35990 _ACEOF
35991 rm -f conftest.$ac_objext
35992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35993   (eval $ac_compile) 2>conftest.er1
35994   ac_status=$?
35995   grep -v '^ *+' conftest.er1 >conftest.err
35996   rm -f conftest.er1
35997   cat conftest.err >&5
35998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35999   (exit $ac_status); } &&
36000          { ac_try='test -z "$ac_c_werror_flag"
36001                          || test ! -s conftest.err'
36002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36003   (eval $ac_try) 2>&5
36004   ac_status=$?
36005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36006   (exit $ac_status); }; } &&
36007          { ac_try='test -s conftest.$ac_objext'
36008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36009   (eval $ac_try) 2>&5
36010   ac_status=$?
36011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36012   (exit $ac_status); }; }; then
36013   ac_header_compiler=yes
36014 else
36015   echo "$as_me: failed program was:" >&5
36016 sed 's/^/| /' conftest.$ac_ext >&5
36017
36018 ac_header_compiler=no
36019 fi
36020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36022 echo "${ECHO_T}$ac_header_compiler" >&6
36023
36024 # Is the header present?
36025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36027 cat >conftest.$ac_ext <<_ACEOF
36028 /* confdefs.h.  */
36029 _ACEOF
36030 cat confdefs.h >>conftest.$ac_ext
36031 cat >>conftest.$ac_ext <<_ACEOF
36032 /* end confdefs.h.  */
36033 #include <$ac_header>
36034 _ACEOF
36035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36036   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36037   ac_status=$?
36038   grep -v '^ *+' conftest.er1 >conftest.err
36039   rm -f conftest.er1
36040   cat conftest.err >&5
36041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36042   (exit $ac_status); } >/dev/null; then
36043   if test -s conftest.err; then
36044     ac_cpp_err=$ac_c_preproc_warn_flag
36045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36046   else
36047     ac_cpp_err=
36048   fi
36049 else
36050   ac_cpp_err=yes
36051 fi
36052 if test -z "$ac_cpp_err"; then
36053   ac_header_preproc=yes
36054 else
36055   echo "$as_me: failed program was:" >&5
36056 sed 's/^/| /' conftest.$ac_ext >&5
36057
36058   ac_header_preproc=no
36059 fi
36060 rm -f conftest.err conftest.$ac_ext
36061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36062 echo "${ECHO_T}$ac_header_preproc" >&6
36063
36064 # So?  What about this header?
36065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36066   yes:no: )
36067     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36071     ac_header_preproc=yes
36072     ;;
36073   no:yes:* )
36074     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36076     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36077 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36078     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36080     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36081 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36084     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36086     (
36087       cat <<\_ASBOX
36088 ## ------------------------------------------ ##
36089 ## Report this to the AC_PACKAGE_NAME lists.  ##
36090 ## ------------------------------------------ ##
36091 _ASBOX
36092     ) |
36093       sed "s/^/$as_me: WARNING:     /" >&2
36094     ;;
36095 esac
36096 echo "$as_me:$LINENO: checking for $ac_header" >&5
36097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36099   echo $ECHO_N "(cached) $ECHO_C" >&6
36100 else
36101   eval "$as_ac_Header=\$ac_header_preproc"
36102 fi
36103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36105
36106 fi
36107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36108   cat >>confdefs.h <<_ACEOF
36109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36110 _ACEOF
36111
36112 fi
36113
36114 done
36115
36116         if test $ac_cv_header_lwp_lwp_h = yes ; then
36117                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36118 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36119 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36120   echo $ECHO_N "(cached) $ECHO_C" >&6
36121 else
36122   ac_check_lib_save_LIBS=$LIBS
36123 LIBS="-llwp  $LIBS"
36124 cat >conftest.$ac_ext <<_ACEOF
36125 /* confdefs.h.  */
36126 _ACEOF
36127 cat confdefs.h >>conftest.$ac_ext
36128 cat >>conftest.$ac_ext <<_ACEOF
36129 /* end confdefs.h.  */
36130
36131 /* Override any gcc2 internal prototype to avoid an error.  */
36132 #ifdef __cplusplus
36133 extern "C"
36134 #endif
36135 /* We use char because int might match the return type of a gcc2
36136    builtin and then its argument prototype would still apply.  */
36137 char lwp_create ();
36138 int
36139 main ()
36140 {
36141 lwp_create ();
36142   ;
36143   return 0;
36144 }
36145 _ACEOF
36146 rm -f conftest.$ac_objext conftest$ac_exeext
36147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36148   (eval $ac_link) 2>conftest.er1
36149   ac_status=$?
36150   grep -v '^ *+' conftest.er1 >conftest.err
36151   rm -f conftest.er1
36152   cat conftest.err >&5
36153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36154   (exit $ac_status); } &&
36155          { ac_try='test -z "$ac_c_werror_flag"
36156                          || test ! -s conftest.err'
36157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36158   (eval $ac_try) 2>&5
36159   ac_status=$?
36160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161   (exit $ac_status); }; } &&
36162          { ac_try='test -s conftest$ac_exeext'
36163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36164   (eval $ac_try) 2>&5
36165   ac_status=$?
36166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36167   (exit $ac_status); }; }; then
36168   ac_cv_lib_lwp_lwp_create=yes
36169 else
36170   echo "$as_me: failed program was:" >&5
36171 sed 's/^/| /' conftest.$ac_ext >&5
36172
36173 ac_cv_lib_lwp_lwp_create=no
36174 fi
36175 rm -f conftest.err conftest.$ac_objext \
36176       conftest$ac_exeext conftest.$ac_ext
36177 LIBS=$ac_check_lib_save_LIBS
36178 fi
36179 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36180 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36181 if test $ac_cv_lib_lwp_lwp_create = yes; then
36182   have_lwp=yes
36183 else
36184   have_lwp=no
36185 fi
36186
36187
36188                 if test $have_lwp = yes ; then
36189
36190 cat >>confdefs.h <<\_ACEOF
36191 #define HAVE_LWP 1
36192 _ACEOF
36193
36194                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36195                         ol_link_threads=lwp
36196
36197                         if test $ol_with_yielding_select = auto ; then
36198                                 ol_with_yielding_select=no
36199                         fi
36200                 fi
36201         fi
36202 fi
36203
36204 if test $ol_with_yielding_select = yes ; then
36205
36206 cat >>confdefs.h <<\_ACEOF
36207 #define HAVE_YIELDING_SELECT 1
36208 _ACEOF
36209
36210 fi
36211
36212 if test $ol_with_threads = manual ; then
36213                 ol_link_threads=yes
36214
36215         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36216 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36217
36218
36219
36220 for ac_header in pthread.h sched.h
36221 do
36222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36224   echo "$as_me:$LINENO: checking for $ac_header" >&5
36225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36227   echo $ECHO_N "(cached) $ECHO_C" >&6
36228 fi
36229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36231 else
36232   # Is the header compilable?
36233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36235 cat >conftest.$ac_ext <<_ACEOF
36236 /* confdefs.h.  */
36237 _ACEOF
36238 cat confdefs.h >>conftest.$ac_ext
36239 cat >>conftest.$ac_ext <<_ACEOF
36240 /* end confdefs.h.  */
36241 $ac_includes_default
36242 #include <$ac_header>
36243 _ACEOF
36244 rm -f conftest.$ac_objext
36245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36246   (eval $ac_compile) 2>conftest.er1
36247   ac_status=$?
36248   grep -v '^ *+' conftest.er1 >conftest.err
36249   rm -f conftest.er1
36250   cat conftest.err >&5
36251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36252   (exit $ac_status); } &&
36253          { ac_try='test -z "$ac_c_werror_flag"
36254                          || test ! -s conftest.err'
36255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36256   (eval $ac_try) 2>&5
36257   ac_status=$?
36258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36259   (exit $ac_status); }; } &&
36260          { ac_try='test -s conftest.$ac_objext'
36261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36262   (eval $ac_try) 2>&5
36263   ac_status=$?
36264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36265   (exit $ac_status); }; }; then
36266   ac_header_compiler=yes
36267 else
36268   echo "$as_me: failed program was:" >&5
36269 sed 's/^/| /' conftest.$ac_ext >&5
36270
36271 ac_header_compiler=no
36272 fi
36273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36275 echo "${ECHO_T}$ac_header_compiler" >&6
36276
36277 # Is the header present?
36278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36280 cat >conftest.$ac_ext <<_ACEOF
36281 /* confdefs.h.  */
36282 _ACEOF
36283 cat confdefs.h >>conftest.$ac_ext
36284 cat >>conftest.$ac_ext <<_ACEOF
36285 /* end confdefs.h.  */
36286 #include <$ac_header>
36287 _ACEOF
36288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36290   ac_status=$?
36291   grep -v '^ *+' conftest.er1 >conftest.err
36292   rm -f conftest.er1
36293   cat conftest.err >&5
36294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36295   (exit $ac_status); } >/dev/null; then
36296   if test -s conftest.err; then
36297     ac_cpp_err=$ac_c_preproc_warn_flag
36298     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36299   else
36300     ac_cpp_err=
36301   fi
36302 else
36303   ac_cpp_err=yes
36304 fi
36305 if test -z "$ac_cpp_err"; then
36306   ac_header_preproc=yes
36307 else
36308   echo "$as_me: failed program was:" >&5
36309 sed 's/^/| /' conftest.$ac_ext >&5
36310
36311   ac_header_preproc=no
36312 fi
36313 rm -f conftest.err conftest.$ac_ext
36314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36315 echo "${ECHO_T}$ac_header_preproc" >&6
36316
36317 # So?  What about this header?
36318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36319   yes:no: )
36320     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36322     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36324     ac_header_preproc=yes
36325     ;;
36326   no:yes:* )
36327     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36329     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36330 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36331     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36333     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36334 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36337     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36339     (
36340       cat <<\_ASBOX
36341 ## ------------------------------------------ ##
36342 ## Report this to the AC_PACKAGE_NAME lists.  ##
36343 ## ------------------------------------------ ##
36344 _ASBOX
36345     ) |
36346       sed "s/^/$as_me: WARNING:     /" >&2
36347     ;;
36348 esac
36349 echo "$as_me:$LINENO: checking for $ac_header" >&5
36350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36352   echo $ECHO_N "(cached) $ECHO_C" >&6
36353 else
36354   eval "$as_ac_Header=\$ac_header_preproc"
36355 fi
36356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36358
36359 fi
36360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36361   cat >>confdefs.h <<_ACEOF
36362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36363 _ACEOF
36364
36365 fi
36366
36367 done
36368
36369
36370
36371 for ac_func in sched_yield pthread_yield
36372 do
36373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36374 echo "$as_me:$LINENO: checking for $ac_func" >&5
36375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36376 if eval "test \"\${$as_ac_var+set}\" = set"; then
36377   echo $ECHO_N "(cached) $ECHO_C" >&6
36378 else
36379   cat >conftest.$ac_ext <<_ACEOF
36380 /* confdefs.h.  */
36381 _ACEOF
36382 cat confdefs.h >>conftest.$ac_ext
36383 cat >>conftest.$ac_ext <<_ACEOF
36384 /* end confdefs.h.  */
36385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36387 #define $ac_func innocuous_$ac_func
36388
36389 /* System header to define __stub macros and hopefully few prototypes,
36390     which can conflict with char $ac_func (); below.
36391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36392     <limits.h> exists even on freestanding compilers.  */
36393
36394 #ifdef __STDC__
36395 # include <limits.h>
36396 #else
36397 # include <assert.h>
36398 #endif
36399
36400 #undef $ac_func
36401
36402 /* Override any gcc2 internal prototype to avoid an error.  */
36403 #ifdef __cplusplus
36404 extern "C"
36405 {
36406 #endif
36407 /* We use char because int might match the return type of a gcc2
36408    builtin and then its argument prototype would still apply.  */
36409 char $ac_func ();
36410 /* The GNU C library defines this for functions which it implements
36411     to always fail with ENOSYS.  Some functions are actually named
36412     something starting with __ and the normal name is an alias.  */
36413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36414 choke me
36415 #else
36416 char (*f) () = $ac_func;
36417 #endif
36418 #ifdef __cplusplus
36419 }
36420 #endif
36421
36422 int
36423 main ()
36424 {
36425 return f != $ac_func;
36426   ;
36427   return 0;
36428 }
36429 _ACEOF
36430 rm -f conftest.$ac_objext conftest$ac_exeext
36431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36432   (eval $ac_link) 2>conftest.er1
36433   ac_status=$?
36434   grep -v '^ *+' conftest.er1 >conftest.err
36435   rm -f conftest.er1
36436   cat conftest.err >&5
36437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438   (exit $ac_status); } &&
36439          { ac_try='test -z "$ac_c_werror_flag"
36440                          || test ! -s conftest.err'
36441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36442   (eval $ac_try) 2>&5
36443   ac_status=$?
36444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36445   (exit $ac_status); }; } &&
36446          { ac_try='test -s conftest$ac_exeext'
36447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36448   (eval $ac_try) 2>&5
36449   ac_status=$?
36450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451   (exit $ac_status); }; }; then
36452   eval "$as_ac_var=yes"
36453 else
36454   echo "$as_me: failed program was:" >&5
36455 sed 's/^/| /' conftest.$ac_ext >&5
36456
36457 eval "$as_ac_var=no"
36458 fi
36459 rm -f conftest.err conftest.$ac_objext \
36460       conftest$ac_exeext conftest.$ac_ext
36461 fi
36462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36464 if test `eval echo '${'$as_ac_var'}'` = yes; then
36465   cat >>confdefs.h <<_ACEOF
36466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36467 _ACEOF
36468
36469 fi
36470 done
36471
36472
36473         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36474 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36475 if test "${ol_cv_header_linux_threads+set}" = set; then
36476   echo $ECHO_N "(cached) $ECHO_C" >&6
36477 else
36478   cat >conftest.$ac_ext <<_ACEOF
36479 /* confdefs.h.  */
36480 _ACEOF
36481 cat confdefs.h >>conftest.$ac_ext
36482 cat >>conftest.$ac_ext <<_ACEOF
36483 /* end confdefs.h.  */
36484 #include <pthread.h>
36485 _ACEOF
36486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36487   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36488   ol_cv_header_linux_threads=yes
36489 else
36490   ol_cv_header_linux_threads=no
36491 fi
36492 rm -f conftest*
36493
36494
36495 fi
36496 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36497 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36498         if test $ol_cv_header_linux_threads = yes; then
36499
36500 cat >>confdefs.h <<\_ACEOF
36501 #define HAVE_LINUX_THREADS 1
36502 _ACEOF
36503
36504         fi
36505
36506
36507
36508 for ac_header in mach/cthreads.h
36509 do
36510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
36517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36519 else
36520   # Is the header compilable?
36521 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36523 cat >conftest.$ac_ext <<_ACEOF
36524 /* confdefs.h.  */
36525 _ACEOF
36526 cat confdefs.h >>conftest.$ac_ext
36527 cat >>conftest.$ac_ext <<_ACEOF
36528 /* end confdefs.h.  */
36529 $ac_includes_default
36530 #include <$ac_header>
36531 _ACEOF
36532 rm -f conftest.$ac_objext
36533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36534   (eval $ac_compile) 2>conftest.er1
36535   ac_status=$?
36536   grep -v '^ *+' conftest.er1 >conftest.err
36537   rm -f conftest.er1
36538   cat conftest.err >&5
36539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36540   (exit $ac_status); } &&
36541          { ac_try='test -z "$ac_c_werror_flag"
36542                          || test ! -s conftest.err'
36543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36544   (eval $ac_try) 2>&5
36545   ac_status=$?
36546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547   (exit $ac_status); }; } &&
36548          { ac_try='test -s conftest.$ac_objext'
36549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36550   (eval $ac_try) 2>&5
36551   ac_status=$?
36552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553   (exit $ac_status); }; }; then
36554   ac_header_compiler=yes
36555 else
36556   echo "$as_me: failed program was:" >&5
36557 sed 's/^/| /' conftest.$ac_ext >&5
36558
36559 ac_header_compiler=no
36560 fi
36561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36563 echo "${ECHO_T}$ac_header_compiler" >&6
36564
36565 # Is the header present?
36566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36568 cat >conftest.$ac_ext <<_ACEOF
36569 /* confdefs.h.  */
36570 _ACEOF
36571 cat confdefs.h >>conftest.$ac_ext
36572 cat >>conftest.$ac_ext <<_ACEOF
36573 /* end confdefs.h.  */
36574 #include <$ac_header>
36575 _ACEOF
36576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36577   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36578   ac_status=$?
36579   grep -v '^ *+' conftest.er1 >conftest.err
36580   rm -f conftest.er1
36581   cat conftest.err >&5
36582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36583   (exit $ac_status); } >/dev/null; then
36584   if test -s conftest.err; then
36585     ac_cpp_err=$ac_c_preproc_warn_flag
36586     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36587   else
36588     ac_cpp_err=
36589   fi
36590 else
36591   ac_cpp_err=yes
36592 fi
36593 if test -z "$ac_cpp_err"; then
36594   ac_header_preproc=yes
36595 else
36596   echo "$as_me: failed program was:" >&5
36597 sed 's/^/| /' conftest.$ac_ext >&5
36598
36599   ac_header_preproc=no
36600 fi
36601 rm -f conftest.err conftest.$ac_ext
36602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36603 echo "${ECHO_T}$ac_header_preproc" >&6
36604
36605 # So?  What about this header?
36606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36607   yes:no: )
36608     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36612     ac_header_preproc=yes
36613     ;;
36614   no:yes:* )
36615     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36617     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36618 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36619     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36621     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36622 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36625     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36627     (
36628       cat <<\_ASBOX
36629 ## ------------------------------------------ ##
36630 ## Report this to the AC_PACKAGE_NAME lists.  ##
36631 ## ------------------------------------------ ##
36632 _ASBOX
36633     ) |
36634       sed "s/^/$as_me: WARNING:     /" >&2
36635     ;;
36636 esac
36637 echo "$as_me:$LINENO: checking for $ac_header" >&5
36638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36640   echo $ECHO_N "(cached) $ECHO_C" >&6
36641 else
36642   eval "$as_ac_Header=\$ac_header_preproc"
36643 fi
36644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36646
36647 fi
36648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36649   cat >>confdefs.h <<_ACEOF
36650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36651 _ACEOF
36652
36653 fi
36654
36655 done
36656
36657
36658 for ac_header in lwp/lwp.h
36659 do
36660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
36667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36669 else
36670   # Is the header compilable?
36671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36673 cat >conftest.$ac_ext <<_ACEOF
36674 /* confdefs.h.  */
36675 _ACEOF
36676 cat confdefs.h >>conftest.$ac_ext
36677 cat >>conftest.$ac_ext <<_ACEOF
36678 /* end confdefs.h.  */
36679 $ac_includes_default
36680 #include <$ac_header>
36681 _ACEOF
36682 rm -f conftest.$ac_objext
36683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36684   (eval $ac_compile) 2>conftest.er1
36685   ac_status=$?
36686   grep -v '^ *+' conftest.er1 >conftest.err
36687   rm -f conftest.er1
36688   cat conftest.err >&5
36689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36690   (exit $ac_status); } &&
36691          { ac_try='test -z "$ac_c_werror_flag"
36692                          || test ! -s conftest.err'
36693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36694   (eval $ac_try) 2>&5
36695   ac_status=$?
36696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36697   (exit $ac_status); }; } &&
36698          { ac_try='test -s conftest.$ac_objext'
36699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36700   (eval $ac_try) 2>&5
36701   ac_status=$?
36702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36703   (exit $ac_status); }; }; then
36704   ac_header_compiler=yes
36705 else
36706   echo "$as_me: failed program was:" >&5
36707 sed 's/^/| /' conftest.$ac_ext >&5
36708
36709 ac_header_compiler=no
36710 fi
36711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36713 echo "${ECHO_T}$ac_header_compiler" >&6
36714
36715 # Is the header present?
36716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36718 cat >conftest.$ac_ext <<_ACEOF
36719 /* confdefs.h.  */
36720 _ACEOF
36721 cat confdefs.h >>conftest.$ac_ext
36722 cat >>conftest.$ac_ext <<_ACEOF
36723 /* end confdefs.h.  */
36724 #include <$ac_header>
36725 _ACEOF
36726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36727   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36728   ac_status=$?
36729   grep -v '^ *+' conftest.er1 >conftest.err
36730   rm -f conftest.er1
36731   cat conftest.err >&5
36732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36733   (exit $ac_status); } >/dev/null; then
36734   if test -s conftest.err; then
36735     ac_cpp_err=$ac_c_preproc_warn_flag
36736     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36737   else
36738     ac_cpp_err=
36739   fi
36740 else
36741   ac_cpp_err=yes
36742 fi
36743 if test -z "$ac_cpp_err"; then
36744   ac_header_preproc=yes
36745 else
36746   echo "$as_me: failed program was:" >&5
36747 sed 's/^/| /' conftest.$ac_ext >&5
36748
36749   ac_header_preproc=no
36750 fi
36751 rm -f conftest.err conftest.$ac_ext
36752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36753 echo "${ECHO_T}$ac_header_preproc" >&6
36754
36755 # So?  What about this header?
36756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36757   yes:no: )
36758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36762     ac_header_preproc=yes
36763     ;;
36764   no:yes:* )
36765     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36767     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36768 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36769     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36771     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36772 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36775     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36777     (
36778       cat <<\_ASBOX
36779 ## ------------------------------------------ ##
36780 ## Report this to the AC_PACKAGE_NAME lists.  ##
36781 ## ------------------------------------------ ##
36782 _ASBOX
36783     ) |
36784       sed "s/^/$as_me: WARNING:     /" >&2
36785     ;;
36786 esac
36787 echo "$as_me:$LINENO: checking for $ac_header" >&5
36788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36790   echo $ECHO_N "(cached) $ECHO_C" >&6
36791 else
36792   eval "$as_ac_Header=\$ac_header_preproc"
36793 fi
36794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36796
36797 fi
36798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36799   cat >>confdefs.h <<_ACEOF
36800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36801 _ACEOF
36802
36803 fi
36804
36805 done
36806
36807
36808
36809 for ac_header in thread.h synch.h
36810 do
36811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36813   echo "$as_me:$LINENO: checking for $ac_header" >&5
36814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36816   echo $ECHO_N "(cached) $ECHO_C" >&6
36817 fi
36818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36820 else
36821   # Is the header compilable?
36822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36824 cat >conftest.$ac_ext <<_ACEOF
36825 /* confdefs.h.  */
36826 _ACEOF
36827 cat confdefs.h >>conftest.$ac_ext
36828 cat >>conftest.$ac_ext <<_ACEOF
36829 /* end confdefs.h.  */
36830 $ac_includes_default
36831 #include <$ac_header>
36832 _ACEOF
36833 rm -f conftest.$ac_objext
36834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36835   (eval $ac_compile) 2>conftest.er1
36836   ac_status=$?
36837   grep -v '^ *+' conftest.er1 >conftest.err
36838   rm -f conftest.er1
36839   cat conftest.err >&5
36840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36841   (exit $ac_status); } &&
36842          { ac_try='test -z "$ac_c_werror_flag"
36843                          || test ! -s conftest.err'
36844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36845   (eval $ac_try) 2>&5
36846   ac_status=$?
36847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36848   (exit $ac_status); }; } &&
36849          { ac_try='test -s conftest.$ac_objext'
36850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36851   (eval $ac_try) 2>&5
36852   ac_status=$?
36853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36854   (exit $ac_status); }; }; then
36855   ac_header_compiler=yes
36856 else
36857   echo "$as_me: failed program was:" >&5
36858 sed 's/^/| /' conftest.$ac_ext >&5
36859
36860 ac_header_compiler=no
36861 fi
36862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36864 echo "${ECHO_T}$ac_header_compiler" >&6
36865
36866 # Is the header present?
36867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36869 cat >conftest.$ac_ext <<_ACEOF
36870 /* confdefs.h.  */
36871 _ACEOF
36872 cat confdefs.h >>conftest.$ac_ext
36873 cat >>conftest.$ac_ext <<_ACEOF
36874 /* end confdefs.h.  */
36875 #include <$ac_header>
36876 _ACEOF
36877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36878   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36879   ac_status=$?
36880   grep -v '^ *+' conftest.er1 >conftest.err
36881   rm -f conftest.er1
36882   cat conftest.err >&5
36883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36884   (exit $ac_status); } >/dev/null; then
36885   if test -s conftest.err; then
36886     ac_cpp_err=$ac_c_preproc_warn_flag
36887     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36888   else
36889     ac_cpp_err=
36890   fi
36891 else
36892   ac_cpp_err=yes
36893 fi
36894 if test -z "$ac_cpp_err"; then
36895   ac_header_preproc=yes
36896 else
36897   echo "$as_me: failed program was:" >&5
36898 sed 's/^/| /' conftest.$ac_ext >&5
36899
36900   ac_header_preproc=no
36901 fi
36902 rm -f conftest.err conftest.$ac_ext
36903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36904 echo "${ECHO_T}$ac_header_preproc" >&6
36905
36906 # So?  What about this header?
36907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36908   yes:no: )
36909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36913     ac_header_preproc=yes
36914     ;;
36915   no:yes:* )
36916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36928     (
36929       cat <<\_ASBOX
36930 ## ------------------------------------------ ##
36931 ## Report this to the AC_PACKAGE_NAME lists.  ##
36932 ## ------------------------------------------ ##
36933 _ASBOX
36934     ) |
36935       sed "s/^/$as_me: WARNING:     /" >&2
36936     ;;
36937 esac
36938 echo "$as_me:$LINENO: checking for $ac_header" >&5
36939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36941   echo $ECHO_N "(cached) $ECHO_C" >&6
36942 else
36943   eval "$as_ac_Header=\$ac_header_preproc"
36944 fi
36945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36947
36948 fi
36949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36950   cat >>confdefs.h <<_ACEOF
36951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36952 _ACEOF
36953
36954 fi
36955
36956 done
36957
36958 fi
36959
36960 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
36961                         cat >>confdefs.h <<\_ACEOF
36962 #define REENTRANT 1
36963 _ACEOF
36964
36965         cat >>confdefs.h <<\_ACEOF
36966 #define _REENTRANT 1
36967 _ACEOF
36968
36969         cat >>confdefs.h <<\_ACEOF
36970 #define THREAD_SAFE 1
36971 _ACEOF
36972
36973         cat >>confdefs.h <<\_ACEOF
36974 #define _THREAD_SAFE 1
36975 _ACEOF
36976
36977         cat >>confdefs.h <<\_ACEOF
36978 #define THREADSAFE 1
36979 _ACEOF
36980
36981         cat >>confdefs.h <<\_ACEOF
36982 #define _THREADSAFE 1
36983 _ACEOF
36984
36985         cat >>confdefs.h <<\_ACEOF
36986 #define _SGI_MP_SOURCE 1
36987 _ACEOF
36988
36989
36990                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
36991 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
36992 if test "${ol_cv_errno_thread_specific+set}" = set; then
36993   echo $ECHO_N "(cached) $ECHO_C" >&6
36994 else
36995
36996                 cat >conftest.$ac_ext <<_ACEOF
36997 /* confdefs.h.  */
36998 _ACEOF
36999 cat confdefs.h >>conftest.$ac_ext
37000 cat >>conftest.$ac_ext <<_ACEOF
37001 /* end confdefs.h.  */
37002 #include <errno.h>
37003 int
37004 main ()
37005 {
37006 errno = 0;
37007   ;
37008   return 0;
37009 }
37010 _ACEOF
37011 rm -f conftest.$ac_objext conftest$ac_exeext
37012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37013   (eval $ac_link) 2>conftest.er1
37014   ac_status=$?
37015   grep -v '^ *+' conftest.er1 >conftest.err
37016   rm -f conftest.er1
37017   cat conftest.err >&5
37018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019   (exit $ac_status); } &&
37020          { ac_try='test -z "$ac_c_werror_flag"
37021                          || test ! -s conftest.err'
37022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37023   (eval $ac_try) 2>&5
37024   ac_status=$?
37025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026   (exit $ac_status); }; } &&
37027          { ac_try='test -s conftest$ac_exeext'
37028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37029   (eval $ac_try) 2>&5
37030   ac_status=$?
37031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37032   (exit $ac_status); }; }; then
37033   ol_cv_errno_thread_specific=yes
37034 else
37035   echo "$as_me: failed program was:" >&5
37036 sed 's/^/| /' conftest.$ac_ext >&5
37037
37038 ol_cv_errno_thread_specific=no
37039 fi
37040 rm -f conftest.err conftest.$ac_objext \
37041       conftest$ac_exeext conftest.$ac_ext
37042
37043 fi
37044 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37045 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37046
37047                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37048 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37049 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37050   echo $ECHO_N "(cached) $ECHO_C" >&6
37051 else
37052
37053                 cat >conftest.$ac_ext <<_ACEOF
37054 /* confdefs.h.  */
37055 _ACEOF
37056 cat confdefs.h >>conftest.$ac_ext
37057 cat >>conftest.$ac_ext <<_ACEOF
37058 /* end confdefs.h.  */
37059 #include <netdb.h>
37060 int
37061 main ()
37062 {
37063 h_errno = 0;
37064   ;
37065   return 0;
37066 }
37067 _ACEOF
37068 rm -f conftest.$ac_objext conftest$ac_exeext
37069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37070   (eval $ac_link) 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_exeext'
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   ol_cv_h_errno_thread_specific=yes
37091 else
37092   echo "$as_me: failed program was:" >&5
37093 sed 's/^/| /' conftest.$ac_ext >&5
37094
37095 ol_cv_h_errno_thread_specific=no
37096 fi
37097 rm -f conftest.err conftest.$ac_objext \
37098       conftest$ac_exeext conftest.$ac_ext
37099
37100 fi
37101 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37102 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37103
37104         if test $ol_cv_errno_thread_specific != yes \
37105                 -o $ol_cv_h_errno_thread_specific != yes ; then
37106                 LIBS="$LTHREAD_LIBS $LIBS"
37107                 LTHREAD_LIBS=""
37108         fi
37109
37110 fi
37111
37112 if test $ol_link_threads = no ; then
37113         if test $ol_with_threads = yes ; then
37114                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37115 echo "$as_me: error: no suitable thread support" >&2;}
37116    { (exit 1); exit 1; }; }
37117         fi
37118
37119         if test $ol_with_threads = auto ; then
37120                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37121 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37122                 ol_with_threads=no
37123         fi
37124
37125
37126 cat >>confdefs.h <<\_ACEOF
37127 #define NO_THREADS 1
37128 _ACEOF
37129
37130         LTHREAD_LIBS=""
37131 fi
37132
37133 if test $ol_link_threads != no ; then
37134
37135 cat >>confdefs.h <<\_ACEOF
37136 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37137 _ACEOF
37138
37139 fi
37140
37141
37142
37143
37144 for ac_func in \
37145         ctime_r                 \
37146         gethostbyname_r gethostbyaddr_r \
37147
37148 do
37149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37150 echo "$as_me:$LINENO: checking for $ac_func" >&5
37151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37152 if eval "test \"\${$as_ac_var+set}\" = set"; then
37153   echo $ECHO_N "(cached) $ECHO_C" >&6
37154 else
37155   cat >conftest.$ac_ext <<_ACEOF
37156 /* confdefs.h.  */
37157 _ACEOF
37158 cat confdefs.h >>conftest.$ac_ext
37159 cat >>conftest.$ac_ext <<_ACEOF
37160 /* end confdefs.h.  */
37161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37163 #define $ac_func innocuous_$ac_func
37164
37165 /* System header to define __stub macros and hopefully few prototypes,
37166     which can conflict with char $ac_func (); below.
37167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37168     <limits.h> exists even on freestanding compilers.  */
37169
37170 #ifdef __STDC__
37171 # include <limits.h>
37172 #else
37173 # include <assert.h>
37174 #endif
37175
37176 #undef $ac_func
37177
37178 /* Override any gcc2 internal prototype to avoid an error.  */
37179 #ifdef __cplusplus
37180 extern "C"
37181 {
37182 #endif
37183 /* We use char because int might match the return type of a gcc2
37184    builtin and then its argument prototype would still apply.  */
37185 char $ac_func ();
37186 /* The GNU C library defines this for functions which it implements
37187     to always fail with ENOSYS.  Some functions are actually named
37188     something starting with __ and the normal name is an alias.  */
37189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37190 choke me
37191 #else
37192 char (*f) () = $ac_func;
37193 #endif
37194 #ifdef __cplusplus
37195 }
37196 #endif
37197
37198 int
37199 main ()
37200 {
37201 return f != $ac_func;
37202   ;
37203   return 0;
37204 }
37205 _ACEOF
37206 rm -f conftest.$ac_objext conftest$ac_exeext
37207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37208   (eval $ac_link) 2>conftest.er1
37209   ac_status=$?
37210   grep -v '^ *+' conftest.er1 >conftest.err
37211   rm -f conftest.er1
37212   cat conftest.err >&5
37213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37214   (exit $ac_status); } &&
37215          { ac_try='test -z "$ac_c_werror_flag"
37216                          || test ! -s conftest.err'
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); }; } &&
37222          { ac_try='test -s conftest$ac_exeext'
37223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37224   (eval $ac_try) 2>&5
37225   ac_status=$?
37226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37227   (exit $ac_status); }; }; then
37228   eval "$as_ac_var=yes"
37229 else
37230   echo "$as_me: failed program was:" >&5
37231 sed 's/^/| /' conftest.$ac_ext >&5
37232
37233 eval "$as_ac_var=no"
37234 fi
37235 rm -f conftest.err conftest.$ac_objext \
37236       conftest$ac_exeext conftest.$ac_ext
37237 fi
37238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37240 if test `eval echo '${'$as_ac_var'}'` = yes; then
37241   cat >>confdefs.h <<_ACEOF
37242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37243 _ACEOF
37244
37245 fi
37246 done
37247
37248
37249 if test "$ac_cv_func_ctime_r" = no ; then
37250         ol_cv_func_ctime_r_nargs=0
37251 else
37252         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37253 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37254 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37255   echo $ECHO_N "(cached) $ECHO_C" >&6
37256 else
37257   cat >conftest.$ac_ext <<_ACEOF
37258 /* confdefs.h.  */
37259 _ACEOF
37260 cat confdefs.h >>conftest.$ac_ext
37261 cat >>conftest.$ac_ext <<_ACEOF
37262 /* end confdefs.h.  */
37263 #include <time.h>
37264 int
37265 main ()
37266 {
37267 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37268   ;
37269   return 0;
37270 }
37271 _ACEOF
37272 rm -f conftest.$ac_objext
37273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37274   (eval $ac_compile) 2>conftest.er1
37275   ac_status=$?
37276   grep -v '^ *+' conftest.er1 >conftest.err
37277   rm -f conftest.er1
37278   cat conftest.err >&5
37279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280   (exit $ac_status); } &&
37281          { ac_try='test -z "$ac_c_werror_flag"
37282                          || test ! -s conftest.err'
37283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37284   (eval $ac_try) 2>&5
37285   ac_status=$?
37286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37287   (exit $ac_status); }; } &&
37288          { ac_try='test -s conftest.$ac_objext'
37289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37290   (eval $ac_try) 2>&5
37291   ac_status=$?
37292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293   (exit $ac_status); }; }; then
37294   ol_cv_func_ctime_r_nargs3=yes
37295 else
37296   echo "$as_me: failed program was:" >&5
37297 sed 's/^/| /' conftest.$ac_ext >&5
37298
37299 ol_cv_func_ctime_r_nargs3=no
37300 fi
37301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37302
37303         cat >conftest.$ac_ext <<_ACEOF
37304 /* confdefs.h.  */
37305 _ACEOF
37306 cat confdefs.h >>conftest.$ac_ext
37307 cat >>conftest.$ac_ext <<_ACEOF
37308 /* end confdefs.h.  */
37309 #include <time.h>
37310 int
37311 main ()
37312 {
37313 time_t ti; char *buffer; ctime_r(&ti,buffer);
37314   ;
37315   return 0;
37316 }
37317 _ACEOF
37318 rm -f conftest.$ac_objext
37319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37320   (eval $ac_compile) 2>conftest.er1
37321   ac_status=$?
37322   grep -v '^ *+' conftest.er1 >conftest.err
37323   rm -f conftest.er1
37324   cat conftest.err >&5
37325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326   (exit $ac_status); } &&
37327          { ac_try='test -z "$ac_c_werror_flag"
37328                          || test ! -s conftest.err'
37329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37330   (eval $ac_try) 2>&5
37331   ac_status=$?
37332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37333   (exit $ac_status); }; } &&
37334          { ac_try='test -s conftest.$ac_objext'
37335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37336   (eval $ac_try) 2>&5
37337   ac_status=$?
37338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339   (exit $ac_status); }; }; then
37340   ol_cv_func_ctime_r_nargs2=yes
37341 else
37342   echo "$as_me: failed program was:" >&5
37343 sed 's/^/| /' conftest.$ac_ext >&5
37344
37345 ol_cv_func_ctime_r_nargs2=no
37346 fi
37347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37348
37349         if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37350                 $ol_cv_func_ctime_r_nargs2 = no ; then
37351
37352                 ol_cv_func_ctime_r_nargs=3
37353
37354         elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37355                 $ol_cv_func_ctime_r_nargs2 = yes ; then
37356
37357                 ol_cv_func_ctime_r_nargs=2
37358
37359         else
37360                 ol_cv_func_ctime_r_nargs=0
37361         fi
37362
37363 fi
37364 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37365 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37366
37367   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37368
37369 cat >>confdefs.h <<_ACEOF
37370 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37371 _ACEOF
37372
37373   fi
37374
37375 fi
37376
37377 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37378         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37379 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37380 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37381   echo $ECHO_N "(cached) $ECHO_C" >&6
37382 else
37383   cat >conftest.$ac_ext <<_ACEOF
37384 /* confdefs.h.  */
37385 _ACEOF
37386 cat confdefs.h >>conftest.$ac_ext
37387 cat >>conftest.$ac_ext <<_ACEOF
37388 /* end confdefs.h.  */
37389 #include <sys/types.h>
37390 #include <sys/socket.h>
37391 #include <netinet/in.h>
37392 #include <netdb.h>
37393 #define BUFSIZE (sizeof(struct hostent)+10)
37394 int
37395 main ()
37396 {
37397 struct hostent hent; char buffer[BUFSIZE];
37398                 int bufsize=BUFSIZE;int h_errno;
37399                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37400                         buffer, bufsize, &h_errno);
37401   ;
37402   return 0;
37403 }
37404 _ACEOF
37405 rm -f conftest.$ac_objext
37406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37407   (eval $ac_compile) 2>conftest.er1
37408   ac_status=$?
37409   grep -v '^ *+' conftest.er1 >conftest.err
37410   rm -f conftest.er1
37411   cat conftest.err >&5
37412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37413   (exit $ac_status); } &&
37414          { ac_try='test -z "$ac_c_werror_flag"
37415                          || test ! -s conftest.err'
37416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37417   (eval $ac_try) 2>&5
37418   ac_status=$?
37419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37420   (exit $ac_status); }; } &&
37421          { ac_try='test -s conftest.$ac_objext'
37422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37423   (eval $ac_try) 2>&5
37424   ac_status=$?
37425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37426   (exit $ac_status); }; }; then
37427   ol_cv_func_gethostbyname_r_nargs5=yes
37428 else
37429   echo "$as_me: failed program was:" >&5
37430 sed 's/^/| /' conftest.$ac_ext >&5
37431
37432 ol_cv_func_gethostbyname_r_nargs5=no
37433 fi
37434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37435
37436         cat >conftest.$ac_ext <<_ACEOF
37437 /* confdefs.h.  */
37438 _ACEOF
37439 cat confdefs.h >>conftest.$ac_ext
37440 cat >>conftest.$ac_ext <<_ACEOF
37441 /* end confdefs.h.  */
37442 #include <sys/types.h>
37443 #include <sys/socket.h>
37444 #include <netinet/in.h>
37445 #include <netdb.h>
37446 #define BUFSIZE (sizeof(struct hostent)+10)
37447 int
37448 main ()
37449 {
37450 struct hostent hent;struct hostent *rhent;
37451                 char buffer[BUFSIZE];
37452                 int bufsize=BUFSIZE;int h_errno;
37453                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37454                         &rhent, &h_errno);
37455   ;
37456   return 0;
37457 }
37458 _ACEOF
37459 rm -f conftest.$ac_objext
37460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37461   (eval $ac_compile) 2>conftest.er1
37462   ac_status=$?
37463   grep -v '^ *+' conftest.er1 >conftest.err
37464   rm -f conftest.er1
37465   cat conftest.err >&5
37466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37467   (exit $ac_status); } &&
37468          { ac_try='test -z "$ac_c_werror_flag"
37469                          || test ! -s conftest.err'
37470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37471   (eval $ac_try) 2>&5
37472   ac_status=$?
37473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37474   (exit $ac_status); }; } &&
37475          { ac_try='test -s conftest.$ac_objext'
37476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37477   (eval $ac_try) 2>&5
37478   ac_status=$?
37479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480   (exit $ac_status); }; }; then
37481   ol_cv_func_gethostbyname_r_nargs6=yes
37482 else
37483   echo "$as_me: failed program was:" >&5
37484 sed 's/^/| /' conftest.$ac_ext >&5
37485
37486 ol_cv_func_gethostbyname_r_nargs6=no
37487 fi
37488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37489
37490         if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37491                 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37492
37493                 ol_cv_func_gethostbyname_r_nargs=5
37494
37495         elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37496                 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37497
37498                 ol_cv_func_gethostbyname_r_nargs=6
37499
37500         else
37501                 ol_cv_func_gethostbyname_r_nargs=0
37502         fi
37503
37504 fi
37505 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37506 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37507   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37508
37509 cat >>confdefs.h <<_ACEOF
37510 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37511 _ACEOF
37512
37513   fi
37514
37515 else
37516         ol_cv_func_gethostbyname_r_nargs=0
37517 fi
37518
37519 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37520         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37521 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37522 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37523   echo $ECHO_N "(cached) $ECHO_C" >&6
37524 else
37525   cat >conftest.$ac_ext <<_ACEOF
37526 /* confdefs.h.  */
37527 _ACEOF
37528 cat confdefs.h >>conftest.$ac_ext
37529 cat >>conftest.$ac_ext <<_ACEOF
37530 /* end confdefs.h.  */
37531 #include <sys/types.h>
37532 #include <sys/socket.h>
37533 #include <netinet/in.h>
37534 #include <netdb.h>
37535 #define BUFSIZE (sizeof(struct hostent)+10)
37536 int
37537 main ()
37538 {
37539 struct hostent hent; char buffer[BUFSIZE];
37540             struct in_addr add;
37541             size_t alen=sizeof(struct in_addr);
37542             int bufsize=BUFSIZE;int h_errno;
37543                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37544                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37545   ;
37546   return 0;
37547 }
37548 _ACEOF
37549 rm -f conftest.$ac_objext
37550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37551   (eval $ac_compile) 2>conftest.er1
37552   ac_status=$?
37553   grep -v '^ *+' conftest.er1 >conftest.err
37554   rm -f conftest.er1
37555   cat conftest.err >&5
37556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557   (exit $ac_status); } &&
37558          { ac_try='test -z "$ac_c_werror_flag"
37559                          || test ! -s conftest.err'
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); }; } &&
37565          { ac_try='test -s conftest.$ac_objext'
37566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37567   (eval $ac_try) 2>&5
37568   ac_status=$?
37569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37570   (exit $ac_status); }; }; then
37571   ol_cv_func_gethostbyaddr_r_nargs7=yes
37572 else
37573   echo "$as_me: failed program was:" >&5
37574 sed 's/^/| /' conftest.$ac_ext >&5
37575
37576 ol_cv_func_gethostbyaddr_r_nargs7=no
37577 fi
37578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37579
37580         cat >conftest.$ac_ext <<_ACEOF
37581 /* confdefs.h.  */
37582 _ACEOF
37583 cat confdefs.h >>conftest.$ac_ext
37584 cat >>conftest.$ac_ext <<_ACEOF
37585 /* end confdefs.h.  */
37586 #include <sys/types.h>
37587 #include <sys/socket.h>
37588 #include <netinet/in.h>
37589 #include <netdb.h>
37590 #define BUFSIZE (sizeof(struct hostent)+10)
37591 int
37592 main ()
37593 {
37594 struct hostent hent;
37595                 struct hostent *rhent; char buffer[BUFSIZE];
37596                 struct in_addr add;
37597                 size_t alen=sizeof(struct in_addr);
37598                 int bufsize=BUFSIZE;int h_errno;
37599                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37600                         alen, AF_INET, &hent, buffer, bufsize,
37601                         &rhent, &h_errno);
37602   ;
37603   return 0;
37604 }
37605 _ACEOF
37606 rm -f conftest.$ac_objext
37607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37608   (eval $ac_compile) 2>conftest.er1
37609   ac_status=$?
37610   grep -v '^ *+' conftest.er1 >conftest.err
37611   rm -f conftest.er1
37612   cat conftest.err >&5
37613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37614   (exit $ac_status); } &&
37615          { ac_try='test -z "$ac_c_werror_flag"
37616                          || test ! -s conftest.err'
37617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37618   (eval $ac_try) 2>&5
37619   ac_status=$?
37620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37621   (exit $ac_status); }; } &&
37622          { ac_try='test -s conftest.$ac_objext'
37623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37624   (eval $ac_try) 2>&5
37625   ac_status=$?
37626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627   (exit $ac_status); }; }; then
37628   ol_cv_func_gethostbyaddr_r_nargs8=yes
37629 else
37630   echo "$as_me: failed program was:" >&5
37631 sed 's/^/| /' conftest.$ac_ext >&5
37632
37633 ol_cv_func_gethostbyaddr_r_nargs8=no
37634 fi
37635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37636
37637         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37638                 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37639
37640                 ol_cv_func_gethostbyaddr_r_nargs=7
37641
37642         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37643                 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37644
37645                 ol_cv_func_gethostbyaddr_r_nargs=8
37646
37647         else
37648                 ol_cv_func_gethostbyaddr_r_nargs=0
37649         fi
37650
37651 fi
37652 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37653 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37654   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37655
37656 cat >>confdefs.h <<_ACEOF
37657 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37658 _ACEOF
37659
37660   fi
37661
37662 else
37663         ol_cv_func_gethostbyaddr_r_nargs=0
37664 fi
37665
37666 ol_link_ldbm=no
37667
37668 if test $ol_with_ldbm_api = auto \
37669         -o $ol_with_ldbm_api = berkeley \
37670         -o $ol_with_ldbm_api = bcompat ; then
37671
37672         if test $ol_with_ldbm_api = bcompat; then \
37673
37674
37675 for ac_header in db_185.h db.h
37676 do
37677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37679   echo "$as_me:$LINENO: checking for $ac_header" >&5
37680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37682   echo $ECHO_N "(cached) $ECHO_C" >&6
37683 fi
37684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37686 else
37687   # Is the header compilable?
37688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37690 cat >conftest.$ac_ext <<_ACEOF
37691 /* confdefs.h.  */
37692 _ACEOF
37693 cat confdefs.h >>conftest.$ac_ext
37694 cat >>conftest.$ac_ext <<_ACEOF
37695 /* end confdefs.h.  */
37696 $ac_includes_default
37697 #include <$ac_header>
37698 _ACEOF
37699 rm -f conftest.$ac_objext
37700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37701   (eval $ac_compile) 2>conftest.er1
37702   ac_status=$?
37703   grep -v '^ *+' conftest.er1 >conftest.err
37704   rm -f conftest.er1
37705   cat conftest.err >&5
37706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37707   (exit $ac_status); } &&
37708          { ac_try='test -z "$ac_c_werror_flag"
37709                          || test ! -s conftest.err'
37710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37711   (eval $ac_try) 2>&5
37712   ac_status=$?
37713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37714   (exit $ac_status); }; } &&
37715          { ac_try='test -s conftest.$ac_objext'
37716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37717   (eval $ac_try) 2>&5
37718   ac_status=$?
37719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37720   (exit $ac_status); }; }; then
37721   ac_header_compiler=yes
37722 else
37723   echo "$as_me: failed program was:" >&5
37724 sed 's/^/| /' conftest.$ac_ext >&5
37725
37726 ac_header_compiler=no
37727 fi
37728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37730 echo "${ECHO_T}$ac_header_compiler" >&6
37731
37732 # Is the header present?
37733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37735 cat >conftest.$ac_ext <<_ACEOF
37736 /* confdefs.h.  */
37737 _ACEOF
37738 cat confdefs.h >>conftest.$ac_ext
37739 cat >>conftest.$ac_ext <<_ACEOF
37740 /* end confdefs.h.  */
37741 #include <$ac_header>
37742 _ACEOF
37743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37744   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37745   ac_status=$?
37746   grep -v '^ *+' conftest.er1 >conftest.err
37747   rm -f conftest.er1
37748   cat conftest.err >&5
37749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37750   (exit $ac_status); } >/dev/null; then
37751   if test -s conftest.err; then
37752     ac_cpp_err=$ac_c_preproc_warn_flag
37753     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37754   else
37755     ac_cpp_err=
37756   fi
37757 else
37758   ac_cpp_err=yes
37759 fi
37760 if test -z "$ac_cpp_err"; then
37761   ac_header_preproc=yes
37762 else
37763   echo "$as_me: failed program was:" >&5
37764 sed 's/^/| /' conftest.$ac_ext >&5
37765
37766   ac_header_preproc=no
37767 fi
37768 rm -f conftest.err conftest.$ac_ext
37769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37770 echo "${ECHO_T}$ac_header_preproc" >&6
37771
37772 # So?  What about this header?
37773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37774   yes:no: )
37775     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37779     ac_header_preproc=yes
37780     ;;
37781   no:yes:* )
37782     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37784     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37785 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37786     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37788     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37789 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37792     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37794     (
37795       cat <<\_ASBOX
37796 ## ------------------------------------------ ##
37797 ## Report this to the AC_PACKAGE_NAME lists.  ##
37798 ## ------------------------------------------ ##
37799 _ASBOX
37800     ) |
37801       sed "s/^/$as_me: WARNING:     /" >&2
37802     ;;
37803 esac
37804 echo "$as_me:$LINENO: checking for $ac_header" >&5
37805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37807   echo $ECHO_N "(cached) $ECHO_C" >&6
37808 else
37809   eval "$as_ac_Header=\$ac_header_preproc"
37810 fi
37811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37813
37814 fi
37815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37816   cat >>confdefs.h <<_ACEOF
37817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37818 _ACEOF
37819
37820 fi
37821
37822 done
37823
37824 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37825         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37826 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37827 if test "${ol_cv_header_db1+set}" = set; then
37828   echo $ECHO_N "(cached) $ECHO_C" >&6
37829 else
37830
37831                 cat >conftest.$ac_ext <<_ACEOF
37832 /* confdefs.h.  */
37833 _ACEOF
37834 cat confdefs.h >>conftest.$ac_ext
37835 cat >>conftest.$ac_ext <<_ACEOF
37836 /* end confdefs.h.  */
37837
37838 #if HAVE_DB_185_H
37839 #       include <db_185.h>
37840 #else
37841 #       include <db.h>
37842 #endif
37843
37844  /* this check could be improved */
37845 #ifndef DB_VERSION_MAJOR
37846 #       define DB_VERSION_MAJOR 1
37847 #endif
37848
37849 #if DB_VERSION_MAJOR == 1
37850         __db_version_1
37851 #endif
37852
37853 _ACEOF
37854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37855   $EGREP "__db_version_1" >/dev/null 2>&1; then
37856   ol_cv_header_db1=yes
37857 else
37858   ol_cv_header_db1=no
37859 fi
37860 rm -f conftest*
37861
37862 fi
37863 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37864 echo "${ECHO_T}$ol_cv_header_db1" >&6
37865
37866         if test $ol_cv_header_db1 = yes ; then
37867                 ol_cv_lib_db=no
37868 if test $ol_cv_lib_db = no ; then
37869         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37870 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37871 if test "${ol_cv_db_none+set}" = set; then
37872   echo $ECHO_N "(cached) $ECHO_C" >&6
37873 else
37874
37875         ol_DB_LIB=
37876         ol_LIBS=$LIBS
37877         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37878
37879         cat >conftest.$ac_ext <<_ACEOF
37880 /* confdefs.h.  */
37881 _ACEOF
37882 cat confdefs.h >>conftest.$ac_ext
37883 cat >>conftest.$ac_ext <<_ACEOF
37884 /* end confdefs.h.  */
37885
37886 #ifdef HAVE_DB_185_H
37887 # include <db_185.h>
37888 #else
37889 # include <db.h>
37890 #endif
37891
37892 #ifndef DB_VERSION_MAJOR
37893 # define DB_VERSION_MAJOR 1
37894 #endif
37895
37896 #ifndef NULL
37897 #define NULL ((void*)0)
37898 #endif
37899
37900 int
37901 main ()
37902 {
37903
37904 #if DB_VERSION_MAJOR > 1
37905         {
37906                 char *version;
37907                 int major, minor, patch;
37908
37909                 version = db_version( &major, &minor, &patch );
37910
37911                 if( major != DB_VERSION_MAJOR ||
37912                         minor < DB_VERSION_MINOR )
37913                 {
37914                         printf("Berkeley DB version mismatch\n"
37915                                 "\theader: %s\n\tlibrary: %s\n",
37916                                 DB_VERSION_STRING, version);
37917                         return 1;
37918                 }
37919         }
37920 #endif
37921
37922 #if DB_VERSION_MAJOR > 2
37923         db_env_create( NULL, 0 );
37924 #elif DB_VERSION_MAJOR > 1
37925         db_appexit( NULL );
37926 #else
37927         (void) dbopen( NULL, 0, 0, 0, NULL);
37928 #endif
37929
37930   ;
37931   return 0;
37932 }
37933 _ACEOF
37934 rm -f conftest.$ac_objext conftest$ac_exeext
37935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37936   (eval $ac_link) 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_exeext'
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   ol_cv_db_none=yes
37957 else
37958   echo "$as_me: failed program was:" >&5
37959 sed 's/^/| /' conftest.$ac_ext >&5
37960
37961 ol_cv_db_none=no
37962 fi
37963 rm -f conftest.err conftest.$ac_objext \
37964       conftest$ac_exeext conftest.$ac_ext
37965
37966         LIBS="$ol_LIBS"
37967
37968 fi
37969 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
37970 echo "${ECHO_T}$ol_cv_db_none" >&6
37971
37972         if test $ol_cv_db_none = yes ; then
37973                 ol_cv_lib_db=yes
37974         fi
37975 fi
37976
37977 if test $ol_cv_lib_db = no ; then
37978         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
37979 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
37980 if test "${ol_cv_db_db43+set}" = set; then
37981   echo $ECHO_N "(cached) $ECHO_C" >&6
37982 else
37983
37984         ol_DB_LIB=-ldb43
37985         ol_LIBS=$LIBS
37986         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37987
37988         cat >conftest.$ac_ext <<_ACEOF
37989 /* confdefs.h.  */
37990 _ACEOF
37991 cat confdefs.h >>conftest.$ac_ext
37992 cat >>conftest.$ac_ext <<_ACEOF
37993 /* end confdefs.h.  */
37994
37995 #ifdef HAVE_DB_185_H
37996 # include <db_185.h>
37997 #else
37998 # include <db.h>
37999 #endif
38000
38001 #ifndef DB_VERSION_MAJOR
38002 # define DB_VERSION_MAJOR 1
38003 #endif
38004
38005 #ifndef NULL
38006 #define NULL ((void*)0)
38007 #endif
38008
38009 int
38010 main ()
38011 {
38012
38013 #if DB_VERSION_MAJOR > 1
38014         {
38015                 char *version;
38016                 int major, minor, patch;
38017
38018                 version = db_version( &major, &minor, &patch );
38019
38020                 if( major != DB_VERSION_MAJOR ||
38021                         minor < DB_VERSION_MINOR )
38022                 {
38023                         printf("Berkeley DB version mismatch\n"
38024                                 "\theader: %s\n\tlibrary: %s\n",
38025                                 DB_VERSION_STRING, version);
38026                         return 1;
38027                 }
38028         }
38029 #endif
38030
38031 #if DB_VERSION_MAJOR > 2
38032         db_env_create( NULL, 0 );
38033 #elif DB_VERSION_MAJOR > 1
38034         db_appexit( NULL );
38035 #else
38036         (void) dbopen( NULL, 0, 0, 0, NULL);
38037 #endif
38038
38039   ;
38040   return 0;
38041 }
38042 _ACEOF
38043 rm -f conftest.$ac_objext conftest$ac_exeext
38044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38045   (eval $ac_link) 2>conftest.er1
38046   ac_status=$?
38047   grep -v '^ *+' conftest.er1 >conftest.err
38048   rm -f conftest.er1
38049   cat conftest.err >&5
38050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38051   (exit $ac_status); } &&
38052          { ac_try='test -z "$ac_c_werror_flag"
38053                          || test ! -s conftest.err'
38054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38055   (eval $ac_try) 2>&5
38056   ac_status=$?
38057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38058   (exit $ac_status); }; } &&
38059          { ac_try='test -s conftest$ac_exeext'
38060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38061   (eval $ac_try) 2>&5
38062   ac_status=$?
38063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38064   (exit $ac_status); }; }; then
38065   ol_cv_db_db43=yes
38066 else
38067   echo "$as_me: failed program was:" >&5
38068 sed 's/^/| /' conftest.$ac_ext >&5
38069
38070 ol_cv_db_db43=no
38071 fi
38072 rm -f conftest.err conftest.$ac_objext \
38073       conftest$ac_exeext conftest.$ac_ext
38074
38075         LIBS="$ol_LIBS"
38076
38077 fi
38078 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38079 echo "${ECHO_T}$ol_cv_db_db43" >&6
38080
38081         if test $ol_cv_db_db43 = yes ; then
38082                 ol_cv_lib_db=-ldb43
38083         fi
38084 fi
38085
38086 if test $ol_cv_lib_db = no ; then
38087         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38088 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38089 if test "${ol_cv_db_db_43+set}" = set; then
38090   echo $ECHO_N "(cached) $ECHO_C" >&6
38091 else
38092
38093         ol_DB_LIB=-ldb-43
38094         ol_LIBS=$LIBS
38095         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38096
38097         cat >conftest.$ac_ext <<_ACEOF
38098 /* confdefs.h.  */
38099 _ACEOF
38100 cat confdefs.h >>conftest.$ac_ext
38101 cat >>conftest.$ac_ext <<_ACEOF
38102 /* end confdefs.h.  */
38103
38104 #ifdef HAVE_DB_185_H
38105 # include <db_185.h>
38106 #else
38107 # include <db.h>
38108 #endif
38109
38110 #ifndef DB_VERSION_MAJOR
38111 # define DB_VERSION_MAJOR 1
38112 #endif
38113
38114 #ifndef NULL
38115 #define NULL ((void*)0)
38116 #endif
38117
38118 int
38119 main ()
38120 {
38121
38122 #if DB_VERSION_MAJOR > 1
38123         {
38124                 char *version;
38125                 int major, minor, patch;
38126
38127                 version = db_version( &major, &minor, &patch );
38128
38129                 if( major != DB_VERSION_MAJOR ||
38130                         minor < DB_VERSION_MINOR )
38131                 {
38132                         printf("Berkeley DB version mismatch\n"
38133                                 "\theader: %s\n\tlibrary: %s\n",
38134                                 DB_VERSION_STRING, version);
38135                         return 1;
38136                 }
38137         }
38138 #endif
38139
38140 #if DB_VERSION_MAJOR > 2
38141         db_env_create( NULL, 0 );
38142 #elif DB_VERSION_MAJOR > 1
38143         db_appexit( NULL );
38144 #else
38145         (void) dbopen( NULL, 0, 0, 0, NULL);
38146 #endif
38147
38148   ;
38149   return 0;
38150 }
38151 _ACEOF
38152 rm -f conftest.$ac_objext conftest$ac_exeext
38153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38154   (eval $ac_link) 2>conftest.er1
38155   ac_status=$?
38156   grep -v '^ *+' conftest.er1 >conftest.err
38157   rm -f conftest.er1
38158   cat conftest.err >&5
38159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38160   (exit $ac_status); } &&
38161          { ac_try='test -z "$ac_c_werror_flag"
38162                          || test ! -s conftest.err'
38163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38164   (eval $ac_try) 2>&5
38165   ac_status=$?
38166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38167   (exit $ac_status); }; } &&
38168          { ac_try='test -s conftest$ac_exeext'
38169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38170   (eval $ac_try) 2>&5
38171   ac_status=$?
38172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38173   (exit $ac_status); }; }; then
38174   ol_cv_db_db_43=yes
38175 else
38176   echo "$as_me: failed program was:" >&5
38177 sed 's/^/| /' conftest.$ac_ext >&5
38178
38179 ol_cv_db_db_43=no
38180 fi
38181 rm -f conftest.err conftest.$ac_objext \
38182       conftest$ac_exeext conftest.$ac_ext
38183
38184         LIBS="$ol_LIBS"
38185
38186 fi
38187 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38188 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38189
38190         if test $ol_cv_db_db_43 = yes ; then
38191                 ol_cv_lib_db=-ldb-43
38192         fi
38193 fi
38194
38195 if test $ol_cv_lib_db = no ; then
38196         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38197 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38198 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38199   echo $ECHO_N "(cached) $ECHO_C" >&6
38200 else
38201
38202         ol_DB_LIB=-ldb-4.3
38203         ol_LIBS=$LIBS
38204         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38205
38206         cat >conftest.$ac_ext <<_ACEOF
38207 /* confdefs.h.  */
38208 _ACEOF
38209 cat confdefs.h >>conftest.$ac_ext
38210 cat >>conftest.$ac_ext <<_ACEOF
38211 /* end confdefs.h.  */
38212
38213 #ifdef HAVE_DB_185_H
38214 # include <db_185.h>
38215 #else
38216 # include <db.h>
38217 #endif
38218
38219 #ifndef DB_VERSION_MAJOR
38220 # define DB_VERSION_MAJOR 1
38221 #endif
38222
38223 #ifndef NULL
38224 #define NULL ((void*)0)
38225 #endif
38226
38227 int
38228 main ()
38229 {
38230
38231 #if DB_VERSION_MAJOR > 1
38232         {
38233                 char *version;
38234                 int major, minor, patch;
38235
38236                 version = db_version( &major, &minor, &patch );
38237
38238                 if( major != DB_VERSION_MAJOR ||
38239                         minor < DB_VERSION_MINOR )
38240                 {
38241                         printf("Berkeley DB version mismatch\n"
38242                                 "\theader: %s\n\tlibrary: %s\n",
38243                                 DB_VERSION_STRING, version);
38244                         return 1;
38245                 }
38246         }
38247 #endif
38248
38249 #if DB_VERSION_MAJOR > 2
38250         db_env_create( NULL, 0 );
38251 #elif DB_VERSION_MAJOR > 1
38252         db_appexit( NULL );
38253 #else
38254         (void) dbopen( NULL, 0, 0, 0, NULL);
38255 #endif
38256
38257   ;
38258   return 0;
38259 }
38260 _ACEOF
38261 rm -f conftest.$ac_objext conftest$ac_exeext
38262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38263   (eval $ac_link) 2>conftest.er1
38264   ac_status=$?
38265   grep -v '^ *+' conftest.er1 >conftest.err
38266   rm -f conftest.er1
38267   cat conftest.err >&5
38268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38269   (exit $ac_status); } &&
38270          { ac_try='test -z "$ac_c_werror_flag"
38271                          || test ! -s conftest.err'
38272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38273   (eval $ac_try) 2>&5
38274   ac_status=$?
38275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38276   (exit $ac_status); }; } &&
38277          { ac_try='test -s conftest$ac_exeext'
38278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38279   (eval $ac_try) 2>&5
38280   ac_status=$?
38281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38282   (exit $ac_status); }; }; then
38283   ol_cv_db_db_4_dot_3=yes
38284 else
38285   echo "$as_me: failed program was:" >&5
38286 sed 's/^/| /' conftest.$ac_ext >&5
38287
38288 ol_cv_db_db_4_dot_3=no
38289 fi
38290 rm -f conftest.err conftest.$ac_objext \
38291       conftest$ac_exeext conftest.$ac_ext
38292
38293         LIBS="$ol_LIBS"
38294
38295 fi
38296 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38297 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38298
38299         if test $ol_cv_db_db_4_dot_3 = yes ; then
38300                 ol_cv_lib_db=-ldb-4.3
38301         fi
38302 fi
38303
38304 if test $ol_cv_lib_db = no ; then
38305         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38306 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38307 if test "${ol_cv_db_db_4_3+set}" = set; then
38308   echo $ECHO_N "(cached) $ECHO_C" >&6
38309 else
38310
38311         ol_DB_LIB=-ldb-4-3
38312         ol_LIBS=$LIBS
38313         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38314
38315         cat >conftest.$ac_ext <<_ACEOF
38316 /* confdefs.h.  */
38317 _ACEOF
38318 cat confdefs.h >>conftest.$ac_ext
38319 cat >>conftest.$ac_ext <<_ACEOF
38320 /* end confdefs.h.  */
38321
38322 #ifdef HAVE_DB_185_H
38323 # include <db_185.h>
38324 #else
38325 # include <db.h>
38326 #endif
38327
38328 #ifndef DB_VERSION_MAJOR
38329 # define DB_VERSION_MAJOR 1
38330 #endif
38331
38332 #ifndef NULL
38333 #define NULL ((void*)0)
38334 #endif
38335
38336 int
38337 main ()
38338 {
38339
38340 #if DB_VERSION_MAJOR > 1
38341         {
38342                 char *version;
38343                 int major, minor, patch;
38344
38345                 version = db_version( &major, &minor, &patch );
38346
38347                 if( major != DB_VERSION_MAJOR ||
38348                         minor < DB_VERSION_MINOR )
38349                 {
38350                         printf("Berkeley DB version mismatch\n"
38351                                 "\theader: %s\n\tlibrary: %s\n",
38352                                 DB_VERSION_STRING, version);
38353                         return 1;
38354                 }
38355         }
38356 #endif
38357
38358 #if DB_VERSION_MAJOR > 2
38359         db_env_create( NULL, 0 );
38360 #elif DB_VERSION_MAJOR > 1
38361         db_appexit( NULL );
38362 #else
38363         (void) dbopen( NULL, 0, 0, 0, NULL);
38364 #endif
38365
38366   ;
38367   return 0;
38368 }
38369 _ACEOF
38370 rm -f conftest.$ac_objext conftest$ac_exeext
38371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38372   (eval $ac_link) 2>conftest.er1
38373   ac_status=$?
38374   grep -v '^ *+' conftest.er1 >conftest.err
38375   rm -f conftest.er1
38376   cat conftest.err >&5
38377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38378   (exit $ac_status); } &&
38379          { ac_try='test -z "$ac_c_werror_flag"
38380                          || test ! -s conftest.err'
38381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38382   (eval $ac_try) 2>&5
38383   ac_status=$?
38384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38385   (exit $ac_status); }; } &&
38386          { ac_try='test -s conftest$ac_exeext'
38387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38388   (eval $ac_try) 2>&5
38389   ac_status=$?
38390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38391   (exit $ac_status); }; }; then
38392   ol_cv_db_db_4_3=yes
38393 else
38394   echo "$as_me: failed program was:" >&5
38395 sed 's/^/| /' conftest.$ac_ext >&5
38396
38397 ol_cv_db_db_4_3=no
38398 fi
38399 rm -f conftest.err conftest.$ac_objext \
38400       conftest$ac_exeext conftest.$ac_ext
38401
38402         LIBS="$ol_LIBS"
38403
38404 fi
38405 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38406 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38407
38408         if test $ol_cv_db_db_4_3 = yes ; then
38409                 ol_cv_lib_db=-ldb-4-3
38410         fi
38411 fi
38412
38413 if test $ol_cv_lib_db = no ; then
38414         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38415 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38416 if test "${ol_cv_db_db42+set}" = set; then
38417   echo $ECHO_N "(cached) $ECHO_C" >&6
38418 else
38419
38420         ol_DB_LIB=-ldb42
38421         ol_LIBS=$LIBS
38422         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38423
38424         cat >conftest.$ac_ext <<_ACEOF
38425 /* confdefs.h.  */
38426 _ACEOF
38427 cat confdefs.h >>conftest.$ac_ext
38428 cat >>conftest.$ac_ext <<_ACEOF
38429 /* end confdefs.h.  */
38430
38431 #ifdef HAVE_DB_185_H
38432 # include <db_185.h>
38433 #else
38434 # include <db.h>
38435 #endif
38436
38437 #ifndef DB_VERSION_MAJOR
38438 # define DB_VERSION_MAJOR 1
38439 #endif
38440
38441 #ifndef NULL
38442 #define NULL ((void*)0)
38443 #endif
38444
38445 int
38446 main ()
38447 {
38448
38449 #if DB_VERSION_MAJOR > 1
38450         {
38451                 char *version;
38452                 int major, minor, patch;
38453
38454                 version = db_version( &major, &minor, &patch );
38455
38456                 if( major != DB_VERSION_MAJOR ||
38457                         minor < DB_VERSION_MINOR )
38458                 {
38459                         printf("Berkeley DB version mismatch\n"
38460                                 "\theader: %s\n\tlibrary: %s\n",
38461                                 DB_VERSION_STRING, version);
38462                         return 1;
38463                 }
38464         }
38465 #endif
38466
38467 #if DB_VERSION_MAJOR > 2
38468         db_env_create( NULL, 0 );
38469 #elif DB_VERSION_MAJOR > 1
38470         db_appexit( NULL );
38471 #else
38472         (void) dbopen( NULL, 0, 0, 0, NULL);
38473 #endif
38474
38475   ;
38476   return 0;
38477 }
38478 _ACEOF
38479 rm -f conftest.$ac_objext conftest$ac_exeext
38480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38481   (eval $ac_link) 2>conftest.er1
38482   ac_status=$?
38483   grep -v '^ *+' conftest.er1 >conftest.err
38484   rm -f conftest.er1
38485   cat conftest.err >&5
38486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38487   (exit $ac_status); } &&
38488          { ac_try='test -z "$ac_c_werror_flag"
38489                          || test ! -s conftest.err'
38490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38491   (eval $ac_try) 2>&5
38492   ac_status=$?
38493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38494   (exit $ac_status); }; } &&
38495          { ac_try='test -s conftest$ac_exeext'
38496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38497   (eval $ac_try) 2>&5
38498   ac_status=$?
38499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38500   (exit $ac_status); }; }; then
38501   ol_cv_db_db42=yes
38502 else
38503   echo "$as_me: failed program was:" >&5
38504 sed 's/^/| /' conftest.$ac_ext >&5
38505
38506 ol_cv_db_db42=no
38507 fi
38508 rm -f conftest.err conftest.$ac_objext \
38509       conftest$ac_exeext conftest.$ac_ext
38510
38511         LIBS="$ol_LIBS"
38512
38513 fi
38514 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38515 echo "${ECHO_T}$ol_cv_db_db42" >&6
38516
38517         if test $ol_cv_db_db42 = yes ; then
38518                 ol_cv_lib_db=-ldb42
38519         fi
38520 fi
38521
38522 if test $ol_cv_lib_db = no ; then
38523         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38524 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38525 if test "${ol_cv_db_db_42+set}" = set; then
38526   echo $ECHO_N "(cached) $ECHO_C" >&6
38527 else
38528
38529         ol_DB_LIB=-ldb-42
38530         ol_LIBS=$LIBS
38531         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38532
38533         cat >conftest.$ac_ext <<_ACEOF
38534 /* confdefs.h.  */
38535 _ACEOF
38536 cat confdefs.h >>conftest.$ac_ext
38537 cat >>conftest.$ac_ext <<_ACEOF
38538 /* end confdefs.h.  */
38539
38540 #ifdef HAVE_DB_185_H
38541 # include <db_185.h>
38542 #else
38543 # include <db.h>
38544 #endif
38545
38546 #ifndef DB_VERSION_MAJOR
38547 # define DB_VERSION_MAJOR 1
38548 #endif
38549
38550 #ifndef NULL
38551 #define NULL ((void*)0)
38552 #endif
38553
38554 int
38555 main ()
38556 {
38557
38558 #if DB_VERSION_MAJOR > 1
38559         {
38560                 char *version;
38561                 int major, minor, patch;
38562
38563                 version = db_version( &major, &minor, &patch );
38564
38565                 if( major != DB_VERSION_MAJOR ||
38566                         minor < DB_VERSION_MINOR )
38567                 {
38568                         printf("Berkeley DB version mismatch\n"
38569                                 "\theader: %s\n\tlibrary: %s\n",
38570                                 DB_VERSION_STRING, version);
38571                         return 1;
38572                 }
38573         }
38574 #endif
38575
38576 #if DB_VERSION_MAJOR > 2
38577         db_env_create( NULL, 0 );
38578 #elif DB_VERSION_MAJOR > 1
38579         db_appexit( NULL );
38580 #else
38581         (void) dbopen( NULL, 0, 0, 0, NULL);
38582 #endif
38583
38584   ;
38585   return 0;
38586 }
38587 _ACEOF
38588 rm -f conftest.$ac_objext conftest$ac_exeext
38589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38590   (eval $ac_link) 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_exeext'
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   ol_cv_db_db_42=yes
38611 else
38612   echo "$as_me: failed program was:" >&5
38613 sed 's/^/| /' conftest.$ac_ext >&5
38614
38615 ol_cv_db_db_42=no
38616 fi
38617 rm -f conftest.err conftest.$ac_objext \
38618       conftest$ac_exeext conftest.$ac_ext
38619
38620         LIBS="$ol_LIBS"
38621
38622 fi
38623 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38624 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38625
38626         if test $ol_cv_db_db_42 = yes ; then
38627                 ol_cv_lib_db=-ldb-42
38628         fi
38629 fi
38630
38631 if test $ol_cv_lib_db = no ; then
38632         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38633 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38634 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38635   echo $ECHO_N "(cached) $ECHO_C" >&6
38636 else
38637
38638         ol_DB_LIB=-ldb-4.2
38639         ol_LIBS=$LIBS
38640         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38641
38642         cat >conftest.$ac_ext <<_ACEOF
38643 /* confdefs.h.  */
38644 _ACEOF
38645 cat confdefs.h >>conftest.$ac_ext
38646 cat >>conftest.$ac_ext <<_ACEOF
38647 /* end confdefs.h.  */
38648
38649 #ifdef HAVE_DB_185_H
38650 # include <db_185.h>
38651 #else
38652 # include <db.h>
38653 #endif
38654
38655 #ifndef DB_VERSION_MAJOR
38656 # define DB_VERSION_MAJOR 1
38657 #endif
38658
38659 #ifndef NULL
38660 #define NULL ((void*)0)
38661 #endif
38662
38663 int
38664 main ()
38665 {
38666
38667 #if DB_VERSION_MAJOR > 1
38668         {
38669                 char *version;
38670                 int major, minor, patch;
38671
38672                 version = db_version( &major, &minor, &patch );
38673
38674                 if( major != DB_VERSION_MAJOR ||
38675                         minor < DB_VERSION_MINOR )
38676                 {
38677                         printf("Berkeley DB version mismatch\n"
38678                                 "\theader: %s\n\tlibrary: %s\n",
38679                                 DB_VERSION_STRING, version);
38680                         return 1;
38681                 }
38682         }
38683 #endif
38684
38685 #if DB_VERSION_MAJOR > 2
38686         db_env_create( NULL, 0 );
38687 #elif DB_VERSION_MAJOR > 1
38688         db_appexit( NULL );
38689 #else
38690         (void) dbopen( NULL, 0, 0, 0, NULL);
38691 #endif
38692
38693   ;
38694   return 0;
38695 }
38696 _ACEOF
38697 rm -f conftest.$ac_objext conftest$ac_exeext
38698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38699   (eval $ac_link) 2>conftest.er1
38700   ac_status=$?
38701   grep -v '^ *+' conftest.er1 >conftest.err
38702   rm -f conftest.er1
38703   cat conftest.err >&5
38704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38705   (exit $ac_status); } &&
38706          { ac_try='test -z "$ac_c_werror_flag"
38707                          || test ! -s conftest.err'
38708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38709   (eval $ac_try) 2>&5
38710   ac_status=$?
38711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38712   (exit $ac_status); }; } &&
38713          { ac_try='test -s conftest$ac_exeext'
38714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38715   (eval $ac_try) 2>&5
38716   ac_status=$?
38717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38718   (exit $ac_status); }; }; then
38719   ol_cv_db_db_4_dot_2=yes
38720 else
38721   echo "$as_me: failed program was:" >&5
38722 sed 's/^/| /' conftest.$ac_ext >&5
38723
38724 ol_cv_db_db_4_dot_2=no
38725 fi
38726 rm -f conftest.err conftest.$ac_objext \
38727       conftest$ac_exeext conftest.$ac_ext
38728
38729         LIBS="$ol_LIBS"
38730
38731 fi
38732 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38733 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38734
38735         if test $ol_cv_db_db_4_dot_2 = yes ; then
38736                 ol_cv_lib_db=-ldb-4.2
38737         fi
38738 fi
38739
38740 if test $ol_cv_lib_db = no ; then
38741         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38742 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38743 if test "${ol_cv_db_db_4_2+set}" = set; then
38744   echo $ECHO_N "(cached) $ECHO_C" >&6
38745 else
38746
38747         ol_DB_LIB=-ldb-4-2
38748         ol_LIBS=$LIBS
38749         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38750
38751         cat >conftest.$ac_ext <<_ACEOF
38752 /* confdefs.h.  */
38753 _ACEOF
38754 cat confdefs.h >>conftest.$ac_ext
38755 cat >>conftest.$ac_ext <<_ACEOF
38756 /* end confdefs.h.  */
38757
38758 #ifdef HAVE_DB_185_H
38759 # include <db_185.h>
38760 #else
38761 # include <db.h>
38762 #endif
38763
38764 #ifndef DB_VERSION_MAJOR
38765 # define DB_VERSION_MAJOR 1
38766 #endif
38767
38768 #ifndef NULL
38769 #define NULL ((void*)0)
38770 #endif
38771
38772 int
38773 main ()
38774 {
38775
38776 #if DB_VERSION_MAJOR > 1
38777         {
38778                 char *version;
38779                 int major, minor, patch;
38780
38781                 version = db_version( &major, &minor, &patch );
38782
38783                 if( major != DB_VERSION_MAJOR ||
38784                         minor < DB_VERSION_MINOR )
38785                 {
38786                         printf("Berkeley DB version mismatch\n"
38787                                 "\theader: %s\n\tlibrary: %s\n",
38788                                 DB_VERSION_STRING, version);
38789                         return 1;
38790                 }
38791         }
38792 #endif
38793
38794 #if DB_VERSION_MAJOR > 2
38795         db_env_create( NULL, 0 );
38796 #elif DB_VERSION_MAJOR > 1
38797         db_appexit( NULL );
38798 #else
38799         (void) dbopen( NULL, 0, 0, 0, NULL);
38800 #endif
38801
38802   ;
38803   return 0;
38804 }
38805 _ACEOF
38806 rm -f conftest.$ac_objext conftest$ac_exeext
38807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38808   (eval $ac_link) 2>conftest.er1
38809   ac_status=$?
38810   grep -v '^ *+' conftest.er1 >conftest.err
38811   rm -f conftest.er1
38812   cat conftest.err >&5
38813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38814   (exit $ac_status); } &&
38815          { ac_try='test -z "$ac_c_werror_flag"
38816                          || test ! -s conftest.err'
38817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38818   (eval $ac_try) 2>&5
38819   ac_status=$?
38820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38821   (exit $ac_status); }; } &&
38822          { ac_try='test -s conftest$ac_exeext'
38823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38824   (eval $ac_try) 2>&5
38825   ac_status=$?
38826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827   (exit $ac_status); }; }; then
38828   ol_cv_db_db_4_2=yes
38829 else
38830   echo "$as_me: failed program was:" >&5
38831 sed 's/^/| /' conftest.$ac_ext >&5
38832
38833 ol_cv_db_db_4_2=no
38834 fi
38835 rm -f conftest.err conftest.$ac_objext \
38836       conftest$ac_exeext conftest.$ac_ext
38837
38838         LIBS="$ol_LIBS"
38839
38840 fi
38841 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38842 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38843
38844         if test $ol_cv_db_db_4_2 = yes ; then
38845                 ol_cv_lib_db=-ldb-4-2
38846         fi
38847 fi
38848
38849 if test $ol_cv_lib_db = no ; then
38850         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38851 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38852 if test "${ol_cv_db_db_4+set}" = set; then
38853   echo $ECHO_N "(cached) $ECHO_C" >&6
38854 else
38855
38856         ol_DB_LIB=-ldb-4
38857         ol_LIBS=$LIBS
38858         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38859
38860         cat >conftest.$ac_ext <<_ACEOF
38861 /* confdefs.h.  */
38862 _ACEOF
38863 cat confdefs.h >>conftest.$ac_ext
38864 cat >>conftest.$ac_ext <<_ACEOF
38865 /* end confdefs.h.  */
38866
38867 #ifdef HAVE_DB_185_H
38868 # include <db_185.h>
38869 #else
38870 # include <db.h>
38871 #endif
38872
38873 #ifndef DB_VERSION_MAJOR
38874 # define DB_VERSION_MAJOR 1
38875 #endif
38876
38877 #ifndef NULL
38878 #define NULL ((void*)0)
38879 #endif
38880
38881 int
38882 main ()
38883 {
38884
38885 #if DB_VERSION_MAJOR > 1
38886         {
38887                 char *version;
38888                 int major, minor, patch;
38889
38890                 version = db_version( &major, &minor, &patch );
38891
38892                 if( major != DB_VERSION_MAJOR ||
38893                         minor < DB_VERSION_MINOR )
38894                 {
38895                         printf("Berkeley DB version mismatch\n"
38896                                 "\theader: %s\n\tlibrary: %s\n",
38897                                 DB_VERSION_STRING, version);
38898                         return 1;
38899                 }
38900         }
38901 #endif
38902
38903 #if DB_VERSION_MAJOR > 2
38904         db_env_create( NULL, 0 );
38905 #elif DB_VERSION_MAJOR > 1
38906         db_appexit( NULL );
38907 #else
38908         (void) dbopen( NULL, 0, 0, 0, NULL);
38909 #endif
38910
38911   ;
38912   return 0;
38913 }
38914 _ACEOF
38915 rm -f conftest.$ac_objext conftest$ac_exeext
38916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38917   (eval $ac_link) 2>conftest.er1
38918   ac_status=$?
38919   grep -v '^ *+' conftest.er1 >conftest.err
38920   rm -f conftest.er1
38921   cat conftest.err >&5
38922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38923   (exit $ac_status); } &&
38924          { ac_try='test -z "$ac_c_werror_flag"
38925                          || test ! -s conftest.err'
38926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38927   (eval $ac_try) 2>&5
38928   ac_status=$?
38929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38930   (exit $ac_status); }; } &&
38931          { ac_try='test -s conftest$ac_exeext'
38932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38933   (eval $ac_try) 2>&5
38934   ac_status=$?
38935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38936   (exit $ac_status); }; }; then
38937   ol_cv_db_db_4=yes
38938 else
38939   echo "$as_me: failed program was:" >&5
38940 sed 's/^/| /' conftest.$ac_ext >&5
38941
38942 ol_cv_db_db_4=no
38943 fi
38944 rm -f conftest.err conftest.$ac_objext \
38945       conftest$ac_exeext conftest.$ac_ext
38946
38947         LIBS="$ol_LIBS"
38948
38949 fi
38950 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
38951 echo "${ECHO_T}$ol_cv_db_db_4" >&6
38952
38953         if test $ol_cv_db_db_4 = yes ; then
38954                 ol_cv_lib_db=-ldb-4
38955         fi
38956 fi
38957
38958 if test $ol_cv_lib_db = no ; then
38959         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
38960 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
38961 if test "${ol_cv_db_db4+set}" = set; then
38962   echo $ECHO_N "(cached) $ECHO_C" >&6
38963 else
38964
38965         ol_DB_LIB=-ldb4
38966         ol_LIBS=$LIBS
38967         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38968
38969         cat >conftest.$ac_ext <<_ACEOF
38970 /* confdefs.h.  */
38971 _ACEOF
38972 cat confdefs.h >>conftest.$ac_ext
38973 cat >>conftest.$ac_ext <<_ACEOF
38974 /* end confdefs.h.  */
38975
38976 #ifdef HAVE_DB_185_H
38977 # include <db_185.h>
38978 #else
38979 # include <db.h>
38980 #endif
38981
38982 #ifndef DB_VERSION_MAJOR
38983 # define DB_VERSION_MAJOR 1
38984 #endif
38985
38986 #ifndef NULL
38987 #define NULL ((void*)0)
38988 #endif
38989
38990 int
38991 main ()
38992 {
38993
38994 #if DB_VERSION_MAJOR > 1
38995         {
38996                 char *version;
38997                 int major, minor, patch;
38998
38999                 version = db_version( &major, &minor, &patch );
39000
39001                 if( major != DB_VERSION_MAJOR ||
39002                         minor < DB_VERSION_MINOR )
39003                 {
39004                         printf("Berkeley DB version mismatch\n"
39005                                 "\theader: %s\n\tlibrary: %s\n",
39006                                 DB_VERSION_STRING, version);
39007                         return 1;
39008                 }
39009         }
39010 #endif
39011
39012 #if DB_VERSION_MAJOR > 2
39013         db_env_create( NULL, 0 );
39014 #elif DB_VERSION_MAJOR > 1
39015         db_appexit( NULL );
39016 #else
39017         (void) dbopen( NULL, 0, 0, 0, NULL);
39018 #endif
39019
39020   ;
39021   return 0;
39022 }
39023 _ACEOF
39024 rm -f conftest.$ac_objext conftest$ac_exeext
39025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39026   (eval $ac_link) 2>conftest.er1
39027   ac_status=$?
39028   grep -v '^ *+' conftest.er1 >conftest.err
39029   rm -f conftest.er1
39030   cat conftest.err >&5
39031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39032   (exit $ac_status); } &&
39033          { ac_try='test -z "$ac_c_werror_flag"
39034                          || test ! -s conftest.err'
39035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39036   (eval $ac_try) 2>&5
39037   ac_status=$?
39038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39039   (exit $ac_status); }; } &&
39040          { ac_try='test -s conftest$ac_exeext'
39041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39042   (eval $ac_try) 2>&5
39043   ac_status=$?
39044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39045   (exit $ac_status); }; }; then
39046   ol_cv_db_db4=yes
39047 else
39048   echo "$as_me: failed program was:" >&5
39049 sed 's/^/| /' conftest.$ac_ext >&5
39050
39051 ol_cv_db_db4=no
39052 fi
39053 rm -f conftest.err conftest.$ac_objext \
39054       conftest$ac_exeext conftest.$ac_ext
39055
39056         LIBS="$ol_LIBS"
39057
39058 fi
39059 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39060 echo "${ECHO_T}$ol_cv_db_db4" >&6
39061
39062         if test $ol_cv_db_db4 = yes ; then
39063                 ol_cv_lib_db=-ldb4
39064         fi
39065 fi
39066
39067 if test $ol_cv_lib_db = no ; then
39068         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39069 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39070 if test "${ol_cv_db_db+set}" = set; then
39071   echo $ECHO_N "(cached) $ECHO_C" >&6
39072 else
39073
39074         ol_DB_LIB=-ldb
39075         ol_LIBS=$LIBS
39076         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39077
39078         cat >conftest.$ac_ext <<_ACEOF
39079 /* confdefs.h.  */
39080 _ACEOF
39081 cat confdefs.h >>conftest.$ac_ext
39082 cat >>conftest.$ac_ext <<_ACEOF
39083 /* end confdefs.h.  */
39084
39085 #ifdef HAVE_DB_185_H
39086 # include <db_185.h>
39087 #else
39088 # include <db.h>
39089 #endif
39090
39091 #ifndef DB_VERSION_MAJOR
39092 # define DB_VERSION_MAJOR 1
39093 #endif
39094
39095 #ifndef NULL
39096 #define NULL ((void*)0)
39097 #endif
39098
39099 int
39100 main ()
39101 {
39102
39103 #if DB_VERSION_MAJOR > 1
39104         {
39105                 char *version;
39106                 int major, minor, patch;
39107
39108                 version = db_version( &major, &minor, &patch );
39109
39110                 if( major != DB_VERSION_MAJOR ||
39111                         minor < DB_VERSION_MINOR )
39112                 {
39113                         printf("Berkeley DB version mismatch\n"
39114                                 "\theader: %s\n\tlibrary: %s\n",
39115                                 DB_VERSION_STRING, version);
39116                         return 1;
39117                 }
39118         }
39119 #endif
39120
39121 #if DB_VERSION_MAJOR > 2
39122         db_env_create( NULL, 0 );
39123 #elif DB_VERSION_MAJOR > 1
39124         db_appexit( NULL );
39125 #else
39126         (void) dbopen( NULL, 0, 0, 0, NULL);
39127 #endif
39128
39129   ;
39130   return 0;
39131 }
39132 _ACEOF
39133 rm -f conftest.$ac_objext conftest$ac_exeext
39134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39135   (eval $ac_link) 2>conftest.er1
39136   ac_status=$?
39137   grep -v '^ *+' conftest.er1 >conftest.err
39138   rm -f conftest.er1
39139   cat conftest.err >&5
39140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39141   (exit $ac_status); } &&
39142          { ac_try='test -z "$ac_c_werror_flag"
39143                          || test ! -s conftest.err'
39144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39145   (eval $ac_try) 2>&5
39146   ac_status=$?
39147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39148   (exit $ac_status); }; } &&
39149          { ac_try='test -s conftest$ac_exeext'
39150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39151   (eval $ac_try) 2>&5
39152   ac_status=$?
39153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39154   (exit $ac_status); }; }; then
39155   ol_cv_db_db=yes
39156 else
39157   echo "$as_me: failed program was:" >&5
39158 sed 's/^/| /' conftest.$ac_ext >&5
39159
39160 ol_cv_db_db=no
39161 fi
39162 rm -f conftest.err conftest.$ac_objext \
39163       conftest$ac_exeext conftest.$ac_ext
39164
39165         LIBS="$ol_LIBS"
39166
39167 fi
39168 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39169 echo "${ECHO_T}$ol_cv_db_db" >&6
39170
39171         if test $ol_cv_db_db = yes ; then
39172                 ol_cv_lib_db=-ldb
39173         fi
39174 fi
39175
39176 if test $ol_cv_lib_db = no ; then
39177         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39178 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39179 if test "${ol_cv_db_db41+set}" = set; then
39180   echo $ECHO_N "(cached) $ECHO_C" >&6
39181 else
39182
39183         ol_DB_LIB=-ldb41
39184         ol_LIBS=$LIBS
39185         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39186
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
39194 #ifdef HAVE_DB_185_H
39195 # include <db_185.h>
39196 #else
39197 # include <db.h>
39198 #endif
39199
39200 #ifndef DB_VERSION_MAJOR
39201 # define DB_VERSION_MAJOR 1
39202 #endif
39203
39204 #ifndef NULL
39205 #define NULL ((void*)0)
39206 #endif
39207
39208 int
39209 main ()
39210 {
39211
39212 #if DB_VERSION_MAJOR > 1
39213         {
39214                 char *version;
39215                 int major, minor, patch;
39216
39217                 version = db_version( &major, &minor, &patch );
39218
39219                 if( major != DB_VERSION_MAJOR ||
39220                         minor < DB_VERSION_MINOR )
39221                 {
39222                         printf("Berkeley DB version mismatch\n"
39223                                 "\theader: %s\n\tlibrary: %s\n",
39224                                 DB_VERSION_STRING, version);
39225                         return 1;
39226                 }
39227         }
39228 #endif
39229
39230 #if DB_VERSION_MAJOR > 2
39231         db_env_create( NULL, 0 );
39232 #elif DB_VERSION_MAJOR > 1
39233         db_appexit( NULL );
39234 #else
39235         (void) dbopen( NULL, 0, 0, 0, NULL);
39236 #endif
39237
39238   ;
39239   return 0;
39240 }
39241 _ACEOF
39242 rm -f conftest.$ac_objext conftest$ac_exeext
39243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39244   (eval $ac_link) 2>conftest.er1
39245   ac_status=$?
39246   grep -v '^ *+' conftest.er1 >conftest.err
39247   rm -f conftest.er1
39248   cat conftest.err >&5
39249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39250   (exit $ac_status); } &&
39251          { ac_try='test -z "$ac_c_werror_flag"
39252                          || test ! -s conftest.err'
39253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39254   (eval $ac_try) 2>&5
39255   ac_status=$?
39256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39257   (exit $ac_status); }; } &&
39258          { ac_try='test -s conftest$ac_exeext'
39259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39260   (eval $ac_try) 2>&5
39261   ac_status=$?
39262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39263   (exit $ac_status); }; }; then
39264   ol_cv_db_db41=yes
39265 else
39266   echo "$as_me: failed program was:" >&5
39267 sed 's/^/| /' conftest.$ac_ext >&5
39268
39269 ol_cv_db_db41=no
39270 fi
39271 rm -f conftest.err conftest.$ac_objext \
39272       conftest$ac_exeext conftest.$ac_ext
39273
39274         LIBS="$ol_LIBS"
39275
39276 fi
39277 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39278 echo "${ECHO_T}$ol_cv_db_db41" >&6
39279
39280         if test $ol_cv_db_db41 = yes ; then
39281                 ol_cv_lib_db=-ldb41
39282         fi
39283 fi
39284
39285 if test $ol_cv_lib_db = no ; then
39286         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39287 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39288 if test "${ol_cv_db_db_41+set}" = set; then
39289   echo $ECHO_N "(cached) $ECHO_C" >&6
39290 else
39291
39292         ol_DB_LIB=-ldb-41
39293         ol_LIBS=$LIBS
39294         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39295
39296         cat >conftest.$ac_ext <<_ACEOF
39297 /* confdefs.h.  */
39298 _ACEOF
39299 cat confdefs.h >>conftest.$ac_ext
39300 cat >>conftest.$ac_ext <<_ACEOF
39301 /* end confdefs.h.  */
39302
39303 #ifdef HAVE_DB_185_H
39304 # include <db_185.h>
39305 #else
39306 # include <db.h>
39307 #endif
39308
39309 #ifndef DB_VERSION_MAJOR
39310 # define DB_VERSION_MAJOR 1
39311 #endif
39312
39313 #ifndef NULL
39314 #define NULL ((void*)0)
39315 #endif
39316
39317 int
39318 main ()
39319 {
39320
39321 #if DB_VERSION_MAJOR > 1
39322         {
39323                 char *version;
39324                 int major, minor, patch;
39325
39326                 version = db_version( &major, &minor, &patch );
39327
39328                 if( major != DB_VERSION_MAJOR ||
39329                         minor < DB_VERSION_MINOR )
39330                 {
39331                         printf("Berkeley DB version mismatch\n"
39332                                 "\theader: %s\n\tlibrary: %s\n",
39333                                 DB_VERSION_STRING, version);
39334                         return 1;
39335                 }
39336         }
39337 #endif
39338
39339 #if DB_VERSION_MAJOR > 2
39340         db_env_create( NULL, 0 );
39341 #elif DB_VERSION_MAJOR > 1
39342         db_appexit( NULL );
39343 #else
39344         (void) dbopen( NULL, 0, 0, 0, NULL);
39345 #endif
39346
39347   ;
39348   return 0;
39349 }
39350 _ACEOF
39351 rm -f conftest.$ac_objext conftest$ac_exeext
39352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39353   (eval $ac_link) 2>conftest.er1
39354   ac_status=$?
39355   grep -v '^ *+' conftest.er1 >conftest.err
39356   rm -f conftest.er1
39357   cat conftest.err >&5
39358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39359   (exit $ac_status); } &&
39360          { ac_try='test -z "$ac_c_werror_flag"
39361                          || test ! -s conftest.err'
39362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39363   (eval $ac_try) 2>&5
39364   ac_status=$?
39365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39366   (exit $ac_status); }; } &&
39367          { ac_try='test -s conftest$ac_exeext'
39368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39369   (eval $ac_try) 2>&5
39370   ac_status=$?
39371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39372   (exit $ac_status); }; }; then
39373   ol_cv_db_db_41=yes
39374 else
39375   echo "$as_me: failed program was:" >&5
39376 sed 's/^/| /' conftest.$ac_ext >&5
39377
39378 ol_cv_db_db_41=no
39379 fi
39380 rm -f conftest.err conftest.$ac_objext \
39381       conftest$ac_exeext conftest.$ac_ext
39382
39383         LIBS="$ol_LIBS"
39384
39385 fi
39386 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39387 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39388
39389         if test $ol_cv_db_db_41 = yes ; then
39390                 ol_cv_lib_db=-ldb-41
39391         fi
39392 fi
39393
39394 if test $ol_cv_lib_db = no ; then
39395         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39396 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39397 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39398   echo $ECHO_N "(cached) $ECHO_C" >&6
39399 else
39400
39401         ol_DB_LIB=-ldb-4.1
39402         ol_LIBS=$LIBS
39403         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39404
39405         cat >conftest.$ac_ext <<_ACEOF
39406 /* confdefs.h.  */
39407 _ACEOF
39408 cat confdefs.h >>conftest.$ac_ext
39409 cat >>conftest.$ac_ext <<_ACEOF
39410 /* end confdefs.h.  */
39411
39412 #ifdef HAVE_DB_185_H
39413 # include <db_185.h>
39414 #else
39415 # include <db.h>
39416 #endif
39417
39418 #ifndef DB_VERSION_MAJOR
39419 # define DB_VERSION_MAJOR 1
39420 #endif
39421
39422 #ifndef NULL
39423 #define NULL ((void*)0)
39424 #endif
39425
39426 int
39427 main ()
39428 {
39429
39430 #if DB_VERSION_MAJOR > 1
39431         {
39432                 char *version;
39433                 int major, minor, patch;
39434
39435                 version = db_version( &major, &minor, &patch );
39436
39437                 if( major != DB_VERSION_MAJOR ||
39438                         minor < DB_VERSION_MINOR )
39439                 {
39440                         printf("Berkeley DB version mismatch\n"
39441                                 "\theader: %s\n\tlibrary: %s\n",
39442                                 DB_VERSION_STRING, version);
39443                         return 1;
39444                 }
39445         }
39446 #endif
39447
39448 #if DB_VERSION_MAJOR > 2
39449         db_env_create( NULL, 0 );
39450 #elif DB_VERSION_MAJOR > 1
39451         db_appexit( NULL );
39452 #else
39453         (void) dbopen( NULL, 0, 0, 0, NULL);
39454 #endif
39455
39456   ;
39457   return 0;
39458 }
39459 _ACEOF
39460 rm -f conftest.$ac_objext conftest$ac_exeext
39461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39462   (eval $ac_link) 2>conftest.er1
39463   ac_status=$?
39464   grep -v '^ *+' conftest.er1 >conftest.err
39465   rm -f conftest.er1
39466   cat conftest.err >&5
39467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39468   (exit $ac_status); } &&
39469          { ac_try='test -z "$ac_c_werror_flag"
39470                          || test ! -s conftest.err'
39471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39472   (eval $ac_try) 2>&5
39473   ac_status=$?
39474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39475   (exit $ac_status); }; } &&
39476          { ac_try='test -s conftest$ac_exeext'
39477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39478   (eval $ac_try) 2>&5
39479   ac_status=$?
39480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39481   (exit $ac_status); }; }; then
39482   ol_cv_db_db_4_dot_1=yes
39483 else
39484   echo "$as_me: failed program was:" >&5
39485 sed 's/^/| /' conftest.$ac_ext >&5
39486
39487 ol_cv_db_db_4_dot_1=no
39488 fi
39489 rm -f conftest.err conftest.$ac_objext \
39490       conftest$ac_exeext conftest.$ac_ext
39491
39492         LIBS="$ol_LIBS"
39493
39494 fi
39495 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39496 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39497
39498         if test $ol_cv_db_db_4_dot_1 = yes ; then
39499                 ol_cv_lib_db=-ldb-4.1
39500         fi
39501 fi
39502
39503 if test $ol_cv_lib_db = no ; then
39504         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39505 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39506 if test "${ol_cv_db_db_4_1+set}" = set; then
39507   echo $ECHO_N "(cached) $ECHO_C" >&6
39508 else
39509
39510         ol_DB_LIB=-ldb-4-1
39511         ol_LIBS=$LIBS
39512         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39513
39514         cat >conftest.$ac_ext <<_ACEOF
39515 /* confdefs.h.  */
39516 _ACEOF
39517 cat confdefs.h >>conftest.$ac_ext
39518 cat >>conftest.$ac_ext <<_ACEOF
39519 /* end confdefs.h.  */
39520
39521 #ifdef HAVE_DB_185_H
39522 # include <db_185.h>
39523 #else
39524 # include <db.h>
39525 #endif
39526
39527 #ifndef DB_VERSION_MAJOR
39528 # define DB_VERSION_MAJOR 1
39529 #endif
39530
39531 #ifndef NULL
39532 #define NULL ((void*)0)
39533 #endif
39534
39535 int
39536 main ()
39537 {
39538
39539 #if DB_VERSION_MAJOR > 1
39540         {
39541                 char *version;
39542                 int major, minor, patch;
39543
39544                 version = db_version( &major, &minor, &patch );
39545
39546                 if( major != DB_VERSION_MAJOR ||
39547                         minor < DB_VERSION_MINOR )
39548                 {
39549                         printf("Berkeley DB version mismatch\n"
39550                                 "\theader: %s\n\tlibrary: %s\n",
39551                                 DB_VERSION_STRING, version);
39552                         return 1;
39553                 }
39554         }
39555 #endif
39556
39557 #if DB_VERSION_MAJOR > 2
39558         db_env_create( NULL, 0 );
39559 #elif DB_VERSION_MAJOR > 1
39560         db_appexit( NULL );
39561 #else
39562         (void) dbopen( NULL, 0, 0, 0, NULL);
39563 #endif
39564
39565   ;
39566   return 0;
39567 }
39568 _ACEOF
39569 rm -f conftest.$ac_objext conftest$ac_exeext
39570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39571   (eval $ac_link) 2>conftest.er1
39572   ac_status=$?
39573   grep -v '^ *+' conftest.er1 >conftest.err
39574   rm -f conftest.er1
39575   cat conftest.err >&5
39576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39577   (exit $ac_status); } &&
39578          { ac_try='test -z "$ac_c_werror_flag"
39579                          || test ! -s conftest.err'
39580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39581   (eval $ac_try) 2>&5
39582   ac_status=$?
39583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39584   (exit $ac_status); }; } &&
39585          { ac_try='test -s conftest$ac_exeext'
39586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39587   (eval $ac_try) 2>&5
39588   ac_status=$?
39589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590   (exit $ac_status); }; }; then
39591   ol_cv_db_db_4_1=yes
39592 else
39593   echo "$as_me: failed program was:" >&5
39594 sed 's/^/| /' conftest.$ac_ext >&5
39595
39596 ol_cv_db_db_4_1=no
39597 fi
39598 rm -f conftest.err conftest.$ac_objext \
39599       conftest$ac_exeext conftest.$ac_ext
39600
39601         LIBS="$ol_LIBS"
39602
39603 fi
39604 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39605 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39606
39607         if test $ol_cv_db_db_4_1 = yes ; then
39608                 ol_cv_lib_db=-ldb-4-1
39609         fi
39610 fi
39611
39612 if test $ol_cv_lib_db = no ; then
39613         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39614 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39615 if test "${ol_cv_db_db3+set}" = set; then
39616   echo $ECHO_N "(cached) $ECHO_C" >&6
39617 else
39618
39619         ol_DB_LIB=-ldb3
39620         ol_LIBS=$LIBS
39621         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39622
39623         cat >conftest.$ac_ext <<_ACEOF
39624 /* confdefs.h.  */
39625 _ACEOF
39626 cat confdefs.h >>conftest.$ac_ext
39627 cat >>conftest.$ac_ext <<_ACEOF
39628 /* end confdefs.h.  */
39629
39630 #ifdef HAVE_DB_185_H
39631 # include <db_185.h>
39632 #else
39633 # include <db.h>
39634 #endif
39635
39636 #ifndef DB_VERSION_MAJOR
39637 # define DB_VERSION_MAJOR 1
39638 #endif
39639
39640 #ifndef NULL
39641 #define NULL ((void*)0)
39642 #endif
39643
39644 int
39645 main ()
39646 {
39647
39648 #if DB_VERSION_MAJOR > 1
39649         {
39650                 char *version;
39651                 int major, minor, patch;
39652
39653                 version = db_version( &major, &minor, &patch );
39654
39655                 if( major != DB_VERSION_MAJOR ||
39656                         minor < DB_VERSION_MINOR )
39657                 {
39658                         printf("Berkeley DB version mismatch\n"
39659                                 "\theader: %s\n\tlibrary: %s\n",
39660                                 DB_VERSION_STRING, version);
39661                         return 1;
39662                 }
39663         }
39664 #endif
39665
39666 #if DB_VERSION_MAJOR > 2
39667         db_env_create( NULL, 0 );
39668 #elif DB_VERSION_MAJOR > 1
39669         db_appexit( NULL );
39670 #else
39671         (void) dbopen( NULL, 0, 0, 0, NULL);
39672 #endif
39673
39674   ;
39675   return 0;
39676 }
39677 _ACEOF
39678 rm -f conftest.$ac_objext conftest$ac_exeext
39679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39680   (eval $ac_link) 2>conftest.er1
39681   ac_status=$?
39682   grep -v '^ *+' conftest.er1 >conftest.err
39683   rm -f conftest.er1
39684   cat conftest.err >&5
39685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39686   (exit $ac_status); } &&
39687          { ac_try='test -z "$ac_c_werror_flag"
39688                          || test ! -s conftest.err'
39689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39690   (eval $ac_try) 2>&5
39691   ac_status=$?
39692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39693   (exit $ac_status); }; } &&
39694          { ac_try='test -s conftest$ac_exeext'
39695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39696   (eval $ac_try) 2>&5
39697   ac_status=$?
39698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39699   (exit $ac_status); }; }; then
39700   ol_cv_db_db3=yes
39701 else
39702   echo "$as_me: failed program was:" >&5
39703 sed 's/^/| /' conftest.$ac_ext >&5
39704
39705 ol_cv_db_db3=no
39706 fi
39707 rm -f conftest.err conftest.$ac_objext \
39708       conftest$ac_exeext conftest.$ac_ext
39709
39710         LIBS="$ol_LIBS"
39711
39712 fi
39713 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39714 echo "${ECHO_T}$ol_cv_db_db3" >&6
39715
39716         if test $ol_cv_db_db3 = yes ; then
39717                 ol_cv_lib_db=-ldb3
39718         fi
39719 fi
39720
39721 if test $ol_cv_lib_db = no ; then
39722         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39723 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39724 if test "${ol_cv_db_db_3+set}" = set; then
39725   echo $ECHO_N "(cached) $ECHO_C" >&6
39726 else
39727
39728         ol_DB_LIB=-ldb-3
39729         ol_LIBS=$LIBS
39730         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39731
39732         cat >conftest.$ac_ext <<_ACEOF
39733 /* confdefs.h.  */
39734 _ACEOF
39735 cat confdefs.h >>conftest.$ac_ext
39736 cat >>conftest.$ac_ext <<_ACEOF
39737 /* end confdefs.h.  */
39738
39739 #ifdef HAVE_DB_185_H
39740 # include <db_185.h>
39741 #else
39742 # include <db.h>
39743 #endif
39744
39745 #ifndef DB_VERSION_MAJOR
39746 # define DB_VERSION_MAJOR 1
39747 #endif
39748
39749 #ifndef NULL
39750 #define NULL ((void*)0)
39751 #endif
39752
39753 int
39754 main ()
39755 {
39756
39757 #if DB_VERSION_MAJOR > 1
39758         {
39759                 char *version;
39760                 int major, minor, patch;
39761
39762                 version = db_version( &major, &minor, &patch );
39763
39764                 if( major != DB_VERSION_MAJOR ||
39765                         minor < DB_VERSION_MINOR )
39766                 {
39767                         printf("Berkeley DB version mismatch\n"
39768                                 "\theader: %s\n\tlibrary: %s\n",
39769                                 DB_VERSION_STRING, version);
39770                         return 1;
39771                 }
39772         }
39773 #endif
39774
39775 #if DB_VERSION_MAJOR > 2
39776         db_env_create( NULL, 0 );
39777 #elif DB_VERSION_MAJOR > 1
39778         db_appexit( NULL );
39779 #else
39780         (void) dbopen( NULL, 0, 0, 0, NULL);
39781 #endif
39782
39783   ;
39784   return 0;
39785 }
39786 _ACEOF
39787 rm -f conftest.$ac_objext conftest$ac_exeext
39788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39789   (eval $ac_link) 2>conftest.er1
39790   ac_status=$?
39791   grep -v '^ *+' conftest.er1 >conftest.err
39792   rm -f conftest.er1
39793   cat conftest.err >&5
39794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39795   (exit $ac_status); } &&
39796          { ac_try='test -z "$ac_c_werror_flag"
39797                          || test ! -s conftest.err'
39798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39799   (eval $ac_try) 2>&5
39800   ac_status=$?
39801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39802   (exit $ac_status); }; } &&
39803          { ac_try='test -s conftest$ac_exeext'
39804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39805   (eval $ac_try) 2>&5
39806   ac_status=$?
39807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39808   (exit $ac_status); }; }; then
39809   ol_cv_db_db_3=yes
39810 else
39811   echo "$as_me: failed program was:" >&5
39812 sed 's/^/| /' conftest.$ac_ext >&5
39813
39814 ol_cv_db_db_3=no
39815 fi
39816 rm -f conftest.err conftest.$ac_objext \
39817       conftest$ac_exeext conftest.$ac_ext
39818
39819         LIBS="$ol_LIBS"
39820
39821 fi
39822 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39823 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39824
39825         if test $ol_cv_db_db_3 = yes ; then
39826                 ol_cv_lib_db=-ldb-3
39827         fi
39828 fi
39829
39830 if test $ol_cv_lib_db = no ; then
39831         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39832 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39833 if test "${ol_cv_db_db2+set}" = set; then
39834   echo $ECHO_N "(cached) $ECHO_C" >&6
39835 else
39836
39837         ol_DB_LIB=-ldb2
39838         ol_LIBS=$LIBS
39839         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39840
39841         cat >conftest.$ac_ext <<_ACEOF
39842 /* confdefs.h.  */
39843 _ACEOF
39844 cat confdefs.h >>conftest.$ac_ext
39845 cat >>conftest.$ac_ext <<_ACEOF
39846 /* end confdefs.h.  */
39847
39848 #ifdef HAVE_DB_185_H
39849 # include <db_185.h>
39850 #else
39851 # include <db.h>
39852 #endif
39853
39854 #ifndef DB_VERSION_MAJOR
39855 # define DB_VERSION_MAJOR 1
39856 #endif
39857
39858 #ifndef NULL
39859 #define NULL ((void*)0)
39860 #endif
39861
39862 int
39863 main ()
39864 {
39865
39866 #if DB_VERSION_MAJOR > 1
39867         {
39868                 char *version;
39869                 int major, minor, patch;
39870
39871                 version = db_version( &major, &minor, &patch );
39872
39873                 if( major != DB_VERSION_MAJOR ||
39874                         minor < DB_VERSION_MINOR )
39875                 {
39876                         printf("Berkeley DB version mismatch\n"
39877                                 "\theader: %s\n\tlibrary: %s\n",
39878                                 DB_VERSION_STRING, version);
39879                         return 1;
39880                 }
39881         }
39882 #endif
39883
39884 #if DB_VERSION_MAJOR > 2
39885         db_env_create( NULL, 0 );
39886 #elif DB_VERSION_MAJOR > 1
39887         db_appexit( NULL );
39888 #else
39889         (void) dbopen( NULL, 0, 0, 0, NULL);
39890 #endif
39891
39892   ;
39893   return 0;
39894 }
39895 _ACEOF
39896 rm -f conftest.$ac_objext conftest$ac_exeext
39897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39898   (eval $ac_link) 2>conftest.er1
39899   ac_status=$?
39900   grep -v '^ *+' conftest.er1 >conftest.err
39901   rm -f conftest.er1
39902   cat conftest.err >&5
39903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39904   (exit $ac_status); } &&
39905          { ac_try='test -z "$ac_c_werror_flag"
39906                          || test ! -s conftest.err'
39907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39908   (eval $ac_try) 2>&5
39909   ac_status=$?
39910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39911   (exit $ac_status); }; } &&
39912          { ac_try='test -s conftest$ac_exeext'
39913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39914   (eval $ac_try) 2>&5
39915   ac_status=$?
39916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39917   (exit $ac_status); }; }; then
39918   ol_cv_db_db2=yes
39919 else
39920   echo "$as_me: failed program was:" >&5
39921 sed 's/^/| /' conftest.$ac_ext >&5
39922
39923 ol_cv_db_db2=no
39924 fi
39925 rm -f conftest.err conftest.$ac_objext \
39926       conftest$ac_exeext conftest.$ac_ext
39927
39928         LIBS="$ol_LIBS"
39929
39930 fi
39931 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
39932 echo "${ECHO_T}$ol_cv_db_db2" >&6
39933
39934         if test $ol_cv_db_db2 = yes ; then
39935                 ol_cv_lib_db=-ldb2
39936         fi
39937 fi
39938
39939 if test $ol_cv_lib_db = no ; then
39940         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
39941 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
39942 if test "${ol_cv_db_db_2+set}" = set; then
39943   echo $ECHO_N "(cached) $ECHO_C" >&6
39944 else
39945
39946         ol_DB_LIB=-ldb-2
39947         ol_LIBS=$LIBS
39948         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39949
39950         cat >conftest.$ac_ext <<_ACEOF
39951 /* confdefs.h.  */
39952 _ACEOF
39953 cat confdefs.h >>conftest.$ac_ext
39954 cat >>conftest.$ac_ext <<_ACEOF
39955 /* end confdefs.h.  */
39956
39957 #ifdef HAVE_DB_185_H
39958 # include <db_185.h>
39959 #else
39960 # include <db.h>
39961 #endif
39962
39963 #ifndef DB_VERSION_MAJOR
39964 # define DB_VERSION_MAJOR 1
39965 #endif
39966
39967 #ifndef NULL
39968 #define NULL ((void*)0)
39969 #endif
39970
39971 int
39972 main ()
39973 {
39974
39975 #if DB_VERSION_MAJOR > 1
39976         {
39977                 char *version;
39978                 int major, minor, patch;
39979
39980                 version = db_version( &major, &minor, &patch );
39981
39982                 if( major != DB_VERSION_MAJOR ||
39983                         minor < DB_VERSION_MINOR )
39984                 {
39985                         printf("Berkeley DB version mismatch\n"
39986                                 "\theader: %s\n\tlibrary: %s\n",
39987                                 DB_VERSION_STRING, version);
39988                         return 1;
39989                 }
39990         }
39991 #endif
39992
39993 #if DB_VERSION_MAJOR > 2
39994         db_env_create( NULL, 0 );
39995 #elif DB_VERSION_MAJOR > 1
39996         db_appexit( NULL );
39997 #else
39998         (void) dbopen( NULL, 0, 0, 0, NULL);
39999 #endif
40000
40001   ;
40002   return 0;
40003 }
40004 _ACEOF
40005 rm -f conftest.$ac_objext conftest$ac_exeext
40006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40007   (eval $ac_link) 2>conftest.er1
40008   ac_status=$?
40009   grep -v '^ *+' conftest.er1 >conftest.err
40010   rm -f conftest.er1
40011   cat conftest.err >&5
40012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40013   (exit $ac_status); } &&
40014          { ac_try='test -z "$ac_c_werror_flag"
40015                          || test ! -s conftest.err'
40016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40017   (eval $ac_try) 2>&5
40018   ac_status=$?
40019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40020   (exit $ac_status); }; } &&
40021          { ac_try='test -s conftest$ac_exeext'
40022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40023   (eval $ac_try) 2>&5
40024   ac_status=$?
40025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40026   (exit $ac_status); }; }; then
40027   ol_cv_db_db_2=yes
40028 else
40029   echo "$as_me: failed program was:" >&5
40030 sed 's/^/| /' conftest.$ac_ext >&5
40031
40032 ol_cv_db_db_2=no
40033 fi
40034 rm -f conftest.err conftest.$ac_objext \
40035       conftest$ac_exeext conftest.$ac_ext
40036
40037         LIBS="$ol_LIBS"
40038
40039 fi
40040 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40041 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40042
40043         if test $ol_cv_db_db_2 = yes ; then
40044                 ol_cv_lib_db=-ldb-2
40045         fi
40046 fi
40047
40048 if test $ol_cv_lib_db = no ; then
40049         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40050 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40051 if test "${ol_cv_db_db1+set}" = set; then
40052   echo $ECHO_N "(cached) $ECHO_C" >&6
40053 else
40054
40055         ol_DB_LIB=-ldb1
40056         ol_LIBS=$LIBS
40057         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40058
40059         cat >conftest.$ac_ext <<_ACEOF
40060 /* confdefs.h.  */
40061 _ACEOF
40062 cat confdefs.h >>conftest.$ac_ext
40063 cat >>conftest.$ac_ext <<_ACEOF
40064 /* end confdefs.h.  */
40065
40066 #ifdef HAVE_DB_185_H
40067 # include <db_185.h>
40068 #else
40069 # include <db.h>
40070 #endif
40071
40072 #ifndef DB_VERSION_MAJOR
40073 # define DB_VERSION_MAJOR 1
40074 #endif
40075
40076 #ifndef NULL
40077 #define NULL ((void*)0)
40078 #endif
40079
40080 int
40081 main ()
40082 {
40083
40084 #if DB_VERSION_MAJOR > 1
40085         {
40086                 char *version;
40087                 int major, minor, patch;
40088
40089                 version = db_version( &major, &minor, &patch );
40090
40091                 if( major != DB_VERSION_MAJOR ||
40092                         minor < DB_VERSION_MINOR )
40093                 {
40094                         printf("Berkeley DB version mismatch\n"
40095                                 "\theader: %s\n\tlibrary: %s\n",
40096                                 DB_VERSION_STRING, version);
40097                         return 1;
40098                 }
40099         }
40100 #endif
40101
40102 #if DB_VERSION_MAJOR > 2
40103         db_env_create( NULL, 0 );
40104 #elif DB_VERSION_MAJOR > 1
40105         db_appexit( NULL );
40106 #else
40107         (void) dbopen( NULL, 0, 0, 0, NULL);
40108 #endif
40109
40110   ;
40111   return 0;
40112 }
40113 _ACEOF
40114 rm -f conftest.$ac_objext conftest$ac_exeext
40115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40116   (eval $ac_link) 2>conftest.er1
40117   ac_status=$?
40118   grep -v '^ *+' conftest.er1 >conftest.err
40119   rm -f conftest.er1
40120   cat conftest.err >&5
40121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40122   (exit $ac_status); } &&
40123          { ac_try='test -z "$ac_c_werror_flag"
40124                          || test ! -s conftest.err'
40125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40126   (eval $ac_try) 2>&5
40127   ac_status=$?
40128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40129   (exit $ac_status); }; } &&
40130          { ac_try='test -s conftest$ac_exeext'
40131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40132   (eval $ac_try) 2>&5
40133   ac_status=$?
40134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40135   (exit $ac_status); }; }; then
40136   ol_cv_db_db1=yes
40137 else
40138   echo "$as_me: failed program was:" >&5
40139 sed 's/^/| /' conftest.$ac_ext >&5
40140
40141 ol_cv_db_db1=no
40142 fi
40143 rm -f conftest.err conftest.$ac_objext \
40144       conftest$ac_exeext conftest.$ac_ext
40145
40146         LIBS="$ol_LIBS"
40147
40148 fi
40149 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40150 echo "${ECHO_T}$ol_cv_db_db1" >&6
40151
40152         if test $ol_cv_db_db1 = yes ; then
40153                 ol_cv_lib_db=-ldb1
40154         fi
40155 fi
40156
40157 if test $ol_cv_lib_db = no ; then
40158         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40159 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40160 if test "${ol_cv_db_db_1+set}" = set; then
40161   echo $ECHO_N "(cached) $ECHO_C" >&6
40162 else
40163
40164         ol_DB_LIB=-ldb-1
40165         ol_LIBS=$LIBS
40166         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40167
40168         cat >conftest.$ac_ext <<_ACEOF
40169 /* confdefs.h.  */
40170 _ACEOF
40171 cat confdefs.h >>conftest.$ac_ext
40172 cat >>conftest.$ac_ext <<_ACEOF
40173 /* end confdefs.h.  */
40174
40175 #ifdef HAVE_DB_185_H
40176 # include <db_185.h>
40177 #else
40178 # include <db.h>
40179 #endif
40180
40181 #ifndef DB_VERSION_MAJOR
40182 # define DB_VERSION_MAJOR 1
40183 #endif
40184
40185 #ifndef NULL
40186 #define NULL ((void*)0)
40187 #endif
40188
40189 int
40190 main ()
40191 {
40192
40193 #if DB_VERSION_MAJOR > 1
40194         {
40195                 char *version;
40196                 int major, minor, patch;
40197
40198                 version = db_version( &major, &minor, &patch );
40199
40200                 if( major != DB_VERSION_MAJOR ||
40201                         minor < DB_VERSION_MINOR )
40202                 {
40203                         printf("Berkeley DB version mismatch\n"
40204                                 "\theader: %s\n\tlibrary: %s\n",
40205                                 DB_VERSION_STRING, version);
40206                         return 1;
40207                 }
40208         }
40209 #endif
40210
40211 #if DB_VERSION_MAJOR > 2
40212         db_env_create( NULL, 0 );
40213 #elif DB_VERSION_MAJOR > 1
40214         db_appexit( NULL );
40215 #else
40216         (void) dbopen( NULL, 0, 0, 0, NULL);
40217 #endif
40218
40219   ;
40220   return 0;
40221 }
40222 _ACEOF
40223 rm -f conftest.$ac_objext conftest$ac_exeext
40224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40225   (eval $ac_link) 2>conftest.er1
40226   ac_status=$?
40227   grep -v '^ *+' conftest.er1 >conftest.err
40228   rm -f conftest.er1
40229   cat conftest.err >&5
40230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40231   (exit $ac_status); } &&
40232          { ac_try='test -z "$ac_c_werror_flag"
40233                          || test ! -s conftest.err'
40234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40235   (eval $ac_try) 2>&5
40236   ac_status=$?
40237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40238   (exit $ac_status); }; } &&
40239          { ac_try='test -s conftest$ac_exeext'
40240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40241   (eval $ac_try) 2>&5
40242   ac_status=$?
40243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40244   (exit $ac_status); }; }; then
40245   ol_cv_db_db_1=yes
40246 else
40247   echo "$as_me: failed program was:" >&5
40248 sed 's/^/| /' conftest.$ac_ext >&5
40249
40250 ol_cv_db_db_1=no
40251 fi
40252 rm -f conftest.err conftest.$ac_objext \
40253       conftest$ac_exeext conftest.$ac_ext
40254
40255         LIBS="$ol_LIBS"
40256
40257 fi
40258 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40259 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40260
40261         if test $ol_cv_db_db_1 = yes ; then
40262                 ol_cv_lib_db=-ldb-1
40263         fi
40264 fi
40265
40266
40267                 if test "$ol_cv_lib_db" != no ; then
40268                         ol_cv_berkeley_db=yes
40269                 fi
40270         fi
40271 fi
40272
40273         else
40274                 ol_cv_berkeley_db=no
40275
40276 for ac_header in db.h
40277 do
40278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40280   echo "$as_me:$LINENO: checking for $ac_header" >&5
40281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40283   echo $ECHO_N "(cached) $ECHO_C" >&6
40284 fi
40285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40287 else
40288   # Is the header compilable?
40289 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40291 cat >conftest.$ac_ext <<_ACEOF
40292 /* confdefs.h.  */
40293 _ACEOF
40294 cat confdefs.h >>conftest.$ac_ext
40295 cat >>conftest.$ac_ext <<_ACEOF
40296 /* end confdefs.h.  */
40297 $ac_includes_default
40298 #include <$ac_header>
40299 _ACEOF
40300 rm -f conftest.$ac_objext
40301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40302   (eval $ac_compile) 2>conftest.er1
40303   ac_status=$?
40304   grep -v '^ *+' conftest.er1 >conftest.err
40305   rm -f conftest.er1
40306   cat conftest.err >&5
40307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40308   (exit $ac_status); } &&
40309          { ac_try='test -z "$ac_c_werror_flag"
40310                          || test ! -s conftest.err'
40311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40312   (eval $ac_try) 2>&5
40313   ac_status=$?
40314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40315   (exit $ac_status); }; } &&
40316          { ac_try='test -s conftest.$ac_objext'
40317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40318   (eval $ac_try) 2>&5
40319   ac_status=$?
40320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40321   (exit $ac_status); }; }; then
40322   ac_header_compiler=yes
40323 else
40324   echo "$as_me: failed program was:" >&5
40325 sed 's/^/| /' conftest.$ac_ext >&5
40326
40327 ac_header_compiler=no
40328 fi
40329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40331 echo "${ECHO_T}$ac_header_compiler" >&6
40332
40333 # Is the header present?
40334 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40336 cat >conftest.$ac_ext <<_ACEOF
40337 /* confdefs.h.  */
40338 _ACEOF
40339 cat confdefs.h >>conftest.$ac_ext
40340 cat >>conftest.$ac_ext <<_ACEOF
40341 /* end confdefs.h.  */
40342 #include <$ac_header>
40343 _ACEOF
40344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40345   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40346   ac_status=$?
40347   grep -v '^ *+' conftest.er1 >conftest.err
40348   rm -f conftest.er1
40349   cat conftest.err >&5
40350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40351   (exit $ac_status); } >/dev/null; then
40352   if test -s conftest.err; then
40353     ac_cpp_err=$ac_c_preproc_warn_flag
40354     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40355   else
40356     ac_cpp_err=
40357   fi
40358 else
40359   ac_cpp_err=yes
40360 fi
40361 if test -z "$ac_cpp_err"; then
40362   ac_header_preproc=yes
40363 else
40364   echo "$as_me: failed program was:" >&5
40365 sed 's/^/| /' conftest.$ac_ext >&5
40366
40367   ac_header_preproc=no
40368 fi
40369 rm -f conftest.err conftest.$ac_ext
40370 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40371 echo "${ECHO_T}$ac_header_preproc" >&6
40372
40373 # So?  What about this header?
40374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40375   yes:no: )
40376     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40380     ac_header_preproc=yes
40381     ;;
40382   no:yes:* )
40383     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40385     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40386 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40387     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40389     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40390 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40393     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40395     (
40396       cat <<\_ASBOX
40397 ## ------------------------------------------ ##
40398 ## Report this to the AC_PACKAGE_NAME lists.  ##
40399 ## ------------------------------------------ ##
40400 _ASBOX
40401     ) |
40402       sed "s/^/$as_me: WARNING:     /" >&2
40403     ;;
40404 esac
40405 echo "$as_me:$LINENO: checking for $ac_header" >&5
40406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40408   echo $ECHO_N "(cached) $ECHO_C" >&6
40409 else
40410   eval "$as_ac_Header=\$ac_header_preproc"
40411 fi
40412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40414
40415 fi
40416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40417   cat >>confdefs.h <<_ACEOF
40418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40419 _ACEOF
40420
40421 fi
40422
40423 done
40424
40425 if test $ac_cv_header_db_h = yes; then
40426         ol_cv_lib_db=no
40427 if test $ol_cv_lib_db = no ; then
40428         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40429 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40430 if test "${ol_cv_db_none+set}" = set; then
40431   echo $ECHO_N "(cached) $ECHO_C" >&6
40432 else
40433
40434         ol_DB_LIB=
40435         ol_LIBS=$LIBS
40436         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40437
40438         cat >conftest.$ac_ext <<_ACEOF
40439 /* confdefs.h.  */
40440 _ACEOF
40441 cat confdefs.h >>conftest.$ac_ext
40442 cat >>conftest.$ac_ext <<_ACEOF
40443 /* end confdefs.h.  */
40444
40445 #ifdef HAVE_DB_185_H
40446 # include <db_185.h>
40447 #else
40448 # include <db.h>
40449 #endif
40450
40451 #ifndef DB_VERSION_MAJOR
40452 # define DB_VERSION_MAJOR 1
40453 #endif
40454
40455 #ifndef NULL
40456 #define NULL ((void*)0)
40457 #endif
40458
40459 int
40460 main ()
40461 {
40462
40463 #if DB_VERSION_MAJOR > 1
40464         {
40465                 char *version;
40466                 int major, minor, patch;
40467
40468                 version = db_version( &major, &minor, &patch );
40469
40470                 if( major != DB_VERSION_MAJOR ||
40471                         minor < DB_VERSION_MINOR )
40472                 {
40473                         printf("Berkeley DB version mismatch\n"
40474                                 "\theader: %s\n\tlibrary: %s\n",
40475                                 DB_VERSION_STRING, version);
40476                         return 1;
40477                 }
40478         }
40479 #endif
40480
40481 #if DB_VERSION_MAJOR > 2
40482         db_env_create( NULL, 0 );
40483 #elif DB_VERSION_MAJOR > 1
40484         db_appexit( NULL );
40485 #else
40486         (void) dbopen( NULL, 0, 0, 0, NULL);
40487 #endif
40488
40489   ;
40490   return 0;
40491 }
40492 _ACEOF
40493 rm -f conftest.$ac_objext conftest$ac_exeext
40494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40495   (eval $ac_link) 2>conftest.er1
40496   ac_status=$?
40497   grep -v '^ *+' conftest.er1 >conftest.err
40498   rm -f conftest.er1
40499   cat conftest.err >&5
40500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40501   (exit $ac_status); } &&
40502          { ac_try='test -z "$ac_c_werror_flag"
40503                          || test ! -s conftest.err'
40504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40505   (eval $ac_try) 2>&5
40506   ac_status=$?
40507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40508   (exit $ac_status); }; } &&
40509          { ac_try='test -s conftest$ac_exeext'
40510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40511   (eval $ac_try) 2>&5
40512   ac_status=$?
40513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40514   (exit $ac_status); }; }; then
40515   ol_cv_db_none=yes
40516 else
40517   echo "$as_me: failed program was:" >&5
40518 sed 's/^/| /' conftest.$ac_ext >&5
40519
40520 ol_cv_db_none=no
40521 fi
40522 rm -f conftest.err conftest.$ac_objext \
40523       conftest$ac_exeext conftest.$ac_ext
40524
40525         LIBS="$ol_LIBS"
40526
40527 fi
40528 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40529 echo "${ECHO_T}$ol_cv_db_none" >&6
40530
40531         if test $ol_cv_db_none = yes ; then
40532                 ol_cv_lib_db=yes
40533         fi
40534 fi
40535
40536 if test $ol_cv_lib_db = no ; then
40537         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40538 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40539 if test "${ol_cv_db_db43+set}" = set; then
40540   echo $ECHO_N "(cached) $ECHO_C" >&6
40541 else
40542
40543         ol_DB_LIB=-ldb43
40544         ol_LIBS=$LIBS
40545         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40546
40547         cat >conftest.$ac_ext <<_ACEOF
40548 /* confdefs.h.  */
40549 _ACEOF
40550 cat confdefs.h >>conftest.$ac_ext
40551 cat >>conftest.$ac_ext <<_ACEOF
40552 /* end confdefs.h.  */
40553
40554 #ifdef HAVE_DB_185_H
40555 # include <db_185.h>
40556 #else
40557 # include <db.h>
40558 #endif
40559
40560 #ifndef DB_VERSION_MAJOR
40561 # define DB_VERSION_MAJOR 1
40562 #endif
40563
40564 #ifndef NULL
40565 #define NULL ((void*)0)
40566 #endif
40567
40568 int
40569 main ()
40570 {
40571
40572 #if DB_VERSION_MAJOR > 1
40573         {
40574                 char *version;
40575                 int major, minor, patch;
40576
40577                 version = db_version( &major, &minor, &patch );
40578
40579                 if( major != DB_VERSION_MAJOR ||
40580                         minor < DB_VERSION_MINOR )
40581                 {
40582                         printf("Berkeley DB version mismatch\n"
40583                                 "\theader: %s\n\tlibrary: %s\n",
40584                                 DB_VERSION_STRING, version);
40585                         return 1;
40586                 }
40587         }
40588 #endif
40589
40590 #if DB_VERSION_MAJOR > 2
40591         db_env_create( NULL, 0 );
40592 #elif DB_VERSION_MAJOR > 1
40593         db_appexit( NULL );
40594 #else
40595         (void) dbopen( NULL, 0, 0, 0, NULL);
40596 #endif
40597
40598   ;
40599   return 0;
40600 }
40601 _ACEOF
40602 rm -f conftest.$ac_objext conftest$ac_exeext
40603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40604   (eval $ac_link) 2>conftest.er1
40605   ac_status=$?
40606   grep -v '^ *+' conftest.er1 >conftest.err
40607   rm -f conftest.er1
40608   cat conftest.err >&5
40609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40610   (exit $ac_status); } &&
40611          { ac_try='test -z "$ac_c_werror_flag"
40612                          || test ! -s conftest.err'
40613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40614   (eval $ac_try) 2>&5
40615   ac_status=$?
40616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40617   (exit $ac_status); }; } &&
40618          { ac_try='test -s conftest$ac_exeext'
40619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40620   (eval $ac_try) 2>&5
40621   ac_status=$?
40622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40623   (exit $ac_status); }; }; then
40624   ol_cv_db_db43=yes
40625 else
40626   echo "$as_me: failed program was:" >&5
40627 sed 's/^/| /' conftest.$ac_ext >&5
40628
40629 ol_cv_db_db43=no
40630 fi
40631 rm -f conftest.err conftest.$ac_objext \
40632       conftest$ac_exeext conftest.$ac_ext
40633
40634         LIBS="$ol_LIBS"
40635
40636 fi
40637 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40638 echo "${ECHO_T}$ol_cv_db_db43" >&6
40639
40640         if test $ol_cv_db_db43 = yes ; then
40641                 ol_cv_lib_db=-ldb43
40642         fi
40643 fi
40644
40645 if test $ol_cv_lib_db = no ; then
40646         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40647 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40648 if test "${ol_cv_db_db_43+set}" = set; then
40649   echo $ECHO_N "(cached) $ECHO_C" >&6
40650 else
40651
40652         ol_DB_LIB=-ldb-43
40653         ol_LIBS=$LIBS
40654         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40655
40656         cat >conftest.$ac_ext <<_ACEOF
40657 /* confdefs.h.  */
40658 _ACEOF
40659 cat confdefs.h >>conftest.$ac_ext
40660 cat >>conftest.$ac_ext <<_ACEOF
40661 /* end confdefs.h.  */
40662
40663 #ifdef HAVE_DB_185_H
40664 # include <db_185.h>
40665 #else
40666 # include <db.h>
40667 #endif
40668
40669 #ifndef DB_VERSION_MAJOR
40670 # define DB_VERSION_MAJOR 1
40671 #endif
40672
40673 #ifndef NULL
40674 #define NULL ((void*)0)
40675 #endif
40676
40677 int
40678 main ()
40679 {
40680
40681 #if DB_VERSION_MAJOR > 1
40682         {
40683                 char *version;
40684                 int major, minor, patch;
40685
40686                 version = db_version( &major, &minor, &patch );
40687
40688                 if( major != DB_VERSION_MAJOR ||
40689                         minor < DB_VERSION_MINOR )
40690                 {
40691                         printf("Berkeley DB version mismatch\n"
40692                                 "\theader: %s\n\tlibrary: %s\n",
40693                                 DB_VERSION_STRING, version);
40694                         return 1;
40695                 }
40696         }
40697 #endif
40698
40699 #if DB_VERSION_MAJOR > 2
40700         db_env_create( NULL, 0 );
40701 #elif DB_VERSION_MAJOR > 1
40702         db_appexit( NULL );
40703 #else
40704         (void) dbopen( NULL, 0, 0, 0, NULL);
40705 #endif
40706
40707   ;
40708   return 0;
40709 }
40710 _ACEOF
40711 rm -f conftest.$ac_objext conftest$ac_exeext
40712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40713   (eval $ac_link) 2>conftest.er1
40714   ac_status=$?
40715   grep -v '^ *+' conftest.er1 >conftest.err
40716   rm -f conftest.er1
40717   cat conftest.err >&5
40718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40719   (exit $ac_status); } &&
40720          { ac_try='test -z "$ac_c_werror_flag"
40721                          || test ! -s conftest.err'
40722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40723   (eval $ac_try) 2>&5
40724   ac_status=$?
40725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40726   (exit $ac_status); }; } &&
40727          { ac_try='test -s conftest$ac_exeext'
40728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40729   (eval $ac_try) 2>&5
40730   ac_status=$?
40731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40732   (exit $ac_status); }; }; then
40733   ol_cv_db_db_43=yes
40734 else
40735   echo "$as_me: failed program was:" >&5
40736 sed 's/^/| /' conftest.$ac_ext >&5
40737
40738 ol_cv_db_db_43=no
40739 fi
40740 rm -f conftest.err conftest.$ac_objext \
40741       conftest$ac_exeext conftest.$ac_ext
40742
40743         LIBS="$ol_LIBS"
40744
40745 fi
40746 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40747 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40748
40749         if test $ol_cv_db_db_43 = yes ; then
40750                 ol_cv_lib_db=-ldb-43
40751         fi
40752 fi
40753
40754 if test $ol_cv_lib_db = no ; then
40755         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40756 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40757 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40758   echo $ECHO_N "(cached) $ECHO_C" >&6
40759 else
40760
40761         ol_DB_LIB=-ldb-4.3
40762         ol_LIBS=$LIBS
40763         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40764
40765         cat >conftest.$ac_ext <<_ACEOF
40766 /* confdefs.h.  */
40767 _ACEOF
40768 cat confdefs.h >>conftest.$ac_ext
40769 cat >>conftest.$ac_ext <<_ACEOF
40770 /* end confdefs.h.  */
40771
40772 #ifdef HAVE_DB_185_H
40773 # include <db_185.h>
40774 #else
40775 # include <db.h>
40776 #endif
40777
40778 #ifndef DB_VERSION_MAJOR
40779 # define DB_VERSION_MAJOR 1
40780 #endif
40781
40782 #ifndef NULL
40783 #define NULL ((void*)0)
40784 #endif
40785
40786 int
40787 main ()
40788 {
40789
40790 #if DB_VERSION_MAJOR > 1
40791         {
40792                 char *version;
40793                 int major, minor, patch;
40794
40795                 version = db_version( &major, &minor, &patch );
40796
40797                 if( major != DB_VERSION_MAJOR ||
40798                         minor < DB_VERSION_MINOR )
40799                 {
40800                         printf("Berkeley DB version mismatch\n"
40801                                 "\theader: %s\n\tlibrary: %s\n",
40802                                 DB_VERSION_STRING, version);
40803                         return 1;
40804                 }
40805         }
40806 #endif
40807
40808 #if DB_VERSION_MAJOR > 2
40809         db_env_create( NULL, 0 );
40810 #elif DB_VERSION_MAJOR > 1
40811         db_appexit( NULL );
40812 #else
40813         (void) dbopen( NULL, 0, 0, 0, NULL);
40814 #endif
40815
40816   ;
40817   return 0;
40818 }
40819 _ACEOF
40820 rm -f conftest.$ac_objext conftest$ac_exeext
40821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40822   (eval $ac_link) 2>conftest.er1
40823   ac_status=$?
40824   grep -v '^ *+' conftest.er1 >conftest.err
40825   rm -f conftest.er1
40826   cat conftest.err >&5
40827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40828   (exit $ac_status); } &&
40829          { ac_try='test -z "$ac_c_werror_flag"
40830                          || test ! -s conftest.err'
40831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40832   (eval $ac_try) 2>&5
40833   ac_status=$?
40834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40835   (exit $ac_status); }; } &&
40836          { ac_try='test -s conftest$ac_exeext'
40837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40838   (eval $ac_try) 2>&5
40839   ac_status=$?
40840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40841   (exit $ac_status); }; }; then
40842   ol_cv_db_db_4_dot_3=yes
40843 else
40844   echo "$as_me: failed program was:" >&5
40845 sed 's/^/| /' conftest.$ac_ext >&5
40846
40847 ol_cv_db_db_4_dot_3=no
40848 fi
40849 rm -f conftest.err conftest.$ac_objext \
40850       conftest$ac_exeext conftest.$ac_ext
40851
40852         LIBS="$ol_LIBS"
40853
40854 fi
40855 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40856 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40857
40858         if test $ol_cv_db_db_4_dot_3 = yes ; then
40859                 ol_cv_lib_db=-ldb-4.3
40860         fi
40861 fi
40862
40863 if test $ol_cv_lib_db = no ; then
40864         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40865 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40866 if test "${ol_cv_db_db_4_3+set}" = set; then
40867   echo $ECHO_N "(cached) $ECHO_C" >&6
40868 else
40869
40870         ol_DB_LIB=-ldb-4-3
40871         ol_LIBS=$LIBS
40872         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40873
40874         cat >conftest.$ac_ext <<_ACEOF
40875 /* confdefs.h.  */
40876 _ACEOF
40877 cat confdefs.h >>conftest.$ac_ext
40878 cat >>conftest.$ac_ext <<_ACEOF
40879 /* end confdefs.h.  */
40880
40881 #ifdef HAVE_DB_185_H
40882 # include <db_185.h>
40883 #else
40884 # include <db.h>
40885 #endif
40886
40887 #ifndef DB_VERSION_MAJOR
40888 # define DB_VERSION_MAJOR 1
40889 #endif
40890
40891 #ifndef NULL
40892 #define NULL ((void*)0)
40893 #endif
40894
40895 int
40896 main ()
40897 {
40898
40899 #if DB_VERSION_MAJOR > 1
40900         {
40901                 char *version;
40902                 int major, minor, patch;
40903
40904                 version = db_version( &major, &minor, &patch );
40905
40906                 if( major != DB_VERSION_MAJOR ||
40907                         minor < DB_VERSION_MINOR )
40908                 {
40909                         printf("Berkeley DB version mismatch\n"
40910                                 "\theader: %s\n\tlibrary: %s\n",
40911                                 DB_VERSION_STRING, version);
40912                         return 1;
40913                 }
40914         }
40915 #endif
40916
40917 #if DB_VERSION_MAJOR > 2
40918         db_env_create( NULL, 0 );
40919 #elif DB_VERSION_MAJOR > 1
40920         db_appexit( NULL );
40921 #else
40922         (void) dbopen( NULL, 0, 0, 0, NULL);
40923 #endif
40924
40925   ;
40926   return 0;
40927 }
40928 _ACEOF
40929 rm -f conftest.$ac_objext conftest$ac_exeext
40930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40931   (eval $ac_link) 2>conftest.er1
40932   ac_status=$?
40933   grep -v '^ *+' conftest.er1 >conftest.err
40934   rm -f conftest.er1
40935   cat conftest.err >&5
40936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40937   (exit $ac_status); } &&
40938          { ac_try='test -z "$ac_c_werror_flag"
40939                          || test ! -s conftest.err'
40940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40941   (eval $ac_try) 2>&5
40942   ac_status=$?
40943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40944   (exit $ac_status); }; } &&
40945          { ac_try='test -s conftest$ac_exeext'
40946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40947   (eval $ac_try) 2>&5
40948   ac_status=$?
40949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40950   (exit $ac_status); }; }; then
40951   ol_cv_db_db_4_3=yes
40952 else
40953   echo "$as_me: failed program was:" >&5
40954 sed 's/^/| /' conftest.$ac_ext >&5
40955
40956 ol_cv_db_db_4_3=no
40957 fi
40958 rm -f conftest.err conftest.$ac_objext \
40959       conftest$ac_exeext conftest.$ac_ext
40960
40961         LIBS="$ol_LIBS"
40962
40963 fi
40964 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
40965 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
40966
40967         if test $ol_cv_db_db_4_3 = yes ; then
40968                 ol_cv_lib_db=-ldb-4-3
40969         fi
40970 fi
40971
40972 if test $ol_cv_lib_db = no ; then
40973         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
40974 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
40975 if test "${ol_cv_db_db42+set}" = set; then
40976   echo $ECHO_N "(cached) $ECHO_C" >&6
40977 else
40978
40979         ol_DB_LIB=-ldb42
40980         ol_LIBS=$LIBS
40981         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40982
40983         cat >conftest.$ac_ext <<_ACEOF
40984 /* confdefs.h.  */
40985 _ACEOF
40986 cat confdefs.h >>conftest.$ac_ext
40987 cat >>conftest.$ac_ext <<_ACEOF
40988 /* end confdefs.h.  */
40989
40990 #ifdef HAVE_DB_185_H
40991 # include <db_185.h>
40992 #else
40993 # include <db.h>
40994 #endif
40995
40996 #ifndef DB_VERSION_MAJOR
40997 # define DB_VERSION_MAJOR 1
40998 #endif
40999
41000 #ifndef NULL
41001 #define NULL ((void*)0)
41002 #endif
41003
41004 int
41005 main ()
41006 {
41007
41008 #if DB_VERSION_MAJOR > 1
41009         {
41010                 char *version;
41011                 int major, minor, patch;
41012
41013                 version = db_version( &major, &minor, &patch );
41014
41015                 if( major != DB_VERSION_MAJOR ||
41016                         minor < DB_VERSION_MINOR )
41017                 {
41018                         printf("Berkeley DB version mismatch\n"
41019                                 "\theader: %s\n\tlibrary: %s\n",
41020                                 DB_VERSION_STRING, version);
41021                         return 1;
41022                 }
41023         }
41024 #endif
41025
41026 #if DB_VERSION_MAJOR > 2
41027         db_env_create( NULL, 0 );
41028 #elif DB_VERSION_MAJOR > 1
41029         db_appexit( NULL );
41030 #else
41031         (void) dbopen( NULL, 0, 0, 0, NULL);
41032 #endif
41033
41034   ;
41035   return 0;
41036 }
41037 _ACEOF
41038 rm -f conftest.$ac_objext conftest$ac_exeext
41039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41040   (eval $ac_link) 2>conftest.er1
41041   ac_status=$?
41042   grep -v '^ *+' conftest.er1 >conftest.err
41043   rm -f conftest.er1
41044   cat conftest.err >&5
41045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41046   (exit $ac_status); } &&
41047          { ac_try='test -z "$ac_c_werror_flag"
41048                          || test ! -s conftest.err'
41049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41050   (eval $ac_try) 2>&5
41051   ac_status=$?
41052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41053   (exit $ac_status); }; } &&
41054          { ac_try='test -s conftest$ac_exeext'
41055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41056   (eval $ac_try) 2>&5
41057   ac_status=$?
41058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41059   (exit $ac_status); }; }; then
41060   ol_cv_db_db42=yes
41061 else
41062   echo "$as_me: failed program was:" >&5
41063 sed 's/^/| /' conftest.$ac_ext >&5
41064
41065 ol_cv_db_db42=no
41066 fi
41067 rm -f conftest.err conftest.$ac_objext \
41068       conftest$ac_exeext conftest.$ac_ext
41069
41070         LIBS="$ol_LIBS"
41071
41072 fi
41073 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41074 echo "${ECHO_T}$ol_cv_db_db42" >&6
41075
41076         if test $ol_cv_db_db42 = yes ; then
41077                 ol_cv_lib_db=-ldb42
41078         fi
41079 fi
41080
41081 if test $ol_cv_lib_db = no ; then
41082         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41083 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41084 if test "${ol_cv_db_db_42+set}" = set; then
41085   echo $ECHO_N "(cached) $ECHO_C" >&6
41086 else
41087
41088         ol_DB_LIB=-ldb-42
41089         ol_LIBS=$LIBS
41090         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41091
41092         cat >conftest.$ac_ext <<_ACEOF
41093 /* confdefs.h.  */
41094 _ACEOF
41095 cat confdefs.h >>conftest.$ac_ext
41096 cat >>conftest.$ac_ext <<_ACEOF
41097 /* end confdefs.h.  */
41098
41099 #ifdef HAVE_DB_185_H
41100 # include <db_185.h>
41101 #else
41102 # include <db.h>
41103 #endif
41104
41105 #ifndef DB_VERSION_MAJOR
41106 # define DB_VERSION_MAJOR 1
41107 #endif
41108
41109 #ifndef NULL
41110 #define NULL ((void*)0)
41111 #endif
41112
41113 int
41114 main ()
41115 {
41116
41117 #if DB_VERSION_MAJOR > 1
41118         {
41119                 char *version;
41120                 int major, minor, patch;
41121
41122                 version = db_version( &major, &minor, &patch );
41123
41124                 if( major != DB_VERSION_MAJOR ||
41125                         minor < DB_VERSION_MINOR )
41126                 {
41127                         printf("Berkeley DB version mismatch\n"
41128                                 "\theader: %s\n\tlibrary: %s\n",
41129                                 DB_VERSION_STRING, version);
41130                         return 1;
41131                 }
41132         }
41133 #endif
41134
41135 #if DB_VERSION_MAJOR > 2
41136         db_env_create( NULL, 0 );
41137 #elif DB_VERSION_MAJOR > 1
41138         db_appexit( NULL );
41139 #else
41140         (void) dbopen( NULL, 0, 0, 0, NULL);
41141 #endif
41142
41143   ;
41144   return 0;
41145 }
41146 _ACEOF
41147 rm -f conftest.$ac_objext conftest$ac_exeext
41148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41149   (eval $ac_link) 2>conftest.er1
41150   ac_status=$?
41151   grep -v '^ *+' conftest.er1 >conftest.err
41152   rm -f conftest.er1
41153   cat conftest.err >&5
41154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41155   (exit $ac_status); } &&
41156          { ac_try='test -z "$ac_c_werror_flag"
41157                          || test ! -s conftest.err'
41158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41159   (eval $ac_try) 2>&5
41160   ac_status=$?
41161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41162   (exit $ac_status); }; } &&
41163          { ac_try='test -s conftest$ac_exeext'
41164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41165   (eval $ac_try) 2>&5
41166   ac_status=$?
41167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41168   (exit $ac_status); }; }; then
41169   ol_cv_db_db_42=yes
41170 else
41171   echo "$as_me: failed program was:" >&5
41172 sed 's/^/| /' conftest.$ac_ext >&5
41173
41174 ol_cv_db_db_42=no
41175 fi
41176 rm -f conftest.err conftest.$ac_objext \
41177       conftest$ac_exeext conftest.$ac_ext
41178
41179         LIBS="$ol_LIBS"
41180
41181 fi
41182 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41183 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41184
41185         if test $ol_cv_db_db_42 = yes ; then
41186                 ol_cv_lib_db=-ldb-42
41187         fi
41188 fi
41189
41190 if test $ol_cv_lib_db = no ; then
41191         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41192 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41193 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41194   echo $ECHO_N "(cached) $ECHO_C" >&6
41195 else
41196
41197         ol_DB_LIB=-ldb-4.2
41198         ol_LIBS=$LIBS
41199         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41200
41201         cat >conftest.$ac_ext <<_ACEOF
41202 /* confdefs.h.  */
41203 _ACEOF
41204 cat confdefs.h >>conftest.$ac_ext
41205 cat >>conftest.$ac_ext <<_ACEOF
41206 /* end confdefs.h.  */
41207
41208 #ifdef HAVE_DB_185_H
41209 # include <db_185.h>
41210 #else
41211 # include <db.h>
41212 #endif
41213
41214 #ifndef DB_VERSION_MAJOR
41215 # define DB_VERSION_MAJOR 1
41216 #endif
41217
41218 #ifndef NULL
41219 #define NULL ((void*)0)
41220 #endif
41221
41222 int
41223 main ()
41224 {
41225
41226 #if DB_VERSION_MAJOR > 1
41227         {
41228                 char *version;
41229                 int major, minor, patch;
41230
41231                 version = db_version( &major, &minor, &patch );
41232
41233                 if( major != DB_VERSION_MAJOR ||
41234                         minor < DB_VERSION_MINOR )
41235                 {
41236                         printf("Berkeley DB version mismatch\n"
41237                                 "\theader: %s\n\tlibrary: %s\n",
41238                                 DB_VERSION_STRING, version);
41239                         return 1;
41240                 }
41241         }
41242 #endif
41243
41244 #if DB_VERSION_MAJOR > 2
41245         db_env_create( NULL, 0 );
41246 #elif DB_VERSION_MAJOR > 1
41247         db_appexit( NULL );
41248 #else
41249         (void) dbopen( NULL, 0, 0, 0, NULL);
41250 #endif
41251
41252   ;
41253   return 0;
41254 }
41255 _ACEOF
41256 rm -f conftest.$ac_objext conftest$ac_exeext
41257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41258   (eval $ac_link) 2>conftest.er1
41259   ac_status=$?
41260   grep -v '^ *+' conftest.er1 >conftest.err
41261   rm -f conftest.er1
41262   cat conftest.err >&5
41263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41264   (exit $ac_status); } &&
41265          { ac_try='test -z "$ac_c_werror_flag"
41266                          || test ! -s conftest.err'
41267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41268   (eval $ac_try) 2>&5
41269   ac_status=$?
41270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41271   (exit $ac_status); }; } &&
41272          { ac_try='test -s conftest$ac_exeext'
41273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41274   (eval $ac_try) 2>&5
41275   ac_status=$?
41276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41277   (exit $ac_status); }; }; then
41278   ol_cv_db_db_4_dot_2=yes
41279 else
41280   echo "$as_me: failed program was:" >&5
41281 sed 's/^/| /' conftest.$ac_ext >&5
41282
41283 ol_cv_db_db_4_dot_2=no
41284 fi
41285 rm -f conftest.err conftest.$ac_objext \
41286       conftest$ac_exeext conftest.$ac_ext
41287
41288         LIBS="$ol_LIBS"
41289
41290 fi
41291 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41292 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41293
41294         if test $ol_cv_db_db_4_dot_2 = yes ; then
41295                 ol_cv_lib_db=-ldb-4.2
41296         fi
41297 fi
41298
41299 if test $ol_cv_lib_db = no ; then
41300         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41301 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41302 if test "${ol_cv_db_db_4_2+set}" = set; then
41303   echo $ECHO_N "(cached) $ECHO_C" >&6
41304 else
41305
41306         ol_DB_LIB=-ldb-4-2
41307         ol_LIBS=$LIBS
41308         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41309
41310         cat >conftest.$ac_ext <<_ACEOF
41311 /* confdefs.h.  */
41312 _ACEOF
41313 cat confdefs.h >>conftest.$ac_ext
41314 cat >>conftest.$ac_ext <<_ACEOF
41315 /* end confdefs.h.  */
41316
41317 #ifdef HAVE_DB_185_H
41318 # include <db_185.h>
41319 #else
41320 # include <db.h>
41321 #endif
41322
41323 #ifndef DB_VERSION_MAJOR
41324 # define DB_VERSION_MAJOR 1
41325 #endif
41326
41327 #ifndef NULL
41328 #define NULL ((void*)0)
41329 #endif
41330
41331 int
41332 main ()
41333 {
41334
41335 #if DB_VERSION_MAJOR > 1
41336         {
41337                 char *version;
41338                 int major, minor, patch;
41339
41340                 version = db_version( &major, &minor, &patch );
41341
41342                 if( major != DB_VERSION_MAJOR ||
41343                         minor < DB_VERSION_MINOR )
41344                 {
41345                         printf("Berkeley DB version mismatch\n"
41346                                 "\theader: %s\n\tlibrary: %s\n",
41347                                 DB_VERSION_STRING, version);
41348                         return 1;
41349                 }
41350         }
41351 #endif
41352
41353 #if DB_VERSION_MAJOR > 2
41354         db_env_create( NULL, 0 );
41355 #elif DB_VERSION_MAJOR > 1
41356         db_appexit( NULL );
41357 #else
41358         (void) dbopen( NULL, 0, 0, 0, NULL);
41359 #endif
41360
41361   ;
41362   return 0;
41363 }
41364 _ACEOF
41365 rm -f conftest.$ac_objext conftest$ac_exeext
41366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41367   (eval $ac_link) 2>conftest.er1
41368   ac_status=$?
41369   grep -v '^ *+' conftest.er1 >conftest.err
41370   rm -f conftest.er1
41371   cat conftest.err >&5
41372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41373   (exit $ac_status); } &&
41374          { ac_try='test -z "$ac_c_werror_flag"
41375                          || test ! -s conftest.err'
41376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41377   (eval $ac_try) 2>&5
41378   ac_status=$?
41379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41380   (exit $ac_status); }; } &&
41381          { ac_try='test -s conftest$ac_exeext'
41382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41383   (eval $ac_try) 2>&5
41384   ac_status=$?
41385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41386   (exit $ac_status); }; }; then
41387   ol_cv_db_db_4_2=yes
41388 else
41389   echo "$as_me: failed program was:" >&5
41390 sed 's/^/| /' conftest.$ac_ext >&5
41391
41392 ol_cv_db_db_4_2=no
41393 fi
41394 rm -f conftest.err conftest.$ac_objext \
41395       conftest$ac_exeext conftest.$ac_ext
41396
41397         LIBS="$ol_LIBS"
41398
41399 fi
41400 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41401 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41402
41403         if test $ol_cv_db_db_4_2 = yes ; then
41404                 ol_cv_lib_db=-ldb-4-2
41405         fi
41406 fi
41407
41408 if test $ol_cv_lib_db = no ; then
41409         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41410 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41411 if test "${ol_cv_db_db_4+set}" = set; then
41412   echo $ECHO_N "(cached) $ECHO_C" >&6
41413 else
41414
41415         ol_DB_LIB=-ldb-4
41416         ol_LIBS=$LIBS
41417         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41418
41419         cat >conftest.$ac_ext <<_ACEOF
41420 /* confdefs.h.  */
41421 _ACEOF
41422 cat confdefs.h >>conftest.$ac_ext
41423 cat >>conftest.$ac_ext <<_ACEOF
41424 /* end confdefs.h.  */
41425
41426 #ifdef HAVE_DB_185_H
41427 # include <db_185.h>
41428 #else
41429 # include <db.h>
41430 #endif
41431
41432 #ifndef DB_VERSION_MAJOR
41433 # define DB_VERSION_MAJOR 1
41434 #endif
41435
41436 #ifndef NULL
41437 #define NULL ((void*)0)
41438 #endif
41439
41440 int
41441 main ()
41442 {
41443
41444 #if DB_VERSION_MAJOR > 1
41445         {
41446                 char *version;
41447                 int major, minor, patch;
41448
41449                 version = db_version( &major, &minor, &patch );
41450
41451                 if( major != DB_VERSION_MAJOR ||
41452                         minor < DB_VERSION_MINOR )
41453                 {
41454                         printf("Berkeley DB version mismatch\n"
41455                                 "\theader: %s\n\tlibrary: %s\n",
41456                                 DB_VERSION_STRING, version);
41457                         return 1;
41458                 }
41459         }
41460 #endif
41461
41462 #if DB_VERSION_MAJOR > 2
41463         db_env_create( NULL, 0 );
41464 #elif DB_VERSION_MAJOR > 1
41465         db_appexit( NULL );
41466 #else
41467         (void) dbopen( NULL, 0, 0, 0, NULL);
41468 #endif
41469
41470   ;
41471   return 0;
41472 }
41473 _ACEOF
41474 rm -f conftest.$ac_objext conftest$ac_exeext
41475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41476   (eval $ac_link) 2>conftest.er1
41477   ac_status=$?
41478   grep -v '^ *+' conftest.er1 >conftest.err
41479   rm -f conftest.er1
41480   cat conftest.err >&5
41481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482   (exit $ac_status); } &&
41483          { ac_try='test -z "$ac_c_werror_flag"
41484                          || test ! -s conftest.err'
41485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41486   (eval $ac_try) 2>&5
41487   ac_status=$?
41488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41489   (exit $ac_status); }; } &&
41490          { ac_try='test -s conftest$ac_exeext'
41491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41492   (eval $ac_try) 2>&5
41493   ac_status=$?
41494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41495   (exit $ac_status); }; }; then
41496   ol_cv_db_db_4=yes
41497 else
41498   echo "$as_me: failed program was:" >&5
41499 sed 's/^/| /' conftest.$ac_ext >&5
41500
41501 ol_cv_db_db_4=no
41502 fi
41503 rm -f conftest.err conftest.$ac_objext \
41504       conftest$ac_exeext conftest.$ac_ext
41505
41506         LIBS="$ol_LIBS"
41507
41508 fi
41509 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41510 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41511
41512         if test $ol_cv_db_db_4 = yes ; then
41513                 ol_cv_lib_db=-ldb-4
41514         fi
41515 fi
41516
41517 if test $ol_cv_lib_db = no ; then
41518         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41519 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41520 if test "${ol_cv_db_db4+set}" = set; then
41521   echo $ECHO_N "(cached) $ECHO_C" >&6
41522 else
41523
41524         ol_DB_LIB=-ldb4
41525         ol_LIBS=$LIBS
41526         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41527
41528         cat >conftest.$ac_ext <<_ACEOF
41529 /* confdefs.h.  */
41530 _ACEOF
41531 cat confdefs.h >>conftest.$ac_ext
41532 cat >>conftest.$ac_ext <<_ACEOF
41533 /* end confdefs.h.  */
41534
41535 #ifdef HAVE_DB_185_H
41536 # include <db_185.h>
41537 #else
41538 # include <db.h>
41539 #endif
41540
41541 #ifndef DB_VERSION_MAJOR
41542 # define DB_VERSION_MAJOR 1
41543 #endif
41544
41545 #ifndef NULL
41546 #define NULL ((void*)0)
41547 #endif
41548
41549 int
41550 main ()
41551 {
41552
41553 #if DB_VERSION_MAJOR > 1
41554         {
41555                 char *version;
41556                 int major, minor, patch;
41557
41558                 version = db_version( &major, &minor, &patch );
41559
41560                 if( major != DB_VERSION_MAJOR ||
41561                         minor < DB_VERSION_MINOR )
41562                 {
41563                         printf("Berkeley DB version mismatch\n"
41564                                 "\theader: %s\n\tlibrary: %s\n",
41565                                 DB_VERSION_STRING, version);
41566                         return 1;
41567                 }
41568         }
41569 #endif
41570
41571 #if DB_VERSION_MAJOR > 2
41572         db_env_create( NULL, 0 );
41573 #elif DB_VERSION_MAJOR > 1
41574         db_appexit( NULL );
41575 #else
41576         (void) dbopen( NULL, 0, 0, 0, NULL);
41577 #endif
41578
41579   ;
41580   return 0;
41581 }
41582 _ACEOF
41583 rm -f conftest.$ac_objext conftest$ac_exeext
41584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41585   (eval $ac_link) 2>conftest.er1
41586   ac_status=$?
41587   grep -v '^ *+' conftest.er1 >conftest.err
41588   rm -f conftest.er1
41589   cat conftest.err >&5
41590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41591   (exit $ac_status); } &&
41592          { ac_try='test -z "$ac_c_werror_flag"
41593                          || test ! -s conftest.err'
41594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41595   (eval $ac_try) 2>&5
41596   ac_status=$?
41597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41598   (exit $ac_status); }; } &&
41599          { ac_try='test -s conftest$ac_exeext'
41600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41601   (eval $ac_try) 2>&5
41602   ac_status=$?
41603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41604   (exit $ac_status); }; }; then
41605   ol_cv_db_db4=yes
41606 else
41607   echo "$as_me: failed program was:" >&5
41608 sed 's/^/| /' conftest.$ac_ext >&5
41609
41610 ol_cv_db_db4=no
41611 fi
41612 rm -f conftest.err conftest.$ac_objext \
41613       conftest$ac_exeext conftest.$ac_ext
41614
41615         LIBS="$ol_LIBS"
41616
41617 fi
41618 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41619 echo "${ECHO_T}$ol_cv_db_db4" >&6
41620
41621         if test $ol_cv_db_db4 = yes ; then
41622                 ol_cv_lib_db=-ldb4
41623         fi
41624 fi
41625
41626 if test $ol_cv_lib_db = no ; then
41627         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41628 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41629 if test "${ol_cv_db_db+set}" = set; then
41630   echo $ECHO_N "(cached) $ECHO_C" >&6
41631 else
41632
41633         ol_DB_LIB=-ldb
41634         ol_LIBS=$LIBS
41635         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41636
41637         cat >conftest.$ac_ext <<_ACEOF
41638 /* confdefs.h.  */
41639 _ACEOF
41640 cat confdefs.h >>conftest.$ac_ext
41641 cat >>conftest.$ac_ext <<_ACEOF
41642 /* end confdefs.h.  */
41643
41644 #ifdef HAVE_DB_185_H
41645 # include <db_185.h>
41646 #else
41647 # include <db.h>
41648 #endif
41649
41650 #ifndef DB_VERSION_MAJOR
41651 # define DB_VERSION_MAJOR 1
41652 #endif
41653
41654 #ifndef NULL
41655 #define NULL ((void*)0)
41656 #endif
41657
41658 int
41659 main ()
41660 {
41661
41662 #if DB_VERSION_MAJOR > 1
41663         {
41664                 char *version;
41665                 int major, minor, patch;
41666
41667                 version = db_version( &major, &minor, &patch );
41668
41669                 if( major != DB_VERSION_MAJOR ||
41670                         minor < DB_VERSION_MINOR )
41671                 {
41672                         printf("Berkeley DB version mismatch\n"
41673                                 "\theader: %s\n\tlibrary: %s\n",
41674                                 DB_VERSION_STRING, version);
41675                         return 1;
41676                 }
41677         }
41678 #endif
41679
41680 #if DB_VERSION_MAJOR > 2
41681         db_env_create( NULL, 0 );
41682 #elif DB_VERSION_MAJOR > 1
41683         db_appexit( NULL );
41684 #else
41685         (void) dbopen( NULL, 0, 0, 0, NULL);
41686 #endif
41687
41688   ;
41689   return 0;
41690 }
41691 _ACEOF
41692 rm -f conftest.$ac_objext conftest$ac_exeext
41693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41694   (eval $ac_link) 2>conftest.er1
41695   ac_status=$?
41696   grep -v '^ *+' conftest.er1 >conftest.err
41697   rm -f conftest.er1
41698   cat conftest.err >&5
41699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41700   (exit $ac_status); } &&
41701          { ac_try='test -z "$ac_c_werror_flag"
41702                          || test ! -s conftest.err'
41703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41704   (eval $ac_try) 2>&5
41705   ac_status=$?
41706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41707   (exit $ac_status); }; } &&
41708          { ac_try='test -s conftest$ac_exeext'
41709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41710   (eval $ac_try) 2>&5
41711   ac_status=$?
41712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41713   (exit $ac_status); }; }; then
41714   ol_cv_db_db=yes
41715 else
41716   echo "$as_me: failed program was:" >&5
41717 sed 's/^/| /' conftest.$ac_ext >&5
41718
41719 ol_cv_db_db=no
41720 fi
41721 rm -f conftest.err conftest.$ac_objext \
41722       conftest$ac_exeext conftest.$ac_ext
41723
41724         LIBS="$ol_LIBS"
41725
41726 fi
41727 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41728 echo "${ECHO_T}$ol_cv_db_db" >&6
41729
41730         if test $ol_cv_db_db = yes ; then
41731                 ol_cv_lib_db=-ldb
41732         fi
41733 fi
41734
41735 if test $ol_cv_lib_db = no ; then
41736         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41737 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41738 if test "${ol_cv_db_db41+set}" = set; then
41739   echo $ECHO_N "(cached) $ECHO_C" >&6
41740 else
41741
41742         ol_DB_LIB=-ldb41
41743         ol_LIBS=$LIBS
41744         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41745
41746         cat >conftest.$ac_ext <<_ACEOF
41747 /* confdefs.h.  */
41748 _ACEOF
41749 cat confdefs.h >>conftest.$ac_ext
41750 cat >>conftest.$ac_ext <<_ACEOF
41751 /* end confdefs.h.  */
41752
41753 #ifdef HAVE_DB_185_H
41754 # include <db_185.h>
41755 #else
41756 # include <db.h>
41757 #endif
41758
41759 #ifndef DB_VERSION_MAJOR
41760 # define DB_VERSION_MAJOR 1
41761 #endif
41762
41763 #ifndef NULL
41764 #define NULL ((void*)0)
41765 #endif
41766
41767 int
41768 main ()
41769 {
41770
41771 #if DB_VERSION_MAJOR > 1
41772         {
41773                 char *version;
41774                 int major, minor, patch;
41775
41776                 version = db_version( &major, &minor, &patch );
41777
41778                 if( major != DB_VERSION_MAJOR ||
41779                         minor < DB_VERSION_MINOR )
41780                 {
41781                         printf("Berkeley DB version mismatch\n"
41782                                 "\theader: %s\n\tlibrary: %s\n",
41783                                 DB_VERSION_STRING, version);
41784                         return 1;
41785                 }
41786         }
41787 #endif
41788
41789 #if DB_VERSION_MAJOR > 2
41790         db_env_create( NULL, 0 );
41791 #elif DB_VERSION_MAJOR > 1
41792         db_appexit( NULL );
41793 #else
41794         (void) dbopen( NULL, 0, 0, 0, NULL);
41795 #endif
41796
41797   ;
41798   return 0;
41799 }
41800 _ACEOF
41801 rm -f conftest.$ac_objext conftest$ac_exeext
41802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41803   (eval $ac_link) 2>conftest.er1
41804   ac_status=$?
41805   grep -v '^ *+' conftest.er1 >conftest.err
41806   rm -f conftest.er1
41807   cat conftest.err >&5
41808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41809   (exit $ac_status); } &&
41810          { ac_try='test -z "$ac_c_werror_flag"
41811                          || test ! -s conftest.err'
41812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41813   (eval $ac_try) 2>&5
41814   ac_status=$?
41815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41816   (exit $ac_status); }; } &&
41817          { ac_try='test -s conftest$ac_exeext'
41818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41819   (eval $ac_try) 2>&5
41820   ac_status=$?
41821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41822   (exit $ac_status); }; }; then
41823   ol_cv_db_db41=yes
41824 else
41825   echo "$as_me: failed program was:" >&5
41826 sed 's/^/| /' conftest.$ac_ext >&5
41827
41828 ol_cv_db_db41=no
41829 fi
41830 rm -f conftest.err conftest.$ac_objext \
41831       conftest$ac_exeext conftest.$ac_ext
41832
41833         LIBS="$ol_LIBS"
41834
41835 fi
41836 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41837 echo "${ECHO_T}$ol_cv_db_db41" >&6
41838
41839         if test $ol_cv_db_db41 = yes ; then
41840                 ol_cv_lib_db=-ldb41
41841         fi
41842 fi
41843
41844 if test $ol_cv_lib_db = no ; then
41845         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41846 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41847 if test "${ol_cv_db_db_41+set}" = set; then
41848   echo $ECHO_N "(cached) $ECHO_C" >&6
41849 else
41850
41851         ol_DB_LIB=-ldb-41
41852         ol_LIBS=$LIBS
41853         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41854
41855         cat >conftest.$ac_ext <<_ACEOF
41856 /* confdefs.h.  */
41857 _ACEOF
41858 cat confdefs.h >>conftest.$ac_ext
41859 cat >>conftest.$ac_ext <<_ACEOF
41860 /* end confdefs.h.  */
41861
41862 #ifdef HAVE_DB_185_H
41863 # include <db_185.h>
41864 #else
41865 # include <db.h>
41866 #endif
41867
41868 #ifndef DB_VERSION_MAJOR
41869 # define DB_VERSION_MAJOR 1
41870 #endif
41871
41872 #ifndef NULL
41873 #define NULL ((void*)0)
41874 #endif
41875
41876 int
41877 main ()
41878 {
41879
41880 #if DB_VERSION_MAJOR > 1
41881         {
41882                 char *version;
41883                 int major, minor, patch;
41884
41885                 version = db_version( &major, &minor, &patch );
41886
41887                 if( major != DB_VERSION_MAJOR ||
41888                         minor < DB_VERSION_MINOR )
41889                 {
41890                         printf("Berkeley DB version mismatch\n"
41891                                 "\theader: %s\n\tlibrary: %s\n",
41892                                 DB_VERSION_STRING, version);
41893                         return 1;
41894                 }
41895         }
41896 #endif
41897
41898 #if DB_VERSION_MAJOR > 2
41899         db_env_create( NULL, 0 );
41900 #elif DB_VERSION_MAJOR > 1
41901         db_appexit( NULL );
41902 #else
41903         (void) dbopen( NULL, 0, 0, 0, NULL);
41904 #endif
41905
41906   ;
41907   return 0;
41908 }
41909 _ACEOF
41910 rm -f conftest.$ac_objext conftest$ac_exeext
41911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41912   (eval $ac_link) 2>conftest.er1
41913   ac_status=$?
41914   grep -v '^ *+' conftest.er1 >conftest.err
41915   rm -f conftest.er1
41916   cat conftest.err >&5
41917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41918   (exit $ac_status); } &&
41919          { ac_try='test -z "$ac_c_werror_flag"
41920                          || test ! -s conftest.err'
41921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41922   (eval $ac_try) 2>&5
41923   ac_status=$?
41924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41925   (exit $ac_status); }; } &&
41926          { ac_try='test -s conftest$ac_exeext'
41927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41928   (eval $ac_try) 2>&5
41929   ac_status=$?
41930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41931   (exit $ac_status); }; }; then
41932   ol_cv_db_db_41=yes
41933 else
41934   echo "$as_me: failed program was:" >&5
41935 sed 's/^/| /' conftest.$ac_ext >&5
41936
41937 ol_cv_db_db_41=no
41938 fi
41939 rm -f conftest.err conftest.$ac_objext \
41940       conftest$ac_exeext conftest.$ac_ext
41941
41942         LIBS="$ol_LIBS"
41943
41944 fi
41945 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
41946 echo "${ECHO_T}$ol_cv_db_db_41" >&6
41947
41948         if test $ol_cv_db_db_41 = yes ; then
41949                 ol_cv_lib_db=-ldb-41
41950         fi
41951 fi
41952
41953 if test $ol_cv_lib_db = no ; then
41954         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
41955 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
41956 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
41957   echo $ECHO_N "(cached) $ECHO_C" >&6
41958 else
41959
41960         ol_DB_LIB=-ldb-4.1
41961         ol_LIBS=$LIBS
41962         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41963
41964         cat >conftest.$ac_ext <<_ACEOF
41965 /* confdefs.h.  */
41966 _ACEOF
41967 cat confdefs.h >>conftest.$ac_ext
41968 cat >>conftest.$ac_ext <<_ACEOF
41969 /* end confdefs.h.  */
41970
41971 #ifdef HAVE_DB_185_H
41972 # include <db_185.h>
41973 #else
41974 # include <db.h>
41975 #endif
41976
41977 #ifndef DB_VERSION_MAJOR
41978 # define DB_VERSION_MAJOR 1
41979 #endif
41980
41981 #ifndef NULL
41982 #define NULL ((void*)0)
41983 #endif
41984
41985 int
41986 main ()
41987 {
41988
41989 #if DB_VERSION_MAJOR > 1
41990         {
41991                 char *version;
41992                 int major, minor, patch;
41993
41994                 version = db_version( &major, &minor, &patch );
41995
41996                 if( major != DB_VERSION_MAJOR ||
41997                         minor < DB_VERSION_MINOR )
41998                 {
41999                         printf("Berkeley DB version mismatch\n"
42000                                 "\theader: %s\n\tlibrary: %s\n",
42001                                 DB_VERSION_STRING, version);
42002                         return 1;
42003                 }
42004         }
42005 #endif
42006
42007 #if DB_VERSION_MAJOR > 2
42008         db_env_create( NULL, 0 );
42009 #elif DB_VERSION_MAJOR > 1
42010         db_appexit( NULL );
42011 #else
42012         (void) dbopen( NULL, 0, 0, 0, NULL);
42013 #endif
42014
42015   ;
42016   return 0;
42017 }
42018 _ACEOF
42019 rm -f conftest.$ac_objext conftest$ac_exeext
42020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42021   (eval $ac_link) 2>conftest.er1
42022   ac_status=$?
42023   grep -v '^ *+' conftest.er1 >conftest.err
42024   rm -f conftest.er1
42025   cat conftest.err >&5
42026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42027   (exit $ac_status); } &&
42028          { ac_try='test -z "$ac_c_werror_flag"
42029                          || test ! -s conftest.err'
42030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42031   (eval $ac_try) 2>&5
42032   ac_status=$?
42033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42034   (exit $ac_status); }; } &&
42035          { ac_try='test -s conftest$ac_exeext'
42036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42037   (eval $ac_try) 2>&5
42038   ac_status=$?
42039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42040   (exit $ac_status); }; }; then
42041   ol_cv_db_db_4_dot_1=yes
42042 else
42043   echo "$as_me: failed program was:" >&5
42044 sed 's/^/| /' conftest.$ac_ext >&5
42045
42046 ol_cv_db_db_4_dot_1=no
42047 fi
42048 rm -f conftest.err conftest.$ac_objext \
42049       conftest$ac_exeext conftest.$ac_ext
42050
42051         LIBS="$ol_LIBS"
42052
42053 fi
42054 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42055 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42056
42057         if test $ol_cv_db_db_4_dot_1 = yes ; then
42058                 ol_cv_lib_db=-ldb-4.1
42059         fi
42060 fi
42061
42062 if test $ol_cv_lib_db = no ; then
42063         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42064 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42065 if test "${ol_cv_db_db_4_1+set}" = set; then
42066   echo $ECHO_N "(cached) $ECHO_C" >&6
42067 else
42068
42069         ol_DB_LIB=-ldb-4-1
42070         ol_LIBS=$LIBS
42071         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42072
42073         cat >conftest.$ac_ext <<_ACEOF
42074 /* confdefs.h.  */
42075 _ACEOF
42076 cat confdefs.h >>conftest.$ac_ext
42077 cat >>conftest.$ac_ext <<_ACEOF
42078 /* end confdefs.h.  */
42079
42080 #ifdef HAVE_DB_185_H
42081 # include <db_185.h>
42082 #else
42083 # include <db.h>
42084 #endif
42085
42086 #ifndef DB_VERSION_MAJOR
42087 # define DB_VERSION_MAJOR 1
42088 #endif
42089
42090 #ifndef NULL
42091 #define NULL ((void*)0)
42092 #endif
42093
42094 int
42095 main ()
42096 {
42097
42098 #if DB_VERSION_MAJOR > 1
42099         {
42100                 char *version;
42101                 int major, minor, patch;
42102
42103                 version = db_version( &major, &minor, &patch );
42104
42105                 if( major != DB_VERSION_MAJOR ||
42106                         minor < DB_VERSION_MINOR )
42107                 {
42108                         printf("Berkeley DB version mismatch\n"
42109                                 "\theader: %s\n\tlibrary: %s\n",
42110                                 DB_VERSION_STRING, version);
42111                         return 1;
42112                 }
42113         }
42114 #endif
42115
42116 #if DB_VERSION_MAJOR > 2
42117         db_env_create( NULL, 0 );
42118 #elif DB_VERSION_MAJOR > 1
42119         db_appexit( NULL );
42120 #else
42121         (void) dbopen( NULL, 0, 0, 0, NULL);
42122 #endif
42123
42124   ;
42125   return 0;
42126 }
42127 _ACEOF
42128 rm -f conftest.$ac_objext conftest$ac_exeext
42129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42130   (eval $ac_link) 2>conftest.er1
42131   ac_status=$?
42132   grep -v '^ *+' conftest.er1 >conftest.err
42133   rm -f conftest.er1
42134   cat conftest.err >&5
42135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42136   (exit $ac_status); } &&
42137          { ac_try='test -z "$ac_c_werror_flag"
42138                          || test ! -s conftest.err'
42139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42140   (eval $ac_try) 2>&5
42141   ac_status=$?
42142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42143   (exit $ac_status); }; } &&
42144          { ac_try='test -s conftest$ac_exeext'
42145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42146   (eval $ac_try) 2>&5
42147   ac_status=$?
42148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42149   (exit $ac_status); }; }; then
42150   ol_cv_db_db_4_1=yes
42151 else
42152   echo "$as_me: failed program was:" >&5
42153 sed 's/^/| /' conftest.$ac_ext >&5
42154
42155 ol_cv_db_db_4_1=no
42156 fi
42157 rm -f conftest.err conftest.$ac_objext \
42158       conftest$ac_exeext conftest.$ac_ext
42159
42160         LIBS="$ol_LIBS"
42161
42162 fi
42163 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42164 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42165
42166         if test $ol_cv_db_db_4_1 = yes ; then
42167                 ol_cv_lib_db=-ldb-4-1
42168         fi
42169 fi
42170
42171 if test $ol_cv_lib_db = no ; then
42172         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42173 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42174 if test "${ol_cv_db_db3+set}" = set; then
42175   echo $ECHO_N "(cached) $ECHO_C" >&6
42176 else
42177
42178         ol_DB_LIB=-ldb3
42179         ol_LIBS=$LIBS
42180         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42181
42182         cat >conftest.$ac_ext <<_ACEOF
42183 /* confdefs.h.  */
42184 _ACEOF
42185 cat confdefs.h >>conftest.$ac_ext
42186 cat >>conftest.$ac_ext <<_ACEOF
42187 /* end confdefs.h.  */
42188
42189 #ifdef HAVE_DB_185_H
42190 # include <db_185.h>
42191 #else
42192 # include <db.h>
42193 #endif
42194
42195 #ifndef DB_VERSION_MAJOR
42196 # define DB_VERSION_MAJOR 1
42197 #endif
42198
42199 #ifndef NULL
42200 #define NULL ((void*)0)
42201 #endif
42202
42203 int
42204 main ()
42205 {
42206
42207 #if DB_VERSION_MAJOR > 1
42208         {
42209                 char *version;
42210                 int major, minor, patch;
42211
42212                 version = db_version( &major, &minor, &patch );
42213
42214                 if( major != DB_VERSION_MAJOR ||
42215                         minor < DB_VERSION_MINOR )
42216                 {
42217                         printf("Berkeley DB version mismatch\n"
42218                                 "\theader: %s\n\tlibrary: %s\n",
42219                                 DB_VERSION_STRING, version);
42220                         return 1;
42221                 }
42222         }
42223 #endif
42224
42225 #if DB_VERSION_MAJOR > 2
42226         db_env_create( NULL, 0 );
42227 #elif DB_VERSION_MAJOR > 1
42228         db_appexit( NULL );
42229 #else
42230         (void) dbopen( NULL, 0, 0, 0, NULL);
42231 #endif
42232
42233   ;
42234   return 0;
42235 }
42236 _ACEOF
42237 rm -f conftest.$ac_objext conftest$ac_exeext
42238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42239   (eval $ac_link) 2>conftest.er1
42240   ac_status=$?
42241   grep -v '^ *+' conftest.er1 >conftest.err
42242   rm -f conftest.er1
42243   cat conftest.err >&5
42244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42245   (exit $ac_status); } &&
42246          { ac_try='test -z "$ac_c_werror_flag"
42247                          || test ! -s conftest.err'
42248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42249   (eval $ac_try) 2>&5
42250   ac_status=$?
42251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42252   (exit $ac_status); }; } &&
42253          { ac_try='test -s conftest$ac_exeext'
42254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42255   (eval $ac_try) 2>&5
42256   ac_status=$?
42257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42258   (exit $ac_status); }; }; then
42259   ol_cv_db_db3=yes
42260 else
42261   echo "$as_me: failed program was:" >&5
42262 sed 's/^/| /' conftest.$ac_ext >&5
42263
42264 ol_cv_db_db3=no
42265 fi
42266 rm -f conftest.err conftest.$ac_objext \
42267       conftest$ac_exeext conftest.$ac_ext
42268
42269         LIBS="$ol_LIBS"
42270
42271 fi
42272 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42273 echo "${ECHO_T}$ol_cv_db_db3" >&6
42274
42275         if test $ol_cv_db_db3 = yes ; then
42276                 ol_cv_lib_db=-ldb3
42277         fi
42278 fi
42279
42280 if test $ol_cv_lib_db = no ; then
42281         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42282 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42283 if test "${ol_cv_db_db_3+set}" = set; then
42284   echo $ECHO_N "(cached) $ECHO_C" >&6
42285 else
42286
42287         ol_DB_LIB=-ldb-3
42288         ol_LIBS=$LIBS
42289         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42290
42291         cat >conftest.$ac_ext <<_ACEOF
42292 /* confdefs.h.  */
42293 _ACEOF
42294 cat confdefs.h >>conftest.$ac_ext
42295 cat >>conftest.$ac_ext <<_ACEOF
42296 /* end confdefs.h.  */
42297
42298 #ifdef HAVE_DB_185_H
42299 # include <db_185.h>
42300 #else
42301 # include <db.h>
42302 #endif
42303
42304 #ifndef DB_VERSION_MAJOR
42305 # define DB_VERSION_MAJOR 1
42306 #endif
42307
42308 #ifndef NULL
42309 #define NULL ((void*)0)
42310 #endif
42311
42312 int
42313 main ()
42314 {
42315
42316 #if DB_VERSION_MAJOR > 1
42317         {
42318                 char *version;
42319                 int major, minor, patch;
42320
42321                 version = db_version( &major, &minor, &patch );
42322
42323                 if( major != DB_VERSION_MAJOR ||
42324                         minor < DB_VERSION_MINOR )
42325                 {
42326                         printf("Berkeley DB version mismatch\n"
42327                                 "\theader: %s\n\tlibrary: %s\n",
42328                                 DB_VERSION_STRING, version);
42329                         return 1;
42330                 }
42331         }
42332 #endif
42333
42334 #if DB_VERSION_MAJOR > 2
42335         db_env_create( NULL, 0 );
42336 #elif DB_VERSION_MAJOR > 1
42337         db_appexit( NULL );
42338 #else
42339         (void) dbopen( NULL, 0, 0, 0, NULL);
42340 #endif
42341
42342   ;
42343   return 0;
42344 }
42345 _ACEOF
42346 rm -f conftest.$ac_objext conftest$ac_exeext
42347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42348   (eval $ac_link) 2>conftest.er1
42349   ac_status=$?
42350   grep -v '^ *+' conftest.er1 >conftest.err
42351   rm -f conftest.er1
42352   cat conftest.err >&5
42353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42354   (exit $ac_status); } &&
42355          { ac_try='test -z "$ac_c_werror_flag"
42356                          || test ! -s conftest.err'
42357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42358   (eval $ac_try) 2>&5
42359   ac_status=$?
42360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42361   (exit $ac_status); }; } &&
42362          { ac_try='test -s conftest$ac_exeext'
42363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42364   (eval $ac_try) 2>&5
42365   ac_status=$?
42366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42367   (exit $ac_status); }; }; then
42368   ol_cv_db_db_3=yes
42369 else
42370   echo "$as_me: failed program was:" >&5
42371 sed 's/^/| /' conftest.$ac_ext >&5
42372
42373 ol_cv_db_db_3=no
42374 fi
42375 rm -f conftest.err conftest.$ac_objext \
42376       conftest$ac_exeext conftest.$ac_ext
42377
42378         LIBS="$ol_LIBS"
42379
42380 fi
42381 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42382 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42383
42384         if test $ol_cv_db_db_3 = yes ; then
42385                 ol_cv_lib_db=-ldb-3
42386         fi
42387 fi
42388
42389 if test $ol_cv_lib_db = no ; then
42390         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42391 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42392 if test "${ol_cv_db_db2+set}" = set; then
42393   echo $ECHO_N "(cached) $ECHO_C" >&6
42394 else
42395
42396         ol_DB_LIB=-ldb2
42397         ol_LIBS=$LIBS
42398         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42399
42400         cat >conftest.$ac_ext <<_ACEOF
42401 /* confdefs.h.  */
42402 _ACEOF
42403 cat confdefs.h >>conftest.$ac_ext
42404 cat >>conftest.$ac_ext <<_ACEOF
42405 /* end confdefs.h.  */
42406
42407 #ifdef HAVE_DB_185_H
42408 # include <db_185.h>
42409 #else
42410 # include <db.h>
42411 #endif
42412
42413 #ifndef DB_VERSION_MAJOR
42414 # define DB_VERSION_MAJOR 1
42415 #endif
42416
42417 #ifndef NULL
42418 #define NULL ((void*)0)
42419 #endif
42420
42421 int
42422 main ()
42423 {
42424
42425 #if DB_VERSION_MAJOR > 1
42426         {
42427                 char *version;
42428                 int major, minor, patch;
42429
42430                 version = db_version( &major, &minor, &patch );
42431
42432                 if( major != DB_VERSION_MAJOR ||
42433                         minor < DB_VERSION_MINOR )
42434                 {
42435                         printf("Berkeley DB version mismatch\n"
42436                                 "\theader: %s\n\tlibrary: %s\n",
42437                                 DB_VERSION_STRING, version);
42438                         return 1;
42439                 }
42440         }
42441 #endif
42442
42443 #if DB_VERSION_MAJOR > 2
42444         db_env_create( NULL, 0 );
42445 #elif DB_VERSION_MAJOR > 1
42446         db_appexit( NULL );
42447 #else
42448         (void) dbopen( NULL, 0, 0, 0, NULL);
42449 #endif
42450
42451   ;
42452   return 0;
42453 }
42454 _ACEOF
42455 rm -f conftest.$ac_objext conftest$ac_exeext
42456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42457   (eval $ac_link) 2>conftest.er1
42458   ac_status=$?
42459   grep -v '^ *+' conftest.er1 >conftest.err
42460   rm -f conftest.er1
42461   cat conftest.err >&5
42462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42463   (exit $ac_status); } &&
42464          { ac_try='test -z "$ac_c_werror_flag"
42465                          || test ! -s conftest.err'
42466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42467   (eval $ac_try) 2>&5
42468   ac_status=$?
42469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42470   (exit $ac_status); }; } &&
42471          { ac_try='test -s conftest$ac_exeext'
42472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42473   (eval $ac_try) 2>&5
42474   ac_status=$?
42475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42476   (exit $ac_status); }; }; then
42477   ol_cv_db_db2=yes
42478 else
42479   echo "$as_me: failed program was:" >&5
42480 sed 's/^/| /' conftest.$ac_ext >&5
42481
42482 ol_cv_db_db2=no
42483 fi
42484 rm -f conftest.err conftest.$ac_objext \
42485       conftest$ac_exeext conftest.$ac_ext
42486
42487         LIBS="$ol_LIBS"
42488
42489 fi
42490 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42491 echo "${ECHO_T}$ol_cv_db_db2" >&6
42492
42493         if test $ol_cv_db_db2 = yes ; then
42494                 ol_cv_lib_db=-ldb2
42495         fi
42496 fi
42497
42498 if test $ol_cv_lib_db = no ; then
42499         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42500 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42501 if test "${ol_cv_db_db_2+set}" = set; then
42502   echo $ECHO_N "(cached) $ECHO_C" >&6
42503 else
42504
42505         ol_DB_LIB=-ldb-2
42506         ol_LIBS=$LIBS
42507         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42508
42509         cat >conftest.$ac_ext <<_ACEOF
42510 /* confdefs.h.  */
42511 _ACEOF
42512 cat confdefs.h >>conftest.$ac_ext
42513 cat >>conftest.$ac_ext <<_ACEOF
42514 /* end confdefs.h.  */
42515
42516 #ifdef HAVE_DB_185_H
42517 # include <db_185.h>
42518 #else
42519 # include <db.h>
42520 #endif
42521
42522 #ifndef DB_VERSION_MAJOR
42523 # define DB_VERSION_MAJOR 1
42524 #endif
42525
42526 #ifndef NULL
42527 #define NULL ((void*)0)
42528 #endif
42529
42530 int
42531 main ()
42532 {
42533
42534 #if DB_VERSION_MAJOR > 1
42535         {
42536                 char *version;
42537                 int major, minor, patch;
42538
42539                 version = db_version( &major, &minor, &patch );
42540
42541                 if( major != DB_VERSION_MAJOR ||
42542                         minor < DB_VERSION_MINOR )
42543                 {
42544                         printf("Berkeley DB version mismatch\n"
42545                                 "\theader: %s\n\tlibrary: %s\n",
42546                                 DB_VERSION_STRING, version);
42547                         return 1;
42548                 }
42549         }
42550 #endif
42551
42552 #if DB_VERSION_MAJOR > 2
42553         db_env_create( NULL, 0 );
42554 #elif DB_VERSION_MAJOR > 1
42555         db_appexit( NULL );
42556 #else
42557         (void) dbopen( NULL, 0, 0, 0, NULL);
42558 #endif
42559
42560   ;
42561   return 0;
42562 }
42563 _ACEOF
42564 rm -f conftest.$ac_objext conftest$ac_exeext
42565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42566   (eval $ac_link) 2>conftest.er1
42567   ac_status=$?
42568   grep -v '^ *+' conftest.er1 >conftest.err
42569   rm -f conftest.er1
42570   cat conftest.err >&5
42571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42572   (exit $ac_status); } &&
42573          { ac_try='test -z "$ac_c_werror_flag"
42574                          || test ! -s conftest.err'
42575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42576   (eval $ac_try) 2>&5
42577   ac_status=$?
42578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42579   (exit $ac_status); }; } &&
42580          { ac_try='test -s conftest$ac_exeext'
42581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42582   (eval $ac_try) 2>&5
42583   ac_status=$?
42584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42585   (exit $ac_status); }; }; then
42586   ol_cv_db_db_2=yes
42587 else
42588   echo "$as_me: failed program was:" >&5
42589 sed 's/^/| /' conftest.$ac_ext >&5
42590
42591 ol_cv_db_db_2=no
42592 fi
42593 rm -f conftest.err conftest.$ac_objext \
42594       conftest$ac_exeext conftest.$ac_ext
42595
42596         LIBS="$ol_LIBS"
42597
42598 fi
42599 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42600 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42601
42602         if test $ol_cv_db_db_2 = yes ; then
42603                 ol_cv_lib_db=-ldb-2
42604         fi
42605 fi
42606
42607 if test $ol_cv_lib_db = no ; then
42608         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42609 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42610 if test "${ol_cv_db_db1+set}" = set; then
42611   echo $ECHO_N "(cached) $ECHO_C" >&6
42612 else
42613
42614         ol_DB_LIB=-ldb1
42615         ol_LIBS=$LIBS
42616         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42617
42618         cat >conftest.$ac_ext <<_ACEOF
42619 /* confdefs.h.  */
42620 _ACEOF
42621 cat confdefs.h >>conftest.$ac_ext
42622 cat >>conftest.$ac_ext <<_ACEOF
42623 /* end confdefs.h.  */
42624
42625 #ifdef HAVE_DB_185_H
42626 # include <db_185.h>
42627 #else
42628 # include <db.h>
42629 #endif
42630
42631 #ifndef DB_VERSION_MAJOR
42632 # define DB_VERSION_MAJOR 1
42633 #endif
42634
42635 #ifndef NULL
42636 #define NULL ((void*)0)
42637 #endif
42638
42639 int
42640 main ()
42641 {
42642
42643 #if DB_VERSION_MAJOR > 1
42644         {
42645                 char *version;
42646                 int major, minor, patch;
42647
42648                 version = db_version( &major, &minor, &patch );
42649
42650                 if( major != DB_VERSION_MAJOR ||
42651                         minor < DB_VERSION_MINOR )
42652                 {
42653                         printf("Berkeley DB version mismatch\n"
42654                                 "\theader: %s\n\tlibrary: %s\n",
42655                                 DB_VERSION_STRING, version);
42656                         return 1;
42657                 }
42658         }
42659 #endif
42660
42661 #if DB_VERSION_MAJOR > 2
42662         db_env_create( NULL, 0 );
42663 #elif DB_VERSION_MAJOR > 1
42664         db_appexit( NULL );
42665 #else
42666         (void) dbopen( NULL, 0, 0, 0, NULL);
42667 #endif
42668
42669   ;
42670   return 0;
42671 }
42672 _ACEOF
42673 rm -f conftest.$ac_objext conftest$ac_exeext
42674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42675   (eval $ac_link) 2>conftest.er1
42676   ac_status=$?
42677   grep -v '^ *+' conftest.er1 >conftest.err
42678   rm -f conftest.er1
42679   cat conftest.err >&5
42680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42681   (exit $ac_status); } &&
42682          { ac_try='test -z "$ac_c_werror_flag"
42683                          || test ! -s conftest.err'
42684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42685   (eval $ac_try) 2>&5
42686   ac_status=$?
42687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42688   (exit $ac_status); }; } &&
42689          { ac_try='test -s conftest$ac_exeext'
42690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42691   (eval $ac_try) 2>&5
42692   ac_status=$?
42693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42694   (exit $ac_status); }; }; then
42695   ol_cv_db_db1=yes
42696 else
42697   echo "$as_me: failed program was:" >&5
42698 sed 's/^/| /' conftest.$ac_ext >&5
42699
42700 ol_cv_db_db1=no
42701 fi
42702 rm -f conftest.err conftest.$ac_objext \
42703       conftest$ac_exeext conftest.$ac_ext
42704
42705         LIBS="$ol_LIBS"
42706
42707 fi
42708 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42709 echo "${ECHO_T}$ol_cv_db_db1" >&6
42710
42711         if test $ol_cv_db_db1 = yes ; then
42712                 ol_cv_lib_db=-ldb1
42713         fi
42714 fi
42715
42716 if test $ol_cv_lib_db = no ; then
42717         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42718 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42719 if test "${ol_cv_db_db_1+set}" = set; then
42720   echo $ECHO_N "(cached) $ECHO_C" >&6
42721 else
42722
42723         ol_DB_LIB=-ldb-1
42724         ol_LIBS=$LIBS
42725         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42726
42727         cat >conftest.$ac_ext <<_ACEOF
42728 /* confdefs.h.  */
42729 _ACEOF
42730 cat confdefs.h >>conftest.$ac_ext
42731 cat >>conftest.$ac_ext <<_ACEOF
42732 /* end confdefs.h.  */
42733
42734 #ifdef HAVE_DB_185_H
42735 # include <db_185.h>
42736 #else
42737 # include <db.h>
42738 #endif
42739
42740 #ifndef DB_VERSION_MAJOR
42741 # define DB_VERSION_MAJOR 1
42742 #endif
42743
42744 #ifndef NULL
42745 #define NULL ((void*)0)
42746 #endif
42747
42748 int
42749 main ()
42750 {
42751
42752 #if DB_VERSION_MAJOR > 1
42753         {
42754                 char *version;
42755                 int major, minor, patch;
42756
42757                 version = db_version( &major, &minor, &patch );
42758
42759                 if( major != DB_VERSION_MAJOR ||
42760                         minor < DB_VERSION_MINOR )
42761                 {
42762                         printf("Berkeley DB version mismatch\n"
42763                                 "\theader: %s\n\tlibrary: %s\n",
42764                                 DB_VERSION_STRING, version);
42765                         return 1;
42766                 }
42767         }
42768 #endif
42769
42770 #if DB_VERSION_MAJOR > 2
42771         db_env_create( NULL, 0 );
42772 #elif DB_VERSION_MAJOR > 1
42773         db_appexit( NULL );
42774 #else
42775         (void) dbopen( NULL, 0, 0, 0, NULL);
42776 #endif
42777
42778   ;
42779   return 0;
42780 }
42781 _ACEOF
42782 rm -f conftest.$ac_objext conftest$ac_exeext
42783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42784   (eval $ac_link) 2>conftest.er1
42785   ac_status=$?
42786   grep -v '^ *+' conftest.er1 >conftest.err
42787   rm -f conftest.er1
42788   cat conftest.err >&5
42789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42790   (exit $ac_status); } &&
42791          { ac_try='test -z "$ac_c_werror_flag"
42792                          || test ! -s conftest.err'
42793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42794   (eval $ac_try) 2>&5
42795   ac_status=$?
42796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42797   (exit $ac_status); }; } &&
42798          { ac_try='test -s conftest$ac_exeext'
42799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42800   (eval $ac_try) 2>&5
42801   ac_status=$?
42802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42803   (exit $ac_status); }; }; then
42804   ol_cv_db_db_1=yes
42805 else
42806   echo "$as_me: failed program was:" >&5
42807 sed 's/^/| /' conftest.$ac_ext >&5
42808
42809 ol_cv_db_db_1=no
42810 fi
42811 rm -f conftest.err conftest.$ac_objext \
42812       conftest$ac_exeext conftest.$ac_ext
42813
42814         LIBS="$ol_LIBS"
42815
42816 fi
42817 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42818 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42819
42820         if test $ol_cv_db_db_1 = yes ; then
42821                 ol_cv_lib_db=-ldb-1
42822         fi
42823 fi
42824
42825
42826         if test "$ol_cv_lib_db" != no ; then
42827                 ol_cv_berkeley_db=yes
42828                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42829 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42830 if test "${ol_cv_berkeley_db_version+set}" = set; then
42831   echo $ECHO_N "(cached) $ECHO_C" >&6
42832 else
42833
42834         ol_LIBS="$LIBS"
42835         LIBS="$LTHREAD_LIBS $LIBS"
42836         if test $ol_cv_lib_db != yes ; then
42837                 LIBS="$ol_cv_lib_db $LIBS"
42838         fi
42839
42840         if test "$cross_compiling" = yes; then
42841   ol_cv_berkeley_db_version=cross
42842 else
42843   cat >conftest.$ac_ext <<_ACEOF
42844 /* confdefs.h.  */
42845 _ACEOF
42846 cat confdefs.h >>conftest.$ac_ext
42847 cat >>conftest.$ac_ext <<_ACEOF
42848 /* end confdefs.h.  */
42849
42850 #ifdef HAVE_DB_185_H
42851         choke me;
42852 #else
42853 #include <db.h>
42854 #endif
42855 #ifndef DB_VERSION_MAJOR
42856 # define DB_VERSION_MAJOR 1
42857 #endif
42858 #ifndef NULL
42859 #define NULL ((void *)0)
42860 #endif
42861 main()
42862 {
42863 #if DB_VERSION_MAJOR > 1
42864         char *version;
42865         int major, minor, patch;
42866
42867         version = db_version( &major, &minor, &patch );
42868
42869         if( major != DB_VERSION_MAJOR ||
42870                 minor != DB_VERSION_MINOR ||
42871                 patch != DB_VERSION_PATCH )
42872         {
42873                 printf("Berkeley DB version mismatch\n"
42874                         "\theader: %s\n\tlibrary: %s\n",
42875                         DB_VERSION_STRING, version);
42876                 return 1;
42877         }
42878 #endif
42879
42880         return 0;
42881 }
42882 _ACEOF
42883 rm -f conftest$ac_exeext
42884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42885   (eval $ac_link) 2>&5
42886   ac_status=$?
42887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42890   (eval $ac_try) 2>&5
42891   ac_status=$?
42892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42893   (exit $ac_status); }; }; then
42894   ol_cv_berkeley_db_version=yes
42895 else
42896   echo "$as_me: program exited with status $ac_status" >&5
42897 echo "$as_me: failed program was:" >&5
42898 sed 's/^/| /' conftest.$ac_ext >&5
42899
42900 ( exit $ac_status )
42901 ol_cv_berkeley_db_version=no
42902 fi
42903 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42904 fi
42905
42906         LIBS="$ol_LIBS"
42907
42908 fi
42909 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
42910 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
42911
42912         if test $ol_cv_berkeley_db_version = no ; then
42913                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
42914 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
42915    { (exit 1); exit 1; }; }
42916         fi
42917
42918                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
42919 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
42920 if test "${ol_cv_berkeley_db_thread+set}" = set; then
42921   echo $ECHO_N "(cached) $ECHO_C" >&6
42922 else
42923
42924         ol_LIBS="$LIBS"
42925         LIBS="$LTHREAD_LIBS $LIBS"
42926         if test $ol_cv_lib_db != yes ; then
42927                 LIBS="$ol_cv_lib_db $LIBS"
42928         fi
42929
42930         if test "$cross_compiling" = yes; then
42931   ol_cv_berkeley_db_thread=cross
42932 else
42933   cat >conftest.$ac_ext <<_ACEOF
42934 /* confdefs.h.  */
42935 _ACEOF
42936 cat confdefs.h >>conftest.$ac_ext
42937 cat >>conftest.$ac_ext <<_ACEOF
42938 /* end confdefs.h.  */
42939
42940 #ifdef HAVE_DB_185_H
42941         choke me;
42942 #else
42943 #include <db.h>
42944 #endif
42945 #ifndef NULL
42946 #define NULL ((void *)0)
42947 #endif
42948 main()
42949 {
42950         int rc;
42951         u_int32_t flags = DB_CREATE |
42952 #ifdef DB_PRIVATE
42953                 DB_PRIVATE |
42954 #endif
42955                 DB_THREAD;
42956
42957 #if DB_VERSION_MAJOR > 2
42958         DB_ENV *env = NULL;
42959
42960         rc = db_env_create( &env, 0 );
42961
42962         flags |= DB_INIT_MPOOL;
42963 #ifdef DB_MPOOL_PRIVATE
42964         flags |= DB_MPOOL_PRIVATE;
42965 #endif
42966
42967         if( rc ) {
42968                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42969                 return rc;
42970         }
42971
42972 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
42973         rc = env->open( env, NULL, flags, 0 );
42974 #else
42975         rc = env->open( env, NULL, NULL, flags, 0 );
42976 #endif
42977
42978         if ( rc == 0 ) {
42979                 rc = env->close( env, 0 );
42980         }
42981
42982         if( rc ) {
42983                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42984                 return rc;
42985         }
42986
42987 #else
42988         DB_ENV env;
42989         memset( &env, '\0', sizeof(env) );
42990
42991         rc = db_appinit( NULL, NULL, &env, flags );
42992
42993         if( rc == 0 ) {
42994                 db_appexit( &env );
42995         }
42996
42997         unlink("__db_mpool.share");
42998         unlink("__db_lock.share");
42999 #endif
43000
43001         return rc;
43002 }
43003 _ACEOF
43004 rm -f conftest$ac_exeext
43005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43006   (eval $ac_link) 2>&5
43007   ac_status=$?
43008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43011   (eval $ac_try) 2>&5
43012   ac_status=$?
43013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43014   (exit $ac_status); }; }; then
43015   ol_cv_berkeley_db_thread=yes
43016 else
43017   echo "$as_me: program exited with status $ac_status" >&5
43018 echo "$as_me: failed program was:" >&5
43019 sed 's/^/| /' conftest.$ac_ext >&5
43020
43021 ( exit $ac_status )
43022 ol_cv_berkeley_db_thread=no
43023 fi
43024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43025 fi
43026
43027         LIBS="$ol_LIBS"
43028
43029 fi
43030 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43031 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43032
43033         if test $ol_cv_berkeley_db_thread != no ; then
43034
43035 cat >>confdefs.h <<\_ACEOF
43036 #define HAVE_BERKELEY_DB_THREAD 1
43037 _ACEOF
43038
43039         fi
43040
43041         fi
43042 fi
43043
43044         fi
43045
43046         if test $ol_cv_berkeley_db != no ; then
43047
43048 cat >>confdefs.h <<\_ACEOF
43049 #define HAVE_BERKELEY_DB 1
43050 _ACEOF
43051
43052
43053                 ol_link_ldbm=berkeley
43054                 ol_with_ldbm_api=berkeley
43055
43056                 if test $ol_with_ldbm_type = hash ; then
43057
43058 cat >>confdefs.h <<\_ACEOF
43059 #define LDBM_USE_DBHASH 1
43060 _ACEOF
43061
43062                 else
43063
43064 cat >>confdefs.h <<\_ACEOF
43065 #define LDBM_USE_DBBTREE 1
43066 _ACEOF
43067
43068                 fi
43069
43070                                                 if test $ol_cv_lib_db != yes ; then
43071                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43072                 fi
43073         fi
43074 fi
43075
43076 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43077         if test $ol_link_ldbm != berkeley ; then
43078                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43079 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43080    { (exit 1); exit 1; }; }
43081         else
43082                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43083 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43084 if test "${ol_cv_bdb_compat+set}" = set; then
43085   echo $ECHO_N "(cached) $ECHO_C" >&6
43086 else
43087
43088         cat >conftest.$ac_ext <<_ACEOF
43089 /* confdefs.h.  */
43090 _ACEOF
43091 cat confdefs.h >>conftest.$ac_ext
43092 cat >>conftest.$ac_ext <<_ACEOF
43093 /* end confdefs.h.  */
43094
43095 #include <db.h>
43096
43097  /* this check could be improved */
43098 #ifndef DB_VERSION_MAJOR
43099 #       define DB_VERSION_MAJOR 1
43100 #endif
43101 #ifndef DB_VERSION_MINOR
43102 #       define DB_VERSION_MINOR 0
43103 #endif
43104
43105 /* require 4.2 or later */
43106 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43107         __db_version_compat
43108 #endif
43109
43110 _ACEOF
43111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43112   $EGREP "__db_version_compat" >/dev/null 2>&1; then
43113   ol_cv_bdb_compat=yes
43114 else
43115   ol_cv_bdb_compat=no
43116 fi
43117 rm -f conftest*
43118
43119 fi
43120 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43121 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43122
43123
43124                 if test $ol_cv_bdb_compat != yes ; then
43125                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43126 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43127    { (exit 1); exit 1; }; }
43128                 fi
43129         fi
43130 fi
43131
43132 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43133         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43134 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43135         ol_with_ldbm_api=none
43136 fi
43137
43138 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43139         echo "$as_me:$LINENO: checking for MDBM library" >&5
43140 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43141 if test "${ol_cv_lib_mdbm+set}" = set; then
43142   echo $ECHO_N "(cached) $ECHO_C" >&6
43143 else
43144         ol_LIBS="$LIBS"
43145         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43146 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43147 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43148   echo $ECHO_N "(cached) $ECHO_C" >&6
43149 else
43150   cat >conftest.$ac_ext <<_ACEOF
43151 /* confdefs.h.  */
43152 _ACEOF
43153 cat confdefs.h >>conftest.$ac_ext
43154 cat >>conftest.$ac_ext <<_ACEOF
43155 /* end confdefs.h.  */
43156 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43158 #define mdbm_set_chain innocuous_mdbm_set_chain
43159
43160 /* System header to define __stub macros and hopefully few prototypes,
43161     which can conflict with char mdbm_set_chain (); below.
43162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43163     <limits.h> exists even on freestanding compilers.  */
43164
43165 #ifdef __STDC__
43166 # include <limits.h>
43167 #else
43168 # include <assert.h>
43169 #endif
43170
43171 #undef mdbm_set_chain
43172
43173 /* Override any gcc2 internal prototype to avoid an error.  */
43174 #ifdef __cplusplus
43175 extern "C"
43176 {
43177 #endif
43178 /* We use char because int might match the return type of a gcc2
43179    builtin and then its argument prototype would still apply.  */
43180 char mdbm_set_chain ();
43181 /* The GNU C library defines this for functions which it implements
43182     to always fail with ENOSYS.  Some functions are actually named
43183     something starting with __ and the normal name is an alias.  */
43184 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43185 choke me
43186 #else
43187 char (*f) () = mdbm_set_chain;
43188 #endif
43189 #ifdef __cplusplus
43190 }
43191 #endif
43192
43193 int
43194 main ()
43195 {
43196 return f != mdbm_set_chain;
43197   ;
43198   return 0;
43199 }
43200 _ACEOF
43201 rm -f conftest.$ac_objext conftest$ac_exeext
43202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43203   (eval $ac_link) 2>conftest.er1
43204   ac_status=$?
43205   grep -v '^ *+' conftest.er1 >conftest.err
43206   rm -f conftest.er1
43207   cat conftest.err >&5
43208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43209   (exit $ac_status); } &&
43210          { ac_try='test -z "$ac_c_werror_flag"
43211                          || test ! -s conftest.err'
43212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43213   (eval $ac_try) 2>&5
43214   ac_status=$?
43215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43216   (exit $ac_status); }; } &&
43217          { ac_try='test -s conftest$ac_exeext'
43218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43219   (eval $ac_try) 2>&5
43220   ac_status=$?
43221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43222   (exit $ac_status); }; }; then
43223   ac_cv_func_mdbm_set_chain=yes
43224 else
43225   echo "$as_me: failed program was:" >&5
43226 sed 's/^/| /' conftest.$ac_ext >&5
43227
43228 ac_cv_func_mdbm_set_chain=no
43229 fi
43230 rm -f conftest.err conftest.$ac_objext \
43231       conftest$ac_exeext conftest.$ac_ext
43232 fi
43233 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43234 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43235 if test $ac_cv_func_mdbm_set_chain = yes; then
43236   ol_cv_lib_mdbm=yes
43237 else
43238
43239                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43240 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43241 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43242   echo $ECHO_N "(cached) $ECHO_C" >&6
43243 else
43244   ac_check_lib_save_LIBS=$LIBS
43245 LIBS="-lmdbm  $LIBS"
43246 cat >conftest.$ac_ext <<_ACEOF
43247 /* confdefs.h.  */
43248 _ACEOF
43249 cat confdefs.h >>conftest.$ac_ext
43250 cat >>conftest.$ac_ext <<_ACEOF
43251 /* end confdefs.h.  */
43252
43253 /* Override any gcc2 internal prototype to avoid an error.  */
43254 #ifdef __cplusplus
43255 extern "C"
43256 #endif
43257 /* We use char because int might match the return type of a gcc2
43258    builtin and then its argument prototype would still apply.  */
43259 char mdbm_set_chain ();
43260 int
43261 main ()
43262 {
43263 mdbm_set_chain ();
43264   ;
43265   return 0;
43266 }
43267 _ACEOF
43268 rm -f conftest.$ac_objext conftest$ac_exeext
43269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43270   (eval $ac_link) 2>conftest.er1
43271   ac_status=$?
43272   grep -v '^ *+' conftest.er1 >conftest.err
43273   rm -f conftest.er1
43274   cat conftest.err >&5
43275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43276   (exit $ac_status); } &&
43277          { ac_try='test -z "$ac_c_werror_flag"
43278                          || test ! -s conftest.err'
43279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43280   (eval $ac_try) 2>&5
43281   ac_status=$?
43282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43283   (exit $ac_status); }; } &&
43284          { ac_try='test -s conftest$ac_exeext'
43285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43286   (eval $ac_try) 2>&5
43287   ac_status=$?
43288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43289   (exit $ac_status); }; }; then
43290   ac_cv_lib_mdbm_mdbm_set_chain=yes
43291 else
43292   echo "$as_me: failed program was:" >&5
43293 sed 's/^/| /' conftest.$ac_ext >&5
43294
43295 ac_cv_lib_mdbm_mdbm_set_chain=no
43296 fi
43297 rm -f conftest.err conftest.$ac_objext \
43298       conftest$ac_exeext conftest.$ac_ext
43299 LIBS=$ac_check_lib_save_LIBS
43300 fi
43301 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43302 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43303 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43304   ol_cv_lib_mdbm=-lmdbm
43305 else
43306   ol_cv_lib_mdbm=no
43307 fi
43308
43309
43310 fi
43311
43312         LIBS="$ol_LIBS"
43313
43314 fi
43315 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43316 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43317
43318
43319
43320 for ac_header in mdbm.h
43321 do
43322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43324   echo "$as_me:$LINENO: checking for $ac_header" >&5
43325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43327   echo $ECHO_N "(cached) $ECHO_C" >&6
43328 fi
43329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43331 else
43332   # Is the header compilable?
43333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43335 cat >conftest.$ac_ext <<_ACEOF
43336 /* confdefs.h.  */
43337 _ACEOF
43338 cat confdefs.h >>conftest.$ac_ext
43339 cat >>conftest.$ac_ext <<_ACEOF
43340 /* end confdefs.h.  */
43341 $ac_includes_default
43342 #include <$ac_header>
43343 _ACEOF
43344 rm -f conftest.$ac_objext
43345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43346   (eval $ac_compile) 2>conftest.er1
43347   ac_status=$?
43348   grep -v '^ *+' conftest.er1 >conftest.err
43349   rm -f conftest.er1
43350   cat conftest.err >&5
43351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43352   (exit $ac_status); } &&
43353          { ac_try='test -z "$ac_c_werror_flag"
43354                          || test ! -s conftest.err'
43355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43356   (eval $ac_try) 2>&5
43357   ac_status=$?
43358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43359   (exit $ac_status); }; } &&
43360          { ac_try='test -s conftest.$ac_objext'
43361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43362   (eval $ac_try) 2>&5
43363   ac_status=$?
43364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43365   (exit $ac_status); }; }; then
43366   ac_header_compiler=yes
43367 else
43368   echo "$as_me: failed program was:" >&5
43369 sed 's/^/| /' conftest.$ac_ext >&5
43370
43371 ac_header_compiler=no
43372 fi
43373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43375 echo "${ECHO_T}$ac_header_compiler" >&6
43376
43377 # Is the header present?
43378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43380 cat >conftest.$ac_ext <<_ACEOF
43381 /* confdefs.h.  */
43382 _ACEOF
43383 cat confdefs.h >>conftest.$ac_ext
43384 cat >>conftest.$ac_ext <<_ACEOF
43385 /* end confdefs.h.  */
43386 #include <$ac_header>
43387 _ACEOF
43388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43390   ac_status=$?
43391   grep -v '^ *+' conftest.er1 >conftest.err
43392   rm -f conftest.er1
43393   cat conftest.err >&5
43394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43395   (exit $ac_status); } >/dev/null; then
43396   if test -s conftest.err; then
43397     ac_cpp_err=$ac_c_preproc_warn_flag
43398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43399   else
43400     ac_cpp_err=
43401   fi
43402 else
43403   ac_cpp_err=yes
43404 fi
43405 if test -z "$ac_cpp_err"; then
43406   ac_header_preproc=yes
43407 else
43408   echo "$as_me: failed program was:" >&5
43409 sed 's/^/| /' conftest.$ac_ext >&5
43410
43411   ac_header_preproc=no
43412 fi
43413 rm -f conftest.err conftest.$ac_ext
43414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43415 echo "${ECHO_T}$ac_header_preproc" >&6
43416
43417 # So?  What about this header?
43418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43419   yes:no: )
43420     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43424     ac_header_preproc=yes
43425     ;;
43426   no:yes:* )
43427     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43429     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43430 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43431     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43433     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43434 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43437     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43439     (
43440       cat <<\_ASBOX
43441 ## ------------------------------------------ ##
43442 ## Report this to the AC_PACKAGE_NAME lists.  ##
43443 ## ------------------------------------------ ##
43444 _ASBOX
43445     ) |
43446       sed "s/^/$as_me: WARNING:     /" >&2
43447     ;;
43448 esac
43449 echo "$as_me:$LINENO: checking for $ac_header" >&5
43450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43452   echo $ECHO_N "(cached) $ECHO_C" >&6
43453 else
43454   eval "$as_ac_Header=\$ac_header_preproc"
43455 fi
43456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43458
43459 fi
43460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43461   cat >>confdefs.h <<_ACEOF
43462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43463 _ACEOF
43464
43465 fi
43466
43467 done
43468
43469  echo "$as_me:$LINENO: checking for db" >&5
43470 echo $ECHO_N "checking for db... $ECHO_C" >&6
43471 if test "${ol_cv_mdbm+set}" = set; then
43472   echo $ECHO_N "(cached) $ECHO_C" >&6
43473 else
43474
43475         if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43476                 ol_cv_mdbm=no
43477         else
43478                 ol_cv_mdbm=yes
43479         fi
43480
43481 fi
43482 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43483 echo "${ECHO_T}$ol_cv_mdbm" >&6
43484  if test $ol_cv_mdbm = yes ; then
43485
43486 cat >>confdefs.h <<\_ACEOF
43487 #define HAVE_MDBM 1
43488 _ACEOF
43489
43490  fi
43491
43492
43493         if test $ol_cv_mdbm = yes ; then
43494                 ol_link_ldbm=mdbm
43495                 ol_with_ldbm_api=mdbm
43496                 if test $ol_cv_lib_mdbm != yes ; then
43497                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43498                 fi
43499         fi
43500 fi
43501
43502 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43503         echo "$as_me:$LINENO: checking for GDBM library" >&5
43504 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43505 if test "${ol_cv_lib_gdbm+set}" = set; then
43506   echo $ECHO_N "(cached) $ECHO_C" >&6
43507 else
43508         ol_LIBS="$LIBS"
43509         echo "$as_me:$LINENO: checking for gdbm_open" >&5
43510 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43511 if test "${ac_cv_func_gdbm_open+set}" = set; then
43512   echo $ECHO_N "(cached) $ECHO_C" >&6
43513 else
43514   cat >conftest.$ac_ext <<_ACEOF
43515 /* confdefs.h.  */
43516 _ACEOF
43517 cat confdefs.h >>conftest.$ac_ext
43518 cat >>conftest.$ac_ext <<_ACEOF
43519 /* end confdefs.h.  */
43520 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43522 #define gdbm_open innocuous_gdbm_open
43523
43524 /* System header to define __stub macros and hopefully few prototypes,
43525     which can conflict with char gdbm_open (); below.
43526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43527     <limits.h> exists even on freestanding compilers.  */
43528
43529 #ifdef __STDC__
43530 # include <limits.h>
43531 #else
43532 # include <assert.h>
43533 #endif
43534
43535 #undef gdbm_open
43536
43537 /* Override any gcc2 internal prototype to avoid an error.  */
43538 #ifdef __cplusplus
43539 extern "C"
43540 {
43541 #endif
43542 /* We use char because int might match the return type of a gcc2
43543    builtin and then its argument prototype would still apply.  */
43544 char gdbm_open ();
43545 /* The GNU C library defines this for functions which it implements
43546     to always fail with ENOSYS.  Some functions are actually named
43547     something starting with __ and the normal name is an alias.  */
43548 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43549 choke me
43550 #else
43551 char (*f) () = gdbm_open;
43552 #endif
43553 #ifdef __cplusplus
43554 }
43555 #endif
43556
43557 int
43558 main ()
43559 {
43560 return f != gdbm_open;
43561   ;
43562   return 0;
43563 }
43564 _ACEOF
43565 rm -f conftest.$ac_objext conftest$ac_exeext
43566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43567   (eval $ac_link) 2>conftest.er1
43568   ac_status=$?
43569   grep -v '^ *+' conftest.er1 >conftest.err
43570   rm -f conftest.er1
43571   cat conftest.err >&5
43572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43573   (exit $ac_status); } &&
43574          { ac_try='test -z "$ac_c_werror_flag"
43575                          || test ! -s conftest.err'
43576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43577   (eval $ac_try) 2>&5
43578   ac_status=$?
43579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43580   (exit $ac_status); }; } &&
43581          { ac_try='test -s conftest$ac_exeext'
43582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43583   (eval $ac_try) 2>&5
43584   ac_status=$?
43585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43586   (exit $ac_status); }; }; then
43587   ac_cv_func_gdbm_open=yes
43588 else
43589   echo "$as_me: failed program was:" >&5
43590 sed 's/^/| /' conftest.$ac_ext >&5
43591
43592 ac_cv_func_gdbm_open=no
43593 fi
43594 rm -f conftest.err conftest.$ac_objext \
43595       conftest$ac_exeext conftest.$ac_ext
43596 fi
43597 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43598 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43599 if test $ac_cv_func_gdbm_open = yes; then
43600   ol_cv_lib_gdbm=yes
43601 else
43602
43603                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43604 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43605 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43606   echo $ECHO_N "(cached) $ECHO_C" >&6
43607 else
43608   ac_check_lib_save_LIBS=$LIBS
43609 LIBS="-lgdbm  $LIBS"
43610 cat >conftest.$ac_ext <<_ACEOF
43611 /* confdefs.h.  */
43612 _ACEOF
43613 cat confdefs.h >>conftest.$ac_ext
43614 cat >>conftest.$ac_ext <<_ACEOF
43615 /* end confdefs.h.  */
43616
43617 /* Override any gcc2 internal prototype to avoid an error.  */
43618 #ifdef __cplusplus
43619 extern "C"
43620 #endif
43621 /* We use char because int might match the return type of a gcc2
43622    builtin and then its argument prototype would still apply.  */
43623 char gdbm_open ();
43624 int
43625 main ()
43626 {
43627 gdbm_open ();
43628   ;
43629   return 0;
43630 }
43631 _ACEOF
43632 rm -f conftest.$ac_objext conftest$ac_exeext
43633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43634   (eval $ac_link) 2>conftest.er1
43635   ac_status=$?
43636   grep -v '^ *+' conftest.er1 >conftest.err
43637   rm -f conftest.er1
43638   cat conftest.err >&5
43639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43640   (exit $ac_status); } &&
43641          { ac_try='test -z "$ac_c_werror_flag"
43642                          || test ! -s conftest.err'
43643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43644   (eval $ac_try) 2>&5
43645   ac_status=$?
43646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43647   (exit $ac_status); }; } &&
43648          { ac_try='test -s conftest$ac_exeext'
43649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43650   (eval $ac_try) 2>&5
43651   ac_status=$?
43652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43653   (exit $ac_status); }; }; then
43654   ac_cv_lib_gdbm_gdbm_open=yes
43655 else
43656   echo "$as_me: failed program was:" >&5
43657 sed 's/^/| /' conftest.$ac_ext >&5
43658
43659 ac_cv_lib_gdbm_gdbm_open=no
43660 fi
43661 rm -f conftest.err conftest.$ac_objext \
43662       conftest$ac_exeext conftest.$ac_ext
43663 LIBS=$ac_check_lib_save_LIBS
43664 fi
43665 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43666 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43667 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43668   ol_cv_lib_gdbm=-lgdbm
43669 else
43670   ol_cv_lib_gdbm=no
43671 fi
43672
43673
43674 fi
43675
43676         LIBS="$ol_LIBS"
43677
43678 fi
43679 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43680 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43681
43682
43683
43684 for ac_header in gdbm.h
43685 do
43686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43688   echo "$as_me:$LINENO: checking for $ac_header" >&5
43689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43691   echo $ECHO_N "(cached) $ECHO_C" >&6
43692 fi
43693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43695 else
43696   # Is the header compilable?
43697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43699 cat >conftest.$ac_ext <<_ACEOF
43700 /* confdefs.h.  */
43701 _ACEOF
43702 cat confdefs.h >>conftest.$ac_ext
43703 cat >>conftest.$ac_ext <<_ACEOF
43704 /* end confdefs.h.  */
43705 $ac_includes_default
43706 #include <$ac_header>
43707 _ACEOF
43708 rm -f conftest.$ac_objext
43709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43710   (eval $ac_compile) 2>conftest.er1
43711   ac_status=$?
43712   grep -v '^ *+' conftest.er1 >conftest.err
43713   rm -f conftest.er1
43714   cat conftest.err >&5
43715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43716   (exit $ac_status); } &&
43717          { ac_try='test -z "$ac_c_werror_flag"
43718                          || test ! -s conftest.err'
43719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43720   (eval $ac_try) 2>&5
43721   ac_status=$?
43722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43723   (exit $ac_status); }; } &&
43724          { ac_try='test -s conftest.$ac_objext'
43725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43726   (eval $ac_try) 2>&5
43727   ac_status=$?
43728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43729   (exit $ac_status); }; }; then
43730   ac_header_compiler=yes
43731 else
43732   echo "$as_me: failed program was:" >&5
43733 sed 's/^/| /' conftest.$ac_ext >&5
43734
43735 ac_header_compiler=no
43736 fi
43737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43739 echo "${ECHO_T}$ac_header_compiler" >&6
43740
43741 # Is the header present?
43742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43744 cat >conftest.$ac_ext <<_ACEOF
43745 /* confdefs.h.  */
43746 _ACEOF
43747 cat confdefs.h >>conftest.$ac_ext
43748 cat >>conftest.$ac_ext <<_ACEOF
43749 /* end confdefs.h.  */
43750 #include <$ac_header>
43751 _ACEOF
43752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43753   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43754   ac_status=$?
43755   grep -v '^ *+' conftest.er1 >conftest.err
43756   rm -f conftest.er1
43757   cat conftest.err >&5
43758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43759   (exit $ac_status); } >/dev/null; then
43760   if test -s conftest.err; then
43761     ac_cpp_err=$ac_c_preproc_warn_flag
43762     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43763   else
43764     ac_cpp_err=
43765   fi
43766 else
43767   ac_cpp_err=yes
43768 fi
43769 if test -z "$ac_cpp_err"; then
43770   ac_header_preproc=yes
43771 else
43772   echo "$as_me: failed program was:" >&5
43773 sed 's/^/| /' conftest.$ac_ext >&5
43774
43775   ac_header_preproc=no
43776 fi
43777 rm -f conftest.err conftest.$ac_ext
43778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43779 echo "${ECHO_T}$ac_header_preproc" >&6
43780
43781 # So?  What about this header?
43782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43783   yes:no: )
43784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43788     ac_header_preproc=yes
43789     ;;
43790   no:yes:* )
43791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43803     (
43804       cat <<\_ASBOX
43805 ## ------------------------------------------ ##
43806 ## Report this to the AC_PACKAGE_NAME lists.  ##
43807 ## ------------------------------------------ ##
43808 _ASBOX
43809     ) |
43810       sed "s/^/$as_me: WARNING:     /" >&2
43811     ;;
43812 esac
43813 echo "$as_me:$LINENO: checking for $ac_header" >&5
43814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43816   echo $ECHO_N "(cached) $ECHO_C" >&6
43817 else
43818   eval "$as_ac_Header=\$ac_header_preproc"
43819 fi
43820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43822
43823 fi
43824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43825   cat >>confdefs.h <<_ACEOF
43826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43827 _ACEOF
43828
43829 fi
43830
43831 done
43832
43833  echo "$as_me:$LINENO: checking for db" >&5
43834 echo $ECHO_N "checking for db... $ECHO_C" >&6
43835 if test "${ol_cv_gdbm+set}" = set; then
43836   echo $ECHO_N "(cached) $ECHO_C" >&6
43837 else
43838
43839         if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43840                 ol_cv_gdbm=no
43841         else
43842                 ol_cv_gdbm=yes
43843         fi
43844
43845 fi
43846 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43847 echo "${ECHO_T}$ol_cv_gdbm" >&6
43848  if test $ol_cv_gdbm = yes ; then
43849
43850 cat >>confdefs.h <<\_ACEOF
43851 #define HAVE_GDBM 1
43852 _ACEOF
43853
43854  fi
43855
43856
43857         if test $ol_cv_gdbm = yes ; then
43858                 ol_link_ldbm=gdbm
43859                 ol_with_ldbm_api=gdbm
43860
43861                 if test $ol_cv_lib_gdbm != yes ; then
43862                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43863                 fi
43864         fi
43865 fi
43866
43867 if test $ol_with_ldbm_api = ndbm ; then
43868         echo "$as_me:$LINENO: checking for NDBM library" >&5
43869 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43870 if test "${ol_cv_lib_ndbm+set}" = set; then
43871   echo $ECHO_N "(cached) $ECHO_C" >&6
43872 else
43873         ol_LIBS="$LIBS"
43874         echo "$as_me:$LINENO: checking for dbm_open" >&5
43875 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
43876 if test "${ac_cv_func_dbm_open+set}" = set; then
43877   echo $ECHO_N "(cached) $ECHO_C" >&6
43878 else
43879   cat >conftest.$ac_ext <<_ACEOF
43880 /* confdefs.h.  */
43881 _ACEOF
43882 cat confdefs.h >>conftest.$ac_ext
43883 cat >>conftest.$ac_ext <<_ACEOF
43884 /* end confdefs.h.  */
43885 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
43886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43887 #define dbm_open innocuous_dbm_open
43888
43889 /* System header to define __stub macros and hopefully few prototypes,
43890     which can conflict with char dbm_open (); below.
43891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43892     <limits.h> exists even on freestanding compilers.  */
43893
43894 #ifdef __STDC__
43895 # include <limits.h>
43896 #else
43897 # include <assert.h>
43898 #endif
43899
43900 #undef dbm_open
43901
43902 /* Override any gcc2 internal prototype to avoid an error.  */
43903 #ifdef __cplusplus
43904 extern "C"
43905 {
43906 #endif
43907 /* We use char because int might match the return type of a gcc2
43908    builtin and then its argument prototype would still apply.  */
43909 char dbm_open ();
43910 /* The GNU C library defines this for functions which it implements
43911     to always fail with ENOSYS.  Some functions are actually named
43912     something starting with __ and the normal name is an alias.  */
43913 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
43914 choke me
43915 #else
43916 char (*f) () = dbm_open;
43917 #endif
43918 #ifdef __cplusplus
43919 }
43920 #endif
43921
43922 int
43923 main ()
43924 {
43925 return f != dbm_open;
43926   ;
43927   return 0;
43928 }
43929 _ACEOF
43930 rm -f conftest.$ac_objext conftest$ac_exeext
43931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43932   (eval $ac_link) 2>conftest.er1
43933   ac_status=$?
43934   grep -v '^ *+' conftest.er1 >conftest.err
43935   rm -f conftest.er1
43936   cat conftest.err >&5
43937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43938   (exit $ac_status); } &&
43939          { ac_try='test -z "$ac_c_werror_flag"
43940                          || test ! -s conftest.err'
43941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43942   (eval $ac_try) 2>&5
43943   ac_status=$?
43944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43945   (exit $ac_status); }; } &&
43946          { ac_try='test -s conftest$ac_exeext'
43947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43948   (eval $ac_try) 2>&5
43949   ac_status=$?
43950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43951   (exit $ac_status); }; }; then
43952   ac_cv_func_dbm_open=yes
43953 else
43954   echo "$as_me: failed program was:" >&5
43955 sed 's/^/| /' conftest.$ac_ext >&5
43956
43957 ac_cv_func_dbm_open=no
43958 fi
43959 rm -f conftest.err conftest.$ac_objext \
43960       conftest$ac_exeext conftest.$ac_ext
43961 fi
43962 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
43963 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
43964 if test $ac_cv_func_dbm_open = yes; then
43965   ol_cv_lib_ndbm=yes
43966 else
43967
43968                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
43969 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
43970 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
43971   echo $ECHO_N "(cached) $ECHO_C" >&6
43972 else
43973   ac_check_lib_save_LIBS=$LIBS
43974 LIBS="-lndbm  $LIBS"
43975 cat >conftest.$ac_ext <<_ACEOF
43976 /* confdefs.h.  */
43977 _ACEOF
43978 cat confdefs.h >>conftest.$ac_ext
43979 cat >>conftest.$ac_ext <<_ACEOF
43980 /* end confdefs.h.  */
43981
43982 /* Override any gcc2 internal prototype to avoid an error.  */
43983 #ifdef __cplusplus
43984 extern "C"
43985 #endif
43986 /* We use char because int might match the return type of a gcc2
43987    builtin and then its argument prototype would still apply.  */
43988 char dbm_open ();
43989 int
43990 main ()
43991 {
43992 dbm_open ();
43993   ;
43994   return 0;
43995 }
43996 _ACEOF
43997 rm -f conftest.$ac_objext conftest$ac_exeext
43998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43999   (eval $ac_link) 2>conftest.er1
44000   ac_status=$?
44001   grep -v '^ *+' conftest.er1 >conftest.err
44002   rm -f conftest.er1
44003   cat conftest.err >&5
44004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44005   (exit $ac_status); } &&
44006          { ac_try='test -z "$ac_c_werror_flag"
44007                          || test ! -s conftest.err'
44008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44009   (eval $ac_try) 2>&5
44010   ac_status=$?
44011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44012   (exit $ac_status); }; } &&
44013          { ac_try='test -s conftest$ac_exeext'
44014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44015   (eval $ac_try) 2>&5
44016   ac_status=$?
44017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44018   (exit $ac_status); }; }; then
44019   ac_cv_lib_ndbm_dbm_open=yes
44020 else
44021   echo "$as_me: failed program was:" >&5
44022 sed 's/^/| /' conftest.$ac_ext >&5
44023
44024 ac_cv_lib_ndbm_dbm_open=no
44025 fi
44026 rm -f conftest.err conftest.$ac_objext \
44027       conftest$ac_exeext conftest.$ac_ext
44028 LIBS=$ac_check_lib_save_LIBS
44029 fi
44030 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44031 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44032 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44033   ol_cv_lib_ndbm=-lndbm
44034 else
44035
44036                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44037 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44038 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44039   echo $ECHO_N "(cached) $ECHO_C" >&6
44040 else
44041   ac_check_lib_save_LIBS=$LIBS
44042 LIBS="-ldbm  $LIBS"
44043 cat >conftest.$ac_ext <<_ACEOF
44044 /* confdefs.h.  */
44045 _ACEOF
44046 cat confdefs.h >>conftest.$ac_ext
44047 cat >>conftest.$ac_ext <<_ACEOF
44048 /* end confdefs.h.  */
44049
44050 /* Override any gcc2 internal prototype to avoid an error.  */
44051 #ifdef __cplusplus
44052 extern "C"
44053 #endif
44054 /* We use char because int might match the return type of a gcc2
44055    builtin and then its argument prototype would still apply.  */
44056 char dbm_open ();
44057 int
44058 main ()
44059 {
44060 dbm_open ();
44061   ;
44062   return 0;
44063 }
44064 _ACEOF
44065 rm -f conftest.$ac_objext conftest$ac_exeext
44066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44067   (eval $ac_link) 2>conftest.er1
44068   ac_status=$?
44069   grep -v '^ *+' conftest.er1 >conftest.err
44070   rm -f conftest.er1
44071   cat conftest.err >&5
44072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44073   (exit $ac_status); } &&
44074          { ac_try='test -z "$ac_c_werror_flag"
44075                          || test ! -s conftest.err'
44076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44077   (eval $ac_try) 2>&5
44078   ac_status=$?
44079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44080   (exit $ac_status); }; } &&
44081          { ac_try='test -s conftest$ac_exeext'
44082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44083   (eval $ac_try) 2>&5
44084   ac_status=$?
44085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44086   (exit $ac_status); }; }; then
44087   ac_cv_lib_dbm_dbm_open=yes
44088 else
44089   echo "$as_me: failed program was:" >&5
44090 sed 's/^/| /' conftest.$ac_ext >&5
44091
44092 ac_cv_lib_dbm_dbm_open=no
44093 fi
44094 rm -f conftest.err conftest.$ac_objext \
44095       conftest$ac_exeext conftest.$ac_ext
44096 LIBS=$ac_check_lib_save_LIBS
44097 fi
44098 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44099 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44100 if test $ac_cv_lib_dbm_dbm_open = yes; then
44101   ol_cv_lib_ndbm=-ldbm
44102 else
44103   ol_cv_lib_ndbm=no
44104 fi
44105
44106 fi
44107
44108
44109 fi
44110
44111         LIBS="$ol_LIBS"
44112
44113 fi
44114 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44115 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44116
44117
44118
44119 for ac_header in ndbm.h
44120 do
44121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44123   echo "$as_me:$LINENO: checking for $ac_header" >&5
44124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44126   echo $ECHO_N "(cached) $ECHO_C" >&6
44127 fi
44128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44130 else
44131   # Is the header compilable?
44132 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44134 cat >conftest.$ac_ext <<_ACEOF
44135 /* confdefs.h.  */
44136 _ACEOF
44137 cat confdefs.h >>conftest.$ac_ext
44138 cat >>conftest.$ac_ext <<_ACEOF
44139 /* end confdefs.h.  */
44140 $ac_includes_default
44141 #include <$ac_header>
44142 _ACEOF
44143 rm -f conftest.$ac_objext
44144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44145   (eval $ac_compile) 2>conftest.er1
44146   ac_status=$?
44147   grep -v '^ *+' conftest.er1 >conftest.err
44148   rm -f conftest.er1
44149   cat conftest.err >&5
44150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44151   (exit $ac_status); } &&
44152          { ac_try='test -z "$ac_c_werror_flag"
44153                          || test ! -s conftest.err'
44154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44155   (eval $ac_try) 2>&5
44156   ac_status=$?
44157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44158   (exit $ac_status); }; } &&
44159          { ac_try='test -s conftest.$ac_objext'
44160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44161   (eval $ac_try) 2>&5
44162   ac_status=$?
44163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44164   (exit $ac_status); }; }; then
44165   ac_header_compiler=yes
44166 else
44167   echo "$as_me: failed program was:" >&5
44168 sed 's/^/| /' conftest.$ac_ext >&5
44169
44170 ac_header_compiler=no
44171 fi
44172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44174 echo "${ECHO_T}$ac_header_compiler" >&6
44175
44176 # Is the header present?
44177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44179 cat >conftest.$ac_ext <<_ACEOF
44180 /* confdefs.h.  */
44181 _ACEOF
44182 cat confdefs.h >>conftest.$ac_ext
44183 cat >>conftest.$ac_ext <<_ACEOF
44184 /* end confdefs.h.  */
44185 #include <$ac_header>
44186 _ACEOF
44187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44188   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44189   ac_status=$?
44190   grep -v '^ *+' conftest.er1 >conftest.err
44191   rm -f conftest.er1
44192   cat conftest.err >&5
44193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44194   (exit $ac_status); } >/dev/null; then
44195   if test -s conftest.err; then
44196     ac_cpp_err=$ac_c_preproc_warn_flag
44197     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44198   else
44199     ac_cpp_err=
44200   fi
44201 else
44202   ac_cpp_err=yes
44203 fi
44204 if test -z "$ac_cpp_err"; then
44205   ac_header_preproc=yes
44206 else
44207   echo "$as_me: failed program was:" >&5
44208 sed 's/^/| /' conftest.$ac_ext >&5
44209
44210   ac_header_preproc=no
44211 fi
44212 rm -f conftest.err conftest.$ac_ext
44213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44214 echo "${ECHO_T}$ac_header_preproc" >&6
44215
44216 # So?  What about this header?
44217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44218   yes:no: )
44219     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44223     ac_header_preproc=yes
44224     ;;
44225   no:yes:* )
44226     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44228     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44229 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44230     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44232     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44233 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44236     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44238     (
44239       cat <<\_ASBOX
44240 ## ------------------------------------------ ##
44241 ## Report this to the AC_PACKAGE_NAME lists.  ##
44242 ## ------------------------------------------ ##
44243 _ASBOX
44244     ) |
44245       sed "s/^/$as_me: WARNING:     /" >&2
44246     ;;
44247 esac
44248 echo "$as_me:$LINENO: checking for $ac_header" >&5
44249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44251   echo $ECHO_N "(cached) $ECHO_C" >&6
44252 else
44253   eval "$as_ac_Header=\$ac_header_preproc"
44254 fi
44255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44257
44258 fi
44259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44260   cat >>confdefs.h <<_ACEOF
44261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44262 _ACEOF
44263
44264 fi
44265
44266 done
44267
44268  echo "$as_me:$LINENO: checking for db" >&5
44269 echo $ECHO_N "checking for db... $ECHO_C" >&6
44270 if test "${ol_cv_ndbm+set}" = set; then
44271   echo $ECHO_N "(cached) $ECHO_C" >&6
44272 else
44273
44274         if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44275                 ol_cv_ndbm=no
44276         else
44277                 ol_cv_ndbm=yes
44278         fi
44279
44280 fi
44281 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44282 echo "${ECHO_T}$ol_cv_ndbm" >&6
44283  if test $ol_cv_ndbm = yes ; then
44284
44285 cat >>confdefs.h <<\_ACEOF
44286 #define HAVE_NDBM 1
44287 _ACEOF
44288
44289  fi
44290
44291
44292         if test $ol_cv_ndbm = yes ; then
44293                 ol_link_ldbm=ndbm
44294                 ol_with_ldbm_api=ndbm
44295
44296                 if test $ol_cv_lib_ndbm != yes ; then
44297                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44298                 fi
44299         fi
44300 fi
44301
44302 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44303         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44304 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44305    { (exit 1); exit 1; }; }
44306 fi
44307
44308 if test $ol_enable_bdb = yes -o \
44309         $ol_enable_hdb = yes -o \
44310         $ol_enable_ldbm = yes ; then
44311         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44312 fi
44313
44314
44315 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44316         BUILD_LIBS_DYNAMIC=shared
44317
44318 cat >>confdefs.h <<\_ACEOF
44319 #define LDAP_LIBS_DYNAMIC 1
44320 _ACEOF
44321
44322         LTSTATIC=""
44323 else
44324         BUILD_LIBS_DYNAMIC=static
44325         LTSTATIC="-static"
44326 fi
44327
44328 if test $ol_enable_wrappers != no ; then
44329
44330 for ac_header in tcpd.h
44331 do
44332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44334   echo "$as_me:$LINENO: checking for $ac_header" >&5
44335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44337   echo $ECHO_N "(cached) $ECHO_C" >&6
44338 fi
44339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44341 else
44342   # Is the header compilable?
44343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44345 cat >conftest.$ac_ext <<_ACEOF
44346 /* confdefs.h.  */
44347 _ACEOF
44348 cat confdefs.h >>conftest.$ac_ext
44349 cat >>conftest.$ac_ext <<_ACEOF
44350 /* end confdefs.h.  */
44351 $ac_includes_default
44352 #include <$ac_header>
44353 _ACEOF
44354 rm -f conftest.$ac_objext
44355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44356   (eval $ac_compile) 2>conftest.er1
44357   ac_status=$?
44358   grep -v '^ *+' conftest.er1 >conftest.err
44359   rm -f conftest.er1
44360   cat conftest.err >&5
44361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44362   (exit $ac_status); } &&
44363          { ac_try='test -z "$ac_c_werror_flag"
44364                          || test ! -s conftest.err'
44365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44366   (eval $ac_try) 2>&5
44367   ac_status=$?
44368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44369   (exit $ac_status); }; } &&
44370          { ac_try='test -s conftest.$ac_objext'
44371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44372   (eval $ac_try) 2>&5
44373   ac_status=$?
44374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44375   (exit $ac_status); }; }; then
44376   ac_header_compiler=yes
44377 else
44378   echo "$as_me: failed program was:" >&5
44379 sed 's/^/| /' conftest.$ac_ext >&5
44380
44381 ac_header_compiler=no
44382 fi
44383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44385 echo "${ECHO_T}$ac_header_compiler" >&6
44386
44387 # Is the header present?
44388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44390 cat >conftest.$ac_ext <<_ACEOF
44391 /* confdefs.h.  */
44392 _ACEOF
44393 cat confdefs.h >>conftest.$ac_ext
44394 cat >>conftest.$ac_ext <<_ACEOF
44395 /* end confdefs.h.  */
44396 #include <$ac_header>
44397 _ACEOF
44398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44399   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44400   ac_status=$?
44401   grep -v '^ *+' conftest.er1 >conftest.err
44402   rm -f conftest.er1
44403   cat conftest.err >&5
44404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44405   (exit $ac_status); } >/dev/null; then
44406   if test -s conftest.err; then
44407     ac_cpp_err=$ac_c_preproc_warn_flag
44408     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44409   else
44410     ac_cpp_err=
44411   fi
44412 else
44413   ac_cpp_err=yes
44414 fi
44415 if test -z "$ac_cpp_err"; then
44416   ac_header_preproc=yes
44417 else
44418   echo "$as_me: failed program was:" >&5
44419 sed 's/^/| /' conftest.$ac_ext >&5
44420
44421   ac_header_preproc=no
44422 fi
44423 rm -f conftest.err conftest.$ac_ext
44424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44425 echo "${ECHO_T}$ac_header_preproc" >&6
44426
44427 # So?  What about this header?
44428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44429   yes:no: )
44430     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44434     ac_header_preproc=yes
44435     ;;
44436   no:yes:* )
44437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44439     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44440 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44441     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44443     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44444 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44447     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44449     (
44450       cat <<\_ASBOX
44451 ## ------------------------------------------ ##
44452 ## Report this to the AC_PACKAGE_NAME lists.  ##
44453 ## ------------------------------------------ ##
44454 _ASBOX
44455     ) |
44456       sed "s/^/$as_me: WARNING:     /" >&2
44457     ;;
44458 esac
44459 echo "$as_me:$LINENO: checking for $ac_header" >&5
44460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44462   echo $ECHO_N "(cached) $ECHO_C" >&6
44463 else
44464   eval "$as_ac_Header=\$ac_header_preproc"
44465 fi
44466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44468
44469 fi
44470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44471   cat >>confdefs.h <<_ACEOF
44472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44473 _ACEOF
44474
44475                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44476 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44477                 save_LIBS="$LIBS"
44478                 LIBS="$LIBS -lwrap"
44479                 cat >conftest.$ac_ext <<_ACEOF
44480 /* confdefs.h.  */
44481 _ACEOF
44482 cat confdefs.h >>conftest.$ac_ext
44483 cat >>conftest.$ac_ext <<_ACEOF
44484 /* end confdefs.h.  */
44485
44486 #include <tcpd.h>
44487 int allow_severity = 0;
44488 int deny_severity  = 0;
44489
44490 struct request_info *req;
44491
44492 int
44493 main ()
44494 {
44495
44496 hosts_access(req)
44497
44498   ;
44499   return 0;
44500 }
44501 _ACEOF
44502 rm -f conftest.$ac_objext conftest$ac_exeext
44503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44504   (eval $ac_link) 2>conftest.er1
44505   ac_status=$?
44506   grep -v '^ *+' conftest.er1 >conftest.err
44507   rm -f conftest.er1
44508   cat conftest.err >&5
44509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44510   (exit $ac_status); } &&
44511          { ac_try='test -z "$ac_c_werror_flag"
44512                          || test ! -s conftest.err'
44513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44514   (eval $ac_try) 2>&5
44515   ac_status=$?
44516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44517   (exit $ac_status); }; } &&
44518          { ac_try='test -s conftest$ac_exeext'
44519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44520   (eval $ac_try) 2>&5
44521   ac_status=$?
44522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44523   (exit $ac_status); }; }; then
44524   echo "$as_me:$LINENO: result: -lwrap" >&5
44525 echo "${ECHO_T}-lwrap" >&6
44526                 have_wrappers=yes
44527                 LIBS="$save_LIBS"
44528 else
44529   echo "$as_me: failed program was:" >&5
44530 sed 's/^/| /' conftest.$ac_ext >&5
44531
44532
44533                                 LIBS="$LIBS -lnsl"
44534                 cat >conftest.$ac_ext <<_ACEOF
44535 /* confdefs.h.  */
44536 _ACEOF
44537 cat confdefs.h >>conftest.$ac_ext
44538 cat >>conftest.$ac_ext <<_ACEOF
44539 /* end confdefs.h.  */
44540
44541 #include <tcpd.h>
44542 int allow_severity = 0;
44543 int deny_severity  = 0;
44544
44545 struct request_info *req;
44546
44547 int
44548 main ()
44549 {
44550
44551 hosts_access(req)
44552
44553   ;
44554   return 0;
44555 }
44556 _ACEOF
44557 rm -f conftest.$ac_objext conftest$ac_exeext
44558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44559   (eval $ac_link) 2>conftest.er1
44560   ac_status=$?
44561   grep -v '^ *+' conftest.er1 >conftest.err
44562   rm -f conftest.er1
44563   cat conftest.err >&5
44564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44565   (exit $ac_status); } &&
44566          { ac_try='test -z "$ac_c_werror_flag"
44567                          || test ! -s conftest.err'
44568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44569   (eval $ac_try) 2>&5
44570   ac_status=$?
44571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44572   (exit $ac_status); }; } &&
44573          { ac_try='test -s conftest$ac_exeext'
44574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44575   (eval $ac_try) 2>&5
44576   ac_status=$?
44577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44578   (exit $ac_status); }; }; then
44579   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44580 echo "${ECHO_T}-lwrap -lnsl" >&6
44581                 have_wrappers=yes
44582                 LIBS="$save_LIBS -lnsl"
44583 else
44584   echo "$as_me: failed program was:" >&5
44585 sed 's/^/| /' conftest.$ac_ext >&5
44586
44587
44588                 echo "$as_me:$LINENO: result: no" >&5
44589 echo "${ECHO_T}no" >&6
44590                 have_wrappers=no
44591                 LIBS=$save_LIBS
44592 fi
44593 rm -f conftest.err conftest.$ac_objext \
44594       conftest$ac_exeext conftest.$ac_ext
44595 fi
44596 rm -f conftest.err conftest.$ac_objext \
44597       conftest$ac_exeext conftest.$ac_ext
44598 else
44599   have_wrappers=no
44600 fi
44601
44602 done
44603
44604
44605         if test $have_wrappers = yes ; then
44606
44607 cat >>confdefs.h <<\_ACEOF
44608 #define HAVE_TCPD 1
44609 _ACEOF
44610
44611                 WRAP_LIBS="-lwrap"
44612         elif test $ol_enable_wrappers = yes ; then
44613                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44614 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44615    { (exit 1); exit 1; }; }
44616         else
44617                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44618 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44619                 WRAP_LIBS=""
44620         fi
44621 fi
44622
44623 if test $ol_enable_syslog != no ; then
44624         echo "$as_me:$LINENO: checking for openlog" >&5
44625 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44626 if test "${ac_cv_func_openlog+set}" = set; then
44627   echo $ECHO_N "(cached) $ECHO_C" >&6
44628 else
44629   cat >conftest.$ac_ext <<_ACEOF
44630 /* confdefs.h.  */
44631 _ACEOF
44632 cat confdefs.h >>conftest.$ac_ext
44633 cat >>conftest.$ac_ext <<_ACEOF
44634 /* end confdefs.h.  */
44635 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44637 #define openlog innocuous_openlog
44638
44639 /* System header to define __stub macros and hopefully few prototypes,
44640     which can conflict with char openlog (); below.
44641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44642     <limits.h> exists even on freestanding compilers.  */
44643
44644 #ifdef __STDC__
44645 # include <limits.h>
44646 #else
44647 # include <assert.h>
44648 #endif
44649
44650 #undef openlog
44651
44652 /* Override any gcc2 internal prototype to avoid an error.  */
44653 #ifdef __cplusplus
44654 extern "C"
44655 {
44656 #endif
44657 /* We use char because int might match the return type of a gcc2
44658    builtin and then its argument prototype would still apply.  */
44659 char openlog ();
44660 /* The GNU C library defines this for functions which it implements
44661     to always fail with ENOSYS.  Some functions are actually named
44662     something starting with __ and the normal name is an alias.  */
44663 #if defined (__stub_openlog) || defined (__stub___openlog)
44664 choke me
44665 #else
44666 char (*f) () = openlog;
44667 #endif
44668 #ifdef __cplusplus
44669 }
44670 #endif
44671
44672 int
44673 main ()
44674 {
44675 return f != openlog;
44676   ;
44677   return 0;
44678 }
44679 _ACEOF
44680 rm -f conftest.$ac_objext conftest$ac_exeext
44681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44682   (eval $ac_link) 2>conftest.er1
44683   ac_status=$?
44684   grep -v '^ *+' conftest.er1 >conftest.err
44685   rm -f conftest.er1
44686   cat conftest.err >&5
44687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44688   (exit $ac_status); } &&
44689          { ac_try='test -z "$ac_c_werror_flag"
44690                          || test ! -s conftest.err'
44691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44692   (eval $ac_try) 2>&5
44693   ac_status=$?
44694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44695   (exit $ac_status); }; } &&
44696          { ac_try='test -s conftest$ac_exeext'
44697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44698   (eval $ac_try) 2>&5
44699   ac_status=$?
44700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44701   (exit $ac_status); }; }; then
44702   ac_cv_func_openlog=yes
44703 else
44704   echo "$as_me: failed program was:" >&5
44705 sed 's/^/| /' conftest.$ac_ext >&5
44706
44707 ac_cv_func_openlog=no
44708 fi
44709 rm -f conftest.err conftest.$ac_objext \
44710       conftest$ac_exeext conftest.$ac_ext
44711 fi
44712 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44713 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44714
44715         if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44716                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44717 echo "$as_me: error: could not find syslog" >&2;}
44718    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44719         fi
44720         ol_enable_syslog=$ac_cv_func_openlog
44721 fi
44722
44723
44724 ol_link_sql=no
44725 if test $ol_enable_sql != no ; then
44726
44727
44728 for ac_header in sql.h sqlext.h
44729 do
44730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44732   echo "$as_me:$LINENO: checking for $ac_header" >&5
44733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44735   echo $ECHO_N "(cached) $ECHO_C" >&6
44736 fi
44737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44739 else
44740   # Is the header compilable?
44741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44743 cat >conftest.$ac_ext <<_ACEOF
44744 /* confdefs.h.  */
44745 _ACEOF
44746 cat confdefs.h >>conftest.$ac_ext
44747 cat >>conftest.$ac_ext <<_ACEOF
44748 /* end confdefs.h.  */
44749 $ac_includes_default
44750 #include <$ac_header>
44751 _ACEOF
44752 rm -f conftest.$ac_objext
44753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44754   (eval $ac_compile) 2>conftest.er1
44755   ac_status=$?
44756   grep -v '^ *+' conftest.er1 >conftest.err
44757   rm -f conftest.er1
44758   cat conftest.err >&5
44759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44760   (exit $ac_status); } &&
44761          { ac_try='test -z "$ac_c_werror_flag"
44762                          || test ! -s conftest.err'
44763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44764   (eval $ac_try) 2>&5
44765   ac_status=$?
44766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44767   (exit $ac_status); }; } &&
44768          { ac_try='test -s conftest.$ac_objext'
44769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44770   (eval $ac_try) 2>&5
44771   ac_status=$?
44772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44773   (exit $ac_status); }; }; then
44774   ac_header_compiler=yes
44775 else
44776   echo "$as_me: failed program was:" >&5
44777 sed 's/^/| /' conftest.$ac_ext >&5
44778
44779 ac_header_compiler=no
44780 fi
44781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44783 echo "${ECHO_T}$ac_header_compiler" >&6
44784
44785 # Is the header present?
44786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44788 cat >conftest.$ac_ext <<_ACEOF
44789 /* confdefs.h.  */
44790 _ACEOF
44791 cat confdefs.h >>conftest.$ac_ext
44792 cat >>conftest.$ac_ext <<_ACEOF
44793 /* end confdefs.h.  */
44794 #include <$ac_header>
44795 _ACEOF
44796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44798   ac_status=$?
44799   grep -v '^ *+' conftest.er1 >conftest.err
44800   rm -f conftest.er1
44801   cat conftest.err >&5
44802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44803   (exit $ac_status); } >/dev/null; then
44804   if test -s conftest.err; then
44805     ac_cpp_err=$ac_c_preproc_warn_flag
44806     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44807   else
44808     ac_cpp_err=
44809   fi
44810 else
44811   ac_cpp_err=yes
44812 fi
44813 if test -z "$ac_cpp_err"; then
44814   ac_header_preproc=yes
44815 else
44816   echo "$as_me: failed program was:" >&5
44817 sed 's/^/| /' conftest.$ac_ext >&5
44818
44819   ac_header_preproc=no
44820 fi
44821 rm -f conftest.err conftest.$ac_ext
44822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44823 echo "${ECHO_T}$ac_header_preproc" >&6
44824
44825 # So?  What about this header?
44826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44827   yes:no: )
44828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44832     ac_header_preproc=yes
44833     ;;
44834   no:yes:* )
44835     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44837     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44838 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44839     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44841     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44842 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44845     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44847     (
44848       cat <<\_ASBOX
44849 ## ------------------------------------------ ##
44850 ## Report this to the AC_PACKAGE_NAME lists.  ##
44851 ## ------------------------------------------ ##
44852 _ASBOX
44853     ) |
44854       sed "s/^/$as_me: WARNING:     /" >&2
44855     ;;
44856 esac
44857 echo "$as_me:$LINENO: checking for $ac_header" >&5
44858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44860   echo $ECHO_N "(cached) $ECHO_C" >&6
44861 else
44862   eval "$as_ac_Header=\$ac_header_preproc"
44863 fi
44864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44866
44867 fi
44868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44869   cat >>confdefs.h <<_ACEOF
44870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44871 _ACEOF
44872
44873 else
44874
44875                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44876 echo "$as_me: error: could not locate SQL headers" >&2;}
44877    { (exit 1); exit 1; }; }
44878
44879 fi
44880
44881 done
44882
44883
44884         sql_LIBS="$LIBS"
44885         LIBS="$LTHREAD_LIBS"
44886
44887         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
44888 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
44889 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
44890   echo $ECHO_N "(cached) $ECHO_C" >&6
44891 else
44892   ac_check_lib_save_LIBS=$LIBS
44893 LIBS="-liodbc  $LIBS"
44894 cat >conftest.$ac_ext <<_ACEOF
44895 /* confdefs.h.  */
44896 _ACEOF
44897 cat confdefs.h >>conftest.$ac_ext
44898 cat >>conftest.$ac_ext <<_ACEOF
44899 /* end confdefs.h.  */
44900
44901 /* Override any gcc2 internal prototype to avoid an error.  */
44902 #ifdef __cplusplus
44903 extern "C"
44904 #endif
44905 /* We use char because int might match the return type of a gcc2
44906    builtin and then its argument prototype would still apply.  */
44907 char SQLDriverConnect ();
44908 int
44909 main ()
44910 {
44911 SQLDriverConnect ();
44912   ;
44913   return 0;
44914 }
44915 _ACEOF
44916 rm -f conftest.$ac_objext conftest$ac_exeext
44917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44918   (eval $ac_link) 2>conftest.er1
44919   ac_status=$?
44920   grep -v '^ *+' conftest.er1 >conftest.err
44921   rm -f conftest.er1
44922   cat conftest.err >&5
44923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44924   (exit $ac_status); } &&
44925          { ac_try='test -z "$ac_c_werror_flag"
44926                          || test ! -s conftest.err'
44927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44928   (eval $ac_try) 2>&5
44929   ac_status=$?
44930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44931   (exit $ac_status); }; } &&
44932          { ac_try='test -s conftest$ac_exeext'
44933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44934   (eval $ac_try) 2>&5
44935   ac_status=$?
44936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44937   (exit $ac_status); }; }; then
44938   ac_cv_lib_iodbc_SQLDriverConnect=yes
44939 else
44940   echo "$as_me: failed program was:" >&5
44941 sed 's/^/| /' conftest.$ac_ext >&5
44942
44943 ac_cv_lib_iodbc_SQLDriverConnect=no
44944 fi
44945 rm -f conftest.err conftest.$ac_objext \
44946       conftest$ac_exeext conftest.$ac_ext
44947 LIBS=$ac_check_lib_save_LIBS
44948 fi
44949 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
44950 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
44951 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
44952   have_iodbc=yes
44953 else
44954   have_iodbc=no
44955 fi
44956
44957         if test $have_iodbc = yes ; then
44958                 ol_link_sql="-liodbc"
44959         else
44960                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
44961 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
44962 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
44963   echo $ECHO_N "(cached) $ECHO_C" >&6
44964 else
44965   ac_check_lib_save_LIBS=$LIBS
44966 LIBS="-lodbc  $LIBS"
44967 cat >conftest.$ac_ext <<_ACEOF
44968 /* confdefs.h.  */
44969 _ACEOF
44970 cat confdefs.h >>conftest.$ac_ext
44971 cat >>conftest.$ac_ext <<_ACEOF
44972 /* end confdefs.h.  */
44973
44974 /* Override any gcc2 internal prototype to avoid an error.  */
44975 #ifdef __cplusplus
44976 extern "C"
44977 #endif
44978 /* We use char because int might match the return type of a gcc2
44979    builtin and then its argument prototype would still apply.  */
44980 char SQLDriverConnect ();
44981 int
44982 main ()
44983 {
44984 SQLDriverConnect ();
44985   ;
44986   return 0;
44987 }
44988 _ACEOF
44989 rm -f conftest.$ac_objext conftest$ac_exeext
44990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44991   (eval $ac_link) 2>conftest.er1
44992   ac_status=$?
44993   grep -v '^ *+' conftest.er1 >conftest.err
44994   rm -f conftest.er1
44995   cat conftest.err >&5
44996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44997   (exit $ac_status); } &&
44998          { ac_try='test -z "$ac_c_werror_flag"
44999                          || test ! -s conftest.err'
45000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45001   (eval $ac_try) 2>&5
45002   ac_status=$?
45003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45004   (exit $ac_status); }; } &&
45005          { ac_try='test -s conftest$ac_exeext'
45006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45007   (eval $ac_try) 2>&5
45008   ac_status=$?
45009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45010   (exit $ac_status); }; }; then
45011   ac_cv_lib_odbc_SQLDriverConnect=yes
45012 else
45013   echo "$as_me: failed program was:" >&5
45014 sed 's/^/| /' conftest.$ac_ext >&5
45015
45016 ac_cv_lib_odbc_SQLDriverConnect=no
45017 fi
45018 rm -f conftest.err conftest.$ac_objext \
45019       conftest$ac_exeext conftest.$ac_ext
45020 LIBS=$ac_check_lib_save_LIBS
45021 fi
45022 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45023 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45024 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45025   have_odbc=yes
45026 else
45027   have_odbc=no
45028 fi
45029
45030                 if test $have_odbc = yes ; then
45031                         ol_link_sql="-lodbc"
45032                 fi
45033         fi
45034
45035         LIBS="$sql_LIBS"
45036
45037         if test $ol_link_sql != no ; then
45038                 SLAPD_SQL_LIBS="$ol_link_sql"
45039
45040         elif test $ol_enable_sql != auto ; then
45041                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45042 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45043    { (exit 1); exit 1; }; }
45044         fi
45045 fi
45046
45047 WITH_SASL=no
45048 ol_link_sasl=no
45049 ol_link_spasswd=no
45050 if test $ol_with_cyrus_sasl != no ; then
45051
45052
45053 for ac_header in sasl/sasl.h sasl.h
45054 do
45055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45057   echo "$as_me:$LINENO: checking for $ac_header" >&5
45058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45060   echo $ECHO_N "(cached) $ECHO_C" >&6
45061 fi
45062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45064 else
45065   # Is the header compilable?
45066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45068 cat >conftest.$ac_ext <<_ACEOF
45069 /* confdefs.h.  */
45070 _ACEOF
45071 cat confdefs.h >>conftest.$ac_ext
45072 cat >>conftest.$ac_ext <<_ACEOF
45073 /* end confdefs.h.  */
45074 $ac_includes_default
45075 #include <$ac_header>
45076 _ACEOF
45077 rm -f conftest.$ac_objext
45078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45079   (eval $ac_compile) 2>conftest.er1
45080   ac_status=$?
45081   grep -v '^ *+' conftest.er1 >conftest.err
45082   rm -f conftest.er1
45083   cat conftest.err >&5
45084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45085   (exit $ac_status); } &&
45086          { ac_try='test -z "$ac_c_werror_flag"
45087                          || test ! -s conftest.err'
45088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45089   (eval $ac_try) 2>&5
45090   ac_status=$?
45091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45092   (exit $ac_status); }; } &&
45093          { ac_try='test -s conftest.$ac_objext'
45094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45095   (eval $ac_try) 2>&5
45096   ac_status=$?
45097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45098   (exit $ac_status); }; }; then
45099   ac_header_compiler=yes
45100 else
45101   echo "$as_me: failed program was:" >&5
45102 sed 's/^/| /' conftest.$ac_ext >&5
45103
45104 ac_header_compiler=no
45105 fi
45106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45108 echo "${ECHO_T}$ac_header_compiler" >&6
45109
45110 # Is the header present?
45111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45113 cat >conftest.$ac_ext <<_ACEOF
45114 /* confdefs.h.  */
45115 _ACEOF
45116 cat confdefs.h >>conftest.$ac_ext
45117 cat >>conftest.$ac_ext <<_ACEOF
45118 /* end confdefs.h.  */
45119 #include <$ac_header>
45120 _ACEOF
45121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45123   ac_status=$?
45124   grep -v '^ *+' conftest.er1 >conftest.err
45125   rm -f conftest.er1
45126   cat conftest.err >&5
45127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45128   (exit $ac_status); } >/dev/null; then
45129   if test -s conftest.err; then
45130     ac_cpp_err=$ac_c_preproc_warn_flag
45131     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45132   else
45133     ac_cpp_err=
45134   fi
45135 else
45136   ac_cpp_err=yes
45137 fi
45138 if test -z "$ac_cpp_err"; then
45139   ac_header_preproc=yes
45140 else
45141   echo "$as_me: failed program was:" >&5
45142 sed 's/^/| /' conftest.$ac_ext >&5
45143
45144   ac_header_preproc=no
45145 fi
45146 rm -f conftest.err conftest.$ac_ext
45147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45148 echo "${ECHO_T}$ac_header_preproc" >&6
45149
45150 # So?  What about this header?
45151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45152   yes:no: )
45153     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45157     ac_header_preproc=yes
45158     ;;
45159   no:yes:* )
45160     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45162     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45163 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45164     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45166     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45167 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45170     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45172     (
45173       cat <<\_ASBOX
45174 ## ------------------------------------------ ##
45175 ## Report this to the AC_PACKAGE_NAME lists.  ##
45176 ## ------------------------------------------ ##
45177 _ASBOX
45178     ) |
45179       sed "s/^/$as_me: WARNING:     /" >&2
45180     ;;
45181 esac
45182 echo "$as_me:$LINENO: checking for $ac_header" >&5
45183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45185   echo $ECHO_N "(cached) $ECHO_C" >&6
45186 else
45187   eval "$as_ac_Header=\$ac_header_preproc"
45188 fi
45189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45191
45192 fi
45193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45194   cat >>confdefs.h <<_ACEOF
45195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45196 _ACEOF
45197
45198 fi
45199
45200 done
45201
45202
45203         if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45204                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45205 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45206 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45207   echo $ECHO_N "(cached) $ECHO_C" >&6
45208 else
45209   ac_check_lib_save_LIBS=$LIBS
45210 LIBS="-lsasl2  $LIBS"
45211 cat >conftest.$ac_ext <<_ACEOF
45212 /* confdefs.h.  */
45213 _ACEOF
45214 cat confdefs.h >>conftest.$ac_ext
45215 cat >>conftest.$ac_ext <<_ACEOF
45216 /* end confdefs.h.  */
45217
45218 /* Override any gcc2 internal prototype to avoid an error.  */
45219 #ifdef __cplusplus
45220 extern "C"
45221 #endif
45222 /* We use char because int might match the return type of a gcc2
45223    builtin and then its argument prototype would still apply.  */
45224 char sasl_client_init ();
45225 int
45226 main ()
45227 {
45228 sasl_client_init ();
45229   ;
45230   return 0;
45231 }
45232 _ACEOF
45233 rm -f conftest.$ac_objext conftest$ac_exeext
45234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45235   (eval $ac_link) 2>conftest.er1
45236   ac_status=$?
45237   grep -v '^ *+' conftest.er1 >conftest.err
45238   rm -f conftest.er1
45239   cat conftest.err >&5
45240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45241   (exit $ac_status); } &&
45242          { ac_try='test -z "$ac_c_werror_flag"
45243                          || test ! -s conftest.err'
45244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45245   (eval $ac_try) 2>&5
45246   ac_status=$?
45247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45248   (exit $ac_status); }; } &&
45249          { ac_try='test -s conftest$ac_exeext'
45250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45251   (eval $ac_try) 2>&5
45252   ac_status=$?
45253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45254   (exit $ac_status); }; }; then
45255   ac_cv_lib_sasl2_sasl_client_init=yes
45256 else
45257   echo "$as_me: failed program was:" >&5
45258 sed 's/^/| /' conftest.$ac_ext >&5
45259
45260 ac_cv_lib_sasl2_sasl_client_init=no
45261 fi
45262 rm -f conftest.err conftest.$ac_objext \
45263       conftest$ac_exeext conftest.$ac_ext
45264 LIBS=$ac_check_lib_save_LIBS
45265 fi
45266 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45267 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45268 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45269   ol_link_sasl="-lsasl2"
45270 else
45271   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45272 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45273 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45274   echo $ECHO_N "(cached) $ECHO_C" >&6
45275 else
45276   ac_check_lib_save_LIBS=$LIBS
45277 LIBS="-lsasl  $LIBS"
45278 cat >conftest.$ac_ext <<_ACEOF
45279 /* confdefs.h.  */
45280 _ACEOF
45281 cat confdefs.h >>conftest.$ac_ext
45282 cat >>conftest.$ac_ext <<_ACEOF
45283 /* end confdefs.h.  */
45284
45285 /* Override any gcc2 internal prototype to avoid an error.  */
45286 #ifdef __cplusplus
45287 extern "C"
45288 #endif
45289 /* We use char because int might match the return type of a gcc2
45290    builtin and then its argument prototype would still apply.  */
45291 char sasl_client_init ();
45292 int
45293 main ()
45294 {
45295 sasl_client_init ();
45296   ;
45297   return 0;
45298 }
45299 _ACEOF
45300 rm -f conftest.$ac_objext conftest$ac_exeext
45301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45302   (eval $ac_link) 2>conftest.er1
45303   ac_status=$?
45304   grep -v '^ *+' conftest.er1 >conftest.err
45305   rm -f conftest.er1
45306   cat conftest.err >&5
45307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45308   (exit $ac_status); } &&
45309          { ac_try='test -z "$ac_c_werror_flag"
45310                          || test ! -s conftest.err'
45311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45312   (eval $ac_try) 2>&5
45313   ac_status=$?
45314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45315   (exit $ac_status); }; } &&
45316          { ac_try='test -s conftest$ac_exeext'
45317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45318   (eval $ac_try) 2>&5
45319   ac_status=$?
45320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45321   (exit $ac_status); }; }; then
45322   ac_cv_lib_sasl_sasl_client_init=yes
45323 else
45324   echo "$as_me: failed program was:" >&5
45325 sed 's/^/| /' conftest.$ac_ext >&5
45326
45327 ac_cv_lib_sasl_sasl_client_init=no
45328 fi
45329 rm -f conftest.err conftest.$ac_objext \
45330       conftest$ac_exeext conftest.$ac_ext
45331 LIBS=$ac_check_lib_save_LIBS
45332 fi
45333 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45334 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45335 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45336   ol_link_sasl="-lsasl"
45337 fi
45338
45339 fi
45340
45341         fi
45342
45343         if test $ol_link_sasl = no ; then
45344                 if test $ol_with_cyrus_sasl != auto ; then
45345                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45346 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45347    { (exit 1); exit 1; }; }
45348                 else
45349                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45350 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45351                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45352 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45353                         if test $ol_link_tls = no ; then
45354                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45355 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45356                         fi
45357                 fi
45358         else
45359                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45360 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45361 if test "${ol_cv_sasl_compat+set}" = set; then
45362   echo $ECHO_N "(cached) $ECHO_C" >&6
45363 else
45364
45365         cat >conftest.$ac_ext <<_ACEOF
45366 /* confdefs.h.  */
45367 _ACEOF
45368 cat confdefs.h >>conftest.$ac_ext
45369 cat >>conftest.$ac_ext <<_ACEOF
45370 /* end confdefs.h.  */
45371
45372 #ifdef HAVE_SASL_SASL_H
45373 #include <sasl/sasl.h>
45374 #else
45375 #include <sasl.h>
45376 #endif
45377
45378 /* Require 2.1.15+ */
45379 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
45380         char *__sasl_compat = "2.2+ or better okay (we guess)";
45381 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
45382         && SASL_VERSION_STEP >=15
45383         char *__sasl_compat = "2.1.15+ or better okay";
45384 #endif
45385
45386 _ACEOF
45387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45388   $EGREP "__sasl_compat" >/dev/null 2>&1; then
45389   ol_cv_sasl_compat=yes
45390 else
45391   ol_cv_sasl_compat=no
45392 fi
45393 rm -f conftest*
45394
45395 fi
45396 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45397 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45398
45399                 if test $ol_cv_sasl_compat = no ; then
45400                         ol_link_sasl=no
45401                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45402 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45403    { (exit 1); exit 1; }; }
45404                 fi
45405
45406
45407 cat >>confdefs.h <<\_ACEOF
45408 #define HAVE_CYRUS_SASL 1
45409 _ACEOF
45410
45411                 SASL_LIBS="$ol_link_sasl"
45412                 if test $ol_enable_spasswd != no ; then
45413                         ol_link_spasswd=yes
45414                 fi
45415
45416                 ac_save_LIBS="$LIBS"
45417                 LIBS="$LIBS $ol_link_sasl"
45418                 echo "$as_me:$LINENO: checking for sasl_version" >&5
45419 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45420 if test "${ac_cv_func_sasl_version+set}" = set; then
45421   echo $ECHO_N "(cached) $ECHO_C" >&6
45422 else
45423   cat >conftest.$ac_ext <<_ACEOF
45424 /* confdefs.h.  */
45425 _ACEOF
45426 cat confdefs.h >>conftest.$ac_ext
45427 cat >>conftest.$ac_ext <<_ACEOF
45428 /* end confdefs.h.  */
45429 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45431 #define sasl_version innocuous_sasl_version
45432
45433 /* System header to define __stub macros and hopefully few prototypes,
45434     which can conflict with char sasl_version (); below.
45435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45436     <limits.h> exists even on freestanding compilers.  */
45437
45438 #ifdef __STDC__
45439 # include <limits.h>
45440 #else
45441 # include <assert.h>
45442 #endif
45443
45444 #undef sasl_version
45445
45446 /* Override any gcc2 internal prototype to avoid an error.  */
45447 #ifdef __cplusplus
45448 extern "C"
45449 {
45450 #endif
45451 /* We use char because int might match the return type of a gcc2
45452    builtin and then its argument prototype would still apply.  */
45453 char sasl_version ();
45454 /* The GNU C library defines this for functions which it implements
45455     to always fail with ENOSYS.  Some functions are actually named
45456     something starting with __ and the normal name is an alias.  */
45457 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45458 choke me
45459 #else
45460 char (*f) () = sasl_version;
45461 #endif
45462 #ifdef __cplusplus
45463 }
45464 #endif
45465
45466 int
45467 main ()
45468 {
45469 return f != sasl_version;
45470   ;
45471   return 0;
45472 }
45473 _ACEOF
45474 rm -f conftest.$ac_objext conftest$ac_exeext
45475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45476   (eval $ac_link) 2>conftest.er1
45477   ac_status=$?
45478   grep -v '^ *+' conftest.er1 >conftest.err
45479   rm -f conftest.er1
45480   cat conftest.err >&5
45481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45482   (exit $ac_status); } &&
45483          { ac_try='test -z "$ac_c_werror_flag"
45484                          || test ! -s conftest.err'
45485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45486   (eval $ac_try) 2>&5
45487   ac_status=$?
45488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45489   (exit $ac_status); }; } &&
45490          { ac_try='test -s conftest$ac_exeext'
45491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45492   (eval $ac_try) 2>&5
45493   ac_status=$?
45494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45495   (exit $ac_status); }; }; then
45496   ac_cv_func_sasl_version=yes
45497 else
45498   echo "$as_me: failed program was:" >&5
45499 sed 's/^/| /' conftest.$ac_ext >&5
45500
45501 ac_cv_func_sasl_version=no
45502 fi
45503 rm -f conftest.err conftest.$ac_objext \
45504       conftest$ac_exeext conftest.$ac_ext
45505 fi
45506 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45507 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45508 if test $ac_cv_func_sasl_version = yes; then
45509
45510 cat >>confdefs.h <<\_ACEOF
45511 #define HAVE_SASL_VERSION 1
45512 _ACEOF
45513
45514 fi
45515
45516                 LIBS="$ac_save_LIBS"
45517
45518                 WITH_SASL=yes
45519         fi
45520
45521 else
45522         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45523 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45524         if test $ol_link_tls = no ; then
45525                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45526 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45527         fi
45528 fi
45529
45530 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45531         dev=no
45532         if test -r /dev/urandom ; then
45533                 dev="/dev/urandom";
45534         elif test -r /idev/urandom ; then
45535                 dev="/idev/urandom";
45536         elif test -r /dev/srandom ; then
45537                 dev="/dev/srandom";
45538         elif test -r /dev/random ; then
45539                 dev="/dev/random";
45540         elif test -r /idev/random ; then
45541                 dev="/idev/random";
45542         fi
45543
45544         if test $dev != no ; then
45545
45546 cat >>confdefs.h <<_ACEOF
45547 #define URANDOM_DEVICE "$dev"
45548 _ACEOF
45549
45550         fi
45551 fi
45552
45553 ol_link_fetch=no
45554 if test $ol_with_fetch != no ; then
45555         ol_LIBS=$LIBS
45556 LIBS="-lfetch -lcom_err $LIBS"
45557 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45558 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45559 if test "${ol_cv_lib_fetch+set}" = set; then
45560   echo $ECHO_N "(cached) $ECHO_C" >&6
45561 else
45562
45563         cat >conftest.$ac_ext <<_ACEOF
45564 /* confdefs.h.  */
45565 _ACEOF
45566 cat confdefs.h >>conftest.$ac_ext
45567 cat >>conftest.$ac_ext <<_ACEOF
45568 /* end confdefs.h.  */
45569
45570 #include <sys/param.h>
45571 #include <stdio.h>
45572 #include <fetch.h>
45573 int
45574 main ()
45575 {
45576 struct url *u = fetchParseURL("file:///");
45577   ;
45578   return 0;
45579 }
45580 _ACEOF
45581 rm -f conftest.$ac_objext conftest$ac_exeext
45582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45583   (eval $ac_link) 2>conftest.er1
45584   ac_status=$?
45585   grep -v '^ *+' conftest.er1 >conftest.err
45586   rm -f conftest.er1
45587   cat conftest.err >&5
45588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45589   (exit $ac_status); } &&
45590          { ac_try='test -z "$ac_c_werror_flag"
45591                          || test ! -s conftest.err'
45592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45593   (eval $ac_try) 2>&5
45594   ac_status=$?
45595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45596   (exit $ac_status); }; } &&
45597          { ac_try='test -s conftest$ac_exeext'
45598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45599   (eval $ac_try) 2>&5
45600   ac_status=$?
45601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45602   (exit $ac_status); }; }; then
45603   ol_cv_lib_fetch=yes
45604 else
45605   echo "$as_me: failed program was:" >&5
45606 sed 's/^/| /' conftest.$ac_ext >&5
45607
45608 ol_cv_lib_fetch=no
45609 fi
45610 rm -f conftest.err conftest.$ac_objext \
45611       conftest$ac_exeext conftest.$ac_ext
45612 fi
45613 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45614 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45615 LIBS=$ol_LIBS
45616 if test $ol_cv_lib_fetch != no ; then
45617         ol_link_fetch="-lfetch -lcom_err"
45618
45619 cat >>confdefs.h <<\_ACEOF
45620 #define HAVE_FETCH 1
45621 _ACEOF
45622
45623 fi
45624
45625
45626         if test $ol_cv_lib_fetch != no ; then
45627                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45628                 ol_link_fetch=freebsd
45629
45630         elif test $ol_with_fetch != auto ; then
45631                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45632 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45633    { (exit 1); exit 1; }; }
45634         fi
45635 fi
45636
45637 if test $ol_enable_crypt != no ; then
45638         save_LIBS="$LIBS"
45639         LIBS="$TLS_LIBS $LIBS"
45640
45641         echo "$as_me:$LINENO: checking for crypt" >&5
45642 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45643 if test "${ac_cv_func_crypt+set}" = set; then
45644   echo $ECHO_N "(cached) $ECHO_C" >&6
45645 else
45646   cat >conftest.$ac_ext <<_ACEOF
45647 /* confdefs.h.  */
45648 _ACEOF
45649 cat confdefs.h >>conftest.$ac_ext
45650 cat >>conftest.$ac_ext <<_ACEOF
45651 /* end confdefs.h.  */
45652 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45654 #define crypt innocuous_crypt
45655
45656 /* System header to define __stub macros and hopefully few prototypes,
45657     which can conflict with char crypt (); below.
45658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45659     <limits.h> exists even on freestanding compilers.  */
45660
45661 #ifdef __STDC__
45662 # include <limits.h>
45663 #else
45664 # include <assert.h>
45665 #endif
45666
45667 #undef crypt
45668
45669 /* Override any gcc2 internal prototype to avoid an error.  */
45670 #ifdef __cplusplus
45671 extern "C"
45672 {
45673 #endif
45674 /* We use char because int might match the return type of a gcc2
45675    builtin and then its argument prototype would still apply.  */
45676 char crypt ();
45677 /* The GNU C library defines this for functions which it implements
45678     to always fail with ENOSYS.  Some functions are actually named
45679     something starting with __ and the normal name is an alias.  */
45680 #if defined (__stub_crypt) || defined (__stub___crypt)
45681 choke me
45682 #else
45683 char (*f) () = crypt;
45684 #endif
45685 #ifdef __cplusplus
45686 }
45687 #endif
45688
45689 int
45690 main ()
45691 {
45692 return f != crypt;
45693   ;
45694   return 0;
45695 }
45696 _ACEOF
45697 rm -f conftest.$ac_objext conftest$ac_exeext
45698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45699   (eval $ac_link) 2>conftest.er1
45700   ac_status=$?
45701   grep -v '^ *+' conftest.er1 >conftest.err
45702   rm -f conftest.er1
45703   cat conftest.err >&5
45704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45705   (exit $ac_status); } &&
45706          { ac_try='test -z "$ac_c_werror_flag"
45707                          || test ! -s conftest.err'
45708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45709   (eval $ac_try) 2>&5
45710   ac_status=$?
45711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45712   (exit $ac_status); }; } &&
45713          { ac_try='test -s conftest$ac_exeext'
45714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45715   (eval $ac_try) 2>&5
45716   ac_status=$?
45717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45718   (exit $ac_status); }; }; then
45719   ac_cv_func_crypt=yes
45720 else
45721   echo "$as_me: failed program was:" >&5
45722 sed 's/^/| /' conftest.$ac_ext >&5
45723
45724 ac_cv_func_crypt=no
45725 fi
45726 rm -f conftest.err conftest.$ac_objext \
45727       conftest$ac_exeext conftest.$ac_ext
45728 fi
45729 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45730 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45731 if test $ac_cv_func_crypt = yes; then
45732   have_crypt=yes
45733 else
45734
45735                 LIBS="$save_LIBS"
45736                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45737 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45738 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45739   echo $ECHO_N "(cached) $ECHO_C" >&6
45740 else
45741   ac_check_lib_save_LIBS=$LIBS
45742 LIBS="-lcrypt  $LIBS"
45743 cat >conftest.$ac_ext <<_ACEOF
45744 /* confdefs.h.  */
45745 _ACEOF
45746 cat confdefs.h >>conftest.$ac_ext
45747 cat >>conftest.$ac_ext <<_ACEOF
45748 /* end confdefs.h.  */
45749
45750 /* Override any gcc2 internal prototype to avoid an error.  */
45751 #ifdef __cplusplus
45752 extern "C"
45753 #endif
45754 /* We use char because int might match the return type of a gcc2
45755    builtin and then its argument prototype would still apply.  */
45756 char crypt ();
45757 int
45758 main ()
45759 {
45760 crypt ();
45761   ;
45762   return 0;
45763 }
45764 _ACEOF
45765 rm -f conftest.$ac_objext conftest$ac_exeext
45766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45767   (eval $ac_link) 2>conftest.er1
45768   ac_status=$?
45769   grep -v '^ *+' conftest.er1 >conftest.err
45770   rm -f conftest.er1
45771   cat conftest.err >&5
45772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45773   (exit $ac_status); } &&
45774          { ac_try='test -z "$ac_c_werror_flag"
45775                          || test ! -s conftest.err'
45776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45777   (eval $ac_try) 2>&5
45778   ac_status=$?
45779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45780   (exit $ac_status); }; } &&
45781          { ac_try='test -s conftest$ac_exeext'
45782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45783   (eval $ac_try) 2>&5
45784   ac_status=$?
45785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45786   (exit $ac_status); }; }; then
45787   ac_cv_lib_crypt_crypt=yes
45788 else
45789   echo "$as_me: failed program was:" >&5
45790 sed 's/^/| /' conftest.$ac_ext >&5
45791
45792 ac_cv_lib_crypt_crypt=no
45793 fi
45794 rm -f conftest.err conftest.$ac_objext \
45795       conftest$ac_exeext conftest.$ac_ext
45796 LIBS=$ac_check_lib_save_LIBS
45797 fi
45798 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45799 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45800 if test $ac_cv_lib_crypt_crypt = yes; then
45801   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45802                         have_crypt=yes
45803 else
45804   have_crypt=no
45805 fi
45806
45807 fi
45808
45809
45810         LIBS="$save_LIBS"
45811
45812         if test $have_crypt = yes ; then
45813
45814 cat >>confdefs.h <<\_ACEOF
45815 #define HAVE_CRYPT 1
45816 _ACEOF
45817
45818         else
45819                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45820 echo "$as_me: WARNING: could not find crypt" >&2;}
45821                 if test $ol_enable_crypt = yes ; then
45822                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45823 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45824    { (exit 1); exit 1; }; }
45825                 fi
45826
45827                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45828 echo "$as_me: WARNING: disabling crypt support" >&2;}
45829                 ol_enable_crypt=no
45830         fi
45831 fi
45832
45833 if test $ol_enable_proctitle != no ; then
45834         echo "$as_me:$LINENO: checking for setproctitle" >&5
45835 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45836 if test "${ac_cv_func_setproctitle+set}" = set; then
45837   echo $ECHO_N "(cached) $ECHO_C" >&6
45838 else
45839   cat >conftest.$ac_ext <<_ACEOF
45840 /* confdefs.h.  */
45841 _ACEOF
45842 cat confdefs.h >>conftest.$ac_ext
45843 cat >>conftest.$ac_ext <<_ACEOF
45844 /* end confdefs.h.  */
45845 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45847 #define setproctitle innocuous_setproctitle
45848
45849 /* System header to define __stub macros and hopefully few prototypes,
45850     which can conflict with char setproctitle (); below.
45851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45852     <limits.h> exists even on freestanding compilers.  */
45853
45854 #ifdef __STDC__
45855 # include <limits.h>
45856 #else
45857 # include <assert.h>
45858 #endif
45859
45860 #undef setproctitle
45861
45862 /* Override any gcc2 internal prototype to avoid an error.  */
45863 #ifdef __cplusplus
45864 extern "C"
45865 {
45866 #endif
45867 /* We use char because int might match the return type of a gcc2
45868    builtin and then its argument prototype would still apply.  */
45869 char setproctitle ();
45870 /* The GNU C library defines this for functions which it implements
45871     to always fail with ENOSYS.  Some functions are actually named
45872     something starting with __ and the normal name is an alias.  */
45873 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45874 choke me
45875 #else
45876 char (*f) () = setproctitle;
45877 #endif
45878 #ifdef __cplusplus
45879 }
45880 #endif
45881
45882 int
45883 main ()
45884 {
45885 return f != setproctitle;
45886   ;
45887   return 0;
45888 }
45889 _ACEOF
45890 rm -f conftest.$ac_objext conftest$ac_exeext
45891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45892   (eval $ac_link) 2>conftest.er1
45893   ac_status=$?
45894   grep -v '^ *+' conftest.er1 >conftest.err
45895   rm -f conftest.er1
45896   cat conftest.err >&5
45897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45898   (exit $ac_status); } &&
45899          { ac_try='test -z "$ac_c_werror_flag"
45900                          || test ! -s conftest.err'
45901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45902   (eval $ac_try) 2>&5
45903   ac_status=$?
45904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45905   (exit $ac_status); }; } &&
45906          { ac_try='test -s conftest$ac_exeext'
45907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45908   (eval $ac_try) 2>&5
45909   ac_status=$?
45910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45911   (exit $ac_status); }; }; then
45912   ac_cv_func_setproctitle=yes
45913 else
45914   echo "$as_me: failed program was:" >&5
45915 sed 's/^/| /' conftest.$ac_ext >&5
45916
45917 ac_cv_func_setproctitle=no
45918 fi
45919 rm -f conftest.err conftest.$ac_objext \
45920       conftest$ac_exeext conftest.$ac_ext
45921 fi
45922 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
45923 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
45924 if test $ac_cv_func_setproctitle = yes; then
45925   have_setproctitle=yes
45926 else
45927
45928                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
45929 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
45930 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
45931   echo $ECHO_N "(cached) $ECHO_C" >&6
45932 else
45933   ac_check_lib_save_LIBS=$LIBS
45934 LIBS="-lutil  $LIBS"
45935 cat >conftest.$ac_ext <<_ACEOF
45936 /* confdefs.h.  */
45937 _ACEOF
45938 cat confdefs.h >>conftest.$ac_ext
45939 cat >>conftest.$ac_ext <<_ACEOF
45940 /* end confdefs.h.  */
45941
45942 /* Override any gcc2 internal prototype to avoid an error.  */
45943 #ifdef __cplusplus
45944 extern "C"
45945 #endif
45946 /* We use char because int might match the return type of a gcc2
45947    builtin and then its argument prototype would still apply.  */
45948 char setproctitle ();
45949 int
45950 main ()
45951 {
45952 setproctitle ();
45953   ;
45954   return 0;
45955 }
45956 _ACEOF
45957 rm -f conftest.$ac_objext conftest$ac_exeext
45958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45959   (eval $ac_link) 2>conftest.er1
45960   ac_status=$?
45961   grep -v '^ *+' conftest.er1 >conftest.err
45962   rm -f conftest.er1
45963   cat conftest.err >&5
45964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45965   (exit $ac_status); } &&
45966          { ac_try='test -z "$ac_c_werror_flag"
45967                          || test ! -s conftest.err'
45968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45969   (eval $ac_try) 2>&5
45970   ac_status=$?
45971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45972   (exit $ac_status); }; } &&
45973          { ac_try='test -s conftest$ac_exeext'
45974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45975   (eval $ac_try) 2>&5
45976   ac_status=$?
45977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45978   (exit $ac_status); }; }; then
45979   ac_cv_lib_util_setproctitle=yes
45980 else
45981   echo "$as_me: failed program was:" >&5
45982 sed 's/^/| /' conftest.$ac_ext >&5
45983
45984 ac_cv_lib_util_setproctitle=no
45985 fi
45986 rm -f conftest.err conftest.$ac_objext \
45987       conftest$ac_exeext conftest.$ac_ext
45988 LIBS=$ac_check_lib_save_LIBS
45989 fi
45990 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
45991 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
45992 if test $ac_cv_lib_util_setproctitle = yes; then
45993   have_setproctitle=yes
45994                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
45995 else
45996   have_setproctitle=no
45997                         case $LIBOBJS in
45998     "setproctitle.$ac_objext"   | \
45999   *" setproctitle.$ac_objext"   | \
46000     "setproctitle.$ac_objext "* | \
46001   *" setproctitle.$ac_objext "* ) ;;
46002   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46003 esac
46004
46005                         LIBSRCS="$LIBSRCS setproctitle.c"
46006 fi
46007
46008 fi
46009
46010
46011         if test $have_setproctitle = yes ; then
46012
46013 cat >>confdefs.h <<\_ACEOF
46014 #define HAVE_SETPROCTITLE 1
46015 _ACEOF
46016
46017         fi
46018 fi
46019
46020 if test $ol_enable_slp != no ; then
46021
46022 for ac_header in slp.h
46023 do
46024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46026   echo "$as_me:$LINENO: checking for $ac_header" >&5
46027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46029   echo $ECHO_N "(cached) $ECHO_C" >&6
46030 fi
46031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46033 else
46034   # Is the header compilable?
46035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46037 cat >conftest.$ac_ext <<_ACEOF
46038 /* confdefs.h.  */
46039 _ACEOF
46040 cat confdefs.h >>conftest.$ac_ext
46041 cat >>conftest.$ac_ext <<_ACEOF
46042 /* end confdefs.h.  */
46043 $ac_includes_default
46044 #include <$ac_header>
46045 _ACEOF
46046 rm -f conftest.$ac_objext
46047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46048   (eval $ac_compile) 2>conftest.er1
46049   ac_status=$?
46050   grep -v '^ *+' conftest.er1 >conftest.err
46051   rm -f conftest.er1
46052   cat conftest.err >&5
46053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46054   (exit $ac_status); } &&
46055          { ac_try='test -z "$ac_c_werror_flag"
46056                          || test ! -s conftest.err'
46057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46058   (eval $ac_try) 2>&5
46059   ac_status=$?
46060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46061   (exit $ac_status); }; } &&
46062          { ac_try='test -s conftest.$ac_objext'
46063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46064   (eval $ac_try) 2>&5
46065   ac_status=$?
46066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46067   (exit $ac_status); }; }; then
46068   ac_header_compiler=yes
46069 else
46070   echo "$as_me: failed program was:" >&5
46071 sed 's/^/| /' conftest.$ac_ext >&5
46072
46073 ac_header_compiler=no
46074 fi
46075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46077 echo "${ECHO_T}$ac_header_compiler" >&6
46078
46079 # Is the header present?
46080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46082 cat >conftest.$ac_ext <<_ACEOF
46083 /* confdefs.h.  */
46084 _ACEOF
46085 cat confdefs.h >>conftest.$ac_ext
46086 cat >>conftest.$ac_ext <<_ACEOF
46087 /* end confdefs.h.  */
46088 #include <$ac_header>
46089 _ACEOF
46090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46092   ac_status=$?
46093   grep -v '^ *+' conftest.er1 >conftest.err
46094   rm -f conftest.er1
46095   cat conftest.err >&5
46096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46097   (exit $ac_status); } >/dev/null; then
46098   if test -s conftest.err; then
46099     ac_cpp_err=$ac_c_preproc_warn_flag
46100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46101   else
46102     ac_cpp_err=
46103   fi
46104 else
46105   ac_cpp_err=yes
46106 fi
46107 if test -z "$ac_cpp_err"; then
46108   ac_header_preproc=yes
46109 else
46110   echo "$as_me: failed program was:" >&5
46111 sed 's/^/| /' conftest.$ac_ext >&5
46112
46113   ac_header_preproc=no
46114 fi
46115 rm -f conftest.err conftest.$ac_ext
46116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46117 echo "${ECHO_T}$ac_header_preproc" >&6
46118
46119 # So?  What about this header?
46120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46121   yes:no: )
46122     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46126     ac_header_preproc=yes
46127     ;;
46128   no:yes:* )
46129     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46131     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46132 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46133     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46135     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46136 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46139     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46141     (
46142       cat <<\_ASBOX
46143 ## ------------------------------------------ ##
46144 ## Report this to the AC_PACKAGE_NAME lists.  ##
46145 ## ------------------------------------------ ##
46146 _ASBOX
46147     ) |
46148       sed "s/^/$as_me: WARNING:     /" >&2
46149     ;;
46150 esac
46151 echo "$as_me:$LINENO: checking for $ac_header" >&5
46152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46154   echo $ECHO_N "(cached) $ECHO_C" >&6
46155 else
46156   eval "$as_ac_Header=\$ac_header_preproc"
46157 fi
46158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46160
46161 fi
46162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46163   cat >>confdefs.h <<_ACEOF
46164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46165 _ACEOF
46166
46167 fi
46168
46169 done
46170
46171
46172         if test $ac_cv_header_slp_h = yes ; then
46173                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46174 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46175 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46176   echo $ECHO_N "(cached) $ECHO_C" >&6
46177 else
46178   ac_check_lib_save_LIBS=$LIBS
46179 LIBS="-lslp  $LIBS"
46180 cat >conftest.$ac_ext <<_ACEOF
46181 /* confdefs.h.  */
46182 _ACEOF
46183 cat confdefs.h >>conftest.$ac_ext
46184 cat >>conftest.$ac_ext <<_ACEOF
46185 /* end confdefs.h.  */
46186
46187 /* Override any gcc2 internal prototype to avoid an error.  */
46188 #ifdef __cplusplus
46189 extern "C"
46190 #endif
46191 /* We use char because int might match the return type of a gcc2
46192    builtin and then its argument prototype would still apply.  */
46193 char SLPOpen ();
46194 int
46195 main ()
46196 {
46197 SLPOpen ();
46198   ;
46199   return 0;
46200 }
46201 _ACEOF
46202 rm -f conftest.$ac_objext conftest$ac_exeext
46203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46204   (eval $ac_link) 2>conftest.er1
46205   ac_status=$?
46206   grep -v '^ *+' conftest.er1 >conftest.err
46207   rm -f conftest.er1
46208   cat conftest.err >&5
46209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46210   (exit $ac_status); } &&
46211          { ac_try='test -z "$ac_c_werror_flag"
46212                          || test ! -s conftest.err'
46213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46214   (eval $ac_try) 2>&5
46215   ac_status=$?
46216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46217   (exit $ac_status); }; } &&
46218          { ac_try='test -s conftest$ac_exeext'
46219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46220   (eval $ac_try) 2>&5
46221   ac_status=$?
46222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46223   (exit $ac_status); }; }; then
46224   ac_cv_lib_slp_SLPOpen=yes
46225 else
46226   echo "$as_me: failed program was:" >&5
46227 sed 's/^/| /' conftest.$ac_ext >&5
46228
46229 ac_cv_lib_slp_SLPOpen=no
46230 fi
46231 rm -f conftest.err conftest.$ac_objext \
46232       conftest$ac_exeext conftest.$ac_ext
46233 LIBS=$ac_check_lib_save_LIBS
46234 fi
46235 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46236 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46237 if test $ac_cv_lib_slp_SLPOpen = yes; then
46238   have_slp=yes
46239 else
46240   have_slp=no
46241 fi
46242
46243                 if test $have_slp = yes ; then
46244
46245 cat >>confdefs.h <<\_ACEOF
46246 #define HAVE_SLP 1
46247 _ACEOF
46248
46249                         SLAPD_SLP_LIBS=-lslp
46250                 fi
46251
46252         elif test $ol_enable_slp = yes ; then
46253                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46254 echo "$as_me: error: SLP not found" >&2;}
46255    { (exit 1); exit 1; }; }
46256         fi
46257 fi
46258
46259 if test "$ol_with_multiple_precision" != "no" ; then
46260         ol_have_bignum=no
46261         ol_have_gmp=no
46262
46263
46264
46265 for ac_header in openssl/bn.h bn.h
46266 do
46267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46269   echo "$as_me:$LINENO: checking for $ac_header" >&5
46270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46272   echo $ECHO_N "(cached) $ECHO_C" >&6
46273 fi
46274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46276 else
46277   # Is the header compilable?
46278 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46280 cat >conftest.$ac_ext <<_ACEOF
46281 /* confdefs.h.  */
46282 _ACEOF
46283 cat confdefs.h >>conftest.$ac_ext
46284 cat >>conftest.$ac_ext <<_ACEOF
46285 /* end confdefs.h.  */
46286 $ac_includes_default
46287 #include <$ac_header>
46288 _ACEOF
46289 rm -f conftest.$ac_objext
46290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46291   (eval $ac_compile) 2>conftest.er1
46292   ac_status=$?
46293   grep -v '^ *+' conftest.er1 >conftest.err
46294   rm -f conftest.er1
46295   cat conftest.err >&5
46296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46297   (exit $ac_status); } &&
46298          { ac_try='test -z "$ac_c_werror_flag"
46299                          || test ! -s conftest.err'
46300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46301   (eval $ac_try) 2>&5
46302   ac_status=$?
46303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46304   (exit $ac_status); }; } &&
46305          { ac_try='test -s conftest.$ac_objext'
46306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46307   (eval $ac_try) 2>&5
46308   ac_status=$?
46309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46310   (exit $ac_status); }; }; then
46311   ac_header_compiler=yes
46312 else
46313   echo "$as_me: failed program was:" >&5
46314 sed 's/^/| /' conftest.$ac_ext >&5
46315
46316 ac_header_compiler=no
46317 fi
46318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46320 echo "${ECHO_T}$ac_header_compiler" >&6
46321
46322 # Is the header present?
46323 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46325 cat >conftest.$ac_ext <<_ACEOF
46326 /* confdefs.h.  */
46327 _ACEOF
46328 cat confdefs.h >>conftest.$ac_ext
46329 cat >>conftest.$ac_ext <<_ACEOF
46330 /* end confdefs.h.  */
46331 #include <$ac_header>
46332 _ACEOF
46333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46334   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46335   ac_status=$?
46336   grep -v '^ *+' conftest.er1 >conftest.err
46337   rm -f conftest.er1
46338   cat conftest.err >&5
46339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46340   (exit $ac_status); } >/dev/null; then
46341   if test -s conftest.err; then
46342     ac_cpp_err=$ac_c_preproc_warn_flag
46343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46344   else
46345     ac_cpp_err=
46346   fi
46347 else
46348   ac_cpp_err=yes
46349 fi
46350 if test -z "$ac_cpp_err"; then
46351   ac_header_preproc=yes
46352 else
46353   echo "$as_me: failed program was:" >&5
46354 sed 's/^/| /' conftest.$ac_ext >&5
46355
46356   ac_header_preproc=no
46357 fi
46358 rm -f conftest.err conftest.$ac_ext
46359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46360 echo "${ECHO_T}$ac_header_preproc" >&6
46361
46362 # So?  What about this header?
46363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46364   yes:no: )
46365     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46369     ac_header_preproc=yes
46370     ;;
46371   no:yes:* )
46372     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46374     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46375 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46376     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46378     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46379 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46382     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46384     (
46385       cat <<\_ASBOX
46386 ## ------------------------------------------ ##
46387 ## Report this to the AC_PACKAGE_NAME lists.  ##
46388 ## ------------------------------------------ ##
46389 _ASBOX
46390     ) |
46391       sed "s/^/$as_me: WARNING:     /" >&2
46392     ;;
46393 esac
46394 echo "$as_me:$LINENO: checking for $ac_header" >&5
46395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46397   echo $ECHO_N "(cached) $ECHO_C" >&6
46398 else
46399   eval "$as_ac_Header=\$ac_header_preproc"
46400 fi
46401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46403
46404 fi
46405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46406   cat >>confdefs.h <<_ACEOF
46407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46408 _ACEOF
46409
46410 fi
46411
46412 done
46413
46414
46415
46416 for ac_header in openssl/crypto.h crypto.h
46417 do
46418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46420   echo "$as_me:$LINENO: checking for $ac_header" >&5
46421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46423   echo $ECHO_N "(cached) $ECHO_C" >&6
46424 fi
46425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46427 else
46428   # Is the header compilable?
46429 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46431 cat >conftest.$ac_ext <<_ACEOF
46432 /* confdefs.h.  */
46433 _ACEOF
46434 cat confdefs.h >>conftest.$ac_ext
46435 cat >>conftest.$ac_ext <<_ACEOF
46436 /* end confdefs.h.  */
46437 $ac_includes_default
46438 #include <$ac_header>
46439 _ACEOF
46440 rm -f conftest.$ac_objext
46441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46442   (eval $ac_compile) 2>conftest.er1
46443   ac_status=$?
46444   grep -v '^ *+' conftest.er1 >conftest.err
46445   rm -f conftest.er1
46446   cat conftest.err >&5
46447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46448   (exit $ac_status); } &&
46449          { ac_try='test -z "$ac_c_werror_flag"
46450                          || test ! -s conftest.err'
46451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46452   (eval $ac_try) 2>&5
46453   ac_status=$?
46454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46455   (exit $ac_status); }; } &&
46456          { ac_try='test -s conftest.$ac_objext'
46457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46458   (eval $ac_try) 2>&5
46459   ac_status=$?
46460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46461   (exit $ac_status); }; }; then
46462   ac_header_compiler=yes
46463 else
46464   echo "$as_me: failed program was:" >&5
46465 sed 's/^/| /' conftest.$ac_ext >&5
46466
46467 ac_header_compiler=no
46468 fi
46469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46471 echo "${ECHO_T}$ac_header_compiler" >&6
46472
46473 # Is the header present?
46474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46476 cat >conftest.$ac_ext <<_ACEOF
46477 /* confdefs.h.  */
46478 _ACEOF
46479 cat confdefs.h >>conftest.$ac_ext
46480 cat >>conftest.$ac_ext <<_ACEOF
46481 /* end confdefs.h.  */
46482 #include <$ac_header>
46483 _ACEOF
46484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46485   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46486   ac_status=$?
46487   grep -v '^ *+' conftest.er1 >conftest.err
46488   rm -f conftest.er1
46489   cat conftest.err >&5
46490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46491   (exit $ac_status); } >/dev/null; then
46492   if test -s conftest.err; then
46493     ac_cpp_err=$ac_c_preproc_warn_flag
46494     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46495   else
46496     ac_cpp_err=
46497   fi
46498 else
46499   ac_cpp_err=yes
46500 fi
46501 if test -z "$ac_cpp_err"; then
46502   ac_header_preproc=yes
46503 else
46504   echo "$as_me: failed program was:" >&5
46505 sed 's/^/| /' conftest.$ac_ext >&5
46506
46507   ac_header_preproc=no
46508 fi
46509 rm -f conftest.err conftest.$ac_ext
46510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46511 echo "${ECHO_T}$ac_header_preproc" >&6
46512
46513 # So?  What about this header?
46514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46515   yes:no: )
46516     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46520     ac_header_preproc=yes
46521     ;;
46522   no:yes:* )
46523     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46525     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46526 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46527     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46529     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46530 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46533     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46535     (
46536       cat <<\_ASBOX
46537 ## ------------------------------------------ ##
46538 ## Report this to the AC_PACKAGE_NAME lists.  ##
46539 ## ------------------------------------------ ##
46540 _ASBOX
46541     ) |
46542       sed "s/^/$as_me: WARNING:     /" >&2
46543     ;;
46544 esac
46545 echo "$as_me:$LINENO: checking for $ac_header" >&5
46546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46548   echo $ECHO_N "(cached) $ECHO_C" >&6
46549 else
46550   eval "$as_ac_Header=\$ac_header_preproc"
46551 fi
46552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46554
46555 fi
46556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46557   cat >>confdefs.h <<_ACEOF
46558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46559 _ACEOF
46560
46561 fi
46562
46563 done
46564
46565
46566 for ac_header in gmp.h
46567 do
46568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46570   echo "$as_me:$LINENO: checking for $ac_header" >&5
46571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46573   echo $ECHO_N "(cached) $ECHO_C" >&6
46574 fi
46575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46577 else
46578   # Is the header compilable?
46579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46581 cat >conftest.$ac_ext <<_ACEOF
46582 /* confdefs.h.  */
46583 _ACEOF
46584 cat confdefs.h >>conftest.$ac_ext
46585 cat >>conftest.$ac_ext <<_ACEOF
46586 /* end confdefs.h.  */
46587 $ac_includes_default
46588 #include <$ac_header>
46589 _ACEOF
46590 rm -f conftest.$ac_objext
46591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46592   (eval $ac_compile) 2>conftest.er1
46593   ac_status=$?
46594   grep -v '^ *+' conftest.er1 >conftest.err
46595   rm -f conftest.er1
46596   cat conftest.err >&5
46597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46598   (exit $ac_status); } &&
46599          { ac_try='test -z "$ac_c_werror_flag"
46600                          || test ! -s conftest.err'
46601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46602   (eval $ac_try) 2>&5
46603   ac_status=$?
46604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46605   (exit $ac_status); }; } &&
46606          { ac_try='test -s conftest.$ac_objext'
46607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46608   (eval $ac_try) 2>&5
46609   ac_status=$?
46610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46611   (exit $ac_status); }; }; then
46612   ac_header_compiler=yes
46613 else
46614   echo "$as_me: failed program was:" >&5
46615 sed 's/^/| /' conftest.$ac_ext >&5
46616
46617 ac_header_compiler=no
46618 fi
46619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46621 echo "${ECHO_T}$ac_header_compiler" >&6
46622
46623 # Is the header present?
46624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46626 cat >conftest.$ac_ext <<_ACEOF
46627 /* confdefs.h.  */
46628 _ACEOF
46629 cat confdefs.h >>conftest.$ac_ext
46630 cat >>conftest.$ac_ext <<_ACEOF
46631 /* end confdefs.h.  */
46632 #include <$ac_header>
46633 _ACEOF
46634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46635   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46636   ac_status=$?
46637   grep -v '^ *+' conftest.er1 >conftest.err
46638   rm -f conftest.er1
46639   cat conftest.err >&5
46640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46641   (exit $ac_status); } >/dev/null; then
46642   if test -s conftest.err; then
46643     ac_cpp_err=$ac_c_preproc_warn_flag
46644     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46645   else
46646     ac_cpp_err=
46647   fi
46648 else
46649   ac_cpp_err=yes
46650 fi
46651 if test -z "$ac_cpp_err"; then
46652   ac_header_preproc=yes
46653 else
46654   echo "$as_me: failed program was:" >&5
46655 sed 's/^/| /' conftest.$ac_ext >&5
46656
46657   ac_header_preproc=no
46658 fi
46659 rm -f conftest.err conftest.$ac_ext
46660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46661 echo "${ECHO_T}$ac_header_preproc" >&6
46662
46663 # So?  What about this header?
46664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46665   yes:no: )
46666     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46670     ac_header_preproc=yes
46671     ;;
46672   no:yes:* )
46673     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46675     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46676 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46677     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46679     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46680 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46683     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46685     (
46686       cat <<\_ASBOX
46687 ## ------------------------------------------ ##
46688 ## Report this to the AC_PACKAGE_NAME lists.  ##
46689 ## ------------------------------------------ ##
46690 _ASBOX
46691     ) |
46692       sed "s/^/$as_me: WARNING:     /" >&2
46693     ;;
46694 esac
46695 echo "$as_me:$LINENO: checking for $ac_header" >&5
46696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46698   echo $ECHO_N "(cached) $ECHO_C" >&6
46699 else
46700   eval "$as_ac_Header=\$ac_header_preproc"
46701 fi
46702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46704
46705 fi
46706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46707   cat >>confdefs.h <<_ACEOF
46708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46709 _ACEOF
46710
46711 fi
46712
46713 done
46714
46715
46716         if test "$ol_with_tls" = "found" ; then
46717                 ol_have_bn_h=no
46718                 ol_have_crypto_h=no
46719
46720                 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46721                                 -o "$ac_cv_header_bn_h" = "yes" ; then
46722                         ol_have_bn_h=yes
46723                 fi
46724
46725                 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46726                                 -o "$ac_cv_header_crypto_h" = "yes" ; then
46727                         ol_have_crypto_h=yes
46728                 fi
46729
46730                 if test "$ol_have_bn_h" = "yes" \
46731                                 -a "$ol_have_crypto_h" = "yes" ; then
46732                         ol_have_bignum=yes
46733                 fi
46734         fi
46735
46736         if test $ac_cv_header_gmp_h = yes ; then
46737                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46738 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46739 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46740   echo $ECHO_N "(cached) $ECHO_C" >&6
46741 else
46742   ac_check_lib_save_LIBS=$LIBS
46743 LIBS="-lgmp  $LIBS"
46744 cat >conftest.$ac_ext <<_ACEOF
46745 /* confdefs.h.  */
46746 _ACEOF
46747 cat confdefs.h >>conftest.$ac_ext
46748 cat >>conftest.$ac_ext <<_ACEOF
46749 /* end confdefs.h.  */
46750
46751 /* Override any gcc2 internal prototype to avoid an error.  */
46752 #ifdef __cplusplus
46753 extern "C"
46754 #endif
46755 /* We use char because int might match the return type of a gcc2
46756    builtin and then its argument prototype would still apply.  */
46757 char __gmpz_add_ui ();
46758 int
46759 main ()
46760 {
46761 __gmpz_add_ui ();
46762   ;
46763   return 0;
46764 }
46765 _ACEOF
46766 rm -f conftest.$ac_objext conftest$ac_exeext
46767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46768   (eval $ac_link) 2>conftest.er1
46769   ac_status=$?
46770   grep -v '^ *+' conftest.er1 >conftest.err
46771   rm -f conftest.er1
46772   cat conftest.err >&5
46773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46774   (exit $ac_status); } &&
46775          { ac_try='test -z "$ac_c_werror_flag"
46776                          || test ! -s conftest.err'
46777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46778   (eval $ac_try) 2>&5
46779   ac_status=$?
46780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46781   (exit $ac_status); }; } &&
46782          { ac_try='test -s conftest$ac_exeext'
46783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46784   (eval $ac_try) 2>&5
46785   ac_status=$?
46786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46787   (exit $ac_status); }; }; then
46788   ac_cv_lib_gmp___gmpz_add_ui=yes
46789 else
46790   echo "$as_me: failed program was:" >&5
46791 sed 's/^/| /' conftest.$ac_ext >&5
46792
46793 ac_cv_lib_gmp___gmpz_add_ui=no
46794 fi
46795 rm -f conftest.err conftest.$ac_objext \
46796       conftest$ac_exeext conftest.$ac_ext
46797 LIBS=$ac_check_lib_save_LIBS
46798 fi
46799 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46800 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46801 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46802   have_gmp=yes
46803 else
46804   have_gmp=no
46805 fi
46806
46807                 if test $have_gmp = yes ; then
46808                         ol_have_gmp=yes
46809                 fi
46810         fi
46811
46812         echo "$as_me:$LINENO: checking for multiple precision support" >&5
46813 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46814
46815         ol_mp_support="none"
46816         case "$ol_with_multiple_precision" in
46817         auto)
46818                                                                                 if test "$ol_have_bignum" = "yes" ; then
46819                         ol_mp_support="bignum"
46820                 else
46821                         if test "$ol_have_gmp" = "yes" ; then
46822                                 ol_mp_support="gmp"
46823                         fi
46824                 fi
46825                 ;;
46826         bignum)
46827                 if test "$ol_have_bignum" != "yes" ; then
46828                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46829 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46830    { (exit 1); exit 1; }; }
46831                 fi
46832                 ol_mp_support="bignum"
46833                 ;;
46834         gmp)
46835                 if test "$ol_have_gmp" != "yes" ; then
46836                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
46837 echo "$as_me: error: GMP not available" >&2;}
46838    { (exit 1); exit 1; }; }
46839                 fi
46840                 ol_mp_support="gmp"
46841                 ;;
46842         yes)
46843                 if test "$ol_have_bignum" = "yes" ; then
46844                         ol_mp_support="bignum"
46845                 elif test "$ol_have_gmp" = "yes" ; then
46846                         ol_mp_support="gmp"
46847                 else
46848                         { { echo "$as_me:$LINENO: error: not available" >&5
46849 echo "$as_me: error: not available" >&2;}
46850    { (exit 1); exit 1; }; }
46851                 fi
46852                 ;;
46853         esac
46854
46855         case "$ol_mp_support" in
46856         bignum)
46857
46858 cat >>confdefs.h <<\_ACEOF
46859 #define HAVE_BIGNUM 1
46860 _ACEOF
46861
46862                 ;;
46863         gmp)
46864
46865 cat >>confdefs.h <<\_ACEOF
46866 #define HAVE_GMP 1
46867 _ACEOF
46868
46869                 SLAPD_GMP_LIBS=-lgmp
46870                 ;;
46871         none)
46872                 ;;
46873         esac
46874
46875         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46876 echo "${ECHO_T}$ol_mp_support" >&6
46877 fi
46878
46879
46880 echo "$as_me:$LINENO: checking for mode_t" >&5
46881 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
46882 if test "${ac_cv_type_mode_t+set}" = set; then
46883   echo $ECHO_N "(cached) $ECHO_C" >&6
46884 else
46885   cat >conftest.$ac_ext <<_ACEOF
46886 /* confdefs.h.  */
46887 _ACEOF
46888 cat confdefs.h >>conftest.$ac_ext
46889 cat >>conftest.$ac_ext <<_ACEOF
46890 /* end confdefs.h.  */
46891 $ac_includes_default
46892 int
46893 main ()
46894 {
46895 if ((mode_t *) 0)
46896   return 0;
46897 if (sizeof (mode_t))
46898   return 0;
46899   ;
46900   return 0;
46901 }
46902 _ACEOF
46903 rm -f conftest.$ac_objext
46904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46905   (eval $ac_compile) 2>conftest.er1
46906   ac_status=$?
46907   grep -v '^ *+' conftest.er1 >conftest.err
46908   rm -f conftest.er1
46909   cat conftest.err >&5
46910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46911   (exit $ac_status); } &&
46912          { ac_try='test -z "$ac_c_werror_flag"
46913                          || test ! -s conftest.err'
46914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46915   (eval $ac_try) 2>&5
46916   ac_status=$?
46917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46918   (exit $ac_status); }; } &&
46919          { ac_try='test -s conftest.$ac_objext'
46920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46921   (eval $ac_try) 2>&5
46922   ac_status=$?
46923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46924   (exit $ac_status); }; }; then
46925   ac_cv_type_mode_t=yes
46926 else
46927   echo "$as_me: failed program was:" >&5
46928 sed 's/^/| /' conftest.$ac_ext >&5
46929
46930 ac_cv_type_mode_t=no
46931 fi
46932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46933 fi
46934 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
46935 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
46936 if test $ac_cv_type_mode_t = yes; then
46937   :
46938 else
46939
46940 cat >>confdefs.h <<_ACEOF
46941 #define mode_t int
46942 _ACEOF
46943
46944 fi
46945
46946 echo "$as_me:$LINENO: checking for off_t" >&5
46947 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
46948 if test "${ac_cv_type_off_t+set}" = set; then
46949   echo $ECHO_N "(cached) $ECHO_C" >&6
46950 else
46951   cat >conftest.$ac_ext <<_ACEOF
46952 /* confdefs.h.  */
46953 _ACEOF
46954 cat confdefs.h >>conftest.$ac_ext
46955 cat >>conftest.$ac_ext <<_ACEOF
46956 /* end confdefs.h.  */
46957 $ac_includes_default
46958 int
46959 main ()
46960 {
46961 if ((off_t *) 0)
46962   return 0;
46963 if (sizeof (off_t))
46964   return 0;
46965   ;
46966   return 0;
46967 }
46968 _ACEOF
46969 rm -f conftest.$ac_objext
46970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46971   (eval $ac_compile) 2>conftest.er1
46972   ac_status=$?
46973   grep -v '^ *+' conftest.er1 >conftest.err
46974   rm -f conftest.er1
46975   cat conftest.err >&5
46976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46977   (exit $ac_status); } &&
46978          { ac_try='test -z "$ac_c_werror_flag"
46979                          || test ! -s conftest.err'
46980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46981   (eval $ac_try) 2>&5
46982   ac_status=$?
46983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46984   (exit $ac_status); }; } &&
46985          { ac_try='test -s conftest.$ac_objext'
46986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46987   (eval $ac_try) 2>&5
46988   ac_status=$?
46989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46990   (exit $ac_status); }; }; then
46991   ac_cv_type_off_t=yes
46992 else
46993   echo "$as_me: failed program was:" >&5
46994 sed 's/^/| /' conftest.$ac_ext >&5
46995
46996 ac_cv_type_off_t=no
46997 fi
46998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46999 fi
47000 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47001 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47002 if test $ac_cv_type_off_t = yes; then
47003   :
47004 else
47005
47006 cat >>confdefs.h <<_ACEOF
47007 #define off_t long
47008 _ACEOF
47009
47010 fi
47011
47012 echo "$as_me:$LINENO: checking for pid_t" >&5
47013 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47014 if test "${ac_cv_type_pid_t+set}" = set; then
47015   echo $ECHO_N "(cached) $ECHO_C" >&6
47016 else
47017   cat >conftest.$ac_ext <<_ACEOF
47018 /* confdefs.h.  */
47019 _ACEOF
47020 cat confdefs.h >>conftest.$ac_ext
47021 cat >>conftest.$ac_ext <<_ACEOF
47022 /* end confdefs.h.  */
47023 $ac_includes_default
47024 int
47025 main ()
47026 {
47027 if ((pid_t *) 0)
47028   return 0;
47029 if (sizeof (pid_t))
47030   return 0;
47031   ;
47032   return 0;
47033 }
47034 _ACEOF
47035 rm -f conftest.$ac_objext
47036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47037   (eval $ac_compile) 2>conftest.er1
47038   ac_status=$?
47039   grep -v '^ *+' conftest.er1 >conftest.err
47040   rm -f conftest.er1
47041   cat conftest.err >&5
47042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47043   (exit $ac_status); } &&
47044          { ac_try='test -z "$ac_c_werror_flag"
47045                          || test ! -s conftest.err'
47046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47047   (eval $ac_try) 2>&5
47048   ac_status=$?
47049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47050   (exit $ac_status); }; } &&
47051          { ac_try='test -s conftest.$ac_objext'
47052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47053   (eval $ac_try) 2>&5
47054   ac_status=$?
47055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47056   (exit $ac_status); }; }; then
47057   ac_cv_type_pid_t=yes
47058 else
47059   echo "$as_me: failed program was:" >&5
47060 sed 's/^/| /' conftest.$ac_ext >&5
47061
47062 ac_cv_type_pid_t=no
47063 fi
47064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47065 fi
47066 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47067 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47068 if test $ac_cv_type_pid_t = yes; then
47069   :
47070 else
47071
47072 cat >>confdefs.h <<_ACEOF
47073 #define pid_t int
47074 _ACEOF
47075
47076 fi
47077
47078 echo "$as_me:$LINENO: checking for ssize_t" >&5
47079 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47080 if test "${ac_cv_type_ssize_t+set}" = set; then
47081   echo $ECHO_N "(cached) $ECHO_C" >&6
47082 else
47083   cat >conftest.$ac_ext <<_ACEOF
47084 /* confdefs.h.  */
47085 _ACEOF
47086 cat confdefs.h >>conftest.$ac_ext
47087 cat >>conftest.$ac_ext <<_ACEOF
47088 /* end confdefs.h.  */
47089 $ac_includes_default
47090 int
47091 main ()
47092 {
47093 if ((ssize_t *) 0)
47094   return 0;
47095 if (sizeof (ssize_t))
47096   return 0;
47097   ;
47098   return 0;
47099 }
47100 _ACEOF
47101 rm -f conftest.$ac_objext
47102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47103   (eval $ac_compile) 2>conftest.er1
47104   ac_status=$?
47105   grep -v '^ *+' conftest.er1 >conftest.err
47106   rm -f conftest.er1
47107   cat conftest.err >&5
47108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47109   (exit $ac_status); } &&
47110          { ac_try='test -z "$ac_c_werror_flag"
47111                          || test ! -s conftest.err'
47112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47113   (eval $ac_try) 2>&5
47114   ac_status=$?
47115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47116   (exit $ac_status); }; } &&
47117          { ac_try='test -s conftest.$ac_objext'
47118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47119   (eval $ac_try) 2>&5
47120   ac_status=$?
47121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47122   (exit $ac_status); }; }; then
47123   ac_cv_type_ssize_t=yes
47124 else
47125   echo "$as_me: failed program was:" >&5
47126 sed 's/^/| /' conftest.$ac_ext >&5
47127
47128 ac_cv_type_ssize_t=no
47129 fi
47130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47131 fi
47132 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47133 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47134 if test $ac_cv_type_ssize_t = yes; then
47135   :
47136 else
47137
47138 cat >>confdefs.h <<_ACEOF
47139 #define ssize_t signed int
47140 _ACEOF
47141
47142 fi
47143
47144 echo "$as_me:$LINENO: checking for caddr_t" >&5
47145 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47146 if test "${ac_cv_type_caddr_t+set}" = set; then
47147   echo $ECHO_N "(cached) $ECHO_C" >&6
47148 else
47149   cat >conftest.$ac_ext <<_ACEOF
47150 /* confdefs.h.  */
47151 _ACEOF
47152 cat confdefs.h >>conftest.$ac_ext
47153 cat >>conftest.$ac_ext <<_ACEOF
47154 /* end confdefs.h.  */
47155 $ac_includes_default
47156 int
47157 main ()
47158 {
47159 if ((caddr_t *) 0)
47160   return 0;
47161 if (sizeof (caddr_t))
47162   return 0;
47163   ;
47164   return 0;
47165 }
47166 _ACEOF
47167 rm -f conftest.$ac_objext
47168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47169   (eval $ac_compile) 2>conftest.er1
47170   ac_status=$?
47171   grep -v '^ *+' conftest.er1 >conftest.err
47172   rm -f conftest.er1
47173   cat conftest.err >&5
47174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47175   (exit $ac_status); } &&
47176          { ac_try='test -z "$ac_c_werror_flag"
47177                          || test ! -s conftest.err'
47178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47179   (eval $ac_try) 2>&5
47180   ac_status=$?
47181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47182   (exit $ac_status); }; } &&
47183          { ac_try='test -s conftest.$ac_objext'
47184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47185   (eval $ac_try) 2>&5
47186   ac_status=$?
47187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47188   (exit $ac_status); }; }; then
47189   ac_cv_type_caddr_t=yes
47190 else
47191   echo "$as_me: failed program was:" >&5
47192 sed 's/^/| /' conftest.$ac_ext >&5
47193
47194 ac_cv_type_caddr_t=no
47195 fi
47196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47197 fi
47198 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47199 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47200 if test $ac_cv_type_caddr_t = yes; then
47201   :
47202 else
47203
47204 cat >>confdefs.h <<_ACEOF
47205 #define caddr_t char *
47206 _ACEOF
47207
47208 fi
47209
47210 echo "$as_me:$LINENO: checking for size_t" >&5
47211 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47212 if test "${ac_cv_type_size_t+set}" = set; then
47213   echo $ECHO_N "(cached) $ECHO_C" >&6
47214 else
47215   cat >conftest.$ac_ext <<_ACEOF
47216 /* confdefs.h.  */
47217 _ACEOF
47218 cat confdefs.h >>conftest.$ac_ext
47219 cat >>conftest.$ac_ext <<_ACEOF
47220 /* end confdefs.h.  */
47221 $ac_includes_default
47222 int
47223 main ()
47224 {
47225 if ((size_t *) 0)
47226   return 0;
47227 if (sizeof (size_t))
47228   return 0;
47229   ;
47230   return 0;
47231 }
47232 _ACEOF
47233 rm -f conftest.$ac_objext
47234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47235   (eval $ac_compile) 2>conftest.er1
47236   ac_status=$?
47237   grep -v '^ *+' conftest.er1 >conftest.err
47238   rm -f conftest.er1
47239   cat conftest.err >&5
47240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47241   (exit $ac_status); } &&
47242          { ac_try='test -z "$ac_c_werror_flag"
47243                          || test ! -s conftest.err'
47244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47245   (eval $ac_try) 2>&5
47246   ac_status=$?
47247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47248   (exit $ac_status); }; } &&
47249          { ac_try='test -s conftest.$ac_objext'
47250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47251   (eval $ac_try) 2>&5
47252   ac_status=$?
47253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47254   (exit $ac_status); }; }; then
47255   ac_cv_type_size_t=yes
47256 else
47257   echo "$as_me: failed program was:" >&5
47258 sed 's/^/| /' conftest.$ac_ext >&5
47259
47260 ac_cv_type_size_t=no
47261 fi
47262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47263 fi
47264 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47265 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47266 if test $ac_cv_type_size_t = yes; then
47267   :
47268 else
47269
47270 cat >>confdefs.h <<_ACEOF
47271 #define size_t unsigned
47272 _ACEOF
47273
47274 fi
47275
47276
47277 echo "$as_me:$LINENO: checking for long long" >&5
47278 echo $ECHO_N "checking for long long... $ECHO_C" >&6
47279 if test "${ac_cv_type_long_long+set}" = set; then
47280   echo $ECHO_N "(cached) $ECHO_C" >&6
47281 else
47282   cat >conftest.$ac_ext <<_ACEOF
47283 /* confdefs.h.  */
47284 _ACEOF
47285 cat confdefs.h >>conftest.$ac_ext
47286 cat >>conftest.$ac_ext <<_ACEOF
47287 /* end confdefs.h.  */
47288 $ac_includes_default
47289 int
47290 main ()
47291 {
47292 if ((long long *) 0)
47293   return 0;
47294 if (sizeof (long long))
47295   return 0;
47296   ;
47297   return 0;
47298 }
47299 _ACEOF
47300 rm -f conftest.$ac_objext
47301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47302   (eval $ac_compile) 2>conftest.er1
47303   ac_status=$?
47304   grep -v '^ *+' conftest.er1 >conftest.err
47305   rm -f conftest.er1
47306   cat conftest.err >&5
47307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47308   (exit $ac_status); } &&
47309          { ac_try='test -z "$ac_c_werror_flag"
47310                          || test ! -s conftest.err'
47311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47312   (eval $ac_try) 2>&5
47313   ac_status=$?
47314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47315   (exit $ac_status); }; } &&
47316          { ac_try='test -s conftest.$ac_objext'
47317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47318   (eval $ac_try) 2>&5
47319   ac_status=$?
47320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47321   (exit $ac_status); }; }; then
47322   ac_cv_type_long_long=yes
47323 else
47324   echo "$as_me: failed program was:" >&5
47325 sed 's/^/| /' conftest.$ac_ext >&5
47326
47327 ac_cv_type_long_long=no
47328 fi
47329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47330 fi
47331 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
47332 echo "${ECHO_T}$ac_cv_type_long_long" >&6
47333 if test $ac_cv_type_long_long = yes; then
47334
47335 cat >>confdefs.h <<_ACEOF
47336 #define HAVE_LONG_LONG 1
47337 _ACEOF
47338
47339
47340 fi
47341
47342 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47343 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47344 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47345   echo $ECHO_N "(cached) $ECHO_C" >&6
47346 else
47347   cat >conftest.$ac_ext <<_ACEOF
47348 /* confdefs.h.  */
47349 _ACEOF
47350 cat confdefs.h >>conftest.$ac_ext
47351 cat >>conftest.$ac_ext <<_ACEOF
47352 /* end confdefs.h.  */
47353 $ac_includes_default
47354 int
47355 main ()
47356 {
47357 if ((ptrdiff_t *) 0)
47358   return 0;
47359 if (sizeof (ptrdiff_t))
47360   return 0;
47361   ;
47362   return 0;
47363 }
47364 _ACEOF
47365 rm -f conftest.$ac_objext
47366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47367   (eval $ac_compile) 2>conftest.er1
47368   ac_status=$?
47369   grep -v '^ *+' conftest.er1 >conftest.err
47370   rm -f conftest.er1
47371   cat conftest.err >&5
47372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47373   (exit $ac_status); } &&
47374          { ac_try='test -z "$ac_c_werror_flag"
47375                          || test ! -s conftest.err'
47376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47377   (eval $ac_try) 2>&5
47378   ac_status=$?
47379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47380   (exit $ac_status); }; } &&
47381          { ac_try='test -s conftest.$ac_objext'
47382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47383   (eval $ac_try) 2>&5
47384   ac_status=$?
47385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47386   (exit $ac_status); }; }; then
47387   ac_cv_type_ptrdiff_t=yes
47388 else
47389   echo "$as_me: failed program was:" >&5
47390 sed 's/^/| /' conftest.$ac_ext >&5
47391
47392 ac_cv_type_ptrdiff_t=no
47393 fi
47394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47395 fi
47396 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47397 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47398 if test $ac_cv_type_ptrdiff_t = yes; then
47399
47400 cat >>confdefs.h <<_ACEOF
47401 #define HAVE_PTRDIFF_T 1
47402 _ACEOF
47403
47404
47405 fi
47406
47407
47408 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47409 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47410 if test "${ac_cv_type_signal+set}" = set; then
47411   echo $ECHO_N "(cached) $ECHO_C" >&6
47412 else
47413   cat >conftest.$ac_ext <<_ACEOF
47414 /* confdefs.h.  */
47415 _ACEOF
47416 cat confdefs.h >>conftest.$ac_ext
47417 cat >>conftest.$ac_ext <<_ACEOF
47418 /* end confdefs.h.  */
47419 #include <sys/types.h>
47420 #include <signal.h>
47421 #ifdef signal
47422 # undef signal
47423 #endif
47424 #ifdef __cplusplus
47425 extern "C" void (*signal (int, void (*)(int)))(int);
47426 #else
47427 void (*signal ()) ();
47428 #endif
47429
47430 int
47431 main ()
47432 {
47433 int i;
47434   ;
47435   return 0;
47436 }
47437 _ACEOF
47438 rm -f conftest.$ac_objext
47439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47440   (eval $ac_compile) 2>conftest.er1
47441   ac_status=$?
47442   grep -v '^ *+' conftest.er1 >conftest.err
47443   rm -f conftest.er1
47444   cat conftest.err >&5
47445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47446   (exit $ac_status); } &&
47447          { ac_try='test -z "$ac_c_werror_flag"
47448                          || test ! -s conftest.err'
47449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47450   (eval $ac_try) 2>&5
47451   ac_status=$?
47452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47453   (exit $ac_status); }; } &&
47454          { ac_try='test -s conftest.$ac_objext'
47455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47456   (eval $ac_try) 2>&5
47457   ac_status=$?
47458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47459   (exit $ac_status); }; }; then
47460   ac_cv_type_signal=void
47461 else
47462   echo "$as_me: failed program was:" >&5
47463 sed 's/^/| /' conftest.$ac_ext >&5
47464
47465 ac_cv_type_signal=int
47466 fi
47467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47468 fi
47469 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47470 echo "${ECHO_T}$ac_cv_type_signal" >&6
47471
47472 cat >>confdefs.h <<_ACEOF
47473 #define RETSIGTYPE $ac_cv_type_signal
47474 _ACEOF
47475
47476
47477 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47478 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47479 if test "${ac_cv_type_uid_t+set}" = set; then
47480   echo $ECHO_N "(cached) $ECHO_C" >&6
47481 else
47482   cat >conftest.$ac_ext <<_ACEOF
47483 /* confdefs.h.  */
47484 _ACEOF
47485 cat confdefs.h >>conftest.$ac_ext
47486 cat >>conftest.$ac_ext <<_ACEOF
47487 /* end confdefs.h.  */
47488 #include <sys/types.h>
47489
47490 _ACEOF
47491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47492   $EGREP "uid_t" >/dev/null 2>&1; then
47493   ac_cv_type_uid_t=yes
47494 else
47495   ac_cv_type_uid_t=no
47496 fi
47497 rm -f conftest*
47498
47499 fi
47500 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47501 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47502 if test $ac_cv_type_uid_t = no; then
47503
47504 cat >>confdefs.h <<\_ACEOF
47505 #define uid_t int
47506 _ACEOF
47507
47508
47509 cat >>confdefs.h <<\_ACEOF
47510 #define gid_t int
47511 _ACEOF
47512
47513 fi
47514
47515 echo "$as_me:$LINENO: checking for socklen_t" >&5
47516 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47517 if test "${ol_cv_type_socklen_t+set}" = set; then
47518   echo $ECHO_N "(cached) $ECHO_C" >&6
47519 else
47520   cat >conftest.$ac_ext <<_ACEOF
47521 /* confdefs.h.  */
47522 _ACEOF
47523 cat confdefs.h >>conftest.$ac_ext
47524 cat >>conftest.$ac_ext <<_ACEOF
47525 /* end confdefs.h.  */
47526
47527 #ifdef HAVE_SYS_TYPES_H
47528 #include <sys/types.h>
47529 #endif
47530 #ifdef HAVE_SYS_SOCKET_H
47531 #include <sys/socket.h>
47532 #endif
47533
47534 int
47535 main ()
47536 {
47537 socklen_t len;
47538   ;
47539   return 0;
47540 }
47541 _ACEOF
47542 rm -f conftest.$ac_objext
47543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47544   (eval $ac_compile) 2>conftest.er1
47545   ac_status=$?
47546   grep -v '^ *+' conftest.er1 >conftest.err
47547   rm -f conftest.er1
47548   cat conftest.err >&5
47549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47550   (exit $ac_status); } &&
47551          { ac_try='test -z "$ac_c_werror_flag"
47552                          || test ! -s conftest.err'
47553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47554   (eval $ac_try) 2>&5
47555   ac_status=$?
47556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47557   (exit $ac_status); }; } &&
47558          { ac_try='test -s conftest.$ac_objext'
47559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47560   (eval $ac_try) 2>&5
47561   ac_status=$?
47562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47563   (exit $ac_status); }; }; then
47564   ol_cv_type_socklen_t=yes
47565 else
47566   echo "$as_me: failed program was:" >&5
47567 sed 's/^/| /' conftest.$ac_ext >&5
47568
47569 ol_cv_type_socklen_t=no
47570 fi
47571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47572 fi
47573 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
47574 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
47575   if test $ol_cv_type_socklen_t = no; then
47576
47577 cat >>confdefs.h <<\_ACEOF
47578 #define socklen_t int
47579 _ACEOF
47580
47581   fi
47582
47583 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47584 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47585 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
47586   echo $ECHO_N "(cached) $ECHO_C" >&6
47587 else
47588   cat >conftest.$ac_ext <<_ACEOF
47589 /* confdefs.h.  */
47590 _ACEOF
47591 cat confdefs.h >>conftest.$ac_ext
47592 cat >>conftest.$ac_ext <<_ACEOF
47593 /* end confdefs.h.  */
47594 #include <signal.h>
47595 int
47596 main ()
47597 {
47598 sig_atomic_t atomic;
47599   ;
47600   return 0;
47601 }
47602 _ACEOF
47603 rm -f conftest.$ac_objext
47604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47605   (eval $ac_compile) 2>conftest.er1
47606   ac_status=$?
47607   grep -v '^ *+' conftest.er1 >conftest.err
47608   rm -f conftest.er1
47609   cat conftest.err >&5
47610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47611   (exit $ac_status); } &&
47612          { ac_try='test -z "$ac_c_werror_flag"
47613                          || test ! -s conftest.err'
47614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47615   (eval $ac_try) 2>&5
47616   ac_status=$?
47617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47618   (exit $ac_status); }; } &&
47619          { ac_try='test -s conftest.$ac_objext'
47620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47621   (eval $ac_try) 2>&5
47622   ac_status=$?
47623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47624   (exit $ac_status); }; }; then
47625   ol_cv_type_sig_atomic_t=yes
47626 else
47627   echo "$as_me: failed program was:" >&5
47628 sed 's/^/| /' conftest.$ac_ext >&5
47629
47630 ol_cv_type_sig_atomic_t=no
47631 fi
47632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47633 fi
47634 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
47635 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
47636   if test $ol_cv_type_sig_atomic_t = no; then
47637
47638 cat >>confdefs.h <<\_ACEOF
47639 #define sig_atomic_t int
47640 _ACEOF
47641
47642   fi
47643
47644
47645 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47646 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47647 if test "${ac_cv_header_time+set}" = set; then
47648   echo $ECHO_N "(cached) $ECHO_C" >&6
47649 else
47650   cat >conftest.$ac_ext <<_ACEOF
47651 /* confdefs.h.  */
47652 _ACEOF
47653 cat confdefs.h >>conftest.$ac_ext
47654 cat >>conftest.$ac_ext <<_ACEOF
47655 /* end confdefs.h.  */
47656 #include <sys/types.h>
47657 #include <sys/time.h>
47658 #include <time.h>
47659
47660 int
47661 main ()
47662 {
47663 if ((struct tm *) 0)
47664 return 0;
47665   ;
47666   return 0;
47667 }
47668 _ACEOF
47669 rm -f conftest.$ac_objext
47670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47671   (eval $ac_compile) 2>conftest.er1
47672   ac_status=$?
47673   grep -v '^ *+' conftest.er1 >conftest.err
47674   rm -f conftest.er1
47675   cat conftest.err >&5
47676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47677   (exit $ac_status); } &&
47678          { ac_try='test -z "$ac_c_werror_flag"
47679                          || test ! -s conftest.err'
47680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47681   (eval $ac_try) 2>&5
47682   ac_status=$?
47683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47684   (exit $ac_status); }; } &&
47685          { ac_try='test -s conftest.$ac_objext'
47686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47687   (eval $ac_try) 2>&5
47688   ac_status=$?
47689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47690   (exit $ac_status); }; }; then
47691   ac_cv_header_time=yes
47692 else
47693   echo "$as_me: failed program was:" >&5
47694 sed 's/^/| /' conftest.$ac_ext >&5
47695
47696 ac_cv_header_time=no
47697 fi
47698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47699 fi
47700 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47701 echo "${ECHO_T}$ac_cv_header_time" >&6
47702 if test $ac_cv_header_time = yes; then
47703
47704 cat >>confdefs.h <<\_ACEOF
47705 #define TIME_WITH_SYS_TIME 1
47706 _ACEOF
47707
47708 fi
47709
47710 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47711 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47712 if test "${ac_cv_struct_tm+set}" = set; then
47713   echo $ECHO_N "(cached) $ECHO_C" >&6
47714 else
47715   cat >conftest.$ac_ext <<_ACEOF
47716 /* confdefs.h.  */
47717 _ACEOF
47718 cat confdefs.h >>conftest.$ac_ext
47719 cat >>conftest.$ac_ext <<_ACEOF
47720 /* end confdefs.h.  */
47721 #include <sys/types.h>
47722 #include <time.h>
47723
47724 int
47725 main ()
47726 {
47727 struct tm *tp; tp->tm_sec;
47728   ;
47729   return 0;
47730 }
47731 _ACEOF
47732 rm -f conftest.$ac_objext
47733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47734   (eval $ac_compile) 2>conftest.er1
47735   ac_status=$?
47736   grep -v '^ *+' conftest.er1 >conftest.err
47737   rm -f conftest.er1
47738   cat conftest.err >&5
47739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47740   (exit $ac_status); } &&
47741          { ac_try='test -z "$ac_c_werror_flag"
47742                          || test ! -s conftest.err'
47743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47744   (eval $ac_try) 2>&5
47745   ac_status=$?
47746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47747   (exit $ac_status); }; } &&
47748          { ac_try='test -s conftest.$ac_objext'
47749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47750   (eval $ac_try) 2>&5
47751   ac_status=$?
47752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47753   (exit $ac_status); }; }; then
47754   ac_cv_struct_tm=time.h
47755 else
47756   echo "$as_me: failed program was:" >&5
47757 sed 's/^/| /' conftest.$ac_ext >&5
47758
47759 ac_cv_struct_tm=sys/time.h
47760 fi
47761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47762 fi
47763 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47764 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47765 if test $ac_cv_struct_tm = sys/time.h; then
47766
47767 cat >>confdefs.h <<\_ACEOF
47768 #define TM_IN_SYS_TIME 1
47769 _ACEOF
47770
47771 fi
47772
47773 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47774 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47775 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47776   echo $ECHO_N "(cached) $ECHO_C" >&6
47777 else
47778   cat >conftest.$ac_ext <<_ACEOF
47779 /* confdefs.h.  */
47780 _ACEOF
47781 cat confdefs.h >>conftest.$ac_ext
47782 cat >>conftest.$ac_ext <<_ACEOF
47783 /* end confdefs.h.  */
47784 $ac_includes_default
47785 int
47786 main ()
47787 {
47788 static struct stat ac_aggr;
47789 if (ac_aggr.st_blksize)
47790 return 0;
47791   ;
47792   return 0;
47793 }
47794 _ACEOF
47795 rm -f conftest.$ac_objext
47796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47797   (eval $ac_compile) 2>conftest.er1
47798   ac_status=$?
47799   grep -v '^ *+' conftest.er1 >conftest.err
47800   rm -f conftest.er1
47801   cat conftest.err >&5
47802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47803   (exit $ac_status); } &&
47804          { ac_try='test -z "$ac_c_werror_flag"
47805                          || test ! -s conftest.err'
47806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47807   (eval $ac_try) 2>&5
47808   ac_status=$?
47809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47810   (exit $ac_status); }; } &&
47811          { ac_try='test -s conftest.$ac_objext'
47812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47813   (eval $ac_try) 2>&5
47814   ac_status=$?
47815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47816   (exit $ac_status); }; }; then
47817   ac_cv_member_struct_stat_st_blksize=yes
47818 else
47819   echo "$as_me: failed program was:" >&5
47820 sed 's/^/| /' conftest.$ac_ext >&5
47821
47822 cat >conftest.$ac_ext <<_ACEOF
47823 /* confdefs.h.  */
47824 _ACEOF
47825 cat confdefs.h >>conftest.$ac_ext
47826 cat >>conftest.$ac_ext <<_ACEOF
47827 /* end confdefs.h.  */
47828 $ac_includes_default
47829 int
47830 main ()
47831 {
47832 static struct stat ac_aggr;
47833 if (sizeof ac_aggr.st_blksize)
47834 return 0;
47835   ;
47836   return 0;
47837 }
47838 _ACEOF
47839 rm -f conftest.$ac_objext
47840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47841   (eval $ac_compile) 2>conftest.er1
47842   ac_status=$?
47843   grep -v '^ *+' conftest.er1 >conftest.err
47844   rm -f conftest.er1
47845   cat conftest.err >&5
47846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47847   (exit $ac_status); } &&
47848          { ac_try='test -z "$ac_c_werror_flag"
47849                          || test ! -s conftest.err'
47850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47851   (eval $ac_try) 2>&5
47852   ac_status=$?
47853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47854   (exit $ac_status); }; } &&
47855          { ac_try='test -s conftest.$ac_objext'
47856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47857   (eval $ac_try) 2>&5
47858   ac_status=$?
47859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47860   (exit $ac_status); }; }; then
47861   ac_cv_member_struct_stat_st_blksize=yes
47862 else
47863   echo "$as_me: failed program was:" >&5
47864 sed 's/^/| /' conftest.$ac_ext >&5
47865
47866 ac_cv_member_struct_stat_st_blksize=no
47867 fi
47868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47869 fi
47870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47871 fi
47872 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47873 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
47874 if test $ac_cv_member_struct_stat_st_blksize = yes; then
47875
47876 cat >>confdefs.h <<_ACEOF
47877 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47878 _ACEOF
47879
47880
47881 fi
47882
47883 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
47884 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
47885 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
47886   echo $ECHO_N "(cached) $ECHO_C" >&6
47887 else
47888   cat >conftest.$ac_ext <<_ACEOF
47889 /* confdefs.h.  */
47890 _ACEOF
47891 cat confdefs.h >>conftest.$ac_ext
47892 cat >>conftest.$ac_ext <<_ACEOF
47893 /* end confdefs.h.  */
47894 $ac_includes_default
47895 int
47896 main ()
47897 {
47898 static struct passwd ac_aggr;
47899 if (ac_aggr.pw_gecos)
47900 return 0;
47901   ;
47902   return 0;
47903 }
47904 _ACEOF
47905 rm -f conftest.$ac_objext
47906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47907   (eval $ac_compile) 2>conftest.er1
47908   ac_status=$?
47909   grep -v '^ *+' conftest.er1 >conftest.err
47910   rm -f conftest.er1
47911   cat conftest.err >&5
47912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47913   (exit $ac_status); } &&
47914          { ac_try='test -z "$ac_c_werror_flag"
47915                          || test ! -s conftest.err'
47916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47917   (eval $ac_try) 2>&5
47918   ac_status=$?
47919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47920   (exit $ac_status); }; } &&
47921          { ac_try='test -s conftest.$ac_objext'
47922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47923   (eval $ac_try) 2>&5
47924   ac_status=$?
47925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47926   (exit $ac_status); }; }; then
47927   ac_cv_member_struct_passwd_pw_gecos=yes
47928 else
47929   echo "$as_me: failed program was:" >&5
47930 sed 's/^/| /' conftest.$ac_ext >&5
47931
47932 cat >conftest.$ac_ext <<_ACEOF
47933 /* confdefs.h.  */
47934 _ACEOF
47935 cat confdefs.h >>conftest.$ac_ext
47936 cat >>conftest.$ac_ext <<_ACEOF
47937 /* end confdefs.h.  */
47938 $ac_includes_default
47939 int
47940 main ()
47941 {
47942 static struct passwd ac_aggr;
47943 if (sizeof ac_aggr.pw_gecos)
47944 return 0;
47945   ;
47946   return 0;
47947 }
47948 _ACEOF
47949 rm -f conftest.$ac_objext
47950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47951   (eval $ac_compile) 2>conftest.er1
47952   ac_status=$?
47953   grep -v '^ *+' conftest.er1 >conftest.err
47954   rm -f conftest.er1
47955   cat conftest.err >&5
47956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47957   (exit $ac_status); } &&
47958          { ac_try='test -z "$ac_c_werror_flag"
47959                          || test ! -s conftest.err'
47960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47961   (eval $ac_try) 2>&5
47962   ac_status=$?
47963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964   (exit $ac_status); }; } &&
47965          { ac_try='test -s conftest.$ac_objext'
47966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47967   (eval $ac_try) 2>&5
47968   ac_status=$?
47969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47970   (exit $ac_status); }; }; then
47971   ac_cv_member_struct_passwd_pw_gecos=yes
47972 else
47973   echo "$as_me: failed program was:" >&5
47974 sed 's/^/| /' conftest.$ac_ext >&5
47975
47976 ac_cv_member_struct_passwd_pw_gecos=no
47977 fi
47978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47979 fi
47980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47981 fi
47982 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
47983 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
47984 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
47985
47986 cat >>confdefs.h <<_ACEOF
47987 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
47988 _ACEOF
47989
47990
47991 fi
47992
47993 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
47994 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
47995 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
47996   echo $ECHO_N "(cached) $ECHO_C" >&6
47997 else
47998   cat >conftest.$ac_ext <<_ACEOF
47999 /* confdefs.h.  */
48000 _ACEOF
48001 cat confdefs.h >>conftest.$ac_ext
48002 cat >>conftest.$ac_ext <<_ACEOF
48003 /* end confdefs.h.  */
48004 $ac_includes_default
48005 int
48006 main ()
48007 {
48008 static struct passwd ac_aggr;
48009 if (ac_aggr.pw_passwd)
48010 return 0;
48011   ;
48012   return 0;
48013 }
48014 _ACEOF
48015 rm -f conftest.$ac_objext
48016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48017   (eval $ac_compile) 2>conftest.er1
48018   ac_status=$?
48019   grep -v '^ *+' conftest.er1 >conftest.err
48020   rm -f conftest.er1
48021   cat conftest.err >&5
48022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48023   (exit $ac_status); } &&
48024          { ac_try='test -z "$ac_c_werror_flag"
48025                          || test ! -s conftest.err'
48026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48027   (eval $ac_try) 2>&5
48028   ac_status=$?
48029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48030   (exit $ac_status); }; } &&
48031          { ac_try='test -s conftest.$ac_objext'
48032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48033   (eval $ac_try) 2>&5
48034   ac_status=$?
48035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48036   (exit $ac_status); }; }; then
48037   ac_cv_member_struct_passwd_pw_passwd=yes
48038 else
48039   echo "$as_me: failed program was:" >&5
48040 sed 's/^/| /' conftest.$ac_ext >&5
48041
48042 cat >conftest.$ac_ext <<_ACEOF
48043 /* confdefs.h.  */
48044 _ACEOF
48045 cat confdefs.h >>conftest.$ac_ext
48046 cat >>conftest.$ac_ext <<_ACEOF
48047 /* end confdefs.h.  */
48048 $ac_includes_default
48049 int
48050 main ()
48051 {
48052 static struct passwd ac_aggr;
48053 if (sizeof ac_aggr.pw_passwd)
48054 return 0;
48055   ;
48056   return 0;
48057 }
48058 _ACEOF
48059 rm -f conftest.$ac_objext
48060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48061   (eval $ac_compile) 2>conftest.er1
48062   ac_status=$?
48063   grep -v '^ *+' conftest.er1 >conftest.err
48064   rm -f conftest.er1
48065   cat conftest.err >&5
48066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48067   (exit $ac_status); } &&
48068          { ac_try='test -z "$ac_c_werror_flag"
48069                          || test ! -s conftest.err'
48070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48071   (eval $ac_try) 2>&5
48072   ac_status=$?
48073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48074   (exit $ac_status); }; } &&
48075          { ac_try='test -s conftest.$ac_objext'
48076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48077   (eval $ac_try) 2>&5
48078   ac_status=$?
48079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48080   (exit $ac_status); }; }; then
48081   ac_cv_member_struct_passwd_pw_passwd=yes
48082 else
48083   echo "$as_me: failed program was:" >&5
48084 sed 's/^/| /' conftest.$ac_ext >&5
48085
48086 ac_cv_member_struct_passwd_pw_passwd=no
48087 fi
48088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48089 fi
48090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48091 fi
48092 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
48093 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
48094 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
48095
48096 cat >>confdefs.h <<_ACEOF
48097 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
48098 _ACEOF
48099
48100
48101 fi
48102
48103
48104 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48105 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48106 if test "${ol_cv_c_upper_lower+set}" = set; then
48107   echo $ECHO_N "(cached) $ECHO_C" >&6
48108 else
48109
48110         if test "$cross_compiling" = yes; then
48111   ol_cv_c_upper_lower=safe
48112 else
48113   cat >conftest.$ac_ext <<_ACEOF
48114 /* confdefs.h.  */
48115 _ACEOF
48116 cat confdefs.h >>conftest.$ac_ext
48117 cat >>conftest.$ac_ext <<_ACEOF
48118 /* end confdefs.h.  */
48119
48120 #include <ctype.h>
48121 main()
48122 {
48123         if ('C' == toupper('C'))
48124                 exit(0);
48125         else
48126                 exit(1);
48127 }
48128 _ACEOF
48129 rm -f conftest$ac_exeext
48130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48131   (eval $ac_link) 2>&5
48132   ac_status=$?
48133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48134   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48136   (eval $ac_try) 2>&5
48137   ac_status=$?
48138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48139   (exit $ac_status); }; }; then
48140   ol_cv_c_upper_lower=no
48141 else
48142   echo "$as_me: program exited with status $ac_status" >&5
48143 echo "$as_me: failed program was:" >&5
48144 sed 's/^/| /' conftest.$ac_ext >&5
48145
48146 ( exit $ac_status )
48147 ol_cv_c_upper_lower=yes
48148 fi
48149 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48150 fi
48151 fi
48152 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48153 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48154 if test $ol_cv_c_upper_lower != no ; then
48155
48156 cat >>confdefs.h <<\_ACEOF
48157 #define C_UPPER_LOWER 1
48158 _ACEOF
48159
48160 fi
48161
48162 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48163 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48164 if test "${ac_cv_c_const+set}" = set; then
48165   echo $ECHO_N "(cached) $ECHO_C" >&6
48166 else
48167   cat >conftest.$ac_ext <<_ACEOF
48168 /* confdefs.h.  */
48169 _ACEOF
48170 cat confdefs.h >>conftest.$ac_ext
48171 cat >>conftest.$ac_ext <<_ACEOF
48172 /* end confdefs.h.  */
48173
48174 int
48175 main ()
48176 {
48177 /* FIXME: Include the comments suggested by Paul. */
48178 #ifndef __cplusplus
48179   /* Ultrix mips cc rejects this.  */
48180   typedef int charset[2];
48181   const charset x;
48182   /* SunOS 4.1.1 cc rejects this.  */
48183   char const *const *ccp;
48184   char **p;
48185   /* NEC SVR4.0.2 mips cc rejects this.  */
48186   struct point {int x, y;};
48187   static struct point const zero = {0,0};
48188   /* AIX XL C 1.02.0.0 rejects this.
48189      It does not let you subtract one const X* pointer from another in
48190      an arm of an if-expression whose if-part is not a constant
48191      expression */
48192   const char *g = "string";
48193   ccp = &g + (g ? g-g : 0);
48194   /* HPUX 7.0 cc rejects these. */
48195   ++ccp;
48196   p = (char**) ccp;
48197   ccp = (char const *const *) p;
48198   { /* SCO 3.2v4 cc rejects this.  */
48199     char *t;
48200     char const *s = 0 ? (char *) 0 : (char const *) 0;
48201
48202     *t++ = 0;
48203   }
48204   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
48205     int x[] = {25, 17};
48206     const int *foo = &x[0];
48207     ++foo;
48208   }
48209   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48210     typedef const int *iptr;
48211     iptr p = 0;
48212     ++p;
48213   }
48214   { /* AIX XL C 1.02.0.0 rejects this saying
48215        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48216     struct s { int j; const int *ap[3]; };
48217     struct s *b; b->j = 5;
48218   }
48219   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48220     const int foo = 10;
48221   }
48222 #endif
48223
48224   ;
48225   return 0;
48226 }
48227 _ACEOF
48228 rm -f conftest.$ac_objext
48229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48230   (eval $ac_compile) 2>conftest.er1
48231   ac_status=$?
48232   grep -v '^ *+' conftest.er1 >conftest.err
48233   rm -f conftest.er1
48234   cat conftest.err >&5
48235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48236   (exit $ac_status); } &&
48237          { ac_try='test -z "$ac_c_werror_flag"
48238                          || test ! -s conftest.err'
48239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48240   (eval $ac_try) 2>&5
48241   ac_status=$?
48242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48243   (exit $ac_status); }; } &&
48244          { ac_try='test -s conftest.$ac_objext'
48245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48246   (eval $ac_try) 2>&5
48247   ac_status=$?
48248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48249   (exit $ac_status); }; }; then
48250   ac_cv_c_const=yes
48251 else
48252   echo "$as_me: failed program was:" >&5
48253 sed 's/^/| /' conftest.$ac_ext >&5
48254
48255 ac_cv_c_const=no
48256 fi
48257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48258 fi
48259 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48260 echo "${ECHO_T}$ac_cv_c_const" >&6
48261 if test $ac_cv_c_const = no; then
48262
48263 cat >>confdefs.h <<\_ACEOF
48264 #define const
48265 _ACEOF
48266
48267 fi
48268
48269 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48270 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48271 if test "${ol_cv_c_volatile+set}" = set; then
48272   echo $ECHO_N "(cached) $ECHO_C" >&6
48273 else
48274   cat >conftest.$ac_ext <<_ACEOF
48275 /* confdefs.h.  */
48276 _ACEOF
48277 cat confdefs.h >>conftest.$ac_ext
48278 cat >>conftest.$ac_ext <<_ACEOF
48279 /* end confdefs.h.  */
48280 int x, y, z;
48281 int
48282 main ()
48283 {
48284 volatile int a; int * volatile b = x ? &y : &z;
48285       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48286       *b = 0;
48287   ;
48288   return 0;
48289 }
48290 _ACEOF
48291 rm -f conftest.$ac_objext
48292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48293   (eval $ac_compile) 2>conftest.er1
48294   ac_status=$?
48295   grep -v '^ *+' conftest.er1 >conftest.err
48296   rm -f conftest.er1
48297   cat conftest.err >&5
48298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48299   (exit $ac_status); } &&
48300          { ac_try='test -z "$ac_c_werror_flag"
48301                          || test ! -s conftest.err'
48302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48303   (eval $ac_try) 2>&5
48304   ac_status=$?
48305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48306   (exit $ac_status); }; } &&
48307          { ac_try='test -s conftest.$ac_objext'
48308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48309   (eval $ac_try) 2>&5
48310   ac_status=$?
48311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48312   (exit $ac_status); }; }; then
48313   ol_cv_c_volatile=yes
48314 else
48315   echo "$as_me: failed program was:" >&5
48316 sed 's/^/| /' conftest.$ac_ext >&5
48317
48318 ol_cv_c_volatile=no
48319 fi
48320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48321 fi
48322 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48323 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48324   if test $ol_cv_c_volatile = yes; then
48325     :
48326   else
48327
48328 cat >>confdefs.h <<\_ACEOF
48329 #define volatile
48330 _ACEOF
48331
48332   fi
48333
48334
48335 if test $cross_compiling = yes ; then
48336         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48337 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48338
48339 cat >>confdefs.h <<\_ACEOF
48340 #define CROSS_COMPILING 1
48341 _ACEOF
48342
48343 else
48344         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48345 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48346 if test "${ac_cv_c_bigendian+set}" = set; then
48347   echo $ECHO_N "(cached) $ECHO_C" >&6
48348 else
48349   # See if sys/param.h defines the BYTE_ORDER macro.
48350 cat >conftest.$ac_ext <<_ACEOF
48351 /* confdefs.h.  */
48352 _ACEOF
48353 cat confdefs.h >>conftest.$ac_ext
48354 cat >>conftest.$ac_ext <<_ACEOF
48355 /* end confdefs.h.  */
48356 #include <sys/types.h>
48357 #include <sys/param.h>
48358
48359 int
48360 main ()
48361 {
48362 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48363  bogus endian macros
48364 #endif
48365
48366   ;
48367   return 0;
48368 }
48369 _ACEOF
48370 rm -f conftest.$ac_objext
48371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48372   (eval $ac_compile) 2>conftest.er1
48373   ac_status=$?
48374   grep -v '^ *+' conftest.er1 >conftest.err
48375   rm -f conftest.er1
48376   cat conftest.err >&5
48377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48378   (exit $ac_status); } &&
48379          { ac_try='test -z "$ac_c_werror_flag"
48380                          || test ! -s conftest.err'
48381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48382   (eval $ac_try) 2>&5
48383   ac_status=$?
48384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48385   (exit $ac_status); }; } &&
48386          { ac_try='test -s conftest.$ac_objext'
48387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48388   (eval $ac_try) 2>&5
48389   ac_status=$?
48390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48391   (exit $ac_status); }; }; then
48392   # It does; now see whether it defined to BIG_ENDIAN or not.
48393 cat >conftest.$ac_ext <<_ACEOF
48394 /* confdefs.h.  */
48395 _ACEOF
48396 cat confdefs.h >>conftest.$ac_ext
48397 cat >>conftest.$ac_ext <<_ACEOF
48398 /* end confdefs.h.  */
48399 #include <sys/types.h>
48400 #include <sys/param.h>
48401
48402 int
48403 main ()
48404 {
48405 #if BYTE_ORDER != BIG_ENDIAN
48406  not big endian
48407 #endif
48408
48409   ;
48410   return 0;
48411 }
48412 _ACEOF
48413 rm -f conftest.$ac_objext
48414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48415   (eval $ac_compile) 2>conftest.er1
48416   ac_status=$?
48417   grep -v '^ *+' conftest.er1 >conftest.err
48418   rm -f conftest.er1
48419   cat conftest.err >&5
48420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48421   (exit $ac_status); } &&
48422          { ac_try='test -z "$ac_c_werror_flag"
48423                          || test ! -s conftest.err'
48424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48425   (eval $ac_try) 2>&5
48426   ac_status=$?
48427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48428   (exit $ac_status); }; } &&
48429          { ac_try='test -s conftest.$ac_objext'
48430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48431   (eval $ac_try) 2>&5
48432   ac_status=$?
48433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48434   (exit $ac_status); }; }; then
48435   ac_cv_c_bigendian=yes
48436 else
48437   echo "$as_me: failed program was:" >&5
48438 sed 's/^/| /' conftest.$ac_ext >&5
48439
48440 ac_cv_c_bigendian=no
48441 fi
48442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48443 else
48444   echo "$as_me: failed program was:" >&5
48445 sed 's/^/| /' conftest.$ac_ext >&5
48446
48447 # It does not; compile a test program.
48448 if test "$cross_compiling" = yes; then
48449   # try to guess the endianness by grepping values into an object file
48450   ac_cv_c_bigendian=unknown
48451   cat >conftest.$ac_ext <<_ACEOF
48452 /* confdefs.h.  */
48453 _ACEOF
48454 cat confdefs.h >>conftest.$ac_ext
48455 cat >>conftest.$ac_ext <<_ACEOF
48456 /* end confdefs.h.  */
48457 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48458 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48459 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48460 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48461 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48462 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48463 int
48464 main ()
48465 {
48466  _ascii (); _ebcdic ();
48467   ;
48468   return 0;
48469 }
48470 _ACEOF
48471 rm -f conftest.$ac_objext
48472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48473   (eval $ac_compile) 2>conftest.er1
48474   ac_status=$?
48475   grep -v '^ *+' conftest.er1 >conftest.err
48476   rm -f conftest.er1
48477   cat conftest.err >&5
48478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48479   (exit $ac_status); } &&
48480          { ac_try='test -z "$ac_c_werror_flag"
48481                          || test ! -s conftest.err'
48482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48483   (eval $ac_try) 2>&5
48484   ac_status=$?
48485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48486   (exit $ac_status); }; } &&
48487          { ac_try='test -s conftest.$ac_objext'
48488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48489   (eval $ac_try) 2>&5
48490   ac_status=$?
48491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48492   (exit $ac_status); }; }; then
48493   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48494   ac_cv_c_bigendian=yes
48495 fi
48496 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48497   if test "$ac_cv_c_bigendian" = unknown; then
48498     ac_cv_c_bigendian=no
48499   else
48500     # finding both strings is unlikely to happen, but who knows?
48501     ac_cv_c_bigendian=unknown
48502   fi
48503 fi
48504 else
48505   echo "$as_me: failed program was:" >&5
48506 sed 's/^/| /' conftest.$ac_ext >&5
48507
48508 fi
48509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48510 else
48511   cat >conftest.$ac_ext <<_ACEOF
48512 /* confdefs.h.  */
48513 _ACEOF
48514 cat confdefs.h >>conftest.$ac_ext
48515 cat >>conftest.$ac_ext <<_ACEOF
48516 /* end confdefs.h.  */
48517 int
48518 main ()
48519 {
48520   /* Are we little or big endian?  From Harbison&Steele.  */
48521   union
48522   {
48523     long l;
48524     char c[sizeof (long)];
48525   } u;
48526   u.l = 1;
48527   exit (u.c[sizeof (long) - 1] == 1);
48528 }
48529 _ACEOF
48530 rm -f conftest$ac_exeext
48531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48532   (eval $ac_link) 2>&5
48533   ac_status=$?
48534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48537   (eval $ac_try) 2>&5
48538   ac_status=$?
48539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48540   (exit $ac_status); }; }; then
48541   ac_cv_c_bigendian=no
48542 else
48543   echo "$as_me: program exited with status $ac_status" >&5
48544 echo "$as_me: failed program was:" >&5
48545 sed 's/^/| /' conftest.$ac_ext >&5
48546
48547 ( exit $ac_status )
48548 ac_cv_c_bigendian=yes
48549 fi
48550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48551 fi
48552 fi
48553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48554 fi
48555 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48556 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48557 case $ac_cv_c_bigendian in
48558   yes)
48559
48560 cat >>confdefs.h <<\_ACEOF
48561 #define WORDS_BIGENDIAN 1
48562 _ACEOF
48563  ;;
48564   no)
48565      ;;
48566   *)
48567     { { echo "$as_me:$LINENO: error: unknown endianness
48568 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48569 echo "$as_me: error: unknown endianness
48570 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48571    { (exit 1); exit 1; }; } ;;
48572 esac
48573
48574 fi
48575
48576 echo "$as_me:$LINENO: checking for short" >&5
48577 echo $ECHO_N "checking for short... $ECHO_C" >&6
48578 if test "${ac_cv_type_short+set}" = set; then
48579   echo $ECHO_N "(cached) $ECHO_C" >&6
48580 else
48581   cat >conftest.$ac_ext <<_ACEOF
48582 /* confdefs.h.  */
48583 _ACEOF
48584 cat confdefs.h >>conftest.$ac_ext
48585 cat >>conftest.$ac_ext <<_ACEOF
48586 /* end confdefs.h.  */
48587 $ac_includes_default
48588 int
48589 main ()
48590 {
48591 if ((short *) 0)
48592   return 0;
48593 if (sizeof (short))
48594   return 0;
48595   ;
48596   return 0;
48597 }
48598 _ACEOF
48599 rm -f conftest.$ac_objext
48600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48601   (eval $ac_compile) 2>conftest.er1
48602   ac_status=$?
48603   grep -v '^ *+' conftest.er1 >conftest.err
48604   rm -f conftest.er1
48605   cat conftest.err >&5
48606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48607   (exit $ac_status); } &&
48608          { ac_try='test -z "$ac_c_werror_flag"
48609                          || test ! -s conftest.err'
48610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48611   (eval $ac_try) 2>&5
48612   ac_status=$?
48613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48614   (exit $ac_status); }; } &&
48615          { ac_try='test -s conftest.$ac_objext'
48616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48617   (eval $ac_try) 2>&5
48618   ac_status=$?
48619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48620   (exit $ac_status); }; }; then
48621   ac_cv_type_short=yes
48622 else
48623   echo "$as_me: failed program was:" >&5
48624 sed 's/^/| /' conftest.$ac_ext >&5
48625
48626 ac_cv_type_short=no
48627 fi
48628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48629 fi
48630 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
48631 echo "${ECHO_T}$ac_cv_type_short" >&6
48632
48633 echo "$as_me:$LINENO: checking size of short" >&5
48634 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48635 if test "${ac_cv_sizeof_short+set}" = set; then
48636   echo $ECHO_N "(cached) $ECHO_C" >&6
48637 else
48638   if test "$ac_cv_type_short" = yes; then
48639   # The cast to unsigned long works around a bug in the HP C Compiler
48640   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48641   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48642   # This bug is HP SR number 8606223364.
48643   if test "$cross_compiling" = yes; then
48644   # Depending upon the size, compute the lo and hi bounds.
48645 cat >conftest.$ac_ext <<_ACEOF
48646 /* confdefs.h.  */
48647 _ACEOF
48648 cat confdefs.h >>conftest.$ac_ext
48649 cat >>conftest.$ac_ext <<_ACEOF
48650 /* end confdefs.h.  */
48651 $ac_includes_default
48652 int
48653 main ()
48654 {
48655 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
48656 test_array [0] = 0
48657
48658   ;
48659   return 0;
48660 }
48661 _ACEOF
48662 rm -f conftest.$ac_objext
48663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48664   (eval $ac_compile) 2>conftest.er1
48665   ac_status=$?
48666   grep -v '^ *+' conftest.er1 >conftest.err
48667   rm -f conftest.er1
48668   cat conftest.err >&5
48669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48670   (exit $ac_status); } &&
48671          { ac_try='test -z "$ac_c_werror_flag"
48672                          || test ! -s conftest.err'
48673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48674   (eval $ac_try) 2>&5
48675   ac_status=$?
48676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48677   (exit $ac_status); }; } &&
48678          { ac_try='test -s conftest.$ac_objext'
48679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48680   (eval $ac_try) 2>&5
48681   ac_status=$?
48682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48683   (exit $ac_status); }; }; then
48684   ac_lo=0 ac_mid=0
48685   while :; do
48686     cat >conftest.$ac_ext <<_ACEOF
48687 /* confdefs.h.  */
48688 _ACEOF
48689 cat confdefs.h >>conftest.$ac_ext
48690 cat >>conftest.$ac_ext <<_ACEOF
48691 /* end confdefs.h.  */
48692 $ac_includes_default
48693 int
48694 main ()
48695 {
48696 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
48697 test_array [0] = 0
48698
48699   ;
48700   return 0;
48701 }
48702 _ACEOF
48703 rm -f conftest.$ac_objext
48704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48705   (eval $ac_compile) 2>conftest.er1
48706   ac_status=$?
48707   grep -v '^ *+' conftest.er1 >conftest.err
48708   rm -f conftest.er1
48709   cat conftest.err >&5
48710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48711   (exit $ac_status); } &&
48712          { ac_try='test -z "$ac_c_werror_flag"
48713                          || test ! -s conftest.err'
48714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48715   (eval $ac_try) 2>&5
48716   ac_status=$?
48717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48718   (exit $ac_status); }; } &&
48719          { ac_try='test -s conftest.$ac_objext'
48720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48721   (eval $ac_try) 2>&5
48722   ac_status=$?
48723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48724   (exit $ac_status); }; }; then
48725   ac_hi=$ac_mid; break
48726 else
48727   echo "$as_me: failed program was:" >&5
48728 sed 's/^/| /' conftest.$ac_ext >&5
48729
48730 ac_lo=`expr $ac_mid + 1`
48731                     if test $ac_lo -le $ac_mid; then
48732                       ac_lo= ac_hi=
48733                       break
48734                     fi
48735                     ac_mid=`expr 2 '*' $ac_mid + 1`
48736 fi
48737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48738   done
48739 else
48740   echo "$as_me: failed program was:" >&5
48741 sed 's/^/| /' conftest.$ac_ext >&5
48742
48743 cat >conftest.$ac_ext <<_ACEOF
48744 /* confdefs.h.  */
48745 _ACEOF
48746 cat confdefs.h >>conftest.$ac_ext
48747 cat >>conftest.$ac_ext <<_ACEOF
48748 /* end confdefs.h.  */
48749 $ac_includes_default
48750 int
48751 main ()
48752 {
48753 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
48754 test_array [0] = 0
48755
48756   ;
48757   return 0;
48758 }
48759 _ACEOF
48760 rm -f conftest.$ac_objext
48761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48762   (eval $ac_compile) 2>conftest.er1
48763   ac_status=$?
48764   grep -v '^ *+' conftest.er1 >conftest.err
48765   rm -f conftest.er1
48766   cat conftest.err >&5
48767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48768   (exit $ac_status); } &&
48769          { ac_try='test -z "$ac_c_werror_flag"
48770                          || test ! -s conftest.err'
48771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48772   (eval $ac_try) 2>&5
48773   ac_status=$?
48774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48775   (exit $ac_status); }; } &&
48776          { ac_try='test -s conftest.$ac_objext'
48777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48778   (eval $ac_try) 2>&5
48779   ac_status=$?
48780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48781   (exit $ac_status); }; }; then
48782   ac_hi=-1 ac_mid=-1
48783   while :; do
48784     cat >conftest.$ac_ext <<_ACEOF
48785 /* confdefs.h.  */
48786 _ACEOF
48787 cat confdefs.h >>conftest.$ac_ext
48788 cat >>conftest.$ac_ext <<_ACEOF
48789 /* end confdefs.h.  */
48790 $ac_includes_default
48791 int
48792 main ()
48793 {
48794 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
48795 test_array [0] = 0
48796
48797   ;
48798   return 0;
48799 }
48800 _ACEOF
48801 rm -f conftest.$ac_objext
48802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48803   (eval $ac_compile) 2>conftest.er1
48804   ac_status=$?
48805   grep -v '^ *+' conftest.er1 >conftest.err
48806   rm -f conftest.er1
48807   cat conftest.err >&5
48808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48809   (exit $ac_status); } &&
48810          { ac_try='test -z "$ac_c_werror_flag"
48811                          || test ! -s conftest.err'
48812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48813   (eval $ac_try) 2>&5
48814   ac_status=$?
48815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48816   (exit $ac_status); }; } &&
48817          { ac_try='test -s conftest.$ac_objext'
48818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48819   (eval $ac_try) 2>&5
48820   ac_status=$?
48821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48822   (exit $ac_status); }; }; then
48823   ac_lo=$ac_mid; break
48824 else
48825   echo "$as_me: failed program was:" >&5
48826 sed 's/^/| /' conftest.$ac_ext >&5
48827
48828 ac_hi=`expr '(' $ac_mid ')' - 1`
48829                        if test $ac_mid -le $ac_hi; then
48830                          ac_lo= ac_hi=
48831                          break
48832                        fi
48833                        ac_mid=`expr 2 '*' $ac_mid`
48834 fi
48835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48836   done
48837 else
48838   echo "$as_me: failed program was:" >&5
48839 sed 's/^/| /' conftest.$ac_ext >&5
48840
48841 ac_lo= ac_hi=
48842 fi
48843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48844 fi
48845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48846 # Binary search between lo and hi bounds.
48847 while test "x$ac_lo" != "x$ac_hi"; do
48848   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
48849   cat >conftest.$ac_ext <<_ACEOF
48850 /* confdefs.h.  */
48851 _ACEOF
48852 cat confdefs.h >>conftest.$ac_ext
48853 cat >>conftest.$ac_ext <<_ACEOF
48854 /* end confdefs.h.  */
48855 $ac_includes_default
48856 int
48857 main ()
48858 {
48859 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
48860 test_array [0] = 0
48861
48862   ;
48863   return 0;
48864 }
48865 _ACEOF
48866 rm -f conftest.$ac_objext
48867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48868   (eval $ac_compile) 2>conftest.er1
48869   ac_status=$?
48870   grep -v '^ *+' conftest.er1 >conftest.err
48871   rm -f conftest.er1
48872   cat conftest.err >&5
48873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48874   (exit $ac_status); } &&
48875          { ac_try='test -z "$ac_c_werror_flag"
48876                          || test ! -s conftest.err'
48877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48878   (eval $ac_try) 2>&5
48879   ac_status=$?
48880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48881   (exit $ac_status); }; } &&
48882          { ac_try='test -s conftest.$ac_objext'
48883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48884   (eval $ac_try) 2>&5
48885   ac_status=$?
48886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48887   (exit $ac_status); }; }; then
48888   ac_hi=$ac_mid
48889 else
48890   echo "$as_me: failed program was:" >&5
48891 sed 's/^/| /' conftest.$ac_ext >&5
48892
48893 ac_lo=`expr '(' $ac_mid ')' + 1`
48894 fi
48895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48896 done
48897 case $ac_lo in
48898 ?*) ac_cv_sizeof_short=$ac_lo;;
48899 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
48900 See \`config.log' for more details." >&5
48901 echo "$as_me: error: cannot compute sizeof (short), 77
48902 See \`config.log' for more details." >&2;}
48903    { (exit 1); exit 1; }; } ;;
48904 esac
48905 else
48906   if test "$cross_compiling" = yes; then
48907   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
48908 See \`config.log' for more details." >&5
48909 echo "$as_me: error: cannot run test program while cross compiling
48910 See \`config.log' for more details." >&2;}
48911    { (exit 1); exit 1; }; }
48912 else
48913   cat >conftest.$ac_ext <<_ACEOF
48914 /* confdefs.h.  */
48915 _ACEOF
48916 cat confdefs.h >>conftest.$ac_ext
48917 cat >>conftest.$ac_ext <<_ACEOF
48918 /* end confdefs.h.  */
48919 $ac_includes_default
48920 long longval () { return (long) (sizeof (short)); }
48921 unsigned long ulongval () { return (long) (sizeof (short)); }
48922 #include <stdio.h>
48923 #include <stdlib.h>
48924 int
48925 main ()
48926 {
48927
48928   FILE *f = fopen ("conftest.val", "w");
48929   if (! f)
48930     exit (1);
48931   if (((long) (sizeof (short))) < 0)
48932     {
48933       long i = longval ();
48934       if (i != ((long) (sizeof (short))))
48935         exit (1);
48936       fprintf (f, "%ld\n", i);
48937     }
48938   else
48939     {
48940       unsigned long i = ulongval ();
48941       if (i != ((long) (sizeof (short))))
48942         exit (1);
48943       fprintf (f, "%lu\n", i);
48944     }
48945   exit (ferror (f) || fclose (f) != 0);
48946
48947   ;
48948   return 0;
48949 }
48950 _ACEOF
48951 rm -f conftest$ac_exeext
48952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48953   (eval $ac_link) 2>&5
48954   ac_status=$?
48955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48956   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48958   (eval $ac_try) 2>&5
48959   ac_status=$?
48960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48961   (exit $ac_status); }; }; then
48962   ac_cv_sizeof_short=`cat conftest.val`
48963 else
48964   echo "$as_me: program exited with status $ac_status" >&5
48965 echo "$as_me: failed program was:" >&5
48966 sed 's/^/| /' conftest.$ac_ext >&5
48967
48968 ( exit $ac_status )
48969 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
48970 See \`config.log' for more details." >&5
48971 echo "$as_me: error: cannot compute sizeof (short), 77
48972 See \`config.log' for more details." >&2;}
48973    { (exit 1); exit 1; }; }
48974 fi
48975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48976 fi
48977 fi
48978 rm -f conftest.val
48979 else
48980   ac_cv_sizeof_short=0
48981 fi
48982 fi
48983 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
48984 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
48985 cat >>confdefs.h <<_ACEOF
48986 #define SIZEOF_SHORT $ac_cv_sizeof_short
48987 _ACEOF
48988
48989
48990 echo "$as_me:$LINENO: checking for int" >&5
48991 echo $ECHO_N "checking for int... $ECHO_C" >&6
48992 if test "${ac_cv_type_int+set}" = set; then
48993   echo $ECHO_N "(cached) $ECHO_C" >&6
48994 else
48995   cat >conftest.$ac_ext <<_ACEOF
48996 /* confdefs.h.  */
48997 _ACEOF
48998 cat confdefs.h >>conftest.$ac_ext
48999 cat >>conftest.$ac_ext <<_ACEOF
49000 /* end confdefs.h.  */
49001 $ac_includes_default
49002 int
49003 main ()
49004 {
49005 if ((int *) 0)
49006   return 0;
49007 if (sizeof (int))
49008   return 0;
49009   ;
49010   return 0;
49011 }
49012 _ACEOF
49013 rm -f conftest.$ac_objext
49014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49015   (eval $ac_compile) 2>conftest.er1
49016   ac_status=$?
49017   grep -v '^ *+' conftest.er1 >conftest.err
49018   rm -f conftest.er1
49019   cat conftest.err >&5
49020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49021   (exit $ac_status); } &&
49022          { ac_try='test -z "$ac_c_werror_flag"
49023                          || test ! -s conftest.err'
49024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49025   (eval $ac_try) 2>&5
49026   ac_status=$?
49027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49028   (exit $ac_status); }; } &&
49029          { ac_try='test -s conftest.$ac_objext'
49030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49031   (eval $ac_try) 2>&5
49032   ac_status=$?
49033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49034   (exit $ac_status); }; }; then
49035   ac_cv_type_int=yes
49036 else
49037   echo "$as_me: failed program was:" >&5
49038 sed 's/^/| /' conftest.$ac_ext >&5
49039
49040 ac_cv_type_int=no
49041 fi
49042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49043 fi
49044 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49045 echo "${ECHO_T}$ac_cv_type_int" >&6
49046
49047 echo "$as_me:$LINENO: checking size of int" >&5
49048 echo $ECHO_N "checking size of int... $ECHO_C" >&6
49049 if test "${ac_cv_sizeof_int+set}" = set; then
49050   echo $ECHO_N "(cached) $ECHO_C" >&6
49051 else
49052   if test "$ac_cv_type_int" = yes; then
49053   # The cast to unsigned long works around a bug in the HP C Compiler
49054   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49055   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49056   # This bug is HP SR number 8606223364.
49057   if test "$cross_compiling" = yes; then
49058   # Depending upon the size, compute the lo and hi bounds.
49059 cat >conftest.$ac_ext <<_ACEOF
49060 /* confdefs.h.  */
49061 _ACEOF
49062 cat confdefs.h >>conftest.$ac_ext
49063 cat >>conftest.$ac_ext <<_ACEOF
49064 /* end confdefs.h.  */
49065 $ac_includes_default
49066 int
49067 main ()
49068 {
49069 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
49070 test_array [0] = 0
49071
49072   ;
49073   return 0;
49074 }
49075 _ACEOF
49076 rm -f conftest.$ac_objext
49077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49078   (eval $ac_compile) 2>conftest.er1
49079   ac_status=$?
49080   grep -v '^ *+' conftest.er1 >conftest.err
49081   rm -f conftest.er1
49082   cat conftest.err >&5
49083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49084   (exit $ac_status); } &&
49085          { ac_try='test -z "$ac_c_werror_flag"
49086                          || test ! -s conftest.err'
49087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49088   (eval $ac_try) 2>&5
49089   ac_status=$?
49090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49091   (exit $ac_status); }; } &&
49092          { ac_try='test -s conftest.$ac_objext'
49093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49094   (eval $ac_try) 2>&5
49095   ac_status=$?
49096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49097   (exit $ac_status); }; }; then
49098   ac_lo=0 ac_mid=0
49099   while :; do
49100     cat >conftest.$ac_ext <<_ACEOF
49101 /* confdefs.h.  */
49102 _ACEOF
49103 cat confdefs.h >>conftest.$ac_ext
49104 cat >>conftest.$ac_ext <<_ACEOF
49105 /* end confdefs.h.  */
49106 $ac_includes_default
49107 int
49108 main ()
49109 {
49110 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49111 test_array [0] = 0
49112
49113   ;
49114   return 0;
49115 }
49116 _ACEOF
49117 rm -f conftest.$ac_objext
49118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49119   (eval $ac_compile) 2>conftest.er1
49120   ac_status=$?
49121   grep -v '^ *+' conftest.er1 >conftest.err
49122   rm -f conftest.er1
49123   cat conftest.err >&5
49124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49125   (exit $ac_status); } &&
49126          { ac_try='test -z "$ac_c_werror_flag"
49127                          || test ! -s conftest.err'
49128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49129   (eval $ac_try) 2>&5
49130   ac_status=$?
49131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49132   (exit $ac_status); }; } &&
49133          { ac_try='test -s conftest.$ac_objext'
49134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49135   (eval $ac_try) 2>&5
49136   ac_status=$?
49137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49138   (exit $ac_status); }; }; then
49139   ac_hi=$ac_mid; break
49140 else
49141   echo "$as_me: failed program was:" >&5
49142 sed 's/^/| /' conftest.$ac_ext >&5
49143
49144 ac_lo=`expr $ac_mid + 1`
49145                     if test $ac_lo -le $ac_mid; then
49146                       ac_lo= ac_hi=
49147                       break
49148                     fi
49149                     ac_mid=`expr 2 '*' $ac_mid + 1`
49150 fi
49151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49152   done
49153 else
49154   echo "$as_me: failed program was:" >&5
49155 sed 's/^/| /' conftest.$ac_ext >&5
49156
49157 cat >conftest.$ac_ext <<_ACEOF
49158 /* confdefs.h.  */
49159 _ACEOF
49160 cat confdefs.h >>conftest.$ac_ext
49161 cat >>conftest.$ac_ext <<_ACEOF
49162 /* end confdefs.h.  */
49163 $ac_includes_default
49164 int
49165 main ()
49166 {
49167 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
49168 test_array [0] = 0
49169
49170   ;
49171   return 0;
49172 }
49173 _ACEOF
49174 rm -f conftest.$ac_objext
49175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49176   (eval $ac_compile) 2>conftest.er1
49177   ac_status=$?
49178   grep -v '^ *+' conftest.er1 >conftest.err
49179   rm -f conftest.er1
49180   cat conftest.err >&5
49181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49182   (exit $ac_status); } &&
49183          { ac_try='test -z "$ac_c_werror_flag"
49184                          || test ! -s conftest.err'
49185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49186   (eval $ac_try) 2>&5
49187   ac_status=$?
49188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49189   (exit $ac_status); }; } &&
49190          { ac_try='test -s conftest.$ac_objext'
49191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49192   (eval $ac_try) 2>&5
49193   ac_status=$?
49194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49195   (exit $ac_status); }; }; then
49196   ac_hi=-1 ac_mid=-1
49197   while :; do
49198     cat >conftest.$ac_ext <<_ACEOF
49199 /* confdefs.h.  */
49200 _ACEOF
49201 cat confdefs.h >>conftest.$ac_ext
49202 cat >>conftest.$ac_ext <<_ACEOF
49203 /* end confdefs.h.  */
49204 $ac_includes_default
49205 int
49206 main ()
49207 {
49208 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
49209 test_array [0] = 0
49210
49211   ;
49212   return 0;
49213 }
49214 _ACEOF
49215 rm -f conftest.$ac_objext
49216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49217   (eval $ac_compile) 2>conftest.er1
49218   ac_status=$?
49219   grep -v '^ *+' conftest.er1 >conftest.err
49220   rm -f conftest.er1
49221   cat conftest.err >&5
49222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49223   (exit $ac_status); } &&
49224          { ac_try='test -z "$ac_c_werror_flag"
49225                          || test ! -s conftest.err'
49226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49227   (eval $ac_try) 2>&5
49228   ac_status=$?
49229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49230   (exit $ac_status); }; } &&
49231          { ac_try='test -s conftest.$ac_objext'
49232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49233   (eval $ac_try) 2>&5
49234   ac_status=$?
49235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49236   (exit $ac_status); }; }; then
49237   ac_lo=$ac_mid; break
49238 else
49239   echo "$as_me: failed program was:" >&5
49240 sed 's/^/| /' conftest.$ac_ext >&5
49241
49242 ac_hi=`expr '(' $ac_mid ')' - 1`
49243                        if test $ac_mid -le $ac_hi; then
49244                          ac_lo= ac_hi=
49245                          break
49246                        fi
49247                        ac_mid=`expr 2 '*' $ac_mid`
49248 fi
49249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49250   done
49251 else
49252   echo "$as_me: failed program was:" >&5
49253 sed 's/^/| /' conftest.$ac_ext >&5
49254
49255 ac_lo= ac_hi=
49256 fi
49257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49258 fi
49259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49260 # Binary search between lo and hi bounds.
49261 while test "x$ac_lo" != "x$ac_hi"; do
49262   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49263   cat >conftest.$ac_ext <<_ACEOF
49264 /* confdefs.h.  */
49265 _ACEOF
49266 cat confdefs.h >>conftest.$ac_ext
49267 cat >>conftest.$ac_ext <<_ACEOF
49268 /* end confdefs.h.  */
49269 $ac_includes_default
49270 int
49271 main ()
49272 {
49273 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49274 test_array [0] = 0
49275
49276   ;
49277   return 0;
49278 }
49279 _ACEOF
49280 rm -f conftest.$ac_objext
49281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49282   (eval $ac_compile) 2>conftest.er1
49283   ac_status=$?
49284   grep -v '^ *+' conftest.er1 >conftest.err
49285   rm -f conftest.er1
49286   cat conftest.err >&5
49287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49288   (exit $ac_status); } &&
49289          { ac_try='test -z "$ac_c_werror_flag"
49290                          || test ! -s conftest.err'
49291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49292   (eval $ac_try) 2>&5
49293   ac_status=$?
49294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49295   (exit $ac_status); }; } &&
49296          { ac_try='test -s conftest.$ac_objext'
49297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49298   (eval $ac_try) 2>&5
49299   ac_status=$?
49300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49301   (exit $ac_status); }; }; then
49302   ac_hi=$ac_mid
49303 else
49304   echo "$as_me: failed program was:" >&5
49305 sed 's/^/| /' conftest.$ac_ext >&5
49306
49307 ac_lo=`expr '(' $ac_mid ')' + 1`
49308 fi
49309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49310 done
49311 case $ac_lo in
49312 ?*) ac_cv_sizeof_int=$ac_lo;;
49313 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49314 See \`config.log' for more details." >&5
49315 echo "$as_me: error: cannot compute sizeof (int), 77
49316 See \`config.log' for more details." >&2;}
49317    { (exit 1); exit 1; }; } ;;
49318 esac
49319 else
49320   if test "$cross_compiling" = yes; then
49321   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49322 See \`config.log' for more details." >&5
49323 echo "$as_me: error: cannot run test program while cross compiling
49324 See \`config.log' for more details." >&2;}
49325    { (exit 1); exit 1; }; }
49326 else
49327   cat >conftest.$ac_ext <<_ACEOF
49328 /* confdefs.h.  */
49329 _ACEOF
49330 cat confdefs.h >>conftest.$ac_ext
49331 cat >>conftest.$ac_ext <<_ACEOF
49332 /* end confdefs.h.  */
49333 $ac_includes_default
49334 long longval () { return (long) (sizeof (int)); }
49335 unsigned long ulongval () { return (long) (sizeof (int)); }
49336 #include <stdio.h>
49337 #include <stdlib.h>
49338 int
49339 main ()
49340 {
49341
49342   FILE *f = fopen ("conftest.val", "w");
49343   if (! f)
49344     exit (1);
49345   if (((long) (sizeof (int))) < 0)
49346     {
49347       long i = longval ();
49348       if (i != ((long) (sizeof (int))))
49349         exit (1);
49350       fprintf (f, "%ld\n", i);
49351     }
49352   else
49353     {
49354       unsigned long i = ulongval ();
49355       if (i != ((long) (sizeof (int))))
49356         exit (1);
49357       fprintf (f, "%lu\n", i);
49358     }
49359   exit (ferror (f) || fclose (f) != 0);
49360
49361   ;
49362   return 0;
49363 }
49364 _ACEOF
49365 rm -f conftest$ac_exeext
49366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49367   (eval $ac_link) 2>&5
49368   ac_status=$?
49369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49370   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49372   (eval $ac_try) 2>&5
49373   ac_status=$?
49374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49375   (exit $ac_status); }; }; then
49376   ac_cv_sizeof_int=`cat conftest.val`
49377 else
49378   echo "$as_me: program exited with status $ac_status" >&5
49379 echo "$as_me: failed program was:" >&5
49380 sed 's/^/| /' conftest.$ac_ext >&5
49381
49382 ( exit $ac_status )
49383 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49384 See \`config.log' for more details." >&5
49385 echo "$as_me: error: cannot compute sizeof (int), 77
49386 See \`config.log' for more details." >&2;}
49387    { (exit 1); exit 1; }; }
49388 fi
49389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49390 fi
49391 fi
49392 rm -f conftest.val
49393 else
49394   ac_cv_sizeof_int=0
49395 fi
49396 fi
49397 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49398 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
49399 cat >>confdefs.h <<_ACEOF
49400 #define SIZEOF_INT $ac_cv_sizeof_int
49401 _ACEOF
49402
49403
49404 echo "$as_me:$LINENO: checking for long" >&5
49405 echo $ECHO_N "checking for long... $ECHO_C" >&6
49406 if test "${ac_cv_type_long+set}" = set; then
49407   echo $ECHO_N "(cached) $ECHO_C" >&6
49408 else
49409   cat >conftest.$ac_ext <<_ACEOF
49410 /* confdefs.h.  */
49411 _ACEOF
49412 cat confdefs.h >>conftest.$ac_ext
49413 cat >>conftest.$ac_ext <<_ACEOF
49414 /* end confdefs.h.  */
49415 $ac_includes_default
49416 int
49417 main ()
49418 {
49419 if ((long *) 0)
49420   return 0;
49421 if (sizeof (long))
49422   return 0;
49423   ;
49424   return 0;
49425 }
49426 _ACEOF
49427 rm -f conftest.$ac_objext
49428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49429   (eval $ac_compile) 2>conftest.er1
49430   ac_status=$?
49431   grep -v '^ *+' conftest.er1 >conftest.err
49432   rm -f conftest.er1
49433   cat conftest.err >&5
49434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49435   (exit $ac_status); } &&
49436          { ac_try='test -z "$ac_c_werror_flag"
49437                          || test ! -s conftest.err'
49438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49439   (eval $ac_try) 2>&5
49440   ac_status=$?
49441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49442   (exit $ac_status); }; } &&
49443          { ac_try='test -s conftest.$ac_objext'
49444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49445   (eval $ac_try) 2>&5
49446   ac_status=$?
49447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49448   (exit $ac_status); }; }; then
49449   ac_cv_type_long=yes
49450 else
49451   echo "$as_me: failed program was:" >&5
49452 sed 's/^/| /' conftest.$ac_ext >&5
49453
49454 ac_cv_type_long=no
49455 fi
49456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49457 fi
49458 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49459 echo "${ECHO_T}$ac_cv_type_long" >&6
49460
49461 echo "$as_me:$LINENO: checking size of long" >&5
49462 echo $ECHO_N "checking size of long... $ECHO_C" >&6
49463 if test "${ac_cv_sizeof_long+set}" = set; then
49464   echo $ECHO_N "(cached) $ECHO_C" >&6
49465 else
49466   if test "$ac_cv_type_long" = yes; then
49467   # The cast to unsigned long works around a bug in the HP C Compiler
49468   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49469   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49470   # This bug is HP SR number 8606223364.
49471   if test "$cross_compiling" = yes; then
49472   # Depending upon the size, compute the lo and hi bounds.
49473 cat >conftest.$ac_ext <<_ACEOF
49474 /* confdefs.h.  */
49475 _ACEOF
49476 cat confdefs.h >>conftest.$ac_ext
49477 cat >>conftest.$ac_ext <<_ACEOF
49478 /* end confdefs.h.  */
49479 $ac_includes_default
49480 int
49481 main ()
49482 {
49483 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
49484 test_array [0] = 0
49485
49486   ;
49487   return 0;
49488 }
49489 _ACEOF
49490 rm -f conftest.$ac_objext
49491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49492   (eval $ac_compile) 2>conftest.er1
49493   ac_status=$?
49494   grep -v '^ *+' conftest.er1 >conftest.err
49495   rm -f conftest.er1
49496   cat conftest.err >&5
49497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49498   (exit $ac_status); } &&
49499          { ac_try='test -z "$ac_c_werror_flag"
49500                          || test ! -s conftest.err'
49501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49502   (eval $ac_try) 2>&5
49503   ac_status=$?
49504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49505   (exit $ac_status); }; } &&
49506          { ac_try='test -s conftest.$ac_objext'
49507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49508   (eval $ac_try) 2>&5
49509   ac_status=$?
49510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49511   (exit $ac_status); }; }; then
49512   ac_lo=0 ac_mid=0
49513   while :; do
49514     cat >conftest.$ac_ext <<_ACEOF
49515 /* confdefs.h.  */
49516 _ACEOF
49517 cat confdefs.h >>conftest.$ac_ext
49518 cat >>conftest.$ac_ext <<_ACEOF
49519 /* end confdefs.h.  */
49520 $ac_includes_default
49521 int
49522 main ()
49523 {
49524 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49525 test_array [0] = 0
49526
49527   ;
49528   return 0;
49529 }
49530 _ACEOF
49531 rm -f conftest.$ac_objext
49532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49533   (eval $ac_compile) 2>conftest.er1
49534   ac_status=$?
49535   grep -v '^ *+' conftest.er1 >conftest.err
49536   rm -f conftest.er1
49537   cat conftest.err >&5
49538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49539   (exit $ac_status); } &&
49540          { ac_try='test -z "$ac_c_werror_flag"
49541                          || test ! -s conftest.err'
49542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49543   (eval $ac_try) 2>&5
49544   ac_status=$?
49545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49546   (exit $ac_status); }; } &&
49547          { ac_try='test -s conftest.$ac_objext'
49548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49549   (eval $ac_try) 2>&5
49550   ac_status=$?
49551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49552   (exit $ac_status); }; }; then
49553   ac_hi=$ac_mid; break
49554 else
49555   echo "$as_me: failed program was:" >&5
49556 sed 's/^/| /' conftest.$ac_ext >&5
49557
49558 ac_lo=`expr $ac_mid + 1`
49559                     if test $ac_lo -le $ac_mid; then
49560                       ac_lo= ac_hi=
49561                       break
49562                     fi
49563                     ac_mid=`expr 2 '*' $ac_mid + 1`
49564 fi
49565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49566   done
49567 else
49568   echo "$as_me: failed program was:" >&5
49569 sed 's/^/| /' conftest.$ac_ext >&5
49570
49571 cat >conftest.$ac_ext <<_ACEOF
49572 /* confdefs.h.  */
49573 _ACEOF
49574 cat confdefs.h >>conftest.$ac_ext
49575 cat >>conftest.$ac_ext <<_ACEOF
49576 /* end confdefs.h.  */
49577 $ac_includes_default
49578 int
49579 main ()
49580 {
49581 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
49582 test_array [0] = 0
49583
49584   ;
49585   return 0;
49586 }
49587 _ACEOF
49588 rm -f conftest.$ac_objext
49589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49590   (eval $ac_compile) 2>conftest.er1
49591   ac_status=$?
49592   grep -v '^ *+' conftest.er1 >conftest.err
49593   rm -f conftest.er1
49594   cat conftest.err >&5
49595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49596   (exit $ac_status); } &&
49597          { ac_try='test -z "$ac_c_werror_flag"
49598                          || test ! -s conftest.err'
49599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49600   (eval $ac_try) 2>&5
49601   ac_status=$?
49602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49603   (exit $ac_status); }; } &&
49604          { ac_try='test -s conftest.$ac_objext'
49605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49606   (eval $ac_try) 2>&5
49607   ac_status=$?
49608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49609   (exit $ac_status); }; }; then
49610   ac_hi=-1 ac_mid=-1
49611   while :; do
49612     cat >conftest.$ac_ext <<_ACEOF
49613 /* confdefs.h.  */
49614 _ACEOF
49615 cat confdefs.h >>conftest.$ac_ext
49616 cat >>conftest.$ac_ext <<_ACEOF
49617 /* end confdefs.h.  */
49618 $ac_includes_default
49619 int
49620 main ()
49621 {
49622 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
49623 test_array [0] = 0
49624
49625   ;
49626   return 0;
49627 }
49628 _ACEOF
49629 rm -f conftest.$ac_objext
49630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49631   (eval $ac_compile) 2>conftest.er1
49632   ac_status=$?
49633   grep -v '^ *+' conftest.er1 >conftest.err
49634   rm -f conftest.er1
49635   cat conftest.err >&5
49636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49637   (exit $ac_status); } &&
49638          { ac_try='test -z "$ac_c_werror_flag"
49639                          || test ! -s conftest.err'
49640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49641   (eval $ac_try) 2>&5
49642   ac_status=$?
49643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49644   (exit $ac_status); }; } &&
49645          { ac_try='test -s conftest.$ac_objext'
49646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49647   (eval $ac_try) 2>&5
49648   ac_status=$?
49649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49650   (exit $ac_status); }; }; then
49651   ac_lo=$ac_mid; break
49652 else
49653   echo "$as_me: failed program was:" >&5
49654 sed 's/^/| /' conftest.$ac_ext >&5
49655
49656 ac_hi=`expr '(' $ac_mid ')' - 1`
49657                        if test $ac_mid -le $ac_hi; then
49658                          ac_lo= ac_hi=
49659                          break
49660                        fi
49661                        ac_mid=`expr 2 '*' $ac_mid`
49662 fi
49663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49664   done
49665 else
49666   echo "$as_me: failed program was:" >&5
49667 sed 's/^/| /' conftest.$ac_ext >&5
49668
49669 ac_lo= ac_hi=
49670 fi
49671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49672 fi
49673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49674 # Binary search between lo and hi bounds.
49675 while test "x$ac_lo" != "x$ac_hi"; do
49676   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49677   cat >conftest.$ac_ext <<_ACEOF
49678 /* confdefs.h.  */
49679 _ACEOF
49680 cat confdefs.h >>conftest.$ac_ext
49681 cat >>conftest.$ac_ext <<_ACEOF
49682 /* end confdefs.h.  */
49683 $ac_includes_default
49684 int
49685 main ()
49686 {
49687 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49688 test_array [0] = 0
49689
49690   ;
49691   return 0;
49692 }
49693 _ACEOF
49694 rm -f conftest.$ac_objext
49695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49696   (eval $ac_compile) 2>conftest.er1
49697   ac_status=$?
49698   grep -v '^ *+' conftest.er1 >conftest.err
49699   rm -f conftest.er1
49700   cat conftest.err >&5
49701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49702   (exit $ac_status); } &&
49703          { ac_try='test -z "$ac_c_werror_flag"
49704                          || test ! -s conftest.err'
49705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49706   (eval $ac_try) 2>&5
49707   ac_status=$?
49708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49709   (exit $ac_status); }; } &&
49710          { ac_try='test -s conftest.$ac_objext'
49711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49712   (eval $ac_try) 2>&5
49713   ac_status=$?
49714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49715   (exit $ac_status); }; }; then
49716   ac_hi=$ac_mid
49717 else
49718   echo "$as_me: failed program was:" >&5
49719 sed 's/^/| /' conftest.$ac_ext >&5
49720
49721 ac_lo=`expr '(' $ac_mid ')' + 1`
49722 fi
49723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49724 done
49725 case $ac_lo in
49726 ?*) ac_cv_sizeof_long=$ac_lo;;
49727 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
49728 See \`config.log' for more details." >&5
49729 echo "$as_me: error: cannot compute sizeof (long), 77
49730 See \`config.log' for more details." >&2;}
49731    { (exit 1); exit 1; }; } ;;
49732 esac
49733 else
49734   if test "$cross_compiling" = yes; then
49735   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49736 See \`config.log' for more details." >&5
49737 echo "$as_me: error: cannot run test program while cross compiling
49738 See \`config.log' for more details." >&2;}
49739    { (exit 1); exit 1; }; }
49740 else
49741   cat >conftest.$ac_ext <<_ACEOF
49742 /* confdefs.h.  */
49743 _ACEOF
49744 cat confdefs.h >>conftest.$ac_ext
49745 cat >>conftest.$ac_ext <<_ACEOF
49746 /* end confdefs.h.  */
49747 $ac_includes_default
49748 long longval () { return (long) (sizeof (long)); }
49749 unsigned long ulongval () { return (long) (sizeof (long)); }
49750 #include <stdio.h>
49751 #include <stdlib.h>
49752 int
49753 main ()
49754 {
49755
49756   FILE *f = fopen ("conftest.val", "w");
49757   if (! f)
49758     exit (1);
49759   if (((long) (sizeof (long))) < 0)
49760     {
49761       long i = longval ();
49762       if (i != ((long) (sizeof (long))))
49763         exit (1);
49764       fprintf (f, "%ld\n", i);
49765     }
49766   else
49767     {
49768       unsigned long i = ulongval ();
49769       if (i != ((long) (sizeof (long))))
49770         exit (1);
49771       fprintf (f, "%lu\n", i);
49772     }
49773   exit (ferror (f) || fclose (f) != 0);
49774
49775   ;
49776   return 0;
49777 }
49778 _ACEOF
49779 rm -f conftest$ac_exeext
49780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49781   (eval $ac_link) 2>&5
49782   ac_status=$?
49783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49786   (eval $ac_try) 2>&5
49787   ac_status=$?
49788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49789   (exit $ac_status); }; }; then
49790   ac_cv_sizeof_long=`cat conftest.val`
49791 else
49792   echo "$as_me: program exited with status $ac_status" >&5
49793 echo "$as_me: failed program was:" >&5
49794 sed 's/^/| /' conftest.$ac_ext >&5
49795
49796 ( exit $ac_status )
49797 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
49798 See \`config.log' for more details." >&5
49799 echo "$as_me: error: cannot compute sizeof (long), 77
49800 See \`config.log' for more details." >&2;}
49801    { (exit 1); exit 1; }; }
49802 fi
49803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49804 fi
49805 fi
49806 rm -f conftest.val
49807 else
49808   ac_cv_sizeof_long=0
49809 fi
49810 fi
49811 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
49812 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
49813 cat >>confdefs.h <<_ACEOF
49814 #define SIZEOF_LONG $ac_cv_sizeof_long
49815 _ACEOF
49816
49817
49818 echo "$as_me:$LINENO: checking for wchar_t" >&5
49819 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
49820 if test "${ac_cv_type_wchar_t+set}" = set; then
49821   echo $ECHO_N "(cached) $ECHO_C" >&6
49822 else
49823   cat >conftest.$ac_ext <<_ACEOF
49824 /* confdefs.h.  */
49825 _ACEOF
49826 cat confdefs.h >>conftest.$ac_ext
49827 cat >>conftest.$ac_ext <<_ACEOF
49828 /* end confdefs.h.  */
49829 $ac_includes_default
49830 int
49831 main ()
49832 {
49833 if ((wchar_t *) 0)
49834   return 0;
49835 if (sizeof (wchar_t))
49836   return 0;
49837   ;
49838   return 0;
49839 }
49840 _ACEOF
49841 rm -f conftest.$ac_objext
49842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49843   (eval $ac_compile) 2>conftest.er1
49844   ac_status=$?
49845   grep -v '^ *+' conftest.er1 >conftest.err
49846   rm -f conftest.er1
49847   cat conftest.err >&5
49848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49849   (exit $ac_status); } &&
49850          { ac_try='test -z "$ac_c_werror_flag"
49851                          || test ! -s conftest.err'
49852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49853   (eval $ac_try) 2>&5
49854   ac_status=$?
49855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49856   (exit $ac_status); }; } &&
49857          { ac_try='test -s conftest.$ac_objext'
49858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49859   (eval $ac_try) 2>&5
49860   ac_status=$?
49861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49862   (exit $ac_status); }; }; then
49863   ac_cv_type_wchar_t=yes
49864 else
49865   echo "$as_me: failed program was:" >&5
49866 sed 's/^/| /' conftest.$ac_ext >&5
49867
49868 ac_cv_type_wchar_t=no
49869 fi
49870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49871 fi
49872 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
49873 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
49874
49875 echo "$as_me:$LINENO: checking size of wchar_t" >&5
49876 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
49877 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
49878   echo $ECHO_N "(cached) $ECHO_C" >&6
49879 else
49880   if test "$ac_cv_type_wchar_t" = yes; then
49881   # The cast to unsigned long works around a bug in the HP C Compiler
49882   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49883   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49884   # This bug is HP SR number 8606223364.
49885   if test "$cross_compiling" = yes; then
49886   # Depending upon the size, compute the lo and hi bounds.
49887 cat >conftest.$ac_ext <<_ACEOF
49888 /* confdefs.h.  */
49889 _ACEOF
49890 cat confdefs.h >>conftest.$ac_ext
49891 cat >>conftest.$ac_ext <<_ACEOF
49892 /* end confdefs.h.  */
49893 $ac_includes_default
49894 int
49895 main ()
49896 {
49897 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
49898 test_array [0] = 0
49899
49900   ;
49901   return 0;
49902 }
49903 _ACEOF
49904 rm -f conftest.$ac_objext
49905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49906   (eval $ac_compile) 2>conftest.er1
49907   ac_status=$?
49908   grep -v '^ *+' conftest.er1 >conftest.err
49909   rm -f conftest.er1
49910   cat conftest.err >&5
49911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49912   (exit $ac_status); } &&
49913          { ac_try='test -z "$ac_c_werror_flag"
49914                          || test ! -s conftest.err'
49915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49916   (eval $ac_try) 2>&5
49917   ac_status=$?
49918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49919   (exit $ac_status); }; } &&
49920          { ac_try='test -s conftest.$ac_objext'
49921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49922   (eval $ac_try) 2>&5
49923   ac_status=$?
49924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49925   (exit $ac_status); }; }; then
49926   ac_lo=0 ac_mid=0
49927   while :; do
49928     cat >conftest.$ac_ext <<_ACEOF
49929 /* confdefs.h.  */
49930 _ACEOF
49931 cat confdefs.h >>conftest.$ac_ext
49932 cat >>conftest.$ac_ext <<_ACEOF
49933 /* end confdefs.h.  */
49934 $ac_includes_default
49935 int
49936 main ()
49937 {
49938 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
49939 test_array [0] = 0
49940
49941   ;
49942   return 0;
49943 }
49944 _ACEOF
49945 rm -f conftest.$ac_objext
49946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49947   (eval $ac_compile) 2>conftest.er1
49948   ac_status=$?
49949   grep -v '^ *+' conftest.er1 >conftest.err
49950   rm -f conftest.er1
49951   cat conftest.err >&5
49952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49953   (exit $ac_status); } &&
49954          { ac_try='test -z "$ac_c_werror_flag"
49955                          || test ! -s conftest.err'
49956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49957   (eval $ac_try) 2>&5
49958   ac_status=$?
49959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49960   (exit $ac_status); }; } &&
49961          { ac_try='test -s conftest.$ac_objext'
49962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49963   (eval $ac_try) 2>&5
49964   ac_status=$?
49965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49966   (exit $ac_status); }; }; then
49967   ac_hi=$ac_mid; break
49968 else
49969   echo "$as_me: failed program was:" >&5
49970 sed 's/^/| /' conftest.$ac_ext >&5
49971
49972 ac_lo=`expr $ac_mid + 1`
49973                     if test $ac_lo -le $ac_mid; then
49974                       ac_lo= ac_hi=
49975                       break
49976                     fi
49977                     ac_mid=`expr 2 '*' $ac_mid + 1`
49978 fi
49979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49980   done
49981 else
49982   echo "$as_me: failed program was:" >&5
49983 sed 's/^/| /' conftest.$ac_ext >&5
49984
49985 cat >conftest.$ac_ext <<_ACEOF
49986 /* confdefs.h.  */
49987 _ACEOF
49988 cat confdefs.h >>conftest.$ac_ext
49989 cat >>conftest.$ac_ext <<_ACEOF
49990 /* end confdefs.h.  */
49991 $ac_includes_default
49992 int
49993 main ()
49994 {
49995 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
49996 test_array [0] = 0
49997
49998   ;
49999   return 0;
50000 }
50001 _ACEOF
50002 rm -f conftest.$ac_objext
50003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50004   (eval $ac_compile) 2>conftest.er1
50005   ac_status=$?
50006   grep -v '^ *+' conftest.er1 >conftest.err
50007   rm -f conftest.er1
50008   cat conftest.err >&5
50009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50010   (exit $ac_status); } &&
50011          { ac_try='test -z "$ac_c_werror_flag"
50012                          || test ! -s conftest.err'
50013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50014   (eval $ac_try) 2>&5
50015   ac_status=$?
50016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50017   (exit $ac_status); }; } &&
50018          { ac_try='test -s conftest.$ac_objext'
50019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50020   (eval $ac_try) 2>&5
50021   ac_status=$?
50022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50023   (exit $ac_status); }; }; then
50024   ac_hi=-1 ac_mid=-1
50025   while :; do
50026     cat >conftest.$ac_ext <<_ACEOF
50027 /* confdefs.h.  */
50028 _ACEOF
50029 cat confdefs.h >>conftest.$ac_ext
50030 cat >>conftest.$ac_ext <<_ACEOF
50031 /* end confdefs.h.  */
50032 $ac_includes_default
50033 int
50034 main ()
50035 {
50036 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
50037 test_array [0] = 0
50038
50039   ;
50040   return 0;
50041 }
50042 _ACEOF
50043 rm -f conftest.$ac_objext
50044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50045   (eval $ac_compile) 2>conftest.er1
50046   ac_status=$?
50047   grep -v '^ *+' conftest.er1 >conftest.err
50048   rm -f conftest.er1
50049   cat conftest.err >&5
50050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50051   (exit $ac_status); } &&
50052          { ac_try='test -z "$ac_c_werror_flag"
50053                          || test ! -s conftest.err'
50054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50055   (eval $ac_try) 2>&5
50056   ac_status=$?
50057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50058   (exit $ac_status); }; } &&
50059          { ac_try='test -s conftest.$ac_objext'
50060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50061   (eval $ac_try) 2>&5
50062   ac_status=$?
50063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50064   (exit $ac_status); }; }; then
50065   ac_lo=$ac_mid; break
50066 else
50067   echo "$as_me: failed program was:" >&5
50068 sed 's/^/| /' conftest.$ac_ext >&5
50069
50070 ac_hi=`expr '(' $ac_mid ')' - 1`
50071                        if test $ac_mid -le $ac_hi; then
50072                          ac_lo= ac_hi=
50073                          break
50074                        fi
50075                        ac_mid=`expr 2 '*' $ac_mid`
50076 fi
50077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50078   done
50079 else
50080   echo "$as_me: failed program was:" >&5
50081 sed 's/^/| /' conftest.$ac_ext >&5
50082
50083 ac_lo= ac_hi=
50084 fi
50085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50086 fi
50087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50088 # Binary search between lo and hi bounds.
50089 while test "x$ac_lo" != "x$ac_hi"; do
50090   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50091   cat >conftest.$ac_ext <<_ACEOF
50092 /* confdefs.h.  */
50093 _ACEOF
50094 cat confdefs.h >>conftest.$ac_ext
50095 cat >>conftest.$ac_ext <<_ACEOF
50096 /* end confdefs.h.  */
50097 $ac_includes_default
50098 int
50099 main ()
50100 {
50101 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50102 test_array [0] = 0
50103
50104   ;
50105   return 0;
50106 }
50107 _ACEOF
50108 rm -f conftest.$ac_objext
50109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50110   (eval $ac_compile) 2>conftest.er1
50111   ac_status=$?
50112   grep -v '^ *+' conftest.er1 >conftest.err
50113   rm -f conftest.er1
50114   cat conftest.err >&5
50115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50116   (exit $ac_status); } &&
50117          { ac_try='test -z "$ac_c_werror_flag"
50118                          || test ! -s conftest.err'
50119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50120   (eval $ac_try) 2>&5
50121   ac_status=$?
50122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50123   (exit $ac_status); }; } &&
50124          { ac_try='test -s conftest.$ac_objext'
50125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50126   (eval $ac_try) 2>&5
50127   ac_status=$?
50128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50129   (exit $ac_status); }; }; then
50130   ac_hi=$ac_mid
50131 else
50132   echo "$as_me: failed program was:" >&5
50133 sed 's/^/| /' conftest.$ac_ext >&5
50134
50135 ac_lo=`expr '(' $ac_mid ')' + 1`
50136 fi
50137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50138 done
50139 case $ac_lo in
50140 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
50141 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50142 See \`config.log' for more details." >&5
50143 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50144 See \`config.log' for more details." >&2;}
50145    { (exit 1); exit 1; }; } ;;
50146 esac
50147 else
50148   if test "$cross_compiling" = yes; then
50149   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50150 See \`config.log' for more details." >&5
50151 echo "$as_me: error: cannot run test program while cross compiling
50152 See \`config.log' for more details." >&2;}
50153    { (exit 1); exit 1; }; }
50154 else
50155   cat >conftest.$ac_ext <<_ACEOF
50156 /* confdefs.h.  */
50157 _ACEOF
50158 cat confdefs.h >>conftest.$ac_ext
50159 cat >>conftest.$ac_ext <<_ACEOF
50160 /* end confdefs.h.  */
50161 $ac_includes_default
50162 long longval () { return (long) (sizeof (wchar_t)); }
50163 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
50164 #include <stdio.h>
50165 #include <stdlib.h>
50166 int
50167 main ()
50168 {
50169
50170   FILE *f = fopen ("conftest.val", "w");
50171   if (! f)
50172     exit (1);
50173   if (((long) (sizeof (wchar_t))) < 0)
50174     {
50175       long i = longval ();
50176       if (i != ((long) (sizeof (wchar_t))))
50177         exit (1);
50178       fprintf (f, "%ld\n", i);
50179     }
50180   else
50181     {
50182       unsigned long i = ulongval ();
50183       if (i != ((long) (sizeof (wchar_t))))
50184         exit (1);
50185       fprintf (f, "%lu\n", i);
50186     }
50187   exit (ferror (f) || fclose (f) != 0);
50188
50189   ;
50190   return 0;
50191 }
50192 _ACEOF
50193 rm -f conftest$ac_exeext
50194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50195   (eval $ac_link) 2>&5
50196   ac_status=$?
50197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50200   (eval $ac_try) 2>&5
50201   ac_status=$?
50202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50203   (exit $ac_status); }; }; then
50204   ac_cv_sizeof_wchar_t=`cat conftest.val`
50205 else
50206   echo "$as_me: program exited with status $ac_status" >&5
50207 echo "$as_me: failed program was:" >&5
50208 sed 's/^/| /' conftest.$ac_ext >&5
50209
50210 ( exit $ac_status )
50211 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50212 See \`config.log' for more details." >&5
50213 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50214 See \`config.log' for more details." >&2;}
50215    { (exit 1); exit 1; }; }
50216 fi
50217 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50218 fi
50219 fi
50220 rm -f conftest.val
50221 else
50222   ac_cv_sizeof_wchar_t=0
50223 fi
50224 fi
50225 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
50226 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
50227 cat >>confdefs.h <<_ACEOF
50228 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
50229 _ACEOF
50230
50231
50232
50233 if test "$ac_cv_sizeof_int" -lt 4 ; then
50234         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
50235 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
50236
50237
50238 cat >>confdefs.h <<\_ACEOF
50239 #define LBER_INT_T long
50240 _ACEOF
50241
50242 else
50243
50244 cat >>confdefs.h <<\_ACEOF
50245 #define LBER_INT_T int
50246 _ACEOF
50247
50248 fi
50249
50250
50251 cat >>confdefs.h <<\_ACEOF
50252 #define LBER_LEN_T long
50253 _ACEOF
50254
50255
50256 cat >>confdefs.h <<\_ACEOF
50257 #define LBER_SOCKET_T int
50258 _ACEOF
50259
50260
50261 cat >>confdefs.h <<\_ACEOF
50262 #define LBER_TAG_T long
50263 _ACEOF
50264
50265
50266 echo "$as_me:$LINENO: checking for working memcmp" >&5
50267 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
50268 if test "${ac_cv_func_memcmp_working+set}" = set; then
50269   echo $ECHO_N "(cached) $ECHO_C" >&6
50270 else
50271   if test "$cross_compiling" = yes; then
50272   ac_cv_func_memcmp_working=no
50273 else
50274   cat >conftest.$ac_ext <<_ACEOF
50275 /* confdefs.h.  */
50276 _ACEOF
50277 cat confdefs.h >>conftest.$ac_ext
50278 cat >>conftest.$ac_ext <<_ACEOF
50279 /* end confdefs.h.  */
50280 $ac_includes_default
50281 int
50282 main ()
50283 {
50284
50285   /* Some versions of memcmp are not 8-bit clean.  */
50286   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
50287   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
50288     exit (1);
50289
50290   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
50291      or more and with at least one buffer not starting on a 4-byte boundary.
50292      William Lewis provided this test program.   */
50293   {
50294     char foo[21];
50295     char bar[21];
50296     int i;
50297     for (i = 0; i < 4; i++)
50298       {
50299         char *a = foo + i;
50300         char *b = bar + i;
50301         strcpy (a, "--------01111111");
50302         strcpy (b, "--------10000000");
50303         if (memcmp (a, b, 16) >= 0)
50304           exit (1);
50305       }
50306     exit (0);
50307   }
50308
50309   ;
50310   return 0;
50311 }
50312 _ACEOF
50313 rm -f conftest$ac_exeext
50314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50315   (eval $ac_link) 2>&5
50316   ac_status=$?
50317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50320   (eval $ac_try) 2>&5
50321   ac_status=$?
50322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50323   (exit $ac_status); }; }; then
50324   ac_cv_func_memcmp_working=yes
50325 else
50326   echo "$as_me: program exited with status $ac_status" >&5
50327 echo "$as_me: failed program was:" >&5
50328 sed 's/^/| /' conftest.$ac_ext >&5
50329
50330 ( exit $ac_status )
50331 ac_cv_func_memcmp_working=no
50332 fi
50333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50334 fi
50335 fi
50336 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
50337 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
50338 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
50339     "memcmp.$ac_objext"   | \
50340   *" memcmp.$ac_objext"   | \
50341     "memcmp.$ac_objext "* | \
50342   *" memcmp.$ac_objext "* ) ;;
50343   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
50344 esac
50345
50346
50347
50348 if test $ac_cv_func_memcmp_working = no ; then
50349
50350 cat >>confdefs.h <<\_ACEOF
50351 #define NEED_MEMCMP_REPLACEMENT 1
50352 _ACEOF
50353
50354 fi
50355
50356
50357 for ac_func in strftime
50358 do
50359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50360 echo "$as_me:$LINENO: checking for $ac_func" >&5
50361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50362 if eval "test \"\${$as_ac_var+set}\" = set"; then
50363   echo $ECHO_N "(cached) $ECHO_C" >&6
50364 else
50365   cat >conftest.$ac_ext <<_ACEOF
50366 /* confdefs.h.  */
50367 _ACEOF
50368 cat confdefs.h >>conftest.$ac_ext
50369 cat >>conftest.$ac_ext <<_ACEOF
50370 /* end confdefs.h.  */
50371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50373 #define $ac_func innocuous_$ac_func
50374
50375 /* System header to define __stub macros and hopefully few prototypes,
50376     which can conflict with char $ac_func (); below.
50377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50378     <limits.h> exists even on freestanding compilers.  */
50379
50380 #ifdef __STDC__
50381 # include <limits.h>
50382 #else
50383 # include <assert.h>
50384 #endif
50385
50386 #undef $ac_func
50387
50388 /* Override any gcc2 internal prototype to avoid an error.  */
50389 #ifdef __cplusplus
50390 extern "C"
50391 {
50392 #endif
50393 /* We use char because int might match the return type of a gcc2
50394    builtin and then its argument prototype would still apply.  */
50395 char $ac_func ();
50396 /* The GNU C library defines this for functions which it implements
50397     to always fail with ENOSYS.  Some functions are actually named
50398     something starting with __ and the normal name is an alias.  */
50399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50400 choke me
50401 #else
50402 char (*f) () = $ac_func;
50403 #endif
50404 #ifdef __cplusplus
50405 }
50406 #endif
50407
50408 int
50409 main ()
50410 {
50411 return f != $ac_func;
50412   ;
50413   return 0;
50414 }
50415 _ACEOF
50416 rm -f conftest.$ac_objext conftest$ac_exeext
50417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50418   (eval $ac_link) 2>conftest.er1
50419   ac_status=$?
50420   grep -v '^ *+' conftest.er1 >conftest.err
50421   rm -f conftest.er1
50422   cat conftest.err >&5
50423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50424   (exit $ac_status); } &&
50425          { ac_try='test -z "$ac_c_werror_flag"
50426                          || test ! -s conftest.err'
50427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50428   (eval $ac_try) 2>&5
50429   ac_status=$?
50430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50431   (exit $ac_status); }; } &&
50432          { ac_try='test -s conftest$ac_exeext'
50433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50434   (eval $ac_try) 2>&5
50435   ac_status=$?
50436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50437   (exit $ac_status); }; }; then
50438   eval "$as_ac_var=yes"
50439 else
50440   echo "$as_me: failed program was:" >&5
50441 sed 's/^/| /' conftest.$ac_ext >&5
50442
50443 eval "$as_ac_var=no"
50444 fi
50445 rm -f conftest.err conftest.$ac_objext \
50446       conftest$ac_exeext conftest.$ac_ext
50447 fi
50448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50450 if test `eval echo '${'$as_ac_var'}'` = yes; then
50451   cat >>confdefs.h <<_ACEOF
50452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50453 _ACEOF
50454
50455 else
50456   # strftime is in -lintl on SCO UNIX.
50457 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
50458 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
50459 if test "${ac_cv_lib_intl_strftime+set}" = set; then
50460   echo $ECHO_N "(cached) $ECHO_C" >&6
50461 else
50462   ac_check_lib_save_LIBS=$LIBS
50463 LIBS="-lintl  $LIBS"
50464 cat >conftest.$ac_ext <<_ACEOF
50465 /* confdefs.h.  */
50466 _ACEOF
50467 cat confdefs.h >>conftest.$ac_ext
50468 cat >>conftest.$ac_ext <<_ACEOF
50469 /* end confdefs.h.  */
50470
50471 /* Override any gcc2 internal prototype to avoid an error.  */
50472 #ifdef __cplusplus
50473 extern "C"
50474 #endif
50475 /* We use char because int might match the return type of a gcc2
50476    builtin and then its argument prototype would still apply.  */
50477 char strftime ();
50478 int
50479 main ()
50480 {
50481 strftime ();
50482   ;
50483   return 0;
50484 }
50485 _ACEOF
50486 rm -f conftest.$ac_objext conftest$ac_exeext
50487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50488   (eval $ac_link) 2>conftest.er1
50489   ac_status=$?
50490   grep -v '^ *+' conftest.er1 >conftest.err
50491   rm -f conftest.er1
50492   cat conftest.err >&5
50493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50494   (exit $ac_status); } &&
50495          { ac_try='test -z "$ac_c_werror_flag"
50496                          || test ! -s conftest.err'
50497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50498   (eval $ac_try) 2>&5
50499   ac_status=$?
50500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50501   (exit $ac_status); }; } &&
50502          { ac_try='test -s conftest$ac_exeext'
50503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50504   (eval $ac_try) 2>&5
50505   ac_status=$?
50506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50507   (exit $ac_status); }; }; then
50508   ac_cv_lib_intl_strftime=yes
50509 else
50510   echo "$as_me: failed program was:" >&5
50511 sed 's/^/| /' conftest.$ac_ext >&5
50512
50513 ac_cv_lib_intl_strftime=no
50514 fi
50515 rm -f conftest.err conftest.$ac_objext \
50516       conftest$ac_exeext conftest.$ac_ext
50517 LIBS=$ac_check_lib_save_LIBS
50518 fi
50519 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
50520 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
50521 if test $ac_cv_lib_intl_strftime = yes; then
50522   cat >>confdefs.h <<\_ACEOF
50523 #define HAVE_STRFTIME 1
50524 _ACEOF
50525
50526 LIBS="-lintl $LIBS"
50527 fi
50528
50529 fi
50530 done
50531
50532
50533 echo "$as_me:$LINENO: checking for inet_aton()" >&5
50534 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
50535 if test "${ol_cv_func_inet_aton+set}" = set; then
50536   echo $ECHO_N "(cached) $ECHO_C" >&6
50537 else
50538   cat >conftest.$ac_ext <<_ACEOF
50539 /* confdefs.h.  */
50540 _ACEOF
50541 cat confdefs.h >>conftest.$ac_ext
50542 cat >>conftest.$ac_ext <<_ACEOF
50543 /* end confdefs.h.  */
50544
50545 #ifdef HAVE_SYS_TYPES_H
50546 #       include <sys/types.h>
50547 #endif
50548 #ifdef HAVE_SYS_SOCKET_H
50549 #       include <sys/socket.h>
50550 #       ifdef HAVE_SYS_SELECT_H
50551 #               include <sys/select.h>
50552 #       endif
50553 #       include <netinet/in.h>
50554 #       ifdef HAVE_ARPA_INET_H
50555 #               include <arpa/inet.h>
50556 #       endif
50557 #endif
50558
50559 int
50560 main ()
50561 {
50562 struct in_addr in;
50563 int rc = inet_aton( "255.255.255.255", &in );
50564   ;
50565   return 0;
50566 }
50567 _ACEOF
50568 rm -f conftest.$ac_objext conftest$ac_exeext
50569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50570   (eval $ac_link) 2>conftest.er1
50571   ac_status=$?
50572   grep -v '^ *+' conftest.er1 >conftest.err
50573   rm -f conftest.er1
50574   cat conftest.err >&5
50575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50576   (exit $ac_status); } &&
50577          { ac_try='test -z "$ac_c_werror_flag"
50578                          || test ! -s conftest.err'
50579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50580   (eval $ac_try) 2>&5
50581   ac_status=$?
50582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50583   (exit $ac_status); }; } &&
50584          { ac_try='test -s conftest$ac_exeext'
50585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50586   (eval $ac_try) 2>&5
50587   ac_status=$?
50588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50589   (exit $ac_status); }; }; then
50590   ol_cv_func_inet_aton=yes
50591 else
50592   echo "$as_me: failed program was:" >&5
50593 sed 's/^/| /' conftest.$ac_ext >&5
50594
50595 ol_cv_func_inet_aton=no
50596 fi
50597 rm -f conftest.err conftest.$ac_objext \
50598       conftest$ac_exeext conftest.$ac_ext
50599 fi
50600 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
50601 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
50602   if test $ol_cv_func_inet_aton != no; then
50603
50604 cat >>confdefs.h <<\_ACEOF
50605 #define HAVE_INET_ATON 1
50606 _ACEOF
50607
50608   fi
50609
50610
50611 echo "$as_me:$LINENO: checking for _spawnlp" >&5
50612 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
50613 if test "${ac_cv_func__spawnlp+set}" = set; then
50614   echo $ECHO_N "(cached) $ECHO_C" >&6
50615 else
50616   cat >conftest.$ac_ext <<_ACEOF
50617 /* confdefs.h.  */
50618 _ACEOF
50619 cat confdefs.h >>conftest.$ac_ext
50620 cat >>conftest.$ac_ext <<_ACEOF
50621 /* end confdefs.h.  */
50622 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
50623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50624 #define _spawnlp innocuous__spawnlp
50625
50626 /* System header to define __stub macros and hopefully few prototypes,
50627     which can conflict with char _spawnlp (); below.
50628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50629     <limits.h> exists even on freestanding compilers.  */
50630
50631 #ifdef __STDC__
50632 # include <limits.h>
50633 #else
50634 # include <assert.h>
50635 #endif
50636
50637 #undef _spawnlp
50638
50639 /* Override any gcc2 internal prototype to avoid an error.  */
50640 #ifdef __cplusplus
50641 extern "C"
50642 {
50643 #endif
50644 /* We use char because int might match the return type of a gcc2
50645    builtin and then its argument prototype would still apply.  */
50646 char _spawnlp ();
50647 /* The GNU C library defines this for functions which it implements
50648     to always fail with ENOSYS.  Some functions are actually named
50649     something starting with __ and the normal name is an alias.  */
50650 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
50651 choke me
50652 #else
50653 char (*f) () = _spawnlp;
50654 #endif
50655 #ifdef __cplusplus
50656 }
50657 #endif
50658
50659 int
50660 main ()
50661 {
50662 return f != _spawnlp;
50663   ;
50664   return 0;
50665 }
50666 _ACEOF
50667 rm -f conftest.$ac_objext conftest$ac_exeext
50668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50669   (eval $ac_link) 2>conftest.er1
50670   ac_status=$?
50671   grep -v '^ *+' conftest.er1 >conftest.err
50672   rm -f conftest.er1
50673   cat conftest.err >&5
50674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50675   (exit $ac_status); } &&
50676          { ac_try='test -z "$ac_c_werror_flag"
50677                          || test ! -s conftest.err'
50678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50679   (eval $ac_try) 2>&5
50680   ac_status=$?
50681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50682   (exit $ac_status); }; } &&
50683          { ac_try='test -s conftest$ac_exeext'
50684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50685   (eval $ac_try) 2>&5
50686   ac_status=$?
50687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50688   (exit $ac_status); }; }; then
50689   ac_cv_func__spawnlp=yes
50690 else
50691   echo "$as_me: failed program was:" >&5
50692 sed 's/^/| /' conftest.$ac_ext >&5
50693
50694 ac_cv_func__spawnlp=no
50695 fi
50696 rm -f conftest.err conftest.$ac_objext \
50697       conftest$ac_exeext conftest.$ac_ext
50698 fi
50699 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
50700 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
50701 if test $ac_cv_func__spawnlp = yes; then
50702
50703 cat >>confdefs.h <<\_ACEOF
50704 #define HAVE_SPAWNLP 1
50705 _ACEOF
50706
50707 fi
50708
50709
50710 echo "$as_me:$LINENO: checking for _snprintf" >&5
50711 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
50712 if test "${ac_cv_func__snprintf+set}" = set; then
50713   echo $ECHO_N "(cached) $ECHO_C" >&6
50714 else
50715   cat >conftest.$ac_ext <<_ACEOF
50716 /* confdefs.h.  */
50717 _ACEOF
50718 cat confdefs.h >>conftest.$ac_ext
50719 cat >>conftest.$ac_ext <<_ACEOF
50720 /* end confdefs.h.  */
50721 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
50722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50723 #define _snprintf innocuous__snprintf
50724
50725 /* System header to define __stub macros and hopefully few prototypes,
50726     which can conflict with char _snprintf (); below.
50727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50728     <limits.h> exists even on freestanding compilers.  */
50729
50730 #ifdef __STDC__
50731 # include <limits.h>
50732 #else
50733 # include <assert.h>
50734 #endif
50735
50736 #undef _snprintf
50737
50738 /* Override any gcc2 internal prototype to avoid an error.  */
50739 #ifdef __cplusplus
50740 extern "C"
50741 {
50742 #endif
50743 /* We use char because int might match the return type of a gcc2
50744    builtin and then its argument prototype would still apply.  */
50745 char _snprintf ();
50746 /* The GNU C library defines this for functions which it implements
50747     to always fail with ENOSYS.  Some functions are actually named
50748     something starting with __ and the normal name is an alias.  */
50749 #if defined (__stub__snprintf) || defined (__stub____snprintf)
50750 choke me
50751 #else
50752 char (*f) () = _snprintf;
50753 #endif
50754 #ifdef __cplusplus
50755 }
50756 #endif
50757
50758 int
50759 main ()
50760 {
50761 return f != _snprintf;
50762   ;
50763   return 0;
50764 }
50765 _ACEOF
50766 rm -f conftest.$ac_objext conftest$ac_exeext
50767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50768   (eval $ac_link) 2>conftest.er1
50769   ac_status=$?
50770   grep -v '^ *+' conftest.er1 >conftest.err
50771   rm -f conftest.er1
50772   cat conftest.err >&5
50773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50774   (exit $ac_status); } &&
50775          { ac_try='test -z "$ac_c_werror_flag"
50776                          || test ! -s conftest.err'
50777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50778   (eval $ac_try) 2>&5
50779   ac_status=$?
50780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50781   (exit $ac_status); }; } &&
50782          { ac_try='test -s conftest$ac_exeext'
50783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50784   (eval $ac_try) 2>&5
50785   ac_status=$?
50786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50787   (exit $ac_status); }; }; then
50788   ac_cv_func__snprintf=yes
50789 else
50790   echo "$as_me: failed program was:" >&5
50791 sed 's/^/| /' conftest.$ac_ext >&5
50792
50793 ac_cv_func__snprintf=no
50794 fi
50795 rm -f conftest.err conftest.$ac_objext \
50796       conftest$ac_exeext conftest.$ac_ext
50797 fi
50798 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
50799 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
50800 if test $ac_cv_func__snprintf = yes; then
50801   ac_cv_func_snprintf=yes
50802
50803 cat >>confdefs.h <<\_ACEOF
50804 #define snprintf _snprintf
50805 _ACEOF
50806
50807
50808 fi
50809
50810
50811 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
50812 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
50813 if test "${ac_cv_func__vsnprintf+set}" = set; then
50814   echo $ECHO_N "(cached) $ECHO_C" >&6
50815 else
50816   cat >conftest.$ac_ext <<_ACEOF
50817 /* confdefs.h.  */
50818 _ACEOF
50819 cat confdefs.h >>conftest.$ac_ext
50820 cat >>conftest.$ac_ext <<_ACEOF
50821 /* end confdefs.h.  */
50822 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
50823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50824 #define _vsnprintf innocuous__vsnprintf
50825
50826 /* System header to define __stub macros and hopefully few prototypes,
50827     which can conflict with char _vsnprintf (); below.
50828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50829     <limits.h> exists even on freestanding compilers.  */
50830
50831 #ifdef __STDC__
50832 # include <limits.h>
50833 #else
50834 # include <assert.h>
50835 #endif
50836
50837 #undef _vsnprintf
50838
50839 /* Override any gcc2 internal prototype to avoid an error.  */
50840 #ifdef __cplusplus
50841 extern "C"
50842 {
50843 #endif
50844 /* We use char because int might match the return type of a gcc2
50845    builtin and then its argument prototype would still apply.  */
50846 char _vsnprintf ();
50847 /* The GNU C library defines this for functions which it implements
50848     to always fail with ENOSYS.  Some functions are actually named
50849     something starting with __ and the normal name is an alias.  */
50850 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
50851 choke me
50852 #else
50853 char (*f) () = _vsnprintf;
50854 #endif
50855 #ifdef __cplusplus
50856 }
50857 #endif
50858
50859 int
50860 main ()
50861 {
50862 return f != _vsnprintf;
50863   ;
50864   return 0;
50865 }
50866 _ACEOF
50867 rm -f conftest.$ac_objext conftest$ac_exeext
50868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50869   (eval $ac_link) 2>conftest.er1
50870   ac_status=$?
50871   grep -v '^ *+' conftest.er1 >conftest.err
50872   rm -f conftest.er1
50873   cat conftest.err >&5
50874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50875   (exit $ac_status); } &&
50876          { ac_try='test -z "$ac_c_werror_flag"
50877                          || test ! -s conftest.err'
50878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50879   (eval $ac_try) 2>&5
50880   ac_status=$?
50881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50882   (exit $ac_status); }; } &&
50883          { ac_try='test -s conftest$ac_exeext'
50884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50885   (eval $ac_try) 2>&5
50886   ac_status=$?
50887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50888   (exit $ac_status); }; }; then
50889   ac_cv_func__vsnprintf=yes
50890 else
50891   echo "$as_me: failed program was:" >&5
50892 sed 's/^/| /' conftest.$ac_ext >&5
50893
50894 ac_cv_func__vsnprintf=no
50895 fi
50896 rm -f conftest.err conftest.$ac_objext \
50897       conftest$ac_exeext conftest.$ac_ext
50898 fi
50899 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
50900 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
50901 if test $ac_cv_func__vsnprintf = yes; then
50902   ac_cv_func_vsnprintf=yes
50903
50904 cat >>confdefs.h <<\_ACEOF
50905 #define vsnprintf _vsnprintf
50906 _ACEOF
50907
50908
50909 fi
50910
50911
50912
50913 for ac_func in vprintf
50914 do
50915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50916 echo "$as_me:$LINENO: checking for $ac_func" >&5
50917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50918 if eval "test \"\${$as_ac_var+set}\" = set"; then
50919   echo $ECHO_N "(cached) $ECHO_C" >&6
50920 else
50921   cat >conftest.$ac_ext <<_ACEOF
50922 /* confdefs.h.  */
50923 _ACEOF
50924 cat confdefs.h >>conftest.$ac_ext
50925 cat >>conftest.$ac_ext <<_ACEOF
50926 /* end confdefs.h.  */
50927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50929 #define $ac_func innocuous_$ac_func
50930
50931 /* System header to define __stub macros and hopefully few prototypes,
50932     which can conflict with char $ac_func (); below.
50933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50934     <limits.h> exists even on freestanding compilers.  */
50935
50936 #ifdef __STDC__
50937 # include <limits.h>
50938 #else
50939 # include <assert.h>
50940 #endif
50941
50942 #undef $ac_func
50943
50944 /* Override any gcc2 internal prototype to avoid an error.  */
50945 #ifdef __cplusplus
50946 extern "C"
50947 {
50948 #endif
50949 /* We use char because int might match the return type of a gcc2
50950    builtin and then its argument prototype would still apply.  */
50951 char $ac_func ();
50952 /* The GNU C library defines this for functions which it implements
50953     to always fail with ENOSYS.  Some functions are actually named
50954     something starting with __ and the normal name is an alias.  */
50955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50956 choke me
50957 #else
50958 char (*f) () = $ac_func;
50959 #endif
50960 #ifdef __cplusplus
50961 }
50962 #endif
50963
50964 int
50965 main ()
50966 {
50967 return f != $ac_func;
50968   ;
50969   return 0;
50970 }
50971 _ACEOF
50972 rm -f conftest.$ac_objext conftest$ac_exeext
50973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50974   (eval $ac_link) 2>conftest.er1
50975   ac_status=$?
50976   grep -v '^ *+' conftest.er1 >conftest.err
50977   rm -f conftest.er1
50978   cat conftest.err >&5
50979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50980   (exit $ac_status); } &&
50981          { ac_try='test -z "$ac_c_werror_flag"
50982                          || test ! -s conftest.err'
50983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50984   (eval $ac_try) 2>&5
50985   ac_status=$?
50986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50987   (exit $ac_status); }; } &&
50988          { ac_try='test -s conftest$ac_exeext'
50989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50990   (eval $ac_try) 2>&5
50991   ac_status=$?
50992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50993   (exit $ac_status); }; }; then
50994   eval "$as_ac_var=yes"
50995 else
50996   echo "$as_me: failed program was:" >&5
50997 sed 's/^/| /' conftest.$ac_ext >&5
50998
50999 eval "$as_ac_var=no"
51000 fi
51001 rm -f conftest.err conftest.$ac_objext \
51002       conftest$ac_exeext conftest.$ac_ext
51003 fi
51004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51006 if test `eval echo '${'$as_ac_var'}'` = yes; then
51007   cat >>confdefs.h <<_ACEOF
51008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51009 _ACEOF
51010
51011 echo "$as_me:$LINENO: checking for _doprnt" >&5
51012 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
51013 if test "${ac_cv_func__doprnt+set}" = set; then
51014   echo $ECHO_N "(cached) $ECHO_C" >&6
51015 else
51016   cat >conftest.$ac_ext <<_ACEOF
51017 /* confdefs.h.  */
51018 _ACEOF
51019 cat confdefs.h >>conftest.$ac_ext
51020 cat >>conftest.$ac_ext <<_ACEOF
51021 /* end confdefs.h.  */
51022 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
51023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51024 #define _doprnt innocuous__doprnt
51025
51026 /* System header to define __stub macros and hopefully few prototypes,
51027     which can conflict with char _doprnt (); below.
51028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51029     <limits.h> exists even on freestanding compilers.  */
51030
51031 #ifdef __STDC__
51032 # include <limits.h>
51033 #else
51034 # include <assert.h>
51035 #endif
51036
51037 #undef _doprnt
51038
51039 /* Override any gcc2 internal prototype to avoid an error.  */
51040 #ifdef __cplusplus
51041 extern "C"
51042 {
51043 #endif
51044 /* We use char because int might match the return type of a gcc2
51045    builtin and then its argument prototype would still apply.  */
51046 char _doprnt ();
51047 /* The GNU C library defines this for functions which it implements
51048     to always fail with ENOSYS.  Some functions are actually named
51049     something starting with __ and the normal name is an alias.  */
51050 #if defined (__stub__doprnt) || defined (__stub____doprnt)
51051 choke me
51052 #else
51053 char (*f) () = _doprnt;
51054 #endif
51055 #ifdef __cplusplus
51056 }
51057 #endif
51058
51059 int
51060 main ()
51061 {
51062 return f != _doprnt;
51063   ;
51064   return 0;
51065 }
51066 _ACEOF
51067 rm -f conftest.$ac_objext conftest$ac_exeext
51068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51069   (eval $ac_link) 2>conftest.er1
51070   ac_status=$?
51071   grep -v '^ *+' conftest.er1 >conftest.err
51072   rm -f conftest.er1
51073   cat conftest.err >&5
51074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51075   (exit $ac_status); } &&
51076          { ac_try='test -z "$ac_c_werror_flag"
51077                          || test ! -s conftest.err'
51078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51079   (eval $ac_try) 2>&5
51080   ac_status=$?
51081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51082   (exit $ac_status); }; } &&
51083          { ac_try='test -s conftest$ac_exeext'
51084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51085   (eval $ac_try) 2>&5
51086   ac_status=$?
51087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51088   (exit $ac_status); }; }; then
51089   ac_cv_func__doprnt=yes
51090 else
51091   echo "$as_me: failed program was:" >&5
51092 sed 's/^/| /' conftest.$ac_ext >&5
51093
51094 ac_cv_func__doprnt=no
51095 fi
51096 rm -f conftest.err conftest.$ac_objext \
51097       conftest$ac_exeext conftest.$ac_ext
51098 fi
51099 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
51100 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
51101 if test $ac_cv_func__doprnt = yes; then
51102
51103 cat >>confdefs.h <<\_ACEOF
51104 #define HAVE_DOPRNT 1
51105 _ACEOF
51106
51107 fi
51108
51109 fi
51110 done
51111
51112
51113
51114 if test $ac_cv_func_vprintf = yes ; then
51115
51116
51117 for ac_func in snprintf vsnprintf
51118 do
51119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51120 echo "$as_me:$LINENO: checking for $ac_func" >&5
51121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51122 if eval "test \"\${$as_ac_var+set}\" = set"; then
51123   echo $ECHO_N "(cached) $ECHO_C" >&6
51124 else
51125   cat >conftest.$ac_ext <<_ACEOF
51126 /* confdefs.h.  */
51127 _ACEOF
51128 cat confdefs.h >>conftest.$ac_ext
51129 cat >>conftest.$ac_ext <<_ACEOF
51130 /* end confdefs.h.  */
51131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51133 #define $ac_func innocuous_$ac_func
51134
51135 /* System header to define __stub macros and hopefully few prototypes,
51136     which can conflict with char $ac_func (); below.
51137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51138     <limits.h> exists even on freestanding compilers.  */
51139
51140 #ifdef __STDC__
51141 # include <limits.h>
51142 #else
51143 # include <assert.h>
51144 #endif
51145
51146 #undef $ac_func
51147
51148 /* Override any gcc2 internal prototype to avoid an error.  */
51149 #ifdef __cplusplus
51150 extern "C"
51151 {
51152 #endif
51153 /* We use char because int might match the return type of a gcc2
51154    builtin and then its argument prototype would still apply.  */
51155 char $ac_func ();
51156 /* The GNU C library defines this for functions which it implements
51157     to always fail with ENOSYS.  Some functions are actually named
51158     something starting with __ and the normal name is an alias.  */
51159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51160 choke me
51161 #else
51162 char (*f) () = $ac_func;
51163 #endif
51164 #ifdef __cplusplus
51165 }
51166 #endif
51167
51168 int
51169 main ()
51170 {
51171 return f != $ac_func;
51172   ;
51173   return 0;
51174 }
51175 _ACEOF
51176 rm -f conftest.$ac_objext conftest$ac_exeext
51177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51178   (eval $ac_link) 2>conftest.er1
51179   ac_status=$?
51180   grep -v '^ *+' conftest.er1 >conftest.err
51181   rm -f conftest.er1
51182   cat conftest.err >&5
51183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51184   (exit $ac_status); } &&
51185          { ac_try='test -z "$ac_c_werror_flag"
51186                          || test ! -s conftest.err'
51187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51188   (eval $ac_try) 2>&5
51189   ac_status=$?
51190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51191   (exit $ac_status); }; } &&
51192          { ac_try='test -s conftest$ac_exeext'
51193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51194   (eval $ac_try) 2>&5
51195   ac_status=$?
51196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51197   (exit $ac_status); }; }; then
51198   eval "$as_ac_var=yes"
51199 else
51200   echo "$as_me: failed program was:" >&5
51201 sed 's/^/| /' conftest.$ac_ext >&5
51202
51203 eval "$as_ac_var=no"
51204 fi
51205 rm -f conftest.err conftest.$ac_objext \
51206       conftest$ac_exeext conftest.$ac_ext
51207 fi
51208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51210 if test `eval echo '${'$as_ac_var'}'` = yes; then
51211   cat >>confdefs.h <<_ACEOF
51212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51213 _ACEOF
51214
51215 fi
51216 done
51217
51218 fi
51219
51220
51221
51222
51223
51224
51225
51226
51227
51228
51229
51230
51231
51232
51233
51234
51235
51236
51237
51238
51239
51240
51241
51242
51243
51244
51245
51246
51247
51248
51249
51250
51251
51252
51253
51254
51255
51256
51257
51258
51259
51260
51261
51262
51263
51264
51265
51266
51267
51268
51269
51270
51271
51272
51273 for ac_func in \
51274         bcopy                   \
51275         closesocket             \
51276         chroot                  \
51277         endgrent                \
51278         endpwent                \
51279         fcntl                   \
51280         flock                   \
51281         fstat                   \
51282         getdtablesize   \
51283         getgrgid                \
51284         gethostname             \
51285         getpass                 \
51286         getpassphrase   \
51287         getpwuid                \
51288         getpwnam                \
51289         getspnam                \
51290         gettimeofday    \
51291         initgroups              \
51292         lockf                   \
51293         memcpy                  \
51294         memmove                 \
51295         mkstemp                 \
51296         mktemp                  \
51297         pipe                    \
51298         read                    \
51299         recv                    \
51300         recvfrom                \
51301         setpwfile               \
51302         setgid                  \
51303         setegid                 \
51304         setsid                  \
51305         setuid                  \
51306         seteuid                 \
51307         signal                  \
51308         strdup                  \
51309         strpbrk                 \
51310         strrchr                 \
51311         strsep                  \
51312         strstr                  \
51313         strtol                  \
51314         strtoul                 \
51315         strtoq                  \
51316         strtouq                 \
51317         strtoll                 \
51318         strspn                  \
51319         sysconf                 \
51320         usleep                  \
51321         waitpid                 \
51322         wait4                   \
51323         write                   \
51324         send                    \
51325         sendmsg                 \
51326         sendto                  \
51327
51328 do
51329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51330 echo "$as_me:$LINENO: checking for $ac_func" >&5
51331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51332 if eval "test \"\${$as_ac_var+set}\" = set"; then
51333   echo $ECHO_N "(cached) $ECHO_C" >&6
51334 else
51335   cat >conftest.$ac_ext <<_ACEOF
51336 /* confdefs.h.  */
51337 _ACEOF
51338 cat confdefs.h >>conftest.$ac_ext
51339 cat >>conftest.$ac_ext <<_ACEOF
51340 /* end confdefs.h.  */
51341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51342    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51343 #define $ac_func innocuous_$ac_func
51344
51345 /* System header to define __stub macros and hopefully few prototypes,
51346     which can conflict with char $ac_func (); below.
51347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51348     <limits.h> exists even on freestanding compilers.  */
51349
51350 #ifdef __STDC__
51351 # include <limits.h>
51352 #else
51353 # include <assert.h>
51354 #endif
51355
51356 #undef $ac_func
51357
51358 /* Override any gcc2 internal prototype to avoid an error.  */
51359 #ifdef __cplusplus
51360 extern "C"
51361 {
51362 #endif
51363 /* We use char because int might match the return type of a gcc2
51364    builtin and then its argument prototype would still apply.  */
51365 char $ac_func ();
51366 /* The GNU C library defines this for functions which it implements
51367     to always fail with ENOSYS.  Some functions are actually named
51368     something starting with __ and the normal name is an alias.  */
51369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51370 choke me
51371 #else
51372 char (*f) () = $ac_func;
51373 #endif
51374 #ifdef __cplusplus
51375 }
51376 #endif
51377
51378 int
51379 main ()
51380 {
51381 return f != $ac_func;
51382   ;
51383   return 0;
51384 }
51385 _ACEOF
51386 rm -f conftest.$ac_objext conftest$ac_exeext
51387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51388   (eval $ac_link) 2>conftest.er1
51389   ac_status=$?
51390   grep -v '^ *+' conftest.er1 >conftest.err
51391   rm -f conftest.er1
51392   cat conftest.err >&5
51393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51394   (exit $ac_status); } &&
51395          { ac_try='test -z "$ac_c_werror_flag"
51396                          || test ! -s conftest.err'
51397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51398   (eval $ac_try) 2>&5
51399   ac_status=$?
51400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51401   (exit $ac_status); }; } &&
51402          { ac_try='test -s conftest$ac_exeext'
51403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51404   (eval $ac_try) 2>&5
51405   ac_status=$?
51406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51407   (exit $ac_status); }; }; then
51408   eval "$as_ac_var=yes"
51409 else
51410   echo "$as_me: failed program was:" >&5
51411 sed 's/^/| /' conftest.$ac_ext >&5
51412
51413 eval "$as_ac_var=no"
51414 fi
51415 rm -f conftest.err conftest.$ac_objext \
51416       conftest$ac_exeext conftest.$ac_ext
51417 fi
51418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51420 if test `eval echo '${'$as_ac_var'}'` = yes; then
51421   cat >>confdefs.h <<_ACEOF
51422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51423 _ACEOF
51424
51425 fi
51426 done
51427
51428
51429
51430
51431 for ac_func in getopt getpeereid
51432 do
51433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51434 echo "$as_me:$LINENO: checking for $ac_func" >&5
51435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51436 if eval "test \"\${$as_ac_var+set}\" = set"; then
51437   echo $ECHO_N "(cached) $ECHO_C" >&6
51438 else
51439   cat >conftest.$ac_ext <<_ACEOF
51440 /* confdefs.h.  */
51441 _ACEOF
51442 cat confdefs.h >>conftest.$ac_ext
51443 cat >>conftest.$ac_ext <<_ACEOF
51444 /* end confdefs.h.  */
51445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51447 #define $ac_func innocuous_$ac_func
51448
51449 /* System header to define __stub macros and hopefully few prototypes,
51450     which can conflict with char $ac_func (); below.
51451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51452     <limits.h> exists even on freestanding compilers.  */
51453
51454 #ifdef __STDC__
51455 # include <limits.h>
51456 #else
51457 # include <assert.h>
51458 #endif
51459
51460 #undef $ac_func
51461
51462 /* Override any gcc2 internal prototype to avoid an error.  */
51463 #ifdef __cplusplus
51464 extern "C"
51465 {
51466 #endif
51467 /* We use char because int might match the return type of a gcc2
51468    builtin and then its argument prototype would still apply.  */
51469 char $ac_func ();
51470 /* The GNU C library defines this for functions which it implements
51471     to always fail with ENOSYS.  Some functions are actually named
51472     something starting with __ and the normal name is an alias.  */
51473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51474 choke me
51475 #else
51476 char (*f) () = $ac_func;
51477 #endif
51478 #ifdef __cplusplus
51479 }
51480 #endif
51481
51482 int
51483 main ()
51484 {
51485 return f != $ac_func;
51486   ;
51487   return 0;
51488 }
51489 _ACEOF
51490 rm -f conftest.$ac_objext conftest$ac_exeext
51491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51492   (eval $ac_link) 2>conftest.er1
51493   ac_status=$?
51494   grep -v '^ *+' conftest.er1 >conftest.err
51495   rm -f conftest.er1
51496   cat conftest.err >&5
51497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51498   (exit $ac_status); } &&
51499          { ac_try='test -z "$ac_c_werror_flag"
51500                          || test ! -s conftest.err'
51501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51502   (eval $ac_try) 2>&5
51503   ac_status=$?
51504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51505   (exit $ac_status); }; } &&
51506          { ac_try='test -s conftest$ac_exeext'
51507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51508   (eval $ac_try) 2>&5
51509   ac_status=$?
51510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51511   (exit $ac_status); }; }; then
51512   eval "$as_ac_var=yes"
51513 else
51514   echo "$as_me: failed program was:" >&5
51515 sed 's/^/| /' conftest.$ac_ext >&5
51516
51517 eval "$as_ac_var=no"
51518 fi
51519 rm -f conftest.err conftest.$ac_objext \
51520       conftest$ac_exeext conftest.$ac_ext
51521 fi
51522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51524 if test `eval echo '${'$as_ac_var'}'` = yes; then
51525   cat >>confdefs.h <<_ACEOF
51526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51527 _ACEOF
51528
51529 else
51530   case $LIBOBJS in
51531     "$ac_func.$ac_objext"   | \
51532   *" $ac_func.$ac_objext"   | \
51533     "$ac_func.$ac_objext "* | \
51534   *" $ac_func.$ac_objext "* ) ;;
51535   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51536 esac
51537
51538 fi
51539 done
51540
51541
51542
51543 if test "$ac_cv_func_getopt" != yes; then
51544         LIBSRCS="$LIBSRCS getopt.c"
51545 fi
51546 if test "$ac_cv_func_getpeereid" != yes; then
51547         echo "$as_me:$LINENO: checking for msg_accrights in msghdr" >&5
51548 echo $ECHO_N "checking for msg_accrights in msghdr... $ECHO_C" >&6
51549 if test "${ol_cv_msghdr_msg_accrights+set}" = set; then
51550   echo $ECHO_N "(cached) $ECHO_C" >&6
51551 else
51552   cat >conftest.$ac_ext <<_ACEOF
51553 /* confdefs.h.  */
51554 _ACEOF
51555 cat confdefs.h >>conftest.$ac_ext
51556 cat >>conftest.$ac_ext <<_ACEOF
51557 /* end confdefs.h.  */
51558 #include <sys/socket.h>
51559 int
51560 main ()
51561 {
51562 struct msghdr m; m.msg_accrightslen=0
51563   ;
51564   return 0;
51565 }
51566 _ACEOF
51567 rm -f conftest.$ac_objext
51568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51569   (eval $ac_compile) 2>conftest.er1
51570   ac_status=$?
51571   grep -v '^ *+' conftest.er1 >conftest.err
51572   rm -f conftest.er1
51573   cat conftest.err >&5
51574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51575   (exit $ac_status); } &&
51576          { ac_try='test -z "$ac_c_werror_flag"
51577                          || test ! -s conftest.err'
51578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51579   (eval $ac_try) 2>&5
51580   ac_status=$?
51581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51582   (exit $ac_status); }; } &&
51583          { ac_try='test -s conftest.$ac_objext'
51584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51585   (eval $ac_try) 2>&5
51586   ac_status=$?
51587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51588   (exit $ac_status); }; }; then
51589   ol_cv_msghdr_msg_accrights=yes
51590 else
51591   echo "$as_me: failed program was:" >&5
51592 sed 's/^/| /' conftest.$ac_ext >&5
51593
51594 ol_cv_msghdr_msg_accrights=no
51595 fi
51596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51597 fi
51598 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_accrights" >&5
51599 echo "${ECHO_T}$ol_cv_msghdr_msg_accrights" >&6
51600   if test $ol_cv_msghdr_msg_accrights = "yes" ; then
51601
51602 cat >>confdefs.h <<\_ACEOF
51603 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
51604 _ACEOF
51605
51606   fi
51607
51608         if test "$ac_cv_func_getpeereid" != yes; then
51609                 echo "$as_me:$LINENO: checking for msg_control in msghdr" >&5
51610 echo $ECHO_N "checking for msg_control in msghdr... $ECHO_C" >&6
51611 if test "${ol_cv_msghdr_msg_control+set}" = set; then
51612   echo $ECHO_N "(cached) $ECHO_C" >&6
51613 else
51614   cat >conftest.$ac_ext <<_ACEOF
51615 /* confdefs.h.  */
51616 _ACEOF
51617 cat confdefs.h >>conftest.$ac_ext
51618 cat >>conftest.$ac_ext <<_ACEOF
51619 /* end confdefs.h.  */
51620 #include <sys/socket.h>
51621 int
51622 main ()
51623 {
51624 struct msghdr m; m.msg_control=(struct cmsghdr *)0
51625   ;
51626   return 0;
51627 }
51628 _ACEOF
51629 rm -f conftest.$ac_objext
51630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51631   (eval $ac_compile) 2>conftest.er1
51632   ac_status=$?
51633   grep -v '^ *+' conftest.er1 >conftest.err
51634   rm -f conftest.er1
51635   cat conftest.err >&5
51636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51637   (exit $ac_status); } &&
51638          { ac_try='test -z "$ac_c_werror_flag"
51639                          || test ! -s conftest.err'
51640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51641   (eval $ac_try) 2>&5
51642   ac_status=$?
51643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51644   (exit $ac_status); }; } &&
51645          { ac_try='test -s conftest.$ac_objext'
51646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51647   (eval $ac_try) 2>&5
51648   ac_status=$?
51649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51650   (exit $ac_status); }; }; then
51651   ol_cv_msghdr_msg_control=yes
51652 else
51653   echo "$as_me: failed program was:" >&5
51654 sed 's/^/| /' conftest.$ac_ext >&5
51655
51656 ol_cv_msghdr_msg_control=no
51657 fi
51658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51659 fi
51660 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_control" >&5
51661 echo "${ECHO_T}$ol_cv_msghdr_msg_control" >&6
51662   if test $ol_cv_msghdr_msg_control = "yes" ; then
51663
51664 cat >>confdefs.h <<\_ACEOF
51665 #define HAVE_MSGHDR_MSG_CONTROL 1
51666 _ACEOF
51667
51668   fi
51669
51670         fi
51671         LIBSRCS="$LIBSRCS getpeereid.c"
51672 fi
51673 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
51674         if test "$ac_cv_func_snprintf" != yes; then
51675
51676 cat >>confdefs.h <<\_ACEOF
51677 #define snprintf ber_pvt_snprintf
51678 _ACEOF
51679
51680         fi
51681         if test "$ac_cv_func_vsnprintf" != yes; then
51682
51683 cat >>confdefs.h <<\_ACEOF
51684 #define vsnprintf ber_pvt_vsnprintf
51685 _ACEOF
51686
51687         fi
51688 fi
51689
51690
51691 if test "$ol_enable_slapi" != no ; then
51692
51693 for ac_header in ltdl.h
51694 do
51695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51697   echo "$as_me:$LINENO: checking for $ac_header" >&5
51698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51700   echo $ECHO_N "(cached) $ECHO_C" >&6
51701 fi
51702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51704 else
51705   # Is the header compilable?
51706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51708 cat >conftest.$ac_ext <<_ACEOF
51709 /* confdefs.h.  */
51710 _ACEOF
51711 cat confdefs.h >>conftest.$ac_ext
51712 cat >>conftest.$ac_ext <<_ACEOF
51713 /* end confdefs.h.  */
51714 $ac_includes_default
51715 #include <$ac_header>
51716 _ACEOF
51717 rm -f conftest.$ac_objext
51718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51719   (eval $ac_compile) 2>conftest.er1
51720   ac_status=$?
51721   grep -v '^ *+' conftest.er1 >conftest.err
51722   rm -f conftest.er1
51723   cat conftest.err >&5
51724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51725   (exit $ac_status); } &&
51726          { ac_try='test -z "$ac_c_werror_flag"
51727                          || test ! -s conftest.err'
51728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51729   (eval $ac_try) 2>&5
51730   ac_status=$?
51731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51732   (exit $ac_status); }; } &&
51733          { ac_try='test -s conftest.$ac_objext'
51734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51735   (eval $ac_try) 2>&5
51736   ac_status=$?
51737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51738   (exit $ac_status); }; }; then
51739   ac_header_compiler=yes
51740 else
51741   echo "$as_me: failed program was:" >&5
51742 sed 's/^/| /' conftest.$ac_ext >&5
51743
51744 ac_header_compiler=no
51745 fi
51746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51748 echo "${ECHO_T}$ac_header_compiler" >&6
51749
51750 # Is the header present?
51751 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51753 cat >conftest.$ac_ext <<_ACEOF
51754 /* confdefs.h.  */
51755 _ACEOF
51756 cat confdefs.h >>conftest.$ac_ext
51757 cat >>conftest.$ac_ext <<_ACEOF
51758 /* end confdefs.h.  */
51759 #include <$ac_header>
51760 _ACEOF
51761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51762   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51763   ac_status=$?
51764   grep -v '^ *+' conftest.er1 >conftest.err
51765   rm -f conftest.er1
51766   cat conftest.err >&5
51767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51768   (exit $ac_status); } >/dev/null; then
51769   if test -s conftest.err; then
51770     ac_cpp_err=$ac_c_preproc_warn_flag
51771     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51772   else
51773     ac_cpp_err=
51774   fi
51775 else
51776   ac_cpp_err=yes
51777 fi
51778 if test -z "$ac_cpp_err"; then
51779   ac_header_preproc=yes
51780 else
51781   echo "$as_me: failed program was:" >&5
51782 sed 's/^/| /' conftest.$ac_ext >&5
51783
51784   ac_header_preproc=no
51785 fi
51786 rm -f conftest.err conftest.$ac_ext
51787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51788 echo "${ECHO_T}$ac_header_preproc" >&6
51789
51790 # So?  What about this header?
51791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51792   yes:no: )
51793     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51797     ac_header_preproc=yes
51798     ;;
51799   no:yes:* )
51800     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51802     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
51803 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
51804     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51806     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
51807 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
51808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51810     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51812     (
51813       cat <<\_ASBOX
51814 ## ------------------------------------------ ##
51815 ## Report this to the AC_PACKAGE_NAME lists.  ##
51816 ## ------------------------------------------ ##
51817 _ASBOX
51818     ) |
51819       sed "s/^/$as_me: WARNING:     /" >&2
51820     ;;
51821 esac
51822 echo "$as_me:$LINENO: checking for $ac_header" >&5
51823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51825   echo $ECHO_N "(cached) $ECHO_C" >&6
51826 else
51827   eval "$as_ac_Header=\$ac_header_preproc"
51828 fi
51829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51831
51832 fi
51833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51834   cat >>confdefs.h <<_ACEOF
51835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51836 _ACEOF
51837
51838 fi
51839
51840 done
51841
51842
51843         if test $ac_cv_header_ltdl_h != yes ; then
51844                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
51845 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
51846    { (exit 1); exit 1; }; }
51847         fi
51848         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
51849 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
51850 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
51851   echo $ECHO_N "(cached) $ECHO_C" >&6
51852 else
51853   ac_check_lib_save_LIBS=$LIBS
51854 LIBS="-lltdl  $LIBS"
51855 cat >conftest.$ac_ext <<_ACEOF
51856 /* confdefs.h.  */
51857 _ACEOF
51858 cat confdefs.h >>conftest.$ac_ext
51859 cat >>conftest.$ac_ext <<_ACEOF
51860 /* end confdefs.h.  */
51861
51862 /* Override any gcc2 internal prototype to avoid an error.  */
51863 #ifdef __cplusplus
51864 extern "C"
51865 #endif
51866 /* We use char because int might match the return type of a gcc2
51867    builtin and then its argument prototype would still apply.  */
51868 char lt_dlinit ();
51869 int
51870 main ()
51871 {
51872 lt_dlinit ();
51873   ;
51874   return 0;
51875 }
51876 _ACEOF
51877 rm -f conftest.$ac_objext conftest$ac_exeext
51878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51879   (eval $ac_link) 2>conftest.er1
51880   ac_status=$?
51881   grep -v '^ *+' conftest.er1 >conftest.err
51882   rm -f conftest.er1
51883   cat conftest.err >&5
51884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51885   (exit $ac_status); } &&
51886          { ac_try='test -z "$ac_c_werror_flag"
51887                          || test ! -s conftest.err'
51888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51889   (eval $ac_try) 2>&5
51890   ac_status=$?
51891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51892   (exit $ac_status); }; } &&
51893          { ac_try='test -s conftest$ac_exeext'
51894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51895   (eval $ac_try) 2>&5
51896   ac_status=$?
51897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51898   (exit $ac_status); }; }; then
51899   ac_cv_lib_ltdl_lt_dlinit=yes
51900 else
51901   echo "$as_me: failed program was:" >&5
51902 sed 's/^/| /' conftest.$ac_ext >&5
51903
51904 ac_cv_lib_ltdl_lt_dlinit=no
51905 fi
51906 rm -f conftest.err conftest.$ac_objext \
51907       conftest$ac_exeext conftest.$ac_ext
51908 LIBS=$ac_check_lib_save_LIBS
51909 fi
51910 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
51911 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
51912 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
51913
51914                 SLAPI_LIBS=-lltdl
51915                 LIBSLAPI=libslapi.a
51916                 LIBSLAPITOOLS=../libslapi.a
51917
51918 cat >>confdefs.h <<\_ACEOF
51919 #define HAVE_LIBLTDL 1
51920 _ACEOF
51921
51922
51923 else
51924   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
51925 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
51926    { (exit 1); exit 1; }; }
51927 fi
51928
51929
51930
51931 cat >>confdefs.h <<\_ACEOF
51932 #define LDAP_SLAPI 1
51933 _ACEOF
51934
51935 fi
51936
51937 if test "$ol_enable_debug" != no ; then
51938
51939 cat >>confdefs.h <<\_ACEOF
51940 #define LDAP_DEBUG 1
51941 _ACEOF
51942
51943 fi
51944 if test "$ol_enable_syslog" = yes ; then
51945
51946 cat >>confdefs.h <<\_ACEOF
51947 #define LDAP_SYSLOG 1
51948 _ACEOF
51949
51950 fi
51951 if test "$ol_link_kbind" != no ; then
51952
51953 cat >>confdefs.h <<\_ACEOF
51954 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
51955 _ACEOF
51956
51957 fi
51958 if test "$ol_enable_proctitle" != no ; then
51959
51960 cat >>confdefs.h <<\_ACEOF
51961 #define LDAP_PROCTITLE 1
51962 _ACEOF
51963
51964 fi
51965 if test "$ol_enable_referrals" != no ; then
51966
51967 cat >>confdefs.h <<\_ACEOF
51968 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
51969 _ACEOF
51970
51971 fi
51972 if test "$ol_enable_local" != no; then
51973
51974 cat >>confdefs.h <<\_ACEOF
51975 #define LDAP_PF_LOCAL 1
51976 _ACEOF
51977
51978 fi
51979 if test "$ol_link_ipv6" != no; then
51980
51981 cat >>confdefs.h <<\_ACEOF
51982 #define LDAP_PF_INET6 1
51983 _ACEOF
51984
51985 fi
51986 if test "$ol_enable_cleartext" != no ; then
51987
51988 cat >>confdefs.h <<\_ACEOF
51989 #define SLAPD_CLEARTEXT 1
51990 _ACEOF
51991
51992 fi
51993 if test "$ol_enable_crypt" != no ; then
51994
51995 cat >>confdefs.h <<\_ACEOF
51996 #define SLAPD_CRYPT 1
51997 _ACEOF
51998
51999 fi
52000 if test "$ol_link_spasswd" != no ; then
52001
52002 cat >>confdefs.h <<\_ACEOF
52003 #define SLAPD_SPASSWD 1
52004 _ACEOF
52005
52006 fi
52007 if test "$ol_enable_multimaster" != no ; then
52008
52009 cat >>confdefs.h <<\_ACEOF
52010 #define SLAPD_MULTIMASTER 1
52011 _ACEOF
52012
52013 fi
52014 if test "$ol_enable_rlookups" != no ; then
52015
52016 cat >>confdefs.h <<\_ACEOF
52017 #define SLAPD_RLOOKUPS 1
52018 _ACEOF
52019
52020 fi
52021 if test "$ol_enable_aci" != no ; then
52022
52023 cat >>confdefs.h <<\_ACEOF
52024 #define SLAPD_ACI_ENABLED 1
52025 _ACEOF
52026
52027 fi
52028
52029 if test "$ol_link_modules" != no ; then
52030
52031 cat >>confdefs.h <<\_ACEOF
52032 #define SLAPD_MODULES 1
52033 _ACEOF
52034
52035         BUILD_SLAPD=yes
52036         SLAPD_MODULES_LDFLAGS="-dlopen self"
52037 fi
52038
52039
52040 cat >>confdefs.h <<\_ACEOF
52041 #define SLAPD_MOD_STATIC 1
52042 _ACEOF
52043
52044
52045 cat >>confdefs.h <<\_ACEOF
52046 #define SLAPD_MOD_DYNAMIC 2
52047 _ACEOF
52048
52049
52050 if test "$ol_enable_bdb" != no ; then
52051         BUILD_SLAPD=yes
52052         BUILD_BDB=$ol_enable_bdb
52053         if test "$ol_enable_bdb" = mod ; then
52054                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
52055                 MFLAG=SLAPD_MOD_DYNAMIC
52056         else
52057                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
52058                 MFLAG=SLAPD_MOD_STATIC
52059         fi
52060
52061 cat >>confdefs.h <<_ACEOF
52062 #define SLAPD_BDB $MFLAG
52063 _ACEOF
52064
52065 fi
52066
52067 if test "$ol_enable_dnssrv" != no ; then
52068         BUILD_SLAPD=yes
52069         BUILD_DNSSRV=$ol_enable_dnssrv
52070         if test "$ol_enable_dnssrv" = mod ; then
52071                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
52072                 MFLAG=SLAPD_MOD_DYNAMIC
52073         else
52074                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
52075                 MFLAG=SLAPD_MOD_STATIC
52076         fi
52077
52078 cat >>confdefs.h <<_ACEOF
52079 #define SLAPD_DNSSRV $MFLAG
52080 _ACEOF
52081
52082 fi
52083
52084 if test "$ol_enable_hdb" != no ; then
52085         BUILD_SLAPD=yes
52086         BUILD_HDB=$ol_enable_hdb
52087         if test "$ol_enable_hdb" = mod ; then
52088                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
52089                 MFLAG=SLAPD_MOD_DYNAMIC
52090         else
52091                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
52092                 MFLAG=SLAPD_MOD_STATIC
52093         fi
52094
52095 cat >>confdefs.h <<_ACEOF
52096 #define SLAPD_HDB $MFLAG
52097 _ACEOF
52098
52099 fi
52100
52101 if test "$ol_enable_ldap" != no ; then
52102         BUILD_SLAPD=yes
52103         BUILD_LDAP=$ol_enable_ldap
52104         if test "$ol_enable_ldap" = mod ; then
52105                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
52106                 MFLAG=SLAPD_MOD_DYNAMIC
52107         else
52108                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
52109                 MFLAG=SLAPD_MOD_STATIC
52110         fi
52111
52112 cat >>confdefs.h <<_ACEOF
52113 #define SLAPD_LDAP $MFLAG
52114 _ACEOF
52115
52116 fi
52117
52118 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
52119         BUILD_SLAPD=yes
52120         BUILD_LDBM=$ol_enable_ldbm
52121         if test "$ol_enable_ldbm" = mod ; then
52122                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
52123                 MFLAG=SLAPD_MOD_DYNAMIC
52124         else
52125                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
52126                 MFLAG=SLAPD_MOD_STATIC
52127         fi
52128
52129 cat >>confdefs.h <<_ACEOF
52130 #define SLAPD_LDBM $MFLAG
52131 _ACEOF
52132
52133 fi
52134
52135 if test "$ol_enable_meta" != no ; then
52136         BUILD_SLAPD=yes
52137         BUILD_META=$ol_enable_meta
52138         BUILD_REWRITE=yes
52139         if test "$ol_enable_meta" = mod ; then
52140                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
52141                 MFLAG=SLAPD_MOD_DYNAMIC
52142         else
52143                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
52144                 MFLAG=SLAPD_MOD_STATIC
52145         fi
52146
52147 cat >>confdefs.h <<_ACEOF
52148 #define SLAPD_META $MFLAG
52149 _ACEOF
52150
52151 fi
52152
52153 if test "$ol_enable_monitor" != no ; then
52154         BUILD_SLAPD=yes
52155         BUILD_MONITOR=$ol_enable_monitor
52156         if test "$ol_enable_monitor" = mod ; then
52157                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
52158                 MFLAG=SLAPD_MOD_DYNAMIC
52159         else
52160                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
52161                 MFLAG=SLAPD_MOD_STATIC
52162         fi
52163
52164 cat >>confdefs.h <<_ACEOF
52165 #define SLAPD_MONITOR $MFLAG
52166 _ACEOF
52167
52168 fi
52169
52170 if test "$ol_enable_null" != no ; then
52171         BUILD_SLAPD=yes
52172         BUILD_NULL=$ol_enable_null
52173         if test "$ol_enable_null" = mod ; then
52174                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
52175                 MFLAG=SLAPD_MOD_DYNAMIC
52176         else
52177                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
52178                 MFLAG=SLAPD_MOD_STATIC
52179         fi
52180
52181 cat >>confdefs.h <<_ACEOF
52182 #define SLAPD_NULL $MFLAG
52183 _ACEOF
52184
52185 fi
52186
52187 if test "$ol_enable_passwd" != no ; then
52188         BUILD_SLAPD=yes
52189         BUILD_PASSWD=$ol_enable_passwd
52190         if test "$ol_enable_passwd" = mod ; then
52191                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
52192                 MFLAG=SLAPD_MOD_DYNAMIC
52193         else
52194                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
52195                 MFLAG=SLAPD_MOD_STATIC
52196         fi
52197
52198 cat >>confdefs.h <<_ACEOF
52199 #define SLAPD_PASSWD $MFLAG
52200 _ACEOF
52201
52202 fi
52203
52204 if test "$ol_link_perl" != no ; then
52205         BUILD_SLAPD=yes
52206         BUILD_PERL=$ol_enable_perl
52207         if test "$ol_enable_perl" = mod ; then
52208                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
52209                 MFLAG=SLAPD_MOD_DYNAMIC
52210         else
52211                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
52212                 MFLAG=SLAPD_MOD_STATIC
52213         fi
52214
52215 cat >>confdefs.h <<_ACEOF
52216 #define SLAPD_PERL $MFLAG
52217 _ACEOF
52218
52219 fi
52220
52221 if test "$ol_enable_relay" != no ; then
52222         BUILD_SLAPD=yes
52223         BUILD_RELAY=$ol_enable_relay
52224         if test "$ol_enable_relay" = mod ; then
52225                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
52226                 MFLAG=SLAPD_MOD_DYNAMIC
52227         else
52228                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
52229                 MFLAG=SLAPD_MOD_STATIC
52230         fi
52231
52232 cat >>confdefs.h <<_ACEOF
52233 #define SLAPD_RELAY $MFLAG
52234 _ACEOF
52235
52236 fi
52237
52238 if test "$ol_enable_shell" != no ; then
52239         if test "$ol_link_thread" != no ; then
52240                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
52241 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
52242         fi
52243         BUILD_SLAPD=yes
52244         BUILD_SHELL=$ol_enable_shell
52245         if test "$ol_enable_shell" = mod ; then
52246                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
52247                 MFLAG=SLAPD_MOD_DYNAMIC
52248         else
52249                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
52250                 MFLAG=SLAPD_MOD_STATIC
52251         fi
52252
52253 cat >>confdefs.h <<_ACEOF
52254 #define SLAPD_SHELL $MFLAG
52255 _ACEOF
52256
52257 fi
52258
52259 if test "$ol_link_sql" != no ; then
52260         BUILD_SLAPD=yes
52261         BUILD_SQL=$ol_enable_sql
52262         if test "$ol_enable_sql" = mod; then
52263                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
52264                 MFLAG=SLAPD_MOD_DYNAMIC
52265         else
52266                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
52267                 MFLAG=SLAPD_MOD_STATIC
52268         fi
52269
52270 cat >>confdefs.h <<_ACEOF
52271 #define SLAPD_SQL $MFLAG
52272 _ACEOF
52273
52274 fi
52275
52276 if test "$ol_enable_accesslog" != no ; then
52277         BUILD_ACCESSLOG=$ol_enable_accesslog
52278         if test "$ol_enable_accesslog" = mod ; then
52279                 MFLAG=SLAPD_MOD_DYNAMIC
52280                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
52281         else
52282                 MFLAG=SLAPD_MOD_STATIC
52283                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
52284         fi
52285
52286 cat >>confdefs.h <<_ACEOF
52287 #define SLAPD_OVER_ACCESSLOG $MFLAG
52288 _ACEOF
52289
52290 fi
52291
52292 if test "$ol_enable_denyop" != no ; then
52293         BUILD_DENYOP=$ol_enable_denyop
52294         if test "$ol_enable_denyop" = mod ; then
52295                 MFLAG=SLAPD_MOD_DYNAMIC
52296                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
52297         else
52298                 MFLAG=SLAPD_MOD_STATIC
52299                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
52300         fi
52301
52302 cat >>confdefs.h <<_ACEOF
52303 #define SLAPD_OVER_DENYOP $MFLAG
52304 _ACEOF
52305
52306 fi
52307
52308 if test "$ol_enable_dyngroup" != no ; then
52309         BUILD_DYNGROUP=$ol_enable_dyngroup
52310         if test "$ol_enable_dyngroup" = mod ; then
52311                 MFLAG=SLAPD_MOD_DYNAMIC
52312                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
52313         else
52314                 MFLAG=SLAPD_MOD_STATIC
52315                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
52316         fi
52317
52318 cat >>confdefs.h <<_ACEOF
52319 #define SLAPD_OVER_DYNGROUP $MFLAG
52320 _ACEOF
52321
52322 fi
52323
52324 if test "$ol_enable_dynlist" != no ; then
52325         BUILD_DYNLIST=$ol_enable_dynlist
52326         if test "$ol_enable_dynlist" = mod ; then
52327                 MFLAG=SLAPD_MOD_DYNAMIC
52328                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
52329         else
52330                 MFLAG=SLAPD_MOD_STATIC
52331                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
52332         fi
52333
52334 cat >>confdefs.h <<_ACEOF
52335 #define SLAPD_OVER_DYNLIST $MFLAG
52336 _ACEOF
52337
52338 fi
52339
52340 if test "$ol_enable_glue" != no ; then
52341         BUILD_GLUE=$ol_enable_glue
52342         if test "$ol_enable_glue" = mod ; then
52343                 MFLAG=SLAPD_MOD_DYNAMIC
52344                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
52345         else
52346                 MFLAG=SLAPD_MOD_STATIC
52347                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
52348         fi
52349
52350 cat >>confdefs.h <<_ACEOF
52351 #define SLAPD_OVER_GLUE $MFLAG
52352 _ACEOF
52353
52354 fi
52355
52356 if test "$ol_enable_lastmod" != no ; then
52357         BUILD_LASTMOD=$ol_enable_lastmod
52358         if test "$ol_enable_lastmod" = mod ; then
52359                 MFLAG=SLAPD_MOD_DYNAMIC
52360                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
52361         else
52362                 MFLAG=SLAPD_MOD_STATIC
52363                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
52364         fi
52365
52366 cat >>confdefs.h <<_ACEOF
52367 #define SLAPD_OVER_LASTMOD $MFLAG
52368 _ACEOF
52369
52370 fi
52371
52372 if test "$ol_enable_ppolicy" != no ; then
52373         BUILD_PPOLICY=$ol_enable_ppolicy
52374         if test "$ol_enable_ppolicy" = mod ; then
52375                 MFLAG=SLAPD_MOD_DYNAMIC
52376                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
52377         else
52378                 MFLAG=SLAPD_MOD_STATIC
52379                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
52380         fi
52381
52382 cat >>confdefs.h <<_ACEOF
52383 #define SLAPD_OVER_PPOLICY $MFLAG
52384 _ACEOF
52385
52386 fi
52387
52388 if test "$ol_enable_proxycache" != no ; then
52389         BUILD_PROXYCACHE=$ol_enable_proxycache
52390         if test "$ol_enable_proxycache" = mod ; then
52391                 MFLAG=SLAPD_MOD_DYNAMIC
52392                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
52393         else
52394                 MFLAG=SLAPD_MOD_STATIC
52395                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
52396         fi
52397
52398 cat >>confdefs.h <<_ACEOF
52399 #define SLAPD_OVER_PROXYCACHE $MFLAG
52400 _ACEOF
52401
52402 fi
52403
52404 if test "$ol_enable_refint" != no ; then
52405         BUILD_REFINT=$ol_enable_refint
52406         if test "$ol_enable_refint" = mod ; then
52407                 MFLAG=SLAPD_MOD_DYNAMIC
52408                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
52409         else
52410                 MFLAG=SLAPD_MOD_STATIC
52411                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
52412         fi
52413
52414 cat >>confdefs.h <<_ACEOF
52415 #define SLAPD_OVER_REFINT $MFLAG
52416 _ACEOF
52417
52418 fi
52419
52420 if test "$ol_enable_retcode" != no ; then
52421         BUILD_RETCODE=$ol_enable_retcode
52422         if test "$ol_enable_retcode" = mod ; then
52423                 MFLAG=SLAPD_MOD_DYNAMIC
52424                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
52425         else
52426                 MFLAG=SLAPD_MOD_STATIC
52427                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
52428         fi
52429
52430 cat >>confdefs.h <<_ACEOF
52431 #define SLAPD_OVER_RETCODE $MFLAG
52432 _ACEOF
52433
52434 fi
52435
52436 if test "$ol_enable_rwm" != no ; then
52437         BUILD_REWRITE=yes
52438         BUILD_RWM=$ol_enable_rwm
52439         if test "$ol_enable_rwm" = mod ; then
52440                 MFLAG=SLAPD_MOD_DYNAMIC
52441                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
52442         else
52443                 MFLAG=SLAPD_MOD_STATIC
52444                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
52445         fi
52446
52447 cat >>confdefs.h <<_ACEOF
52448 #define SLAPD_OVER_RWM $MFLAG
52449 _ACEOF
52450
52451 fi
52452
52453 if test "$ol_enable_syncprov" != no ; then
52454         BUILD_SYNCPROV=$ol_enable_syncprov
52455         if test "$ol_enable_syncprov" = mod ; then
52456                 MFLAG=SLAPD_MOD_DYNAMIC
52457                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
52458         else
52459                 MFLAG=SLAPD_MOD_STATIC
52460                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
52461         fi
52462
52463 cat >>confdefs.h <<_ACEOF
52464 #define SLAPD_OVER_SYNCPROV $MFLAG
52465 _ACEOF
52466
52467 fi
52468
52469 if test "$ol_enable_translucent" != no ; then
52470         BUILD_TRANSLUCENT=$ol_enable_translucent
52471         if test "$ol_enable_translucent" = mod ; then
52472                 MFLAG=SLAPD_MOD_DYNAMIC
52473                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
52474         else
52475                 MFLAG=SLAPD_MOD_STATIC
52476                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
52477         fi
52478
52479 cat >>confdefs.h <<_ACEOF
52480 #define SLAPD_OVER_TRANSLUCENT $MFLAG
52481 _ACEOF
52482
52483 fi
52484
52485 if test "$ol_enable_unique" != no ; then
52486         BUILD_UNIQUE=$ol_enable_unique
52487         if test "$ol_enable_unique" = mod ; then
52488                 MFLAG=SLAPD_MOD_DYNAMIC
52489                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
52490         else
52491                 MFLAG=SLAPD_MOD_STATIC
52492                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
52493         fi
52494
52495 cat >>confdefs.h <<_ACEOF
52496 #define SLAPD_OVER_UNIQUE $MFLAG
52497 _ACEOF
52498
52499 fi
52500
52501 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
52502         $BUILD_SLAPD = yes ; then
52503         BUILD_SLURPD=yes
52504 fi
52505
52506 if test "$ol_enable_rewrite" != no ; then
52507
52508 cat >>confdefs.h <<\_ACEOF
52509 #define ENABLE_REWRITE 1
52510 _ACEOF
52511
52512         BUILD_REWRITE=yes
52513 fi
52514
52515 if test "$ol_enable_slapi" != no ; then
52516
52517 cat >>confdefs.h <<\_ACEOF
52518 #define ENABLE_SLAPI 1
52519 _ACEOF
52520
52521         BUILD_SLAPI=yes
52522         SLAPD_SLAPI_DEPEND=libslapi.a
52523 fi
52524
52525
52526
52527 if test "$ac_cv_mingw32" = yes ; then
52528         PLAT=NT
52529         SLAPD_MODULES_LDFLAGS=
52530 else
52531         PLAT=UNIX
52532 fi
52533
52534
52535
52536
52537
52538
52539
52540
52541
52542
52543
52544
52545
52546
52547
52548
52549
52550
52551
52552
52553
52554
52555
52556
52557
52558
52559
52560
52561
52562
52563
52564
52565
52566
52567
52568
52569
52570
52571
52572
52573
52574
52575
52576
52577
52578
52579
52580
52581
52582
52583
52584
52585
52586
52587
52588
52589
52590
52591
52592
52593
52594
52595
52596
52597
52598
52599
52600
52601
52602
52603
52604
52605
52606
52607
52608
52609
52610
52611
52612 # Check whether --with-xxinstall or --without-xxinstall was given.
52613 if test "${with_xxinstall+set}" = set; then
52614   withval="$with_xxinstall"
52615
52616 fi;
52617
52618
52619                                                                                                                                                                                                                                                                                                                                                                                                                 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-shared.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"
52620
52621
52622           ac_config_commands="$ac_config_commands default"
52623
52624
52625
52626 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52627 # Let make expand exec_prefix.
52628 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52629
52630 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52631 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52632 # trailing colons and then remove the whole line if VPATH becomes empty
52633 # (actually we leave an empty line to preserve line numbers).
52634 if test "x$srcdir" = x.; then
52635   ac_vpsub='/^[  ]*VPATH[        ]*=/{
52636 s/:*\$(srcdir):*/:/;
52637 s/:*\${srcdir}:*/:/;
52638 s/:*@srcdir@:*/:/;
52639 s/^\([^=]*=[     ]*\):*/\1/;
52640 s/:*$//;
52641 s/^[^=]*=[       ]*$//;
52642 }'
52643 fi
52644
52645 DEFS=-DHAVE_CONFIG_H
52646
52647 ac_libobjs=
52648 ac_ltlibobjs=
52649 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52650   # 1. Remove the extension, and $U if already installed.
52651   ac_i=`echo "$ac_i" |
52652          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
52653   # 2. Add them.
52654   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
52655   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
52656 done
52657 LIBOBJS=$ac_libobjs
52658
52659 LTLIBOBJS=$ac_ltlibobjs
52660
52661
52662 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
52663   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
52664 Usually this means the macro was only invoked conditionally." >&5
52665 echo "$as_me: error: conditional \"AMDEP\" was never defined.
52666 Usually this means the macro was only invoked conditionally." >&2;}
52667    { (exit 1); exit 1; }; }
52668 fi
52669 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
52670   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
52671 Usually this means the macro was only invoked conditionally." >&5
52672 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
52673 Usually this means the macro was only invoked conditionally." >&2;}
52674    { (exit 1); exit 1; }; }
52675 fi
52676 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
52677   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
52678 Usually this means the macro was only invoked conditionally." >&5
52679 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
52680 Usually this means the macro was only invoked conditionally." >&2;}
52681    { (exit 1); exit 1; }; }
52682 fi
52683 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
52684   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
52685 Usually this means the macro was only invoked conditionally." >&5
52686 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
52687 Usually this means the macro was only invoked conditionally." >&2;}
52688    { (exit 1); exit 1; }; }
52689 fi
52690
52691 : ${CONFIG_STATUS=./config.status}
52692 ac_clean_files_save=$ac_clean_files
52693 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52694 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52695 echo "$as_me: creating $CONFIG_STATUS" >&6;}
52696 cat >$CONFIG_STATUS <<_ACEOF
52697 #! $SHELL
52698 # Generated by $as_me.
52699 # Run this file to recreate the current configuration.
52700 # Compiler output produced by configure, useful for debugging
52701 # configure, is in config.log if it exists.
52702
52703 debug=false
52704 ac_cs_recheck=false
52705 ac_cs_silent=false
52706 SHELL=\${CONFIG_SHELL-$SHELL}
52707 _ACEOF
52708
52709 cat >>$CONFIG_STATUS <<\_ACEOF
52710 ## --------------------- ##
52711 ## M4sh Initialization.  ##
52712 ## --------------------- ##
52713
52714 # Be Bourne compatible
52715 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52716   emulate sh
52717   NULLCMD=:
52718   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
52719   # is contrary to our usage.  Disable this feature.
52720   alias -g '${1+"$@"}'='"$@"'
52721 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
52722   set -o posix
52723 fi
52724 DUALCASE=1; export DUALCASE # for MKS sh
52725
52726 # Support unset when possible.
52727 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52728   as_unset=unset
52729 else
52730   as_unset=false
52731 fi
52732
52733
52734 # Work around bugs in pre-3.0 UWIN ksh.
52735 $as_unset ENV MAIL MAILPATH
52736 PS1='$ '
52737 PS2='> '
52738 PS4='+ '
52739
52740 # NLS nuisances.
52741 for as_var in \
52742   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
52743   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
52744   LC_TELEPHONE LC_TIME
52745 do
52746   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
52747     eval $as_var=C; export $as_var
52748   else
52749     $as_unset $as_var
52750   fi
52751 done
52752
52753 # Required to use basename.
52754 if expr a : '\(a\)' >/dev/null 2>&1; then
52755   as_expr=expr
52756 else
52757   as_expr=false
52758 fi
52759
52760 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
52761   as_basename=basename
52762 else
52763   as_basename=false
52764 fi
52765
52766
52767 # Name of the executable.
52768 as_me=`$as_basename "$0" ||
52769 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
52770          X"$0" : 'X\(//\)$' \| \
52771          X"$0" : 'X\(/\)$' \| \
52772          .     : '\(.\)' 2>/dev/null ||
52773 echo X/"$0" |
52774     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
52775           /^X\/\(\/\/\)$/{ s//\1/; q; }
52776           /^X\/\(\/\).*/{ s//\1/; q; }
52777           s/.*/./; q'`
52778
52779
52780 # PATH needs CR, and LINENO needs CR and PATH.
52781 # Avoid depending upon Character Ranges.
52782 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
52783 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52784 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52785 as_cr_digits='0123456789'
52786 as_cr_alnum=$as_cr_Letters$as_cr_digits
52787
52788 # The user is always right.
52789 if test "${PATH_SEPARATOR+set}" != set; then
52790   echo "#! /bin/sh" >conf$$.sh
52791   echo  "exit 0"   >>conf$$.sh
52792   chmod +x conf$$.sh
52793   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52794     PATH_SEPARATOR=';'
52795   else
52796     PATH_SEPARATOR=:
52797   fi
52798   rm -f conf$$.sh
52799 fi
52800
52801
52802   as_lineno_1=$LINENO
52803   as_lineno_2=$LINENO
52804   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
52805   test "x$as_lineno_1" != "x$as_lineno_2" &&
52806   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
52807   # Find who we are.  Look in the path if we contain no path at all
52808   # relative or not.
52809   case $0 in
52810     *[\\/]* ) as_myself=$0 ;;
52811     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52812 for as_dir in $PATH
52813 do
52814   IFS=$as_save_IFS
52815   test -z "$as_dir" && as_dir=.
52816   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
52817 done
52818
52819        ;;
52820   esac
52821   # We did not find ourselves, most probably we were run as `sh COMMAND'
52822   # in which case we are not to be found in the path.
52823   if test "x$as_myself" = x; then
52824     as_myself=$0
52825   fi
52826   if test ! -f "$as_myself"; then
52827     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
52828 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
52829    { (exit 1); exit 1; }; }
52830   fi
52831   case $CONFIG_SHELL in
52832   '')
52833     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52834 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
52835 do
52836   IFS=$as_save_IFS
52837   test -z "$as_dir" && as_dir=.
52838   for as_base in sh bash ksh sh5; do
52839          case $as_dir in
52840          /*)
52841            if ("$as_dir/$as_base" -c '
52842   as_lineno_1=$LINENO
52843   as_lineno_2=$LINENO
52844   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
52845   test "x$as_lineno_1" != "x$as_lineno_2" &&
52846   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
52847              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
52848              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
52849              CONFIG_SHELL=$as_dir/$as_base
52850              export CONFIG_SHELL
52851              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
52852            fi;;
52853          esac
52854        done
52855 done
52856 ;;
52857   esac
52858
52859   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
52860   # uniformly replaced by the line number.  The first 'sed' inserts a
52861   # line-number line before each line; the second 'sed' does the real
52862   # work.  The second script uses 'N' to pair each line-number line
52863   # with the numbered line, and appends trailing '-' during
52864   # substitution so that $LINENO is not a special case at line end.
52865   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
52866   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
52867   sed '=' <$as_myself |
52868     sed '
52869       N
52870       s,$,-,
52871       : loop
52872       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
52873       t loop
52874       s,-$,,
52875       s,^['$as_cr_digits']*\n,,
52876     ' >$as_me.lineno &&
52877   chmod +x $as_me.lineno ||
52878     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
52879 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
52880    { (exit 1); exit 1; }; }
52881
52882   # Don't try to exec as it changes $[0], causing all sort of problems
52883   # (the dirname of $[0] is not the place where we might find the
52884   # original and so on.  Autoconf is especially sensible to this).
52885   . ./$as_me.lineno
52886   # Exit status is that of the last command.
52887   exit
52888 }
52889
52890
52891 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
52892   *c*,-n*) ECHO_N= ECHO_C='
52893 ' ECHO_T='      ' ;;
52894   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
52895   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
52896 esac
52897
52898 if expr a : '\(a\)' >/dev/null 2>&1; then
52899   as_expr=expr
52900 else
52901   as_expr=false
52902 fi
52903
52904 rm -f conf$$ conf$$.exe conf$$.file
52905 echo >conf$$.file
52906 if ln -s conf$$.file conf$$ 2>/dev/null; then
52907   # We could just check for DJGPP; but this test a) works b) is more generic
52908   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
52909   if test -f conf$$.exe; then
52910     # Don't use ln at all; we don't have any links
52911     as_ln_s='cp -p'
52912   else
52913     as_ln_s='ln -s'
52914   fi
52915 elif ln conf$$.file conf$$ 2>/dev/null; then
52916   as_ln_s=ln
52917 else
52918   as_ln_s='cp -p'
52919 fi
52920 rm -f conf$$ conf$$.exe conf$$.file
52921
52922 if mkdir -p . 2>/dev/null; then
52923   as_mkdir_p=:
52924 else
52925   test -d ./-p && rmdir ./-p
52926   as_mkdir_p=false
52927 fi
52928
52929 as_executable_p="test -f"
52930
52931 # Sed expression to map a string onto a valid CPP name.
52932 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
52933
52934 # Sed expression to map a string onto a valid variable name.
52935 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
52936
52937
52938 # IFS
52939 # We need space, tab and new line, in precisely that order.
52940 as_nl='
52941 '
52942 IFS="   $as_nl"
52943
52944 # CDPATH.
52945 $as_unset CDPATH
52946
52947 exec 6>&1
52948
52949 # Open the log real soon, to keep \$[0] and so on meaningful, and to
52950 # report actual input values of CONFIG_FILES etc. instead of their
52951 # values after options handling.  Logging --version etc. is OK.
52952 exec 5>>config.log
52953 {
52954   echo
52955   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
52956 ## Running $as_me. ##
52957 _ASBOX
52958 } >&5
52959 cat >&5 <<_CSEOF
52960
52961 This file was extended by $as_me, which was
52962 generated by GNU Autoconf 2.59.  Invocation command line was
52963
52964   CONFIG_FILES    = $CONFIG_FILES
52965   CONFIG_HEADERS  = $CONFIG_HEADERS
52966   CONFIG_LINKS    = $CONFIG_LINKS
52967   CONFIG_COMMANDS = $CONFIG_COMMANDS
52968   $ $0 $@
52969
52970 _CSEOF
52971 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
52972 echo >&5
52973 _ACEOF
52974
52975 # Files that config.status was made for.
52976 if test -n "$ac_config_files"; then
52977   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
52978 fi
52979
52980 if test -n "$ac_config_headers"; then
52981   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
52982 fi
52983
52984 if test -n "$ac_config_links"; then
52985   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
52986 fi
52987
52988 if test -n "$ac_config_commands"; then
52989   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
52990 fi
52991
52992 cat >>$CONFIG_STATUS <<\_ACEOF
52993
52994 ac_cs_usage="\
52995 \`$as_me' instantiates files from templates according to the
52996 current configuration.
52997
52998 Usage: $0 [OPTIONS] [FILE]...
52999
53000   -h, --help       print this help, then exit
53001   -V, --version    print version number, then exit
53002   -q, --quiet      do not print progress messages
53003   -d, --debug      don't remove temporary files
53004       --recheck    update $as_me by reconfiguring in the same conditions
53005   --file=FILE[:TEMPLATE]
53006                    instantiate the configuration file FILE
53007   --header=FILE[:TEMPLATE]
53008                    instantiate the configuration header FILE
53009
53010 Configuration files:
53011 $config_files
53012
53013 Configuration headers:
53014 $config_headers
53015
53016 Configuration commands:
53017 $config_commands
53018
53019 Report bugs to <bug-autoconf@gnu.org>."
53020 _ACEOF
53021
53022 cat >>$CONFIG_STATUS <<_ACEOF
53023 ac_cs_version="\\
53024 config.status
53025 configured by $0, generated by GNU Autoconf 2.59,
53026   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53027
53028 Copyright (C) 2003 Free Software Foundation, Inc.
53029 This config.status script is free software; the Free Software Foundation
53030 gives unlimited permission to copy, distribute and modify it."
53031 srcdir=$srcdir
53032 INSTALL="$INSTALL"
53033 _ACEOF
53034
53035 cat >>$CONFIG_STATUS <<\_ACEOF
53036 # If no file are specified by the user, then we need to provide default
53037 # value.  By we need to know if files were specified by the user.
53038 ac_need_defaults=:
53039 while test $# != 0
53040 do
53041   case $1 in
53042   --*=*)
53043     ac_option=`expr "x$1" : 'x\([^=]*\)='`
53044     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53045     ac_shift=:
53046     ;;
53047   -*)
53048     ac_option=$1
53049     ac_optarg=$2
53050     ac_shift=shift
53051     ;;
53052   *) # This is not an option, so the user has probably given explicit
53053      # arguments.
53054      ac_option=$1
53055      ac_need_defaults=false;;
53056   esac
53057
53058   case $ac_option in
53059   # Handling of the options.
53060 _ACEOF
53061 cat >>$CONFIG_STATUS <<\_ACEOF
53062   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53063     ac_cs_recheck=: ;;
53064   --version | --vers* | -V )
53065     echo "$ac_cs_version"; exit 0 ;;
53066   --he | --h)
53067     # Conflict between --help and --header
53068     { { echo "$as_me:$LINENO: error: ambiguous option: $1
53069 Try \`$0 --help' for more information." >&5
53070 echo "$as_me: error: ambiguous option: $1
53071 Try \`$0 --help' for more information." >&2;}
53072    { (exit 1); exit 1; }; };;
53073   --help | --hel | -h )
53074     echo "$ac_cs_usage"; exit 0 ;;
53075   --debug | --d* | -d )
53076     debug=: ;;
53077   --file | --fil | --fi | --f )
53078     $ac_shift
53079     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53080     ac_need_defaults=false;;
53081   --header | --heade | --head | --hea )
53082     $ac_shift
53083     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53084     ac_need_defaults=false;;
53085   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53086   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53087     ac_cs_silent=: ;;
53088
53089   # This is an error.
53090   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53091 Try \`$0 --help' for more information." >&5
53092 echo "$as_me: error: unrecognized option: $1
53093 Try \`$0 --help' for more information." >&2;}
53094    { (exit 1); exit 1; }; } ;;
53095
53096   *) ac_config_targets="$ac_config_targets $1" ;;
53097
53098   esac
53099   shift
53100 done
53101
53102 ac_configure_extra_args=
53103
53104 if $ac_cs_silent; then
53105   exec 6>/dev/null
53106   ac_configure_extra_args="$ac_configure_extra_args --silent"
53107 fi
53108
53109 _ACEOF
53110 cat >>$CONFIG_STATUS <<_ACEOF
53111 if \$ac_cs_recheck; then
53112   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53113   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53114 fi
53115
53116 _ACEOF
53117
53118 cat >>$CONFIG_STATUS <<_ACEOF
53119 #
53120 # INIT-COMMANDS section.
53121 #
53122
53123 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53124 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
53125
53126 _ACEOF
53127
53128
53129
53130 cat >>$CONFIG_STATUS <<\_ACEOF
53131 for ac_config_target in $ac_config_targets
53132 do
53133   case "$ac_config_target" in
53134   # Handling of arguments.
53135   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
53136   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
53137   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
53138   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
53139   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
53140   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
53141   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
53142   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
53143   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
53144   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
53145   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
53146   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53147   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53148   "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" ;;
53149   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53150   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53151   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53152   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
53153   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
53154   "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" ;;
53155   "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" ;;
53156   "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" ;;
53157   "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" ;;
53158   "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" ;;
53159   "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" ;;
53160   "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" ;;
53161   "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" ;;
53162   "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" ;;
53163   "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" ;;
53164   "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" ;;
53165   "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" ;;
53166   "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" ;;
53167   "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" ;;
53168   "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" ;;
53169   "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" ;;
53170   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
53171   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
53172   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
53173   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
53174   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
53175   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53176   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
53177   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
53178   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
53179   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
53180   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53181 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53182    { (exit 1); exit 1; }; };;
53183   esac
53184 done
53185
53186 # If the user did not use the arguments to specify the items to instantiate,
53187 # then the envvar interface is used.  Set only those that are not.
53188 # We use the long form for the default assignment because of an extremely
53189 # bizarre bug on SunOS 4.1.3.
53190 if $ac_need_defaults; then
53191   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53192   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53193   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53194 fi
53195
53196 # Have a temporary directory for convenience.  Make it in the build tree
53197 # simply because there is no reason to put it here, and in addition,
53198 # creating and moving files from /tmp can sometimes cause problems.
53199 # Create a temporary directory, and hook for its removal unless debugging.
53200 $debug ||
53201 {
53202   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53203   trap '{ (exit 1); exit 1; }' 1 2 13 15
53204 }
53205
53206 # Create a (secure) tmp directory for tmp files.
53207
53208 {
53209   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53210   test -n "$tmp" && test -d "$tmp"
53211 }  ||
53212 {
53213   tmp=./confstat$$-$RANDOM
53214   (umask 077 && mkdir $tmp)
53215 } ||
53216 {
53217    echo "$me: cannot create a temporary directory in ." >&2
53218    { (exit 1); exit 1; }
53219 }
53220
53221 _ACEOF
53222
53223 cat >>$CONFIG_STATUS <<_ACEOF
53224
53225 #
53226 # CONFIG_FILES section.
53227 #
53228
53229 # No need to generate the scripts if there are no CONFIG_FILES.
53230 # This happens for instance when ./config.status config.h
53231 if test -n "\$CONFIG_FILES"; then
53232   # Protect against being on the right side of a sed subst in config.status.
53233   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53234    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53235 s,@SHELL@,$SHELL,;t t
53236 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53237 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53238 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53239 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53240 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53241 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53242 s,@exec_prefix@,$exec_prefix,;t t
53243 s,@prefix@,$prefix,;t t
53244 s,@program_transform_name@,$program_transform_name,;t t
53245 s,@bindir@,$bindir,;t t
53246 s,@sbindir@,$sbindir,;t t
53247 s,@libexecdir@,$libexecdir,;t t
53248 s,@datadir@,$datadir,;t t
53249 s,@sysconfdir@,$sysconfdir,;t t
53250 s,@sharedstatedir@,$sharedstatedir,;t t
53251 s,@localstatedir@,$localstatedir,;t t
53252 s,@libdir@,$libdir,;t t
53253 s,@includedir@,$includedir,;t t
53254 s,@oldincludedir@,$oldincludedir,;t t
53255 s,@infodir@,$infodir,;t t
53256 s,@mandir@,$mandir,;t t
53257 s,@build_alias@,$build_alias,;t t
53258 s,@host_alias@,$host_alias,;t t
53259 s,@target_alias@,$target_alias,;t t
53260 s,@DEFS@,$DEFS,;t t
53261 s,@ECHO_C@,$ECHO_C,;t t
53262 s,@ECHO_N@,$ECHO_N,;t t
53263 s,@ECHO_T@,$ECHO_T,;t t
53264 s,@LIBS@,$LIBS,;t t
53265 s,@build@,$build,;t t
53266 s,@build_cpu@,$build_cpu,;t t
53267 s,@build_vendor@,$build_vendor,;t t
53268 s,@build_os@,$build_os,;t t
53269 s,@host@,$host,;t t
53270 s,@host_cpu@,$host_cpu,;t t
53271 s,@host_vendor@,$host_vendor,;t t
53272 s,@host_os@,$host_os,;t t
53273 s,@target@,$target,;t t
53274 s,@target_cpu@,$target_cpu,;t t
53275 s,@target_vendor@,$target_vendor,;t t
53276 s,@target_os@,$target_os,;t t
53277 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53278 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53279 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53280 s,@CYGPATH_W@,$CYGPATH_W,;t t
53281 s,@PACKAGE@,$PACKAGE,;t t
53282 s,@VERSION@,$VERSION,;t t
53283 s,@ACLOCAL@,$ACLOCAL,;t t
53284 s,@AUTOCONF@,$AUTOCONF,;t t
53285 s,@AUTOMAKE@,$AUTOMAKE,;t t
53286 s,@AUTOHEADER@,$AUTOHEADER,;t t
53287 s,@MAKEINFO@,$MAKEINFO,;t t
53288 s,@install_sh@,$install_sh,;t t
53289 s,@STRIP@,$STRIP,;t t
53290 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53291 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53292 s,@mkdir_p@,$mkdir_p,;t t
53293 s,@AWK@,$AWK,;t t
53294 s,@SET_MAKE@,$SET_MAKE,;t t
53295 s,@am__leading_dot@,$am__leading_dot,;t t
53296 s,@AMTAR@,$AMTAR,;t t
53297 s,@am__tar@,$am__tar,;t t
53298 s,@am__untar@,$am__untar,;t t
53299 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
53300 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
53301 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
53302 s,@top_builddir@,$top_builddir,;t t
53303 s,@ldap_subdir@,$ldap_subdir,;t t
53304 s,@CC@,$CC,;t t
53305 s,@AR@,$AR,;t t
53306 s,@CFLAGS@,$CFLAGS,;t t
53307 s,@LDFLAGS@,$LDFLAGS,;t t
53308 s,@CPPFLAGS@,$CPPFLAGS,;t t
53309 s,@ac_ct_CC@,$ac_ct_CC,;t t
53310 s,@EXEEXT@,$EXEEXT,;t t
53311 s,@OBJEXT@,$OBJEXT,;t t
53312 s,@DEPDIR@,$DEPDIR,;t t
53313 s,@am__include@,$am__include,;t t
53314 s,@am__quote@,$am__quote,;t t
53315 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53316 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53317 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53318 s,@CCDEPMODE@,$CCDEPMODE,;t t
53319 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53320 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53321 s,@EGREP@,$EGREP,;t t
53322 s,@LN_S@,$LN_S,;t t
53323 s,@ECHO@,$ECHO,;t t
53324 s,@ac_ct_AR@,$ac_ct_AR,;t t
53325 s,@RANLIB@,$RANLIB,;t t
53326 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53327 s,@DLLTOOL@,$DLLTOOL,;t t
53328 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
53329 s,@AS@,$AS,;t t
53330 s,@ac_ct_AS@,$ac_ct_AS,;t t
53331 s,@OBJDUMP@,$OBJDUMP,;t t
53332 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
53333 s,@CPP@,$CPP,;t t
53334 s,@CXX@,$CXX,;t t
53335 s,@CXXFLAGS@,$CXXFLAGS,;t t
53336 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53337 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53338 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53339 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53340 s,@CXXCPP@,$CXXCPP,;t t
53341 s,@F77@,$F77,;t t
53342 s,@FFLAGS@,$FFLAGS,;t t
53343 s,@ac_ct_F77@,$ac_ct_F77,;t t
53344 s,@LIBTOOL@,$LIBTOOL,;t t
53345 s,@PERLBIN@,$PERLBIN,;t t
53346 s,@OL_MKDEP@,$OL_MKDEP,;t t
53347 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
53348 s,@LTSTATIC@,$LTSTATIC,;t t
53349 s,@LIBOBJS@,$LIBOBJS,;t t
53350 s,@LIBSRCS@,$LIBSRCS,;t t
53351 s,@PLAT@,$PLAT,;t t
53352 s,@WITH_SASL@,$WITH_SASL,;t t
53353 s,@WITH_TLS@,$WITH_TLS,;t t
53354 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
53355 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
53356 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
53357 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
53358 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
53359 s,@BUILD_BDB@,$BUILD_BDB,;t t
53360 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
53361 s,@BUILD_HDB@,$BUILD_HDB,;t t
53362 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
53363 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
53364 s,@BUILD_META@,$BUILD_META,;t t
53365 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
53366 s,@BUILD_NULL@,$BUILD_NULL,;t t
53367 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
53368 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
53369 s,@BUILD_PERL@,$BUILD_PERL,;t t
53370 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
53371 s,@BUILD_SQL@,$BUILD_SQL,;t t
53372 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
53373 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
53374 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
53375 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
53376 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
53377 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
53378 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
53379 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
53380 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
53381 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
53382 s,@BUILD_RWM@,$BUILD_RWM,;t t
53383 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
53384 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
53385 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
53386 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
53387 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
53388 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
53389 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
53390 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
53391 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
53392 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
53393 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
53394 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
53395 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
53396 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
53397 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
53398 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
53399 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
53400 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
53401 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
53402 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
53403 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
53404 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
53405 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
53406 s,@SASL_LIBS@,$SASL_LIBS,;t t
53407 s,@TLS_LIBS@,$TLS_LIBS,;t t
53408 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
53409 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
53410 s,@LIBSLAPI@,$LIBSLAPI,;t t
53411 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
53412 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
53413 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
53414 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
53415 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
53416 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
53417 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
53418 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53419 CEOF
53420
53421 _ACEOF
53422
53423   cat >>$CONFIG_STATUS <<\_ACEOF
53424   # Split the substitutions into bite-sized pieces for seds with
53425   # small command number limits, like on Digital OSF/1 and HP-UX.
53426   ac_max_sed_lines=48
53427   ac_sed_frag=1 # Number of current file.
53428   ac_beg=1 # First line for current file.
53429   ac_end=$ac_max_sed_lines # Line after last line for current file.
53430   ac_more_lines=:
53431   ac_sed_cmds=
53432   while $ac_more_lines; do
53433     if test $ac_beg -gt 1; then
53434       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53435     else
53436       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53437     fi
53438     if test ! -s $tmp/subs.frag; then
53439       ac_more_lines=false
53440     else
53441       # The purpose of the label and of the branching condition is to
53442       # speed up the sed processing (if there are no `@' at all, there
53443       # is no need to browse any of the substitutions).
53444       # These are the two extra sed commands mentioned above.
53445       (echo ':t
53446   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53447       if test -z "$ac_sed_cmds"; then
53448         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53449       else
53450         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53451       fi
53452       ac_sed_frag=`expr $ac_sed_frag + 1`
53453       ac_beg=$ac_end
53454       ac_end=`expr $ac_end + $ac_max_sed_lines`
53455     fi
53456   done
53457   if test -z "$ac_sed_cmds"; then
53458     ac_sed_cmds=cat
53459   fi
53460 fi # test -n "$CONFIG_FILES"
53461
53462 _ACEOF
53463 cat >>$CONFIG_STATUS <<\_ACEOF
53464 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53465   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53466   case $ac_file in
53467   - | *:- | *:-:* ) # input from stdin
53468         cat >$tmp/stdin
53469         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53470         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53471   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53472         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53473   * )   ac_file_in=$ac_file.in ;;
53474   esac
53475
53476   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53477   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53479          X"$ac_file" : 'X\(//\)[^/]' \| \
53480          X"$ac_file" : 'X\(//\)$' \| \
53481          X"$ac_file" : 'X\(/\)' \| \
53482          .     : '\(.\)' 2>/dev/null ||
53483 echo X"$ac_file" |
53484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53485           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53486           /^X\(\/\/\)$/{ s//\1/; q; }
53487           /^X\(\/\).*/{ s//\1/; q; }
53488           s/.*/./; q'`
53489   { if $as_mkdir_p; then
53490     mkdir -p "$ac_dir"
53491   else
53492     as_dir="$ac_dir"
53493     as_dirs=
53494     while test ! -d "$as_dir"; do
53495       as_dirs="$as_dir $as_dirs"
53496       as_dir=`(dirname "$as_dir") 2>/dev/null ||
53497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53498          X"$as_dir" : 'X\(//\)[^/]' \| \
53499          X"$as_dir" : 'X\(//\)$' \| \
53500          X"$as_dir" : 'X\(/\)' \| \
53501          .     : '\(.\)' 2>/dev/null ||
53502 echo X"$as_dir" |
53503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53504           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53505           /^X\(\/\/\)$/{ s//\1/; q; }
53506           /^X\(\/\).*/{ s//\1/; q; }
53507           s/.*/./; q'`
53508     done
53509     test ! -n "$as_dirs" || mkdir $as_dirs
53510   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53511 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53512    { (exit 1); exit 1; }; }; }
53513
53514   ac_builddir=.
53515
53516 if test "$ac_dir" != .; then
53517   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53518   # A "../" for each directory in $ac_dir_suffix.
53519   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53520 else
53521   ac_dir_suffix= ac_top_builddir=
53522 fi
53523
53524 case $srcdir in
53525   .)  # No --srcdir option.  We are building in place.
53526     ac_srcdir=.
53527     if test -z "$ac_top_builddir"; then
53528        ac_top_srcdir=.
53529     else
53530        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53531     fi ;;
53532   [\\/]* | ?:[\\/]* )  # Absolute path.
53533     ac_srcdir=$srcdir$ac_dir_suffix;
53534     ac_top_srcdir=$srcdir ;;
53535   *) # Relative path.
53536     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53537     ac_top_srcdir=$ac_top_builddir$srcdir ;;
53538 esac
53539
53540 # Do not use `cd foo && pwd` to compute absolute paths, because
53541 # the directories may not exist.
53542 case `pwd` in
53543 .) ac_abs_builddir="$ac_dir";;
53544 *)
53545   case "$ac_dir" in
53546   .) ac_abs_builddir=`pwd`;;
53547   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53548   *) ac_abs_builddir=`pwd`/"$ac_dir";;
53549   esac;;
53550 esac
53551 case $ac_abs_builddir in
53552 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53553 *)
53554   case ${ac_top_builddir}. in
53555   .) ac_abs_top_builddir=$ac_abs_builddir;;
53556   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53557   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53558   esac;;
53559 esac
53560 case $ac_abs_builddir in
53561 .) ac_abs_srcdir=$ac_srcdir;;
53562 *)
53563   case $ac_srcdir in
53564   .) ac_abs_srcdir=$ac_abs_builddir;;
53565   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
53566   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
53567   esac;;
53568 esac
53569 case $ac_abs_builddir in
53570 .) ac_abs_top_srcdir=$ac_top_srcdir;;
53571 *)
53572   case $ac_top_srcdir in
53573   .) ac_abs_top_srcdir=$ac_abs_builddir;;
53574   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
53575   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
53576   esac;;
53577 esac
53578
53579
53580   case $INSTALL in
53581   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
53582   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
53583   esac
53584
53585   if test x"$ac_file" != x-; then
53586     { echo "$as_me:$LINENO: creating $ac_file" >&5
53587 echo "$as_me: creating $ac_file" >&6;}
53588     rm -f "$ac_file"
53589   fi
53590   # Let's still pretend it is `configure' which instantiates (i.e., don't
53591   # use $as_me), people would be surprised to read:
53592   #    /* config.h.  Generated by config.status.  */
53593   if test x"$ac_file" = x-; then
53594     configure_input=
53595   else
53596     configure_input="$ac_file.  "
53597   fi
53598   configure_input=$configure_input"Generated from `echo $ac_file_in |
53599                                      sed 's,.*/,,'` by configure."
53600
53601   # First look for the input files in the build tree, otherwise in the
53602   # src tree.
53603   ac_file_inputs=`IFS=:
53604     for f in $ac_file_in; do
53605       case $f in
53606       -) echo $tmp/stdin ;;
53607       [\\/$]*)
53608          # Absolute (can't be DOS-style, as IFS=:)
53609          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53610 echo "$as_me: error: cannot find input file: $f" >&2;}
53611    { (exit 1); exit 1; }; }
53612          echo "$f";;
53613       *) # Relative
53614          if test -f "$f"; then
53615            # Build tree
53616            echo "$f"
53617          elif test -f "$srcdir/$f"; then
53618            # Source tree
53619            echo "$srcdir/$f"
53620          else
53621            # /dev/null tree
53622            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53623 echo "$as_me: error: cannot find input file: $f" >&2;}
53624    { (exit 1); exit 1; }; }
53625          fi;;
53626       esac
53627     done` || { (exit 1); exit 1; }
53628 _ACEOF
53629 cat >>$CONFIG_STATUS <<_ACEOF
53630   sed "$ac_vpsub
53631 $extrasub
53632 _ACEOF
53633 cat >>$CONFIG_STATUS <<\_ACEOF
53634 :t
53635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53636 s,@configure_input@,$configure_input,;t t
53637 s,@srcdir@,$ac_srcdir,;t t
53638 s,@abs_srcdir@,$ac_abs_srcdir,;t t
53639 s,@top_srcdir@,$ac_top_srcdir,;t t
53640 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
53641 s,@builddir@,$ac_builddir,;t t
53642 s,@abs_builddir@,$ac_abs_builddir,;t t
53643 s,@top_builddir@,$ac_top_builddir,;t t
53644 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
53645 s,@INSTALL@,$ac_INSTALL,;t t
53646 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
53647   rm -f $tmp/stdin
53648   if test x"$ac_file" != x-; then
53649     mv $tmp/out $ac_file
53650   else
53651     cat $tmp/out
53652     rm -f $tmp/out
53653   fi
53654
53655 done
53656 _ACEOF
53657 cat >>$CONFIG_STATUS <<\_ACEOF
53658
53659 #
53660 # CONFIG_HEADER section.
53661 #
53662
53663 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
53664 # NAME is the cpp macro being defined and VALUE is the value it is being given.
53665 #
53666 # ac_d sets the value in "#define NAME VALUE" lines.
53667 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
53668 ac_dB='[         ].*$,\1#\2'
53669 ac_dC=' '
53670 ac_dD=',;t'
53671 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
53672 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
53673 ac_uB='$,\1#\2define\3'
53674 ac_uC=' '
53675 ac_uD=',;t'
53676
53677 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
53678   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53679   case $ac_file in
53680   - | *:- | *:-:* ) # input from stdin
53681         cat >$tmp/stdin
53682         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53683         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53684   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53685         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53686   * )   ac_file_in=$ac_file.in ;;
53687   esac
53688
53689   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
53690 echo "$as_me: creating $ac_file" >&6;}
53691
53692   # First look for the input files in the build tree, otherwise in the
53693   # src tree.
53694   ac_file_inputs=`IFS=:
53695     for f in $ac_file_in; do
53696       case $f in
53697       -) echo $tmp/stdin ;;
53698       [\\/$]*)
53699          # Absolute (can't be DOS-style, as IFS=:)
53700          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53701 echo "$as_me: error: cannot find input file: $f" >&2;}
53702    { (exit 1); exit 1; }; }
53703          # Do quote $f, to prevent DOS paths from being IFS'd.
53704          echo "$f";;
53705       *) # Relative
53706          if test -f "$f"; then
53707            # Build tree
53708            echo "$f"
53709          elif test -f "$srcdir/$f"; then
53710            # Source tree
53711            echo "$srcdir/$f"
53712          else
53713            # /dev/null tree
53714            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53715 echo "$as_me: error: cannot find input file: $f" >&2;}
53716    { (exit 1); exit 1; }; }
53717          fi;;
53718       esac
53719     done` || { (exit 1); exit 1; }
53720   # Remove the trailing spaces.
53721   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
53722
53723 _ACEOF
53724
53725 # Transform confdefs.h into two sed scripts, `conftest.defines' and
53726 # `conftest.undefs', that substitutes the proper values into
53727 # config.h.in to produce config.h.  The first handles `#define'
53728 # templates, and the second `#undef' templates.
53729 # And first: Protect against being on the right side of a sed subst in
53730 # config.status.  Protect against being in an unquoted here document
53731 # in config.status.
53732 rm -f conftest.defines conftest.undefs
53733 # Using a here document instead of a string reduces the quoting nightmare.
53734 # Putting comments in sed scripts is not portable.
53735 #
53736 # `end' is used to avoid that the second main sed command (meant for
53737 # 0-ary CPP macros) applies to n-ary macro definitions.
53738 # See the Autoconf documentation for `clear'.
53739 cat >confdef2sed.sed <<\_ACEOF
53740 s/[\\&,]/\\&/g
53741 s,[\\$`],\\&,g
53742 t clear
53743 : clear
53744 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
53745 t end
53746 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
53747 : end
53748 _ACEOF
53749 # If some macros were called several times there might be several times
53750 # the same #defines, which is useless.  Nevertheless, we may not want to
53751 # sort them, since we want the *last* AC-DEFINE to be honored.
53752 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
53753 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
53754 rm -f confdef2sed.sed
53755
53756 # This sed command replaces #undef with comments.  This is necessary, for
53757 # example, in the case of _POSIX_SOURCE, which is predefined and required
53758 # on some systems where configure will not decide to define it.
53759 cat >>conftest.undefs <<\_ACEOF
53760 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
53761 _ACEOF
53762
53763 # Break up conftest.defines because some shells have a limit on the size
53764 # of here documents, and old seds have small limits too (100 cmds).
53765 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
53766 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
53767 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
53768 echo '  :' >>$CONFIG_STATUS
53769 rm -f conftest.tail
53770 while grep . conftest.defines >/dev/null
53771 do
53772   # Write a limited-size here document to $tmp/defines.sed.
53773   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
53774   # Speed up: don't consider the non `#define' lines.
53775   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
53776   # Work around the forget-to-reset-the-flag bug.
53777   echo 't clr' >>$CONFIG_STATUS
53778   echo ': clr' >>$CONFIG_STATUS
53779   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
53780   echo 'CEOF
53781   sed -f $tmp/defines.sed $tmp/in >$tmp/out
53782   rm -f $tmp/in
53783   mv $tmp/out $tmp/in
53784 ' >>$CONFIG_STATUS
53785   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
53786   rm -f conftest.defines
53787   mv conftest.tail conftest.defines
53788 done
53789 rm -f conftest.defines
53790 echo '  fi # grep' >>$CONFIG_STATUS
53791 echo >>$CONFIG_STATUS
53792
53793 # Break up conftest.undefs because some shells have a limit on the size
53794 # of here documents, and old seds have small limits too (100 cmds).
53795 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
53796 rm -f conftest.tail
53797 while grep . conftest.undefs >/dev/null
53798 do
53799   # Write a limited-size here document to $tmp/undefs.sed.
53800   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
53801   # Speed up: don't consider the non `#undef'
53802   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
53803   # Work around the forget-to-reset-the-flag bug.
53804   echo 't clr' >>$CONFIG_STATUS
53805   echo ': clr' >>$CONFIG_STATUS
53806   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
53807   echo 'CEOF
53808   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
53809   rm -f $tmp/in
53810   mv $tmp/out $tmp/in
53811 ' >>$CONFIG_STATUS
53812   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
53813   rm -f conftest.undefs
53814   mv conftest.tail conftest.undefs
53815 done
53816 rm -f conftest.undefs
53817
53818 cat >>$CONFIG_STATUS <<\_ACEOF
53819   # Let's still pretend it is `configure' which instantiates (i.e., don't
53820   # use $as_me), people would be surprised to read:
53821   #    /* config.h.  Generated by config.status.  */
53822   if test x"$ac_file" = x-; then
53823     echo "/* Generated by configure.  */" >$tmp/config.h
53824   else
53825     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
53826   fi
53827   cat $tmp/in >>$tmp/config.h
53828   rm -f $tmp/in
53829   if test x"$ac_file" != x-; then
53830     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
53831       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
53832 echo "$as_me: $ac_file is unchanged" >&6;}
53833     else
53834       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53835 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53836          X"$ac_file" : 'X\(//\)[^/]' \| \
53837          X"$ac_file" : 'X\(//\)$' \| \
53838          X"$ac_file" : 'X\(/\)' \| \
53839          .     : '\(.\)' 2>/dev/null ||
53840 echo X"$ac_file" |
53841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53842           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53843           /^X\(\/\/\)$/{ s//\1/; q; }
53844           /^X\(\/\).*/{ s//\1/; q; }
53845           s/.*/./; q'`
53846       { if $as_mkdir_p; then
53847     mkdir -p "$ac_dir"
53848   else
53849     as_dir="$ac_dir"
53850     as_dirs=
53851     while test ! -d "$as_dir"; do
53852       as_dirs="$as_dir $as_dirs"
53853       as_dir=`(dirname "$as_dir") 2>/dev/null ||
53854 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53855          X"$as_dir" : 'X\(//\)[^/]' \| \
53856          X"$as_dir" : 'X\(//\)$' \| \
53857          X"$as_dir" : 'X\(/\)' \| \
53858          .     : '\(.\)' 2>/dev/null ||
53859 echo X"$as_dir" |
53860     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53861           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53862           /^X\(\/\/\)$/{ s//\1/; q; }
53863           /^X\(\/\).*/{ s//\1/; q; }
53864           s/.*/./; q'`
53865     done
53866     test ! -n "$as_dirs" || mkdir $as_dirs
53867   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53868 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53869    { (exit 1); exit 1; }; }; }
53870
53871       rm -f $ac_file
53872       mv $tmp/config.h $ac_file
53873     fi
53874   else
53875     cat $tmp/config.h
53876     rm -f $tmp/config.h
53877   fi
53878 # Compute $ac_file's index in $config_headers.
53879 _am_stamp_count=1
53880 for _am_header in $config_headers :; do
53881   case $_am_header in
53882     $ac_file | $ac_file:* )
53883       break ;;
53884     * )
53885       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
53886   esac
53887 done
53888 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
53889 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53890          X$ac_file : 'X\(//\)[^/]' \| \
53891          X$ac_file : 'X\(//\)$' \| \
53892          X$ac_file : 'X\(/\)' \| \
53893          .     : '\(.\)' 2>/dev/null ||
53894 echo X$ac_file |
53895     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53896           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53897           /^X\(\/\/\)$/{ s//\1/; q; }
53898           /^X\(\/\).*/{ s//\1/; q; }
53899           s/.*/./; q'`/stamp-h$_am_stamp_count
53900 done
53901 _ACEOF
53902 cat >>$CONFIG_STATUS <<\_ACEOF
53903
53904 #
53905 # CONFIG_COMMANDS section.
53906 #
53907 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
53908   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
53909   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
53910   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
53911 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53912          X"$ac_dest" : 'X\(//\)[^/]' \| \
53913          X"$ac_dest" : 'X\(//\)$' \| \
53914          X"$ac_dest" : 'X\(/\)' \| \
53915          .     : '\(.\)' 2>/dev/null ||
53916 echo X"$ac_dest" |
53917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53918           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53919           /^X\(\/\/\)$/{ s//\1/; q; }
53920           /^X\(\/\).*/{ s//\1/; q; }
53921           s/.*/./; q'`
53922   { if $as_mkdir_p; then
53923     mkdir -p "$ac_dir"
53924   else
53925     as_dir="$ac_dir"
53926     as_dirs=
53927     while test ! -d "$as_dir"; do
53928       as_dirs="$as_dir $as_dirs"
53929       as_dir=`(dirname "$as_dir") 2>/dev/null ||
53930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53931          X"$as_dir" : 'X\(//\)[^/]' \| \
53932          X"$as_dir" : 'X\(//\)$' \| \
53933          X"$as_dir" : 'X\(/\)' \| \
53934          .     : '\(.\)' 2>/dev/null ||
53935 echo X"$as_dir" |
53936     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53937           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53938           /^X\(\/\/\)$/{ s//\1/; q; }
53939           /^X\(\/\).*/{ s//\1/; q; }
53940           s/.*/./; q'`
53941     done
53942     test ! -n "$as_dirs" || mkdir $as_dirs
53943   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53945    { (exit 1); exit 1; }; }; }
53946
53947   ac_builddir=.
53948
53949 if test "$ac_dir" != .; then
53950   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53951   # A "../" for each directory in $ac_dir_suffix.
53952   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53953 else
53954   ac_dir_suffix= ac_top_builddir=
53955 fi
53956
53957 case $srcdir in
53958   .)  # No --srcdir option.  We are building in place.
53959     ac_srcdir=.
53960     if test -z "$ac_top_builddir"; then
53961        ac_top_srcdir=.
53962     else
53963        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53964     fi ;;
53965   [\\/]* | ?:[\\/]* )  # Absolute path.
53966     ac_srcdir=$srcdir$ac_dir_suffix;
53967     ac_top_srcdir=$srcdir ;;
53968   *) # Relative path.
53969     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53970     ac_top_srcdir=$ac_top_builddir$srcdir ;;
53971 esac
53972
53973 # Do not use `cd foo && pwd` to compute absolute paths, because
53974 # the directories may not exist.
53975 case `pwd` in
53976 .) ac_abs_builddir="$ac_dir";;
53977 *)
53978   case "$ac_dir" in
53979   .) ac_abs_builddir=`pwd`;;
53980   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53981   *) ac_abs_builddir=`pwd`/"$ac_dir";;
53982   esac;;
53983 esac
53984 case $ac_abs_builddir in
53985 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53986 *)
53987   case ${ac_top_builddir}. in
53988   .) ac_abs_top_builddir=$ac_abs_builddir;;
53989   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53990   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53991   esac;;
53992 esac
53993 case $ac_abs_builddir in
53994 .) ac_abs_srcdir=$ac_srcdir;;
53995 *)
53996   case $ac_srcdir in
53997   .) ac_abs_srcdir=$ac_abs_builddir;;
53998   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
53999   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54000   esac;;
54001 esac
54002 case $ac_abs_builddir in
54003 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54004 *)
54005   case $ac_top_srcdir in
54006   .) ac_abs_top_srcdir=$ac_abs_builddir;;
54007   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54008   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54009   esac;;
54010 esac
54011
54012
54013   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54014 echo "$as_me: executing $ac_dest commands" >&6;}
54015   case $ac_dest in
54016     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54017   # Strip MF so we end up with the name of the file.
54018   mf=`echo "$mf" | sed -e 's/:.*$//'`
54019   # Check whether this is an Automake generated Makefile or not.
54020   # We used to match only the files named `Makefile.in', but
54021   # some people rename them; so instead we look at the file content.
54022   # Grep'ing the first line is not enough: some people post-process
54023   # each Makefile.in and add a new line on top of each file to say so.
54024   # So let's grep whole file.
54025   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54026     dirpart=`(dirname "$mf") 2>/dev/null ||
54027 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54028          X"$mf" : 'X\(//\)[^/]' \| \
54029          X"$mf" : 'X\(//\)$' \| \
54030          X"$mf" : 'X\(/\)' \| \
54031          .     : '\(.\)' 2>/dev/null ||
54032 echo X"$mf" |
54033     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54034           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54035           /^X\(\/\/\)$/{ s//\1/; q; }
54036           /^X\(\/\).*/{ s//\1/; q; }
54037           s/.*/./; q'`
54038   else
54039     continue
54040   fi
54041   # Extract the definition of DEPDIR, am__include, and am__quote
54042   # from the Makefile without running `make'.
54043   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54044   test -z "$DEPDIR" && continue
54045   am__include=`sed -n 's/^am__include = //p' < "$mf"`
54046   test -z "am__include" && continue
54047   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54048   # When using ansi2knr, U may be empty or an underscore; expand it
54049   U=`sed -n 's/^U = //p' < "$mf"`
54050   # Find all dependency output files, they are included files with
54051   # $(DEPDIR) in their names.  We invoke sed twice because it is the
54052   # simplest approach to changing $(DEPDIR) to its actual value in the
54053   # expansion.
54054   for file in `sed -n "
54055     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54056        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54057     # Make sure the directory exists.
54058     test -f "$dirpart/$file" && continue
54059     fdir=`(dirname "$file") 2>/dev/null ||
54060 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54061          X"$file" : 'X\(//\)[^/]' \| \
54062          X"$file" : 'X\(//\)$' \| \
54063          X"$file" : 'X\(/\)' \| \
54064          .     : '\(.\)' 2>/dev/null ||
54065 echo X"$file" |
54066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54067           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54068           /^X\(\/\/\)$/{ s//\1/; q; }
54069           /^X\(\/\).*/{ s//\1/; q; }
54070           s/.*/./; q'`
54071     { if $as_mkdir_p; then
54072     mkdir -p $dirpart/$fdir
54073   else
54074     as_dir=$dirpart/$fdir
54075     as_dirs=
54076     while test ! -d "$as_dir"; do
54077       as_dirs="$as_dir $as_dirs"
54078       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54080          X"$as_dir" : 'X\(//\)[^/]' \| \
54081          X"$as_dir" : 'X\(//\)$' \| \
54082          X"$as_dir" : 'X\(/\)' \| \
54083          .     : '\(.\)' 2>/dev/null ||
54084 echo X"$as_dir" |
54085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54086           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54087           /^X\(\/\/\)$/{ s//\1/; q; }
54088           /^X\(\/\).*/{ s//\1/; q; }
54089           s/.*/./; q'`
54090     done
54091     test ! -n "$as_dirs" || mkdir $as_dirs
54092   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54093 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54094    { (exit 1); exit 1; }; }; }
54095
54096     # echo "creating $dirpart/$file"
54097     echo '# dummy' > "$dirpart/$file"
54098   done
54099 done
54100  ;;
54101     default )
54102 chmod +x tests/run
54103 date > stamp-h
54104 BACKENDSC="servers/slapd/backends.c"
54105 echo "Making $BACKENDSC"
54106 rm -f $BACKENDSC
54107 cat > $BACKENDSC << ENDX
54108 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
54109  *
54110  * Copyright 1998-2005 The OpenLDAP Foundation.
54111  * All rights reserved.
54112  *
54113  * Redistribution and use in source and binary forms, with or without
54114  * modification, are permitted only as authorized by the OpenLDAP
54115  * Public License.
54116  *
54117  * A copy of this license is available in the file LICENSE in the
54118  * top-level directory of the distribution or, alternatively, at
54119  * <http://www.OpenLDAP.org/license.html>.
54120  */
54121 /* This file is automatically generated by configure; please do not edit. */
54122
54123 #include "portable.h"
54124 #include "slap.h"
54125
54126 ENDX
54127 if test "${STATIC_BACKENDS}"; then
54128         for b in config ${STATIC_BACKENDS}; do
54129                 bb=`echo "${b}" | sed -e 's/back-//'`
54130                 cat >> $BACKENDSC << ENDX
54131 extern BI_init ${bb}_back_initialize;
54132 ENDX
54133         done
54134
54135         cat >> $BACKENDSC << ENDX
54136
54137 BackendInfo slap_binfo[] = {
54138 ENDX
54139
54140         for b in config ${STATIC_BACKENDS}; do
54141                 bb=`echo "${b}" | sed -e 's/back-//'`
54142                 echo "    Add ${bb} ..."
54143                 cat >> $BACKENDSC << ENDX
54144         { "${bb}", ${bb}_back_initialize },
54145 ENDX
54146         done
54147
54148         cat >> $BACKENDSC << ENDX
54149         { NULL, NULL },
54150 };
54151
54152 /* end of generated file */
54153 ENDX
54154 fi
54155
54156 echo Please run \"make depend\" to build dependencies
54157  ;;
54158   esac
54159 done
54160 _ACEOF
54161
54162 cat >>$CONFIG_STATUS <<\_ACEOF
54163
54164 { (exit 0); exit 0; }
54165 _ACEOF
54166 chmod +x $CONFIG_STATUS
54167 ac_clean_files=$ac_clean_files_save
54168
54169
54170 # configure is writing to config.log, and then calls config.status.
54171 # config.status does its own redirection, appending to config.log.
54172 # Unfortunately, on DOS this fails, as config.log is still kept open
54173 # by configure, so config.status won't be able to write to it; its
54174 # output is simply discarded.  So we exec the FD to /dev/null,
54175 # effectively closing config.log, so it can be properly (re)opened and
54176 # appended to by config.status.  When coming back to configure, we
54177 # need to make the FD available again.
54178 if test "$no_create" != yes; then
54179   ac_cs_success=:
54180   ac_config_status_args=
54181   test "$silent" = yes &&
54182     ac_config_status_args="$ac_config_status_args --quiet"
54183   exec 5>/dev/null
54184   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54185   exec 5>>config.log
54186   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54187   # would make configure fail if this is the last instruction.
54188   $ac_cs_success || { (exit 1); exit 1; }
54189 fi
54190